diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 3ad3e2e..ad45343 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -17246,7 +17246,12 @@ paths: - leads execution_type: server_side configuration_response_type: test_response_type - data_transformation_type: + data_transformation_type: code_block_transformation + transform_code_block: + code: | + def transform(response): + return {"status": response["order_status"]} + language: python client_function_name: client_function_timeout_ms: data_inputs: @@ -35295,6 +35300,28 @@ components: - full_access - redacted_access - code_block_transformation + transform_code_block: + type: object + nullable: true + description: | + The code block used to transform the connector's response when `data_transformation_type` is + `code_block_transformation`. Omitted if the connector has no transform code block configured. + example: + code: | + def transform(response): + return {"status": response["order_status"]} + language: python + properties: + code: + type: string + description: The source code of the transform code block. + example: | + def transform(response): + return {"status": response["order_status"]} + language: + type: string + description: The programming language of the transform code block. Currently always `python`. + example: python client_function_name: type: string nullable: true