universal-mcp-applications 0.1.30__py3-none-any.whl → 0.1.36rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of universal-mcp-applications might be problematic. Click here for more details.
- universal_mcp/applications/ahrefs/app.py +52 -198
- universal_mcp/applications/airtable/app.py +23 -122
- universal_mcp/applications/apollo/app.py +111 -464
- universal_mcp/applications/asana/app.py +417 -1567
- universal_mcp/applications/aws_s3/app.py +33 -100
- universal_mcp/applications/bill/app.py +546 -1957
- universal_mcp/applications/box/app.py +1068 -3981
- universal_mcp/applications/braze/app.py +364 -1430
- universal_mcp/applications/browser_use/app.py +2 -8
- universal_mcp/applications/cal_com_v2/app.py +207 -625
- universal_mcp/applications/calendly/app.py +61 -200
- universal_mcp/applications/canva/app.py +45 -110
- universal_mcp/applications/clickup/app.py +207 -674
- universal_mcp/applications/coda/app.py +146 -426
- universal_mcp/applications/confluence/app.py +310 -1098
- universal_mcp/applications/contentful/app.py +36 -151
- universal_mcp/applications/crustdata/app.py +28 -107
- universal_mcp/applications/dialpad/app.py +283 -756
- universal_mcp/applications/digitalocean/app.py +1766 -5777
- universal_mcp/applications/domain_checker/app.py +3 -54
- universal_mcp/applications/e2b/app.py +14 -64
- universal_mcp/applications/elevenlabs/app.py +9 -47
- universal_mcp/applications/exa/app.py +6 -17
- universal_mcp/applications/falai/app.py +23 -100
- universal_mcp/applications/figma/app.py +53 -137
- universal_mcp/applications/file_system/app.py +2 -13
- universal_mcp/applications/firecrawl/app.py +51 -152
- universal_mcp/applications/fireflies/app.py +59 -281
- universal_mcp/applications/fpl/app.py +91 -528
- universal_mcp/applications/fpl/utils/fixtures.py +15 -49
- universal_mcp/applications/fpl/utils/helper.py +25 -89
- universal_mcp/applications/fpl/utils/league_utils.py +20 -64
- universal_mcp/applications/ghost_content/app.py +52 -161
- universal_mcp/applications/github/app.py +19 -56
- universal_mcp/applications/gong/app.py +88 -248
- universal_mcp/applications/google_calendar/app.py +16 -68
- universal_mcp/applications/google_docs/app.py +88 -188
- universal_mcp/applications/google_drive/app.py +140 -462
- universal_mcp/applications/google_gemini/app.py +12 -64
- universal_mcp/applications/google_mail/app.py +28 -157
- universal_mcp/applications/google_searchconsole/app.py +15 -48
- universal_mcp/applications/google_sheet/app.py +101 -578
- universal_mcp/applications/google_sheet/helper.py +10 -37
- universal_mcp/applications/hashnode/app.py +57 -269
- universal_mcp/applications/heygen/app.py +44 -122
- universal_mcp/applications/http_tools/app.py +10 -32
- universal_mcp/applications/hubspot/api_segments/crm_api.py +460 -1573
- universal_mcp/applications/hubspot/api_segments/marketing_api.py +74 -262
- universal_mcp/applications/hubspot/app.py +23 -87
- universal_mcp/applications/jira/app.py +2071 -7986
- universal_mcp/applications/klaviyo/app.py +494 -1376
- universal_mcp/applications/linkedin/README.md +9 -2
- universal_mcp/applications/linkedin/app.py +392 -212
- universal_mcp/applications/mailchimp/app.py +450 -1605
- universal_mcp/applications/markitdown/app.py +8 -20
- universal_mcp/applications/miro/app.py +217 -699
- universal_mcp/applications/ms_teams/app.py +64 -186
- universal_mcp/applications/neon/app.py +86 -192
- universal_mcp/applications/notion/app.py +21 -36
- universal_mcp/applications/onedrive/app.py +14 -36
- universal_mcp/applications/openai/app.py +42 -165
- universal_mcp/applications/outlook/app.py +16 -76
- universal_mcp/applications/perplexity/app.py +4 -19
- universal_mcp/applications/pipedrive/app.py +832 -3142
- universal_mcp/applications/posthog/app.py +163 -432
- universal_mcp/applications/reddit/app.py +40 -139
- universal_mcp/applications/resend/app.py +41 -107
- universal_mcp/applications/retell/app.py +14 -41
- universal_mcp/applications/rocketlane/app.py +221 -934
- universal_mcp/applications/scraper/README.md +7 -4
- universal_mcp/applications/scraper/app.py +216 -102
- universal_mcp/applications/semanticscholar/app.py +22 -64
- universal_mcp/applications/semrush/app.py +43 -77
- universal_mcp/applications/sendgrid/app.py +512 -1262
- universal_mcp/applications/sentry/app.py +271 -906
- universal_mcp/applications/serpapi/app.py +40 -143
- universal_mcp/applications/sharepoint/app.py +15 -37
- universal_mcp/applications/shopify/app.py +1551 -4287
- universal_mcp/applications/shortcut/app.py +155 -417
- universal_mcp/applications/slack/app.py +50 -101
- universal_mcp/applications/spotify/app.py +126 -325
- universal_mcp/applications/supabase/app.py +104 -213
- universal_mcp/applications/tavily/app.py +1 -1
- universal_mcp/applications/trello/app.py +693 -2656
- universal_mcp/applications/twilio/app.py +14 -50
- universal_mcp/applications/twitter/api_segments/compliance_api.py +4 -14
- universal_mcp/applications/twitter/api_segments/dm_conversations_api.py +6 -18
- universal_mcp/applications/twitter/api_segments/likes_api.py +1 -3
- universal_mcp/applications/twitter/api_segments/lists_api.py +5 -15
- universal_mcp/applications/twitter/api_segments/trends_api.py +1 -3
- universal_mcp/applications/twitter/api_segments/tweets_api.py +9 -31
- universal_mcp/applications/twitter/api_segments/usage_api.py +1 -5
- universal_mcp/applications/twitter/api_segments/users_api.py +14 -42
- universal_mcp/applications/whatsapp/app.py +35 -186
- universal_mcp/applications/whatsapp/audio.py +2 -6
- universal_mcp/applications/whatsapp/whatsapp.py +17 -51
- universal_mcp/applications/whatsapp_business/app.py +70 -283
- universal_mcp/applications/wrike/app.py +45 -118
- universal_mcp/applications/yahoo_finance/app.py +19 -65
- universal_mcp/applications/youtube/app.py +75 -261
- universal_mcp/applications/zenquotes/app.py +2 -2
- {universal_mcp_applications-0.1.30.dist-info → universal_mcp_applications-0.1.36rc1.dist-info}/METADATA +2 -2
- {universal_mcp_applications-0.1.30.dist-info → universal_mcp_applications-0.1.36rc1.dist-info}/RECORD +105 -105
- {universal_mcp_applications-0.1.30.dist-info → universal_mcp_applications-0.1.36rc1.dist-info}/WHEEL +0 -0
- {universal_mcp_applications-0.1.30.dist-info → universal_mcp_applications-0.1.36rc1.dist-info}/licenses/LICENSE +0 -0
|
@@ -30,9 +30,7 @@ class CalComV2App(APIApplication):
|
|
|
30
30
|
url = f"{self.base_url}/v2/provider/{clientId}"
|
|
31
31
|
query_params = {}
|
|
32
32
|
response = self._get(url, params=query_params)
|
|
33
|
-
return Getproviderdetailsresponse.model_validate(
|
|
34
|
-
self._handle_response(response)
|
|
35
|
-
)
|
|
33
|
+
return Getproviderdetailsresponse.model_validate(self._handle_response(response))
|
|
36
34
|
|
|
37
35
|
def get_provider_access_token(self, clientId: str) -> dict[str, Any]:
|
|
38
36
|
"""
|
|
@@ -55,9 +53,7 @@ class CalComV2App(APIApplication):
|
|
|
55
53
|
url = f"{self.base_url}/v2/provider/{clientId}/access-token"
|
|
56
54
|
query_params = {}
|
|
57
55
|
response = self._get(url, params=query_params)
|
|
58
|
-
return Getprovideraccesstokenresponse.model_validate(
|
|
59
|
-
self._handle_response(response)
|
|
60
|
-
)
|
|
56
|
+
return Getprovideraccesstokenresponse.model_validate(self._handle_response(response))
|
|
61
57
|
|
|
62
58
|
def gcal_controller_redirect(self) -> dict[str, Any]:
|
|
63
59
|
"""
|
|
@@ -75,9 +71,7 @@ class CalComV2App(APIApplication):
|
|
|
75
71
|
url = f"{self.base_url}/v2/gcal/oauth/auth-url"
|
|
76
72
|
query_params = {}
|
|
77
73
|
response = self._get(url, params=query_params)
|
|
78
|
-
return GcalcontrollerRedirectresponse.model_validate(
|
|
79
|
-
self._handle_response(response)
|
|
80
|
-
)
|
|
74
|
+
return GcalcontrollerRedirectresponse.model_validate(self._handle_response(response))
|
|
81
75
|
|
|
82
76
|
def gcal_controller_save(self, state: str, code: str) -> dict[str, Any]:
|
|
83
77
|
"""
|
|
@@ -97,13 +91,9 @@ class CalComV2App(APIApplication):
|
|
|
97
91
|
Platform / Google Calendar
|
|
98
92
|
"""
|
|
99
93
|
url = f"{self.base_url}/v2/gcal/oauth/save"
|
|
100
|
-
query_params = {
|
|
101
|
-
k: v for k, v in [("state", state), ("code", code)] if v is not None
|
|
102
|
-
}
|
|
94
|
+
query_params = {k: v for k, v in [("state", state), ("code", code)] if v is not None}
|
|
103
95
|
response = self._get(url, params=query_params)
|
|
104
|
-
return GcalcontrollerSaveresponse.model_validate(
|
|
105
|
-
self._handle_response(response)
|
|
106
|
-
)
|
|
96
|
+
return GcalcontrollerSaveresponse.model_validate(self._handle_response(response))
|
|
107
97
|
|
|
108
98
|
def gcal_controller_check(self) -> dict[str, Any]:
|
|
109
99
|
"""
|
|
@@ -121,13 +111,9 @@ class CalComV2App(APIApplication):
|
|
|
121
111
|
url = f"{self.base_url}/v2/gcal/check"
|
|
122
112
|
query_params = {}
|
|
123
113
|
response = self._get(url, params=query_params)
|
|
124
|
-
return Getprovideraccesstokenresponse.model_validate(
|
|
125
|
-
self._handle_response(response)
|
|
126
|
-
)
|
|
114
|
+
return Getprovideraccesstokenresponse.model_validate(self._handle_response(response))
|
|
127
115
|
|
|
128
|
-
def list_client_users(
|
|
129
|
-
self, clientId: str, limit: float | None = None
|
|
130
|
-
) -> dict[str, Any]:
|
|
116
|
+
def list_client_users(self, clientId: str, limit: float | None = None) -> dict[str, Any]:
|
|
131
117
|
"""
|
|
132
118
|
Retrieves a list of users associated with a specific OAuth client ID, optionally limited by the specified query parameter.
|
|
133
119
|
|
|
@@ -198,9 +184,7 @@ class CalComV2App(APIApplication):
|
|
|
198
184
|
"locale": locale,
|
|
199
185
|
"avatarUrl": avatarUrl,
|
|
200
186
|
}
|
|
201
|
-
request_body_data = {
|
|
202
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
203
|
-
}
|
|
187
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
204
188
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/users"
|
|
205
189
|
query_params = {}
|
|
206
190
|
response = self._post(
|
|
@@ -209,9 +193,7 @@ class CalComV2App(APIApplication):
|
|
|
209
193
|
params=query_params,
|
|
210
194
|
content_type="application/json",
|
|
211
195
|
)
|
|
212
|
-
return Createoauthclientuserresponse.model_validate(
|
|
213
|
-
self._handle_response(response)
|
|
214
|
-
)
|
|
196
|
+
return Createoauthclientuserresponse.model_validate(self._handle_response(response))
|
|
215
197
|
|
|
216
198
|
def get_oauth_client_user_by_id(self, clientId: str, userId: str) -> dict[str, Any]:
|
|
217
199
|
"""
|
|
@@ -237,9 +219,7 @@ class CalComV2App(APIApplication):
|
|
|
237
219
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/users/{userId}"
|
|
238
220
|
query_params = {}
|
|
239
221
|
response = self._get(url, params=query_params)
|
|
240
|
-
return Getoauthclientuserbyidresponse.model_validate(
|
|
241
|
-
self._handle_response(response)
|
|
242
|
-
)
|
|
222
|
+
return Getoauthclientuserbyidresponse.model_validate(self._handle_response(response))
|
|
243
223
|
|
|
244
224
|
def patch_oauth_client_user_by_id(
|
|
245
225
|
self,
|
|
@@ -293,15 +273,11 @@ class CalComV2App(APIApplication):
|
|
|
293
273
|
"locale": locale,
|
|
294
274
|
"avatarUrl": avatarUrl,
|
|
295
275
|
}
|
|
296
|
-
request_body_data = {
|
|
297
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
298
|
-
}
|
|
276
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
299
277
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/users/{userId}"
|
|
300
278
|
query_params = {}
|
|
301
279
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
302
|
-
return Getoauthclientuserbyidresponse.model_validate(
|
|
303
|
-
self._handle_response(response)
|
|
304
|
-
)
|
|
280
|
+
return Getoauthclientuserbyidresponse.model_validate(self._handle_response(response))
|
|
305
281
|
|
|
306
282
|
def delete_user_by_client_id_id(self, clientId: str, userId: str) -> dict[str, Any]:
|
|
307
283
|
"""
|
|
@@ -327,9 +303,7 @@ class CalComV2App(APIApplication):
|
|
|
327
303
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/users/{userId}"
|
|
328
304
|
query_params = {}
|
|
329
305
|
response = self._delete(url, params=query_params)
|
|
330
|
-
return Getoauthclientuserbyidresponse.model_validate(
|
|
331
|
-
self._handle_response(response)
|
|
332
|
-
)
|
|
306
|
+
return Getoauthclientuserbyidresponse.model_validate(self._handle_response(response))
|
|
333
307
|
|
|
334
308
|
def force_refresh_user(self, clientId: str, userId: str) -> dict[str, Any]:
|
|
335
309
|
"""
|
|
@@ -353,9 +327,7 @@ class CalComV2App(APIApplication):
|
|
|
353
327
|
if userId is None:
|
|
354
328
|
raise ValueError("Missing required parameter 'userId'.")
|
|
355
329
|
request_body_data = None
|
|
356
|
-
url =
|
|
357
|
-
f"{self.base_url}/v2/oauth-clients/{clientId}/users/{userId}/force-refresh"
|
|
358
|
-
)
|
|
330
|
+
url = f"{self.base_url}/v2/oauth-clients/{clientId}/users/{userId}/force-refresh"
|
|
359
331
|
query_params = {}
|
|
360
332
|
response = self._post(
|
|
361
333
|
url,
|
|
@@ -365,9 +337,7 @@ class CalComV2App(APIApplication):
|
|
|
365
337
|
)
|
|
366
338
|
return Forcerefreshuserresponse.model_validate(self._handle_response(response))
|
|
367
339
|
|
|
368
|
-
def refresh_oauth_client_token(
|
|
369
|
-
self, clientId: str, refreshToken: str
|
|
370
|
-
) -> dict[str, Any]:
|
|
340
|
+
def refresh_oauth_client_token(self, clientId: str, refreshToken: str) -> dict[str, Any]:
|
|
371
341
|
"""
|
|
372
342
|
Refreshes an access token for a specified client using OAuth 2.0, allowing the client to obtain a new access token without user interaction.
|
|
373
343
|
|
|
@@ -390,9 +360,7 @@ class CalComV2App(APIApplication):
|
|
|
390
360
|
request_body_data = {
|
|
391
361
|
"refreshToken": refreshToken,
|
|
392
362
|
}
|
|
393
|
-
request_body_data = {
|
|
394
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
395
|
-
}
|
|
363
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
396
364
|
url = f"{self.base_url}/v2/oauth/{clientId}/refresh"
|
|
397
365
|
query_params = {}
|
|
398
366
|
response = self._post(
|
|
@@ -442,9 +410,7 @@ class CalComV2App(APIApplication):
|
|
|
442
410
|
"triggers": triggers,
|
|
443
411
|
"secret": secret,
|
|
444
412
|
}
|
|
445
|
-
request_body_data = {
|
|
446
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
447
|
-
}
|
|
413
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
448
414
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/webhooks"
|
|
449
415
|
query_params = {}
|
|
450
416
|
response = self._post(
|
|
@@ -453,13 +419,9 @@ class CalComV2App(APIApplication):
|
|
|
453
419
|
params=query_params,
|
|
454
420
|
content_type="application/json",
|
|
455
421
|
)
|
|
456
|
-
return Createoauthclientwebhookresponse.model_validate(
|
|
457
|
-
self._handle_response(response)
|
|
458
|
-
)
|
|
422
|
+
return Createoauthclientwebhookresponse.model_validate(self._handle_response(response))
|
|
459
423
|
|
|
460
|
-
def list_webhooks_by_client_id(
|
|
461
|
-
self, clientId: str, take: float | None = None, skip: float | None = None
|
|
462
|
-
) -> dict[str, Any]:
|
|
424
|
+
def list_webhooks_by_client_id(self, clientId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
463
425
|
"""
|
|
464
426
|
Retrieves a paginated list of webhooks associated with a specific OAuth client using clientId, take, and skip parameters for pagination.
|
|
465
427
|
|
|
@@ -480,13 +442,9 @@ class CalComV2App(APIApplication):
|
|
|
480
442
|
if clientId is None:
|
|
481
443
|
raise ValueError("Missing required parameter 'clientId'.")
|
|
482
444
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/webhooks"
|
|
483
|
-
query_params = {
|
|
484
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
485
|
-
}
|
|
445
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
486
446
|
response = self._get(url, params=query_params)
|
|
487
|
-
return Listwebhooksbyclientidresponse.model_validate(
|
|
488
|
-
self._handle_response(response)
|
|
489
|
-
)
|
|
447
|
+
return Listwebhooksbyclientidresponse.model_validate(self._handle_response(response))
|
|
490
448
|
|
|
491
449
|
def delete_client_webhook(self, clientId: str) -> dict[str, Any]:
|
|
492
450
|
"""
|
|
@@ -509,9 +467,7 @@ class CalComV2App(APIApplication):
|
|
|
509
467
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/webhooks"
|
|
510
468
|
query_params = {}
|
|
511
469
|
response = self._delete(url, params=query_params)
|
|
512
|
-
return Deleteclientwebhookresponse.model_validate(
|
|
513
|
-
self._handle_response(response)
|
|
514
|
-
)
|
|
470
|
+
return Deleteclientwebhookresponse.model_validate(self._handle_response(response))
|
|
515
471
|
|
|
516
472
|
def update_webhook(
|
|
517
473
|
self,
|
|
@@ -556,19 +512,13 @@ class CalComV2App(APIApplication):
|
|
|
556
512
|
"triggers": triggers,
|
|
557
513
|
"secret": secret,
|
|
558
514
|
}
|
|
559
|
-
request_body_data = {
|
|
560
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
561
|
-
}
|
|
515
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
562
516
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/webhooks/{webhookId}"
|
|
563
517
|
query_params = {}
|
|
564
518
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
565
|
-
return Createoauthclientwebhookresponse.model_validate(
|
|
566
|
-
self._handle_response(response)
|
|
567
|
-
)
|
|
519
|
+
return Createoauthclientwebhookresponse.model_validate(self._handle_response(response))
|
|
568
520
|
|
|
569
|
-
def get_oauth_client_webhook_by_id(
|
|
570
|
-
self, clientId: str, webhookId: str
|
|
571
|
-
) -> dict[str, Any]:
|
|
521
|
+
def get_oauth_client_webhook_by_id(self, clientId: str, webhookId: str) -> dict[str, Any]:
|
|
572
522
|
"""
|
|
573
523
|
Retrieves information about a specific webhook associated with an OAuth client using the "GET" method at the specified path.
|
|
574
524
|
|
|
@@ -592,13 +542,9 @@ class CalComV2App(APIApplication):
|
|
|
592
542
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/webhooks/{webhookId}"
|
|
593
543
|
query_params = {}
|
|
594
544
|
response = self._get(url, params=query_params)
|
|
595
|
-
return Createoauthclientwebhookresponse.model_validate(
|
|
596
|
-
self._handle_response(response)
|
|
597
|
-
)
|
|
545
|
+
return Createoauthclientwebhookresponse.model_validate(self._handle_response(response))
|
|
598
546
|
|
|
599
|
-
def delete_oauth_client_webhook_by_id(
|
|
600
|
-
self, clientId: str, webhookId: str
|
|
601
|
-
) -> dict[str, Any]:
|
|
547
|
+
def delete_oauth_client_webhook_by_id(self, clientId: str, webhookId: str) -> dict[str, Any]:
|
|
602
548
|
"""
|
|
603
549
|
Deletes a webhook associated with a specific OAuth client using the provided client and webhook IDs.
|
|
604
550
|
|
|
@@ -622,13 +568,9 @@ class CalComV2App(APIApplication):
|
|
|
622
568
|
url = f"{self.base_url}/v2/oauth-clients/{clientId}/webhooks/{webhookId}"
|
|
623
569
|
query_params = {}
|
|
624
570
|
response = self._delete(url, params=query_params)
|
|
625
|
-
return Createoauthclientwebhookresponse.model_validate(
|
|
626
|
-
self._handle_response(response)
|
|
627
|
-
)
|
|
571
|
+
return Createoauthclientwebhookresponse.model_validate(self._handle_response(response))
|
|
628
572
|
|
|
629
|
-
def list_org_attributes(
|
|
630
|
-
self, orgId: str, take: float | None = None, skip: float | None = None
|
|
631
|
-
) -> dict[str, Any]:
|
|
573
|
+
def list_org_attributes(self, orgId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
632
574
|
"""
|
|
633
575
|
Retrieves a list of organization attributes filtered by pagination parameters.
|
|
634
576
|
|
|
@@ -649,9 +591,7 @@ class CalComV2App(APIApplication):
|
|
|
649
591
|
if orgId is None:
|
|
650
592
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
651
593
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes"
|
|
652
|
-
query_params = {
|
|
653
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
654
|
-
}
|
|
594
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
655
595
|
response = self._get(url, params=query_params)
|
|
656
596
|
return Listorgattributesresponse.model_validate(self._handle_response(response))
|
|
657
597
|
|
|
@@ -694,9 +634,7 @@ class CalComV2App(APIApplication):
|
|
|
694
634
|
"options": options,
|
|
695
635
|
"enabled": enabled,
|
|
696
636
|
}
|
|
697
|
-
request_body_data = {
|
|
698
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
699
|
-
}
|
|
637
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
700
638
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes"
|
|
701
639
|
query_params = {}
|
|
702
640
|
response = self._post(
|
|
@@ -705,13 +643,9 @@ class CalComV2App(APIApplication):
|
|
|
705
643
|
params=query_params,
|
|
706
644
|
content_type="application/json",
|
|
707
645
|
)
|
|
708
|
-
return Createorgattributesresponse.model_validate(
|
|
709
|
-
self._handle_response(response)
|
|
710
|
-
)
|
|
646
|
+
return Createorgattributesresponse.model_validate(self._handle_response(response))
|
|
711
647
|
|
|
712
|
-
def fetch_organization_attribute_by_id(
|
|
713
|
-
self, orgId: str, attributeId: str
|
|
714
|
-
) -> dict[str, Any]:
|
|
648
|
+
def fetch_organization_attribute_by_id(self, orgId: str, attributeId: str) -> dict[str, Any]:
|
|
715
649
|
"""
|
|
716
650
|
Retrieves a specific attribute for an organization based on the provided orgId and attributeId.
|
|
717
651
|
|
|
@@ -735,9 +669,7 @@ class CalComV2App(APIApplication):
|
|
|
735
669
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}"
|
|
736
670
|
query_params = {}
|
|
737
671
|
response = self._get(url, params=query_params)
|
|
738
|
-
return Fetchorganizationattributebyidresponse.model_validate(
|
|
739
|
-
self._handle_response(response)
|
|
740
|
-
)
|
|
672
|
+
return Fetchorganizationattributebyidresponse.model_validate(self._handle_response(response))
|
|
741
673
|
|
|
742
674
|
def update_organization_attribute(
|
|
743
675
|
self,
|
|
@@ -779,15 +711,11 @@ class CalComV2App(APIApplication):
|
|
|
779
711
|
"type": type,
|
|
780
712
|
"enabled": enabled,
|
|
781
713
|
}
|
|
782
|
-
request_body_data = {
|
|
783
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
784
|
-
}
|
|
714
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
785
715
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}"
|
|
786
716
|
query_params = {}
|
|
787
717
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
788
|
-
return Createorgattributesresponse.model_validate(
|
|
789
|
-
self._handle_response(response)
|
|
790
|
-
)
|
|
718
|
+
return Createorgattributesresponse.model_validate(self._handle_response(response))
|
|
791
719
|
|
|
792
720
|
def delete_org_attribute(self, orgId: str, attributeId: str) -> dict[str, Any]:
|
|
793
721
|
"""
|
|
@@ -813,13 +741,9 @@ class CalComV2App(APIApplication):
|
|
|
813
741
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}"
|
|
814
742
|
query_params = {}
|
|
815
743
|
response = self._delete(url, params=query_params)
|
|
816
|
-
return Createorgattributesresponse.model_validate(
|
|
817
|
-
self._handle_response(response)
|
|
818
|
-
)
|
|
744
|
+
return Createorgattributesresponse.model_validate(self._handle_response(response))
|
|
819
745
|
|
|
820
|
-
def create_org_attribute_option(
|
|
821
|
-
self, orgId: str, attributeId: str, value: str, slug: str
|
|
822
|
-
) -> dict[str, Any]:
|
|
746
|
+
def create_org_attribute_option(self, orgId: str, attributeId: str, value: str, slug: str) -> dict[str, Any]:
|
|
823
747
|
"""
|
|
824
748
|
Creates a new option for the specified attribute in the given organization and returns the created resource.
|
|
825
749
|
|
|
@@ -847,12 +771,8 @@ class CalComV2App(APIApplication):
|
|
|
847
771
|
"value": value,
|
|
848
772
|
"slug": slug,
|
|
849
773
|
}
|
|
850
|
-
request_body_data = {
|
|
851
|
-
|
|
852
|
-
}
|
|
853
|
-
url = (
|
|
854
|
-
f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}/options"
|
|
855
|
-
)
|
|
774
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
775
|
+
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}/options"
|
|
856
776
|
query_params = {}
|
|
857
777
|
response = self._post(
|
|
858
778
|
url,
|
|
@@ -860,9 +780,7 @@ class CalComV2App(APIApplication):
|
|
|
860
780
|
params=query_params,
|
|
861
781
|
content_type="application/json",
|
|
862
782
|
)
|
|
863
|
-
return Createorgattributeoptionresponse.model_validate(
|
|
864
|
-
self._handle_response(response)
|
|
865
|
-
)
|
|
783
|
+
return Createorgattributeoptionresponse.model_validate(self._handle_response(response))
|
|
866
784
|
|
|
867
785
|
def get_org_attribute_options(self, orgId: str, attributeId: str) -> dict[str, Any]:
|
|
868
786
|
"""
|
|
@@ -885,18 +803,12 @@ class CalComV2App(APIApplication):
|
|
|
885
803
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
886
804
|
if attributeId is None:
|
|
887
805
|
raise ValueError("Missing required parameter 'attributeId'.")
|
|
888
|
-
url =
|
|
889
|
-
f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}/options"
|
|
890
|
-
)
|
|
806
|
+
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}/options"
|
|
891
807
|
query_params = {}
|
|
892
808
|
response = self._get(url, params=query_params)
|
|
893
|
-
return Getorgattributeoptionsresponse.model_validate(
|
|
894
|
-
self._handle_response(response)
|
|
895
|
-
)
|
|
809
|
+
return Getorgattributeoptionsresponse.model_validate(self._handle_response(response))
|
|
896
810
|
|
|
897
|
-
def delete_attribute_option_by_id(
|
|
898
|
-
self, orgId: str, attributeId: str, optionId: str
|
|
899
|
-
) -> dict[str, Any]:
|
|
811
|
+
def delete_attribute_option_by_id(self, orgId: str, attributeId: str, optionId: str) -> dict[str, Any]:
|
|
900
812
|
"""
|
|
901
813
|
Deletes a specific attribute option for an organization's custom attributes using the provided orgId, attributeId, and optionId.
|
|
902
814
|
|
|
@@ -923,9 +835,7 @@ class CalComV2App(APIApplication):
|
|
|
923
835
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}/options/{optionId}"
|
|
924
836
|
query_params = {}
|
|
925
837
|
response = self._delete(url, params=query_params)
|
|
926
|
-
return Createorgattributeoptionresponse.model_validate(
|
|
927
|
-
self._handle_response(response)
|
|
928
|
-
)
|
|
838
|
+
return Createorgattributeoptionresponse.model_validate(self._handle_response(response))
|
|
929
839
|
|
|
930
840
|
def patch_option_by_id(
|
|
931
841
|
self,
|
|
@@ -965,15 +875,11 @@ class CalComV2App(APIApplication):
|
|
|
965
875
|
"value": value,
|
|
966
876
|
"slug": slug,
|
|
967
877
|
}
|
|
968
|
-
request_body_data = {
|
|
969
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
970
|
-
}
|
|
878
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
971
879
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/{attributeId}/options/{optionId}"
|
|
972
880
|
query_params = {}
|
|
973
881
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
974
|
-
return Createorgattributeoptionresponse.model_validate(
|
|
975
|
-
self._handle_response(response)
|
|
976
|
-
)
|
|
882
|
+
return Createorgattributeoptionresponse.model_validate(self._handle_response(response))
|
|
977
883
|
|
|
978
884
|
def set_user_attribute_option(
|
|
979
885
|
self,
|
|
@@ -1012,9 +918,7 @@ class CalComV2App(APIApplication):
|
|
|
1012
918
|
"attributeOptionId": attributeOptionId,
|
|
1013
919
|
"attributeId": attributeId,
|
|
1014
920
|
}
|
|
1015
|
-
request_body_data = {
|
|
1016
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1017
|
-
}
|
|
921
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1018
922
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/options/{userId}"
|
|
1019
923
|
query_params = {}
|
|
1020
924
|
response = self._post(
|
|
@@ -1023,9 +927,7 @@ class CalComV2App(APIApplication):
|
|
|
1023
927
|
params=query_params,
|
|
1024
928
|
content_type="application/json",
|
|
1025
929
|
)
|
|
1026
|
-
return Setuserattributeoptionresponse.model_validate(
|
|
1027
|
-
self._handle_response(response)
|
|
1028
|
-
)
|
|
930
|
+
return Setuserattributeoptionresponse.model_validate(self._handle_response(response))
|
|
1029
931
|
|
|
1030
932
|
def get_user_org_attribute_options(self, orgId: str, userId: str) -> dict[str, Any]:
|
|
1031
933
|
"""
|
|
@@ -1051,13 +953,9 @@ class CalComV2App(APIApplication):
|
|
|
1051
953
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/options/{userId}"
|
|
1052
954
|
query_params = {}
|
|
1053
955
|
response = self._get(url, params=query_params)
|
|
1054
|
-
return Getuserorgattributeoptionsresponse.model_validate(
|
|
1055
|
-
self._handle_response(response)
|
|
1056
|
-
)
|
|
956
|
+
return Getuserorgattributeoptionsresponse.model_validate(self._handle_response(response))
|
|
1057
957
|
|
|
1058
|
-
def delete_attribute_option(
|
|
1059
|
-
self, orgId: str, userId: str, attributeOptionId: str
|
|
1060
|
-
) -> dict[str, Any]:
|
|
958
|
+
def delete_attribute_option(self, orgId: str, userId: str, attributeOptionId: str) -> dict[str, Any]:
|
|
1061
959
|
"""
|
|
1062
960
|
Deletes a specific attribute option for a user within an organization via the provided path parameters.
|
|
1063
961
|
|
|
@@ -1084,9 +982,7 @@ class CalComV2App(APIApplication):
|
|
|
1084
982
|
url = f"{self.base_url}/v2/organizations/{orgId}/attributes/options/{userId}/{attributeOptionId}"
|
|
1085
983
|
query_params = {}
|
|
1086
984
|
response = self._delete(url, params=query_params)
|
|
1087
|
-
return Setuserattributeoptionresponse.model_validate(
|
|
1088
|
-
self._handle_response(response)
|
|
1089
|
-
)
|
|
985
|
+
return Setuserattributeoptionresponse.model_validate(self._handle_response(response))
|
|
1090
986
|
|
|
1091
987
|
def create_event_type(
|
|
1092
988
|
self,
|
|
@@ -1223,9 +1119,7 @@ class CalComV2App(APIApplication):
|
|
|
1223
1119
|
"hosts": hosts,
|
|
1224
1120
|
"assignAllTeamMembers": assignAllTeamMembers,
|
|
1225
1121
|
}
|
|
1226
|
-
request_body_data = {
|
|
1227
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1228
|
-
}
|
|
1122
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1229
1123
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/event-types"
|
|
1230
1124
|
query_params = {}
|
|
1231
1125
|
response = self._post(
|
|
@@ -1236,9 +1130,7 @@ class CalComV2App(APIApplication):
|
|
|
1236
1130
|
)
|
|
1237
1131
|
return Createeventtyperesponse.model_validate(self._handle_response(response))
|
|
1238
1132
|
|
|
1239
|
-
def list_event_types_by_team_and_org(
|
|
1240
|
-
self, orgId: str, teamId: str, eventSlug: str | None = None
|
|
1241
|
-
) -> dict[str, Any]:
|
|
1133
|
+
def list_event_types_by_team_and_org(self, orgId: str, teamId: str, eventSlug: str | None = None) -> dict[str, Any]:
|
|
1242
1134
|
"""
|
|
1243
1135
|
Retrieves event types for a specific team within an organization using the "GET" method at the "/v2/organizations/{orgId}/teams/{teamId}/event-types" endpoint, optionally filtering by event slug.
|
|
1244
1136
|
|
|
@@ -1263,13 +1155,9 @@ class CalComV2App(APIApplication):
|
|
|
1263
1155
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/event-types"
|
|
1264
1156
|
query_params = {k: v for k, v in [("eventSlug", eventSlug)] if v is not None}
|
|
1265
1157
|
response = self._get(url, params=query_params)
|
|
1266
|
-
return Listeventtypesbyteamandorgresponse.model_validate(
|
|
1267
|
-
self._handle_response(response)
|
|
1268
|
-
)
|
|
1158
|
+
return Listeventtypesbyteamandorgresponse.model_validate(self._handle_response(response))
|
|
1269
1159
|
|
|
1270
|
-
def get_event_types_by_team_id(
|
|
1271
|
-
self, orgId: str, teamId: str, eventTypeId: str
|
|
1272
|
-
) -> dict[str, Any]:
|
|
1160
|
+
def get_event_types_by_team_id(self, orgId: str, teamId: str, eventTypeId: str) -> dict[str, Any]:
|
|
1273
1161
|
"""
|
|
1274
1162
|
Retrieves details about a specific event type within a team of an organization using the provided organization ID, team ID, and event type ID.
|
|
1275
1163
|
|
|
@@ -1296,9 +1184,7 @@ class CalComV2App(APIApplication):
|
|
|
1296
1184
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}"
|
|
1297
1185
|
query_params = {}
|
|
1298
1186
|
response = self._get(url, params=query_params)
|
|
1299
|
-
return Geteventtypesbyteamidresponse.model_validate(
|
|
1300
|
-
self._handle_response(response)
|
|
1301
|
-
)
|
|
1187
|
+
return Geteventtypesbyteamidresponse.model_validate(self._handle_response(response))
|
|
1302
1188
|
|
|
1303
1189
|
def create_phone_call_event(
|
|
1304
1190
|
self,
|
|
@@ -1365,9 +1251,7 @@ class CalComV2App(APIApplication):
|
|
|
1365
1251
|
"beginMessage": beginMessage,
|
|
1366
1252
|
"generalPrompt": generalPrompt,
|
|
1367
1253
|
}
|
|
1368
|
-
request_body_data = {
|
|
1369
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1370
|
-
}
|
|
1254
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1371
1255
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}/create-phone-call"
|
|
1372
1256
|
query_params = {}
|
|
1373
1257
|
response = self._post(
|
|
@@ -1376,13 +1260,9 @@ class CalComV2App(APIApplication):
|
|
|
1376
1260
|
params=query_params,
|
|
1377
1261
|
content_type="application/json",
|
|
1378
1262
|
)
|
|
1379
|
-
return Createphonecalleventresponse.model_validate(
|
|
1380
|
-
self._handle_response(response)
|
|
1381
|
-
)
|
|
1263
|
+
return Createphonecalleventresponse.model_validate(self._handle_response(response))
|
|
1382
1264
|
|
|
1383
|
-
def list_event_types_by_org_id(
|
|
1384
|
-
self, orgId: str, take: float | None = None, skip: float | None = None
|
|
1385
|
-
) -> dict[str, Any]:
|
|
1265
|
+
def list_event_types_by_org_id(self, orgId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
1386
1266
|
"""
|
|
1387
1267
|
Retrieves a paginated list of event types for teams within a specified organization.
|
|
1388
1268
|
|
|
@@ -1403,17 +1283,11 @@ class CalComV2App(APIApplication):
|
|
|
1403
1283
|
if orgId is None:
|
|
1404
1284
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
1405
1285
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/event-types"
|
|
1406
|
-
query_params = {
|
|
1407
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
1408
|
-
}
|
|
1286
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
1409
1287
|
response = self._get(url, params=query_params)
|
|
1410
|
-
return Listeventtypesbyteamandorgresponse.model_validate(
|
|
1411
|
-
self._handle_response(response)
|
|
1412
|
-
)
|
|
1288
|
+
return Listeventtypesbyteamandorgresponse.model_validate(self._handle_response(response))
|
|
1413
1289
|
|
|
1414
|
-
def list_organization_memberships(
|
|
1415
|
-
self, orgId: str, take: float | None = None, skip: float | None = None
|
|
1416
|
-
) -> dict[str, Any]:
|
|
1290
|
+
def list_organization_memberships(self, orgId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
1417
1291
|
"""
|
|
1418
1292
|
Retrieves a list of memberships for an organization identified by the specified `orgId`, allowing pagination through optional `take` and `skip` query parameters.
|
|
1419
1293
|
|
|
@@ -1434,13 +1308,9 @@ class CalComV2App(APIApplication):
|
|
|
1434
1308
|
if orgId is None:
|
|
1435
1309
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
1436
1310
|
url = f"{self.base_url}/v2/organizations/{orgId}/memberships"
|
|
1437
|
-
query_params = {
|
|
1438
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
1439
|
-
}
|
|
1311
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
1440
1312
|
response = self._get(url, params=query_params)
|
|
1441
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
1442
|
-
self._handle_response(response)
|
|
1443
|
-
)
|
|
1313
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
1444
1314
|
|
|
1445
1315
|
def create_membership(
|
|
1446
1316
|
self,
|
|
@@ -1478,9 +1348,7 @@ class CalComV2App(APIApplication):
|
|
|
1478
1348
|
"role": role,
|
|
1479
1349
|
"disableImpersonation": disableImpersonation,
|
|
1480
1350
|
}
|
|
1481
|
-
request_body_data = {
|
|
1482
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1483
|
-
}
|
|
1351
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1484
1352
|
url = f"{self.base_url}/v2/organizations/{orgId}/memberships"
|
|
1485
1353
|
query_params = {}
|
|
1486
1354
|
response = self._post(
|
|
@@ -1489,9 +1357,7 @@ class CalComV2App(APIApplication):
|
|
|
1489
1357
|
params=query_params,
|
|
1490
1358
|
content_type="application/json",
|
|
1491
1359
|
)
|
|
1492
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
1493
|
-
self._handle_response(response)
|
|
1494
|
-
)
|
|
1360
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
1495
1361
|
|
|
1496
1362
|
def get_org_membership_by_id(self, orgId: str, membershipId: str) -> dict[str, Any]:
|
|
1497
1363
|
"""
|
|
@@ -1517,13 +1383,9 @@ class CalComV2App(APIApplication):
|
|
|
1517
1383
|
url = f"{self.base_url}/v2/organizations/{orgId}/memberships/{membershipId}"
|
|
1518
1384
|
query_params = {}
|
|
1519
1385
|
response = self._get(url, params=query_params)
|
|
1520
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
1521
|
-
self._handle_response(response)
|
|
1522
|
-
)
|
|
1386
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
1523
1387
|
|
|
1524
|
-
def delete_org_membership_by_id(
|
|
1525
|
-
self, orgId: str, membershipId: str
|
|
1526
|
-
) -> dict[str, Any]:
|
|
1388
|
+
def delete_org_membership_by_id(self, orgId: str, membershipId: str) -> dict[str, Any]:
|
|
1527
1389
|
"""
|
|
1528
1390
|
Removes a user's membership from the specified organization by deleting the membership record at the given path.
|
|
1529
1391
|
|
|
@@ -1547,9 +1409,7 @@ class CalComV2App(APIApplication):
|
|
|
1547
1409
|
url = f"{self.base_url}/v2/organizations/{orgId}/memberships/{membershipId}"
|
|
1548
1410
|
query_params = {}
|
|
1549
1411
|
response = self._delete(url, params=query_params)
|
|
1550
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
1551
|
-
self._handle_response(response)
|
|
1552
|
-
)
|
|
1412
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
1553
1413
|
|
|
1554
1414
|
def update_membership_by_id_org(
|
|
1555
1415
|
self,
|
|
@@ -1588,19 +1448,13 @@ class CalComV2App(APIApplication):
|
|
|
1588
1448
|
"role": role,
|
|
1589
1449
|
"disableImpersonation": disableImpersonation,
|
|
1590
1450
|
}
|
|
1591
|
-
request_body_data = {
|
|
1592
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1593
|
-
}
|
|
1451
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1594
1452
|
url = f"{self.base_url}/v2/organizations/{orgId}/memberships/{membershipId}"
|
|
1595
1453
|
query_params = {}
|
|
1596
1454
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
1597
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
1598
|
-
self._handle_response(response)
|
|
1599
|
-
)
|
|
1455
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
1600
1456
|
|
|
1601
|
-
def get_organization_schedules(
|
|
1602
|
-
self, orgId: str, take: float | None = None, skip: float | None = None
|
|
1603
|
-
) -> dict[str, Any]:
|
|
1457
|
+
def get_organization_schedules(self, orgId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
1604
1458
|
"""
|
|
1605
1459
|
Retrieves a list of schedules for the specified organization, using pagination parameters to limit results.
|
|
1606
1460
|
|
|
@@ -1621,13 +1475,9 @@ class CalComV2App(APIApplication):
|
|
|
1621
1475
|
if orgId is None:
|
|
1622
1476
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
1623
1477
|
url = f"{self.base_url}/v2/organizations/{orgId}/schedules"
|
|
1624
|
-
query_params = {
|
|
1625
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
1626
|
-
}
|
|
1478
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
1627
1479
|
response = self._get(url, params=query_params)
|
|
1628
|
-
return Getorganizationschedulesresponse.model_validate(
|
|
1629
|
-
self._handle_response(response)
|
|
1630
|
-
)
|
|
1480
|
+
return Getorganizationschedulesresponse.model_validate(self._handle_response(response))
|
|
1631
1481
|
|
|
1632
1482
|
def create_user_schedule(
|
|
1633
1483
|
self,
|
|
@@ -1673,9 +1523,7 @@ class CalComV2App(APIApplication):
|
|
|
1673
1523
|
"isDefault": isDefault,
|
|
1674
1524
|
"overrides": overrides,
|
|
1675
1525
|
}
|
|
1676
|
-
request_body_data = {
|
|
1677
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1678
|
-
}
|
|
1526
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1679
1527
|
url = f"{self.base_url}/v2/organizations/{orgId}/users/{userId}/schedules"
|
|
1680
1528
|
query_params = {}
|
|
1681
1529
|
response = self._post(
|
|
@@ -1684,9 +1532,7 @@ class CalComV2App(APIApplication):
|
|
|
1684
1532
|
params=query_params,
|
|
1685
1533
|
content_type="application/json",
|
|
1686
1534
|
)
|
|
1687
|
-
return Createuserscheduleresponse.model_validate(
|
|
1688
|
-
self._handle_response(response)
|
|
1689
|
-
)
|
|
1535
|
+
return Createuserscheduleresponse.model_validate(self._handle_response(response))
|
|
1690
1536
|
|
|
1691
1537
|
def get_user_schedule(self, orgId: str, userId: str) -> dict[str, Any]:
|
|
1692
1538
|
"""
|
|
@@ -1712,13 +1558,9 @@ class CalComV2App(APIApplication):
|
|
|
1712
1558
|
url = f"{self.base_url}/v2/organizations/{orgId}/users/{userId}/schedules"
|
|
1713
1559
|
query_params = {}
|
|
1714
1560
|
response = self._get(url, params=query_params)
|
|
1715
|
-
return Getorganizationschedulesresponse.model_validate(
|
|
1716
|
-
self._handle_response(response)
|
|
1717
|
-
)
|
|
1561
|
+
return Getorganizationschedulesresponse.model_validate(self._handle_response(response))
|
|
1718
1562
|
|
|
1719
|
-
def get_schedule_detail(
|
|
1720
|
-
self, orgId: str, userId: str, scheduleId: str
|
|
1721
|
-
) -> dict[str, Any]:
|
|
1563
|
+
def get_schedule_detail(self, orgId: str, userId: str, scheduleId: str) -> dict[str, Any]:
|
|
1722
1564
|
"""
|
|
1723
1565
|
Retrieves the specified schedule for a user within an organization.
|
|
1724
1566
|
|
|
@@ -1794,19 +1636,13 @@ class CalComV2App(APIApplication):
|
|
|
1794
1636
|
"isDefault": isDefault,
|
|
1795
1637
|
"overrides": overrides,
|
|
1796
1638
|
}
|
|
1797
|
-
request_body_data = {
|
|
1798
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1799
|
-
}
|
|
1639
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1800
1640
|
url = f"{self.base_url}/v2/organizations/{orgId}/users/{userId}/schedules/{scheduleId}"
|
|
1801
1641
|
query_params = {}
|
|
1802
1642
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
1803
|
-
return Updateuserschedulebyidresponse.model_validate(
|
|
1804
|
-
self._handle_response(response)
|
|
1805
|
-
)
|
|
1643
|
+
return Updateuserschedulebyidresponse.model_validate(self._handle_response(response))
|
|
1806
1644
|
|
|
1807
|
-
def delete_user_schedule_by_id(
|
|
1808
|
-
self, orgId: str, userId: str, scheduleId: str
|
|
1809
|
-
) -> dict[str, Any]:
|
|
1645
|
+
def delete_user_schedule_by_id(self, orgId: str, userId: str, scheduleId: str) -> dict[str, Any]:
|
|
1810
1646
|
"""
|
|
1811
1647
|
Deletes a specific schedule for a user within an organization and returns a success status.
|
|
1812
1648
|
|
|
@@ -1833,13 +1669,9 @@ class CalComV2App(APIApplication):
|
|
|
1833
1669
|
url = f"{self.base_url}/v2/organizations/{orgId}/users/{userId}/schedules/{scheduleId}"
|
|
1834
1670
|
query_params = {}
|
|
1835
1671
|
response = self._delete(url, params=query_params)
|
|
1836
|
-
return Getprovideraccesstokenresponse.model_validate(
|
|
1837
|
-
self._handle_response(response)
|
|
1838
|
-
)
|
|
1672
|
+
return Getprovideraccesstokenresponse.model_validate(self._handle_response(response))
|
|
1839
1673
|
|
|
1840
|
-
def get_organization_teams(
|
|
1841
|
-
self, orgId: str, take: float | None = None, skip: float | None = None
|
|
1842
|
-
) -> dict[str, Any]:
|
|
1674
|
+
def get_organization_teams(self, orgId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
1843
1675
|
"""
|
|
1844
1676
|
Retrieves a list of teams for a specified organization using the provided orgId, with optional pagination control via take and skip parameters.
|
|
1845
1677
|
|
|
@@ -1860,13 +1692,9 @@ class CalComV2App(APIApplication):
|
|
|
1860
1692
|
if orgId is None:
|
|
1861
1693
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
1862
1694
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams"
|
|
1863
|
-
query_params = {
|
|
1864
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
1865
|
-
}
|
|
1695
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
1866
1696
|
response = self._get(url, params=query_params)
|
|
1867
|
-
return Getorganizationteamsresponse.model_validate(
|
|
1868
|
-
self._handle_response(response)
|
|
1869
|
-
)
|
|
1697
|
+
return Getorganizationteamsresponse.model_validate(self._handle_response(response))
|
|
1870
1698
|
|
|
1871
1699
|
def create_team_in_organization(
|
|
1872
1700
|
self,
|
|
@@ -1949,9 +1777,7 @@ class CalComV2App(APIApplication):
|
|
|
1949
1777
|
"weekStart": weekStart,
|
|
1950
1778
|
"autoAcceptCreator": autoAcceptCreator,
|
|
1951
1779
|
}
|
|
1952
|
-
request_body_data = {
|
|
1953
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
1954
|
-
}
|
|
1780
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
1955
1781
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams"
|
|
1956
1782
|
query_params = {}
|
|
1957
1783
|
response = self._post(
|
|
@@ -1960,13 +1786,9 @@ class CalComV2App(APIApplication):
|
|
|
1960
1786
|
params=query_params,
|
|
1961
1787
|
content_type="application/json",
|
|
1962
1788
|
)
|
|
1963
|
-
return Createteaminorganizationresponse.model_validate(
|
|
1964
|
-
self._handle_response(response)
|
|
1965
|
-
)
|
|
1789
|
+
return Createteaminorganizationresponse.model_validate(self._handle_response(response))
|
|
1966
1790
|
|
|
1967
|
-
def get_organization_team_me(
|
|
1968
|
-
self, orgId: str, take: float | None = None, skip: float | None = None
|
|
1969
|
-
) -> dict[str, Any]:
|
|
1791
|
+
def get_organization_team_me(self, orgId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
1970
1792
|
"""
|
|
1971
1793
|
Retrieves the teams for the current user within a specified organization using the "GET" method, optionally allowing pagination through query parameters.
|
|
1972
1794
|
|
|
@@ -1987,13 +1809,9 @@ class CalComV2App(APIApplication):
|
|
|
1987
1809
|
if orgId is None:
|
|
1988
1810
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
1989
1811
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/me"
|
|
1990
|
-
query_params = {
|
|
1991
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
1992
|
-
}
|
|
1812
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
1993
1813
|
response = self._get(url, params=query_params)
|
|
1994
|
-
return Getorganizationteamsresponse.model_validate(
|
|
1995
|
-
self._handle_response(response)
|
|
1996
|
-
)
|
|
1814
|
+
return Getorganizationteamsresponse.model_validate(self._handle_response(response))
|
|
1997
1815
|
|
|
1998
1816
|
def get_organization_team_by_id(self, orgId: str, teamId: str) -> dict[str, Any]:
|
|
1999
1817
|
"""
|
|
@@ -2019,9 +1837,7 @@ class CalComV2App(APIApplication):
|
|
|
2019
1837
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}"
|
|
2020
1838
|
query_params = {}
|
|
2021
1839
|
response = self._get(url, params=query_params)
|
|
2022
|
-
return Createteaminorganizationresponse.model_validate(
|
|
2023
|
-
self._handle_response(response)
|
|
2024
|
-
)
|
|
1840
|
+
return Createteaminorganizationresponse.model_validate(self._handle_response(response))
|
|
2025
1841
|
|
|
2026
1842
|
def delete_team_by_id(self, orgId: str, teamId: str) -> dict[str, Any]:
|
|
2027
1843
|
"""
|
|
@@ -2047,9 +1863,7 @@ class CalComV2App(APIApplication):
|
|
|
2047
1863
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}"
|
|
2048
1864
|
query_params = {}
|
|
2049
1865
|
response = self._delete(url, params=query_params)
|
|
2050
|
-
return Createteaminorganizationresponse.model_validate(
|
|
2051
|
-
self._handle_response(response)
|
|
2052
|
-
)
|
|
1866
|
+
return Createteaminorganizationresponse.model_validate(self._handle_response(response))
|
|
2053
1867
|
|
|
2054
1868
|
def update_team(
|
|
2055
1869
|
self,
|
|
@@ -2139,15 +1953,11 @@ class CalComV2App(APIApplication):
|
|
|
2139
1953
|
"bookingLimits": bookingLimits,
|
|
2140
1954
|
"includeManagedEventsInLimits": includeManagedEventsInLimits,
|
|
2141
1955
|
}
|
|
2142
|
-
request_body_data = {
|
|
2143
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2144
|
-
}
|
|
1956
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2145
1957
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}"
|
|
2146
1958
|
query_params = {}
|
|
2147
1959
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
2148
|
-
return Createteaminorganizationresponse.model_validate(
|
|
2149
|
-
self._handle_response(response)
|
|
2150
|
-
)
|
|
1960
|
+
return Createteaminorganizationresponse.model_validate(self._handle_response(response))
|
|
2151
1961
|
|
|
2152
1962
|
def list_team_memberships(
|
|
2153
1963
|
self,
|
|
@@ -2179,13 +1989,9 @@ class CalComV2App(APIApplication):
|
|
|
2179
1989
|
if teamId is None:
|
|
2180
1990
|
raise ValueError("Missing required parameter 'teamId'.")
|
|
2181
1991
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/memberships"
|
|
2182
|
-
query_params = {
|
|
2183
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
2184
|
-
}
|
|
1992
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
2185
1993
|
response = self._get(url, params=query_params)
|
|
2186
|
-
return Listteammembershipsresponse.model_validate(
|
|
2187
|
-
self._handle_response(response)
|
|
2188
|
-
)
|
|
1994
|
+
return Listteammembershipsresponse.model_validate(self._handle_response(response))
|
|
2189
1995
|
|
|
2190
1996
|
def create_team_membership(
|
|
2191
1997
|
self,
|
|
@@ -2227,9 +2033,7 @@ class CalComV2App(APIApplication):
|
|
|
2227
2033
|
"role": role,
|
|
2228
2034
|
"disableImpersonation": disableImpersonation,
|
|
2229
2035
|
}
|
|
2230
|
-
request_body_data = {
|
|
2231
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2232
|
-
}
|
|
2036
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2233
2037
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/memberships"
|
|
2234
2038
|
query_params = {}
|
|
2235
2039
|
response = self._post(
|
|
@@ -2238,13 +2042,9 @@ class CalComV2App(APIApplication):
|
|
|
2238
2042
|
params=query_params,
|
|
2239
2043
|
content_type="application/json",
|
|
2240
2044
|
)
|
|
2241
|
-
return Createteammembershipresponse.model_validate(
|
|
2242
|
-
self._handle_response(response)
|
|
2243
|
-
)
|
|
2045
|
+
return Createteammembershipresponse.model_validate(self._handle_response(response))
|
|
2244
2046
|
|
|
2245
|
-
def get_membership_details(
|
|
2246
|
-
self, orgId: str, teamId: str, membershipId: str
|
|
2247
|
-
) -> dict[str, Any]:
|
|
2047
|
+
def get_membership_details(self, orgId: str, teamId: str, membershipId: str) -> dict[str, Any]:
|
|
2248
2048
|
"""
|
|
2249
2049
|
Retrieves a specific membership record for a team within an organization, identified by membership ID, team ID, and organization ID.
|
|
2250
2050
|
|
|
@@ -2271,13 +2071,9 @@ class CalComV2App(APIApplication):
|
|
|
2271
2071
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/memberships/{membershipId}"
|
|
2272
2072
|
query_params = {}
|
|
2273
2073
|
response = self._get(url, params=query_params)
|
|
2274
|
-
return Createteammembershipresponse.model_validate(
|
|
2275
|
-
self._handle_response(response)
|
|
2276
|
-
)
|
|
2074
|
+
return Createteammembershipresponse.model_validate(self._handle_response(response))
|
|
2277
2075
|
|
|
2278
|
-
def delete_org_team_membership_by_id(
|
|
2279
|
-
self, orgId: str, teamId: str, membershipId: str
|
|
2280
|
-
) -> dict[str, Any]:
|
|
2076
|
+
def delete_org_team_membership_by_id(self, orgId: str, teamId: str, membershipId: str) -> dict[str, Any]:
|
|
2281
2077
|
"""
|
|
2282
2078
|
Removes a user's team membership in an organization using the specified organization, team, and membership identifiers.
|
|
2283
2079
|
|
|
@@ -2304,9 +2100,7 @@ class CalComV2App(APIApplication):
|
|
|
2304
2100
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/memberships/{membershipId}"
|
|
2305
2101
|
query_params = {}
|
|
2306
2102
|
response = self._delete(url, params=query_params)
|
|
2307
|
-
return Createteammembershipresponse.model_validate(
|
|
2308
|
-
self._handle_response(response)
|
|
2309
|
-
)
|
|
2103
|
+
return Createteammembershipresponse.model_validate(self._handle_response(response))
|
|
2310
2104
|
|
|
2311
2105
|
def patch_team_membership_by_id(
|
|
2312
2106
|
self,
|
|
@@ -2349,19 +2143,13 @@ class CalComV2App(APIApplication):
|
|
|
2349
2143
|
"role": role,
|
|
2350
2144
|
"disableImpersonation": disableImpersonation,
|
|
2351
2145
|
}
|
|
2352
|
-
request_body_data = {
|
|
2353
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2354
|
-
}
|
|
2146
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2355
2147
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/memberships/{membershipId}"
|
|
2356
2148
|
query_params = {}
|
|
2357
2149
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
2358
|
-
return Createteammembershipresponse.model_validate(
|
|
2359
|
-
self._handle_response(response)
|
|
2360
|
-
)
|
|
2150
|
+
return Createteammembershipresponse.model_validate(self._handle_response(response))
|
|
2361
2151
|
|
|
2362
|
-
def get_schedule_by_user(
|
|
2363
|
-
self, orgId: str, teamId: str, userId: str
|
|
2364
|
-
) -> dict[str, Any]:
|
|
2152
|
+
def get_schedule_by_user(self, orgId: str, teamId: str, userId: str) -> dict[str, Any]:
|
|
2365
2153
|
"""
|
|
2366
2154
|
Retrieves the schedule details for a specific user within a designated team and organization.
|
|
2367
2155
|
|
|
@@ -2388,9 +2176,7 @@ class CalComV2App(APIApplication):
|
|
|
2388
2176
|
url = f"{self.base_url}/v2/organizations/{orgId}/teams/{teamId}/users/{userId}/schedules"
|
|
2389
2177
|
query_params = {}
|
|
2390
2178
|
response = self._get(url, params=query_params)
|
|
2391
|
-
return Getorganizationschedulesresponse.model_validate(
|
|
2392
|
-
self._handle_response(response)
|
|
2393
|
-
)
|
|
2179
|
+
return Getorganizationschedulesresponse.model_validate(self._handle_response(response))
|
|
2394
2180
|
|
|
2395
2181
|
def list_org_users(
|
|
2396
2182
|
self,
|
|
@@ -2420,11 +2206,7 @@ class CalComV2App(APIApplication):
|
|
|
2420
2206
|
if orgId is None:
|
|
2421
2207
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
2422
2208
|
url = f"{self.base_url}/v2/organizations/{orgId}/users"
|
|
2423
|
-
query_params = {
|
|
2424
|
-
k: v
|
|
2425
|
-
for k, v in [("take", take), ("skip", skip), ("emails", emails)]
|
|
2426
|
-
if v is not None
|
|
2427
|
-
}
|
|
2209
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip), ("emails", emails)] if v is not None}
|
|
2428
2210
|
response = self._get(url, params=query_params)
|
|
2429
2211
|
return Listorgusersresponse.model_validate(self._handle_response(response))
|
|
2430
2212
|
|
|
@@ -2497,9 +2279,7 @@ class CalComV2App(APIApplication):
|
|
|
2497
2279
|
"organizationRole": organizationRole,
|
|
2498
2280
|
"autoAccept": autoAccept,
|
|
2499
2281
|
}
|
|
2500
|
-
request_body_data = {
|
|
2501
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2502
|
-
}
|
|
2282
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2503
2283
|
url = f"{self.base_url}/v2/organizations/{orgId}/users"
|
|
2504
2284
|
query_params = {}
|
|
2505
2285
|
response = self._post(
|
|
@@ -2536,9 +2316,7 @@ class CalComV2App(APIApplication):
|
|
|
2536
2316
|
response = self._delete(url, params=query_params)
|
|
2537
2317
|
return Createorguserresponse.model_validate(self._handle_response(response))
|
|
2538
2318
|
|
|
2539
|
-
def get_org_webhooks(
|
|
2540
|
-
self, orgId: str, take: float | None = None, skip: float | None = None
|
|
2541
|
-
) -> dict[str, Any]:
|
|
2319
|
+
def get_org_webhooks(self, orgId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
2542
2320
|
"""
|
|
2543
2321
|
Retrieves a list of webhooks for the specified organization, supporting pagination through skip and take parameters.
|
|
2544
2322
|
|
|
@@ -2559,9 +2337,7 @@ class CalComV2App(APIApplication):
|
|
|
2559
2337
|
if orgId is None:
|
|
2560
2338
|
raise ValueError("Missing required parameter 'orgId'.")
|
|
2561
2339
|
url = f"{self.base_url}/v2/organizations/{orgId}/webhooks"
|
|
2562
|
-
query_params = {
|
|
2563
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
2564
|
-
}
|
|
2340
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
2565
2341
|
response = self._get(url, params=query_params)
|
|
2566
2342
|
return Getorgwebhooksresponse.model_validate(self._handle_response(response))
|
|
2567
2343
|
|
|
@@ -2604,9 +2380,7 @@ class CalComV2App(APIApplication):
|
|
|
2604
2380
|
"triggers": triggers,
|
|
2605
2381
|
"secret": secret,
|
|
2606
2382
|
}
|
|
2607
|
-
request_body_data = {
|
|
2608
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2609
|
-
}
|
|
2383
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2610
2384
|
url = f"{self.base_url}/v2/organizations/{orgId}/webhooks"
|
|
2611
2385
|
query_params = {}
|
|
2612
2386
|
response = self._post(
|
|
@@ -2617,9 +2391,7 @@ class CalComV2App(APIApplication):
|
|
|
2617
2391
|
)
|
|
2618
2392
|
return Createwebhookresponse.model_validate(self._handle_response(response))
|
|
2619
2393
|
|
|
2620
|
-
def get_organization_webhook_by_id(
|
|
2621
|
-
self, orgId: str, webhookId: str
|
|
2622
|
-
) -> dict[str, Any]:
|
|
2394
|
+
def get_organization_webhook_by_id(self, orgId: str, webhookId: str) -> dict[str, Any]:
|
|
2623
2395
|
"""
|
|
2624
2396
|
Retrieves information about a specific webhook identified by `webhookId` for an organization specified by `orgId`.
|
|
2625
2397
|
|
|
@@ -2645,9 +2417,7 @@ class CalComV2App(APIApplication):
|
|
|
2645
2417
|
response = self._get(url, params=query_params)
|
|
2646
2418
|
return Createwebhookresponse.model_validate(self._handle_response(response))
|
|
2647
2419
|
|
|
2648
|
-
def delete_organization_webhook_by_id(
|
|
2649
|
-
self, orgId: str, webhookId: str
|
|
2650
|
-
) -> dict[str, Any]:
|
|
2420
|
+
def delete_organization_webhook_by_id(self, orgId: str, webhookId: str) -> dict[str, Any]:
|
|
2651
2421
|
"""
|
|
2652
2422
|
Deletes a specified webhook from an organization using the provided organization and webhook identifiers.
|
|
2653
2423
|
|
|
@@ -2716,9 +2486,7 @@ class CalComV2App(APIApplication):
|
|
|
2716
2486
|
"triggers": triggers,
|
|
2717
2487
|
"secret": secret,
|
|
2718
2488
|
}
|
|
2719
|
-
request_body_data = {
|
|
2720
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2721
|
-
}
|
|
2489
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2722
2490
|
url = f"{self.base_url}/v2/organizations/{orgId}/webhooks/{webhookId}"
|
|
2723
2491
|
query_params = {}
|
|
2724
2492
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
@@ -2843,9 +2611,7 @@ class CalComV2App(APIApplication):
|
|
|
2843
2611
|
params=query_params,
|
|
2844
2612
|
content_type="application/json",
|
|
2845
2613
|
)
|
|
2846
|
-
return Reschedulebookingbyuidresponse.model_validate(
|
|
2847
|
-
self._handle_response(response)
|
|
2848
|
-
)
|
|
2614
|
+
return Reschedulebookingbyuidresponse.model_validate(self._handle_response(response))
|
|
2849
2615
|
|
|
2850
2616
|
def cancel_booking_by_uid(self, bookingUid: str) -> dict[str, Any]:
|
|
2851
2617
|
"""
|
|
@@ -2874,9 +2640,7 @@ class CalComV2App(APIApplication):
|
|
|
2874
2640
|
params=query_params,
|
|
2875
2641
|
content_type="application/json",
|
|
2876
2642
|
)
|
|
2877
|
-
return Cancelbookingbyuidresponse.model_validate(
|
|
2878
|
-
self._handle_response(response)
|
|
2879
|
-
)
|
|
2643
|
+
return Cancelbookingbyuidresponse.model_validate(self._handle_response(response))
|
|
2880
2644
|
|
|
2881
2645
|
def mark_booking_absent_by_uid(
|
|
2882
2646
|
self,
|
|
@@ -2908,9 +2672,7 @@ class CalComV2App(APIApplication):
|
|
|
2908
2672
|
"host": host,
|
|
2909
2673
|
"attendees": attendees,
|
|
2910
2674
|
}
|
|
2911
|
-
request_body_data = {
|
|
2912
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2913
|
-
}
|
|
2675
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2914
2676
|
url = f"{self.base_url}/v2/bookings/{bookingUid}/mark-absent"
|
|
2915
2677
|
query_params = {}
|
|
2916
2678
|
response = self._post(
|
|
@@ -2919,9 +2681,7 @@ class CalComV2App(APIApplication):
|
|
|
2919
2681
|
params=query_params,
|
|
2920
2682
|
content_type="application/json",
|
|
2921
2683
|
)
|
|
2922
|
-
return Markbookingabsentbyuidresponse.model_validate(
|
|
2923
|
-
self._handle_response(response)
|
|
2924
|
-
)
|
|
2684
|
+
return Markbookingabsentbyuidresponse.model_validate(self._handle_response(response))
|
|
2925
2685
|
|
|
2926
2686
|
def reassign_booking(self, bookingUid: str) -> dict[str, Any]:
|
|
2927
2687
|
"""
|
|
@@ -2952,9 +2712,7 @@ class CalComV2App(APIApplication):
|
|
|
2952
2712
|
)
|
|
2953
2713
|
return Reassignbookingresponse.model_validate(self._handle_response(response))
|
|
2954
2714
|
|
|
2955
|
-
def reassign_booking_to_user(
|
|
2956
|
-
self, bookingUid: str, userId: str, reason: str | None = None
|
|
2957
|
-
) -> dict[str, Any]:
|
|
2715
|
+
def reassign_booking_to_user(self, bookingUid: str, userId: str, reason: str | None = None) -> dict[str, Any]:
|
|
2958
2716
|
"""
|
|
2959
2717
|
Reassigns a booking to a specific user specified by the `userId` using a POST request, requiring authorization and providing a reason for the reassignment.
|
|
2960
2718
|
|
|
@@ -2980,9 +2738,7 @@ class CalComV2App(APIApplication):
|
|
|
2980
2738
|
request_body_data = {
|
|
2981
2739
|
"reason": reason,
|
|
2982
2740
|
}
|
|
2983
|
-
request_body_data = {
|
|
2984
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
2985
|
-
}
|
|
2741
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
2986
2742
|
url = f"{self.base_url}/v2/bookings/{bookingUid}/reassign/{userId}"
|
|
2987
2743
|
query_params = {}
|
|
2988
2744
|
response = self._post(
|
|
@@ -3022,9 +2778,7 @@ class CalComV2App(APIApplication):
|
|
|
3022
2778
|
)
|
|
3023
2779
|
return Getbookingbyuidresponse.model_validate(self._handle_response(response))
|
|
3024
2780
|
|
|
3025
|
-
def decline_booking(
|
|
3026
|
-
self, bookingUid: str, reason: str | None = None
|
|
3027
|
-
) -> dict[str, Any]:
|
|
2781
|
+
def decline_booking(self, bookingUid: str, reason: str | None = None) -> dict[str, Any]:
|
|
3028
2782
|
"""
|
|
3029
2783
|
Declines a specific booking identified by the bookingUid using the Booking.com API and returns a success status upon completion.
|
|
3030
2784
|
|
|
@@ -3047,9 +2801,7 @@ class CalComV2App(APIApplication):
|
|
|
3047
2801
|
request_body_data = {
|
|
3048
2802
|
"reason": reason,
|
|
3049
2803
|
}
|
|
3050
|
-
request_body_data = {
|
|
3051
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3052
|
-
}
|
|
2804
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3053
2805
|
url = f"{self.base_url}/v2/bookings/{bookingUid}/decline"
|
|
3054
2806
|
query_params = {}
|
|
3055
2807
|
response = self._post(
|
|
@@ -3060,9 +2812,7 @@ class CalComV2App(APIApplication):
|
|
|
3060
2812
|
)
|
|
3061
2813
|
return Getbookingbyuidresponse.model_validate(self._handle_response(response))
|
|
3062
2814
|
|
|
3063
|
-
def save_ics_feed_post(
|
|
3064
|
-
self, urls: list[str], readOnly: bool | None = None
|
|
3065
|
-
) -> dict[str, Any]:
|
|
2815
|
+
def save_ics_feed_post(self, urls: list[str], readOnly: bool | None = None) -> dict[str, Any]:
|
|
3066
2816
|
"""
|
|
3067
2817
|
Saves an ICS calendar feed configuration and returns the created resource.
|
|
3068
2818
|
|
|
@@ -3084,9 +2834,7 @@ class CalComV2App(APIApplication):
|
|
|
3084
2834
|
"urls": urls,
|
|
3085
2835
|
"readOnly": readOnly,
|
|
3086
2836
|
}
|
|
3087
|
-
request_body_data = {
|
|
3088
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3089
|
-
}
|
|
2837
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3090
2838
|
url = f"{self.base_url}/v2/calendars/ics-feed/save"
|
|
3091
2839
|
query_params = {}
|
|
3092
2840
|
response = self._post(
|
|
@@ -3155,9 +2903,7 @@ class CalComV2App(APIApplication):
|
|
|
3155
2903
|
if v is not None
|
|
3156
2904
|
}
|
|
3157
2905
|
response = self._get(url, params=query_params)
|
|
3158
|
-
return Getcalendarsbusytimesresponse.model_validate(
|
|
3159
|
-
self._handle_response(response)
|
|
3160
|
-
)
|
|
2906
|
+
return Getcalendarsbusytimesresponse.model_validate(self._handle_response(response))
|
|
3161
2907
|
|
|
3162
2908
|
def get_calendars(self) -> dict[str, Any]:
|
|
3163
2909
|
"""
|
|
@@ -3221,9 +2967,7 @@ class CalComV2App(APIApplication):
|
|
|
3221
2967
|
if calendar is None:
|
|
3222
2968
|
raise ValueError("Missing required parameter 'calendar'.")
|
|
3223
2969
|
url = f"{self.base_url}/v2/calendars/{calendar}/save"
|
|
3224
|
-
query_params = {
|
|
3225
|
-
k: v for k, v in [("state", state), ("code", code)] if v is not None
|
|
3226
|
-
}
|
|
2970
|
+
query_params = {k: v for k, v in [("state", state), ("code", code)] if v is not None}
|
|
3227
2971
|
response = self._get(url, params=query_params)
|
|
3228
2972
|
return self._handle_response(response)
|
|
3229
2973
|
|
|
@@ -3302,9 +3046,7 @@ class CalComV2App(APIApplication):
|
|
|
3302
3046
|
request_body_data = {
|
|
3303
3047
|
"id": id,
|
|
3304
3048
|
}
|
|
3305
|
-
request_body_data = {
|
|
3306
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3307
|
-
}
|
|
3049
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3308
3050
|
url = f"{self.base_url}/v2/calendars/{calendar}/disconnect"
|
|
3309
3051
|
query_params = {}
|
|
3310
3052
|
response = self._post(
|
|
@@ -3313,9 +3055,7 @@ class CalComV2App(APIApplication):
|
|
|
3313
3055
|
params=query_params,
|
|
3314
3056
|
content_type="application/json",
|
|
3315
3057
|
)
|
|
3316
|
-
return Disconnectcalendarresponse.model_validate(
|
|
3317
|
-
self._handle_response(response)
|
|
3318
|
-
)
|
|
3058
|
+
return Disconnectcalendarresponse.model_validate(self._handle_response(response))
|
|
3319
3059
|
|
|
3320
3060
|
def conferencing_controller_connect(self, app: str) -> dict[str, Any]:
|
|
3321
3061
|
"""
|
|
@@ -3344,13 +3084,9 @@ class CalComV2App(APIApplication):
|
|
|
3344
3084
|
params=query_params,
|
|
3345
3085
|
content_type="application/json",
|
|
3346
3086
|
)
|
|
3347
|
-
return ConferencingcontrollerConnectresponse.model_validate(
|
|
3348
|
-
self._handle_response(response)
|
|
3349
|
-
)
|
|
3087
|
+
return ConferencingcontrollerConnectresponse.model_validate(self._handle_response(response))
|
|
3350
3088
|
|
|
3351
|
-
def get_auth_url(
|
|
3352
|
-
self, app: str, returnTo: str, onErrorReturnTo: str
|
|
3353
|
-
) -> dict[str, Any]:
|
|
3089
|
+
def get_auth_url(self, app: str, returnTo: str, onErrorReturnTo: str) -> dict[str, Any]:
|
|
3354
3090
|
"""
|
|
3355
3091
|
Generates an authorization URL for OAuth in a conferencing application using the "GET" method at the "/v2/conferencing/{app}/oauth/auth-url" path, accepting parameters such as the application name and return URLs.
|
|
3356
3092
|
|
|
@@ -3371,15 +3107,9 @@ class CalComV2App(APIApplication):
|
|
|
3371
3107
|
if app is None:
|
|
3372
3108
|
raise ValueError("Missing required parameter 'app'.")
|
|
3373
3109
|
url = f"{self.base_url}/v2/conferencing/{app}/oauth/auth-url"
|
|
3374
|
-
query_params = {
|
|
3375
|
-
k: v
|
|
3376
|
-
for k, v in [("returnTo", returnTo), ("onErrorReturnTo", onErrorReturnTo)]
|
|
3377
|
-
if v is not None
|
|
3378
|
-
}
|
|
3110
|
+
query_params = {k: v for k, v in [("returnTo", returnTo), ("onErrorReturnTo", onErrorReturnTo)] if v is not None}
|
|
3379
3111
|
response = self._get(url, params=query_params)
|
|
3380
|
-
return Getprovideraccesstokenresponse.model_validate(
|
|
3381
|
-
self._handle_response(response)
|
|
3382
|
-
)
|
|
3112
|
+
return Getprovideraccesstokenresponse.model_validate(self._handle_response(response))
|
|
3383
3113
|
|
|
3384
3114
|
def conferencing_controller_save(self, app: str, state: str, code: str) -> Any:
|
|
3385
3115
|
"""
|
|
@@ -3402,9 +3132,7 @@ class CalComV2App(APIApplication):
|
|
|
3402
3132
|
if app is None:
|
|
3403
3133
|
raise ValueError("Missing required parameter 'app'.")
|
|
3404
3134
|
url = f"{self.base_url}/v2/conferencing/{app}/oauth/callback"
|
|
3405
|
-
query_params = {
|
|
3406
|
-
k: v for k, v in [("state", state), ("code", code)] if v is not None
|
|
3407
|
-
}
|
|
3135
|
+
query_params = {k: v for k, v in [("state", state), ("code", code)] if v is not None}
|
|
3408
3136
|
response = self._get(url, params=query_params)
|
|
3409
3137
|
return self._handle_response(response)
|
|
3410
3138
|
|
|
@@ -3453,9 +3181,7 @@ class CalComV2App(APIApplication):
|
|
|
3453
3181
|
params=query_params,
|
|
3454
3182
|
content_type="application/json",
|
|
3455
3183
|
)
|
|
3456
|
-
return Getprovideraccesstokenresponse.model_validate(
|
|
3457
|
-
self._handle_response(response)
|
|
3458
|
-
)
|
|
3184
|
+
return Getprovideraccesstokenresponse.model_validate(self._handle_response(response))
|
|
3459
3185
|
|
|
3460
3186
|
def get_default_conferencing(self) -> dict[str, Any]:
|
|
3461
3187
|
"""
|
|
@@ -3473,9 +3199,7 @@ class CalComV2App(APIApplication):
|
|
|
3473
3199
|
url = f"{self.base_url}/v2/conferencing/default"
|
|
3474
3200
|
query_params = {}
|
|
3475
3201
|
response = self._get(url, params=query_params)
|
|
3476
|
-
return Getdefaultconferencingresponse.model_validate(
|
|
3477
|
-
self._handle_response(response)
|
|
3478
|
-
)
|
|
3202
|
+
return Getdefaultconferencingresponse.model_validate(self._handle_response(response))
|
|
3479
3203
|
|
|
3480
3204
|
def disconnect_conferencing_app(self, app: str) -> dict[str, Any]:
|
|
3481
3205
|
"""
|
|
@@ -3498,13 +3222,9 @@ class CalComV2App(APIApplication):
|
|
|
3498
3222
|
url = f"{self.base_url}/v2/conferencing/{app}/disconnect"
|
|
3499
3223
|
query_params = {}
|
|
3500
3224
|
response = self._delete(url, params=query_params)
|
|
3501
|
-
return Getprovideraccesstokenresponse.model_validate(
|
|
3502
|
-
self._handle_response(response)
|
|
3503
|
-
)
|
|
3225
|
+
return Getprovideraccesstokenresponse.model_validate(self._handle_response(response))
|
|
3504
3226
|
|
|
3505
|
-
def update_destination_calendars(
|
|
3506
|
-
self, integration: str, externalId: str
|
|
3507
|
-
) -> dict[str, Any]:
|
|
3227
|
+
def update_destination_calendars(self, integration: str, externalId: str) -> dict[str, Any]:
|
|
3508
3228
|
"""
|
|
3509
3229
|
Updates a destination calendar at the specified path "/v2/destination-calendars" using the PUT method.
|
|
3510
3230
|
|
|
@@ -3526,9 +3246,7 @@ class CalComV2App(APIApplication):
|
|
|
3526
3246
|
"integration": integration,
|
|
3527
3247
|
"externalId": externalId,
|
|
3528
3248
|
}
|
|
3529
|
-
request_body_data = {
|
|
3530
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3531
|
-
}
|
|
3249
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3532
3250
|
url = f"{self.base_url}/v2/destination-calendars"
|
|
3533
3251
|
query_params = {}
|
|
3534
3252
|
response = self._put(
|
|
@@ -3537,9 +3255,7 @@ class CalComV2App(APIApplication):
|
|
|
3537
3255
|
params=query_params,
|
|
3538
3256
|
content_type="application/json",
|
|
3539
3257
|
)
|
|
3540
|
-
return Updatedestinationcalendarsresponse.model_validate(
|
|
3541
|
-
self._handle_response(response)
|
|
3542
|
-
)
|
|
3258
|
+
return Updatedestinationcalendarsresponse.model_validate(self._handle_response(response))
|
|
3543
3259
|
|
|
3544
3260
|
def list_event_types(
|
|
3545
3261
|
self,
|
|
@@ -3627,9 +3343,7 @@ class CalComV2App(APIApplication):
|
|
|
3627
3343
|
url = f"{self.base_url}/v2/event-types/{eventTypeId}"
|
|
3628
3344
|
query_params = {}
|
|
3629
3345
|
response = self._delete(url, params=query_params)
|
|
3630
|
-
return Deleteeventtypebyidresponse.model_validate(
|
|
3631
|
-
self._handle_response(response)
|
|
3632
|
-
)
|
|
3346
|
+
return Deleteeventtypebyidresponse.model_validate(self._handle_response(response))
|
|
3633
3347
|
|
|
3634
3348
|
def create_event_type_webhook(
|
|
3635
3349
|
self,
|
|
@@ -3670,9 +3384,7 @@ class CalComV2App(APIApplication):
|
|
|
3670
3384
|
"triggers": triggers,
|
|
3671
3385
|
"secret": secret,
|
|
3672
3386
|
}
|
|
3673
|
-
request_body_data = {
|
|
3674
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3675
|
-
}
|
|
3387
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3676
3388
|
url = f"{self.base_url}/v2/event-types/{eventTypeId}/webhooks"
|
|
3677
3389
|
query_params = {}
|
|
3678
3390
|
response = self._post(
|
|
@@ -3681,9 +3393,7 @@ class CalComV2App(APIApplication):
|
|
|
3681
3393
|
params=query_params,
|
|
3682
3394
|
content_type="application/json",
|
|
3683
3395
|
)
|
|
3684
|
-
return Createeventtypewebhookresponse.model_validate(
|
|
3685
|
-
self._handle_response(response)
|
|
3686
|
-
)
|
|
3396
|
+
return Createeventtypewebhookresponse.model_validate(self._handle_response(response))
|
|
3687
3397
|
|
|
3688
3398
|
def get_event_webhooks(
|
|
3689
3399
|
self,
|
|
@@ -3711,9 +3421,7 @@ class CalComV2App(APIApplication):
|
|
|
3711
3421
|
if eventTypeId is None:
|
|
3712
3422
|
raise ValueError("Missing required parameter 'eventTypeId'.")
|
|
3713
3423
|
url = f"{self.base_url}/v2/event-types/{eventTypeId}/webhooks"
|
|
3714
|
-
query_params = {
|
|
3715
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
3716
|
-
}
|
|
3424
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
3717
3425
|
response = self._get(url, params=query_params)
|
|
3718
3426
|
return Geteventwebhooksresponse.model_validate(self._handle_response(response))
|
|
3719
3427
|
|
|
@@ -3738,9 +3446,7 @@ class CalComV2App(APIApplication):
|
|
|
3738
3446
|
url = f"{self.base_url}/v2/event-types/{eventTypeId}/webhooks"
|
|
3739
3447
|
query_params = {}
|
|
3740
3448
|
response = self._delete(url, params=query_params)
|
|
3741
|
-
return Deleteclientwebhookresponse.model_validate(
|
|
3742
|
-
self._handle_response(response)
|
|
3743
|
-
)
|
|
3449
|
+
return Deleteclientwebhookresponse.model_validate(self._handle_response(response))
|
|
3744
3450
|
|
|
3745
3451
|
def patch_event_type_webhook_by_id(
|
|
3746
3452
|
self,
|
|
@@ -3785,15 +3491,11 @@ class CalComV2App(APIApplication):
|
|
|
3785
3491
|
"triggers": triggers,
|
|
3786
3492
|
"secret": secret,
|
|
3787
3493
|
}
|
|
3788
|
-
request_body_data = {
|
|
3789
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3790
|
-
}
|
|
3494
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3791
3495
|
url = f"{self.base_url}/v2/event-types/{eventTypeId}/webhooks/{webhookId}"
|
|
3792
3496
|
query_params = {}
|
|
3793
3497
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
3794
|
-
return Createeventtypewebhookresponse.model_validate(
|
|
3795
|
-
self._handle_response(response)
|
|
3796
|
-
)
|
|
3498
|
+
return Createeventtypewebhookresponse.model_validate(self._handle_response(response))
|
|
3797
3499
|
|
|
3798
3500
|
def get_webhook_by_id(self, eventTypeId: str, webhookId: str) -> dict[str, Any]:
|
|
3799
3501
|
"""
|
|
@@ -3819,13 +3521,9 @@ class CalComV2App(APIApplication):
|
|
|
3819
3521
|
url = f"{self.base_url}/v2/event-types/{eventTypeId}/webhooks/{webhookId}"
|
|
3820
3522
|
query_params = {}
|
|
3821
3523
|
response = self._get(url, params=query_params)
|
|
3822
|
-
return Createeventtypewebhookresponse.model_validate(
|
|
3823
|
-
self._handle_response(response)
|
|
3824
|
-
)
|
|
3524
|
+
return Createeventtypewebhookresponse.model_validate(self._handle_response(response))
|
|
3825
3525
|
|
|
3826
|
-
def delete_event_type_webhook_by_id(
|
|
3827
|
-
self, eventTypeId: str, webhookId: str
|
|
3828
|
-
) -> dict[str, Any]:
|
|
3526
|
+
def delete_event_type_webhook_by_id(self, eventTypeId: str, webhookId: str) -> dict[str, Any]:
|
|
3829
3527
|
"""
|
|
3830
3528
|
Deletes a webhook associated with a specific event type using the provided `eventTypeId` and `webhookId` parameters.
|
|
3831
3529
|
|
|
@@ -3849,9 +3547,7 @@ class CalComV2App(APIApplication):
|
|
|
3849
3547
|
url = f"{self.base_url}/v2/event-types/{eventTypeId}/webhooks/{webhookId}"
|
|
3850
3548
|
query_params = {}
|
|
3851
3549
|
response = self._delete(url, params=query_params)
|
|
3852
|
-
return Createeventtypewebhookresponse.model_validate(
|
|
3853
|
-
self._handle_response(response)
|
|
3854
|
-
)
|
|
3550
|
+
return Createeventtypewebhookresponse.model_validate(self._handle_response(response))
|
|
3855
3551
|
|
|
3856
3552
|
def me_controller_get_me(self) -> dict[str, Any]:
|
|
3857
3553
|
"""
|
|
@@ -3915,9 +3611,7 @@ class CalComV2App(APIApplication):
|
|
|
3915
3611
|
"locale": locale,
|
|
3916
3612
|
"avatarUrl": avatarUrl,
|
|
3917
3613
|
}
|
|
3918
|
-
request_body_data = {
|
|
3919
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3920
|
-
}
|
|
3614
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3921
3615
|
url = f"{self.base_url}/v2/me"
|
|
3922
3616
|
query_params = {}
|
|
3923
3617
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
@@ -3959,9 +3653,7 @@ class CalComV2App(APIApplication):
|
|
|
3959
3653
|
"isDefault": isDefault,
|
|
3960
3654
|
"overrides": overrides,
|
|
3961
3655
|
}
|
|
3962
|
-
request_body_data = {
|
|
3963
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
3964
|
-
}
|
|
3656
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
3965
3657
|
url = f"{self.base_url}/v2/schedules"
|
|
3966
3658
|
query_params = {}
|
|
3967
3659
|
response = self._post(
|
|
@@ -3970,9 +3662,7 @@ class CalComV2App(APIApplication):
|
|
|
3970
3662
|
params=query_params,
|
|
3971
3663
|
content_type="application/json",
|
|
3972
3664
|
)
|
|
3973
|
-
return Createuserscheduleresponse.model_validate(
|
|
3974
|
-
self._handle_response(response)
|
|
3975
|
-
)
|
|
3665
|
+
return Createuserscheduleresponse.model_validate(self._handle_response(response))
|
|
3976
3666
|
|
|
3977
3667
|
def list_schedules(self) -> dict[str, Any]:
|
|
3978
3668
|
"""
|
|
@@ -3990,9 +3680,7 @@ class CalComV2App(APIApplication):
|
|
|
3990
3680
|
url = f"{self.base_url}/v2/schedules"
|
|
3991
3681
|
query_params = {}
|
|
3992
3682
|
response = self._get(url, params=query_params)
|
|
3993
|
-
return Getorganizationschedulesresponse.model_validate(
|
|
3994
|
-
self._handle_response(response)
|
|
3995
|
-
)
|
|
3683
|
+
return Getorganizationschedulesresponse.model_validate(self._handle_response(response))
|
|
3996
3684
|
|
|
3997
3685
|
def get_default_schedule(self) -> dict[str, Any]:
|
|
3998
3686
|
"""
|
|
@@ -4010,9 +3698,7 @@ class CalComV2App(APIApplication):
|
|
|
4010
3698
|
url = f"{self.base_url}/v2/schedules/default"
|
|
4011
3699
|
query_params = {}
|
|
4012
3700
|
response = self._get(url, params=query_params)
|
|
4013
|
-
return Createuserscheduleresponse.model_validate(
|
|
4014
|
-
self._handle_response(response)
|
|
4015
|
-
)
|
|
3701
|
+
return Createuserscheduleresponse.model_validate(self._handle_response(response))
|
|
4016
3702
|
|
|
4017
3703
|
def get_schedule_by_id(self, scheduleId: str) -> dict[str, Any]:
|
|
4018
3704
|
"""
|
|
@@ -4076,15 +3762,11 @@ class CalComV2App(APIApplication):
|
|
|
4076
3762
|
"isDefault": isDefault,
|
|
4077
3763
|
"overrides": overrides,
|
|
4078
3764
|
}
|
|
4079
|
-
request_body_data = {
|
|
4080
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
4081
|
-
}
|
|
3765
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
4082
3766
|
url = f"{self.base_url}/v2/schedules/{scheduleId}"
|
|
4083
3767
|
query_params = {}
|
|
4084
3768
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
4085
|
-
return Updateuserschedulebyidresponse.model_validate(
|
|
4086
|
-
self._handle_response(response)
|
|
4087
|
-
)
|
|
3769
|
+
return Updateuserschedulebyidresponse.model_validate(self._handle_response(response))
|
|
4088
3770
|
|
|
4089
3771
|
def delete_schedule_by_id(self, scheduleId: str) -> dict[str, Any]:
|
|
4090
3772
|
"""
|
|
@@ -4107,13 +3789,9 @@ class CalComV2App(APIApplication):
|
|
|
4107
3789
|
url = f"{self.base_url}/v2/schedules/{scheduleId}"
|
|
4108
3790
|
query_params = {}
|
|
4109
3791
|
response = self._delete(url, params=query_params)
|
|
4110
|
-
return Getprovideraccesstokenresponse.model_validate(
|
|
4111
|
-
self._handle_response(response)
|
|
4112
|
-
)
|
|
3792
|
+
return Getprovideraccesstokenresponse.model_validate(self._handle_response(response))
|
|
4113
3793
|
|
|
4114
|
-
def add_selected_calendar(
|
|
4115
|
-
self, integration: str, externalId: str, credentialId: float
|
|
4116
|
-
) -> dict[str, Any]:
|
|
3794
|
+
def add_selected_calendar(self, integration: str, externalId: str, credentialId: float) -> dict[str, Any]:
|
|
4117
3795
|
"""
|
|
4118
3796
|
Creates a new selected calendar entry for external integrations using provided identifiers.
|
|
4119
3797
|
|
|
@@ -4137,9 +3815,7 @@ class CalComV2App(APIApplication):
|
|
|
4137
3815
|
"externalId": externalId,
|
|
4138
3816
|
"credentialId": credentialId,
|
|
4139
3817
|
}
|
|
4140
|
-
request_body_data = {
|
|
4141
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
4142
|
-
}
|
|
3818
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
4143
3819
|
url = f"{self.base_url}/v2/selected-calendars"
|
|
4144
3820
|
query_params = {}
|
|
4145
3821
|
response = self._post(
|
|
@@ -4148,13 +3824,9 @@ class CalComV2App(APIApplication):
|
|
|
4148
3824
|
params=query_params,
|
|
4149
3825
|
content_type="application/json",
|
|
4150
3826
|
)
|
|
4151
|
-
return Updatedestinationcalendarsresponse.model_validate(
|
|
4152
|
-
self._handle_response(response)
|
|
4153
|
-
)
|
|
3827
|
+
return Updatedestinationcalendarsresponse.model_validate(self._handle_response(response))
|
|
4154
3828
|
|
|
4155
|
-
def delete_selected_calendars(
|
|
4156
|
-
self, integration: str, externalId: str, credentialId: str
|
|
4157
|
-
) -> dict[str, Any]:
|
|
3829
|
+
def delete_selected_calendars(self, integration: str, externalId: str, credentialId: str) -> dict[str, Any]:
|
|
4158
3830
|
"""
|
|
4159
3831
|
Deletes one or more selected calendars based on integration, external ID, and credential ID using the DELETE method at the "/v2/selected-calendars" path.
|
|
4160
3832
|
|
|
@@ -4183,9 +3855,7 @@ class CalComV2App(APIApplication):
|
|
|
4183
3855
|
if v is not None
|
|
4184
3856
|
}
|
|
4185
3857
|
response = self._delete(url, params=query_params)
|
|
4186
|
-
return Updatedestinationcalendarsresponse.model_validate(
|
|
4187
|
-
self._handle_response(response)
|
|
4188
|
-
)
|
|
3858
|
+
return Updatedestinationcalendarsresponse.model_validate(self._handle_response(response))
|
|
4189
3859
|
|
|
4190
3860
|
def slots_controller_reserve_slot(
|
|
4191
3861
|
self,
|
|
@@ -4219,9 +3889,7 @@ class CalComV2App(APIApplication):
|
|
|
4219
3889
|
"slotUtcEndDate": slotUtcEndDate,
|
|
4220
3890
|
"bookingUid": bookingUid,
|
|
4221
3891
|
}
|
|
4222
|
-
request_body_data = {
|
|
4223
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
4224
|
-
}
|
|
3892
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
4225
3893
|
url = f"{self.base_url}/v2/slots/reserve"
|
|
4226
3894
|
query_params = {}
|
|
4227
3895
|
response = self._post(
|
|
@@ -4230,9 +3898,7 @@ class CalComV2App(APIApplication):
|
|
|
4230
3898
|
params=query_params,
|
|
4231
3899
|
content_type="application/json",
|
|
4232
3900
|
)
|
|
4233
|
-
return SlotscontrollerReserveslotresponse.model_validate(
|
|
4234
|
-
self._handle_response(response)
|
|
4235
|
-
)
|
|
3901
|
+
return SlotscontrollerReserveslotresponse.model_validate(self._handle_response(response))
|
|
4236
3902
|
|
|
4237
3903
|
def delete_selected_slot(self, uid: str) -> dict[str, Any]:
|
|
4238
3904
|
"""
|
|
@@ -4253,9 +3919,7 @@ class CalComV2App(APIApplication):
|
|
|
4253
3919
|
url = f"{self.base_url}/v2/slots/selected-slot"
|
|
4254
3920
|
query_params = {k: v for k, v in [("uid", uid)] if v is not None}
|
|
4255
3921
|
response = self._delete(url, params=query_params)
|
|
4256
|
-
return Deleteselectedslotresponse.model_validate(
|
|
4257
|
-
self._handle_response(response)
|
|
4258
|
-
)
|
|
3922
|
+
return Deleteselectedslotresponse.model_validate(self._handle_response(response))
|
|
4259
3923
|
|
|
4260
3924
|
def list_available_slots(
|
|
4261
3925
|
self,
|
|
@@ -4312,9 +3976,7 @@ class CalComV2App(APIApplication):
|
|
|
4312
3976
|
if v is not None
|
|
4313
3977
|
}
|
|
4314
3978
|
response = self._get(url, params=query_params)
|
|
4315
|
-
return Listavailableslotsresponse.model_validate(
|
|
4316
|
-
self._handle_response(response)
|
|
4317
|
-
)
|
|
3979
|
+
return Listavailableslotsresponse.model_validate(self._handle_response(response))
|
|
4318
3980
|
|
|
4319
3981
|
def stripe_controller_redirect(self) -> dict[str, Any]:
|
|
4320
3982
|
"""
|
|
@@ -4332,9 +3994,7 @@ class CalComV2App(APIApplication):
|
|
|
4332
3994
|
url = f"{self.base_url}/v2/stripe/connect"
|
|
4333
3995
|
query_params = {}
|
|
4334
3996
|
response = self._get(url, params=query_params)
|
|
4335
|
-
return GcalcontrollerRedirectresponse.model_validate(
|
|
4336
|
-
self._handle_response(response)
|
|
4337
|
-
)
|
|
3997
|
+
return GcalcontrollerRedirectresponse.model_validate(self._handle_response(response))
|
|
4338
3998
|
|
|
4339
3999
|
def stripe_controller_save(self, state: str, code: str) -> dict[str, Any]:
|
|
4340
4000
|
"""
|
|
@@ -4354,13 +4014,9 @@ class CalComV2App(APIApplication):
|
|
|
4354
4014
|
Stripe
|
|
4355
4015
|
"""
|
|
4356
4016
|
url = f"{self.base_url}/v2/stripe/save"
|
|
4357
|
-
query_params = {
|
|
4358
|
-
k: v for k, v in [("state", state), ("code", code)] if v is not None
|
|
4359
|
-
}
|
|
4017
|
+
query_params = {k: v for k, v in [("state", state), ("code", code)] if v is not None}
|
|
4360
4018
|
response = self._get(url, params=query_params)
|
|
4361
|
-
return GcalcontrollerSaveresponse.model_validate(
|
|
4362
|
-
self._handle_response(response)
|
|
4363
|
-
)
|
|
4019
|
+
return GcalcontrollerSaveresponse.model_validate(self._handle_response(response))
|
|
4364
4020
|
|
|
4365
4021
|
def stripe_controller_check(self) -> dict[str, Any]:
|
|
4366
4022
|
"""
|
|
@@ -4378,9 +4034,7 @@ class CalComV2App(APIApplication):
|
|
|
4378
4034
|
url = f"{self.base_url}/v2/stripe/check"
|
|
4379
4035
|
query_params = {}
|
|
4380
4036
|
response = self._get(url, params=query_params)
|
|
4381
|
-
return StripecontrollerCheckresponse.model_validate(
|
|
4382
|
-
self._handle_response(response)
|
|
4383
|
-
)
|
|
4037
|
+
return StripecontrollerCheckresponse.model_validate(self._handle_response(response))
|
|
4384
4038
|
|
|
4385
4039
|
def get_team_stripe_check(self, teamId: str) -> dict[str, Any]:
|
|
4386
4040
|
"""
|
|
@@ -4403,9 +4057,7 @@ class CalComV2App(APIApplication):
|
|
|
4403
4057
|
url = f"{self.base_url}/v2/stripe/check/{teamId}"
|
|
4404
4058
|
query_params = {}
|
|
4405
4059
|
response = self._get(url, params=query_params)
|
|
4406
|
-
return StripecontrollerCheckresponse.model_validate(
|
|
4407
|
-
self._handle_response(response)
|
|
4408
|
-
)
|
|
4060
|
+
return StripecontrollerCheckresponse.model_validate(self._handle_response(response))
|
|
4409
4061
|
|
|
4410
4062
|
def teams_controller_create_team(
|
|
4411
4063
|
self,
|
|
@@ -4484,9 +4136,7 @@ class CalComV2App(APIApplication):
|
|
|
4484
4136
|
"weekStart": weekStart,
|
|
4485
4137
|
"autoAcceptCreator": autoAcceptCreator,
|
|
4486
4138
|
}
|
|
4487
|
-
request_body_data = {
|
|
4488
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
4489
|
-
}
|
|
4139
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
4490
4140
|
url = f"{self.base_url}/v2/teams"
|
|
4491
4141
|
query_params = {}
|
|
4492
4142
|
response = self._post(
|
|
@@ -4495,9 +4145,7 @@ class CalComV2App(APIApplication):
|
|
|
4495
4145
|
params=query_params,
|
|
4496
4146
|
content_type="application/json",
|
|
4497
4147
|
)
|
|
4498
|
-
return TeamscontrollerCreateteamresponse.model_validate(
|
|
4499
|
-
self._handle_response(response)
|
|
4500
|
-
)
|
|
4148
|
+
return TeamscontrollerCreateteamresponse.model_validate(self._handle_response(response))
|
|
4501
4149
|
|
|
4502
4150
|
def teams_controller_get_teams(self) -> dict[str, Any]:
|
|
4503
4151
|
"""
|
|
@@ -4515,9 +4163,7 @@ class CalComV2App(APIApplication):
|
|
|
4515
4163
|
url = f"{self.base_url}/v2/teams"
|
|
4516
4164
|
query_params = {}
|
|
4517
4165
|
response = self._get(url, params=query_params)
|
|
4518
|
-
return Getorganizationteamsresponse.model_validate(
|
|
4519
|
-
self._handle_response(response)
|
|
4520
|
-
)
|
|
4166
|
+
return Getorganizationteamsresponse.model_validate(self._handle_response(response))
|
|
4521
4167
|
|
|
4522
4168
|
def teams_controller_get_team(self, teamId: str) -> dict[str, Any]:
|
|
4523
4169
|
"""
|
|
@@ -4540,9 +4186,7 @@ class CalComV2App(APIApplication):
|
|
|
4540
4186
|
url = f"{self.base_url}/v2/teams/{teamId}"
|
|
4541
4187
|
query_params = {}
|
|
4542
4188
|
response = self._get(url, params=query_params)
|
|
4543
|
-
return Createteaminorganizationresponse.model_validate(
|
|
4544
|
-
self._handle_response(response)
|
|
4545
|
-
)
|
|
4189
|
+
return Createteaminorganizationresponse.model_validate(self._handle_response(response))
|
|
4546
4190
|
|
|
4547
4191
|
def teams_controller_update_team(
|
|
4548
4192
|
self,
|
|
@@ -4628,15 +4272,11 @@ class CalComV2App(APIApplication):
|
|
|
4628
4272
|
"bookingLimits": bookingLimits,
|
|
4629
4273
|
"includeManagedEventsInLimits": includeManagedEventsInLimits,
|
|
4630
4274
|
}
|
|
4631
|
-
request_body_data = {
|
|
4632
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
4633
|
-
}
|
|
4275
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
4634
4276
|
url = f"{self.base_url}/v2/teams/{teamId}"
|
|
4635
4277
|
query_params = {}
|
|
4636
4278
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
4637
|
-
return Createteaminorganizationresponse.model_validate(
|
|
4638
|
-
self._handle_response(response)
|
|
4639
|
-
)
|
|
4279
|
+
return Createteaminorganizationresponse.model_validate(self._handle_response(response))
|
|
4640
4280
|
|
|
4641
4281
|
def teams_controller_delete_team(self, teamId: str) -> dict[str, Any]:
|
|
4642
4282
|
"""
|
|
@@ -4659,9 +4299,7 @@ class CalComV2App(APIApplication):
|
|
|
4659
4299
|
url = f"{self.base_url}/v2/teams/{teamId}"
|
|
4660
4300
|
query_params = {}
|
|
4661
4301
|
response = self._delete(url, params=query_params)
|
|
4662
|
-
return Createteaminorganizationresponse.model_validate(
|
|
4663
|
-
self._handle_response(response)
|
|
4664
|
-
)
|
|
4302
|
+
return Createteaminorganizationresponse.model_validate(self._handle_response(response))
|
|
4665
4303
|
|
|
4666
4304
|
def create_team_event_type(
|
|
4667
4305
|
self,
|
|
@@ -4794,9 +4432,7 @@ class CalComV2App(APIApplication):
|
|
|
4794
4432
|
"hosts": hosts,
|
|
4795
4433
|
"assignAllTeamMembers": assignAllTeamMembers,
|
|
4796
4434
|
}
|
|
4797
|
-
request_body_data = {
|
|
4798
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
4799
|
-
}
|
|
4435
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
4800
4436
|
url = f"{self.base_url}/v2/teams/{teamId}/event-types"
|
|
4801
4437
|
query_params = {}
|
|
4802
4438
|
response = self._post(
|
|
@@ -4807,9 +4443,7 @@ class CalComV2App(APIApplication):
|
|
|
4807
4443
|
)
|
|
4808
4444
|
return Createeventtyperesponse.model_validate(self._handle_response(response))
|
|
4809
4445
|
|
|
4810
|
-
def get_team_event_types(
|
|
4811
|
-
self, teamId: str, eventSlug: str | None = None
|
|
4812
|
-
) -> dict[str, Any]:
|
|
4446
|
+
def get_team_event_types(self, teamId: str, eventSlug: str | None = None) -> dict[str, Any]:
|
|
4813
4447
|
"""
|
|
4814
4448
|
Retrieves a list of event types for a specified team using the provided team ID and optionally filters by event slug.
|
|
4815
4449
|
|
|
@@ -4831,13 +4465,9 @@ class CalComV2App(APIApplication):
|
|
|
4831
4465
|
url = f"{self.base_url}/v2/teams/{teamId}/event-types"
|
|
4832
4466
|
query_params = {k: v for k, v in [("eventSlug", eventSlug)] if v is not None}
|
|
4833
4467
|
response = self._get(url, params=query_params)
|
|
4834
|
-
return Listeventtypesbyteamandorgresponse.model_validate(
|
|
4835
|
-
self._handle_response(response)
|
|
4836
|
-
)
|
|
4468
|
+
return Listeventtypesbyteamandorgresponse.model_validate(self._handle_response(response))
|
|
4837
4469
|
|
|
4838
|
-
def get_event_type_by_team_id(
|
|
4839
|
-
self, teamId: str, eventTypeId: str
|
|
4840
|
-
) -> dict[str, Any]:
|
|
4470
|
+
def get_event_type_by_team_id(self, teamId: str, eventTypeId: str) -> dict[str, Any]:
|
|
4841
4471
|
"""
|
|
4842
4472
|
Retrieves details about a specific event type within a team using the "GET" method, requiring both team ID and event type ID as path parameters.
|
|
4843
4473
|
|
|
@@ -4861,13 +4491,9 @@ class CalComV2App(APIApplication):
|
|
|
4861
4491
|
url = f"{self.base_url}/v2/teams/{teamId}/event-types/{eventTypeId}"
|
|
4862
4492
|
query_params = {}
|
|
4863
4493
|
response = self._get(url, params=query_params)
|
|
4864
|
-
return Geteventtypesbyteamidresponse.model_validate(
|
|
4865
|
-
self._handle_response(response)
|
|
4866
|
-
)
|
|
4494
|
+
return Geteventtypesbyteamidresponse.model_validate(self._handle_response(response))
|
|
4867
4495
|
|
|
4868
|
-
def delete_team_event_type_by_id(
|
|
4869
|
-
self, teamId: str, eventTypeId: str
|
|
4870
|
-
) -> dict[str, Any]:
|
|
4496
|
+
def delete_team_event_type_by_id(self, teamId: str, eventTypeId: str) -> dict[str, Any]:
|
|
4871
4497
|
"""
|
|
4872
4498
|
Deletes a specific event type for a team using the provided path parameters.
|
|
4873
4499
|
|
|
@@ -4891,9 +4517,7 @@ class CalComV2App(APIApplication):
|
|
|
4891
4517
|
url = f"{self.base_url}/v2/teams/{teamId}/event-types/{eventTypeId}"
|
|
4892
4518
|
query_params = {}
|
|
4893
4519
|
response = self._delete(url, params=query_params)
|
|
4894
|
-
return Deleteteameventtypebyidresponse.model_validate(
|
|
4895
|
-
self._handle_response(response)
|
|
4896
|
-
)
|
|
4520
|
+
return Deleteteameventtypebyidresponse.model_validate(self._handle_response(response))
|
|
4897
4521
|
|
|
4898
4522
|
def create_phone_call_for_event(
|
|
4899
4523
|
self,
|
|
@@ -4956,9 +4580,7 @@ class CalComV2App(APIApplication):
|
|
|
4956
4580
|
"beginMessage": beginMessage,
|
|
4957
4581
|
"generalPrompt": generalPrompt,
|
|
4958
4582
|
}
|
|
4959
|
-
request_body_data = {
|
|
4960
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
4961
|
-
}
|
|
4583
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
4962
4584
|
url = f"{self.base_url}/v2/teams/{teamId}/event-types/{eventTypeId}/create-phone-call"
|
|
4963
4585
|
query_params = {}
|
|
4964
4586
|
response = self._post(
|
|
@@ -4967,9 +4589,7 @@ class CalComV2App(APIApplication):
|
|
|
4967
4589
|
params=query_params,
|
|
4968
4590
|
content_type="application/json",
|
|
4969
4591
|
)
|
|
4970
|
-
return Createphonecalleventresponse.model_validate(
|
|
4971
|
-
self._handle_response(response)
|
|
4972
|
-
)
|
|
4592
|
+
return Createphonecalleventresponse.model_validate(self._handle_response(response))
|
|
4973
4593
|
|
|
4974
4594
|
def add_team_membership(
|
|
4975
4595
|
self,
|
|
@@ -5007,9 +4627,7 @@ class CalComV2App(APIApplication):
|
|
|
5007
4627
|
"role": role,
|
|
5008
4628
|
"disableImpersonation": disableImpersonation,
|
|
5009
4629
|
}
|
|
5010
|
-
request_body_data = {
|
|
5011
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
5012
|
-
}
|
|
4630
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
5013
4631
|
url = f"{self.base_url}/v2/teams/{teamId}/memberships"
|
|
5014
4632
|
query_params = {}
|
|
5015
4633
|
response = self._post(
|
|
@@ -5018,13 +4636,9 @@ class CalComV2App(APIApplication):
|
|
|
5018
4636
|
params=query_params,
|
|
5019
4637
|
content_type="application/json",
|
|
5020
4638
|
)
|
|
5021
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
5022
|
-
self._handle_response(response)
|
|
5023
|
-
)
|
|
4639
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
5024
4640
|
|
|
5025
|
-
def get_team_memberships(
|
|
5026
|
-
self, teamId: str, take: float | None = None, skip: float | None = None
|
|
5027
|
-
) -> dict[str, Any]:
|
|
4641
|
+
def get_team_memberships(self, teamId: str, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
5028
4642
|
"""
|
|
5029
4643
|
Retrieves paginated membership details for a specific team using `take` and `skip` parameters to manage results.
|
|
5030
4644
|
|
|
@@ -5045,13 +4659,9 @@ class CalComV2App(APIApplication):
|
|
|
5045
4659
|
if teamId is None:
|
|
5046
4660
|
raise ValueError("Missing required parameter 'teamId'.")
|
|
5047
4661
|
url = f"{self.base_url}/v2/teams/{teamId}/memberships"
|
|
5048
|
-
query_params = {
|
|
5049
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
5050
|
-
}
|
|
4662
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
5051
4663
|
response = self._get(url, params=query_params)
|
|
5052
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
5053
|
-
self._handle_response(response)
|
|
5054
|
-
)
|
|
4664
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
5055
4665
|
|
|
5056
4666
|
def get_membership_by_id(self, teamId: str, membershipId: str) -> dict[str, Any]:
|
|
5057
4667
|
"""
|
|
@@ -5077,9 +4687,7 @@ class CalComV2App(APIApplication):
|
|
|
5077
4687
|
url = f"{self.base_url}/v2/teams/{teamId}/memberships/{membershipId}"
|
|
5078
4688
|
query_params = {}
|
|
5079
4689
|
response = self._get(url, params=query_params)
|
|
5080
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
5081
|
-
self._handle_response(response)
|
|
5082
|
-
)
|
|
4690
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
5083
4691
|
|
|
5084
4692
|
def update_membership(
|
|
5085
4693
|
self,
|
|
@@ -5118,19 +4726,13 @@ class CalComV2App(APIApplication):
|
|
|
5118
4726
|
"role": role,
|
|
5119
4727
|
"disableImpersonation": disableImpersonation,
|
|
5120
4728
|
}
|
|
5121
|
-
request_body_data = {
|
|
5122
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
5123
|
-
}
|
|
4729
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
5124
4730
|
url = f"{self.base_url}/v2/teams/{teamId}/memberships/{membershipId}"
|
|
5125
4731
|
query_params = {}
|
|
5126
4732
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
5127
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
5128
|
-
self._handle_response(response)
|
|
5129
|
-
)
|
|
4733
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
5130
4734
|
|
|
5131
|
-
def deletegithub_membership_by_id(
|
|
5132
|
-
self, teamId: str, membershipId: str
|
|
5133
|
-
) -> dict[str, Any]:
|
|
4735
|
+
def deletegithub_membership_by_id(self, teamId: str, membershipId: str) -> dict[str, Any]:
|
|
5134
4736
|
"""
|
|
5135
4737
|
Removes a user's team membership in GitHub, requiring admin permissions or organization ownership.
|
|
5136
4738
|
|
|
@@ -5154,9 +4756,7 @@ class CalComV2App(APIApplication):
|
|
|
5154
4756
|
url = f"{self.base_url}/v2/teams/{teamId}/memberships/{membershipId}"
|
|
5155
4757
|
query_params = {}
|
|
5156
4758
|
response = self._delete(url, params=query_params)
|
|
5157
|
-
return Listorganizationmembershipsresponse.model_validate(
|
|
5158
|
-
self._handle_response(response)
|
|
5159
|
-
)
|
|
4759
|
+
return Listorganizationmembershipsresponse.model_validate(self._handle_response(response))
|
|
5160
4760
|
|
|
5161
4761
|
def get_timezones(self) -> dict[str, Any]:
|
|
5162
4762
|
"""
|
|
@@ -5211,9 +4811,7 @@ class CalComV2App(APIApplication):
|
|
|
5211
4811
|
"triggers": triggers,
|
|
5212
4812
|
"secret": secret,
|
|
5213
4813
|
}
|
|
5214
|
-
request_body_data = {
|
|
5215
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
5216
|
-
}
|
|
4814
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
5217
4815
|
url = f"{self.base_url}/v2/webhooks"
|
|
5218
4816
|
query_params = {}
|
|
5219
4817
|
response = self._post(
|
|
@@ -5222,13 +4820,9 @@ class CalComV2App(APIApplication):
|
|
|
5222
4820
|
params=query_params,
|
|
5223
4821
|
content_type="application/json",
|
|
5224
4822
|
)
|
|
5225
|
-
return Createandconfigurewebhookresponse.model_validate(
|
|
5226
|
-
self._handle_response(response)
|
|
5227
|
-
)
|
|
4823
|
+
return Createandconfigurewebhookresponse.model_validate(self._handle_response(response))
|
|
5228
4824
|
|
|
5229
|
-
def webhooks_controller_get_webhooks(
|
|
5230
|
-
self, take: float | None = None, skip: float | None = None
|
|
5231
|
-
) -> dict[str, Any]:
|
|
4825
|
+
def webhooks_controller_get_webhooks(self, take: float | None = None, skip: float | None = None) -> dict[str, Any]:
|
|
5232
4826
|
"""
|
|
5233
4827
|
Retrieves a list of webhooks, allowing pagination with optional parameters to specify the number of items to take and skip.
|
|
5234
4828
|
|
|
@@ -5246,13 +4840,9 @@ class CalComV2App(APIApplication):
|
|
|
5246
4840
|
Webhooks
|
|
5247
4841
|
"""
|
|
5248
4842
|
url = f"{self.base_url}/v2/webhooks"
|
|
5249
|
-
query_params = {
|
|
5250
|
-
k: v for k, v in [("take", take), ("skip", skip)] if v is not None
|
|
5251
|
-
}
|
|
4843
|
+
query_params = {k: v for k, v in [("take", take), ("skip", skip)] if v is not None}
|
|
5252
4844
|
response = self._get(url, params=query_params)
|
|
5253
|
-
return WebhookscontrollerGetwebhooksresponse.model_validate(
|
|
5254
|
-
self._handle_response(response)
|
|
5255
|
-
)
|
|
4845
|
+
return WebhookscontrollerGetwebhooksresponse.model_validate(self._handle_response(response))
|
|
5256
4846
|
|
|
5257
4847
|
def patch_webhook(
|
|
5258
4848
|
self,
|
|
@@ -5293,15 +4883,11 @@ class CalComV2App(APIApplication):
|
|
|
5293
4883
|
"triggers": triggers,
|
|
5294
4884
|
"secret": secret,
|
|
5295
4885
|
}
|
|
5296
|
-
request_body_data = {
|
|
5297
|
-
k: v for k, v in request_body_data.items() if v is not None
|
|
5298
|
-
}
|
|
4886
|
+
request_body_data = {k: v for k, v in request_body_data.items() if v is not None}
|
|
5299
4887
|
url = f"{self.base_url}/v2/webhooks/{webhookId}"
|
|
5300
4888
|
query_params = {}
|
|
5301
4889
|
response = self._patch(url, data=request_body_data, params=query_params)
|
|
5302
|
-
return Createandconfigurewebhookresponse.model_validate(
|
|
5303
|
-
self._handle_response(response)
|
|
5304
|
-
)
|
|
4890
|
+
return Createandconfigurewebhookresponse.model_validate(self._handle_response(response))
|
|
5305
4891
|
|
|
5306
4892
|
def webhooks_controller_get_webhook(self, webhookId: str) -> dict[str, Any]:
|
|
5307
4893
|
"""
|
|
@@ -5324,9 +4910,7 @@ class CalComV2App(APIApplication):
|
|
|
5324
4910
|
url = f"{self.base_url}/v2/webhooks/{webhookId}"
|
|
5325
4911
|
query_params = {}
|
|
5326
4912
|
response = self._get(url, params=query_params)
|
|
5327
|
-
return Createandconfigurewebhookresponse.model_validate(
|
|
5328
|
-
self._handle_response(response)
|
|
5329
|
-
)
|
|
4913
|
+
return Createandconfigurewebhookresponse.model_validate(self._handle_response(response))
|
|
5330
4914
|
|
|
5331
4915
|
def delete_user_webhook_by_id(self, webhookId: str) -> dict[str, Any]:
|
|
5332
4916
|
"""
|
|
@@ -5349,9 +4933,7 @@ class CalComV2App(APIApplication):
|
|
|
5349
4933
|
url = f"{self.base_url}/v2/webhooks/{webhookId}"
|
|
5350
4934
|
query_params = {}
|
|
5351
4935
|
response = self._delete(url, params=query_params)
|
|
5352
|
-
return Createandconfigurewebhookresponse.model_validate(
|
|
5353
|
-
self._handle_response(response)
|
|
5354
|
-
)
|
|
4936
|
+
return Createandconfigurewebhookresponse.model_validate(self._handle_response(response))
|
|
5355
4937
|
|
|
5356
4938
|
def list_tools(self):
|
|
5357
4939
|
return [
|