@macro-inc/sdk 0.0.1

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 (296) hide show
  1. package/README.md +177 -0
  2. package/dist/chunk-5HAKQN23.js +1263 -0
  3. package/dist/chunk-77EI4LSQ.js +2492 -0
  4. package/dist/chunk-CTKR64MY.js +1436 -0
  5. package/dist/chunk-JXIQT5TH.js +1467 -0
  6. package/dist/chunk-P4DTO6VD.js +830 -0
  7. package/dist/chunk-PAAFJYGO.js +967 -0
  8. package/dist/chunk-QNUS5BC5.js +913 -0
  9. package/dist/chunk-SGAHIERJ.js +1235 -0
  10. package/dist/chunk-V45LUJDI.js +838 -0
  11. package/dist/chunk-YRUXFEZM.js +1044 -0
  12. package/dist/generated/agent-harness/client/client.gen.d.ts +2 -0
  13. package/dist/generated/agent-harness/client/index.d.ts +10 -0
  14. package/dist/generated/agent-harness/client/types.gen.d.ts +120 -0
  15. package/dist/generated/agent-harness/client/utils.gen.d.ts +37 -0
  16. package/dist/generated/agent-harness/client.gen.d.ts +12 -0
  17. package/dist/generated/agent-harness/core/auth.gen.d.ts +25 -0
  18. package/dist/generated/agent-harness/core/bodySerializer.gen.d.ts +25 -0
  19. package/dist/generated/agent-harness/core/params.gen.d.ts +43 -0
  20. package/dist/generated/agent-harness/core/pathSerializer.gen.d.ts +33 -0
  21. package/dist/generated/agent-harness/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/dist/generated/agent-harness/core/serverSentEvents.gen.d.ts +71 -0
  23. package/dist/generated/agent-harness/core/types.gen.d.ts +83 -0
  24. package/dist/generated/agent-harness/core/utils.gen.d.ts +19 -0
  25. package/dist/generated/agent-harness/index.d.ts +2 -0
  26. package/dist/generated/agent-harness/index.js +6 -0
  27. package/dist/generated/agent-harness/sdk.gen.d.ts +84 -0
  28. package/dist/generated/agent-harness/types.gen.d.ts +539 -0
  29. package/dist/generated/auth/client/client.gen.d.ts +2 -0
  30. package/dist/generated/auth/client/index.d.ts +10 -0
  31. package/dist/generated/auth/client/types.gen.d.ts +120 -0
  32. package/dist/generated/auth/client/utils.gen.d.ts +37 -0
  33. package/dist/generated/auth/client.gen.d.ts +12 -0
  34. package/dist/generated/auth/core/auth.gen.d.ts +25 -0
  35. package/dist/generated/auth/core/bodySerializer.gen.d.ts +25 -0
  36. package/dist/generated/auth/core/params.gen.d.ts +43 -0
  37. package/dist/generated/auth/core/pathSerializer.gen.d.ts +33 -0
  38. package/dist/generated/auth/core/queryKeySerializer.gen.d.ts +18 -0
  39. package/dist/generated/auth/core/serverSentEvents.gen.d.ts +71 -0
  40. package/dist/generated/auth/core/types.gen.d.ts +83 -0
  41. package/dist/generated/auth/core/utils.gen.d.ts +19 -0
  42. package/dist/generated/auth/index.d.ts +2 -0
  43. package/dist/generated/auth/index.js +6 -0
  44. package/dist/generated/auth/sdk.gen.d.ts +383 -0
  45. package/dist/generated/auth/types.gen.d.ts +2175 -0
  46. package/dist/generated/cognition/client/client.gen.d.ts +2 -0
  47. package/dist/generated/cognition/client/index.d.ts +10 -0
  48. package/dist/generated/cognition/client/types.gen.d.ts +120 -0
  49. package/dist/generated/cognition/client/utils.gen.d.ts +37 -0
  50. package/dist/generated/cognition/client.gen.d.ts +12 -0
  51. package/dist/generated/cognition/core/auth.gen.d.ts +25 -0
  52. package/dist/generated/cognition/core/bodySerializer.gen.d.ts +25 -0
  53. package/dist/generated/cognition/core/params.gen.d.ts +43 -0
  54. package/dist/generated/cognition/core/pathSerializer.gen.d.ts +33 -0
  55. package/dist/generated/cognition/core/queryKeySerializer.gen.d.ts +18 -0
  56. package/dist/generated/cognition/core/serverSentEvents.gen.d.ts +71 -0
  57. package/dist/generated/cognition/core/types.gen.d.ts +83 -0
  58. package/dist/generated/cognition/core/utils.gen.d.ts +19 -0
  59. package/dist/generated/cognition/index.d.ts +2 -0
  60. package/dist/generated/cognition/index.js +6 -0
  61. package/dist/generated/cognition/sdk.gen.d.ts +224 -0
  62. package/dist/generated/cognition/types.gen.d.ts +2484 -0
  63. package/dist/generated/connection/client/client.gen.d.ts +2 -0
  64. package/dist/generated/connection/client/index.d.ts +10 -0
  65. package/dist/generated/connection/client/types.gen.d.ts +120 -0
  66. package/dist/generated/connection/client/utils.gen.d.ts +37 -0
  67. package/dist/generated/connection/client.gen.d.ts +12 -0
  68. package/dist/generated/connection/core/auth.gen.d.ts +25 -0
  69. package/dist/generated/connection/core/bodySerializer.gen.d.ts +25 -0
  70. package/dist/generated/connection/core/params.gen.d.ts +43 -0
  71. package/dist/generated/connection/core/pathSerializer.gen.d.ts +33 -0
  72. package/dist/generated/connection/core/queryKeySerializer.gen.d.ts +18 -0
  73. package/dist/generated/connection/core/serverSentEvents.gen.d.ts +71 -0
  74. package/dist/generated/connection/core/types.gen.d.ts +83 -0
  75. package/dist/generated/connection/core/utils.gen.d.ts +19 -0
  76. package/dist/generated/connection/index.d.ts +2 -0
  77. package/dist/generated/connection/index.js +839 -0
  78. package/dist/generated/connection/sdk.gen.d.ts +38 -0
  79. package/dist/generated/connection/types.gen.d.ts +235 -0
  80. package/dist/generated/contacts/client/client.gen.d.ts +2 -0
  81. package/dist/generated/contacts/client/index.d.ts +10 -0
  82. package/dist/generated/contacts/client/types.gen.d.ts +120 -0
  83. package/dist/generated/contacts/client/utils.gen.d.ts +37 -0
  84. package/dist/generated/contacts/client.gen.d.ts +12 -0
  85. package/dist/generated/contacts/core/auth.gen.d.ts +25 -0
  86. package/dist/generated/contacts/core/bodySerializer.gen.d.ts +25 -0
  87. package/dist/generated/contacts/core/params.gen.d.ts +43 -0
  88. package/dist/generated/contacts/core/pathSerializer.gen.d.ts +33 -0
  89. package/dist/generated/contacts/core/queryKeySerializer.gen.d.ts +18 -0
  90. package/dist/generated/contacts/core/serverSentEvents.gen.d.ts +71 -0
  91. package/dist/generated/contacts/core/types.gen.d.ts +83 -0
  92. package/dist/generated/contacts/core/utils.gen.d.ts +19 -0
  93. package/dist/generated/contacts/index.d.ts +2 -0
  94. package/dist/generated/contacts/index.js +6 -0
  95. package/dist/generated/contacts/sdk.gen.d.ts +43 -0
  96. package/dist/generated/contacts/types.gen.d.ts +52 -0
  97. package/dist/generated/email/client/client.gen.d.ts +2 -0
  98. package/dist/generated/email/client/index.d.ts +10 -0
  99. package/dist/generated/email/client/types.gen.d.ts +120 -0
  100. package/dist/generated/email/client/utils.gen.d.ts +37 -0
  101. package/dist/generated/email/client.gen.d.ts +12 -0
  102. package/dist/generated/email/core/auth.gen.d.ts +25 -0
  103. package/dist/generated/email/core/bodySerializer.gen.d.ts +25 -0
  104. package/dist/generated/email/core/params.gen.d.ts +43 -0
  105. package/dist/generated/email/core/pathSerializer.gen.d.ts +33 -0
  106. package/dist/generated/email/core/queryKeySerializer.gen.d.ts +18 -0
  107. package/dist/generated/email/core/serverSentEvents.gen.d.ts +71 -0
  108. package/dist/generated/email/core/types.gen.d.ts +83 -0
  109. package/dist/generated/email/core/utils.gen.d.ts +19 -0
  110. package/dist/generated/email/index.d.ts +2 -0
  111. package/dist/generated/email/index.js +6 -0
  112. package/dist/generated/email/sdk.gen.d.ts +254 -0
  113. package/dist/generated/email/types.gen.d.ts +2614 -0
  114. package/dist/generated/notification/client/client.gen.d.ts +2 -0
  115. package/dist/generated/notification/client/index.d.ts +10 -0
  116. package/dist/generated/notification/client/types.gen.d.ts +120 -0
  117. package/dist/generated/notification/client/utils.gen.d.ts +37 -0
  118. package/dist/generated/notification/client.gen.d.ts +12 -0
  119. package/dist/generated/notification/core/auth.gen.d.ts +25 -0
  120. package/dist/generated/notification/core/bodySerializer.gen.d.ts +25 -0
  121. package/dist/generated/notification/core/params.gen.d.ts +43 -0
  122. package/dist/generated/notification/core/pathSerializer.gen.d.ts +33 -0
  123. package/dist/generated/notification/core/queryKeySerializer.gen.d.ts +18 -0
  124. package/dist/generated/notification/core/serverSentEvents.gen.d.ts +71 -0
  125. package/dist/generated/notification/core/types.gen.d.ts +83 -0
  126. package/dist/generated/notification/core/utils.gen.d.ts +19 -0
  127. package/dist/generated/notification/index.d.ts +2 -0
  128. package/dist/generated/notification/index.js +6 -0
  129. package/dist/generated/notification/sdk.gen.d.ts +118 -0
  130. package/dist/generated/notification/types.gen.d.ts +1352 -0
  131. package/dist/generated/properties/client/client.gen.d.ts +2 -0
  132. package/dist/generated/properties/client/index.d.ts +10 -0
  133. package/dist/generated/properties/client/types.gen.d.ts +120 -0
  134. package/dist/generated/properties/client/utils.gen.d.ts +37 -0
  135. package/dist/generated/properties/client.gen.d.ts +12 -0
  136. package/dist/generated/properties/core/auth.gen.d.ts +25 -0
  137. package/dist/generated/properties/core/bodySerializer.gen.d.ts +25 -0
  138. package/dist/generated/properties/core/params.gen.d.ts +43 -0
  139. package/dist/generated/properties/core/pathSerializer.gen.d.ts +33 -0
  140. package/dist/generated/properties/core/queryKeySerializer.gen.d.ts +18 -0
  141. package/dist/generated/properties/core/serverSentEvents.gen.d.ts +71 -0
  142. package/dist/generated/properties/core/types.gen.d.ts +83 -0
  143. package/dist/generated/properties/core/utils.gen.d.ts +19 -0
  144. package/dist/generated/properties/index.d.ts +2 -0
  145. package/dist/generated/properties/index.js +6 -0
  146. package/dist/generated/properties/sdk.gen.d.ts +158 -0
  147. package/dist/generated/properties/types.gen.d.ts +1288 -0
  148. package/dist/generated/scheduled-action/client/client.gen.d.ts +2 -0
  149. package/dist/generated/scheduled-action/client/index.d.ts +10 -0
  150. package/dist/generated/scheduled-action/client/types.gen.d.ts +120 -0
  151. package/dist/generated/scheduled-action/client/utils.gen.d.ts +37 -0
  152. package/dist/generated/scheduled-action/client.gen.d.ts +12 -0
  153. package/dist/generated/scheduled-action/core/auth.gen.d.ts +25 -0
  154. package/dist/generated/scheduled-action/core/bodySerializer.gen.d.ts +25 -0
  155. package/dist/generated/scheduled-action/core/params.gen.d.ts +43 -0
  156. package/dist/generated/scheduled-action/core/pathSerializer.gen.d.ts +33 -0
  157. package/dist/generated/scheduled-action/core/queryKeySerializer.gen.d.ts +18 -0
  158. package/dist/generated/scheduled-action/core/serverSentEvents.gen.d.ts +71 -0
  159. package/dist/generated/scheduled-action/core/types.gen.d.ts +83 -0
  160. package/dist/generated/scheduled-action/core/utils.gen.d.ts +19 -0
  161. package/dist/generated/scheduled-action/index.d.ts +2 -0
  162. package/dist/generated/scheduled-action/index.js +845 -0
  163. package/dist/generated/scheduled-action/sdk.gen.d.ts +42 -0
  164. package/dist/generated/scheduled-action/types.gen.d.ts +241 -0
  165. package/dist/generated/search/client/client.gen.d.ts +2 -0
  166. package/dist/generated/search/client/index.d.ts +10 -0
  167. package/dist/generated/search/client/types.gen.d.ts +120 -0
  168. package/dist/generated/search/client/utils.gen.d.ts +37 -0
  169. package/dist/generated/search/client.gen.d.ts +12 -0
  170. package/dist/generated/search/core/auth.gen.d.ts +25 -0
  171. package/dist/generated/search/core/bodySerializer.gen.d.ts +25 -0
  172. package/dist/generated/search/core/params.gen.d.ts +43 -0
  173. package/dist/generated/search/core/pathSerializer.gen.d.ts +33 -0
  174. package/dist/generated/search/core/queryKeySerializer.gen.d.ts +18 -0
  175. package/dist/generated/search/core/serverSentEvents.gen.d.ts +71 -0
  176. package/dist/generated/search/core/types.gen.d.ts +83 -0
  177. package/dist/generated/search/core/utils.gen.d.ts +19 -0
  178. package/dist/generated/search/index.d.ts +2 -0
  179. package/dist/generated/search/index.js +6 -0
  180. package/dist/generated/search/sdk.gen.d.ts +44 -0
  181. package/dist/generated/search/types.gen.d.ts +2194 -0
  182. package/dist/generated/static-files/client/client.gen.d.ts +2 -0
  183. package/dist/generated/static-files/client/index.d.ts +10 -0
  184. package/dist/generated/static-files/client/types.gen.d.ts +120 -0
  185. package/dist/generated/static-files/client/utils.gen.d.ts +37 -0
  186. package/dist/generated/static-files/client.gen.d.ts +12 -0
  187. package/dist/generated/static-files/core/auth.gen.d.ts +25 -0
  188. package/dist/generated/static-files/core/bodySerializer.gen.d.ts +25 -0
  189. package/dist/generated/static-files/core/params.gen.d.ts +43 -0
  190. package/dist/generated/static-files/core/pathSerializer.gen.d.ts +33 -0
  191. package/dist/generated/static-files/core/queryKeySerializer.gen.d.ts +18 -0
  192. package/dist/generated/static-files/core/serverSentEvents.gen.d.ts +71 -0
  193. package/dist/generated/static-files/core/types.gen.d.ts +83 -0
  194. package/dist/generated/static-files/core/utils.gen.d.ts +19 -0
  195. package/dist/generated/static-files/index.d.ts +2 -0
  196. package/dist/generated/static-files/index.js +842 -0
  197. package/dist/generated/static-files/sdk.gen.d.ts +43 -0
  198. package/dist/generated/static-files/types.gen.d.ts +214 -0
  199. package/dist/generated/storage/client/client.gen.d.ts +2 -0
  200. package/dist/generated/storage/client/index.d.ts +10 -0
  201. package/dist/generated/storage/client/types.gen.d.ts +120 -0
  202. package/dist/generated/storage/client/utils.gen.d.ts +37 -0
  203. package/dist/generated/storage/client.gen.d.ts +12 -0
  204. package/dist/generated/storage/core/auth.gen.d.ts +25 -0
  205. package/dist/generated/storage/core/bodySerializer.gen.d.ts +25 -0
  206. package/dist/generated/storage/core/params.gen.d.ts +43 -0
  207. package/dist/generated/storage/core/pathSerializer.gen.d.ts +33 -0
  208. package/dist/generated/storage/core/queryKeySerializer.gen.d.ts +18 -0
  209. package/dist/generated/storage/core/serverSentEvents.gen.d.ts +71 -0
  210. package/dist/generated/storage/core/types.gen.d.ts +83 -0
  211. package/dist/generated/storage/core/utils.gen.d.ts +19 -0
  212. package/dist/generated/storage/index.d.ts +2 -0
  213. package/dist/generated/storage/index.js +6 -0
  214. package/dist/generated/storage/sdk.gen.d.ts +858 -0
  215. package/dist/generated/storage/types.gen.d.ts +12105 -0
  216. package/dist/generated/unfurl/client/client.gen.d.ts +2 -0
  217. package/dist/generated/unfurl/client/index.d.ts +10 -0
  218. package/dist/generated/unfurl/client/types.gen.d.ts +120 -0
  219. package/dist/generated/unfurl/client/utils.gen.d.ts +37 -0
  220. package/dist/generated/unfurl/client.gen.d.ts +12 -0
  221. package/dist/generated/unfurl/core/auth.gen.d.ts +25 -0
  222. package/dist/generated/unfurl/core/bodySerializer.gen.d.ts +25 -0
  223. package/dist/generated/unfurl/core/params.gen.d.ts +43 -0
  224. package/dist/generated/unfurl/core/pathSerializer.gen.d.ts +33 -0
  225. package/dist/generated/unfurl/core/queryKeySerializer.gen.d.ts +18 -0
  226. package/dist/generated/unfurl/core/serverSentEvents.gen.d.ts +71 -0
  227. package/dist/generated/unfurl/core/types.gen.d.ts +83 -0
  228. package/dist/generated/unfurl/core/utils.gen.d.ts +19 -0
  229. package/dist/generated/unfurl/index.d.ts +2 -0
  230. package/dist/generated/unfurl/index.js +835 -0
  231. package/dist/generated/unfurl/sdk.gen.d.ts +47 -0
  232. package/dist/generated/unfurl/types.gen.d.ts +125 -0
  233. package/dist/src/config.d.ts +51 -0
  234. package/dist/src/entities/agent-sessions/agent-session.d.ts +45 -0
  235. package/dist/src/entities/agent-sessions/namespace.d.ts +18 -0
  236. package/dist/src/entities/bots/namespace.d.ts +25 -0
  237. package/dist/src/entities/calls/call-record.d.ts +55 -0
  238. package/dist/src/entities/calls/namespace.d.ts +9 -0
  239. package/dist/src/entities/channels/channel.d.ts +88 -0
  240. package/dist/src/entities/channels/message.d.ts +64 -0
  241. package/dist/src/entities/channels/namespace.d.ts +30 -0
  242. package/dist/src/entities/channels/post.d.ts +20 -0
  243. package/dist/src/entities/channels/thread.d.ts +30 -0
  244. package/dist/src/entities/chats/chat.d.ts +55 -0
  245. package/dist/src/entities/chats/namespace.d.ts +14 -0
  246. package/dist/src/entities/crm/comment.d.ts +43 -0
  247. package/dist/src/entities/crm/company.d.ts +70 -0
  248. package/dist/src/entities/crm/contact.d.ts +48 -0
  249. package/dist/src/entities/crm/namespace.d.ts +22 -0
  250. package/dist/src/entities/documents/comment.d.ts +41 -0
  251. package/dist/src/entities/documents/document.d.ts +130 -0
  252. package/dist/src/entities/documents/namespace.d.ts +43 -0
  253. package/dist/src/entities/documents/system-skill.d.ts +16 -0
  254. package/dist/src/entities/email/attachment.d.ts +36 -0
  255. package/dist/src/entities/email/label.d.ts +31 -0
  256. package/dist/src/entities/email/link.d.ts +29 -0
  257. package/dist/src/entities/email/message.d.ts +58 -0
  258. package/dist/src/entities/email/namespace.d.ts +49 -0
  259. package/dist/src/entities/email/thread.d.ts +88 -0
  260. package/dist/src/entities/entity.d.ts +101 -0
  261. package/dist/src/entities/favorites/namespace.d.ts +19 -0
  262. package/dist/src/entities/foreign/foreign-entity.d.ts +30 -0
  263. package/dist/src/entities/foreign/namespace.d.ts +7 -0
  264. package/dist/src/entities/notifications/namespace.d.ts +29 -0
  265. package/dist/src/entities/notifications/notification.d.ts +50 -0
  266. package/dist/src/entities/pins/namespace.d.ts +19 -0
  267. package/dist/src/entities/projects/namespace.d.ts +13 -0
  268. package/dist/src/entities/projects/project.d.ts +42 -0
  269. package/dist/src/entities/properties/namespace.d.ts +47 -0
  270. package/dist/src/entities/properties/property-definition.d.ts +45 -0
  271. package/dist/src/entities/properties/property-option.d.ts +32 -0
  272. package/dist/src/entities/search.d.ts +23 -0
  273. package/dist/src/entities/tasks/namespace.d.ts +21 -0
  274. package/dist/src/entities/tasks/task.d.ts +34 -0
  275. package/dist/src/entities/teams/namespace.d.ts +12 -0
  276. package/dist/src/entities/teams/team.d.ts +40 -0
  277. package/dist/src/entities/users/namespace.d.ts +10 -0
  278. package/dist/src/entities/users/user.d.ts +43 -0
  279. package/dist/src/entities/webhooks/namespace.d.ts +31 -0
  280. package/dist/src/entities/webhooks/webhook.d.ts +88 -0
  281. package/dist/src/events/hydrate/channel.d.ts +85 -0
  282. package/dist/src/events/hydrate/document.d.ts +54 -0
  283. package/dist/src/events/receiver.d.ts +51 -0
  284. package/dist/src/events/types.d.ts +40 -0
  285. package/dist/src/events/verify.d.ts +13 -0
  286. package/dist/src/local-portmap.d.ts +8 -0
  287. package/dist/src/macro.d.ts +62 -0
  288. package/dist/src/macro.js +4215 -0
  289. package/dist/src/mentions.d.ts +37 -0
  290. package/dist/src/raw.d.ts +12 -0
  291. package/dist/src/utils/client.d.ts +53 -0
  292. package/dist/src/utils/index.d.ts +4 -0
  293. package/dist/src/utils/lazy.d.ts +18 -0
  294. package/dist/src/utils/pagination.d.ts +7 -0
  295. package/dist/src/utils/unwrap.d.ts +23 -0
  296. package/package.json +49 -0
@@ -0,0 +1,2175 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://${string}` | (string & {});
3
+ };
4
+ export type AbGroup = 'A' | 'B';
5
+ export type AppleLoginRequest = {
6
+ code: string;
7
+ id_token: string;
8
+ };
9
+ /**
10
+ * Tracking metadata for conversion attribution
11
+ */
12
+ export type CheckoutSessionMetadata = {
13
+ /**
14
+ * Meta (Facebook) click ID from _fbc cookie
15
+ */
16
+ fbc?: string | null;
17
+ /**
18
+ * Meta (Facebook) browser ID from _fbp cookie
19
+ */
20
+ fbp?: string | null;
21
+ /**
22
+ * Google Analytics client ID for conversion tracking
23
+ */
24
+ gaClientId?: string | null;
25
+ };
26
+ export type CreateAccountMergeRequest = {
27
+ /**
28
+ * The email address to generate the merge link for.
29
+ */
30
+ email: string;
31
+ };
32
+ /**
33
+ * Request body for creating a Stripe checkout session
34
+ */
35
+ export type CreateCheckoutSessionV2Request = {
36
+ /**
37
+ * The URL to redirect to if checkout is cancelled
38
+ */
39
+ cancelUrl: string;
40
+ /**
41
+ * Optional discount/promo code to apply
42
+ */
43
+ discount?: string | null;
44
+ /**
45
+ * Tracking metadata for conversion attribution
46
+ */
47
+ metadata?: CheckoutSessionMetadata;
48
+ /**
49
+ * The URL to redirect to on successful checkout
50
+ */
51
+ successUrl: string;
52
+ };
53
+ export type CreateInProgressLinkResponse = {
54
+ /**
55
+ * The link id
56
+ */
57
+ link_id: string;
58
+ };
59
+ /**
60
+ * Request body for creating a Stripe portal session
61
+ */
62
+ export type CreatePortalSessionRequest = {
63
+ /**
64
+ * The URL to redirect to after leaving the portal
65
+ */
66
+ returnUrl: string;
67
+ };
68
+ /**
69
+ * The request body to create a new team
70
+ */
71
+ export type CreateTeamRequest = {
72
+ /**
73
+ * The name of the team
74
+ */
75
+ name: string;
76
+ };
77
+ /**
78
+ * The request body to create a new user in fusionauth
79
+ * NOTE: Never derive debug here as we don't want to accidentally log the password
80
+ */
81
+ export type CreateUserRequest = {
82
+ /**
83
+ * The primary email address of the user.
84
+ * This will be the user's root "profile".
85
+ */
86
+ email: string;
87
+ /**
88
+ * The password for the user.
89
+ * TODO: configure password policy and validate password before attempting to create user
90
+ */
91
+ password: string;
92
+ /**
93
+ * The unique username for the user.
94
+ */
95
+ username: string;
96
+ };
97
+ /**
98
+ * What settings needs to render the Cursor connection.
99
+ *
100
+ * Deliberately thin. `registered` drives the whole UI; `updatedAt` lets it say
101
+ * when the key was last replaced, which is the only thing a user can check
102
+ * against their own memory when a session starts failing.
103
+ *
104
+ * Deliberately *not* reporting anything about the deployment itself. That is
105
+ * operator information: a user who sees it cannot act on it, and a service
106
+ * that cannot reach KMS does not start.
107
+ */
108
+ export type CursorApiKeyStatus = {
109
+ /**
110
+ * The Cursor model id this user's sessions start on, when they have
111
+ * chosen one. `None` means the deployment default is in effect — the
112
+ * settings dropdown shows that as its resting value.
113
+ */
114
+ defaultModelId?: string | null;
115
+ /**
116
+ * Whether this user has a key stored.
117
+ */
118
+ registered: boolean;
119
+ /**
120
+ * When the stored key was last replaced, if there is one.
121
+ */
122
+ updatedAt?: string | null;
123
+ };
124
+ /**
125
+ * One model the settings dropdown can offer.
126
+ *
127
+ * Just id and name: the dropdown lists models, not the hundreds of parameter
128
+ * variants each carries. The chosen id's parameters are resolved to Cursor's
129
+ * default variant at session start.
130
+ */
131
+ export type CursorModelOption = {
132
+ /**
133
+ * The human-readable name, e.g. `Cursor Grok 4.6`.
134
+ */
135
+ displayName: string;
136
+ /**
137
+ * The id to store and send, e.g. `grok-4.6`.
138
+ */
139
+ id: string;
140
+ };
141
+ /**
142
+ * The models this account may choose from.
143
+ */
144
+ export type CursorModelsResponse = {
145
+ /**
146
+ * The offered models, in the order Cursor returned them.
147
+ */
148
+ models: Array<CursorModelOption>;
149
+ };
150
+ /**
151
+ * Empty response is required due to custom fetch forcing `response.json()`
152
+ */
153
+ export type EmptyResponse = {
154
+ [key: string]: unknown;
155
+ };
156
+ /**
157
+ * Request body for the authenticated pull request enrichment proxy.
158
+ */
159
+ export type EnrichGithubPullRequestsProxyRequest = {
160
+ /**
161
+ * The pull requests to enrich for the authenticated user.
162
+ */
163
+ pullRequests: Array<GithubPullRequestRef>;
164
+ };
165
+ /**
166
+ * Response body for pull request enrichment.
167
+ */
168
+ export type EnrichGithubPullRequestsResponse = {
169
+ /**
170
+ * Pull requests with enrichment fields populated when GitHub data was available.
171
+ */
172
+ pullRequests: Array<EnrichedGithubPullRequest>;
173
+ };
174
+ /**
175
+ * A pull request reference enriched with live GitHub details when available.
176
+ */
177
+ export type EnrichedGithubPullRequest = {
178
+ /**
179
+ * The number of added lines reported by GitHub, when enrichment succeeds.
180
+ */
181
+ additions?: number | null;
182
+ /**
183
+ * The stable numeric GitHub user id for the pull request author, when available.
184
+ */
185
+ authorId?: number | null;
186
+ /**
187
+ * The GitHub login for the pull request author, when available.
188
+ */
189
+ authorLogin?: string | null;
190
+ /**
191
+ * Check runs collected from the pull request head commit, when enrichment includes them.
192
+ */
193
+ checks?: Array<GithubPullRequestCheckRun> | null;
194
+ /**
195
+ * Comments collected from the pull request, when enrichment includes them.
196
+ */
197
+ comments?: Array<GithubPullRequestComment> | null;
198
+ /**
199
+ * The number of deleted lines reported by GitHub, when enrichment succeeds.
200
+ */
201
+ deletions?: number | null;
202
+ /**
203
+ * The pull request description (body), when available.
204
+ */
205
+ description?: string | null;
206
+ /**
207
+ * A compact label suitable for display in the UI.
208
+ */
209
+ displayName: string;
210
+ /**
211
+ * The stored GitHub association key, in `owner/repo/pull/number` format.
212
+ */
213
+ githubKey: string;
214
+ /**
215
+ * The GitHub pull request title, when enrichment succeeds.
216
+ */
217
+ name?: string | null;
218
+ /**
219
+ * The GitHub pull request number.
220
+ */
221
+ number: number;
222
+ /**
223
+ * The GitHub repository owner or organization.
224
+ */
225
+ owner: string;
226
+ /**
227
+ * Stable numeric GitHub user ids (as strings) for everyone involved in the pull request.
228
+ * Queried by the foreign entity `includes_me` filter, so stored metadata merges this as a
229
+ * union rather than replacing it (partial write paths must not drop known participants).
230
+ */
231
+ participantGithubUserIds?: Array<string> | null;
232
+ /**
233
+ * The GitHub repository name.
234
+ */
235
+ repo: string;
236
+ status?: null | GithubPullRequestStatus;
237
+ /**
238
+ * The public GitHub URL for the pull request.
239
+ */
240
+ url: string;
241
+ };
242
+ /**
243
+ * A plain old json error response for use with axum.
244
+ * yup, thats it.
245
+ */
246
+ export type ErrorResponse = {
247
+ /**
248
+ * Message to explain failure
249
+ */
250
+ message: string;
251
+ };
252
+ export type GenerateEmailLinkRequest = {
253
+ /**
254
+ * The email address to resend the verification email to
255
+ */
256
+ email: string;
257
+ };
258
+ export type GenericSuccessResponse = {
259
+ /**
260
+ * Indicates if the request was successful
261
+ */
262
+ success: boolean;
263
+ };
264
+ export type GetLegacyUserPermissionsResponse = {
265
+ /**
266
+ * Whether the user has consented to AI data sharing
267
+ */
268
+ aiDataConsent: boolean;
269
+ /**
270
+ * When the account was created. Absent for accounts that predate
271
+ * creation-time tracking.
272
+ */
273
+ createdAt?: string | null;
274
+ /**
275
+ * The user's email
276
+ */
277
+ email: string;
278
+ group?: null | AbGroup;
279
+ /**
280
+ * Whether the user has the chrome extension
281
+ */
282
+ hasChromeExt: boolean;
283
+ /**
284
+ * Whether the user has trialed through stripe
285
+ */
286
+ hasTrialed: boolean;
287
+ /**
288
+ * The user's license status
289
+ */
290
+ licenseStatus: string;
291
+ /**
292
+ * The user's name
293
+ */
294
+ name?: string | null;
295
+ /**
296
+ * The permissions the user has
297
+ */
298
+ permissions: Array<string>;
299
+ /**
300
+ * The referral code for the user
301
+ */
302
+ referralCode: string;
303
+ /**
304
+ * Whether the user has completed the tutorial
305
+ */
306
+ tutorialComplete: boolean;
307
+ /**
308
+ * The user id
309
+ */
310
+ userId: string;
311
+ };
312
+ export type GetNamesWithEmailRequestBody = {
313
+ user_ids: Array<string>;
314
+ };
315
+ export type GetProfilePicturesRequestBody = {
316
+ user_id_list: Array<string>;
317
+ };
318
+ export type GetUserInfo = {
319
+ /**
320
+ * The user's organization id if there is one associated with the user
321
+ */
322
+ organization_id?: number | null;
323
+ /**
324
+ * The user's permissions
325
+ */
326
+ permissions: Array<string>;
327
+ /**
328
+ * The user id
329
+ */
330
+ user_id: string;
331
+ };
332
+ export type GithubLinkStatusResponse = {
333
+ /**
334
+ * Whether the user must reauthenticate their GitHub link.
335
+ */
336
+ reauthentication_required: boolean;
337
+ };
338
+ /**
339
+ * A check run associated with a GitHub pull request.
340
+ */
341
+ export type GithubPullRequestCheckRun = {
342
+ /**
343
+ * When the check run completed, when available.
344
+ */
345
+ completedAt?: string | null;
346
+ /**
347
+ * The raw GitHub check run conclusion, when the run has completed.
348
+ */
349
+ conclusion?: string | null;
350
+ /**
351
+ * The unique GitHub identifier for the check run.
352
+ */
353
+ id: number;
354
+ /**
355
+ * The check run name.
356
+ */
357
+ name: string;
358
+ /**
359
+ * When the check run started, when available.
360
+ */
361
+ startedAt?: string | null;
362
+ /**
363
+ * The raw GitHub check run status.
364
+ */
365
+ status: string;
366
+ /**
367
+ * The public GitHub URL for the check run, when available.
368
+ */
369
+ url?: string | null;
370
+ };
371
+ /**
372
+ * A comment associated with a GitHub pull request.
373
+ */
374
+ export type GithubPullRequestComment = {
375
+ /**
376
+ * GitHub's relationship label for the author, when available.
377
+ */
378
+ authorAssociation?: string | null;
379
+ /**
380
+ * The stable numeric GitHub user id for the comment author, when available.
381
+ */
382
+ authorId?: number | null;
383
+ /**
384
+ * The GitHub login for the comment author, when available.
385
+ */
386
+ authorLogin?: string | null;
387
+ /**
388
+ * The comment or review body text.
389
+ */
390
+ body: string;
391
+ /**
392
+ * When the comment was created or the review was submitted.
393
+ */
394
+ createdAt?: string | null;
395
+ /**
396
+ * The unique GitHub identifier for the comment or review.
397
+ */
398
+ id: number;
399
+ /**
400
+ * The id of the comment this one replies to, when it is part of a review
401
+ * thread. Only ever present on `review_comment` sources.
402
+ */
403
+ inReplyToId?: number | null;
404
+ /**
405
+ * The line in the current diff the comment is anchored to. Cleared by
406
+ * GitHub when later commits outdate the comment's diff.
407
+ */
408
+ line?: number | null;
409
+ /**
410
+ * The line the comment was originally anchored to, kept even when the
411
+ * diff has since changed.
412
+ */
413
+ originalLine?: number | null;
414
+ /**
415
+ * The repository-relative file path the review comment is anchored to.
416
+ * Only ever present on `review_comment` sources.
417
+ */
418
+ path?: string | null;
419
+ /**
420
+ * The id of the pull request review this comment was submitted with.
421
+ * Only ever present on `review_comment` sources.
422
+ */
423
+ pullRequestReviewId?: number | null;
424
+ /**
425
+ * The GitHub source for the comment, such as `issue_comment` or `review_comment`.
426
+ */
427
+ source: string;
428
+ /**
429
+ * When the comment or review was last updated.
430
+ */
431
+ updatedAt?: string | null;
432
+ /**
433
+ * The public GitHub URL for the comment or review, when available.
434
+ */
435
+ url?: string | null;
436
+ };
437
+ /**
438
+ * A pull request reference that can be enriched with live GitHub data.
439
+ */
440
+ export type GithubPullRequestRef = {
441
+ /**
442
+ * A compact label suitable for display in the UI.
443
+ */
444
+ displayName: string;
445
+ /**
446
+ * The stored GitHub association key, in `owner/repo/pull/number` format.
447
+ */
448
+ githubKey: string;
449
+ /**
450
+ * The GitHub pull request number.
451
+ */
452
+ number: number;
453
+ /**
454
+ * The GitHub repository owner or organization.
455
+ */
456
+ owner: string;
457
+ /**
458
+ * The GitHub repository name.
459
+ */
460
+ repo: string;
461
+ /**
462
+ * The public GitHub URL for the pull request.
463
+ */
464
+ url: string;
465
+ };
466
+ /**
467
+ * The normalized lifecycle status for a GitHub pull request.
468
+ */
469
+ export type GithubPullRequestStatus = 'open' | 'closed' | 'merged';
470
+ export type GmailLinkStatusResponse = {
471
+ /**
472
+ * Whether the user must reauthenticate their Gmail link.
473
+ */
474
+ reauthentication_required: boolean;
475
+ };
476
+ export type InitGithubLinkResponse = {
477
+ /**
478
+ * The OAuth authorization URL to redirect the user to
479
+ */
480
+ authorization_url: string;
481
+ /**
482
+ * The link ID for tracking the OAuth flow
483
+ */
484
+ link_id: string;
485
+ };
486
+ export type InitGmailLinkResponse = {
487
+ /**
488
+ * The OAuth authorization URL to redirect the user to
489
+ */
490
+ authorization_url: string;
491
+ /**
492
+ * The link ID for tracking the OAuth flow
493
+ */
494
+ link_id: string;
495
+ };
496
+ /**
497
+ * Response returned when a Microsoft Outlook link is initiated.
498
+ */
499
+ export type InitOutlookLinkResponse = {
500
+ /**
501
+ * The OAuth authorization URL to redirect the user to.
502
+ */
503
+ authorization_url: string;
504
+ /**
505
+ * The link ID for tracking the OAuth flow.
506
+ */
507
+ link_id: string;
508
+ };
509
+ /**
510
+ * A single invite entry with email and tier
511
+ */
512
+ export type InviteEntry = {
513
+ /**
514
+ * The email of the user to invite
515
+ */
516
+ email: string;
517
+ };
518
+ /**
519
+ * The request body to invite a user to a team
520
+ */
521
+ export type InviteToTeamRequest = {
522
+ /**
523
+ * The invites to send, each with an email and tier
524
+ */
525
+ invites: Array<InviteEntry>;
526
+ };
527
+ /**
528
+ * Defines who can access an item through its share link.
529
+ */
530
+ export type LinkShare = 'PUBLIC' | 'TEAM';
531
+ export type MacroApiTokenResponse = {
532
+ /**
533
+ * The newly created macro_api_token
534
+ */
535
+ macro_api_token: string;
536
+ };
537
+ export type PasswordRequest = {
538
+ /**
539
+ * The email to login with
540
+ */
541
+ email: string;
542
+ password: string;
543
+ };
544
+ export type PasswordlessRequest = {
545
+ /**
546
+ * The email to initiate passwordless authentication for
547
+ */
548
+ email: string;
549
+ /**
550
+ * The redirect uri to redirect to after login
551
+ */
552
+ redirect_uri: string;
553
+ /**
554
+ * The referral code
555
+ */
556
+ referral_code?: string | null;
557
+ };
558
+ export type PasswordlessStartedResponse = {
559
+ /**
560
+ * The one-time login code, returned only by local environments so dev
561
+ * tooling can complete the flow without reading the email.
562
+ */
563
+ code?: string | null;
564
+ };
565
+ /**
566
+ * Request body for `PATCH /team/crm`.
567
+ */
568
+ export type PatchTeamCrmSettingsRequest = {
569
+ /**
570
+ * On a disabled → enabled transition, whether to backfill the CRM
571
+ * from members' existing email history. Ignored when disabling.
572
+ */
573
+ backfill?: boolean;
574
+ /**
575
+ * The desired CRM state for the team.
576
+ */
577
+ enabled: boolean;
578
+ };
579
+ /**
580
+ * Response for `PATCH /team/crm`. Reports both the resulting state
581
+ * and whether this call changed it; for the enable-flip case it also
582
+ * reports the backfill fan-out tallies.
583
+ */
584
+ export type PatchTeamCrmSettingsResponse = {
585
+ /**
586
+ * Number of members for whom a `PopulateCrmForUser` message was
587
+ * enqueued. Non-zero only on a disabled → enabled transition;
588
+ * per-user enqueue failures are logged and swallowed.
589
+ */
590
+ backfill_enqueued: number;
591
+ /**
592
+ * Number of members whose enqueue failed (and was swallowed).
593
+ * Non-zero only on a disabled → enabled transition.
594
+ */
595
+ backfill_failed: number;
596
+ /**
597
+ * True if this call flipped the value (false → true or true →
598
+ * false). False if the team was already at the requested state.
599
+ */
600
+ changed: boolean;
601
+ /**
602
+ * The resulting `crm_enabled` value after the call.
603
+ */
604
+ enabled: boolean;
605
+ };
606
+ /**
607
+ * Request to update a team
608
+ */
609
+ export type PatchTeamRequest = {
610
+ default_link_share?: null | LinkShare;
611
+ /**
612
+ * The new name for the team
613
+ */
614
+ name?: string | null;
615
+ /**
616
+ * The new slug for the team. This is normalized to SCREAMING_SNAKE_CASE.
617
+ */
618
+ slug?: string | null;
619
+ /**
620
+ * Role updates to apply to team users
621
+ */
622
+ user_role_updates?: Array<PatchTeamUserRole> | null;
623
+ };
624
+ /**
625
+ * Request to update a team user's role
626
+ */
627
+ export type PatchTeamUserRole = {
628
+ /**
629
+ * The new role of the team user
630
+ */
631
+ role: TeamRole;
632
+ /**
633
+ * The team user you are updating
634
+ */
635
+ team_user_id: string;
636
+ };
637
+ export type PatchUserGroupRequest = {
638
+ /**
639
+ * The group to add the user to
640
+ */
641
+ group: string;
642
+ };
643
+ export type PatchUserOnboardingRequest = {
644
+ /**
645
+ * The first name of the user
646
+ */
647
+ firstName: string;
648
+ /**
649
+ * The industry of the user
650
+ */
651
+ industry: string;
652
+ /**
653
+ * The last name of the user
654
+ */
655
+ lastName: string;
656
+ /**
657
+ * The title of the user
658
+ */
659
+ title: string;
660
+ };
661
+ export type PatchUserTutorialRequest = {
662
+ /**
663
+ * If the user has completed the tutorial
664
+ */
665
+ tutorialComplete: boolean;
666
+ };
667
+ export type Permission = {
668
+ /**
669
+ * The description of the permission
670
+ */
671
+ description: string;
672
+ /**
673
+ * The permission
674
+ */
675
+ id: string;
676
+ };
677
+ export type PostGetNamesRequestBody = {
678
+ user_ids: Array<string>;
679
+ };
680
+ export type ProfilePictureQueryParams = {
681
+ url: string;
682
+ };
683
+ export type ProfilePictures = {
684
+ pictures: Array<UserProfilePicture>;
685
+ };
686
+ /**
687
+ * The key the user pasted.
688
+ */
689
+ export type PutCursorApiKeyRequest = {
690
+ /**
691
+ * A `crsr_…` Cursor API key.
692
+ */
693
+ apiKey: string;
694
+ };
695
+ /**
696
+ * The model the user chose for their sessions.
697
+ */
698
+ export type PutCursorDefaultModelRequest = {
699
+ /**
700
+ * A Cursor model id (e.g. `grok-4.6`), or `null` to clear the choice and
701
+ * fall back to the deployment default.
702
+ */
703
+ modelId?: string | null;
704
+ };
705
+ export type PutUserNameQueryParams = {
706
+ /**
707
+ * First Name of user
708
+ */
709
+ first_name?: string | null;
710
+ /**
711
+ * Last Name of user
712
+ */
713
+ last_name?: string | null;
714
+ };
715
+ export type ResendFusionauthVerifyUserEmailRequest = {
716
+ /**
717
+ * The email address to resend the verification email to
718
+ */
719
+ email: string;
720
+ };
721
+ /**
722
+ * The body which is used to describe the recipient email
723
+ */
724
+ export type SendInviteBody = {
725
+ /**
726
+ * the recipient of the referral email
727
+ */
728
+ recipient: string;
729
+ };
730
+ export type SendMobileWelcomeEmailRequest = {
731
+ /**
732
+ * The email address to send the welcome email to
733
+ */
734
+ email: string;
735
+ };
736
+ export type SendMobileWelcomeEmailResponse = {
737
+ /**
738
+ * Whether the lead was enrolled (false if they were already enrolled previously)
739
+ */
740
+ sent: boolean;
741
+ };
742
+ export type SsoRequiredResponse = {
743
+ /**
744
+ * The idp_id you need to perform sso login with.
745
+ */
746
+ idp_id: string;
747
+ };
748
+ /**
749
+ * Response containing the Stripe session URL
750
+ */
751
+ export type StripeSessionResponse = {
752
+ /**
753
+ * The URL to redirect the user to
754
+ */
755
+ url: string;
756
+ };
757
+ /**
758
+ * The Team struct
759
+ */
760
+ export type Team = {
761
+ /**
762
+ * Whether non-admin members may invite users to the team. Defaults to
763
+ * true; admins can turn it off so only admins/owners may invite.
764
+ */
765
+ allow_non_admin_invites: boolean;
766
+ /**
767
+ * The email domain new users are automatically joined to this team
768
+ * with, when automatic domain joining is enabled (None otherwise).
769
+ */
770
+ auto_join_domain?: string | null;
771
+ /**
772
+ * Whether the CRM is enabled for this team (from `team_crm_settings`;
773
+ * `false` when no row exists).
774
+ */
775
+ crm_enabled: boolean;
776
+ default_link_share?: null | LinkShare;
777
+ /**
778
+ * Whether this team is on an enterprise license. Enterprise teams are
779
+ * billed out-of-band; membership changes skip all Stripe subscription
780
+ * bookkeeping (no seat counts, no subscription backfill, no paying check).
781
+ */
782
+ enterprise: boolean;
783
+ id: string;
784
+ name: string;
785
+ owner_id: string;
786
+ slug: string;
787
+ };
788
+ /**
789
+ * Detailed information about a team invite
790
+ */
791
+ export type TeamInviteDetails = {
792
+ /**
793
+ * When the invite was created
794
+ */
795
+ created_at: string;
796
+ /**
797
+ * The invited email
798
+ */
799
+ email: string;
800
+ /**
801
+ * The invite id
802
+ */
803
+ id: string;
804
+ /**
805
+ * The user who sent the invitation
806
+ */
807
+ invited_by: string;
808
+ /**
809
+ * When the invite was last sent
810
+ */
811
+ last_sent_at: string;
812
+ /**
813
+ * The team id
814
+ */
815
+ team_id: string;
816
+ /**
817
+ * The role being invited as
818
+ */
819
+ team_role: TeamRole;
820
+ };
821
+ /**
822
+ * Response containing a list of team invites
823
+ */
824
+ export type TeamInvitesResponse = {
825
+ /**
826
+ * The invites
827
+ */
828
+ invites: Array<TeamInviteDetails>;
829
+ };
830
+ /**
831
+ * The team member struct
832
+ */
833
+ export type TeamMember = {
834
+ /**
835
+ * The role of the team member
836
+ */
837
+ role: TeamRole;
838
+ /**
839
+ * The id of the team
840
+ */
841
+ team_id: string;
842
+ /**
843
+ * The user id of the team member
844
+ */
845
+ user_id: string;
846
+ };
847
+ /**
848
+ * Team plans
849
+ */
850
+ export type TeamPlan = 'idea' | 'pre_seed' | 'seed' | 'series_a' | 'growth';
851
+ /**
852
+ * Ordered from least to most access top -> bottom
853
+ */
854
+ export type TeamRole = 'member' | 'admin' | 'owner';
855
+ /**
856
+ * A team with its members
857
+ */
858
+ export type TeamWithMembers = {
859
+ /**
860
+ * The members of the team
861
+ */
862
+ members: Array<TeamMember>;
863
+ /**
864
+ * The team
865
+ */
866
+ team: Team;
867
+ };
868
+ /**
869
+ * Response for the toggle auto-join domain endpoint.
870
+ */
871
+ export type ToggleAutoJoinDomainResponse = {
872
+ /**
873
+ * The team's auto-join domain after the toggle (null when it was
874
+ * unset by this call).
875
+ */
876
+ auto_join_domain?: string | null;
877
+ };
878
+ /**
879
+ * Response for the toggle non-admin invites endpoint.
880
+ */
881
+ export type ToggleNonAdminInvitesResponse = {
882
+ /**
883
+ * Whether non-admin members may invite users to the team after the
884
+ * toggle.
885
+ */
886
+ allow_non_admin_invites: boolean;
887
+ };
888
+ export type UserLinkResponse = {
889
+ /**
890
+ * Whether or not a link exists for the given idp
891
+ */
892
+ link_exists: boolean;
893
+ };
894
+ export type UserName = {
895
+ first_name?: string | null;
896
+ id: string;
897
+ last_name?: string | null;
898
+ };
899
+ export type UserNames = {
900
+ names: Array<UserName>;
901
+ };
902
+ export type UserOrganizationResponse = {
903
+ /**
904
+ * The id of the organization
905
+ */
906
+ organizationId: number;
907
+ /**
908
+ * The name of the organization
909
+ */
910
+ organizationName: string;
911
+ };
912
+ export type UserProfilePicture = {
913
+ checksum?: string | null;
914
+ id: string;
915
+ url: string;
916
+ };
917
+ /**
918
+ * The UserQuota represents the user's current quota
919
+ */
920
+ export type UserQuota = {
921
+ /**
922
+ * The user's total number of AI chat messages the user has sent.
923
+ */
924
+ ai_chat_messages: number;
925
+ /**
926
+ * The user's total number of documents they have created.
927
+ */
928
+ documents: number;
929
+ /**
930
+ * The maximum number of AI chat messages they can send.
931
+ */
932
+ max_ai_chat_messages: number;
933
+ /**
934
+ * The maximum number of documents they can create.
935
+ */
936
+ max_documents: number;
937
+ };
938
+ export type UserTokensResponse = {
939
+ /**
940
+ * The users access token
941
+ */
942
+ access_token: string;
943
+ /**
944
+ * The users refresh token
945
+ */
946
+ refresh_token: string;
947
+ };
948
+ export type DeleteCursorApiKeyData = {
949
+ body?: never;
950
+ path?: never;
951
+ query?: never;
952
+ url: '/cursor-api-key';
953
+ };
954
+ export type DeleteCursorApiKeyErrors = {
955
+ 401: string;
956
+ 403: ErrorResponse;
957
+ };
958
+ export type DeleteCursorApiKeyError = DeleteCursorApiKeyErrors[keyof DeleteCursorApiKeyErrors];
959
+ export type DeleteCursorApiKeyResponses = {
960
+ 200: CursorApiKeyStatus;
961
+ };
962
+ export type DeleteCursorApiKeyResponse = DeleteCursorApiKeyResponses[keyof DeleteCursorApiKeyResponses];
963
+ export type GetCursorApiKeyData = {
964
+ body?: never;
965
+ path?: never;
966
+ query?: never;
967
+ url: '/cursor-api-key';
968
+ };
969
+ export type GetCursorApiKeyErrors = {
970
+ 401: string;
971
+ 403: ErrorResponse;
972
+ };
973
+ export type GetCursorApiKeyError = GetCursorApiKeyErrors[keyof GetCursorApiKeyErrors];
974
+ export type GetCursorApiKeyResponses = {
975
+ 200: CursorApiKeyStatus;
976
+ };
977
+ export type GetCursorApiKeyResponse = GetCursorApiKeyResponses[keyof GetCursorApiKeyResponses];
978
+ export type PutCursorApiKeyData = {
979
+ body: PutCursorApiKeyRequest;
980
+ path?: never;
981
+ query?: never;
982
+ url: '/cursor-api-key';
983
+ };
984
+ export type PutCursorApiKeyErrors = {
985
+ 400: ErrorResponse;
986
+ 401: string;
987
+ 403: ErrorResponse;
988
+ };
989
+ export type PutCursorApiKeyError = PutCursorApiKeyErrors[keyof PutCursorApiKeyErrors];
990
+ export type PutCursorApiKeyResponses = {
991
+ 200: CursorApiKeyStatus;
992
+ };
993
+ export type PutCursorApiKeyResponse = PutCursorApiKeyResponses[keyof PutCursorApiKeyResponses];
994
+ export type PutCursorDefaultModelData = {
995
+ body: PutCursorDefaultModelRequest;
996
+ path?: never;
997
+ query?: never;
998
+ url: '/cursor-api-key/default-model';
999
+ };
1000
+ export type PutCursorDefaultModelErrors = {
1001
+ 401: string;
1002
+ 403: ErrorResponse;
1003
+ 409: ErrorResponse;
1004
+ };
1005
+ export type PutCursorDefaultModelError = PutCursorDefaultModelErrors[keyof PutCursorDefaultModelErrors];
1006
+ export type PutCursorDefaultModelResponses = {
1007
+ 200: CursorApiKeyStatus;
1008
+ };
1009
+ export type PutCursorDefaultModelResponse = PutCursorDefaultModelResponses[keyof PutCursorDefaultModelResponses];
1010
+ export type ListCursorModelsData = {
1011
+ body?: never;
1012
+ path?: never;
1013
+ query?: never;
1014
+ url: '/cursor-api-key/models';
1015
+ };
1016
+ export type ListCursorModelsErrors = {
1017
+ 401: string;
1018
+ 403: ErrorResponse;
1019
+ 409: ErrorResponse;
1020
+ 502: ErrorResponse;
1021
+ };
1022
+ export type ListCursorModelsError = ListCursorModelsErrors[keyof ListCursorModelsErrors];
1023
+ export type ListCursorModelsResponses = {
1024
+ 200: CursorModelsResponse;
1025
+ };
1026
+ export type ListCursorModelsResponse = ListCursorModelsResponses[keyof ListCursorModelsResponses];
1027
+ export type VerifyFusionauthUserEmailData = {
1028
+ body?: never;
1029
+ path: {
1030
+ /**
1031
+ * The verification id
1032
+ */
1033
+ verification_id: string;
1034
+ };
1035
+ query?: never;
1036
+ url: '/email/fusionauth/verify/{verification_id}';
1037
+ };
1038
+ export type VerifyFusionauthUserEmailErrors = {
1039
+ 500: ErrorResponse;
1040
+ };
1041
+ export type VerifyFusionauthUserEmailError = VerifyFusionauthUserEmailErrors[keyof VerifyFusionauthUserEmailErrors];
1042
+ export type VerifyFusionauthUserEmailResponses = {
1043
+ 200: EmptyResponse;
1044
+ };
1045
+ export type VerifyFusionauthUserEmailResponse = VerifyFusionauthUserEmailResponses[keyof VerifyFusionauthUserEmailResponses];
1046
+ export type ResendFusionauthVerifyUserEmailData = {
1047
+ body: ResendFusionauthVerifyUserEmailRequest;
1048
+ path?: never;
1049
+ query?: never;
1050
+ url: '/email/fusionauth_resend';
1051
+ };
1052
+ export type ResendFusionauthVerifyUserEmailErrors = {
1053
+ 500: ErrorResponse;
1054
+ };
1055
+ export type ResendFusionauthVerifyUserEmailError = ResendFusionauthVerifyUserEmailErrors[keyof ResendFusionauthVerifyUserEmailErrors];
1056
+ export type ResendFusionauthVerifyUserEmailResponses = {
1057
+ 200: EmptyResponse;
1058
+ };
1059
+ export type ResendFusionauthVerifyUserEmailResponse = ResendFusionauthVerifyUserEmailResponses[keyof ResendFusionauthVerifyUserEmailResponses];
1060
+ export type GenerateEmailLinkData = {
1061
+ body: GenerateEmailLinkRequest;
1062
+ path?: never;
1063
+ query?: never;
1064
+ url: '/email/generate/link';
1065
+ };
1066
+ export type GenerateEmailLinkErrors = {
1067
+ 400: ErrorResponse;
1068
+ 500: ErrorResponse;
1069
+ };
1070
+ export type GenerateEmailLinkError = GenerateEmailLinkErrors[keyof GenerateEmailLinkErrors];
1071
+ export type GenerateEmailLinkResponses = {
1072
+ 200: EmptyResponse;
1073
+ };
1074
+ export type GenerateEmailLinkResponse = GenerateEmailLinkResponses[keyof GenerateEmailLinkResponses];
1075
+ export type VerifyEmailLinkData = {
1076
+ body?: never;
1077
+ path: {
1078
+ /**
1079
+ * The verification id
1080
+ */
1081
+ verification_id: string;
1082
+ };
1083
+ query?: never;
1084
+ url: '/email/verify/{verification_id}';
1085
+ };
1086
+ export type VerifyEmailLinkErrors = {
1087
+ 500: ErrorResponse;
1088
+ };
1089
+ export type VerifyEmailLinkError = VerifyEmailLinkErrors[keyof VerifyEmailLinkErrors];
1090
+ export type VerifyEmailLinkResponses = {
1091
+ 200: EmptyResponse;
1092
+ };
1093
+ export type VerifyEmailLinkResponse = VerifyEmailLinkResponses[keyof VerifyEmailLinkResponses];
1094
+ export type EnrichGithubPullRequestsData = {
1095
+ body: EnrichGithubPullRequestsProxyRequest;
1096
+ path?: never;
1097
+ query?: never;
1098
+ url: '/github_pull_requests/enrich';
1099
+ };
1100
+ export type EnrichGithubPullRequestsErrors = {
1101
+ 401: ErrorResponse;
1102
+ 404: ErrorResponse;
1103
+ 428: ErrorResponse;
1104
+ 500: ErrorResponse;
1105
+ };
1106
+ export type EnrichGithubPullRequestsError = EnrichGithubPullRequestsErrors[keyof EnrichGithubPullRequestsErrors];
1107
+ export type EnrichGithubPullRequestsResponses = {
1108
+ 200: EnrichGithubPullRequestsResponse;
1109
+ };
1110
+ export type EnrichGithubPullRequestsResponse2 = EnrichGithubPullRequestsResponses[keyof EnrichGithubPullRequestsResponses];
1111
+ export type HealthHandlerData = {
1112
+ body?: never;
1113
+ path?: never;
1114
+ query?: never;
1115
+ url: '/health';
1116
+ };
1117
+ export type HealthHandlerResponses = {
1118
+ /**
1119
+ * health
1120
+ */
1121
+ 200: EmptyResponse;
1122
+ };
1123
+ export type HealthHandlerResponse = HealthHandlerResponses[keyof HealthHandlerResponses];
1124
+ export type MacroApiTokenData = {
1125
+ body?: never;
1126
+ path?: never;
1127
+ query: {
1128
+ /**
1129
+ * The email to generate the macro-api-token for. If not provided, we use your default profile.
1130
+ */
1131
+ email: string;
1132
+ };
1133
+ url: '/jwt/macro_api_token';
1134
+ };
1135
+ export type MacroApiTokenErrors = {
1136
+ 401: string;
1137
+ 500: string;
1138
+ };
1139
+ export type MacroApiTokenError = MacroApiTokenErrors[keyof MacroApiTokenErrors];
1140
+ export type MacroApiTokenResponses = {
1141
+ 200: MacroApiTokenResponse;
1142
+ };
1143
+ export type MacroApiTokenResponse2 = MacroApiTokenResponses[keyof MacroApiTokenResponses];
1144
+ export type RefreshData = {
1145
+ body?: never;
1146
+ path?: never;
1147
+ query?: never;
1148
+ url: '/jwt/refresh';
1149
+ };
1150
+ export type RefreshErrors = {
1151
+ 400: string;
1152
+ 401: string;
1153
+ /**
1154
+ * Refresh already in progress for this user
1155
+ */
1156
+ 429: string;
1157
+ 500: string;
1158
+ };
1159
+ export type RefreshError = RefreshErrors[keyof RefreshErrors];
1160
+ export type RefreshResponses = {
1161
+ 200: UserTokensResponse;
1162
+ };
1163
+ export type RefreshResponse = RefreshResponses[keyof RefreshResponses];
1164
+ export type CreateInProgressLinkData = {
1165
+ body?: never;
1166
+ path?: never;
1167
+ query?: never;
1168
+ url: '/link';
1169
+ };
1170
+ export type CreateInProgressLinkErrors = {
1171
+ 400: ErrorResponse;
1172
+ 401: ErrorResponse;
1173
+ 429: ErrorResponse;
1174
+ 500: ErrorResponse;
1175
+ };
1176
+ export type CreateInProgressLinkError = CreateInProgressLinkErrors[keyof CreateInProgressLinkErrors];
1177
+ export type CreateInProgressLinkResponses = {
1178
+ 200: CreateInProgressLinkResponse;
1179
+ };
1180
+ export type CreateInProgressLinkResponse2 = CreateInProgressLinkResponses[keyof CreateInProgressLinkResponses];
1181
+ export type DeleteGithubLinkData = {
1182
+ body?: never;
1183
+ path?: never;
1184
+ query?: never;
1185
+ url: '/link/github';
1186
+ };
1187
+ export type DeleteGithubLinkErrors = {
1188
+ 400: ErrorResponse;
1189
+ 401: ErrorResponse;
1190
+ 500: ErrorResponse;
1191
+ };
1192
+ export type DeleteGithubLinkError = DeleteGithubLinkErrors[keyof DeleteGithubLinkErrors];
1193
+ export type DeleteGithubLinkResponses = {
1194
+ 200: EmptyResponse;
1195
+ };
1196
+ export type DeleteGithubLinkResponse = DeleteGithubLinkResponses[keyof DeleteGithubLinkResponses];
1197
+ export type InitGithubLinkData = {
1198
+ body?: never;
1199
+ path?: never;
1200
+ query: {
1201
+ /**
1202
+ * **OPTIONAL**. The original url to redirect to.
1203
+ */
1204
+ original_url: string;
1205
+ };
1206
+ url: '/link/github';
1207
+ };
1208
+ export type InitGithubLinkErrors = {
1209
+ 400: ErrorResponse;
1210
+ 401: ErrorResponse;
1211
+ 429: ErrorResponse;
1212
+ 500: ErrorResponse;
1213
+ };
1214
+ export type InitGithubLinkError = InitGithubLinkErrors[keyof InitGithubLinkErrors];
1215
+ export type InitGithubLinkResponses = {
1216
+ 200: InitGithubLinkResponse;
1217
+ };
1218
+ export type InitGithubLinkResponse2 = InitGithubLinkResponses[keyof InitGithubLinkResponses];
1219
+ export type CheckGithubLinkStatusData = {
1220
+ body?: never;
1221
+ path?: never;
1222
+ query?: never;
1223
+ url: '/link/github/status';
1224
+ };
1225
+ export type CheckGithubLinkStatusErrors = {
1226
+ 401: ErrorResponse;
1227
+ 404: ErrorResponse;
1228
+ 428: ErrorResponse;
1229
+ 500: ErrorResponse;
1230
+ };
1231
+ export type CheckGithubLinkStatusError = CheckGithubLinkStatusErrors[keyof CheckGithubLinkStatusErrors];
1232
+ export type CheckGithubLinkStatusResponses = {
1233
+ 200: GithubLinkStatusResponse;
1234
+ };
1235
+ export type CheckGithubLinkStatusResponse = CheckGithubLinkStatusResponses[keyof CheckGithubLinkStatusResponses];
1236
+ export type InitGmailLinkData = {
1237
+ body?: never;
1238
+ path?: never;
1239
+ query: {
1240
+ /**
1241
+ * **OPTIONAL**. The original url to redirect to.
1242
+ */
1243
+ original_url: string;
1244
+ /**
1245
+ * **OPTIONAL**. Which capabilities to request consent for: `gmail` (default), `gmail_and_calendar`, or `calendar`. The calendar variants are only honored when the deployment allows calendar scope requests.
1246
+ */
1247
+ scopes?: string;
1248
+ };
1249
+ url: '/link/gmail';
1250
+ };
1251
+ export type InitGmailLinkErrors = {
1252
+ 400: ErrorResponse;
1253
+ 401: ErrorResponse;
1254
+ 402: ErrorResponse;
1255
+ 429: ErrorResponse;
1256
+ 500: ErrorResponse;
1257
+ };
1258
+ export type InitGmailLinkError = InitGmailLinkErrors[keyof InitGmailLinkErrors];
1259
+ export type InitGmailLinkResponses = {
1260
+ 200: InitGmailLinkResponse;
1261
+ };
1262
+ export type InitGmailLinkResponse2 = InitGmailLinkResponses[keyof InitGmailLinkResponses];
1263
+ export type CheckGmailLinkStatusData = {
1264
+ body?: never;
1265
+ path?: never;
1266
+ query?: never;
1267
+ url: '/link/gmail/status';
1268
+ };
1269
+ export type CheckGmailLinkStatusErrors = {
1270
+ 401: ErrorResponse;
1271
+ 404: ErrorResponse;
1272
+ 428: ErrorResponse;
1273
+ 500: ErrorResponse;
1274
+ };
1275
+ export type CheckGmailLinkStatusError = CheckGmailLinkStatusErrors[keyof CheckGmailLinkStatusErrors];
1276
+ export type CheckGmailLinkStatusResponses = {
1277
+ 200: GmailLinkStatusResponse;
1278
+ };
1279
+ export type CheckGmailLinkStatusResponse = CheckGmailLinkStatusResponses[keyof CheckGmailLinkStatusResponses];
1280
+ export type InitOutlookLinkData = {
1281
+ body?: never;
1282
+ path?: never;
1283
+ query?: {
1284
+ /**
1285
+ * **OPTIONAL**. The original URL to redirect to.
1286
+ */
1287
+ original_url?: string;
1288
+ };
1289
+ url: '/link/outlook';
1290
+ };
1291
+ export type InitOutlookLinkErrors = {
1292
+ 400: ErrorResponse;
1293
+ 401: ErrorResponse;
1294
+ 404: ErrorResponse;
1295
+ 429: ErrorResponse;
1296
+ 500: ErrorResponse;
1297
+ };
1298
+ export type InitOutlookLinkError = InitOutlookLinkErrors[keyof InitOutlookLinkErrors];
1299
+ export type InitOutlookLinkResponses = {
1300
+ 200: InitOutlookLinkResponse;
1301
+ };
1302
+ export type InitOutlookLinkResponse2 = InitOutlookLinkResponses[keyof InitOutlookLinkResponses];
1303
+ export type AppleLoginData = {
1304
+ body: AppleLoginRequest;
1305
+ path?: never;
1306
+ query?: never;
1307
+ url: '/login/apple';
1308
+ };
1309
+ export type AppleLoginErrors = {
1310
+ 400: ErrorResponse;
1311
+ 401: ErrorResponse;
1312
+ 500: ErrorResponse;
1313
+ };
1314
+ export type AppleLoginError = AppleLoginErrors[keyof AppleLoginErrors];
1315
+ export type AppleLoginResponses = {
1316
+ 200: EmptyResponse;
1317
+ };
1318
+ export type AppleLoginResponse = AppleLoginResponses[keyof AppleLoginResponses];
1319
+ export type PasswordLoginData = {
1320
+ body: PasswordRequest;
1321
+ path?: never;
1322
+ query?: never;
1323
+ url: '/login/password';
1324
+ };
1325
+ export type PasswordLoginErrors = {
1326
+ 400: ErrorResponse;
1327
+ 401: ErrorResponse;
1328
+ 500: ErrorResponse;
1329
+ };
1330
+ export type PasswordLoginError = PasswordLoginErrors[keyof PasswordLoginErrors];
1331
+ export type PasswordLoginResponses = {
1332
+ 200: UserTokensResponse;
1333
+ };
1334
+ export type PasswordLoginResponse = PasswordLoginResponses[keyof PasswordLoginResponses];
1335
+ export type PasswordlessLoginData = {
1336
+ body: PasswordlessRequest;
1337
+ path?: never;
1338
+ query?: never;
1339
+ url: '/login/passwordless';
1340
+ };
1341
+ export type PasswordlessLoginErrors = {
1342
+ 400: string;
1343
+ 403: string;
1344
+ 500: string;
1345
+ };
1346
+ export type PasswordlessLoginError = PasswordlessLoginErrors[keyof PasswordlessLoginErrors];
1347
+ export type PasswordlessLoginResponses = {
1348
+ 200: PasswordlessStartedResponse;
1349
+ 202: SsoRequiredResponse;
1350
+ };
1351
+ export type PasswordlessLoginResponse = PasswordlessLoginResponses[keyof PasswordlessLoginResponses];
1352
+ export type SsoLoginData = {
1353
+ body?: never;
1354
+ path?: never;
1355
+ query: {
1356
+ /**
1357
+ * The name of the identity provider to use for login. e.g Google
1358
+ */
1359
+ idp_name: string;
1360
+ /**
1361
+ * **OPTIONAL**. The idp id of the identity provider to use for login.
1362
+ */
1363
+ idp_id: string;
1364
+ /**
1365
+ * **OPTIONAL**. The user's email.
1366
+ */
1367
+ login_hint: string;
1368
+ /**
1369
+ * **OPTIONAL**. The original url you came from.
1370
+ */
1371
+ original_url: string;
1372
+ /**
1373
+ * **OPTIONAL**. If the authentication request is from a mobile device.
1374
+ */
1375
+ is_mobile: string;
1376
+ /**
1377
+ * **OPTIONAL**. If the user opened a link with a referral code.
1378
+ */
1379
+ referral_code: string;
1380
+ };
1381
+ url: '/login/sso';
1382
+ };
1383
+ export type SsoLoginErrors = {
1384
+ 400: ErrorResponse;
1385
+ 500: ErrorResponse;
1386
+ };
1387
+ export type SsoLoginError = SsoLoginErrors[keyof SsoLoginErrors];
1388
+ export type SsoLoginResponses = {
1389
+ 200: unknown;
1390
+ };
1391
+ export type LogoutData = {
1392
+ body?: never;
1393
+ path?: never;
1394
+ query?: never;
1395
+ url: '/logout';
1396
+ };
1397
+ export type LogoutResponses = {
1398
+ 200: EmptyResponse;
1399
+ };
1400
+ export type LogoutResponse = LogoutResponses[keyof LogoutResponses];
1401
+ export type CreateMergeRequestData = {
1402
+ body: CreateAccountMergeRequest;
1403
+ path?: never;
1404
+ query?: never;
1405
+ url: '/merge';
1406
+ };
1407
+ export type CreateMergeRequestErrors = {
1408
+ 400: ErrorResponse;
1409
+ 404: ErrorResponse;
1410
+ 429: string;
1411
+ 500: ErrorResponse;
1412
+ };
1413
+ export type CreateMergeRequestError = CreateMergeRequestErrors[keyof CreateMergeRequestErrors];
1414
+ export type CreateMergeRequestResponses = {
1415
+ 200: EmptyResponse;
1416
+ };
1417
+ export type CreateMergeRequestResponse = CreateMergeRequestResponses[keyof CreateMergeRequestResponses];
1418
+ export type VerifyMergeRequestData = {
1419
+ body?: never;
1420
+ path: {
1421
+ /**
1422
+ * The code
1423
+ */
1424
+ code: string;
1425
+ };
1426
+ query?: never;
1427
+ url: '/merge/verify/{code}';
1428
+ };
1429
+ export type VerifyMergeRequestErrors = {
1430
+ 404: ErrorResponse;
1431
+ 500: ErrorResponse;
1432
+ };
1433
+ export type VerifyMergeRequestError = VerifyMergeRequestErrors[keyof VerifyMergeRequestErrors];
1434
+ export type VerifyMergeRequestResponses = {
1435
+ 200: EmptyResponse;
1436
+ };
1437
+ export type VerifyMergeRequestResponse = VerifyMergeRequestResponses[keyof VerifyMergeRequestResponses];
1438
+ export type SendMobileWelcomeEmailData = {
1439
+ body: SendMobileWelcomeEmailRequest;
1440
+ path?: never;
1441
+ query?: never;
1442
+ url: '/mobile-welcome-email';
1443
+ };
1444
+ export type SendMobileWelcomeEmailErrors = {
1445
+ 400: ErrorResponse;
1446
+ 429: ErrorResponse;
1447
+ 500: ErrorResponse;
1448
+ };
1449
+ export type SendMobileWelcomeEmailError = SendMobileWelcomeEmailErrors[keyof SendMobileWelcomeEmailErrors];
1450
+ export type SendMobileWelcomeEmailResponses = {
1451
+ 200: SendMobileWelcomeEmailResponse;
1452
+ };
1453
+ export type SendMobileWelcomeEmailResponse2 = SendMobileWelcomeEmailResponses[keyof SendMobileWelcomeEmailResponses];
1454
+ export type PasswordlessCallbackData = {
1455
+ body?: never;
1456
+ path: {
1457
+ /**
1458
+ * Code
1459
+ */
1460
+ code: string;
1461
+ };
1462
+ query: {
1463
+ /**
1464
+ * Email
1465
+ */
1466
+ email: string;
1467
+ };
1468
+ url: '/oauth/passwordless/{code}';
1469
+ };
1470
+ export type PasswordlessCallbackErrors = {
1471
+ 400: string;
1472
+ 401: string;
1473
+ 500: string;
1474
+ };
1475
+ export type PasswordlessCallbackError = PasswordlessCallbackErrors[keyof PasswordlessCallbackErrors];
1476
+ export type PasswordlessCallbackResponses = {
1477
+ 200: UserTokensResponse;
1478
+ };
1479
+ export type PasswordlessCallbackResponse = PasswordlessCallbackResponses[keyof PasswordlessCallbackResponses];
1480
+ export type OauthRedirectData = {
1481
+ body?: never;
1482
+ path?: never;
1483
+ query?: never;
1484
+ url: '/oauth/redirect';
1485
+ };
1486
+ export type OauthRedirectErrors = {
1487
+ 400: ErrorResponse;
1488
+ 401: ErrorResponse;
1489
+ 500: ErrorResponse;
1490
+ };
1491
+ export type OauthRedirectError = OauthRedirectErrors[keyof OauthRedirectErrors];
1492
+ export type OauthRedirectResponses = {
1493
+ 200: unknown;
1494
+ };
1495
+ export type Oauth2CallbackData = {
1496
+ body?: never;
1497
+ path: {
1498
+ /**
1499
+ * The provider to use
1500
+ */
1501
+ provider: string;
1502
+ };
1503
+ query?: never;
1504
+ url: '/oauth2/{provider}/callback';
1505
+ };
1506
+ export type Oauth2CallbackErrors = {
1507
+ 400: ErrorResponse;
1508
+ 401: ErrorResponse;
1509
+ 500: ErrorResponse;
1510
+ };
1511
+ export type Oauth2CallbackError = Oauth2CallbackErrors[keyof Oauth2CallbackErrors];
1512
+ export type Oauth2CallbackResponses = {
1513
+ 200: unknown;
1514
+ };
1515
+ export type GetPermissionsData = {
1516
+ body?: never;
1517
+ path?: never;
1518
+ query?: never;
1519
+ url: '/permissions';
1520
+ };
1521
+ export type GetPermissionsErrors = {
1522
+ 401: string;
1523
+ 500: string;
1524
+ };
1525
+ export type GetPermissionsError = GetPermissionsErrors[keyof GetPermissionsErrors];
1526
+ export type GetPermissionsResponses = {
1527
+ 200: Array<Permission>;
1528
+ };
1529
+ export type GetPermissionsResponse = GetPermissionsResponses[keyof GetPermissionsResponses];
1530
+ export type GetUserPermissionsData = {
1531
+ body?: never;
1532
+ path?: never;
1533
+ query?: never;
1534
+ url: '/permissions/me';
1535
+ };
1536
+ export type GetUserPermissionsErrors = {
1537
+ 401: string;
1538
+ 500: string;
1539
+ };
1540
+ export type GetUserPermissionsError = GetUserPermissionsErrors[keyof GetUserPermissionsErrors];
1541
+ export type GetUserPermissionsResponses = {
1542
+ 200: Array<string>;
1543
+ };
1544
+ export type GetUserPermissionsResponse = GetUserPermissionsResponses[keyof GetUserPermissionsResponses];
1545
+ export type GetReferralCodeData = {
1546
+ body?: never;
1547
+ path?: never;
1548
+ query?: never;
1549
+ url: '/referral/code';
1550
+ };
1551
+ export type GetReferralCodeErrors = {
1552
+ 401: ErrorResponse;
1553
+ 500: ErrorResponse;
1554
+ };
1555
+ export type GetReferralCodeError = GetReferralCodeErrors[keyof GetReferralCodeErrors];
1556
+ export type GetReferralCodeResponses = {
1557
+ 200: string;
1558
+ };
1559
+ export type GetReferralCodeResponse = GetReferralCodeResponses[keyof GetReferralCodeResponses];
1560
+ export type SendReferralCodeData = {
1561
+ body: SendInviteBody;
1562
+ path?: never;
1563
+ query?: never;
1564
+ url: '/referral/send';
1565
+ };
1566
+ export type SendReferralCodeErrors = {
1567
+ 401: ErrorResponse;
1568
+ 500: ErrorResponse;
1569
+ };
1570
+ export type SendReferralCodeError = SendReferralCodeErrors[keyof SendReferralCodeErrors];
1571
+ export type SendReferralCodeResponses = {
1572
+ 204: void;
1573
+ };
1574
+ export type SendReferralCodeResponse = SendReferralCodeResponses[keyof SendReferralCodeResponses];
1575
+ export type SessionCreationData = {
1576
+ body?: never;
1577
+ path?: never;
1578
+ query?: never;
1579
+ url: '/session';
1580
+ };
1581
+ export type SessionCreationErrors = {
1582
+ 400: string;
1583
+ 500: ErrorResponse;
1584
+ };
1585
+ export type SessionCreationError = SessionCreationErrors[keyof SessionCreationErrors];
1586
+ export type SessionCreationResponses = {
1587
+ 200: EmptyResponse;
1588
+ };
1589
+ export type SessionCreationResponse = SessionCreationResponses[keyof SessionCreationResponses];
1590
+ export type SessionLoginData = {
1591
+ body?: never;
1592
+ path: {
1593
+ /**
1594
+ * The session code
1595
+ */
1596
+ session_code: string;
1597
+ };
1598
+ query?: never;
1599
+ url: '/session/login/{session_code}';
1600
+ };
1601
+ export type SessionLoginErrors = {
1602
+ 400: ErrorResponse;
1603
+ 401: ErrorResponse;
1604
+ 500: ErrorResponse;
1605
+ };
1606
+ export type SessionLoginError = SessionLoginErrors[keyof SessionLoginErrors];
1607
+ export type SessionLoginResponses = {
1608
+ 200: UserTokensResponse;
1609
+ };
1610
+ export type SessionLoginResponse = SessionLoginResponses[keyof SessionLoginResponses];
1611
+ export type DeleteTeamData = {
1612
+ body?: never;
1613
+ path?: never;
1614
+ query?: never;
1615
+ url: '/team';
1616
+ };
1617
+ export type DeleteTeamErrors = {
1618
+ 400: ErrorResponse;
1619
+ 401: ErrorResponse;
1620
+ 500: ErrorResponse;
1621
+ };
1622
+ export type DeleteTeamError = DeleteTeamErrors[keyof DeleteTeamErrors];
1623
+ export type DeleteTeamResponses = {
1624
+ 200: unknown;
1625
+ };
1626
+ export type GetTeamData = {
1627
+ body?: never;
1628
+ path?: never;
1629
+ query?: never;
1630
+ url: '/team';
1631
+ };
1632
+ export type GetTeamErrors = {
1633
+ 400: ErrorResponse;
1634
+ 401: ErrorResponse;
1635
+ 404: ErrorResponse;
1636
+ 500: ErrorResponse;
1637
+ };
1638
+ export type GetTeamError = GetTeamErrors[keyof GetTeamErrors];
1639
+ export type GetTeamResponses = {
1640
+ 200: TeamWithMembers;
1641
+ 204: void;
1642
+ };
1643
+ export type GetTeamResponse = GetTeamResponses[keyof GetTeamResponses];
1644
+ export type PatchTeamData = {
1645
+ body: PatchTeamRequest;
1646
+ path?: never;
1647
+ query?: never;
1648
+ url: '/team';
1649
+ };
1650
+ export type PatchTeamErrors = {
1651
+ 400: ErrorResponse;
1652
+ 401: ErrorResponse;
1653
+ 404: ErrorResponse;
1654
+ 500: ErrorResponse;
1655
+ };
1656
+ export type PatchTeamError = PatchTeamErrors[keyof PatchTeamErrors];
1657
+ export type PatchTeamResponses = {
1658
+ 200: unknown;
1659
+ };
1660
+ export type CreateTeamData = {
1661
+ body: CreateTeamRequest;
1662
+ path?: never;
1663
+ query?: never;
1664
+ url: '/team';
1665
+ };
1666
+ export type CreateTeamErrors = {
1667
+ 400: ErrorResponse;
1668
+ 403: ErrorResponse;
1669
+ 500: ErrorResponse;
1670
+ };
1671
+ export type CreateTeamError = CreateTeamErrors[keyof CreateTeamErrors];
1672
+ export type CreateTeamResponses = {
1673
+ 200: Team;
1674
+ };
1675
+ export type CreateTeamResponse = CreateTeamResponses[keyof CreateTeamResponses];
1676
+ export type ToggleTeamAutoJoinDomainData = {
1677
+ body?: never;
1678
+ path?: never;
1679
+ query?: never;
1680
+ url: '/team/auto-join-domain/toggle';
1681
+ };
1682
+ export type ToggleTeamAutoJoinDomainErrors = {
1683
+ 400: ErrorResponse;
1684
+ 401: ErrorResponse;
1685
+ 403: ErrorResponse;
1686
+ 404: ErrorResponse;
1687
+ 500: ErrorResponse;
1688
+ };
1689
+ export type ToggleTeamAutoJoinDomainError = ToggleTeamAutoJoinDomainErrors[keyof ToggleTeamAutoJoinDomainErrors];
1690
+ export type ToggleTeamAutoJoinDomainResponses = {
1691
+ 200: ToggleAutoJoinDomainResponse;
1692
+ };
1693
+ export type ToggleTeamAutoJoinDomainResponse = ToggleTeamAutoJoinDomainResponses[keyof ToggleTeamAutoJoinDomainResponses];
1694
+ export type PatchTeamCrmSettingsData = {
1695
+ body: PatchTeamCrmSettingsRequest;
1696
+ path?: never;
1697
+ query?: never;
1698
+ url: '/team/crm';
1699
+ };
1700
+ export type PatchTeamCrmSettingsErrors = {
1701
+ 400: ErrorResponse;
1702
+ 401: ErrorResponse;
1703
+ 403: ErrorResponse;
1704
+ 404: ErrorResponse;
1705
+ 500: ErrorResponse;
1706
+ };
1707
+ export type PatchTeamCrmSettingsError = PatchTeamCrmSettingsErrors[keyof PatchTeamCrmSettingsErrors];
1708
+ export type PatchTeamCrmSettingsResponses = {
1709
+ 200: PatchTeamCrmSettingsResponse;
1710
+ };
1711
+ export type PatchTeamCrmSettingsResponse2 = PatchTeamCrmSettingsResponses[keyof PatchTeamCrmSettingsResponses];
1712
+ export type InviteToTeamData = {
1713
+ body: InviteToTeamRequest;
1714
+ path?: never;
1715
+ query?: never;
1716
+ url: '/team/invite';
1717
+ };
1718
+ export type InviteToTeamErrors = {
1719
+ 400: ErrorResponse;
1720
+ 401: ErrorResponse;
1721
+ 404: ErrorResponse;
1722
+ 500: ErrorResponse;
1723
+ };
1724
+ export type InviteToTeamError = InviteToTeamErrors[keyof InviteToTeamErrors];
1725
+ export type InviteToTeamResponses = {
1726
+ 201: unknown;
1727
+ };
1728
+ export type DeleteTeamInviteHandlerData = {
1729
+ body?: never;
1730
+ path: {
1731
+ /**
1732
+ * The ID of the team invite
1733
+ */
1734
+ team_invite_id: string;
1735
+ };
1736
+ query?: never;
1737
+ url: '/team/invite/{team_invite_id}';
1738
+ };
1739
+ export type DeleteTeamInviteHandlerErrors = {
1740
+ 400: ErrorResponse;
1741
+ 401: ErrorResponse;
1742
+ 404: ErrorResponse;
1743
+ 500: ErrorResponse;
1744
+ };
1745
+ export type DeleteTeamInviteHandlerError = DeleteTeamInviteHandlerErrors[keyof DeleteTeamInviteHandlerErrors];
1746
+ export type DeleteTeamInviteHandlerResponses = {
1747
+ 200: unknown;
1748
+ };
1749
+ export type GetTeamInvitesData = {
1750
+ body?: never;
1751
+ path?: never;
1752
+ query?: never;
1753
+ url: '/team/invites';
1754
+ };
1755
+ export type GetTeamInvitesErrors = {
1756
+ 400: ErrorResponse;
1757
+ 401: ErrorResponse;
1758
+ 500: ErrorResponse;
1759
+ };
1760
+ export type GetTeamInvitesError = GetTeamInvitesErrors[keyof GetTeamInvitesErrors];
1761
+ export type GetTeamInvitesResponses = {
1762
+ 200: TeamInvitesResponse;
1763
+ };
1764
+ export type GetTeamInvitesResponse = GetTeamInvitesResponses[keyof GetTeamInvitesResponses];
1765
+ export type RejectInvitationData = {
1766
+ body?: never;
1767
+ path: {
1768
+ /**
1769
+ * The team invite id
1770
+ */
1771
+ team_invite_id: string;
1772
+ };
1773
+ query?: never;
1774
+ url: '/team/join/{team_invite_id}';
1775
+ };
1776
+ export type RejectInvitationErrors = {
1777
+ 400: ErrorResponse;
1778
+ 401: ErrorResponse;
1779
+ 500: ErrorResponse;
1780
+ };
1781
+ export type RejectInvitationError = RejectInvitationErrors[keyof RejectInvitationErrors];
1782
+ export type RejectInvitationResponses = {
1783
+ 200: unknown;
1784
+ };
1785
+ export type JoinTeamData = {
1786
+ body?: never;
1787
+ path: {
1788
+ /**
1789
+ * The team invite id
1790
+ */
1791
+ team_invite_id: string;
1792
+ };
1793
+ query?: never;
1794
+ url: '/team/join/{team_invite_id}';
1795
+ };
1796
+ export type JoinTeamErrors = {
1797
+ 400: ErrorResponse;
1798
+ 401: ErrorResponse;
1799
+ 500: ErrorResponse;
1800
+ };
1801
+ export type JoinTeamError = JoinTeamErrors[keyof JoinTeamErrors];
1802
+ export type JoinTeamResponses = {
1803
+ 200: unknown;
1804
+ };
1805
+ export type ToggleTeamNonAdminInvitesData = {
1806
+ body?: never;
1807
+ path?: never;
1808
+ query?: never;
1809
+ url: '/team/non-admin-invites/toggle';
1810
+ };
1811
+ export type ToggleTeamNonAdminInvitesErrors = {
1812
+ 401: ErrorResponse;
1813
+ 403: ErrorResponse;
1814
+ 404: ErrorResponse;
1815
+ 500: ErrorResponse;
1816
+ };
1817
+ export type ToggleTeamNonAdminInvitesError = ToggleTeamNonAdminInvitesErrors[keyof ToggleTeamNonAdminInvitesErrors];
1818
+ export type ToggleTeamNonAdminInvitesResponses = {
1819
+ 200: ToggleNonAdminInvitesResponse;
1820
+ };
1821
+ export type ToggleTeamNonAdminInvitesResponse = ToggleTeamNonAdminInvitesResponses[keyof ToggleTeamNonAdminInvitesResponses];
1822
+ export type RemoveUserFromTeamData = {
1823
+ body?: never;
1824
+ path: {
1825
+ /**
1826
+ * The ID of the user to remove
1827
+ */
1828
+ remove_user_id: string;
1829
+ };
1830
+ query?: never;
1831
+ url: '/team/remove/{remove_user_id}';
1832
+ };
1833
+ export type RemoveUserFromTeamErrors = {
1834
+ 400: ErrorResponse;
1835
+ 401: ErrorResponse;
1836
+ 500: ErrorResponse;
1837
+ };
1838
+ export type RemoveUserFromTeamError = RemoveUserFromTeamErrors[keyof RemoveUserFromTeamErrors];
1839
+ export type RemoveUserFromTeamResponses = {
1840
+ 200: unknown;
1841
+ };
1842
+ export type GetUserTeamsData = {
1843
+ body?: never;
1844
+ path?: never;
1845
+ query?: never;
1846
+ url: '/team/user';
1847
+ };
1848
+ export type GetUserTeamsErrors = {
1849
+ 400: ErrorResponse;
1850
+ 401: ErrorResponse;
1851
+ 500: ErrorResponse;
1852
+ };
1853
+ export type GetUserTeamsError = GetUserTeamsErrors[keyof GetUserTeamsErrors];
1854
+ export type GetUserTeamsResponses = {
1855
+ 200: Array<Team>;
1856
+ };
1857
+ export type GetUserTeamsResponse = GetUserTeamsResponses[keyof GetUserTeamsResponses];
1858
+ export type GetUserInvitesData = {
1859
+ body?: never;
1860
+ path?: never;
1861
+ query?: never;
1862
+ url: '/team/user/invites';
1863
+ };
1864
+ export type GetUserInvitesErrors = {
1865
+ 400: ErrorResponse;
1866
+ 401: ErrorResponse;
1867
+ 500: ErrorResponse;
1868
+ };
1869
+ export type GetUserInvitesError = GetUserInvitesErrors[keyof GetUserInvitesErrors];
1870
+ export type GetUserInvitesResponses = {
1871
+ 200: TeamInvitesResponse;
1872
+ };
1873
+ export type GetUserInvitesResponse = GetUserInvitesResponses[keyof GetUserInvitesResponses];
1874
+ export type CreateUserData = {
1875
+ body: CreateUserRequest;
1876
+ path?: never;
1877
+ query?: never;
1878
+ url: '/user';
1879
+ };
1880
+ export type CreateUserErrors = {
1881
+ 400: ErrorResponse;
1882
+ 500: ErrorResponse;
1883
+ };
1884
+ export type CreateUserError = CreateUserErrors[keyof CreateUserErrors];
1885
+ export type CreateUserResponses = {
1886
+ 200: EmptyResponse;
1887
+ };
1888
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1889
+ export type GetUserNamesData = {
1890
+ body: PostGetNamesRequestBody;
1891
+ path?: never;
1892
+ query?: never;
1893
+ url: '/user/get_names';
1894
+ };
1895
+ export type GetUserNamesErrors = {
1896
+ 401: string;
1897
+ 500: ErrorResponse;
1898
+ };
1899
+ export type GetUserNamesError = GetUserNamesErrors[keyof GetUserNamesErrors];
1900
+ export type GetUserNamesResponses = {
1901
+ 200: UserNames;
1902
+ };
1903
+ export type GetUserNamesResponse = GetUserNamesResponses[keyof GetUserNamesResponses];
1904
+ export type GetUserNamesWithEmailData = {
1905
+ body: GetNamesWithEmailRequestBody;
1906
+ path?: never;
1907
+ query?: never;
1908
+ url: '/user/get_names_with_email';
1909
+ };
1910
+ export type GetUserNamesWithEmailErrors = {
1911
+ 400: string;
1912
+ 401: string;
1913
+ 500: ErrorResponse;
1914
+ };
1915
+ export type GetUserNamesWithEmailError = GetUserNamesWithEmailErrors[keyof GetUserNamesWithEmailErrors];
1916
+ export type GetUserNamesWithEmailResponses = {
1917
+ 200: UserNames;
1918
+ };
1919
+ export type GetUserNamesWithEmailResponse = GetUserNamesWithEmailResponses[keyof GetUserNamesWithEmailResponses];
1920
+ export type PatchUserGroupData = {
1921
+ body: PatchUserGroupRequest;
1922
+ path?: never;
1923
+ query?: never;
1924
+ url: '/user/group';
1925
+ };
1926
+ export type PatchUserGroupErrors = {
1927
+ 401: string;
1928
+ 404: string;
1929
+ 500: ErrorResponse;
1930
+ };
1931
+ export type PatchUserGroupError = PatchUserGroupErrors[keyof PatchUserGroupErrors];
1932
+ export type PatchUserGroupResponses = {
1933
+ 200: EmptyResponse;
1934
+ };
1935
+ export type PatchUserGroupResponse = PatchUserGroupResponses[keyof PatchUserGroupResponses];
1936
+ export type GetLegacyUserPermissionsData = {
1937
+ body?: never;
1938
+ path?: never;
1939
+ query?: never;
1940
+ url: '/user/legacy_user_permissions';
1941
+ };
1942
+ export type GetLegacyUserPermissionsErrors = {
1943
+ 401: string;
1944
+ 500: ErrorResponse;
1945
+ };
1946
+ export type GetLegacyUserPermissionsError = GetLegacyUserPermissionsErrors[keyof GetLegacyUserPermissionsErrors];
1947
+ export type GetLegacyUserPermissionsResponses = {
1948
+ 200: GetLegacyUserPermissionsResponse;
1949
+ };
1950
+ export type GetLegacyUserPermissionsResponse2 = GetLegacyUserPermissionsResponses[keyof GetLegacyUserPermissionsResponses];
1951
+ export type GetUserLinkExistsData = {
1952
+ body?: never;
1953
+ path?: never;
1954
+ query: {
1955
+ /**
1956
+ * The idp name to lookup. If not provided, the idp_id must be provided.
1957
+ */
1958
+ idp_name: string;
1959
+ /**
1960
+ * The idp id to lookup. If not provided, the idp_name must be provided.
1961
+ */
1962
+ idp_id: string;
1963
+ };
1964
+ url: '/user/link_exists';
1965
+ };
1966
+ export type GetUserLinkExistsErrors = {
1967
+ 400: ErrorResponse;
1968
+ 401: string;
1969
+ 500: ErrorResponse;
1970
+ };
1971
+ export type GetUserLinkExistsError = GetUserLinkExistsErrors[keyof GetUserLinkExistsErrors];
1972
+ export type GetUserLinkExistsResponses = {
1973
+ 200: UserLinkResponse;
1974
+ };
1975
+ export type GetUserLinkExistsResponse = GetUserLinkExistsResponses[keyof GetUserLinkExistsResponses];
1976
+ export type DeleteUserData = {
1977
+ body?: never;
1978
+ path?: never;
1979
+ query?: never;
1980
+ url: '/user/me';
1981
+ };
1982
+ export type DeleteUserErrors = {
1983
+ 401: ErrorResponse;
1984
+ 500: ErrorResponse;
1985
+ };
1986
+ export type DeleteUserError = DeleteUserErrors[keyof DeleteUserErrors];
1987
+ export type DeleteUserResponses = {
1988
+ 200: GenericSuccessResponse;
1989
+ };
1990
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1991
+ export type GetUserInfoData = {
1992
+ body?: never;
1993
+ path?: never;
1994
+ query?: never;
1995
+ url: '/user/me';
1996
+ };
1997
+ export type GetUserInfoErrors = {
1998
+ 401: string;
1999
+ 500: ErrorResponse;
2000
+ };
2001
+ export type GetUserInfoError = GetUserInfoErrors[keyof GetUserInfoErrors];
2002
+ export type GetUserInfoResponses = {
2003
+ 200: GetUserInfo;
2004
+ };
2005
+ export type GetUserInfoResponse = GetUserInfoResponses[keyof GetUserInfoResponses];
2006
+ export type GetUserNameData = {
2007
+ body?: never;
2008
+ path?: never;
2009
+ query?: never;
2010
+ url: '/user/name';
2011
+ };
2012
+ export type GetUserNameErrors = {
2013
+ 401: string;
2014
+ 500: ErrorResponse;
2015
+ };
2016
+ export type GetUserNameError = GetUserNameErrors[keyof GetUserNameErrors];
2017
+ export type GetUserNameResponses = {
2018
+ 200: UserName;
2019
+ };
2020
+ export type GetUserNameResponse = GetUserNameResponses[keyof GetUserNameResponses];
2021
+ export type PutUserNameData = {
2022
+ body?: never;
2023
+ path?: never;
2024
+ query?: {
2025
+ /**
2026
+ * First Name of user
2027
+ */
2028
+ first_name?: string | null;
2029
+ /**
2030
+ * Last Name of user
2031
+ */
2032
+ last_name?: string | null;
2033
+ };
2034
+ url: '/user/name';
2035
+ };
2036
+ export type PutUserNameErrors = {
2037
+ 401: string;
2038
+ 500: ErrorResponse;
2039
+ };
2040
+ export type PutUserNameError = PutUserNameErrors[keyof PutUserNameErrors];
2041
+ export type PutUserNameResponses = {
2042
+ 200: EmptyResponse;
2043
+ };
2044
+ export type PutUserNameResponse = PutUserNameResponses[keyof PutUserNameResponses];
2045
+ export type PatchUserOnboardingData = {
2046
+ body: PatchUserOnboardingRequest;
2047
+ path?: never;
2048
+ query?: never;
2049
+ url: '/user/onboarding';
2050
+ };
2051
+ export type PatchUserOnboardingErrors = {
2052
+ 401: string;
2053
+ 404: string;
2054
+ 500: ErrorResponse;
2055
+ };
2056
+ export type PatchUserOnboardingError = PatchUserOnboardingErrors[keyof PatchUserOnboardingErrors];
2057
+ export type PatchUserOnboardingResponses = {
2058
+ 200: EmptyResponse;
2059
+ };
2060
+ export type PatchUserOnboardingResponse = PatchUserOnboardingResponses[keyof PatchUserOnboardingResponses];
2061
+ export type GetUserOrganizationData = {
2062
+ body?: never;
2063
+ path?: never;
2064
+ query?: never;
2065
+ url: '/user/organization';
2066
+ };
2067
+ export type GetUserOrganizationErrors = {
2068
+ 401: string;
2069
+ 500: ErrorResponse;
2070
+ };
2071
+ export type GetUserOrganizationError = GetUserOrganizationErrors[keyof GetUserOrganizationErrors];
2072
+ export type GetUserOrganizationResponses = {
2073
+ 200: UserOrganizationResponse;
2074
+ 204: void;
2075
+ };
2076
+ export type GetUserOrganizationResponse = GetUserOrganizationResponses[keyof GetUserOrganizationResponses];
2077
+ export type PutProfilePictureData = {
2078
+ body?: never;
2079
+ path?: never;
2080
+ query: {
2081
+ /**
2082
+ * profile picture URL
2083
+ */
2084
+ url: string;
2085
+ };
2086
+ url: '/user/profile_picture';
2087
+ };
2088
+ export type PutProfilePictureErrors = {
2089
+ 401: string;
2090
+ 500: ErrorResponse;
2091
+ };
2092
+ export type PutProfilePictureError = PutProfilePictureErrors[keyof PutProfilePictureErrors];
2093
+ export type PutProfilePictureResponses = {
2094
+ 200: EmptyResponse;
2095
+ };
2096
+ export type PutProfilePictureResponse = PutProfilePictureResponses[keyof PutProfilePictureResponses];
2097
+ export type PostProfilePicturesData = {
2098
+ body: GetProfilePicturesRequestBody;
2099
+ path?: never;
2100
+ query?: never;
2101
+ url: '/user/profile_pictures';
2102
+ };
2103
+ export type PostProfilePicturesErrors = {
2104
+ 401: string;
2105
+ 500: ErrorResponse;
2106
+ };
2107
+ export type PostProfilePicturesError = PostProfilePicturesErrors[keyof PostProfilePicturesErrors];
2108
+ export type PostProfilePicturesResponses = {
2109
+ 200: ProfilePictures;
2110
+ };
2111
+ export type PostProfilePicturesResponse = PostProfilePicturesResponses[keyof PostProfilePicturesResponses];
2112
+ export type GetUserQuotaData = {
2113
+ body?: never;
2114
+ path?: never;
2115
+ query?: never;
2116
+ url: '/user/quota';
2117
+ };
2118
+ export type GetUserQuotaErrors = {
2119
+ 401: string;
2120
+ 500: ErrorResponse;
2121
+ };
2122
+ export type GetUserQuotaError = GetUserQuotaErrors[keyof GetUserQuotaErrors];
2123
+ export type GetUserQuotaResponses = {
2124
+ 200: UserQuota;
2125
+ 204: void;
2126
+ };
2127
+ export type GetUserQuotaResponse = GetUserQuotaResponses[keyof GetUserQuotaResponses];
2128
+ export type CreateCheckoutSessionV2Data = {
2129
+ body: CreateCheckoutSessionV2Request;
2130
+ path?: never;
2131
+ query?: never;
2132
+ url: '/user/stripe/checkoutv2';
2133
+ };
2134
+ export type CreateCheckoutSessionV2Errors = {
2135
+ 400: ErrorResponse;
2136
+ 404: ErrorResponse;
2137
+ 409: ErrorResponse;
2138
+ 500: ErrorResponse;
2139
+ };
2140
+ export type CreateCheckoutSessionV2Error = CreateCheckoutSessionV2Errors[keyof CreateCheckoutSessionV2Errors];
2141
+ export type CreateCheckoutSessionV2Responses = {
2142
+ 200: StripeSessionResponse;
2143
+ };
2144
+ export type CreateCheckoutSessionV2Response = CreateCheckoutSessionV2Responses[keyof CreateCheckoutSessionV2Responses];
2145
+ export type CreatePortalSessionData = {
2146
+ body: CreatePortalSessionRequest;
2147
+ path?: never;
2148
+ query?: never;
2149
+ url: '/user/stripe/portal';
2150
+ };
2151
+ export type CreatePortalSessionErrors = {
2152
+ 400: ErrorResponse;
2153
+ 500: ErrorResponse;
2154
+ };
2155
+ export type CreatePortalSessionError = CreatePortalSessionErrors[keyof CreatePortalSessionErrors];
2156
+ export type CreatePortalSessionResponses = {
2157
+ 200: StripeSessionResponse;
2158
+ };
2159
+ export type CreatePortalSessionResponse = CreatePortalSessionResponses[keyof CreatePortalSessionResponses];
2160
+ export type PatchUserTutorialData = {
2161
+ body: PatchUserTutorialRequest;
2162
+ path?: never;
2163
+ query?: never;
2164
+ url: '/user/tutorial';
2165
+ };
2166
+ export type PatchUserTutorialErrors = {
2167
+ 401: string;
2168
+ 404: string;
2169
+ 500: ErrorResponse;
2170
+ };
2171
+ export type PatchUserTutorialError = PatchUserTutorialErrors[keyof PatchUserTutorialErrors];
2172
+ export type PatchUserTutorialResponses = {
2173
+ 200: EmptyResponse;
2174
+ };
2175
+ export type PatchUserTutorialResponse = PatchUserTutorialResponses[keyof PatchUserTutorialResponses];