diff --git a/apps/api/v2/src/modules/conferencing/controllers/conferencing.controller.ts b/apps/api/v2/src/modules/conferencing/controllers/conferencing.controller.ts index 14f0e42f2c..97fb9e52d5 100644 --- a/apps/api/v2/src/modules/conferencing/controllers/conferencing.controller.ts +++ b/apps/api/v2/src/modules/conferencing/controllers/conferencing.controller.ts @@ -30,7 +30,7 @@ import { CONFERENCING_APPS, GOOGLE_MEET, SUCCESS_STATUS } from "@calcom/platform path: "/v2/conferencing", version: API_VERSIONS_VALUES, }) -@DocsTags("Platform / Conferencing") +@DocsTags("Conferencing") export class ConferencingController { private readonly logger = new Logger("Platform Gcal Provider"); diff --git a/apps/api/v2/swagger/documentation.json b/apps/api/v2/swagger/documentation.json index 984d0b685f..1c3f7824a5 100644 --- a/apps/api/v2/swagger/documentation.json +++ b/apps/api/v2/swagger/documentation.json @@ -63,121 +63,6 @@ ] } }, - "/v2/conferencing/{app}/connect": { - "post": { - "operationId": "ConferencingController_connect", - "summary": "connect your conferencing application", - "parameters": [ - { - "name": "app", - "required": true, - "in": "path", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConferencingAppOutputResponseDto" - } - } - } - } - }, - "tags": [ - "Platform / Conferencing" - ] - } - }, - "/v2/conferencing": { - "get": { - "operationId": "ConferencingController_listConferencingApps", - "summary": "list your conferencing applications", - "parameters": [], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConferencingAppsOutputResponseDto" - } - } - } - } - }, - "tags": [ - "Platform / Conferencing" - ] - } - }, - "/v2/conferencing/{app}/default": { - "post": { - "operationId": "ConferencingController_default", - "summary": "set your default conferencing application", - "parameters": [ - { - "name": "app", - "required": true, - "in": "path", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SetDefaultConferencingAppOutputResponseDto" - } - } - } - } - }, - "tags": [ - "Platform / Conferencing" - ] - } - }, - "/v2/conferencing/{app}/disconnect": { - "delete": { - "operationId": "ConferencingController_disconnect", - "summary": "disconnect your conferencing application", - "parameters": [ - { - "name": "app", - "required": true, - "in": "path", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConferencingAppOutputResponseDto" - } - } - } - } - }, - "tags": [ - "Platform / Conferencing" - ] - } - }, "/v2/gcal/oauth/auth-url": { "get": { "operationId": "GcalController_redirect", @@ -3657,6 +3542,121 @@ ] } }, + "/v2/conferencing/{app}/connect": { + "post": { + "operationId": "ConferencingController_connect", + "summary": "Connect your conferencing application", + "parameters": [ + { + "name": "app", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConferencingAppOutputResponseDto" + } + } + } + } + }, + "tags": [ + "Conferencing" + ] + } + }, + "/v2/conferencing": { + "get": { + "operationId": "ConferencingController_listConferencingApps", + "summary": "List your conferencing applications", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConferencingAppsOutputResponseDto" + } + } + } + } + }, + "tags": [ + "Conferencing" + ] + } + }, + "/v2/conferencing/{app}/default": { + "post": { + "operationId": "ConferencingController_default", + "summary": "Set your default conferencing application", + "parameters": [ + { + "name": "app", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetDefaultConferencingAppOutputResponseDto" + } + } + } + } + }, + "tags": [ + "Conferencing" + ] + } + }, + "/v2/conferencing/{app}/disconnect": { + "delete": { + "operationId": "ConferencingController_disconnect", + "summary": "Disconnect your conferencing application", + "parameters": [ + { + "name": "app", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConferencingAppOutputResponseDto" + } + } + } + } + }, + "tags": [ + "Conferencing" + ] + } + }, "/v2/destination-calendars": { "put": { "operationId": "DestinationCalendarsController_updateDestinationCalendars", @@ -11149,7 +11149,9 @@ "RECORDING_READY", "INSTANT_MEETING", "RECORDING_TRANSCRIPTION_GENERATED", - "OOO_CREATED" + "OOO_CREATED", + "AFTER_HOSTS_CAL_VIDEO_NO_SHOW", + "AFTER_GUESTS_CAL_VIDEO_NO_SHOW" ] }, "active": { @@ -11223,7 +11225,9 @@ "RECORDING_READY", "INSTANT_MEETING", "RECORDING_TRANSCRIPTION_GENERATED", - "OOO_CREATED" + "OOO_CREATED", + "AFTER_HOSTS_CAL_VIDEO_NO_SHOW", + "AFTER_GUESTS_CAL_VIDEO_NO_SHOW" ] }, "active": { @@ -13126,7 +13130,7 @@ "type": { "type": "string", "example": "google_video", - "description": "type of conferencing app" + "description": "Type of conferencing app" }, "userId": { "type": "number", diff --git a/docs/api-reference/v2/openapi.json b/docs/api-reference/v2/openapi.json index ba677723b1..9d038ce06b 100644 --- a/docs/api-reference/v2/openapi.json +++ b/docs/api-reference/v2/openapi.json @@ -59,84 +59,6 @@ "tags": ["Platform / Cal Provider"] } }, - "/v2/conferencing": { - "get": { - "operationId": "ConferencingController_listConferencingApps", - "summary": "List your conferencing applications", - "parameters": [], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConferencingAppsOutputResponseDto" - } - } - } - } - }, - "tags": ["Platform / Conferencing"] - } - }, - "/v2/conferencing/{app}/default": { - "post": { - "operationId": "ConferencingController_default", - "summary": "Set your default conferencing application", - "parameters": [ - { - "name": "app", - "required": true, - "in": "path", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SetDefaultConferencingAppOutputResponseDto" - } - } - } - } - }, - "tags": ["Platform / Conferencing"] - } - }, - "/v2/conferencing/{app}/disconnect": { - "delete": { - "operationId": "ConferencingController_disconnect", - "summary": "Disconnect your conferencing application", - "parameters": [ - { - "name": "app", - "required": true, - "in": "path", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConferencingAppOutputResponseDto" - } - } - } - } - }, - "tags": ["Platform / Conferencing"] - } - }, "/v2/gcal/oauth/auth-url": { "get": { "operationId": "GcalController_redirect", @@ -3435,6 +3357,113 @@ "tags": ["Calendars"] } }, + "/v2/conferencing/{app}/connect": { + "post": { + "operationId": "ConferencingController_connect", + "summary": "Connect your conferencing application", + "parameters": [ + { + "name": "app", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConferencingAppOutputResponseDto" + } + } + } + } + }, + "tags": ["Conferencing"] + } + }, + "/v2/conferencing": { + "get": { + "operationId": "ConferencingController_listConferencingApps", + "summary": "List your conferencing applications", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConferencingAppsOutputResponseDto" + } + } + } + } + }, + "tags": ["Conferencing"] + } + }, + "/v2/conferencing/{app}/default": { + "post": { + "operationId": "ConferencingController_default", + "summary": "Set your default conferencing application", + "parameters": [ + { + "name": "app", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetDefaultConferencingAppOutputResponseDto" + } + } + } + } + }, + "tags": ["Conferencing"] + } + }, + "/v2/conferencing/{app}/disconnect": { + "delete": { + "operationId": "ConferencingController_disconnect", + "summary": "Disconnect your conferencing application", + "parameters": [ + { + "name": "app", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConferencingAppOutputResponseDto" + } + } + } + } + }, + "tags": ["Conferencing"] + } + }, "/v2/destination-calendars": { "put": { "operationId": "DestinationCalendarsController_updateDestinationCalendars", @@ -10030,7 +10059,9 @@ "RECORDING_READY", "INSTANT_MEETING", "RECORDING_TRANSCRIPTION_GENERATED", - "OOO_CREATED" + "OOO_CREATED", + "AFTER_HOSTS_CAL_VIDEO_NO_SHOW", + "AFTER_GUESTS_CAL_VIDEO_NO_SHOW" ] }, "active": { @@ -10094,7 +10125,9 @@ "RECORDING_READY", "INSTANT_MEETING", "RECORDING_TRANSCRIPTION_GENERATED", - "OOO_CREATED" + "OOO_CREATED", + "AFTER_HOSTS_CAL_VIDEO_NO_SHOW", + "AFTER_GUESTS_CAL_VIDEO_NO_SHOW" ] }, "active": { @@ -11685,6 +11718,73 @@ } }, "required": ["status", "data"] + }, + "ConferencingAppsOutputDto": { + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "Id of the conferencing app credentials" + }, + "type": { + "type": "string", + "example": "google_video", + "description": "Type of conferencing app" + }, + "userId": { + "type": "number", + "description": "Id of the user associated to the conferencing app" + }, + "invalid": { + "type": "boolean", + "nullable": true, + "example": true, + "description": "Whether if the connection is working or not." + } + }, + "required": ["id", "type", "userId"] + }, + "ConferencingAppOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/ConferencingAppsOutputDto" + } + }, + "required": ["status", "data"] + }, + "ConferencingAppsOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConferencingAppsOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "SetDefaultConferencingAppOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + } + }, + "required": ["status"] } } }