Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Update OpenAPI #835

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 67 additions & 6 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProviderEndpoint"
"$ref": "#/components/schemas/AddProviderEndpointRequest"
}
}
}
Expand Down Expand Up @@ -266,7 +266,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProviderEndpoint"
"$ref": "#/components/schemas/AddProviderEndpointRequest"
}
}
}
Expand Down Expand Up @@ -1113,6 +1113,68 @@
],
"title": "ActiveWorkspace"
},
"AddProviderEndpointRequest": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": ""
},
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description",
"default": ""
},
"provider_type": {
"$ref": "#/components/schemas/ProviderType"
},
"endpoint": {
"type": "string",
"title": "Endpoint",
"default": ""
},
"auth_type": {
"anyOf": [
{
"$ref": "#/components/schemas/ProviderAuthType"
},
{
"type": "null"
}
],
"default": "none"
},
"api_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Api Key"
}
},
"type": "object",
"required": [
"name",
"provider_type"
],
"title": "AddProviderEndpointRequest",
"description": "Represents a request to add a provider endpoint."
},
"AlertConversation": {
"properties": {
"conversation": {
Expand Down Expand Up @@ -1437,7 +1499,6 @@
"MuxMatcherType": {
"type": "string",
"enum": [
"file_regex",
"catch_all"
],
"title": "MuxMatcherType",
Expand Down Expand Up @@ -1515,7 +1576,8 @@
},
"endpoint": {
"type": "string",
"title": "Endpoint"
"title": "Endpoint",
"default": ""
},
"auth_type": {
"anyOf": [
Expand All @@ -1532,8 +1594,7 @@
"type": "object",
"required": [
"name",
"provider_type",
"endpoint"
"provider_type"
],
"title": "ProviderEndpoint",
"description": "Represents a provider's endpoint configuration. This\nallows us to persist the configuration for each provider,\nso we can use this for muxing messages."
Expand Down