benji-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +185 -0
  3. package/dist/client/client/client.gen.d.ts +3 -0
  4. package/dist/client/client/client.gen.d.ts.map +1 -0
  5. package/dist/client/client/client.gen.js +229 -0
  6. package/dist/client/client/index.d.ts +9 -0
  7. package/dist/client/client/index.d.ts.map +1 -0
  8. package/dist/client/client/index.js +6 -0
  9. package/dist/client/client/types.gen.d.ts +118 -0
  10. package/dist/client/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/client/types.gen.js +2 -0
  12. package/dist/client/client/utils.gen.d.ts +34 -0
  13. package/dist/client/client/utils.gen.d.ts.map +1 -0
  14. package/dist/client/client/utils.gen.js +233 -0
  15. package/dist/client/client.gen.d.ts +13 -0
  16. package/dist/client/client.gen.d.ts.map +1 -0
  17. package/dist/client/client.gen.js +3 -0
  18. package/dist/client/core/auth.gen.d.ts +19 -0
  19. package/dist/client/core/auth.gen.d.ts.map +1 -0
  20. package/dist/client/core/auth.gen.js +14 -0
  21. package/dist/client/core/bodySerializer.gen.d.ts +26 -0
  22. package/dist/client/core/bodySerializer.gen.d.ts.map +1 -0
  23. package/dist/client/core/bodySerializer.gen.js +57 -0
  24. package/dist/client/core/params.gen.d.ts +44 -0
  25. package/dist/client/core/params.gen.d.ts.map +1 -0
  26. package/dist/client/core/params.gen.js +100 -0
  27. package/dist/client/core/pathSerializer.gen.d.ts +34 -0
  28. package/dist/client/core/pathSerializer.gen.d.ts.map +1 -0
  29. package/dist/client/core/pathSerializer.gen.js +114 -0
  30. package/dist/client/core/queryKeySerializer.gen.d.ts +19 -0
  31. package/dist/client/core/queryKeySerializer.gen.d.ts.map +1 -0
  32. package/dist/client/core/queryKeySerializer.gen.js +99 -0
  33. package/dist/client/core/serverSentEvents.gen.d.ts +72 -0
  34. package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -0
  35. package/dist/client/core/serverSentEvents.gen.js +137 -0
  36. package/dist/client/core/types.gen.d.ts +79 -0
  37. package/dist/client/core/types.gen.d.ts.map +1 -0
  38. package/dist/client/core/types.gen.js +2 -0
  39. package/dist/client/core/utils.gen.d.ts +20 -0
  40. package/dist/client/core/utils.gen.d.ts.map +1 -0
  41. package/dist/client/core/utils.gen.js +87 -0
  42. package/dist/client/index.d.ts +3 -0
  43. package/dist/client/index.d.ts.map +1 -0
  44. package/dist/client/index.js +2 -0
  45. package/dist/client/sdk.gen.d.ts +908 -0
  46. package/dist/client/sdk.gen.d.ts.map +1 -0
  47. package/dist/client/sdk.gen.js +2232 -0
  48. package/dist/client/types.gen.d.ts +11857 -0
  49. package/dist/client/types.gen.d.ts.map +1 -0
  50. package/dist/client/types.gen.js +2 -0
  51. package/dist/index.d.ts +27 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +29 -0
  54. package/package.json +49 -0
@@ -0,0 +1,2232 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client } from './client.gen';
3
+ export class Mood {
4
+ /**
5
+ * Get mood log
6
+ *
7
+ * Get a single mood log by ID
8
+ */
9
+ static moodGet(options) {
10
+ return (options.client ?? client).post({
11
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
12
+ url: '/mood/get',
13
+ ...options,
14
+ headers: {
15
+ 'Content-Type': 'application/json',
16
+ ...options.headers
17
+ }
18
+ });
19
+ }
20
+ /**
21
+ * List mood logs
22
+ *
23
+ * List mood logs for a date range
24
+ */
25
+ static moodList(options) {
26
+ return (options.client ?? client).post({
27
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
28
+ url: '/mood/list',
29
+ ...options,
30
+ headers: {
31
+ 'Content-Type': 'application/json',
32
+ ...options.headers
33
+ }
34
+ });
35
+ }
36
+ /**
37
+ * Get mood widget data
38
+ *
39
+ * Get aggregated mood data for widgets
40
+ */
41
+ static moodGetForWidget(options) {
42
+ return (options.client ?? client).post({
43
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
44
+ url: '/mood/widget',
45
+ ...options,
46
+ headers: {
47
+ 'Content-Type': 'application/json',
48
+ ...options.headers
49
+ }
50
+ });
51
+ }
52
+ /**
53
+ * Create mood log
54
+ *
55
+ * Create a new mood log
56
+ */
57
+ static moodCreate(options) {
58
+ return (options.client ?? client).post({
59
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
60
+ url: '/mood',
61
+ ...options,
62
+ headers: {
63
+ 'Content-Type': 'application/json',
64
+ ...options.headers
65
+ }
66
+ });
67
+ }
68
+ /**
69
+ * Update mood log
70
+ *
71
+ * Update an existing mood log
72
+ */
73
+ static moodUpdate(options) {
74
+ return (options.client ?? client).post({
75
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
76
+ url: '/mood/update',
77
+ ...options,
78
+ headers: {
79
+ 'Content-Type': 'application/json',
80
+ ...options.headers
81
+ }
82
+ });
83
+ }
84
+ /**
85
+ * Delete mood log
86
+ *
87
+ * Delete a mood log
88
+ */
89
+ static moodDelete(options) {
90
+ return (options.client ?? client).post({
91
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
92
+ url: '/mood/delete',
93
+ ...options,
94
+ headers: {
95
+ 'Content-Type': 'application/json',
96
+ ...options.headers
97
+ }
98
+ });
99
+ }
100
+ /**
101
+ * Delete multiple mood logs
102
+ *
103
+ * Delete multiple mood logs
104
+ */
105
+ static moodDeleteMany(options) {
106
+ return (options.client ?? client).post({
107
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
108
+ url: '/mood/delete-many',
109
+ ...options,
110
+ headers: {
111
+ 'Content-Type': 'application/json',
112
+ ...options.headers
113
+ }
114
+ });
115
+ }
116
+ /**
117
+ * Delete all mood logs
118
+ *
119
+ * Delete all mood logs for the user
120
+ */
121
+ static moodDeleteAll(options) {
122
+ return (options.client ?? client).post({
123
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
124
+ url: '/mood/delete-all',
125
+ ...options,
126
+ headers: {
127
+ 'Content-Type': 'application/json',
128
+ ...options.headers
129
+ }
130
+ });
131
+ }
132
+ }
133
+ export class PainEvents {
134
+ /**
135
+ * List body parts
136
+ *
137
+ * List available pain event body parts
138
+ */
139
+ static painEventsBodyParts(options) {
140
+ return (options?.client ?? client).post({
141
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
142
+ url: '/pain-events/body-parts/list',
143
+ ...options
144
+ });
145
+ }
146
+ /**
147
+ * Recent body parts
148
+ *
149
+ * List recently used pain event body parts
150
+ */
151
+ static painEventsRecentBodyParts(options) {
152
+ return (options?.client ?? client).post({
153
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
154
+ url: '/pain-events/recent-body-parts',
155
+ ...options
156
+ });
157
+ }
158
+ /**
159
+ * Get pain event
160
+ *
161
+ * Get a single pain event by ID
162
+ */
163
+ static painEventsGet(options) {
164
+ return (options.client ?? client).post({
165
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
166
+ url: '/pain-events/get',
167
+ ...options,
168
+ headers: {
169
+ 'Content-Type': 'application/json',
170
+ ...options.headers
171
+ }
172
+ });
173
+ }
174
+ /**
175
+ * List pain events
176
+ *
177
+ * List pain events for a date range
178
+ */
179
+ static painEventsList(options) {
180
+ return (options.client ?? client).post({
181
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
182
+ url: '/pain-events/list',
183
+ ...options,
184
+ headers: {
185
+ 'Content-Type': 'application/json',
186
+ ...options.headers
187
+ }
188
+ });
189
+ }
190
+ /**
191
+ * Create pain event
192
+ *
193
+ * Create a new pain event
194
+ */
195
+ static painEventsCreate(options) {
196
+ return (options.client ?? client).post({
197
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
198
+ url: '/pain-events',
199
+ ...options,
200
+ headers: {
201
+ 'Content-Type': 'application/json',
202
+ ...options.headers
203
+ }
204
+ });
205
+ }
206
+ /**
207
+ * Update pain event
208
+ *
209
+ * Update an existing pain event
210
+ */
211
+ static painEventsUpdate(options) {
212
+ return (options.client ?? client).post({
213
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
214
+ url: '/pain-events/update',
215
+ ...options,
216
+ headers: {
217
+ 'Content-Type': 'application/json',
218
+ ...options.headers
219
+ }
220
+ });
221
+ }
222
+ /**
223
+ * Delete pain event
224
+ *
225
+ * Delete a pain event
226
+ */
227
+ static painEventsDelete(options) {
228
+ return (options.client ?? client).post({
229
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
230
+ url: '/pain-events/delete',
231
+ ...options,
232
+ headers: {
233
+ 'Content-Type': 'application/json',
234
+ ...options.headers
235
+ }
236
+ });
237
+ }
238
+ /**
239
+ * Delete multiple pain events
240
+ *
241
+ * Delete multiple pain events
242
+ */
243
+ static painEventsDeleteMany(options) {
244
+ return (options.client ?? client).post({
245
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
246
+ url: '/pain-events/delete-many',
247
+ ...options,
248
+ headers: {
249
+ 'Content-Type': 'application/json',
250
+ ...options.headers
251
+ }
252
+ });
253
+ }
254
+ }
255
+ export class Trips {
256
+ /**
257
+ * Get trip
258
+ *
259
+ * Get a single trip by ID
260
+ */
261
+ static tripsGet(options) {
262
+ return (options.client ?? client).post({
263
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
264
+ url: '/trips/get',
265
+ ...options,
266
+ headers: {
267
+ 'Content-Type': 'application/json',
268
+ ...options.headers
269
+ }
270
+ });
271
+ }
272
+ /**
273
+ * List trips
274
+ *
275
+ * List trips for the current user
276
+ */
277
+ static tripsList(options) {
278
+ return (options?.client ?? client).post({
279
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
280
+ url: '/trips/list',
281
+ ...options
282
+ });
283
+ }
284
+ /**
285
+ * Create trip
286
+ *
287
+ * Create a new trip
288
+ */
289
+ static tripsCreate(options) {
290
+ return (options.client ?? client).post({
291
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
292
+ url: '/trips',
293
+ ...options,
294
+ headers: {
295
+ 'Content-Type': 'application/json',
296
+ ...options.headers
297
+ }
298
+ });
299
+ }
300
+ /**
301
+ * Update trip
302
+ *
303
+ * Update an existing trip
304
+ */
305
+ static tripsUpdate(options) {
306
+ return (options.client ?? client).post({
307
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
308
+ url: '/trips/update',
309
+ ...options,
310
+ headers: {
311
+ 'Content-Type': 'application/json',
312
+ ...options.headers
313
+ }
314
+ });
315
+ }
316
+ /**
317
+ * Delete trip
318
+ *
319
+ * Delete a trip
320
+ */
321
+ static tripsDelete(options) {
322
+ return (options.client ?? client).post({
323
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
324
+ url: '/trips/delete',
325
+ ...options,
326
+ headers: {
327
+ 'Content-Type': 'application/json',
328
+ ...options.headers
329
+ }
330
+ });
331
+ }
332
+ /**
333
+ * Delete multiple trips
334
+ *
335
+ * Delete multiple trips
336
+ */
337
+ static tripsDeleteMany(options) {
338
+ return (options.client ?? client).post({
339
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
340
+ url: '/trips/delete-many',
341
+ ...options,
342
+ headers: {
343
+ 'Content-Type': 'application/json',
344
+ ...options.headers
345
+ }
346
+ });
347
+ }
348
+ }
349
+ export class PackingActivities {
350
+ /**
351
+ * Get packing activity
352
+ *
353
+ * Get a single packing activity by ID
354
+ */
355
+ static packingActivitiesGet(options) {
356
+ return (options.client ?? client).post({
357
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
358
+ url: '/packing-activities/get',
359
+ ...options,
360
+ headers: {
361
+ 'Content-Type': 'application/json',
362
+ ...options.headers
363
+ }
364
+ });
365
+ }
366
+ /**
367
+ * List packing activities
368
+ *
369
+ * List packing activities for the current user
370
+ */
371
+ static packingActivitiesList(options) {
372
+ return (options?.client ?? client).post({
373
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
374
+ url: '/packing-activities/list',
375
+ ...options
376
+ });
377
+ }
378
+ /**
379
+ * Create packing activity
380
+ *
381
+ * Create a new packing activity
382
+ */
383
+ static packingActivitiesCreate(options) {
384
+ return (options.client ?? client).post({
385
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
386
+ url: '/packing-activities',
387
+ ...options,
388
+ headers: {
389
+ 'Content-Type': 'application/json',
390
+ ...options.headers
391
+ }
392
+ });
393
+ }
394
+ /**
395
+ * Update packing activity
396
+ *
397
+ * Update an existing packing activity
398
+ */
399
+ static packingActivitiesUpdate(options) {
400
+ return (options.client ?? client).post({
401
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
402
+ url: '/packing-activities/update',
403
+ ...options,
404
+ headers: {
405
+ 'Content-Type': 'application/json',
406
+ ...options.headers
407
+ }
408
+ });
409
+ }
410
+ /**
411
+ * Delete packing activity
412
+ *
413
+ * Delete a packing activity
414
+ */
415
+ static packingActivitiesDelete(options) {
416
+ return (options.client ?? client).post({
417
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
418
+ url: '/packing-activities/delete',
419
+ ...options,
420
+ headers: {
421
+ 'Content-Type': 'application/json',
422
+ ...options.headers
423
+ }
424
+ });
425
+ }
426
+ /**
427
+ * Delete multiple packing activities
428
+ *
429
+ * Delete multiple packing activities
430
+ */
431
+ static packingActivitiesDeleteMany(options) {
432
+ return (options.client ?? client).post({
433
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
434
+ url: '/packing-activities/delete-many',
435
+ ...options,
436
+ headers: {
437
+ 'Content-Type': 'application/json',
438
+ ...options.headers
439
+ }
440
+ });
441
+ }
442
+ /**
443
+ * Check packing activity exists
444
+ *
445
+ * Check whether a packing activity exists
446
+ */
447
+ static packingActivitiesExists(options) {
448
+ return (options.client ?? client).post({
449
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
450
+ url: '/packing-activities/exists',
451
+ ...options,
452
+ headers: {
453
+ 'Content-Type': 'application/json',
454
+ ...options.headers
455
+ }
456
+ });
457
+ }
458
+ }
459
+ export class PackingItems {
460
+ /**
461
+ * Get packing item
462
+ *
463
+ * Get a single packing item by ID
464
+ */
465
+ static packingItemsGet(options) {
466
+ return (options.client ?? client).post({
467
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
468
+ url: '/packing-items/get',
469
+ ...options,
470
+ headers: {
471
+ 'Content-Type': 'application/json',
472
+ ...options.headers
473
+ }
474
+ });
475
+ }
476
+ /**
477
+ * List packing items
478
+ *
479
+ * List packing items for the current user
480
+ */
481
+ static packingItemsList(options) {
482
+ return (options?.client ?? client).post({
483
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
484
+ url: '/packing-items/list',
485
+ ...options,
486
+ headers: {
487
+ 'Content-Type': 'application/json',
488
+ ...options?.headers
489
+ }
490
+ });
491
+ }
492
+ /**
493
+ * Create packing item
494
+ *
495
+ * Create a new packing item
496
+ */
497
+ static packingItemsCreate(options) {
498
+ return (options.client ?? client).post({
499
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
500
+ url: '/packing-items',
501
+ ...options,
502
+ headers: {
503
+ 'Content-Type': 'application/json',
504
+ ...options.headers
505
+ }
506
+ });
507
+ }
508
+ /**
509
+ * Update packing item
510
+ *
511
+ * Update an existing packing item
512
+ */
513
+ static packingItemsUpdate(options) {
514
+ return (options.client ?? client).post({
515
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
516
+ url: '/packing-items/update',
517
+ ...options,
518
+ headers: {
519
+ 'Content-Type': 'application/json',
520
+ ...options.headers
521
+ }
522
+ });
523
+ }
524
+ /**
525
+ * Delete packing item
526
+ *
527
+ * Delete a packing item
528
+ */
529
+ static packingItemsDelete(options) {
530
+ return (options.client ?? client).post({
531
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
532
+ url: '/packing-items/delete',
533
+ ...options,
534
+ headers: {
535
+ 'Content-Type': 'application/json',
536
+ ...options.headers
537
+ }
538
+ });
539
+ }
540
+ /**
541
+ * Delete multiple packing items
542
+ *
543
+ * Delete multiple packing items
544
+ */
545
+ static packingItemsDeleteMany(options) {
546
+ return (options.client ?? client).post({
547
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
548
+ url: '/packing-items/delete-many',
549
+ ...options,
550
+ headers: {
551
+ 'Content-Type': 'application/json',
552
+ ...options.headers
553
+ }
554
+ });
555
+ }
556
+ }
557
+ export class Transports {
558
+ /**
559
+ * Get transport
560
+ *
561
+ * Get a single transport by ID
562
+ */
563
+ static transportsGet(options) {
564
+ return (options.client ?? client).post({
565
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
566
+ url: '/transports/get',
567
+ ...options,
568
+ headers: {
569
+ 'Content-Type': 'application/json',
570
+ ...options.headers
571
+ }
572
+ });
573
+ }
574
+ /**
575
+ * List transports
576
+ *
577
+ * List transports for the current user
578
+ */
579
+ static transportsList(options) {
580
+ return (options?.client ?? client).post({
581
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
582
+ url: '/transports/list',
583
+ ...options,
584
+ headers: {
585
+ 'Content-Type': 'application/json',
586
+ ...options?.headers
587
+ }
588
+ });
589
+ }
590
+ /**
591
+ * Create transport
592
+ *
593
+ * Create a new transport
594
+ */
595
+ static transportsCreate(options) {
596
+ return (options.client ?? client).post({
597
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
598
+ url: '/transports',
599
+ ...options,
600
+ headers: {
601
+ 'Content-Type': 'application/json',
602
+ ...options.headers
603
+ }
604
+ });
605
+ }
606
+ /**
607
+ * Update transport
608
+ *
609
+ * Update an existing transport
610
+ */
611
+ static transportsUpdate(options) {
612
+ return (options.client ?? client).post({
613
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
614
+ url: '/transports/update',
615
+ ...options,
616
+ headers: {
617
+ 'Content-Type': 'application/json',
618
+ ...options.headers
619
+ }
620
+ });
621
+ }
622
+ /**
623
+ * Delete transport
624
+ *
625
+ * Delete a transport
626
+ */
627
+ static transportsDelete(options) {
628
+ return (options.client ?? client).post({
629
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
630
+ url: '/transports/delete',
631
+ ...options,
632
+ headers: {
633
+ 'Content-Type': 'application/json',
634
+ ...options.headers
635
+ }
636
+ });
637
+ }
638
+ /**
639
+ * Delete multiple transports
640
+ *
641
+ * Delete multiple transports
642
+ */
643
+ static transportsDeleteMany(options) {
644
+ return (options.client ?? client).post({
645
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
646
+ url: '/transports/delete-many',
647
+ ...options,
648
+ headers: {
649
+ 'Content-Type': 'application/json',
650
+ ...options.headers
651
+ }
652
+ });
653
+ }
654
+ /**
655
+ * Check transport exists
656
+ *
657
+ * Check whether a transport exists
658
+ */
659
+ static transportsExists(options) {
660
+ return (options.client ?? client).post({
661
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
662
+ url: '/transports/exists',
663
+ ...options,
664
+ headers: {
665
+ 'Content-Type': 'application/json',
666
+ ...options.headers
667
+ }
668
+ });
669
+ }
670
+ }
671
+ export class Stays {
672
+ /**
673
+ * Get stay
674
+ *
675
+ * Get a single stay by ID
676
+ */
677
+ static staysGet(options) {
678
+ return (options.client ?? client).post({
679
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
680
+ url: '/stays/get',
681
+ ...options,
682
+ headers: {
683
+ 'Content-Type': 'application/json',
684
+ ...options.headers
685
+ }
686
+ });
687
+ }
688
+ /**
689
+ * List stays
690
+ *
691
+ * List stays for the current user
692
+ */
693
+ static staysList(options) {
694
+ return (options?.client ?? client).post({
695
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
696
+ url: '/stays/list',
697
+ ...options,
698
+ headers: {
699
+ 'Content-Type': 'application/json',
700
+ ...options?.headers
701
+ }
702
+ });
703
+ }
704
+ /**
705
+ * Create stay
706
+ *
707
+ * Create a new stay
708
+ */
709
+ static staysCreate(options) {
710
+ return (options.client ?? client).post({
711
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
712
+ url: '/stays',
713
+ ...options,
714
+ headers: {
715
+ 'Content-Type': 'application/json',
716
+ ...options.headers
717
+ }
718
+ });
719
+ }
720
+ /**
721
+ * Update stay
722
+ *
723
+ * Update an existing stay
724
+ */
725
+ static staysUpdate(options) {
726
+ return (options.client ?? client).post({
727
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
728
+ url: '/stays/update',
729
+ ...options,
730
+ headers: {
731
+ 'Content-Type': 'application/json',
732
+ ...options.headers
733
+ }
734
+ });
735
+ }
736
+ /**
737
+ * Delete stay
738
+ *
739
+ * Delete a stay
740
+ */
741
+ static staysDelete(options) {
742
+ return (options.client ?? client).post({
743
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
744
+ url: '/stays/delete',
745
+ ...options,
746
+ headers: {
747
+ 'Content-Type': 'application/json',
748
+ ...options.headers
749
+ }
750
+ });
751
+ }
752
+ /**
753
+ * Delete multiple stays
754
+ *
755
+ * Delete multiple stays
756
+ */
757
+ static staysDeleteMany(options) {
758
+ return (options.client ?? client).post({
759
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
760
+ url: '/stays/delete-many',
761
+ ...options,
762
+ headers: {
763
+ 'Content-Type': 'application/json',
764
+ ...options.headers
765
+ }
766
+ });
767
+ }
768
+ }
769
+ export class Todos {
770
+ /**
771
+ * Get todo
772
+ *
773
+ * Get a single todo by ID
774
+ */
775
+ static todosGet(options) {
776
+ return (options.client ?? client).post({
777
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
778
+ url: '/todos/get',
779
+ ...options,
780
+ headers: {
781
+ 'Content-Type': 'application/json',
782
+ ...options.headers
783
+ }
784
+ });
785
+ }
786
+ /**
787
+ * List todos
788
+ *
789
+ * List todos with filters
790
+ */
791
+ static todosList(options) {
792
+ return (options?.client ?? client).post({
793
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
794
+ url: '/todos/list',
795
+ ...options,
796
+ headers: {
797
+ 'Content-Type': 'application/json',
798
+ ...options?.headers
799
+ }
800
+ });
801
+ }
802
+ /**
803
+ * List todos by tag
804
+ *
805
+ * List todos filtered by tag ID
806
+ */
807
+ static todosByTag(options) {
808
+ return (options.client ?? client).post({
809
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
810
+ url: '/todos/by-tag/list',
811
+ ...options,
812
+ headers: {
813
+ 'Content-Type': 'application/json',
814
+ ...options.headers
815
+ }
816
+ });
817
+ }
818
+ /**
819
+ * List todos by project
820
+ *
821
+ * List todos filtered by project ID
822
+ */
823
+ static todosByProject(options) {
824
+ return (options.client ?? client).post({
825
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
826
+ url: '/todos/by-project/list',
827
+ ...options,
828
+ headers: {
829
+ 'Content-Type': 'application/json',
830
+ ...options.headers
831
+ }
832
+ });
833
+ }
834
+ /**
835
+ * List todos by list
836
+ *
837
+ * List todos filtered by list ID
838
+ */
839
+ static todosByList(options) {
840
+ return (options.client ?? client).post({
841
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
842
+ url: '/todos/by-list/list',
843
+ ...options,
844
+ headers: {
845
+ 'Content-Type': 'application/json',
846
+ ...options.headers
847
+ }
848
+ });
849
+ }
850
+ /**
851
+ * Check todo existence
852
+ *
853
+ * Check if a todo exists
854
+ */
855
+ static todosExists(options) {
856
+ return (options.client ?? client).post({
857
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
858
+ url: '/todos/exists',
859
+ ...options,
860
+ headers: {
861
+ 'Content-Type': 'application/json',
862
+ ...options.headers
863
+ }
864
+ });
865
+ }
866
+ /**
867
+ * Create todo
868
+ *
869
+ * Create a new todo
870
+ */
871
+ static todosCreate(options) {
872
+ return (options.client ?? client).post({
873
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
874
+ url: '/todos',
875
+ ...options,
876
+ headers: {
877
+ 'Content-Type': 'application/json',
878
+ ...options.headers
879
+ }
880
+ });
881
+ }
882
+ /**
883
+ * Update todo
884
+ *
885
+ * Update an existing todo
886
+ */
887
+ static todosUpdate(options) {
888
+ return (options.client ?? client).post({
889
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
890
+ url: '/todos/update',
891
+ ...options,
892
+ headers: {
893
+ 'Content-Type': 'application/json',
894
+ ...options.headers
895
+ }
896
+ });
897
+ }
898
+ /**
899
+ * Toggle todo completion
900
+ *
901
+ * Toggle the completion status of a todo
902
+ */
903
+ static todosToggle(options) {
904
+ return (options.client ?? client).post({
905
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
906
+ url: '/todos/toggle',
907
+ ...options,
908
+ headers: {
909
+ 'Content-Type': 'application/json',
910
+ ...options.headers
911
+ }
912
+ });
913
+ }
914
+ /**
915
+ * Delete todo
916
+ *
917
+ * Delete a todo
918
+ */
919
+ static todosDelete(options) {
920
+ return (options.client ?? client).post({
921
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
922
+ url: '/todos/delete',
923
+ ...options,
924
+ headers: {
925
+ 'Content-Type': 'application/json',
926
+ ...options.headers
927
+ }
928
+ });
929
+ }
930
+ /**
931
+ * Delete multiple todos
932
+ *
933
+ * Delete multiple todos
934
+ */
935
+ static todosDeleteMany(options) {
936
+ return (options.client ?? client).post({
937
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
938
+ url: '/todos/delete-many',
939
+ ...options,
940
+ headers: {
941
+ 'Content-Type': 'application/json',
942
+ ...options.headers
943
+ }
944
+ });
945
+ }
946
+ /**
947
+ * Quick update multiple todos
948
+ *
949
+ * Quickly update multiple todos with common fields
950
+ */
951
+ static todosQuickUpdateMany(options) {
952
+ return (options.client ?? client).post({
953
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
954
+ url: '/todos/quick-update-many',
955
+ ...options,
956
+ headers: {
957
+ 'Content-Type': 'application/json',
958
+ ...options.headers
959
+ }
960
+ });
961
+ }
962
+ /**
963
+ * Assign user to todo
964
+ *
965
+ * Assign a user to a todo
966
+ */
967
+ static todosAssign(options) {
968
+ return (options.client ?? client).post({
969
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
970
+ url: '/todos/assign',
971
+ ...options,
972
+ headers: {
973
+ 'Content-Type': 'application/json',
974
+ ...options.headers
975
+ }
976
+ });
977
+ }
978
+ /**
979
+ * Unassign user from todo
980
+ *
981
+ * Unassign a user from a todo
982
+ */
983
+ static todosUnassign(options) {
984
+ return (options.client ?? client).post({
985
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
986
+ url: '/todos/unassign',
987
+ ...options,
988
+ headers: {
989
+ 'Content-Type': 'application/json',
990
+ ...options.headers
991
+ }
992
+ });
993
+ }
994
+ /**
995
+ * Get assignable users
996
+ *
997
+ * Get all users that can be assigned to todos (from shared lists/projects)
998
+ */
999
+ static todosAssignableUsers(options) {
1000
+ return (options?.client ?? client).post({
1001
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1002
+ url: '/todos/assignable-users',
1003
+ ...options
1004
+ });
1005
+ }
1006
+ /**
1007
+ * Get possible assignees
1008
+ *
1009
+ * Get possible assignees for a specific list or project
1010
+ */
1011
+ static todosPossibleAssignees(options) {
1012
+ return (options.client ?? client).post({
1013
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1014
+ url: '/todos/possible-assignees',
1015
+ ...options,
1016
+ headers: {
1017
+ 'Content-Type': 'application/json',
1018
+ ...options.headers
1019
+ }
1020
+ });
1021
+ }
1022
+ }
1023
+ export class Assignments {
1024
+ /**
1025
+ * Assign user to todo
1026
+ *
1027
+ * Assign a user to a todo
1028
+ */
1029
+ static todosAssign(options) {
1030
+ return (options.client ?? client).post({
1031
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1032
+ url: '/todos/assign',
1033
+ ...options,
1034
+ headers: {
1035
+ 'Content-Type': 'application/json',
1036
+ ...options.headers
1037
+ }
1038
+ });
1039
+ }
1040
+ /**
1041
+ * Unassign user from todo
1042
+ *
1043
+ * Unassign a user from a todo
1044
+ */
1045
+ static todosUnassign(options) {
1046
+ return (options.client ?? client).post({
1047
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1048
+ url: '/todos/unassign',
1049
+ ...options,
1050
+ headers: {
1051
+ 'Content-Type': 'application/json',
1052
+ ...options.headers
1053
+ }
1054
+ });
1055
+ }
1056
+ /**
1057
+ * Get assignable users
1058
+ *
1059
+ * Get all users that can be assigned to todos (from shared lists/projects)
1060
+ */
1061
+ static todosAssignableUsers(options) {
1062
+ return (options?.client ?? client).post({
1063
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1064
+ url: '/todos/assignable-users',
1065
+ ...options
1066
+ });
1067
+ }
1068
+ /**
1069
+ * Get possible assignees
1070
+ *
1071
+ * Get possible assignees for a specific list or project
1072
+ */
1073
+ static todosPossibleAssignees(options) {
1074
+ return (options.client ?? client).post({
1075
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1076
+ url: '/todos/possible-assignees',
1077
+ ...options,
1078
+ headers: {
1079
+ 'Content-Type': 'application/json',
1080
+ ...options.headers
1081
+ }
1082
+ });
1083
+ }
1084
+ }
1085
+ export class Tags {
1086
+ /**
1087
+ * List tags
1088
+ *
1089
+ * List tags for the current user
1090
+ */
1091
+ static tagsList(options) {
1092
+ return (options.client ?? client).post({
1093
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1094
+ url: '/tags/list',
1095
+ ...options,
1096
+ headers: {
1097
+ 'Content-Type': 'application/json',
1098
+ ...options.headers
1099
+ }
1100
+ });
1101
+ }
1102
+ /**
1103
+ * Get tag
1104
+ *
1105
+ * Get a single tag by ID
1106
+ */
1107
+ static tagsGet(options) {
1108
+ return (options.client ?? client).post({
1109
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1110
+ url: '/tags/get',
1111
+ ...options,
1112
+ headers: {
1113
+ 'Content-Type': 'application/json',
1114
+ ...options.headers
1115
+ }
1116
+ });
1117
+ }
1118
+ /**
1119
+ * Create tag
1120
+ *
1121
+ * Create a new tag
1122
+ */
1123
+ static tagsCreate(options) {
1124
+ return (options.client ?? client).post({
1125
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1126
+ url: '/tags',
1127
+ ...options,
1128
+ headers: {
1129
+ 'Content-Type': 'application/json',
1130
+ ...options.headers
1131
+ }
1132
+ });
1133
+ }
1134
+ /**
1135
+ * Update tag
1136
+ *
1137
+ * Update an existing tag
1138
+ */
1139
+ static tagsUpdate(options) {
1140
+ return (options.client ?? client).post({
1141
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1142
+ url: '/tags/update',
1143
+ ...options,
1144
+ headers: {
1145
+ 'Content-Type': 'application/json',
1146
+ ...options.headers
1147
+ }
1148
+ });
1149
+ }
1150
+ /**
1151
+ * Delete tag
1152
+ *
1153
+ * Delete a tag
1154
+ */
1155
+ static tagsDelete(options) {
1156
+ return (options.client ?? client).post({
1157
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1158
+ url: '/tags/delete',
1159
+ ...options,
1160
+ headers: {
1161
+ 'Content-Type': 'application/json',
1162
+ ...options.headers
1163
+ }
1164
+ });
1165
+ }
1166
+ /**
1167
+ * Check tag exists
1168
+ *
1169
+ * Check whether a tag exists
1170
+ */
1171
+ static tagsExists(options) {
1172
+ return (options.client ?? client).post({
1173
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1174
+ url: '/tags/exists',
1175
+ ...options,
1176
+ headers: {
1177
+ 'Content-Type': 'application/json',
1178
+ ...options.headers
1179
+ }
1180
+ });
1181
+ }
1182
+ /**
1183
+ * Tags for todo form
1184
+ *
1185
+ * List tags, tag groups, and favorites for the todo form
1186
+ */
1187
+ static tagsForTodoForm(options) {
1188
+ return (options.client ?? client).post({
1189
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1190
+ url: '/tags/for-todo-form',
1191
+ ...options,
1192
+ headers: {
1193
+ 'Content-Type': 'application/json',
1194
+ ...options.headers
1195
+ }
1196
+ });
1197
+ }
1198
+ /**
1199
+ * Favorite tags
1200
+ *
1201
+ * List favorite tags by usage
1202
+ */
1203
+ static tagsFavorites(options) {
1204
+ return (options.client ?? client).post({
1205
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1206
+ url: '/tags/favorites',
1207
+ ...options,
1208
+ headers: {
1209
+ 'Content-Type': 'application/json',
1210
+ ...options.headers
1211
+ }
1212
+ });
1213
+ }
1214
+ }
1215
+ export class Projects {
1216
+ /**
1217
+ * List projects
1218
+ *
1219
+ * List projects for the current user
1220
+ */
1221
+ static projectsList(options) {
1222
+ return (options.client ?? client).post({
1223
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1224
+ url: '/projects/list',
1225
+ ...options,
1226
+ headers: {
1227
+ 'Content-Type': 'application/json',
1228
+ ...options.headers
1229
+ }
1230
+ });
1231
+ }
1232
+ /**
1233
+ * Get project
1234
+ *
1235
+ * Get a single project by ID
1236
+ */
1237
+ static projectsGet(options) {
1238
+ return (options.client ?? client).post({
1239
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1240
+ url: '/projects/get',
1241
+ ...options,
1242
+ headers: {
1243
+ 'Content-Type': 'application/json',
1244
+ ...options.headers
1245
+ }
1246
+ });
1247
+ }
1248
+ /**
1249
+ * Create project
1250
+ *
1251
+ * Create a new project
1252
+ */
1253
+ static projectsCreate(options) {
1254
+ return (options.client ?? client).post({
1255
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1256
+ url: '/projects',
1257
+ ...options,
1258
+ headers: {
1259
+ 'Content-Type': 'application/json',
1260
+ ...options.headers
1261
+ }
1262
+ });
1263
+ }
1264
+ /**
1265
+ * Update project
1266
+ *
1267
+ * Update an existing project
1268
+ */
1269
+ static projectsUpdate(options) {
1270
+ return (options.client ?? client).post({
1271
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1272
+ url: '/projects/update',
1273
+ ...options,
1274
+ headers: {
1275
+ 'Content-Type': 'application/json',
1276
+ ...options.headers
1277
+ }
1278
+ });
1279
+ }
1280
+ /**
1281
+ * Delete project
1282
+ *
1283
+ * Delete a project
1284
+ */
1285
+ static projectsDelete(options) {
1286
+ return (options.client ?? client).post({
1287
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1288
+ url: '/projects/delete',
1289
+ ...options,
1290
+ headers: {
1291
+ 'Content-Type': 'application/json',
1292
+ ...options.headers
1293
+ }
1294
+ });
1295
+ }
1296
+ /**
1297
+ * Check project exists
1298
+ *
1299
+ * Check whether a project exists
1300
+ */
1301
+ static projectsExists(options) {
1302
+ return (options.client ?? client).post({
1303
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1304
+ url: '/projects/exists',
1305
+ ...options,
1306
+ headers: {
1307
+ 'Content-Type': 'application/json',
1308
+ ...options.headers
1309
+ }
1310
+ });
1311
+ }
1312
+ /**
1313
+ * Projects for todo form
1314
+ *
1315
+ * List projects for the todo form
1316
+ */
1317
+ static projectsForTodoForm(options) {
1318
+ return (options.client ?? client).post({
1319
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1320
+ url: '/projects/for-todo-form',
1321
+ ...options,
1322
+ headers: {
1323
+ 'Content-Type': 'application/json',
1324
+ ...options.headers
1325
+ }
1326
+ });
1327
+ }
1328
+ }
1329
+ export class TodoLists {
1330
+ /**
1331
+ * List todo lists
1332
+ *
1333
+ * List todo lists for the current user
1334
+ */
1335
+ static todoListsList(options) {
1336
+ return (options.client ?? client).post({
1337
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1338
+ url: '/todo-lists/list',
1339
+ ...options,
1340
+ headers: {
1341
+ 'Content-Type': 'application/json',
1342
+ ...options.headers
1343
+ }
1344
+ });
1345
+ }
1346
+ /**
1347
+ * Get todo list
1348
+ *
1349
+ * Get a single todo list by ID
1350
+ */
1351
+ static todoListsGet(options) {
1352
+ return (options.client ?? client).post({
1353
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1354
+ url: '/todo-lists/get',
1355
+ ...options,
1356
+ headers: {
1357
+ 'Content-Type': 'application/json',
1358
+ ...options.headers
1359
+ }
1360
+ });
1361
+ }
1362
+ /**
1363
+ * Favorite todo lists
1364
+ *
1365
+ * List favorite todo lists by usage
1366
+ */
1367
+ static todoListsFavorites(options) {
1368
+ return (options?.client ?? client).post({
1369
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1370
+ url: '/todo-lists/favorites',
1371
+ ...options,
1372
+ headers: {
1373
+ 'Content-Type': 'application/json',
1374
+ ...options?.headers
1375
+ }
1376
+ });
1377
+ }
1378
+ /**
1379
+ * Create todo list
1380
+ *
1381
+ * Create a new todo list
1382
+ */
1383
+ static todoListsCreate(options) {
1384
+ return (options.client ?? client).post({
1385
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1386
+ url: '/todo-lists',
1387
+ ...options,
1388
+ headers: {
1389
+ 'Content-Type': 'application/json',
1390
+ ...options.headers
1391
+ }
1392
+ });
1393
+ }
1394
+ /**
1395
+ * Update todo list
1396
+ *
1397
+ * Update an existing todo list
1398
+ */
1399
+ static todoListsUpdate(options) {
1400
+ return (options.client ?? client).post({
1401
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1402
+ url: '/todo-lists/update',
1403
+ ...options,
1404
+ headers: {
1405
+ 'Content-Type': 'application/json',
1406
+ ...options.headers
1407
+ }
1408
+ });
1409
+ }
1410
+ /**
1411
+ * Delete todo list
1412
+ *
1413
+ * Delete a todo list
1414
+ */
1415
+ static todoListsDelete(options) {
1416
+ return (options.client ?? client).post({
1417
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1418
+ url: '/todo-lists/delete',
1419
+ ...options,
1420
+ headers: {
1421
+ 'Content-Type': 'application/json',
1422
+ ...options.headers
1423
+ }
1424
+ });
1425
+ }
1426
+ /**
1427
+ * Check todo list exists
1428
+ *
1429
+ * Check whether a todo list exists
1430
+ */
1431
+ static todoListsExists(options) {
1432
+ return (options.client ?? client).post({
1433
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1434
+ url: '/todo-lists/exists',
1435
+ ...options,
1436
+ headers: {
1437
+ 'Content-Type': 'application/json',
1438
+ ...options.headers
1439
+ }
1440
+ });
1441
+ }
1442
+ /**
1443
+ * Todo lists for todo form
1444
+ *
1445
+ * List todo lists for the todo form
1446
+ */
1447
+ static todoListsForTodoForm(options) {
1448
+ return (options.client ?? client).post({
1449
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1450
+ url: '/todo-lists/for-todo-form',
1451
+ ...options,
1452
+ headers: {
1453
+ 'Content-Type': 'application/json',
1454
+ ...options.headers
1455
+ }
1456
+ });
1457
+ }
1458
+ }
1459
+ export class Habits {
1460
+ /**
1461
+ * Get habits with completions
1462
+ *
1463
+ * Get habits with completions for a date range
1464
+ */
1465
+ static habitsGetHabitsAndCompletions(options) {
1466
+ return (options.client ?? client).post({
1467
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1468
+ url: '/habits/with-completions',
1469
+ ...options,
1470
+ headers: {
1471
+ 'Content-Type': 'application/json',
1472
+ ...options.headers
1473
+ }
1474
+ });
1475
+ }
1476
+ /**
1477
+ * Get all habits
1478
+ *
1479
+ * Get all habits for the authenticated user
1480
+ */
1481
+ static habitsGetHabitsForCurrentUser(options) {
1482
+ return (options?.client ?? client).post({
1483
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1484
+ url: '/habits/list',
1485
+ ...options
1486
+ });
1487
+ }
1488
+ /**
1489
+ * Get single habit
1490
+ *
1491
+ * Get a single habit by ID
1492
+ */
1493
+ static habitsGet(options) {
1494
+ return (options.client ?? client).post({
1495
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1496
+ url: '/habits/get',
1497
+ ...options,
1498
+ headers: {
1499
+ 'Content-Type': 'application/json',
1500
+ ...options.headers
1501
+ }
1502
+ });
1503
+ }
1504
+ /**
1505
+ * Create habit
1506
+ *
1507
+ * Create a new habit
1508
+ */
1509
+ static habitsCreate(options) {
1510
+ return (options.client ?? client).post({
1511
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1512
+ url: '/habits',
1513
+ ...options,
1514
+ headers: {
1515
+ 'Content-Type': 'application/json',
1516
+ ...options.headers
1517
+ }
1518
+ });
1519
+ }
1520
+ /**
1521
+ * Update habit
1522
+ *
1523
+ * Update an existing habit
1524
+ */
1525
+ static habitsUpdate(options) {
1526
+ return (options.client ?? client).post({
1527
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1528
+ url: '/habits/update',
1529
+ ...options,
1530
+ headers: {
1531
+ 'Content-Type': 'application/json',
1532
+ ...options.headers
1533
+ }
1534
+ });
1535
+ }
1536
+ /**
1537
+ * Delete habit
1538
+ *
1539
+ * Delete a habit
1540
+ */
1541
+ static habitsDelete(options) {
1542
+ return (options.client ?? client).post({
1543
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1544
+ url: '/habits/delete',
1545
+ ...options,
1546
+ headers: {
1547
+ 'Content-Type': 'application/json',
1548
+ ...options.headers
1549
+ }
1550
+ });
1551
+ }
1552
+ /**
1553
+ * Duplicate habit
1554
+ *
1555
+ * Duplicate an existing habit
1556
+ */
1557
+ static habitsDuplicate(options) {
1558
+ return (options.client ?? client).post({
1559
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1560
+ url: '/habits/duplicate',
1561
+ ...options,
1562
+ headers: {
1563
+ 'Content-Type': 'application/json',
1564
+ ...options.headers
1565
+ }
1566
+ });
1567
+ }
1568
+ /**
1569
+ * Log habit
1570
+ *
1571
+ * Log a habit completion or failure for a specific day
1572
+ */
1573
+ static habitsLogHabitOnDay(options) {
1574
+ return (options.client ?? client).post({
1575
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1576
+ url: '/habits/log',
1577
+ ...options,
1578
+ headers: {
1579
+ 'Content-Type': 'application/json',
1580
+ ...options.headers
1581
+ }
1582
+ });
1583
+ }
1584
+ /**
1585
+ * Log many habits
1586
+ *
1587
+ * Log multiple habits for a specific day
1588
+ */
1589
+ static habitsLogManyHabitsOnDay(options) {
1590
+ return (options.client ?? client).post({
1591
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1592
+ url: '/habits/log-many',
1593
+ ...options,
1594
+ headers: {
1595
+ 'Content-Type': 'application/json',
1596
+ ...options.headers
1597
+ }
1598
+ });
1599
+ }
1600
+ /**
1601
+ * Get habit score for widget
1602
+ *
1603
+ * Get aggregated habit score for the widget
1604
+ */
1605
+ static habitsGetHabitScoreForWidget(options) {
1606
+ return (options?.client ?? client).post({
1607
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1608
+ url: '/habits/score/widget',
1609
+ ...options
1610
+ });
1611
+ }
1612
+ }
1613
+ export class Hydration {
1614
+ /**
1615
+ * Delete hydration log
1616
+ *
1617
+ * Delete a hydration log
1618
+ */
1619
+ static hydrationLogsDelete(options) {
1620
+ return (options.client ?? client).delete({
1621
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1622
+ url: '/hydration/logs/{id}',
1623
+ ...options
1624
+ });
1625
+ }
1626
+ /**
1627
+ * Update hydration log
1628
+ *
1629
+ * Update an existing hydration log
1630
+ */
1631
+ static hydrationLogsUpdate(options) {
1632
+ return (options.client ?? client).patch({
1633
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1634
+ url: '/hydration/logs/{id}',
1635
+ ...options,
1636
+ headers: {
1637
+ 'Content-Type': 'application/json',
1638
+ ...options.headers
1639
+ }
1640
+ });
1641
+ }
1642
+ /**
1643
+ * Get hydration log
1644
+ *
1645
+ * Get a single hydration log by ID
1646
+ */
1647
+ static hydrationLogsGet(options) {
1648
+ return (options.client ?? client).post({
1649
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1650
+ url: '/hydration/logs/{id}',
1651
+ ...options
1652
+ });
1653
+ }
1654
+ /**
1655
+ * List hydration logs
1656
+ *
1657
+ * List hydration logs for a date range
1658
+ */
1659
+ static hydrationLogsList(options) {
1660
+ return (options.client ?? client).post({
1661
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1662
+ url: '/hydration/logs/list',
1663
+ ...options,
1664
+ headers: {
1665
+ 'Content-Type': 'application/json',
1666
+ ...options.headers
1667
+ }
1668
+ });
1669
+ }
1670
+ /**
1671
+ * Create hydration log
1672
+ *
1673
+ * Create a new hydration log
1674
+ */
1675
+ static hydrationLogsCreate(options) {
1676
+ return (options.client ?? client).post({
1677
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1678
+ url: '/hydration/logs',
1679
+ ...options,
1680
+ headers: {
1681
+ 'Content-Type': 'application/json',
1682
+ ...options.headers
1683
+ }
1684
+ });
1685
+ }
1686
+ /**
1687
+ * Delete multiple hydration logs
1688
+ *
1689
+ * Delete multiple hydration logs
1690
+ */
1691
+ static hydrationLogsDeleteMany(options) {
1692
+ return (options.client ?? client).post({
1693
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1694
+ url: '/hydration/logs/delete-many',
1695
+ ...options,
1696
+ headers: {
1697
+ 'Content-Type': 'application/json',
1698
+ ...options.headers
1699
+ }
1700
+ });
1701
+ }
1702
+ /**
1703
+ * Get hydration stats
1704
+ *
1705
+ * Get hydration stats for a date
1706
+ */
1707
+ static hydrationLogsGetStats(options) {
1708
+ return (options.client ?? client).post({
1709
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1710
+ url: '/hydration/stats',
1711
+ ...options,
1712
+ headers: {
1713
+ 'Content-Type': 'application/json',
1714
+ ...options.headers
1715
+ }
1716
+ });
1717
+ }
1718
+ }
1719
+ export class Fasting {
1720
+ /**
1721
+ * Delete fast
1722
+ *
1723
+ * Delete a fast
1724
+ */
1725
+ static fastingDelete(options) {
1726
+ return (options.client ?? client).delete({
1727
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1728
+ url: '/fasting/fasts/{id}',
1729
+ ...options
1730
+ });
1731
+ }
1732
+ /**
1733
+ * Update fast
1734
+ *
1735
+ * Update an existing fast
1736
+ */
1737
+ static fastingUpdate(options) {
1738
+ return (options.client ?? client).patch({
1739
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1740
+ url: '/fasting/fasts/{id}',
1741
+ ...options,
1742
+ headers: {
1743
+ 'Content-Type': 'application/json',
1744
+ ...options.headers
1745
+ }
1746
+ });
1747
+ }
1748
+ /**
1749
+ * Get fast
1750
+ *
1751
+ * Get a single fast by ID
1752
+ */
1753
+ static fastingGet(options) {
1754
+ return (options.client ?? client).post({
1755
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1756
+ url: '/fasting/fasts/{id}',
1757
+ ...options
1758
+ });
1759
+ }
1760
+ /**
1761
+ * List fasts
1762
+ *
1763
+ * List fasts for a date range
1764
+ */
1765
+ static fastingList(options) {
1766
+ return (options?.client ?? client).post({
1767
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1768
+ url: '/fasting/fasts/list',
1769
+ ...options,
1770
+ headers: {
1771
+ 'Content-Type': 'application/json',
1772
+ ...options?.headers
1773
+ }
1774
+ });
1775
+ }
1776
+ /**
1777
+ * Get active fast
1778
+ *
1779
+ * Get the currently active fast
1780
+ */
1781
+ static fastingGetActive(options) {
1782
+ return (options?.client ?? client).post({
1783
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1784
+ url: '/fasting/active',
1785
+ ...options
1786
+ });
1787
+ }
1788
+ /**
1789
+ * Get fasting stats
1790
+ *
1791
+ * Get fasting statistics
1792
+ */
1793
+ static fastingGetStats(options) {
1794
+ return (options?.client ?? client).post({
1795
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1796
+ url: '/fasting/stats',
1797
+ ...options
1798
+ });
1799
+ }
1800
+ /**
1801
+ * Get dashboard info
1802
+ *
1803
+ * Get fasting information for the dashboard
1804
+ */
1805
+ static fastingGetDashboardInfo(options) {
1806
+ return (options?.client ?? client).post({
1807
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1808
+ url: '/fasting/dashboard',
1809
+ ...options
1810
+ });
1811
+ }
1812
+ /**
1813
+ * Start fast
1814
+ *
1815
+ * Start a new fast
1816
+ */
1817
+ static fastingStart(options) {
1818
+ return (options?.client ?? client).post({
1819
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1820
+ url: '/fasting/start',
1821
+ ...options,
1822
+ headers: {
1823
+ 'Content-Type': 'application/json',
1824
+ ...options?.headers
1825
+ }
1826
+ });
1827
+ }
1828
+ /**
1829
+ * End fast
1830
+ *
1831
+ * End an active fast
1832
+ */
1833
+ static fastingEnd(options) {
1834
+ return (options.client ?? client).post({
1835
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1836
+ url: '/fasting/end',
1837
+ ...options,
1838
+ headers: {
1839
+ 'Content-Type': 'application/json',
1840
+ ...options.headers
1841
+ }
1842
+ });
1843
+ }
1844
+ }
1845
+ export class Workouts {
1846
+ /**
1847
+ * Delete workout
1848
+ *
1849
+ * Delete a workout
1850
+ */
1851
+ static workoutsDelete(options) {
1852
+ return (options.client ?? client).delete({
1853
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1854
+ url: '/workouts/{id}',
1855
+ ...options
1856
+ });
1857
+ }
1858
+ /**
1859
+ * Update workout
1860
+ *
1861
+ * Update an existing workout
1862
+ */
1863
+ static workoutsUpdate(options) {
1864
+ return (options.client ?? client).patch({
1865
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1866
+ url: '/workouts/{id}',
1867
+ ...options,
1868
+ headers: {
1869
+ 'Content-Type': 'application/json',
1870
+ ...options.headers
1871
+ }
1872
+ });
1873
+ }
1874
+ /**
1875
+ * Get workout
1876
+ *
1877
+ * Get a single workout by ID
1878
+ */
1879
+ static workoutsGet(options) {
1880
+ return (options.client ?? client).post({
1881
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1882
+ url: '/workouts/{id}',
1883
+ ...options
1884
+ });
1885
+ }
1886
+ /**
1887
+ * List workouts
1888
+ *
1889
+ * List workouts for a date range
1890
+ */
1891
+ static workoutsList(options) {
1892
+ return (options?.client ?? client).post({
1893
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1894
+ url: '/workouts/list',
1895
+ ...options,
1896
+ headers: {
1897
+ 'Content-Type': 'application/json',
1898
+ ...options?.headers
1899
+ }
1900
+ });
1901
+ }
1902
+ /**
1903
+ * Create workout
1904
+ *
1905
+ * Create a new workout
1906
+ */
1907
+ static workoutsCreate(options) {
1908
+ return (options.client ?? client).post({
1909
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1910
+ url: '/workouts',
1911
+ ...options,
1912
+ headers: {
1913
+ 'Content-Type': 'application/json',
1914
+ ...options.headers
1915
+ }
1916
+ });
1917
+ }
1918
+ /**
1919
+ * Get in-progress workout
1920
+ *
1921
+ * Get the currently in-progress workout
1922
+ */
1923
+ static workoutsInProgress(options) {
1924
+ return (options?.client ?? client).post({
1925
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1926
+ url: '/workouts/in-progress',
1927
+ ...options
1928
+ });
1929
+ }
1930
+ /**
1931
+ * Start workout
1932
+ *
1933
+ * Start a new workout
1934
+ */
1935
+ static workoutsStart(options) {
1936
+ return (options?.client ?? client).post({
1937
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1938
+ url: '/workouts/start',
1939
+ ...options,
1940
+ headers: {
1941
+ 'Content-Type': 'application/json',
1942
+ ...options?.headers
1943
+ }
1944
+ });
1945
+ }
1946
+ /**
1947
+ * End workout
1948
+ *
1949
+ * End an in-progress workout
1950
+ */
1951
+ static workoutsEnd(options) {
1952
+ return (options.client ?? client).post({
1953
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1954
+ url: '/workouts/end',
1955
+ ...options,
1956
+ headers: {
1957
+ 'Content-Type': 'application/json',
1958
+ ...options.headers
1959
+ }
1960
+ });
1961
+ }
1962
+ /**
1963
+ * Duplicate workout
1964
+ *
1965
+ * Duplicate an existing workout
1966
+ */
1967
+ static workoutsDuplicate(options) {
1968
+ return (options.client ?? client).post({
1969
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1970
+ url: '/workouts/{id}/duplicate',
1971
+ ...options
1972
+ });
1973
+ }
1974
+ /**
1975
+ * Get workout with details
1976
+ *
1977
+ * Get a workout with full details (exercises, sets)
1978
+ */
1979
+ static workoutsGetWithDetails(options) {
1980
+ return (options.client ?? client).post({
1981
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1982
+ url: '/workouts/{id}/details',
1983
+ ...options
1984
+ });
1985
+ }
1986
+ /**
1987
+ * Update workout name
1988
+ *
1989
+ * Update the name of a workout
1990
+ */
1991
+ static workoutsUpdateName(options) {
1992
+ return (options.client ?? client).patch({
1993
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1994
+ url: '/workouts/{id}/name',
1995
+ ...options,
1996
+ headers: {
1997
+ 'Content-Type': 'application/json',
1998
+ ...options.headers
1999
+ }
2000
+ });
2001
+ }
2002
+ /**
2003
+ * Get active users
2004
+ *
2005
+ * Get users who are currently working out
2006
+ */
2007
+ static workoutsActiveUsers(options) {
2008
+ return (options?.client ?? client).post({
2009
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2010
+ url: '/workouts/active-users',
2011
+ ...options
2012
+ });
2013
+ }
2014
+ /**
2015
+ * Submit complete workout
2016
+ *
2017
+ * Submit a complete workout with all exercises and sets
2018
+ */
2019
+ static workoutsSubmitComplete(options) {
2020
+ return (options.client ?? client).post({
2021
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2022
+ url: '/workouts/submit-complete',
2023
+ ...options,
2024
+ headers: {
2025
+ 'Content-Type': 'application/json',
2026
+ ...options.headers
2027
+ }
2028
+ });
2029
+ }
2030
+ }
2031
+ export class Journal {
2032
+ /**
2033
+ * Delete journal entry
2034
+ *
2035
+ * Delete a journal entry
2036
+ */
2037
+ static journalEntriesDelete(options) {
2038
+ return (options.client ?? client).delete({
2039
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2040
+ url: '/journal/entries/{id}',
2041
+ ...options
2042
+ });
2043
+ }
2044
+ /**
2045
+ * Update journal entry
2046
+ *
2047
+ * Update an existing journal entry
2048
+ */
2049
+ static journalEntriesUpdate(options) {
2050
+ return (options.client ?? client).patch({
2051
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2052
+ url: '/journal/entries/{id}',
2053
+ ...options,
2054
+ headers: {
2055
+ 'Content-Type': 'application/json',
2056
+ ...options.headers
2057
+ }
2058
+ });
2059
+ }
2060
+ /**
2061
+ * Get journal entry
2062
+ *
2063
+ * Get a single journal entry
2064
+ */
2065
+ static journalEntriesGet(options) {
2066
+ return (options.client ?? client).post({
2067
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2068
+ url: '/journal/entries/{id}',
2069
+ ...options,
2070
+ headers: {
2071
+ 'Content-Type': 'application/json',
2072
+ ...options.headers
2073
+ }
2074
+ });
2075
+ }
2076
+ /**
2077
+ * List journal entries
2078
+ *
2079
+ * List journal entries for a date range
2080
+ */
2081
+ static journalEntriesList(options) {
2082
+ return (options.client ?? client).post({
2083
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2084
+ url: '/journal/entries/list',
2085
+ ...options,
2086
+ headers: {
2087
+ 'Content-Type': 'application/json',
2088
+ ...options.headers
2089
+ }
2090
+ });
2091
+ }
2092
+ /**
2093
+ * Create journal entry
2094
+ *
2095
+ * Create a new journal entry
2096
+ */
2097
+ static journalEntriesCreate(options) {
2098
+ return (options.client ?? client).post({
2099
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2100
+ url: '/journal/entries',
2101
+ ...options,
2102
+ headers: {
2103
+ 'Content-Type': 'application/json',
2104
+ ...options.headers
2105
+ }
2106
+ });
2107
+ }
2108
+ /**
2109
+ * Delete multiple entries
2110
+ *
2111
+ * Delete multiple journal entries
2112
+ */
2113
+ static journalEntriesDeleteMany(options) {
2114
+ return (options.client ?? client).post({
2115
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2116
+ url: '/journal/entries/delete-many',
2117
+ ...options,
2118
+ headers: {
2119
+ 'Content-Type': 'application/json',
2120
+ ...options.headers
2121
+ }
2122
+ });
2123
+ }
2124
+ /**
2125
+ * Get journal stats
2126
+ *
2127
+ * Get statistics for journal entries
2128
+ */
2129
+ static journalEntriesStats(options) {
2130
+ return (options.client ?? client).post({
2131
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2132
+ url: '/journal/stats',
2133
+ ...options,
2134
+ headers: {
2135
+ 'Content-Type': 'application/json',
2136
+ ...options.headers
2137
+ }
2138
+ });
2139
+ }
2140
+ /**
2141
+ * Get entry for decrypting
2142
+ *
2143
+ * Get entry for decrypting without persisting changes
2144
+ */
2145
+ static journalEntriesGetForDecrypting(options) {
2146
+ return (options.client ?? client).post({
2147
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2148
+ url: '/journal/entries/{id}/decrypt-preview',
2149
+ ...options,
2150
+ headers: {
2151
+ 'Content-Type': 'application/json',
2152
+ ...options.headers
2153
+ }
2154
+ });
2155
+ }
2156
+ /**
2157
+ * Update encryption status
2158
+ *
2159
+ * Update encryption status for multiple entries
2160
+ */
2161
+ static journalEntriesUpdateManyEncryption(options) {
2162
+ return (options.client ?? client).post({
2163
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2164
+ url: '/journal/entries/update-many-encryption',
2165
+ ...options,
2166
+ headers: {
2167
+ 'Content-Type': 'application/json',
2168
+ ...options.headers
2169
+ }
2170
+ });
2171
+ }
2172
+ /**
2173
+ * Encrypt multiple entries
2174
+ *
2175
+ * Encrypt multiple journal entries
2176
+ */
2177
+ static journalEntriesEncryptMany(options) {
2178
+ return (options.client ?? client).post({
2179
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2180
+ url: '/journal/entries/encrypt-many',
2181
+ ...options,
2182
+ headers: {
2183
+ 'Content-Type': 'application/json',
2184
+ ...options.headers
2185
+ }
2186
+ });
2187
+ }
2188
+ /**
2189
+ * Encrypt entry
2190
+ *
2191
+ * Encrypt a single journal entry
2192
+ */
2193
+ static journalEntriesEncrypt(options) {
2194
+ return (options.client ?? client).post({
2195
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2196
+ url: '/journal/entries/{id}/encrypt',
2197
+ ...options,
2198
+ headers: {
2199
+ 'Content-Type': 'application/json',
2200
+ ...options.headers
2201
+ }
2202
+ });
2203
+ }
2204
+ /**
2205
+ * Decrypt entry
2206
+ *
2207
+ * Permanently decrypt a journal entry
2208
+ */
2209
+ static journalEntriesDecrypt(options) {
2210
+ return (options.client ?? client).post({
2211
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2212
+ url: '/journal/entries/{id}/decrypt',
2213
+ ...options,
2214
+ headers: {
2215
+ 'Content-Type': 'application/json',
2216
+ ...options.headers
2217
+ }
2218
+ });
2219
+ }
2220
+ /**
2221
+ * Toggle encryption flag
2222
+ *
2223
+ * Toggle encryption flag without processing content
2224
+ */
2225
+ static journalEntriesToggleEncryption(options) {
2226
+ return (options.client ?? client).post({
2227
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
2228
+ url: '/journal/entries/{id}/toggle-encryption',
2229
+ ...options
2230
+ });
2231
+ }
2232
+ }