@persei/perseed-api 5.0.19 → 5.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +875 -71
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +876 -72
- package/dist/client.mjs.map +1 -1
- package/dist/ecosystem-action-system.cjs +586 -0
- package/dist/ecosystem-action-system.cjs.map +1 -0
- package/dist/ecosystem-action-system.d.ts +1 -0
- package/dist/ecosystem-action-system.mjs +586 -0
- package/dist/ecosystem-action-system.mjs.map +1 -0
- package/dist/lib/src/client/customFetch.d.ts +51 -0
- package/dist/lib/src/client/customFetch.d.ts.map +1 -0
- package/dist/lib/src/client/customFetch.test.d.ts +2 -0
- package/dist/lib/src/client/customFetch.test.d.ts.map +1 -0
- package/dist/lib/src/client/index.d.ts +1 -0
- package/dist/lib/src/client/index.d.ts.map +1 -1
- package/dist/lib/src/generated/client.d.ts +5251 -670
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/AuthenticationSecurityService.d.ts +1 -1
- package/dist/src/Services/MobileService.d.ts +26 -1
- package/dist/src/Services/MobileService.d.ts.map +1 -1
- package/dist/src/Services/ProcessLogService.d.ts +1 -1
- package/dist/src/Services/ProcessLogService.d.ts.map +1 -1
- package/dist/src/Services/ProjectService.d.ts.map +1 -1
- package/dist/src/Services/QueryService.d.ts +24 -1
- package/dist/src/Services/QueryService.d.ts.map +1 -1
- package/dist/src/Services/RedisQueueService.d.ts +16 -0
- package/dist/src/Services/RedisQueueService.d.ts.map +1 -1
- package/dist/src/Services/TriggerProcessLogService.d.ts +90 -0
- package/dist/src/Services/TriggerProcessLogService.d.ts.map +1 -0
- package/dist/src/Services/TriggerService.d.ts +16 -11
- package/dist/src/Services/TriggerService.d.ts.map +1 -1
- package/dist/src/Services/trigger-process-log-service.test.d.ts +2 -0
- package/dist/src/Services/trigger-process-log-service.test.d.ts.map +1 -0
- package/dist/src/controllers/AuthController.d.ts.map +1 -1
- package/dist/src/controllers/FormController.d.ts.map +1 -1
- package/dist/src/helpers/error.d.ts +12 -0
- package/dist/src/helpers/error.d.ts.map +1 -1
- package/dist/src/lib.d.ts +1 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/models/ecosystem/NotificationConfiguration.d.ts +1 -1
- package/dist/src/models/ecosystem/NotificationConfiguration.d.ts.map +1 -1
- package/dist/src/models/ecosystem/User.d.ts +17 -0
- package/dist/src/models/ecosystem/User.d.ts.map +1 -1
- package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts +2 -0
- package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts.map +1 -0
- package/dist/src/models/perseed/PerseedEcosystem.d.ts +2 -0
- package/dist/src/models/perseed/PerseedEcosystem.d.ts.map +1 -1
- package/dist/src/models/project/DesignerCrf.d.ts +3 -2
- package/dist/src/models/project/DesignerCrf.d.ts.map +1 -1
- package/dist/src/models/project/designer-crf-after-save.test.d.ts +2 -0
- package/dist/src/models/project/designer-crf-after-save.test.d.ts.map +1 -0
- package/dist/src/module.d.ts +5 -0
- package/dist/src/schemas/api_action/ApiActionTypes.d.ts +11 -0
- package/dist/src/schemas/api_action/ApiActionTypes.d.ts.map +1 -1
- package/dist/src/schemas/index.d.ts +1 -0
- package/dist/src/schemas/index.d.ts.map +1 -1
- package/dist/src/schemas/notification_configuration/types.d.ts +19 -8
- package/dist/src/schemas/notification_configuration/types.d.ts.map +1 -1
- package/dist/src/schemas/process_log/create_process_log_payload.schema.json +4 -0
- package/dist/src/schemas/process_log/types.d.ts +3 -0
- package/dist/src/schemas/process_log/types.d.ts.map +1 -1
- package/dist/src/schemas/project_user/index.d.ts +2 -0
- package/dist/src/schemas/project_user/index.d.ts.map +1 -0
- package/dist/src/schemas/project_user/types.d.ts +44 -0
- package/dist/src/schemas/project_user/types.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action-system.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action.controller.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/action.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/automatic-trigger.controller.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/automatic-trigger.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/index.d.ts +6 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/manual-trigger.controller.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/manual-trigger.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts +149 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.d.ts +5 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/conditions-matcher.helper.test.d.ts.map +1 -0
- package/dist/src/{Services/ConditionsMatcher/CustomConditionsFormat.d.ts → v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.d.ts} +2 -2
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/custom-conditions-format.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts +5 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts +13 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts +122 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts +744 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.d.ts +37 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action-system.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.d.ts +18 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/action.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.d.ts +137 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/index.d.ts +8 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts +34 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts +179 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.d.ts +31 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-actions.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts +57 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/index.d.ts +6 -0
- package/dist/src/v2/modules/ecosystem/action-system/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/lib.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/lib.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/index.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/process-log/index.d.ts.map +1 -0
- package/dist/src/{models/ecosystem/ProcessLog.d.ts → v2/modules/ecosystem/process-log/process-log.model.d.ts} +16 -5
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts +20 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/api-error/api-error.schema.d.ts +9 -0
- package/dist/src/v2/modules/global/api-error/api-error.schema.d.ts.map +1 -1
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts.map +1 -1
- package/dist/src/v2/modules/global/request-log/request-log.middleware.d.ts.map +1 -1
- package/dist/src/v2/modules/project/document/document.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts +16 -4
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts.map +1 -1
- package/dist/src/v2/routes/v2/e2e/index.d.ts.map +1 -1
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/action/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/action/index.d.ts.map +1 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/automatic-trigger/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/automatic-trigger/index.d.ts.map +1 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/manual-trigger/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/manual-trigger/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs +8 -11
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs +7 -10
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/src/Services/ConditionsMatcher/CustomConditionsFormat.d.ts.map +0 -1
- package/dist/src/Services/ConditionsMatcher/index.d.ts +0 -4
- package/dist/src/Services/ConditionsMatcher/index.d.ts.map +0 -1
- package/dist/src/Services/conditions-matcher.test.d.ts +0 -2
- package/dist/src/Services/conditions-matcher.test.d.ts.map +0 -1
- package/dist/src/Services/custom-conditions-format.test.d.ts +0 -2
- package/dist/src/Services/custom-conditions-format.test.d.ts.map +0 -1
- package/dist/src/models/ecosystem/ProcessLog.d.ts.map +0 -1
package/dist/client.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.mjs","sources":["../src/generated/client.ts"],"sourcesContent":["/**\n * Generated by orval v7.21.0 🍺\n * Do not edit manually.\n * @fastify/swagger\n * OpenAPI spec version: 9.7.0\n */\nexport type ListAvailableActionsParams = {\n /**\n * Patient identifier used to evaluate each action questionnaire's dependency conditions (DependenceCRF.conditionsMatch). When omitted, all action questionnaire ids are returned without dependency filtering.\n */\n patientId?: number\n}\n\n/**\n * List of applicable action questionnaire ids\n */\nexport type ListAvailableActions200 = {\n /** Form names (ids) of the action questionnaires applicable to the patient */\n results: string[]\n}\n\n/**\n * Debug information of the error\n */\nexport type ListAvailableActions403AllOfDebug = { [key: string]: unknown }\n\nexport type ListAvailableActions403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAvailableActions403AllOfDebug\n}\n\nexport type ListAvailableActions403AllOfThreeStatusCode =\n (typeof ListAvailableActions403AllOfThreeStatusCode)[keyof typeof ListAvailableActions403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListAvailableActions403AllOfThreeError =\n (typeof ListAvailableActions403AllOfThreeError)[keyof typeof ListAvailableActions403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListAvailableActions403AllOfThree = {\n statusCode: ListAvailableActions403AllOfThreeStatusCode\n error: ListAvailableActions403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListAvailableActions403 = ListAvailableActions403AllOf & ListAvailableActions403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListAvailableActions404AllOfDebug = { [key: string]: unknown }\n\nexport type ListAvailableActions404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAvailableActions404AllOfDebug\n}\n\nexport type ListAvailableActions404AllOfThreeStatusCode =\n (typeof ListAvailableActions404AllOfThreeStatusCode)[keyof typeof ListAvailableActions404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListAvailableActions404AllOfThreeError =\n (typeof ListAvailableActions404AllOfThreeError)[keyof typeof ListAvailableActions404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListAvailableActions404AllOfThree = {\n statusCode: ListAvailableActions404AllOfThreeStatusCode\n error: ListAvailableActions404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListAvailableActions404 = ListAvailableActions404AllOf & ListAvailableActions404AllOfThree\n\nexport type ListDocumentsParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type ListDocuments200ResultsItemAllOf = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\nexport type ListDocuments200ResultsItemAllOfTwoCategoriesItem = {\n /** Category ID */\n id: number\n /** Category name */\n name: string\n}\n\nexport type ListDocuments200ResultsItemAllOfTwo = {\n /** Categories linked to the document */\n categories?: ListDocuments200ResultsItemAllOfTwoCategoriesItem[]\n}\n\n/**\n * Document item returned in document listings\n */\nexport type ListDocuments200ResultsItem = ListDocuments200ResultsItemAllOf & ListDocuments200ResultsItemAllOfTwo\n\n/**\n * Paginated response\n */\nexport type ListDocuments200 = {\n /** Array of items of the current page */\n results: ListDocuments200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListDocuments403AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocuments403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocuments403AllOfDebug\n}\n\nexport type ListDocuments403AllOfThreeStatusCode =\n (typeof ListDocuments403AllOfThreeStatusCode)[keyof typeof ListDocuments403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListDocuments403AllOfThreeError =\n (typeof ListDocuments403AllOfThreeError)[keyof typeof ListDocuments403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListDocuments403AllOfThree = {\n statusCode: ListDocuments403AllOfThreeStatusCode\n error: ListDocuments403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListDocuments403 = ListDocuments403AllOf & ListDocuments403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListDocuments404AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocuments404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocuments404AllOfDebug\n}\n\nexport type ListDocuments404AllOfThreeStatusCode =\n (typeof ListDocuments404AllOfThreeStatusCode)[keyof typeof ListDocuments404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListDocuments404AllOfThreeError =\n (typeof ListDocuments404AllOfThreeError)[keyof typeof ListDocuments404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListDocuments404AllOfThree = {\n statusCode: ListDocuments404AllOfThreeStatusCode\n error: ListDocuments404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListDocuments404 = ListDocuments404AllOf & ListDocuments404AllOfThree\n\n/**\n * Payload used to create a new document record\n */\nexport type CreateDocumentBody = {\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /** Category IDs to associate with the document */\n category_ids?: number[]\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type CreateDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocument403AllOfDebug\n}\n\nexport type CreateDocument403AllOfThreeStatusCode =\n (typeof CreateDocument403AllOfThreeStatusCode)[keyof typeof CreateDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateDocument403AllOfThreeError =\n (typeof CreateDocument403AllOfThreeError)[keyof typeof CreateDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateDocument403AllOfThree = {\n statusCode: CreateDocument403AllOfThreeStatusCode\n error: CreateDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateDocument403 = CreateDocument403AllOf & CreateDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocument404AllOfDebug\n}\n\nexport type CreateDocument404AllOfThreeStatusCode =\n (typeof CreateDocument404AllOfThreeStatusCode)[keyof typeof CreateDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateDocument404AllOfThreeError =\n (typeof CreateDocument404AllOfThreeError)[keyof typeof CreateDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateDocument404AllOfThree = {\n statusCode: CreateDocument404AllOfThreeStatusCode\n error: CreateDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateDocument404 = CreateDocument404AllOf & CreateDocument404AllOfThree\n\n/**\n * Represents an uploaded document record\n */\nexport type GetDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocument403AllOfDebug\n}\n\nexport type GetDocument403AllOfThreeStatusCode =\n (typeof GetDocument403AllOfThreeStatusCode)[keyof typeof GetDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetDocument403AllOfThreeError =\n (typeof GetDocument403AllOfThreeError)[keyof typeof GetDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetDocument403AllOfThree = {\n statusCode: GetDocument403AllOfThreeStatusCode\n error: GetDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetDocument403 = GetDocument403AllOf & GetDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocument404AllOfDebug\n}\n\nexport type GetDocument404AllOfThreeStatusCode =\n (typeof GetDocument404AllOfThreeStatusCode)[keyof typeof GetDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetDocument404AllOfThreeError =\n (typeof GetDocument404AllOfThreeError)[keyof typeof GetDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetDocument404AllOfThree = {\n statusCode: GetDocument404AllOfThreeStatusCode\n error: GetDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetDocument404 = GetDocument404AllOf & GetDocument404AllOfThree\n\n/**\n * Payload used to update a document record\n */\nexport type UpdateDocumentBody = {\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file?: string\n /** Hospital/clinic ID associated with the document */\n organization_unit?: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /** Category IDs to associate with the document */\n category_ids?: number[]\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type UpdateDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocument403AllOfDebug\n}\n\nexport type UpdateDocument403AllOfThreeStatusCode =\n (typeof UpdateDocument403AllOfThreeStatusCode)[keyof typeof UpdateDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateDocument403AllOfThreeError =\n (typeof UpdateDocument403AllOfThreeError)[keyof typeof UpdateDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateDocument403AllOfThree = {\n statusCode: UpdateDocument403AllOfThreeStatusCode\n error: UpdateDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateDocument403 = UpdateDocument403AllOf & UpdateDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocument404AllOfDebug\n}\n\nexport type UpdateDocument404AllOfThreeStatusCode =\n (typeof UpdateDocument404AllOfThreeStatusCode)[keyof typeof UpdateDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateDocument404AllOfThreeError =\n (typeof UpdateDocument404AllOfThreeError)[keyof typeof UpdateDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateDocument404AllOfThree = {\n statusCode: UpdateDocument404AllOfThreeStatusCode\n error: UpdateDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateDocument404 = UpdateDocument404AllOf & UpdateDocument404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocument403AllOfDebug\n}\n\nexport type DeleteDocument403AllOfThreeStatusCode =\n (typeof DeleteDocument403AllOfThreeStatusCode)[keyof typeof DeleteDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteDocument403AllOfThreeError =\n (typeof DeleteDocument403AllOfThreeError)[keyof typeof DeleteDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteDocument403AllOfThree = {\n statusCode: DeleteDocument403AllOfThreeStatusCode\n error: DeleteDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteDocument403 = DeleteDocument403AllOf & DeleteDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocument404AllOfDebug\n}\n\nexport type DeleteDocument404AllOfThreeStatusCode =\n (typeof DeleteDocument404AllOfThreeStatusCode)[keyof typeof DeleteDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteDocument404AllOfThreeError =\n (typeof DeleteDocument404AllOfThreeError)[keyof typeof DeleteDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteDocument404AllOfThree = {\n statusCode: DeleteDocument404AllOfThreeStatusCode\n error: DeleteDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteDocument404 = DeleteDocument404AllOf & DeleteDocument404AllOfThree\n\n/**\n * Payload used to associate a category with a document\n */\nexport type AddCategoryToDocumentBody = {\n /** Category ID to associate with the document */\n categoryId: number\n}\n\n/**\n * Response when the request is successful\n */\nexport type AddCategoryToDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type AddCategoryToDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type AddCategoryToDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: AddCategoryToDocument403AllOfDebug\n}\n\nexport type AddCategoryToDocument403AllOfThreeStatusCode =\n (typeof AddCategoryToDocument403AllOfThreeStatusCode)[keyof typeof AddCategoryToDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type AddCategoryToDocument403AllOfThreeError =\n (typeof AddCategoryToDocument403AllOfThreeError)[keyof typeof AddCategoryToDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type AddCategoryToDocument403AllOfThree = {\n statusCode: AddCategoryToDocument403AllOfThreeStatusCode\n error: AddCategoryToDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type AddCategoryToDocument403 = AddCategoryToDocument403AllOf & AddCategoryToDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type AddCategoryToDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type AddCategoryToDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: AddCategoryToDocument404AllOfDebug\n}\n\nexport type AddCategoryToDocument404AllOfThreeStatusCode =\n (typeof AddCategoryToDocument404AllOfThreeStatusCode)[keyof typeof AddCategoryToDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type AddCategoryToDocument404AllOfThreeError =\n (typeof AddCategoryToDocument404AllOfThreeError)[keyof typeof AddCategoryToDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type AddCategoryToDocument404AllOfThree = {\n statusCode: AddCategoryToDocument404AllOfThreeStatusCode\n error: AddCategoryToDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type AddCategoryToDocument404 = AddCategoryToDocument404AllOf & AddCategoryToDocument404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type RemoveCategoryFromDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type RemoveCategoryFromDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type RemoveCategoryFromDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RemoveCategoryFromDocument403AllOfDebug\n}\n\nexport type RemoveCategoryFromDocument403AllOfThreeStatusCode =\n (typeof RemoveCategoryFromDocument403AllOfThreeStatusCode)[keyof typeof RemoveCategoryFromDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type RemoveCategoryFromDocument403AllOfThreeError =\n (typeof RemoveCategoryFromDocument403AllOfThreeError)[keyof typeof RemoveCategoryFromDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type RemoveCategoryFromDocument403AllOfThree = {\n statusCode: RemoveCategoryFromDocument403AllOfThreeStatusCode\n error: RemoveCategoryFromDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type RemoveCategoryFromDocument403 = RemoveCategoryFromDocument403AllOf & RemoveCategoryFromDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type RemoveCategoryFromDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type RemoveCategoryFromDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RemoveCategoryFromDocument404AllOfDebug\n}\n\nexport type RemoveCategoryFromDocument404AllOfThreeStatusCode =\n (typeof RemoveCategoryFromDocument404AllOfThreeStatusCode)[keyof typeof RemoveCategoryFromDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type RemoveCategoryFromDocument404AllOfThreeError =\n (typeof RemoveCategoryFromDocument404AllOfThreeError)[keyof typeof RemoveCategoryFromDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type RemoveCategoryFromDocument404AllOfThree = {\n statusCode: RemoveCategoryFromDocument404AllOfThreeStatusCode\n error: RemoveCategoryFromDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type RemoveCategoryFromDocument404 = RemoveCategoryFromDocument404AllOf & RemoveCategoryFromDocument404AllOfThree\n\nexport type ListDocumentCategoriesParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Document category data\n */\nexport type ListDocumentCategories200ResultsItemAllOf = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\nexport type ListDocumentCategories200ResultsItemAllOfTwo = {\n /** Number of documents in this category */\n documents_count: number\n}\n\n/**\n * Document category list item\n */\nexport type ListDocumentCategories200ResultsItem = ListDocumentCategories200ResultsItemAllOf &\n ListDocumentCategories200ResultsItemAllOfTwo\n\n/**\n * Paginated response\n */\nexport type ListDocumentCategories200 = {\n /** Array of items of the current page */\n results: ListDocumentCategories200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories403AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories403AllOfDebug\n}\n\nexport type ListDocumentCategories403AllOfThreeStatusCode =\n (typeof ListDocumentCategories403AllOfThreeStatusCode)[keyof typeof ListDocumentCategories403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListDocumentCategories403AllOfThreeError =\n (typeof ListDocumentCategories403AllOfThreeError)[keyof typeof ListDocumentCategories403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListDocumentCategories403AllOfThree = {\n statusCode: ListDocumentCategories403AllOfThreeStatusCode\n error: ListDocumentCategories403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListDocumentCategories403 = ListDocumentCategories403AllOf & ListDocumentCategories403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories404AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories404AllOfDebug\n}\n\nexport type ListDocumentCategories404AllOfThreeStatusCode =\n (typeof ListDocumentCategories404AllOfThreeStatusCode)[keyof typeof ListDocumentCategories404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListDocumentCategories404AllOfThreeError =\n (typeof ListDocumentCategories404AllOfThreeError)[keyof typeof ListDocumentCategories404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListDocumentCategories404AllOfThree = {\n statusCode: ListDocumentCategories404AllOfThreeStatusCode\n error: ListDocumentCategories404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListDocumentCategories404 = ListDocumentCategories404AllOf & ListDocumentCategories404AllOfThree\n\n/**\n * Document category creation payload\n */\nexport type CreateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Document category data\n */\nexport type CreateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory403AllOfDebug\n}\n\nexport type CreateDocumentCategory403AllOfThreeStatusCode =\n (typeof CreateDocumentCategory403AllOfThreeStatusCode)[keyof typeof CreateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateDocumentCategory403AllOfThreeError =\n (typeof CreateDocumentCategory403AllOfThreeError)[keyof typeof CreateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateDocumentCategory403AllOfThree = {\n statusCode: CreateDocumentCategory403AllOfThreeStatusCode\n error: CreateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateDocumentCategory403 = CreateDocumentCategory403AllOf & CreateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory404AllOfDebug\n}\n\nexport type CreateDocumentCategory404AllOfThreeStatusCode =\n (typeof CreateDocumentCategory404AllOfThreeStatusCode)[keyof typeof CreateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateDocumentCategory404AllOfThreeError =\n (typeof CreateDocumentCategory404AllOfThreeError)[keyof typeof CreateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateDocumentCategory404AllOfThree = {\n statusCode: CreateDocumentCategory404AllOfThreeStatusCode\n error: CreateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateDocumentCategory404 = CreateDocumentCategory404AllOf & CreateDocumentCategory404AllOfThree\n\n/**\n * Document category data\n */\nexport type GetDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory403AllOfDebug\n}\n\nexport type GetDocumentCategory403AllOfThreeStatusCode =\n (typeof GetDocumentCategory403AllOfThreeStatusCode)[keyof typeof GetDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetDocumentCategory403AllOfThreeError =\n (typeof GetDocumentCategory403AllOfThreeError)[keyof typeof GetDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetDocumentCategory403AllOfThree = {\n statusCode: GetDocumentCategory403AllOfThreeStatusCode\n error: GetDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetDocumentCategory403 = GetDocumentCategory403AllOf & GetDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory404AllOfDebug\n}\n\nexport type GetDocumentCategory404AllOfThreeStatusCode =\n (typeof GetDocumentCategory404AllOfThreeStatusCode)[keyof typeof GetDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetDocumentCategory404AllOfThreeError =\n (typeof GetDocumentCategory404AllOfThreeError)[keyof typeof GetDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetDocumentCategory404AllOfThree = {\n statusCode: GetDocumentCategory404AllOfThreeStatusCode\n error: GetDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetDocumentCategory404 = GetDocumentCategory404AllOf & GetDocumentCategory404AllOfThree\n\n/**\n * Document category update payload\n */\nexport type UpdateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name?: string\n}\n\n/**\n * Document category data\n */\nexport type UpdateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory403AllOfDebug\n}\n\nexport type UpdateDocumentCategory403AllOfThreeStatusCode =\n (typeof UpdateDocumentCategory403AllOfThreeStatusCode)[keyof typeof UpdateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateDocumentCategory403AllOfThreeError =\n (typeof UpdateDocumentCategory403AllOfThreeError)[keyof typeof UpdateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateDocumentCategory403AllOfThree = {\n statusCode: UpdateDocumentCategory403AllOfThreeStatusCode\n error: UpdateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateDocumentCategory403 = UpdateDocumentCategory403AllOf & UpdateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory404AllOfDebug\n}\n\nexport type UpdateDocumentCategory404AllOfThreeStatusCode =\n (typeof UpdateDocumentCategory404AllOfThreeStatusCode)[keyof typeof UpdateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateDocumentCategory404AllOfThreeError =\n (typeof UpdateDocumentCategory404AllOfThreeError)[keyof typeof UpdateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateDocumentCategory404AllOfThree = {\n statusCode: UpdateDocumentCategory404AllOfThreeStatusCode\n error: UpdateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateDocumentCategory404 = UpdateDocumentCategory404AllOf & UpdateDocumentCategory404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteDocumentCategory200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory403AllOfDebug\n}\n\nexport type DeleteDocumentCategory403AllOfThreeStatusCode =\n (typeof DeleteDocumentCategory403AllOfThreeStatusCode)[keyof typeof DeleteDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteDocumentCategory403AllOfThreeError =\n (typeof DeleteDocumentCategory403AllOfThreeError)[keyof typeof DeleteDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteDocumentCategory403AllOfThree = {\n statusCode: DeleteDocumentCategory403AllOfThreeStatusCode\n error: DeleteDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteDocumentCategory403 = DeleteDocumentCategory403AllOf & DeleteDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory404AllOfDebug\n}\n\nexport type DeleteDocumentCategory404AllOfThreeStatusCode =\n (typeof DeleteDocumentCategory404AllOfThreeStatusCode)[keyof typeof DeleteDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteDocumentCategory404AllOfThreeError =\n (typeof DeleteDocumentCategory404AllOfThreeError)[keyof typeof DeleteDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteDocumentCategory404AllOfThree = {\n statusCode: DeleteDocumentCategory404AllOfThreeStatusCode\n error: DeleteDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteDocumentCategory404 = DeleteDocumentCategory404AllOf & DeleteDocumentCategory404AllOfThree\n\nexport type GetFormsDataParams = {\n /**\n * ID of the associated dashboard widget\n */\n dashboardWidgetId: number\n /**\n * Values for params referenced in Card filterParams blocks\n */\n paramValues?: { [key: string]: unknown }\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\nexport type GetFormsData200ResultsItem = { [key: string]: unknown }\n\n/**\n * Paginated response\n */\nexport type GetFormsData200 = {\n /** Array of items of the current page */\n results: GetFormsData200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type GetFormsData403AllOfDebug = { [key: string]: unknown }\n\nexport type GetFormsData403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetFormsData403AllOfDebug\n}\n\nexport type GetFormsData403AllOfThreeStatusCode =\n (typeof GetFormsData403AllOfThreeStatusCode)[keyof typeof GetFormsData403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetFormsData403AllOfThreeError =\n (typeof GetFormsData403AllOfThreeError)[keyof typeof GetFormsData403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetFormsData403AllOfThree = {\n statusCode: GetFormsData403AllOfThreeStatusCode\n error: GetFormsData403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetFormsData403 = GetFormsData403AllOf & GetFormsData403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetFormsData404AllOfDebug = { [key: string]: unknown }\n\nexport type GetFormsData404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetFormsData404AllOfDebug\n}\n\nexport type GetFormsData404AllOfThreeStatusCode =\n (typeof GetFormsData404AllOfThreeStatusCode)[keyof typeof GetFormsData404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetFormsData404AllOfThreeError =\n (typeof GetFormsData404AllOfThreeError)[keyof typeof GetFormsData404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetFormsData404AllOfThree = {\n statusCode: GetFormsData404AllOfThreeStatusCode\n error: GetFormsData404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetFormsData404 = GetFormsData404AllOf & GetFormsData404AllOfThree\n\n/**\n * Thryve connection widget URL response\n */\nexport type GetThryveIframeUrl200 = {\n /** Short-lived URL to embed in an iframe / WebView for the Thryve connection widget */\n url: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIframeUrl403AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIframeUrl403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIframeUrl403AllOfDebug\n}\n\nexport type GetThryveIframeUrl403AllOfThreeStatusCode =\n (typeof GetThryveIframeUrl403AllOfThreeStatusCode)[keyof typeof GetThryveIframeUrl403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetThryveIframeUrl403AllOfThreeError =\n (typeof GetThryveIframeUrl403AllOfThreeError)[keyof typeof GetThryveIframeUrl403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetThryveIframeUrl403AllOfThree = {\n statusCode: GetThryveIframeUrl403AllOfThreeStatusCode\n error: GetThryveIframeUrl403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetThryveIframeUrl403 = GetThryveIframeUrl403AllOf & GetThryveIframeUrl403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIframeUrl404AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIframeUrl404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIframeUrl404AllOfDebug\n}\n\nexport type GetThryveIframeUrl404AllOfThreeStatusCode =\n (typeof GetThryveIframeUrl404AllOfThreeStatusCode)[keyof typeof GetThryveIframeUrl404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetThryveIframeUrl404AllOfThreeError =\n (typeof GetThryveIframeUrl404AllOfThreeError)[keyof typeof GetThryveIframeUrl404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetThryveIframeUrl404AllOfThree = {\n statusCode: GetThryveIframeUrl404AllOfThreeStatusCode\n error: GetThryveIframeUrl404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetThryveIframeUrl404 = GetThryveIframeUrl404AllOf & GetThryveIframeUrl404AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIsAuthorized403AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIsAuthorized403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIsAuthorized403AllOfDebug\n}\n\nexport type GetThryveIsAuthorized403AllOfThreeStatusCode =\n (typeof GetThryveIsAuthorized403AllOfThreeStatusCode)[keyof typeof GetThryveIsAuthorized403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetThryveIsAuthorized403AllOfThreeError =\n (typeof GetThryveIsAuthorized403AllOfThreeError)[keyof typeof GetThryveIsAuthorized403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetThryveIsAuthorized403AllOfThree = {\n statusCode: GetThryveIsAuthorized403AllOfThreeStatusCode\n error: GetThryveIsAuthorized403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetThryveIsAuthorized403 = GetThryveIsAuthorized403AllOf & GetThryveIsAuthorized403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIsAuthorized404AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIsAuthorized404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIsAuthorized404AllOfDebug\n}\n\nexport type GetThryveIsAuthorized404AllOfThreeStatusCode =\n (typeof GetThryveIsAuthorized404AllOfThreeStatusCode)[keyof typeof GetThryveIsAuthorized404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetThryveIsAuthorized404AllOfThreeError =\n (typeof GetThryveIsAuthorized404AllOfThreeError)[keyof typeof GetThryveIsAuthorized404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetThryveIsAuthorized404AllOfThree = {\n statusCode: GetThryveIsAuthorized404AllOfThreeStatusCode\n error: GetThryveIsAuthorized404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetThryveIsAuthorized404 = GetThryveIsAuthorized404AllOf & GetThryveIsAuthorized404AllOfThree\n\nexport type postV2AuthLoginGlobalResponse200 = {\n data: void\n status: 200\n}\n\nexport type postV2AuthLoginGlobalResponseSuccess = postV2AuthLoginGlobalResponse200 & {\n headers: Headers\n}\nexport type postV2AuthLoginGlobalResponse = postV2AuthLoginGlobalResponseSuccess\n\nexport const getPostV2AuthLoginGlobalUrl = () => {\n return `/v2/auth/login/global`\n}\n\nexport const postV2AuthLoginGlobal = async (options?: RequestInit): Promise<postV2AuthLoginGlobalResponse> => {\n const res = await fetch(getPostV2AuthLoginGlobalUrl(), {\n ...options,\n method: 'POST',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: postV2AuthLoginGlobalResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as postV2AuthLoginGlobalResponse\n}\n\n/**\n * List ids (form names) of action questionnaires applicable to the current patient. Action questionnaires are marked via the meta_info field \"is_action\"; those whose \"action_props\" configuration is malformed are excluded. Presentation properties (label, icon, color) are read from the designers payload.\n */\nexport type listAvailableActionsResponse200 = {\n data: ListAvailableActions200\n status: 200\n}\n\nexport type listAvailableActionsResponse403 = {\n data: ListAvailableActions403\n status: 403\n}\n\nexport type listAvailableActionsResponse404 = {\n data: ListAvailableActions404\n status: 404\n}\n\nexport type listAvailableActionsResponseSuccess = listAvailableActionsResponse200 & {\n headers: Headers\n}\nexport type listAvailableActionsResponseError = (listAvailableActionsResponse403 | listAvailableActionsResponse404) & {\n headers: Headers\n}\n\nexport type listAvailableActionsResponse = listAvailableActionsResponseSuccess | listAvailableActionsResponseError\n\nexport const getListAvailableActionsUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListAvailableActionsParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/actions/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/actions/`\n}\n\nexport const listAvailableActions = async (\n ecosystemName: string,\n projectName: string,\n params?: ListAvailableActionsParams,\n options?: RequestInit,\n): Promise<listAvailableActionsResponse> => {\n const res = await fetch(getListAvailableActionsUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: listAvailableActionsResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as listAvailableActionsResponse\n}\n\n/**\n * Get a paginated list of documents\n */\nexport type listDocumentsResponse200 = {\n data: ListDocuments200\n status: 200\n}\n\nexport type listDocumentsResponse403 = {\n data: ListDocuments403\n status: 403\n}\n\nexport type listDocumentsResponse404 = {\n data: ListDocuments404\n status: 404\n}\n\nexport type listDocumentsResponseSuccess = listDocumentsResponse200 & {\n headers: Headers\n}\nexport type listDocumentsResponseError = (listDocumentsResponse403 | listDocumentsResponse404) & {\n headers: Headers\n}\n\nexport type listDocumentsResponse = listDocumentsResponseSuccess | listDocumentsResponseError\n\nexport const getListDocumentsUrl = (ecosystemName: string, projectName: string, params?: ListDocumentsParams) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`\n}\n\nexport const listDocuments = async (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentsParams,\n options?: RequestInit,\n): Promise<listDocumentsResponse> => {\n const res = await fetch(getListDocumentsUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: listDocumentsResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as listDocumentsResponse\n}\n\n/**\n * Create a new document record\n */\nexport type createDocumentResponse200 = {\n data: CreateDocument200\n status: 200\n}\n\nexport type createDocumentResponse403 = {\n data: CreateDocument403\n status: 403\n}\n\nexport type createDocumentResponse404 = {\n data: CreateDocument404\n status: 404\n}\n\nexport type createDocumentResponseSuccess = createDocumentResponse200 & {\n headers: Headers\n}\nexport type createDocumentResponseError = (createDocumentResponse403 | createDocumentResponse404) & {\n headers: Headers\n}\n\nexport type createDocumentResponse = createDocumentResponseSuccess | createDocumentResponseError\n\nexport const getCreateDocumentUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`\n}\n\nexport const createDocument = async (\n ecosystemName: string,\n projectName: string,\n createDocumentBody: CreateDocumentBody,\n options?: RequestInit,\n): Promise<createDocumentResponse> => {\n const res = await fetch(getCreateDocumentUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createDocumentBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: createDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as createDocumentResponse\n}\n\n/**\n * Retrieve a specific document by ID\n */\nexport type getDocumentResponse200 = {\n data: GetDocument200\n status: 200\n}\n\nexport type getDocumentResponse403 = {\n data: GetDocument403\n status: 403\n}\n\nexport type getDocumentResponse404 = {\n data: GetDocument404\n status: 404\n}\n\nexport type getDocumentResponseSuccess = getDocumentResponse200 & {\n headers: Headers\n}\nexport type getDocumentResponseError = (getDocumentResponse403 | getDocumentResponse404) & {\n headers: Headers\n}\n\nexport type getDocumentResponse = getDocumentResponseSuccess | getDocumentResponseError\n\nexport const getGetDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const getDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getDocumentResponse> => {\n const res = await fetch(getGetDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getDocumentResponse\n}\n\n/**\n * Update an existing document record\n */\nexport type updateDocumentResponse200 = {\n data: UpdateDocument200\n status: 200\n}\n\nexport type updateDocumentResponse403 = {\n data: UpdateDocument403\n status: 403\n}\n\nexport type updateDocumentResponse404 = {\n data: UpdateDocument404\n status: 404\n}\n\nexport type updateDocumentResponseSuccess = updateDocumentResponse200 & {\n headers: Headers\n}\nexport type updateDocumentResponseError = (updateDocumentResponse403 | updateDocumentResponse404) & {\n headers: Headers\n}\n\nexport type updateDocumentResponse = updateDocumentResponseSuccess | updateDocumentResponseError\n\nexport const getUpdateDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const updateDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateDocumentBody: UpdateDocumentBody,\n options?: RequestInit,\n): Promise<updateDocumentResponse> => {\n const res = await fetch(getUpdateDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateDocumentBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: updateDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as updateDocumentResponse\n}\n\n/**\n * Delete a document by its ID\n */\nexport type deleteDocumentResponse200 = {\n data: DeleteDocument200\n status: 200\n}\n\nexport type deleteDocumentResponse403 = {\n data: DeleteDocument403\n status: 403\n}\n\nexport type deleteDocumentResponse404 = {\n data: DeleteDocument404\n status: 404\n}\n\nexport type deleteDocumentResponseSuccess = deleteDocumentResponse200 & {\n headers: Headers\n}\nexport type deleteDocumentResponseError = (deleteDocumentResponse403 | deleteDocumentResponse404) & {\n headers: Headers\n}\n\nexport type deleteDocumentResponse = deleteDocumentResponseSuccess | deleteDocumentResponseError\n\nexport const getDeleteDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const deleteDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteDocumentResponse> => {\n const res = await fetch(getDeleteDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: deleteDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as deleteDocumentResponse\n}\n\nexport type addCategoryToDocumentResponse200 = {\n data: AddCategoryToDocument200\n status: 200\n}\n\nexport type addCategoryToDocumentResponse403 = {\n data: AddCategoryToDocument403\n status: 403\n}\n\nexport type addCategoryToDocumentResponse404 = {\n data: AddCategoryToDocument404\n status: 404\n}\n\nexport type addCategoryToDocumentResponseSuccess = addCategoryToDocumentResponse200 & {\n headers: Headers\n}\nexport type addCategoryToDocumentResponseError = (\n | addCategoryToDocumentResponse403\n | addCategoryToDocumentResponse404\n) & {\n headers: Headers\n}\n\nexport type addCategoryToDocumentResponse = addCategoryToDocumentResponseSuccess | addCategoryToDocumentResponseError\n\nexport const getAddCategoryToDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}/categories`\n}\n\nexport const addCategoryToDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n addCategoryToDocumentBody: AddCategoryToDocumentBody,\n options?: RequestInit,\n): Promise<addCategoryToDocumentResponse> => {\n const res = await fetch(getAddCategoryToDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(addCategoryToDocumentBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: addCategoryToDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as addCategoryToDocumentResponse\n}\n\nexport type removeCategoryFromDocumentResponse200 = {\n data: RemoveCategoryFromDocument200\n status: 200\n}\n\nexport type removeCategoryFromDocumentResponse403 = {\n data: RemoveCategoryFromDocument403\n status: 403\n}\n\nexport type removeCategoryFromDocumentResponse404 = {\n data: RemoveCategoryFromDocument404\n status: 404\n}\n\nexport type removeCategoryFromDocumentResponseSuccess = removeCategoryFromDocumentResponse200 & {\n headers: Headers\n}\nexport type removeCategoryFromDocumentResponseError = (\n | removeCategoryFromDocumentResponse403\n | removeCategoryFromDocumentResponse404\n) & {\n headers: Headers\n}\n\nexport type removeCategoryFromDocumentResponse =\n | removeCategoryFromDocumentResponseSuccess\n | removeCategoryFromDocumentResponseError\n\nexport const getRemoveCategoryFromDocumentUrl = (\n ecosystemName: string,\n projectName: string,\n documentId: number,\n categoryId: number,\n) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${documentId}/categories/${categoryId}`\n}\n\nexport const removeCategoryFromDocument = async (\n ecosystemName: string,\n projectName: string,\n documentId: number,\n categoryId: number,\n options?: RequestInit,\n): Promise<removeCategoryFromDocumentResponse> => {\n const res = await fetch(getRemoveCategoryFromDocumentUrl(ecosystemName, projectName, documentId, categoryId), {\n ...options,\n method: 'DELETE',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: removeCategoryFromDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as removeCategoryFromDocumentResponse\n}\n\n/**\n * A paginated list of document categories with the number of documents in each category\n */\nexport type listDocumentCategoriesResponse200 = {\n data: ListDocumentCategories200\n status: 200\n}\n\nexport type listDocumentCategoriesResponse403 = {\n data: ListDocumentCategories403\n status: 403\n}\n\nexport type listDocumentCategoriesResponse404 = {\n data: ListDocumentCategories404\n status: 404\n}\n\nexport type listDocumentCategoriesResponseSuccess = listDocumentCategoriesResponse200 & {\n headers: Headers\n}\nexport type listDocumentCategoriesResponseError = (\n | listDocumentCategoriesResponse403\n | listDocumentCategoriesResponse404\n) & {\n headers: Headers\n}\n\nexport type listDocumentCategoriesResponse = listDocumentCategoriesResponseSuccess | listDocumentCategoriesResponseError\n\nexport const getListDocumentCategoriesUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const listDocumentCategories = async (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n options?: RequestInit,\n): Promise<listDocumentCategoriesResponse> => {\n const res = await fetch(getListDocumentCategoriesUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: listDocumentCategoriesResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as listDocumentCategoriesResponse\n}\n\n/**\n * Creates a document category with the provided data\n */\nexport type createDocumentCategoryResponse200 = {\n data: CreateDocumentCategory200\n status: 200\n}\n\nexport type createDocumentCategoryResponse403 = {\n data: CreateDocumentCategory403\n status: 403\n}\n\nexport type createDocumentCategoryResponse404 = {\n data: CreateDocumentCategory404\n status: 404\n}\n\nexport type createDocumentCategoryResponseSuccess = createDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type createDocumentCategoryResponseError = (\n | createDocumentCategoryResponse403\n | createDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type createDocumentCategoryResponse = createDocumentCategoryResponseSuccess | createDocumentCategoryResponseError\n\nexport const getCreateDocumentCategoryUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const createDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n createDocumentCategoryBody: CreateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<createDocumentCategoryResponse> => {\n const res = await fetch(getCreateDocumentCategoryUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createDocumentCategoryBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: createDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as createDocumentCategoryResponse\n}\n\n/**\n * Get the data of a document category\n */\nexport type getDocumentCategoryResponse200 = {\n data: GetDocumentCategory200\n status: 200\n}\n\nexport type getDocumentCategoryResponse403 = {\n data: GetDocumentCategory403\n status: 403\n}\n\nexport type getDocumentCategoryResponse404 = {\n data: GetDocumentCategory404\n status: 404\n}\n\nexport type getDocumentCategoryResponseSuccess = getDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type getDocumentCategoryResponseError = (getDocumentCategoryResponse403 | getDocumentCategoryResponse404) & {\n headers: Headers\n}\n\nexport type getDocumentCategoryResponse = getDocumentCategoryResponseSuccess | getDocumentCategoryResponseError\n\nexport const getGetDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const getDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getDocumentCategoryResponse> => {\n const res = await fetch(getGetDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getDocumentCategoryResponse\n}\n\n/**\n * Updates (patch) a document category with the provided data\n */\nexport type updateDocumentCategoryResponse200 = {\n data: UpdateDocumentCategory200\n status: 200\n}\n\nexport type updateDocumentCategoryResponse403 = {\n data: UpdateDocumentCategory403\n status: 403\n}\n\nexport type updateDocumentCategoryResponse404 = {\n data: UpdateDocumentCategory404\n status: 404\n}\n\nexport type updateDocumentCategoryResponseSuccess = updateDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type updateDocumentCategoryResponseError = (\n | updateDocumentCategoryResponse403\n | updateDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type updateDocumentCategoryResponse = updateDocumentCategoryResponseSuccess | updateDocumentCategoryResponseError\n\nexport const getUpdateDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const updateDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateDocumentCategoryBody: UpdateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<updateDocumentCategoryResponse> => {\n const res = await fetch(getUpdateDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateDocumentCategoryBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: updateDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as updateDocumentCategoryResponse\n}\n\n/**\n * Deletes a document category with the provided ID\n */\nexport type deleteDocumentCategoryResponse200 = {\n data: DeleteDocumentCategory200\n status: 200\n}\n\nexport type deleteDocumentCategoryResponse403 = {\n data: DeleteDocumentCategory403\n status: 403\n}\n\nexport type deleteDocumentCategoryResponse404 = {\n data: DeleteDocumentCategory404\n status: 404\n}\n\nexport type deleteDocumentCategoryResponseSuccess = deleteDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type deleteDocumentCategoryResponseError = (\n | deleteDocumentCategoryResponse403\n | deleteDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type deleteDocumentCategoryResponse = deleteDocumentCategoryResponseSuccess | deleteDocumentCategoryResponseError\n\nexport const getDeleteDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const deleteDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteDocumentCategoryResponse> => {\n const res = await fetch(getDeleteDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: deleteDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as deleteDocumentCategoryResponse\n}\n\n/**\n * Get forms data\n */\nexport type getFormsDataResponse200 = {\n data: GetFormsData200\n status: 200\n}\n\nexport type getFormsDataResponse403 = {\n data: GetFormsData403\n status: 403\n}\n\nexport type getFormsDataResponse404 = {\n data: GetFormsData404\n status: 404\n}\n\nexport type getFormsDataResponseSuccess = getFormsDataResponse200 & {\n headers: Headers\n}\nexport type getFormsDataResponseError = (getFormsDataResponse403 | getFormsDataResponse404) & {\n headers: Headers\n}\n\nexport type getFormsDataResponse = getFormsDataResponseSuccess | getFormsDataResponseError\n\nexport const getGetFormsDataUrl = (ecosystemName: string, projectName: string, params: GetFormsDataParams) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/forms-data/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/forms-data/`\n}\n\nexport const getFormsData = async (\n ecosystemName: string,\n projectName: string,\n params: GetFormsDataParams,\n options?: RequestInit,\n): Promise<getFormsDataResponse> => {\n const res = await fetch(getGetFormsDataUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getFormsDataResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getFormsDataResponse\n}\n\n/**\n * Returns a short-lived URL to embed the Thryve connection widget in an iframe / WebView\n */\nexport type getThryveIframeUrlResponse200 = {\n data: GetThryveIframeUrl200\n status: 200\n}\n\nexport type getThryveIframeUrlResponse403 = {\n data: GetThryveIframeUrl403\n status: 403\n}\n\nexport type getThryveIframeUrlResponse404 = {\n data: GetThryveIframeUrl404\n status: 404\n}\n\nexport type getThryveIframeUrlResponseSuccess = getThryveIframeUrlResponse200 & {\n headers: Headers\n}\nexport type getThryveIframeUrlResponseError = (getThryveIframeUrlResponse403 | getThryveIframeUrlResponse404) & {\n headers: Headers\n}\n\nexport type getThryveIframeUrlResponse = getThryveIframeUrlResponseSuccess | getThryveIframeUrlResponseError\n\nexport const getGetThryveIframeUrlUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/thryve/iframe-url`\n}\n\nexport const getThryveIframeUrl = async (\n ecosystemName: string,\n projectName: string,\n options?: RequestInit,\n): Promise<getThryveIframeUrlResponse> => {\n const res = await fetch(getGetThryveIframeUrlUrl(ecosystemName, projectName), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getThryveIframeUrlResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getThryveIframeUrlResponse\n}\n\n/**\n * Returns a boolean indicating whether the current user has at least one connected data source in the HC API (multi-provider health data service, currently Thryve).\n */\nexport type getThryveIsAuthorizedResponse200 = {\n data: boolean\n status: 200\n}\n\nexport type getThryveIsAuthorizedResponse403 = {\n data: GetThryveIsAuthorized403\n status: 403\n}\n\nexport type getThryveIsAuthorizedResponse404 = {\n data: GetThryveIsAuthorized404\n status: 404\n}\n\nexport type getThryveIsAuthorizedResponseSuccess = getThryveIsAuthorizedResponse200 & {\n headers: Headers\n}\nexport type getThryveIsAuthorizedResponseError = (\n | getThryveIsAuthorizedResponse403\n | getThryveIsAuthorizedResponse404\n) & {\n headers: Headers\n}\n\nexport type getThryveIsAuthorizedResponse = getThryveIsAuthorizedResponseSuccess | getThryveIsAuthorizedResponseError\n\nexport const getGetThryveIsAuthorizedUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/thryve/is-authorized`\n}\n\nexport const getThryveIsAuthorized = async (\n ecosystemName: string,\n projectName: string,\n options?: RequestInit,\n): Promise<getThryveIsAuthorizedResponse> => {\n const res = await fetch(getGetThryveIsAuthorizedUrl(ecosystemName, projectName), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getThryveIsAuthorizedResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getThryveIsAuthorizedResponse\n}\n"],"names":[],"mappings":"AAyCO,MAAM,8CAA8C;AAAA,EACzD,YAAY;AACd;AAMO,MAAM,yCAAyC;AAAA,EACpD,mBAAmB;AACrB;AAgCO,MAAM,8CAA8C;AAAA,EACzD,YAAY;AACd;AAMO,MAAM,yC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,wBAAwB,OACnC,eACA,aACA,YAC2C;AAC3C,QAAM,MAAM,MAAM,MAAM,4BAA4B,eAAe,WAAW,GAAG;AAAA,IAC/E,GAAG;AAAA,IACH,QAAQ;AAAA,EAAA,CACT;AAED,QAAM,OAAO,CAAC,KAAK,KAAK,GAAG,EAAE,SAAS,IAAI,MAAM,IAAI,OAAO,MAAM,IAAI,KAAA;AAErE,QAAM,OAA8C,OAAO,KAAK,MAAM,IAAI,IAAI,CAAA;AAC9E,SAAO,EAAE,MAAM,QAAQ,IAAI,QAAQ,SAAS,IAAI,QAAA;AAClD;"}
|
|
1
|
+
{"version":3,"file":"client.mjs","sources":["../src/client/customFetch.ts","../src/generated/client.ts"],"sourcesContent":["/**\n * Orval mutator for the generated fetch client (`src/generated/client.ts`).\n *\n * Centralizes base URL composition, `Authorization` header injection, and\n * response decoding/error handling for every generated operation, so\n * consumers (the `front` repo) can call the generated functions directly\n * without a bespoke glue layer (see `front/packages/perseed-api-client/src/generatedClient.ts`,\n * which this replaces — api's owner requested moving this logic here in MR !109).\n */\n\n/**\n * Thrown by {@link customFetch} when the response status is not in the 2xx range. Carries the\n * HTTP `status` and the parsed error body (when present) so consumers can branch on the failure\n * without having to re-parse anything (e.g. the front's `isEndpointUnavailable`).\n */\nexport class GeneratedClientError extends Error {\n status: number\n body?: unknown\n\n constructor(status: number, body?: unknown) {\n super(`Request failed with status ${status}`)\n // Restores the prototype chain: TS compiles `extends Error` (a native built-in) down to a\n // plain `Error.call(this, ...)` invocation for non-native-class targets/emit. `Error` called\n // this way returns a *new* plain `Error` object (since it's truthy, `super(...)`'s implicit\n // `|| this` picks it over `this`), so without this line the resulting instance's prototype is\n // `Error.prototype`, not `GeneratedClientError.prototype` — breaking `instanceof\n // GeneratedClientError` even though the object was constructed via `new GeneratedClientError(...)`.\n // This is TypeScript's documented caveat for extending built-ins:\n // https://github.com/microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work\n Object.setPrototypeOf(this, GeneratedClientError.prototype)\n this.name = 'GeneratedClientError'\n this.status = status\n this.body = body\n }\n}\n\nexport interface ClientRuntimeConfig {\n /** Absolute base URL of the API, e.g. `https://api.perseed.eu`. */\n baseUrl: string\n /**\n * Returns the session token to use for the *current* call, or `undefined` if unauthenticated.\n * A function (not a static token) so the runtime always reads the token in effect at call\n * time — avoiding a stale-token capture without depending on React or any specific state\n * management.\n */\n getToken?: () => string | undefined\n}\n\nlet runtimeConfig: ClientRuntimeConfig | undefined\n\n/** Configures the base URL and token accessor used by every generated operation. */\nexport function configureGeneratedClient(cfg: ClientRuntimeConfig): void {\n runtimeConfig = cfg\n}\n\nfunction getRuntimeConfig(): ClientRuntimeConfig {\n if (!runtimeConfig) {\n throw new Error(\n 'Generated API client used before configuration. Call configureGeneratedClient({ baseUrl, getToken }) first.',\n )\n }\n return runtimeConfig\n}\n\n/**\n * Mutator invoked by every generated operation in `src/generated/client.ts`. Composes the\n * absolute URL from the configured base URL, injects `Authorization: Bearer <token>` when a\n * token is available, performs the request, and decodes the response the same way the previous\n * front-side `fetchGenerated` did (null body for 204/205/304, JSON otherwise). A non-2xx response\n * throws a {@link GeneratedClientError} instead of resolving, so callers get a rejected promise\n * for every failed request.\n *\n * `T` here is orval's own per-operation response union (e.g. `listActionsResponse`, shaped as\n * `{ data, status, headers }` discriminated by `status`), not the bare payload type — orval calls\n * this mutator as `customFetch<listActionsResponse>(url, init)` and uses its return value\n * directly as the operation's return value. Confirmed empirically by regenerating the client and\n * inspecting `src/generated/client.ts`. The cast below is unavoidable: at runtime we only know the\n * status/data/headers triple, not which member of the union it narrows to — that narrowing is the\n * server's contract with the generated types, not something this generic transport layer can (or\n * should) re-verify.\n */\nexport async function customFetch<T>(url: string, options: RequestInit): Promise<T> {\n const { baseUrl, getToken } = getRuntimeConfig()\n const token = getToken?.()\n\n const headers: Record<string, string> = { ...(options.headers as Record<string, string> | undefined) }\n if (token) {\n headers.Authorization = `Bearer ${token}`\n }\n\n const res = await fetch(`${baseUrl}${url}`, { ...options, headers })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n const data = (body ? JSON.parse(body) : {}) as unknown\n\n if (!res.ok) {\n throw new GeneratedClientError(res.status, data)\n }\n\n return { data, status: res.status, headers: res.headers } as T\n}\n","/**\n * Generated by orval v7.21.0 🍺\n * Do not edit manually.\n * @fastify/swagger\n * OpenAPI spec version: 9.7.0\n */\nimport { customFetch } from '../client/customFetch'\nexport type ListActionsParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type ListActions200ResultsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type ListActions200ResultsItemType =\n (typeof ListActions200ResultsItemType)[keyof typeof ListActions200ResultsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListActions200ResultsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type ListActions200ResultsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type ListActions200ResultsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: ListActions200ResultsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type ListActions200ResultsItemConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type ListActions200ResultsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: ListActions200ResultsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type ListActions200ResultsItemConfigAnyOf = ListActions200ResultsItemConfigAnyOfAllOf &\n ListActions200ResultsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type ListActions200ResultsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type ListActions200ResultsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: ListActions200ResultsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: ListActions200ResultsItemType\n /** Union of action configs, selected by actions.type */\n config: ListActions200ResultsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: ListActions200ResultsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Paginated response\n */\nexport type ListActions200 = {\n /** Array of items of the current page */\n results: ListActions200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListActions403AllOfDebug = { [key: string]: unknown }\n\nexport type ListActions403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListActions403AllOfDebug\n}\n\nexport type ListActions403AllOfThreeStatusCode =\n (typeof ListActions403AllOfThreeStatusCode)[keyof typeof ListActions403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListActions403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListActions403AllOfThreeError =\n (typeof ListActions403AllOfThreeError)[keyof typeof ListActions403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListActions403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListActions403AllOfThree = {\n statusCode: ListActions403AllOfThreeStatusCode\n error: ListActions403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListActions403 = ListActions403AllOf & ListActions403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListActions404AllOfDebug = { [key: string]: unknown }\n\nexport type ListActions404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListActions404AllOfDebug\n}\n\nexport type ListActions404AllOfThreeStatusCode =\n (typeof ListActions404AllOfThreeStatusCode)[keyof typeof ListActions404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListActions404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListActions404AllOfThreeError =\n (typeof ListActions404AllOfThreeError)[keyof typeof ListActions404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListActions404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListActions404AllOfThree = {\n statusCode: ListActions404AllOfThreeStatusCode\n error: ListActions404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListActions404 = ListActions404AllOf & ListActions404AllOfThree\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateActionBodyType = (typeof CreateActionBodyType)[keyof typeof CreateActionBodyType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateActionBodyType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateActionBodyConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateActionBodyConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateActionBodyConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateActionBodyConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateActionBodyConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateActionBodyConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateActionBodyConfigAnyOf = CreateActionBodyConfigAnyOfAllOf & CreateActionBodyConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateActionBodyRetentionDays = number | null\n\n/**\n * Payload used to create an action\n */\nexport type CreateActionBody = {\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: CreateActionBodyType\n /** Union of action configs, selected by actions.type */\n config: CreateActionBodyConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateActionBodyRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type CreateAction200ProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateAction200Type = (typeof CreateAction200Type)[keyof typeof CreateAction200Type]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAction200Type = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateAction200ConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateAction200ConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateAction200ConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateAction200ConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateAction200ConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateAction200ConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateAction200ConfigAnyOf = CreateAction200ConfigAnyOfAllOf & CreateAction200ConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateAction200RetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type CreateAction200 = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: CreateAction200ProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: CreateAction200Type\n /** Union of action configs, selected by actions.type */\n config: CreateAction200ConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateAction200RetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateAction400AllOfDebug = { [key: string]: unknown }\n\nexport type CreateAction400AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateAction400AllOfDebug\n}\n\nexport type CreateAction400AllOfThreeStatusCode =\n (typeof CreateAction400AllOfThreeStatusCode)[keyof typeof CreateAction400AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAction400AllOfThreeStatusCode = {\n NUMBER_400: 400,\n} as const\n\nexport type CreateAction400AllOfThreeError =\n (typeof CreateAction400AllOfThreeError)[keyof typeof CreateAction400AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAction400AllOfThreeError = {\n 'bad-request': 'bad-request',\n} as const\n\nexport type CreateAction400AllOfThree = {\n statusCode: CreateAction400AllOfThreeStatusCode\n error: CreateAction400AllOfThreeError\n}\n\n/**\n * Error when the request payload is invalid or rejected by business rules\n */\nexport type CreateAction400 = CreateAction400AllOf & CreateAction400AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateAction403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateAction403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateAction403AllOfDebug\n}\n\nexport type CreateAction403AllOfThreeStatusCode =\n (typeof CreateAction403AllOfThreeStatusCode)[keyof typeof CreateAction403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAction403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateAction403AllOfThreeError =\n (typeof CreateAction403AllOfThreeError)[keyof typeof CreateAction403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAction403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateAction403AllOfThree = {\n statusCode: CreateAction403AllOfThreeStatusCode\n error: CreateAction403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateAction403 = CreateAction403AllOf & CreateAction403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateAction404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateAction404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateAction404AllOfDebug\n}\n\nexport type CreateAction404AllOfThreeStatusCode =\n (typeof CreateAction404AllOfThreeStatusCode)[keyof typeof CreateAction404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAction404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateAction404AllOfThreeError =\n (typeof CreateAction404AllOfThreeError)[keyof typeof CreateAction404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAction404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateAction404AllOfThree = {\n statusCode: CreateAction404AllOfThreeStatusCode\n error: CreateAction404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateAction404 = CreateAction404AllOf & CreateAction404AllOfThree\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type GetAction200ProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type GetAction200Type = (typeof GetAction200Type)[keyof typeof GetAction200Type]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAction200Type = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type GetAction200ConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type GetAction200ConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: GetAction200ConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type GetAction200ConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type GetAction200ConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: GetAction200ConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type GetAction200ConfigAnyOf = GetAction200ConfigAnyOfAllOf & GetAction200ConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type GetAction200RetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type GetAction200 = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: GetAction200ProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: GetAction200Type\n /** Union of action configs, selected by actions.type */\n config: GetAction200ConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: GetAction200RetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type GetAction403AllOfDebug = { [key: string]: unknown }\n\nexport type GetAction403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetAction403AllOfDebug\n}\n\nexport type GetAction403AllOfThreeStatusCode =\n (typeof GetAction403AllOfThreeStatusCode)[keyof typeof GetAction403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAction403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetAction403AllOfThreeError = (typeof GetAction403AllOfThreeError)[keyof typeof GetAction403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAction403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetAction403AllOfThree = {\n statusCode: GetAction403AllOfThreeStatusCode\n error: GetAction403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetAction403 = GetAction403AllOf & GetAction403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetAction404AllOfDebug = { [key: string]: unknown }\n\nexport type GetAction404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetAction404AllOfDebug\n}\n\nexport type GetAction404AllOfThreeStatusCode =\n (typeof GetAction404AllOfThreeStatusCode)[keyof typeof GetAction404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAction404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetAction404AllOfThreeError = (typeof GetAction404AllOfThreeError)[keyof typeof GetAction404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAction404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetAction404AllOfThree = {\n statusCode: GetAction404AllOfThreeStatusCode\n error: GetAction404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetAction404 = GetAction404AllOf & GetAction404AllOfThree\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateActionBodyType = (typeof UpdateActionBodyType)[keyof typeof UpdateActionBodyType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateActionBodyType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateActionBodyConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateActionBodyConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateActionBodyConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateActionBodyConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateActionBodyConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateActionBodyConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateActionBodyConfigAnyOf = UpdateActionBodyConfigAnyOfAllOf & UpdateActionBodyConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateActionBodyRetentionDays = number | null\n\n/**\n * Payload used to update an action\n */\nexport type UpdateActionBody = {\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name?: string\n /** Executable mechanism of an action */\n type?: UpdateActionBodyType\n /** Union of action configs, selected by actions.type */\n config?: UpdateActionBodyConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateActionBodyRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type UpdateAction200ProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateAction200Type = (typeof UpdateAction200Type)[keyof typeof UpdateAction200Type]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAction200Type = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateAction200ConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateAction200ConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateAction200ConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateAction200ConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateAction200ConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateAction200ConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateAction200ConfigAnyOf = UpdateAction200ConfigAnyOfAllOf & UpdateAction200ConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateAction200RetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type UpdateAction200 = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: UpdateAction200ProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: UpdateAction200Type\n /** Union of action configs, selected by actions.type */\n config: UpdateAction200ConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateAction200RetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateAction400AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateAction400AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateAction400AllOfDebug\n}\n\nexport type UpdateAction400AllOfThreeStatusCode =\n (typeof UpdateAction400AllOfThreeStatusCode)[keyof typeof UpdateAction400AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAction400AllOfThreeStatusCode = {\n NUMBER_400: 400,\n} as const\n\nexport type UpdateAction400AllOfThreeError =\n (typeof UpdateAction400AllOfThreeError)[keyof typeof UpdateAction400AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAction400AllOfThreeError = {\n 'bad-request': 'bad-request',\n} as const\n\nexport type UpdateAction400AllOfThree = {\n statusCode: UpdateAction400AllOfThreeStatusCode\n error: UpdateAction400AllOfThreeError\n}\n\n/**\n * Error when the request payload is invalid or rejected by business rules\n */\nexport type UpdateAction400 = UpdateAction400AllOf & UpdateAction400AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateAction403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateAction403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateAction403AllOfDebug\n}\n\nexport type UpdateAction403AllOfThreeStatusCode =\n (typeof UpdateAction403AllOfThreeStatusCode)[keyof typeof UpdateAction403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAction403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateAction403AllOfThreeError =\n (typeof UpdateAction403AllOfThreeError)[keyof typeof UpdateAction403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAction403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateAction403AllOfThree = {\n statusCode: UpdateAction403AllOfThreeStatusCode\n error: UpdateAction403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateAction403 = UpdateAction403AllOf & UpdateAction403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateAction404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateAction404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateAction404AllOfDebug\n}\n\nexport type UpdateAction404AllOfThreeStatusCode =\n (typeof UpdateAction404AllOfThreeStatusCode)[keyof typeof UpdateAction404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAction404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateAction404AllOfThreeError =\n (typeof UpdateAction404AllOfThreeError)[keyof typeof UpdateAction404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAction404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateAction404AllOfThree = {\n statusCode: UpdateAction404AllOfThreeStatusCode\n error: UpdateAction404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateAction404 = UpdateAction404AllOf & UpdateAction404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteAction200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteAction403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteAction403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteAction403AllOfDebug\n}\n\nexport type DeleteAction403AllOfThreeStatusCode =\n (typeof DeleteAction403AllOfThreeStatusCode)[keyof typeof DeleteAction403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAction403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteAction403AllOfThreeError =\n (typeof DeleteAction403AllOfThreeError)[keyof typeof DeleteAction403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAction403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteAction403AllOfThree = {\n statusCode: DeleteAction403AllOfThreeStatusCode\n error: DeleteAction403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteAction403 = DeleteAction403AllOf & DeleteAction403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteAction404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteAction404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteAction404AllOfDebug\n}\n\nexport type DeleteAction404AllOfThreeStatusCode =\n (typeof DeleteAction404AllOfThreeStatusCode)[keyof typeof DeleteAction404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAction404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteAction404AllOfThreeError =\n (typeof DeleteAction404AllOfThreeError)[keyof typeof DeleteAction404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAction404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteAction404AllOfThree = {\n statusCode: DeleteAction404AllOfThreeStatusCode\n error: DeleteAction404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteAction404 = DeleteAction404AllOf & DeleteAction404AllOfThree\n\nexport type ListAvailableActionsParams = {\n /**\n * Patient identifier used to evaluate each action questionnaire's dependency conditions (DependenceCRF.conditionsMatch). When omitted, all action questionnaire ids are returned without dependency filtering.\n */\n patientId?: number\n}\n\n/**\n * List of applicable action questionnaire ids\n */\nexport type ListAvailableActions200 = {\n /** Form names (ids) of the action questionnaires applicable to the patient */\n results: string[]\n}\n\n/**\n * Debug information of the error\n */\nexport type ListAvailableActions403AllOfDebug = { [key: string]: unknown }\n\nexport type ListAvailableActions403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAvailableActions403AllOfDebug\n}\n\nexport type ListAvailableActions403AllOfThreeStatusCode =\n (typeof ListAvailableActions403AllOfThreeStatusCode)[keyof typeof ListAvailableActions403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListAvailableActions403AllOfThreeError =\n (typeof ListAvailableActions403AllOfThreeError)[keyof typeof ListAvailableActions403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListAvailableActions403AllOfThree = {\n statusCode: ListAvailableActions403AllOfThreeStatusCode\n error: ListAvailableActions403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListAvailableActions403 = ListAvailableActions403AllOf & ListAvailableActions403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListAvailableActions404AllOfDebug = { [key: string]: unknown }\n\nexport type ListAvailableActions404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAvailableActions404AllOfDebug\n}\n\nexport type ListAvailableActions404AllOfThreeStatusCode =\n (typeof ListAvailableActions404AllOfThreeStatusCode)[keyof typeof ListAvailableActions404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListAvailableActions404AllOfThreeError =\n (typeof ListAvailableActions404AllOfThreeError)[keyof typeof ListAvailableActions404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableActions404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListAvailableActions404AllOfThree = {\n statusCode: ListAvailableActions404AllOfThreeStatusCode\n error: ListAvailableActions404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListAvailableActions404 = ListAvailableActions404AllOf & ListAvailableActions404AllOfThree\n\nexport type ListAutomaticTriggersParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n /**\n * Return each trigger with its ordered `actions` resolved, in a single request\n */\n includeActions?: boolean\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfSource =\n (typeof ListAutomaticTriggers200ResultsItemAllOfSource)[keyof typeof ListAutomaticTriggers200ResultsItemAllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAutomaticTriggers200ResultsItemAllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\n/**\n * Concrete model/designer/field the event refers to. Null for sourceless events\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfTarget = string | null\n\n/**\n * Operation on the target that fires the trigger. Null when not applicable\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOperation = 'create' | 'update' | 'delete' | null\n\nexport type ListAutomaticTriggers200ResultsItemAllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfConditions =\n ListAutomaticTriggers200ResultsItemAllOfConditionsAnyOf | null\n\nexport type ListAutomaticTriggers200ResultsItemAllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfRelations =\n ListAutomaticTriggers200ResultsItemAllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfRetentionDays = number | null\n\n/**\n * Automatic trigger definition (ecosystem level)\n */\nexport type ListAutomaticTriggers200ResultsItemAllOf = {\n /** Unique identifier of the automatic trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: ListAutomaticTriggers200ResultsItemAllOfProjectId\n /** Source of the event that fires a trigger */\n source: ListAutomaticTriggers200ResultsItemAllOfSource\n /** Concrete model/designer/field the event refers to. Null for sourceless events */\n target?: ListAutomaticTriggers200ResultsItemAllOfTarget\n /** Operation on the target that fires the trigger. Null when not applicable */\n operation?: ListAutomaticTriggers200ResultsItemAllOfOperation\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs */\n conditions?: ListAutomaticTriggers200ResultsItemAllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: ListAutomaticTriggers200ResultsItemAllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: ListAutomaticTriggers200ResultsItemAllOfRetentionDays\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemType =\n (typeof ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemType)[keyof typeof ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOfDefault = {\n [key: string]: unknown\n}\n\n/**\n * Base fields shared by every action config\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOfThreePayload = {\n [key: string]: unknown\n}\n\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOf =\n ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOf &\n ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemType\n /** Union of action configs, selected by actions.type */\n config: ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type ListAutomaticTriggers200ResultsItemAllOfOneone = {\n /** Actions the trigger runs, in execution order */\n actions?: ListAutomaticTriggers200ResultsItemAllOfOneoneActionsItem[]\n}\n\n/**\n * An automatic trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type ListAutomaticTriggers200ResultsItem = ListAutomaticTriggers200ResultsItemAllOf &\n ListAutomaticTriggers200ResultsItemAllOfOneone\n\n/**\n * Paginated response\n */\nexport type ListAutomaticTriggers200 = {\n /** Array of items of the current page */\n results: ListAutomaticTriggers200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListAutomaticTriggers403AllOfDebug = { [key: string]: unknown }\n\nexport type ListAutomaticTriggers403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAutomaticTriggers403AllOfDebug\n}\n\nexport type ListAutomaticTriggers403AllOfThreeStatusCode =\n (typeof ListAutomaticTriggers403AllOfThreeStatusCode)[keyof typeof ListAutomaticTriggers403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAutomaticTriggers403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListAutomaticTriggers403AllOfThreeError =\n (typeof ListAutomaticTriggers403AllOfThreeError)[keyof typeof ListAutomaticTriggers403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAutomaticTriggers403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListAutomaticTriggers403AllOfThree = {\n statusCode: ListAutomaticTriggers403AllOfThreeStatusCode\n error: ListAutomaticTriggers403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListAutomaticTriggers403 = ListAutomaticTriggers403AllOf & ListAutomaticTriggers403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListAutomaticTriggers404AllOfDebug = { [key: string]: unknown }\n\nexport type ListAutomaticTriggers404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAutomaticTriggers404AllOfDebug\n}\n\nexport type ListAutomaticTriggers404AllOfThreeStatusCode =\n (typeof ListAutomaticTriggers404AllOfThreeStatusCode)[keyof typeof ListAutomaticTriggers404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAutomaticTriggers404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListAutomaticTriggers404AllOfThreeError =\n (typeof ListAutomaticTriggers404AllOfThreeError)[keyof typeof ListAutomaticTriggers404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAutomaticTriggers404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListAutomaticTriggers404AllOfThree = {\n statusCode: ListAutomaticTriggers404AllOfThreeStatusCode\n error: ListAutomaticTriggers404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListAutomaticTriggers404 = ListAutomaticTriggers404AllOf & ListAutomaticTriggers404AllOfThree\n\n/**\n * Source of the event that fires a trigger\n */\nexport type CreateAutomaticTriggerBodySource =\n (typeof CreateAutomaticTriggerBodySource)[keyof typeof CreateAutomaticTriggerBodySource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTriggerBodySource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\n/**\n * Concrete model/designer/field the event refers to. Null for sourceless events\n */\nexport type CreateAutomaticTriggerBodyTarget = string | null\n\n/**\n * Operation on the target that fires the trigger. Null when not applicable\n */\nexport type CreateAutomaticTriggerBodyOperation = 'create' | 'update' | 'delete' | null\n\nexport type CreateAutomaticTriggerBodyConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs\n */\nexport type CreateAutomaticTriggerBodyConditions = CreateAutomaticTriggerBodyConditionsAnyOf | null\n\nexport type CreateAutomaticTriggerBodyRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type CreateAutomaticTriggerBodyRelations = CreateAutomaticTriggerBodyRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type CreateAutomaticTriggerBodyRetentionDays = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfType =\n (typeof CreateAutomaticTriggerBodyActionsItemAnyOfType)[keyof typeof CreateAutomaticTriggerBodyActionsItemAnyOfType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTriggerBodyActionsItemAnyOfType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOf =\n CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOf &\n CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfRetentionDays = number | null\n\n/**\n * Action created and linked in the same request\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOf = {\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: CreateAutomaticTriggerBodyActionsItemAnyOfType\n /** Union of action configs, selected by actions.type */\n config: CreateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateAutomaticTriggerBodyActionsItemAnyOfRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNineType =\n (typeof CreateAutomaticTriggerBodyActionsItemAnyOfNineType)[keyof typeof CreateAutomaticTriggerBodyActionsItemAnyOfNineType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTriggerBodyActionsItemAnyOfNineType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOf =\n CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf &\n CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNineRetentionDays = number | null\n\n/**\n * Existing action updated and linked in the same request\n */\nexport type CreateAutomaticTriggerBodyActionsItemAnyOfNine = {\n id: number\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name?: string\n /** Executable mechanism of an action */\n type?: CreateAutomaticTriggerBodyActionsItemAnyOfNineType\n /** Union of action configs, selected by actions.type */\n config?: CreateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateAutomaticTriggerBodyActionsItemAnyOfNineRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * An action a trigger runs: linked, created, or updated in place\n */\nexport type CreateAutomaticTriggerBodyActionsItem =\n | number\n | CreateAutomaticTriggerBodyActionsItemAnyOf\n | CreateAutomaticTriggerBodyActionsItemAnyOfNine\n\n/**\n * Payload used to create an automatic trigger, optionally with the actions it runs\n */\nexport type CreateAutomaticTriggerBody = {\n /** Source of the event that fires a trigger */\n source: CreateAutomaticTriggerBodySource\n /** Concrete model/designer/field the event refers to. Null for sourceless events */\n target?: CreateAutomaticTriggerBodyTarget\n /** Operation on the target that fires the trigger. Null when not applicable */\n operation?: CreateAutomaticTriggerBodyOperation\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs */\n conditions?: CreateAutomaticTriggerBodyConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: CreateAutomaticTriggerBodyRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateAutomaticTriggerBodyRetentionDays\n /** Full ordered set of actions the trigger runs; the array position is the execution order. An empty array leaves the trigger with none */\n actions?: CreateAutomaticTriggerBodyActionsItem[]\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type CreateAutomaticTrigger200AllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type CreateAutomaticTrigger200AllOfSource =\n (typeof CreateAutomaticTrigger200AllOfSource)[keyof typeof CreateAutomaticTrigger200AllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTrigger200AllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\n/**\n * Concrete model/designer/field the event refers to. Null for sourceless events\n */\nexport type CreateAutomaticTrigger200AllOfTarget = string | null\n\n/**\n * Operation on the target that fires the trigger. Null when not applicable\n */\nexport type CreateAutomaticTrigger200AllOfOperation = 'create' | 'update' | 'delete' | null\n\nexport type CreateAutomaticTrigger200AllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs\n */\nexport type CreateAutomaticTrigger200AllOfConditions = CreateAutomaticTrigger200AllOfConditionsAnyOf | null\n\nexport type CreateAutomaticTrigger200AllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type CreateAutomaticTrigger200AllOfRelations = CreateAutomaticTrigger200AllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type CreateAutomaticTrigger200AllOfRetentionDays = number | null\n\n/**\n * Automatic trigger definition (ecosystem level)\n */\nexport type CreateAutomaticTrigger200AllOf = {\n /** Unique identifier of the automatic trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: CreateAutomaticTrigger200AllOfProjectId\n /** Source of the event that fires a trigger */\n source: CreateAutomaticTrigger200AllOfSource\n /** Concrete model/designer/field the event refers to. Null for sourceless events */\n target?: CreateAutomaticTrigger200AllOfTarget\n /** Operation on the target that fires the trigger. Null when not applicable */\n operation?: CreateAutomaticTrigger200AllOfOperation\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs */\n conditions?: CreateAutomaticTrigger200AllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: CreateAutomaticTrigger200AllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateAutomaticTrigger200AllOfRetentionDays\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemType =\n (typeof CreateAutomaticTrigger200AllOfOneoneActionsItemType)[keyof typeof CreateAutomaticTrigger200AllOfOneoneActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTrigger200AllOfOneoneActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOf =\n CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOf &\n CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type CreateAutomaticTrigger200AllOfOneoneActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: CreateAutomaticTrigger200AllOfOneoneActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: CreateAutomaticTrigger200AllOfOneoneActionsItemType\n /** Union of action configs, selected by actions.type */\n config: CreateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateAutomaticTrigger200AllOfOneoneActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type CreateAutomaticTrigger200AllOfOneone = {\n /** Actions the trigger runs, in execution order */\n actions?: CreateAutomaticTrigger200AllOfOneoneActionsItem[]\n}\n\n/**\n * An automatic trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type CreateAutomaticTrigger200 = CreateAutomaticTrigger200AllOf & CreateAutomaticTrigger200AllOfOneone\n\n/**\n * Debug information of the error\n */\nexport type CreateAutomaticTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateAutomaticTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateAutomaticTrigger403AllOfDebug\n}\n\nexport type CreateAutomaticTrigger403AllOfThreeStatusCode =\n (typeof CreateAutomaticTrigger403AllOfThreeStatusCode)[keyof typeof CreateAutomaticTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateAutomaticTrigger403AllOfThreeError =\n (typeof CreateAutomaticTrigger403AllOfThreeError)[keyof typeof CreateAutomaticTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateAutomaticTrigger403AllOfThree = {\n statusCode: CreateAutomaticTrigger403AllOfThreeStatusCode\n error: CreateAutomaticTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateAutomaticTrigger403 = CreateAutomaticTrigger403AllOf & CreateAutomaticTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateAutomaticTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateAutomaticTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateAutomaticTrigger404AllOfDebug\n}\n\nexport type CreateAutomaticTrigger404AllOfThreeStatusCode =\n (typeof CreateAutomaticTrigger404AllOfThreeStatusCode)[keyof typeof CreateAutomaticTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateAutomaticTrigger404AllOfThreeError =\n (typeof CreateAutomaticTrigger404AllOfThreeError)[keyof typeof CreateAutomaticTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateAutomaticTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateAutomaticTrigger404AllOfThree = {\n statusCode: CreateAutomaticTrigger404AllOfThreeStatusCode\n error: CreateAutomaticTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateAutomaticTrigger404 = CreateAutomaticTrigger404AllOf & CreateAutomaticTrigger404AllOfThree\n\nexport type GetAutomaticTriggerParams = {\n /**\n * Return each trigger with its ordered `actions` resolved, in a single request\n */\n includeActions?: boolean\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type GetAutomaticTrigger200AllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type GetAutomaticTrigger200AllOfSource =\n (typeof GetAutomaticTrigger200AllOfSource)[keyof typeof GetAutomaticTrigger200AllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAutomaticTrigger200AllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\n/**\n * Concrete model/designer/field the event refers to. Null for sourceless events\n */\nexport type GetAutomaticTrigger200AllOfTarget = string | null\n\n/**\n * Operation on the target that fires the trigger. Null when not applicable\n */\nexport type GetAutomaticTrigger200AllOfOperation = 'create' | 'update' | 'delete' | null\n\nexport type GetAutomaticTrigger200AllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs\n */\nexport type GetAutomaticTrigger200AllOfConditions = GetAutomaticTrigger200AllOfConditionsAnyOf | null\n\nexport type GetAutomaticTrigger200AllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type GetAutomaticTrigger200AllOfRelations = GetAutomaticTrigger200AllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type GetAutomaticTrigger200AllOfRetentionDays = number | null\n\n/**\n * Automatic trigger definition (ecosystem level)\n */\nexport type GetAutomaticTrigger200AllOf = {\n /** Unique identifier of the automatic trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: GetAutomaticTrigger200AllOfProjectId\n /** Source of the event that fires a trigger */\n source: GetAutomaticTrigger200AllOfSource\n /** Concrete model/designer/field the event refers to. Null for sourceless events */\n target?: GetAutomaticTrigger200AllOfTarget\n /** Operation on the target that fires the trigger. Null when not applicable */\n operation?: GetAutomaticTrigger200AllOfOperation\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs */\n conditions?: GetAutomaticTrigger200AllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: GetAutomaticTrigger200AllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: GetAutomaticTrigger200AllOfRetentionDays\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemType =\n (typeof GetAutomaticTrigger200AllOfOneoneActionsItemType)[keyof typeof GetAutomaticTrigger200AllOfOneoneActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAutomaticTrigger200AllOfOneoneActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOf =\n GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOf &\n GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type GetAutomaticTrigger200AllOfOneoneActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: GetAutomaticTrigger200AllOfOneoneActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: GetAutomaticTrigger200AllOfOneoneActionsItemType\n /** Union of action configs, selected by actions.type */\n config: GetAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: GetAutomaticTrigger200AllOfOneoneActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type GetAutomaticTrigger200AllOfOneone = {\n /** Actions the trigger runs, in execution order */\n actions?: GetAutomaticTrigger200AllOfOneoneActionsItem[]\n}\n\n/**\n * An automatic trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type GetAutomaticTrigger200 = GetAutomaticTrigger200AllOf & GetAutomaticTrigger200AllOfOneone\n\n/**\n * Debug information of the error\n */\nexport type GetAutomaticTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type GetAutomaticTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetAutomaticTrigger403AllOfDebug\n}\n\nexport type GetAutomaticTrigger403AllOfThreeStatusCode =\n (typeof GetAutomaticTrigger403AllOfThreeStatusCode)[keyof typeof GetAutomaticTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAutomaticTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetAutomaticTrigger403AllOfThreeError =\n (typeof GetAutomaticTrigger403AllOfThreeError)[keyof typeof GetAutomaticTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAutomaticTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetAutomaticTrigger403AllOfThree = {\n statusCode: GetAutomaticTrigger403AllOfThreeStatusCode\n error: GetAutomaticTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetAutomaticTrigger403 = GetAutomaticTrigger403AllOf & GetAutomaticTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetAutomaticTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type GetAutomaticTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetAutomaticTrigger404AllOfDebug\n}\n\nexport type GetAutomaticTrigger404AllOfThreeStatusCode =\n (typeof GetAutomaticTrigger404AllOfThreeStatusCode)[keyof typeof GetAutomaticTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAutomaticTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetAutomaticTrigger404AllOfThreeError =\n (typeof GetAutomaticTrigger404AllOfThreeError)[keyof typeof GetAutomaticTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetAutomaticTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetAutomaticTrigger404AllOfThree = {\n statusCode: GetAutomaticTrigger404AllOfThreeStatusCode\n error: GetAutomaticTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetAutomaticTrigger404 = GetAutomaticTrigger404AllOf & GetAutomaticTrigger404AllOfThree\n\n/**\n * Source of the event that fires a trigger\n */\nexport type UpdateAutomaticTriggerBodySource =\n (typeof UpdateAutomaticTriggerBodySource)[keyof typeof UpdateAutomaticTriggerBodySource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTriggerBodySource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\n/**\n * Concrete model/designer/field the event refers to. Null for sourceless events\n */\nexport type UpdateAutomaticTriggerBodyTarget = string | null\n\n/**\n * Operation on the target that fires the trigger. Null when not applicable\n */\nexport type UpdateAutomaticTriggerBodyOperation = 'create' | 'update' | 'delete' | null\n\nexport type UpdateAutomaticTriggerBodyConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs\n */\nexport type UpdateAutomaticTriggerBodyConditions = UpdateAutomaticTriggerBodyConditionsAnyOf | null\n\nexport type UpdateAutomaticTriggerBodyRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type UpdateAutomaticTriggerBodyRelations = UpdateAutomaticTriggerBodyRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateAutomaticTriggerBodyRetentionDays = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfType =\n (typeof UpdateAutomaticTriggerBodyActionsItemAnyOfType)[keyof typeof UpdateAutomaticTriggerBodyActionsItemAnyOfType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTriggerBodyActionsItemAnyOfType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOf =\n UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOf &\n UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfRetentionDays = number | null\n\n/**\n * Action created and linked in the same request\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOf = {\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: UpdateAutomaticTriggerBodyActionsItemAnyOfType\n /** Union of action configs, selected by actions.type */\n config: UpdateAutomaticTriggerBodyActionsItemAnyOfConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateAutomaticTriggerBodyActionsItemAnyOfRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNineType =\n (typeof UpdateAutomaticTriggerBodyActionsItemAnyOfNineType)[keyof typeof UpdateAutomaticTriggerBodyActionsItemAnyOfNineType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTriggerBodyActionsItemAnyOfNineType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOf =\n UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf &\n UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNineRetentionDays = number | null\n\n/**\n * Existing action updated and linked in the same request\n */\nexport type UpdateAutomaticTriggerBodyActionsItemAnyOfNine = {\n id: number\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name?: string\n /** Executable mechanism of an action */\n type?: UpdateAutomaticTriggerBodyActionsItemAnyOfNineType\n /** Union of action configs, selected by actions.type */\n config?: UpdateAutomaticTriggerBodyActionsItemAnyOfNineConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateAutomaticTriggerBodyActionsItemAnyOfNineRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * An action a trigger runs: linked, created, or updated in place\n */\nexport type UpdateAutomaticTriggerBodyActionsItem =\n | number\n | UpdateAutomaticTriggerBodyActionsItemAnyOf\n | UpdateAutomaticTriggerBodyActionsItemAnyOfNine\n\n/**\n * Payload used to update an automatic trigger, optionally replacing the actions it runs\n */\nexport type UpdateAutomaticTriggerBody = {\n /** Source of the event that fires a trigger */\n source?: UpdateAutomaticTriggerBodySource\n /** Concrete model/designer/field the event refers to. Null for sourceless events */\n target?: UpdateAutomaticTriggerBodyTarget\n /** Operation on the target that fires the trigger. Null when not applicable */\n operation?: UpdateAutomaticTriggerBodyOperation\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs */\n conditions?: UpdateAutomaticTriggerBodyConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: UpdateAutomaticTriggerBodyRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateAutomaticTriggerBodyRetentionDays\n /** Full ordered set of actions the trigger runs; the array position is the execution order. An empty array leaves the trigger with none */\n actions?: UpdateAutomaticTriggerBodyActionsItem[]\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type UpdateAutomaticTrigger200AllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type UpdateAutomaticTrigger200AllOfSource =\n (typeof UpdateAutomaticTrigger200AllOfSource)[keyof typeof UpdateAutomaticTrigger200AllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger200AllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\n/**\n * Concrete model/designer/field the event refers to. Null for sourceless events\n */\nexport type UpdateAutomaticTrigger200AllOfTarget = string | null\n\n/**\n * Operation on the target that fires the trigger. Null when not applicable\n */\nexport type UpdateAutomaticTrigger200AllOfOperation = 'create' | 'update' | 'delete' | null\n\nexport type UpdateAutomaticTrigger200AllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs\n */\nexport type UpdateAutomaticTrigger200AllOfConditions = UpdateAutomaticTrigger200AllOfConditionsAnyOf | null\n\nexport type UpdateAutomaticTrigger200AllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type UpdateAutomaticTrigger200AllOfRelations = UpdateAutomaticTrigger200AllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateAutomaticTrigger200AllOfRetentionDays = number | null\n\n/**\n * Automatic trigger definition (ecosystem level)\n */\nexport type UpdateAutomaticTrigger200AllOf = {\n /** Unique identifier of the automatic trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: UpdateAutomaticTrigger200AllOfProjectId\n /** Source of the event that fires a trigger */\n source: UpdateAutomaticTrigger200AllOfSource\n /** Concrete model/designer/field the event refers to. Null for sourceless events */\n target?: UpdateAutomaticTrigger200AllOfTarget\n /** Operation on the target that fires the trigger. Null when not applicable */\n operation?: UpdateAutomaticTrigger200AllOfOperation\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs */\n conditions?: UpdateAutomaticTrigger200AllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: UpdateAutomaticTrigger200AllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateAutomaticTrigger200AllOfRetentionDays\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemType =\n (typeof UpdateAutomaticTrigger200AllOfOneoneActionsItemType)[keyof typeof UpdateAutomaticTrigger200AllOfOneoneActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger200AllOfOneoneActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOf =\n UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOf &\n UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type UpdateAutomaticTrigger200AllOfOneoneActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: UpdateAutomaticTrigger200AllOfOneoneActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: UpdateAutomaticTrigger200AllOfOneoneActionsItemType\n /** Union of action configs, selected by actions.type */\n config: UpdateAutomaticTrigger200AllOfOneoneActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateAutomaticTrigger200AllOfOneoneActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type UpdateAutomaticTrigger200AllOfOneone = {\n /** Actions the trigger runs, in execution order */\n actions?: UpdateAutomaticTrigger200AllOfOneoneActionsItem[]\n}\n\n/**\n * An automatic trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type UpdateAutomaticTrigger200 = UpdateAutomaticTrigger200AllOf & UpdateAutomaticTrigger200AllOfOneone\n\n/**\n * Debug information of the error\n */\nexport type UpdateAutomaticTrigger400AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateAutomaticTrigger400AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateAutomaticTrigger400AllOfDebug\n}\n\nexport type UpdateAutomaticTrigger400AllOfThreeStatusCode =\n (typeof UpdateAutomaticTrigger400AllOfThreeStatusCode)[keyof typeof UpdateAutomaticTrigger400AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger400AllOfThreeStatusCode = {\n NUMBER_400: 400,\n} as const\n\nexport type UpdateAutomaticTrigger400AllOfThreeError =\n (typeof UpdateAutomaticTrigger400AllOfThreeError)[keyof typeof UpdateAutomaticTrigger400AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger400AllOfThreeError = {\n 'bad-request': 'bad-request',\n} as const\n\nexport type UpdateAutomaticTrigger400AllOfThree = {\n statusCode: UpdateAutomaticTrigger400AllOfThreeStatusCode\n error: UpdateAutomaticTrigger400AllOfThreeError\n}\n\n/**\n * Error when the request payload is invalid or rejected by business rules\n */\nexport type UpdateAutomaticTrigger400 = UpdateAutomaticTrigger400AllOf & UpdateAutomaticTrigger400AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateAutomaticTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateAutomaticTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateAutomaticTrigger403AllOfDebug\n}\n\nexport type UpdateAutomaticTrigger403AllOfThreeStatusCode =\n (typeof UpdateAutomaticTrigger403AllOfThreeStatusCode)[keyof typeof UpdateAutomaticTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateAutomaticTrigger403AllOfThreeError =\n (typeof UpdateAutomaticTrigger403AllOfThreeError)[keyof typeof UpdateAutomaticTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateAutomaticTrigger403AllOfThree = {\n statusCode: UpdateAutomaticTrigger403AllOfThreeStatusCode\n error: UpdateAutomaticTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateAutomaticTrigger403 = UpdateAutomaticTrigger403AllOf & UpdateAutomaticTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateAutomaticTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateAutomaticTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateAutomaticTrigger404AllOfDebug\n}\n\nexport type UpdateAutomaticTrigger404AllOfThreeStatusCode =\n (typeof UpdateAutomaticTrigger404AllOfThreeStatusCode)[keyof typeof UpdateAutomaticTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateAutomaticTrigger404AllOfThreeError =\n (typeof UpdateAutomaticTrigger404AllOfThreeError)[keyof typeof UpdateAutomaticTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateAutomaticTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateAutomaticTrigger404AllOfThree = {\n statusCode: UpdateAutomaticTrigger404AllOfThreeStatusCode\n error: UpdateAutomaticTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateAutomaticTrigger404 = UpdateAutomaticTrigger404AllOf & UpdateAutomaticTrigger404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteAutomaticTrigger200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteAutomaticTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteAutomaticTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteAutomaticTrigger403AllOfDebug\n}\n\nexport type DeleteAutomaticTrigger403AllOfThreeStatusCode =\n (typeof DeleteAutomaticTrigger403AllOfThreeStatusCode)[keyof typeof DeleteAutomaticTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAutomaticTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteAutomaticTrigger403AllOfThreeError =\n (typeof DeleteAutomaticTrigger403AllOfThreeError)[keyof typeof DeleteAutomaticTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAutomaticTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteAutomaticTrigger403AllOfThree = {\n statusCode: DeleteAutomaticTrigger403AllOfThreeStatusCode\n error: DeleteAutomaticTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteAutomaticTrigger403 = DeleteAutomaticTrigger403AllOf & DeleteAutomaticTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteAutomaticTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteAutomaticTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteAutomaticTrigger404AllOfDebug\n}\n\nexport type DeleteAutomaticTrigger404AllOfThreeStatusCode =\n (typeof DeleteAutomaticTrigger404AllOfThreeStatusCode)[keyof typeof DeleteAutomaticTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAutomaticTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteAutomaticTrigger404AllOfThreeError =\n (typeof DeleteAutomaticTrigger404AllOfThreeError)[keyof typeof DeleteAutomaticTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteAutomaticTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteAutomaticTrigger404AllOfThree = {\n statusCode: DeleteAutomaticTrigger404AllOfThreeStatusCode\n error: DeleteAutomaticTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteAutomaticTrigger404 = DeleteAutomaticTrigger404AllOf & DeleteAutomaticTrigger404AllOfThree\n\nexport type ListDocumentsParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type ListDocuments200ResultsItemAllOf = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\nexport type ListDocuments200ResultsItemAllOfTwoCategoriesItem = {\n /** Category ID */\n id: number\n /** Category name */\n name: string\n}\n\nexport type ListDocuments200ResultsItemAllOfTwo = {\n /** Categories linked to the document */\n categories?: ListDocuments200ResultsItemAllOfTwoCategoriesItem[]\n}\n\n/**\n * Document item returned in document listings\n */\nexport type ListDocuments200ResultsItem = ListDocuments200ResultsItemAllOf & ListDocuments200ResultsItemAllOfTwo\n\n/**\n * Paginated response\n */\nexport type ListDocuments200 = {\n /** Array of items of the current page */\n results: ListDocuments200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListDocuments403AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocuments403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocuments403AllOfDebug\n}\n\nexport type ListDocuments403AllOfThreeStatusCode =\n (typeof ListDocuments403AllOfThreeStatusCode)[keyof typeof ListDocuments403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListDocuments403AllOfThreeError =\n (typeof ListDocuments403AllOfThreeError)[keyof typeof ListDocuments403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListDocuments403AllOfThree = {\n statusCode: ListDocuments403AllOfThreeStatusCode\n error: ListDocuments403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListDocuments403 = ListDocuments403AllOf & ListDocuments403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListDocuments404AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocuments404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocuments404AllOfDebug\n}\n\nexport type ListDocuments404AllOfThreeStatusCode =\n (typeof ListDocuments404AllOfThreeStatusCode)[keyof typeof ListDocuments404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListDocuments404AllOfThreeError =\n (typeof ListDocuments404AllOfThreeError)[keyof typeof ListDocuments404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListDocuments404AllOfThree = {\n statusCode: ListDocuments404AllOfThreeStatusCode\n error: ListDocuments404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListDocuments404 = ListDocuments404AllOf & ListDocuments404AllOfThree\n\n/**\n * Payload used to create a new document record\n */\nexport type CreateDocumentBody = {\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /** Category IDs to associate with the document */\n category_ids?: number[]\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type CreateDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocument403AllOfDebug\n}\n\nexport type CreateDocument403AllOfThreeStatusCode =\n (typeof CreateDocument403AllOfThreeStatusCode)[keyof typeof CreateDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateDocument403AllOfThreeError =\n (typeof CreateDocument403AllOfThreeError)[keyof typeof CreateDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateDocument403AllOfThree = {\n statusCode: CreateDocument403AllOfThreeStatusCode\n error: CreateDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateDocument403 = CreateDocument403AllOf & CreateDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocument404AllOfDebug\n}\n\nexport type CreateDocument404AllOfThreeStatusCode =\n (typeof CreateDocument404AllOfThreeStatusCode)[keyof typeof CreateDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateDocument404AllOfThreeError =\n (typeof CreateDocument404AllOfThreeError)[keyof typeof CreateDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateDocument404AllOfThree = {\n statusCode: CreateDocument404AllOfThreeStatusCode\n error: CreateDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateDocument404 = CreateDocument404AllOf & CreateDocument404AllOfThree\n\n/**\n * Represents an uploaded document record\n */\nexport type GetDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocument403AllOfDebug\n}\n\nexport type GetDocument403AllOfThreeStatusCode =\n (typeof GetDocument403AllOfThreeStatusCode)[keyof typeof GetDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetDocument403AllOfThreeError =\n (typeof GetDocument403AllOfThreeError)[keyof typeof GetDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetDocument403AllOfThree = {\n statusCode: GetDocument403AllOfThreeStatusCode\n error: GetDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetDocument403 = GetDocument403AllOf & GetDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocument404AllOfDebug\n}\n\nexport type GetDocument404AllOfThreeStatusCode =\n (typeof GetDocument404AllOfThreeStatusCode)[keyof typeof GetDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetDocument404AllOfThreeError =\n (typeof GetDocument404AllOfThreeError)[keyof typeof GetDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetDocument404AllOfThree = {\n statusCode: GetDocument404AllOfThreeStatusCode\n error: GetDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetDocument404 = GetDocument404AllOf & GetDocument404AllOfThree\n\n/**\n * Payload used to update a document record\n */\nexport type UpdateDocumentBody = {\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file?: string\n /** Hospital/clinic ID associated with the document */\n organization_unit?: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /** Category IDs to associate with the document */\n category_ids?: number[]\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type UpdateDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocument403AllOfDebug\n}\n\nexport type UpdateDocument403AllOfThreeStatusCode =\n (typeof UpdateDocument403AllOfThreeStatusCode)[keyof typeof UpdateDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateDocument403AllOfThreeError =\n (typeof UpdateDocument403AllOfThreeError)[keyof typeof UpdateDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateDocument403AllOfThree = {\n statusCode: UpdateDocument403AllOfThreeStatusCode\n error: UpdateDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateDocument403 = UpdateDocument403AllOf & UpdateDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocument404AllOfDebug\n}\n\nexport type UpdateDocument404AllOfThreeStatusCode =\n (typeof UpdateDocument404AllOfThreeStatusCode)[keyof typeof UpdateDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateDocument404AllOfThreeError =\n (typeof UpdateDocument404AllOfThreeError)[keyof typeof UpdateDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateDocument404AllOfThree = {\n statusCode: UpdateDocument404AllOfThreeStatusCode\n error: UpdateDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateDocument404 = UpdateDocument404AllOf & UpdateDocument404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocument403AllOfDebug\n}\n\nexport type DeleteDocument403AllOfThreeStatusCode =\n (typeof DeleteDocument403AllOfThreeStatusCode)[keyof typeof DeleteDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteDocument403AllOfThreeError =\n (typeof DeleteDocument403AllOfThreeError)[keyof typeof DeleteDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteDocument403AllOfThree = {\n statusCode: DeleteDocument403AllOfThreeStatusCode\n error: DeleteDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteDocument403 = DeleteDocument403AllOf & DeleteDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocument404AllOfDebug\n}\n\nexport type DeleteDocument404AllOfThreeStatusCode =\n (typeof DeleteDocument404AllOfThreeStatusCode)[keyof typeof DeleteDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteDocument404AllOfThreeError =\n (typeof DeleteDocument404AllOfThreeError)[keyof typeof DeleteDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteDocument404AllOfThree = {\n statusCode: DeleteDocument404AllOfThreeStatusCode\n error: DeleteDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteDocument404 = DeleteDocument404AllOf & DeleteDocument404AllOfThree\n\n/**\n * Payload used to associate a category with a document\n */\nexport type AddCategoryToDocumentBody = {\n /** Category ID to associate with the document */\n categoryId: number\n}\n\n/**\n * Response when the request is successful\n */\nexport type AddCategoryToDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type AddCategoryToDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type AddCategoryToDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: AddCategoryToDocument403AllOfDebug\n}\n\nexport type AddCategoryToDocument403AllOfThreeStatusCode =\n (typeof AddCategoryToDocument403AllOfThreeStatusCode)[keyof typeof AddCategoryToDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type AddCategoryToDocument403AllOfThreeError =\n (typeof AddCategoryToDocument403AllOfThreeError)[keyof typeof AddCategoryToDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type AddCategoryToDocument403AllOfThree = {\n statusCode: AddCategoryToDocument403AllOfThreeStatusCode\n error: AddCategoryToDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type AddCategoryToDocument403 = AddCategoryToDocument403AllOf & AddCategoryToDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type AddCategoryToDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type AddCategoryToDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: AddCategoryToDocument404AllOfDebug\n}\n\nexport type AddCategoryToDocument404AllOfThreeStatusCode =\n (typeof AddCategoryToDocument404AllOfThreeStatusCode)[keyof typeof AddCategoryToDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type AddCategoryToDocument404AllOfThreeError =\n (typeof AddCategoryToDocument404AllOfThreeError)[keyof typeof AddCategoryToDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type AddCategoryToDocument404AllOfThree = {\n statusCode: AddCategoryToDocument404AllOfThreeStatusCode\n error: AddCategoryToDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type AddCategoryToDocument404 = AddCategoryToDocument404AllOf & AddCategoryToDocument404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type RemoveCategoryFromDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type RemoveCategoryFromDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type RemoveCategoryFromDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RemoveCategoryFromDocument403AllOfDebug\n}\n\nexport type RemoveCategoryFromDocument403AllOfThreeStatusCode =\n (typeof RemoveCategoryFromDocument403AllOfThreeStatusCode)[keyof typeof RemoveCategoryFromDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type RemoveCategoryFromDocument403AllOfThreeError =\n (typeof RemoveCategoryFromDocument403AllOfThreeError)[keyof typeof RemoveCategoryFromDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type RemoveCategoryFromDocument403AllOfThree = {\n statusCode: RemoveCategoryFromDocument403AllOfThreeStatusCode\n error: RemoveCategoryFromDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type RemoveCategoryFromDocument403 = RemoveCategoryFromDocument403AllOf & RemoveCategoryFromDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type RemoveCategoryFromDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type RemoveCategoryFromDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RemoveCategoryFromDocument404AllOfDebug\n}\n\nexport type RemoveCategoryFromDocument404AllOfThreeStatusCode =\n (typeof RemoveCategoryFromDocument404AllOfThreeStatusCode)[keyof typeof RemoveCategoryFromDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type RemoveCategoryFromDocument404AllOfThreeError =\n (typeof RemoveCategoryFromDocument404AllOfThreeError)[keyof typeof RemoveCategoryFromDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type RemoveCategoryFromDocument404AllOfThree = {\n statusCode: RemoveCategoryFromDocument404AllOfThreeStatusCode\n error: RemoveCategoryFromDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type RemoveCategoryFromDocument404 = RemoveCategoryFromDocument404AllOf & RemoveCategoryFromDocument404AllOfThree\n\nexport type ListDocumentCategoriesParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Document category data\n */\nexport type ListDocumentCategories200ResultsItemAllOf = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\nexport type ListDocumentCategories200ResultsItemAllOfTwo = {\n /** Number of documents in this category */\n documents_count: number\n}\n\n/**\n * Document category list item\n */\nexport type ListDocumentCategories200ResultsItem = ListDocumentCategories200ResultsItemAllOf &\n ListDocumentCategories200ResultsItemAllOfTwo\n\n/**\n * Paginated response\n */\nexport type ListDocumentCategories200 = {\n /** Array of items of the current page */\n results: ListDocumentCategories200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories403AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories403AllOfDebug\n}\n\nexport type ListDocumentCategories403AllOfThreeStatusCode =\n (typeof ListDocumentCategories403AllOfThreeStatusCode)[keyof typeof ListDocumentCategories403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListDocumentCategories403AllOfThreeError =\n (typeof ListDocumentCategories403AllOfThreeError)[keyof typeof ListDocumentCategories403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListDocumentCategories403AllOfThree = {\n statusCode: ListDocumentCategories403AllOfThreeStatusCode\n error: ListDocumentCategories403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListDocumentCategories403 = ListDocumentCategories403AllOf & ListDocumentCategories403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories404AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories404AllOfDebug\n}\n\nexport type ListDocumentCategories404AllOfThreeStatusCode =\n (typeof ListDocumentCategories404AllOfThreeStatusCode)[keyof typeof ListDocumentCategories404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListDocumentCategories404AllOfThreeError =\n (typeof ListDocumentCategories404AllOfThreeError)[keyof typeof ListDocumentCategories404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListDocumentCategories404AllOfThree = {\n statusCode: ListDocumentCategories404AllOfThreeStatusCode\n error: ListDocumentCategories404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListDocumentCategories404 = ListDocumentCategories404AllOf & ListDocumentCategories404AllOfThree\n\n/**\n * Document category creation payload\n */\nexport type CreateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Document category data\n */\nexport type CreateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory403AllOfDebug\n}\n\nexport type CreateDocumentCategory403AllOfThreeStatusCode =\n (typeof CreateDocumentCategory403AllOfThreeStatusCode)[keyof typeof CreateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateDocumentCategory403AllOfThreeError =\n (typeof CreateDocumentCategory403AllOfThreeError)[keyof typeof CreateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateDocumentCategory403AllOfThree = {\n statusCode: CreateDocumentCategory403AllOfThreeStatusCode\n error: CreateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateDocumentCategory403 = CreateDocumentCategory403AllOf & CreateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory404AllOfDebug\n}\n\nexport type CreateDocumentCategory404AllOfThreeStatusCode =\n (typeof CreateDocumentCategory404AllOfThreeStatusCode)[keyof typeof CreateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateDocumentCategory404AllOfThreeError =\n (typeof CreateDocumentCategory404AllOfThreeError)[keyof typeof CreateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateDocumentCategory404AllOfThree = {\n statusCode: CreateDocumentCategory404AllOfThreeStatusCode\n error: CreateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateDocumentCategory404 = CreateDocumentCategory404AllOf & CreateDocumentCategory404AllOfThree\n\n/**\n * Document category data\n */\nexport type GetDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory403AllOfDebug\n}\n\nexport type GetDocumentCategory403AllOfThreeStatusCode =\n (typeof GetDocumentCategory403AllOfThreeStatusCode)[keyof typeof GetDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetDocumentCategory403AllOfThreeError =\n (typeof GetDocumentCategory403AllOfThreeError)[keyof typeof GetDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetDocumentCategory403AllOfThree = {\n statusCode: GetDocumentCategory403AllOfThreeStatusCode\n error: GetDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetDocumentCategory403 = GetDocumentCategory403AllOf & GetDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory404AllOfDebug\n}\n\nexport type GetDocumentCategory404AllOfThreeStatusCode =\n (typeof GetDocumentCategory404AllOfThreeStatusCode)[keyof typeof GetDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetDocumentCategory404AllOfThreeError =\n (typeof GetDocumentCategory404AllOfThreeError)[keyof typeof GetDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetDocumentCategory404AllOfThree = {\n statusCode: GetDocumentCategory404AllOfThreeStatusCode\n error: GetDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetDocumentCategory404 = GetDocumentCategory404AllOf & GetDocumentCategory404AllOfThree\n\n/**\n * Document category update payload\n */\nexport type UpdateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name?: string\n}\n\n/**\n * Document category data\n */\nexport type UpdateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory403AllOfDebug\n}\n\nexport type UpdateDocumentCategory403AllOfThreeStatusCode =\n (typeof UpdateDocumentCategory403AllOfThreeStatusCode)[keyof typeof UpdateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateDocumentCategory403AllOfThreeError =\n (typeof UpdateDocumentCategory403AllOfThreeError)[keyof typeof UpdateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateDocumentCategory403AllOfThree = {\n statusCode: UpdateDocumentCategory403AllOfThreeStatusCode\n error: UpdateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateDocumentCategory403 = UpdateDocumentCategory403AllOf & UpdateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory404AllOfDebug\n}\n\nexport type UpdateDocumentCategory404AllOfThreeStatusCode =\n (typeof UpdateDocumentCategory404AllOfThreeStatusCode)[keyof typeof UpdateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateDocumentCategory404AllOfThreeError =\n (typeof UpdateDocumentCategory404AllOfThreeError)[keyof typeof UpdateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateDocumentCategory404AllOfThree = {\n statusCode: UpdateDocumentCategory404AllOfThreeStatusCode\n error: UpdateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateDocumentCategory404 = UpdateDocumentCategory404AllOf & UpdateDocumentCategory404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteDocumentCategory200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory403AllOfDebug\n}\n\nexport type DeleteDocumentCategory403AllOfThreeStatusCode =\n (typeof DeleteDocumentCategory403AllOfThreeStatusCode)[keyof typeof DeleteDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteDocumentCategory403AllOfThreeError =\n (typeof DeleteDocumentCategory403AllOfThreeError)[keyof typeof DeleteDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteDocumentCategory403AllOfThree = {\n statusCode: DeleteDocumentCategory403AllOfThreeStatusCode\n error: DeleteDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteDocumentCategory403 = DeleteDocumentCategory403AllOf & DeleteDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory404AllOfDebug\n}\n\nexport type DeleteDocumentCategory404AllOfThreeStatusCode =\n (typeof DeleteDocumentCategory404AllOfThreeStatusCode)[keyof typeof DeleteDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteDocumentCategory404AllOfThreeError =\n (typeof DeleteDocumentCategory404AllOfThreeError)[keyof typeof DeleteDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteDocumentCategory404AllOfThree = {\n statusCode: DeleteDocumentCategory404AllOfThreeStatusCode\n error: DeleteDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteDocumentCategory404 = DeleteDocumentCategory404AllOf & DeleteDocumentCategory404AllOfThree\n\nexport type GetFormsDataParams = {\n /**\n * ID of the associated dashboard widget\n */\n dashboardWidgetId: number\n /**\n * Values for params referenced in Card filterParams blocks\n */\n paramValues?: { [key: string]: unknown }\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\nexport type GetFormsData200ResultsItem = { [key: string]: unknown }\n\n/**\n * Paginated response\n */\nexport type GetFormsData200 = {\n /** Array of items of the current page */\n results: GetFormsData200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type GetFormsData403AllOfDebug = { [key: string]: unknown }\n\nexport type GetFormsData403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetFormsData403AllOfDebug\n}\n\nexport type GetFormsData403AllOfThreeStatusCode =\n (typeof GetFormsData403AllOfThreeStatusCode)[keyof typeof GetFormsData403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetFormsData403AllOfThreeError =\n (typeof GetFormsData403AllOfThreeError)[keyof typeof GetFormsData403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetFormsData403AllOfThree = {\n statusCode: GetFormsData403AllOfThreeStatusCode\n error: GetFormsData403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetFormsData403 = GetFormsData403AllOf & GetFormsData403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetFormsData404AllOfDebug = { [key: string]: unknown }\n\nexport type GetFormsData404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetFormsData404AllOfDebug\n}\n\nexport type GetFormsData404AllOfThreeStatusCode =\n (typeof GetFormsData404AllOfThreeStatusCode)[keyof typeof GetFormsData404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetFormsData404AllOfThreeError =\n (typeof GetFormsData404AllOfThreeError)[keyof typeof GetFormsData404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetFormsData404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetFormsData404AllOfThree = {\n statusCode: GetFormsData404AllOfThreeStatusCode\n error: GetFormsData404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetFormsData404 = GetFormsData404AllOf & GetFormsData404AllOfThree\n\nexport type ListManualTriggersParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n /**\n * Return each trigger with its ordered `actions` resolved, in a single request\n */\n includeActions?: boolean\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type ListManualTriggers200ResultsItemAllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type ListManualTriggers200ResultsItemAllOfSource =\n (typeof ListManualTriggers200ResultsItemAllOfSource)[keyof typeof ListManualTriggers200ResultsItemAllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers200ResultsItemAllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\nexport type ListManualTriggers200ResultsItemAllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against.\n */\nexport type ListManualTriggers200ResultsItemAllOfConditions =\n ListManualTriggers200ResultsItemAllOfConditionsAnyOf | null\n\nexport type ListManualTriggers200ResultsItemAllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type ListManualTriggers200ResultsItemAllOfRelations = ListManualTriggers200ResultsItemAllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type ListManualTriggers200ResultsItemAllOfRetentionDays = number | null\n\n/**\n * What to do with the button when the trigger does not match: hide it or disable it\n */\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfUnmatchedBehavior =\n (typeof ListManualTriggers200ResultsItemAllOfConfigAnyOfUnmatchedBehavior)[keyof typeof ListManualTriggers200ResultsItemAllOfConfigAnyOfUnmatchedBehavior]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers200ResultsItemAllOfConfigAnyOfUnmatchedBehavior = {\n hide: 'hide',\n disable: 'disable',\n} as const\n\n/**\n * Side of the label the icon sits on\n */\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfStylesIconPosition =\n (typeof ListManualTriggers200ResultsItemAllOfConfigAnyOfStylesIconPosition)[keyof typeof ListManualTriggers200ResultsItemAllOfConfigAnyOfStylesIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers200ResultsItemAllOfConfigAnyOfStylesIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfStyles = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: ListManualTriggers200ResultsItemAllOfConfigAnyOfStylesIconPosition\n}\n\n/**\n * Side of the label the icon sits on\n */\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfIconPosition =\n (typeof ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfIconPosition)[keyof typeof ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOf = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfIconPosition\n}\n\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf = {\n [key: string]: unknown\n}\n\n/**\n * jsonLogic conditions selecting this style. Absent or null always applies\n */\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions =\n ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf | null\n\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfThree = {\n /** jsonLogic conditions selecting this style. Absent or null always applies */\n conditions?: ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions\n /** Keep evaluating later entries after this one matches */\n continueEvaluate?: boolean\n}\n\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItem =\n ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOf &\n ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItemAllOfThree\n\nexport type ListManualTriggers200ResultsItemAllOfConfigAnyOf = {\n /** What to do with the button when the trigger does not match: hide it or disable it */\n unmatchedBehavior?: ListManualTriggers200ResultsItemAllOfConfigAnyOfUnmatchedBehavior\n /** Presentation of the button a manual trigger is offered on */\n styles?: ListManualTriggers200ResultsItemAllOfConfigAnyOfStyles\n conditionalStyles?: ListManualTriggers200ResultsItemAllOfConfigAnyOfConditionalStylesItem[]\n [key: string]: unknown\n}\n\n/**\n * Configuration of the trigger beyond its firing rules. Null means none\n */\nexport type ListManualTriggers200ResultsItemAllOfConfig = ListManualTriggers200ResultsItemAllOfConfigAnyOf | null\n\n/**\n * Manual trigger definition (ecosystem level)\n */\nexport type ListManualTriggers200ResultsItemAllOf = {\n /** Unique identifier of the manual trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: ListManualTriggers200ResultsItemAllOfProjectId\n /**\n * Human-readable label of the trigger where it is offered\n * @maxLength 255\n */\n name: string\n /** Source of the event that fires a trigger */\n source: ListManualTriggers200ResultsItemAllOfSource\n /**\n * Concrete model/designer/field the trigger is bound to. Always set: there is no wildcard\n * @maxLength 255\n */\n target: string\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against. */\n conditions?: ListManualTriggers200ResultsItemAllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: ListManualTriggers200ResultsItemAllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: ListManualTriggers200ResultsItemAllOfRetentionDays\n /** Configuration of the trigger beyond its firing rules. Null means none */\n config?: ListManualTriggers200ResultsItemAllOfConfig\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemType =\n (typeof ListManualTriggers200ResultsItemAllOfTwozeroActionsItemType)[keyof typeof ListManualTriggers200ResultsItemAllOfTwozeroActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers200ResultsItemAllOfTwozeroActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload = {\n [key: string]: unknown\n}\n\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOf =\n ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOf &\n ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type ListManualTriggers200ResultsItemAllOfTwozeroActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: ListManualTriggers200ResultsItemAllOfTwozeroActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: ListManualTriggers200ResultsItemAllOfTwozeroActionsItemType\n /** Union of action configs, selected by actions.type */\n config: ListManualTriggers200ResultsItemAllOfTwozeroActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: ListManualTriggers200ResultsItemAllOfTwozeroActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type ListManualTriggers200ResultsItemAllOfTwozero = {\n /** Actions the trigger runs, in execution order */\n actions?: ListManualTriggers200ResultsItemAllOfTwozeroActionsItem[]\n}\n\n/**\n * A manual trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type ListManualTriggers200ResultsItem = ListManualTriggers200ResultsItemAllOf &\n ListManualTriggers200ResultsItemAllOfTwozero\n\n/**\n * Paginated response\n */\nexport type ListManualTriggers200 = {\n /** Array of items of the current page */\n results: ListManualTriggers200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListManualTriggers403AllOfDebug = { [key: string]: unknown }\n\nexport type ListManualTriggers403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListManualTriggers403AllOfDebug\n}\n\nexport type ListManualTriggers403AllOfThreeStatusCode =\n (typeof ListManualTriggers403AllOfThreeStatusCode)[keyof typeof ListManualTriggers403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListManualTriggers403AllOfThreeError =\n (typeof ListManualTriggers403AllOfThreeError)[keyof typeof ListManualTriggers403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListManualTriggers403AllOfThree = {\n statusCode: ListManualTriggers403AllOfThreeStatusCode\n error: ListManualTriggers403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListManualTriggers403 = ListManualTriggers403AllOf & ListManualTriggers403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListManualTriggers404AllOfDebug = { [key: string]: unknown }\n\nexport type ListManualTriggers404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListManualTriggers404AllOfDebug\n}\n\nexport type ListManualTriggers404AllOfThreeStatusCode =\n (typeof ListManualTriggers404AllOfThreeStatusCode)[keyof typeof ListManualTriggers404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListManualTriggers404AllOfThreeError =\n (typeof ListManualTriggers404AllOfThreeError)[keyof typeof ListManualTriggers404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListManualTriggers404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListManualTriggers404AllOfThree = {\n statusCode: ListManualTriggers404AllOfThreeStatusCode\n error: ListManualTriggers404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListManualTriggers404 = ListManualTriggers404AllOf & ListManualTriggers404AllOfThree\n\n/**\n * Source of the event that fires a trigger\n */\nexport type CreateManualTriggerBodySource =\n (typeof CreateManualTriggerBodySource)[keyof typeof CreateManualTriggerBodySource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTriggerBodySource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\nexport type CreateManualTriggerBodyConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against.\n */\nexport type CreateManualTriggerBodyConditions = CreateManualTriggerBodyConditionsAnyOf | null\n\nexport type CreateManualTriggerBodyRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type CreateManualTriggerBodyRelations = CreateManualTriggerBodyRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type CreateManualTriggerBodyRetentionDays = number | null\n\n/**\n * What to do with the button when the trigger does not match: hide it or disable it\n */\nexport type CreateManualTriggerBodyConfigAnyOfUnmatchedBehavior =\n (typeof CreateManualTriggerBodyConfigAnyOfUnmatchedBehavior)[keyof typeof CreateManualTriggerBodyConfigAnyOfUnmatchedBehavior]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTriggerBodyConfigAnyOfUnmatchedBehavior = {\n hide: 'hide',\n disable: 'disable',\n} as const\n\n/**\n * Side of the label the icon sits on\n */\nexport type CreateManualTriggerBodyConfigAnyOfStylesIconPosition =\n (typeof CreateManualTriggerBodyConfigAnyOfStylesIconPosition)[keyof typeof CreateManualTriggerBodyConfigAnyOfStylesIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTriggerBodyConfigAnyOfStylesIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type CreateManualTriggerBodyConfigAnyOfStyles = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: CreateManualTriggerBodyConfigAnyOfStylesIconPosition\n}\n\n/**\n * Side of the label the icon sits on\n */\nexport type CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition =\n (typeof CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition)[keyof typeof CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOf = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition\n}\n\nexport type CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf = {\n [key: string]: unknown\n}\n\n/**\n * jsonLogic conditions selecting this style. Absent or null always applies\n */\nexport type CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditions =\n CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf | null\n\nexport type CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThree = {\n /** jsonLogic conditions selecting this style. Absent or null always applies */\n conditions?: CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditions\n /** Keep evaluating later entries after this one matches */\n continueEvaluate?: boolean\n}\n\nexport type CreateManualTriggerBodyConfigAnyOfConditionalStylesItem =\n CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOf &\n CreateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThree\n\nexport type CreateManualTriggerBodyConfigAnyOf = {\n /** What to do with the button when the trigger does not match: hide it or disable it */\n unmatchedBehavior?: CreateManualTriggerBodyConfigAnyOfUnmatchedBehavior\n /** Presentation of the button a manual trigger is offered on */\n styles?: CreateManualTriggerBodyConfigAnyOfStyles\n conditionalStyles?: CreateManualTriggerBodyConfigAnyOfConditionalStylesItem[]\n [key: string]: unknown\n}\n\n/**\n * Configuration of the trigger beyond its firing rules. Null means none\n */\nexport type CreateManualTriggerBodyConfig = CreateManualTriggerBodyConfigAnyOf | null\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfType =\n (typeof CreateManualTriggerBodyActionsItemAnyOfType)[keyof typeof CreateManualTriggerBodyActionsItemAnyOfType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTriggerBodyActionsItemAnyOfType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfConfigAnyOf =\n CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOf & CreateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfRetentionDays = number | null\n\n/**\n * Action created and linked in the same request\n */\nexport type CreateManualTriggerBodyActionsItemAnyOf = {\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: CreateManualTriggerBodyActionsItemAnyOfType\n /** Union of action configs, selected by actions.type */\n config: CreateManualTriggerBodyActionsItemAnyOfConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateManualTriggerBodyActionsItemAnyOfRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfNineType =\n (typeof CreateManualTriggerBodyActionsItemAnyOfNineType)[keyof typeof CreateManualTriggerBodyActionsItemAnyOfNineType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTriggerBodyActionsItemAnyOfNineType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOf =\n CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf &\n CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfNineRetentionDays = number | null\n\n/**\n * Existing action updated and linked in the same request\n */\nexport type CreateManualTriggerBodyActionsItemAnyOfNine = {\n id: number\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name?: string\n /** Executable mechanism of an action */\n type?: CreateManualTriggerBodyActionsItemAnyOfNineType\n /** Union of action configs, selected by actions.type */\n config?: CreateManualTriggerBodyActionsItemAnyOfNineConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateManualTriggerBodyActionsItemAnyOfNineRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * An action a trigger runs: linked, created, or updated in place\n */\nexport type CreateManualTriggerBodyActionsItem =\n | number\n | CreateManualTriggerBodyActionsItemAnyOf\n | CreateManualTriggerBodyActionsItemAnyOfNine\n\n/**\n * Payload used to create a manual trigger, optionally with the actions it runs\n */\nexport type CreateManualTriggerBody = {\n /**\n * Human-readable label of the trigger where it is offered\n * @maxLength 255\n */\n name: string\n /** Source of the event that fires a trigger */\n source: CreateManualTriggerBodySource\n /**\n * Concrete model/designer/field the trigger is bound to. Always set: there is no wildcard\n * @maxLength 255\n */\n target: string\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against. */\n conditions?: CreateManualTriggerBodyConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: CreateManualTriggerBodyRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateManualTriggerBodyRetentionDays\n /** Configuration of the trigger beyond its firing rules. Null means none */\n config?: CreateManualTriggerBodyConfig\n /** Full ordered set of actions the trigger runs; the array position is the execution order. An empty array leaves the trigger with none */\n actions?: CreateManualTriggerBodyActionsItem[]\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type CreateManualTrigger200AllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type CreateManualTrigger200AllOfSource =\n (typeof CreateManualTrigger200AllOfSource)[keyof typeof CreateManualTrigger200AllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger200AllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\nexport type CreateManualTrigger200AllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against.\n */\nexport type CreateManualTrigger200AllOfConditions = CreateManualTrigger200AllOfConditionsAnyOf | null\n\nexport type CreateManualTrigger200AllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type CreateManualTrigger200AllOfRelations = CreateManualTrigger200AllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type CreateManualTrigger200AllOfRetentionDays = number | null\n\n/**\n * What to do with the button when the trigger does not match: hide it or disable it\n */\nexport type CreateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior =\n (typeof CreateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior)[keyof typeof CreateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior = {\n hide: 'hide',\n disable: 'disable',\n} as const\n\n/**\n * Side of the label the icon sits on\n */\nexport type CreateManualTrigger200AllOfConfigAnyOfStylesIconPosition =\n (typeof CreateManualTrigger200AllOfConfigAnyOfStylesIconPosition)[keyof typeof CreateManualTrigger200AllOfConfigAnyOfStylesIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger200AllOfConfigAnyOfStylesIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type CreateManualTrigger200AllOfConfigAnyOfStyles = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: CreateManualTrigger200AllOfConfigAnyOfStylesIconPosition\n}\n\n/**\n * Side of the label the icon sits on\n */\nexport type CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition =\n (typeof CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition)[keyof typeof CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOf = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition\n}\n\nexport type CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf = {\n [key: string]: unknown\n}\n\n/**\n * jsonLogic conditions selecting this style. Absent or null always applies\n */\nexport type CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions =\n CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf | null\n\nexport type CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThree = {\n /** jsonLogic conditions selecting this style. Absent or null always applies */\n conditions?: CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions\n /** Keep evaluating later entries after this one matches */\n continueEvaluate?: boolean\n}\n\nexport type CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItem =\n CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOf &\n CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThree\n\nexport type CreateManualTrigger200AllOfConfigAnyOf = {\n /** What to do with the button when the trigger does not match: hide it or disable it */\n unmatchedBehavior?: CreateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior\n /** Presentation of the button a manual trigger is offered on */\n styles?: CreateManualTrigger200AllOfConfigAnyOfStyles\n conditionalStyles?: CreateManualTrigger200AllOfConfigAnyOfConditionalStylesItem[]\n [key: string]: unknown\n}\n\n/**\n * Configuration of the trigger beyond its firing rules. Null means none\n */\nexport type CreateManualTrigger200AllOfConfig = CreateManualTrigger200AllOfConfigAnyOf | null\n\n/**\n * Manual trigger definition (ecosystem level)\n */\nexport type CreateManualTrigger200AllOf = {\n /** Unique identifier of the manual trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: CreateManualTrigger200AllOfProjectId\n /**\n * Human-readable label of the trigger where it is offered\n * @maxLength 255\n */\n name: string\n /** Source of the event that fires a trigger */\n source: CreateManualTrigger200AllOfSource\n /**\n * Concrete model/designer/field the trigger is bound to. Always set: there is no wildcard\n * @maxLength 255\n */\n target: string\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against. */\n conditions?: CreateManualTrigger200AllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: CreateManualTrigger200AllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateManualTrigger200AllOfRetentionDays\n /** Configuration of the trigger beyond its firing rules. Null means none */\n config?: CreateManualTrigger200AllOfConfig\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItemType =\n (typeof CreateManualTrigger200AllOfTwozeroActionsItemType)[keyof typeof CreateManualTrigger200AllOfTwozeroActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger200AllOfTwozeroActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOf =\n CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOf &\n CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type CreateManualTrigger200AllOfTwozeroActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: CreateManualTrigger200AllOfTwozeroActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: CreateManualTrigger200AllOfTwozeroActionsItemType\n /** Union of action configs, selected by actions.type */\n config: CreateManualTrigger200AllOfTwozeroActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: CreateManualTrigger200AllOfTwozeroActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type CreateManualTrigger200AllOfTwozero = {\n /** Actions the trigger runs, in execution order */\n actions?: CreateManualTrigger200AllOfTwozeroActionsItem[]\n}\n\n/**\n * A manual trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type CreateManualTrigger200 = CreateManualTrigger200AllOf & CreateManualTrigger200AllOfTwozero\n\n/**\n * Debug information of the error\n */\nexport type CreateManualTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateManualTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateManualTrigger403AllOfDebug\n}\n\nexport type CreateManualTrigger403AllOfThreeStatusCode =\n (typeof CreateManualTrigger403AllOfThreeStatusCode)[keyof typeof CreateManualTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateManualTrigger403AllOfThreeError =\n (typeof CreateManualTrigger403AllOfThreeError)[keyof typeof CreateManualTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateManualTrigger403AllOfThree = {\n statusCode: CreateManualTrigger403AllOfThreeStatusCode\n error: CreateManualTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateManualTrigger403 = CreateManualTrigger403AllOf & CreateManualTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateManualTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateManualTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateManualTrigger404AllOfDebug\n}\n\nexport type CreateManualTrigger404AllOfThreeStatusCode =\n (typeof CreateManualTrigger404AllOfThreeStatusCode)[keyof typeof CreateManualTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateManualTrigger404AllOfThreeError =\n (typeof CreateManualTrigger404AllOfThreeError)[keyof typeof CreateManualTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateManualTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateManualTrigger404AllOfThree = {\n statusCode: CreateManualTrigger404AllOfThreeStatusCode\n error: CreateManualTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateManualTrigger404 = CreateManualTrigger404AllOf & CreateManualTrigger404AllOfThree\n\nexport type ListAvailableManualTriggersParams = {\n /**\n * Source of the event that fires a trigger\n */\n source: ListAvailableManualTriggersSource\n /**\n * Concrete model/designer/field the triggers are bound to\n * @maxLength 255\n */\n target: string\n /**\n * Identifier of the entity the triggers would run against\n */\n entityId: number\n}\n\nexport type ListAvailableManualTriggersSource =\n (typeof ListAvailableManualTriggersSource)[keyof typeof ListAvailableManualTriggersSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableManualTriggersSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\n/**\n * Reason the declared relations could not be loaded before evaluating, when that happened. Null otherwise\n */\nexport type ListAvailableManualTriggers200ResultsItemRelationsSkipped = string | null\n\n/**\n * Side of the label the icon sits on\n */\nexport type ListAvailableManualTriggers200ResultsItemStyleIconPosition =\n (typeof ListAvailableManualTriggers200ResultsItemStyleIconPosition)[keyof typeof ListAvailableManualTriggers200ResultsItemStyleIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableManualTriggers200ResultsItemStyleIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type ListAvailableManualTriggers200ResultsItemStyle = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: ListAvailableManualTriggers200ResultsItemStyleIconPosition\n}\n\n/**\n * A manual trigger applicable to an entity, with its conditions already evaluated\n */\nexport type ListAvailableManualTriggers200ResultsItem = {\n /** Identifier of the manual trigger */\n id: number\n /** Human-readable label of the trigger */\n name: string\n /** Whether the trigger conditions hold for this entity right now. A trigger with no conditions always matches. False means the button is shown disabled: triggers configured to hide when unmatched are not listed */\n matched: boolean\n /** Number of actions the trigger would run */\n actionsCount: number\n /** Reason the declared relations could not be loaded before evaluating, when that happened. Null otherwise */\n relationsSkipped?: ListAvailableManualTriggers200ResultsItemRelationsSkipped\n /** Presentation of the button a manual trigger is offered on */\n style?: ListAvailableManualTriggers200ResultsItemStyle\n}\n\n/**\n * Manual triggers applicable to an entity, with their conditions evaluated\n */\nexport type ListAvailableManualTriggers200 = {\n /** Applicable manual triggers */\n results: ListAvailableManualTriggers200ResultsItem[]\n}\n\n/**\n * Debug information of the error\n */\nexport type ListAvailableManualTriggers403AllOfDebug = { [key: string]: unknown }\n\nexport type ListAvailableManualTriggers403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAvailableManualTriggers403AllOfDebug\n}\n\nexport type ListAvailableManualTriggers403AllOfThreeStatusCode =\n (typeof ListAvailableManualTriggers403AllOfThreeStatusCode)[keyof typeof ListAvailableManualTriggers403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableManualTriggers403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListAvailableManualTriggers403AllOfThreeError =\n (typeof ListAvailableManualTriggers403AllOfThreeError)[keyof typeof ListAvailableManualTriggers403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableManualTriggers403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListAvailableManualTriggers403AllOfThree = {\n statusCode: ListAvailableManualTriggers403AllOfThreeStatusCode\n error: ListAvailableManualTriggers403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListAvailableManualTriggers403 = ListAvailableManualTriggers403AllOf &\n ListAvailableManualTriggers403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListAvailableManualTriggers404AllOfDebug = { [key: string]: unknown }\n\nexport type ListAvailableManualTriggers404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListAvailableManualTriggers404AllOfDebug\n}\n\nexport type ListAvailableManualTriggers404AllOfThreeStatusCode =\n (typeof ListAvailableManualTriggers404AllOfThreeStatusCode)[keyof typeof ListAvailableManualTriggers404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableManualTriggers404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListAvailableManualTriggers404AllOfThreeError =\n (typeof ListAvailableManualTriggers404AllOfThreeError)[keyof typeof ListAvailableManualTriggers404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListAvailableManualTriggers404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListAvailableManualTriggers404AllOfThree = {\n statusCode: ListAvailableManualTriggers404AllOfThreeStatusCode\n error: ListAvailableManualTriggers404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListAvailableManualTriggers404 = ListAvailableManualTriggers404AllOf &\n ListAvailableManualTriggers404AllOfThree\n\nexport type GetManualTriggerParams = {\n /**\n * Return each trigger with its ordered `actions` resolved, in a single request\n */\n includeActions?: boolean\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type GetManualTrigger200AllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type GetManualTrigger200AllOfSource =\n (typeof GetManualTrigger200AllOfSource)[keyof typeof GetManualTrigger200AllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger200AllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\nexport type GetManualTrigger200AllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against.\n */\nexport type GetManualTrigger200AllOfConditions = GetManualTrigger200AllOfConditionsAnyOf | null\n\nexport type GetManualTrigger200AllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type GetManualTrigger200AllOfRelations = GetManualTrigger200AllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type GetManualTrigger200AllOfRetentionDays = number | null\n\n/**\n * What to do with the button when the trigger does not match: hide it or disable it\n */\nexport type GetManualTrigger200AllOfConfigAnyOfUnmatchedBehavior =\n (typeof GetManualTrigger200AllOfConfigAnyOfUnmatchedBehavior)[keyof typeof GetManualTrigger200AllOfConfigAnyOfUnmatchedBehavior]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger200AllOfConfigAnyOfUnmatchedBehavior = {\n hide: 'hide',\n disable: 'disable',\n} as const\n\n/**\n * Side of the label the icon sits on\n */\nexport type GetManualTrigger200AllOfConfigAnyOfStylesIconPosition =\n (typeof GetManualTrigger200AllOfConfigAnyOfStylesIconPosition)[keyof typeof GetManualTrigger200AllOfConfigAnyOfStylesIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger200AllOfConfigAnyOfStylesIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type GetManualTrigger200AllOfConfigAnyOfStyles = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: GetManualTrigger200AllOfConfigAnyOfStylesIconPosition\n}\n\n/**\n * Side of the label the icon sits on\n */\nexport type GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition =\n (typeof GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition)[keyof typeof GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOf = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition\n}\n\nexport type GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf = {\n [key: string]: unknown\n}\n\n/**\n * jsonLogic conditions selecting this style. Absent or null always applies\n */\nexport type GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions =\n GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf | null\n\nexport type GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThree = {\n /** jsonLogic conditions selecting this style. Absent or null always applies */\n conditions?: GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions\n /** Keep evaluating later entries after this one matches */\n continueEvaluate?: boolean\n}\n\nexport type GetManualTrigger200AllOfConfigAnyOfConditionalStylesItem =\n GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOf &\n GetManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThree\n\nexport type GetManualTrigger200AllOfConfigAnyOf = {\n /** What to do with the button when the trigger does not match: hide it or disable it */\n unmatchedBehavior?: GetManualTrigger200AllOfConfigAnyOfUnmatchedBehavior\n /** Presentation of the button a manual trigger is offered on */\n styles?: GetManualTrigger200AllOfConfigAnyOfStyles\n conditionalStyles?: GetManualTrigger200AllOfConfigAnyOfConditionalStylesItem[]\n [key: string]: unknown\n}\n\n/**\n * Configuration of the trigger beyond its firing rules. Null means none\n */\nexport type GetManualTrigger200AllOfConfig = GetManualTrigger200AllOfConfigAnyOf | null\n\n/**\n * Manual trigger definition (ecosystem level)\n */\nexport type GetManualTrigger200AllOf = {\n /** Unique identifier of the manual trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: GetManualTrigger200AllOfProjectId\n /**\n * Human-readable label of the trigger where it is offered\n * @maxLength 255\n */\n name: string\n /** Source of the event that fires a trigger */\n source: GetManualTrigger200AllOfSource\n /**\n * Concrete model/designer/field the trigger is bound to. Always set: there is no wildcard\n * @maxLength 255\n */\n target: string\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against. */\n conditions?: GetManualTrigger200AllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: GetManualTrigger200AllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: GetManualTrigger200AllOfRetentionDays\n /** Configuration of the trigger beyond its firing rules. Null means none */\n config?: GetManualTrigger200AllOfConfig\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItemType =\n (typeof GetManualTrigger200AllOfTwozeroActionsItemType)[keyof typeof GetManualTrigger200AllOfTwozeroActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger200AllOfTwozeroActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOf =\n GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOf &\n GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type GetManualTrigger200AllOfTwozeroActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: GetManualTrigger200AllOfTwozeroActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: GetManualTrigger200AllOfTwozeroActionsItemType\n /** Union of action configs, selected by actions.type */\n config: GetManualTrigger200AllOfTwozeroActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: GetManualTrigger200AllOfTwozeroActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type GetManualTrigger200AllOfTwozero = {\n /** Actions the trigger runs, in execution order */\n actions?: GetManualTrigger200AllOfTwozeroActionsItem[]\n}\n\n/**\n * A manual trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type GetManualTrigger200 = GetManualTrigger200AllOf & GetManualTrigger200AllOfTwozero\n\n/**\n * Debug information of the error\n */\nexport type GetManualTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type GetManualTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetManualTrigger403AllOfDebug\n}\n\nexport type GetManualTrigger403AllOfThreeStatusCode =\n (typeof GetManualTrigger403AllOfThreeStatusCode)[keyof typeof GetManualTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetManualTrigger403AllOfThreeError =\n (typeof GetManualTrigger403AllOfThreeError)[keyof typeof GetManualTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetManualTrigger403AllOfThree = {\n statusCode: GetManualTrigger403AllOfThreeStatusCode\n error: GetManualTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetManualTrigger403 = GetManualTrigger403AllOf & GetManualTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetManualTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type GetManualTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetManualTrigger404AllOfDebug\n}\n\nexport type GetManualTrigger404AllOfThreeStatusCode =\n (typeof GetManualTrigger404AllOfThreeStatusCode)[keyof typeof GetManualTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetManualTrigger404AllOfThreeError =\n (typeof GetManualTrigger404AllOfThreeError)[keyof typeof GetManualTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetManualTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetManualTrigger404AllOfThree = {\n statusCode: GetManualTrigger404AllOfThreeStatusCode\n error: GetManualTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetManualTrigger404 = GetManualTrigger404AllOf & GetManualTrigger404AllOfThree\n\n/**\n * Source of the event that fires a trigger\n */\nexport type UpdateManualTriggerBodySource =\n (typeof UpdateManualTriggerBodySource)[keyof typeof UpdateManualTriggerBodySource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTriggerBodySource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\nexport type UpdateManualTriggerBodyConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against.\n */\nexport type UpdateManualTriggerBodyConditions = UpdateManualTriggerBodyConditionsAnyOf | null\n\nexport type UpdateManualTriggerBodyRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type UpdateManualTriggerBodyRelations = UpdateManualTriggerBodyRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateManualTriggerBodyRetentionDays = number | null\n\n/**\n * What to do with the button when the trigger does not match: hide it or disable it\n */\nexport type UpdateManualTriggerBodyConfigAnyOfUnmatchedBehavior =\n (typeof UpdateManualTriggerBodyConfigAnyOfUnmatchedBehavior)[keyof typeof UpdateManualTriggerBodyConfigAnyOfUnmatchedBehavior]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTriggerBodyConfigAnyOfUnmatchedBehavior = {\n hide: 'hide',\n disable: 'disable',\n} as const\n\n/**\n * Side of the label the icon sits on\n */\nexport type UpdateManualTriggerBodyConfigAnyOfStylesIconPosition =\n (typeof UpdateManualTriggerBodyConfigAnyOfStylesIconPosition)[keyof typeof UpdateManualTriggerBodyConfigAnyOfStylesIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTriggerBodyConfigAnyOfStylesIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type UpdateManualTriggerBodyConfigAnyOfStyles = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: UpdateManualTriggerBodyConfigAnyOfStylesIconPosition\n}\n\n/**\n * Side of the label the icon sits on\n */\nexport type UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition =\n (typeof UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition)[keyof typeof UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOf = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfIconPosition\n}\n\nexport type UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf = {\n [key: string]: unknown\n}\n\n/**\n * jsonLogic conditions selecting this style. Absent or null always applies\n */\nexport type UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditions =\n UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf | null\n\nexport type UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThree = {\n /** jsonLogic conditions selecting this style. Absent or null always applies */\n conditions?: UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThreeConditions\n /** Keep evaluating later entries after this one matches */\n continueEvaluate?: boolean\n}\n\nexport type UpdateManualTriggerBodyConfigAnyOfConditionalStylesItem =\n UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOf &\n UpdateManualTriggerBodyConfigAnyOfConditionalStylesItemAllOfThree\n\nexport type UpdateManualTriggerBodyConfigAnyOf = {\n /** What to do with the button when the trigger does not match: hide it or disable it */\n unmatchedBehavior?: UpdateManualTriggerBodyConfigAnyOfUnmatchedBehavior\n /** Presentation of the button a manual trigger is offered on */\n styles?: UpdateManualTriggerBodyConfigAnyOfStyles\n conditionalStyles?: UpdateManualTriggerBodyConfigAnyOfConditionalStylesItem[]\n [key: string]: unknown\n}\n\n/**\n * Configuration of the trigger beyond its firing rules. Null means none\n */\nexport type UpdateManualTriggerBodyConfig = UpdateManualTriggerBodyConfigAnyOf | null\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfType =\n (typeof UpdateManualTriggerBodyActionsItemAnyOfType)[keyof typeof UpdateManualTriggerBodyActionsItemAnyOfType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTriggerBodyActionsItemAnyOfType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOf =\n UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOf & UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfRetentionDays = number | null\n\n/**\n * Action created and linked in the same request\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOf = {\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: UpdateManualTriggerBodyActionsItemAnyOfType\n /** Union of action configs, selected by actions.type */\n config: UpdateManualTriggerBodyActionsItemAnyOfConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateManualTriggerBodyActionsItemAnyOfRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfNineType =\n (typeof UpdateManualTriggerBodyActionsItemAnyOfNineType)[keyof typeof UpdateManualTriggerBodyActionsItemAnyOfNineType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTriggerBodyActionsItemAnyOfNineType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOf =\n UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOf &\n UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfNineRetentionDays = number | null\n\n/**\n * Existing action updated and linked in the same request\n */\nexport type UpdateManualTriggerBodyActionsItemAnyOfNine = {\n id: number\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name?: string\n /** Executable mechanism of an action */\n type?: UpdateManualTriggerBodyActionsItemAnyOfNineType\n /** Union of action configs, selected by actions.type */\n config?: UpdateManualTriggerBodyActionsItemAnyOfNineConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateManualTriggerBodyActionsItemAnyOfNineRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\n/**\n * An action a trigger runs: linked, created, or updated in place\n */\nexport type UpdateManualTriggerBodyActionsItem =\n | number\n | UpdateManualTriggerBodyActionsItemAnyOf\n | UpdateManualTriggerBodyActionsItemAnyOfNine\n\n/**\n * Payload used to update a manual trigger, optionally replacing the actions it runs\n */\nexport type UpdateManualTriggerBody = {\n /**\n * Human-readable label of the trigger where it is offered\n * @maxLength 255\n */\n name?: string\n /** Source of the event that fires a trigger */\n source?: UpdateManualTriggerBodySource\n /**\n * Concrete model/designer/field the trigger is bound to. Always set: there is no wildcard\n * @maxLength 255\n */\n target?: string\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against. */\n conditions?: UpdateManualTriggerBodyConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: UpdateManualTriggerBodyRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateManualTriggerBodyRetentionDays\n /** Configuration of the trigger beyond its firing rules. Null means none */\n config?: UpdateManualTriggerBodyConfig\n /** Full ordered set of actions the trigger runs; the array position is the execution order. An empty array leaves the trigger with none */\n actions?: UpdateManualTriggerBodyActionsItem[]\n}\n\n/**\n * Project this trigger belongs to. Null when it is ecosystem-wide\n */\nexport type UpdateManualTrigger200AllOfProjectId = number | null\n\n/**\n * Source of the event that fires a trigger\n */\nexport type UpdateManualTrigger200AllOfSource =\n (typeof UpdateManualTrigger200AllOfSource)[keyof typeof UpdateManualTrigger200AllOfSource]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger200AllOfSource = {\n model: 'model',\n designer: 'designer',\n displayer: 'displayer',\n} as const\n\nexport type UpdateManualTrigger200AllOfConditionsAnyOf = { [key: string]: unknown }\n\n/**\n * jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against.\n */\nexport type UpdateManualTrigger200AllOfConditions = UpdateManualTrigger200AllOfConditionsAnyOf | null\n\nexport type UpdateManualTrigger200AllOfRelationsAnyOf = {\n /** Relation names to eager-load onto `current` (e.g. [\"patient\"]) */\n join?: string[]\n}\n\n/**\n * Related models loaded into the context before evaluating the conditions and running the actions. Null means none.\n */\nexport type UpdateManualTrigger200AllOfRelations = UpdateManualTrigger200AllOfRelationsAnyOf | null\n\n/**\n * Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateManualTrigger200AllOfRetentionDays = number | null\n\n/**\n * What to do with the button when the trigger does not match: hide it or disable it\n */\nexport type UpdateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior =\n (typeof UpdateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior)[keyof typeof UpdateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior = {\n hide: 'hide',\n disable: 'disable',\n} as const\n\n/**\n * Side of the label the icon sits on\n */\nexport type UpdateManualTrigger200AllOfConfigAnyOfStylesIconPosition =\n (typeof UpdateManualTrigger200AllOfConfigAnyOfStylesIconPosition)[keyof typeof UpdateManualTrigger200AllOfConfigAnyOfStylesIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger200AllOfConfigAnyOfStylesIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type UpdateManualTrigger200AllOfConfigAnyOfStyles = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: UpdateManualTrigger200AllOfConfigAnyOfStylesIconPosition\n}\n\n/**\n * Side of the label the icon sits on\n */\nexport type UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition =\n (typeof UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition)[keyof typeof UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition = {\n left: 'left',\n right: 'right',\n} as const\n\n/**\n * Presentation of the button a manual trigger is offered on\n */\nexport type UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOf = {\n /** Handlebars template rendered as the button label */\n text?: string\n /** Label colour */\n textColor?: string\n /** Background colour */\n bgColor?: string\n /** Icon name, resolved by the consumer */\n icon?: string\n /** Side of the label the icon sits on */\n iconPosition?: UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfIconPosition\n}\n\nexport type UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf = {\n [key: string]: unknown\n}\n\n/**\n * jsonLogic conditions selecting this style. Absent or null always applies\n */\nexport type UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions =\n UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditionsAnyOf | null\n\nexport type UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThree = {\n /** jsonLogic conditions selecting this style. Absent or null always applies */\n conditions?: UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThreeConditions\n /** Keep evaluating later entries after this one matches */\n continueEvaluate?: boolean\n}\n\nexport type UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItem =\n UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOf &\n UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItemAllOfThree\n\nexport type UpdateManualTrigger200AllOfConfigAnyOf = {\n /** What to do with the button when the trigger does not match: hide it or disable it */\n unmatchedBehavior?: UpdateManualTrigger200AllOfConfigAnyOfUnmatchedBehavior\n /** Presentation of the button a manual trigger is offered on */\n styles?: UpdateManualTrigger200AllOfConfigAnyOfStyles\n conditionalStyles?: UpdateManualTrigger200AllOfConfigAnyOfConditionalStylesItem[]\n [key: string]: unknown\n}\n\n/**\n * Configuration of the trigger beyond its firing rules. Null means none\n */\nexport type UpdateManualTrigger200AllOfConfig = UpdateManualTrigger200AllOfConfigAnyOf | null\n\n/**\n * Manual trigger definition (ecosystem level)\n */\nexport type UpdateManualTrigger200AllOf = {\n /** Unique identifier of the manual trigger */\n id: number\n /** Project this trigger belongs to. Null when it is ecosystem-wide */\n project_id?: UpdateManualTrigger200AllOfProjectId\n /**\n * Human-readable label of the trigger where it is offered\n * @maxLength 255\n */\n name: string\n /** Source of the event that fires a trigger */\n source: UpdateManualTrigger200AllOfSource\n /**\n * Concrete model/designer/field the trigger is bound to. Always set: there is no wildcard\n * @maxLength 255\n */\n target: string\n /** jsonLogic conditions (root object) evaluated to decide whether the trigger runs. Evaluated against the selected entity and the request context; `old` is always null, because the trigger is invoked explicitly and there is no previous state to compare against. */\n conditions?: UpdateManualTrigger200AllOfConditions\n /** Related models loaded into the context before evaluating the conditions and running the actions. Null means none. */\n relations?: UpdateManualTrigger200AllOfRelations\n /** Whether the trigger is active */\n enabled?: boolean\n /** Retention in days for the process_log entries of this trigger (issue #175). Origin — no inheritance: null or 0 = disabled (never expires); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateManualTrigger200AllOfRetentionDays\n /** Configuration of the trigger beyond its firing rules. Null means none */\n config?: UpdateManualTrigger200AllOfConfig\n}\n\n/**\n * Project this action belongs to. Null when it is ecosystem-wide\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemProjectId = number | null\n\n/**\n * Executable mechanism of an action\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemType =\n (typeof UpdateManualTrigger200AllOfTwozeroActionsItemType)[keyof typeof UpdateManualTrigger200AllOfTwozeroActionsItemType]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger200AllOfTwozeroActionsItemType = {\n ApiAction: 'ApiAction',\n} as const\n\n/**\n * Base config an override-type merges its `payload` over (only overridable keys are applied).\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfDefault = { [key: string]: unknown }\n\n/**\n * Base fields shared by every action config\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOf = {\n /** Identifier of the concrete action within its type (e.g. the ApiAction value for type \"ApiAction\"). Any identifier for future types. */\n id: string\n /** Where the effective config is resolved from. Generic string in the base; refined per type in the future (e.g. \"inline\" | \"file\"). */\n location?: string\n /** Allow-list of config keys a payload may override on top of `default`. Mandatory for override-types; absent for non-override types such as ApiAction. */\n overridable?: string[]\n /** Base config an override-type merges its `payload` over (only overridable keys are applied). */\n default?: UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfDefault\n}\n\n/**\n * Data mapping needed to run the ApiAction\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload = { [key: string]: unknown }\n\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThree = {\n /** Data mapping needed to run the ApiAction */\n payload: UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThreePayload\n}\n\n/**\n * Config for actions of type \"ApiAction\"\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOf =\n UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOf &\n UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOfAllOfThree\n\n/**\n * Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write).\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItemRetentionDays = number | null\n\n/**\n * Reusable executable action (ecosystem level)\n */\nexport type UpdateManualTrigger200AllOfTwozeroActionsItem = {\n /** Unique identifier of the action */\n id: number\n /** Project this action belongs to. Null when it is ecosystem-wide */\n project_id?: UpdateManualTrigger200AllOfTwozeroActionsItemProjectId\n /**\n * Human-readable identifier of the action\n * @maxLength 255\n */\n name: string\n /** Executable mechanism of an action */\n type: UpdateManualTrigger200AllOfTwozeroActionsItemType\n /** Union of action configs, selected by actions.type */\n config: UpdateManualTrigger200AllOfTwozeroActionsItemConfigAnyOf\n /** Retention in days for the process_log entries of this action (issue #175). Null = inherit (use the firing trigger retention; never if the trigger is null/0); 0 = disabled (never expires, regardless of the trigger); N (>0) = enabled (expires N days after write). */\n retention_days?: UpdateManualTrigger200AllOfTwozeroActionsItemRetentionDays\n /** Whether the action belongs to the reusable catalog. False (the default) marks it single-use: it is deleted once no trigger links it any more, including before it is ever linked — a standalone action created through POST /action and left unlinked is swept as soon as any trigger of the project writes its links. Set it to true to create one that survives on its own */\n library?: boolean\n}\n\nexport type UpdateManualTrigger200AllOfTwozero = {\n /** Actions the trigger runs, in execution order */\n actions?: UpdateManualTrigger200AllOfTwozeroActionsItem[]\n}\n\n/**\n * A manual trigger and, when the request wrote them or `includeActions` asked for them, the actions it runs\n */\nexport type UpdateManualTrigger200 = UpdateManualTrigger200AllOf & UpdateManualTrigger200AllOfTwozero\n\n/**\n * Debug information of the error\n */\nexport type UpdateManualTrigger400AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateManualTrigger400AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateManualTrigger400AllOfDebug\n}\n\nexport type UpdateManualTrigger400AllOfThreeStatusCode =\n (typeof UpdateManualTrigger400AllOfThreeStatusCode)[keyof typeof UpdateManualTrigger400AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger400AllOfThreeStatusCode = {\n NUMBER_400: 400,\n} as const\n\nexport type UpdateManualTrigger400AllOfThreeError =\n (typeof UpdateManualTrigger400AllOfThreeError)[keyof typeof UpdateManualTrigger400AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger400AllOfThreeError = {\n 'bad-request': 'bad-request',\n} as const\n\nexport type UpdateManualTrigger400AllOfThree = {\n statusCode: UpdateManualTrigger400AllOfThreeStatusCode\n error: UpdateManualTrigger400AllOfThreeError\n}\n\n/**\n * Error when the request payload is invalid or rejected by business rules\n */\nexport type UpdateManualTrigger400 = UpdateManualTrigger400AllOf & UpdateManualTrigger400AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateManualTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateManualTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateManualTrigger403AllOfDebug\n}\n\nexport type UpdateManualTrigger403AllOfThreeStatusCode =\n (typeof UpdateManualTrigger403AllOfThreeStatusCode)[keyof typeof UpdateManualTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateManualTrigger403AllOfThreeError =\n (typeof UpdateManualTrigger403AllOfThreeError)[keyof typeof UpdateManualTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateManualTrigger403AllOfThree = {\n statusCode: UpdateManualTrigger403AllOfThreeStatusCode\n error: UpdateManualTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateManualTrigger403 = UpdateManualTrigger403AllOf & UpdateManualTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateManualTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateManualTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateManualTrigger404AllOfDebug\n}\n\nexport type UpdateManualTrigger404AllOfThreeStatusCode =\n (typeof UpdateManualTrigger404AllOfThreeStatusCode)[keyof typeof UpdateManualTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateManualTrigger404AllOfThreeError =\n (typeof UpdateManualTrigger404AllOfThreeError)[keyof typeof UpdateManualTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateManualTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateManualTrigger404AllOfThree = {\n statusCode: UpdateManualTrigger404AllOfThreeStatusCode\n error: UpdateManualTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateManualTrigger404 = UpdateManualTrigger404AllOf & UpdateManualTrigger404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteManualTrigger200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteManualTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteManualTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteManualTrigger403AllOfDebug\n}\n\nexport type DeleteManualTrigger403AllOfThreeStatusCode =\n (typeof DeleteManualTrigger403AllOfThreeStatusCode)[keyof typeof DeleteManualTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteManualTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteManualTrigger403AllOfThreeError =\n (typeof DeleteManualTrigger403AllOfThreeError)[keyof typeof DeleteManualTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteManualTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteManualTrigger403AllOfThree = {\n statusCode: DeleteManualTrigger403AllOfThreeStatusCode\n error: DeleteManualTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteManualTrigger403 = DeleteManualTrigger403AllOf & DeleteManualTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteManualTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteManualTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteManualTrigger404AllOfDebug\n}\n\nexport type DeleteManualTrigger404AllOfThreeStatusCode =\n (typeof DeleteManualTrigger404AllOfThreeStatusCode)[keyof typeof DeleteManualTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteManualTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteManualTrigger404AllOfThreeError =\n (typeof DeleteManualTrigger404AllOfThreeError)[keyof typeof DeleteManualTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteManualTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteManualTrigger404AllOfThree = {\n statusCode: DeleteManualTrigger404AllOfThreeStatusCode\n error: DeleteManualTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteManualTrigger404 = DeleteManualTrigger404AllOf & DeleteManualTrigger404AllOfThree\n\n/**\n * Payload used to run a manual trigger against an entity\n */\nexport type RunManualTriggerBody = {\n /** Identifier of the entity to run the trigger against */\n entityId: number\n}\n\n/**\n * Outcome of evaluating and running one trigger\n */\nexport type RunManualTrigger200 = {\n /** Identifier of the evaluated trigger */\n triggerId: number\n /** Whether the conditions held, so the actions were run */\n matched: boolean\n /** Number of actions that were executed */\n actionsRun: number\n /** Number of actions aborted by context validation */\n actionsAborted: number\n}\n\n/**\n * Debug information of the error\n */\nexport type RunManualTrigger403AllOfDebug = { [key: string]: unknown }\n\nexport type RunManualTrigger403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RunManualTrigger403AllOfDebug\n}\n\nexport type RunManualTrigger403AllOfThreeStatusCode =\n (typeof RunManualTrigger403AllOfThreeStatusCode)[keyof typeof RunManualTrigger403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RunManualTrigger403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type RunManualTrigger403AllOfThreeError =\n (typeof RunManualTrigger403AllOfThreeError)[keyof typeof RunManualTrigger403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RunManualTrigger403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type RunManualTrigger403AllOfThree = {\n statusCode: RunManualTrigger403AllOfThreeStatusCode\n error: RunManualTrigger403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type RunManualTrigger403 = RunManualTrigger403AllOf & RunManualTrigger403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type RunManualTrigger404AllOfDebug = { [key: string]: unknown }\n\nexport type RunManualTrigger404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RunManualTrigger404AllOfDebug\n}\n\nexport type RunManualTrigger404AllOfThreeStatusCode =\n (typeof RunManualTrigger404AllOfThreeStatusCode)[keyof typeof RunManualTrigger404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RunManualTrigger404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type RunManualTrigger404AllOfThreeError =\n (typeof RunManualTrigger404AllOfThreeError)[keyof typeof RunManualTrigger404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RunManualTrigger404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type RunManualTrigger404AllOfThree = {\n statusCode: RunManualTrigger404AllOfThreeStatusCode\n error: RunManualTrigger404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type RunManualTrigger404 = RunManualTrigger404AllOf & RunManualTrigger404AllOfThree\n\n/**\n * Thryve connection widget URL response\n */\nexport type GetThryveIframeUrl200 = {\n /** Short-lived URL to embed in an iframe / WebView for the Thryve connection widget */\n url: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIframeUrl403AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIframeUrl403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIframeUrl403AllOfDebug\n}\n\nexport type GetThryveIframeUrl403AllOfThreeStatusCode =\n (typeof GetThryveIframeUrl403AllOfThreeStatusCode)[keyof typeof GetThryveIframeUrl403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetThryveIframeUrl403AllOfThreeError =\n (typeof GetThryveIframeUrl403AllOfThreeError)[keyof typeof GetThryveIframeUrl403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetThryveIframeUrl403AllOfThree = {\n statusCode: GetThryveIframeUrl403AllOfThreeStatusCode\n error: GetThryveIframeUrl403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetThryveIframeUrl403 = GetThryveIframeUrl403AllOf & GetThryveIframeUrl403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIframeUrl404AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIframeUrl404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIframeUrl404AllOfDebug\n}\n\nexport type GetThryveIframeUrl404AllOfThreeStatusCode =\n (typeof GetThryveIframeUrl404AllOfThreeStatusCode)[keyof typeof GetThryveIframeUrl404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetThryveIframeUrl404AllOfThreeError =\n (typeof GetThryveIframeUrl404AllOfThreeError)[keyof typeof GetThryveIframeUrl404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIframeUrl404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetThryveIframeUrl404AllOfThree = {\n statusCode: GetThryveIframeUrl404AllOfThreeStatusCode\n error: GetThryveIframeUrl404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetThryveIframeUrl404 = GetThryveIframeUrl404AllOf & GetThryveIframeUrl404AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIsAuthorized403AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIsAuthorized403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIsAuthorized403AllOfDebug\n}\n\nexport type GetThryveIsAuthorized403AllOfThreeStatusCode =\n (typeof GetThryveIsAuthorized403AllOfThreeStatusCode)[keyof typeof GetThryveIsAuthorized403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetThryveIsAuthorized403AllOfThreeError =\n (typeof GetThryveIsAuthorized403AllOfThreeError)[keyof typeof GetThryveIsAuthorized403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetThryveIsAuthorized403AllOfThree = {\n statusCode: GetThryveIsAuthorized403AllOfThreeStatusCode\n error: GetThryveIsAuthorized403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetThryveIsAuthorized403 = GetThryveIsAuthorized403AllOf & GetThryveIsAuthorized403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetThryveIsAuthorized404AllOfDebug = { [key: string]: unknown }\n\nexport type GetThryveIsAuthorized404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetThryveIsAuthorized404AllOfDebug\n}\n\nexport type GetThryveIsAuthorized404AllOfThreeStatusCode =\n (typeof GetThryveIsAuthorized404AllOfThreeStatusCode)[keyof typeof GetThryveIsAuthorized404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetThryveIsAuthorized404AllOfThreeError =\n (typeof GetThryveIsAuthorized404AllOfThreeError)[keyof typeof GetThryveIsAuthorized404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetThryveIsAuthorized404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetThryveIsAuthorized404AllOfThree = {\n statusCode: GetThryveIsAuthorized404AllOfThreeStatusCode\n error: GetThryveIsAuthorized404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetThryveIsAuthorized404 = GetThryveIsAuthorized404AllOf & GetThryveIsAuthorized404AllOfThree\n\nexport type postV2AuthLoginGlobalResponse200 = {\n data: void\n status: 200\n}\n\nexport type postV2AuthLoginGlobalResponseSuccess = postV2AuthLoginGlobalResponse200 & {\n headers: Headers\n}\nexport type postV2AuthLoginGlobalResponse = postV2AuthLoginGlobalResponseSuccess\n\nexport const getPostV2AuthLoginGlobalUrl = () => {\n return `/v2/auth/login/global`\n}\n\nexport const postV2AuthLoginGlobal = async (options?: RequestInit): Promise<postV2AuthLoginGlobalResponse> => {\n return customFetch<postV2AuthLoginGlobalResponse>(getPostV2AuthLoginGlobalUrl(), {\n ...options,\n method: 'POST',\n })\n}\n\n/**\n * Get a paginated list of actions\n */\nexport type listActionsResponse200 = {\n data: ListActions200\n status: 200\n}\n\nexport type listActionsResponse403 = {\n data: ListActions403\n status: 403\n}\n\nexport type listActionsResponse404 = {\n data: ListActions404\n status: 404\n}\n\nexport type listActionsResponseSuccess = listActionsResponse200 & {\n headers: Headers\n}\nexport type listActionsResponseError = (listActionsResponse403 | listActionsResponse404) & {\n headers: Headers\n}\n\nexport type listActionsResponse = listActionsResponseSuccess | listActionsResponseError\n\nexport const getListActionsUrl = (ecosystemName: string, projectName: string, params?: ListActionsParams) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/action/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/action/`\n}\n\nexport const listActions = async (\n ecosystemName: string,\n projectName: string,\n params?: ListActionsParams,\n options?: RequestInit,\n): Promise<listActionsResponse> => {\n return customFetch<listActionsResponse>(getListActionsUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Create a new action\n */\nexport type createActionResponse200 = {\n data: CreateAction200\n status: 200\n}\n\nexport type createActionResponse400 = {\n data: CreateAction400\n status: 400\n}\n\nexport type createActionResponse403 = {\n data: CreateAction403\n status: 403\n}\n\nexport type createActionResponse404 = {\n data: CreateAction404\n status: 404\n}\n\nexport type createActionResponseSuccess = createActionResponse200 & {\n headers: Headers\n}\nexport type createActionResponseError = (\n | createActionResponse400\n | createActionResponse403\n | createActionResponse404\n) & {\n headers: Headers\n}\n\nexport type createActionResponse = createActionResponseSuccess | createActionResponseError\n\nexport const getCreateActionUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/action/`\n}\n\nexport const createAction = async (\n ecosystemName: string,\n projectName: string,\n createActionBody: CreateActionBody,\n options?: RequestInit,\n): Promise<createActionResponse> => {\n return customFetch<createActionResponse>(getCreateActionUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createActionBody),\n })\n}\n\n/**\n * Retrieve a specific action by ID\n */\nexport type getActionResponse200 = {\n data: GetAction200\n status: 200\n}\n\nexport type getActionResponse403 = {\n data: GetAction403\n status: 403\n}\n\nexport type getActionResponse404 = {\n data: GetAction404\n status: 404\n}\n\nexport type getActionResponseSuccess = getActionResponse200 & {\n headers: Headers\n}\nexport type getActionResponseError = (getActionResponse403 | getActionResponse404) & {\n headers: Headers\n}\n\nexport type getActionResponse = getActionResponseSuccess | getActionResponseError\n\nexport const getGetActionUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/action/${id}`\n}\n\nexport const getAction = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getActionResponse> => {\n return customFetch<getActionResponse>(getGetActionUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Update an existing action\n */\nexport type updateActionResponse200 = {\n data: UpdateAction200\n status: 200\n}\n\nexport type updateActionResponse400 = {\n data: UpdateAction400\n status: 400\n}\n\nexport type updateActionResponse403 = {\n data: UpdateAction403\n status: 403\n}\n\nexport type updateActionResponse404 = {\n data: UpdateAction404\n status: 404\n}\n\nexport type updateActionResponseSuccess = updateActionResponse200 & {\n headers: Headers\n}\nexport type updateActionResponseError = (\n | updateActionResponse400\n | updateActionResponse403\n | updateActionResponse404\n) & {\n headers: Headers\n}\n\nexport type updateActionResponse = updateActionResponseSuccess | updateActionResponseError\n\nexport const getUpdateActionUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/action/${id}`\n}\n\nexport const updateAction = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateActionBody: UpdateActionBody,\n options?: RequestInit,\n): Promise<updateActionResponse> => {\n return customFetch<updateActionResponse>(getUpdateActionUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateActionBody),\n })\n}\n\n/**\n * Delete an action by its ID\n */\nexport type deleteActionResponse200 = {\n data: DeleteAction200\n status: 200\n}\n\nexport type deleteActionResponse403 = {\n data: DeleteAction403\n status: 403\n}\n\nexport type deleteActionResponse404 = {\n data: DeleteAction404\n status: 404\n}\n\nexport type deleteActionResponseSuccess = deleteActionResponse200 & {\n headers: Headers\n}\nexport type deleteActionResponseError = (deleteActionResponse403 | deleteActionResponse404) & {\n headers: Headers\n}\n\nexport type deleteActionResponse = deleteActionResponseSuccess | deleteActionResponseError\n\nexport const getDeleteActionUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/action/${id}`\n}\n\nexport const deleteAction = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteActionResponse> => {\n return customFetch<deleteActionResponse>(getDeleteActionUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n}\n\n/**\n * List ids (form names) of action questionnaires applicable to the current patient. Action questionnaires are marked via the meta_info field \"is_action\"; those whose \"action_props\" configuration is malformed are excluded. Presentation properties (label, icon, color) are read from the designers payload.\n */\nexport type listAvailableActionsResponse200 = {\n data: ListAvailableActions200\n status: 200\n}\n\nexport type listAvailableActionsResponse403 = {\n data: ListAvailableActions403\n status: 403\n}\n\nexport type listAvailableActionsResponse404 = {\n data: ListAvailableActions404\n status: 404\n}\n\nexport type listAvailableActionsResponseSuccess = listAvailableActionsResponse200 & {\n headers: Headers\n}\nexport type listAvailableActionsResponseError = (listAvailableActionsResponse403 | listAvailableActionsResponse404) & {\n headers: Headers\n}\n\nexport type listAvailableActionsResponse = listAvailableActionsResponseSuccess | listAvailableActionsResponseError\n\nexport const getListAvailableActionsUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListAvailableActionsParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/actions/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/actions/`\n}\n\nexport const listAvailableActions = async (\n ecosystemName: string,\n projectName: string,\n params?: ListAvailableActionsParams,\n options?: RequestInit,\n): Promise<listAvailableActionsResponse> => {\n return customFetch<listAvailableActionsResponse>(getListAvailableActionsUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Get a paginated list of automatic triggers, optionally with their actions\n */\nexport type listAutomaticTriggersResponse200 = {\n data: ListAutomaticTriggers200\n status: 200\n}\n\nexport type listAutomaticTriggersResponse403 = {\n data: ListAutomaticTriggers403\n status: 403\n}\n\nexport type listAutomaticTriggersResponse404 = {\n data: ListAutomaticTriggers404\n status: 404\n}\n\nexport type listAutomaticTriggersResponseSuccess = listAutomaticTriggersResponse200 & {\n headers: Headers\n}\nexport type listAutomaticTriggersResponseError = (\n | listAutomaticTriggersResponse403\n | listAutomaticTriggersResponse404\n) & {\n headers: Headers\n}\n\nexport type listAutomaticTriggersResponse = listAutomaticTriggersResponseSuccess | listAutomaticTriggersResponseError\n\nexport const getListAutomaticTriggersUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListAutomaticTriggersParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/automatic-trigger/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/automatic-trigger/`\n}\n\nexport const listAutomaticTriggers = async (\n ecosystemName: string,\n projectName: string,\n params?: ListAutomaticTriggersParams,\n options?: RequestInit,\n): Promise<listAutomaticTriggersResponse> => {\n return customFetch<listAutomaticTriggersResponse>(getListAutomaticTriggersUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Create a new automatic trigger\n */\nexport type createAutomaticTriggerResponse200 = {\n data: CreateAutomaticTrigger200\n status: 200\n}\n\nexport type createAutomaticTriggerResponse403 = {\n data: CreateAutomaticTrigger403\n status: 403\n}\n\nexport type createAutomaticTriggerResponse404 = {\n data: CreateAutomaticTrigger404\n status: 404\n}\n\nexport type createAutomaticTriggerResponseSuccess = createAutomaticTriggerResponse200 & {\n headers: Headers\n}\nexport type createAutomaticTriggerResponseError = (\n | createAutomaticTriggerResponse403\n | createAutomaticTriggerResponse404\n) & {\n headers: Headers\n}\n\nexport type createAutomaticTriggerResponse = createAutomaticTriggerResponseSuccess | createAutomaticTriggerResponseError\n\nexport const getCreateAutomaticTriggerUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/automatic-trigger/`\n}\n\nexport const createAutomaticTrigger = async (\n ecosystemName: string,\n projectName: string,\n createAutomaticTriggerBody: CreateAutomaticTriggerBody,\n options?: RequestInit,\n): Promise<createAutomaticTriggerResponse> => {\n return customFetch<createAutomaticTriggerResponse>(getCreateAutomaticTriggerUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createAutomaticTriggerBody),\n })\n}\n\n/**\n * Retrieve a specific automatic trigger by ID, optionally with its actions\n */\nexport type getAutomaticTriggerResponse200 = {\n data: GetAutomaticTrigger200\n status: 200\n}\n\nexport type getAutomaticTriggerResponse403 = {\n data: GetAutomaticTrigger403\n status: 403\n}\n\nexport type getAutomaticTriggerResponse404 = {\n data: GetAutomaticTrigger404\n status: 404\n}\n\nexport type getAutomaticTriggerResponseSuccess = getAutomaticTriggerResponse200 & {\n headers: Headers\n}\nexport type getAutomaticTriggerResponseError = (getAutomaticTriggerResponse403 | getAutomaticTriggerResponse404) & {\n headers: Headers\n}\n\nexport type getAutomaticTriggerResponse = getAutomaticTriggerResponseSuccess | getAutomaticTriggerResponseError\n\nexport const getGetAutomaticTriggerUrl = (\n ecosystemName: string,\n projectName: string,\n id: number,\n params?: GetAutomaticTriggerParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/automatic-trigger/${id}?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/automatic-trigger/${id}`\n}\n\nexport const getAutomaticTrigger = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n params?: GetAutomaticTriggerParams,\n options?: RequestInit,\n): Promise<getAutomaticTriggerResponse> => {\n return customFetch<getAutomaticTriggerResponse>(getGetAutomaticTriggerUrl(ecosystemName, projectName, id, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Update an existing automatic trigger\n */\nexport type updateAutomaticTriggerResponse200 = {\n data: UpdateAutomaticTrigger200\n status: 200\n}\n\nexport type updateAutomaticTriggerResponse400 = {\n data: UpdateAutomaticTrigger400\n status: 400\n}\n\nexport type updateAutomaticTriggerResponse403 = {\n data: UpdateAutomaticTrigger403\n status: 403\n}\n\nexport type updateAutomaticTriggerResponse404 = {\n data: UpdateAutomaticTrigger404\n status: 404\n}\n\nexport type updateAutomaticTriggerResponseSuccess = updateAutomaticTriggerResponse200 & {\n headers: Headers\n}\nexport type updateAutomaticTriggerResponseError = (\n | updateAutomaticTriggerResponse400\n | updateAutomaticTriggerResponse403\n | updateAutomaticTriggerResponse404\n) & {\n headers: Headers\n}\n\nexport type updateAutomaticTriggerResponse = updateAutomaticTriggerResponseSuccess | updateAutomaticTriggerResponseError\n\nexport const getUpdateAutomaticTriggerUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/automatic-trigger/${id}`\n}\n\nexport const updateAutomaticTrigger = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateAutomaticTriggerBody: UpdateAutomaticTriggerBody,\n options?: RequestInit,\n): Promise<updateAutomaticTriggerResponse> => {\n return customFetch<updateAutomaticTriggerResponse>(getUpdateAutomaticTriggerUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateAutomaticTriggerBody),\n })\n}\n\n/**\n * Delete an automatic trigger by its ID\n */\nexport type deleteAutomaticTriggerResponse200 = {\n data: DeleteAutomaticTrigger200\n status: 200\n}\n\nexport type deleteAutomaticTriggerResponse403 = {\n data: DeleteAutomaticTrigger403\n status: 403\n}\n\nexport type deleteAutomaticTriggerResponse404 = {\n data: DeleteAutomaticTrigger404\n status: 404\n}\n\nexport type deleteAutomaticTriggerResponseSuccess = deleteAutomaticTriggerResponse200 & {\n headers: Headers\n}\nexport type deleteAutomaticTriggerResponseError = (\n | deleteAutomaticTriggerResponse403\n | deleteAutomaticTriggerResponse404\n) & {\n headers: Headers\n}\n\nexport type deleteAutomaticTriggerResponse = deleteAutomaticTriggerResponseSuccess | deleteAutomaticTriggerResponseError\n\nexport const getDeleteAutomaticTriggerUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/automatic-trigger/${id}`\n}\n\nexport const deleteAutomaticTrigger = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteAutomaticTriggerResponse> => {\n return customFetch<deleteAutomaticTriggerResponse>(getDeleteAutomaticTriggerUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n}\n\n/**\n * Get a paginated list of documents\n */\nexport type listDocumentsResponse200 = {\n data: ListDocuments200\n status: 200\n}\n\nexport type listDocumentsResponse403 = {\n data: ListDocuments403\n status: 403\n}\n\nexport type listDocumentsResponse404 = {\n data: ListDocuments404\n status: 404\n}\n\nexport type listDocumentsResponseSuccess = listDocumentsResponse200 & {\n headers: Headers\n}\nexport type listDocumentsResponseError = (listDocumentsResponse403 | listDocumentsResponse404) & {\n headers: Headers\n}\n\nexport type listDocumentsResponse = listDocumentsResponseSuccess | listDocumentsResponseError\n\nexport const getListDocumentsUrl = (ecosystemName: string, projectName: string, params?: ListDocumentsParams) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`\n}\n\nexport const listDocuments = async (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentsParams,\n options?: RequestInit,\n): Promise<listDocumentsResponse> => {\n return customFetch<listDocumentsResponse>(getListDocumentsUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Create a new document record\n */\nexport type createDocumentResponse200 = {\n data: CreateDocument200\n status: 200\n}\n\nexport type createDocumentResponse403 = {\n data: CreateDocument403\n status: 403\n}\n\nexport type createDocumentResponse404 = {\n data: CreateDocument404\n status: 404\n}\n\nexport type createDocumentResponseSuccess = createDocumentResponse200 & {\n headers: Headers\n}\nexport type createDocumentResponseError = (createDocumentResponse403 | createDocumentResponse404) & {\n headers: Headers\n}\n\nexport type createDocumentResponse = createDocumentResponseSuccess | createDocumentResponseError\n\nexport const getCreateDocumentUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`\n}\n\nexport const createDocument = async (\n ecosystemName: string,\n projectName: string,\n createDocumentBody: CreateDocumentBody,\n options?: RequestInit,\n): Promise<createDocumentResponse> => {\n return customFetch<createDocumentResponse>(getCreateDocumentUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createDocumentBody),\n })\n}\n\n/**\n * Retrieve a specific document by ID\n */\nexport type getDocumentResponse200 = {\n data: GetDocument200\n status: 200\n}\n\nexport type getDocumentResponse403 = {\n data: GetDocument403\n status: 403\n}\n\nexport type getDocumentResponse404 = {\n data: GetDocument404\n status: 404\n}\n\nexport type getDocumentResponseSuccess = getDocumentResponse200 & {\n headers: Headers\n}\nexport type getDocumentResponseError = (getDocumentResponse403 | getDocumentResponse404) & {\n headers: Headers\n}\n\nexport type getDocumentResponse = getDocumentResponseSuccess | getDocumentResponseError\n\nexport const getGetDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const getDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getDocumentResponse> => {\n return customFetch<getDocumentResponse>(getGetDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Update an existing document record\n */\nexport type updateDocumentResponse200 = {\n data: UpdateDocument200\n status: 200\n}\n\nexport type updateDocumentResponse403 = {\n data: UpdateDocument403\n status: 403\n}\n\nexport type updateDocumentResponse404 = {\n data: UpdateDocument404\n status: 404\n}\n\nexport type updateDocumentResponseSuccess = updateDocumentResponse200 & {\n headers: Headers\n}\nexport type updateDocumentResponseError = (updateDocumentResponse403 | updateDocumentResponse404) & {\n headers: Headers\n}\n\nexport type updateDocumentResponse = updateDocumentResponseSuccess | updateDocumentResponseError\n\nexport const getUpdateDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const updateDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateDocumentBody: UpdateDocumentBody,\n options?: RequestInit,\n): Promise<updateDocumentResponse> => {\n return customFetch<updateDocumentResponse>(getUpdateDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateDocumentBody),\n })\n}\n\n/**\n * Delete a document by its ID\n */\nexport type deleteDocumentResponse200 = {\n data: DeleteDocument200\n status: 200\n}\n\nexport type deleteDocumentResponse403 = {\n data: DeleteDocument403\n status: 403\n}\n\nexport type deleteDocumentResponse404 = {\n data: DeleteDocument404\n status: 404\n}\n\nexport type deleteDocumentResponseSuccess = deleteDocumentResponse200 & {\n headers: Headers\n}\nexport type deleteDocumentResponseError = (deleteDocumentResponse403 | deleteDocumentResponse404) & {\n headers: Headers\n}\n\nexport type deleteDocumentResponse = deleteDocumentResponseSuccess | deleteDocumentResponseError\n\nexport const getDeleteDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const deleteDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteDocumentResponse> => {\n return customFetch<deleteDocumentResponse>(getDeleteDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n}\n\nexport type addCategoryToDocumentResponse200 = {\n data: AddCategoryToDocument200\n status: 200\n}\n\nexport type addCategoryToDocumentResponse403 = {\n data: AddCategoryToDocument403\n status: 403\n}\n\nexport type addCategoryToDocumentResponse404 = {\n data: AddCategoryToDocument404\n status: 404\n}\n\nexport type addCategoryToDocumentResponseSuccess = addCategoryToDocumentResponse200 & {\n headers: Headers\n}\nexport type addCategoryToDocumentResponseError = (\n | addCategoryToDocumentResponse403\n | addCategoryToDocumentResponse404\n) & {\n headers: Headers\n}\n\nexport type addCategoryToDocumentResponse = addCategoryToDocumentResponseSuccess | addCategoryToDocumentResponseError\n\nexport const getAddCategoryToDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}/categories`\n}\n\nexport const addCategoryToDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n addCategoryToDocumentBody: AddCategoryToDocumentBody,\n options?: RequestInit,\n): Promise<addCategoryToDocumentResponse> => {\n return customFetch<addCategoryToDocumentResponse>(getAddCategoryToDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(addCategoryToDocumentBody),\n })\n}\n\nexport type removeCategoryFromDocumentResponse200 = {\n data: RemoveCategoryFromDocument200\n status: 200\n}\n\nexport type removeCategoryFromDocumentResponse403 = {\n data: RemoveCategoryFromDocument403\n status: 403\n}\n\nexport type removeCategoryFromDocumentResponse404 = {\n data: RemoveCategoryFromDocument404\n status: 404\n}\n\nexport type removeCategoryFromDocumentResponseSuccess = removeCategoryFromDocumentResponse200 & {\n headers: Headers\n}\nexport type removeCategoryFromDocumentResponseError = (\n | removeCategoryFromDocumentResponse403\n | removeCategoryFromDocumentResponse404\n) & {\n headers: Headers\n}\n\nexport type removeCategoryFromDocumentResponse =\n | removeCategoryFromDocumentResponseSuccess\n | removeCategoryFromDocumentResponseError\n\nexport const getRemoveCategoryFromDocumentUrl = (\n ecosystemName: string,\n projectName: string,\n documentId: number,\n categoryId: number,\n) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${documentId}/categories/${categoryId}`\n}\n\nexport const removeCategoryFromDocument = async (\n ecosystemName: string,\n projectName: string,\n documentId: number,\n categoryId: number,\n options?: RequestInit,\n): Promise<removeCategoryFromDocumentResponse> => {\n return customFetch<removeCategoryFromDocumentResponse>(\n getRemoveCategoryFromDocumentUrl(ecosystemName, projectName, documentId, categoryId),\n {\n ...options,\n method: 'DELETE',\n },\n )\n}\n\n/**\n * A paginated list of document categories with the number of documents in each category\n */\nexport type listDocumentCategoriesResponse200 = {\n data: ListDocumentCategories200\n status: 200\n}\n\nexport type listDocumentCategoriesResponse403 = {\n data: ListDocumentCategories403\n status: 403\n}\n\nexport type listDocumentCategoriesResponse404 = {\n data: ListDocumentCategories404\n status: 404\n}\n\nexport type listDocumentCategoriesResponseSuccess = listDocumentCategoriesResponse200 & {\n headers: Headers\n}\nexport type listDocumentCategoriesResponseError = (\n | listDocumentCategoriesResponse403\n | listDocumentCategoriesResponse404\n) & {\n headers: Headers\n}\n\nexport type listDocumentCategoriesResponse = listDocumentCategoriesResponseSuccess | listDocumentCategoriesResponseError\n\nexport const getListDocumentCategoriesUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const listDocumentCategories = async (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n options?: RequestInit,\n): Promise<listDocumentCategoriesResponse> => {\n return customFetch<listDocumentCategoriesResponse>(getListDocumentCategoriesUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Creates a document category with the provided data\n */\nexport type createDocumentCategoryResponse200 = {\n data: CreateDocumentCategory200\n status: 200\n}\n\nexport type createDocumentCategoryResponse403 = {\n data: CreateDocumentCategory403\n status: 403\n}\n\nexport type createDocumentCategoryResponse404 = {\n data: CreateDocumentCategory404\n status: 404\n}\n\nexport type createDocumentCategoryResponseSuccess = createDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type createDocumentCategoryResponseError = (\n | createDocumentCategoryResponse403\n | createDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type createDocumentCategoryResponse = createDocumentCategoryResponseSuccess | createDocumentCategoryResponseError\n\nexport const getCreateDocumentCategoryUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const createDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n createDocumentCategoryBody: CreateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<createDocumentCategoryResponse> => {\n return customFetch<createDocumentCategoryResponse>(getCreateDocumentCategoryUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createDocumentCategoryBody),\n })\n}\n\n/**\n * Get the data of a document category\n */\nexport type getDocumentCategoryResponse200 = {\n data: GetDocumentCategory200\n status: 200\n}\n\nexport type getDocumentCategoryResponse403 = {\n data: GetDocumentCategory403\n status: 403\n}\n\nexport type getDocumentCategoryResponse404 = {\n data: GetDocumentCategory404\n status: 404\n}\n\nexport type getDocumentCategoryResponseSuccess = getDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type getDocumentCategoryResponseError = (getDocumentCategoryResponse403 | getDocumentCategoryResponse404) & {\n headers: Headers\n}\n\nexport type getDocumentCategoryResponse = getDocumentCategoryResponseSuccess | getDocumentCategoryResponseError\n\nexport const getGetDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const getDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getDocumentCategoryResponse> => {\n return customFetch<getDocumentCategoryResponse>(getGetDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Updates (patch) a document category with the provided data\n */\nexport type updateDocumentCategoryResponse200 = {\n data: UpdateDocumentCategory200\n status: 200\n}\n\nexport type updateDocumentCategoryResponse403 = {\n data: UpdateDocumentCategory403\n status: 403\n}\n\nexport type updateDocumentCategoryResponse404 = {\n data: UpdateDocumentCategory404\n status: 404\n}\n\nexport type updateDocumentCategoryResponseSuccess = updateDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type updateDocumentCategoryResponseError = (\n | updateDocumentCategoryResponse403\n | updateDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type updateDocumentCategoryResponse = updateDocumentCategoryResponseSuccess | updateDocumentCategoryResponseError\n\nexport const getUpdateDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const updateDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateDocumentCategoryBody: UpdateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<updateDocumentCategoryResponse> => {\n return customFetch<updateDocumentCategoryResponse>(getUpdateDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateDocumentCategoryBody),\n })\n}\n\n/**\n * Deletes a document category with the provided ID\n */\nexport type deleteDocumentCategoryResponse200 = {\n data: DeleteDocumentCategory200\n status: 200\n}\n\nexport type deleteDocumentCategoryResponse403 = {\n data: DeleteDocumentCategory403\n status: 403\n}\n\nexport type deleteDocumentCategoryResponse404 = {\n data: DeleteDocumentCategory404\n status: 404\n}\n\nexport type deleteDocumentCategoryResponseSuccess = deleteDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type deleteDocumentCategoryResponseError = (\n | deleteDocumentCategoryResponse403\n | deleteDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type deleteDocumentCategoryResponse = deleteDocumentCategoryResponseSuccess | deleteDocumentCategoryResponseError\n\nexport const getDeleteDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const deleteDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteDocumentCategoryResponse> => {\n return customFetch<deleteDocumentCategoryResponse>(getDeleteDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n}\n\n/**\n * Get forms data\n */\nexport type getFormsDataResponse200 = {\n data: GetFormsData200\n status: 200\n}\n\nexport type getFormsDataResponse403 = {\n data: GetFormsData403\n status: 403\n}\n\nexport type getFormsDataResponse404 = {\n data: GetFormsData404\n status: 404\n}\n\nexport type getFormsDataResponseSuccess = getFormsDataResponse200 & {\n headers: Headers\n}\nexport type getFormsDataResponseError = (getFormsDataResponse403 | getFormsDataResponse404) & {\n headers: Headers\n}\n\nexport type getFormsDataResponse = getFormsDataResponseSuccess | getFormsDataResponseError\n\nexport const getGetFormsDataUrl = (ecosystemName: string, projectName: string, params: GetFormsDataParams) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/forms-data/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/forms-data/`\n}\n\nexport const getFormsData = async (\n ecosystemName: string,\n projectName: string,\n params: GetFormsDataParams,\n options?: RequestInit,\n): Promise<getFormsDataResponse> => {\n return customFetch<getFormsDataResponse>(getGetFormsDataUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Get a paginated list of manual triggers, optionally with their actions\n */\nexport type listManualTriggersResponse200 = {\n data: ListManualTriggers200\n status: 200\n}\n\nexport type listManualTriggersResponse403 = {\n data: ListManualTriggers403\n status: 403\n}\n\nexport type listManualTriggersResponse404 = {\n data: ListManualTriggers404\n status: 404\n}\n\nexport type listManualTriggersResponseSuccess = listManualTriggersResponse200 & {\n headers: Headers\n}\nexport type listManualTriggersResponseError = (listManualTriggersResponse403 | listManualTriggersResponse404) & {\n headers: Headers\n}\n\nexport type listManualTriggersResponse = listManualTriggersResponseSuccess | listManualTriggersResponseError\n\nexport const getListManualTriggersUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListManualTriggersParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/`\n}\n\nexport const listManualTriggers = async (\n ecosystemName: string,\n projectName: string,\n params?: ListManualTriggersParams,\n options?: RequestInit,\n): Promise<listManualTriggersResponse> => {\n return customFetch<listManualTriggersResponse>(getListManualTriggersUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Create a new manual trigger\n */\nexport type createManualTriggerResponse200 = {\n data: CreateManualTrigger200\n status: 200\n}\n\nexport type createManualTriggerResponse403 = {\n data: CreateManualTrigger403\n status: 403\n}\n\nexport type createManualTriggerResponse404 = {\n data: CreateManualTrigger404\n status: 404\n}\n\nexport type createManualTriggerResponseSuccess = createManualTriggerResponse200 & {\n headers: Headers\n}\nexport type createManualTriggerResponseError = (createManualTriggerResponse403 | createManualTriggerResponse404) & {\n headers: Headers\n}\n\nexport type createManualTriggerResponse = createManualTriggerResponseSuccess | createManualTriggerResponseError\n\nexport const getCreateManualTriggerUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/`\n}\n\nexport const createManualTrigger = async (\n ecosystemName: string,\n projectName: string,\n createManualTriggerBody: CreateManualTriggerBody,\n options?: RequestInit,\n): Promise<createManualTriggerResponse> => {\n return customFetch<createManualTriggerResponse>(getCreateManualTriggerUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createManualTriggerBody),\n })\n}\n\n/**\n * List the manual triggers applicable to an entity, with their conditions already evaluated. Read-only: it records nothing\n */\nexport type listAvailableManualTriggersResponse200 = {\n data: ListAvailableManualTriggers200\n status: 200\n}\n\nexport type listAvailableManualTriggersResponse403 = {\n data: ListAvailableManualTriggers403\n status: 403\n}\n\nexport type listAvailableManualTriggersResponse404 = {\n data: ListAvailableManualTriggers404\n status: 404\n}\n\nexport type listAvailableManualTriggersResponseSuccess = listAvailableManualTriggersResponse200 & {\n headers: Headers\n}\nexport type listAvailableManualTriggersResponseError = (\n | listAvailableManualTriggersResponse403\n | listAvailableManualTriggersResponse404\n) & {\n headers: Headers\n}\n\nexport type listAvailableManualTriggersResponse =\n | listAvailableManualTriggersResponseSuccess\n | listAvailableManualTriggersResponseError\n\nexport const getListAvailableManualTriggersUrl = (\n ecosystemName: string,\n projectName: string,\n params: ListAvailableManualTriggersParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/available?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/available`\n}\n\nexport const listAvailableManualTriggers = async (\n ecosystemName: string,\n projectName: string,\n params: ListAvailableManualTriggersParams,\n options?: RequestInit,\n): Promise<listAvailableManualTriggersResponse> => {\n return customFetch<listAvailableManualTriggersResponse>(\n getListAvailableManualTriggersUrl(ecosystemName, projectName, params),\n {\n ...options,\n method: 'GET',\n },\n )\n}\n\n/**\n * Retrieve a specific manual trigger by ID, optionally with its actions\n */\nexport type getManualTriggerResponse200 = {\n data: GetManualTrigger200\n status: 200\n}\n\nexport type getManualTriggerResponse403 = {\n data: GetManualTrigger403\n status: 403\n}\n\nexport type getManualTriggerResponse404 = {\n data: GetManualTrigger404\n status: 404\n}\n\nexport type getManualTriggerResponseSuccess = getManualTriggerResponse200 & {\n headers: Headers\n}\nexport type getManualTriggerResponseError = (getManualTriggerResponse403 | getManualTriggerResponse404) & {\n headers: Headers\n}\n\nexport type getManualTriggerResponse = getManualTriggerResponseSuccess | getManualTriggerResponseError\n\nexport const getGetManualTriggerUrl = (\n ecosystemName: string,\n projectName: string,\n id: number,\n params?: GetManualTriggerParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/${id}?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/${id}`\n}\n\nexport const getManualTrigger = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n params?: GetManualTriggerParams,\n options?: RequestInit,\n): Promise<getManualTriggerResponse> => {\n return customFetch<getManualTriggerResponse>(getGetManualTriggerUrl(ecosystemName, projectName, id, params), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Update an existing manual trigger\n */\nexport type updateManualTriggerResponse200 = {\n data: UpdateManualTrigger200\n status: 200\n}\n\nexport type updateManualTriggerResponse400 = {\n data: UpdateManualTrigger400\n status: 400\n}\n\nexport type updateManualTriggerResponse403 = {\n data: UpdateManualTrigger403\n status: 403\n}\n\nexport type updateManualTriggerResponse404 = {\n data: UpdateManualTrigger404\n status: 404\n}\n\nexport type updateManualTriggerResponseSuccess = updateManualTriggerResponse200 & {\n headers: Headers\n}\nexport type updateManualTriggerResponseError = (\n | updateManualTriggerResponse400\n | updateManualTriggerResponse403\n | updateManualTriggerResponse404\n) & {\n headers: Headers\n}\n\nexport type updateManualTriggerResponse = updateManualTriggerResponseSuccess | updateManualTriggerResponseError\n\nexport const getUpdateManualTriggerUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/${id}`\n}\n\nexport const updateManualTrigger = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateManualTriggerBody: UpdateManualTriggerBody,\n options?: RequestInit,\n): Promise<updateManualTriggerResponse> => {\n return customFetch<updateManualTriggerResponse>(getUpdateManualTriggerUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateManualTriggerBody),\n })\n}\n\n/**\n * Delete a manual trigger by its ID\n */\nexport type deleteManualTriggerResponse200 = {\n data: DeleteManualTrigger200\n status: 200\n}\n\nexport type deleteManualTriggerResponse403 = {\n data: DeleteManualTrigger403\n status: 403\n}\n\nexport type deleteManualTriggerResponse404 = {\n data: DeleteManualTrigger404\n status: 404\n}\n\nexport type deleteManualTriggerResponseSuccess = deleteManualTriggerResponse200 & {\n headers: Headers\n}\nexport type deleteManualTriggerResponseError = (deleteManualTriggerResponse403 | deleteManualTriggerResponse404) & {\n headers: Headers\n}\n\nexport type deleteManualTriggerResponse = deleteManualTriggerResponseSuccess | deleteManualTriggerResponseError\n\nexport const getDeleteManualTriggerUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/${id}`\n}\n\nexport const deleteManualTrigger = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteManualTriggerResponse> => {\n return customFetch<deleteManualTriggerResponse>(getDeleteManualTriggerUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n}\n\n/**\n * Run a manual trigger against an entity. Re-evaluates the conditions server-side and records the evaluation and every action outcome\n */\nexport type runManualTriggerResponse200 = {\n data: RunManualTrigger200\n status: 200\n}\n\nexport type runManualTriggerResponse403 = {\n data: RunManualTrigger403\n status: 403\n}\n\nexport type runManualTriggerResponse404 = {\n data: RunManualTrigger404\n status: 404\n}\n\nexport type runManualTriggerResponseSuccess = runManualTriggerResponse200 & {\n headers: Headers\n}\nexport type runManualTriggerResponseError = (runManualTriggerResponse403 | runManualTriggerResponse404) & {\n headers: Headers\n}\n\nexport type runManualTriggerResponse = runManualTriggerResponseSuccess | runManualTriggerResponseError\n\nexport const getRunManualTriggerUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/manual-trigger/${id}/run`\n}\n\nexport const runManualTrigger = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n runManualTriggerBody: RunManualTriggerBody,\n options?: RequestInit,\n): Promise<runManualTriggerResponse> => {\n return customFetch<runManualTriggerResponse>(getRunManualTriggerUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(runManualTriggerBody),\n })\n}\n\n/**\n * [DEPRECATED] Returns a short-lived URL to embed the Thryve connection widget in an iframe / WebView. The native app builds this URL itself now; kept only for older installed clients. Slated for removal once access logs drop to zero.\n * @deprecated\n */\nexport type getThryveIframeUrlResponse200 = {\n data: GetThryveIframeUrl200\n status: 200\n}\n\nexport type getThryveIframeUrlResponse403 = {\n data: GetThryveIframeUrl403\n status: 403\n}\n\nexport type getThryveIframeUrlResponse404 = {\n data: GetThryveIframeUrl404\n status: 404\n}\n\nexport type getThryveIframeUrlResponseSuccess = getThryveIframeUrlResponse200 & {\n headers: Headers\n}\nexport type getThryveIframeUrlResponseError = (getThryveIframeUrlResponse403 | getThryveIframeUrlResponse404) & {\n headers: Headers\n}\n\nexport type getThryveIframeUrlResponse = getThryveIframeUrlResponseSuccess | getThryveIframeUrlResponseError\n\nexport const getGetThryveIframeUrlUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/thryve/iframe-url`\n}\n\nexport const getThryveIframeUrl = async (\n ecosystemName: string,\n projectName: string,\n options?: RequestInit,\n): Promise<getThryveIframeUrlResponse> => {\n return customFetch<getThryveIframeUrlResponse>(getGetThryveIframeUrlUrl(ecosystemName, projectName), {\n ...options,\n method: 'GET',\n })\n}\n\n/**\n * Returns a boolean indicating whether the current user has at least one connected data source in the HC API (multi-provider health data service, currently Thryve).\n */\nexport type getThryveIsAuthorizedResponse200 = {\n data: boolean\n status: 200\n}\n\nexport type getThryveIsAuthorizedResponse403 = {\n data: GetThryveIsAuthorized403\n status: 403\n}\n\nexport type getThryveIsAuthorizedResponse404 = {\n data: GetThryveIsAuthorized404\n status: 404\n}\n\nexport type getThryveIsAuthorizedResponseSuccess = getThryveIsAuthorizedResponse200 & {\n headers: Headers\n}\nexport type getThryveIsAuthorizedResponseError = (\n | getThryveIsAuthorizedResponse403\n | getThryveIsAuthorizedResponse404\n) & {\n headers: Headers\n}\n\nexport type getThryveIsAuthorizedResponse = getThryveIsAuthorizedResponseSuccess | getThryveIsAuthorizedResponseError\n\nexport const getGetThryveIsAuthorizedUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/thryve/is-authorized`\n}\n\nexport const getThryveIsAuthorized = async (\n ecosystemName: string,\n projectName: string,\n options?: RequestInit,\n): Promise<getThryveIsAuthorizedResponse> => {\n return customFetch<getThryveIsAuthorizedResponse>(getGetThryveIsAuthorizedUrl(ecosystemName, projectName), {\n ...options,\n method: 'GET',\n })\n}\n"],"names":[],"mappings":"AAeO,MAAM,6BAA6B,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EAEA,YAAY,QAAgB,MAAgB;AAC1C,UAAM,8BAA8B,MAAM,EAAE;AAS5C,WAAO,eAAe,MAAM,qBAAqB,SAAS;AAC1D,SAAK,OAAO;AACZ,SAAK,SAAS;AACd,SAAK,OAAO;AAAA,EACd;AACF;AAcA,IAAI;AAGG,SAAS,yBAAyB,KAAgC;AACvE,kBAAgB;AAClB;AAEA,SAAS,mBAAwC;AAC/C,MAAI,CAAC,eAAe;AAClB,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAAA,EAEJ;AACA,SAAO;AACT;AAmBA,eAAsB,YAAe,KAAa,SAAkC;AAClF,QAAM,EAAE,SAAS,SAAA,IAAa,iBAAA;AAC9B,QAAM,QAAQ,WAAA;AAEd,QAAM,UAAkC,EAAE,GAAI,QAAQ,QAAA;AACtD,MAAI,OAAO;AACT,YAAQ,gBAAgB,UAAU,KAAK;AAAA,EACzC;AAEA,QAAM,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,GAAG,IAAI,EAAE,GAAG,SAAS,QAAA,CAAS;AAEnE,QAAM,OAAO,CAAC,KAAK,KAAK,GAAG,EAAE,SAAS,IAAI,MAAM,IAAI,OAAO,MAAM,IAAI,KAAA;AACrE,QAAM,OAAQ,OAAO,KAAK,MAAM,IAAI,IAAI,CAAA;AAExC,MAAI,CAAC,IAAI,IAAI;AACX,UAAM,IAAI,qBAAqB,IAAI,QAAQ,IAAI;AAAA,EACjD;AAEA,SAAO,EAAE,MAAM,QAAQ,IAAI,QAAQ,SAAS,IAAI,QAAA;AAClD;AC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