Skip to content

Variable: ContentRestrictionAddOrUpdateArraySchema

ts
const ContentRestrictionAddOrUpdateArraySchema: ZodUnion<readonly [ZodObject<{
  _links: ZodOptional<ZodObject<{
     base: ZodOptional<ZodString>;
     byOperation: ZodOptional<ZodString>;
     collection: ZodOptional<ZodString>;
     context: ZodOptional<ZodString>;
     download: ZodOptional<ZodString>;
     editui: ZodOptional<ZodString>;
     edituiv2: ZodOptional<ZodString>;
     next: ZodOptional<ZodString>;
     prev: ZodOptional<ZodString>;
     self: ZodOptional<ZodString>;
     tinyui: ZodOptional<ZodString>;
     webui: ZodOptional<ZodString>;
  }, $loose>>;
  limit: ZodOptional<ZodNumber>;
  restrictionsHash: ZodOptional<ZodString>;
  results: ZodArray<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<...>>;
        user: ZodOptional<ZodUnion<...>>;
     }, $loose>;
  }, $loose>>;
  size: ZodOptional<ZodNumber>;
  start: ZodOptional<ZodNumber>;
}, $loose>, ZodArray<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: ...;
        type: ...;
     }, $loose>>>;
     user: ZodOptional<ZodUnion<readonly [ZodArray<...>, ZodType<..., ..., ...>]>>;
  }, $loose>;
}, $loose>>]>;

Defined in: src/v1/models/contentRestrictionAddOrUpdateArray.ts:6