diff --git a/fern/openapi.json b/fern/openapi.json index 0146c537..25bff2dc 100644 --- a/fern/openapi.json +++ b/fern/openapi.json @@ -22308,6 +22308,9 @@ "items": { "type": "string" } + }, + "prompt_template": { + "type": "string" } }, "required": [ @@ -23087,6 +23090,134 @@ } } } + }, + "/v1/pipelines/preview": { + "post": { + "description": "Fetch sample messages from integration to preview what agents will receive", + "summary": "Preview Pipeline", + "tags": ["pipelines"], + "parameters": [], + "operationId": "pipelines.previewPipeline", + "requestBody": { + "description": "Body", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "integration_type": { + "type": "string", + "enum": ["slack"] + }, + "integration_id": { + "type": "string" + }, + "producer_config": { + "discriminator": { + "propertyName": "type" + }, + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["slack_channel_reader"] + }, + "data": { + "type": "object", + "properties": { + "channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel_name": { + "type": "string" + }, + "last_message_ts": { + "type": "string" + } + }, + "required": ["channel_id"] + }, + "minItems": 1, + "maxItems": 100 + }, + "max_messages_per_poll": { + "default": 100, + "type": "number" + } + }, + "required": ["channels"] + } + }, + "required": ["type", "data"] + } + ] + } + }, + "required": [ + "integration_type", + "integration_id", + "producer_config" + ] + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sampleMessages": { + "type": "array", + "items": { + "type": "string" + } + }, + "messageCount": { + "type": "number" + } + }, + "required": ["sampleMessages", "messageCount"] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "errorCode": { + "type": "string", + "enum": [ + "integrationNotFound", + "invalidProducerConfig", + "tokenExpired" + ] + } + }, + "required": ["message"] + } + } + } + } + } + } } }, "components": {