@bodhiapp/ts-client 0.1.34 → 0.1.36

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.
@@ -1323,9 +1323,8 @@ export interface components {
1323
1323
  schemas: {
1324
1324
  AccessRequestActionResponse: {
1325
1325
  status: components["schemas"]["AppAccessRequestStatus"];
1326
- flow_type: components["schemas"]["FlowType"];
1327
- /** @description Present for redirect flow */
1328
- redirect_url?: string | null;
1326
+ /** @description Dynamic scope minted on approval; the review page appends it to `auth_url` before redirecting to Keycloak. */
1327
+ access_request_scope?: string | null;
1329
1328
  };
1330
1329
  AccessRequestReviewResponse: {
1331
1330
  id: string;
@@ -1334,12 +1333,12 @@ export interface components {
1334
1333
  app_name?: string | null;
1335
1334
  /** @description From KC, if available */
1336
1335
  app_description?: string | null;
1337
- /** @description One of: "redirect", "popup" */
1338
- flow_type: components["schemas"]["FlowType"];
1339
1336
  status: components["schemas"]["AppAccessRequestStatus"];
1340
1337
  requested_role: string;
1341
1338
  requested: components["schemas"]["RequestedResources"];
1342
1339
  mcps_info?: components["schemas"]["McpServerReviewInfo"][];
1340
+ /** @description Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against. */
1341
+ auth_endpoint: string;
1343
1342
  };
1344
1343
  /** @example {
1345
1344
  * "access_request_scope": "scope_access_request:550e8400-e29b-41d4-a716-446655440000",
@@ -1803,8 +1802,6 @@ export interface components {
1803
1802
  };
1804
1803
  /** @example {
1805
1804
  * "app_client_id": "my-app-client",
1806
- * "flow_type": "redirect",
1807
- * "redirect_url": "https://myapp.com/callback",
1808
1805
  * "requested": {
1809
1806
  * "mcp_servers": [
1810
1807
  * {
@@ -1818,10 +1815,6 @@ export interface components {
1818
1815
  CreateAccessRequest: {
1819
1816
  /** @description App client ID from Keycloak */
1820
1817
  app_client_id: string;
1821
- /** @description Flow type: "redirect" or "popup" */
1822
- flow_type: components["schemas"]["FlowType"];
1823
- /** @description Redirect URL for result notification (required for redirect flow) */
1824
- redirect_url?: string | null;
1825
1818
  /** @description Role requested for the external app (scope_user_user or scope_user_power_user) */
1826
1819
  requested_role: components["schemas"]["UserScope"];
1827
1820
  /** @description Resources requested (tools, etc.) */
@@ -2041,8 +2034,6 @@ export interface components {
2041
2034
  FetchModelsResponse: {
2042
2035
  models: string[];
2043
2036
  };
2044
- /** @enum {string} */
2045
- FlowType: "redirect" | "popup";
2046
2037
  /** @description Gemini `Model` schema (see `openapi-gemini.json`). */
2047
2038
  GeminiModel: {
2048
2039
  name: string;
@@ -1324,9 +1324,8 @@ export interface components {
1324
1324
  schemas: {
1325
1325
  AccessRequestActionResponse: {
1326
1326
  status: components["schemas"]["AppAccessRequestStatus"];
1327
- flow_type: components["schemas"]["FlowType"];
1328
- /** @description Present for redirect flow */
1329
- redirect_url?: string | null;
1327
+ /** @description Dynamic scope minted on approval; the review page appends it to `auth_url` before redirecting to Keycloak. */
1328
+ access_request_scope?: string | null;
1330
1329
  };
1331
1330
  AccessRequestReviewResponse: {
1332
1331
  id: string;
@@ -1335,12 +1334,12 @@ export interface components {
1335
1334
  app_name?: string | null;
1336
1335
  /** @description From KC, if available */
1337
1336
  app_description?: string | null;
1338
- /** @description One of: "redirect", "popup" */
1339
- flow_type: components["schemas"]["FlowType"];
1340
1337
  status: components["schemas"]["AppAccessRequestStatus"];
1341
1338
  requested_role: string;
1342
1339
  requested: components["schemas"]["RequestedResources"];
1343
1340
  mcps_info?: components["schemas"]["McpServerReviewInfo"][];
1341
+ /** @description Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against. */
1342
+ auth_endpoint: string;
1344
1343
  };
1345
1344
  /** @example {
1346
1345
  * "access_request_scope": "scope_access_request:550e8400-e29b-41d4-a716-446655440000",
@@ -1804,8 +1803,6 @@ export interface components {
1804
1803
  };
1805
1804
  /** @example {
1806
1805
  * "app_client_id": "my-app-client",
1807
- * "flow_type": "redirect",
1808
- * "redirect_url": "https://myapp.com/callback",
1809
1806
  * "requested": {
1810
1807
  * "mcp_servers": [
1811
1808
  * {
@@ -1819,10 +1816,6 @@ export interface components {
1819
1816
  CreateAccessRequest: {
1820
1817
  /** @description App client ID from Keycloak */
1821
1818
  app_client_id: string;
1822
- /** @description Flow type: "redirect" or "popup" */
1823
- flow_type: components["schemas"]["FlowType"];
1824
- /** @description Redirect URL for result notification (required for redirect flow) */
1825
- redirect_url?: string | null;
1826
1819
  /** @description Role requested for the external app (scope_user_user or scope_user_power_user) */
1827
1820
  requested_role: components["schemas"]["UserScope"];
1828
1821
  /** @description Resources requested (tools, etc.) */
@@ -2042,8 +2035,6 @@ export interface components {
2042
2035
  FetchModelsResponse: {
2043
2036
  models: string[];
2044
2037
  };
2045
- /** @enum {string} */
2046
- FlowType: "redirect" | "popup";
2047
2038
  /** @description Gemini `Model` schema (see `openapi-gemini.json`). */
2048
2039
  GeminiModel: {
2049
2040
  name: string;
@@ -1,10 +1,9 @@
1
1
  export type AccessRequestActionResponse = {
2
2
  status: AppAccessRequestStatus;
3
- flow_type: FlowType;
4
3
  /**
5
- * Present for redirect flow
4
+ * Dynamic scope minted on approval; the review page appends it to `auth_url` before redirecting to Keycloak.
6
5
  */
7
- redirect_url?: string | null;
6
+ access_request_scope?: string | null;
8
7
  };
9
8
  export type AccessRequestReviewResponse = {
10
9
  id: string;
@@ -17,14 +16,14 @@ export type AccessRequestReviewResponse = {
17
16
  * From KC, if available
18
17
  */
19
18
  app_description?: string | null;
20
- /**
21
- * One of: "redirect", "popup"
22
- */
23
- flow_type: FlowType;
24
19
  status: AppAccessRequestStatus;
25
20
  requested_role: string;
26
21
  requested: RequestedResources;
27
22
  mcps_info?: Array<McpServerReviewInfo>;
23
+ /**
24
+ * Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against.
25
+ */
26
+ auth_endpoint: string;
28
27
  };
29
28
  export type AccessRequestStatusResponse = {
30
29
  id: string;
@@ -410,14 +409,6 @@ export type CreateAccessRequest = {
410
409
  * App client ID from Keycloak
411
410
  */
412
411
  app_client_id: string;
413
- /**
414
- * Flow type: "redirect" or "popup"
415
- */
416
- flow_type: FlowType;
417
- /**
418
- * Redirect URL for result notification (required for redirect flow)
419
- */
420
- redirect_url?: string | null;
421
412
  /**
422
413
  * Role requested for the external app (scope_user_user or scope_user_power_user)
423
414
  */
@@ -656,7 +647,6 @@ export type FetchModelsRequest = (DefaultFetchModelsRequest & {
656
647
  export type FetchModelsResponse = {
657
648
  models: Array<string>;
658
649
  };
659
- export type FlowType = 'redirect' | 'popup';
660
650
  /**
661
651
  * Gemini `Model` schema (see `openapi-gemini.json`).
662
652
  */
@@ -2,11 +2,10 @@
2
2
 
3
3
  export type AccessRequestActionResponse = {
4
4
  status: AppAccessRequestStatus;
5
- flow_type: FlowType;
6
5
  /**
7
- * Present for redirect flow
6
+ * Dynamic scope minted on approval; the review page appends it to `auth_url` before redirecting to Keycloak.
8
7
  */
9
- redirect_url?: string | null;
8
+ access_request_scope?: string | null;
10
9
  };
11
10
 
12
11
  export type AccessRequestReviewResponse = {
@@ -20,14 +19,14 @@ export type AccessRequestReviewResponse = {
20
19
  * From KC, if available
21
20
  */
22
21
  app_description?: string | null;
23
- /**
24
- * One of: "redirect", "popup"
25
- */
26
- flow_type: FlowType;
27
22
  status: AppAccessRequestStatus;
28
23
  requested_role: string;
29
24
  requested: RequestedResources;
30
25
  mcps_info?: Array<McpServerReviewInfo>;
26
+ /**
27
+ * Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against.
28
+ */
29
+ auth_endpoint: string;
31
30
  };
32
31
 
33
32
  export type AccessRequestStatusResponse = {
@@ -448,14 +447,6 @@ export type CreateAccessRequest = {
448
447
  * App client ID from Keycloak
449
448
  */
450
449
  app_client_id: string;
451
- /**
452
- * Flow type: "redirect" or "popup"
453
- */
454
- flow_type: FlowType;
455
- /**
456
- * Redirect URL for result notification (required for redirect flow)
457
- */
458
- redirect_url?: string | null;
459
450
  /**
460
451
  * Role requested for the external app (scope_user_user or scope_user_power_user)
461
452
  */
@@ -714,8 +705,6 @@ export type FetchModelsResponse = {
714
705
  models: Array<string>;
715
706
  };
716
707
 
717
- export type FlowType = 'redirect' | 'popup';
718
-
719
708
  /**
720
709
  * Gemini `Model` schema (see `openapi-gemini.json`).
721
710
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/ts-client",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "description": "TypeScript types for Bodhi API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",