Add real workspace channels

This commit is contained in:
2026-05-05 13:06:57 -04:00
parent 6e658b8215
commit 244be555f9
26 changed files with 2598 additions and 128 deletions

View File

@@ -2539,6 +2539,99 @@
]
}
},
"/api/channels": {
"post": {
"tags": [
"Channels",
"Api"
],
"operationId": "SocializeApiModulesChannelsHandlersCreateChannelHandler",
"requestBody": {
"x-name": "CreateChannelRequest",
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesChannelsHandlersCreateChannelRequest"
}
}
},
"required": true,
"x-position": 1
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesChannelsHandlersChannelDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/FastEndpointsErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
},
"get": {
"tags": [
"Channels",
"Api"
],
"operationId": "SocializeApiModulesChannelsHandlersGetChannelsHandler",
"parameters": [
{
"name": "workspaceId",
"in": "query",
"schema": {
"type": "string",
"format": "guid",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocializeApiModulesChannelsHandlersChannelDto"
}
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
}
},
"/api/campaigns": {
"post": {
"tags": [
@@ -4612,6 +4705,82 @@
}
}
},
"SocializeApiModulesChannelsHandlersChannelDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "guid"
},
"workspaceId": {
"type": "string",
"format": "guid"
},
"name": {
"type": "string"
},
"network": {
"type": "string"
},
"handle": {
"type": "string",
"nullable": true
},
"externalUrl": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"SocializeApiModulesChannelsHandlersCreateChannelRequest": {
"type": "object",
"additionalProperties": false,
"required": [
"workspaceId",
"name",
"network"
],
"properties": {
"workspaceId": {
"type": "string",
"format": "guid",
"minLength": 1,
"nullable": false
},
"name": {
"type": "string",
"maxLength": 256,
"minLength": 0,
"nullable": false
},
"network": {
"type": "string",
"minLength": 1,
"nullable": false
},
"handle": {
"type": "string",
"maxLength": 256,
"minLength": 0,
"nullable": true
},
"externalUrl": {
"type": "string",
"maxLength": 2048,
"minLength": 0,
"nullable": true
}
}
},
"SocializeApiModulesChannelsHandlersGetChannelsRequest": {
"type": "object",
"additionalProperties": false
},
"SocializeApiModulesCampaignsHandlersCampaignDto": {
"type": "object",
"additionalProperties": false,