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: ZodCustom<... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ..., ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ...>;
restrictions: ZodObject<{
group: ...;
user: ...;
}, $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<...>>;
user: ZodOptional<ZodUnion<...>>;
}, $loose>;
}, $loose>>]>;
expand: ZodOptional<ZodArray<ZodCustom<
| "content"
| string & object
| "restrictions.user"
| "read.restrictions.user"
| "update.restrictions.user"
| "restrictions.group"
| "read.restrictions.group"
| "update.restrictions.group",
| "content"
| string & object
| "restrictions.user"
| "read.restrictions.user"
| "update.restrictions.user"
| "restrictions.group"
| "read.restrictions.group"
| "update.restrictions.group">>>;
id: ZodString;
}, $strip>;Defined in: src/v1/parameters/addRestrictions.ts:5