mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
9b81c6debd
#### PR Dependency Tree * **PR #15221** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added MCP credential management (create/reveal, list, rotate, revoke) with expiration and status tracking. * Introduced read-only vs read/write access modes, with read/write tooling enabled only when permitted. * Added workspace MCP credential configuration UI, including token reveal and setup generation. * Added MCP credential GraphQL APIs to back the UI. * **Changes** * Replaced legacy access-token support with MCP credentials across authentication and realtime updates. * **Bug Fixes** * MCP authentication now reliably rejects revoked, rotated, expired, or disabled-user credentials. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
declare namespace Express {
|
|
interface Request {
|
|
session?: import('./core/auth/session').Session;
|
|
authType?: 'jwt' | 'session';
|
|
}
|
|
}
|
|
|
|
declare type Exact<T extends { [key: string]: unknown }> = {
|
|
[K in keyof T]: T[K];
|
|
};
|
|
|
|
declare type Leaf<T> = T & { __leaf: true };
|
|
declare type NonLeaf<T> = T extends Leaf<infer V> ? V : T;
|
|
|
|
declare type DeeplyEraseLeaf<T> = T extends Leaf<infer V> ? V
|
|
:
|
|
{
|
|
[K in keyof T]: DeeplyEraseLeaf<T[K]>
|
|
}
|
|
|
|
declare type PrimitiveType =
|
|
| string
|
|
| number
|
|
| boolean
|
|
| symbol
|
|
| null
|
|
| undefined
|
|
|
|
declare type UnionToIntersection<T> = (
|
|
T extends any ? (x: T) => any : never
|
|
) extends (x: infer R) => any
|
|
? R
|
|
: never;
|
|
|
|
declare type ConstructorOf<T> = {
|
|
new (): T;
|
|
};
|
|
|
|
declare type DeepPartial<T> =
|
|
T extends Array<infer U>
|
|
? DeepPartial<U>[]
|
|
: T extends ReadonlyArray<infer U>
|
|
? ReadonlyArray<DeepPartial<U>>
|
|
: T extends Record<string, any>
|
|
? {
|
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
}
|
|
: T;
|
|
|
|
declare type DeepReadonly<T> = {
|
|
readonly [K in keyof T]: T[K] extends object ? DeepReadonly<T[K]> : T[K];
|
|
};
|
|
|
|
declare type AFFiNEModule =
|
|
| import('@nestjs/common').Type
|
|
| import('@nestjs/common').DynamicModule;
|