import z from 'zod'; export declare const key: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; name: z.ZodString; key: z.ZodString; archived: z.ZodBoolean; lastUsedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }>; export type Key = z.infer; export interface KeyService { create(request: CreateKeyRequest): Promise; archive(request: ArchiveKeyRequest): Promise; get(request: GetKeyRequest): Promise; list(request: ListKeysRequest): Promise; } /** ****************************************************************************** * Create Key ******************************************************************************* */ export declare const createKeyParams: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; export declare const createKeyRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; }, "strip", z.ZodTypeAny, { params: { name: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { name: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const createKeyResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; key: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; key?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; key?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; } | undefined; }>; export type CreateKeyParams = z.infer; export type CreateKeyRequest = z.infer; export type CreateKeyResponse = z.infer; /** ****************************************************************************** * Archive Key ******************************************************************************* */ export declare const archiveKeyParams: z.ZodObject<{ _id: z.ZodString; }, "strip", z.ZodTypeAny, { _id: string; }, { _id: string; }>; export declare const archiveKeyRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ _id: z.ZodString; }, "strip", z.ZodTypeAny, { _id: string; }, { _id: string; }>; }, "strip", z.ZodTypeAny, { params: { _id: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { _id: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const archiveKeyResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; key: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; key?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; key?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; } | undefined; }>; export type ArchiveKeyParams = z.infer; export type ArchiveKeyRequest = z.infer; export type ArchiveKeyResponse = z.infer; /** ****************************************************************************** * Get Key ******************************************************************************* */ export declare const getKeyParams: z.ZodObject<{ keyId: z.ZodString; }, "strip", z.ZodTypeAny, { keyId: string; }, { keyId: string; }>; export declare const getKeyRequest: z.ZodObject<{ params: z.ZodObject<{ keyId: z.ZodString; }, "strip", z.ZodTypeAny, { keyId: string; }, { keyId: string; }>; }, "strip", z.ZodTypeAny, { params: { keyId: string; }; }, { params: { keyId: string; }; }>; export declare const getKeyResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; key: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; key?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; key?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; } | null | undefined; }>; export type GetKeyParams = z.infer; export type GetKeyRequest = z.infer; export type GetKeyResponse = z.infer; /** ****************************************************************************** * List Keys ******************************************************************************* */ export declare const listKeysParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const listKeysRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; }, "strip", z.ZodTypeAny, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const listKeysResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; keys: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }, { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; keys?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; keys?: { organizationId: string; _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; archived: boolean; key: string; lastUsedAt: string | null; }[] | undefined; }>; export type ListKeysParams = z.infer; export type ListKeysRequest = z.infer; export type ListKeysResponse = z.infer;