universal-mcp-applications 0.1.30rc2__py3-none-any.whl → 0.1.36rc2__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.
Files changed (105) hide show
  1. universal_mcp/applications/ahrefs/app.py +52 -198
  2. universal_mcp/applications/airtable/app.py +23 -122
  3. universal_mcp/applications/apollo/app.py +111 -464
  4. universal_mcp/applications/asana/app.py +417 -1567
  5. universal_mcp/applications/aws_s3/app.py +36 -103
  6. universal_mcp/applications/bill/app.py +546 -1957
  7. universal_mcp/applications/box/app.py +1068 -3981
  8. universal_mcp/applications/braze/app.py +364 -1430
  9. universal_mcp/applications/browser_use/app.py +2 -8
  10. universal_mcp/applications/cal_com_v2/app.py +207 -625
  11. universal_mcp/applications/calendly/app.py +61 -200
  12. universal_mcp/applications/canva/app.py +45 -110
  13. universal_mcp/applications/clickup/app.py +207 -674
  14. universal_mcp/applications/coda/app.py +146 -426
  15. universal_mcp/applications/confluence/app.py +310 -1098
  16. universal_mcp/applications/contentful/app.py +36 -151
  17. universal_mcp/applications/crustdata/app.py +28 -107
  18. universal_mcp/applications/dialpad/app.py +283 -756
  19. universal_mcp/applications/digitalocean/app.py +1766 -5777
  20. universal_mcp/applications/domain_checker/app.py +3 -54
  21. universal_mcp/applications/e2b/app.py +14 -64
  22. universal_mcp/applications/elevenlabs/app.py +9 -47
  23. universal_mcp/applications/exa/app.py +6 -17
  24. universal_mcp/applications/falai/app.py +24 -101
  25. universal_mcp/applications/figma/app.py +53 -137
  26. universal_mcp/applications/file_system/app.py +2 -13
  27. universal_mcp/applications/firecrawl/app.py +51 -152
  28. universal_mcp/applications/fireflies/app.py +59 -281
  29. universal_mcp/applications/fpl/app.py +91 -528
  30. universal_mcp/applications/fpl/utils/fixtures.py +15 -49
  31. universal_mcp/applications/fpl/utils/helper.py +25 -89
  32. universal_mcp/applications/fpl/utils/league_utils.py +20 -64
  33. universal_mcp/applications/ghost_content/app.py +52 -161
  34. universal_mcp/applications/github/app.py +19 -56
  35. universal_mcp/applications/gong/app.py +88 -248
  36. universal_mcp/applications/google_calendar/app.py +16 -68
  37. universal_mcp/applications/google_docs/app.py +88 -188
  38. universal_mcp/applications/google_drive/app.py +141 -463
  39. universal_mcp/applications/google_gemini/app.py +12 -64
  40. universal_mcp/applications/google_mail/app.py +28 -157
  41. universal_mcp/applications/google_searchconsole/app.py +15 -48
  42. universal_mcp/applications/google_sheet/app.py +103 -580
  43. universal_mcp/applications/google_sheet/helper.py +10 -37
  44. universal_mcp/applications/hashnode/app.py +57 -269
  45. universal_mcp/applications/heygen/app.py +44 -122
  46. universal_mcp/applications/http_tools/app.py +10 -32
  47. universal_mcp/applications/hubspot/api_segments/crm_api.py +460 -1573
  48. universal_mcp/applications/hubspot/api_segments/marketing_api.py +74 -262
  49. universal_mcp/applications/hubspot/app.py +23 -87
  50. universal_mcp/applications/jira/app.py +2071 -7986
  51. universal_mcp/applications/klaviyo/app.py +494 -1376
  52. universal_mcp/applications/linkedin/README.md +9 -2
  53. universal_mcp/applications/linkedin/app.py +392 -212
  54. universal_mcp/applications/mailchimp/app.py +450 -1605
  55. universal_mcp/applications/markitdown/app.py +8 -20
  56. universal_mcp/applications/miro/app.py +217 -699
  57. universal_mcp/applications/ms_teams/app.py +64 -186
  58. universal_mcp/applications/neon/app.py +86 -192
  59. universal_mcp/applications/notion/app.py +21 -36
  60. universal_mcp/applications/onedrive/app.py +16 -38
  61. universal_mcp/applications/openai/app.py +42 -165
  62. universal_mcp/applications/outlook/app.py +24 -84
  63. universal_mcp/applications/perplexity/app.py +4 -19
  64. universal_mcp/applications/pipedrive/app.py +832 -3142
  65. universal_mcp/applications/posthog/app.py +163 -432
  66. universal_mcp/applications/reddit/app.py +40 -139
  67. universal_mcp/applications/resend/app.py +41 -107
  68. universal_mcp/applications/retell/app.py +14 -41
  69. universal_mcp/applications/rocketlane/app.py +221 -934
  70. universal_mcp/applications/scraper/README.md +7 -4
  71. universal_mcp/applications/scraper/app.py +216 -102
  72. universal_mcp/applications/semanticscholar/app.py +22 -64
  73. universal_mcp/applications/semrush/app.py +43 -77
  74. universal_mcp/applications/sendgrid/app.py +512 -1262
  75. universal_mcp/applications/sentry/app.py +271 -906
  76. universal_mcp/applications/serpapi/app.py +40 -143
  77. universal_mcp/applications/sharepoint/app.py +17 -39
  78. universal_mcp/applications/shopify/app.py +1551 -4287
  79. universal_mcp/applications/shortcut/app.py +155 -417
  80. universal_mcp/applications/slack/app.py +50 -101
  81. universal_mcp/applications/spotify/app.py +126 -325
  82. universal_mcp/applications/supabase/app.py +104 -213
  83. universal_mcp/applications/tavily/app.py +1 -1
  84. universal_mcp/applications/trello/app.py +693 -2656
  85. universal_mcp/applications/twilio/app.py +14 -50
  86. universal_mcp/applications/twitter/api_segments/compliance_api.py +4 -14
  87. universal_mcp/applications/twitter/api_segments/dm_conversations_api.py +6 -18
  88. universal_mcp/applications/twitter/api_segments/likes_api.py +1 -3
  89. universal_mcp/applications/twitter/api_segments/lists_api.py +5 -15
  90. universal_mcp/applications/twitter/api_segments/trends_api.py +1 -3
  91. universal_mcp/applications/twitter/api_segments/tweets_api.py +9 -31
  92. universal_mcp/applications/twitter/api_segments/usage_api.py +1 -5
  93. universal_mcp/applications/twitter/api_segments/users_api.py +14 -42
  94. universal_mcp/applications/whatsapp/app.py +35 -186
  95. universal_mcp/applications/whatsapp/audio.py +2 -6
  96. universal_mcp/applications/whatsapp/whatsapp.py +17 -51
  97. universal_mcp/applications/whatsapp_business/app.py +70 -283
  98. universal_mcp/applications/wrike/app.py +45 -118
  99. universal_mcp/applications/yahoo_finance/app.py +19 -65
  100. universal_mcp/applications/youtube/app.py +75 -261
  101. universal_mcp/applications/zenquotes/app.py +2 -2
  102. {universal_mcp_applications-0.1.30rc2.dist-info → universal_mcp_applications-0.1.36rc2.dist-info}/METADATA +2 -2
  103. {universal_mcp_applications-0.1.30rc2.dist-info → universal_mcp_applications-0.1.36rc2.dist-info}/RECORD +105 -105
  104. {universal_mcp_applications-0.1.30rc2.dist-info → universal_mcp_applications-0.1.36rc2.dist-info}/WHEEL +0 -0
  105. {universal_mcp_applications-0.1.30rc2.dist-info → universal_mcp_applications-0.1.36rc2.dist-info}/licenses/LICENSE +0 -0
@@ -1,5 +1,4 @@
1
1
  from typing import Any
2
-
3
2
  from universal_mcp.applications.application import APIApplication
4
3
  from universal_mcp.integrations import Integration
5
4
 
@@ -9,7 +8,7 @@ class SupabaseApp(APIApplication):
9
8
  super().__init__(name="supabase", integration=integration, **kwargs)
10
9
  self.base_url = "https://api.supabase.com"
11
10
 
12
- def v1_get_a_branch_config(self, branch_id) -> dict[str, Any]:
11
+ async def v1_get_a_branch_config(self, branch_id) -> dict[str, Any]:
13
12
  """
14
13
  Retrieves the configuration details for a specific branch by branch ID.
15
14
 
@@ -34,14 +33,8 @@ class SupabaseApp(APIApplication):
34
33
  response.raise_for_status()
35
34
  return response.json()
36
35
 
37
- def v1_update_a_branch_config(
38
- self,
39
- branch_id,
40
- branch_name=None,
41
- git_branch=None,
42
- reset_on_push=None,
43
- persistent=None,
44
- status=None,
36
+ async def v1_update_a_branch_config(
37
+ self, branch_id, branch_name=None, git_branch=None, reset_on_push=None, persistent=None, status=None
45
38
  ) -> dict[str, Any]:
46
39
  """
47
40
  Updates the configuration of a specified branch by sending a PATCH request with provided configuration fields.
@@ -80,7 +73,7 @@ class SupabaseApp(APIApplication):
80
73
  response.raise_for_status()
81
74
  return response.json()
82
75
 
83
- def v1_delete_a_branch(self, branch_id) -> dict[str, Any]:
76
+ async def v1_delete_a_branch(self, branch_id) -> dict[str, Any]:
84
77
  """
85
78
  Deletes a branch with the specified branch ID using a DELETE request to the API.
86
79
 
@@ -105,7 +98,7 @@ class SupabaseApp(APIApplication):
105
98
  response.raise_for_status()
106
99
  return response.json()
107
100
 
108
- def v1_reset_a_branch(self, branch_id) -> dict[str, Any]:
101
+ async def v1_reset_a_branch(self, branch_id) -> dict[str, Any]:
109
102
  """
110
103
  Resets the specified branch by making a POST request to the branch reset endpoint.
111
104
 
@@ -130,9 +123,7 @@ class SupabaseApp(APIApplication):
130
123
  response.raise_for_status()
131
124
  return response.json()
132
125
 
133
- def v1_list_all_projects(
134
- self,
135
- ) -> list[Any]:
126
+ async def v1_list_all_projects(self) -> list[Any]:
136
127
  """
137
128
  Retrieves a list of all projects from the v1 API endpoint.
138
129
 
@@ -154,7 +145,7 @@ class SupabaseApp(APIApplication):
154
145
  response.raise_for_status()
155
146
  return response.json()
156
147
 
157
- def v1_create_a_project(
148
+ async def v1_create_a_project(
158
149
  self,
159
150
  db_pass,
160
151
  name,
@@ -219,9 +210,7 @@ class SupabaseApp(APIApplication):
219
210
  response.raise_for_status()
220
211
  return response.json()
221
212
 
222
- def v1_list_all_organizations(
223
- self,
224
- ) -> list[Any]:
213
+ async def v1_list_all_organizations(self) -> list[Any]:
225
214
  """
226
215
  Retrieves a list of all organizations from the API endpoint.
227
216
 
@@ -243,7 +232,7 @@ class SupabaseApp(APIApplication):
243
232
  response.raise_for_status()
244
233
  return response.json()
245
234
 
246
- def v1_create_an_organization(self, name) -> dict[str, Any]:
235
+ async def v1_create_an_organization(self, name) -> dict[str, Any]:
247
236
  """
248
237
  Creates a new organization using the provided name and returns the organization details.
249
238
 
@@ -262,9 +251,7 @@ class SupabaseApp(APIApplication):
262
251
  """
263
252
  if name is None:
264
253
  raise ValueError("Missing required parameter 'name'")
265
- request_body = {
266
- "name": name,
267
- }
254
+ request_body = {"name": name}
268
255
  request_body = {k: v for k, v in request_body.items() if v is not None}
269
256
  url = f"{self.base_url}/v1/organizations"
270
257
  query_params = {}
@@ -272,7 +259,7 @@ class SupabaseApp(APIApplication):
272
259
  response.raise_for_status()
273
260
  return response.json()
274
261
 
275
- def v1_authorize_user(
262
+ async def v1_authorize_user(
276
263
  self,
277
264
  client_id,
278
265
  response_type,
@@ -331,7 +318,7 @@ class SupabaseApp(APIApplication):
331
318
  response.raise_for_status()
332
319
  return response.json()
333
320
 
334
- def v1_list_all_snippets(self, project_ref=None) -> dict[str, Any]:
321
+ async def v1_list_all_snippets(self, project_ref=None) -> dict[str, Any]:
335
322
  """
336
323
  Retrieves all code snippets for the specified project, or for all projects if no project reference is provided.
337
324
 
@@ -348,14 +335,12 @@ class SupabaseApp(APIApplication):
348
335
  list, snippets, management, api, important
349
336
  """
350
337
  url = f"{self.base_url}/v1/snippets"
351
- query_params = {
352
- k: v for k, v in [("project_ref", project_ref)] if v is not None
353
- }
338
+ query_params = {k: v for k, v in [("project_ref", project_ref)] if v is not None}
354
339
  response = self._get(url, params=query_params)
355
340
  response.raise_for_status()
356
341
  return response.json()
357
342
 
358
- def v1_get_a_snippet(self, id) -> dict[str, Any]:
343
+ async def v1_get_a_snippet(self, id) -> dict[str, Any]:
359
344
  """
360
345
  Retrieves a snippet resource by its unique identifier using a GET request to the v1 endpoint.
361
346
 
@@ -380,7 +365,7 @@ class SupabaseApp(APIApplication):
380
365
  response.raise_for_status()
381
366
  return response.json()
382
367
 
383
- def v1_get_project_api_keys(self, ref) -> list[Any]:
368
+ async def v1_get_project_api_keys(self, ref) -> list[Any]:
384
369
  """
385
370
  Retrieves the list of API keys associated with a specified project reference.
386
371
 
@@ -405,9 +390,7 @@ class SupabaseApp(APIApplication):
405
390
  response.raise_for_status()
406
391
  return response.json()
407
392
 
408
- def create_api_key(
409
- self, ref, type, description=None, secret_jwt_template=None
410
- ) -> dict[str, Any]:
393
+ async def create_api_key(self, ref, type, description=None, secret_jwt_template=None) -> dict[str, Any]:
411
394
  """
412
395
  Creates a new API key for the specified project with optional description and secret JWT template.
413
396
 
@@ -431,11 +414,7 @@ class SupabaseApp(APIApplication):
431
414
  raise ValueError("Missing required parameter 'ref'")
432
415
  if type is None:
433
416
  raise ValueError("Missing required parameter 'type'")
434
- request_body = {
435
- "type": type,
436
- "description": description,
437
- "secret_jwt_template": secret_jwt_template,
438
- }
417
+ request_body = {"type": type, "description": description, "secret_jwt_template": secret_jwt_template}
439
418
  request_body = {k: v for k, v in request_body.items() if v is not None}
440
419
  url = f"{self.base_url}/v1/projects/{ref}/api-keys"
441
420
  query_params = {}
@@ -443,9 +422,7 @@ class SupabaseApp(APIApplication):
443
422
  response.raise_for_status()
444
423
  return response.json()
445
424
 
446
- def update_api_key(
447
- self, ref, id, description=None, secret_jwt_template=None
448
- ) -> dict[str, Any]:
425
+ async def update_api_key(self, ref, id, description=None, secret_jwt_template=None) -> dict[str, Any]:
449
426
  """
450
427
  Updates an existing API key identified by its project reference and key ID, allowing optional update of description and secret JWT template.
451
428
 
@@ -469,10 +446,7 @@ class SupabaseApp(APIApplication):
469
446
  raise ValueError("Missing required parameter 'ref'")
470
447
  if id is None:
471
448
  raise ValueError("Missing required parameter 'id'")
472
- request_body = {
473
- "description": description,
474
- "secret_jwt_template": secret_jwt_template,
475
- }
449
+ request_body = {"description": description, "secret_jwt_template": secret_jwt_template}
476
450
  request_body = {k: v for k, v in request_body.items() if v is not None}
477
451
  url = f"{self.base_url}/v1/projects/{ref}/api-keys/{id}"
478
452
  query_params = {}
@@ -480,7 +454,7 @@ class SupabaseApp(APIApplication):
480
454
  response.raise_for_status()
481
455
  return response.json()
482
456
 
483
- def delete_api_key(self, ref, id) -> dict[str, Any]:
457
+ async def delete_api_key(self, ref, id) -> dict[str, Any]:
484
458
  """
485
459
  Deletes an API key associated with a project using the provided reference and key ID.
486
460
 
@@ -508,7 +482,7 @@ class SupabaseApp(APIApplication):
508
482
  response.raise_for_status()
509
483
  return response.json()
510
484
 
511
- def v1_list_all_branches(self, ref) -> list[Any]:
485
+ async def v1_list_all_branches(self, ref) -> list[Any]:
512
486
  """
513
487
  Retrieves a list of all branches for the specified project reference using the v1 API.
514
488
 
@@ -533,7 +507,7 @@ class SupabaseApp(APIApplication):
533
507
  response.raise_for_status()
534
508
  return response.json()
535
509
 
536
- def v1_create_a_branch(
510
+ async def v1_create_a_branch(
537
511
  self,
538
512
  ref,
539
513
  branch_name,
@@ -587,7 +561,7 @@ class SupabaseApp(APIApplication):
587
561
  response.raise_for_status()
588
562
  return response.json()
589
563
 
590
- def v1_disable_preview_branching(self, ref) -> Any:
564
+ async def v1_disable_preview_branching(self, ref) -> Any:
591
565
  """
592
566
  Disables preview branching for a specified project reference by sending a DELETE request to the corresponding API endpoint.
593
567
 
@@ -612,7 +586,7 @@ class SupabaseApp(APIApplication):
612
586
  response.raise_for_status()
613
587
  return response.json()
614
588
 
615
- def v1_get_hostname_config(self, ref) -> dict[str, Any]:
589
+ async def v1_get_hostname_config(self, ref) -> dict[str, Any]:
616
590
  """
617
591
  Retrieves the configuration for a custom hostname associated with a given project reference.
618
592
 
@@ -637,7 +611,7 @@ class SupabaseApp(APIApplication):
637
611
  response.raise_for_status()
638
612
  return response.json()
639
613
 
640
- def v1_verify_dns_config(self, ref) -> dict[str, Any]:
614
+ async def v1_verify_dns_config(self, ref) -> dict[str, Any]:
641
615
  """
642
616
  Triggers DNS configuration verification for a specified project reference via a POST request.
643
617
 
@@ -662,7 +636,7 @@ class SupabaseApp(APIApplication):
662
636
  response.raise_for_status()
663
637
  return response.json()
664
638
 
665
- def v1_activate_custom_hostname(self, ref) -> dict[str, Any]:
639
+ async def v1_activate_custom_hostname(self, ref) -> dict[str, Any]:
666
640
  """
667
641
  Activates a custom hostname for the specified project reference using the v1 API endpoint.
668
642
 
@@ -687,7 +661,7 @@ class SupabaseApp(APIApplication):
687
661
  response.raise_for_status()
688
662
  return response.json()
689
663
 
690
- def v1_list_all_network_bans(self, ref) -> dict[str, Any]:
664
+ async def v1_list_all_network_bans(self, ref) -> dict[str, Any]:
691
665
  """
692
666
  Retrieves all network bans associated with the specified project reference.
693
667
 
@@ -712,7 +686,7 @@ class SupabaseApp(APIApplication):
712
686
  response.raise_for_status()
713
687
  return response.json()
714
688
 
715
- def v1_delete_network_bans(self, ref, ipv4_addresses) -> Any:
689
+ async def v1_delete_network_bans(self, ref, ipv4_addresses) -> Any:
716
690
  """
717
691
  Deletes specified IPv4 addresses from the network ban list for a given project reference.
718
692
 
@@ -734,9 +708,7 @@ class SupabaseApp(APIApplication):
734
708
  raise ValueError("Missing required parameter 'ref'")
735
709
  if ipv4_addresses is None:
736
710
  raise ValueError("Missing required parameter 'ipv4_addresses'")
737
- request_body = {
738
- "ipv4_addresses": ipv4_addresses,
739
- }
711
+ request_body = {"ipv4_addresses": ipv4_addresses}
740
712
  request_body = {k: v for k, v in request_body.items() if v is not None}
741
713
  url = f"{self.base_url}/v1/projects/{ref}/network-bans"
742
714
  query_params = {}
@@ -744,7 +716,7 @@ class SupabaseApp(APIApplication):
744
716
  response.raise_for_status()
745
717
  return response.json()
746
718
 
747
- def v1_get_network_restrictions(self, ref) -> dict[str, Any]:
719
+ async def v1_get_network_restrictions(self, ref) -> dict[str, Any]:
748
720
  """
749
721
  Retrieves network restriction settings for a given project reference.
750
722
 
@@ -769,9 +741,7 @@ class SupabaseApp(APIApplication):
769
741
  response.raise_for_status()
770
742
  return response.json()
771
743
 
772
- def v1_update_network_restrictions(
773
- self, ref, dbAllowedCidrs=None, dbAllowedCidrsV6=None
774
- ) -> dict[str, Any]:
744
+ async def v1_update_network_restrictions(self, ref, dbAllowedCidrs=None, dbAllowedCidrsV6=None) -> dict[str, Any]:
775
745
  """
776
746
  Updates network access restrictions for the specified project by applying the given allowed IPv4 and IPv6 CIDR ranges.
777
747
 
@@ -792,10 +762,7 @@ class SupabaseApp(APIApplication):
792
762
  """
793
763
  if ref is None:
794
764
  raise ValueError("Missing required parameter 'ref'")
795
- request_body = {
796
- "dbAllowedCidrs": dbAllowedCidrs,
797
- "dbAllowedCidrsV6": dbAllowedCidrsV6,
798
- }
765
+ request_body = {"dbAllowedCidrs": dbAllowedCidrs, "dbAllowedCidrsV6": dbAllowedCidrsV6}
799
766
  request_body = {k: v for k, v in request_body.items() if v is not None}
800
767
  url = f"{self.base_url}/v1/projects/{ref}/network-restrictions/apply"
801
768
  query_params = {}
@@ -803,7 +770,7 @@ class SupabaseApp(APIApplication):
803
770
  response.raise_for_status()
804
771
  return response.json()
805
772
 
806
- def v1_get_pgsodium_config(self, ref) -> dict[str, Any]:
773
+ async def v1_get_pgsodium_config(self, ref) -> dict[str, Any]:
807
774
  """
808
775
  Retrieves the pgSodium configuration for a specified project reference from the v1 API endpoint.
809
776
 
@@ -828,7 +795,7 @@ class SupabaseApp(APIApplication):
828
795
  response.raise_for_status()
829
796
  return response.json()
830
797
 
831
- def v1_update_pgsodium_config(self, ref, root_key) -> dict[str, Any]:
798
+ async def v1_update_pgsodium_config(self, ref, root_key) -> dict[str, Any]:
832
799
  """
833
800
  Updates the pgsodium configuration for a specified project reference using the provided root key.
834
801
 
@@ -850,9 +817,7 @@ class SupabaseApp(APIApplication):
850
817
  raise ValueError("Missing required parameter 'ref'")
851
818
  if root_key is None:
852
819
  raise ValueError("Missing required parameter 'root_key'")
853
- request_body = {
854
- "root_key": root_key,
855
- }
820
+ request_body = {"root_key": root_key}
856
821
  request_body = {k: v for k, v in request_body.items() if v is not None}
857
822
  url = f"{self.base_url}/v1/projects/{ref}/pgsodium"
858
823
  query_params = {}
@@ -860,7 +825,7 @@ class SupabaseApp(APIApplication):
860
825
  response.raise_for_status()
861
826
  return response.json()
862
827
 
863
- def v1_get_postgrest_service_config(self, ref) -> dict[str, Any]:
828
+ async def v1_get_postgrest_service_config(self, ref) -> dict[str, Any]:
864
829
  """
865
830
  Retrieves the configuration details for the PostgREST service associated with the specified project reference.
866
831
 
@@ -885,13 +850,8 @@ class SupabaseApp(APIApplication):
885
850
  response.raise_for_status()
886
851
  return response.json()
887
852
 
888
- def v1_update_postgrest_service_config(
889
- self,
890
- ref,
891
- max_rows=None,
892
- db_pool=None,
893
- db_extra_search_path=None,
894
- db_schema=None,
853
+ async def v1_update_postgrest_service_config(
854
+ self, ref, max_rows=None, db_pool=None, db_extra_search_path=None, db_schema=None
895
855
  ) -> dict[str, Any]:
896
856
  """
897
857
  Updates the configuration settings for a PostgREST service for a specified project.
@@ -915,12 +875,7 @@ class SupabaseApp(APIApplication):
915
875
  """
916
876
  if ref is None:
917
877
  raise ValueError("Missing required parameter 'ref'")
918
- request_body = {
919
- "max_rows": max_rows,
920
- "db_pool": db_pool,
921
- "db_extra_search_path": db_extra_search_path,
922
- "db_schema": db_schema,
923
- }
878
+ request_body = {"max_rows": max_rows, "db_pool": db_pool, "db_extra_search_path": db_extra_search_path, "db_schema": db_schema}
924
879
  request_body = {k: v for k, v in request_body.items() if v is not None}
925
880
  url = f"{self.base_url}/v1/projects/{ref}/postgrest"
926
881
  query_params = {}
@@ -928,7 +883,7 @@ class SupabaseApp(APIApplication):
928
883
  response.raise_for_status()
929
884
  return response.json()
930
885
 
931
- def v1_delete_a_project(self, ref) -> dict[str, Any]:
886
+ async def v1_delete_a_project(self, ref) -> dict[str, Any]:
932
887
  """
933
888
  Deletes a project identified by its reference and returns the API response as a dictionary.
934
889
 
@@ -953,7 +908,7 @@ class SupabaseApp(APIApplication):
953
908
  response.raise_for_status()
954
909
  return response.json()
955
910
 
956
- def v1_list_all_secrets(self, ref) -> list[Any]:
911
+ async def v1_list_all_secrets(self, ref) -> list[Any]:
957
912
  """
958
913
  Lists all secrets for the specified project reference via the v1 API.
959
914
 
@@ -978,7 +933,7 @@ class SupabaseApp(APIApplication):
978
933
  response.raise_for_status()
979
934
  return response.json()
980
935
 
981
- def v1_bulk_create_secrets(self, ref, items) -> Any:
936
+ async def v1_bulk_create_secrets(self, ref, items) -> Any:
982
937
  """
983
938
  Creates multiple secrets for a specified project reference in a single batch request.
984
939
 
@@ -1007,7 +962,7 @@ class SupabaseApp(APIApplication):
1007
962
  response.raise_for_status()
1008
963
  return response.json()
1009
964
 
1010
- def v1_bulk_delete_secrets(self, ref, items) -> dict[str, Any]:
965
+ async def v1_bulk_delete_secrets(self, ref, items) -> dict[str, Any]:
1011
966
  """
1012
967
  Deletes multiple secrets from a given project by making a bulk delete request.
1013
968
 
@@ -1035,7 +990,7 @@ class SupabaseApp(APIApplication):
1035
990
  response.raise_for_status()
1036
991
  return response.json()
1037
992
 
1038
- def v1_get_ssl_enforcement_config(self, ref) -> dict[str, Any]:
993
+ async def v1_get_ssl_enforcement_config(self, ref) -> dict[str, Any]:
1039
994
  """
1040
995
  Retrieves the SSL enforcement configuration for the specified project.
1041
996
 
@@ -1060,7 +1015,7 @@ class SupabaseApp(APIApplication):
1060
1015
  response.raise_for_status()
1061
1016
  return response.json()
1062
1017
 
1063
- def v1_update_ssl_enforcement_config(self, ref, requestedConfig) -> dict[str, Any]:
1018
+ async def v1_update_ssl_enforcement_config(self, ref, requestedConfig) -> dict[str, Any]:
1064
1019
  """
1065
1020
  Updates the SSL enforcement configuration for the specified project reference.
1066
1021
 
@@ -1082,9 +1037,7 @@ class SupabaseApp(APIApplication):
1082
1037
  raise ValueError("Missing required parameter 'ref'")
1083
1038
  if requestedConfig is None:
1084
1039
  raise ValueError("Missing required parameter 'requestedConfig'")
1085
- request_body = {
1086
- "requestedConfig": requestedConfig,
1087
- }
1040
+ request_body = {"requestedConfig": requestedConfig}
1088
1041
  request_body = {k: v for k, v in request_body.items() if v is not None}
1089
1042
  url = f"{self.base_url}/v1/projects/{ref}/ssl-enforcement"
1090
1043
  query_params = {}
@@ -1092,9 +1045,7 @@ class SupabaseApp(APIApplication):
1092
1045
  response.raise_for_status()
1093
1046
  return response.json()
1094
1047
 
1095
- def v1_generate_typescript_types(
1096
- self, ref, included_schemas=None
1097
- ) -> dict[str, Any]:
1048
+ async def v1_generate_typescript_types(self, ref, included_schemas=None) -> dict[str, Any]:
1098
1049
  """
1099
1050
  Generates TypeScript type definitions for a specified project reference, optionally including specific schemas.
1100
1051
 
@@ -1115,14 +1066,12 @@ class SupabaseApp(APIApplication):
1115
1066
  if ref is None:
1116
1067
  raise ValueError("Missing required parameter 'ref'")
1117
1068
  url = f"{self.base_url}/v1/projects/{ref}/types/typescript"
1118
- query_params = {
1119
- k: v for k, v in [("included_schemas", included_schemas)] if v is not None
1120
- }
1069
+ query_params = {k: v for k, v in [("included_schemas", included_schemas)] if v is not None}
1121
1070
  response = self._get(url, params=query_params)
1122
1071
  response.raise_for_status()
1123
1072
  return response.json()
1124
1073
 
1125
- def v1_get_vanity_subdomain_config(self, ref) -> dict[str, Any]:
1074
+ async def v1_get_vanity_subdomain_config(self, ref) -> dict[str, Any]:
1126
1075
  """
1127
1076
  Retrieve the vanity subdomain configuration for a given project reference.
1128
1077
 
@@ -1147,7 +1096,7 @@ class SupabaseApp(APIApplication):
1147
1096
  response.raise_for_status()
1148
1097
  return response.json()
1149
1098
 
1150
- def v1_deactivate_vanity_subdomain_config(self, ref) -> Any:
1099
+ async def v1_deactivate_vanity_subdomain_config(self, ref) -> Any:
1151
1100
  """
1152
1101
  Deactivates the vanity subdomain configuration for a specified project reference.
1153
1102
 
@@ -1172,9 +1121,7 @@ class SupabaseApp(APIApplication):
1172
1121
  response.raise_for_status()
1173
1122
  return response.json()
1174
1123
 
1175
- def v1_check_vanity_subdomain_availability(
1176
- self, ref, vanity_subdomain
1177
- ) -> dict[str, Any]:
1124
+ async def v1_check_vanity_subdomain_availability(self, ref, vanity_subdomain) -> dict[str, Any]:
1178
1125
  """
1179
1126
  Checks the availability of a specified vanity subdomain for a given project reference.
1180
1127
 
@@ -1196,9 +1143,7 @@ class SupabaseApp(APIApplication):
1196
1143
  raise ValueError("Missing required parameter 'ref'")
1197
1144
  if vanity_subdomain is None:
1198
1145
  raise ValueError("Missing required parameter 'vanity_subdomain'")
1199
- request_body = {
1200
- "vanity_subdomain": vanity_subdomain,
1201
- }
1146
+ request_body = {"vanity_subdomain": vanity_subdomain}
1202
1147
  request_body = {k: v for k, v in request_body.items() if v is not None}
1203
1148
  url = f"{self.base_url}/v1/projects/{ref}/vanity-subdomain/check-availability"
1204
1149
  query_params = {}
@@ -1206,9 +1151,7 @@ class SupabaseApp(APIApplication):
1206
1151
  response.raise_for_status()
1207
1152
  return response.json()
1208
1153
 
1209
- def v1_activate_vanity_subdomain_config(
1210
- self, ref, vanity_subdomain
1211
- ) -> dict[str, Any]:
1154
+ async def v1_activate_vanity_subdomain_config(self, ref, vanity_subdomain) -> dict[str, Any]:
1212
1155
  """
1213
1156
  Activates the vanity subdomain configuration for a specified project reference.
1214
1157
 
@@ -1230,9 +1173,7 @@ class SupabaseApp(APIApplication):
1230
1173
  raise ValueError("Missing required parameter 'ref'")
1231
1174
  if vanity_subdomain is None:
1232
1175
  raise ValueError("Missing required parameter 'vanity_subdomain'")
1233
- request_body = {
1234
- "vanity_subdomain": vanity_subdomain,
1235
- }
1176
+ request_body = {"vanity_subdomain": vanity_subdomain}
1236
1177
  request_body = {k: v for k, v in request_body.items() if v is not None}
1237
1178
  url = f"{self.base_url}/v1/projects/{ref}/vanity-subdomain/activate"
1238
1179
  query_params = {}
@@ -1240,9 +1181,7 @@ class SupabaseApp(APIApplication):
1240
1181
  response.raise_for_status()
1241
1182
  return response.json()
1242
1183
 
1243
- def v1_upgrade_postgres_version(
1244
- self, ref, release_channel, target_version
1245
- ) -> dict[str, Any]:
1184
+ async def v1_upgrade_postgres_version(self, ref, release_channel, target_version) -> dict[str, Any]:
1246
1185
  """
1247
1186
  Initiates an upgrade of a PostgreSQL instance to a specified target version via API call.
1248
1187
 
@@ -1267,10 +1206,7 @@ class SupabaseApp(APIApplication):
1267
1206
  raise ValueError("Missing required parameter 'release_channel'")
1268
1207
  if target_version is None:
1269
1208
  raise ValueError("Missing required parameter 'target_version'")
1270
- request_body = {
1271
- "release_channel": release_channel,
1272
- "target_version": target_version,
1273
- }
1209
+ request_body = {"release_channel": release_channel, "target_version": target_version}
1274
1210
  request_body = {k: v for k, v in request_body.items() if v is not None}
1275
1211
  url = f"{self.base_url}/v1/projects/{ref}/upgrade"
1276
1212
  query_params = {}
@@ -1278,7 +1214,7 @@ class SupabaseApp(APIApplication):
1278
1214
  response.raise_for_status()
1279
1215
  return response.json()
1280
1216
 
1281
- def v1_get_postgrest_upgrade_eligibility(self, ref) -> dict[str, Any]:
1217
+ async def v1_get_postgrest_upgrade_eligibility(self, ref) -> dict[str, Any]:
1282
1218
  """
1283
1219
  Checks the eligibility of a PostgREST upgrade for a specified project reference.
1284
1220
 
@@ -1303,7 +1239,7 @@ class SupabaseApp(APIApplication):
1303
1239
  response.raise_for_status()
1304
1240
  return response.json()
1305
1241
 
1306
- def v1_get_postgrest_upgrade_status(self, ref) -> dict[str, Any]:
1242
+ async def v1_get_postgrest_upgrade_status(self, ref) -> dict[str, Any]:
1307
1243
  """
1308
1244
  Retrieves the current upgrade status for a specified PostgREST project.
1309
1245
 
@@ -1328,7 +1264,7 @@ class SupabaseApp(APIApplication):
1328
1264
  response.raise_for_status()
1329
1265
  return response.json()
1330
1266
 
1331
- def v1_get_readonly_mode_status(self, ref) -> dict[str, Any]:
1267
+ async def v1_get_readonly_mode_status(self, ref) -> dict[str, Any]:
1332
1268
  """
1333
1269
  Retrieves the read-only mode status for a specified project reference.
1334
1270
 
@@ -1353,7 +1289,7 @@ class SupabaseApp(APIApplication):
1353
1289
  response.raise_for_status()
1354
1290
  return response.json()
1355
1291
 
1356
- def v1_disable_readonly_mode_temporarily(self, ref) -> Any:
1292
+ async def v1_disable_readonly_mode_temporarily(self, ref) -> Any:
1357
1293
  """
1358
1294
  Temporarily disables readonly mode for a specified project reference via a POST request.
1359
1295
 
@@ -1378,7 +1314,7 @@ class SupabaseApp(APIApplication):
1378
1314
  response.raise_for_status()
1379
1315
  return response.json()
1380
1316
 
1381
- def v1_setup_a_read_replica(self, ref, read_replica_region) -> Any:
1317
+ async def v1_setup_a_read_replica(self, ref, read_replica_region) -> Any:
1382
1318
  """
1383
1319
  Initiates the setup of a read replica for a specified project in the given region.
1384
1320
 
@@ -1400,9 +1336,7 @@ class SupabaseApp(APIApplication):
1400
1336
  raise ValueError("Missing required parameter 'ref'")
1401
1337
  if read_replica_region is None:
1402
1338
  raise ValueError("Missing required parameter 'read_replica_region'")
1403
- request_body = {
1404
- "read_replica_region": read_replica_region,
1405
- }
1339
+ request_body = {"read_replica_region": read_replica_region}
1406
1340
  request_body = {k: v for k, v in request_body.items() if v is not None}
1407
1341
  url = f"{self.base_url}/v1/projects/{ref}/read-replicas/setup"
1408
1342
  query_params = {}
@@ -1410,7 +1344,7 @@ class SupabaseApp(APIApplication):
1410
1344
  response.raise_for_status()
1411
1345
  return response.json()
1412
1346
 
1413
- def v1_remove_a_read_replica(self, ref, database_identifier) -> Any:
1347
+ async def v1_remove_a_read_replica(self, ref, database_identifier) -> Any:
1414
1348
  """
1415
1349
  Removes a read replica from a specified database within a project.
1416
1350
 
@@ -1432,9 +1366,7 @@ class SupabaseApp(APIApplication):
1432
1366
  raise ValueError("Missing required parameter 'ref'")
1433
1367
  if database_identifier is None:
1434
1368
  raise ValueError("Missing required parameter 'database_identifier'")
1435
- request_body = {
1436
- "database_identifier": database_identifier,
1437
- }
1369
+ request_body = {"database_identifier": database_identifier}
1438
1370
  request_body = {k: v for k, v in request_body.items() if v is not None}
1439
1371
  url = f"{self.base_url}/v1/projects/{ref}/read-replicas/remove"
1440
1372
  query_params = {}
@@ -1442,7 +1374,7 @@ class SupabaseApp(APIApplication):
1442
1374
  response.raise_for_status()
1443
1375
  return response.json()
1444
1376
 
1445
- def v1_get_services_health(self, ref, services, timeout_ms=None) -> list[Any]:
1377
+ async def v1_get_services_health(self, ref, services, timeout_ms=None) -> list[Any]:
1446
1378
  """
1447
1379
  Checks the health status of specified services for a given project reference.
1448
1380
 
@@ -1466,16 +1398,12 @@ class SupabaseApp(APIApplication):
1466
1398
  if services is None:
1467
1399
  raise ValueError("Missing required parameter 'services'")
1468
1400
  url = f"{self.base_url}/v1/projects/{ref}/health"
1469
- query_params = {
1470
- k: v
1471
- for k, v in [("timeout_ms", timeout_ms), ("services", services)]
1472
- if v is not None
1473
- }
1401
+ query_params = {k: v for k, v in [("timeout_ms", timeout_ms), ("services", services)] if v is not None}
1474
1402
  response = self._get(url, params=query_params)
1475
1403
  response.raise_for_status()
1476
1404
  return response.json()
1477
1405
 
1478
- def v1_get_postgres_config(self, ref) -> dict[str, Any]:
1406
+ async def v1_get_postgres_config(self, ref) -> dict[str, Any]:
1479
1407
  """
1480
1408
  Retrieves the PostgreSQL configuration for the specified project reference.
1481
1409
 
@@ -1500,7 +1428,7 @@ class SupabaseApp(APIApplication):
1500
1428
  response.raise_for_status()
1501
1429
  return response.json()
1502
1430
 
1503
- def v1_update_postgres_config(
1431
+ async def v1_update_postgres_config(
1504
1432
  self,
1505
1433
  ref,
1506
1434
  statement_timeout=None,
@@ -1582,7 +1510,7 @@ class SupabaseApp(APIApplication):
1582
1510
  response.raise_for_status()
1583
1511
  return response.json()
1584
1512
 
1585
- def v1_get_project_pgbouncer_config(self, ref) -> dict[str, Any]:
1513
+ async def v1_get_project_pgbouncer_config(self, ref) -> dict[str, Any]:
1586
1514
  """
1587
1515
  Retrieves the PgBouncer configuration for a specific project by project reference.
1588
1516
 
@@ -1607,7 +1535,7 @@ class SupabaseApp(APIApplication):
1607
1535
  response.raise_for_status()
1608
1536
  return response.json()
1609
1537
 
1610
- def v1_get_supavisor_config(self, ref) -> list[Any]:
1538
+ async def v1_get_supavisor_config(self, ref) -> list[Any]:
1611
1539
  """
1612
1540
  Retrieves the Supavisor configuration for a specified project reference from the configured API.
1613
1541
 
@@ -1632,9 +1560,7 @@ class SupabaseApp(APIApplication):
1632
1560
  response.raise_for_status()
1633
1561
  return response.json()
1634
1562
 
1635
- def v1_update_supavisor_config(
1636
- self, ref, default_pool_size=None, pool_mode=None
1637
- ) -> dict[str, Any]:
1563
+ async def v1_update_supavisor_config(self, ref, default_pool_size=None, pool_mode=None) -> dict[str, Any]:
1638
1564
  """
1639
1565
  Updates the Supavisor configuration for a specified project by modifying database pooler settings.
1640
1566
 
@@ -1655,10 +1581,7 @@ class SupabaseApp(APIApplication):
1655
1581
  """
1656
1582
  if ref is None:
1657
1583
  raise ValueError("Missing required parameter 'ref'")
1658
- request_body = {
1659
- "default_pool_size": default_pool_size,
1660
- "pool_mode": pool_mode,
1661
- }
1584
+ request_body = {"default_pool_size": default_pool_size, "pool_mode": pool_mode}
1662
1585
  request_body = {k: v for k, v in request_body.items() if v is not None}
1663
1586
  url = f"{self.base_url}/v1/projects/{ref}/config/database/pooler"
1664
1587
  query_params = {}
@@ -1666,7 +1589,7 @@ class SupabaseApp(APIApplication):
1666
1589
  response.raise_for_status()
1667
1590
  return response.json()
1668
1591
 
1669
- def v1_get_auth_service_config(self, ref) -> dict[str, Any]:
1592
+ async def v1_get_auth_service_config(self, ref) -> dict[str, Any]:
1670
1593
  """
1671
1594
  Retrieves the authentication service configuration for the specified project reference from the API.
1672
1595
 
@@ -1691,7 +1614,7 @@ class SupabaseApp(APIApplication):
1691
1614
  response.raise_for_status()
1692
1615
  return response.json()
1693
1616
 
1694
- def v1_update_auth_service_config(
1617
+ async def v1_update_auth_service_config(
1695
1618
  self,
1696
1619
  ref,
1697
1620
  site_url=None,
@@ -2229,9 +2152,7 @@ class SupabaseApp(APIApplication):
2229
2152
  response.raise_for_status()
2230
2153
  return response.json()
2231
2154
 
2232
- def create_tpafor_project(
2233
- self, ref, oidc_issuer_url=None, jwks_url=None, custom_jwks=None
2234
- ) -> dict[str, Any]:
2155
+ async def create_tpafor_project(self, ref, oidc_issuer_url=None, jwks_url=None, custom_jwks=None) -> dict[str, Any]:
2235
2156
  """
2236
2157
  Creates a third-party authentication (TPA) configuration for a specific project using provided OIDC or JWKS details.
2237
2158
 
@@ -2253,11 +2174,7 @@ class SupabaseApp(APIApplication):
2253
2174
  """
2254
2175
  if ref is None:
2255
2176
  raise ValueError("Missing required parameter 'ref'")
2256
- request_body = {
2257
- "oidc_issuer_url": oidc_issuer_url,
2258
- "jwks_url": jwks_url,
2259
- "custom_jwks": custom_jwks,
2260
- }
2177
+ request_body = {"oidc_issuer_url": oidc_issuer_url, "jwks_url": jwks_url, "custom_jwks": custom_jwks}
2261
2178
  request_body = {k: v for k, v in request_body.items() if v is not None}
2262
2179
  url = f"{self.base_url}/v1/projects/{ref}/config/auth/third-party-auth"
2263
2180
  query_params = {}
@@ -2265,7 +2182,7 @@ class SupabaseApp(APIApplication):
2265
2182
  response.raise_for_status()
2266
2183
  return response.json()
2267
2184
 
2268
- def list_tpafor_project(self, ref) -> list[Any]:
2185
+ async def list_tpafor_project(self, ref) -> list[Any]:
2269
2186
  """
2270
2187
  Retrieves the list of third-party authentication configurations for a specified project.
2271
2188
 
@@ -2290,7 +2207,7 @@ class SupabaseApp(APIApplication):
2290
2207
  response.raise_for_status()
2291
2208
  return response.json()
2292
2209
 
2293
- def delete_tpafor_project(self, ref, tpa_id) -> dict[str, Any]:
2210
+ async def delete_tpafor_project(self, ref, tpa_id) -> dict[str, Any]:
2294
2211
  """
2295
2212
  Deletes a third-party authentication provider configuration for a given project.
2296
2213
 
@@ -2318,7 +2235,7 @@ class SupabaseApp(APIApplication):
2318
2235
  response.raise_for_status()
2319
2236
  return response.json()
2320
2237
 
2321
- def get_tpafor_project(self, ref, tpa_id) -> dict[str, Any]:
2238
+ async def get_tpafor_project(self, ref, tpa_id) -> dict[str, Any]:
2322
2239
  """
2323
2240
  Retrieve the third-party authentication configuration for a specific project and TPA identifier.
2324
2241
 
@@ -2346,7 +2263,7 @@ class SupabaseApp(APIApplication):
2346
2263
  response.raise_for_status()
2347
2264
  return response.json()
2348
2265
 
2349
- def v1_run_a_query(self, ref, query) -> dict[str, Any]:
2266
+ async def v1_run_a_query(self, ref, query) -> dict[str, Any]:
2350
2267
  """
2351
2268
  Executes a database query for a specified project reference using the provided query string.
2352
2269
 
@@ -2368,9 +2285,7 @@ class SupabaseApp(APIApplication):
2368
2285
  raise ValueError("Missing required parameter 'ref'")
2369
2286
  if query is None:
2370
2287
  raise ValueError("Missing required parameter 'query'")
2371
- request_body = {
2372
- "query": query,
2373
- }
2288
+ request_body = {"query": query}
2374
2289
  request_body = {k: v for k, v in request_body.items() if v is not None}
2375
2290
  url = f"{self.base_url}/v1/projects/{ref}/database/query"
2376
2291
  query_params = {}
@@ -2378,7 +2293,7 @@ class SupabaseApp(APIApplication):
2378
2293
  response.raise_for_status()
2379
2294
  return response.json()
2380
2295
 
2381
- def v1_enable_database_webhook(self, ref) -> Any:
2296
+ async def v1_enable_database_webhook(self, ref) -> Any:
2382
2297
  """
2383
2298
  Enables the database webhook for the specified project reference.
2384
2299
 
@@ -2403,7 +2318,7 @@ class SupabaseApp(APIApplication):
2403
2318
  response.raise_for_status()
2404
2319
  return response.json()
2405
2320
 
2406
- def v1_list_all_functions(self, ref) -> list[Any]:
2321
+ async def v1_list_all_functions(self, ref) -> list[Any]:
2407
2322
  """
2408
2323
  Lists all available functions for the specified project reference.
2409
2324
 
@@ -2428,7 +2343,7 @@ class SupabaseApp(APIApplication):
2428
2343
  response.raise_for_status()
2429
2344
  return response.json()
2430
2345
 
2431
- def v1_get_a_function(self, ref, function_slug) -> dict[str, Any]:
2346
+ async def v1_get_a_function(self, ref, function_slug) -> dict[str, Any]:
2432
2347
  """
2433
2348
  Retrieves detailed information about a specific function from a project using the function's reference and slug.
2434
2349
 
@@ -2456,7 +2371,7 @@ class SupabaseApp(APIApplication):
2456
2371
  response.raise_for_status()
2457
2372
  return response.json()
2458
2373
 
2459
- def v1_update_a_function(
2374
+ async def v1_update_a_function(
2460
2375
  self,
2461
2376
  ref,
2462
2377
  function_slug,
@@ -2496,11 +2411,7 @@ class SupabaseApp(APIApplication):
2496
2411
  raise ValueError("Missing required parameter 'ref'")
2497
2412
  if function_slug is None:
2498
2413
  raise ValueError("Missing required parameter 'function_slug'")
2499
- request_body = {
2500
- "name": name,
2501
- "body": body,
2502
- "verify_jwt": verify_jwt,
2503
- }
2414
+ request_body = {"name": name, "body": body, "verify_jwt": verify_jwt}
2504
2415
  request_body = {k: v for k, v in request_body.items() if v is not None}
2505
2416
  url = f"{self.base_url}/v1/projects/{ref}/functions/{function_slug}"
2506
2417
  query_params = {
@@ -2519,7 +2430,7 @@ class SupabaseApp(APIApplication):
2519
2430
  response.raise_for_status()
2520
2431
  return response.json()
2521
2432
 
2522
- def v1_delete_a_function(self, ref, function_slug) -> Any:
2433
+ async def v1_delete_a_function(self, ref, function_slug) -> Any:
2523
2434
  """
2524
2435
  Deletes a specified function from a project using its reference and function slug.
2525
2436
 
@@ -2547,7 +2458,7 @@ class SupabaseApp(APIApplication):
2547
2458
  response.raise_for_status()
2548
2459
  return response.json()
2549
2460
 
2550
- def v1_get_a_function_body(self, ref, function_slug) -> Any:
2461
+ async def v1_get_a_function_body(self, ref, function_slug) -> Any:
2551
2462
  """
2552
2463
  Retrieves the body of a specified function from a project via a REST API call.
2553
2464
 
@@ -2575,7 +2486,7 @@ class SupabaseApp(APIApplication):
2575
2486
  response.raise_for_status()
2576
2487
  return response.json()
2577
2488
 
2578
- def v1_list_all_buckets(self, ref) -> list[Any]:
2489
+ async def v1_list_all_buckets(self, ref) -> list[Any]:
2579
2490
  """
2580
2491
  Retrieves a list of all storage buckets for the specified project reference.
2581
2492
 
@@ -2600,14 +2511,8 @@ class SupabaseApp(APIApplication):
2600
2511
  response.raise_for_status()
2601
2512
  return response.json()
2602
2513
 
2603
- def v1_create_a_sso_provider(
2604
- self,
2605
- ref,
2606
- type,
2607
- metadata_xml=None,
2608
- metadata_url=None,
2609
- domains=None,
2610
- attribute_mapping=None,
2514
+ async def v1_create_a_sso_provider(
2515
+ self, ref, type, metadata_xml=None, metadata_url=None, domains=None, attribute_mapping=None
2611
2516
  ) -> dict[str, Any]:
2612
2517
  """
2613
2518
  Creates a new Single Sign-On (SSO) provider configuration for the specified project.
@@ -2648,7 +2553,7 @@ class SupabaseApp(APIApplication):
2648
2553
  response.raise_for_status()
2649
2554
  return response.json()
2650
2555
 
2651
- def v1_list_all_sso_provider(self, ref) -> dict[str, Any]:
2556
+ async def v1_list_all_sso_provider(self, ref) -> dict[str, Any]:
2652
2557
  """
2653
2558
  Retrieves a list of all SSO providers configured for the specified project.
2654
2559
 
@@ -2673,7 +2578,7 @@ class SupabaseApp(APIApplication):
2673
2578
  response.raise_for_status()
2674
2579
  return response.json()
2675
2580
 
2676
- def v1_get_a_sso_provider(self, ref, provider_id) -> dict[str, Any]:
2581
+ async def v1_get_a_sso_provider(self, ref, provider_id) -> dict[str, Any]:
2677
2582
  """
2678
2583
  Retrieves details of a specific SSO provider configuration for the given project reference and provider ID.
2679
2584
 
@@ -2695,22 +2600,14 @@ class SupabaseApp(APIApplication):
2695
2600
  raise ValueError("Missing required parameter 'ref'")
2696
2601
  if provider_id is None:
2697
2602
  raise ValueError("Missing required parameter 'provider_id'")
2698
- url = (
2699
- f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers/{provider_id}"
2700
- )
2603
+ url = f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers/{provider_id}"
2701
2604
  query_params = {}
2702
2605
  response = self._get(url, params=query_params)
2703
2606
  response.raise_for_status()
2704
2607
  return response.json()
2705
2608
 
2706
- def v1_update_a_sso_provider(
2707
- self,
2708
- ref,
2709
- provider_id,
2710
- metadata_xml=None,
2711
- metadata_url=None,
2712
- domains=None,
2713
- attribute_mapping=None,
2609
+ async def v1_update_a_sso_provider(
2610
+ self, ref, provider_id, metadata_xml=None, metadata_url=None, domains=None, attribute_mapping=None
2714
2611
  ) -> dict[str, Any]:
2715
2612
  """
2716
2613
  Updates the configuration of an existing SSO provider using the provided metadata and attributes.
@@ -2744,15 +2641,13 @@ class SupabaseApp(APIApplication):
2744
2641
  "attribute_mapping": attribute_mapping,
2745
2642
  }
2746
2643
  request_body = {k: v for k, v in request_body.items() if v is not None}
2747
- url = (
2748
- f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers/{provider_id}"
2749
- )
2644
+ url = f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers/{provider_id}"
2750
2645
  query_params = {}
2751
2646
  response = self._put(url, data=request_body, params=query_params)
2752
2647
  response.raise_for_status()
2753
2648
  return response.json()
2754
2649
 
2755
- def v1_delete_a_sso_provider(self, ref, provider_id) -> dict[str, Any]:
2650
+ async def v1_delete_a_sso_provider(self, ref, provider_id) -> dict[str, Any]:
2756
2651
  """
2757
2652
  Deletes a specified SSO provider from the given project configuration.
2758
2653
 
@@ -2774,15 +2669,13 @@ class SupabaseApp(APIApplication):
2774
2669
  raise ValueError("Missing required parameter 'ref'")
2775
2670
  if provider_id is None:
2776
2671
  raise ValueError("Missing required parameter 'provider_id'")
2777
- url = (
2778
- f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers/{provider_id}"
2779
- )
2672
+ url = f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers/{provider_id}"
2780
2673
  query_params = {}
2781
2674
  response = self._delete(url, params=query_params)
2782
2675
  response.raise_for_status()
2783
2676
  return response.json()
2784
2677
 
2785
- def v1_list_all_backups(self, ref) -> dict[str, Any]:
2678
+ async def v1_list_all_backups(self, ref) -> dict[str, Any]:
2786
2679
  """
2787
2680
  Retrieves a list of all database backups for the specified project reference.
2788
2681
 
@@ -2807,7 +2700,7 @@ class SupabaseApp(APIApplication):
2807
2700
  response.raise_for_status()
2808
2701
  return response.json()
2809
2702
 
2810
- def v1_restore_pitr_backup(self, ref, recovery_time_target_unix) -> Any:
2703
+ async def v1_restore_pitr_backup(self, ref, recovery_time_target_unix) -> Any:
2811
2704
  """
2812
2705
  Initiates a point-in-time restore operation for a database backup using the specified reference and recovery time target.
2813
2706
 
@@ -2829,9 +2722,7 @@ class SupabaseApp(APIApplication):
2829
2722
  raise ValueError("Missing required parameter 'ref'")
2830
2723
  if recovery_time_target_unix is None:
2831
2724
  raise ValueError("Missing required parameter 'recovery_time_target_unix'")
2832
- request_body = {
2833
- "recovery_time_target_unix": recovery_time_target_unix,
2834
- }
2725
+ request_body = {"recovery_time_target_unix": recovery_time_target_unix}
2835
2726
  request_body = {k: v for k, v in request_body.items() if v is not None}
2836
2727
  url = f"{self.base_url}/v1/projects/{ref}/database/backups/restore-pitr"
2837
2728
  query_params = {}
@@ -2839,7 +2730,7 @@ class SupabaseApp(APIApplication):
2839
2730
  response.raise_for_status()
2840
2731
  return response.json()
2841
2732
 
2842
- def v1_list_organization_members(self, slug) -> list[Any]:
2733
+ async def v1_list_organization_members(self, slug) -> list[Any]:
2843
2734
  """
2844
2735
  Retrieves a list of members associated with the specified organization slug via the v1 API.
2845
2736
 
@@ -2864,7 +2755,7 @@ class SupabaseApp(APIApplication):
2864
2755
  response.raise_for_status()
2865
2756
  return response.json()
2866
2757
 
2867
- def v1_get_an_organization(self, slug) -> dict[str, Any]:
2758
+ async def v1_get_an_organization(self, slug) -> dict[str, Any]:
2868
2759
  """
2869
2760
  Retrieves details of a specific organization by its unique slug identifier.
2870
2761