feat(tokens): Add support for organization-owned API tokens and org-level token management
This commit is contained in:
@@ -143,6 +143,8 @@ export type TTokenAction = 'read' | 'write' | 'delete' | '*';
|
||||
export interface IApiToken {
|
||||
id: string;
|
||||
userId: string;
|
||||
organizationId?: string; // For org-owned tokens
|
||||
createdById?: string; // Who created the token (for audit)
|
||||
name: string;
|
||||
tokenHash: string;
|
||||
tokenPrefix: string;
|
||||
@@ -276,6 +278,7 @@ export interface ICreateRepositoryDto {
|
||||
|
||||
export interface ICreateTokenDto {
|
||||
name: string;
|
||||
organizationId?: string; // For org-owned tokens
|
||||
protocols: TRegistryProtocol[];
|
||||
scopes: ITokenScope[];
|
||||
expiresAt?: Date;
|
||||
|
||||
Reference in New Issue
Block a user