@katerai/sdk 0.6.0 → 0.8.0

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 (321) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +23 -16
  3. package/client.d.mts +10 -13
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +10 -13
  6. package/client.d.ts.map +1 -1
  7. package/client.js +37 -15
  8. package/client.js.map +1 -1
  9. package/client.mjs +37 -15
  10. package/client.mjs.map +1 -1
  11. package/internal/utils/log.d.mts.map +1 -1
  12. package/internal/utils/log.d.ts.map +1 -1
  13. package/internal/utils/log.js +2 -1
  14. package/internal/utils/log.js.map +1 -1
  15. package/internal/utils/log.mjs +2 -1
  16. package/internal/utils/log.mjs.map +1 -1
  17. package/package.json +2 -2
  18. package/resources/index.d.mts +0 -2
  19. package/resources/index.d.mts.map +1 -1
  20. package/resources/index.d.ts +0 -2
  21. package/resources/index.d.ts.map +1 -1
  22. package/resources/index.js +1 -5
  23. package/resources/index.js.map +1 -1
  24. package/resources/index.mjs +0 -2
  25. package/resources/index.mjs.map +1 -1
  26. package/resources/v1/compiler.d.mts +1116 -0
  27. package/resources/v1/compiler.d.mts.map +1 -0
  28. package/resources/v1/compiler.d.ts +1116 -0
  29. package/resources/v1/compiler.d.ts.map +1 -0
  30. package/resources/v1/compiler.js +70 -0
  31. package/resources/v1/compiler.js.map +1 -0
  32. package/resources/v1/compiler.mjs +66 -0
  33. package/resources/v1/compiler.mjs.map +1 -0
  34. package/resources/v1/connections.d.mts +216 -1
  35. package/resources/v1/connections.d.mts.map +1 -1
  36. package/resources/v1/connections.d.ts +216 -1
  37. package/resources/v1/connections.d.ts.map +1 -1
  38. package/resources/v1/connections.js +22 -2
  39. package/resources/v1/connections.js.map +1 -1
  40. package/resources/v1/connections.mjs +20 -1
  41. package/resources/v1/connections.mjs.map +1 -1
  42. package/resources/v1/index.d.mts +3 -6
  43. package/resources/v1/index.d.mts.map +1 -1
  44. package/resources/v1/index.d.ts +3 -6
  45. package/resources/v1/index.d.ts.map +1 -1
  46. package/resources/v1/index.js +7 -13
  47. package/resources/v1/index.js.map +1 -1
  48. package/resources/v1/index.mjs +2 -5
  49. package/resources/v1/index.mjs.map +1 -1
  50. package/resources/v1/tenants/groups.d.mts +5 -5
  51. package/resources/v1/tenants/groups.d.mts.map +1 -1
  52. package/resources/v1/tenants/groups.d.ts +5 -5
  53. package/resources/v1/tenants/groups.d.ts.map +1 -1
  54. package/resources/v1/tenants/groups.js +1 -1
  55. package/resources/v1/tenants/groups.js.map +1 -1
  56. package/resources/v1/tenants/groups.mjs +1 -1
  57. package/resources/v1/tenants/groups.mjs.map +1 -1
  58. package/resources/v1/tenants/index.d.mts +2 -4
  59. package/resources/v1/tenants/index.d.mts.map +1 -1
  60. package/resources/v1/tenants/index.d.ts +2 -4
  61. package/resources/v1/tenants/index.d.ts.map +1 -1
  62. package/resources/v1/tenants/index.js +1 -5
  63. package/resources/v1/tenants/index.js.map +1 -1
  64. package/resources/v1/tenants/index.mjs +0 -2
  65. package/resources/v1/tenants/index.mjs.map +1 -1
  66. package/resources/v1/tenants/tenants.d.mts +72 -151
  67. package/resources/v1/tenants/tenants.d.mts.map +1 -1
  68. package/resources/v1/tenants/tenants.d.ts +72 -151
  69. package/resources/v1/tenants/tenants.d.ts.map +1 -1
  70. package/resources/v1/tenants/tenants.js +29 -72
  71. package/resources/v1/tenants/tenants.js.map +1 -1
  72. package/resources/v1/tenants/tenants.mjs +29 -72
  73. package/resources/v1/tenants/tenants.mjs.map +1 -1
  74. package/resources/v1/v1.d.mts +9 -21
  75. package/resources/v1/v1.d.mts.map +1 -1
  76. package/resources/v1/v1.d.ts +9 -21
  77. package/resources/v1/v1.d.ts.map +1 -1
  78. package/resources/v1/v1.js +6 -18
  79. package/resources/v1/v1.js.map +1 -1
  80. package/resources/v1/v1.mjs +6 -18
  81. package/resources/v1/v1.mjs.map +1 -1
  82. package/src/client.ts +48 -23
  83. package/src/internal/utils/log.ts +1 -0
  84. package/src/resources/index.ts +0 -2
  85. package/src/resources/v1/compiler.ts +1484 -0
  86. package/src/resources/v1/connections.ts +277 -1
  87. package/src/resources/v1/index.ts +23 -43
  88. package/src/resources/v1/tenants/groups.ts +5 -5
  89. package/src/resources/v1/tenants/index.ts +5 -24
  90. package/src/resources/v1/tenants/tenants.ts +89 -213
  91. package/src/resources/v1/v1.ts +49 -101
  92. package/src/version.ts +1 -1
  93. package/version.d.mts +1 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
  96. package/version.mjs +1 -1
  97. package/resources/healthz.d.mts +0 -16
  98. package/resources/healthz.d.mts.map +0 -1
  99. package/resources/healthz.d.ts +0 -16
  100. package/resources/healthz.d.ts.map +0 -1
  101. package/resources/healthz.js +0 -15
  102. package/resources/healthz.js.map +0 -1
  103. package/resources/healthz.mjs +0 -11
  104. package/resources/healthz.mjs.map +0 -1
  105. package/resources/readyz.d.mts +0 -16
  106. package/resources/readyz.d.mts.map +0 -1
  107. package/resources/readyz.d.ts +0 -16
  108. package/resources/readyz.d.ts.map +0 -1
  109. package/resources/readyz.js +0 -15
  110. package/resources/readyz.js.map +0 -1
  111. package/resources/readyz.mjs +0 -11
  112. package/resources/readyz.mjs.map +0 -1
  113. package/resources/v1/connections/connections.d.mts +0 -1470
  114. package/resources/v1/connections/connections.d.mts.map +0 -1
  115. package/resources/v1/connections/connections.d.ts +0 -1470
  116. package/resources/v1/connections/connections.d.ts.map +0 -1
  117. package/resources/v1/connections/connections.js +0 -163
  118. package/resources/v1/connections/connections.js.map +0 -1
  119. package/resources/v1/connections/connections.mjs +0 -158
  120. package/resources/v1/connections/connections.mjs.map +0 -1
  121. package/resources/v1/connections/databases.d.mts +0 -25
  122. package/resources/v1/connections/databases.d.mts.map +0 -1
  123. package/resources/v1/connections/databases.d.ts +0 -25
  124. package/resources/v1/connections/databases.d.ts.map +0 -1
  125. package/resources/v1/connections/databases.js +0 -26
  126. package/resources/v1/connections/databases.js.map +0 -1
  127. package/resources/v1/connections/databases.mjs +0 -22
  128. package/resources/v1/connections/databases.mjs.map +0 -1
  129. package/resources/v1/connections/index.d.mts +0 -5
  130. package/resources/v1/connections/index.d.mts.map +0 -1
  131. package/resources/v1/connections/index.d.ts +0 -5
  132. package/resources/v1/connections/index.d.ts.map +0 -1
  133. package/resources/v1/connections/index.js +0 -13
  134. package/resources/v1/connections/index.js.map +0 -1
  135. package/resources/v1/connections/index.mjs +0 -6
  136. package/resources/v1/connections/index.mjs.map +0 -1
  137. package/resources/v1/connections/views.d.mts +0 -77
  138. package/resources/v1/connections/views.d.mts.map +0 -1
  139. package/resources/v1/connections/views.d.ts +0 -77
  140. package/resources/v1/connections/views.d.ts.map +0 -1
  141. package/resources/v1/connections/views.js +0 -24
  142. package/resources/v1/connections/views.js.map +0 -1
  143. package/resources/v1/connections/views.mjs +0 -20
  144. package/resources/v1/connections/views.mjs.map +0 -1
  145. package/resources/v1/connections/yaml.d.mts +0 -57
  146. package/resources/v1/connections/yaml.d.mts.map +0 -1
  147. package/resources/v1/connections/yaml.d.ts +0 -57
  148. package/resources/v1/connections/yaml.d.ts.map +0 -1
  149. package/resources/v1/connections/yaml.js +0 -22
  150. package/resources/v1/connections/yaml.js.map +0 -1
  151. package/resources/v1/connections/yaml.mjs +0 -18
  152. package/resources/v1/connections/yaml.mjs.map +0 -1
  153. package/resources/v1/github/github.d.mts +0 -99
  154. package/resources/v1/github/github.d.mts.map +0 -1
  155. package/resources/v1/github/github.d.ts +0 -99
  156. package/resources/v1/github/github.d.ts.map +0 -1
  157. package/resources/v1/github/github.js +0 -49
  158. package/resources/v1/github/github.js.map +0 -1
  159. package/resources/v1/github/github.mjs +0 -44
  160. package/resources/v1/github/github.mjs.map +0 -1
  161. package/resources/v1/github/index.d.mts +0 -5
  162. package/resources/v1/github/index.d.mts.map +0 -1
  163. package/resources/v1/github/index.d.ts +0 -5
  164. package/resources/v1/github/index.d.ts.map +0 -1
  165. package/resources/v1/github/index.js +0 -13
  166. package/resources/v1/github/index.js.map +0 -1
  167. package/resources/v1/github/index.mjs +0 -6
  168. package/resources/v1/github/index.mjs.map +0 -1
  169. package/resources/v1/github/repos.d.mts +0 -54
  170. package/resources/v1/github/repos.d.mts.map +0 -1
  171. package/resources/v1/github/repos.d.ts +0 -54
  172. package/resources/v1/github/repos.d.ts.map +0 -1
  173. package/resources/v1/github/repos.js +0 -22
  174. package/resources/v1/github/repos.js.map +0 -1
  175. package/resources/v1/github/repos.mjs +0 -18
  176. package/resources/v1/github/repos.mjs.map +0 -1
  177. package/resources/v1/github/scaffold.d.mts +0 -29
  178. package/resources/v1/github/scaffold.d.mts.map +0 -1
  179. package/resources/v1/github/scaffold.d.ts +0 -29
  180. package/resources/v1/github/scaffold.d.ts.map +0 -1
  181. package/resources/v1/github/scaffold.js +0 -21
  182. package/resources/v1/github/scaffold.js.map +0 -1
  183. package/resources/v1/github/scaffold.mjs +0 -17
  184. package/resources/v1/github/scaffold.mjs.map +0 -1
  185. package/resources/v1/github/webhooks.d.mts +0 -28
  186. package/resources/v1/github/webhooks.d.mts.map +0 -1
  187. package/resources/v1/github/webhooks.d.ts +0 -28
  188. package/resources/v1/github/webhooks.d.ts.map +0 -1
  189. package/resources/v1/github/webhooks.js +0 -27
  190. package/resources/v1/github/webhooks.js.map +0 -1
  191. package/resources/v1/github/webhooks.mjs +0 -23
  192. package/resources/v1/github/webhooks.mjs.map +0 -1
  193. package/resources/v1/github.d.mts +0 -2
  194. package/resources/v1/github.d.mts.map +0 -1
  195. package/resources/v1/github.d.ts +0 -2
  196. package/resources/v1/github.d.ts.map +0 -1
  197. package/resources/v1/github.js +0 -6
  198. package/resources/v1/github.js.map +0 -1
  199. package/resources/v1/github.mjs +0 -3
  200. package/resources/v1/github.mjs.map +0 -1
  201. package/resources/v1/groups/groups.d.mts +0 -162
  202. package/resources/v1/groups/groups.d.mts.map +0 -1
  203. package/resources/v1/groups/groups.d.ts +0 -162
  204. package/resources/v1/groups/groups.d.ts.map +0 -1
  205. package/resources/v1/groups/groups.js +0 -81
  206. package/resources/v1/groups/groups.js.map +0 -1
  207. package/resources/v1/groups/groups.mjs +0 -76
  208. package/resources/v1/groups/groups.mjs.map +0 -1
  209. package/resources/v1/groups/index.d.mts +0 -3
  210. package/resources/v1/groups/index.d.mts.map +0 -1
  211. package/resources/v1/groups/index.d.ts +0 -3
  212. package/resources/v1/groups/index.d.ts.map +0 -1
  213. package/resources/v1/groups/index.js +0 -9
  214. package/resources/v1/groups/index.js.map +0 -1
  215. package/resources/v1/groups/index.mjs +0 -4
  216. package/resources/v1/groups/index.mjs.map +0 -1
  217. package/resources/v1/groups/tenants.d.mts +0 -55
  218. package/resources/v1/groups/tenants.d.mts.map +0 -1
  219. package/resources/v1/groups/tenants.d.ts +0 -55
  220. package/resources/v1/groups/tenants.d.ts.map +0 -1
  221. package/resources/v1/groups/tenants.js +0 -39
  222. package/resources/v1/groups/tenants.js.map +0 -1
  223. package/resources/v1/groups/tenants.mjs +0 -35
  224. package/resources/v1/groups/tenants.mjs.map +0 -1
  225. package/resources/v1/groups.d.mts +0 -2
  226. package/resources/v1/groups.d.mts.map +0 -1
  227. package/resources/v1/groups.d.ts +0 -2
  228. package/resources/v1/groups.d.ts.map +0 -1
  229. package/resources/v1/groups.js +0 -6
  230. package/resources/v1/groups.js.map +0 -1
  231. package/resources/v1/groups.mjs +0 -3
  232. package/resources/v1/groups.mjs.map +0 -1
  233. package/resources/v1/me.d.mts +0 -43
  234. package/resources/v1/me.d.mts.map +0 -1
  235. package/resources/v1/me.d.ts +0 -43
  236. package/resources/v1/me.d.ts.map +0 -1
  237. package/resources/v1/me.js +0 -20
  238. package/resources/v1/me.js.map +0 -1
  239. package/resources/v1/me.mjs +0 -16
  240. package/resources/v1/me.mjs.map +0 -1
  241. package/resources/v1/org/client.d.mts +0 -53
  242. package/resources/v1/org/client.d.mts.map +0 -1
  243. package/resources/v1/org/client.d.ts +0 -53
  244. package/resources/v1/org/client.d.ts.map +0 -1
  245. package/resources/v1/org/client.js +0 -25
  246. package/resources/v1/org/client.js.map +0 -1
  247. package/resources/v1/org/client.mjs +0 -21
  248. package/resources/v1/org/client.mjs.map +0 -1
  249. package/resources/v1/org/index.d.mts +0 -4
  250. package/resources/v1/org/index.d.mts.map +0 -1
  251. package/resources/v1/org/index.d.ts +0 -4
  252. package/resources/v1/org/index.d.ts.map +0 -1
  253. package/resources/v1/org/index.js +0 -11
  254. package/resources/v1/org/index.js.map +0 -1
  255. package/resources/v1/org/index.mjs +0 -5
  256. package/resources/v1/org/index.mjs.map +0 -1
  257. package/resources/v1/org/org.d.mts +0 -14
  258. package/resources/v1/org/org.d.mts.map +0 -1
  259. package/resources/v1/org/org.d.ts +0 -14
  260. package/resources/v1/org/org.d.ts.map +0 -1
  261. package/resources/v1/org/org.js +0 -21
  262. package/resources/v1/org/org.js.map +0 -1
  263. package/resources/v1/org/org.mjs +0 -16
  264. package/resources/v1/org/org.mjs.map +0 -1
  265. package/resources/v1/org/users.d.mts +0 -87
  266. package/resources/v1/org/users.d.mts.map +0 -1
  267. package/resources/v1/org/users.d.ts +0 -87
  268. package/resources/v1/org/users.d.ts.map +0 -1
  269. package/resources/v1/org/users.js +0 -60
  270. package/resources/v1/org/users.js.map +0 -1
  271. package/resources/v1/org/users.mjs +0 -56
  272. package/resources/v1/org/users.mjs.map +0 -1
  273. package/resources/v1/org.d.mts +0 -2
  274. package/resources/v1/org.d.mts.map +0 -1
  275. package/resources/v1/org.d.ts +0 -2
  276. package/resources/v1/org.d.ts.map +0 -1
  277. package/resources/v1/org.js +0 -6
  278. package/resources/v1/org.js.map +0 -1
  279. package/resources/v1/org.mjs +0 -3
  280. package/resources/v1/org.mjs.map +0 -1
  281. package/resources/v1/tenants/batch.d.mts +0 -159
  282. package/resources/v1/tenants/batch.d.mts.map +0 -1
  283. package/resources/v1/tenants/batch.d.ts +0 -159
  284. package/resources/v1/tenants/batch.d.ts.map +0 -1
  285. package/resources/v1/tenants/batch.js +0 -42
  286. package/resources/v1/tenants/batch.js.map +0 -1
  287. package/resources/v1/tenants/batch.mjs +0 -38
  288. package/resources/v1/tenants/batch.mjs.map +0 -1
  289. package/resources/v1/tenants/import.d.mts +0 -126
  290. package/resources/v1/tenants/import.d.mts.map +0 -1
  291. package/resources/v1/tenants/import.d.ts +0 -126
  292. package/resources/v1/tenants/import.d.ts.map +0 -1
  293. package/resources/v1/tenants/import.js +0 -50
  294. package/resources/v1/tenants/import.js.map +0 -1
  295. package/resources/v1/tenants/import.mjs +0 -46
  296. package/resources/v1/tenants/import.mjs.map +0 -1
  297. package/src/resources/healthz.ts +0 -20
  298. package/src/resources/readyz.ts +0 -20
  299. package/src/resources/v1/connections/connections.ts +0 -1905
  300. package/src/resources/v1/connections/databases.ts +0 -42
  301. package/src/resources/v1/connections/index.ts +0 -33
  302. package/src/resources/v1/connections/views.ts +0 -112
  303. package/src/resources/v1/connections/yaml.ts +0 -81
  304. package/src/resources/v1/github/github.ts +0 -165
  305. package/src/resources/v1/github/index.ts +0 -20
  306. package/src/resources/v1/github/repos.ts +0 -85
  307. package/src/resources/v1/github/scaffold.ts +0 -44
  308. package/src/resources/v1/github/webhooks.ts +0 -60
  309. package/src/resources/v1/github.ts +0 -3
  310. package/src/resources/v1/groups/groups.ts +0 -218
  311. package/src/resources/v1/groups/index.ts +0 -10
  312. package/src/resources/v1/groups/tenants.ts +0 -78
  313. package/src/resources/v1/groups.ts +0 -3
  314. package/src/resources/v1/me.ts +0 -62
  315. package/src/resources/v1/org/client.ts +0 -81
  316. package/src/resources/v1/org/index.ts +0 -11
  317. package/src/resources/v1/org/org.ts +0 -32
  318. package/src/resources/v1/org/users.ts +0 -127
  319. package/src/resources/v1/org.ts +0 -3
  320. package/src/resources/v1/tenants/batch.ts +0 -200
  321. package/src/resources/v1/tenants/import.ts +0 -158
@@ -1,43 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class Me extends APIResource {
5
- /**
6
- * Get the current authenticated user's information.
7
- *
8
- * Returns the user's profile within their active organization. This endpoint only
9
- * requires authentication - no special permissions needed.
10
- *
11
- * RLS: Filtered to current user's data only (RLSDB).
12
- */
13
- retrieve(options?: RequestOptions): APIPromise<ClientUser>;
14
- }
15
- /**
16
- * Response schema for a client user.
17
- */
18
- export interface ClientUser {
19
- id: string;
20
- client_id: string;
21
- created_at: string;
22
- email: string;
23
- email_confirmed: boolean;
24
- /**
25
- * Role of a user within a client organization.
26
- */
27
- role: ClientUserRole;
28
- updated_at: string;
29
- first_name?: string | null;
30
- last_name?: string | null;
31
- picture_url?: string | null;
32
- propel_auth_created_at?: string | null;
33
- propel_auth_last_active_at?: string | null;
34
- username?: string | null;
35
- }
36
- /**
37
- * Role of a user within a client organization.
38
- */
39
- export type ClientUserRole = 'Admin' | 'Developer' | 'Viewer';
40
- export declare namespace Me {
41
- export { type ClientUser as ClientUser, type ClientUserRole as ClientUserRole };
42
- }
43
- //# sourceMappingURL=me.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"me.d.mts","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;CAG3D;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;IAEd,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE9D,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CACjF"}
@@ -1,43 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- export declare class Me extends APIResource {
5
- /**
6
- * Get the current authenticated user's information.
7
- *
8
- * Returns the user's profile within their active organization. This endpoint only
9
- * requires authentication - no special permissions needed.
10
- *
11
- * RLS: Filtered to current user's data only (RLSDB).
12
- */
13
- retrieve(options?: RequestOptions): APIPromise<ClientUser>;
14
- }
15
- /**
16
- * Response schema for a client user.
17
- */
18
- export interface ClientUser {
19
- id: string;
20
- client_id: string;
21
- created_at: string;
22
- email: string;
23
- email_confirmed: boolean;
24
- /**
25
- * Role of a user within a client organization.
26
- */
27
- role: ClientUserRole;
28
- updated_at: string;
29
- first_name?: string | null;
30
- last_name?: string | null;
31
- picture_url?: string | null;
32
- propel_auth_created_at?: string | null;
33
- propel_auth_last_active_at?: string | null;
34
- username?: string | null;
35
- }
36
- /**
37
- * Role of a user within a client organization.
38
- */
39
- export type ClientUserRole = 'Admin' | 'Developer' | 'Viewer';
40
- export declare namespace Me {
41
- export { type ClientUser as ClientUser, type ClientUserRole as ClientUserRole };
42
- }
43
- //# sourceMappingURL=me.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;CAG3D;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;IAEd,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE9D,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CACjF"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Me = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- class Me extends resource_1.APIResource {
7
- /**
8
- * Get the current authenticated user's information.
9
- *
10
- * Returns the user's profile within their active organization. This endpoint only
11
- * requires authentication - no special permissions needed.
12
- *
13
- * RLS: Filtered to current user's data only (RLSDB).
14
- */
15
- retrieve(options) {
16
- return this._client.get('/api/v1/me', options);
17
- }
18
- }
19
- exports.Me = Me;
20
- //# sourceMappingURL=me.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"me.js","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AAZD,gBAYC"}
@@ -1,16 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- export class Me extends APIResource {
4
- /**
5
- * Get the current authenticated user's information.
6
- *
7
- * Returns the user's profile within their active organization. This endpoint only
8
- * requires authentication - no special permissions needed.
9
- *
10
- * RLS: Filtered to current user's data only (RLSDB).
11
- */
12
- retrieve(options) {
13
- return this._client.get('/api/v1/me', options);
14
- }
15
- }
16
- //# sourceMappingURL=me.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"me.mjs","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF"}
@@ -1,53 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../../internal/request-options.mjs";
4
- export declare class ClientResource extends APIResource {
5
- /**
6
- * Get the current user's organization details.
7
- *
8
- * RLS: Filtered to current client (ClientRLSDB).
9
- */
10
- retrieve(options?: RequestOptions): APIPromise<Client>;
11
- /**
12
- * Update the current user's organization details.
13
- *
14
- * RLS: Filtered to current client (ClientRLSDB).
15
- */
16
- update(body: ClientUpdateParams, options?: RequestOptions): APIPromise<Client>;
17
- }
18
- /**
19
- * Response schema for a client/organization.
20
- */
21
- export interface Client {
22
- id: string;
23
- can_auto_join_by_domain: boolean;
24
- created_at: string;
25
- members_must_have_matching_domain: boolean;
26
- name: string;
27
- /**
28
- * Type of tenancy for a client.
29
- */
30
- tenancy_type: TenancyType;
31
- updated_at: string;
32
- domain?: string | null;
33
- logo_url?: string | null;
34
- }
35
- /**
36
- * Type of tenancy for a client.
37
- */
38
- export type TenancyType = 'row' | 'database' | 'none';
39
- export interface ClientUpdateParams {
40
- can_auto_join_by_domain?: boolean | null;
41
- domain?: string | null;
42
- logo_url?: string | null;
43
- members_must_have_matching_domain?: boolean | null;
44
- name?: string | null;
45
- /**
46
- * Type of tenancy for a client.
47
- */
48
- tenancy_type?: TenancyType | null;
49
- }
50
- export declare namespace ClientResource {
51
- export { type Client as Client, type TenancyType as TenancyType, type ClientUpdateParams as ClientUpdateParams, };
52
- }
53
- //# sourceMappingURL=client.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/org/client.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAItD;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,uBAAuB,EAAE,OAAO,CAAC;IAEjC,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC,EAAE,OAAO,CAAC;IAE3C,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,WAAW,CAAC;IAE1B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,uBAAuB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,iCAAiC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,53 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import { APIPromise } from "../../../core/api-promise.js";
3
- import { RequestOptions } from "../../../internal/request-options.js";
4
- export declare class ClientResource extends APIResource {
5
- /**
6
- * Get the current user's organization details.
7
- *
8
- * RLS: Filtered to current client (ClientRLSDB).
9
- */
10
- retrieve(options?: RequestOptions): APIPromise<Client>;
11
- /**
12
- * Update the current user's organization details.
13
- *
14
- * RLS: Filtered to current client (ClientRLSDB).
15
- */
16
- update(body: ClientUpdateParams, options?: RequestOptions): APIPromise<Client>;
17
- }
18
- /**
19
- * Response schema for a client/organization.
20
- */
21
- export interface Client {
22
- id: string;
23
- can_auto_join_by_domain: boolean;
24
- created_at: string;
25
- members_must_have_matching_domain: boolean;
26
- name: string;
27
- /**
28
- * Type of tenancy for a client.
29
- */
30
- tenancy_type: TenancyType;
31
- updated_at: string;
32
- domain?: string | null;
33
- logo_url?: string | null;
34
- }
35
- /**
36
- * Type of tenancy for a client.
37
- */
38
- export type TenancyType = 'row' | 'database' | 'none';
39
- export interface ClientUpdateParams {
40
- can_auto_join_by_domain?: boolean | null;
41
- domain?: string | null;
42
- logo_url?: string | null;
43
- members_must_have_matching_domain?: boolean | null;
44
- name?: string | null;
45
- /**
46
- * Type of tenancy for a client.
47
- */
48
- tenancy_type?: TenancyType | null;
49
- }
50
- export declare namespace ClientResource {
51
- export { type Client as Client, type TenancyType as TenancyType, type ClientUpdateParams as ClientUpdateParams, };
52
- }
53
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/org/client.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAItD;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,uBAAuB,EAAE,OAAO,CAAC;IAEjC,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC,EAAE,OAAO,CAAC;IAE3C,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,WAAW,CAAC;IAE1B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,uBAAuB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,iCAAiC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ClientResource = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- class ClientResource extends resource_1.APIResource {
7
- /**
8
- * Get the current user's organization details.
9
- *
10
- * RLS: Filtered to current client (ClientRLSDB).
11
- */
12
- retrieve(options) {
13
- return this._client.get('/api/v1/org/client', options);
14
- }
15
- /**
16
- * Update the current user's organization details.
17
- *
18
- * RLS: Filtered to current client (ClientRLSDB).
19
- */
20
- update(body, options) {
21
- return this._client.patch('/api/v1/org/client', { body, ...options });
22
- }
23
- }
24
- exports.ClientResource = ClientResource;
25
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/resources/v1/org/client.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAlBD,wCAkBC"}
@@ -1,21 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- export class ClientResource extends APIResource {
4
- /**
5
- * Get the current user's organization details.
6
- *
7
- * RLS: Filtered to current client (ClientRLSDB).
8
- */
9
- retrieve(options) {
10
- return this._client.get('/api/v1/org/client', options);
11
- }
12
- /**
13
- * Update the current user's organization details.
14
- *
15
- * RLS: Filtered to current client (ClientRLSDB).
16
- */
17
- update(body, options) {
18
- return this._client.patch('/api/v1/org/client', { body, ...options });
19
- }
20
- }
21
- //# sourceMappingURL=client.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.mjs","sourceRoot":"","sources":["../../../src/resources/v1/org/client.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- export { ClientResource, type Client, type TenancyType, type ClientUpdateParams } from "./client.mjs";
2
- export { Org } from "./org.mjs";
3
- export { Users, type UserListResponse, type UserDeleteResponse, type UserCreateParams, type UserUpdateParams, } from "./users.mjs";
4
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/org/index.ts"],"names":[],"mappings":"OAEO,EAAE,cAAc,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE;OAC1E,EAAE,GAAG,EAAE;OACP,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
@@ -1,4 +0,0 @@
1
- export { ClientResource, type Client, type TenancyType, type ClientUpdateParams } from "./client.js";
2
- export { Org } from "./org.js";
3
- export { Users, type UserListResponse, type UserDeleteResponse, type UserCreateParams, type UserUpdateParams, } from "./users.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/org/index.ts"],"names":[],"mappings":"OAEO,EAAE,cAAc,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE;OAC1E,EAAE,GAAG,EAAE;OACP,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Users = exports.Org = exports.ClientResource = void 0;
5
- var client_1 = require("./client.js");
6
- Object.defineProperty(exports, "ClientResource", { enumerable: true, get: function () { return client_1.ClientResource; } });
7
- var org_1 = require("./org.js");
8
- Object.defineProperty(exports, "Org", { enumerable: true, get: function () { return org_1.Org; } });
9
- var users_1 = require("./users.js");
10
- Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/org/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkG;AAAzF,wGAAA,cAAc,OAAA;AACvB,gCAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,oCAMiB;AALf,8FAAA,KAAK,OAAA"}
@@ -1,5 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { ClientResource } from "./client.mjs";
3
- export { Org } from "./org.mjs";
4
- export { Users, } from "./users.mjs";
5
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/org/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,cAAc,EAA0D;OAC1E,EAAE,GAAG,EAAE;OACP,EACL,KAAK,GAKN"}
@@ -1,14 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as ClientAPI from "./client.mjs";
3
- import { Client, ClientResource, ClientUpdateParams, TenancyType } from "./client.mjs";
4
- import * as UsersAPI from "./users.mjs";
5
- import { UserCreateParams, UserDeleteResponse, UserListResponse, UserUpdateParams, Users } from "./users.mjs";
6
- export declare class Org extends APIResource {
7
- client: ClientAPI.ClientResource;
8
- users: UsersAPI.Users;
9
- }
10
- export declare namespace Org {
11
- export { ClientResource as ClientResource, type Client as Client, type TenancyType as TenancyType, type ClientUpdateParams as ClientUpdateParams, };
12
- export { Users as Users, type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, };
13
- }
14
- //# sourceMappingURL=org.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"org.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/org/org.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE;OAC3D,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE;AAE1F,qBAAa,GAAI,SAAQ,WAAW;IAClC,MAAM,EAAE,SAAS,CAAC,cAAc,CAA8C;IAC9E,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAKD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,14 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as ClientAPI from "./client.js";
3
- import { Client, ClientResource, ClientUpdateParams, TenancyType } from "./client.js";
4
- import * as UsersAPI from "./users.js";
5
- import { UserCreateParams, UserDeleteResponse, UserListResponse, UserUpdateParams, Users } from "./users.js";
6
- export declare class Org extends APIResource {
7
- client: ClientAPI.ClientResource;
8
- users: UsersAPI.Users;
9
- }
10
- export declare namespace Org {
11
- export { ClientResource as ClientResource, type Client as Client, type TenancyType as TenancyType, type ClientUpdateParams as ClientUpdateParams, };
12
- export { Users as Users, type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, };
13
- }
14
- //# sourceMappingURL=org.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/org/org.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE;OAC3D,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE;AAE1F,qBAAa,GAAI,SAAQ,WAAW;IAClC,MAAM,EAAE,SAAS,CAAC,cAAc,CAA8C;IAC9E,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAKD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Org = void 0;
5
- const tslib_1 = require("../../../internal/tslib.js");
6
- const resource_1 = require("../../../core/resource.js");
7
- const ClientAPI = tslib_1.__importStar(require("./client.js"));
8
- const client_1 = require("./client.js");
9
- const UsersAPI = tslib_1.__importStar(require("./users.js"));
10
- const users_1 = require("./users.js");
11
- class Org extends resource_1.APIResource {
12
- constructor() {
13
- super(...arguments);
14
- this.client = new ClientAPI.ClientResource(this._client);
15
- this.users = new UsersAPI.Users(this._client);
16
- }
17
- }
18
- exports.Org = Org;
19
- Org.ClientResource = client_1.ClientResource;
20
- Org.Users = users_1.Users;
21
- //# sourceMappingURL=org.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"org.js","sourceRoot":"","sources":["../../../src/resources/v1/org/org.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAAmF;AACnF,6DAAoC;AACpC,sCAA0G;AAE1G,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,WAAM,GAA6B,IAAI,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9E,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAHD,kBAGC;AAED,GAAG,CAAC,cAAc,GAAG,uBAAc,CAAC;AACpC,GAAG,CAAC,KAAK,GAAG,aAAK,CAAC"}
@@ -1,16 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import * as ClientAPI from "./client.mjs";
4
- import { ClientResource } from "./client.mjs";
5
- import * as UsersAPI from "./users.mjs";
6
- import { Users } from "./users.mjs";
7
- export class Org extends APIResource {
8
- constructor() {
9
- super(...arguments);
10
- this.client = new ClientAPI.ClientResource(this._client);
11
- this.users = new UsersAPI.Users(this._client);
12
- }
13
- }
14
- Org.ClientResource = ClientResource;
15
- Org.Users = Users;
16
- //# sourceMappingURL=org.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"org.mjs","sourceRoot":"","sources":["../../../src/resources/v1/org/org.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAU,cAAc,EAAmC;OAC3D,KAAK,QAAQ;OACb,EAA4E,KAAK,EAAE;AAE1F,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,WAAM,GAA6B,IAAI,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9E,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,GAAG,CAAC,cAAc,GAAG,cAAc,CAAC;AACpC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC"}
@@ -1,87 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as MeAPI from "../me.mjs";
3
- import { APIPromise } from "../../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../../internal/request-options.mjs";
5
- export declare class Users extends APIResource {
6
- /**
7
- * Create a new user in the current organization.
8
- *
9
- * Creates the user in PropelAuth and adds them to this organization. The user will
10
- * receive an email to confirm their email address.
11
- *
12
- * RLS: Filtered to current client (ClientRLSDB).
13
- */
14
- create(body: UserCreateParams, options?: RequestOptions): APIPromise<MeAPI.ClientUser>;
15
- /**
16
- * Get a specific user in the current organization.
17
- *
18
- * RLS: Filtered to current client, can see any user (ClientRLSDB).
19
- */
20
- retrieve(userID: string, options?: RequestOptions): APIPromise<MeAPI.ClientUser>;
21
- /**
22
- * Update a user in the current organization.
23
- *
24
- * Different PropelAuth methods are called depending on what's being updated:
25
- *
26
- * - Email changes require re-confirmation
27
- * - Password changes take effect immediately
28
- * - Profile fields (name, username, picture) are updated together
29
- * - Role changes affect organization permissions
30
- *
31
- * RLS: Filtered to current client, can update any user (ClientRLSDB).
32
- */
33
- update(userID: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<MeAPI.ClientUser>;
34
- /**
35
- * List all users in the current organization.
36
- *
37
- * RLS: Filtered to current client, sees all users (ClientRLSDB).
38
- */
39
- list(options?: RequestOptions): APIPromise<UserListResponse>;
40
- /**
41
- * Soft delete a user from the current organization.
42
- *
43
- * RLS: Filtered to current client (ClientRLSDB).
44
- */
45
- delete(userID: string, options?: RequestOptions): APIPromise<UserDeleteResponse>;
46
- }
47
- /**
48
- * Response schema for listing client users.
49
- */
50
- export interface UserListResponse {
51
- total: number;
52
- users: Array<MeAPI.ClientUser>;
53
- }
54
- /**
55
- * Response schema for delete operations.
56
- */
57
- export interface UserDeleteResponse {
58
- message: string;
59
- success: boolean;
60
- }
61
- export interface UserCreateParams {
62
- email: string;
63
- password: string;
64
- first_name?: string | null;
65
- last_name?: string | null;
66
- /**
67
- * Role of a user within a client organization.
68
- */
69
- role?: MeAPI.ClientUserRole;
70
- username?: string | null;
71
- }
72
- export interface UserUpdateParams {
73
- email?: string | null;
74
- first_name?: string | null;
75
- last_name?: string | null;
76
- password?: string | null;
77
- picture_url?: string | null;
78
- /**
79
- * Role of a user within a client organization.
80
- */
81
- role?: MeAPI.ClientUserRole | null;
82
- username?: string | null;
83
- }
84
- export declare namespace Users {
85
- export { type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, };
86
- }
87
- //# sourceMappingURL=users.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/org/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;IAItF;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;IAIhF;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;IAItG;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5D;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjF;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC;IAE5B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;IAEnC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,87 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as MeAPI from "../me.js";
3
- import { APIPromise } from "../../../core/api-promise.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
5
- export declare class Users extends APIResource {
6
- /**
7
- * Create a new user in the current organization.
8
- *
9
- * Creates the user in PropelAuth and adds them to this organization. The user will
10
- * receive an email to confirm their email address.
11
- *
12
- * RLS: Filtered to current client (ClientRLSDB).
13
- */
14
- create(body: UserCreateParams, options?: RequestOptions): APIPromise<MeAPI.ClientUser>;
15
- /**
16
- * Get a specific user in the current organization.
17
- *
18
- * RLS: Filtered to current client, can see any user (ClientRLSDB).
19
- */
20
- retrieve(userID: string, options?: RequestOptions): APIPromise<MeAPI.ClientUser>;
21
- /**
22
- * Update a user in the current organization.
23
- *
24
- * Different PropelAuth methods are called depending on what's being updated:
25
- *
26
- * - Email changes require re-confirmation
27
- * - Password changes take effect immediately
28
- * - Profile fields (name, username, picture) are updated together
29
- * - Role changes affect organization permissions
30
- *
31
- * RLS: Filtered to current client, can update any user (ClientRLSDB).
32
- */
33
- update(userID: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<MeAPI.ClientUser>;
34
- /**
35
- * List all users in the current organization.
36
- *
37
- * RLS: Filtered to current client, sees all users (ClientRLSDB).
38
- */
39
- list(options?: RequestOptions): APIPromise<UserListResponse>;
40
- /**
41
- * Soft delete a user from the current organization.
42
- *
43
- * RLS: Filtered to current client (ClientRLSDB).
44
- */
45
- delete(userID: string, options?: RequestOptions): APIPromise<UserDeleteResponse>;
46
- }
47
- /**
48
- * Response schema for listing client users.
49
- */
50
- export interface UserListResponse {
51
- total: number;
52
- users: Array<MeAPI.ClientUser>;
53
- }
54
- /**
55
- * Response schema for delete operations.
56
- */
57
- export interface UserDeleteResponse {
58
- message: string;
59
- success: boolean;
60
- }
61
- export interface UserCreateParams {
62
- email: string;
63
- password: string;
64
- first_name?: string | null;
65
- last_name?: string | null;
66
- /**
67
- * Role of a user within a client organization.
68
- */
69
- role?: MeAPI.ClientUserRole;
70
- username?: string | null;
71
- }
72
- export interface UserUpdateParams {
73
- email?: string | null;
74
- first_name?: string | null;
75
- last_name?: string | null;
76
- password?: string | null;
77
- picture_url?: string | null;
78
- /**
79
- * Role of a user within a client organization.
80
- */
81
- role?: MeAPI.ClientUserRole | null;
82
- username?: string | null;
83
- }
84
- export declare namespace Users {
85
- export { type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, };
86
- }
87
- //# sourceMappingURL=users.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/org/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;IAItF;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;IAIhF;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;IAItG;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5D;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjF;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC;IAE5B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;IAEnC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}