@vzeta/camunda-api-zod-schemas
Version:
Zod schemas and TypeScript types for Camunda 8 unified API
28 lines (27 loc) • 931 B
TypeScript
import { z } from 'zod';
import { Endpoint } from './common';
declare const currentUserSchema: z.ZodObject<{
username: z.ZodString;
displayName: z.ZodString;
email: z.ZodString;
authorizedComponents: z.ZodArray<z.ZodString>;
tenants: z.ZodArray<z.ZodObject<{
key: z.ZodNumber;
tenantId: z.ZodString;
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
groups: z.ZodArray<z.ZodString>;
roles: z.ZodArray<z.ZodString>;
salesPlanType: z.ZodNullable<z.ZodString>;
c8Links: z.ZodArray<z.ZodObject<{
name: z.ZodString;
link: z.ZodString;
}, z.core.$strip>>;
canLogout: z.ZodBoolean;
apiUser: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
type CurrentUser = z.infer<typeof currentUserSchema>;
declare const getCurrentUser: Endpoint;
export { currentUserSchema, getCurrentUser };
export type { CurrentUser };