You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
637 B
28 lines
637 B
import type { Permission } from "@/lib/constants/auth";
|
|
|
|
export type HostCustomerStatus = "active" | "disabled";
|
|
|
|
export type HostCustomerDto = {
|
|
customer_id: string;
|
|
name: string;
|
|
status: HostCustomerStatus;
|
|
remark: string | null;
|
|
embed_password_set: boolean;
|
|
created_at: string;
|
|
updated_at: string;
|
|
api_keys: ServiceApiKeySummaryDto[];
|
|
};
|
|
|
|
export type ServiceApiKeySummaryDto = {
|
|
key_id: string;
|
|
key_prefix: string;
|
|
is_active: boolean;
|
|
permissions: Permission[];
|
|
created_at: string;
|
|
};
|
|
|
|
export type CreateHostCustomerResult = HostCustomerDto & {
|
|
/** 仅创建/轮换时返回一次 */
|
|
api_key: string;
|
|
};
|