casedev 0.54.0 → 0.56.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 (199) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent/agent.d.mts +0 -4
  12. package/resources/agent/agent.d.mts.map +1 -1
  13. package/resources/agent/agent.d.ts +0 -4
  14. package/resources/agent/agent.d.ts.map +1 -1
  15. package/resources/agent/agent.js +0 -4
  16. package/resources/agent/agent.js.map +1 -1
  17. package/resources/agent/agent.mjs +0 -4
  18. package/resources/agent/agent.mjs.map +1 -1
  19. package/resources/agent/index.d.mts +0 -1
  20. package/resources/agent/index.d.mts.map +1 -1
  21. package/resources/agent/index.d.ts +0 -1
  22. package/resources/agent/index.d.ts.map +1 -1
  23. package/resources/agent/index.js +1 -3
  24. package/resources/agent/index.js.map +1 -1
  25. package/resources/agent/index.mjs +0 -1
  26. package/resources/agent/index.mjs.map +1 -1
  27. package/resources/index.d.mts +1 -0
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +1 -0
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +3 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +1 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/webhooks/index.d.mts +3 -0
  36. package/resources/webhooks/index.d.mts.map +1 -0
  37. package/resources/webhooks/index.d.ts +3 -0
  38. package/resources/webhooks/index.d.ts.map +1 -0
  39. package/resources/webhooks/index.js +9 -0
  40. package/resources/webhooks/index.js.map +1 -0
  41. package/resources/webhooks/index.mjs +4 -0
  42. package/resources/webhooks/index.mjs.map +1 -0
  43. package/resources/webhooks/v1/deliveries.d.mts +42 -0
  44. package/resources/webhooks/v1/deliveries.d.mts.map +1 -0
  45. package/resources/webhooks/v1/deliveries.d.ts +42 -0
  46. package/resources/webhooks/v1/deliveries.d.ts.map +1 -0
  47. package/resources/webhooks/v1/deliveries.js +48 -0
  48. package/resources/webhooks/v1/deliveries.js.map +1 -0
  49. package/resources/webhooks/v1/deliveries.mjs +44 -0
  50. package/resources/webhooks/v1/deliveries.mjs.map +1 -0
  51. package/resources/webhooks/v1/endpoints.d.mts +121 -0
  52. package/resources/webhooks/v1/endpoints.d.mts.map +1 -0
  53. package/resources/webhooks/v1/endpoints.d.ts +121 -0
  54. package/resources/webhooks/v1/endpoints.d.ts.map +1 -0
  55. package/resources/webhooks/v1/endpoints.js +96 -0
  56. package/resources/webhooks/v1/endpoints.js.map +1 -0
  57. package/resources/webhooks/v1/endpoints.mjs +92 -0
  58. package/resources/webhooks/v1/endpoints.mjs.map +1 -0
  59. package/resources/webhooks/v1/event-types.d.mts +15 -0
  60. package/resources/webhooks/v1/event-types.d.mts.map +1 -0
  61. package/resources/webhooks/v1/event-types.d.ts +15 -0
  62. package/resources/webhooks/v1/event-types.d.ts.map +1 -0
  63. package/resources/webhooks/v1/event-types.js +24 -0
  64. package/resources/webhooks/v1/event-types.js.map +1 -0
  65. package/resources/webhooks/v1/event-types.mjs +20 -0
  66. package/resources/webhooks/v1/event-types.mjs.map +1 -0
  67. package/resources/webhooks/v1/index.d.mts +5 -0
  68. package/resources/webhooks/v1/index.d.mts.map +1 -0
  69. package/resources/webhooks/v1/index.d.ts +5 -0
  70. package/resources/webhooks/v1/index.d.ts.map +1 -0
  71. package/resources/webhooks/v1/index.js +13 -0
  72. package/resources/webhooks/v1/index.js.map +1 -0
  73. package/resources/webhooks/v1/index.mjs +6 -0
  74. package/resources/webhooks/v1/index.mjs.map +1 -0
  75. package/resources/webhooks/v1/v1.d.mts +18 -0
  76. package/resources/webhooks/v1/v1.d.mts.map +1 -0
  77. package/resources/webhooks/v1/v1.d.ts +18 -0
  78. package/resources/webhooks/v1/v1.d.ts.map +1 -0
  79. package/resources/webhooks/v1/v1.js +25 -0
  80. package/resources/webhooks/v1/v1.js.map +1 -0
  81. package/resources/webhooks/v1/v1.mjs +20 -0
  82. package/resources/webhooks/v1/v1.mjs.map +1 -0
  83. package/resources/webhooks/v1.d.mts +2 -0
  84. package/resources/webhooks/v1.d.mts.map +1 -0
  85. package/resources/webhooks/v1.d.ts +2 -0
  86. package/resources/webhooks/v1.d.ts.map +1 -0
  87. package/resources/{agent/v2.js → webhooks/v1.js} +2 -2
  88. package/resources/webhooks/v1.js.map +1 -0
  89. package/resources/{agent/v2.mjs → webhooks/v1.mjs} +2 -2
  90. package/resources/webhooks/v1.mjs.map +1 -0
  91. package/resources/webhooks/webhooks.d.mts +10 -0
  92. package/resources/webhooks/webhooks.d.mts.map +1 -0
  93. package/resources/webhooks/webhooks.d.ts +10 -0
  94. package/resources/webhooks/webhooks.d.ts.map +1 -0
  95. package/resources/webhooks/webhooks.js +17 -0
  96. package/resources/webhooks/webhooks.js.map +1 -0
  97. package/resources/webhooks/webhooks.mjs +12 -0
  98. package/resources/webhooks/webhooks.mjs.map +1 -0
  99. package/resources/webhooks.d.mts +2 -0
  100. package/resources/webhooks.d.mts.map +1 -0
  101. package/resources/webhooks.d.ts +2 -0
  102. package/resources/webhooks.d.ts.map +1 -0
  103. package/resources/{agent/v2/chat.js → webhooks.js} +3 -3
  104. package/resources/webhooks.js.map +1 -0
  105. package/resources/webhooks.mjs +3 -0
  106. package/resources/webhooks.mjs.map +1 -0
  107. package/src/client.ts +5 -0
  108. package/src/resources/agent/agent.ts +0 -6
  109. package/src/resources/agent/index.ts +0 -1
  110. package/src/resources/index.ts +1 -0
  111. package/{resources/agent/v2/chat.mjs → src/resources/webhooks/index.ts} +3 -2
  112. package/src/resources/webhooks/v1/deliveries.ts +74 -0
  113. package/src/resources/webhooks/v1/endpoints.ts +204 -0
  114. package/src/resources/webhooks/v1/event-types.ts +23 -0
  115. package/src/resources/webhooks/v1/index.ts +13 -0
  116. package/src/resources/webhooks/v1/v1.ts +45 -0
  117. package/src/resources/{agent/v2.ts → webhooks/v1.ts} +1 -1
  118. package/src/resources/webhooks/webhooks.ts +15 -0
  119. package/src/resources/{agent/v2/chat.ts → webhooks.ts} +1 -1
  120. package/src/version.ts +1 -1
  121. package/version.d.mts +1 -1
  122. package/version.d.ts +1 -1
  123. package/version.js +1 -1
  124. package/version.mjs +1 -1
  125. package/resources/agent/v2/chat/chat.d.mts +0 -196
  126. package/resources/agent/v2/chat/chat.d.mts.map +0 -1
  127. package/resources/agent/v2/chat/chat.d.ts +0 -196
  128. package/resources/agent/v2/chat/chat.d.ts.map +0 -1
  129. package/resources/agent/v2/chat/chat.js +0 -117
  130. package/resources/agent/v2/chat/chat.js.map +0 -1
  131. package/resources/agent/v2/chat/chat.mjs +0 -112
  132. package/resources/agent/v2/chat/chat.mjs.map +0 -1
  133. package/resources/agent/v2/chat/files.d.mts +0 -42
  134. package/resources/agent/v2/chat/files.d.mts.map +0 -1
  135. package/resources/agent/v2/chat/files.d.ts +0 -42
  136. package/resources/agent/v2/chat/files.d.ts.map +0 -1
  137. package/resources/agent/v2/chat/files.js +0 -33
  138. package/resources/agent/v2/chat/files.js.map +0 -1
  139. package/resources/agent/v2/chat/files.mjs +0 -29
  140. package/resources/agent/v2/chat/files.mjs.map +0 -1
  141. package/resources/agent/v2/chat/index.d.mts +0 -3
  142. package/resources/agent/v2/chat/index.d.mts.map +0 -1
  143. package/resources/agent/v2/chat/index.d.ts +0 -3
  144. package/resources/agent/v2/chat/index.d.ts.map +0 -1
  145. package/resources/agent/v2/chat/index.js +0 -9
  146. package/resources/agent/v2/chat/index.js.map +0 -1
  147. package/resources/agent/v2/chat/index.mjs +0 -4
  148. package/resources/agent/v2/chat/index.mjs.map +0 -1
  149. package/resources/agent/v2/chat.d.mts +0 -2
  150. package/resources/agent/v2/chat.d.mts.map +0 -1
  151. package/resources/agent/v2/chat.d.ts +0 -2
  152. package/resources/agent/v2/chat.d.ts.map +0 -1
  153. package/resources/agent/v2/chat.js.map +0 -1
  154. package/resources/agent/v2/chat.mjs.map +0 -1
  155. package/resources/agent/v2/execute.d.mts +0 -58
  156. package/resources/agent/v2/execute.d.mts.map +0 -1
  157. package/resources/agent/v2/execute.d.ts +0 -58
  158. package/resources/agent/v2/execute.d.ts.map +0 -1
  159. package/resources/agent/v2/execute.js +0 -20
  160. package/resources/agent/v2/execute.js.map +0 -1
  161. package/resources/agent/v2/execute.mjs +0 -16
  162. package/resources/agent/v2/execute.mjs.map +0 -1
  163. package/resources/agent/v2/index.d.mts +0 -5
  164. package/resources/agent/v2/index.d.mts.map +0 -1
  165. package/resources/agent/v2/index.d.ts +0 -5
  166. package/resources/agent/v2/index.d.ts.map +0 -1
  167. package/resources/agent/v2/index.js +0 -13
  168. package/resources/agent/v2/index.js.map +0 -1
  169. package/resources/agent/v2/index.mjs +0 -6
  170. package/resources/agent/v2/index.mjs.map +0 -1
  171. package/resources/agent/v2/run.d.mts +0 -73
  172. package/resources/agent/v2/run.d.mts.map +0 -1
  173. package/resources/agent/v2/run.d.ts +0 -73
  174. package/resources/agent/v2/run.d.ts.map +0 -1
  175. package/resources/agent/v2/run.js +0 -51
  176. package/resources/agent/v2/run.js.map +0 -1
  177. package/resources/agent/v2/run.mjs +0 -47
  178. package/resources/agent/v2/run.mjs.map +0 -1
  179. package/resources/agent/v2/v2.d.mts +0 -18
  180. package/resources/agent/v2/v2.d.mts.map +0 -1
  181. package/resources/agent/v2/v2.d.ts +0 -18
  182. package/resources/agent/v2/v2.d.ts.map +0 -1
  183. package/resources/agent/v2/v2.js +0 -25
  184. package/resources/agent/v2/v2.js.map +0 -1
  185. package/resources/agent/v2/v2.mjs +0 -20
  186. package/resources/agent/v2/v2.mjs.map +0 -1
  187. package/resources/agent/v2.d.mts +0 -2
  188. package/resources/agent/v2.d.mts.map +0 -1
  189. package/resources/agent/v2.d.ts +0 -2
  190. package/resources/agent/v2.d.ts.map +0 -1
  191. package/resources/agent/v2.js.map +0 -1
  192. package/resources/agent/v2.mjs.map +0 -1
  193. package/src/resources/agent/v2/chat/chat.ts +0 -314
  194. package/src/resources/agent/v2/chat/files.ts +0 -63
  195. package/src/resources/agent/v2/chat/index.ts +0 -17
  196. package/src/resources/agent/v2/execute.ts +0 -91
  197. package/src/resources/agent/v2/index.ts +0 -28
  198. package/src/resources/agent/v2/run.ts +0 -137
  199. package/src/resources/agent/v2/v2.ts +0 -75
@@ -0,0 +1,92 @@
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
+ /**
6
+ * Webhook endpoint management
7
+ */
8
+ export class Endpoints extends APIResource {
9
+ /**
10
+ * Creates a webhook endpoint that receives platform events matching the supplied
11
+ * event-type filters. Returns the generated signing secret ONCE — the response is
12
+ * the only time it is shown in plaintext.
13
+ */
14
+ create(body, options) {
15
+ return this._client.post('/webhooks/v1/endpoints', {
16
+ body,
17
+ ...options,
18
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
19
+ });
20
+ }
21
+ /**
22
+ * Get webhook endpoint
23
+ */
24
+ retrieve(id, options) {
25
+ return this._client.get(path `/webhooks/v1/endpoints/${id}`, {
26
+ ...options,
27
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
28
+ });
29
+ }
30
+ /**
31
+ * Partially updates a webhook endpoint. Any omitted field is left unchanged.
32
+ * Signing secrets are rotated via the separate /rotate_secret endpoint.
33
+ */
34
+ update(id, body, options) {
35
+ return this._client.patch(path `/webhooks/v1/endpoints/${id}`, {
36
+ body,
37
+ ...options,
38
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
39
+ });
40
+ }
41
+ /**
42
+ * Returns the organization's webhook endpoints, newest first. Signing secrets are
43
+ * never included.
44
+ */
45
+ list(query = {}, options) {
46
+ return this._client.get('/webhooks/v1/endpoints', {
47
+ query,
48
+ ...options,
49
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
50
+ });
51
+ }
52
+ /**
53
+ * Soft-deletes a webhook endpoint. Delivery stops immediately and the endpoint no
54
+ * longer appears in list results. Delivery history is preserved (and can be
55
+ * fetched via GET /deliveries with the endpoint_id filter) so audit trails and
56
+ * post-mortem debugging remain possible.
57
+ */
58
+ delete(id, options) {
59
+ return this._client.delete(path `/webhooks/v1/endpoints/${id}`, {
60
+ ...options,
61
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
62
+ });
63
+ }
64
+ /**
65
+ * Generates a new signing secret for the endpoint. The previous secret remains
66
+ * valid until `previousSecretExpiresInSec` elapses (default 24h, max 30 days).
67
+ * During the grace window deliveries are signed with both secrets so receivers can
68
+ * migrate without downtime. Returns the new secret — this is the only time it is
69
+ * shown in plaintext.
70
+ */
71
+ rotateSecret(id, body = {}, options) {
72
+ return this._client.post(path `/webhooks/v1/endpoints/${id}/rotate_secret`, {
73
+ body,
74
+ ...options,
75
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
76
+ });
77
+ }
78
+ /**
79
+ * Synchronously delivers a synthetic `webhook.test` event to the endpoint and
80
+ * returns the HTTP result. No retries. Useful for validating that a new endpoint
81
+ * is reachable and its signature verifier works. The delivery is not persisted in
82
+ * the delivery history.
83
+ */
84
+ test(id, body = {}, options) {
85
+ return this._client.post(path `/webhooks/v1/endpoints/${id}/test`, {
86
+ body,
87
+ ...options,
88
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
89
+ });
90
+ }
91
+ }
92
+ //# sourceMappingURL=endpoints.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.mjs","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/endpoints.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,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;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,0BAA0B,EAAE,EAAE,EAAE;YAC5D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,QAA+C,EAAE,EAAE,OAAwB;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,0BAA0B,EAAE,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CACV,EAAU,EACV,OAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,EAAE,gBAAgB,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,EAAU,EACV,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,EAAE,OAAO,EAAE;YAChE,IAAI;YACJ,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"}
@@ -0,0 +1,15 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../../internal/request-options.mjs";
4
+ /**
5
+ * Webhook endpoint management
6
+ */
7
+ export declare class EventTypes extends APIResource {
8
+ /**
9
+ * Returns the catalog of event types that can be subscribed to via webhook
10
+ * endpoints. Each entry lists the required service scope the API key must carry to
11
+ * subscribe, plus the stability level.
12
+ */
13
+ list(options?: RequestOptions): APIPromise<void>;
14
+ }
15
+ //# sourceMappingURL=event-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-types.d.mts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/event-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjD"}
@@ -0,0 +1,15 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { RequestOptions } from "../../../internal/request-options.js";
4
+ /**
5
+ * Webhook endpoint management
6
+ */
7
+ export declare class EventTypes extends APIResource {
8
+ /**
9
+ * Returns the catalog of event types that can be subscribed to via webhook
10
+ * endpoints. Each entry lists the required service scope the API key must carry to
11
+ * subscribe, plus the stability level.
12
+ */
13
+ list(options?: RequestOptions): APIPromise<void>;
14
+ }
15
+ //# sourceMappingURL=event-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/event-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjD"}
@@ -0,0 +1,24 @@
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.EventTypes = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const headers_1 = require("../../../internal/headers.js");
7
+ /**
8
+ * Webhook endpoint management
9
+ */
10
+ class EventTypes extends resource_1.APIResource {
11
+ /**
12
+ * Returns the catalog of event types that can be subscribed to via webhook
13
+ * endpoints. Each entry lists the required service scope the API key must carry to
14
+ * subscribe, plus the stability level.
15
+ */
16
+ list(options) {
17
+ return this._client.get('/webhooks/v1/event_types', {
18
+ ...options,
19
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
20
+ });
21
+ }
22
+ }
23
+ exports.EventTypes = EventTypes;
24
+ //# sourceMappingURL=event-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-types.js","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/event-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE;YAClD,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;AAZD,gCAYC"}
@@ -0,0 +1,20 @@
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
+ /**
5
+ * Webhook endpoint management
6
+ */
7
+ export class EventTypes extends APIResource {
8
+ /**
9
+ * Returns the catalog of event types that can be subscribed to via webhook
10
+ * endpoints. Each entry lists the required service scope the API key must carry to
11
+ * subscribe, plus the stability level.
12
+ */
13
+ list(options) {
14
+ return this._client.get('/webhooks/v1/event_types', {
15
+ ...options,
16
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
17
+ });
18
+ }
19
+ }
20
+ //# sourceMappingURL=event-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-types.mjs","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/event-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE;YAClD,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"}
@@ -0,0 +1,5 @@
1
+ export { Deliveries, type DeliveryListParams, type DeliveryReplayParams } from "./deliveries.mjs";
2
+ export { Endpoints, type EndpointCreateParams, type EndpointUpdateParams, type EndpointListParams, type EndpointRotateSecretParams, type EndpointTestParams, } from "./endpoints.mjs";
3
+ export { EventTypes } from "./event-types.mjs";
4
+ export { V1 } from "./v1.mjs";
5
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE;OAClE,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,EAAE,EAAE"}
@@ -0,0 +1,5 @@
1
+ export { Deliveries, type DeliveryListParams, type DeliveryReplayParams } from "./deliveries.js";
2
+ export { Endpoints, type EndpointCreateParams, type EndpointUpdateParams, type EndpointListParams, type EndpointRotateSecretParams, type EndpointTestParams, } from "./endpoints.js";
3
+ export { EventTypes } from "./event-types.js";
4
+ export { V1 } from "./v1.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE;OAClE,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,EAAE,EAAE"}
@@ -0,0 +1,13 @@
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.V1 = exports.EventTypes = exports.Endpoints = exports.Deliveries = void 0;
5
+ var deliveries_1 = require("./deliveries.js");
6
+ Object.defineProperty(exports, "Deliveries", { enumerable: true, get: function () { return deliveries_1.Deliveries; } });
7
+ var endpoints_1 = require("./endpoints.js");
8
+ Object.defineProperty(exports, "Endpoints", { enumerable: true, get: function () { return endpoints_1.Endpoints; } });
9
+ var event_types_1 = require("./event-types.js");
10
+ Object.defineProperty(exports, "EventTypes", { enumerable: true, get: function () { return event_types_1.EventTypes; } });
11
+ var v1_1 = require("./v1.js");
12
+ Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAA8F;AAArF,wGAAA,UAAU,OAAA;AACnB,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,gDAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Deliveries } from "./deliveries.mjs";
3
+ export { Endpoints, } from "./endpoints.mjs";
4
+ export { EventTypes } from "./event-types.mjs";
5
+ export { V1 } from "./v1.mjs";
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,UAAU,EAAsD;OAClE,EACL,SAAS,GAMV;OACM,EAAE,UAAU,EAAE;OACd,EAAE,EAAE,EAAE"}
@@ -0,0 +1,18 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as DeliveriesAPI from "./deliveries.mjs";
3
+ import { Deliveries, DeliveryListParams, DeliveryReplayParams } from "./deliveries.mjs";
4
+ import * as EndpointsAPI from "./endpoints.mjs";
5
+ import { EndpointCreateParams, EndpointListParams, EndpointRotateSecretParams, EndpointTestParams, EndpointUpdateParams, Endpoints } from "./endpoints.mjs";
6
+ import * as EventTypesAPI from "./event-types.mjs";
7
+ import { EventTypes } from "./event-types.mjs";
8
+ export declare class V1 extends APIResource {
9
+ endpoints: EndpointsAPI.Endpoints;
10
+ deliveries: DeliveriesAPI.Deliveries;
11
+ eventTypes: EventTypesAPI.EventTypes;
12
+ }
13
+ export declare namespace V1 {
14
+ export { Endpoints as Endpoints, type EndpointCreateParams as EndpointCreateParams, type EndpointUpdateParams as EndpointUpdateParams, type EndpointListParams as EndpointListParams, type EndpointRotateSecretParams as EndpointRotateSecretParams, type EndpointTestParams as EndpointTestParams, };
15
+ export { Deliveries as Deliveries, type DeliveryListParams as DeliveryListParams, type DeliveryReplayParams as DeliveryReplayParams, };
16
+ export { EventTypes as EventTypes };
17
+ }
18
+ //# sourceMappingURL=v1.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OACxD,KAAK,YAAY;OACjB,EACL,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,qBAAa,EAAG,SAAQ,WAAW;IACjC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC;CACrC"}
@@ -0,0 +1,18 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as DeliveriesAPI from "./deliveries.js";
3
+ import { Deliveries, DeliveryListParams, DeliveryReplayParams } from "./deliveries.js";
4
+ import * as EndpointsAPI from "./endpoints.js";
5
+ import { EndpointCreateParams, EndpointListParams, EndpointRotateSecretParams, EndpointTestParams, EndpointUpdateParams, Endpoints } from "./endpoints.js";
6
+ import * as EventTypesAPI from "./event-types.js";
7
+ import { EventTypes } from "./event-types.js";
8
+ export declare class V1 extends APIResource {
9
+ endpoints: EndpointsAPI.Endpoints;
10
+ deliveries: DeliveriesAPI.Deliveries;
11
+ eventTypes: EventTypesAPI.EventTypes;
12
+ }
13
+ export declare namespace V1 {
14
+ export { Endpoints as Endpoints, type EndpointCreateParams as EndpointCreateParams, type EndpointUpdateParams as EndpointUpdateParams, type EndpointListParams as EndpointListParams, type EndpointRotateSecretParams as EndpointRotateSecretParams, type EndpointTestParams as EndpointTestParams, };
15
+ export { Deliveries as Deliveries, type DeliveryListParams as DeliveryListParams, type DeliveryReplayParams as DeliveryReplayParams, };
16
+ export { EventTypes as EventTypes };
17
+ }
18
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OACxD,KAAK,YAAY;OACjB,EACL,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,qBAAa,EAAG,SAAQ,WAAW;IACjC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC;CACrC"}
@@ -0,0 +1,25 @@
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.V1 = void 0;
5
+ const tslib_1 = require("../../../internal/tslib.js");
6
+ const resource_1 = require("../../../core/resource.js");
7
+ const DeliveriesAPI = tslib_1.__importStar(require("./deliveries.js"));
8
+ const deliveries_1 = require("./deliveries.js");
9
+ const EndpointsAPI = tslib_1.__importStar(require("./endpoints.js"));
10
+ const endpoints_1 = require("./endpoints.js");
11
+ const EventTypesAPI = tslib_1.__importStar(require("./event-types.js"));
12
+ const event_types_1 = require("./event-types.js");
13
+ class V1 extends resource_1.APIResource {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.endpoints = new EndpointsAPI.Endpoints(this._client);
17
+ this.deliveries = new DeliveriesAPI.Deliveries(this._client);
18
+ this.eventTypes = new EventTypesAPI.EventTypes(this._client);
19
+ }
20
+ }
21
+ exports.V1 = V1;
22
+ V1.Endpoints = endpoints_1.Endpoints;
23
+ V1.Deliveries = deliveries_1.Deliveries;
24
+ V1.EventTypes = event_types_1.EventTypes;
25
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,uEAA8C;AAC9C,gDAAoF;AACpF,qEAA4C;AAC5C,8CAOqB;AACrB,wEAA+C;AAC/C,kDAA2C;AAE3C,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC3B,EAAE,CAAC,UAAU,GAAG,wBAAU,CAAC"}
@@ -0,0 +1,20 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import * as DeliveriesAPI from "./deliveries.mjs";
4
+ import { Deliveries } from "./deliveries.mjs";
5
+ import * as EndpointsAPI from "./endpoints.mjs";
6
+ import { Endpoints, } from "./endpoints.mjs";
7
+ import * as EventTypesAPI from "./event-types.mjs";
8
+ import { EventTypes } from "./event-types.mjs";
9
+ export class V1 extends APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.endpoints = new EndpointsAPI.Endpoints(this._client);
13
+ this.deliveries = new DeliveriesAPI.Deliveries(this._client);
14
+ this.eventTypes = new EventTypesAPI.EventTypes(this._client);
15
+ }
16
+ }
17
+ V1.Endpoints = Endpoints;
18
+ V1.Deliveries = Deliveries;
19
+ V1.EventTypes = EventTypes;
20
+ //# sourceMappingURL=v1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAA4C;OACxD,KAAK,YAAY;OACjB,EAML,SAAS,GACV;OACM,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAED,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./v1/index.mjs";
2
+ //# sourceMappingURL=v1.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./v1/index.js";
2
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":""}
@@ -2,5 +2,5 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const tslib_1 = require("../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./v2/index.js"), exports);
6
- //# sourceMappingURL=v2.js.map
5
+ tslib_1.__exportStar(require("./v1/index.js"), exports);
6
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
@@ -1,3 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./v2/index.mjs";
3
- //# sourceMappingURL=v2.mjs.map
2
+ export * from "./v1/index.mjs";
3
+ //# sourceMappingURL=v1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as V1API from "./v1/v1.mjs";
3
+ import { V1 } from "./v1/v1.mjs";
4
+ export declare class Webhooks extends APIResource {
5
+ v1: V1API.V1;
6
+ }
7
+ export declare namespace Webhooks {
8
+ export { V1 as V1 };
9
+ }
10
+ //# sourceMappingURL=webhooks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as V1API from "./v1/v1.js";
3
+ import { V1 } from "./v1/v1.js";
4
+ export declare class Webhooks extends APIResource {
5
+ v1: V1API.V1;
6
+ }
7
+ export declare namespace Webhooks {
8
+ export { V1 as V1 };
9
+ }
10
+ //# sourceMappingURL=webhooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
@@ -0,0 +1,17 @@
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 tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const V1API = tslib_1.__importStar(require("./v1/v1.js"));
8
+ const v1_1 = require("./v1/v1.js");
9
+ class Webhooks extends resource_1.APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.v1 = new V1API.V1(this._client);
13
+ }
14
+ }
15
+ exports.Webhooks = Webhooks;
16
+ Webhooks.V1 = v1_1.V1;
17
+ //# sourceMappingURL=webhooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0DAAiC;AACjC,mCAA6B;AAE7B,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,4BAEC;AAED,QAAQ,CAAC,EAAE,GAAG,OAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as V1API from "./v1/v1.mjs";
4
+ import { V1 } from "./v1/v1.mjs";
5
+ export class Webhooks extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.v1 = new V1API.V1(this._client);
9
+ }
10
+ }
11
+ Webhooks.V1 = V1;
12
+ //# sourceMappingURL=webhooks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./webhooks/index.mjs";
2
+ //# sourceMappingURL=webhooks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./webhooks/index.js";
2
+ //# sourceMappingURL=webhooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./chat/index.js"), exports);
6
- //# sourceMappingURL=chat.js.map
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./webhooks/index.js"), exports);
6
+ //# sourceMappingURL=webhooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./webhooks/index.mjs";
3
+ //# sourceMappingURL=webhooks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/src/client.ts CHANGED
@@ -64,6 +64,7 @@ import {
64
64
  VaultUploadResponse,
65
65
  } from './resources/vault/vault';
66
66
  import { Voice } from './resources/voice/voice';
67
+ import { Webhooks } from './resources/webhooks/webhooks';
67
68
  import { type Fetch } from './internal/builtin-types';
68
69
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
69
70
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -816,6 +817,7 @@ export class Casedev {
816
817
  */
817
818
  vault: API.Vault = new API.Vault(this);
818
819
  voice: API.Voice = new API.Voice(this);
820
+ webhooks: API.Webhooks = new API.Webhooks(this);
819
821
  }
820
822
 
821
823
  Casedev.Agent = Agent;
@@ -837,6 +839,7 @@ Casedev.Translate = Translate;
837
839
  Casedev.Usage = Usage;
838
840
  Casedev.Vault = Vault;
839
841
  Casedev.Voice = Voice;
842
+ Casedev.Webhooks = Webhooks;
840
843
 
841
844
  export declare namespace Casedev {
842
845
  export type RequestOptions = Opts.RequestOptions;
@@ -906,4 +909,6 @@ export declare namespace Casedev {
906
909
  };
907
910
 
908
911
  export { Voice as Voice };
912
+
913
+ export { Webhooks as Webhooks };
909
914
  }
@@ -3,19 +3,13 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as V1API from './v1/v1';
5
5
  import { V1 } from './v1/v1';
6
- import * as V2API from './v2/v2';
7
- import { V2 } from './v2/v2';
8
6
 
9
7
  export class Agent extends APIResource {
10
8
  v1: V1API.V1 = new V1API.V1(this._client);
11
- v2: V2API.V2 = new V2API.V2(this._client);
12
9
  }
13
10
 
14
11
  Agent.V1 = V1;
15
- Agent.V2 = V2;
16
12
 
17
13
  export declare namespace Agent {
18
14
  export { V1 as V1 };
19
-
20
- export { V2 as V2 };
21
15
  }
@@ -2,4 +2,3 @@
2
2
 
3
3
  export { Agent } from './agent';
4
4
  export { V1 } from './v1/index';
5
- export { V2 } from './v2/index';
@@ -47,3 +47,4 @@ export {
47
47
  type VaultUploadParams,
48
48
  } from './vault/vault';
49
49
  export { Voice } from './voice/voice';
50
+ export { Webhooks } from './webhooks/webhooks';
@@ -1,3 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./chat/index.mjs";
3
- //# sourceMappingURL=chat.mjs.map
2
+
3
+ export { V1 } from './v1/index';
4
+ export { Webhooks } from './webhooks';