UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

108 lines 3.77 kB
export const pathItems = { parameters: [{ $ref: '#/components/parameters/appId' }], get: { tags: ['app', 'invite'], description: 'Get a list of invited app members.', operationId: 'getAppInvites', responses: { 200: { description: 'The list of all invites.', content: { 'application/json': { schema: { type: 'array', items: { type: 'object', properties: { email: { type: 'string', format: 'email', }, role: { type: 'string', }, }, }, }, }, }, }, }, security: [{ studio: [] }], }, post: { tags: ['app', 'invite'], description: 'Invite a new app member to an app.', operationId: 'createAppInvites', parameters: [{ $ref: '#/components/parameters/selectedGroupId' }], requestBody: { description: 'The invite to create.', required: true, content: { 'application/json': { schema: { type: 'array', items: { type: 'object', required: ['email', 'role'], properties: { email: { type: 'string', format: 'email', description: 'The email address of the user to invite.', }, role: { type: 'string', description: 'The role to invite the user as.', }, }, }, }, }, }, }, responses: { 200: { description: 'The invited member', content: { 'application/json': { schema: { $ref: '#/components/schemas/AppMember', }, }, }, }, }, security: [{ studio: [] }, { app: ['app:write'] }], }, delete: { tags: ['app', 'invite'], description: 'Revoke an app member invitation.', operationId: 'deleteAppInvite', requestBody: { description: 'The email address to revoke the invite of.', required: true, content: { 'application/json': { schema: { type: 'object', required: ['email'], properties: { email: { type: 'string', format: 'email', }, }, }, }, }, }, responses: { 204: { description: 'The invitation has been successfully revoked.', }, }, security: [{ studio: [] }], }, }; //# sourceMappingURL=invites.js.map