UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

51 lines (50 loc) 1.66 kB
export const pathItems = { parameters: [ { name: 'token', in: 'path', description: 'The token of the invite.', required: true, schema: { type: 'string' }, }, ], post: { tags: ['app-invite'], description: 'Respond to a given invitation.', operationId: 'respondAppInvite', requestBody: { description: `The response of the invitation. If response is true, user will join the app. If response is false, the user declines the invite and the invite is removed.`, required: true, content: { 'application/json': { schema: { type: 'object', required: ['response'], properties: { response: { type: 'boolean', }, password: { type: 'string', minLength: 8, }, timezone: { enum: Intl.supportedValuesOf('timeZone'), }, locale: { type: 'string', }, }, }, }, }, }, responses: { 204: { description: 'The response has been processed.', }, }, }, }; //# sourceMappingURL=respond.js.map