@frontmcp/auth 1.3.0 → 1.4.1

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 (74) hide show
  1. package/authorities/authorities.profiles.d.ts +14 -1
  2. package/authorities/authorities.profiles.d.ts.map +1 -1
  3. package/authorization/dcr-client.registry.d.ts +83 -0
  4. package/authorization/dcr-client.registry.d.ts.map +1 -0
  5. package/authorization/index.d.ts +2 -0
  6. package/authorization/index.d.ts.map +1 -1
  7. package/cimd/cimd.service.d.ts +2 -9
  8. package/cimd/cimd.service.d.ts.map +1 -1
  9. package/common/session.types.d.ts +4 -4
  10. package/esm/index.mjs +1821 -214
  11. package/esm/package.json +8 -8
  12. package/index.d.ts +5 -5
  13. package/index.d.ts.map +1 -1
  14. package/index.js +2030 -383
  15. package/jwks/jwks.service.d.ts +2 -4
  16. package/jwks/jwks.service.d.ts.map +1 -1
  17. package/options/app-auth.schema.d.ts +226 -0
  18. package/options/app-auth.schema.d.ts.map +1 -1
  19. package/options/index.d.ts +4 -4
  20. package/options/index.d.ts.map +1 -1
  21. package/options/interfaces.d.ts +580 -4
  22. package/options/interfaces.d.ts.map +1 -1
  23. package/options/orchestrated.schema.d.ts +492 -1
  24. package/options/orchestrated.schema.d.ts.map +1 -1
  25. package/options/schema.d.ts +226 -0
  26. package/options/schema.d.ts.map +1 -1
  27. package/options/shared.schemas.d.ts +237 -2
  28. package/options/shared.schemas.d.ts.map +1 -1
  29. package/package.json +8 -8
  30. package/session/authorization.store.d.ts +117 -47
  31. package/session/authorization.store.d.ts.map +1 -1
  32. package/session/consent.store.d.ts +86 -0
  33. package/session/consent.store.d.ts.map +1 -0
  34. package/session/credential-resume-link.d.ts +64 -0
  35. package/session/credential-resume-link.d.ts.map +1 -0
  36. package/session/credentials-accessor.d.ts +102 -0
  37. package/session/credentials-accessor.d.ts.map +1 -0
  38. package/session/credentials-accessor.impl.d.ts +46 -0
  39. package/session/credentials-accessor.impl.d.ts.map +1 -0
  40. package/session/index.d.ts +32 -2
  41. package/session/index.d.ts.map +1 -1
  42. package/session/orchestrated-token.crypto.d.ts +33 -0
  43. package/session/orchestrated-token.crypto.d.ts.map +1 -0
  44. package/session/secure-store-accessor.d.ts +77 -0
  45. package/session/secure-store-accessor.d.ts.map +1 -0
  46. package/session/secure-store-accessor.impl.d.ts +61 -0
  47. package/session/secure-store-accessor.impl.d.ts.map +1 -0
  48. package/session/secure-store-backends.d.ts +75 -0
  49. package/session/secure-store-backends.d.ts.map +1 -0
  50. package/session/secure-store.d.ts +89 -0
  51. package/session/secure-store.d.ts.map +1 -0
  52. package/session/secure-store.factory.d.ts +62 -0
  53. package/session/secure-store.factory.d.ts.map +1 -0
  54. package/session/session-credential-vault.d.ts +153 -0
  55. package/session/session-credential-vault.d.ts.map +1 -0
  56. package/session/session-credential-vault.factory.d.ts +50 -0
  57. package/session/session-credential-vault.factory.d.ts.map +1 -0
  58. package/session/storage-authorization.store.d.ts +51 -0
  59. package/session/storage-authorization.store.d.ts.map +1 -0
  60. package/session/storage-consent.store.d.ts +33 -0
  61. package/session/storage-consent.store.d.ts.map +1 -0
  62. package/session/storage-federated-auth.session.d.ts +36 -0
  63. package/session/storage-federated-auth.session.d.ts.map +1 -0
  64. package/session/storage-orchestrated-token.store.d.ts +72 -0
  65. package/session/storage-orchestrated-token.store.d.ts.map +1 -0
  66. package/session/token-storage.factory.d.ts +46 -0
  67. package/session/token-storage.factory.d.ts.map +1 -0
  68. package/ui/index.d.ts +3 -2
  69. package/ui/index.d.ts.map +1 -1
  70. package/ui/local-login.helper.d.ts +31 -0
  71. package/ui/local-login.helper.d.ts.map +1 -0
  72. package/ui/templates.d.ts +118 -2
  73. package/ui/templates.d.ts.map +1 -1
  74. package/vault/auth-providers.types.d.ts +3 -3
@@ -4,7 +4,8 @@
4
4
  * Types for JWT claims mapping and pre-registered authority profiles.
5
5
  * Configured at server/app level via @FrontMcp({ authorities: { ... } })
6
6
  */
7
- import type { AuthoritiesPolicyMetadata } from './authorities.types';
7
+ import type { ClaimsResolverFn } from './authorities.context';
8
+ import type { AuthoritiesEvaluator, AuthoritiesPolicyMetadata, RelationshipResolver } from './authorities.types';
8
9
  /**
9
10
  * Maps IdP-specific JWT claim paths to standard authority fields.
10
11
  * Each value is a dot-path into the JWT claims object.
@@ -60,8 +61,20 @@ export interface AuthoritiesScopeMapping {
60
61
  export interface AuthoritiesConfig {
61
62
  /** JWT claims mapping for your IdP */
62
63
  claimsMapping?: AuthoritiesClaimsMapping;
64
+ /**
65
+ * Custom function to extract roles/permissions/claims from AuthInfo.
66
+ * Takes precedence over `claimsMapping` when provided.
67
+ */
68
+ claimsResolver?: ClaimsResolverFn;
63
69
  /** Pre-registered named authority profiles */
64
70
  profiles?: Record<string, AuthoritiesPolicyMetadata>;
71
+ /**
72
+ * Relationship resolver for ReBAC checks.
73
+ * Required when using `relationships` in policies.
74
+ */
75
+ relationshipResolver?: RelationshipResolver;
76
+ /** Custom evaluators for the `custom.*` field in policies (key = evaluator name). */
77
+ evaluators?: Record<string, AuthoritiesEvaluator>;
65
78
  /** Map authority denials to OAuth scope challenges */
66
79
  scopeMapping?: AuthoritiesScopeMapping;
67
80
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"authorities.profiles.d.ts","sourceRoot":"","sources":["../../src/authorities/authorities.profiles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC;AAMD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACvC,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACrD,sDAAsD;IACtD,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,kCAAkC,EAAE,eAAe,EAAE,CAAC;CACtE"}
1
+ {"version":3,"file":"authorities.profiles.d.ts","sourceRoot":"","sources":["../../src/authorities/authorities.profiles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAMjH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC;AAMD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACvC,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACrD;;;OAGG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAClD,sDAAsD;IACtD,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,kCAAkC,EAAE,eAAe,EAAE,CAAC;CACtE"}
@@ -0,0 +1,83 @@
1
+ /** A registered OAuth client record held by the local AS. */
2
+ export interface RegisteredClient {
3
+ client_id: string;
4
+ client_secret?: string;
5
+ token_endpoint_auth_method: 'none' | 'client_secret_basic' | 'client_secret_post' | 'private_key_jwt' | 'tls_client_auth';
6
+ grant_types: string[];
7
+ response_types: string[];
8
+ redirect_uris: string[];
9
+ client_name?: string;
10
+ scope?: string;
11
+ /** Seconds since epoch when the client was registered/seeded. */
12
+ created_at: number;
13
+ /** True for clients minted by DCR (vs pre-registered trusted clients). */
14
+ dev: boolean;
15
+ /** True for clients declared via `dcr.clients` (seeded at startup). */
16
+ preRegistered?: boolean;
17
+ }
18
+ /** Shape of a pre-registered client as declared in `dcr.clients`. */
19
+ export interface PreRegisteredClientInput {
20
+ clientId: string;
21
+ clientSecret?: string;
22
+ redirectUris: string[];
23
+ clientName?: string;
24
+ tokenEndpointAuthMethod?: 'none' | 'client_secret_basic' | 'client_secret_post';
25
+ grantTypes?: Array<'authorization_code' | 'refresh_token'>;
26
+ responseTypes?: Array<'code'>;
27
+ scope?: string;
28
+ }
29
+ /** Resolved DCR configuration consumed by the registry. */
30
+ export interface DcrRegistryConfig {
31
+ /**
32
+ * Whether DCR (`POST /oauth/register`) is active. `undefined` means "defer to
33
+ * the historical environment guard" (on in dev, off in production), which the
34
+ * register flow resolves; the registry treats `undefined` as "not explicitly
35
+ * disabled".
36
+ */
37
+ enabled?: boolean;
38
+ allowedRedirectUris?: string[];
39
+ allowedClientIds?: string[];
40
+ initialAccessToken?: string;
41
+ clients?: PreRegisteredClientInput[];
42
+ }
43
+ /**
44
+ * Local-AS DCR client registry. Seeded from `dcr.clients` at construction and
45
+ * mutated by `POST /oauth/register` at runtime.
46
+ */
47
+ export declare class DcrClientRegistry {
48
+ private readonly config;
49
+ private readonly clients;
50
+ private readonly redirectMatchers;
51
+ constructor(config?: DcrRegistryConfig);
52
+ /** Seed `dcr.clients` so the authorize/token flows accept them without DCR. */
53
+ private seedPreRegisteredClients;
54
+ /** Look up a client by id (pre-registered or dynamically registered). */
55
+ get(clientId: string): RegisteredClient | undefined;
56
+ /** Whether a client id is known to the registry. */
57
+ has(clientId: string): boolean;
58
+ /** Add a dynamically-registered client (called by the register flow). */
59
+ register(client: RegisteredClient): void;
60
+ /** Whether a redirect_uri allowlist is configured. */
61
+ hasRedirectAllowlist(): boolean;
62
+ /**
63
+ * Whether `redirectUri` is permitted by the configured allowlist. Always
64
+ * `true` when no allowlist is configured (preserves default behavior).
65
+ */
66
+ isRedirectUriAllowed(redirectUri: string): boolean;
67
+ /** Whether a client-id allowlist is configured. */
68
+ hasClientIdAllowlist(): boolean;
69
+ /**
70
+ * Whether `clientId` is permitted by the configured client-id allowlist.
71
+ * Always `true` when no allowlist is configured (preserves default behavior).
72
+ */
73
+ isClientIdAllowed(clientId: string): boolean;
74
+ /** Whether an initial access token is required for DCR registration. */
75
+ requiresInitialAccessToken(): boolean;
76
+ /**
77
+ * Constant-time check of a presented bearer token against the configured
78
+ * initial access token. Returns `false` when none is configured (callers
79
+ * should gate on {@link requiresInitialAccessToken} first).
80
+ */
81
+ verifyInitialAccessToken(presented: string | undefined): boolean;
82
+ }
83
+ //# sourceMappingURL=dcr-client.registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dcr-client.registry.d.ts","sourceRoot":"","sources":["../../src/authorization/dcr-client.registry.ts"],"names":[],"mappings":"AAgBA,6DAA6D;AAC7D,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0BAA0B,EACtB,MAAM,GACN,qBAAqB,GACrB,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,GAAG,EAAE,OAAO,CAAC;IACb,uEAAuE;IACvE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,qEAAqE;AACrE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uBAAuB,CAAC,EAAE,MAAM,GAAG,qBAAqB,GAAG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,GAAG,OAAO;CAajE"}
@@ -15,4 +15,6 @@ export { OrchestratedAuthorization } from './orchestrated.authorization';
15
15
  export type { OrchestratedAuthorizationCreateCtx, OrchestratedProviderState, TokenStore as OrchestratedTokenStore, TokenRefreshCallback, } from './orchestrated.authorization';
16
16
  export type { OrchestratedAuthAccessor } from './orchestrated.accessor';
17
17
  export { OrchestratedAuthAccessorAdapter, NullOrchestratedAuthAccessor, ORCHESTRATED_AUTH_ACCESSOR, } from './orchestrated.accessor';
18
+ export { DcrClientRegistry } from './dcr-client.registry';
19
+ export type { RegisteredClient, PreRegisteredClientInput, DcrRegistryConfig } from './dcr-client.registry';
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/authorization/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EAAE,iCAAiC,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEjH,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,Y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BAA0B,GAC3B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,12 +1,5 @@
1
- /**
2
- * CIMD (Client ID Metadata Documents) Service
3
- *
4
- * Core service for resolving and validating OAuth Client ID Metadata Documents.
5
- *
6
- * @see https://datatracker.ietf.org/doc/html/draft-ietf-oauth-client-id-metadata-document-00
7
- */
8
- import type { CimdLogger } from './cimd.logger';
9
- import { type ClientMetadataDocument, type CimdConfigInput, type CimdResolutionResult } from './cimd.types';
1
+ import { type CimdLogger } from './cimd.logger';
2
+ import { type CimdConfigInput, type CimdResolutionResult, type ClientMetadataDocument } from './cimd.types';
10
3
  /**
11
4
  * CIMD Service for resolving and validating client metadata documents.
12
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"cimd.service.d.ts","sourceRoot":"","sources":["../../src/cimd/cimd.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAUhD,OAAO,EAML,KAAK,sBAAsB,EAE3B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAI1B,MAAM,cAAc,CAAC;AAGtB;;;;GAIG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;IAC9C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqB;IACpD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAoB;IAClD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IAEpC;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;;OAKG;gBACS,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM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EAAE,OAAO,CAAC,eAAe,CAAC;IA4BlE;;;;;OAKG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIzC;;;;;;;;OAQG;IACG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAoD5E;;;;;;OAMG;IACH,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,sBAAsB,GAAG,IAAI;IAUhF;;;;OAIG;IACG,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUlD;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAMhD;;;;OAIG;YACW,qBAAqB;IAmJnC;;OAEG;YACW,qBAAqB;IAyCnC;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;CAiBzB"}
@@ -12,11 +12,11 @@ export type AIPlatformType = 'openai' | 'claude' | 'gemini' | 'cursor' | 'contin
12
12
  */
13
13
  export declare const aiPlatformTypeSchema: import("@frontmcp/lazy-zod").ZodEnum<{
14
14
  unknown: "unknown";
15
+ continue: "continue";
15
16
  openai: "openai";
16
17
  claude: "claude";
17
18
  gemini: "gemini";
18
19
  cursor: "cursor";
19
- continue: "continue";
20
20
  cody: "cody";
21
21
  "generic-mcp": "generic-mcp";
22
22
  "ext-apps": "ext-apps";
@@ -83,11 +83,11 @@ export declare const sessionIdPayloadSchema: import("@frontmcp/lazy-zod").ZodObj
83
83
  isPublic: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
84
84
  platformType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
85
85
  unknown: "unknown";
86
+ continue: "continue";
86
87
  openai: "openai";
87
88
  claude: "claude";
88
89
  gemini: "gemini";
89
90
  cursor: "cursor";
90
- continue: "continue";
91
91
  cody: "cody";
92
92
  "generic-mcp": "generic-mcp";
93
93
  "ext-apps": "ext-apps";
@@ -123,11 +123,11 @@ export declare const sessionIdSchema: import("@frontmcp/lazy-zod").ZodObject<{
123
123
  isPublic: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
124
124
  platformType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
125
125
  unknown: "unknown";
126
+ continue: "continue";
126
127
  openai: "openai";
127
128
  claude: "claude";
128
129
  gemini: "gemini";
129
130
  cursor: "cursor";
130
- continue: "continue";
131
131
  cody: "cody";
132
132
  "generic-mcp": "generic-mcp";
133
133
  "ext-apps": "ext-apps";
@@ -157,11 +157,11 @@ export declare const authorizationSchema: import("@frontmcp/lazy-zod").ZodObject
157
157
  isPublic: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
158
158
  platformType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
159
159
  unknown: "unknown";
160
+ continue: "continue";
160
161
  openai: "openai";
161
162
  claude: "claude";
162
163
  gemini: "gemini";
163
164
  cursor: "cursor";
164
- continue: "continue";
165
165
  cody: "cody";
166
166
  "generic-mcp": "generic-mcp";
167
167
  "ext-apps": "ext-apps";