Shub/let 6883 users can create a feed [LET-6883] (#8432)
* chore: pdu * chore: pdu * chore: delete/disable * chore: delete/disable * chore: pdu * chore: pdu * chore: pdu * chore: pdu * chore: pdu * chore: pdu * chore: merge * chore: merge * cha * chore: hotfix for convo id
This commit is contained in:
committed by
Caren Thomas
parent
96cf24264c
commit
f3799fe4ee
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user