diff --git a/.github/workflows/check-oas-updates.yml b/.github/workflows/check-oas-updates.yml index 9addc10f..9d21f69c 100644 --- a/.github/workflows/check-oas-updates.yml +++ b/.github/workflows/check-oas-updates.yml @@ -33,7 +33,7 @@ jobs: - name: Check for OAS changes id: check-oas-changes run: | - if [[ -n "$(git status --porcelain .oas/)" ]]; then + if [[ -n "$(git status --porcelain src/openapi/generated/)" ]]; then echo "changes=true" >> $GITHUB_OUTPUT echo "::notice::OAS changes detected" else diff --git a/src/openapi/generated/ats.ts b/src/openapi/generated/ats.ts index a1ea04ab..4b93d9f6 100644 --- a/src/openapi/generated/ats.ts +++ b/src/openapi/generated/ats.ts @@ -197,9 +197,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -211,18 +245,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -288,9 +387,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -302,18 +435,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -426,9 +624,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -440,18 +672,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -512,32 +809,131 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -706,9 +1102,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -720,18 +1150,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -807,9 +1302,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -821,18 +1350,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -895,9 +1489,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -909,18 +1537,83 @@ export const atsSpec = { }, }, }, - }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1020,9 +1713,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1034,18 +1761,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1214,9 +2006,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1228,18 +2054,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1352,9 +2243,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1366,18 +2291,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1546,9 +2536,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1560,18 +2584,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1645,9 +2734,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1659,18 +2782,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1770,9 +2958,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1784,22 +3006,87 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', - }, - }, - security: [ - { + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { basic: [], }, ], @@ -1864,9 +3151,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1878,18 +3199,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2057,9 +3443,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2071,18 +3491,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2195,9 +3680,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2209,18 +3728,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2284,9 +3868,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2298,18 +3916,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2383,9 +4066,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2397,18 +4114,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2582,9 +4364,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2596,18 +4412,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2720,9 +4601,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2734,18 +4649,83 @@ export const atsSpec = { }, }, }, - }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2929,9 +4909,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2943,18 +4957,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3020,9 +5099,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3034,18 +5147,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3147,9 +5325,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3161,18 +5373,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', - }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3233,9 +5510,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3247,18 +5558,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3427,9 +5803,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3441,18 +5851,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3526,9 +6001,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3540,21 +6049,86 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', - }, - }, - security: [ + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ { basic: [], }, @@ -3651,9 +6225,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3665,18 +6273,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3824,9 +6497,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3838,18 +6545,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4018,9 +6790,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4032,18 +6838,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4191,10 +7062,44 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', - }, '408': { description: 'The request has timed out.', headers: { @@ -4205,18 +7110,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4385,9 +7355,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4399,18 +7403,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4558,9 +7627,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4572,18 +7675,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4752,9 +7920,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4766,18 +7968,83 @@ export const atsSpec = { }, }, }, - }, - '412': { + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4936,9 +8203,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4950,18 +8251,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5064,9 +8430,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5078,18 +8478,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5248,9 +8713,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5262,18 +8761,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', - }, - '500': { + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5376,9 +8940,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5390,18 +8988,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5569,9 +9232,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5583,18 +9280,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5698,9 +9460,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5712,20 +9508,85 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', - }, - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, security: [ { basic: [], @@ -5926,9 +9787,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5940,18 +9835,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6017,9 +9977,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6031,18 +10025,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6155,9 +10214,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6169,18 +10262,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6241,11 +10399,45 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', - }, - '408': { + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { description: 'The request has timed out.', headers: { 'Retry-After': { @@ -6255,18 +10447,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6414,9 +10671,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6428,18 +10719,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6542,9 +10898,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6556,18 +10946,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6726,9 +11181,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6740,18 +11229,83 @@ export const atsSpec = { }, }, }, - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6854,9 +11408,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6868,18 +11456,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7038,9 +11691,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7052,18 +11739,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7166,9 +11918,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7180,18 +11966,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7350,9 +12201,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7364,18 +12249,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7478,9 +12428,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7492,18 +12476,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7682,9 +12731,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7696,19 +12779,84 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, }, security: [ { @@ -7822,9 +12970,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7836,18 +13018,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8007,9 +13254,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -8021,18 +13302,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8098,9 +13444,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -8112,18 +13492,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8214,32 +13659,131 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', - }, - '403': { - description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', schema: { type: 'string', }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8382,9 +13926,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -8396,18 +13974,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8507,9 +14150,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -8521,18 +14198,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8587,32 +14329,131 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/UnauthorizedResponse', }, }, }, }, - '412': { + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8701,9 +14542,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -8715,18 +14590,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8789,9 +14729,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -8803,18 +14777,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8905,32 +14944,131 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/ForbiddenResponse', }, }, }, }, - '412': { + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9074,9 +15212,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9088,18 +15260,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9165,9 +15402,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9179,18 +15450,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9278,9 +15614,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9292,18 +15662,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9364,9 +15799,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9378,18 +15847,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9440,9 +15974,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9454,18 +16022,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9610,9 +16243,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9624,18 +16291,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', - }, - '501': { + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9701,9 +16433,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9715,18 +16481,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9815,9 +16646,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9829,18 +16694,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -9903,9 +16833,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -9917,18 +16881,83 @@ export const atsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -10019,9 +17048,43 @@ export const atsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -10029,22 +17092,87 @@ export const atsSpec = { 'Retry-After': { description: 'A time in seconds after which the request can be retried.', schema: { - type: 'string', + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, - '429': { - description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', - }, - '501': { - description: 'This functionality is not implemented.', + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -12659,6 +19787,67 @@ export const atsSpec = { }, required: ['data'], }, + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Candidate: { type: 'object', properties: { @@ -12990,6 +20179,28 @@ export const atsSpec = { }, }, }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Content: { type: 'object', properties: { @@ -15028,6 +22239,50 @@ export const atsSpec = { }, }, }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Interview: { type: 'object', properties: { @@ -16737,6 +23992,50 @@ export const atsSpec = { }, }, }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotImplementedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Offer: { type: 'object', properties: { @@ -17375,6 +24674,62 @@ export const atsSpec = { }, }, }, + PreconditionFailedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Precondition failed', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ProviderError: { + type: 'object', + properties: { + status: { + type: 'number', + description: 'HTTP status code of the provider error', + example: 400, + nullable: true, + }, + url: { + type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', + nullable: true, + }, + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, ProviderErrorApiModel: { type: 'object', properties: { @@ -17759,6 +25114,28 @@ export const atsSpec = { }, }, }, + RequestTimedOutResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, ResultCandidateApiModel: { type: 'object', properties: { @@ -18242,6 +25619,76 @@ export const atsSpec = { }, }, }, + TooManyRequestsResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Too many requests', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unauthorized', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnifiedError: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + nullable: true, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, UnifiedUploadCategoryEnumApiModel: { type: 'object', properties: { @@ -18328,6 +25775,28 @@ export const atsSpec = { }, }, }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unprocessable Entity', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, UpdatePackage: { type: 'object', properties: { diff --git a/src/openapi/generated/crm.ts b/src/openapi/generated/crm.ts index 69747463..eb2673da 100644 --- a/src/openapi/generated/crm.ts +++ b/src/openapi/generated/crm.ts @@ -145,9 +145,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -159,18 +193,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -236,9 +335,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -250,18 +383,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -363,9 +561,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -377,18 +609,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -449,9 +746,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -463,18 +794,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -623,9 +1019,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -637,18 +1067,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -752,9 +1247,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -762,23 +1291,88 @@ export const crmSpec = { 'Retry-After': { description: 'A time in seconds after which the request can be retried.', schema: { - type: 'string', + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, - '429': { - description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', - }, - '501': { - description: 'This functionality is not implemented.', - }, }, security: [ { @@ -925,9 +1519,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -939,18 +1567,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1053,9 +1746,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1067,18 +1794,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1226,9 +2018,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1240,19 +2066,84 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, - '429': { - description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', - }, - '501': { - description: 'This functionality is not implemented.', - }, }, security: [ { @@ -1420,9 +2311,43 @@ export const crmSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1434,18 +2359,83 @@ export const crmSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1684,6 +2674,89 @@ export const crmSpec = { }, required: ['data'], }, + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Contact: { type: 'object', properties: { @@ -2425,6 +3498,50 @@ export const crmSpec = { }, }, }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, List: { type: 'object', properties: { @@ -2619,6 +3736,106 @@ export const crmSpec = { }, }, }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotImplementedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + PreconditionFailedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Precondition failed', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ProviderError: { + type: 'object', + properties: { + status: { + type: 'number', + description: 'HTTP status code of the provider error', + example: 400, + nullable: true, + }, + url: { + type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', + nullable: true, + }, + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, RawResponse: { type: 'object', properties: { @@ -2665,6 +3882,120 @@ export const crmSpec = { }, required: ['method', 'url'], }, + RequestTimedOutResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + TooManyRequestsResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Too many requests', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unauthorized', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnifiedError: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + nullable: true, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unprocessable Entity', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, }, }, }; diff --git a/src/openapi/generated/documents.ts b/src/openapi/generated/documents.ts index 5826957e..659d7fe3 100644 --- a/src/openapi/generated/documents.ts +++ b/src/openapi/generated/documents.ts @@ -50,9 +50,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -64,18 +98,83 @@ export const documentsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -130,9 +229,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -144,18 +277,83 @@ export const documentsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -300,9 +498,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -314,18 +546,83 @@ export const documentsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -429,9 +726,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -443,18 +774,83 @@ export const documentsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -509,9 +905,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -523,18 +953,83 @@ export const documentsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -685,39 +1180,138 @@ export const documentsSpec = { content: { 'application/json': { schema: { - $ref: '#/components/schemas/FoldersPaginated', + $ref: '#/components/schemas/FoldersPaginated', + }, + }, + }, + }, + '400': { + description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', }, }, }, }, - '400': { - description: 'Invalid request.', - }, - '403': { - description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + '422': { + description: 'Validation error.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/UnprocessableEntityResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -821,9 +1415,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -835,18 +1463,83 @@ export const documentsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -990,9 +1683,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1004,18 +1731,83 @@ export const documentsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1118,9 +1910,43 @@ export const documentsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1128,22 +1954,87 @@ export const documentsSpec = { 'Retry-After': { description: 'A time in seconds after which the request can be retried.', schema: { - type: 'string', + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1195,6 +2086,67 @@ export const documentsSpec = { }, }, schemas: { + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, ConfidentialEnumApiModel: { type: 'object', properties: { @@ -1230,6 +2182,28 @@ export const documentsSpec = { }, }, }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, DocumentsFilesSearchRequestDto: { type: 'object', properties: { @@ -2906,6 +3880,94 @@ export const documentsSpec = { }, required: ['data'], }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotImplementedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, OperationTypeEnumApiModel: { type: 'object', properties: { @@ -2942,6 +4004,62 @@ export const documentsSpec = { }, }, }, + PreconditionFailedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Precondition failed', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ProviderError: { + type: 'object', + properties: { + status: { + type: 'number', + description: 'HTTP status code of the provider error', + example: 400, + nullable: true, + }, + url: { + type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', + nullable: true, + }, + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, ProviderErrorApiModel: { type: 'object', properties: { @@ -3017,6 +4135,98 @@ export const documentsSpec = { }, required: ['method', 'url'], }, + RequestTimedOutResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + TooManyRequestsResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Too many requests', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unauthorized', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnifiedError: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + nullable: true, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, UnifiedSearchParamsRequestDto: { type: 'object', properties: { @@ -3159,6 +4369,28 @@ export const documentsSpec = { }, }, }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unprocessable Entity', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, WriteResultApiModel: { type: 'object', properties: { diff --git a/src/openapi/generated/hris.ts b/src/openapi/generated/hris.ts index 149fc8e7..00db49c0 100644 --- a/src/openapi/generated/hris.ts +++ b/src/openapi/generated/hris.ts @@ -133,9 +133,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -147,18 +181,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -261,9 +360,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -275,18 +408,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -434,9 +632,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -448,18 +680,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -615,32 +912,131 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -821,9 +1217,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -835,18 +1265,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -916,9 +1411,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -930,18 +1459,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1054,9 +1648,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1068,18 +1696,83 @@ export const hrisSpec = { }, }, }, - }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1133,16 +1826,50 @@ export const hrisSpec = { content: { 'application/json': { schema: { - $ref: '#/components/schemas/UpdateEmployeeApiModel', + $ref: '#/components/schemas/UpdateResult', }, }, }, }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1154,18 +1881,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1228,9 +2020,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1242,18 +2068,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1326,7 +2217,7 @@ export const hrisSpec = { schema: { nullable: true, example: - 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at', + 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at,policy', type: 'string', }, }, @@ -1404,6 +2295,17 @@ export const hrisSpec = { type: 'string', }, }, + { + name: 'expand', + required: false, + in: 'query', + description: 'The comma separated list of fields that will be expanded in the response', + schema: { + nullable: true, + example: 'policy', + type: 'string', + }, + }, ], responses: { '200': { @@ -1419,9 +2321,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1433,18 +2369,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, - '429': { + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1518,9 +2519,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1532,18 +2567,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1624,7 +2724,18 @@ export const hrisSpec = { schema: { nullable: true, example: - 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at', + 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at,policy', + type: 'string', + }, + }, + { + name: 'expand', + required: false, + in: 'query', + description: 'The comma separated list of fields that will be expanded in the response', + schema: { + nullable: true, + example: 'policy', type: 'string', }, }, @@ -1643,9 +2754,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1657,18 +2802,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1737,9 +2947,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1751,18 +2995,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', - }, - '429': { - description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1825,9 +3134,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1839,18 +3182,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1914,9 +3322,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1928,18 +3370,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2013,9 +3520,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2027,18 +3568,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', - }, - '501': { - description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2196,9 +3802,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2210,18 +3850,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2334,9 +4039,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2348,18 +4087,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2507,9 +4311,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2521,18 +4359,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2635,9 +4538,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', - }, - '403': { - description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2649,18 +4586,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2817,9 +4819,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2831,18 +4867,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2916,9 +5017,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2930,18 +5065,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3040,32 +5240,131 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', }, }, }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3127,9 +5426,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3141,18 +5474,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3331,9 +5729,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3345,18 +5777,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3480,9 +5977,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3494,18 +6025,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, }, - '412': { + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3665,9 +6261,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3679,18 +6309,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3805,9 +6500,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3819,18 +6548,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3998,9 +6792,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4012,18 +6840,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4097,9 +6990,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4111,18 +7038,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4232,9 +7224,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4246,18 +7272,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4326,9 +7417,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4340,22 +7465,87 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, }, - }, - security: [ - { + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { basic: [], }, ], @@ -4500,9 +7690,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4514,18 +7738,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4629,9 +7918,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4643,18 +7966,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4719,7 +8107,7 @@ export const hrisSpec = { schema: { nullable: true, example: - 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at', + 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at,policy', type: 'string', }, }, @@ -4797,6 +8185,17 @@ export const hrisSpec = { type: 'string', }, }, + { + name: 'expand', + required: false, + in: 'query', + description: 'The comma separated list of fields that will be expanded in the response', + schema: { + nullable: true, + example: 'policy', + type: 'string', + }, + }, ], responses: { '200': { @@ -4811,9 +8210,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -4825,18 +8258,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -4903,10 +8401,44 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', - }, - '403': { - description: 'Forbidden.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, '408': { description: 'The request has timed out.', headers: { @@ -4917,18 +8449,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5001,7 +8598,18 @@ export const hrisSpec = { schema: { nullable: true, example: - 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at', + 'id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,time_off_policy_id,remote_time_off_policy_id,reason,created_at,updated_at,policy', + type: 'string', + }, + }, + { + name: 'expand', + required: false, + in: 'query', + description: 'The comma separated list of fields that will be expanded in the response', + schema: { + nullable: true, + example: 'policy', type: 'string', }, }, @@ -5019,9 +8627,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5033,18 +8675,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5106,9 +8813,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5120,18 +8861,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5280,11 +9086,45 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', - }, - '408': { + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { description: 'The request has timed out.', headers: { 'Retry-After': { @@ -5294,18 +9134,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5409,9 +9314,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5423,18 +9362,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5603,9 +9607,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5617,18 +9655,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5732,9 +9835,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5746,18 +9883,83 @@ export const hrisSpec = { }, }, }, - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -5905,9 +10107,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -5919,18 +10155,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6033,9 +10334,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6047,18 +10382,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6207,9 +10607,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6221,18 +10655,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6393,9 +10892,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6407,18 +10940,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6580,9 +11178,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6594,18 +11226,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -6767,9 +11464,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6781,19 +11512,84 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, }, security: [ { @@ -6896,9 +11692,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -6910,18 +11740,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7011,9 +11906,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7025,18 +11954,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7127,9 +12121,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7141,18 +12169,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7243,32 +12336,131 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', - }, - '403': { - description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', schema: { type: 'string', }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7417,9 +12609,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7431,18 +12657,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7546,9 +12837,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7560,18 +12885,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7728,32 +13118,131 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/UnauthorizedResponse', }, }, }, }, - '412': { + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7827,9 +13316,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7841,18 +13364,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -7951,9 +13539,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -7965,18 +13587,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8125,32 +13812,131 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/ForbiddenResponse', }, }, }, }, - '412': { + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8254,9 +14040,43 @@ export const hrisSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -8268,18 +14088,83 @@ export const hrisSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -8297,106 +14182,462 @@ export const hrisSpec = { }, }, }, - }, - info: { - title: 'HRIS', - description: 'The documentation for the StackOne Unified API - HRIS', - version: '1.0.0', - contact: {}, - }, - tags: [ - { - name: 'Benefits', - description: '', - }, - { - name: 'Companies', - description: '', - }, - { - name: 'Custom Field Definitions', - description: '', - }, - { - name: 'Documents', - description: '', - }, - { - name: 'Employees', - description: '', - }, - { - name: 'Employments', - description: '', - }, - { - name: 'Groups', - description: '', - }, - { - name: 'Jobs', - description: '', - }, - { - name: 'Locations', - description: '', - }, - { - name: 'Skills', - description: '', - }, - { - name: 'Time Entries', - description: '', - }, - { - name: 'Time Off', - description: '', - }, - { - name: 'Time Off Balances', - description: '', - }, - { - name: 'Time Off Policies', - description: '', - }, - { - name: 'Work Eligibility', - description: '', - }, - ], - servers: [ - { - url: 'https://api.stackone.com', - }, - ], - components: { - securitySchemes: { - basic: { - type: 'http', - scheme: 'basic', - }, - }, - schemas: { - BatchResultApiModel: { - type: 'object', - properties: { - statusCode: { - type: 'number', - example: 202, - nullable: true, - }, - message: { - type: 'string', - example: 'Batch operation accepted', - nullable: true, + '/unified/hris/employees/{id}/time_off_policies': { + get: { + operationId: 'hris_list_employee_time_off_policies', + parameters: [ + { + name: 'x-account-id', + in: 'header', + description: 'The account identifier', + required: true, + schema: { + type: 'string', + }, }, - timestamp: { - type: 'string', - example: '2021-01-01T01:01:01.000Z', - format: 'date-time', - nullable: true, + { + name: 'id', + required: true, + in: 'path', + schema: { + type: 'string', + }, + }, + { + name: 'raw', + required: false, + in: 'query', + description: + 'Indicates that the raw request result should be returned in addition to the mapped result (default value is false)', + schema: { + nullable: true, + type: 'boolean', + }, + }, + { + name: 'proxy', + required: false, + in: 'query', + description: + "Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key", + style: 'deepObject', + explode: true, + schema: { + additionalProperties: true, + nullable: true, + type: 'object', + }, + }, + { + name: 'fields', + required: false, + in: 'query', + description: + 'The comma separated list of fields that will be returned in the response (if empty, all fields are returned)', + schema: { + nullable: true, + example: + 'id,remote_id,name,description,type,duration_unit,reasons,updated_at,created_at', + type: 'string', + }, + }, + { + name: 'filter', + required: false, + in: 'query', + description: 'Filter parameters that allow greater customisation of the list response', + explode: true, + style: 'deepObject', + schema: { + properties: { + updated_after: { + description: + 'Use a string with a date to only select results updated after that given date', + example: '2020-01-01T00:00:00.000Z', + type: 'string', + nullable: true, + additionalProperties: false, + }, + }, + nullable: true, + type: 'object', + }, + }, + { + name: 'page', + required: false, + in: 'query', + description: 'The page number of the results to fetch', + deprecated: true, + schema: { + nullable: true, + type: 'string', + }, + }, + { + name: 'page_size', + required: false, + in: 'query', + description: 'The number of results per page (default value is 25)', + schema: { + nullable: true, + type: 'string', + }, + }, + { + name: 'next', + required: false, + in: 'query', + description: 'The unified cursor', + schema: { + nullable: true, + type: 'string', + }, + }, + { + name: 'updated_after', + required: false, + in: 'query', + description: + 'Use a string with a date to only select results updated after that given date', + deprecated: true, + schema: { + nullable: true, + example: '2020-01-01T00:00:00.000Z', + type: 'string', + }, + }, + ], + responses: { + '200': { + description: + 'The time off policies related to the employee with the given identifier were retrieved.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TimeOffPoliciesPaginated', + }, + }, + }, + }, + '400': { + description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { + basic: [], + }, + ], + summary: 'List Assigned Time Off Policies', + tags: ['Employees', 'Time Off Policies'], + 'x-speakeasy-group': 'hris', + 'x-speakeasy-name-override': 'list_employee_time_off_policies', + 'x-speakeasy-pagination': { + type: 'cursor', + inputs: [ + { + name: 'next', + in: 'parameters', + type: 'cursor', + }, + ], + outputs: { + nextCursor: '$.next', + }, + }, + 'x-speakeasy-retries': { + statusCodes: [429, 408], + strategy: 'backoff', + }, + }, + }, + }, + info: { + title: 'HRIS', + description: 'The documentation for the StackOne Unified API - HRIS', + version: '1.0.0', + contact: {}, + }, + tags: [ + { + name: 'Benefits', + description: '', + }, + { + name: 'Companies', + description: '', + }, + { + name: 'Custom Field Definitions', + description: '', + }, + { + name: 'Documents', + description: '', + }, + { + name: 'Employees', + description: '', + }, + { + name: 'Employments', + description: '', + }, + { + name: 'Groups', + description: '', + }, + { + name: 'Jobs', + description: '', + }, + { + name: 'Locations', + description: '', + }, + { + name: 'Skills', + description: '', + }, + { + name: 'Time Entries', + description: '', + }, + { + name: 'Time Off', + description: '', + }, + { + name: 'Time Off Balances', + description: '', + }, + { + name: 'Time Off Policies', + description: '', + }, + { + name: 'Work Eligibility', + description: '', + }, + ], + servers: [ + { + url: 'https://api.stackone.com', + }, + ], + components: { + securitySchemes: { + basic: { + type: 'http', + scheme: 'basic', + }, + }, + schemas: { + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BatchResultApiModel: { + type: 'object', + properties: { + statusCode: { + type: 'number', + example: 202, + nullable: true, + }, + message: { + type: 'string', + example: 'Batch operation accepted', + nullable: true, + }, + timestamp: { + type: 'string', + example: '2021-01-01T01:01:01.000Z', + format: 'date-time', + nullable: true, }, errors: { type: 'array', @@ -8590,6 +14831,28 @@ export const hrisSpec = { }, }, }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Content: { type: 'object', properties: { @@ -11954,6 +18217,28 @@ export const hrisSpec = { }, }, }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, GenderEnum: { type: 'object', properties: { @@ -14049,6 +20334,28 @@ export const hrisSpec = { }, }, }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, InviteEmployeeResult: { type: 'object', properties: { @@ -14990,6 +21297,7 @@ export const hrisSpec = { 'ein', 'other', 'unknown', + 'unmapped_value', null, ], description: 'The type of the national identity number', @@ -15020,6 +21328,50 @@ export const hrisSpec = { }, }, }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotImplementedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, PayFrequencyEnum: { type: 'object', properties: { @@ -15113,6 +21465,28 @@ export const hrisSpec = { }, }, }, + PreconditionFailedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Precondition failed', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, PreferredLanguageEnum: { type: 'object', properties: { @@ -15298,6 +21672,40 @@ export const hrisSpec = { }, }, }, + ProviderError: { + type: 'object', + properties: { + status: { + type: 'number', + description: 'HTTP status code of the provider error', + example: 400, + nullable: true, + }, + url: { + type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', + nullable: true, + }, + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, ProviderErrorApiModel: { type: 'object', properties: { @@ -15475,6 +21883,28 @@ export const hrisSpec = { }, required: ['data'], }, + RequestTimedOutResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, RoleTypeEnum: { type: 'object', properties: { @@ -15876,6 +22306,15 @@ export const hrisSpec = { format: 'date-time', nullable: true, }, + policy: { + description: 'The time off policy associated with Time Off', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/TimeOffPolicies', + }, + ], + }, }, }, TimeOffBalanceResult: { @@ -16106,7 +22545,6 @@ export const hrisSpec = { }, type: { description: 'The type of this policy', - example: 'holiday', nullable: true, allOf: [ { @@ -16116,7 +22554,6 @@ export const hrisSpec = { }, duration_unit: { description: 'The duration unit of the current policy', - example: 'hours', nullable: true, allOf: [ { @@ -16254,7 +22691,15 @@ export const hrisSpec = { properties: { value: { type: 'string', - enum: ['approved', 'cancelled', 'rejected', 'pending', 'unmapped_value', null], + enum: [ + 'approved', + 'cancelled', + 'rejected', + 'pending', + 'deleted', + 'unmapped_value', + null, + ], 'x-speakeasy-unknown-values': 'allow', nullable: true, }, @@ -16324,405 +22769,218 @@ export const hrisSpec = { type: 'object', }, { - type: 'array', - items: {}, - }, - ], - nullable: true, - }, - }, - }, - TypeApiModel: { - type: 'object', - properties: { - id: { - type: 'string', - description: 'Unique identifier', - example: '8187e5da-dc77-475e-9949-af0f1fa4e4e3', - nullable: true, - }, - remote_id: { - type: 'string', - description: "Provider's unique identifier", - example: '8187e5da-dc77-475e-9949-af0f1fa4e4e3', - nullable: true, - }, - label: { - type: 'string', - description: 'The label of the employment type', - example: 'Permanent', - nullable: true, - }, - type: { - description: 'The type of employment (e.g., contractor, permanent)', - example: 'permanent', - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/TypeEnum', - }, - ], - }, - }, - }, - TypeEnum: { - type: 'object', - properties: { - value: { - type: 'string', - enum: [ - 'contractor', - 'intern', - 'permanent', - 'apprentice', - 'freelance', - 'terminated', - 'temporary', - 'seasonal', - 'volunteer', - 'probation', - 'internal', - 'external', - 'expatriate', - 'employer_of_record', - 'casual', - 'Programme', - 'unmapped_value', - null, - ], - 'x-speakeasy-unknown-values': 'allow', - nullable: true, - }, - source_value: { - oneOf: [ - { - type: 'string', - }, - { - type: 'number', - }, - { - type: 'boolean', - }, - { - type: 'object', - }, - { - type: 'array', - items: {}, - }, - ], - nullable: true, - }, - }, - }, - UnifiedWarningApiModel: { - type: 'object', - properties: { - message: { - type: 'string', - example: 'The provided field type is not supported in the current model.', - nullable: true, - }, - }, - }, - UpdateEmployeeApiModel: { - type: 'object', - properties: { - first_name: { - type: 'string', - description: 'The employee first name', - example: 'Isaac', - nullable: true, - }, - last_name: { - type: 'string', - description: 'The employee last name', - example: 'Newton', - nullable: true, - }, - name: { - type: 'string', - description: 'The employee name', - example: 'Isaac Newton', - nullable: true, - }, - display_name: { - type: 'string', - description: 'The employee display name', - example: 'Sir Isaac Newton', - nullable: true, - }, - avatar_url: { - type: 'string', - description: 'The employee avatar Url', - example: 'https://example.com/avatar.png', - nullable: true, - }, - personal_email: { - type: 'string', - description: 'The employee personal email', - example: 'isaac.newton@example.com', - nullable: true, - }, - personal_phone_number: { - type: 'string', - description: 'The employee personal phone number', - example: '+1234567890', - nullable: true, - }, - work_email: { - type: 'string', - description: 'The employee work email', - example: 'newton@example.com', - nullable: true, - }, - work_phone_number: { - type: 'string', - description: 'The employee work phone number', - example: '+1234567890', - nullable: true, - }, - job_id: { - type: 'string', - description: 'The employee job id', - example: 'R-6789', - nullable: true, - }, - job_title: { - type: 'string', - description: 'The employee job title', - example: 'Physicist', - nullable: true, - }, - department_id: { - type: 'string', - description: 'The employee department id', - example: '3093', - nullable: true, - }, - team_id: { - type: 'string', - description: 'The employee team id', - example: '2913', - nullable: true, - }, - department: { - type: 'string', - description: 'The employee department', - example: 'Physics', - nullable: true, - }, - manager_id: { - type: 'string', - description: 'The employee manager ID', - example: '67890', - nullable: true, - }, - gender: { - description: 'The employee gender', - example: 'male', - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/GenderEnum', - }, - ], - }, - preferred_language: { - description: 'The employee preferred language', - example: 'en_US', - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/PreferredLanguageEnum', - }, - ], - }, - ethnicity: { - description: 'The employee ethnicity', - example: 'white', - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/EthnicityEnum', + type: 'array', + items: {}, }, ], + nullable: true, }, - date_of_birth: { + }, + }, + TooManyRequestsResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, + }, + message: { type: 'string', - description: 'The employee date_of_birth', - example: '1990-01-01T00:00.000Z', - format: 'date-time', - nullable: true, + description: 'Error message', + example: 'Too many requests', }, - birthday: { + timestamp: { type: 'string', - description: 'The employee birthday', - example: '2021-01-01T00:00:00Z', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', format: 'date-time', - nullable: true, - }, - marital_status: { - description: 'The employee marital status', - example: 'single', - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/MaritalStatusEnum', - }, - ], }, - avatar: { - description: 'The employee avatar', - example: 'https://example.com/avatar.png', + }, + required: ['statusCode', 'message', 'timestamp'], + }, + TypeApiModel: { + type: 'object', + properties: { + id: { + type: 'string', + description: 'Unique identifier', + example: '8187e5da-dc77-475e-9949-af0f1fa4e4e3', nullable: true, - allOf: [ - { - $ref: '#/components/schemas/Image', - }, - ], }, - hire_date: { + remote_id: { type: 'string', - description: 'The employee hire date', - example: '2021-01-01T00:00.000Z', - format: 'date-time', + description: "Provider's unique identifier", + example: '8187e5da-dc77-475e-9949-af0f1fa4e4e3', nullable: true, }, - start_date: { + label: { type: 'string', - description: 'The employee start date', - example: '2021-01-01T00:00.000Z', - format: 'date-time', + description: 'The label of the employment type', + example: 'Permanent', nullable: true, }, - employment_type: { - description: 'The employee employment type', - example: 'full_time', + type: { + description: 'The type of employment (e.g., contractor, permanent)', + example: 'permanent', nullable: true, allOf: [ { - $ref: '#/components/schemas/EmploymentTypeEnum', + $ref: '#/components/schemas/TypeEnum', }, ], }, - employment_contract_type: { - description: 'The employment work schedule type (e.g., full-time, part-time)', - example: 'full_time', + }, + }, + TypeEnum: { + type: 'object', + properties: { + value: { + type: 'string', + enum: [ + 'contractor', + 'intern', + 'permanent', + 'apprentice', + 'freelance', + 'terminated', + 'temporary', + 'seasonal', + 'volunteer', + 'probation', + 'internal', + 'external', + 'expatriate', + 'employer_of_record', + 'casual', + 'Programme', + 'unmapped_value', + null, + ], + 'x-speakeasy-unknown-values': 'allow', nullable: true, - allOf: [ + }, + source_value: { + oneOf: [ { - $ref: '#/components/schemas/EmploymentScheduleTypeEnum', + type: 'string', }, - ], - }, - employment_status: { - description: 'The employee employment status', - example: 'active', - nullable: true, - allOf: [ { - $ref: '#/components/schemas/EmploymentStatusEnum', + type: 'number', + }, + { + type: 'boolean', + }, + { + type: 'object', + }, + { + type: 'array', + items: {}, }, ], + nullable: true, }, - termination_date: { + }, + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, + }, + message: { type: 'string', - description: 'The employee termination date', - example: '2021-01-01T00:00:00Z', - format: 'date-time', - nullable: true, + description: 'Error message', + example: 'Unauthorized', }, - company_name: { + timestamp: { type: 'string', - description: 'The employee company name', - example: 'Example Corp', - deprecated: true, + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnifiedError: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, nullable: true, }, - company_id: { + message: { type: 'string', - description: 'The employee company id', - example: '1234567890', + description: 'Error message', + example: 'Bad Request', nullable: true, }, - citizenships: { - description: 'The citizenships of the Employee', - nullable: true, - type: 'array', - items: { - $ref: '#/components/schemas/CountryCodeEnum', + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', }, - }, - employment: { - description: 'The employee employment', nullable: true, - allOf: [ - { - $ref: '#/components/schemas/CreateEmploymentApiModel', - }, - ], }, - custom_fields: { - description: 'The employee custom fields', + }, + }, + UnifiedWarningApiModel: { + type: 'object', + properties: { + message: { + type: 'string', + example: 'The provided field type is not supported in the current model.', nullable: true, - type: 'array', - items: { - $ref: '#/components/schemas/CustomFields', - }, }, - benefits: { - description: 'Current benefits of the employee', - nullable: true, - type: 'array', - items: { - $ref: '#/components/schemas/CreateHRISBenefit', - }, + }, + }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, }, - employee_number: { + message: { type: 'string', - description: 'The assigned employee number', - example: '125', - nullable: true, + description: 'Error message', + example: 'Unprocessable Entity', }, - national_identity_number: { - description: 'The national identity number', - deprecated: true, - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/NationalIdentityNumberApiModel', - }, - ], + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, - national_identity_numbers: { - description: 'The national identity numbers', - nullable: true, - type: 'array', - items: { - $ref: '#/components/schemas/NationalIdentityNumberApiModel', - }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UpdateResult: { + type: 'object', + properties: { + statusCode: { + type: 'number', + example: 200, }, - home_location: { - description: 'The employee home location', - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/CreateEmployeeLocationApiModel', - }, - ], + message: { + type: 'string', + example: 'Record updated successfully.', }, - work_location: { - description: 'The employee work location', - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/CreateEmployeeLocationApiModel', - }, - ], + timestamp: { + type: 'string', + example: '2021-01-01T01:01:01.000Z', + format: 'date-time', }, }, + required: ['statusCode', 'message', 'timestamp'], }, WorkEligibility: { type: 'object', diff --git a/src/openapi/generated/iam.ts b/src/openapi/generated/iam.ts index 1063f63d..9ae9ec4e 100644 --- a/src/openapi/generated/iam.ts +++ b/src/openapi/generated/iam.ts @@ -145,9 +145,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -159,18 +193,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -285,9 +384,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -299,18 +432,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -364,16 +562,50 @@ export const iamSpec = { content: { 'application/json': { schema: { - $ref: '#/components/schemas/UpdateUserApiModel', + $ref: '#/components/schemas/UpdateResult', }, }, }, }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -385,18 +617,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -450,9 +747,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -460,22 +791,87 @@ export const iamSpec = { 'Retry-After': { description: 'A time in seconds after which the request can be retried.', schema: { - type: 'string', + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -634,9 +1030,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -648,18 +1078,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -773,9 +1268,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -787,18 +1316,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -958,9 +1552,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -972,18 +1600,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, }, - '501': { - description: 'This functionality is not implemented.', + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1098,9 +1791,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1112,18 +1839,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1282,9 +2074,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1296,18 +2122,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1421,9 +2312,43 @@ export const iamSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1435,18 +2360,83 @@ export const iamSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1508,8 +2498,91 @@ export const iamSpec = { type: 'http', scheme: 'basic', }, - }, - schemas: { + }, + schemas: { + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Content: { type: 'object', properties: { @@ -2919,6 +3992,28 @@ export const iamSpec = { }, }, }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, GroupTypeEnum: { type: 'object', properties: { @@ -3747,6 +4842,128 @@ export const iamSpec = { }, required: ['data'], }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotImplementedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + PreconditionFailedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Precondition failed', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ProviderError: { + type: 'object', + properties: { + status: { + type: 'number', + description: 'HTTP status code of the provider error', + example: 400, + nullable: true, + }, + url: { + type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', + nullable: true, + }, + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, RawResponse: { type: 'object', properties: { @@ -3793,6 +5010,28 @@ export const iamSpec = { }, required: ['method', 'url'], }, + RequestTimedOutResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, RoleTypeEnum: { type: 'object', properties: { @@ -3836,70 +5075,117 @@ export const iamSpec = { }, }, }, - UpdateUserApiModel: { + TooManyRequestsResponse: { type: 'object', properties: { - primary_email_address: { - type: 'string', - description: - 'Primary email address of the user. This is generally a work email address.', - example: 'han@stackone.com', - nullable: true, + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, }, - first_name: { + message: { type: 'string', - example: 'Han', - nullable: true, + description: 'Error message', + example: 'Too many requests', }, - last_name: { + timestamp: { type: 'string', - example: 'Solo', - nullable: true, + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, - name: { + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, + }, + message: { type: 'string', - description: "User's name which (can be a full name or display name)", - example: 'Han Solo', - nullable: true, + description: 'Error message', + example: 'Unauthorized', }, - username: { + timestamp: { type: 'string', - example: 'hansolo1977', - nullable: true, + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, - is_bot_user: { - description: 'Indicates if the user is a bot or service user', - example: true, - oneOf: [ - { - type: 'boolean', - }, - { - type: 'string', - enum: ['true', 'false'], - }, - ], + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnifiedError: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, nullable: true, }, - status: { + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', nullable: true, - allOf: [ - { - $ref: '#/components/schemas/UserStatusEnum', - }, - ], }, - passthrough: { + headers: { type: 'object', - description: 'Value to pass through to the provider', + description: 'Response headers', example: { - other_known_names: 'John Doe', + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', }, - additionalProperties: true, nullable: true, }, }, }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unprocessable Entity', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UpdateResult: { + type: 'object', + properties: { + statusCode: { + type: 'number', + example: 200, + }, + message: { + type: 'string', + example: 'Record updated successfully.', + }, + timestamp: { + type: 'string', + example: '2021-01-01T01:01:01.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, UserStatusEnum: { type: 'object', properties: { diff --git a/src/openapi/generated/lms.ts b/src/openapi/generated/lms.ts index 5e79736c..5fe69200 100644 --- a/src/openapi/generated/lms.ts +++ b/src/openapi/generated/lms.ts @@ -40,9 +40,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -54,18 +88,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -219,9 +318,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -233,18 +366,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -310,9 +508,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -324,18 +556,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -424,32 +721,131 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -631,9 +1027,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -645,18 +1075,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -730,9 +1225,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -744,18 +1273,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -852,9 +1446,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -866,18 +1494,83 @@ export const lmsSpec = { }, }, }, - }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -932,9 +1625,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -946,18 +1673,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1106,9 +1898,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1120,18 +1946,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1197,9 +2088,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1211,18 +2136,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1311,9 +2301,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1325,18 +2349,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1490,9 +2579,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1504,18 +2627,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1589,9 +2777,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1603,22 +2825,87 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', - }, - }, - security: [ - { + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { basic: [], }, ], @@ -1711,9 +2998,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1725,18 +3046,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1798,9 +3184,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1812,18 +3232,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1972,9 +3457,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1986,18 +3505,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2097,9 +3681,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2111,18 +3729,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2210,9 +3893,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2224,18 +3941,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2381,9 +4163,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2395,18 +4211,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2578,9 +4459,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2592,18 +4507,83 @@ export const lmsSpec = { }, }, }, - }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2705,9 +4685,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2719,18 +4733,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2818,9 +4897,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2832,18 +4945,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2989,9 +5167,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3003,18 +5215,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', - }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3200,9 +5477,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3214,18 +5525,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3327,9 +5703,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3341,18 +5751,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3407,9 +5882,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3421,18 +5930,83 @@ export const lmsSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3495,9 +6069,43 @@ export const lmsSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3505,22 +6113,87 @@ export const lmsSpec = { 'Retry-After': { description: 'A time in seconds after which the request can be retried.', schema: { - type: 'string', + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, - '429': { - description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', - }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3821,6 +6494,67 @@ export const lmsSpec = { }, }, }, + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, BatchResultApiModel: { type: 'object', properties: { @@ -4184,6 +6918,28 @@ export const lmsSpec = { }, required: ['data'], }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Content: { type: 'object', properties: { @@ -4868,6 +7624,50 @@ export const lmsSpec = { }, required: ['statusCode', 'message', 'timestamp'], }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, LanguageEnum: { type: 'object', properties: { @@ -5968,6 +8768,106 @@ export const lmsSpec = { }, }, }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotImplementedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + PreconditionFailedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Precondition failed', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ProviderError: { + type: 'object', + properties: { + status: { + type: 'number', + description: 'HTTP status code of the provider error', + example: 400, + nullable: true, + }, + url: { + type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', + nullable: true, + }, + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, RawResponse: { type: 'object', properties: { @@ -6014,6 +8914,28 @@ export const lmsSpec = { }, required: ['method', 'url'], }, + RequestTimedOutResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, ResultStatusEnum: { type: 'object', properties: { @@ -6215,6 +9137,98 @@ export const lmsSpec = { }, required: ['data'], }, + TooManyRequestsResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Too many requests', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unauthorized', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnifiedError: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + nullable: true, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unprocessable Entity', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, UpdateResult: { type: 'object', properties: { diff --git a/src/openapi/generated/marketing.ts b/src/openapi/generated/marketing.ts index 4ea5ac3a..5235271b 100644 --- a/src/openapi/generated/marketing.ts +++ b/src/openapi/generated/marketing.ts @@ -133,9 +133,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -147,18 +181,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -224,9 +323,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -238,18 +371,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -339,9 +537,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -353,18 +585,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -425,32 +722,131 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', - }, - '408': { - description: 'The request has timed out.', - headers: { - 'Retry-After': { - description: 'A time in seconds after which the request can be retried.', + content: { + 'application/json': { schema: { - type: 'string', + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -598,9 +994,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -612,18 +1042,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -689,9 +1184,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -703,18 +1232,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -804,9 +1398,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -818,18 +1446,83 @@ export const marketingSpec = { }, }, }, - }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -890,9 +1583,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -904,18 +1631,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1063,9 +1855,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1077,18 +1903,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1154,9 +2045,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1168,18 +2093,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1269,9 +2259,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1283,18 +2307,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1355,9 +2444,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1369,18 +2492,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1529,9 +2717,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1543,22 +2765,87 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', - }, - }, - security: [ - { + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { basic: [], }, ], @@ -1621,9 +2908,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1635,18 +2956,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1737,9 +3123,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1751,18 +3171,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1824,9 +3309,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -1838,18 +3357,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -1997,9 +3581,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, }, - '403': { - description: 'Forbidden.', + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2011,18 +3629,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2088,9 +3771,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2102,18 +3819,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2203,9 +3985,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2217,18 +4033,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2289,9 +4170,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2303,18 +4218,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', - }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2463,9 +4443,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2477,18 +4491,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2592,9 +4671,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2606,18 +4719,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2765,9 +4943,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2779,18 +4991,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2856,9 +5133,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2870,18 +5181,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -2971,9 +5347,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -2985,18 +5395,83 @@ export const marketingSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, }, '412': { description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3057,9 +5532,43 @@ export const marketingSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -3067,22 +5576,87 @@ export const marketingSpec = { 'Retry-After': { description: 'A time in seconds after which the request can be retried.', schema: { - type: 'string', + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', }, }, }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -3154,6 +5728,67 @@ export const marketingSpec = { }, }, schemas: { + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, Campaign: { type: 'object', properties: { @@ -3400,6 +6035,28 @@ export const marketingSpec = { }, }, }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, ContentBlock: { type: 'object', properties: { @@ -3813,6 +6470,28 @@ export const marketingSpec = { }, required: ['data'], }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, InAppMessageContents: { type: 'object', properties: { @@ -3952,6 +6631,28 @@ export const marketingSpec = { }, required: ['data'], }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, MarketingCreateContentBlocksRequestDto: { type: 'object', properties: { @@ -4246,6 +6947,106 @@ export const marketingSpec = { }, }, }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + NotImplementedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + PreconditionFailedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Precondition failed', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ProviderError: { + type: 'object', + properties: { + status: { + type: 'number', + description: 'HTTP status code of the provider error', + example: 400, + nullable: true, + }, + url: { + type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', + nullable: true, + }, + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, PushMessageContents: { type: 'object', properties: { @@ -4439,6 +7240,28 @@ export const marketingSpec = { }, required: ['method', 'url'], }, + RequestTimedOutResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, ScheduleTypeEnum: { type: 'object', properties: { @@ -4740,6 +7563,98 @@ export const marketingSpec = { }, required: ['data'], }, + TooManyRequestsResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Too many requests', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unauthorized', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnifiedError: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + nullable: true, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + nullable: true, + }, + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, + }, + }, + }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Unprocessable Entity', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, }, }, }; diff --git a/src/openapi/generated/stackone.ts b/src/openapi/generated/stackone.ts index 8fa7038e..45e7fcf0 100644 --- a/src/openapi/generated/stackone.ts +++ b/src/openapi/generated/stackone.ts @@ -30,9 +30,43 @@ export const stackoneSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -44,15 +78,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -97,9 +189,43 @@ export const stackoneSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -111,15 +237,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -235,9 +419,43 @@ export const stackoneSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -249,15 +467,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -300,9 +576,43 @@ export const stackoneSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -314,15 +624,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, }, - '429': { - description: 'Too many requests.', - }, - '500': { - description: 'Server error while executing the request.', - }, - '501': { + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -373,9 +741,43 @@ export const stackoneSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -387,15 +789,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -436,12 +896,43 @@ export const stackoneSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, }, '404': { - description: 'The account with the given identifier does not exist', + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -453,15 +944,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -504,12 +1053,43 @@ export const stackoneSpec = { }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, }, '404': { - description: 'The account with the given identifier does not exist', + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -521,21 +1101,79 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { + basic: [], }, - }, - security: [ - { - basic: [], - }, ], summary: 'Get meta information of the account', tags: ['Accounts'], @@ -546,41 +1184,83 @@ export const stackoneSpec = { }, }, }, - '/connectors/meta': { + '/requests/logs/{id}': { get: { - operationId: 'stackone_list_connectors_meta', + operationId: 'stackone_get_log', parameters: [ + { + name: 'id', + required: true, + in: 'path', + schema: { + type: 'string', + }, + }, { name: 'include', required: false, in: 'query', - description: 'The comma separated list of data that will be included in the response', + description: + 'The include parameter allows you to include additional data in the response.', + 'x-speakeasy-unknown-values': 'allow', schema: { nullable: true, - example: 'field_path,unmapped_fields,resources,inactive,webhooks,static_fields', + example: 'step_logs', + enum: ['step_logs', 'advanced_logs', null], type: 'string', }, }, ], responses: { '200': { - description: 'The list of connectors meta information was retrieved.', + description: 'The log was retrieved.', content: { 'application/json': { schema: { - type: 'array', - items: { - $ref: '#/components/schemas/ConnectorsMeta', - }, + $ref: '#/components/schemas/UnifiedLogResult', }, }, }, }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -592,15 +1272,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -608,24 +1346,65 @@ export const stackoneSpec = { basic: [], }, ], - summary: 'List Connectors Meta Information for all providers', - tags: ['Connectors'], - 'x-speakeasy-name-override': 'list_connectors_meta', + summary: 'Get a Log', + tags: ['Request Logs'], + 'x-speakeasy-name-override': 'get_log', 'x-speakeasy-retries': { statusCodes: [429, 408], strategy: 'backoff', }, }, }, - '/connectors/meta/{provider}': { + '/requests/logs': { get: { - operationId: 'stackone_get_connector_meta', + operationId: 'stackone_list_logs', parameters: [ { - name: 'provider', - required: true, - in: 'path', + name: 'order_by', + required: false, + in: 'query', + description: 'The field to order the results by.', + 'x-speakeasy-unknown-values': 'allow', + schema: { + additionalProperties: false, + nullable: true, + example: 'created_at', + enum: ['provider', 'service', 'status', 'eventDatetime', 'duration', null], + type: 'string', + }, + }, + { + name: 'order_direction', + required: false, + in: 'query', + description: 'The direction to order the results by.', + 'x-speakeasy-unknown-values': 'allow', + schema: { + additionalProperties: false, + nullable: true, + example: 'asc', + enum: ['asc', 'desc', null], + type: 'string', + }, + }, + { + name: 'page_size', + required: false, + in: 'query', + description: 'The number of results per page (default value is 25)', + schema: { + maximum: 100, + nullable: true, + type: 'number', + }, + }, + { + name: 'next', + required: false, + in: 'query', + description: 'The unified cursor', schema: { + nullable: true, type: 'string', }, }, @@ -633,33 +1412,207 @@ export const stackoneSpec = { name: 'include', required: false, in: 'query', - description: 'The comma separated list of data that will be included in the response', + description: + 'The include parameter allows you to include additional data in the response.', + 'x-speakeasy-unknown-values': 'allow', schema: { nullable: true, - example: 'field_path,unmapped_fields,resources,inactive,webhooks,static_fields', + example: 'step_logs', + enum: ['step_logs', null], type: 'string', }, }, + { + name: 'filter', + required: false, + in: 'query', + description: 'Filter parameters that allow greater customisation of the list response', + schema: { + properties: { + account_ids: { + description: 'A comma-separated list of account IDs to filter the results by.', + example: '45355976281015164504,45355976281015164505', + type: 'string', + nullable: true, + additionalProperties: false, + }, + start_date: { + description: 'A ISO8601 date string to filter the results by start_date.', + example: '2020-01-01T00:00:00.000Z', + type: 'string', + nullable: true, + additionalProperties: false, + }, + end_date: { + description: 'A ISO8601 date string to filter the results by end_date.', + example: '2020-01-01T00:00:00.000Z', + type: 'string', + nullable: true, + additionalProperties: false, + }, + request_ids: { + description: 'A comma-separated list of request IDs to filter the results by.', + example: + 'adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c', + type: 'string', + nullable: true, + additionalProperties: false, + }, + source_types: { + description: 'A comma-separated list of source types to filter the results by.', + example: 'DASHBOARD,SYNTHETIC_WEBHOOK', + type: 'string', + nullable: true, + additionalProperties: false, + }, + source_values: { + description: 'A comma-separated list of source values to filter the results by.', + type: 'string', + nullable: true, + additionalProperties: false, + }, + source_ids: { + description: 'A comma-separated list of source IDs to filter the results by.', + type: 'string', + nullable: true, + additionalProperties: false, + }, + http_methods: { + description: 'A comma-separated list of HTTP methods to filter the results by.', + example: 'GET,POST', + type: 'string', + nullable: true, + additionalProperties: false, + }, + providers: { + description: 'A comma-separated list of provider keys to filter the results by.', + example: 'ashby,greenhouse', + type: 'string', + nullable: true, + additionalProperties: false, + }, + services: { + description: 'A comma-separated list of services to filter the results by.', + example: 'hris,ats', + type: 'string', + nullable: true, + additionalProperties: false, + }, + resources: { + description: 'A comma-separated list of resources to filter the results by.', + example: 'employees,users', + type: 'string', + nullable: true, + additionalProperties: false, + }, + child_resources: { + description: + 'A comma-separated list of child resources to filter the results by.', + example: 'documents,time-off', + type: 'string', + nullable: true, + additionalProperties: false, + }, + sub_resources: { + description: 'A comma-separated list of sub resources to filter the results by.', + example: 'documents,employees', + type: 'string', + nullable: true, + additionalProperties: false, + }, + actions: { + description: 'A comma-separated list of actions to filter the results by.', + example: 'download,upload', + type: 'string', + nullable: true, + additionalProperties: false, + }, + status_codes: { + description: 'A comma-separated list of status codes to filter the results by.', + example: '200,400', + type: 'string', + nullable: true, + additionalProperties: false, + }, + success: { + description: 'A boolean value to filter the results by success or failure.', + example: true, + type: 'boolean', + nullable: true, + additionalProperties: false, + }, + order_by: { + description: 'The field to order the results by.', + example: 'created_at', + type: 'string', + nullable: true, + enum: ['provider', 'service', 'status', 'eventDatetime', 'duration'], + additionalProperties: false, + }, + order_direction: { + description: 'The direction to order the results by.', + example: 'asc', + type: 'string', + nullable: true, + enum: ['asc', 'desc'], + additionalProperties: false, + }, + }, + nullable: true, + type: 'object', + }, + }, ], responses: { '200': { - description: 'The connector meta information was retrieved', + description: 'The list of logs was retrieved.', content: { 'application/json': { schema: { - $ref: '#/components/schemas/ConnectorsMeta', + $ref: '#/components/schemas/UnifiedLogsPaginated', }, }, }, }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, }, '404': { - description: 'No connector with the given provider key exist', + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -671,65 +1624,328 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, }, - }, - security: [ - { + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { basic: [], }, ], - summary: 'Get Connector Meta information for the given provider key', - tags: ['Connectors'], - 'x-speakeasy-name-override': 'get_connector_meta', + summary: 'List Logs', + tags: ['Request Logs'], + 'x-speakeasy-name-override': 'list_logs', 'x-speakeasy-retries': { statusCodes: [429, 408], strategy: 'backoff', }, }, }, - '/unified/proxy': { - post: { - operationId: 'stackone_proxy_request', + '/requests/logs/steps': { + get: { + operationId: 'stackone_list_step_logs', parameters: [ { - name: 'x-account-id', - in: 'header', - description: 'The account identifier', - required: true, + name: 'order_by', + required: false, + in: 'query', + description: 'The field to order the results by.', + 'x-speakeasy-unknown-values': 'allow', schema: { + additionalProperties: false, + nullable: true, + example: 'created_at', + enum: ['provider', 'service', 'status', 'eventDatetime', 'duration', null], type: 'string', }, }, - ], - requestBody: { - required: true, - description: 'The request body', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/ProxyRequestBody', + { + name: 'order_direction', + required: false, + in: 'query', + description: 'The direction to order the results by.', + 'x-speakeasy-unknown-values': 'allow', + schema: { + additionalProperties: false, + nullable: true, + example: 'asc', + enum: ['asc', 'desc', null], + type: 'string', + }, + }, + { + name: 'page_size', + required: false, + in: 'query', + description: 'The number of results per page (default value is 25)', + schema: { + maximum: 100, + nullable: true, + type: 'number', + }, + }, + { + name: 'next', + required: false, + in: 'query', + description: 'The unified cursor', + schema: { + nullable: true, + type: 'string', + }, + }, + { + name: 'include', + required: false, + in: 'query', + description: + 'The include parameter allows you to include additional data in the response.', + 'x-speakeasy-unknown-values': 'allow', + schema: { + nullable: true, + example: 'step_logs', + enum: ['step_logs', 'advanced_logs', null], + type: 'string', + }, + }, + { + name: 'filter', + required: false, + in: 'query', + description: 'Filter parameters that allow greater customisation of the list response', + schema: { + properties: { + account_ids: { + description: 'A comma-separated list of account IDs to filter the results by.', + example: '45355976281015164504,45355976281015164505', + type: 'string', + nullable: true, + additionalProperties: false, + }, + start_date: { + description: 'A ISO8601 date string to filter the results by start_date.', + example: '2020-01-01T00:00:00.000Z', + type: 'string', + nullable: true, + additionalProperties: false, + }, + end_date: { + description: 'A ISO8601 date string to filter the results by end_date.', + example: '2020-01-01T00:00:00.000Z', + type: 'string', + nullable: true, + additionalProperties: false, + }, + request_ids: { + description: 'A comma-separated list of request IDs to filter the results by.', + example: + 'adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c', + type: 'string', + nullable: true, + additionalProperties: false, + }, + http_methods: { + description: 'A comma-separated list of HTTP methods to filter the results by.', + example: 'GET,POST', + type: 'string', + nullable: true, + additionalProperties: false, + }, + providers: { + description: 'A comma-separated list of provider keys to filter the results by.', + example: 'ashby,greenhouse', + type: 'string', + nullable: true, + additionalProperties: false, + }, + services: { + description: 'A comma-separated list of services to filter the results by.', + example: 'hris,ats', + type: 'string', + nullable: true, + additionalProperties: false, + }, + resources: { + description: 'A comma-separated list of resources to filter the results by.', + example: 'employees,users', + type: 'string', + nullable: true, + additionalProperties: false, + }, + child_resources: { + description: + 'A comma-separated list of child resources to filter the results by.', + example: 'documents,time-off', + type: 'string', + nullable: true, + additionalProperties: false, + }, + sub_resources: { + description: 'A comma-separated list of sub resources to filter the results by.', + example: 'documents,employees', + type: 'string', + nullable: true, + additionalProperties: false, + }, + actions: { + description: 'A comma-separated list of actions to filter the results by.', + example: 'download,upload', + type: 'string', + nullable: true, + additionalProperties: false, + }, + status_codes: { + description: 'A comma-separated list of status codes to filter the results by.', + example: '200,400', + type: 'string', + nullable: true, + additionalProperties: false, + }, + success: { + description: 'A boolean value to filter the results by success or failure.', + example: true, + type: 'boolean', + nullable: true, + additionalProperties: false, + }, + order_by: { + description: 'The field to order the results by.', + example: 'created_at', + type: 'string', + nullable: true, + enum: ['provider', 'service', 'status', 'eventDatetime', 'duration'], + additionalProperties: false, + }, + order_direction: { + description: 'The direction to order the results by.', + example: 'asc', + type: 'string', + nullable: true, + enum: ['asc', 'desc'], + additionalProperties: false, + }, }, + nullable: true, + type: 'object', }, }, - }, + ], responses: { '200': { - description: 'The proxy request was successful.', + description: 'The list of step logs was retrieved.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/StepLogsPaginated', + }, + }, + }, }, '400': { description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, }, '403': { description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, }, '408': { description: 'The request has timed out.', @@ -741,18 +1957,73 @@ export const stackoneSpec = { }, }, }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, }, - '412': { - description: 'Precondition failed: linked account belongs to a disabled integration.', + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, }, '429': { description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, }, '500': { description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, }, '501': { description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, }, }, security: [ @@ -760,69 +2031,1379 @@ export const stackoneSpec = { basic: [], }, ], - summary: 'Proxy Request', - tags: ['Proxy'], - 'x-speakeasy-name-override': 'proxy_request', + summary: 'List Step Logs', + tags: ['Request Logs'], + 'x-speakeasy-name-override': 'list_step_logs', 'x-speakeasy-retries': { statusCodes: [429, 408], strategy: 'backoff', }, }, }, - }, - info: { - title: 'StackOne', - description: 'The documentation for the StackOne API', - version: '1.0.0', - contact: {}, - }, - tags: [ - { - name: 'AI', - description: '', - }, - { - name: 'Accounts', - description: '', - }, - { - name: 'Connect Sessions', - description: '', - }, - { - name: 'Connectors', - description: '', - }, - { - name: 'Proxy', - description: '', - }, - ], - servers: [ - { - url: 'https://api.stackone.com', - }, - ], - components: { - securitySchemes: { - basic: { - type: 'http', - scheme: 'basic', - }, - }, - schemas: { - ConnectorsMeta: { - type: 'object', - properties: { - provider: { - type: 'string', - example: 'hibob', - description: 'The provider key', + '/connectors/meta': { + get: { + operationId: 'stackone_list_connectors_meta', + parameters: [ + { + name: 'include', + required: false, + in: 'query', + description: 'The comma separated list of data that will be included in the response', + schema: { + nullable: true, + example: 'field_path,unmapped_fields,resources,inactive,webhooks,static_fields', + type: 'string', + }, }, - provider_name: { - type: 'string', - example: 'Hibob', - description: 'The provider human-readable label', + ], + responses: { + '200': { + description: 'The list of connectors meta information was retrieved.', + content: { + 'application/json': { + schema: { + type: 'array', + items: { + $ref: '#/components/schemas/ConnectorsMeta', + }, + }, + }, + }, + }, + '400': { + description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { + basic: [], + }, + ], + summary: 'List Connectors Meta Information for all providers', + tags: ['Connectors'], + 'x-speakeasy-name-override': 'list_connectors_meta', + 'x-speakeasy-retries': { + statusCodes: [429, 408], + strategy: 'backoff', + }, + }, + }, + '/connectors/meta/{provider}': { + get: { + operationId: 'stackone_get_connector_meta', + parameters: [ + { + name: 'provider', + required: true, + in: 'path', + schema: { + type: 'string', + }, + }, + { + name: 'include', + required: false, + in: 'query', + description: 'The comma separated list of data that will be included in the response', + schema: { + nullable: true, + example: 'field_path,unmapped_fields,resources,inactive,webhooks,static_fields', + type: 'string', + }, + }, + ], + responses: { + '200': { + description: 'The connector meta information was retrieved', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConnectorsMeta', + }, + }, + }, + }, + '400': { + description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { + basic: [], + }, + ], + summary: 'Get Connector Meta information for the given provider key', + tags: ['Connectors'], + 'x-speakeasy-name-override': 'get_connector_meta', + 'x-speakeasy-retries': { + statusCodes: [429, 408], + strategy: 'backoff', + }, + }, + }, + '/unified/proxy': { + post: { + operationId: 'stackone_proxy_request', + parameters: [ + { + name: 'x-account-id', + in: 'header', + description: 'The account identifier', + required: true, + schema: { + type: 'string', + }, + }, + ], + requestBody: { + required: true, + description: 'The request body', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ProxyRequestBody', + }, + }, + }, + }, + responses: { + '200': { + description: 'The proxy request was successful.', + }, + '400': { + description: 'Invalid request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadRequestResponse', + }, + }, + }, + }, + '401': { + description: 'Unauthorized access.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnauthorizedResponse', + }, + }, + }, + }, + '403': { + description: 'Forbidden.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ForbiddenResponse', + }, + }, + }, + }, + '404': { + description: 'Resource not found.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotFoundResponse', + }, + }, + }, + }, + '408': { + description: 'The request has timed out.', + headers: { + 'Retry-After': { + description: 'A time in seconds after which the request can be retried.', + schema: { + type: 'string', + }, + }, + }, + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/RequestTimedOutResponse', + }, + }, + }, + }, + '409': { + description: 'Conflict with current state.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/ConflictResponse', + }, + }, + }, + }, + '412': { + description: 'Precondition failed: linked account belongs to a disabled integration.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/PreconditionFailedResponse', + }, + }, + }, + }, + '422': { + description: 'Validation error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/UnprocessableEntityResponse', + }, + }, + }, + }, + '429': { + description: 'Too many requests.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/TooManyRequestsResponse', + }, + }, + }, + }, + '500': { + description: 'Server error while executing the request.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/InternalServerErrorResponse', + }, + }, + }, + }, + '501': { + description: 'This functionality is not implemented.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/NotImplementedResponse', + }, + }, + }, + }, + '502': { + description: 'Bad gateway error.', + content: { + 'application/json': { + schema: { + $ref: '#/components/schemas/BadGatewayResponse', + }, + }, + }, + }, + }, + security: [ + { + basic: [], + }, + ], + summary: 'Proxy Request', + tags: ['Proxy'], + 'x-speakeasy-name-override': 'proxy_request', + 'x-speakeasy-retries': { + statusCodes: [429, 408], + strategy: 'backoff', + }, + }, + }, + }, + info: { + title: 'StackOne', + description: 'The documentation for the StackOne API', + version: '1.0.0', + contact: {}, + }, + tags: [ + { + name: 'AI', + description: '', + }, + { + name: 'Accounts', + description: '', + }, + { + name: 'Connect Sessions', + description: '', + }, + { + name: 'Connectors', + description: '', + }, + { + name: 'Proxy', + description: '', + }, + { + name: 'Request Logs', + description: '', + }, + { + name: 'Webhooks', + description: '', + }, + ], + servers: [ + { + url: 'https://api.stackone.com', + }, + ], + components: { + securitySchemes: { + basic: { + type: 'http', + scheme: 'basic', + }, + }, + schemas: { + AdvancedLogRequestData: { + type: 'object', + properties: { + id: { + type: 'string', + description: 'The request ID', + example: 'adbf752f-6457-4ddd-89b3-98ae2252b83b', + nullable: true, + }, + method: { + type: 'string', + description: 'The request method', + example: 'get', + nullable: true, + }, + headers: { + type: 'object', + additionalProperties: true, + example: { + 'content-type': 'application/json', + authorization: 'Bearer token', + }, + nullable: true, + }, + url: { + description: 'The request URL data', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/AdvancedLogRequestDataUrl', + }, + ], + }, + body: { + oneOf: [ + { + type: 'string', + }, + { + type: 'object', + }, + { + type: 'string', + format: 'binary', + }, + { + type: 'array', + items: { + type: 'integer', + format: 'int32', + minimum: 0, + maximum: 255, + }, + }, + { + type: 'string', + format: 'byte', + }, + ], + additionalProperties: true, + nullable: true, + }, + }, + }, + AdvancedLogRequestDataUrl: { + type: 'object', + properties: { + url: { + type: 'string', + description: 'The request URL', + example: 'https://example.com/api/v1/resource', + nullable: true, + }, + hostname: { + type: 'string', + description: 'The request URL hostname', + example: 'example.com', + nullable: true, + }, + path: { + type: 'string', + description: 'The request path', + example: '/api/v1/resource', + nullable: true, + }, + query_params: { + type: 'object', + description: 'The request query parameters', + additionalProperties: true, + example: { + page: 1, + limit: 10, + }, + nullable: true, + }, + }, + }, + AdvancedLogResponseData: { + type: 'object', + properties: { + status_code: { + type: 'number', + description: 'The response status code', + example: 200, + nullable: true, + }, + headers: { + type: 'object', + additionalProperties: true, + example: { + 'content-type': 'application/json', + authorization: 'Bearer token', + }, + nullable: true, + }, + body: { + oneOf: [ + { + type: 'string', + }, + { + type: 'object', + }, + { + type: 'string', + format: 'binary', + }, + { + type: 'array', + items: { + type: 'integer', + format: 'int32', + minimum: 0, + maximum: 255, + }, + }, + { + type: 'string', + format: 'byte', + }, + ], + additionalProperties: true, + nullable: true, + }, + custom_mapping_errors: { + description: 'The custom mapping errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/CustomMappingError', + }, + }, + provider_errors: { + description: 'The provider errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + }, + BadGatewayResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 502, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Gateway', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + BadRequestResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Bad Request', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + data: { + description: 'Error details', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/UnifiedError', + }, + ], + }, + provider_errors: { + description: 'List of provider-specific errors', + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/ProviderError', + }, + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ConflictResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 409, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Conflict', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + ConnectorsMeta: { + type: 'object', + properties: { + provider: { + type: 'string', + example: 'hibob', + description: 'The provider key', + }, + provider_name: { + type: 'string', + example: 'Hibob', + description: 'The provider human-readable label', + }, + category: { + type: 'string', + enum: [ + 'ats', + 'hris', + 'hris-legacy', + 'crm', + 'iam', + 'marketing', + 'lms', + 'stackone', + 'documents', + 'ticketing', + 'screening', + ], + example: 'hris', + description: 'The provider service category', + 'x-speakeasy-unknown-values': 'allow', + }, + active: { + type: 'boolean', + example: true, + description: + 'Whether this provider has been enabled on the integrations page for the current project', + nullable: true, + }, + models: { + type: 'object', + additionalProperties: true, + example: { + employees: { + create: { + apiPath: '/unified/hris/employees/:id', + input: { + defaultFields: [ + { + name: 'first_name', + type: 'string', + }, + ], + }, + output: { + defaultFields: [ + { + name: 'id', + type: 'string', + }, + ], + }, + }, + }, + time_off: { + get: { + apiPath: '/unified/hris/employees/:id/time_off/:id', + output: { + defaultFields: [ + { + name: 'id', + type: 'string', + }, + ], + }, + }, + }, + }, + }, + resources: { + description: 'Resources for this provider, such as image assets', + example: { + images: { + logo_url: 'https://app.stackone.com/assets/logos/hibob.png', + original_logo_horizontal_url: + 'https://app.stackone.com/assets/logos/original/hibob_horizontal.png', + }, + }, + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/ConnectorsMetaResources', + }, + ], + }, + }, + required: ['provider', 'provider_name', 'category', 'models'], + }, + ConnectorsMetaResources: { + type: 'object', + properties: { + images: { + description: 'Image assets for this provider', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/ConnectorsMetaResourcesImagesApiModel', + }, + ], + }, + }, + }, + ConnectorsMetaResourcesImagesApiModel: { + type: 'object', + properties: { + logo_url: { + type: 'string', + example: 'https://app.stackone.com/assets/logos/hibob.png', + description: 'URL of the square logo designed and used by StackOne for this provider', + nullable: true, + }, + original_logo_horizontal_url: { + type: 'string', + example: 'https://app.stackone.com/assets/logos/source/hibob.png', + description: + 'URL of the original provider logo (with logo and/or name aligned horizontally)', + nullable: true, + }, + }, + }, + ConnectSession: { + type: 'object', + properties: { + id: { + type: 'number', + }, + organization_id: { + type: 'number', + }, + project_id: { + type: 'string', + }, + categories: { + type: 'array', + example: [ + 'ats', + 'hris', + 'hrisLegacy', + 'crm', + 'iam', + 'marketing', + 'lms', + 'stackOne', + 'documents', + 'ticketing', + 'screening', + ], + 'x-speakeasy-unknown-values': 'allow', + nullable: true, + items: { + type: 'string', + enum: [ + 'ats', + 'hris', + 'hris-legacy', + 'crm', + 'iam', + 'marketing', + 'lms', + 'stackone', + 'documents', + 'ticketing', + 'screening', + null, + ], + }, + }, + provider: { + type: 'string', + nullable: true, + }, + origin_owner_id: { + type: 'string', + }, + origin_owner_name: { + type: 'string', + }, + origin_username: { + type: 'string', + nullable: true, + }, + account_id: { + type: 'string', + nullable: true, + }, + label: { + type: 'string', + nullable: true, + }, + created_at: { + format: 'date-time', + type: 'string', + }, + metadata: { + type: 'object', + description: + 'Arbitrary set of key and values defined during the session token creation. This can be used to tag an account (eg. based on their pricing plan)', + nullable: true, + }, + external_trigger_token: { + type: 'string', + description: 'External trigger token to be used to trigger actions on the account', + example: 'f0bc3d88-2178-5423-8c81-b81d6c9da824', + nullable: true, + }, + }, + required: [ + 'id', + 'organization_id', + 'project_id', + 'origin_owner_id', + 'origin_owner_name', + 'created_at', + ], + }, + ConnectSessionAuthenticate: { + type: 'object', + properties: { + token: { + type: 'string', + description: 'The token to authenticate with', + }, + }, + required: ['token'], + }, + ConnectSessionCreate: { + type: 'object', + properties: { + categories: { + type: 'array', + description: 'The categories of the provider to connect to', + example: [ + 'ats', + 'hris', + 'hrisLegacy', + 'crm', + 'iam', + 'marketing', + 'lms', + 'stackOne', + 'documents', + 'ticketing', + 'screening', + ], + 'x-speakeasy-unknown-values': 'allow', + nullable: true, + items: { + type: 'string', + enum: [ + 'ats', + 'hris', + 'hris-legacy', + 'crm', + 'iam', + 'marketing', + 'lms', + 'stackone', + 'documents', + 'ticketing', + 'screening', + null, + ], + }, + }, + provider: { + type: 'string', + description: 'The provider to connect to', + nullable: true, + }, + origin_owner_id: { + type: 'string', + description: 'The origin owner identifier', + }, + origin_owner_name: { + type: 'string', + description: 'The origin owner name', + }, + origin_username: { + type: 'string', + description: 'The origin username', + nullable: true, + }, + account_id: { + type: 'string', + description: + 'The unique identifier for the account associated with this connect session. When this field is present, the hub will launch in edit mode using the retrieved token.', + nullable: true, + }, + expires_in: { + type: 'number', + description: 'How long the session should be valid for in seconds', + default: 1800, + nullable: true, + }, + metadata: { + type: 'object', + description: 'The metadata for the connection', + nullable: true, + }, + multiple: { + type: 'boolean', + description: + 'If set, this connect session will allow creation of multiple accounts with the same origin owner id and provider. Has no effect if account_id is set.', + default: false, + nullable: true, + }, + label: { + type: 'string', + description: + 'The label to be applied to the account associated with this connect session.', + nullable: true, + }, + }, + required: ['origin_owner_id', 'origin_owner_name'], + }, + ConnectSessionTokenAuthLink: { + type: 'object', + properties: { + id: { + type: 'number', + }, + organization_id: { + type: 'number', + }, + project_id: { + type: 'string', + }, + categories: { + type: 'array', + example: [ + 'ats', + 'hris', + 'hrisLegacy', + 'crm', + 'iam', + 'marketing', + 'lms', + 'stackOne', + 'documents', + 'ticketing', + 'screening', + ], + 'x-speakeasy-unknown-values': 'allow', + nullable: true, + items: { + type: 'string', + enum: [ + 'ats', + 'hris', + 'hris-legacy', + 'crm', + 'iam', + 'marketing', + 'lms', + 'stackone', + 'documents', + 'ticketing', + 'screening', + null, + ], + }, + }, + provider: { + type: 'string', + nullable: true, + }, + origin_owner_id: { + type: 'string', + }, + origin_owner_name: { + type: 'string', + }, + origin_username: { + type: 'string', + nullable: true, + }, + account_id: { + type: 'string', + nullable: true, + }, + label: { + type: 'string', + nullable: true, + }, + created_at: { + format: 'date-time', + type: 'string', + }, + metadata: { + type: 'object', + description: + 'Arbitrary set of key and values defined during the session token creation. This can be used to tag an account (eg. based on their pricing plan)', + nullable: true, + }, + external_trigger_token: { + type: 'string', + description: 'External trigger token to be used to trigger actions on the account', + example: 'f0bc3d88-2178-5423-8c81-b81d6c9da824', + nullable: true, + }, + token: { + type: 'string', + }, + auth_link_url: { + type: 'string', + }, + }, + required: [ + 'id', + 'organization_id', + 'project_id', + 'origin_owner_id', + 'origin_owner_name', + 'created_at', + 'token', + 'auth_link_url', + ], + }, + CustomMappingError: { + type: 'object', + properties: { + id: { + type: 'string', + description: 'The custom mapping identifier', + example: 'adbf752f-6457-4ddd-89b3-98ae2252b83b', + nullable: true, + }, + message: { + type: 'string', + description: 'The error message', + example: 'Invalid value', + nullable: true, + }, + targetField: { + type: 'string', + description: 'The target field where the error occurred', + example: 'first_name', + nullable: true, + }, + }, + }, + ForbiddenResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 403, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Forbidden resource', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + InternalServerErrorResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 500, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Internal server error', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + LinkedAccount: { + type: 'object', + properties: { + id: { + type: 'string', + }, + provider: { + type: 'string', + }, + provider_name: { + type: 'string', + nullable: true, + }, + status: { + type: 'string', + enum: ['active', 'inactive', 'error'], + 'x-speakeasy-unknown-values': 'allow', + }, + status_reasons: { + nullable: true, + type: 'array', + items: { + $ref: '#/components/schemas/StatusReason', + }, + }, + origin_owner_id: { + type: 'string', + }, + origin_owner_name: { + type: 'string', + }, + origin_username: { + type: 'string', + nullable: true, + }, + credentials: { + type: 'object', + nullable: true, + }, + setup_information: { + type: 'object', + nullable: true, + }, + label: { + type: 'string', + nullable: true, + }, + created_at: { + format: 'date-time', + type: 'string', + }, + updated_at: { + format: 'date-time', + type: 'string', + }, + }, + required: [ + 'id', + 'provider', + 'status', + 'origin_owner_id', + 'origin_owner_name', + 'created_at', + 'updated_at', + ], + }, + LinkedAccountMeta: { + type: 'object', + properties: { + provider: { + type: 'string', }, category: { type: 'string', @@ -839,600 +3420,686 @@ export const stackoneSpec = { 'ticketing', 'screening', ], - example: 'hris', - description: 'The provider service category', 'x-speakeasy-unknown-values': 'allow', }, - active: { - type: 'boolean', - example: true, - description: - 'Whether this provider has been enabled on the integrations page for the current project', - nullable: true, - }, models: { type: 'object', additionalProperties: true, - example: { - employees: { - create: { - apiPath: '/unified/hris/employees/:id', - input: { - defaultFields: [ - { - name: 'first_name', - type: 'string', - }, - ], - }, - output: { - defaultFields: [ - { - name: 'id', - type: 'string', - }, - ], - }, - }, - }, - time_off: { - get: { - apiPath: '/unified/hris/employees/:id/time_off/:id', - output: { - defaultFields: [ - { - name: 'id', - type: 'string', - }, - ], - }, - }, - }, - }, }, - resources: { - description: 'Resources for this provider, such as image assets', - example: { - images: { - logo_url: 'https://app.stackone.com/assets/logos/hibob.png', - original_logo_horizontal_url: - 'https://app.stackone.com/assets/logos/original/hibob_horizontal.png', - }, - }, - nullable: true, - allOf: [ - { - $ref: '#/components/schemas/ConnectorsMetaResources', - }, - ], + }, + required: ['provider', 'category', 'models'], + }, + NotFoundResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 404, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Found', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, }, - required: ['provider', 'provider_name', 'category', 'models'], + required: ['statusCode', 'message', 'timestamp'], }, - ConnectorsMetaResources: { + NotImplementedResponse: { type: 'object', properties: { - images: { - description: 'Image assets for this provider', + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 501, + }, + message: { + type: 'string', + description: 'Error message', + example: 'Not Implemented', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', + }, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + PatchAccountExternalDto: { + type: 'object', + properties: { + provider: { + type: 'string', + nullable: true, + }, + origin_owner_id: { + type: 'string', + nullable: true, + }, + origin_owner_name: { + type: 'string', + nullable: true, + }, + origin_username: { + type: 'string', + nullable: true, + }, + credentials: { + type: 'object', + additionalProperties: false, + nullable: true, + }, + setup_information: { + type: 'object', + additionalProperties: false, + nullable: true, + }, + secrets: { + type: 'object', + additionalProperties: false, + nullable: true, + }, + authentication_config_key: { + type: 'string', + nullable: true, + }, + environment: { + type: 'string', + nullable: true, + }, + label: { + type: 'object', + nullable: true, + }, + metadata: { + type: 'object', + additionalProperties: false, nullable: true, - allOf: [ - { - $ref: '#/components/schemas/ConnectorsMetaResourcesImagesApiModel', - }, - ], }, }, }, - ConnectorsMetaResourcesImagesApiModel: { + PreconditionFailedResponse: { type: 'object', properties: { - logo_url: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 412, + }, + message: { type: 'string', - example: 'https://app.stackone.com/assets/logos/hibob.png', - description: 'URL of the square logo designed and used by StackOne for this provider', - nullable: true, + description: 'Error message', + example: 'Precondition failed', }, - original_logo_horizontal_url: { + timestamp: { type: 'string', - example: 'https://app.stackone.com/assets/logos/source/hibob.png', - description: - 'URL of the original provider logo (with logo and/or name aligned horizontally)', - nullable: true, + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, }, + required: ['statusCode', 'message', 'timestamp'], }, - ConnectSession: { + ProviderError: { type: 'object', properties: { - id: { - type: 'number', - }, - organization_id: { + status: { type: 'number', - }, - project_id: { - type: 'string', - }, - categories: { - type: 'array', - example: [ - 'ats', - 'hris', - 'hrisLegacy', - 'crm', - 'iam', - 'marketing', - 'lms', - 'stackOne', - 'documents', - 'ticketing', - 'screening', - ], - 'x-speakeasy-unknown-values': 'allow', + description: 'HTTP status code of the provider error', + example: 400, nullable: true, - items: { - type: 'string', - enum: [ - 'ats', - 'hris', - 'hris-legacy', - 'crm', - 'iam', - 'marketing', - 'lms', - 'stackone', - 'documents', - 'ticketing', - 'screening', - null, - ], - }, }, - provider: { + url: { type: 'string', + description: 'URL that caused the error', + example: 'https://api.provider.com/v1/resource', nullable: true, }, - origin_owner_id: { - type: 'string', + raw: { + type: 'object', + description: 'Raw error response from the provider', + example: { + message: 'Invalid input parameters', + }, + nullable: true, }, - origin_owner_name: { - type: 'string', + headers: { + type: 'object', + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, }, - origin_username: { + }, + }, + ProxyRequestBody: { + type: 'object', + properties: { + url: { type: 'string', + description: 'The base url of the request', + example: 'https://api.sample-integration.com/v1', nullable: true, }, - account_id: { + method: { type: 'string', + description: 'The method of the request', + enum: ['get', 'post', 'put', 'delete', 'patch', null], + default: 'get', + 'x-speakeasy-unknown-values': 'allow', nullable: true, }, - label: { + path: { type: 'string', + description: 'The path of the request including any query paramters', + example: '/employees/directory', nullable: true, }, - created_at: { - format: 'date-time', - type: 'string', + headers: { + type: 'object', + description: 'The headers to send in the request', + additionalProperties: true, + example: { + 'Content-Type': 'application/json', + }, + nullable: true, }, - metadata: { + body: { type: 'object', - description: - 'Arbitrary set of key and values defined during the session token creation. This can be used to tag an account (eg. based on their pricing plan)', + description: 'The body of the request', + additionalProperties: true, nullable: true, }, }, - required: [ - 'id', - 'organization_id', - 'project_id', - 'origin_owner_id', - 'origin_owner_name', - 'created_at', - ], }, - ConnectSessionAuthenticate: { + RequestTimedOutResponse: { type: 'object', properties: { - token: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 408, + }, + message: { type: 'string', - description: 'The token to authenticate with', + description: 'Error message', + example: 'Request timed out', + }, + timestamp: { + type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, }, - required: ['token'], + required: ['statusCode', 'message', 'timestamp'], }, - ConnectSessionCreate: { + StatusReason: { type: 'object', properties: { - categories: { - type: 'array', - description: 'The categories of the provider to connect to', - example: [ - 'ats', - 'hris', - 'hrisLegacy', - 'crm', - 'iam', - 'marketing', - 'lms', - 'stackOne', - 'documents', - 'ticketing', - 'screening', - ], - 'x-speakeasy-unknown-values': 'allow', + code: { + type: 'string', nullable: true, - items: { - type: 'string', - enum: [ - 'ats', - 'hris', - 'hris-legacy', - 'crm', - 'iam', - 'marketing', - 'lms', - 'stackone', - 'documents', - 'ticketing', - 'screening', - null, - ], - }, }, - provider: { + description: { type: 'string', - description: 'The provider to connect to', nullable: true, }, - origin_owner_id: { + timestamp: { + format: 'date-time', type: 'string', - description: 'The origin owner identifier', }, - origin_owner_name: { + }, + required: ['timestamp'], + }, + StepLogsApiModel: { + type: 'object', + properties: { + request_id: { type: 'string', - description: 'The origin owner name', + description: 'The request ID', + example: 'adbf752f-6457-4ddd-89b3-98ae2252b83b', + nullable: true, }, - origin_username: { + start_time: { type: 'string', - description: 'The origin username', + description: 'The request start time ISO8601 date string', + example: '2021-01-01T00:00:00Z', + format: 'date-time', + nullable: true, + }, + end_time: { + type: 'string', + description: 'The request end time ISO8601 date string', + example: '2021-01-01T00:00:00Z', + format: 'date-time', nullable: true, }, account_id: { type: 'string', - description: - 'The unique identifier for the account associated with this connect session. When this field is present, the hub will launch in edit mode using the retrieved token.', + description: 'The account ID of the request', + example: '45355976281015164504', nullable: true, }, - expires_in: { - type: 'number', - description: 'How long the session should be valid for in seconds', - default: 1800, + project_id: { + type: 'string', + description: 'The project ID of the request', + example: 'dev-project-68574', nullable: true, }, - metadata: { - type: 'object', - description: 'The metadata for the connection', + http_method: { + type: 'string', + description: 'The requested HTTP method', + example: 'get', nullable: true, }, - multiple: { - type: 'boolean', - description: - 'If set, this connect session will allow creation of multiple accounts with the same origin owner id and provider. Has no effect if account_id is set.', - default: false, + path: { + type: 'string', + description: 'The requested path', + example: '/unified/hris/employees', nullable: true, }, - label: { + url: { type: 'string', - description: - 'The label to be applied to the account associated with this connect session.', + description: 'The requested URL', + example: 'https://api.stackone.com/unified/hris/employees?raw=false', nullable: true, }, - }, - required: ['origin_owner_id', 'origin_owner_name'], - }, - ConnectSessionTokenAuthLink: { - type: 'object', - properties: { - id: { + status: { type: 'number', + description: 'The requests response status code', + example: 200, + nullable: true, }, - organization_id: { + duration: { type: 'number', - }, - project_id: { - type: 'string', - }, - categories: { - type: 'array', - example: [ - 'ats', - 'hris', - 'hrisLegacy', - 'crm', - 'iam', - 'marketing', - 'lms', - 'stackOne', - 'documents', - 'ticketing', - 'screening', - ], - 'x-speakeasy-unknown-values': 'allow', + description: 'The request duration in milliseconds', + example: 356, nullable: true, - items: { - type: 'string', - enum: [ - 'ats', - 'hris', - 'hris-legacy', - 'crm', - 'iam', - 'marketing', - 'lms', - 'stackone', - 'documents', - 'ticketing', - 'screening', - null, - ], - }, }, - provider: { - type: 'string', + success: { + type: 'boolean', + description: 'The request success flag', + example: true, nullable: true, }, - origin_owner_id: { + provider: { type: 'string', + description: 'The requested provider', + example: 'planday', + nullable: true, }, - origin_owner_name: { + service: { type: 'string', + description: 'The requested service', + example: 'hris', + nullable: true, }, - origin_username: { + resource: { type: 'string', + description: 'The requested resource', + example: 'employees', nullable: true, }, - account_id: { + child_resource: { type: 'string', + description: 'The requested child resource', + example: 'time-off', nullable: true, }, - label: { + sub_resource: { type: 'string', + description: 'The requested sub resource', + example: 'documents', nullable: true, }, - created_at: { - format: 'date-time', + action: { type: 'string', + description: 'The requested action', + example: 'download', + nullable: true, }, - metadata: { - type: 'object', - description: - 'Arbitrary set of key and values defined during the session token creation. This can be used to tag an account (eg. based on their pricing plan)', + is_worker: { + type: 'boolean', + description: 'The asynchronous worker flag', + example: false, nullable: true, }, - token: { + id: { type: 'string', + description: 'The provider request ID', + example: 'adbf752f-6457-4ddd-89b3-98ae2252b83b', + nullable: true, }, - auth_link_url: { - type: 'string', + request: { + description: 'The advanced log request data', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/AdvancedLogRequestData', + }, + ], + }, + response: { + description: 'The advanced log response data', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/AdvancedLogResponseData', + }, + ], }, }, - required: [ - 'id', - 'organization_id', - 'project_id', - 'origin_owner_id', - 'origin_owner_name', - 'created_at', - 'token', - 'auth_link_url', - ], }, - LinkedAccount: { + StepLogsPaginated: { type: 'object', properties: { - id: { - type: 'string', - }, - provider: { - type: 'string', - }, - provider_name: { + next: { type: 'string', nullable: true, }, - status: { - type: 'string', - enum: ['active', 'inactive', 'error'], - 'x-speakeasy-unknown-values': 'allow', - }, - status_reasons: { - nullable: true, + data: { type: 'array', items: { - $ref: '#/components/schemas/StatusReason', + $ref: '#/components/schemas/StepLogsApiModel', }, }, - origin_owner_id: { - type: 'string', + }, + required: ['data'], + }, + TooManyRequestsResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 429, }, - origin_owner_name: { + message: { type: 'string', + description: 'Error message', + example: 'Too many requests', }, - origin_username: { + timestamp: { type: 'string', - nullable: true, - }, - credentials: { - type: 'object', - nullable: true, + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, - setup_information: { - type: 'object', - nullable: true, + }, + required: ['statusCode', 'message', 'timestamp'], + }, + UnauthorizedResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 401, }, - label: { + message: { type: 'string', - nullable: true, + description: 'Error message', + example: 'Unauthorized', }, - created_at: { - format: 'date-time', + timestamp: { type: 'string', - }, - updated_at: { + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', format: 'date-time', - type: 'string', }, }, - required: [ - 'id', - 'provider', - 'status', - 'origin_owner_id', - 'origin_owner_name', - 'created_at', - 'updated_at', - ], + required: ['statusCode', 'message', 'timestamp'], }, - LinkedAccountMeta: { + UnifiedError: { type: 'object', properties: { - provider: { - type: 'string', + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 400, + nullable: true, }, - category: { + message: { type: 'string', - enum: [ - 'ats', - 'hris', - 'hris-legacy', - 'crm', - 'iam', - 'marketing', - 'lms', - 'stackone', - 'documents', - 'ticketing', - 'screening', - ], - 'x-speakeasy-unknown-values': 'allow', + description: 'Error message', + example: 'Bad Request', + nullable: true, }, - models: { + headers: { type: 'object', - additionalProperties: true, + description: 'Response headers', + example: { + 'content-type': 'application/json', + 'x-request-id': '5678c28b211dace4e0a0f9171e6b88c5', + }, + nullable: true, }, }, - required: ['provider', 'category', 'models'], }, - PatchAccountExternalDto: { + UnifiedLogResult: { type: 'object', properties: { - provider: { + data: { + $ref: '#/components/schemas/UnifiedLogs', + }, + }, + required: ['data'], + }, + UnifiedLogs: { + type: 'object', + properties: { + request_id: { type: 'string', + description: 'The request ID', + example: 'adbf752f-6457-4ddd-89b3-98ae2252b83b', nullable: true, }, - origin_owner_id: { + event_datetime: { type: 'string', + description: 'The event ISO8601 date string', + example: '2021-01-01T00:00:00Z', + format: 'date-time', nullable: true, }, - origin_owner_name: { + start_time: { type: 'string', + description: 'The request start time ISO8601 date string', + example: '2021-01-01T00:00:00Z', + format: 'date-time', nullable: true, }, - origin_username: { + end_time: { type: 'string', + description: 'The request end time ISO8601 date string', + example: '2021-01-01T00:00:00Z', + format: 'date-time', nullable: true, }, - credentials: { - type: 'object', - additionalProperties: false, + account_id: { + type: 'string', + description: 'The account ID of the request', + example: '45355976281015164504', nullable: true, }, - setup_information: { - type: 'object', - additionalProperties: false, + project_id: { + type: 'string', + description: 'The project ID of the request', + example: 'dev-project-68574', nullable: true, }, - secrets: { - type: 'object', - additionalProperties: false, + http_method: { + type: 'string', + description: 'The requested HTTP method', + example: 'get', nullable: true, }, - authentication_config_key: { + path: { type: 'string', + description: 'The requested path', + example: '/unified/hris/employees', nullable: true, }, - environment: { + url: { type: 'string', + description: 'The requested URL', + example: 'https://api.stackone.com/unified/hris/employees?raw=false', nullable: true, }, - label: { - type: 'object', + status: { + type: 'number', + description: 'The requests response status code', + example: 200, nullable: true, }, - metadata: { - type: 'object', - additionalProperties: false, + duration: { + type: 'number', + description: 'The request duration in milliseconds', + example: 356, nullable: true, }, - }, - }, - ProxyRequestBody: { - type: 'object', - properties: { - url: { + success: { + type: 'boolean', + description: 'The request success flag', + example: true, + nullable: true, + }, + provider: { type: 'string', - description: 'The base url of the request', - example: 'https://api.sample-integration.com/v1', + description: 'The requested provider', + example: 'planday', nullable: true, }, - method: { + service: { type: 'string', - description: 'The method of the request', - enum: ['get', 'post', 'put', 'delete', 'patch', null], - default: 'get', - 'x-speakeasy-unknown-values': 'allow', + description: 'The requested service', + example: 'hris', nullable: true, }, - path: { + resource: { type: 'string', - description: 'The path of the request including any query paramters', - example: '/employees/directory', + description: 'The requested resource', + example: 'employees', nullable: true, }, - headers: { - type: 'object', - description: 'The headers to send in the request', - additionalProperties: true, - example: { - 'Content-Type': 'application/json', - }, + child_resource: { + type: 'string', + description: 'The requested child resource', + example: 'time-off', nullable: true, }, - body: { - type: 'object', - description: 'The body of the request', - additionalProperties: true, + sub_resource: { + type: 'string', + description: 'The requested sub resource', + example: 'documents', + nullable: true, + }, + action: { + type: 'string', + description: 'The requested action', + example: 'download', + nullable: true, + }, + is_worker: { + type: 'boolean', + description: 'The asynchronous worker flag', + example: false, + nullable: true, + }, + source_type: { + type: 'string', + description: 'The requests source type', + example: 'DASHBOARD', + nullable: true, + }, + source_value: { + type: 'string', + description: 'The requests source value', + example: 'ACCOUNT_TESTER', + nullable: true, + }, + source_id: { + type: 'string', + description: 'The requests source ID', + example: '1234567890', + nullable: true, + }, + request: { + description: 'The advanced log request data', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/AdvancedLogRequestData', + }, + ], + }, + response: { + description: 'The advanced log response data', + nullable: true, + allOf: [ + { + $ref: '#/components/schemas/AdvancedLogResponseData', + }, + ], + }, + step_requests: { + description: 'The list of provider requests', + example: 'Account Tester', nullable: true, + type: 'array', + items: { + type: 'string', + }, }, }, }, - StatusReason: { + UnifiedLogsPaginated: { type: 'object', properties: { - code: { + next: { type: 'string', nullable: true, }, - description: { + data: { + type: 'array', + items: { + $ref: '#/components/schemas/UnifiedLogs', + }, + }, + }, + required: ['data'], + }, + UnprocessableEntityResponse: { + type: 'object', + properties: { + statusCode: { + type: 'number', + description: 'HTTP status code', + example: 422, + }, + message: { type: 'string', - nullable: true, + description: 'Error message', + example: 'Unprocessable Entity', }, timestamp: { - format: 'date-time', type: 'string', + description: 'Timestamp when the error occurred', + example: '2023-05-30T00:00:00.000Z', + format: 'date-time', }, }, - required: ['timestamp'], + required: ['statusCode', 'message', 'timestamp'], }, }, },