@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 +0,0 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/groups/groups.ts"],"names":[],"mappings":"OAEO,EAAE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"../../../core/resource.js";
2
- import * as TenantsAPI from "./tenants.js";
3
- import { TenantAddParams, TenantAddResponse, TenantRemoveParams, Tenants } from "./tenants.js";
4
- import { APIPromise } from "../../../core/api-promise.js";
5
- import { RequestOptions } from "../../../internal/request-options.js";
6
- export declare class Groups extends APIResource {
7
- tenants: TenantsAPI.Tenants;
8
- /**
9
- * Create a new group.
10
- *
11
- * Group names must be unique within the client.
12
- *
13
- * RLS: Filtered to current client (ClientRLSDB).
14
- *
15
- * Raises: GroupNameExistsError: If a group with this name already exists (409)
16
- */
17
- create(body: GroupCreateParams, options?: RequestOptions): APIPromise<GroupDetail>;
18
- /**
19
- * Get a single group by ID.
20
- *
21
- * Returns the group with its full tenant list.
22
- *
23
- * RLS: Filtered to current client (ClientRLSDB).
24
- *
25
- * Raises: GroupNotFoundError: If group doesn't exist (404)
26
- */
27
- retrieve(groupID: string, options?: RequestOptions): APIPromise<GroupDetail>;
28
- /**
29
- * Update a group.
30
- *
31
- * Update group name and/or description. Name must remain unique within client.
32
- *
33
- * RLS: Filtered to current client (ClientRLSDB).
34
- *
35
- * Raises: GroupNotFoundError: If group doesn't exist (404) GroupNameExistsError:
36
- * If new name conflicts with existing group (409)
37
- */
38
- update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<GroupDetail>;
39
- /**
40
- * List all groups for the client.
41
- *
42
- * Returns groups with their tenant counts for efficient display.
43
- *
44
- * RLS: Filtered to current client (ClientRLSDB).
45
- */
46
- list(options?: RequestOptions): APIPromise<GroupListResponse>;
47
- /**
48
- * Delete a group.
49
- *
50
- * Soft-deletes the group and removes all tenant associations.
51
- *
52
- * RLS: Filtered to current client (ClientRLSDB).
53
- *
54
- * Raises: GroupNotFoundError: If group doesn't exist (404)
55
- */
56
- delete(groupID: string, options?: RequestOptions): APIPromise<void>;
57
- }
58
- /**
59
- * Response model for a single group (with full tenant list).
60
- */
61
- export interface GroupDetail {
62
- /**
63
- * Group ID
64
- */
65
- id: string;
66
- /**
67
- * Creation timestamp
68
- */
69
- created_at: string;
70
- /**
71
- * Group description
72
- */
73
- description: string | null;
74
- /**
75
- * Group name
76
- */
77
- name: string;
78
- /**
79
- * Tenants in this group
80
- */
81
- tenants: Array<GroupDetail.Tenant>;
82
- /**
83
- * Last update timestamp
84
- */
85
- updated_at: string;
86
- }
87
- export declare namespace GroupDetail {
88
- /**
89
- * Tenant information in group responses.
90
- */
91
- interface Tenant {
92
- /**
93
- * Tenant ID
94
- */
95
- id: string;
96
- /**
97
- * Human-readable tenant name
98
- */
99
- name: string | null;
100
- /**
101
- * Unique tenant identifier
102
- */
103
- tenant_key: string;
104
- }
105
- }
106
- export type GroupListResponse = Array<GroupListResponse.GroupListResponseItem>;
107
- export declare namespace GroupListResponse {
108
- /**
109
- * Response model for a group in list responses (with tenant count).
110
- */
111
- interface GroupListResponseItem {
112
- /**
113
- * Group ID
114
- */
115
- id: string;
116
- /**
117
- * Creation timestamp
118
- */
119
- created_at: string;
120
- /**
121
- * Group description
122
- */
123
- description: string | null;
124
- /**
125
- * Group name
126
- */
127
- name: string;
128
- /**
129
- * Number of tenants in this group
130
- */
131
- tenant_count: number;
132
- /**
133
- * Last update timestamp
134
- */
135
- updated_at: string;
136
- }
137
- }
138
- export interface GroupCreateParams {
139
- /**
140
- * Unique group name within the client
141
- */
142
- name: string;
143
- /**
144
- * Human-readable group description
145
- */
146
- description?: string | null;
147
- }
148
- export interface GroupUpdateParams {
149
- /**
150
- * New group description
151
- */
152
- description?: string | null;
153
- /**
154
- * New group name
155
- */
156
- name?: string | null;
157
- }
158
- export declare namespace Groups {
159
- export { type GroupDetail as GroupDetail, type GroupListResponse as GroupListResponse, type GroupCreateParams as GroupCreateParams, type GroupUpdateParams as GroupUpdateParams, };
160
- export { Tenants as Tenants, type TenantAddResponse as TenantAddResponse, type TenantAddParams as TenantAddParams, type TenantRemoveParams as TenantRemoveParams, };
161
- }
162
- //# sourceMappingURL=groups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups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AkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,81 +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.Groups = void 0;
5
- const tslib_1 = require("../../../internal/tslib.js");
6
- const resource_1 = require("../../../core/resource.js");
7
- const TenantsAPI = tslib_1.__importStar(require("./tenants.js"));
8
- const tenants_1 = require("./tenants.js");
9
- const headers_1 = require("../../../internal/headers.js");
10
- const path_1 = require("../../../internal/utils/path.js");
11
- class Groups extends resource_1.APIResource {
12
- constructor() {
13
- super(...arguments);
14
- this.tenants = new TenantsAPI.Tenants(this._client);
15
- }
16
- /**
17
- * Create a new group.
18
- *
19
- * Group names must be unique within the client.
20
- *
21
- * RLS: Filtered to current client (ClientRLSDB).
22
- *
23
- * Raises: GroupNameExistsError: If a group with this name already exists (409)
24
- */
25
- create(body, options) {
26
- return this._client.post('/api/v1/groups', { body, ...options });
27
- }
28
- /**
29
- * Get a single group by ID.
30
- *
31
- * Returns the group with its full tenant list.
32
- *
33
- * RLS: Filtered to current client (ClientRLSDB).
34
- *
35
- * Raises: GroupNotFoundError: If group doesn't exist (404)
36
- */
37
- retrieve(groupID, options) {
38
- return this._client.get((0, path_1.path) `/api/v1/groups/${groupID}`, options);
39
- }
40
- /**
41
- * Update a group.
42
- *
43
- * Update group name and/or description. Name must remain unique within client.
44
- *
45
- * RLS: Filtered to current client (ClientRLSDB).
46
- *
47
- * Raises: GroupNotFoundError: If group doesn't exist (404) GroupNameExistsError:
48
- * If new name conflicts with existing group (409)
49
- */
50
- update(groupID, body, options) {
51
- return this._client.patch((0, path_1.path) `/api/v1/groups/${groupID}`, { body, ...options });
52
- }
53
- /**
54
- * List all groups for the client.
55
- *
56
- * Returns groups with their tenant counts for efficient display.
57
- *
58
- * RLS: Filtered to current client (ClientRLSDB).
59
- */
60
- list(options) {
61
- return this._client.get('/api/v1/groups', options);
62
- }
63
- /**
64
- * Delete a group.
65
- *
66
- * Soft-deletes the group and removes all tenant associations.
67
- *
68
- * RLS: Filtered to current client (ClientRLSDB).
69
- *
70
- * Raises: GroupNotFoundError: If group doesn't exist (404)
71
- */
72
- delete(groupID, options) {
73
- return this._client.delete((0, path_1.path) `/api/v1/groups/${groupID}`, {
74
- ...options,
75
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
76
- });
77
- }
78
- }
79
- exports.Groups = Groups;
80
- Groups.Tenants = tenants_1.Tenants;
81
- //# sourceMappingURL=groups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v1/groups/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAA4F;AAE5F,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoErE,CAAC;IAlEC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AArED,wBAqEC;AA0HD,MAAM,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -1,76 +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 TenantsAPI from "./tenants.mjs";
4
- import { Tenants } from "./tenants.mjs";
5
- import { buildHeaders } from "../../../internal/headers.mjs";
6
- import { path } from "../../../internal/utils/path.mjs";
7
- export class Groups extends APIResource {
8
- constructor() {
9
- super(...arguments);
10
- this.tenants = new TenantsAPI.Tenants(this._client);
11
- }
12
- /**
13
- * Create a new group.
14
- *
15
- * Group names must be unique within the client.
16
- *
17
- * RLS: Filtered to current client (ClientRLSDB).
18
- *
19
- * Raises: GroupNameExistsError: If a group with this name already exists (409)
20
- */
21
- create(body, options) {
22
- return this._client.post('/api/v1/groups', { body, ...options });
23
- }
24
- /**
25
- * Get a single group by ID.
26
- *
27
- * Returns the group with its full tenant list.
28
- *
29
- * RLS: Filtered to current client (ClientRLSDB).
30
- *
31
- * Raises: GroupNotFoundError: If group doesn't exist (404)
32
- */
33
- retrieve(groupID, options) {
34
- return this._client.get(path `/api/v1/groups/${groupID}`, options);
35
- }
36
- /**
37
- * Update a group.
38
- *
39
- * Update group name and/or description. Name must remain unique within client.
40
- *
41
- * RLS: Filtered to current client (ClientRLSDB).
42
- *
43
- * Raises: GroupNotFoundError: If group doesn't exist (404) GroupNameExistsError:
44
- * If new name conflicts with existing group (409)
45
- */
46
- update(groupID, body, options) {
47
- return this._client.patch(path `/api/v1/groups/${groupID}`, { body, ...options });
48
- }
49
- /**
50
- * List all groups for the client.
51
- *
52
- * Returns groups with their tenant counts for efficient display.
53
- *
54
- * RLS: Filtered to current client (ClientRLSDB).
55
- */
56
- list(options) {
57
- return this._client.get('/api/v1/groups', options);
58
- }
59
- /**
60
- * Delete a group.
61
- *
62
- * Soft-deletes the group and removes all tenant associations.
63
- *
64
- * RLS: Filtered to current client (ClientRLSDB).
65
- *
66
- * Raises: GroupNotFoundError: If group doesn't exist (404)
67
- */
68
- delete(groupID, options) {
69
- return this._client.delete(path `/api/v1/groups/${groupID}`, {
70
- ...options,
71
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
72
- });
73
- }
74
- }
75
- Groups.Tenants = Tenants;
76
- //# sourceMappingURL=groups.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v1/groups/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAA0D,OAAO,EAAE;OAEnE,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoErE,CAAC;IAlEC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,kBAAkB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,OAAO,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA0HD,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -1,3 +0,0 @@
1
- export { Groups, type GroupDetail, type GroupListResponse, type GroupCreateParams, type GroupUpdateParams, } from "./groups.mjs";
2
- export { Tenants, type TenantAddResponse, type TenantAddParams, type TenantRemoveParams } from "./tenants.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/groups/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE"}
@@ -1,3 +0,0 @@
1
- export { Groups, type GroupDetail, type GroupListResponse, type GroupCreateParams, type GroupUpdateParams, } from "./groups.js";
2
- export { Tenants, type TenantAddResponse, type TenantAddParams, type TenantRemoveParams } from "./tenants.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/groups/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE"}
@@ -1,9 +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.Tenants = exports.Groups = void 0;
5
- var groups_1 = require("./groups.js");
6
- Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
7
- var tenants_1 = require("./tenants.js");
8
- Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return tenants_1.Tenants; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/groups/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,wCAA2G;AAAlG,kGAAA,OAAO,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Groups, } from "./groups.mjs";
3
- export { Tenants } from "./tenants.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/groups/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAKP;OACM,EAAE,OAAO,EAAyE"}
@@ -1,55 +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 Tenants extends APIResource {
5
- /**
6
- * Add tenants to a group.
7
- *
8
- * Accepts a list of tenant IDs. Returns detailed results showing which tenants
9
- * were added, which were already members, and which don't exist.
10
- *
11
- * RLS: Filtered to current client (ClientRLSDB).
12
- *
13
- * Raises: GroupNotFoundError: If group doesn't exist (404)
14
- */
15
- add(groupID: string, body: TenantAddParams, options?: RequestOptions): APIPromise<TenantAddResponse>;
16
- /**
17
- * Remove a tenant from a group.
18
- *
19
- * RLS: Filtered to current client (ClientRLSDB).
20
- *
21
- * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
22
- * tenant is not a member of the group (404)
23
- */
24
- remove(tenantID: string, params: TenantRemoveParams, options?: RequestOptions): APIPromise<void>;
25
- }
26
- /**
27
- * Response model for add tenants operation.
28
- */
29
- export interface TenantAddResponse {
30
- /**
31
- * Tenant IDs that were successfully added
32
- */
33
- added: Array<string>;
34
- /**
35
- * Tenant IDs that were already members
36
- */
37
- already_in_group: Array<string>;
38
- /**
39
- * Tenant IDs that don't exist
40
- */
41
- not_found: Array<string>;
42
- }
43
- export interface TenantAddParams {
44
- /**
45
- * List of tenant IDs to add to the group
46
- */
47
- tenant_ids: Array<string>;
48
- }
49
- export interface TenantRemoveParams {
50
- group_id: string;
51
- }
52
- export declare namespace Tenants {
53
- export { type TenantAddResponse as TenantAddResponse, type TenantAddParams as TenantAddParams, type TenantRemoveParams as TenantRemoveParams, };
54
- }
55
- //# sourceMappingURL=tenants.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIpG;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOjG;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,55 +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 Tenants extends APIResource {
5
- /**
6
- * Add tenants to a group.
7
- *
8
- * Accepts a list of tenant IDs. Returns detailed results showing which tenants
9
- * were added, which were already members, and which don't exist.
10
- *
11
- * RLS: Filtered to current client (ClientRLSDB).
12
- *
13
- * Raises: GroupNotFoundError: If group doesn't exist (404)
14
- */
15
- add(groupID: string, body: TenantAddParams, options?: RequestOptions): APIPromise<TenantAddResponse>;
16
- /**
17
- * Remove a tenant from a group.
18
- *
19
- * RLS: Filtered to current client (ClientRLSDB).
20
- *
21
- * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
22
- * tenant is not a member of the group (404)
23
- */
24
- remove(tenantID: string, params: TenantRemoveParams, options?: RequestOptions): APIPromise<void>;
25
- }
26
- /**
27
- * Response model for add tenants operation.
28
- */
29
- export interface TenantAddResponse {
30
- /**
31
- * Tenant IDs that were successfully added
32
- */
33
- added: Array<string>;
34
- /**
35
- * Tenant IDs that were already members
36
- */
37
- already_in_group: Array<string>;
38
- /**
39
- * Tenant IDs that don't exist
40
- */
41
- not_found: Array<string>;
42
- }
43
- export interface TenantAddParams {
44
- /**
45
- * List of tenant IDs to add to the group
46
- */
47
- tenant_ids: Array<string>;
48
- }
49
- export interface TenantRemoveParams {
50
- group_id: string;
51
- }
52
- export declare namespace Tenants {
53
- export { type TenantAddResponse as TenantAddResponse, type TenantAddParams as TenantAddParams, type TenantRemoveParams as TenantRemoveParams, };
54
- }
55
- //# sourceMappingURL=tenants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIpG;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOjG;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,39 +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.Tenants = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const headers_1 = require("../../../internal/headers.js");
7
- const path_1 = require("../../../internal/utils/path.js");
8
- class Tenants extends resource_1.APIResource {
9
- /**
10
- * Add tenants to a group.
11
- *
12
- * Accepts a list of tenant IDs. Returns detailed results showing which tenants
13
- * were added, which were already members, and which don't exist.
14
- *
15
- * RLS: Filtered to current client (ClientRLSDB).
16
- *
17
- * Raises: GroupNotFoundError: If group doesn't exist (404)
18
- */
19
- add(groupID, body, options) {
20
- return this._client.post((0, path_1.path) `/api/v1/groups/${groupID}/tenants`, { body, ...options });
21
- }
22
- /**
23
- * Remove a tenant from a group.
24
- *
25
- * RLS: Filtered to current client (ClientRLSDB).
26
- *
27
- * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
28
- * tenant is not a member of the group (404)
29
- */
30
- remove(tenantID, params, options) {
31
- const { group_id } = params;
32
- return this._client.delete((0, path_1.path) `/api/v1/groups/${group_id}/tenants/${tenantID}`, {
33
- ...options,
34
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
35
- });
36
- }
37
- }
38
- exports.Tenants = Tenants;
39
- //# sourceMappingURL=tenants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAe,EAAE,IAAqB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,QAAQ,YAAY,QAAQ,EAAE,EAAE;YAC/E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,0BA8BC"}
@@ -1,35 +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 { buildHeaders } from "../../../internal/headers.mjs";
4
- import { path } from "../../../internal/utils/path.mjs";
5
- export class Tenants extends APIResource {
6
- /**
7
- * Add tenants to a group.
8
- *
9
- * Accepts a list of tenant IDs. Returns detailed results showing which tenants
10
- * were added, which were already members, and which don't exist.
11
- *
12
- * RLS: Filtered to current client (ClientRLSDB).
13
- *
14
- * Raises: GroupNotFoundError: If group doesn't exist (404)
15
- */
16
- add(groupID, body, options) {
17
- return this._client.post(path `/api/v1/groups/${groupID}/tenants`, { body, ...options });
18
- }
19
- /**
20
- * Remove a tenant from a group.
21
- *
22
- * RLS: Filtered to current client (ClientRLSDB).
23
- *
24
- * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
25
- * tenant is not a member of the group (404)
26
- */
27
- remove(tenantID, params, options) {
28
- const { group_id } = params;
29
- return this._client.delete(path `/api/v1/groups/${group_id}/tenants/${tenantID}`, {
30
- ...options,
31
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
32
- });
33
- }
34
- }
35
- //# sourceMappingURL=tenants.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tenants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAe,EAAE,IAAqB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,QAAQ,YAAY,QAAQ,EAAE,EAAE;YAC/E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./groups/index.mjs";
2
- //# sourceMappingURL=groups.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./groups/index.js";
2
- //# sourceMappingURL=groups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":""}
@@ -1,6 +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
- const tslib_1 = require("../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./groups/index.js"), exports);
6
- //# sourceMappingURL=groups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./groups/index.mjs";
3
- //# sourceMappingURL=groups.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF"}