Skip to content

Variable: ContentRestrictionUpdateSchema

ts
const ContentRestrictionUpdateSchema: ZodObject<{
  content: ZodOptional<ZodType<Content, unknown, $ZodTypeInternals<Content, unknown>>>;
  operation: ZodCustom<
     | "copy"
     | "move"
     | "use"
     | "update"
     | string & object
     | "delete"
     | "read"
     | "administer"
     | "create"
     | "export"
     | "purge"
     | "purge_version"
     | "restore", 
     | "copy"
     | "move"
     | "use"
     | "update"
     | string & object
     | "delete"
     | "read"
     | "administer"
     | "create"
     | "export"
     | "purge"
     | "purge_version"
    | "restore">;
  restrictions: ZodObject<{
     group: ZodOptional<ZodArray<ZodObject<{
        id: ZodOptional<ZodString>;
        type: ZodCustom<"group" | ... & ..., "group" | ... & ...>;
     }, $loose>>>;
     user: ZodOptional<ZodUnion<readonly [ZodArray<ZodType<User, unknown, $ZodTypeInternals<User, unknown>>>, ZodType<UserArray, unknown, $ZodTypeInternals<UserArray, unknown>>]>>;
  }, $loose>;
}, $loose>;

Defined in: src/v1/models/contentRestrictionUpdate.ts:7