Skip to content

Variable: ContentRestrictionUpdateSchema

ts
const ContentRestrictionUpdateSchema: ZodObject<{
  content: ZodOptional<ZodType<Content, unknown, $ZodTypeInternals<Content, unknown>>>;
  operation: ZodEnum<{
     administer: "administer";
     copy: "copy";
     create: "create";
     delete: "delete";
     export: "export";
     move: "move";
     purge: "purge";
     purge_version: "purge_version";
     read: "read";
     restore: "restore";
     update: "update";
     use: "use";
  }>;
  restrictions: ZodObject<{
     group: ZodOptional<ZodArray<ZodObject<{
        id: ZodOptional<ZodString>;
        type: ZodEnum<{
           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