Variable: SpacePermissionCreateSchema
ts
const SpacePermissionCreateSchema: ZodObject<{
anonymousAccess: ZodBoolean;
operation: ZodObject<{
operation: ZodString;
targetType: ZodString;
}, $loose>;
subjects: ZodOptional<ZodObject<{
group: ZodOptional<ZodObject<{
results: ZodArray<ZodObject<{
id: ...;
type: ...;
}, $loose>>;
size: ZodNumber;
}, $loose>>;
user: ZodOptional<ZodObject<{
results: ZodArray<ZodType<User, unknown, $ZodTypeInternals<..., ...>>>;
size: ZodNumber;
}, $loose>>;
}, $loose>>;
unlicensedAccess: ZodBoolean;
}, $loose>;Defined in: src/v1/models/spacePermissionCreate.ts:19
This object represents a permission for given space. Permissions consist of* at least one operation object with an accompanying subjects object.*
The following combinations of operation and targetType values are* valid for the operation object:*
- 'create': 'page', 'blogpost', 'comment', 'attachment'*
- 'read': 'space'*
- 'delete': 'page', 'blogpost', 'comment', 'attachment'*
- 'export': 'space'*
- 'administer': 'space'