@katerai/sdk 0.6.0 → 0.7.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 +23 -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/connections.d.mts +216 -1
  27. package/resources/v1/connections.d.mts.map +1 -1
  28. package/resources/v1/connections.d.ts +216 -1
  29. package/resources/v1/connections.d.ts.map +1 -1
  30. package/resources/v1/connections.js +22 -2
  31. package/resources/v1/connections.js.map +1 -1
  32. package/resources/v1/connections.mjs +20 -1
  33. package/resources/v1/connections.mjs.map +1 -1
  34. package/resources/v1/index.d.mts +2 -6
  35. package/resources/v1/index.d.mts.map +1 -1
  36. package/resources/v1/index.d.ts +2 -6
  37. package/resources/v1/index.d.ts.map +1 -1
  38. package/resources/v1/index.js +5 -13
  39. package/resources/v1/index.js.map +1 -1
  40. package/resources/v1/index.mjs +2 -6
  41. package/resources/v1/index.mjs.map +1 -1
  42. package/resources/v1/tenants.d.mts +125 -1
  43. package/resources/v1/tenants.d.mts.map +1 -1
  44. package/resources/v1/tenants.d.ts +125 -1
  45. package/resources/v1/tenants.d.ts.map +1 -1
  46. package/resources/v1/tenants.js +46 -2
  47. package/resources/v1/tenants.js.map +1 -1
  48. package/resources/v1/tenants.mjs +44 -1
  49. package/resources/v1/tenants.mjs.map +1 -1
  50. package/resources/v1/v1.d.mts +6 -22
  51. package/resources/v1/v1.d.mts.map +1 -1
  52. package/resources/v1/v1.d.ts +6 -22
  53. package/resources/v1/v1.d.ts.map +1 -1
  54. package/resources/v1/v1.js +4 -20
  55. package/resources/v1/v1.js.map +1 -1
  56. package/resources/v1/v1.mjs +4 -20
  57. package/resources/v1/v1.mjs.map +1 -1
  58. package/src/client.ts +48 -23
  59. package/src/internal/utils/log.ts +1 -0
  60. package/src/resources/index.ts +0 -2
  61. package/src/resources/v1/connections.ts +277 -1
  62. package/src/resources/v1/index.ts +7 -44
  63. package/src/resources/v1/tenants.ts +162 -1
  64. package/src/resources/v1/v1.ts +14 -104
  65. package/src/version.ts +1 -1
  66. package/version.d.mts +1 -1
  67. package/version.d.ts +1 -1
  68. package/version.js +1 -1
  69. package/version.mjs +1 -1
  70. package/resources/healthz.d.mts +0 -16
  71. package/resources/healthz.d.mts.map +0 -1
  72. package/resources/healthz.d.ts +0 -16
  73. package/resources/healthz.d.ts.map +0 -1
  74. package/resources/healthz.js +0 -15
  75. package/resources/healthz.js.map +0 -1
  76. package/resources/healthz.mjs +0 -11
  77. package/resources/healthz.mjs.map +0 -1
  78. package/resources/readyz.d.mts +0 -16
  79. package/resources/readyz.d.mts.map +0 -1
  80. package/resources/readyz.d.ts +0 -16
  81. package/resources/readyz.d.ts.map +0 -1
  82. package/resources/readyz.js +0 -15
  83. package/resources/readyz.js.map +0 -1
  84. package/resources/readyz.mjs +0 -11
  85. package/resources/readyz.mjs.map +0 -1
  86. package/resources/v1/connections/connections.d.mts +0 -1470
  87. package/resources/v1/connections/connections.d.mts.map +0 -1
  88. package/resources/v1/connections/connections.d.ts +0 -1470
  89. package/resources/v1/connections/connections.d.ts.map +0 -1
  90. package/resources/v1/connections/connections.js +0 -163
  91. package/resources/v1/connections/connections.js.map +0 -1
  92. package/resources/v1/connections/connections.mjs +0 -158
  93. package/resources/v1/connections/connections.mjs.map +0 -1
  94. package/resources/v1/connections/databases.d.mts +0 -25
  95. package/resources/v1/connections/databases.d.mts.map +0 -1
  96. package/resources/v1/connections/databases.d.ts +0 -25
  97. package/resources/v1/connections/databases.d.ts.map +0 -1
  98. package/resources/v1/connections/databases.js +0 -26
  99. package/resources/v1/connections/databases.js.map +0 -1
  100. package/resources/v1/connections/databases.mjs +0 -22
  101. package/resources/v1/connections/databases.mjs.map +0 -1
  102. package/resources/v1/connections/index.d.mts +0 -5
  103. package/resources/v1/connections/index.d.mts.map +0 -1
  104. package/resources/v1/connections/index.d.ts +0 -5
  105. package/resources/v1/connections/index.d.ts.map +0 -1
  106. package/resources/v1/connections/index.js +0 -13
  107. package/resources/v1/connections/index.js.map +0 -1
  108. package/resources/v1/connections/index.mjs +0 -6
  109. package/resources/v1/connections/index.mjs.map +0 -1
  110. package/resources/v1/connections/views.d.mts +0 -77
  111. package/resources/v1/connections/views.d.mts.map +0 -1
  112. package/resources/v1/connections/views.d.ts +0 -77
  113. package/resources/v1/connections/views.d.ts.map +0 -1
  114. package/resources/v1/connections/views.js +0 -24
  115. package/resources/v1/connections/views.js.map +0 -1
  116. package/resources/v1/connections/views.mjs +0 -20
  117. package/resources/v1/connections/views.mjs.map +0 -1
  118. package/resources/v1/connections/yaml.d.mts +0 -57
  119. package/resources/v1/connections/yaml.d.mts.map +0 -1
  120. package/resources/v1/connections/yaml.d.ts +0 -57
  121. package/resources/v1/connections/yaml.d.ts.map +0 -1
  122. package/resources/v1/connections/yaml.js +0 -22
  123. package/resources/v1/connections/yaml.js.map +0 -1
  124. package/resources/v1/connections/yaml.mjs +0 -18
  125. package/resources/v1/connections/yaml.mjs.map +0 -1
  126. package/resources/v1/github/github.d.mts +0 -99
  127. package/resources/v1/github/github.d.mts.map +0 -1
  128. package/resources/v1/github/github.d.ts +0 -99
  129. package/resources/v1/github/github.d.ts.map +0 -1
  130. package/resources/v1/github/github.js +0 -49
  131. package/resources/v1/github/github.js.map +0 -1
  132. package/resources/v1/github/github.mjs +0 -44
  133. package/resources/v1/github/github.mjs.map +0 -1
  134. package/resources/v1/github/index.d.mts +0 -5
  135. package/resources/v1/github/index.d.mts.map +0 -1
  136. package/resources/v1/github/index.d.ts +0 -5
  137. package/resources/v1/github/index.d.ts.map +0 -1
  138. package/resources/v1/github/index.js +0 -13
  139. package/resources/v1/github/index.js.map +0 -1
  140. package/resources/v1/github/index.mjs +0 -6
  141. package/resources/v1/github/index.mjs.map +0 -1
  142. package/resources/v1/github/repos.d.mts +0 -54
  143. package/resources/v1/github/repos.d.mts.map +0 -1
  144. package/resources/v1/github/repos.d.ts +0 -54
  145. package/resources/v1/github/repos.d.ts.map +0 -1
  146. package/resources/v1/github/repos.js +0 -22
  147. package/resources/v1/github/repos.js.map +0 -1
  148. package/resources/v1/github/repos.mjs +0 -18
  149. package/resources/v1/github/repos.mjs.map +0 -1
  150. package/resources/v1/github/scaffold.d.mts +0 -29
  151. package/resources/v1/github/scaffold.d.mts.map +0 -1
  152. package/resources/v1/github/scaffold.d.ts +0 -29
  153. package/resources/v1/github/scaffold.d.ts.map +0 -1
  154. package/resources/v1/github/scaffold.js +0 -21
  155. package/resources/v1/github/scaffold.js.map +0 -1
  156. package/resources/v1/github/scaffold.mjs +0 -17
  157. package/resources/v1/github/scaffold.mjs.map +0 -1
  158. package/resources/v1/github/webhooks.d.mts +0 -28
  159. package/resources/v1/github/webhooks.d.mts.map +0 -1
  160. package/resources/v1/github/webhooks.d.ts +0 -28
  161. package/resources/v1/github/webhooks.d.ts.map +0 -1
  162. package/resources/v1/github/webhooks.js +0 -27
  163. package/resources/v1/github/webhooks.js.map +0 -1
  164. package/resources/v1/github/webhooks.mjs +0 -23
  165. package/resources/v1/github/webhooks.mjs.map +0 -1
  166. package/resources/v1/github.d.mts +0 -2
  167. package/resources/v1/github.d.mts.map +0 -1
  168. package/resources/v1/github.d.ts +0 -2
  169. package/resources/v1/github.d.ts.map +0 -1
  170. package/resources/v1/github.js +0 -6
  171. package/resources/v1/github.js.map +0 -1
  172. package/resources/v1/github.mjs +0 -3
  173. package/resources/v1/github.mjs.map +0 -1
  174. package/resources/v1/groups/groups.d.mts +0 -162
  175. package/resources/v1/groups/groups.d.mts.map +0 -1
  176. package/resources/v1/groups/groups.d.ts +0 -162
  177. package/resources/v1/groups/groups.d.ts.map +0 -1
  178. package/resources/v1/groups/groups.js +0 -81
  179. package/resources/v1/groups/groups.js.map +0 -1
  180. package/resources/v1/groups/groups.mjs +0 -76
  181. package/resources/v1/groups/groups.mjs.map +0 -1
  182. package/resources/v1/groups/index.d.mts +0 -3
  183. package/resources/v1/groups/index.d.mts.map +0 -1
  184. package/resources/v1/groups/index.d.ts +0 -3
  185. package/resources/v1/groups/index.d.ts.map +0 -1
  186. package/resources/v1/groups/index.js +0 -9
  187. package/resources/v1/groups/index.js.map +0 -1
  188. package/resources/v1/groups/index.mjs +0 -4
  189. package/resources/v1/groups/index.mjs.map +0 -1
  190. package/resources/v1/groups/tenants.d.mts +0 -55
  191. package/resources/v1/groups/tenants.d.mts.map +0 -1
  192. package/resources/v1/groups/tenants.d.ts +0 -55
  193. package/resources/v1/groups/tenants.d.ts.map +0 -1
  194. package/resources/v1/groups/tenants.js +0 -39
  195. package/resources/v1/groups/tenants.js.map +0 -1
  196. package/resources/v1/groups/tenants.mjs +0 -35
  197. package/resources/v1/groups/tenants.mjs.map +0 -1
  198. package/resources/v1/groups.d.mts +0 -2
  199. package/resources/v1/groups.d.mts.map +0 -1
  200. package/resources/v1/groups.d.ts +0 -2
  201. package/resources/v1/groups.d.ts.map +0 -1
  202. package/resources/v1/groups.js +0 -6
  203. package/resources/v1/groups.js.map +0 -1
  204. package/resources/v1/groups.mjs +0 -3
  205. package/resources/v1/groups.mjs.map +0 -1
  206. package/resources/v1/me.d.mts +0 -43
  207. package/resources/v1/me.d.mts.map +0 -1
  208. package/resources/v1/me.d.ts +0 -43
  209. package/resources/v1/me.d.ts.map +0 -1
  210. package/resources/v1/me.js +0 -20
  211. package/resources/v1/me.js.map +0 -1
  212. package/resources/v1/me.mjs +0 -16
  213. package/resources/v1/me.mjs.map +0 -1
  214. package/resources/v1/org/client.d.mts +0 -53
  215. package/resources/v1/org/client.d.mts.map +0 -1
  216. package/resources/v1/org/client.d.ts +0 -53
  217. package/resources/v1/org/client.d.ts.map +0 -1
  218. package/resources/v1/org/client.js +0 -25
  219. package/resources/v1/org/client.js.map +0 -1
  220. package/resources/v1/org/client.mjs +0 -21
  221. package/resources/v1/org/client.mjs.map +0 -1
  222. package/resources/v1/org/index.d.mts +0 -4
  223. package/resources/v1/org/index.d.mts.map +0 -1
  224. package/resources/v1/org/index.d.ts +0 -4
  225. package/resources/v1/org/index.d.ts.map +0 -1
  226. package/resources/v1/org/index.js +0 -11
  227. package/resources/v1/org/index.js.map +0 -1
  228. package/resources/v1/org/index.mjs +0 -5
  229. package/resources/v1/org/index.mjs.map +0 -1
  230. package/resources/v1/org/org.d.mts +0 -14
  231. package/resources/v1/org/org.d.mts.map +0 -1
  232. package/resources/v1/org/org.d.ts +0 -14
  233. package/resources/v1/org/org.d.ts.map +0 -1
  234. package/resources/v1/org/org.js +0 -21
  235. package/resources/v1/org/org.js.map +0 -1
  236. package/resources/v1/org/org.mjs +0 -16
  237. package/resources/v1/org/org.mjs.map +0 -1
  238. package/resources/v1/org/users.d.mts +0 -87
  239. package/resources/v1/org/users.d.mts.map +0 -1
  240. package/resources/v1/org/users.d.ts +0 -87
  241. package/resources/v1/org/users.d.ts.map +0 -1
  242. package/resources/v1/org/users.js +0 -60
  243. package/resources/v1/org/users.js.map +0 -1
  244. package/resources/v1/org/users.mjs +0 -56
  245. package/resources/v1/org/users.mjs.map +0 -1
  246. package/resources/v1/org.d.mts +0 -2
  247. package/resources/v1/org.d.mts.map +0 -1
  248. package/resources/v1/org.d.ts +0 -2
  249. package/resources/v1/org.d.ts.map +0 -1
  250. package/resources/v1/org.js +0 -6
  251. package/resources/v1/org.js.map +0 -1
  252. package/resources/v1/org.mjs +0 -3
  253. package/resources/v1/org.mjs.map +0 -1
  254. package/resources/v1/tenants/batch.d.mts +0 -159
  255. package/resources/v1/tenants/batch.d.mts.map +0 -1
  256. package/resources/v1/tenants/batch.d.ts +0 -159
  257. package/resources/v1/tenants/batch.d.ts.map +0 -1
  258. package/resources/v1/tenants/batch.js +0 -42
  259. package/resources/v1/tenants/batch.js.map +0 -1
  260. package/resources/v1/tenants/batch.mjs +0 -38
  261. package/resources/v1/tenants/batch.mjs.map +0 -1
  262. package/resources/v1/tenants/groups.d.mts +0 -43
  263. package/resources/v1/tenants/groups.d.mts.map +0 -1
  264. package/resources/v1/tenants/groups.d.ts +0 -43
  265. package/resources/v1/tenants/groups.d.ts.map +0 -1
  266. package/resources/v1/tenants/groups.js +0 -20
  267. package/resources/v1/tenants/groups.js.map +0 -1
  268. package/resources/v1/tenants/groups.mjs +0 -16
  269. package/resources/v1/tenants/groups.mjs.map +0 -1
  270. package/resources/v1/tenants/import.d.mts +0 -126
  271. package/resources/v1/tenants/import.d.mts.map +0 -1
  272. package/resources/v1/tenants/import.d.ts +0 -126
  273. package/resources/v1/tenants/import.d.ts.map +0 -1
  274. package/resources/v1/tenants/import.js +0 -50
  275. package/resources/v1/tenants/import.js.map +0 -1
  276. package/resources/v1/tenants/import.mjs +0 -46
  277. package/resources/v1/tenants/import.mjs.map +0 -1
  278. package/resources/v1/tenants/index.d.mts +0 -5
  279. package/resources/v1/tenants/index.d.mts.map +0 -1
  280. package/resources/v1/tenants/index.d.ts +0 -5
  281. package/resources/v1/tenants/index.d.ts.map +0 -1
  282. package/resources/v1/tenants/index.js +0 -13
  283. package/resources/v1/tenants/index.js.map +0 -1
  284. package/resources/v1/tenants/index.mjs +0 -6
  285. package/resources/v1/tenants/index.mjs.map +0 -1
  286. package/resources/v1/tenants/tenants.d.mts +0 -248
  287. package/resources/v1/tenants/tenants.d.mts.map +0 -1
  288. package/resources/v1/tenants/tenants.d.ts +0 -248
  289. package/resources/v1/tenants/tenants.d.ts.map +0 -1
  290. package/resources/v1/tenants/tenants.js +0 -113
  291. package/resources/v1/tenants/tenants.js.map +0 -1
  292. package/resources/v1/tenants/tenants.mjs +0 -108
  293. package/resources/v1/tenants/tenants.mjs.map +0 -1
  294. package/src/resources/healthz.ts +0 -20
  295. package/src/resources/readyz.ts +0 -20
  296. package/src/resources/v1/connections/connections.ts +0 -1905
  297. package/src/resources/v1/connections/databases.ts +0 -42
  298. package/src/resources/v1/connections/index.ts +0 -33
  299. package/src/resources/v1/connections/views.ts +0 -112
  300. package/src/resources/v1/connections/yaml.ts +0 -81
  301. package/src/resources/v1/github/github.ts +0 -165
  302. package/src/resources/v1/github/index.ts +0 -20
  303. package/src/resources/v1/github/repos.ts +0 -85
  304. package/src/resources/v1/github/scaffold.ts +0 -44
  305. package/src/resources/v1/github/webhooks.ts +0 -60
  306. package/src/resources/v1/github.ts +0 -3
  307. package/src/resources/v1/groups/groups.ts +0 -218
  308. package/src/resources/v1/groups/index.ts +0 -10
  309. package/src/resources/v1/groups/tenants.ts +0 -78
  310. package/src/resources/v1/groups.ts +0 -3
  311. package/src/resources/v1/me.ts +0 -62
  312. package/src/resources/v1/org/client.ts +0 -81
  313. package/src/resources/v1/org/index.ts +0 -11
  314. package/src/resources/v1/org/org.ts +0 -32
  315. package/src/resources/v1/org/users.ts +0 -127
  316. package/src/resources/v1/org.ts +0 -3
  317. package/src/resources/v1/tenants/batch.ts +0 -200
  318. package/src/resources/v1/tenants/groups.ts +0 -52
  319. package/src/resources/v1/tenants/import.ts +0 -158
  320. package/src/resources/v1/tenants/index.ts +0 -29
  321. package/src/resources/v1/tenants/tenants.ts +0 -344
@@ -1,13 +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.Webhooks = exports.Scaffold = exports.Repos = exports.GitHub = void 0;
5
- var github_1 = require("./github.js");
6
- Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () { return github_1.GitHub; } });
7
- var repos_1 = require("./repos.js");
8
- Object.defineProperty(exports, "Repos", { enumerable: true, get: function () { return repos_1.Repos; } });
9
- var scaffold_1 = require("./scaffold.js");
10
- Object.defineProperty(exports, "Scaffold", { enumerable: true, get: function () { return scaffold_1.Scaffold; } });
11
- var webhooks_1 = require("./webhooks.js");
12
- Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,0CAA4D;AAAnD,oGAAA,QAAQ,OAAA;AACjB,0CAA8F;AAArF,oGAAA,QAAQ,OAAA"}
@@ -1,6 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { GitHub, } from "./github.mjs";
3
- export { Repos, } from "./repos.mjs";
4
- export { Scaffold } from "./scaffold.mjs";
5
- export { Webhooks } from "./webhooks.mjs";
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAOP;OACM,EACL,KAAK,GAKN;OACM,EAAE,QAAQ,EAAwB;OAClC,EAAE,QAAQ,EAA0D"}
@@ -1,54 +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 Repos extends APIResource {
5
- /**
6
- * List repositories accessible to the GitHub App installation.
7
- */
8
- list(options?: RequestOptions): APIPromise<RepoListResponse>;
9
- /**
10
- * Select a repository for the Kater workspace.
11
- */
12
- select(repoID: number, body: RepoSelectParams, options?: RequestOptions): APIPromise<RepoSelectResponse>;
13
- }
14
- /**
15
- * Repository information response.
16
- */
17
- export interface Repository {
18
- id: number;
19
- default_branch: string;
20
- full_name: string;
21
- has_kater_structure: boolean;
22
- html_url: string;
23
- is_empty: boolean;
24
- name: string;
25
- owner: string;
26
- private: boolean;
27
- }
28
- /**
29
- * List of repositories response.
30
- */
31
- export interface RepoListResponse {
32
- repositories: Array<Repository>;
33
- total_count: number;
34
- }
35
- /**
36
- * Repository selection response.
37
- */
38
- export interface RepoSelectResponse {
39
- has_existing_structure: boolean;
40
- message: string;
41
- needs_scaffolding: boolean;
42
- /**
43
- * Repository information response.
44
- */
45
- repository: Repository;
46
- success: boolean;
47
- }
48
- export interface RepoSelectParams {
49
- use_existing_structure?: boolean;
50
- }
51
- export declare namespace Repos {
52
- export { type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
53
- }
54
- //# sourceMappingURL=repos.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repos.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;IAElB,mBAAmB,EAAE,OAAO,CAAC;IAE7B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,OAAO,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAEhC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB,EAAE,OAAO,CAAC;IAEhC,OAAO,EAAE,MAAM,CAAC;IAEhB,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,54 +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 Repos extends APIResource {
5
- /**
6
- * List repositories accessible to the GitHub App installation.
7
- */
8
- list(options?: RequestOptions): APIPromise<RepoListResponse>;
9
- /**
10
- * Select a repository for the Kater workspace.
11
- */
12
- select(repoID: number, body: RepoSelectParams, options?: RequestOptions): APIPromise<RepoSelectResponse>;
13
- }
14
- /**
15
- * Repository information response.
16
- */
17
- export interface Repository {
18
- id: number;
19
- default_branch: string;
20
- full_name: string;
21
- has_kater_structure: boolean;
22
- html_url: string;
23
- is_empty: boolean;
24
- name: string;
25
- owner: string;
26
- private: boolean;
27
- }
28
- /**
29
- * List of repositories response.
30
- */
31
- export interface RepoListResponse {
32
- repositories: Array<Repository>;
33
- total_count: number;
34
- }
35
- /**
36
- * Repository selection response.
37
- */
38
- export interface RepoSelectResponse {
39
- has_existing_structure: boolean;
40
- message: string;
41
- needs_scaffolding: boolean;
42
- /**
43
- * Repository information response.
44
- */
45
- repository: Repository;
46
- success: boolean;
47
- }
48
- export interface RepoSelectParams {
49
- use_existing_structure?: boolean;
50
- }
51
- export declare namespace Repos {
52
- export { type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
53
- }
54
- //# sourceMappingURL=repos.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repos.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;IAElB,mBAAmB,EAAE,OAAO,CAAC;IAE7B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,OAAO,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAEhC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB,EAAE,OAAO,CAAC;IAEhC,OAAO,EAAE,MAAM,CAAC;IAEhB,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,22 +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.Repos = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const path_1 = require("../../../internal/utils/path.js");
7
- class Repos extends resource_1.APIResource {
8
- /**
9
- * List repositories accessible to the GitHub App installation.
10
- */
11
- list(options) {
12
- return this._client.get('/api/v1/github/repos', options);
13
- }
14
- /**
15
- * Select a repository for the Kater workspace.
16
- */
17
- select(repoID, body, options) {
18
- return this._client.post((0, path_1.path) `/api/v1/github/repos/${repoID}/select`, { body, ...options });
19
- }
20
- }
21
- exports.Repos = Repos;
22
- //# sourceMappingURL=repos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repos.js","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAdD,sBAcC"}
@@ -1,18 +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 { path } from "../../../internal/utils/path.mjs";
4
- export class Repos extends APIResource {
5
- /**
6
- * List repositories accessible to the GitHub App installation.
7
- */
8
- list(options) {
9
- return this._client.get('/api/v1/github/repos', options);
10
- }
11
- /**
12
- * Select a repository for the Kater workspace.
13
- */
14
- select(repoID, body, options) {
15
- return this._client.post(path `/api/v1/github/repos/${repoID}/select`, { body, ...options });
16
- }
17
- }
18
- //# sourceMappingURL=repos.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repos.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
@@ -1,29 +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 Scaffold extends APIResource {
5
- /**
6
- * Clean up partial state and retry scaffolding from scratch.
7
- */
8
- retry(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
9
- /**
10
- * Create the Kater folder structure and PR in the selected repository.
11
- */
12
- trigger(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
13
- }
14
- /**
15
- * Response from triggering scaffolding.
16
- */
17
- export interface ScaffoldTrigger {
18
- message: string;
19
- status: string;
20
- success: boolean;
21
- branch?: string | null;
22
- error?: string | null;
23
- pr_number?: number | null;
24
- pr_url?: string | null;
25
- }
26
- export declare namespace Scaffold {
27
- export { type ScaffoldTrigger as ScaffoldTrigger };
28
- }
29
- //# sourceMappingURL=scaffold.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scaffold.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5D;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -1,29 +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 Scaffold extends APIResource {
5
- /**
6
- * Clean up partial state and retry scaffolding from scratch.
7
- */
8
- retry(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
9
- /**
10
- * Create the Kater folder structure and PR in the selected repository.
11
- */
12
- trigger(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
13
- }
14
- /**
15
- * Response from triggering scaffolding.
16
- */
17
- export interface ScaffoldTrigger {
18
- message: string;
19
- status: string;
20
- success: boolean;
21
- branch?: string | null;
22
- error?: string | null;
23
- pr_number?: number | null;
24
- pr_url?: string | null;
25
- }
26
- export declare namespace Scaffold {
27
- export { type ScaffoldTrigger as ScaffoldTrigger };
28
- }
29
- //# sourceMappingURL=scaffold.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5D;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -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.Scaffold = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- class Scaffold extends resource_1.APIResource {
7
- /**
8
- * Clean up partial state and retry scaffolding from scratch.
9
- */
10
- retry(options) {
11
- return this._client.post('/api/v1/github/scaffold/retry', options);
12
- }
13
- /**
14
- * Create the Kater folder structure and PR in the selected repository.
15
- */
16
- trigger(options) {
17
- return this._client.post('/api/v1/github/scaffold', options);
18
- }
19
- }
20
- exports.Scaffold = Scaffold;
21
- //# sourceMappingURL=scaffold.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAdD,4BAcC"}
@@ -1,17 +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 Scaffold extends APIResource {
4
- /**
5
- * Clean up partial state and retry scaffolding from scratch.
6
- */
7
- retry(options) {
8
- return this._client.post('/api/v1/github/scaffold/retry', options);
9
- }
10
- /**
11
- * Create the Kater folder structure and PR in the selected repository.
12
- */
13
- trigger(options) {
14
- return this._client.post('/api/v1/github/scaffold', options);
15
- }
16
- }
17
- //# sourceMappingURL=scaffold.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scaffold.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF"}
@@ -1,28 +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 Webhooks extends APIResource {
5
- /**
6
- * Receives and processes webhook events from GitHub.
7
- */
8
- receive(params: WebhookReceiveParams, options?: RequestOptions): APIPromise<WebhookReceiveResponse>;
9
- }
10
- /**
11
- * Response for successful webhook receipt.
12
- */
13
- export interface WebhookReceiveResponse {
14
- delivery_id: string;
15
- event_type: string;
16
- received: boolean;
17
- message?: string | null;
18
- processed?: boolean;
19
- }
20
- export interface WebhookReceiveParams {
21
- 'X-GitHub-Delivery': string;
22
- 'X-GitHub-Event': string;
23
- 'X-Hub-Signature-256': string;
24
- }
25
- export declare namespace Webhooks {
26
- export { type WebhookReceiveResponse as WebhookReceiveResponse, type WebhookReceiveParams as WebhookReceiveParams, };
27
- }
28
- //# sourceMappingURL=webhooks.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAkBpG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,28 +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 Webhooks extends APIResource {
5
- /**
6
- * Receives and processes webhook events from GitHub.
7
- */
8
- receive(params: WebhookReceiveParams, options?: RequestOptions): APIPromise<WebhookReceiveResponse>;
9
- }
10
- /**
11
- * Response for successful webhook receipt.
12
- */
13
- export interface WebhookReceiveResponse {
14
- delivery_id: string;
15
- event_type: string;
16
- received: boolean;
17
- message?: string | null;
18
- processed?: boolean;
19
- }
20
- export interface WebhookReceiveParams {
21
- 'X-GitHub-Delivery': string;
22
- 'X-GitHub-Event': string;
23
- 'X-Hub-Signature-256': string;
24
- }
25
- export declare namespace Webhooks {
26
- export { type WebhookReceiveResponse as WebhookReceiveResponse, type WebhookReceiveParams as WebhookReceiveParams, };
27
- }
28
- //# sourceMappingURL=webhooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAkBpG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,27 +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.Webhooks = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const headers_1 = require("../../../internal/headers.js");
7
- class Webhooks extends resource_1.APIResource {
8
- /**
9
- * Receives and processes webhook events from GitHub.
10
- */
11
- receive(params, options) {
12
- const { 'X-GitHub-Delivery': xGitHubDelivery, 'X-GitHub-Event': xGitHubEvent, 'X-Hub-Signature-256': xHubSignature256, } = params;
13
- return this._client.post('/api/v1/github/webhooks/receiver', {
14
- ...options,
15
- headers: (0, headers_1.buildHeaders)([
16
- {
17
- 'X-GitHub-Delivery': xGitHubDelivery,
18
- 'X-GitHub-Event': xGitHubEvent,
19
- 'X-Hub-Signature-256': xHubSignature256,
20
- },
21
- options?.headers,
22
- ]),
23
- });
24
- }
25
- }
26
- exports.Webhooks = Webhooks;
27
- //# sourceMappingURL=webhooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,OAAO,CAAC,MAA4B,EAAE,OAAwB;QAC5D,MAAM,EACJ,mBAAmB,EAAE,eAAe,EACpC,gBAAgB,EAAE,YAAY,EAC9B,qBAAqB,EAAE,gBAAgB,GACxC,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,mBAAmB,EAAE,eAAe;oBACpC,gBAAgB,EAAE,YAAY;oBAC9B,qBAAqB,EAAE,gBAAgB;iBACxC;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAtBD,4BAsBC"}
@@ -1,23 +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
- export class Webhooks extends APIResource {
5
- /**
6
- * Receives and processes webhook events from GitHub.
7
- */
8
- receive(params, options) {
9
- const { 'X-GitHub-Delivery': xGitHubDelivery, 'X-GitHub-Event': xGitHubEvent, 'X-Hub-Signature-256': xHubSignature256, } = params;
10
- return this._client.post('/api/v1/github/webhooks/receiver', {
11
- ...options,
12
- headers: buildHeaders([
13
- {
14
- 'X-GitHub-Delivery': xGitHubDelivery,
15
- 'X-GitHub-Event': xGitHubEvent,
16
- 'X-Hub-Signature-256': xHubSignature256,
17
- },
18
- options?.headers,
19
- ]),
20
- });
21
- }
22
- }
23
- //# sourceMappingURL=webhooks.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,OAAO,CAAC,MAA4B,EAAE,OAAwB;QAC5D,MAAM,EACJ,mBAAmB,EAAE,eAAe,EACpC,gBAAgB,EAAE,YAAY,EAC9B,qBAAqB,EAAE,gBAAgB,GACxC,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,mBAAmB,EAAE,eAAe;oBACpC,gBAAgB,EAAE,YAAY;oBAC9B,qBAAqB,EAAE,gBAAgB;iBACxC;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./github/index.mjs";
2
- //# sourceMappingURL=github.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"github.d.mts","sourceRoot":"","sources":["../../src/resources/v1/github.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./github/index.js";
2
- //# sourceMappingURL=github.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/resources/v1/github.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("./github/index.js"), exports);
6
- //# sourceMappingURL=github.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"github.js","sourceRoot":"","sources":["../../src/resources/v1/github.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 "./github/index.mjs";
3
- //# sourceMappingURL=github.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"github.mjs","sourceRoot":"","sources":["../../src/resources/v1/github.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,162 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as TenantsAPI from "./tenants.mjs";
3
- import { TenantAddParams, TenantAddResponse, TenantRemoveParams, Tenants } from "./tenants.mjs";
4
- import { APIPromise } from "../../../core/api-promise.mjs";
5
- import { RequestOptions } from "../../../internal/request-options.mjs";
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.mts.map