@sentdm/sentdm 0.26.0 → 0.27.2
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.
- package/CHANGELOG.md +24 -0
- package/client.d.mts +12 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -12
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/contacts.d.mts +48 -486
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +48 -486
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +3 -3
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +3 -3
- package/resources/contacts.mjs.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +40 -113
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +40 -113
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js.map +1 -1
- package/resources/me.mjs.map +1 -1
- package/resources/messages.d.mts +7 -126
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -126
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/numbers.d.mts +3 -42
- package/resources/numbers.d.mts.map +1 -1
- package/resources/numbers.d.ts +3 -42
- package/resources/numbers.d.ts.map +1 -1
- package/resources/numbers.js.map +1 -1
- package/resources/numbers.mjs.map +1 -1
- package/resources/profiles/campaigns.d.mts +149 -480
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +149 -480
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/campaigns.js +41 -39
- package/resources/profiles/campaigns.js.map +1 -1
- package/resources/profiles/campaigns.mjs +41 -39
- package/resources/profiles/campaigns.mjs.map +1 -1
- package/resources/profiles/index.d.mts +2 -2
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +2 -2
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/index.js.map +1 -1
- package/resources/profiles/index.mjs.map +1 -1
- package/resources/profiles/profiles.d.mts +391 -1699
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +391 -1699
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +6 -3
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +6 -3
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +176 -993
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +176 -993
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +3 -3
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +3 -3
- package/resources/templates.mjs.map +1 -1
- package/resources/users.d.mts +46 -373
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -373
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +7 -3
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +7 -3
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +110 -624
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +110 -624
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +7 -6
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +7 -6
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +68 -33
- package/src/resources/contacts.ts +49 -566
- package/src/resources/index.ts +34 -17
- package/src/resources/me.ts +51 -132
- package/src/resources/messages.ts +7 -141
- package/src/resources/numbers.ts +3 -47
- package/src/resources/profiles/campaigns.ts +172 -667
- package/src/resources/profiles/index.ts +17 -5
- package/src/resources/profiles/profiles.ts +549 -2282
- package/src/resources/templates.ts +206 -1256
- package/src/resources/users.ts +47 -430
- package/src/resources/webhooks.ts +120 -742
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/webhooks.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as WebhooksAPI from "./webhooks.js";
|
|
2
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
5
|
/**
|
|
@@ -10,32 +11,32 @@ export declare class Webhooks extends APIResource {
|
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```ts
|
|
13
|
-
* const
|
|
14
|
+
* const apiResponseWebhook = await client.webhooks.create();
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<
|
|
17
|
+
create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<APIResponseWebhook>;
|
|
17
18
|
/**
|
|
18
19
|
* Retrieves a single webhook by ID for the authenticated customer.
|
|
19
20
|
*
|
|
20
21
|
* @example
|
|
21
22
|
* ```ts
|
|
22
|
-
* const
|
|
23
|
+
* const apiResponseWebhook = await client.webhooks.retrieve(
|
|
23
24
|
* 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
|
|
24
25
|
* );
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
|
-
retrieve(id: string, params?: WebhookRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
28
|
+
retrieve(id: string, params?: WebhookRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseWebhook>;
|
|
28
29
|
/**
|
|
29
30
|
* Updates an existing webhook for the authenticated customer.
|
|
30
31
|
*
|
|
31
32
|
* @example
|
|
32
33
|
* ```ts
|
|
33
|
-
* const
|
|
34
|
+
* const apiResponseWebhook = await client.webhooks.update(
|
|
34
35
|
* 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
|
|
35
36
|
* );
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
|
-
update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<
|
|
39
|
+
update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<APIResponseWebhook>;
|
|
39
40
|
/**
|
|
40
41
|
* Retrieves a paginated list of webhooks for the authenticated customer.
|
|
41
42
|
*
|
|
@@ -108,265 +109,152 @@ export declare class Webhooks extends APIResource {
|
|
|
108
109
|
*
|
|
109
110
|
* @example
|
|
110
111
|
* ```ts
|
|
111
|
-
* const
|
|
112
|
-
*
|
|
113
|
-
*
|
|
112
|
+
* const apiResponseWebhook =
|
|
113
|
+
* await client.webhooks.toggleStatus(
|
|
114
|
+
* 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
|
|
115
|
+
* );
|
|
114
116
|
* ```
|
|
115
117
|
*/
|
|
116
|
-
toggleStatus(id: string, params: WebhookToggleStatusParams, options?: RequestOptions): APIPromise<
|
|
118
|
+
toggleStatus(id: string, params: WebhookToggleStatusParams, options?: RequestOptions): APIPromise<APIResponseWebhook>;
|
|
117
119
|
}
|
|
118
120
|
/**
|
|
119
|
-
*
|
|
121
|
+
* Request and response metadata
|
|
120
122
|
*/
|
|
121
|
-
export interface
|
|
122
|
-
/**
|
|
123
|
-
* The response data (null if error)
|
|
124
|
-
*/
|
|
125
|
-
data?: WebhookCreateResponse.Data | null;
|
|
126
|
-
/**
|
|
127
|
-
* Error information
|
|
128
|
-
*/
|
|
129
|
-
error?: WebhookCreateResponse.Error | null;
|
|
123
|
+
export interface APIMeta {
|
|
130
124
|
/**
|
|
131
|
-
*
|
|
132
|
-
*/
|
|
133
|
-
meta?: WebhookCreateResponse.Meta;
|
|
134
|
-
/**
|
|
135
|
-
* Indicates whether the request was successful
|
|
136
|
-
*/
|
|
137
|
-
success?: boolean;
|
|
138
|
-
}
|
|
139
|
-
export declare namespace WebhookCreateResponse {
|
|
140
|
-
/**
|
|
141
|
-
* The response data (null if error)
|
|
125
|
+
* Unique identifier for this request (for tracing and support)
|
|
142
126
|
*/
|
|
143
|
-
|
|
144
|
-
id?: string;
|
|
145
|
-
consecutive_failures?: number;
|
|
146
|
-
created_at?: string;
|
|
147
|
-
display_name?: string;
|
|
148
|
-
endpoint_url?: string;
|
|
149
|
-
event_filters?: {
|
|
150
|
-
[key: string]: Array<string>;
|
|
151
|
-
} | null;
|
|
152
|
-
event_types?: Array<string>;
|
|
153
|
-
is_active?: boolean;
|
|
154
|
-
last_delivery_attempt_at?: string | null;
|
|
155
|
-
last_successful_delivery_at?: string | null;
|
|
156
|
-
retry_count?: number;
|
|
157
|
-
signing_secret?: string | null;
|
|
158
|
-
timeout_seconds?: number;
|
|
159
|
-
updated_at?: string | null;
|
|
160
|
-
}
|
|
127
|
+
request_id?: string;
|
|
161
128
|
/**
|
|
162
|
-
*
|
|
129
|
+
* Server timestamp when the response was generated
|
|
163
130
|
*/
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
167
|
-
*/
|
|
168
|
-
code?: string;
|
|
169
|
-
/**
|
|
170
|
-
* Additional validation error details (field-level errors)
|
|
171
|
-
*/
|
|
172
|
-
details?: {
|
|
173
|
-
[key: string]: Array<string>;
|
|
174
|
-
} | null;
|
|
175
|
-
/**
|
|
176
|
-
* URL to documentation about this error
|
|
177
|
-
*/
|
|
178
|
-
doc_url?: string | null;
|
|
179
|
-
/**
|
|
180
|
-
* Human-readable error message
|
|
181
|
-
*/
|
|
182
|
-
message?: string;
|
|
183
|
-
}
|
|
131
|
+
timestamp?: string;
|
|
184
132
|
/**
|
|
185
|
-
*
|
|
133
|
+
* API version used for this request
|
|
186
134
|
*/
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Unique identifier for this request (for tracing and support)
|
|
190
|
-
*/
|
|
191
|
-
request_id?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Server timestamp when the response was generated
|
|
194
|
-
*/
|
|
195
|
-
timestamp?: string;
|
|
196
|
-
/**
|
|
197
|
-
* API version used for this request
|
|
198
|
-
*/
|
|
199
|
-
version?: string;
|
|
200
|
-
}
|
|
135
|
+
version?: string;
|
|
201
136
|
}
|
|
202
137
|
/**
|
|
203
138
|
* Standard API response envelope for all v3 endpoints
|
|
204
139
|
*/
|
|
205
|
-
export interface
|
|
140
|
+
export interface APIResponseWebhook {
|
|
206
141
|
/**
|
|
207
142
|
* The response data (null if error)
|
|
208
143
|
*/
|
|
209
|
-
data?:
|
|
144
|
+
data?: WebhookResponse | null;
|
|
210
145
|
/**
|
|
211
146
|
* Error information
|
|
212
147
|
*/
|
|
213
|
-
error?:
|
|
148
|
+
error?: ErrorDetail | null;
|
|
214
149
|
/**
|
|
215
150
|
* Request and response metadata
|
|
216
151
|
*/
|
|
217
|
-
meta?:
|
|
152
|
+
meta?: APIMeta;
|
|
218
153
|
/**
|
|
219
154
|
* Indicates whether the request was successful
|
|
220
155
|
*/
|
|
221
156
|
success?: boolean;
|
|
222
157
|
}
|
|
223
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Error information
|
|
160
|
+
*/
|
|
161
|
+
export interface ErrorDetail {
|
|
224
162
|
/**
|
|
225
|
-
*
|
|
163
|
+
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
226
164
|
*/
|
|
227
|
-
|
|
228
|
-
id?: string;
|
|
229
|
-
consecutive_failures?: number;
|
|
230
|
-
created_at?: string;
|
|
231
|
-
display_name?: string;
|
|
232
|
-
endpoint_url?: string;
|
|
233
|
-
event_filters?: {
|
|
234
|
-
[key: string]: Array<string>;
|
|
235
|
-
} | null;
|
|
236
|
-
event_types?: Array<string>;
|
|
237
|
-
is_active?: boolean;
|
|
238
|
-
last_delivery_attempt_at?: string | null;
|
|
239
|
-
last_successful_delivery_at?: string | null;
|
|
240
|
-
retry_count?: number;
|
|
241
|
-
signing_secret?: string | null;
|
|
242
|
-
timeout_seconds?: number;
|
|
243
|
-
updated_at?: string | null;
|
|
244
|
-
}
|
|
165
|
+
code?: string;
|
|
245
166
|
/**
|
|
246
|
-
*
|
|
167
|
+
* Additional validation error details (field-level errors)
|
|
247
168
|
*/
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
*/
|
|
252
|
-
code?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Additional validation error details (field-level errors)
|
|
255
|
-
*/
|
|
256
|
-
details?: {
|
|
257
|
-
[key: string]: Array<string>;
|
|
258
|
-
} | null;
|
|
259
|
-
/**
|
|
260
|
-
* URL to documentation about this error
|
|
261
|
-
*/
|
|
262
|
-
doc_url?: string | null;
|
|
263
|
-
/**
|
|
264
|
-
* Human-readable error message
|
|
265
|
-
*/
|
|
266
|
-
message?: string;
|
|
267
|
-
}
|
|
169
|
+
details?: {
|
|
170
|
+
[key: string]: Array<string>;
|
|
171
|
+
} | null;
|
|
268
172
|
/**
|
|
269
|
-
*
|
|
173
|
+
* URL to documentation about this error
|
|
270
174
|
*/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
version?: string;
|
|
284
|
-
}
|
|
175
|
+
doc_url?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Human-readable error message
|
|
178
|
+
*/
|
|
179
|
+
message?: string;
|
|
180
|
+
}
|
|
181
|
+
export interface MutationRequest {
|
|
182
|
+
/**
|
|
183
|
+
* Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
184
|
+
* for testing integrations without actual execution
|
|
185
|
+
*/
|
|
186
|
+
sandbox?: boolean;
|
|
285
187
|
}
|
|
286
188
|
/**
|
|
287
|
-
*
|
|
189
|
+
* Pagination metadata for list responses
|
|
288
190
|
*/
|
|
289
|
-
export interface
|
|
191
|
+
export interface PaginationMeta {
|
|
290
192
|
/**
|
|
291
|
-
*
|
|
193
|
+
* Cursor-based pagination pointers
|
|
292
194
|
*/
|
|
293
|
-
|
|
195
|
+
cursors?: PaginationMeta.Cursors | null;
|
|
294
196
|
/**
|
|
295
|
-
*
|
|
197
|
+
* Whether there are more pages after this one
|
|
296
198
|
*/
|
|
297
|
-
|
|
199
|
+
has_more?: boolean;
|
|
298
200
|
/**
|
|
299
|
-
*
|
|
201
|
+
* Current page number (1-indexed)
|
|
300
202
|
*/
|
|
301
|
-
|
|
203
|
+
page?: number;
|
|
302
204
|
/**
|
|
303
|
-
*
|
|
205
|
+
* Number of items per page
|
|
304
206
|
*/
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
export declare namespace WebhookUpdateResponse {
|
|
207
|
+
page_size?: number;
|
|
308
208
|
/**
|
|
309
|
-
*
|
|
209
|
+
* Total number of items across all pages
|
|
310
210
|
*/
|
|
311
|
-
|
|
312
|
-
id?: string;
|
|
313
|
-
consecutive_failures?: number;
|
|
314
|
-
created_at?: string;
|
|
315
|
-
display_name?: string;
|
|
316
|
-
endpoint_url?: string;
|
|
317
|
-
event_filters?: {
|
|
318
|
-
[key: string]: Array<string>;
|
|
319
|
-
} | null;
|
|
320
|
-
event_types?: Array<string>;
|
|
321
|
-
is_active?: boolean;
|
|
322
|
-
last_delivery_attempt_at?: string | null;
|
|
323
|
-
last_successful_delivery_at?: string | null;
|
|
324
|
-
retry_count?: number;
|
|
325
|
-
signing_secret?: string | null;
|
|
326
|
-
timeout_seconds?: number;
|
|
327
|
-
updated_at?: string | null;
|
|
328
|
-
}
|
|
211
|
+
total_count?: number;
|
|
329
212
|
/**
|
|
330
|
-
*
|
|
213
|
+
* Total number of pages
|
|
331
214
|
*/
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
*/
|
|
336
|
-
code?: string;
|
|
337
|
-
/**
|
|
338
|
-
* Additional validation error details (field-level errors)
|
|
339
|
-
*/
|
|
340
|
-
details?: {
|
|
341
|
-
[key: string]: Array<string>;
|
|
342
|
-
} | null;
|
|
343
|
-
/**
|
|
344
|
-
* URL to documentation about this error
|
|
345
|
-
*/
|
|
346
|
-
doc_url?: string | null;
|
|
347
|
-
/**
|
|
348
|
-
* Human-readable error message
|
|
349
|
-
*/
|
|
350
|
-
message?: string;
|
|
351
|
-
}
|
|
215
|
+
total_pages?: number;
|
|
216
|
+
}
|
|
217
|
+
export declare namespace PaginationMeta {
|
|
352
218
|
/**
|
|
353
|
-
*
|
|
219
|
+
* Cursor-based pagination pointers
|
|
354
220
|
*/
|
|
355
|
-
interface
|
|
221
|
+
interface Cursors {
|
|
356
222
|
/**
|
|
357
|
-
*
|
|
223
|
+
* Cursor to fetch the next page
|
|
358
224
|
*/
|
|
359
|
-
|
|
225
|
+
after?: string | null;
|
|
360
226
|
/**
|
|
361
|
-
*
|
|
227
|
+
* Cursor to fetch the previous page
|
|
362
228
|
*/
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* API version used for this request
|
|
366
|
-
*/
|
|
367
|
-
version?: string;
|
|
229
|
+
before?: string | null;
|
|
368
230
|
}
|
|
369
231
|
}
|
|
232
|
+
export interface WebhookEventType {
|
|
233
|
+
description?: string | null;
|
|
234
|
+
display_name?: string;
|
|
235
|
+
event_type?: string | null;
|
|
236
|
+
is_active?: boolean;
|
|
237
|
+
name?: string;
|
|
238
|
+
sub_types?: Array<WebhookEventType> | null;
|
|
239
|
+
}
|
|
240
|
+
export interface WebhookResponse {
|
|
241
|
+
id?: string;
|
|
242
|
+
consecutive_failures?: number;
|
|
243
|
+
created_at?: string;
|
|
244
|
+
display_name?: string;
|
|
245
|
+
endpoint_url?: string;
|
|
246
|
+
event_filters?: {
|
|
247
|
+
[key: string]: Array<string>;
|
|
248
|
+
} | null;
|
|
249
|
+
event_types?: Array<string>;
|
|
250
|
+
is_active?: boolean;
|
|
251
|
+
last_delivery_attempt_at?: string | null;
|
|
252
|
+
last_successful_delivery_at?: string | null;
|
|
253
|
+
retry_count?: number;
|
|
254
|
+
signing_secret?: string | null;
|
|
255
|
+
timeout_seconds?: number;
|
|
256
|
+
updated_at?: string | null;
|
|
257
|
+
}
|
|
370
258
|
/**
|
|
371
259
|
* Standard API response envelope for all v3 endpoints
|
|
372
260
|
*/
|
|
@@ -378,11 +266,11 @@ export interface WebhookListResponse {
|
|
|
378
266
|
/**
|
|
379
267
|
* Error information
|
|
380
268
|
*/
|
|
381
|
-
error?:
|
|
269
|
+
error?: ErrorDetail | null;
|
|
382
270
|
/**
|
|
383
271
|
* Request and response metadata
|
|
384
272
|
*/
|
|
385
|
-
meta?:
|
|
273
|
+
meta?: APIMeta;
|
|
386
274
|
/**
|
|
387
275
|
* Indicates whether the request was successful
|
|
388
276
|
*/
|
|
@@ -396,112 +284,8 @@ export declare namespace WebhookListResponse {
|
|
|
396
284
|
/**
|
|
397
285
|
* Pagination metadata for list responses
|
|
398
286
|
*/
|
|
399
|
-
pagination?:
|
|
400
|
-
webhooks?: Array<
|
|
401
|
-
}
|
|
402
|
-
namespace Data {
|
|
403
|
-
/**
|
|
404
|
-
* Pagination metadata for list responses
|
|
405
|
-
*/
|
|
406
|
-
interface Pagination {
|
|
407
|
-
/**
|
|
408
|
-
* Cursor-based pagination pointers
|
|
409
|
-
*/
|
|
410
|
-
cursors?: Pagination.Cursors | null;
|
|
411
|
-
/**
|
|
412
|
-
* Whether there are more pages after this one
|
|
413
|
-
*/
|
|
414
|
-
has_more?: boolean;
|
|
415
|
-
/**
|
|
416
|
-
* Current page number (1-indexed)
|
|
417
|
-
*/
|
|
418
|
-
page?: number;
|
|
419
|
-
/**
|
|
420
|
-
* Number of items per page
|
|
421
|
-
*/
|
|
422
|
-
page_size?: number;
|
|
423
|
-
/**
|
|
424
|
-
* Total number of items across all pages
|
|
425
|
-
*/
|
|
426
|
-
total_count?: number;
|
|
427
|
-
/**
|
|
428
|
-
* Total number of pages
|
|
429
|
-
*/
|
|
430
|
-
total_pages?: number;
|
|
431
|
-
}
|
|
432
|
-
namespace Pagination {
|
|
433
|
-
/**
|
|
434
|
-
* Cursor-based pagination pointers
|
|
435
|
-
*/
|
|
436
|
-
interface Cursors {
|
|
437
|
-
/**
|
|
438
|
-
* Cursor to fetch the next page
|
|
439
|
-
*/
|
|
440
|
-
after?: string | null;
|
|
441
|
-
/**
|
|
442
|
-
* Cursor to fetch the previous page
|
|
443
|
-
*/
|
|
444
|
-
before?: string | null;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
interface Webhook {
|
|
448
|
-
id?: string;
|
|
449
|
-
consecutive_failures?: number;
|
|
450
|
-
created_at?: string;
|
|
451
|
-
display_name?: string;
|
|
452
|
-
endpoint_url?: string;
|
|
453
|
-
event_filters?: {
|
|
454
|
-
[key: string]: Array<string>;
|
|
455
|
-
} | null;
|
|
456
|
-
event_types?: Array<string>;
|
|
457
|
-
is_active?: boolean;
|
|
458
|
-
last_delivery_attempt_at?: string | null;
|
|
459
|
-
last_successful_delivery_at?: string | null;
|
|
460
|
-
retry_count?: number;
|
|
461
|
-
signing_secret?: string | null;
|
|
462
|
-
timeout_seconds?: number;
|
|
463
|
-
updated_at?: string | null;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Error information
|
|
468
|
-
*/
|
|
469
|
-
interface Error {
|
|
470
|
-
/**
|
|
471
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
472
|
-
*/
|
|
473
|
-
code?: string;
|
|
474
|
-
/**
|
|
475
|
-
* Additional validation error details (field-level errors)
|
|
476
|
-
*/
|
|
477
|
-
details?: {
|
|
478
|
-
[key: string]: Array<string>;
|
|
479
|
-
} | null;
|
|
480
|
-
/**
|
|
481
|
-
* URL to documentation about this error
|
|
482
|
-
*/
|
|
483
|
-
doc_url?: string | null;
|
|
484
|
-
/**
|
|
485
|
-
* Human-readable error message
|
|
486
|
-
*/
|
|
487
|
-
message?: string;
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Request and response metadata
|
|
491
|
-
*/
|
|
492
|
-
interface Meta {
|
|
493
|
-
/**
|
|
494
|
-
* Unique identifier for this request (for tracing and support)
|
|
495
|
-
*/
|
|
496
|
-
request_id?: string;
|
|
497
|
-
/**
|
|
498
|
-
* Server timestamp when the response was generated
|
|
499
|
-
*/
|
|
500
|
-
timestamp?: string;
|
|
501
|
-
/**
|
|
502
|
-
* API version used for this request
|
|
503
|
-
*/
|
|
504
|
-
version?: string;
|
|
287
|
+
pagination?: WebhooksAPI.PaginationMeta;
|
|
288
|
+
webhooks?: Array<WebhooksAPI.WebhookResponse>;
|
|
505
289
|
}
|
|
506
290
|
}
|
|
507
291
|
/**
|
|
@@ -515,11 +299,11 @@ export interface WebhookListEventTypesResponse {
|
|
|
515
299
|
/**
|
|
516
300
|
* Error information
|
|
517
301
|
*/
|
|
518
|
-
error?:
|
|
302
|
+
error?: ErrorDetail | null;
|
|
519
303
|
/**
|
|
520
304
|
* Request and response metadata
|
|
521
305
|
*/
|
|
522
|
-
meta?:
|
|
306
|
+
meta?: APIMeta;
|
|
523
307
|
/**
|
|
524
308
|
* Indicates whether the request was successful
|
|
525
309
|
*/
|
|
@@ -530,57 +314,7 @@ export declare namespace WebhookListEventTypesResponse {
|
|
|
530
314
|
* The response data (null if error)
|
|
531
315
|
*/
|
|
532
316
|
interface Data {
|
|
533
|
-
event_types?: Array<
|
|
534
|
-
}
|
|
535
|
-
namespace Data {
|
|
536
|
-
interface EventType {
|
|
537
|
-
description?: string | null;
|
|
538
|
-
display_name?: string;
|
|
539
|
-
event_type?: string | null;
|
|
540
|
-
is_active?: boolean;
|
|
541
|
-
name?: string;
|
|
542
|
-
sub_types?: Array<unknown> | null;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* Error information
|
|
547
|
-
*/
|
|
548
|
-
interface Error {
|
|
549
|
-
/**
|
|
550
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
551
|
-
*/
|
|
552
|
-
code?: string;
|
|
553
|
-
/**
|
|
554
|
-
* Additional validation error details (field-level errors)
|
|
555
|
-
*/
|
|
556
|
-
details?: {
|
|
557
|
-
[key: string]: Array<string>;
|
|
558
|
-
} | null;
|
|
559
|
-
/**
|
|
560
|
-
* URL to documentation about this error
|
|
561
|
-
*/
|
|
562
|
-
doc_url?: string | null;
|
|
563
|
-
/**
|
|
564
|
-
* Human-readable error message
|
|
565
|
-
*/
|
|
566
|
-
message?: string;
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* Request and response metadata
|
|
570
|
-
*/
|
|
571
|
-
interface Meta {
|
|
572
|
-
/**
|
|
573
|
-
* Unique identifier for this request (for tracing and support)
|
|
574
|
-
*/
|
|
575
|
-
request_id?: string;
|
|
576
|
-
/**
|
|
577
|
-
* Server timestamp when the response was generated
|
|
578
|
-
*/
|
|
579
|
-
timestamp?: string;
|
|
580
|
-
/**
|
|
581
|
-
* API version used for this request
|
|
582
|
-
*/
|
|
583
|
-
version?: string;
|
|
317
|
+
event_types?: Array<WebhooksAPI.WebhookEventType>;
|
|
584
318
|
}
|
|
585
319
|
}
|
|
586
320
|
/**
|
|
@@ -594,11 +328,11 @@ export interface WebhookListEventsResponse {
|
|
|
594
328
|
/**
|
|
595
329
|
* Error information
|
|
596
330
|
*/
|
|
597
|
-
error?:
|
|
331
|
+
error?: ErrorDetail | null;
|
|
598
332
|
/**
|
|
599
333
|
* Request and response metadata
|
|
600
334
|
*/
|
|
601
|
-
meta?:
|
|
335
|
+
meta?: APIMeta;
|
|
602
336
|
/**
|
|
603
337
|
* Indicates whether the request was successful
|
|
604
338
|
*/
|
|
@@ -613,7 +347,7 @@ export declare namespace WebhookListEventsResponse {
|
|
|
613
347
|
/**
|
|
614
348
|
* Pagination metadata for list responses
|
|
615
349
|
*/
|
|
616
|
-
pagination?:
|
|
350
|
+
pagination?: WebhooksAPI.PaginationMeta;
|
|
617
351
|
}
|
|
618
352
|
namespace Data {
|
|
619
353
|
interface Event {
|
|
@@ -629,90 +363,6 @@ export declare namespace WebhookListEventsResponse {
|
|
|
629
363
|
processing_started_at?: string | null;
|
|
630
364
|
response_body?: string | null;
|
|
631
365
|
}
|
|
632
|
-
/**
|
|
633
|
-
* Pagination metadata for list responses
|
|
634
|
-
*/
|
|
635
|
-
interface Pagination {
|
|
636
|
-
/**
|
|
637
|
-
* Cursor-based pagination pointers
|
|
638
|
-
*/
|
|
639
|
-
cursors?: Pagination.Cursors | null;
|
|
640
|
-
/**
|
|
641
|
-
* Whether there are more pages after this one
|
|
642
|
-
*/
|
|
643
|
-
has_more?: boolean;
|
|
644
|
-
/**
|
|
645
|
-
* Current page number (1-indexed)
|
|
646
|
-
*/
|
|
647
|
-
page?: number;
|
|
648
|
-
/**
|
|
649
|
-
* Number of items per page
|
|
650
|
-
*/
|
|
651
|
-
page_size?: number;
|
|
652
|
-
/**
|
|
653
|
-
* Total number of items across all pages
|
|
654
|
-
*/
|
|
655
|
-
total_count?: number;
|
|
656
|
-
/**
|
|
657
|
-
* Total number of pages
|
|
658
|
-
*/
|
|
659
|
-
total_pages?: number;
|
|
660
|
-
}
|
|
661
|
-
namespace Pagination {
|
|
662
|
-
/**
|
|
663
|
-
* Cursor-based pagination pointers
|
|
664
|
-
*/
|
|
665
|
-
interface Cursors {
|
|
666
|
-
/**
|
|
667
|
-
* Cursor to fetch the next page
|
|
668
|
-
*/
|
|
669
|
-
after?: string | null;
|
|
670
|
-
/**
|
|
671
|
-
* Cursor to fetch the previous page
|
|
672
|
-
*/
|
|
673
|
-
before?: string | null;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* Error information
|
|
679
|
-
*/
|
|
680
|
-
interface Error {
|
|
681
|
-
/**
|
|
682
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
683
|
-
*/
|
|
684
|
-
code?: string;
|
|
685
|
-
/**
|
|
686
|
-
* Additional validation error details (field-level errors)
|
|
687
|
-
*/
|
|
688
|
-
details?: {
|
|
689
|
-
[key: string]: Array<string>;
|
|
690
|
-
} | null;
|
|
691
|
-
/**
|
|
692
|
-
* URL to documentation about this error
|
|
693
|
-
*/
|
|
694
|
-
doc_url?: string | null;
|
|
695
|
-
/**
|
|
696
|
-
* Human-readable error message
|
|
697
|
-
*/
|
|
698
|
-
message?: string;
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* Request and response metadata
|
|
702
|
-
*/
|
|
703
|
-
interface Meta {
|
|
704
|
-
/**
|
|
705
|
-
* Unique identifier for this request (for tracing and support)
|
|
706
|
-
*/
|
|
707
|
-
request_id?: string;
|
|
708
|
-
/**
|
|
709
|
-
* Server timestamp when the response was generated
|
|
710
|
-
*/
|
|
711
|
-
timestamp?: string;
|
|
712
|
-
/**
|
|
713
|
-
* API version used for this request
|
|
714
|
-
*/
|
|
715
|
-
version?: string;
|
|
716
366
|
}
|
|
717
367
|
}
|
|
718
368
|
/**
|
|
@@ -726,11 +376,11 @@ export interface WebhookRotateSecretResponse {
|
|
|
726
376
|
/**
|
|
727
377
|
* Error information
|
|
728
378
|
*/
|
|
729
|
-
error?:
|
|
379
|
+
error?: ErrorDetail | null;
|
|
730
380
|
/**
|
|
731
381
|
* Request and response metadata
|
|
732
382
|
*/
|
|
733
|
-
meta?:
|
|
383
|
+
meta?: APIMeta;
|
|
734
384
|
/**
|
|
735
385
|
* Indicates whether the request was successful
|
|
736
386
|
*/
|
|
@@ -743,46 +393,6 @@ export declare namespace WebhookRotateSecretResponse {
|
|
|
743
393
|
interface Data {
|
|
744
394
|
signing_secret?: string;
|
|
745
395
|
}
|
|
746
|
-
/**
|
|
747
|
-
* Error information
|
|
748
|
-
*/
|
|
749
|
-
interface Error {
|
|
750
|
-
/**
|
|
751
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
752
|
-
*/
|
|
753
|
-
code?: string;
|
|
754
|
-
/**
|
|
755
|
-
* Additional validation error details (field-level errors)
|
|
756
|
-
*/
|
|
757
|
-
details?: {
|
|
758
|
-
[key: string]: Array<string>;
|
|
759
|
-
} | null;
|
|
760
|
-
/**
|
|
761
|
-
* URL to documentation about this error
|
|
762
|
-
*/
|
|
763
|
-
doc_url?: string | null;
|
|
764
|
-
/**
|
|
765
|
-
* Human-readable error message
|
|
766
|
-
*/
|
|
767
|
-
message?: string;
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* Request and response metadata
|
|
771
|
-
*/
|
|
772
|
-
interface Meta {
|
|
773
|
-
/**
|
|
774
|
-
* Unique identifier for this request (for tracing and support)
|
|
775
|
-
*/
|
|
776
|
-
request_id?: string;
|
|
777
|
-
/**
|
|
778
|
-
* Server timestamp when the response was generated
|
|
779
|
-
*/
|
|
780
|
-
timestamp?: string;
|
|
781
|
-
/**
|
|
782
|
-
* API version used for this request
|
|
783
|
-
*/
|
|
784
|
-
version?: string;
|
|
785
|
-
}
|
|
786
396
|
}
|
|
787
397
|
/**
|
|
788
398
|
* Standard API response envelope for all v3 endpoints
|
|
@@ -795,11 +405,11 @@ export interface WebhookTestResponse {
|
|
|
795
405
|
/**
|
|
796
406
|
* Error information
|
|
797
407
|
*/
|
|
798
|
-
error?:
|
|
408
|
+
error?: ErrorDetail | null;
|
|
799
409
|
/**
|
|
800
410
|
* Request and response metadata
|
|
801
411
|
*/
|
|
802
|
-
meta?:
|
|
412
|
+
meta?: APIMeta;
|
|
803
413
|
/**
|
|
804
414
|
* Indicates whether the request was successful
|
|
805
415
|
*/
|
|
@@ -813,130 +423,6 @@ export declare namespace WebhookTestResponse {
|
|
|
813
423
|
message?: string;
|
|
814
424
|
success?: boolean;
|
|
815
425
|
}
|
|
816
|
-
/**
|
|
817
|
-
* Error information
|
|
818
|
-
*/
|
|
819
|
-
interface Error {
|
|
820
|
-
/**
|
|
821
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
822
|
-
*/
|
|
823
|
-
code?: string;
|
|
824
|
-
/**
|
|
825
|
-
* Additional validation error details (field-level errors)
|
|
826
|
-
*/
|
|
827
|
-
details?: {
|
|
828
|
-
[key: string]: Array<string>;
|
|
829
|
-
} | null;
|
|
830
|
-
/**
|
|
831
|
-
* URL to documentation about this error
|
|
832
|
-
*/
|
|
833
|
-
doc_url?: string | null;
|
|
834
|
-
/**
|
|
835
|
-
* Human-readable error message
|
|
836
|
-
*/
|
|
837
|
-
message?: string;
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* Request and response metadata
|
|
841
|
-
*/
|
|
842
|
-
interface Meta {
|
|
843
|
-
/**
|
|
844
|
-
* Unique identifier for this request (for tracing and support)
|
|
845
|
-
*/
|
|
846
|
-
request_id?: string;
|
|
847
|
-
/**
|
|
848
|
-
* Server timestamp when the response was generated
|
|
849
|
-
*/
|
|
850
|
-
timestamp?: string;
|
|
851
|
-
/**
|
|
852
|
-
* API version used for this request
|
|
853
|
-
*/
|
|
854
|
-
version?: string;
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
/**
|
|
858
|
-
* Standard API response envelope for all v3 endpoints
|
|
859
|
-
*/
|
|
860
|
-
export interface WebhookToggleStatusResponse {
|
|
861
|
-
/**
|
|
862
|
-
* The response data (null if error)
|
|
863
|
-
*/
|
|
864
|
-
data?: WebhookToggleStatusResponse.Data | null;
|
|
865
|
-
/**
|
|
866
|
-
* Error information
|
|
867
|
-
*/
|
|
868
|
-
error?: WebhookToggleStatusResponse.Error | null;
|
|
869
|
-
/**
|
|
870
|
-
* Request and response metadata
|
|
871
|
-
*/
|
|
872
|
-
meta?: WebhookToggleStatusResponse.Meta;
|
|
873
|
-
/**
|
|
874
|
-
* Indicates whether the request was successful
|
|
875
|
-
*/
|
|
876
|
-
success?: boolean;
|
|
877
|
-
}
|
|
878
|
-
export declare namespace WebhookToggleStatusResponse {
|
|
879
|
-
/**
|
|
880
|
-
* The response data (null if error)
|
|
881
|
-
*/
|
|
882
|
-
interface Data {
|
|
883
|
-
id?: string;
|
|
884
|
-
consecutive_failures?: number;
|
|
885
|
-
created_at?: string;
|
|
886
|
-
display_name?: string;
|
|
887
|
-
endpoint_url?: string;
|
|
888
|
-
event_filters?: {
|
|
889
|
-
[key: string]: Array<string>;
|
|
890
|
-
} | null;
|
|
891
|
-
event_types?: Array<string>;
|
|
892
|
-
is_active?: boolean;
|
|
893
|
-
last_delivery_attempt_at?: string | null;
|
|
894
|
-
last_successful_delivery_at?: string | null;
|
|
895
|
-
retry_count?: number;
|
|
896
|
-
signing_secret?: string | null;
|
|
897
|
-
timeout_seconds?: number;
|
|
898
|
-
updated_at?: string | null;
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
* Error information
|
|
902
|
-
*/
|
|
903
|
-
interface Error {
|
|
904
|
-
/**
|
|
905
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
906
|
-
*/
|
|
907
|
-
code?: string;
|
|
908
|
-
/**
|
|
909
|
-
* Additional validation error details (field-level errors)
|
|
910
|
-
*/
|
|
911
|
-
details?: {
|
|
912
|
-
[key: string]: Array<string>;
|
|
913
|
-
} | null;
|
|
914
|
-
/**
|
|
915
|
-
* URL to documentation about this error
|
|
916
|
-
*/
|
|
917
|
-
doc_url?: string | null;
|
|
918
|
-
/**
|
|
919
|
-
* Human-readable error message
|
|
920
|
-
*/
|
|
921
|
-
message?: string;
|
|
922
|
-
}
|
|
923
|
-
/**
|
|
924
|
-
* Request and response metadata
|
|
925
|
-
*/
|
|
926
|
-
interface Meta {
|
|
927
|
-
/**
|
|
928
|
-
* Unique identifier for this request (for tracing and support)
|
|
929
|
-
*/
|
|
930
|
-
request_id?: string;
|
|
931
|
-
/**
|
|
932
|
-
* Server timestamp when the response was generated
|
|
933
|
-
*/
|
|
934
|
-
timestamp?: string;
|
|
935
|
-
/**
|
|
936
|
-
* API version used for this request
|
|
937
|
-
*/
|
|
938
|
-
version?: string;
|
|
939
|
-
}
|
|
940
426
|
}
|
|
941
427
|
export interface WebhookCreateParams {
|
|
942
428
|
/**
|
|
@@ -1159,6 +645,6 @@ export interface WebhookToggleStatusParams {
|
|
|
1159
645
|
'x-profile-id'?: string;
|
|
1160
646
|
}
|
|
1161
647
|
export declare namespace Webhooks {
|
|
1162
|
-
export { type
|
|
648
|
+
export { type APIMeta as APIMeta, type APIResponseWebhook as APIResponseWebhook, type ErrorDetail as ErrorDetail, type MutationRequest as MutationRequest, type PaginationMeta as PaginationMeta, type WebhookEventType as WebhookEventType, type WebhookResponse as WebhookResponse, type WebhookListResponse as WebhookListResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookListEventTypesParams as WebhookListEventTypesParams, type WebhookListEventsParams as WebhookListEventsParams, type WebhookRotateSecretParams as WebhookRotateSecretParams, type WebhookTestParams as WebhookTestParams, type WebhookToggleStatusParams as WebhookToggleStatusParams, };
|
|
1163
649
|
}
|
|
1164
650
|
//# sourceMappingURL=webhooks.d.ts.map
|