Skip to content

Variable: SpacePermissionCreateSchema ​

ts
const SpacePermissionCreateSchema: ZodObject<{
  anonymousAccess: ZodBoolean;
  operation: ZodObject<{
     operation: ZodString;
     targetType: ZodString;
  }, ApiObjectConfig<undefined>>;
  subjects: ZodOptional<ZodObject<{
     group: ZodOptional<ZodObject<{
        results: ZodArray<ZodObject<{
           id: ...;
           type: ...;
        }, ApiObjectConfig<...>>>;
        size: ZodNumber;
     }, ApiObjectConfig<undefined>>>;
     user: ZodOptional<ZodObject<{
        results: ZodArray<ZodType<User, unknown, $ZodTypeInternals<..., ...>>>;
        size: ZodNumber;
     }, ApiObjectConfig<undefined>>>;
  }, ApiObjectConfig<undefined>>>;
  unlicensedAccess: ZodBoolean;
}, ApiObjectConfig<undefined>>;

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'