Skip to content

Variable: AddRestrictionsSchema

ts
const AddRestrictionsSchema: ZodObject<{
  body: 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<..., ..., ...>>;
        operation: ZodEnum<{
           administer: ...;
           copy: ...;
           create: ...;
           delete: ...;
           export: ...;
           move: ...;
           purge: ...;
           purge_version: ...;
           read: ...;
           restore: ...;
           update: ...;
           use: ...;
        }>;
        restrictions: ZodObject<{
           group: ...;
           user: ...;
        }, $loose>;
     }, $loose>>;
     size: ZodOptional<ZodNumber>;
     start: ZodOptional<ZodNumber>;
   }, $loose>, ZodArray<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<...>>;
        user: ZodOptional<ZodUnion<...>>;
     }, $loose>;
  }, $loose>>]>;
  expand: ZodOptional<ZodArray<ZodEnum<{
     content: "content";
     read.restrictions.group: "read.restrictions.group";
     read.restrictions.user: "read.restrictions.user";
     restrictions.group: "restrictions.group";
     restrictions.user: "restrictions.user";
     update.restrictions.group: "update.restrictions.group";
     update.restrictions.user: "update.restrictions.user";
  }>>>;
  id: ZodString;
}, $strip>;

Defined in: src/v1/parameters/addRestrictions.ts:4