@tiempo/sdk 0.0.0-stage → 0.1.1

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 (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +269 -2
  3. package/dist/cjs/client.d.ts +24 -0
  4. package/dist/cjs/client.js +42 -0
  5. package/dist/cjs/core.d.ts +72 -0
  6. package/dist/cjs/core.js +187 -0
  7. package/dist/cjs/crypto.d.ts +5 -0
  8. package/dist/cjs/crypto.js +29 -0
  9. package/dist/cjs/errors.d.ts +86 -0
  10. package/dist/cjs/errors.js +134 -0
  11. package/dist/cjs/events.d.ts +23 -0
  12. package/dist/cjs/events.js +10 -0
  13. package/dist/cjs/generated/events.d.ts +51 -0
  14. package/dist/cjs/generated/events.js +51 -0
  15. package/dist/cjs/generated/meta.d.ts +4 -0
  16. package/dist/cjs/generated/meta.js +8 -0
  17. package/dist/cjs/generated/openapi.d.ts +3721 -0
  18. package/dist/cjs/generated/openapi.js +2 -0
  19. package/dist/cjs/generated/resources.d.ts +416 -0
  20. package/dist/cjs/generated/resources.js +621 -0
  21. package/dist/cjs/generated/types.d.ts +134 -0
  22. package/dist/cjs/generated/types.js +3 -0
  23. package/dist/cjs/index.d.ts +16 -0
  24. package/dist/cjs/index.js +49 -0
  25. package/dist/cjs/list.d.ts +43 -0
  26. package/dist/cjs/list.js +78 -0
  27. package/dist/cjs/package.json +1 -0
  28. package/dist/cjs/query.d.ts +8 -0
  29. package/dist/cjs/query.js +47 -0
  30. package/dist/cjs/shared.d.ts +7 -0
  31. package/dist/cjs/shared.js +2 -0
  32. package/dist/cjs/webhooks.d.ts +34 -0
  33. package/dist/cjs/webhooks.js +115 -0
  34. package/dist/esm/client.d.ts +24 -0
  35. package/dist/esm/client.js +38 -0
  36. package/dist/esm/core.d.ts +72 -0
  37. package/dist/esm/core.js +181 -0
  38. package/dist/esm/crypto.d.ts +5 -0
  39. package/dist/esm/crypto.js +26 -0
  40. package/dist/esm/errors.d.ts +86 -0
  41. package/dist/esm/errors.js +120 -0
  42. package/dist/esm/events.d.ts +23 -0
  43. package/dist/esm/events.js +8 -0
  44. package/dist/esm/generated/events.d.ts +51 -0
  45. package/dist/esm/generated/events.js +48 -0
  46. package/dist/esm/generated/meta.d.ts +4 -0
  47. package/dist/esm/generated/meta.js +5 -0
  48. package/dist/esm/generated/openapi.d.ts +3721 -0
  49. package/dist/esm/generated/openapi.js +1 -0
  50. package/dist/esm/generated/resources.d.ts +416 -0
  51. package/dist/esm/generated/resources.js +603 -0
  52. package/dist/esm/generated/types.d.ts +134 -0
  53. package/dist/esm/generated/types.js +2 -0
  54. package/dist/esm/index.d.ts +16 -0
  55. package/dist/esm/index.js +10 -0
  56. package/dist/esm/list.d.ts +43 -0
  57. package/dist/esm/list.js +74 -0
  58. package/dist/esm/package.json +1 -0
  59. package/dist/esm/query.d.ts +8 -0
  60. package/dist/esm/query.js +43 -0
  61. package/dist/esm/shared.d.ts +7 -0
  62. package/dist/esm/shared.js +1 -0
  63. package/dist/esm/webhooks.d.ts +34 -0
  64. package/dist/esm/webhooks.js +109 -0
  65. package/package.json +74 -4
@@ -0,0 +1,603 @@
1
+ // Code generated by scripts/generate.mjs from openapi.json. DO NOT EDIT.
2
+ import { encodePath } from '../query.js';
3
+ /** `tiempo.accounts` */
4
+ export class AccountsResource {
5
+ core;
6
+ constructor(core) {
7
+ this.core = core;
8
+ }
9
+ /**
10
+ * `GET /v1/accounts`
11
+ *
12
+ * Await for one page, or `for await` to iterate every item.
13
+ */
14
+ list(params, options) {
15
+ return this.core.list({ method: "GET", path: `/v1/accounts`, query: params, options }, true);
16
+ }
17
+ /**
18
+ * `POST /v1/accounts`
19
+ */
20
+ create(params, options) {
21
+ return this.core.request({ method: "POST", path: `/v1/accounts`, body: params, options });
22
+ }
23
+ /**
24
+ * `GET /v1/accounts/{id}`
25
+ */
26
+ get(id, options) {
27
+ return this.core.request({ method: "GET", path: `/v1/accounts/${encodePath(id)}`, options });
28
+ }
29
+ /**
30
+ * `POST /v1/accounts/{id}`
31
+ */
32
+ update(id, params, options) {
33
+ return this.core.request({ method: "POST", path: `/v1/accounts/${encodePath(id)}`, body: params, options });
34
+ }
35
+ /**
36
+ * `DELETE /v1/accounts/{id}`
37
+ */
38
+ delete(id, options) {
39
+ return this.core.request({ method: "DELETE", path: `/v1/accounts/${encodePath(id)}`, options });
40
+ }
41
+ }
42
+ /** `tiempo.attendees` */
43
+ export class AttendeesResource {
44
+ core;
45
+ constructor(core) {
46
+ this.core = core;
47
+ }
48
+ /**
49
+ * `GET /v1/bookings/{id}/attendees` (business-scoped: needs an account)
50
+ *
51
+ * Await for one page, or `for await` to iterate every item.
52
+ */
53
+ list(id, params, options) {
54
+ return this.core.list({ method: "GET", path: `/v1/bookings/${encodePath(id)}/attendees`, query: params, options }, true);
55
+ }
56
+ /**
57
+ * `POST /v1/bookings/{id}/attendees` (business-scoped: needs an account)
58
+ */
59
+ create(id, params, options) {
60
+ return this.core.request({ method: "POST", path: `/v1/bookings/${encodePath(id)}/attendees`, body: params, options });
61
+ }
62
+ /**
63
+ * `GET /v1/attendees/{id}` (business-scoped: needs an account)
64
+ */
65
+ get(id, options) {
66
+ return this.core.request({ method: "GET", path: `/v1/attendees/${encodePath(id)}`, options });
67
+ }
68
+ /**
69
+ * `POST /v1/attendees/{id}` (business-scoped: needs an account)
70
+ */
71
+ update(id, params, options) {
72
+ return this.core.request({ method: "POST", path: `/v1/attendees/${encodePath(id)}`, body: params, options });
73
+ }
74
+ /**
75
+ * `POST /v1/attendees/{id}/cancel` (business-scoped: needs an account)
76
+ */
77
+ cancel(id, params, options) {
78
+ return this.core.request({ method: "POST", path: `/v1/attendees/${encodePath(id)}/cancel`, body: params, options });
79
+ }
80
+ /**
81
+ * `POST /v1/attendees/{id}/complete` (business-scoped: needs an account)
82
+ */
83
+ complete(id, options) {
84
+ return this.core.request({ method: "POST", path: `/v1/attendees/${encodePath(id)}/complete`, options });
85
+ }
86
+ /**
87
+ * `POST /v1/attendees/{id}/confirm` (business-scoped: needs an account)
88
+ */
89
+ confirm(id, options) {
90
+ return this.core.request({ method: "POST", path: `/v1/attendees/${encodePath(id)}/confirm`, options });
91
+ }
92
+ /**
93
+ * `POST /v1/attendees/{id}/no_show` (business-scoped: needs an account)
94
+ */
95
+ noShow(id, options) {
96
+ return this.core.request({ method: "POST", path: `/v1/attendees/${encodePath(id)}/no_show`, options });
97
+ }
98
+ }
99
+ /** `tiempo.availability` */
100
+ export class AvailabilityResource {
101
+ core;
102
+ constructor(core) {
103
+ this.core = core;
104
+ }
105
+ /**
106
+ * `GET /v1/availability/calendar` (business-scoped: needs an account)
107
+ */
108
+ calendar(params, options) {
109
+ return this.core.request({ method: "GET", path: `/v1/availability/calendar`, query: params, options });
110
+ }
111
+ /**
112
+ * `POST /v1/availability` (business-scoped: needs an account)
113
+ */
114
+ search(params, options) {
115
+ return this.core.request({ method: "POST", path: `/v1/availability`, body: params, readOnly: true, options });
116
+ }
117
+ }
118
+ /** `tiempo.blocks` */
119
+ export class BlocksResource {
120
+ core;
121
+ constructor(core) {
122
+ this.core = core;
123
+ }
124
+ /**
125
+ * `GET /v1/blocks` (business-scoped: needs an account)
126
+ *
127
+ * Await for one page, or `for await` to iterate every item.
128
+ */
129
+ list(params, options) {
130
+ return this.core.list({ method: "GET", path: `/v1/blocks`, query: params, options }, true);
131
+ }
132
+ /**
133
+ * `POST /v1/blocks` (business-scoped: needs an account)
134
+ */
135
+ create(params, options) {
136
+ return this.core.request({ method: "POST", path: `/v1/blocks`, body: params, options });
137
+ }
138
+ /**
139
+ * `GET /v1/blocks/{id}` (business-scoped: needs an account)
140
+ */
141
+ get(id, options) {
142
+ return this.core.request({ method: "GET", path: `/v1/blocks/${encodePath(id)}`, options });
143
+ }
144
+ /**
145
+ * `POST /v1/blocks/{id}` (business-scoped: needs an account)
146
+ */
147
+ update(id, params, options) {
148
+ return this.core.request({ method: "POST", path: `/v1/blocks/${encodePath(id)}`, body: params, options });
149
+ }
150
+ /**
151
+ * `DELETE /v1/blocks/{id}` (business-scoped: needs an account)
152
+ */
153
+ delete(id, options) {
154
+ return this.core.request({ method: "DELETE", path: `/v1/blocks/${encodePath(id)}`, options });
155
+ }
156
+ }
157
+ /** `tiempo.bookings` */
158
+ export class BookingsResource {
159
+ core;
160
+ constructor(core) {
161
+ this.core = core;
162
+ }
163
+ /**
164
+ * `GET /v1/bookings` (business-scoped: needs an account)
165
+ *
166
+ * Await for one page, or `for await` to iterate every item.
167
+ */
168
+ list(params, options) {
169
+ return this.core.list({ method: "GET", path: `/v1/bookings`, query: params, options }, true);
170
+ }
171
+ /**
172
+ * `POST /v1/bookings` (business-scoped: needs an account)
173
+ */
174
+ create(params, options) {
175
+ return this.core.request({ method: "POST", path: `/v1/bookings`, body: params, options });
176
+ }
177
+ /**
178
+ * `GET /v1/bookings/{id}` (business-scoped: needs an account)
179
+ */
180
+ get(id, options) {
181
+ return this.core.request({ method: "GET", path: `/v1/bookings/${encodePath(id)}`, options });
182
+ }
183
+ /**
184
+ * `POST /v1/bookings/{id}` (business-scoped: needs an account)
185
+ */
186
+ update(id, params, options) {
187
+ return this.core.request({ method: "POST", path: `/v1/bookings/${encodePath(id)}`, body: params, options });
188
+ }
189
+ /**
190
+ * `POST /v1/bookings/{id}/cancel` (business-scoped: needs an account)
191
+ */
192
+ cancel(id, params, options) {
193
+ return this.core.request({ method: "POST", path: `/v1/bookings/${encodePath(id)}/cancel`, body: params, options });
194
+ }
195
+ /**
196
+ * `POST /v1/bookings/{id}/complete` (business-scoped: needs an account)
197
+ */
198
+ complete(id, options) {
199
+ return this.core.request({ method: "POST", path: `/v1/bookings/${encodePath(id)}/complete`, options });
200
+ }
201
+ /**
202
+ * `POST /v1/bookings/{id}/confirm` (business-scoped: needs an account)
203
+ */
204
+ confirm(id, options) {
205
+ return this.core.request({ method: "POST", path: `/v1/bookings/${encodePath(id)}/confirm`, options });
206
+ }
207
+ /**
208
+ * `POST /v1/bookings/import` (business-scoped: needs an account)
209
+ *
210
+ * Returns a single page; this endpoint does not paginate.
211
+ */
212
+ import(params, options) {
213
+ return this.core.list({ method: "POST", path: `/v1/bookings/import`, body: params, options }, false);
214
+ }
215
+ /**
216
+ * `POST /v1/bookings/{id}/no_show` (business-scoped: needs an account)
217
+ */
218
+ noShow(id, options) {
219
+ return this.core.request({ method: "POST", path: `/v1/bookings/${encodePath(id)}/no_show`, options });
220
+ }
221
+ /**
222
+ * `POST /v1/bookings/{id}/reschedule` (business-scoped: needs an account)
223
+ */
224
+ reschedule(id, params, options) {
225
+ return this.core.request({ method: "POST", path: `/v1/bookings/${encodePath(id)}/reschedule`, body: params, options });
226
+ }
227
+ }
228
+ /** `tiempo.conflictPreviews` */
229
+ export class ConflictPreviewsResource {
230
+ core;
231
+ constructor(core) {
232
+ this.core = core;
233
+ }
234
+ /**
235
+ * `POST /v1/conflict_previews` (business-scoped: needs an account)
236
+ */
237
+ create(params, options) {
238
+ return this.core.request({ method: "POST", path: `/v1/conflict_previews`, body: params, options });
239
+ }
240
+ }
241
+ /** `tiempo.events` */
242
+ export class EventsResource {
243
+ core;
244
+ constructor(core) {
245
+ this.core = core;
246
+ }
247
+ /**
248
+ * `GET /v1/events` (business-scoped: needs an account)
249
+ *
250
+ * Await for one page, or `for await` to iterate every item.
251
+ */
252
+ list(params, options) {
253
+ return this.core.list({ method: "GET", path: `/v1/events`, query: params, options }, true);
254
+ }
255
+ /**
256
+ * `GET /v1/events/{id}`
257
+ */
258
+ get(id, options) {
259
+ return this.core.request({ method: "GET", path: `/v1/events/${encodePath(id)}`, options });
260
+ }
261
+ /**
262
+ * `GET /v1/events/{id}/deliveries`
263
+ *
264
+ * Returns a single page; this endpoint does not paginate.
265
+ */
266
+ deliveries(id, options) {
267
+ return this.core.list({ method: "GET", path: `/v1/events/${encodePath(id)}/deliveries`, options }, false);
268
+ }
269
+ /**
270
+ * `POST /v1/events/{id}/resend`
271
+ */
272
+ resend(id, params, options) {
273
+ return this.core.request({ method: "POST", path: `/v1/events/${encodePath(id)}/resend`, body: params, options });
274
+ }
275
+ }
276
+ /** `tiempo.locations` */
277
+ export class LocationsResource {
278
+ core;
279
+ constructor(core) {
280
+ this.core = core;
281
+ }
282
+ /**
283
+ * `GET /v1/locations` (business-scoped: needs an account)
284
+ *
285
+ * Await for one page, or `for await` to iterate every item.
286
+ */
287
+ list(params, options) {
288
+ return this.core.list({ method: "GET", path: `/v1/locations`, query: params, options }, true);
289
+ }
290
+ /**
291
+ * `POST /v1/locations` (business-scoped: needs an account)
292
+ */
293
+ create(params, options) {
294
+ return this.core.request({ method: "POST", path: `/v1/locations`, body: params, options });
295
+ }
296
+ /**
297
+ * `GET /v1/locations/{id}` (business-scoped: needs an account)
298
+ */
299
+ get(id, options) {
300
+ return this.core.request({ method: "GET", path: `/v1/locations/${encodePath(id)}`, options });
301
+ }
302
+ /**
303
+ * `POST /v1/locations/{id}` (business-scoped: needs an account)
304
+ */
305
+ update(id, params, options) {
306
+ return this.core.request({ method: "POST", path: `/v1/locations/${encodePath(id)}`, body: params, options });
307
+ }
308
+ /**
309
+ * `DELETE /v1/locations/{id}` (business-scoped: needs an account)
310
+ */
311
+ delete(id, options) {
312
+ return this.core.request({ method: "DELETE", path: `/v1/locations/${encodePath(id)}`, options });
313
+ }
314
+ }
315
+ /** `tiempo.resources` */
316
+ export class ResourcesResource {
317
+ core;
318
+ constructor(core) {
319
+ this.core = core;
320
+ }
321
+ /**
322
+ * `GET /v1/resources` (business-scoped: needs an account)
323
+ *
324
+ * Await for one page, or `for await` to iterate every item.
325
+ */
326
+ list(params, options) {
327
+ return this.core.list({ method: "GET", path: `/v1/resources`, query: params, options }, true);
328
+ }
329
+ /**
330
+ * `POST /v1/resources` (business-scoped: needs an account)
331
+ */
332
+ create(params, options) {
333
+ return this.core.request({ method: "POST", path: `/v1/resources`, body: params, options });
334
+ }
335
+ /**
336
+ * `GET /v1/resources/{id}` (business-scoped: needs an account)
337
+ */
338
+ get(id, options) {
339
+ return this.core.request({ method: "GET", path: `/v1/resources/${encodePath(id)}`, options });
340
+ }
341
+ /**
342
+ * `POST /v1/resources/{id}` (business-scoped: needs an account)
343
+ */
344
+ update(id, params, options) {
345
+ return this.core.request({ method: "POST", path: `/v1/resources/${encodePath(id)}`, body: params, options });
346
+ }
347
+ /**
348
+ * `DELETE /v1/resources/{id}` (business-scoped: needs an account)
349
+ */
350
+ delete(id, options) {
351
+ return this.core.request({ method: "DELETE", path: `/v1/resources/${encodePath(id)}`, options });
352
+ }
353
+ /**
354
+ * `POST /v1/resources/{id}/archive` (business-scoped: needs an account)
355
+ */
356
+ archive(id, options) {
357
+ return this.core.request({ method: "POST", path: `/v1/resources/${encodePath(id)}/archive`, options });
358
+ }
359
+ /**
360
+ * `POST /v1/resources/{id}/unarchive` (business-scoped: needs an account)
361
+ */
362
+ unarchive(id, options) {
363
+ return this.core.request({ method: "POST", path: `/v1/resources/${encodePath(id)}/unarchive`, options });
364
+ }
365
+ }
366
+ /** `tiempo.scheduleOverrides` */
367
+ export class ScheduleOverridesResource {
368
+ core;
369
+ constructor(core) {
370
+ this.core = core;
371
+ }
372
+ /**
373
+ * `GET /v1/schedule_overrides` (business-scoped: needs an account)
374
+ *
375
+ * Await for one page, or `for await` to iterate every item.
376
+ */
377
+ list(params, options) {
378
+ return this.core.list({ method: "GET", path: `/v1/schedule_overrides`, query: params, options }, true);
379
+ }
380
+ /**
381
+ * `POST /v1/schedule_overrides` (business-scoped: needs an account)
382
+ */
383
+ create(params, options) {
384
+ return this.core.request({ method: "POST", path: `/v1/schedule_overrides`, body: params, options });
385
+ }
386
+ /**
387
+ * `GET /v1/schedule_overrides/{id}` (business-scoped: needs an account)
388
+ */
389
+ get(id, options) {
390
+ return this.core.request({ method: "GET", path: `/v1/schedule_overrides/${encodePath(id)}`, options });
391
+ }
392
+ /**
393
+ * `POST /v1/schedule_overrides/{id}` (business-scoped: needs an account)
394
+ */
395
+ update(id, params, options) {
396
+ return this.core.request({ method: "POST", path: `/v1/schedule_overrides/${encodePath(id)}`, body: params, options });
397
+ }
398
+ /**
399
+ * `DELETE /v1/schedule_overrides/{id}` (business-scoped: needs an account)
400
+ */
401
+ delete(id, options) {
402
+ return this.core.request({ method: "DELETE", path: `/v1/schedule_overrides/${encodePath(id)}`, options });
403
+ }
404
+ }
405
+ /** `tiempo.schedules` */
406
+ export class SchedulesResource {
407
+ core;
408
+ constructor(core) {
409
+ this.core = core;
410
+ }
411
+ /**
412
+ * `GET /v1/schedules` (business-scoped: needs an account)
413
+ *
414
+ * Await for one page, or `for await` to iterate every item.
415
+ */
416
+ list(params, options) {
417
+ return this.core.list({ method: "GET", path: `/v1/schedules`, query: params, options }, true);
418
+ }
419
+ /**
420
+ * `POST /v1/schedules` (business-scoped: needs an account)
421
+ */
422
+ create(params, options) {
423
+ return this.core.request({ method: "POST", path: `/v1/schedules`, body: params, options });
424
+ }
425
+ /**
426
+ * `GET /v1/schedules/{id}` (business-scoped: needs an account)
427
+ */
428
+ get(id, options) {
429
+ return this.core.request({ method: "GET", path: `/v1/schedules/${encodePath(id)}`, options });
430
+ }
431
+ /**
432
+ * `POST /v1/schedules/{id}` (business-scoped: needs an account)
433
+ */
434
+ update(id, params, options) {
435
+ return this.core.request({ method: "POST", path: `/v1/schedules/${encodePath(id)}`, body: params, options });
436
+ }
437
+ /**
438
+ * `DELETE /v1/schedules/{id}` (business-scoped: needs an account)
439
+ */
440
+ delete(id, options) {
441
+ return this.core.request({ method: "DELETE", path: `/v1/schedules/${encodePath(id)}`, options });
442
+ }
443
+ }
444
+ /** `tiempo.series` */
445
+ export class SeriesResource {
446
+ core;
447
+ constructor(core) {
448
+ this.core = core;
449
+ }
450
+ /**
451
+ * `GET /v1/series` (business-scoped: needs an account)
452
+ *
453
+ * Await for one page, or `for await` to iterate every item.
454
+ */
455
+ list(params, options) {
456
+ return this.core.list({ method: "GET", path: `/v1/series`, query: params, options }, true);
457
+ }
458
+ /**
459
+ * `POST /v1/series` (business-scoped: needs an account)
460
+ */
461
+ create(params, options) {
462
+ return this.core.request({ method: "POST", path: `/v1/series`, body: params, options });
463
+ }
464
+ /**
465
+ * `GET /v1/series/{id}` (business-scoped: needs an account)
466
+ */
467
+ get(id, options) {
468
+ return this.core.request({ method: "GET", path: `/v1/series/${encodePath(id)}`, options });
469
+ }
470
+ /**
471
+ * `POST /v1/series/{id}` (business-scoped: needs an account)
472
+ */
473
+ update(id, params, options) {
474
+ return this.core.request({ method: "POST", path: `/v1/series/${encodePath(id)}`, body: params, options });
475
+ }
476
+ /**
477
+ * `POST /v1/series/{id}/cancel` (business-scoped: needs an account)
478
+ */
479
+ cancel(id, params, options) {
480
+ return this.core.request({ method: "POST", path: `/v1/series/${encodePath(id)}/cancel`, body: params, options });
481
+ }
482
+ /**
483
+ * `GET /v1/series/{id}/skipped_occurrences` (business-scoped: needs an account)
484
+ *
485
+ * Returns a single page; this endpoint does not paginate.
486
+ */
487
+ skipped(id, options) {
488
+ return this.core.list({ method: "GET", path: `/v1/series/${encodePath(id)}/skipped_occurrences`, options }, false);
489
+ }
490
+ /**
491
+ * `POST /v1/series/{id}/split` (business-scoped: needs an account)
492
+ */
493
+ split(id, params, options) {
494
+ return this.core.request({ method: "POST", path: `/v1/series/${encodePath(id)}/split`, body: params, options });
495
+ }
496
+ }
497
+ /** `tiempo.usage` */
498
+ export class UsageResource {
499
+ core;
500
+ constructor(core) {
501
+ this.core = core;
502
+ }
503
+ /**
504
+ * `GET /v1/usage`
505
+ */
506
+ get(params, options) {
507
+ return this.core.request({ method: "GET", path: `/v1/usage`, query: params, options });
508
+ }
509
+ /**
510
+ * `GET /v1/usage/statements`
511
+ *
512
+ * Returns a single page; this endpoint does not paginate.
513
+ */
514
+ statements(options) {
515
+ return this.core.list({ method: "GET", path: `/v1/usage/statements`, options }, false);
516
+ }
517
+ }
518
+ /** `tiempo.webhookEndpoints` */
519
+ export class WebhookEndpointsResource {
520
+ core;
521
+ constructor(core) {
522
+ this.core = core;
523
+ }
524
+ /**
525
+ * `GET /v1/webhook_endpoints`
526
+ *
527
+ * Await for one page, or `for await` to iterate every item.
528
+ */
529
+ list(params, options) {
530
+ return this.core.list({ method: "GET", path: `/v1/webhook_endpoints`, query: params, options }, true);
531
+ }
532
+ /**
533
+ * `POST /v1/webhook_endpoints`
534
+ */
535
+ create(params, options) {
536
+ return this.core.request({ method: "POST", path: `/v1/webhook_endpoints`, body: params, options });
537
+ }
538
+ /**
539
+ * `GET /v1/webhook_endpoints/{id}`
540
+ */
541
+ get(id, options) {
542
+ return this.core.request({ method: "GET", path: `/v1/webhook_endpoints/${encodePath(id)}`, options });
543
+ }
544
+ /**
545
+ * `POST /v1/webhook_endpoints/{id}`
546
+ */
547
+ update(id, params, options) {
548
+ return this.core.request({ method: "POST", path: `/v1/webhook_endpoints/${encodePath(id)}`, body: params, options });
549
+ }
550
+ /**
551
+ * `DELETE /v1/webhook_endpoints/{id}`
552
+ */
553
+ delete(id, options) {
554
+ return this.core.request({ method: "DELETE", path: `/v1/webhook_endpoints/${encodePath(id)}`, options });
555
+ }
556
+ /**
557
+ * `GET /v1/webhook_endpoints/{id}/deliveries`
558
+ *
559
+ * Await for one page, or `for await` to iterate every item.
560
+ */
561
+ deliveries(id, params, options) {
562
+ return this.core.list({ method: "GET", path: `/v1/webhook_endpoints/${encodePath(id)}/deliveries`, query: params, options }, true);
563
+ }
564
+ /**
565
+ * `POST /v1/webhook_endpoints/{id}/resend`
566
+ */
567
+ resend(id, params, options) {
568
+ return this.core.request({ method: "POST", path: `/v1/webhook_endpoints/${encodePath(id)}/resend`, body: params, options });
569
+ }
570
+ }
571
+ /** Every resource, as properties of the client. */
572
+ export class TiempoResources {
573
+ accounts;
574
+ attendees;
575
+ availability;
576
+ blocks;
577
+ bookings;
578
+ conflictPreviews;
579
+ events;
580
+ locations;
581
+ resources;
582
+ scheduleOverrides;
583
+ schedules;
584
+ series;
585
+ usage;
586
+ webhookEndpoints;
587
+ constructor(core) {
588
+ this.accounts = new AccountsResource(core);
589
+ this.attendees = new AttendeesResource(core);
590
+ this.availability = new AvailabilityResource(core);
591
+ this.blocks = new BlocksResource(core);
592
+ this.bookings = new BookingsResource(core);
593
+ this.conflictPreviews = new ConflictPreviewsResource(core);
594
+ this.events = new EventsResource(core);
595
+ this.locations = new LocationsResource(core);
596
+ this.resources = new ResourcesResource(core);
597
+ this.scheduleOverrides = new ScheduleOverridesResource(core);
598
+ this.schedules = new SchedulesResource(core);
599
+ this.series = new SeriesResource(core);
600
+ this.usage = new UsageResource(core);
601
+ this.webhookEndpoints = new WebhookEndpointsResource(core);
602
+ }
603
+ }