Skip to content

Variable: RestrictJsonSchema ​

ts
const RestrictJsonSchema: ZodObject<{
  groups: ZodOptional<ZodArray<ZodObject<{
     name: ZodOptional<ZodString>;
     self: ZodOptional<ZodURL>;
  }, ApiObjectConfig<undefined>>>>;
  permissions: ZodOptional<ZodArray<ZodObject<{
     description: ZodOptional<ZodString>;
     id: ZodOptional<ZodString>;
     key: ZodOptional<ZodString>;
     name: ZodOptional<ZodString>;
     type: ZodOptional<ZodCustom<string & object | "PROJECT" | "GLOBAL", string & object | "PROJECT" | "GLOBAL">>;
  }, ApiObjectConfig<undefined>>>>;
}, ApiObjectConfig<undefined>>;

Defined in: src/server/models/restrictJson.ts:6