/** * 员工、岗位与权限(编码规范 §4 · `org`;语义出处 OS 02 员工管理)。 * * 权限按岗位授予:客体三类(数据 域.对象[.字段] / 治理功能 / 任务)× 动作三种(读 / 写 / 治理)。 * 任务负责人与被征答人对所涉内容**天然可见**,不另行授权。 * 单组织、≤50 人:不做多租户,不引 OAuth/OIDC(编码规范 §4 鉴权定调)。 */ import { z } from 'zod'; export declare const positionSchema: z.ZodObject<{ id: z.core.$ZodBranded; code: z.ZodString; name: z.ZodString; note: z.ZodOptional; }, z.core.$strip>; export type Position = z.infer; export declare const STAFF_STATES: readonly ["active", "disabled"]; export declare const staffStateSchema: z.ZodEnum<{ active: "active"; disabled: "disabled"; }>; export type StaffState = z.infer; export declare const staffSchema: z.ZodObject<{ id: z.core.$ZodBranded; account: z.ZodString; name: z.ZodString; positionId: z.core.$ZodBranded; state: z.ZodDefault>; }, z.core.$strip>; export type Staff = z.infer; export declare const GRANT_ACTIONS: readonly ["read", "write", "govern"]; export declare const grantActionSchema: z.ZodEnum<{ read: "read"; write: "write"; govern: "govern"; }>; export type GrantAction = z.infer; export declare const GRANT_ACTION_LABEL: Readonly>; /** 治理台九功能 —— 授权客体之一 */ export declare const GOVERNANCE_FUNCTIONS: readonly ["task", "staff", "process", "trigger", "activity", "tool", "data", "memory", "system"]; export declare const governanceFunctionSchema: z.ZodEnum<{ data: "data"; task: "task"; trigger: "trigger"; system: "system"; tool: "tool"; activity: "activity"; staff: "staff"; process: "process"; memory: "memory"; }>; export type GovernanceFunction = z.infer; export declare const GOVERNANCE_FUNCTION_LABEL: Readonly>; export declare const grantObjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"data">; domain: z.ZodString; object: z.ZodString; field: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"governance">; function: z.ZodEnum<{ data: "data"; task: "task"; trigger: "trigger"; system: "system"; tool: "tool"; activity: "activity"; staff: "staff"; process: "process"; memory: "memory"; }>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"task">; activityId: z.ZodOptional; }, z.core.$strip>], "kind">; export type GrantObject = z.infer; export declare const grantSchema: z.ZodObject<{ positionId: z.core.$ZodBranded; object: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"data">; domain: z.ZodString; object: z.ZodString; field: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"governance">; function: z.ZodEnum<{ data: "data"; task: "task"; trigger: "trigger"; system: "system"; tool: "tool"; activity: "activity"; staff: "staff"; process: "process"; memory: "memory"; }>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"task">; activityId: z.ZodOptional; }, z.core.$strip>], "kind">; action: z.ZodEnum<{ read: "read"; write: "write"; govern: "govern"; }>; }, z.core.$strip>; export type Grant = z.infer; /** 员工停用前,其在途任务与待答卡须先改派完毕 */ export declare const disableCheckSchema: z.ZodObject<{ staffId: z.core.$ZodBranded; blocked: z.ZodBoolean; openTasks: z.ZodDefault>>; openCards: z.ZodDefault>>; openApprovals: z.ZodDefault>>; }, z.core.$strip>; export type DisableCheck = z.infer; export declare const sessionSchema: z.ZodObject<{ staff: z.ZodObject<{ id: z.core.$ZodBranded; account: z.ZodString; name: z.ZodString; positionId: z.core.$ZodBranded; state: z.ZodDefault>; }, z.core.$strip>; position: z.ZodObject<{ id: z.core.$ZodBranded; code: z.ZodString; name: z.ZodString; note: z.ZodOptional; }, z.core.$strip>; grants: z.ZodArray; object: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"data">; domain: z.ZodString; object: z.ZodString; field: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"governance">; function: z.ZodEnum<{ data: "data"; task: "task"; trigger: "trigger"; system: "system"; tool: "tool"; activity: "activity"; staff: "staff"; process: "process"; memory: "memory"; }>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"task">; activityId: z.ZodOptional; }, z.core.$strip>], "kind">; action: z.ZodEnum<{ read: "read"; write: "write"; govern: "govern"; }>; }, z.core.$strip>>; }, z.core.$strip>; export type Session = z.infer;