fix: use class CreateDelegationCredentialInput instead of type for api v2 (#23831)

This commit is contained in:
Morgan authored and GitHub committed 2025-09-15 07:59:30 +00:00
1 parent cbfd991ab7
commit 7e876e3457
3 files changed
+258 -43

No files matched your search

+123 -19
View File
@@ -1732,7 +1732,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Function"
"$ref": "#/components/schemas/CreateDelegationCredentialInput"
}
}
}
@@ -8663,6 +8663,52 @@
"summary": "Get busy times",
"description": "Get busy times from a calendar. Example request URL is `https://api.cal.com/v2/calendars/busy-times?loggedInUsersTz=Europe%2FMadrid&dateFrom=2024-12-18&dateTo=2024-12-18&calendarsToLoad[0][credentialId]=135&calendarsToLoad[0][externalId]=skrauciz%40gmail.com`",
"parameters": [
{
"name": "loggedInUsersTz",
"required": true,
"in": "query",
"description": "The timezone of the logged in user represented as a string",
"schema": {
"example": "America/New_York",
"type": "string"
}
},
{
"name": "dateFrom",
"required": false,
"in": "query",
"description": "The starting date for the busy times query",
"schema": {
"example": "2023-10-01",
"type": "string"
}
},
{
"name": "dateTo",
"required": false,
"in": "query",
"description": "The ending date for the busy times query",
"schema": {
"example": "2023-10-31",
"type": "string"
}
},
{
"name": "credentialId",
"in": "query",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "externalId",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "Authorization",
"in": "header",
@@ -8842,7 +8888,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Function"
"$ref": "#/components/schemas/CreateCalendarCredentialsInput"
}
}
}
@@ -22915,9 +22961,45 @@
},
"required": ["status"]
},
"Function": {
"GoogleServiceAccountKeyInput": {
"type": "object",
"properties": {}
"properties": {
"private_key": {
"type": "string"
},
"client_email": {
"type": "string"
},
"client_id": {
"type": "string"
}
},
"required": ["private_key", "client_email", "client_id"]
},
"CreateDelegationCredentialInput": {
"type": "object",
"properties": {
"workspacePlatformSlug": {
"type": "string"
},
"domain": {
"type": "string"
},
"serviceAccountKey": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/GoogleServiceAccountKeyInput"
},
{
"$ref": "#/components/schemas/MicrosoftServiceAccountKeyInput"
}
]
}
}
},
"required": ["workspacePlatformSlug", "domain", "serviceAccountKey"]
},
"WorkspacePlatformDto": {
"type": "object",
@@ -22982,21 +23064,6 @@
},
"required": ["status", "data"]
},
"GoogleServiceAccountKeyInput": {
"type": "object",
"properties": {
"private_key": {
"type": "string"
},
"client_email": {
"type": "string"
},
"client_id": {
"type": "string"
}
},
"required": ["private_key", "client_email", "client_id"]
},
"UpdateDelegationCredentialInput": {
"type": "object",
"properties": {
@@ -23399,6 +23466,18 @@
},
"required": ["status", "data"]
},
"CreateCalendarCredentialsInput": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
},
"required": ["username", "password"]
},
"DeleteCalendarCredentialsInputBodyDto": {
"type": "object",
"properties": {
@@ -24500,6 +24579,11 @@
"$ref": "#/components/schemas/Routing"
}
]
},
"emailVerificationCode": {
"type": "string",
"description": "Email verification code required when event type has email verification enabled.",
"example": "123456"
}
},
"required": ["start", "attendee"]
@@ -24619,6 +24703,11 @@
}
]
},
"emailVerificationCode": {
"type": "string",
"description": "Email verification code required when event type has email verification enabled.",
"example": "123456"
},
"instant": {
"type": "boolean",
"description": "Flag indicating if the booking is an instant booking. Only available for team events.",
@@ -24742,6 +24831,11 @@
}
]
},
"emailVerificationCode": {
"type": "string",
"description": "Email verification code required when event type has email verification enabled.",
"example": "123456"
},
"recurrenceCount": {
"type": "number",
"description": "The number of recurrences. If not provided then event type recurrence count will be used. Can't be more than\n event type recurrence count",
@@ -26067,6 +26161,11 @@
"type": "string",
"example": "User requested reschedule",
"description": "Reason for rescheduling the booking"
},
"emailVerificationCode": {
"type": "string",
"description": "Email verification code required when event type has email verification enabled.",
"example": "123456"
}
},
"required": ["start"]
@@ -26087,6 +26186,11 @@
"type": "string",
"example": "3be561a9-31f1-4b8e-aefc-9d9a085f0dd1",
"description": "Uid of the specific seat within booking."
},
"emailVerificationCode": {
"type": "string",
"description": "Email verification code required when event type has email verification enabled.",
"example": "123456"
}
},
"required": ["start", "seatUid"]