universal-mcp-applications 0.1.33__py3-none-any.whl → 0.1.39rc8__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.

Files changed (113) hide show
  1. universal_mcp/applications/ahrefs/app.py +92 -238
  2. universal_mcp/applications/airtable/app.py +23 -122
  3. universal_mcp/applications/apollo/app.py +122 -475
  4. universal_mcp/applications/asana/app.py +605 -1755
  5. universal_mcp/applications/aws_s3/app.py +36 -103
  6. universal_mcp/applications/bill/app.py +644 -2055
  7. universal_mcp/applications/box/app.py +1246 -4159
  8. universal_mcp/applications/braze/app.py +410 -1476
  9. universal_mcp/applications/browser_use/README.md +15 -1
  10. universal_mcp/applications/browser_use/__init__.py +1 -0
  11. universal_mcp/applications/browser_use/app.py +86 -24
  12. universal_mcp/applications/cal_com_v2/app.py +207 -625
  13. universal_mcp/applications/calendly/app.py +103 -242
  14. universal_mcp/applications/canva/app.py +75 -140
  15. universal_mcp/applications/clickup/app.py +331 -798
  16. universal_mcp/applications/coda/app.py +240 -520
  17. universal_mcp/applications/confluence/app.py +497 -1285
  18. universal_mcp/applications/contentful/app.py +36 -151
  19. universal_mcp/applications/crustdata/app.py +42 -121
  20. universal_mcp/applications/dialpad/app.py +451 -924
  21. universal_mcp/applications/digitalocean/app.py +2071 -6082
  22. universal_mcp/applications/domain_checker/app.py +3 -54
  23. universal_mcp/applications/e2b/app.py +14 -64
  24. universal_mcp/applications/elevenlabs/app.py +9 -47
  25. universal_mcp/applications/exa/README.md +8 -4
  26. universal_mcp/applications/exa/app.py +408 -186
  27. universal_mcp/applications/falai/app.py +24 -101
  28. universal_mcp/applications/figma/app.py +91 -175
  29. universal_mcp/applications/file_system/app.py +2 -13
  30. universal_mcp/applications/firecrawl/app.py +186 -163
  31. universal_mcp/applications/fireflies/app.py +59 -281
  32. universal_mcp/applications/fpl/app.py +92 -529
  33. universal_mcp/applications/fpl/utils/fixtures.py +15 -49
  34. universal_mcp/applications/fpl/utils/helper.py +25 -89
  35. universal_mcp/applications/fpl/utils/league_utils.py +20 -64
  36. universal_mcp/applications/ghost_content/app.py +66 -175
  37. universal_mcp/applications/github/app.py +28 -65
  38. universal_mcp/applications/gong/app.py +140 -300
  39. universal_mcp/applications/google_calendar/app.py +26 -78
  40. universal_mcp/applications/google_docs/app.py +98 -202
  41. universal_mcp/applications/google_drive/app.py +194 -793
  42. universal_mcp/applications/google_gemini/app.py +27 -62
  43. universal_mcp/applications/google_mail/README.md +1 -0
  44. universal_mcp/applications/google_mail/app.py +93 -214
  45. universal_mcp/applications/google_searchconsole/app.py +25 -58
  46. universal_mcp/applications/google_sheet/app.py +171 -624
  47. universal_mcp/applications/google_sheet/helper.py +26 -53
  48. universal_mcp/applications/hashnode/app.py +57 -269
  49. universal_mcp/applications/heygen/app.py +77 -155
  50. universal_mcp/applications/http_tools/app.py +10 -32
  51. universal_mcp/applications/hubspot/README.md +1 -1
  52. universal_mcp/applications/hubspot/app.py +7508 -99
  53. universal_mcp/applications/jira/app.py +2419 -8334
  54. universal_mcp/applications/klaviyo/app.py +737 -1619
  55. universal_mcp/applications/linkedin/README.md +5 -0
  56. universal_mcp/applications/linkedin/app.py +332 -227
  57. universal_mcp/applications/mailchimp/app.py +696 -1851
  58. universal_mcp/applications/markitdown/app.py +8 -20
  59. universal_mcp/applications/miro/app.py +333 -815
  60. universal_mcp/applications/ms_teams/app.py +85 -207
  61. universal_mcp/applications/neon/app.py +144 -250
  62. universal_mcp/applications/notion/app.py +36 -51
  63. universal_mcp/applications/onedrive/app.py +26 -48
  64. universal_mcp/applications/openai/app.py +42 -165
  65. universal_mcp/applications/outlook/README.md +22 -9
  66. universal_mcp/applications/outlook/app.py +403 -141
  67. universal_mcp/applications/perplexity/README.md +2 -1
  68. universal_mcp/applications/perplexity/app.py +162 -20
  69. universal_mcp/applications/pipedrive/app.py +1021 -3331
  70. universal_mcp/applications/posthog/app.py +272 -541
  71. universal_mcp/applications/reddit/app.py +61 -160
  72. universal_mcp/applications/resend/app.py +41 -107
  73. universal_mcp/applications/retell/app.py +23 -50
  74. universal_mcp/applications/rocketlane/app.py +250 -963
  75. universal_mcp/applications/scraper/app.py +67 -125
  76. universal_mcp/applications/semanticscholar/app.py +36 -78
  77. universal_mcp/applications/semrush/app.py +43 -77
  78. universal_mcp/applications/sendgrid/app.py +826 -1576
  79. universal_mcp/applications/sentry/app.py +444 -1079
  80. universal_mcp/applications/serpapi/app.py +40 -143
  81. universal_mcp/applications/sharepoint/app.py +27 -49
  82. universal_mcp/applications/shopify/app.py +1743 -4479
  83. universal_mcp/applications/shortcut/app.py +272 -534
  84. universal_mcp/applications/slack/app.py +41 -123
  85. universal_mcp/applications/spotify/app.py +206 -405
  86. universal_mcp/applications/supabase/app.py +174 -283
  87. universal_mcp/applications/tavily/app.py +2 -2
  88. universal_mcp/applications/trello/app.py +853 -2816
  89. universal_mcp/applications/twilio/app.py +14 -50
  90. universal_mcp/applications/twitter/api_segments/compliance_api.py +4 -14
  91. universal_mcp/applications/twitter/api_segments/dm_conversations_api.py +6 -18
  92. universal_mcp/applications/twitter/api_segments/likes_api.py +1 -3
  93. universal_mcp/applications/twitter/api_segments/lists_api.py +5 -15
  94. universal_mcp/applications/twitter/api_segments/trends_api.py +1 -3
  95. universal_mcp/applications/twitter/api_segments/tweets_api.py +9 -31
  96. universal_mcp/applications/twitter/api_segments/usage_api.py +1 -5
  97. universal_mcp/applications/twitter/api_segments/users_api.py +14 -42
  98. universal_mcp/applications/whatsapp/app.py +35 -186
  99. universal_mcp/applications/whatsapp/audio.py +2 -6
  100. universal_mcp/applications/whatsapp/whatsapp.py +17 -51
  101. universal_mcp/applications/whatsapp_business/app.py +86 -299
  102. universal_mcp/applications/wrike/app.py +80 -153
  103. universal_mcp/applications/yahoo_finance/app.py +19 -65
  104. universal_mcp/applications/youtube/app.py +120 -306
  105. universal_mcp/applications/zenquotes/app.py +3 -3
  106. {universal_mcp_applications-0.1.33.dist-info → universal_mcp_applications-0.1.39rc8.dist-info}/METADATA +4 -2
  107. {universal_mcp_applications-0.1.33.dist-info → universal_mcp_applications-0.1.39rc8.dist-info}/RECORD +109 -113
  108. {universal_mcp_applications-0.1.33.dist-info → universal_mcp_applications-0.1.39rc8.dist-info}/WHEEL +1 -1
  109. universal_mcp/applications/hubspot/api_segments/__init__.py +0 -0
  110. universal_mcp/applications/hubspot/api_segments/api_segment_base.py +0 -54
  111. universal_mcp/applications/hubspot/api_segments/crm_api.py +0 -7337
  112. universal_mcp/applications/hubspot/api_segments/marketing_api.py +0 -1467
  113. {universal_mcp_applications-0.1.33.dist-info → universal_mcp_applications-0.1.39rc8.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
 
@@ -30,18 +29,12 @@ class SupabaseApp(APIApplication):
30
29
  raise ValueError("Missing required parameter 'branch_id'")
31
30
  url = f"{self.base_url}/v1/branches/{branch_id}"
32
31
  query_params = {}
33
- response = self._get(url, params=query_params)
32
+ response = await self._aget(url, params=query_params)
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
 
@@ -101,11 +94,11 @@ class SupabaseApp(APIApplication):
101
94
  raise ValueError("Missing required parameter 'branch_id'")
102
95
  url = f"{self.base_url}/v1/branches/{branch_id}"
103
96
  query_params = {}
104
- response = self._delete(url, params=query_params)
97
+ response = await self._adelete(url, params=query_params)
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
 
@@ -126,13 +119,11 @@ class SupabaseApp(APIApplication):
126
119
  raise ValueError("Missing required parameter 'branch_id'")
127
120
  url = f"{self.base_url}/v1/branches/{branch_id}/reset"
128
121
  query_params = {}
129
- response = self._post(url, data={}, params=query_params)
122
+ response = await self._apost(url, data={}, params=query_params)
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
 
@@ -150,11 +141,11 @@ class SupabaseApp(APIApplication):
150
141
  """
151
142
  url = f"{self.base_url}/v1/projects"
152
143
  query_params = {}
153
- response = self._get(url, params=query_params)
144
+ response = await self._aget(url, params=query_params)
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,
@@ -215,13 +206,11 @@ class SupabaseApp(APIApplication):
215
206
  request_body = {k: v for k, v in request_body.items() if v is not None}
216
207
  url = f"{self.base_url}/v1/projects"
217
208
  query_params = {}
218
- response = self._post(url, data=request_body, params=query_params)
209
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -239,11 +228,11 @@ class SupabaseApp(APIApplication):
239
228
  """
240
229
  url = f"{self.base_url}/v1/organizations"
241
230
  query_params = {}
242
- response = self._get(url, params=query_params)
231
+ response = await self._aget(url, params=query_params)
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,17 +251,15 @@ 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 = {}
271
- response = self._post(url, data=request_body, params=query_params)
258
+ response = await self._apost(url, data=request_body, params=query_params)
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,
@@ -327,11 +314,11 @@ class SupabaseApp(APIApplication):
327
314
  ]
328
315
  if v is not None
329
316
  }
330
- response = self._get(url, params=query_params)
317
+ response = await self._aget(url, params=query_params)
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
- }
354
- response = self._get(url, params=query_params)
338
+ query_params = {k: v for k, v in [("project_ref", project_ref)] if v is not None}
339
+ response = await self._aget(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
 
@@ -376,11 +361,11 @@ class SupabaseApp(APIApplication):
376
361
  raise ValueError("Missing required parameter 'id'")
377
362
  url = f"{self.base_url}/v1/snippets/{id}"
378
363
  query_params = {}
379
- response = self._get(url, params=query_params)
364
+ response = await self._aget(url, params=query_params)
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
 
@@ -401,13 +386,11 @@ class SupabaseApp(APIApplication):
401
386
  raise ValueError("Missing required parameter 'ref'")
402
387
  url = f"{self.base_url}/v1/projects/{ref}/api-keys"
403
388
  query_params = {}
404
- response = self._get(url, params=query_params)
389
+ response = await self._aget(url, params=query_params)
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,21 +414,15 @@ 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 = {}
442
- response = self._post(url, data=request_body, params=query_params)
421
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -504,11 +478,11 @@ class SupabaseApp(APIApplication):
504
478
  raise ValueError("Missing required parameter 'id'")
505
479
  url = f"{self.base_url}/v1/projects/{ref}/api-keys/{id}"
506
480
  query_params = {}
507
- response = self._delete(url, params=query_params)
481
+ response = await self._adelete(url, params=query_params)
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
 
@@ -529,11 +503,11 @@ class SupabaseApp(APIApplication):
529
503
  raise ValueError("Missing required parameter 'ref'")
530
504
  url = f"{self.base_url}/v1/projects/{ref}/branches"
531
505
  query_params = {}
532
- response = self._get(url, params=query_params)
506
+ response = await self._aget(url, params=query_params)
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,
@@ -583,11 +557,11 @@ class SupabaseApp(APIApplication):
583
557
  request_body = {k: v for k, v in request_body.items() if v is not None}
584
558
  url = f"{self.base_url}/v1/projects/{ref}/branches"
585
559
  query_params = {}
586
- response = self._post(url, data=request_body, params=query_params)
560
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -608,11 +582,11 @@ class SupabaseApp(APIApplication):
608
582
  raise ValueError("Missing required parameter 'ref'")
609
583
  url = f"{self.base_url}/v1/projects/{ref}/branches"
610
584
  query_params = {}
611
- response = self._delete(url, params=query_params)
585
+ response = await self._adelete(url, params=query_params)
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
 
@@ -633,11 +607,11 @@ class SupabaseApp(APIApplication):
633
607
  raise ValueError("Missing required parameter 'ref'")
634
608
  url = f"{self.base_url}/v1/projects/{ref}/custom-hostname"
635
609
  query_params = {}
636
- response = self._get(url, params=query_params)
610
+ response = await self._aget(url, params=query_params)
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
 
@@ -658,11 +632,11 @@ class SupabaseApp(APIApplication):
658
632
  raise ValueError("Missing required parameter 'ref'")
659
633
  url = f"{self.base_url}/v1/projects/{ref}/custom-hostname/reverify"
660
634
  query_params = {}
661
- response = self._post(url, data={}, params=query_params)
635
+ response = await self._apost(url, data={}, params=query_params)
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
 
@@ -683,11 +657,11 @@ class SupabaseApp(APIApplication):
683
657
  raise ValueError("Missing required parameter 'ref'")
684
658
  url = f"{self.base_url}/v1/projects/{ref}/custom-hostname/activate"
685
659
  query_params = {}
686
- response = self._post(url, data={}, params=query_params)
660
+ response = await self._apost(url, data={}, params=query_params)
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
 
@@ -708,11 +682,11 @@ class SupabaseApp(APIApplication):
708
682
  raise ValueError("Missing required parameter 'ref'")
709
683
  url = f"{self.base_url}/v1/projects/{ref}/network-bans/retrieve"
710
684
  query_params = {}
711
- response = self._post(url, data={}, params=query_params)
685
+ response = await self._apost(url, data={}, params=query_params)
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,17 +708,15 @@ 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 = {}
743
- response = self._delete(url, params=query_params)
715
+ response = await self._adelete(url, params=query_params)
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
 
@@ -765,13 +737,11 @@ class SupabaseApp(APIApplication):
765
737
  raise ValueError("Missing required parameter 'ref'")
766
738
  url = f"{self.base_url}/v1/projects/{ref}/network-restrictions"
767
739
  query_params = {}
768
- response = self._get(url, params=query_params)
740
+ response = await self._aget(url, params=query_params)
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,18 +762,15 @@ 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 = {}
802
- response = self._post(url, data=request_body, params=query_params)
769
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -824,11 +791,11 @@ class SupabaseApp(APIApplication):
824
791
  raise ValueError("Missing required parameter 'ref'")
825
792
  url = f"{self.base_url}/v1/projects/{ref}/pgsodium"
826
793
  query_params = {}
827
- response = self._get(url, params=query_params)
794
+ response = await self._aget(url, params=query_params)
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,17 +817,15 @@ 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 = {}
859
- response = self._put(url, data=request_body, params=query_params)
824
+ response = await self._aput(url, data=request_body, params=query_params)
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
 
@@ -881,17 +846,12 @@ class SupabaseApp(APIApplication):
881
846
  raise ValueError("Missing required parameter 'ref'")
882
847
  url = f"{self.base_url}/v1/projects/{ref}/postgrest"
883
848
  query_params = {}
884
- response = self._get(url, params=query_params)
849
+ response = await self._aget(url, params=query_params)
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
 
@@ -949,11 +904,11 @@ class SupabaseApp(APIApplication):
949
904
  raise ValueError("Missing required parameter 'ref'")
950
905
  url = f"{self.base_url}/v1/projects/{ref}"
951
906
  query_params = {}
952
- response = self._delete(url, params=query_params)
907
+ response = await self._adelete(url, params=query_params)
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
 
@@ -974,11 +929,11 @@ class SupabaseApp(APIApplication):
974
929
  raise ValueError("Missing required parameter 'ref'")
975
930
  url = f"{self.base_url}/v1/projects/{ref}/secrets"
976
931
  query_params = {}
977
- response = self._get(url, params=query_params)
932
+ response = await self._aget(url, params=query_params)
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
 
@@ -1003,11 +958,11 @@ class SupabaseApp(APIApplication):
1003
958
  request_body = items
1004
959
  url = f"{self.base_url}/v1/projects/{ref}/secrets"
1005
960
  query_params = {}
1006
- response = self._post(url, data=request_body, params=query_params)
961
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -1031,11 +986,11 @@ class SupabaseApp(APIApplication):
1031
986
  raise ValueError("Missing required parameter 'items'")
1032
987
  url = f"{self.base_url}/v1/projects/{ref}/secrets"
1033
988
  query_params = {}
1034
- response = self._delete(url, params=query_params)
989
+ response = await self._adelete(url, params=query_params)
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
 
@@ -1056,11 +1011,11 @@ class SupabaseApp(APIApplication):
1056
1011
  raise ValueError("Missing required parameter 'ref'")
1057
1012
  url = f"{self.base_url}/v1/projects/{ref}/ssl-enforcement"
1058
1013
  query_params = {}
1059
- response = self._get(url, params=query_params)
1014
+ response = await self._aget(url, params=query_params)
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,19 +1037,15 @@ 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 = {}
1091
- response = self._put(url, data=request_body, params=query_params)
1044
+ response = await self._aput(url, data=request_body, params=query_params)
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
- }
1121
- response = self._get(url, params=query_params)
1069
+ query_params = {k: v for k, v in [("included_schemas", included_schemas)] if v is not None}
1070
+ response = await self._aget(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
 
@@ -1143,11 +1092,11 @@ class SupabaseApp(APIApplication):
1143
1092
  raise ValueError("Missing required parameter 'ref'")
1144
1093
  url = f"{self.base_url}/v1/projects/{ref}/vanity-subdomain"
1145
1094
  query_params = {}
1146
- response = self._get(url, params=query_params)
1095
+ response = await self._aget(url, params=query_params)
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
 
@@ -1168,13 +1117,11 @@ class SupabaseApp(APIApplication):
1168
1117
  raise ValueError("Missing required parameter 'ref'")
1169
1118
  url = f"{self.base_url}/v1/projects/{ref}/vanity-subdomain"
1170
1119
  query_params = {}
1171
- response = self._delete(url, params=query_params)
1120
+ response = await self._adelete(url, params=query_params)
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,19 +1143,15 @@ 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 = {}
1205
- response = self._post(url, data=request_body, params=query_params)
1150
+ response = await self._apost(url, data=request_body, params=query_params)
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,19 +1173,15 @@ 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 = {}
1239
- response = self._post(url, data=request_body, params=query_params)
1180
+ response = await self._apost(url, data=request_body, params=query_params)
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,18 +1206,15 @@ 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 = {}
1277
- response = self._post(url, data=request_body, params=query_params)
1213
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -1299,11 +1235,11 @@ class SupabaseApp(APIApplication):
1299
1235
  raise ValueError("Missing required parameter 'ref'")
1300
1236
  url = f"{self.base_url}/v1/projects/{ref}/upgrade/eligibility"
1301
1237
  query_params = {}
1302
- response = self._get(url, params=query_params)
1238
+ response = await self._aget(url, params=query_params)
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
 
@@ -1324,11 +1260,11 @@ class SupabaseApp(APIApplication):
1324
1260
  raise ValueError("Missing required parameter 'ref'")
1325
1261
  url = f"{self.base_url}/v1/projects/{ref}/upgrade/status"
1326
1262
  query_params = {}
1327
- response = self._get(url, params=query_params)
1263
+ response = await self._aget(url, params=query_params)
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
 
@@ -1349,11 +1285,11 @@ class SupabaseApp(APIApplication):
1349
1285
  raise ValueError("Missing required parameter 'ref'")
1350
1286
  url = f"{self.base_url}/v1/projects/{ref}/readonly"
1351
1287
  query_params = {}
1352
- response = self._get(url, params=query_params)
1288
+ response = await self._aget(url, params=query_params)
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
 
@@ -1374,11 +1310,11 @@ class SupabaseApp(APIApplication):
1374
1310
  raise ValueError("Missing required parameter 'ref'")
1375
1311
  url = f"{self.base_url}/v1/projects/{ref}/readonly/temporary-disable"
1376
1312
  query_params = {}
1377
- response = self._post(url, data={}, params=query_params)
1313
+ response = await self._apost(url, data={}, params=query_params)
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,17 +1336,15 @@ 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 = {}
1409
- response = self._post(url, data=request_body, params=query_params)
1343
+ response = await self._apost(url, data=request_body, params=query_params)
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,17 +1366,15 @@ 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 = {}
1441
- response = self._post(url, data=request_body, params=query_params)
1373
+ response = await self._apost(url, data=request_body, params=query_params)
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
- }
1474
- response = self._get(url, params=query_params)
1401
+ query_params = {k: v for k, v in [("timeout_ms", timeout_ms), ("services", services)] if v is not None}
1402
+ response = await self._aget(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
 
@@ -1496,11 +1424,11 @@ class SupabaseApp(APIApplication):
1496
1424
  raise ValueError("Missing required parameter 'ref'")
1497
1425
  url = f"{self.base_url}/v1/projects/{ref}/config/database/postgres"
1498
1426
  query_params = {}
1499
- response = self._get(url, params=query_params)
1427
+ response = await self._aget(url, params=query_params)
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,
@@ -1578,11 +1506,11 @@ class SupabaseApp(APIApplication):
1578
1506
  request_body = {k: v for k, v in request_body.items() if v is not None}
1579
1507
  url = f"{self.base_url}/v1/projects/{ref}/config/database/postgres"
1580
1508
  query_params = {}
1581
- response = self._put(url, data=request_body, params=query_params)
1509
+ response = await self._aput(url, data=request_body, params=query_params)
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
 
@@ -1603,11 +1531,11 @@ class SupabaseApp(APIApplication):
1603
1531
  raise ValueError("Missing required parameter 'ref'")
1604
1532
  url = f"{self.base_url}/v1/projects/{ref}/config/database/pgbouncer"
1605
1533
  query_params = {}
1606
- response = self._get(url, params=query_params)
1534
+ response = await self._aget(url, params=query_params)
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
 
@@ -1628,13 +1556,11 @@ class SupabaseApp(APIApplication):
1628
1556
  raise ValueError("Missing required parameter 'ref'")
1629
1557
  url = f"{self.base_url}/v1/projects/{ref}/config/database/pooler"
1630
1558
  query_params = {}
1631
- response = self._get(url, params=query_params)
1559
+ response = await self._aget(url, params=query_params)
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
 
@@ -1687,11 +1610,11 @@ class SupabaseApp(APIApplication):
1687
1610
  raise ValueError("Missing required parameter 'ref'")
1688
1611
  url = f"{self.base_url}/v1/projects/{ref}/config/auth"
1689
1612
  query_params = {}
1690
- response = self._get(url, params=query_params)
1613
+ response = await self._aget(url, params=query_params)
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,19 +2174,15 @@ 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 = {}
2264
- response = self._post(url, data=request_body, params=query_params)
2181
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -2286,11 +2203,11 @@ class SupabaseApp(APIApplication):
2286
2203
  raise ValueError("Missing required parameter 'ref'")
2287
2204
  url = f"{self.base_url}/v1/projects/{ref}/config/auth/third-party-auth"
2288
2205
  query_params = {}
2289
- response = self._get(url, params=query_params)
2206
+ response = await self._aget(url, params=query_params)
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
 
@@ -2314,11 +2231,11 @@ class SupabaseApp(APIApplication):
2314
2231
  raise ValueError("Missing required parameter 'tpa_id'")
2315
2232
  url = f"{self.base_url}/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}"
2316
2233
  query_params = {}
2317
- response = self._delete(url, params=query_params)
2234
+ response = await self._adelete(url, params=query_params)
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
 
@@ -2342,11 +2259,11 @@ class SupabaseApp(APIApplication):
2342
2259
  raise ValueError("Missing required parameter 'tpa_id'")
2343
2260
  url = f"{self.base_url}/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}"
2344
2261
  query_params = {}
2345
- response = self._get(url, params=query_params)
2262
+ response = await self._aget(url, params=query_params)
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,17 +2285,15 @@ 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 = {}
2377
- response = self._post(url, data=request_body, params=query_params)
2292
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -2399,11 +2314,11 @@ class SupabaseApp(APIApplication):
2399
2314
  raise ValueError("Missing required parameter 'ref'")
2400
2315
  url = f"{self.base_url}/v1/projects/{ref}/database/webhooks/enable"
2401
2316
  query_params = {}
2402
- response = self._post(url, data={}, params=query_params)
2317
+ response = await self._apost(url, data={}, params=query_params)
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
 
@@ -2424,11 +2339,11 @@ class SupabaseApp(APIApplication):
2424
2339
  raise ValueError("Missing required parameter 'ref'")
2425
2340
  url = f"{self.base_url}/v1/projects/{ref}/functions"
2426
2341
  query_params = {}
2427
- response = self._get(url, params=query_params)
2342
+ response = await self._aget(url, params=query_params)
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
 
@@ -2452,11 +2367,11 @@ class SupabaseApp(APIApplication):
2452
2367
  raise ValueError("Missing required parameter 'function_slug'")
2453
2368
  url = f"{self.base_url}/v1/projects/{ref}/functions/{function_slug}"
2454
2369
  query_params = {}
2455
- response = self._get(url, params=query_params)
2370
+ response = await self._aget(url, params=query_params)
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
 
@@ -2543,11 +2454,11 @@ class SupabaseApp(APIApplication):
2543
2454
  raise ValueError("Missing required parameter 'function_slug'")
2544
2455
  url = f"{self.base_url}/v1/projects/{ref}/functions/{function_slug}"
2545
2456
  query_params = {}
2546
- response = self._delete(url, params=query_params)
2457
+ response = await self._adelete(url, params=query_params)
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
 
@@ -2571,11 +2482,11 @@ class SupabaseApp(APIApplication):
2571
2482
  raise ValueError("Missing required parameter 'function_slug'")
2572
2483
  url = f"{self.base_url}/v1/projects/{ref}/functions/{function_slug}/body"
2573
2484
  query_params = {}
2574
- response = self._get(url, params=query_params)
2485
+ response = await self._aget(url, params=query_params)
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
 
@@ -2596,18 +2507,12 @@ class SupabaseApp(APIApplication):
2596
2507
  raise ValueError("Missing required parameter 'ref'")
2597
2508
  url = f"{self.base_url}/v1/projects/{ref}/storage/buckets"
2598
2509
  query_params = {}
2599
- response = self._get(url, params=query_params)
2510
+ response = await self._aget(url, params=query_params)
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.
@@ -2644,11 +2549,11 @@ class SupabaseApp(APIApplication):
2644
2549
  request_body = {k: v for k, v in request_body.items() if v is not None}
2645
2550
  url = f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers"
2646
2551
  query_params = {}
2647
- response = self._post(url, data=request_body, params=query_params)
2552
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -2669,11 +2574,11 @@ class SupabaseApp(APIApplication):
2669
2574
  raise ValueError("Missing required parameter 'ref'")
2670
2575
  url = f"{self.base_url}/v1/projects/{ref}/config/auth/sso/providers"
2671
2576
  query_params = {}
2672
- response = self._get(url, params=query_params)
2577
+ response = await self._aget(url, params=query_params)
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
- response = self._get(url, params=query_params)
2605
+ response = await self._aget(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
- response = self._put(url, data=request_body, params=query_params)
2646
+ response = await self._aput(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
- response = self._delete(url, params=query_params)
2674
+ response = await self._adelete(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
 
@@ -2803,11 +2696,11 @@ class SupabaseApp(APIApplication):
2803
2696
  raise ValueError("Missing required parameter 'ref'")
2804
2697
  url = f"{self.base_url}/v1/projects/{ref}/database/backups"
2805
2698
  query_params = {}
2806
- response = self._get(url, params=query_params)
2699
+ response = await self._aget(url, params=query_params)
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,17 +2722,15 @@ 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 = {}
2838
- response = self._post(url, data=request_body, params=query_params)
2729
+ response = await self._apost(url, data=request_body, params=query_params)
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
 
@@ -2860,11 +2751,11 @@ class SupabaseApp(APIApplication):
2860
2751
  raise ValueError("Missing required parameter 'slug'")
2861
2752
  url = f"{self.base_url}/v1/organizations/{slug}/members"
2862
2753
  query_params = {}
2863
- response = self._get(url, params=query_params)
2754
+ response = await self._aget(url, params=query_params)
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
 
@@ -2885,7 +2776,7 @@ class SupabaseApp(APIApplication):
2885
2776
  raise ValueError("Missing required parameter 'slug'")
2886
2777
  url = f"{self.base_url}/v1/organizations/{slug}"
2887
2778
  query_params = {}
2888
- response = self._get(url, params=query_params)
2779
+ response = await self._aget(url, params=query_params)
2889
2780
  response.raise_for_status()
2890
2781
  return response.json()
2891
2782