@linqapp/sdk 0.1.0 → 0.1.3

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 (223) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/LICENSE +198 -4
  3. package/README.md +52 -52
  4. package/client.d.mts +34 -22
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +34 -22
  7. package/client.d.ts.map +1 -1
  8. package/client.js +50 -41
  9. package/client.js.map +1 -1
  10. package/client.mjs +49 -40
  11. package/client.mjs.map +1 -1
  12. package/core/api-promise.d.mts +2 -2
  13. package/core/api-promise.d.mts.map +1 -1
  14. package/core/api-promise.d.ts +2 -2
  15. package/core/api-promise.d.ts.map +1 -1
  16. package/core/api-promise.js.map +1 -1
  17. package/core/api-promise.mjs.map +1 -1
  18. package/core/error.d.mts +2 -2
  19. package/core/error.d.mts.map +1 -1
  20. package/core/error.d.ts +2 -2
  21. package/core/error.d.ts.map +1 -1
  22. package/core/error.js +4 -4
  23. package/core/error.js.map +1 -1
  24. package/core/error.mjs +2 -2
  25. package/core/error.mjs.map +1 -1
  26. package/core/resource.d.mts +3 -3
  27. package/core/resource.d.mts.map +1 -1
  28. package/core/resource.d.ts +3 -3
  29. package/core/resource.d.ts.map +1 -1
  30. package/core/resource.js.map +1 -1
  31. package/core/resource.mjs.map +1 -1
  32. package/index.d.mts +3 -3
  33. package/index.d.mts.map +1 -1
  34. package/index.d.ts +3 -3
  35. package/index.d.ts.map +1 -1
  36. package/index.js +4 -4
  37. package/index.js.map +1 -1
  38. package/index.mjs +3 -3
  39. package/index.mjs.map +1 -1
  40. package/internal/parse.d.mts +2 -2
  41. package/internal/parse.d.mts.map +1 -1
  42. package/internal/parse.d.ts +2 -2
  43. package/internal/parse.d.ts.map +1 -1
  44. package/internal/parse.js.map +1 -1
  45. package/internal/parse.mjs.map +1 -1
  46. package/internal/shims.js +1 -1
  47. package/internal/shims.js.map +1 -1
  48. package/internal/shims.mjs +1 -1
  49. package/internal/shims.mjs.map +1 -1
  50. package/internal/uploads.d.mts +4 -4
  51. package/internal/uploads.d.mts.map +1 -1
  52. package/internal/uploads.d.ts +4 -4
  53. package/internal/uploads.d.ts.map +1 -1
  54. package/internal/uploads.js.map +1 -1
  55. package/internal/uploads.mjs.map +1 -1
  56. package/internal/utils/base64.js +2 -2
  57. package/internal/utils/base64.js.map +1 -1
  58. package/internal/utils/base64.mjs +3 -3
  59. package/internal/utils/base64.mjs.map +1 -1
  60. package/internal/utils/log.d.mts +3 -3
  61. package/internal/utils/log.d.mts.map +1 -1
  62. package/internal/utils/log.d.ts +3 -3
  63. package/internal/utils/log.d.ts.map +1 -1
  64. package/internal/utils/log.js.map +1 -1
  65. package/internal/utils/log.mjs.map +1 -1
  66. package/internal/utils/path.js +1 -1
  67. package/internal/utils/path.js.map +1 -1
  68. package/internal/utils/path.mjs +2 -2
  69. package/internal/utils/path.mjs.map +1 -1
  70. package/internal/utils/values.js +5 -5
  71. package/internal/utils/values.js.map +1 -1
  72. package/internal/utils/values.mjs +6 -6
  73. package/internal/utils/values.mjs.map +1 -1
  74. package/package.json +4 -4
  75. package/resources/attachments.d.mts +28 -3
  76. package/resources/attachments.d.mts.map +1 -1
  77. package/resources/attachments.d.ts +28 -3
  78. package/resources/attachments.d.ts.map +1 -1
  79. package/resources/capability.d.mts +74 -0
  80. package/resources/capability.d.mts.map +1 -0
  81. package/resources/capability.d.ts +74 -0
  82. package/resources/capability.d.ts.map +1 -0
  83. package/resources/capability.js +36 -0
  84. package/resources/capability.js.map +1 -0
  85. package/resources/capability.mjs +32 -0
  86. package/resources/capability.mjs.map +1 -0
  87. package/resources/chats/chats.d.mts +133 -663
  88. package/resources/chats/chats.d.mts.map +1 -1
  89. package/resources/chats/chats.d.ts +133 -663
  90. package/resources/chats/chats.d.ts.map +1 -1
  91. package/resources/chats/chats.js +2 -2
  92. package/resources/chats/chats.js.map +1 -1
  93. package/resources/chats/chats.mjs +2 -2
  94. package/resources/chats/chats.mjs.map +1 -1
  95. package/resources/chats/index.d.mts +2 -2
  96. package/resources/chats/index.d.mts.map +1 -1
  97. package/resources/chats/index.d.ts +2 -2
  98. package/resources/chats/index.d.ts.map +1 -1
  99. package/resources/chats/index.js.map +1 -1
  100. package/resources/chats/index.mjs.map +1 -1
  101. package/resources/chats/messages.d.mts +55 -716
  102. package/resources/chats/messages.d.mts.map +1 -1
  103. package/resources/chats/messages.d.ts +55 -716
  104. package/resources/chats/messages.d.ts.map +1 -1
  105. package/resources/chats/messages.js.map +1 -1
  106. package/resources/chats/messages.mjs.map +1 -1
  107. package/resources/index.d.mts +8 -5
  108. package/resources/index.d.mts.map +1 -1
  109. package/resources/index.d.ts +8 -5
  110. package/resources/index.d.ts.map +1 -1
  111. package/resources/index.js +9 -3
  112. package/resources/index.js.map +1 -1
  113. package/resources/index.mjs +5 -2
  114. package/resources/index.mjs.map +1 -1
  115. package/resources/messages.d.mts +129 -553
  116. package/resources/messages.d.mts.map +1 -1
  117. package/resources/messages.d.ts +129 -553
  118. package/resources/messages.d.ts.map +1 -1
  119. package/resources/messages.js +1 -1
  120. package/resources/messages.js.map +1 -1
  121. package/resources/messages.mjs +1 -1
  122. package/resources/messages.mjs.map +1 -1
  123. package/resources/phone-numbers.d.mts +1 -50
  124. package/resources/phone-numbers.d.mts.map +1 -1
  125. package/resources/phone-numbers.d.ts +1 -50
  126. package/resources/phone-numbers.d.ts.map +1 -1
  127. package/resources/phone-numbers.js +0 -8
  128. package/resources/phone-numbers.js.map +1 -1
  129. package/resources/phone-numbers.mjs +0 -8
  130. package/resources/phone-numbers.mjs.map +1 -1
  131. package/resources/phonenumbers.d.mts +58 -0
  132. package/resources/phonenumbers.d.mts.map +1 -0
  133. package/resources/phonenumbers.d.ts +58 -0
  134. package/resources/phonenumbers.d.ts.map +1 -0
  135. package/resources/phonenumbers.js +17 -0
  136. package/resources/phonenumbers.js.map +1 -0
  137. package/resources/phonenumbers.mjs +13 -0
  138. package/resources/phonenumbers.mjs.map +1 -0
  139. package/resources/webhook-events.d.mts +29 -0
  140. package/resources/webhook-events.d.mts.map +1 -0
  141. package/resources/webhook-events.d.ts +29 -0
  142. package/resources/webhook-events.d.ts.map +1 -0
  143. package/resources/{webhooks/events.js → webhook-events.js} +5 -10
  144. package/resources/webhook-events.js.map +1 -0
  145. package/resources/{webhooks/events.mjs → webhook-events.mjs} +3 -8
  146. package/resources/webhook-events.mjs.map +1 -0
  147. package/resources/webhook-subscriptions.d.mts +184 -0
  148. package/resources/webhook-subscriptions.d.mts.map +1 -0
  149. package/resources/webhook-subscriptions.d.ts +184 -0
  150. package/resources/webhook-subscriptions.d.ts.map +1 -0
  151. package/resources/{webhooks/subscriptions.js → webhook-subscriptions.js} +16 -16
  152. package/resources/webhook-subscriptions.js.map +1 -0
  153. package/resources/{webhooks/subscriptions.mjs → webhook-subscriptions.mjs} +14 -14
  154. package/resources/webhook-subscriptions.mjs.map +1 -0
  155. package/src/client.ts +97 -41
  156. package/src/core/api-promise.ts +4 -4
  157. package/src/core/error.ts +2 -2
  158. package/src/core/resource.ts +3 -3
  159. package/src/index.ts +3 -3
  160. package/src/internal/parse.ts +2 -2
  161. package/src/internal/shims.ts +1 -1
  162. package/src/internal/uploads.ts +5 -5
  163. package/src/internal/utils/base64.ts +3 -3
  164. package/src/internal/utils/log.ts +3 -3
  165. package/src/internal/utils/path.ts +2 -2
  166. package/src/internal/utils/values.ts +6 -6
  167. package/src/resources/attachments.ts +81 -106
  168. package/src/resources/capability.ts +98 -0
  169. package/src/resources/chats/chats.ts +135 -770
  170. package/src/resources/chats/index.ts +4 -2
  171. package/src/resources/chats/messages.ts +60 -839
  172. package/src/resources/index.ts +29 -9
  173. package/src/resources/messages.ts +153 -659
  174. package/src/resources/phone-numbers.ts +1 -65
  175. package/src/resources/phonenumbers.ts +72 -0
  176. package/src/resources/webhook-events.ts +57 -0
  177. package/src/resources/webhook-subscriptions.ts +238 -0
  178. package/src/version.ts +1 -1
  179. package/version.d.mts +1 -1
  180. package/version.d.ts +1 -1
  181. package/version.js +1 -1
  182. package/version.mjs +1 -1
  183. package/resources/webhooks/events.d.mts +0 -30
  184. package/resources/webhooks/events.d.mts.map +0 -1
  185. package/resources/webhooks/events.d.ts +0 -30
  186. package/resources/webhooks/events.d.ts.map +0 -1
  187. package/resources/webhooks/events.js.map +0 -1
  188. package/resources/webhooks/events.mjs.map +0 -1
  189. package/resources/webhooks/index.d.mts +0 -4
  190. package/resources/webhooks/index.d.mts.map +0 -1
  191. package/resources/webhooks/index.d.ts +0 -4
  192. package/resources/webhooks/index.d.ts.map +0 -1
  193. package/resources/webhooks/index.js +0 -11
  194. package/resources/webhooks/index.js.map +0 -1
  195. package/resources/webhooks/index.mjs +0 -5
  196. package/resources/webhooks/index.mjs.map +0 -1
  197. package/resources/webhooks/subscriptions.d.mts +0 -237
  198. package/resources/webhooks/subscriptions.d.mts.map +0 -1
  199. package/resources/webhooks/subscriptions.d.ts +0 -237
  200. package/resources/webhooks/subscriptions.d.ts.map +0 -1
  201. package/resources/webhooks/subscriptions.js.map +0 -1
  202. package/resources/webhooks/subscriptions.mjs.map +0 -1
  203. package/resources/webhooks/webhooks.d.mts +0 -14
  204. package/resources/webhooks/webhooks.d.mts.map +0 -1
  205. package/resources/webhooks/webhooks.d.ts +0 -14
  206. package/resources/webhooks/webhooks.d.ts.map +0 -1
  207. package/resources/webhooks/webhooks.js +0 -21
  208. package/resources/webhooks/webhooks.js.map +0 -1
  209. package/resources/webhooks/webhooks.mjs +0 -16
  210. package/resources/webhooks/webhooks.mjs.map +0 -1
  211. package/resources/webhooks.d.mts +0 -2
  212. package/resources/webhooks.d.mts.map +0 -1
  213. package/resources/webhooks.d.ts +0 -2
  214. package/resources/webhooks.d.ts.map +0 -1
  215. package/resources/webhooks.js +0 -6
  216. package/resources/webhooks.js.map +0 -1
  217. package/resources/webhooks.mjs +0 -3
  218. package/resources/webhooks.mjs.map +0 -1
  219. package/src/resources/webhooks/events.ts +0 -55
  220. package/src/resources/webhooks/index.ts +0 -13
  221. package/src/resources/webhooks/subscriptions.ts +0 -409
  222. package/src/resources/webhooks/webhooks.ts +0 -37
  223. package/src/resources/webhooks.ts +0 -3
@@ -1,237 +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 Subscriptions extends APIResource {
5
- /**
6
- * Create a new webhook subscription to receive events at a target URL. Upon
7
- * creation, a signing secret is generated for verifying webhook authenticity.
8
- * **Store this secret securely — it cannot be retrieved later.**
9
- *
10
- * **Webhook Delivery:**
11
- *
12
- * - Events are sent via HTTP POST to the target URL
13
- * - Each request includes `X-Webhook-Signature` and `X-Webhook-Timestamp` headers
14
- * - Signature is HMAC-SHA256 over `{timestamp}.{payload}` — see
15
- * [Webhook Events](/docs/webhook-events) for verification details
16
- * - Failed deliveries (5xx, 429, network errors) are retried up to 10 times over
17
- * ~2 hours with exponential backoff
18
- * - Client errors (4xx except 429) are not retried
19
- *
20
- * @example
21
- * ```ts
22
- * const subscription =
23
- * await client.webhooks.subscriptions.create({
24
- * subscribed_events: [
25
- * 'message.sent',
26
- * 'message.delivered',
27
- * 'message.read',
28
- * ],
29
- * target_url: 'https://webhooks.example.com/linq/events',
30
- * });
31
- * ```
32
- */
33
- create(body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SubscriptionCreateResponse>;
34
- /**
35
- * Retrieve details for a specific webhook subscription including its target URL,
36
- * subscribed events, and current status.
37
- *
38
- * @example
39
- * ```ts
40
- * const subscription =
41
- * await client.webhooks.subscriptions.retrieve(
42
- * 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
43
- * );
44
- * ```
45
- */
46
- retrieve(subscriptionID: string, options?: RequestOptions): APIPromise<SubscriptionRetrieveResponse>;
47
- /**
48
- * Update an existing webhook subscription. You can modify the target URL,
49
- * subscribed events, or activate/deactivate the subscription.
50
- *
51
- * **Note:** The signing secret cannot be changed via this endpoint.
52
- *
53
- * @example
54
- * ```ts
55
- * const subscription =
56
- * await client.webhooks.subscriptions.update(
57
- * 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
58
- * {
59
- * target_url:
60
- * 'https://webhooks.example.com/linq/events',
61
- * },
62
- * );
63
- * ```
64
- */
65
- update(subscriptionID: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<SubscriptionUpdateResponse>;
66
- /**
67
- * Retrieve all webhook subscriptions for the authenticated partner. Returns a list
68
- * of active and inactive subscriptions with their configuration and status.
69
- *
70
- * @example
71
- * ```ts
72
- * const subscriptions =
73
- * await client.webhooks.subscriptions.list();
74
- * ```
75
- */
76
- list(options?: RequestOptions): APIPromise<SubscriptionListResponse>;
77
- /**
78
- * Delete a webhook subscription.
79
- *
80
- * @example
81
- * ```ts
82
- * await client.webhooks.subscriptions.delete(
83
- * 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
84
- * );
85
- * ```
86
- */
87
- delete(subscriptionID: string, options?: RequestOptions): APIPromise<void>;
88
- }
89
- /**
90
- * Response returned when creating a webhook subscription. Includes the signing
91
- * secret which is only shown once.
92
- */
93
- export interface SubscriptionCreateResponse {
94
- /**
95
- * Unique identifier for the webhook subscription
96
- */
97
- id: string;
98
- /**
99
- * When the subscription was created
100
- */
101
- created_at: string;
102
- /**
103
- * Whether this subscription is currently active
104
- */
105
- is_active: boolean;
106
- /**
107
- * Secret for verifying webhook signatures. Store this securely - it cannot be
108
- * retrieved again.
109
- */
110
- signing_secret: string;
111
- /**
112
- * List of event types this subscription receives
113
- */
114
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
115
- /**
116
- * URL where webhook events will be sent
117
- */
118
- target_url: string;
119
- /**
120
- * When the subscription was last updated
121
- */
122
- updated_at: string;
123
- }
124
- export interface SubscriptionRetrieveResponse {
125
- /**
126
- * Unique identifier for the webhook subscription
127
- */
128
- id: string;
129
- /**
130
- * When the subscription was created
131
- */
132
- created_at: string;
133
- /**
134
- * Whether this subscription is currently active
135
- */
136
- is_active: boolean;
137
- /**
138
- * List of event types this subscription receives
139
- */
140
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
141
- /**
142
- * URL where webhook events will be sent
143
- */
144
- target_url: string;
145
- /**
146
- * When the subscription was last updated
147
- */
148
- updated_at: string;
149
- }
150
- export interface SubscriptionUpdateResponse {
151
- /**
152
- * Unique identifier for the webhook subscription
153
- */
154
- id: string;
155
- /**
156
- * When the subscription was created
157
- */
158
- created_at: string;
159
- /**
160
- * Whether this subscription is currently active
161
- */
162
- is_active: boolean;
163
- /**
164
- * List of event types this subscription receives
165
- */
166
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
167
- /**
168
- * URL where webhook events will be sent
169
- */
170
- target_url: string;
171
- /**
172
- * When the subscription was last updated
173
- */
174
- updated_at: string;
175
- }
176
- export interface SubscriptionListResponse {
177
- /**
178
- * List of webhook subscriptions
179
- */
180
- subscriptions: Array<SubscriptionListResponse.Subscription>;
181
- }
182
- export declare namespace SubscriptionListResponse {
183
- interface Subscription {
184
- /**
185
- * Unique identifier for the webhook subscription
186
- */
187
- id: string;
188
- /**
189
- * When the subscription was created
190
- */
191
- created_at: string;
192
- /**
193
- * Whether this subscription is currently active
194
- */
195
- is_active: boolean;
196
- /**
197
- * List of event types this subscription receives
198
- */
199
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
200
- /**
201
- * URL where webhook events will be sent
202
- */
203
- target_url: string;
204
- /**
205
- * When the subscription was last updated
206
- */
207
- updated_at: string;
208
- }
209
- }
210
- export interface SubscriptionCreateParams {
211
- /**
212
- * List of event types to subscribe to
213
- */
214
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
215
- /**
216
- * URL where webhook events will be sent. Must be HTTPS.
217
- */
218
- target_url: string;
219
- }
220
- export interface SubscriptionUpdateParams {
221
- /**
222
- * Activate or deactivate the subscription
223
- */
224
- is_active?: boolean;
225
- /**
226
- * Updated list of event types to subscribe to
227
- */
228
- subscribed_events?: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
229
- /**
230
- * New target URL for webhook events
231
- */
232
- target_url?: string;
233
- }
234
- export declare namespace Subscriptions {
235
- export { type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionRetrieveResponse as SubscriptionRetrieveResponse, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, };
236
- }
237
- //# sourceMappingURL=subscriptions.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscriptions.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAIpG;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpE;;;;;;;;;OASG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM3E;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;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B,GACzB,yBAAyB,GACzB,+BAA+B,GAC/B,+BAA+B,GAC/B,+BAA+B,GAC/B,+BAA+B,GAC/B,6BAA6B,CAChC,CAAC;IAEF;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CACrB,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GACnB,gBAAgB,GAChB,gBAAgB,GAChB,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,cAAc,GACd,yBAAyB,GACzB,yBAAyB,GACzB,+BAA+B,GAC/B,+BAA+B,GAC/B,+BAA+B,GAC/B,+BAA+B,GAC/B,6BAA6B,CAChC,CAAC;IAEF;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1,237 +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 Subscriptions extends APIResource {
5
- /**
6
- * Create a new webhook subscription to receive events at a target URL. Upon
7
- * creation, a signing secret is generated for verifying webhook authenticity.
8
- * **Store this secret securely — it cannot be retrieved later.**
9
- *
10
- * **Webhook Delivery:**
11
- *
12
- * - Events are sent via HTTP POST to the target URL
13
- * - Each request includes `X-Webhook-Signature` and `X-Webhook-Timestamp` headers
14
- * - Signature is HMAC-SHA256 over `{timestamp}.{payload}` — see
15
- * [Webhook Events](/docs/webhook-events) for verification details
16
- * - Failed deliveries (5xx, 429, network errors) are retried up to 10 times over
17
- * ~2 hours with exponential backoff
18
- * - Client errors (4xx except 429) are not retried
19
- *
20
- * @example
21
- * ```ts
22
- * const subscription =
23
- * await client.webhooks.subscriptions.create({
24
- * subscribed_events: [
25
- * 'message.sent',
26
- * 'message.delivered',
27
- * 'message.read',
28
- * ],
29
- * target_url: 'https://webhooks.example.com/linq/events',
30
- * });
31
- * ```
32
- */
33
- create(body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SubscriptionCreateResponse>;
34
- /**
35
- * Retrieve details for a specific webhook subscription including its target URL,
36
- * subscribed events, and current status.
37
- *
38
- * @example
39
- * ```ts
40
- * const subscription =
41
- * await client.webhooks.subscriptions.retrieve(
42
- * 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
43
- * );
44
- * ```
45
- */
46
- retrieve(subscriptionID: string, options?: RequestOptions): APIPromise<SubscriptionRetrieveResponse>;
47
- /**
48
- * Update an existing webhook subscription. You can modify the target URL,
49
- * subscribed events, or activate/deactivate the subscription.
50
- *
51
- * **Note:** The signing secret cannot be changed via this endpoint.
52
- *
53
- * @example
54
- * ```ts
55
- * const subscription =
56
- * await client.webhooks.subscriptions.update(
57
- * 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
58
- * {
59
- * target_url:
60
- * 'https://webhooks.example.com/linq/events',
61
- * },
62
- * );
63
- * ```
64
- */
65
- update(subscriptionID: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<SubscriptionUpdateResponse>;
66
- /**
67
- * Retrieve all webhook subscriptions for the authenticated partner. Returns a list
68
- * of active and inactive subscriptions with their configuration and status.
69
- *
70
- * @example
71
- * ```ts
72
- * const subscriptions =
73
- * await client.webhooks.subscriptions.list();
74
- * ```
75
- */
76
- list(options?: RequestOptions): APIPromise<SubscriptionListResponse>;
77
- /**
78
- * Delete a webhook subscription.
79
- *
80
- * @example
81
- * ```ts
82
- * await client.webhooks.subscriptions.delete(
83
- * 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
84
- * );
85
- * ```
86
- */
87
- delete(subscriptionID: string, options?: RequestOptions): APIPromise<void>;
88
- }
89
- /**
90
- * Response returned when creating a webhook subscription. Includes the signing
91
- * secret which is only shown once.
92
- */
93
- export interface SubscriptionCreateResponse {
94
- /**
95
- * Unique identifier for the webhook subscription
96
- */
97
- id: string;
98
- /**
99
- * When the subscription was created
100
- */
101
- created_at: string;
102
- /**
103
- * Whether this subscription is currently active
104
- */
105
- is_active: boolean;
106
- /**
107
- * Secret for verifying webhook signatures. Store this securely - it cannot be
108
- * retrieved again.
109
- */
110
- signing_secret: string;
111
- /**
112
- * List of event types this subscription receives
113
- */
114
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
115
- /**
116
- * URL where webhook events will be sent
117
- */
118
- target_url: string;
119
- /**
120
- * When the subscription was last updated
121
- */
122
- updated_at: string;
123
- }
124
- export interface SubscriptionRetrieveResponse {
125
- /**
126
- * Unique identifier for the webhook subscription
127
- */
128
- id: string;
129
- /**
130
- * When the subscription was created
131
- */
132
- created_at: string;
133
- /**
134
- * Whether this subscription is currently active
135
- */
136
- is_active: boolean;
137
- /**
138
- * List of event types this subscription receives
139
- */
140
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
141
- /**
142
- * URL where webhook events will be sent
143
- */
144
- target_url: string;
145
- /**
146
- * When the subscription was last updated
147
- */
148
- updated_at: string;
149
- }
150
- export interface SubscriptionUpdateResponse {
151
- /**
152
- * Unique identifier for the webhook subscription
153
- */
154
- id: string;
155
- /**
156
- * When the subscription was created
157
- */
158
- created_at: string;
159
- /**
160
- * Whether this subscription is currently active
161
- */
162
- is_active: boolean;
163
- /**
164
- * List of event types this subscription receives
165
- */
166
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
167
- /**
168
- * URL where webhook events will be sent
169
- */
170
- target_url: string;
171
- /**
172
- * When the subscription was last updated
173
- */
174
- updated_at: string;
175
- }
176
- export interface SubscriptionListResponse {
177
- /**
178
- * List of webhook subscriptions
179
- */
180
- subscriptions: Array<SubscriptionListResponse.Subscription>;
181
- }
182
- export declare namespace SubscriptionListResponse {
183
- interface Subscription {
184
- /**
185
- * Unique identifier for the webhook subscription
186
- */
187
- id: string;
188
- /**
189
- * When the subscription was created
190
- */
191
- created_at: string;
192
- /**
193
- * Whether this subscription is currently active
194
- */
195
- is_active: boolean;
196
- /**
197
- * List of event types this subscription receives
198
- */
199
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
200
- /**
201
- * URL where webhook events will be sent
202
- */
203
- target_url: string;
204
- /**
205
- * When the subscription was last updated
206
- */
207
- updated_at: string;
208
- }
209
- }
210
- export interface SubscriptionCreateParams {
211
- /**
212
- * List of event types to subscribe to
213
- */
214
- subscribed_events: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
215
- /**
216
- * URL where webhook events will be sent. Must be HTTPS.
217
- */
218
- target_url: string;
219
- }
220
- export interface SubscriptionUpdateParams {
221
- /**
222
- * Activate or deactivate the subscription
223
- */
224
- is_active?: boolean;
225
- /**
226
- * Updated list of event types to subscribe to
227
- */
228
- subscribed_events?: Array<'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated'>;
229
- /**
230
- * New target URL for webhook events
231
- */
232
- target_url?: string;
233
- }
234
- export declare namespace Subscriptions {
235
- export { type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionRetrieveResponse as SubscriptionRetrieveResponse, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, };
236
- }
237
- //# sourceMappingURL=subscriptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,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E,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,6BAA6B,cAAc,EAAE,EAAE;YAC5E,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,14 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as EventsAPI from "./events.mjs";
3
- import { EventListResponse, Events } from "./events.mjs";
4
- import * as SubscriptionsAPI from "./subscriptions.mjs";
5
- import { SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionListResponse, SubscriptionRetrieveResponse, SubscriptionUpdateParams, SubscriptionUpdateResponse, Subscriptions } from "./subscriptions.mjs";
6
- export declare class Webhooks extends APIResource {
7
- subscriptions: SubscriptionsAPI.Subscriptions;
8
- events: EventsAPI.Events;
9
- }
10
- export declare namespace Webhooks {
11
- export { Subscriptions as Subscriptions, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionRetrieveResponse as SubscriptionRetrieveResponse, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, };
12
- export { Events as Events, type EventListResponse as EventListResponse };
13
- }
14
- //# sourceMappingURL=webhooks.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC7B,KAAK,gBAAgB;OACrB,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd;AAED,qBAAa,QAAS,SAAQ,WAAW;IACvC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IACjG,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC1E"}
@@ -1,14 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as EventsAPI from "./events.js";
3
- import { EventListResponse, Events } from "./events.js";
4
- import * as SubscriptionsAPI from "./subscriptions.js";
5
- import { SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionListResponse, SubscriptionRetrieveResponse, SubscriptionUpdateParams, SubscriptionUpdateResponse, Subscriptions } from "./subscriptions.js";
6
- export declare class Webhooks extends APIResource {
7
- subscriptions: SubscriptionsAPI.Subscriptions;
8
- events: EventsAPI.Events;
9
- }
10
- export declare namespace Webhooks {
11
- export { Subscriptions as Subscriptions, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionRetrieveResponse as SubscriptionRetrieveResponse, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, };
12
- export { Events as Events, type EventListResponse as EventListResponse };
13
- }
14
- //# sourceMappingURL=webhooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC7B,KAAK,gBAAgB;OACrB,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd;AAED,qBAAa,QAAS,SAAQ,WAAW;IACvC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IACjG,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC1E"}
@@ -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.Webhooks = void 0;
5
- const tslib_1 = require("../../internal/tslib.js");
6
- const resource_1 = require("../../core/resource.js");
7
- const EventsAPI = tslib_1.__importStar(require("./events.js"));
8
- const events_1 = require("./events.js");
9
- const SubscriptionsAPI = tslib_1.__importStar(require("./subscriptions.js"));
10
- const subscriptions_1 = require("./subscriptions.js");
11
- class Webhooks extends resource_1.APIResource {
12
- constructor() {
13
- super(...arguments);
14
- this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
15
- this.events = new EventsAPI.Events(this._client);
16
- }
17
- }
18
- exports.Webhooks = Webhooks;
19
- Webhooks.Subscriptions = subscriptions_1.Subscriptions;
20
- Webhooks.Events = events_1.Events;
21
- //# sourceMappingURL=webhooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAqD;AACrD,6EAAoD;AACpD,sDAQyB;AAEzB,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAHD,4BAGC;AAED,QAAQ,CAAC,aAAa,GAAG,6BAAa,CAAC;AACvC,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -1,16 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import * as EventsAPI from "./events.mjs";
4
- import { Events } from "./events.mjs";
5
- import * as SubscriptionsAPI from "./subscriptions.mjs";
6
- import { Subscriptions, } from "./subscriptions.mjs";
7
- export class Webhooks extends APIResource {
8
- constructor() {
9
- super(...arguments);
10
- this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
11
- this.events = new EventsAPI.Events(this._client);
12
- }
13
- }
14
- Webhooks.Subscriptions = Subscriptions;
15
- Webhooks.Events = Events;
16
- //# sourceMappingURL=webhooks.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAqB,MAAM,EAAE;OAC7B,KAAK,gBAAgB;OACrB,EAOL,aAAa,GACd;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC;AACvC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./webhooks/index.mjs";
2
- //# sourceMappingURL=webhooks.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./webhooks/index.js";
2
- //# sourceMappingURL=webhooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.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("./webhooks/index.js"), exports);
6
- //# sourceMappingURL=webhooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF"}