feat: add CI deployment and live progress
This commit is contained in:
@@ -202,6 +202,14 @@ export type OperationEvent = {
|
||||
type: "status" | "progress" | "log" | "result" | "error";
|
||||
data: JsonValue;
|
||||
};
|
||||
export type ListOperationEventsResponse = {
|
||||
items: OperationEvent[];
|
||||
nextCursor?: number;
|
||||
/** The oldest event sequence still retained for this operation. */
|
||||
retainedFirstSequence: number;
|
||||
/** True when `after` predates the retained event history. */
|
||||
cursorGap: boolean;
|
||||
};
|
||||
|
||||
export type UserRole = "admin" | "operator" | "viewer" | (string & {});
|
||||
export type User = {
|
||||
@@ -223,6 +231,29 @@ export type UpdateUserRequest = {
|
||||
};
|
||||
export type UserResponse = User;
|
||||
export type ListUsersResponse = Page<User>;
|
||||
export type Capability =
|
||||
| "kubernetes:read"
|
||||
| "kubernetes:write"
|
||||
| "kubernetes:exec"
|
||||
| "users:read"
|
||||
| "users:write"
|
||||
| "sessions:revoke"
|
||||
| "platform:adopt";
|
||||
export type ApiKey = {
|
||||
id: string;
|
||||
username: string;
|
||||
capabilities: Capability[];
|
||||
workspace?: string;
|
||||
expiresAt: string;
|
||||
disabled: boolean;
|
||||
};
|
||||
export type CreateApiKeyRequest = {
|
||||
capabilities: Capability[];
|
||||
workspace?: string;
|
||||
expiresAt?: string;
|
||||
};
|
||||
export type CreateApiKeyResponse = ApiKey & { token: string };
|
||||
export type ListApiKeysResponse = Page<ApiKey>;
|
||||
|
||||
export type AuditEvent = {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user