mtmsdk 0.0.36 → 0.0.39

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 (243) hide show
  1. package/dist/api_hatchet/client/client.gen.d.ts.map +1 -1
  2. package/dist/api_hatchet/client/client.gen.js +8 -1
  3. package/dist/api_hatchet/client/client.gen.js.map +1 -1
  4. package/dist/api_hatchet/index.d.ts +2 -2
  5. package/dist/api_hatchet/index.d.ts.map +1 -1
  6. package/dist/api_hatchet/index.js +2 -2
  7. package/dist/api_hatchet/index.js.map +1 -1
  8. package/dist/api_hatchet/zod.gen.d.ts +3 -3
  9. package/dist/api_hatchet/zod.gen.js +53 -53
  10. package/dist/api_hatchet/zod.gen.js.map +1 -1
  11. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +73 -979
  12. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  13. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +208 -1000
  14. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  15. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -1
  16. package/dist/gomtmapi_v2/client/client.gen.js +8 -1
  17. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -1
  18. package/dist/gomtmapi_v2/index.d.ts +2 -2
  19. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  20. package/dist/gomtmapi_v2/index.js +1 -1
  21. package/dist/gomtmapi_v2/index.js.map +1 -1
  22. package/dist/gomtmapi_v2/schemas.gen.d.ts +305 -1415
  23. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  24. package/dist/gomtmapi_v2/schemas.gen.js +282 -1407
  25. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  26. package/dist/gomtmapi_v2/sdk.gen.d.ts +63 -513
  27. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  28. package/dist/gomtmapi_v2/sdk.gen.js +94 -537
  29. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  30. package/dist/gomtmapi_v2/types.gen.d.ts +443 -1531
  31. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  32. package/dist/gomtmapi_v2/zod.gen.d.ts +293 -1292
  33. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  34. package/dist/gomtmapi_v2/zod.gen.js +187 -793
  35. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  36. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4 -158
  37. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  38. package/dist/mtgate_api/@tanstack/react-query.gen.js +17 -212
  39. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  40. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -1
  41. package/dist/mtgate_api/client/client.gen.js +8 -1
  42. package/dist/mtgate_api/client/client.gen.js.map +1 -1
  43. package/dist/mtgate_api/index.d.ts +2 -2
  44. package/dist/mtgate_api/index.d.ts.map +1 -1
  45. package/dist/mtgate_api/index.js +1 -1
  46. package/dist/mtgate_api/index.js.map +1 -1
  47. package/dist/mtgate_api/schemas.gen.d.ts +0 -396
  48. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  49. package/dist/mtgate_api/schemas.gen.js +0 -439
  50. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  51. package/dist/mtgate_api/sdk.gen.d.ts +1 -26
  52. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  53. package/dist/mtgate_api/sdk.gen.js +0 -67
  54. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  55. package/dist/mtgate_api/types.gen.d.ts +0 -310
  56. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  57. package/dist/mtgate_api/zod.gen.d.ts +0 -771
  58. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  59. package/dist/mtgate_api/zod.gen.js +0 -249
  60. package/dist/mtgate_api/zod.gen.js.map +1 -1
  61. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -1
  62. package/dist/mtmai_api/client/client.gen.js +8 -1
  63. package/dist/mtmai_api/client/client.gen.js.map +1 -1
  64. package/dist/mtmai_api/index.d.ts +2 -2
  65. package/dist/mtmai_api/index.d.ts.map +1 -1
  66. package/dist/mtmai_api/index.js +2 -2
  67. package/dist/mtmai_api/index.js.map +1 -1
  68. package/dist/opencode/@tanstack/react-query.gen.d.ts +1903 -0
  69. package/dist/opencode/@tanstack/react-query.gen.d.ts.map +1 -0
  70. package/dist/opencode/@tanstack/react-query.gen.js +1696 -0
  71. package/dist/opencode/@tanstack/react-query.gen.js.map +1 -0
  72. package/dist/opencode/client/client.gen.d.ts +3 -0
  73. package/dist/opencode/client/client.gen.d.ts.map +1 -0
  74. package/dist/opencode/client/client.gen.js +236 -0
  75. package/dist/opencode/client/client.gen.js.map +1 -0
  76. package/dist/opencode/client/index.d.ts +9 -0
  77. package/dist/opencode/client/index.d.ts.map +1 -0
  78. package/dist/opencode/client/index.js +7 -0
  79. package/dist/opencode/client/index.js.map +1 -0
  80. package/dist/opencode/client/types.gen.d.ts +118 -0
  81. package/dist/opencode/client/types.gen.d.ts.map +1 -0
  82. package/dist/opencode/client/types.gen.js +3 -0
  83. package/dist/opencode/client/types.gen.js.map +1 -0
  84. package/dist/opencode/client/utils.gen.d.ts +34 -0
  85. package/dist/opencode/client/utils.gen.d.ts.map +1 -0
  86. package/dist/opencode/client/utils.gen.js +232 -0
  87. package/dist/opencode/client/utils.gen.js.map +1 -0
  88. package/dist/opencode/client.gen.d.ts +13 -0
  89. package/dist/opencode/client.gen.d.ts.map +1 -0
  90. package/dist/opencode/client.gen.js +4 -0
  91. package/dist/opencode/client.gen.js.map +1 -0
  92. package/dist/opencode/core/auth.gen.d.ts +19 -0
  93. package/dist/opencode/core/auth.gen.d.ts.map +1 -0
  94. package/dist/opencode/core/auth.gen.js +15 -0
  95. package/dist/opencode/core/auth.gen.js.map +1 -0
  96. package/dist/opencode/core/bodySerializer.gen.d.ts +26 -0
  97. package/dist/opencode/core/bodySerializer.gen.d.ts.map +1 -0
  98. package/dist/opencode/core/bodySerializer.gen.js +58 -0
  99. package/dist/opencode/core/bodySerializer.gen.js.map +1 -0
  100. package/dist/opencode/core/params.gen.d.ts +44 -0
  101. package/dist/opencode/core/params.gen.d.ts.map +1 -0
  102. package/dist/opencode/core/params.gen.js +101 -0
  103. package/dist/opencode/core/params.gen.js.map +1 -0
  104. package/dist/opencode/core/pathSerializer.gen.d.ts +34 -0
  105. package/dist/opencode/core/pathSerializer.gen.d.ts.map +1 -0
  106. package/dist/opencode/core/pathSerializer.gen.js +115 -0
  107. package/dist/opencode/core/pathSerializer.gen.js.map +1 -0
  108. package/dist/opencode/core/queryKeySerializer.gen.d.ts +19 -0
  109. package/dist/opencode/core/queryKeySerializer.gen.d.ts.map +1 -0
  110. package/dist/opencode/core/queryKeySerializer.gen.js +100 -0
  111. package/dist/opencode/core/queryKeySerializer.gen.js.map +1 -0
  112. package/dist/opencode/core/serverSentEvents.gen.d.ts +72 -0
  113. package/dist/opencode/core/serverSentEvents.gen.d.ts.map +1 -0
  114. package/dist/opencode/core/serverSentEvents.gen.js +138 -0
  115. package/dist/opencode/core/serverSentEvents.gen.js.map +1 -0
  116. package/dist/opencode/core/types.gen.d.ts +79 -0
  117. package/dist/opencode/core/types.gen.d.ts.map +1 -0
  118. package/dist/opencode/core/types.gen.js +3 -0
  119. package/dist/opencode/core/types.gen.js.map +1 -0
  120. package/dist/opencode/core/utils.gen.d.ts +20 -0
  121. package/dist/opencode/core/utils.gen.d.ts.map +1 -0
  122. package/dist/opencode/core/utils.gen.js +88 -0
  123. package/dist/opencode/core/utils.gen.js.map +1 -0
  124. package/dist/opencode/index.d.ts +3 -0
  125. package/dist/opencode/index.d.ts.map +1 -0
  126. package/dist/opencode/index.js +4 -0
  127. package/dist/opencode/index.js.map +1 -0
  128. package/dist/opencode/schemas.gen.d.ts +4823 -0
  129. package/dist/opencode/schemas.gen.d.ts.map +1 -0
  130. package/dist/opencode/schemas.gen.js +5816 -0
  131. package/dist/opencode/schemas.gen.js.map +1 -0
  132. package/dist/opencode/sdk.gen.d.ts +562 -0
  133. package/dist/opencode/sdk.gen.d.ts.map +1 -0
  134. package/dist/opencode/sdk.gen.js +766 -0
  135. package/dist/opencode/sdk.gen.js.map +1 -0
  136. package/dist/opencode/types.gen.d.ts +4213 -0
  137. package/dist/opencode/types.gen.d.ts.map +1 -0
  138. package/dist/opencode/types.gen.js +25 -0
  139. package/dist/opencode/types.gen.js.map +1 -0
  140. package/dist/opencode/zod.gen.d.ts +17243 -0
  141. package/dist/opencode/zod.gen.d.ts.map +1 -0
  142. package/dist/opencode/zod.gen.js +2876 -0
  143. package/dist/opencode/zod.gen.js.map +1 -0
  144. package/dist/sbapi/client/client.gen.d.ts.map +1 -1
  145. package/dist/sbapi/client/client.gen.js +8 -1
  146. package/dist/sbapi/client/client.gen.js.map +1 -1
  147. package/dist/sbapi/index.d.ts +2 -2
  148. package/dist/sbapi/index.d.ts.map +1 -1
  149. package/dist/sbapi/index.js +1 -1
  150. package/dist/sbapi/index.js.map +1 -1
  151. package/dist/sbmng/@tanstack/react-query.gen.d.ts +2418 -0
  152. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -0
  153. package/dist/sbmng/@tanstack/react-query.gen.js +2657 -0
  154. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -0
  155. package/dist/sbmng/client/client.gen.d.ts +3 -0
  156. package/dist/sbmng/client/client.gen.d.ts.map +1 -0
  157. package/dist/sbmng/client/client.gen.js +236 -0
  158. package/dist/sbmng/client/client.gen.js.map +1 -0
  159. package/dist/sbmng/client/index.d.ts +9 -0
  160. package/dist/sbmng/client/index.d.ts.map +1 -0
  161. package/dist/sbmng/client/index.js +7 -0
  162. package/dist/sbmng/client/index.js.map +1 -0
  163. package/dist/sbmng/client/types.gen.d.ts +118 -0
  164. package/dist/sbmng/client/types.gen.d.ts.map +1 -0
  165. package/dist/sbmng/client/types.gen.js +3 -0
  166. package/dist/sbmng/client/types.gen.js.map +1 -0
  167. package/dist/sbmng/client/utils.gen.d.ts +34 -0
  168. package/dist/sbmng/client/utils.gen.d.ts.map +1 -0
  169. package/dist/sbmng/client/utils.gen.js +232 -0
  170. package/dist/sbmng/client/utils.gen.js.map +1 -0
  171. package/dist/sbmng/client.gen.d.ts +13 -0
  172. package/dist/sbmng/client.gen.d.ts.map +1 -0
  173. package/dist/sbmng/client.gen.js +4 -0
  174. package/dist/sbmng/client.gen.js.map +1 -0
  175. package/dist/sbmng/core/auth.gen.d.ts +19 -0
  176. package/dist/sbmng/core/auth.gen.d.ts.map +1 -0
  177. package/dist/sbmng/core/auth.gen.js +15 -0
  178. package/dist/sbmng/core/auth.gen.js.map +1 -0
  179. package/dist/sbmng/core/bodySerializer.gen.d.ts +26 -0
  180. package/dist/sbmng/core/bodySerializer.gen.d.ts.map +1 -0
  181. package/dist/sbmng/core/bodySerializer.gen.js +58 -0
  182. package/dist/sbmng/core/bodySerializer.gen.js.map +1 -0
  183. package/dist/sbmng/core/params.gen.d.ts +44 -0
  184. package/dist/sbmng/core/params.gen.d.ts.map +1 -0
  185. package/dist/sbmng/core/params.gen.js +101 -0
  186. package/dist/sbmng/core/params.gen.js.map +1 -0
  187. package/dist/sbmng/core/pathSerializer.gen.d.ts +34 -0
  188. package/dist/sbmng/core/pathSerializer.gen.d.ts.map +1 -0
  189. package/dist/sbmng/core/pathSerializer.gen.js +115 -0
  190. package/dist/sbmng/core/pathSerializer.gen.js.map +1 -0
  191. package/dist/sbmng/core/queryKeySerializer.gen.d.ts +19 -0
  192. package/dist/sbmng/core/queryKeySerializer.gen.d.ts.map +1 -0
  193. package/dist/sbmng/core/queryKeySerializer.gen.js +100 -0
  194. package/dist/sbmng/core/queryKeySerializer.gen.js.map +1 -0
  195. package/dist/sbmng/core/serverSentEvents.gen.d.ts +72 -0
  196. package/dist/sbmng/core/serverSentEvents.gen.d.ts.map +1 -0
  197. package/dist/sbmng/core/serverSentEvents.gen.js +138 -0
  198. package/dist/sbmng/core/serverSentEvents.gen.js.map +1 -0
  199. package/dist/sbmng/core/types.gen.d.ts +79 -0
  200. package/dist/sbmng/core/types.gen.d.ts.map +1 -0
  201. package/dist/sbmng/core/types.gen.js +3 -0
  202. package/dist/sbmng/core/types.gen.js.map +1 -0
  203. package/dist/sbmng/core/utils.gen.d.ts +20 -0
  204. package/dist/sbmng/core/utils.gen.d.ts.map +1 -0
  205. package/dist/sbmng/core/utils.gen.js +88 -0
  206. package/dist/sbmng/core/utils.gen.js.map +1 -0
  207. package/dist/sbmng/index.d.ts +3 -0
  208. package/dist/sbmng/index.d.ts.map +1 -0
  209. package/dist/sbmng/index.js +3 -0
  210. package/dist/sbmng/index.js.map +1 -0
  211. package/dist/sbmng/schemas.gen.d.ts +7220 -0
  212. package/dist/sbmng/schemas.gen.d.ts.map +1 -0
  213. package/dist/sbmng/schemas.gen.js +9392 -0
  214. package/dist/sbmng/schemas.gen.js.map +1 -0
  215. package/dist/sbmng/sdk.gen.d.ts +743 -0
  216. package/dist/sbmng/sdk.gen.d.ts.map +1 -0
  217. package/dist/sbmng/sdk.gen.js +1543 -0
  218. package/dist/sbmng/sdk.gen.js.map +1 -0
  219. package/dist/sbmng/types.gen.d.ts +7003 -0
  220. package/dist/sbmng/types.gen.d.ts.map +1 -0
  221. package/dist/sbmng/types.gen.js +3 -0
  222. package/dist/sbmng/types.gen.js.map +1 -0
  223. package/dist/supabase/context.d.ts +14 -0
  224. package/dist/supabase/context.d.ts.map +1 -0
  225. package/dist/supabase/context.js +33 -0
  226. package/dist/supabase/context.js.map +1 -0
  227. package/dist/supabase/supabase-client.d.ts +1625 -304
  228. package/dist/supabase/supabase-client.d.ts.map +1 -1
  229. package/dist/supabase/supabase.d.ts +3551 -909
  230. package/dist/supabase/supabase.d.ts.map +1 -1
  231. package/dist/supabase/supabase.js +1 -34
  232. package/dist/supabase/supabase.js.map +1 -1
  233. package/dist/types/database.types.d.ts +1656 -314
  234. package/dist/types/database.types.d.ts.map +1 -1
  235. package/dist/types/database.types.js +3 -1
  236. package/dist/types/database.types.js.map +1 -1
  237. package/dist/types/index.d.ts +30 -1
  238. package/dist/types/index.d.ts.map +1 -1
  239. package/package.json +45 -42
  240. package/dist/supabase/supabase-browser.d.ts +0 -4
  241. package/dist/supabase/supabase-browser.d.ts.map +0 -1
  242. package/dist/supabase/supabase-browser.js +0 -20
  243. package/dist/supabase/supabase-browser.js.map +0 -1
@@ -0,0 +1,1543 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { formDataBodySerializer, urlSearchParamsBodySerializer } from './client';
3
+ import { client } from './client.gen';
4
+ /**
5
+ * Delete a database branch
6
+ *
7
+ * Deletes the specified database branch. By default, deletes immediately. Use force=false to schedule deletion with 1-hour grace period (only when soft deletion is enabled).
8
+ */
9
+ export const v1DeleteABranch = (options) => (options.client ?? client).delete({
10
+ security: [{ scheme: 'bearer', type: 'http' }],
11
+ url: '/v1/branches/{branch_id_or_ref}',
12
+ ...options
13
+ });
14
+ /**
15
+ * Get database branch config
16
+ *
17
+ * Fetches configurations of the specified database branch
18
+ */
19
+ export const v1GetABranchConfig = (options) => (options.client ?? client).get({
20
+ security: [{ scheme: 'bearer', type: 'http' }],
21
+ url: '/v1/branches/{branch_id_or_ref}',
22
+ ...options
23
+ });
24
+ /**
25
+ * Update database branch config
26
+ *
27
+ * Updates the configuration of the specified database branch
28
+ */
29
+ export const v1UpdateABranchConfig = (options) => (options.client ?? client).patch({
30
+ security: [{ scheme: 'bearer', type: 'http' }],
31
+ url: '/v1/branches/{branch_id_or_ref}',
32
+ ...options,
33
+ headers: {
34
+ 'Content-Type': 'application/json',
35
+ ...options.headers
36
+ }
37
+ });
38
+ /**
39
+ * Pushes a database branch
40
+ *
41
+ * Pushes the specified database branch
42
+ */
43
+ export const v1PushABranch = (options) => (options.client ?? client).post({
44
+ security: [{ scheme: 'bearer', type: 'http' }],
45
+ url: '/v1/branches/{branch_id_or_ref}/push',
46
+ ...options,
47
+ headers: {
48
+ 'Content-Type': 'application/json',
49
+ ...options.headers
50
+ }
51
+ });
52
+ /**
53
+ * Merges a database branch
54
+ *
55
+ * Merges the specified database branch
56
+ */
57
+ export const v1MergeABranch = (options) => (options.client ?? client).post({
58
+ security: [{ scheme: 'bearer', type: 'http' }],
59
+ url: '/v1/branches/{branch_id_or_ref}/merge',
60
+ ...options,
61
+ headers: {
62
+ 'Content-Type': 'application/json',
63
+ ...options.headers
64
+ }
65
+ });
66
+ /**
67
+ * Resets a database branch
68
+ *
69
+ * Resets the specified database branch
70
+ */
71
+ export const v1ResetABranch = (options) => (options.client ?? client).post({
72
+ security: [{ scheme: 'bearer', type: 'http' }],
73
+ url: '/v1/branches/{branch_id_or_ref}/reset',
74
+ ...options,
75
+ headers: {
76
+ 'Content-Type': 'application/json',
77
+ ...options.headers
78
+ }
79
+ });
80
+ /**
81
+ * Restore a scheduled branch deletion
82
+ *
83
+ * Cancels scheduled deletion and restores the branch to active state
84
+ */
85
+ export const v1RestoreABranch = (options) => (options.client ?? client).post({
86
+ security: [{ scheme: 'bearer', type: 'http' }],
87
+ url: '/v1/branches/{branch_id_or_ref}/restore',
88
+ ...options
89
+ });
90
+ /**
91
+ * [Beta] Diffs a database branch
92
+ *
93
+ * Diffs the specified database branch
94
+ */
95
+ export const v1DiffABranch = (options) => (options.client ?? client).get({
96
+ security: [{ scheme: 'bearer', type: 'http' }],
97
+ url: '/v1/branches/{branch_id_or_ref}/diff',
98
+ ...options
99
+ });
100
+ /**
101
+ * List all projects
102
+ *
103
+ * Returns a list of all projects you've previously created.
104
+ *
105
+ * Use `/v1/organizations/{slug}/projects` instead when possible to get more precise results and pagination support.
106
+ */
107
+ export const v1ListAllProjects = (options) => (options?.client ?? client).get({
108
+ security: [{ scheme: 'bearer', type: 'http' }],
109
+ url: '/v1/projects',
110
+ ...options
111
+ });
112
+ /**
113
+ * Create a project
114
+ */
115
+ export const v1CreateAProject = (options) => (options.client ?? client).post({
116
+ security: [{ scheme: 'bearer', type: 'http' }],
117
+ url: '/v1/projects',
118
+ ...options,
119
+ headers: {
120
+ 'Content-Type': 'application/json',
121
+ ...options.headers
122
+ }
123
+ });
124
+ /**
125
+ * [Beta] Gets the list of available regions that can be used for a new project
126
+ */
127
+ export const v1GetAvailableRegions = (options) => (options.client ?? client).get({
128
+ security: [{ scheme: 'bearer', type: 'http' }],
129
+ url: '/v1/projects/available-regions',
130
+ ...options
131
+ });
132
+ /**
133
+ * List all organizations
134
+ *
135
+ * Returns a list of organizations that you currently belong to.
136
+ */
137
+ export const v1ListAllOrganizations = (options) => (options?.client ?? client).get({
138
+ security: [{ scheme: 'bearer', type: 'http' }],
139
+ url: '/v1/organizations',
140
+ ...options
141
+ });
142
+ /**
143
+ * Create an organization
144
+ */
145
+ export const v1CreateAnOrganization = (options) => (options.client ?? client).post({
146
+ security: [{ scheme: 'bearer', type: 'http' }],
147
+ url: '/v1/organizations',
148
+ ...options,
149
+ headers: {
150
+ 'Content-Type': 'application/json',
151
+ ...options.headers
152
+ }
153
+ });
154
+ /**
155
+ * [Beta] Authorize user through oauth
156
+ */
157
+ export const v1AuthorizeUser = (options) => (options.client ?? client).get({ url: '/v1/oauth/authorize', ...options });
158
+ /**
159
+ * [Beta] Exchange auth code for user's access and refresh token
160
+ */
161
+ export const v1ExchangeOauthToken = (options) => (options.client ?? client).post({
162
+ ...urlSearchParamsBodySerializer,
163
+ url: '/v1/oauth/token',
164
+ ...options,
165
+ headers: {
166
+ 'Content-Type': 'application/x-www-form-urlencoded',
167
+ ...options.headers
168
+ }
169
+ });
170
+ /**
171
+ * [Beta] Revoke oauth app authorization and it's corresponding tokens
172
+ */
173
+ export const v1RevokeToken = (options) => (options.client ?? client).post({
174
+ url: '/v1/oauth/revoke',
175
+ ...options,
176
+ headers: {
177
+ 'Content-Type': 'application/json',
178
+ ...options.headers
179
+ }
180
+ });
181
+ /**
182
+ * Authorize user through oauth and claim a project
183
+ *
184
+ * Initiates the OAuth authorization flow for the specified provider. After successful authentication, the user can claim ownership of the specified project.
185
+ */
186
+ export const v1OauthAuthorizeProjectClaim = (options) => (options.client ?? client).get({
187
+ security: [{ scheme: 'bearer', type: 'http' }],
188
+ url: '/v1/oauth/authorize/project-claim',
189
+ ...options
190
+ });
191
+ /**
192
+ * Lists SQL snippets for the logged in user
193
+ */
194
+ export const v1ListAllSnippets = (options) => (options?.client ?? client).get({
195
+ security: [{ scheme: 'bearer', type: 'http' }],
196
+ url: '/v1/snippets',
197
+ ...options
198
+ });
199
+ /**
200
+ * Gets a specific SQL snippet
201
+ */
202
+ export const v1GetASnippet = (options) => (options.client ?? client).get({
203
+ security: [{ scheme: 'bearer', type: 'http' }],
204
+ url: '/v1/snippets/{id}',
205
+ ...options
206
+ });
207
+ /**
208
+ * List all action runs
209
+ *
210
+ * Returns a paginated list of action runs of the specified project.
211
+ */
212
+ export const v1ListActionRuns = (options) => (options.client ?? client).get({
213
+ security: [{ scheme: 'bearer', type: 'http' }],
214
+ url: '/v1/projects/{ref}/actions',
215
+ ...options
216
+ });
217
+ /**
218
+ * Count the number of action runs
219
+ *
220
+ * Returns the total number of action runs of the specified project.
221
+ */
222
+ export const v1CountActionRuns = (options) => (options.client ?? client).head({
223
+ security: [{ scheme: 'bearer', type: 'http' }],
224
+ url: '/v1/projects/{ref}/actions',
225
+ ...options
226
+ });
227
+ /**
228
+ * Get the status of an action run
229
+ *
230
+ * Returns the current status of the specified action run.
231
+ */
232
+ export const v1GetActionRun = (options) => (options.client ?? client).get({
233
+ security: [{ scheme: 'bearer', type: 'http' }],
234
+ url: '/v1/projects/{ref}/actions/{run_id}',
235
+ ...options
236
+ });
237
+ /**
238
+ * Update the status of an action run
239
+ *
240
+ * Updates the status of an ongoing action run.
241
+ */
242
+ export const v1UpdateActionRunStatus = (options) => (options.client ?? client).patch({
243
+ security: [{ scheme: 'bearer', type: 'http' }],
244
+ url: '/v1/projects/{ref}/actions/{run_id}/status',
245
+ ...options,
246
+ headers: {
247
+ 'Content-Type': 'application/json',
248
+ ...options.headers
249
+ }
250
+ });
251
+ /**
252
+ * Get the logs of an action run
253
+ *
254
+ * Returns the logs from the specified action run.
255
+ */
256
+ export const v1GetActionRunLogs = (options) => (options.client ?? client).get({
257
+ security: [{ scheme: 'bearer', type: 'http' }],
258
+ url: '/v1/projects/{ref}/actions/{run_id}/logs',
259
+ ...options
260
+ });
261
+ /**
262
+ * Get project api keys
263
+ */
264
+ export const v1GetProjectApiKeys = (options) => (options.client ?? client).get({
265
+ security: [{ scheme: 'bearer', type: 'http' }],
266
+ url: '/v1/projects/{ref}/api-keys',
267
+ ...options
268
+ });
269
+ /**
270
+ * Creates a new API key for the project
271
+ */
272
+ export const v1CreateProjectApiKey = (options) => (options.client ?? client).post({
273
+ security: [{ scheme: 'bearer', type: 'http' }],
274
+ url: '/v1/projects/{ref}/api-keys',
275
+ ...options,
276
+ headers: {
277
+ 'Content-Type': 'application/json',
278
+ ...options.headers
279
+ }
280
+ });
281
+ /**
282
+ * Check whether JWT based legacy (anon, service_role) API keys are enabled. This API endpoint will be removed in the future, check for HTTP 404 Not Found.
283
+ */
284
+ export const v1GetProjectLegacyApiKeys = (options) => (options.client ?? client).get({
285
+ security: [{ scheme: 'bearer', type: 'http' }],
286
+ url: '/v1/projects/{ref}/api-keys/legacy',
287
+ ...options
288
+ });
289
+ /**
290
+ * Disable or re-enable JWT based legacy (anon, service_role) API keys. This API endpoint will be removed in the future, check for HTTP 404 Not Found.
291
+ */
292
+ export const v1UpdateProjectLegacyApiKeys = (options) => (options.client ?? client).put({
293
+ security: [{ scheme: 'bearer', type: 'http' }],
294
+ url: '/v1/projects/{ref}/api-keys/legacy',
295
+ ...options
296
+ });
297
+ /**
298
+ * Deletes an API key for the project
299
+ */
300
+ export const v1DeleteProjectApiKey = (options) => (options.client ?? client).delete({
301
+ security: [{ scheme: 'bearer', type: 'http' }],
302
+ url: '/v1/projects/{ref}/api-keys/{id}',
303
+ ...options
304
+ });
305
+ /**
306
+ * Get API key
307
+ */
308
+ export const v1GetProjectApiKey = (options) => (options.client ?? client).get({
309
+ security: [{ scheme: 'bearer', type: 'http' }],
310
+ url: '/v1/projects/{ref}/api-keys/{id}',
311
+ ...options
312
+ });
313
+ /**
314
+ * Updates an API key for the project
315
+ */
316
+ export const v1UpdateProjectApiKey = (options) => (options.client ?? client).patch({
317
+ security: [{ scheme: 'bearer', type: 'http' }],
318
+ url: '/v1/projects/{ref}/api-keys/{id}',
319
+ ...options,
320
+ headers: {
321
+ 'Content-Type': 'application/json',
322
+ ...options.headers
323
+ }
324
+ });
325
+ /**
326
+ * Disables preview branching
327
+ *
328
+ * Disables preview branching for the specified project
329
+ */
330
+ export const v1DisablePreviewBranching = (options) => (options.client ?? client).delete({
331
+ security: [{ scheme: 'bearer', type: 'http' }],
332
+ url: '/v1/projects/{ref}/branches',
333
+ ...options
334
+ });
335
+ /**
336
+ * List all database branches
337
+ *
338
+ * Returns all database branches of the specified project.
339
+ */
340
+ export const v1ListAllBranches = (options) => (options.client ?? client).get({
341
+ security: [{ scheme: 'bearer', type: 'http' }],
342
+ url: '/v1/projects/{ref}/branches',
343
+ ...options
344
+ });
345
+ /**
346
+ * Create a database branch
347
+ *
348
+ * Creates a database branch from the specified project.
349
+ */
350
+ export const v1CreateABranch = (options) => (options.client ?? client).post({
351
+ security: [{ scheme: 'bearer', type: 'http' }],
352
+ url: '/v1/projects/{ref}/branches',
353
+ ...options,
354
+ headers: {
355
+ 'Content-Type': 'application/json',
356
+ ...options.headers
357
+ }
358
+ });
359
+ /**
360
+ * Get a database branch
361
+ *
362
+ * Fetches the specified database branch by its name.
363
+ */
364
+ export const v1GetABranch = (options) => (options.client ?? client).get({
365
+ security: [{ scheme: 'bearer', type: 'http' }],
366
+ url: '/v1/projects/{ref}/branches/{name}',
367
+ ...options
368
+ });
369
+ /**
370
+ * [Beta] Deletes a project's custom hostname configuration
371
+ */
372
+ export const v1DeleteHostnameConfig = (options) => (options.client ?? client).delete({
373
+ security: [{ scheme: 'bearer', type: 'http' }],
374
+ url: '/v1/projects/{ref}/custom-hostname',
375
+ ...options
376
+ });
377
+ /**
378
+ * [Beta] Gets project's custom hostname config
379
+ */
380
+ export const v1GetHostnameConfig = (options) => (options.client ?? client).get({
381
+ security: [{ scheme: 'bearer', type: 'http' }],
382
+ url: '/v1/projects/{ref}/custom-hostname',
383
+ ...options
384
+ });
385
+ /**
386
+ * [Beta] Updates project's custom hostname configuration
387
+ */
388
+ export const v1UpdateHostnameConfig = (options) => (options.client ?? client).post({
389
+ security: [{ scheme: 'bearer', type: 'http' }],
390
+ url: '/v1/projects/{ref}/custom-hostname/initialize',
391
+ ...options,
392
+ headers: {
393
+ 'Content-Type': 'application/json',
394
+ ...options.headers
395
+ }
396
+ });
397
+ /**
398
+ * [Beta] Attempts to verify the DNS configuration for project's custom hostname configuration
399
+ */
400
+ export const v1VerifyDnsConfig = (options) => (options.client ?? client).post({
401
+ security: [{ scheme: 'bearer', type: 'http' }],
402
+ url: '/v1/projects/{ref}/custom-hostname/reverify',
403
+ ...options
404
+ });
405
+ /**
406
+ * [Beta] Activates a custom hostname for a project.
407
+ */
408
+ export const v1ActivateCustomHostname = (options) => (options.client ?? client).post({
409
+ security: [{ scheme: 'bearer', type: 'http' }],
410
+ url: '/v1/projects/{ref}/custom-hostname/activate',
411
+ ...options
412
+ });
413
+ /**
414
+ * [Beta] Gets project's network bans
415
+ */
416
+ export const v1ListAllNetworkBans = (options) => (options.client ?? client).post({
417
+ security: [{ scheme: 'bearer', type: 'http' }],
418
+ url: '/v1/projects/{ref}/network-bans/retrieve',
419
+ ...options
420
+ });
421
+ /**
422
+ * [Beta] Gets project's network bans with additional information about which databases they affect
423
+ */
424
+ export const v1ListAllNetworkBansEnriched = (options) => (options.client ?? client).post({
425
+ security: [{ scheme: 'bearer', type: 'http' }],
426
+ url: '/v1/projects/{ref}/network-bans/retrieve/enriched',
427
+ ...options
428
+ });
429
+ /**
430
+ * [Beta] Remove network bans.
431
+ */
432
+ export const v1DeleteNetworkBans = (options) => (options.client ?? client).delete({
433
+ security: [{ scheme: 'bearer', type: 'http' }],
434
+ url: '/v1/projects/{ref}/network-bans',
435
+ ...options,
436
+ headers: {
437
+ 'Content-Type': 'application/json',
438
+ ...options.headers
439
+ }
440
+ });
441
+ /**
442
+ * [Beta] Gets project's network restrictions
443
+ */
444
+ export const v1GetNetworkRestrictions = (options) => (options.client ?? client).get({
445
+ security: [{ scheme: 'bearer', type: 'http' }],
446
+ url: '/v1/projects/{ref}/network-restrictions',
447
+ ...options
448
+ });
449
+ /**
450
+ * [Alpha] Updates project's network restrictions by adding or removing CIDRs
451
+ */
452
+ export const v1PatchNetworkRestrictions = (options) => (options.client ?? client).patch({
453
+ security: [{ scheme: 'bearer', type: 'http' }],
454
+ url: '/v1/projects/{ref}/network-restrictions',
455
+ ...options,
456
+ headers: {
457
+ 'Content-Type': 'application/json',
458
+ ...options.headers
459
+ }
460
+ });
461
+ /**
462
+ * [Beta] Updates project's network restrictions
463
+ */
464
+ export const v1UpdateNetworkRestrictions = (options) => (options.client ?? client).post({
465
+ security: [{ scheme: 'bearer', type: 'http' }],
466
+ url: '/v1/projects/{ref}/network-restrictions/apply',
467
+ ...options,
468
+ headers: {
469
+ 'Content-Type': 'application/json',
470
+ ...options.headers
471
+ }
472
+ });
473
+ /**
474
+ * [Beta] Gets project's pgsodium config
475
+ */
476
+ export const v1GetPgsodiumConfig = (options) => (options.client ?? client).get({
477
+ security: [{ scheme: 'bearer', type: 'http' }],
478
+ url: '/v1/projects/{ref}/pgsodium',
479
+ ...options
480
+ });
481
+ /**
482
+ * [Beta] Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.
483
+ */
484
+ export const v1UpdatePgsodiumConfig = (options) => (options.client ?? client).put({
485
+ security: [{ scheme: 'bearer', type: 'http' }],
486
+ url: '/v1/projects/{ref}/pgsodium',
487
+ ...options,
488
+ headers: {
489
+ 'Content-Type': 'application/json',
490
+ ...options.headers
491
+ }
492
+ });
493
+ /**
494
+ * Gets project's postgrest config
495
+ */
496
+ export const v1GetPostgrestServiceConfig = (options) => (options.client ?? client).get({
497
+ security: [{ scheme: 'bearer', type: 'http' }],
498
+ url: '/v1/projects/{ref}/postgrest',
499
+ ...options
500
+ });
501
+ /**
502
+ * Updates project's postgrest config
503
+ */
504
+ export const v1UpdatePostgrestServiceConfig = (options) => (options.client ?? client).patch({
505
+ security: [{ scheme: 'bearer', type: 'http' }],
506
+ url: '/v1/projects/{ref}/postgrest',
507
+ ...options,
508
+ headers: {
509
+ 'Content-Type': 'application/json',
510
+ ...options.headers
511
+ }
512
+ });
513
+ /**
514
+ * Deletes the given project
515
+ */
516
+ export const v1DeleteAProject = (options) => (options.client ?? client).delete({
517
+ security: [{ scheme: 'bearer', type: 'http' }],
518
+ url: '/v1/projects/{ref}',
519
+ ...options
520
+ });
521
+ /**
522
+ * Gets a specific project that belongs to the authenticated user
523
+ */
524
+ export const v1GetProject = (options) => (options.client ?? client).get({
525
+ security: [{ scheme: 'bearer', type: 'http' }],
526
+ url: '/v1/projects/{ref}',
527
+ ...options
528
+ });
529
+ /**
530
+ * Updates the given project
531
+ */
532
+ export const v1UpdateAProject = (options) => (options.client ?? client).patch({
533
+ security: [{ scheme: 'bearer', type: 'http' }],
534
+ url: '/v1/projects/{ref}',
535
+ ...options,
536
+ headers: {
537
+ 'Content-Type': 'application/json',
538
+ ...options.headers
539
+ }
540
+ });
541
+ /**
542
+ * Bulk delete secrets
543
+ *
544
+ * Deletes all secrets with the given names from the specified project
545
+ */
546
+ export const v1BulkDeleteSecrets = (options) => (options.client ?? client).delete({
547
+ security: [{ scheme: 'bearer', type: 'http' }],
548
+ url: '/v1/projects/{ref}/secrets',
549
+ ...options,
550
+ headers: {
551
+ 'Content-Type': 'application/json',
552
+ ...options.headers
553
+ }
554
+ });
555
+ /**
556
+ * List all secrets
557
+ *
558
+ * Returns all secrets you've previously added to the specified project.
559
+ */
560
+ export const v1ListAllSecrets = (options) => (options.client ?? client).get({
561
+ security: [{ scheme: 'bearer', type: 'http' }],
562
+ url: '/v1/projects/{ref}/secrets',
563
+ ...options
564
+ });
565
+ /**
566
+ * Bulk create secrets
567
+ *
568
+ * Creates multiple secrets and adds them to the specified project.
569
+ */
570
+ export const v1BulkCreateSecrets = (options) => (options.client ?? client).post({
571
+ security: [{ scheme: 'bearer', type: 'http' }],
572
+ url: '/v1/projects/{ref}/secrets',
573
+ ...options,
574
+ headers: {
575
+ 'Content-Type': 'application/json',
576
+ ...options.headers
577
+ }
578
+ });
579
+ /**
580
+ * [Beta] Get project's SSL enforcement configuration.
581
+ */
582
+ export const v1GetSslEnforcementConfig = (options) => (options.client ?? client).get({
583
+ security: [{ scheme: 'bearer', type: 'http' }],
584
+ url: '/v1/projects/{ref}/ssl-enforcement',
585
+ ...options
586
+ });
587
+ /**
588
+ * [Beta] Update project's SSL enforcement configuration.
589
+ */
590
+ export const v1UpdateSslEnforcementConfig = (options) => (options.client ?? client).put({
591
+ security: [{ scheme: 'bearer', type: 'http' }],
592
+ url: '/v1/projects/{ref}/ssl-enforcement',
593
+ ...options,
594
+ headers: {
595
+ 'Content-Type': 'application/json',
596
+ ...options.headers
597
+ }
598
+ });
599
+ /**
600
+ * Generate TypeScript types
601
+ *
602
+ * Returns the TypeScript types of your schema for use with supabase-js.
603
+ */
604
+ export const v1GenerateTypescriptTypes = (options) => (options.client ?? client).get({
605
+ security: [{ scheme: 'bearer', type: 'http' }],
606
+ url: '/v1/projects/{ref}/types/typescript',
607
+ ...options
608
+ });
609
+ /**
610
+ * [Beta] Deletes a project's vanity subdomain configuration
611
+ */
612
+ export const v1DeactivateVanitySubdomainConfig = (options) => (options.client ?? client).delete({
613
+ security: [{ scheme: 'bearer', type: 'http' }],
614
+ url: '/v1/projects/{ref}/vanity-subdomain',
615
+ ...options
616
+ });
617
+ /**
618
+ * [Beta] Gets current vanity subdomain config
619
+ */
620
+ export const v1GetVanitySubdomainConfig = (options) => (options.client ?? client).get({
621
+ security: [{ scheme: 'bearer', type: 'http' }],
622
+ url: '/v1/projects/{ref}/vanity-subdomain',
623
+ ...options
624
+ });
625
+ /**
626
+ * [Beta] Checks vanity subdomain availability
627
+ */
628
+ export const v1CheckVanitySubdomainAvailability = (options) => (options.client ?? client).post({
629
+ security: [{ scheme: 'bearer', type: 'http' }],
630
+ url: '/v1/projects/{ref}/vanity-subdomain/check-availability',
631
+ ...options,
632
+ headers: {
633
+ 'Content-Type': 'application/json',
634
+ ...options.headers
635
+ }
636
+ });
637
+ /**
638
+ * [Beta] Activates a vanity subdomain for a project.
639
+ */
640
+ export const v1ActivateVanitySubdomainConfig = (options) => (options.client ?? client).post({
641
+ security: [{ scheme: 'bearer', type: 'http' }],
642
+ url: '/v1/projects/{ref}/vanity-subdomain/activate',
643
+ ...options,
644
+ headers: {
645
+ 'Content-Type': 'application/json',
646
+ ...options.headers
647
+ }
648
+ });
649
+ /**
650
+ * [Beta] Upgrades the project's Postgres version
651
+ */
652
+ export const v1UpgradePostgresVersion = (options) => (options.client ?? client).post({
653
+ security: [{ scheme: 'bearer', type: 'http' }],
654
+ url: '/v1/projects/{ref}/upgrade',
655
+ ...options,
656
+ headers: {
657
+ 'Content-Type': 'application/json',
658
+ ...options.headers
659
+ }
660
+ });
661
+ /**
662
+ * [Beta] Returns the project's eligibility for upgrades
663
+ */
664
+ export const v1GetPostgresUpgradeEligibility = (options) => (options.client ?? client).get({
665
+ security: [{ scheme: 'bearer', type: 'http' }],
666
+ url: '/v1/projects/{ref}/upgrade/eligibility',
667
+ ...options
668
+ });
669
+ /**
670
+ * [Beta] Gets the latest status of the project's upgrade
671
+ */
672
+ export const v1GetPostgresUpgradeStatus = (options) => (options.client ?? client).get({
673
+ security: [{ scheme: 'bearer', type: 'http' }],
674
+ url: '/v1/projects/{ref}/upgrade/status',
675
+ ...options
676
+ });
677
+ /**
678
+ * Returns project's readonly mode status
679
+ */
680
+ export const v1GetReadonlyModeStatus = (options) => (options.client ?? client).get({
681
+ security: [{ scheme: 'bearer', type: 'http' }],
682
+ url: '/v1/projects/{ref}/readonly',
683
+ ...options
684
+ });
685
+ /**
686
+ * Disables project's readonly mode for the next 15 minutes
687
+ */
688
+ export const v1DisableReadonlyModeTemporarily = (options) => (options.client ?? client).post({
689
+ security: [{ scheme: 'bearer', type: 'http' }],
690
+ url: '/v1/projects/{ref}/readonly/temporary-disable',
691
+ ...options
692
+ });
693
+ /**
694
+ * [Beta] Set up a read replica
695
+ */
696
+ export const v1SetupAReadReplica = (options) => (options.client ?? client).post({
697
+ security: [{ scheme: 'bearer', type: 'http' }],
698
+ url: '/v1/projects/{ref}/read-replicas/setup',
699
+ ...options,
700
+ headers: {
701
+ 'Content-Type': 'application/json',
702
+ ...options.headers
703
+ }
704
+ });
705
+ /**
706
+ * [Beta] Remove a read replica
707
+ */
708
+ export const v1RemoveAReadReplica = (options) => (options.client ?? client).post({
709
+ security: [{ scheme: 'bearer', type: 'http' }],
710
+ url: '/v1/projects/{ref}/read-replicas/remove',
711
+ ...options,
712
+ headers: {
713
+ 'Content-Type': 'application/json',
714
+ ...options.headers
715
+ }
716
+ });
717
+ /**
718
+ * Gets project's service health status
719
+ */
720
+ export const v1GetServicesHealth = (options) => (options.client ?? client).get({
721
+ security: [{ scheme: 'bearer', type: 'http' }],
722
+ url: '/v1/projects/{ref}/health',
723
+ ...options
724
+ });
725
+ /**
726
+ * Get the signing key information for the JWT secret imported as signing key for this project. This endpoint will be removed in the future, check for HTTP 404 Not Found.
727
+ */
728
+ export const v1GetLegacySigningKey = (options) => (options.client ?? client).get({
729
+ security: [{ scheme: 'bearer', type: 'http' }],
730
+ url: '/v1/projects/{ref}/config/auth/signing-keys/legacy',
731
+ ...options
732
+ });
733
+ /**
734
+ * Set up the project's existing JWT secret as an in_use JWT signing key. This endpoint will be removed in the future always check for HTTP 404 Not Found.
735
+ */
736
+ export const v1CreateLegacySigningKey = (options) => (options.client ?? client).post({
737
+ security: [{ scheme: 'bearer', type: 'http' }],
738
+ url: '/v1/projects/{ref}/config/auth/signing-keys/legacy',
739
+ ...options
740
+ });
741
+ /**
742
+ * List all signing keys for the project
743
+ */
744
+ export const v1GetProjectSigningKeys = (options) => (options.client ?? client).get({
745
+ security: [{ scheme: 'bearer', type: 'http' }],
746
+ url: '/v1/projects/{ref}/config/auth/signing-keys',
747
+ ...options
748
+ });
749
+ /**
750
+ * Create a new signing key for the project in standby status
751
+ */
752
+ export const v1CreateProjectSigningKey = (options) => (options.client ?? client).post({
753
+ security: [{ scheme: 'bearer', type: 'http' }],
754
+ url: '/v1/projects/{ref}/config/auth/signing-keys',
755
+ ...options,
756
+ headers: {
757
+ 'Content-Type': 'application/json',
758
+ ...options.headers
759
+ }
760
+ });
761
+ /**
762
+ * Remove a signing key from a project. Only possible if the key has been in revoked status for a while.
763
+ */
764
+ export const v1RemoveProjectSigningKey = (options) => (options.client ?? client).delete({
765
+ security: [{ scheme: 'bearer', type: 'http' }],
766
+ url: '/v1/projects/{ref}/config/auth/signing-keys/{id}',
767
+ ...options
768
+ });
769
+ /**
770
+ * Get information about a signing key
771
+ */
772
+ export const v1GetProjectSigningKey = (options) => (options.client ?? client).get({
773
+ security: [{ scheme: 'bearer', type: 'http' }],
774
+ url: '/v1/projects/{ref}/config/auth/signing-keys/{id}',
775
+ ...options
776
+ });
777
+ /**
778
+ * Update a signing key, mainly its status
779
+ */
780
+ export const v1UpdateProjectSigningKey = (options) => (options.client ?? client).patch({
781
+ security: [{ scheme: 'bearer', type: 'http' }],
782
+ url: '/v1/projects/{ref}/config/auth/signing-keys/{id}',
783
+ ...options,
784
+ headers: {
785
+ 'Content-Type': 'application/json',
786
+ ...options.headers
787
+ }
788
+ });
789
+ /**
790
+ * Gets project's storage config
791
+ */
792
+ export const v1GetStorageConfig = (options) => (options.client ?? client).get({
793
+ security: [{ scheme: 'bearer', type: 'http' }],
794
+ url: '/v1/projects/{ref}/config/storage',
795
+ ...options
796
+ });
797
+ /**
798
+ * Updates project's storage config
799
+ */
800
+ export const v1UpdateStorageConfig = (options) => (options.client ?? client).patch({
801
+ security: [{ scheme: 'bearer', type: 'http' }],
802
+ url: '/v1/projects/{ref}/config/storage',
803
+ ...options,
804
+ headers: {
805
+ 'Content-Type': 'application/json',
806
+ ...options.headers
807
+ }
808
+ });
809
+ /**
810
+ * Gets project's Postgres config
811
+ */
812
+ export const v1GetPostgresConfig = (options) => (options.client ?? client).get({
813
+ security: [{ scheme: 'bearer', type: 'http' }],
814
+ url: '/v1/projects/{ref}/config/database/postgres',
815
+ ...options
816
+ });
817
+ /**
818
+ * Updates project's Postgres config
819
+ */
820
+ export const v1UpdatePostgresConfig = (options) => (options.client ?? client).put({
821
+ security: [{ scheme: 'bearer', type: 'http' }],
822
+ url: '/v1/projects/{ref}/config/database/postgres',
823
+ ...options,
824
+ headers: {
825
+ 'Content-Type': 'application/json',
826
+ ...options.headers
827
+ }
828
+ });
829
+ /**
830
+ * Get project's pgbouncer config
831
+ */
832
+ export const v1GetProjectPgbouncerConfig = (options) => (options.client ?? client).get({ url: '/v1/projects/{ref}/config/database/pgbouncer', ...options });
833
+ /**
834
+ * Gets project's supavisor config
835
+ */
836
+ export const v1GetPoolerConfig = (options) => (options.client ?? client).get({
837
+ security: [{ scheme: 'bearer', type: 'http' }],
838
+ url: '/v1/projects/{ref}/config/database/pooler',
839
+ ...options
840
+ });
841
+ /**
842
+ * Updates project's supavisor config
843
+ */
844
+ export const v1UpdatePoolerConfig = (options) => (options.client ?? client).patch({
845
+ security: [{ scheme: 'bearer', type: 'http' }],
846
+ url: '/v1/projects/{ref}/config/database/pooler',
847
+ ...options,
848
+ headers: {
849
+ 'Content-Type': 'application/json',
850
+ ...options.headers
851
+ }
852
+ });
853
+ /**
854
+ * Gets project's auth config
855
+ */
856
+ export const v1GetAuthServiceConfig = (options) => (options.client ?? client).get({
857
+ security: [{ scheme: 'bearer', type: 'http' }],
858
+ url: '/v1/projects/{ref}/config/auth',
859
+ ...options
860
+ });
861
+ /**
862
+ * Updates a project's auth config
863
+ */
864
+ export const v1UpdateAuthServiceConfig = (options) => (options.client ?? client).patch({
865
+ security: [{ scheme: 'bearer', type: 'http' }],
866
+ url: '/v1/projects/{ref}/config/auth',
867
+ ...options,
868
+ headers: {
869
+ 'Content-Type': 'application/json',
870
+ ...options.headers
871
+ }
872
+ });
873
+ /**
874
+ * Gets realtime configuration
875
+ */
876
+ export const v1GetRealtimeConfig = (options) => (options.client ?? client).get({
877
+ security: [{ scheme: 'bearer', type: 'http' }],
878
+ url: '/v1/projects/{ref}/config/realtime',
879
+ ...options
880
+ });
881
+ /**
882
+ * Updates realtime configuration
883
+ */
884
+ export const v1UpdateRealtimeConfig = (options) => (options.client ?? client).patch({
885
+ security: [{ scheme: 'bearer', type: 'http' }],
886
+ url: '/v1/projects/{ref}/config/realtime',
887
+ ...options,
888
+ headers: {
889
+ 'Content-Type': 'application/json',
890
+ ...options.headers
891
+ }
892
+ });
893
+ /**
894
+ * Lists all third-party auth integrations
895
+ */
896
+ export const v1ListProjectTpaIntegrations = (options) => (options.client ?? client).get({
897
+ security: [{ scheme: 'bearer', type: 'http' }],
898
+ url: '/v1/projects/{ref}/config/auth/third-party-auth',
899
+ ...options
900
+ });
901
+ /**
902
+ * Creates a new third-party auth integration
903
+ */
904
+ export const v1CreateProjectTpaIntegration = (options) => (options.client ?? client).post({
905
+ security: [{ scheme: 'bearer', type: 'http' }],
906
+ url: '/v1/projects/{ref}/config/auth/third-party-auth',
907
+ ...options,
908
+ headers: {
909
+ 'Content-Type': 'application/json',
910
+ ...options.headers
911
+ }
912
+ });
913
+ /**
914
+ * Removes a third-party auth integration
915
+ */
916
+ export const v1DeleteProjectTpaIntegration = (options) => (options.client ?? client).delete({
917
+ security: [{ scheme: 'bearer', type: 'http' }],
918
+ url: '/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}',
919
+ ...options
920
+ });
921
+ /**
922
+ * Get a third-party integration
923
+ */
924
+ export const v1GetProjectTpaIntegration = (options) => (options.client ?? client).get({
925
+ security: [{ scheme: 'bearer', type: 'http' }],
926
+ url: '/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}',
927
+ ...options
928
+ });
929
+ /**
930
+ * Pauses the given project
931
+ */
932
+ export const v1PauseAProject = (options) => (options.client ?? client).post({
933
+ security: [{ scheme: 'bearer', type: 'http' }],
934
+ url: '/v1/projects/{ref}/pause',
935
+ ...options
936
+ });
937
+ /**
938
+ * Lists available restore versions for the given project
939
+ */
940
+ export const v1ListAvailableRestoreVersions = (options) => (options.client ?? client).get({
941
+ security: [{ scheme: 'bearer', type: 'http' }],
942
+ url: '/v1/projects/{ref}/restore',
943
+ ...options
944
+ });
945
+ /**
946
+ * Restores the given project
947
+ */
948
+ export const v1RestoreAProject = (options) => (options.client ?? client).post({
949
+ security: [{ scheme: 'bearer', type: 'http' }],
950
+ url: '/v1/projects/{ref}/restore',
951
+ ...options
952
+ });
953
+ /**
954
+ * Cancels the given project restoration
955
+ */
956
+ export const v1CancelAProjectRestoration = (options) => (options.client ?? client).post({
957
+ security: [{ scheme: 'bearer', type: 'http' }],
958
+ url: '/v1/projects/{ref}/restore/cancel',
959
+ ...options
960
+ });
961
+ /**
962
+ * List billing addons and compute instance selections
963
+ *
964
+ * Returns the billing addons that are currently applied, including the active compute instance size, and lists every addon option that can be provisioned with pricing metadata.
965
+ */
966
+ export const v1ListProjectAddons = (options) => (options.client ?? client).get({
967
+ security: [{ scheme: 'bearer', type: 'http' }],
968
+ url: '/v1/projects/{ref}/billing/addons',
969
+ ...options
970
+ });
971
+ /**
972
+ * Apply or update billing addons, including compute instance size
973
+ *
974
+ * Selects an addon variant, for example scaling the project’s compute instance up or down, and applies it to the project.
975
+ */
976
+ export const v1ApplyProjectAddon = (options) => (options.client ?? client).patch({
977
+ security: [{ scheme: 'bearer', type: 'http' }],
978
+ url: '/v1/projects/{ref}/billing/addons',
979
+ ...options,
980
+ headers: {
981
+ 'Content-Type': 'application/json',
982
+ ...options.headers
983
+ }
984
+ });
985
+ /**
986
+ * Remove billing addons or revert compute instance sizing
987
+ *
988
+ * Disables the selected addon variant, including rolling the compute instance back to its previous size.
989
+ */
990
+ export const v1RemoveProjectAddon = (options) => (options.client ?? client).delete({
991
+ security: [{ scheme: 'bearer', type: 'http' }],
992
+ url: '/v1/projects/{ref}/billing/addons/{addon_variant}',
993
+ ...options
994
+ });
995
+ /**
996
+ * Revokes project claim token
997
+ */
998
+ export const v1DeleteProjectClaimToken = (options) => (options.client ?? client).delete({
999
+ security: [{ scheme: 'bearer', type: 'http' }],
1000
+ url: '/v1/projects/{ref}/claim-token',
1001
+ ...options
1002
+ });
1003
+ /**
1004
+ * Gets project claim token
1005
+ */
1006
+ export const v1GetProjectClaimToken = (options) => (options.client ?? client).get({
1007
+ security: [{ scheme: 'bearer', type: 'http' }],
1008
+ url: '/v1/projects/{ref}/claim-token',
1009
+ ...options
1010
+ });
1011
+ /**
1012
+ * Creates project claim token
1013
+ */
1014
+ export const v1CreateProjectClaimToken = (options) => (options.client ?? client).post({
1015
+ security: [{ scheme: 'bearer', type: 'http' }],
1016
+ url: '/v1/projects/{ref}/claim-token',
1017
+ ...options
1018
+ });
1019
+ /**
1020
+ * Gets project performance advisors.
1021
+ *
1022
+ * This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.
1023
+ *
1024
+ * @deprecated
1025
+ */
1026
+ export const v1GetPerformanceAdvisors = (options) => (options.client ?? client).get({
1027
+ security: [{ scheme: 'bearer', type: 'http' }],
1028
+ url: '/v1/projects/{ref}/advisors/performance',
1029
+ ...options
1030
+ });
1031
+ /**
1032
+ * Gets project security advisors.
1033
+ *
1034
+ * This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.
1035
+ *
1036
+ * @deprecated
1037
+ */
1038
+ export const v1GetSecurityAdvisors = (options) => (options.client ?? client).get({
1039
+ security: [{ scheme: 'bearer', type: 'http' }],
1040
+ url: '/v1/projects/{ref}/advisors/security',
1041
+ ...options
1042
+ });
1043
+ /**
1044
+ * Gets project's logs
1045
+ *
1046
+ * Executes a SQL query on the project's logs.
1047
+ *
1048
+ * Either the `iso_timestamp_start` and `iso_timestamp_end` parameters must be provided.
1049
+ * If both are not provided, only the last 1 minute of logs will be queried.
1050
+ * The timestamp range must be no more than 24 hours and is rounded to the nearest minute. If the range is more than 24 hours, a validation error will be thrown.
1051
+ *
1052
+ * Note: Unless the `sql` parameter is provided, only edge_logs will be queried. See the [log query docs](/docs/guides/telemetry/logs?queryGroups=product&product=postgres&queryGroups=source&source=edge_logs#querying-with-the-logs-explorer:~:text=logs%20from%20the-,Sources,-drop%2Ddown%3A) for all available sources.
1053
+ *
1054
+ */
1055
+ export const v1GetProjectLogs = (options) => (options.client ?? client).get({
1056
+ security: [{ scheme: 'bearer', type: 'http' }],
1057
+ url: '/v1/projects/{ref}/analytics/endpoints/logs.all',
1058
+ ...options
1059
+ });
1060
+ /**
1061
+ * Gets project's usage api counts
1062
+ */
1063
+ export const v1GetProjectUsageApiCount = (options) => (options.client ?? client).get({
1064
+ security: [{ scheme: 'bearer', type: 'http' }],
1065
+ url: '/v1/projects/{ref}/analytics/endpoints/usage.api-counts',
1066
+ ...options
1067
+ });
1068
+ /**
1069
+ * Gets project's usage api requests count
1070
+ */
1071
+ export const v1GetProjectUsageRequestCount = (options) => (options.client ?? client).get({
1072
+ security: [{ scheme: 'bearer', type: 'http' }],
1073
+ url: '/v1/projects/{ref}/analytics/endpoints/usage.api-requests-count',
1074
+ ...options
1075
+ });
1076
+ /**
1077
+ * Gets a project's function combined statistics
1078
+ */
1079
+ export const v1GetProjectFunctionCombinedStats = (options) => (options.client ?? client).get({
1080
+ security: [{ scheme: 'bearer', type: 'http' }],
1081
+ url: '/v1/projects/{ref}/analytics/endpoints/functions.combined-stats',
1082
+ ...options
1083
+ });
1084
+ /**
1085
+ * [Beta] Delete existing login roles used by CLI
1086
+ */
1087
+ export const v1DeleteLoginRoles = (options) => (options.client ?? client).delete({
1088
+ security: [{ scheme: 'bearer', type: 'http' }],
1089
+ url: '/v1/projects/{ref}/cli/login-role',
1090
+ ...options
1091
+ });
1092
+ /**
1093
+ * [Beta] Create a login role for CLI with temporary password
1094
+ */
1095
+ export const v1CreateLoginRole = (options) => (options.client ?? client).post({
1096
+ security: [{ scheme: 'bearer', type: 'http' }],
1097
+ url: '/v1/projects/{ref}/cli/login-role',
1098
+ ...options,
1099
+ headers: {
1100
+ 'Content-Type': 'application/json',
1101
+ ...options.headers
1102
+ }
1103
+ });
1104
+ /**
1105
+ * [Beta] Rollback database migrations and remove them from history table
1106
+ *
1107
+ * Only available to selected partner OAuth apps
1108
+ */
1109
+ export const v1RollbackMigrations = (options) => (options.client ?? client).delete({
1110
+ security: [{ scheme: 'bearer', type: 'http' }],
1111
+ url: '/v1/projects/{ref}/database/migrations',
1112
+ ...options
1113
+ });
1114
+ /**
1115
+ * [Beta] List applied migration versions
1116
+ *
1117
+ * Only available to selected partner OAuth apps
1118
+ */
1119
+ export const v1ListMigrationHistory = (options) => (options.client ?? client).get({
1120
+ security: [{ scheme: 'bearer', type: 'http' }],
1121
+ url: '/v1/projects/{ref}/database/migrations',
1122
+ ...options
1123
+ });
1124
+ /**
1125
+ * [Beta] Apply a database migration
1126
+ *
1127
+ * Only available to selected partner OAuth apps
1128
+ */
1129
+ export const v1ApplyAMigration = (options) => (options.client ?? client).post({
1130
+ security: [{ scheme: 'bearer', type: 'http' }],
1131
+ url: '/v1/projects/{ref}/database/migrations',
1132
+ ...options,
1133
+ headers: {
1134
+ 'Content-Type': 'application/json',
1135
+ ...options.headers
1136
+ }
1137
+ });
1138
+ /**
1139
+ * [Beta] Upsert a database migration without applying
1140
+ *
1141
+ * Only available to selected partner OAuth apps
1142
+ */
1143
+ export const v1UpsertAMigration = (options) => (options.client ?? client).put({
1144
+ security: [{ scheme: 'bearer', type: 'http' }],
1145
+ url: '/v1/projects/{ref}/database/migrations',
1146
+ ...options,
1147
+ headers: {
1148
+ 'Content-Type': 'application/json',
1149
+ ...options.headers
1150
+ }
1151
+ });
1152
+ /**
1153
+ * [Beta] Fetch an existing entry from migration history
1154
+ *
1155
+ * Only available to selected partner OAuth apps
1156
+ */
1157
+ export const v1GetAMigration = (options) => (options.client ?? client).get({
1158
+ security: [{ scheme: 'bearer', type: 'http' }],
1159
+ url: '/v1/projects/{ref}/database/migrations/{version}',
1160
+ ...options
1161
+ });
1162
+ /**
1163
+ * [Beta] Patch an existing entry in migration history
1164
+ *
1165
+ * Only available to selected partner OAuth apps
1166
+ */
1167
+ export const v1PatchAMigration = (options) => (options.client ?? client).patch({
1168
+ security: [{ scheme: 'bearer', type: 'http' }],
1169
+ url: '/v1/projects/{ref}/database/migrations/{version}',
1170
+ ...options,
1171
+ headers: {
1172
+ 'Content-Type': 'application/json',
1173
+ ...options.headers
1174
+ }
1175
+ });
1176
+ /**
1177
+ * [Beta] Run sql query
1178
+ */
1179
+ export const v1RunAQuery = (options) => (options.client ?? client).post({
1180
+ security: [{ scheme: 'bearer', type: 'http' }],
1181
+ url: '/v1/projects/{ref}/database/query',
1182
+ ...options,
1183
+ headers: {
1184
+ 'Content-Type': 'application/json',
1185
+ ...options.headers
1186
+ }
1187
+ });
1188
+ /**
1189
+ * [Beta] Run a sql query as supabase_read_only_user
1190
+ *
1191
+ * All entity references must be schema qualified.
1192
+ */
1193
+ export const v1ReadOnlyQuery = (options) => (options.client ?? client).post({
1194
+ security: [{ scheme: 'bearer', type: 'http' }],
1195
+ url: '/v1/projects/{ref}/database/query/read-only',
1196
+ ...options,
1197
+ headers: {
1198
+ 'Content-Type': 'application/json',
1199
+ ...options.headers
1200
+ }
1201
+ });
1202
+ /**
1203
+ * [Beta] Enables Database Webhooks on the project
1204
+ */
1205
+ export const v1EnableDatabaseWebhook = (options) => (options.client ?? client).post({
1206
+ security: [{ scheme: 'bearer', type: 'http' }],
1207
+ url: '/v1/projects/{ref}/database/webhooks/enable',
1208
+ ...options
1209
+ });
1210
+ /**
1211
+ * Gets database metadata for the given project.
1212
+ *
1213
+ * This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.
1214
+ *
1215
+ * @deprecated
1216
+ */
1217
+ export const v1GetDatabaseMetadata = (options) => (options.client ?? client).get({
1218
+ security: [{ scheme: 'bearer', type: 'http' }],
1219
+ url: '/v1/projects/{ref}/database/context',
1220
+ ...options
1221
+ });
1222
+ /**
1223
+ * Updates the database password
1224
+ */
1225
+ export const v1UpdateDatabasePassword = (options) => (options.client ?? client).patch({
1226
+ security: [{ scheme: 'bearer', type: 'http' }],
1227
+ url: '/v1/projects/{ref}/database/password',
1228
+ ...options,
1229
+ headers: {
1230
+ 'Content-Type': 'application/json',
1231
+ ...options.headers
1232
+ }
1233
+ });
1234
+ /**
1235
+ * Get user-id to role mappings for JIT access
1236
+ *
1237
+ * Mappings of roles a user can assume in the project database
1238
+ */
1239
+ export const v1GetJitAccess = (options) => (options.client ?? client).get({
1240
+ security: [{ scheme: 'bearer', type: 'http' }],
1241
+ url: '/v1/projects/{ref}/database/jit',
1242
+ ...options
1243
+ });
1244
+ /**
1245
+ * Authorize user-id to role mappings for JIT access
1246
+ *
1247
+ * Authorizes the request to assume a role in the project database
1248
+ */
1249
+ export const v1AuthorizeJitAccess = (options) => (options.client ?? client).post({
1250
+ security: [{ scheme: 'bearer', type: 'http' }],
1251
+ url: '/v1/projects/{ref}/database/jit',
1252
+ ...options,
1253
+ headers: {
1254
+ 'Content-Type': 'application/json',
1255
+ ...options.headers
1256
+ }
1257
+ });
1258
+ /**
1259
+ * Updates a user mapping for JIT access
1260
+ *
1261
+ * Modifies the roles that can be assumed and for how long
1262
+ */
1263
+ export const v1UpdateJitAccess = (options) => (options.client ?? client).put({
1264
+ security: [{ scheme: 'bearer', type: 'http' }],
1265
+ url: '/v1/projects/{ref}/database/jit',
1266
+ ...options,
1267
+ headers: {
1268
+ 'Content-Type': 'application/json',
1269
+ ...options.headers
1270
+ }
1271
+ });
1272
+ /**
1273
+ * List all user-id to role mappings for JIT access
1274
+ *
1275
+ * Mappings of roles a user can assume in the project database
1276
+ */
1277
+ export const v1ListJitAccess = (options) => (options.client ?? client).get({
1278
+ security: [{ scheme: 'bearer', type: 'http' }],
1279
+ url: '/v1/projects/{ref}/database/jit/list',
1280
+ ...options
1281
+ });
1282
+ /**
1283
+ * Delete JIT access by user-id
1284
+ *
1285
+ * Remove JIT mappings of a user, revoking all JIT database access
1286
+ */
1287
+ export const v1DeleteJitAccess = (options) => (options.client ?? client).delete({
1288
+ security: [{ scheme: 'bearer', type: 'http' }],
1289
+ url: '/v1/projects/{ref}/database/jit/{user_id}',
1290
+ ...options
1291
+ });
1292
+ /**
1293
+ * List all functions
1294
+ *
1295
+ * Returns all functions you've previously added to the specified project.
1296
+ */
1297
+ export const v1ListAllFunctions = (options) => (options.client ?? client).get({
1298
+ security: [{ scheme: 'bearer', type: 'http' }],
1299
+ url: '/v1/projects/{ref}/functions',
1300
+ ...options
1301
+ });
1302
+ /**
1303
+ * Create a function
1304
+ *
1305
+ * This endpoint is deprecated - use the deploy endpoint. Creates a function and adds it to the specified project.
1306
+ *
1307
+ * @deprecated
1308
+ */
1309
+ export const v1CreateAFunction = (options) => (options.client ?? client).post({
1310
+ security: [{ scheme: 'bearer', type: 'http' }],
1311
+ url: '/v1/projects/{ref}/functions',
1312
+ ...options,
1313
+ headers: {
1314
+ 'Content-Type': 'application/json',
1315
+ ...options.headers
1316
+ }
1317
+ });
1318
+ /**
1319
+ * Bulk update functions
1320
+ *
1321
+ * Bulk update functions. It will create a new function or replace existing. The operation is idempotent. NOTE: You will need to manually bump the version.
1322
+ */
1323
+ export const v1BulkUpdateFunctions = (options) => (options.client ?? client).put({
1324
+ security: [{ scheme: 'bearer', type: 'http' }],
1325
+ url: '/v1/projects/{ref}/functions',
1326
+ ...options,
1327
+ headers: {
1328
+ 'Content-Type': 'application/json',
1329
+ ...options.headers
1330
+ }
1331
+ });
1332
+ /**
1333
+ * Deploy a function
1334
+ *
1335
+ * A new endpoint to deploy functions. It will create if function does not exist.
1336
+ */
1337
+ export const v1DeployAFunction = (options) => (options.client ?? client).post({
1338
+ ...formDataBodySerializer,
1339
+ security: [{ scheme: 'bearer', type: 'http' }],
1340
+ url: '/v1/projects/{ref}/functions/deploy',
1341
+ ...options,
1342
+ headers: {
1343
+ 'Content-Type': null,
1344
+ ...options.headers
1345
+ }
1346
+ });
1347
+ /**
1348
+ * Delete a function
1349
+ *
1350
+ * Deletes a function with the specified slug from the specified project.
1351
+ */
1352
+ export const v1DeleteAFunction = (options) => (options.client ?? client).delete({
1353
+ security: [{ scheme: 'bearer', type: 'http' }],
1354
+ url: '/v1/projects/{ref}/functions/{function_slug}',
1355
+ ...options
1356
+ });
1357
+ /**
1358
+ * Retrieve a function
1359
+ *
1360
+ * Retrieves a function with the specified slug and project.
1361
+ */
1362
+ export const v1GetAFunction = (options) => (options.client ?? client).get({
1363
+ security: [{ scheme: 'bearer', type: 'http' }],
1364
+ url: '/v1/projects/{ref}/functions/{function_slug}',
1365
+ ...options
1366
+ });
1367
+ /**
1368
+ * Update a function
1369
+ *
1370
+ * Updates a function with the specified slug and project.
1371
+ */
1372
+ export const v1UpdateAFunction = (options) => (options.client ?? client).patch({
1373
+ security: [{ scheme: 'bearer', type: 'http' }],
1374
+ url: '/v1/projects/{ref}/functions/{function_slug}',
1375
+ ...options,
1376
+ headers: {
1377
+ 'Content-Type': 'application/json',
1378
+ ...options.headers
1379
+ }
1380
+ });
1381
+ /**
1382
+ * Retrieve a function body
1383
+ *
1384
+ * Retrieves a function body for the specified slug and project.
1385
+ */
1386
+ export const v1GetAFunctionBody = (options) => (options.client ?? client).get({
1387
+ security: [{ scheme: 'bearer', type: 'http' }],
1388
+ url: '/v1/projects/{ref}/functions/{function_slug}/body',
1389
+ ...options
1390
+ });
1391
+ /**
1392
+ * Lists all buckets
1393
+ */
1394
+ export const v1ListAllBuckets = (options) => (options.client ?? client).get({
1395
+ security: [{ scheme: 'bearer', type: 'http' }],
1396
+ url: '/v1/projects/{ref}/storage/buckets',
1397
+ ...options
1398
+ });
1399
+ /**
1400
+ * Lists all SSO providers
1401
+ */
1402
+ export const v1ListAllSsoProvider = (options) => (options.client ?? client).get({
1403
+ security: [{ scheme: 'bearer', type: 'http' }],
1404
+ url: '/v1/projects/{ref}/config/auth/sso/providers',
1405
+ ...options
1406
+ });
1407
+ /**
1408
+ * Creates a new SSO provider
1409
+ */
1410
+ export const v1CreateASsoProvider = (options) => (options.client ?? client).post({
1411
+ security: [{ scheme: 'bearer', type: 'http' }],
1412
+ url: '/v1/projects/{ref}/config/auth/sso/providers',
1413
+ ...options,
1414
+ headers: {
1415
+ 'Content-Type': 'application/json',
1416
+ ...options.headers
1417
+ }
1418
+ });
1419
+ /**
1420
+ * Removes a SSO provider by its UUID
1421
+ */
1422
+ export const v1DeleteASsoProvider = (options) => (options.client ?? client).delete({
1423
+ security: [{ scheme: 'bearer', type: 'http' }],
1424
+ url: '/v1/projects/{ref}/config/auth/sso/providers/{provider_id}',
1425
+ ...options
1426
+ });
1427
+ /**
1428
+ * Gets a SSO provider by its UUID
1429
+ */
1430
+ export const v1GetASsoProvider = (options) => (options.client ?? client).get({
1431
+ security: [{ scheme: 'bearer', type: 'http' }],
1432
+ url: '/v1/projects/{ref}/config/auth/sso/providers/{provider_id}',
1433
+ ...options
1434
+ });
1435
+ /**
1436
+ * Updates a SSO provider by its UUID
1437
+ */
1438
+ export const v1UpdateASsoProvider = (options) => (options.client ?? client).put({
1439
+ security: [{ scheme: 'bearer', type: 'http' }],
1440
+ url: '/v1/projects/{ref}/config/auth/sso/providers/{provider_id}',
1441
+ ...options,
1442
+ headers: {
1443
+ 'Content-Type': 'application/json',
1444
+ ...options.headers
1445
+ }
1446
+ });
1447
+ /**
1448
+ * Lists all backups
1449
+ */
1450
+ export const v1ListAllBackups = (options) => (options.client ?? client).get({
1451
+ security: [{ scheme: 'bearer', type: 'http' }],
1452
+ url: '/v1/projects/{ref}/database/backups',
1453
+ ...options
1454
+ });
1455
+ /**
1456
+ * Restores a PITR backup for a database
1457
+ */
1458
+ export const v1RestorePitrBackup = (options) => (options.client ?? client).post({
1459
+ security: [{ scheme: 'bearer', type: 'http' }],
1460
+ url: '/v1/projects/{ref}/database/backups/restore-pitr',
1461
+ ...options,
1462
+ headers: {
1463
+ 'Content-Type': 'application/json',
1464
+ ...options.headers
1465
+ }
1466
+ });
1467
+ /**
1468
+ * Get restore points for project
1469
+ */
1470
+ export const v1GetRestorePoint = (options) => (options.client ?? client).get({
1471
+ security: [{ scheme: 'bearer', type: 'http' }],
1472
+ url: '/v1/projects/{ref}/database/backups/restore-point',
1473
+ ...options
1474
+ });
1475
+ /**
1476
+ * Initiates a creation of a restore point for a database
1477
+ */
1478
+ export const v1CreateRestorePoint = (options) => (options.client ?? client).post({
1479
+ security: [{ scheme: 'bearer', type: 'http' }],
1480
+ url: '/v1/projects/{ref}/database/backups/restore-point',
1481
+ ...options,
1482
+ headers: {
1483
+ 'Content-Type': 'application/json',
1484
+ ...options.headers
1485
+ }
1486
+ });
1487
+ /**
1488
+ * Initiates an undo to a given restore point
1489
+ */
1490
+ export const v1Undo = (options) => (options.client ?? client).post({
1491
+ security: [{ scheme: 'bearer', type: 'http' }],
1492
+ url: '/v1/projects/{ref}/database/backups/undo',
1493
+ ...options,
1494
+ headers: {
1495
+ 'Content-Type': 'application/json',
1496
+ ...options.headers
1497
+ }
1498
+ });
1499
+ /**
1500
+ * List members of an organization
1501
+ */
1502
+ export const v1ListOrganizationMembers = (options) => (options.client ?? client).get({
1503
+ security: [{ scheme: 'bearer', type: 'http' }],
1504
+ url: '/v1/organizations/{slug}/members',
1505
+ ...options
1506
+ });
1507
+ /**
1508
+ * Gets information about the organization
1509
+ */
1510
+ export const v1GetAnOrganization = (options) => (options.client ?? client).get({
1511
+ security: [{ scheme: 'bearer', type: 'http' }],
1512
+ url: '/v1/organizations/{slug}',
1513
+ ...options
1514
+ });
1515
+ /**
1516
+ * Gets project details for the specified organization and claim token
1517
+ */
1518
+ export const v1GetOrganizationProjectClaim = (options) => (options.client ?? client).get({
1519
+ security: [{ scheme: 'bearer', type: 'http' }],
1520
+ url: '/v1/organizations/{slug}/project-claim/{token}',
1521
+ ...options
1522
+ });
1523
+ /**
1524
+ * Claims project for the specified organization
1525
+ */
1526
+ export const v1ClaimProjectForOrganization = (options) => (options.client ?? client).post({
1527
+ security: [{ scheme: 'bearer', type: 'http' }],
1528
+ url: '/v1/organizations/{slug}/project-claim/{token}',
1529
+ ...options
1530
+ });
1531
+ /**
1532
+ * Gets all projects for the given organization
1533
+ *
1534
+ * Returns a paginated list of projects for the specified organization.
1535
+ *
1536
+ * This endpoint uses offset-based pagination. Use the `offset` parameter to skip a number of projects and the `limit` parameter to control the number of projects returned per page.
1537
+ */
1538
+ export const v1GetAllProjectsForOrganization = (options) => (options.client ?? client).get({
1539
+ security: [{ scheme: 'bearer', type: 'http' }],
1540
+ url: '/v1/organizations/{slug}/projects',
1541
+ ...options
1542
+ });
1543
+ //# sourceMappingURL=sdk.gen.js.map