diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index ee5197b90..0cbad120f 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -2298,6 +2298,14 @@ types: maxLength: 2048 source: openapi: openapi/openapi.yaml + FsmTransitionExecuteResponse: + docs: Response serializer for manual FSM transition execution. + properties: + new_state: optional + state_record: optional + success: boolean + source: + openapi: openapi/openapi.yaml FileUpload: properties: file: string diff --git a/.mock/definition/fsm.yml b/.mock/definition/fsm.yml index c1c213620..3baa4a5f1 100644 --- a/.mock/definition/fsm.yml +++ b/.mock/definition/fsm.yml @@ -76,5 +76,52 @@ service: id: 1 audiences: - internal + execute_transition: + path: /api/fsm/entities/{entity_name}/{entity_id}/transition/ + method: POST + auth: true + docs: Execute a registered manual transition for an entity. + source: + openapi: openapi/openapi.yaml + path-parameters: + entity_id: integer + entity_name: string + display-name: Execute manual FSM transition + request: + name: FsmTransitionExecuteRequestRequest + body: + properties: + transition_data: optional> + transition_name: + type: string + validation: + minLength: 1 + content-type: application/json + response: + docs: '' + type: root.FsmTransitionExecuteResponse + examples: + - path-parameters: + entity_id: 1 + entity_name: entity_name + request: + transition_name: transition_name + response: + body: + new_state: new_state + state_record: + context_data: + key: value + created_at: '2024-01-15T09:30:00Z' + id: id + previous_state: previous_state + state: state + transition_name: transition_name + triggered_by: + email: email + id: 1 + success: true + audiences: + - internal source: openapi: openapi/openapi.yaml diff --git a/.mock/openapi/openapi.yaml b/.mock/openapi/openapi.yaml index 800d09bee..5e2485442 100644 --- a/.mock/openapi/openapi.yaml +++ b/.mock/openapi/openapi.yaml @@ -4048,6 +4048,49 @@ paths: results: $response.results x-fern-sdk-group-name: fsm x-fern-sdk-method-name: state_history + /api/fsm/entities/{entity_name}/{entity_id}/transition/: + post: + description: Execute a registered manual transition for an entity. + operationId: api_fsm_entities_transition_create + parameters: + - in: path + name: entity_id + required: true + schema: + type: integer + - in: path + name: entity_name + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FSMTransitionExecuteRequestRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/FSMTransitionExecuteRequestRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/FSMTransitionExecuteRequestRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FSMTransitionExecuteResponse' + description: '' + security: + - Token: [] + summary: Execute manual FSM transition + tags: + - FSM + x-fern-audiences: + - internal + x-fern-sdk-group-name: fsm + x-fern-sdk-method-name: execute_transition /api/import/file-upload/{id}: delete: description: Delete a specific uploaded file. @@ -22154,6 +22197,39 @@ components: required: - export_type type: object + FSMTransitionExecuteRequestRequest: + description: Request body serializer for executing a manual FSM transition. + properties: + transition_data: + additionalProperties: {} + nullable: true + type: object + transition_name: + minLength: 1 + type: string + required: + - transition_name + type: object + FSMTransitionExecuteResponse: + description: Response serializer for manual FSM transition execution. + properties: + new_state: + nullable: true + readOnly: true + type: string + state_record: + allOf: + - $ref: '#/components/schemas/StateModel' + nullable: true + readOnly: true + success: + readOnly: true + type: boolean + required: + - new_state + - state_record + - success + type: object FileUpload: properties: file: diff --git a/poetry.lock b/poetry.lock index e8cc19601..1f20b9587 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2230,13 +2230,13 @@ telegram = ["requests"] [[package]] name = "types-python-dateutil" -version = "2.9.0.20251108" +version = "2.9.0.20251115" description = "Typing stubs for python-dateutil" optional = false python-versions = ">=3.9" files = [ - {file = "types_python_dateutil-2.9.0.20251108-py3-none-any.whl", hash = "sha256:a4a537f0ea7126f8ccc2763eec9aa31ac8609e3c8e530eb2ddc5ee234b3cd764"}, - {file = "types_python_dateutil-2.9.0.20251108.tar.gz", hash = "sha256:d8a6687e197f2fa71779ce36176c666841f811368710ab8d274b876424ebfcaa"}, + {file = "types_python_dateutil-2.9.0.20251115-py3-none-any.whl", hash = "sha256:9cf9c1c582019753b8639a081deefd7e044b9fa36bd8217f565c6c4e36ee0624"}, + {file = "types_python_dateutil-2.9.0.20251115.tar.gz", hash = "sha256:8a47f2c3920f52a994056b8786309b43143faa5a64d4cbb2722d6addabdf1a58"}, ] [[package]]