@temps-sdk/node-sdk 0.0.1-alpha.3 → 0.0.1-alpha.6

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 (49) hide show
  1. package/dist/client/client/client.gen.d.ts +2 -0
  2. package/dist/client/client/client.gen.js +217 -0
  3. package/dist/client/client/index.d.ts +7 -0
  4. package/dist/client/client/index.js +5 -0
  5. package/dist/client/client/types.gen.d.ts +124 -0
  6. package/dist/client/client/types.gen.js +2 -0
  7. package/dist/client/client/utils.gen.d.ts +38 -0
  8. package/dist/client/client/utils.gen.js +229 -0
  9. package/dist/client/client.gen.d.ts +12 -0
  10. package/dist/client/client.gen.js +5 -0
  11. package/dist/client/core/auth.gen.d.ts +18 -0
  12. package/dist/client/core/auth.gen.js +14 -0
  13. package/dist/client/core/bodySerializer.gen.d.ts +17 -0
  14. package/dist/client/core/bodySerializer.gen.js +57 -0
  15. package/dist/client/core/params.gen.d.ts +33 -0
  16. package/dist/client/core/params.gen.js +88 -0
  17. package/dist/client/core/pathSerializer.gen.d.ts +33 -0
  18. package/dist/client/core/pathSerializer.gen.js +114 -0
  19. package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
  20. package/dist/client/core/serverSentEvents.gen.js +135 -0
  21. package/dist/client/core/types.gen.d.ts +78 -0
  22. package/dist/client/core/types.gen.js +2 -0
  23. package/dist/client/core/utils.gen.d.ts +14 -0
  24. package/dist/client/core/utils.gen.js +69 -0
  25. package/dist/client/index.d.ts +2 -0
  26. package/dist/client/index.js +3 -0
  27. package/dist/client/sdk.gen.d.ts +1323 -0
  28. package/dist/client/sdk.gen.js +4659 -0
  29. package/dist/client/types.gen.d.ts +16792 -0
  30. package/dist/client/types.gen.js +2 -0
  31. package/dist/errors/client.d.ts +46 -0
  32. package/dist/errors/client.js +261 -0
  33. package/dist/errors/hub.d.ts +22 -0
  34. package/dist/errors/hub.js +102 -0
  35. package/dist/errors/index.d.ts +35 -0
  36. package/dist/errors/index.js +167 -0
  37. package/dist/errors/scope.d.ts +23 -0
  38. package/dist/errors/scope.js +82 -0
  39. package/dist/errors/stacktrace.d.ts +5 -0
  40. package/dist/errors/stacktrace.js +113 -0
  41. package/dist/errors/transaction.d.ts +57 -0
  42. package/dist/errors/transaction.js +163 -0
  43. package/dist/errors/transport.d.ts +23 -0
  44. package/dist/errors/transport.js +72 -0
  45. package/dist/errors/types.d.ts +200 -0
  46. package/dist/errors/types.js +1 -0
  47. package/dist/index.d.ts +4796 -0
  48. package/dist/index.js +595 -0
  49. package/package.json +6 -4
@@ -0,0 +1,4659 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client as _heyApiClient } from './client.gen';
3
+ /**
4
+ * Get platform information
5
+ */
6
+ export const getPlatformInfo = (options) => {
7
+ return (options?.client ?? _heyApiClient).get({
8
+ url: '/.well-known/temps.json',
9
+ ...options
10
+ });
11
+ };
12
+ /**
13
+ * Record analytics event
14
+ */
15
+ export const recordEventMetrics = (options) => {
16
+ return (options.client ?? _heyApiClient).post({
17
+ url: '/_temps/event',
18
+ ...options,
19
+ headers: {
20
+ 'Content-Type': 'application/json',
21
+ ...options.headers
22
+ }
23
+ });
24
+ };
25
+ /**
26
+ * Add events to existing session replay
27
+ */
28
+ export const addSessionReplayEvents = (options) => {
29
+ return (options.client ?? _heyApiClient).post({
30
+ url: '/_temps/session-replay/events',
31
+ ...options,
32
+ headers: {
33
+ 'Content-Type': 'application/json',
34
+ ...options.headers
35
+ }
36
+ });
37
+ };
38
+ /**
39
+ * Initialize session replay with metadata
40
+ */
41
+ export const initSessionReplay = (options) => {
42
+ return (options.client ?? _heyApiClient).post({
43
+ url: '/_temps/session-replay/init',
44
+ ...options,
45
+ headers: {
46
+ 'Content-Type': 'application/json',
47
+ ...options.headers
48
+ }
49
+ });
50
+ };
51
+ /**
52
+ * Record performance metrics from client
53
+ */
54
+ export const recordSpeedMetrics = (options) => {
55
+ return (options.client ?? _heyApiClient).post({
56
+ url: '/_temps/speed',
57
+ ...options,
58
+ headers: {
59
+ 'Content-Type': 'application/json',
60
+ ...options.headers
61
+ }
62
+ });
63
+ };
64
+ /**
65
+ * Update late performance metrics
66
+ */
67
+ export const updateSpeedMetrics = (options) => {
68
+ return (options.client ?? _heyApiClient).post({
69
+ url: '/_temps/speed/update',
70
+ ...options,
71
+ headers: {
72
+ 'Content-Type': 'application/json',
73
+ ...options.headers
74
+ }
75
+ });
76
+ };
77
+ /**
78
+ * Get detailed active visitors
79
+ */
80
+ export const getActiveVisitors = (options) => {
81
+ return (options.client ?? _heyApiClient).get({
82
+ security: [
83
+ {
84
+ scheme: 'bearer',
85
+ type: 'http'
86
+ }
87
+ ],
88
+ url: '/analytics/active-visitors',
89
+ ...options
90
+ });
91
+ };
92
+ export const getEventsCount = (options) => {
93
+ return (options.client ?? _heyApiClient).get({
94
+ security: [
95
+ {
96
+ scheme: 'bearer',
97
+ type: 'http'
98
+ }
99
+ ],
100
+ url: '/analytics/events',
101
+ ...options
102
+ });
103
+ };
104
+ /**
105
+ * Get general statistics across all projects for a time frame
106
+ */
107
+ export const getGeneralStats = (options) => {
108
+ return (options.client ?? _heyApiClient).get({
109
+ security: [
110
+ {
111
+ scheme: 'bearer',
112
+ type: 'http'
113
+ }
114
+ ],
115
+ url: '/analytics/general-stats',
116
+ ...options
117
+ });
118
+ };
119
+ /**
120
+ * Get list of currently live visitors from visitor table
121
+ */
122
+ export const getLiveVisitorsList = (options) => {
123
+ return (options.client ?? _heyApiClient).get({
124
+ security: [
125
+ {
126
+ scheme: 'bearer',
127
+ type: 'http'
128
+ }
129
+ ],
130
+ url: '/analytics/live-visitors',
131
+ ...options
132
+ });
133
+ };
134
+ export const getPageHourlySessions = (options) => {
135
+ return (options.client ?? _heyApiClient).get({
136
+ security: [
137
+ {
138
+ scheme: 'bearer',
139
+ type: 'http'
140
+ }
141
+ ],
142
+ url: '/analytics/page-hourly-sessions',
143
+ ...options
144
+ });
145
+ };
146
+ export const getPagePaths = (options) => {
147
+ return (options.client ?? _heyApiClient).get({
148
+ security: [
149
+ {
150
+ scheme: 'bearer',
151
+ type: 'http'
152
+ }
153
+ ],
154
+ url: '/analytics/page-paths',
155
+ ...options
156
+ });
157
+ };
158
+ /**
159
+ * Get detailed information about a specific session including events and request logs
160
+ */
161
+ export const getSessionDetails = (options) => {
162
+ return (options.client ?? _heyApiClient).get({
163
+ security: [
164
+ {
165
+ scheme: 'bearer',
166
+ type: 'http'
167
+ }
168
+ ],
169
+ url: '/analytics/sessions/{session_id}',
170
+ ...options
171
+ });
172
+ };
173
+ export const getSessionEvents = (options) => {
174
+ return (options.client ?? _heyApiClient).get({
175
+ security: [
176
+ {
177
+ scheme: 'bearer',
178
+ type: 'http'
179
+ }
180
+ ],
181
+ url: '/analytics/sessions/{session_id}/events',
182
+ ...options
183
+ });
184
+ };
185
+ export const getSessionLogs = (options) => {
186
+ return (options.client ?? _heyApiClient).get({
187
+ security: [
188
+ {
189
+ scheme: 'bearer',
190
+ type: 'http'
191
+ }
192
+ ],
193
+ url: '/analytics/sessions/{session_id}/logs',
194
+ ...options
195
+ });
196
+ };
197
+ /**
198
+ * Get list of visitors with summary information
199
+ */
200
+ export const getVisitors = (options) => {
201
+ return (options.client ?? _heyApiClient).get({
202
+ security: [
203
+ {
204
+ scheme: 'bearer',
205
+ type: 'http'
206
+ }
207
+ ],
208
+ url: '/analytics/visitors',
209
+ ...options
210
+ });
211
+ };
212
+ /**
213
+ * Get visitor by GUID with geolocation data
214
+ */
215
+ export const getVisitorByGuid = (options) => {
216
+ return (options.client ?? _heyApiClient).get({
217
+ security: [
218
+ {
219
+ scheme: 'bearer',
220
+ type: 'http'
221
+ }
222
+ ],
223
+ url: '/analytics/visitors/guid/{visitor_id}',
224
+ ...options
225
+ });
226
+ };
227
+ /**
228
+ * Get visitor by numeric ID with geolocation data
229
+ */
230
+ export const getVisitorById = (options) => {
231
+ return (options.client ?? _heyApiClient).get({
232
+ security: [
233
+ {
234
+ scheme: 'bearer',
235
+ type: 'http'
236
+ }
237
+ ],
238
+ url: '/analytics/visitors/id/{id}',
239
+ ...options
240
+ });
241
+ };
242
+ /**
243
+ * Get detailed information about a specific visitor by numeric ID
244
+ */
245
+ export const getVisitorDetails = (options) => {
246
+ return (options.client ?? _heyApiClient).get({
247
+ security: [
248
+ {
249
+ scheme: 'bearer',
250
+ type: 'http'
251
+ }
252
+ ],
253
+ url: '/analytics/visitors/{visitor_id}',
254
+ ...options
255
+ });
256
+ };
257
+ export const enrichVisitor = (options) => {
258
+ return (options.client ?? _heyApiClient).put({
259
+ security: [
260
+ {
261
+ scheme: 'bearer',
262
+ type: 'http'
263
+ }
264
+ ],
265
+ url: '/analytics/visitors/{visitor_id}/enrich',
266
+ ...options,
267
+ headers: {
268
+ 'Content-Type': 'application/json',
269
+ ...options.headers
270
+ }
271
+ });
272
+ };
273
+ /**
274
+ * Get visitor record from database
275
+ */
276
+ export const getVisitorInfo = (options) => {
277
+ return (options.client ?? _heyApiClient).get({
278
+ security: [
279
+ {
280
+ scheme: 'bearer',
281
+ type: 'http'
282
+ }
283
+ ],
284
+ url: '/analytics/visitors/{visitor_id}/info',
285
+ ...options
286
+ });
287
+ };
288
+ /**
289
+ * Get all sessions for a specific visitor by numeric ID
290
+ */
291
+ export const getVisitorSessions = (options) => {
292
+ return (options.client ?? _heyApiClient).get({
293
+ security: [
294
+ {
295
+ scheme: 'bearer',
296
+ type: 'http'
297
+ }
298
+ ],
299
+ url: '/analytics/visitors/{visitor_id}/sessions',
300
+ ...options
301
+ });
302
+ };
303
+ /**
304
+ * Get visitor statistics
305
+ */
306
+ export const getVisitorStats = (options) => {
307
+ return (options.client ?? _heyApiClient).get({
308
+ security: [
309
+ {
310
+ scheme: 'bearer',
311
+ type: 'http'
312
+ }
313
+ ],
314
+ url: '/analytics/visitors/{visitor_id}/stats',
315
+ ...options
316
+ });
317
+ };
318
+ export const listApiKeys = (options) => {
319
+ return (options?.client ?? _heyApiClient).get({
320
+ security: [
321
+ {
322
+ scheme: 'bearer',
323
+ type: 'http'
324
+ }
325
+ ],
326
+ url: '/api-keys',
327
+ ...options
328
+ });
329
+ };
330
+ export const createApiKey = (options) => {
331
+ return (options.client ?? _heyApiClient).post({
332
+ security: [
333
+ {
334
+ scheme: 'bearer',
335
+ type: 'http'
336
+ }
337
+ ],
338
+ url: '/api-keys',
339
+ ...options,
340
+ headers: {
341
+ 'Content-Type': 'application/json',
342
+ ...options.headers
343
+ }
344
+ });
345
+ };
346
+ export const getApiKeyPermissions = (options) => {
347
+ return (options?.client ?? _heyApiClient).get({
348
+ security: [
349
+ {
350
+ scheme: 'bearer',
351
+ type: 'http'
352
+ }
353
+ ],
354
+ url: '/api-keys/permissions',
355
+ ...options
356
+ });
357
+ };
358
+ export const deleteApiKey = (options) => {
359
+ return (options.client ?? _heyApiClient).delete({
360
+ security: [
361
+ {
362
+ scheme: 'bearer',
363
+ type: 'http'
364
+ }
365
+ ],
366
+ url: '/api-keys/{id}',
367
+ ...options
368
+ });
369
+ };
370
+ export const getApiKey = (options) => {
371
+ return (options.client ?? _heyApiClient).get({
372
+ security: [
373
+ {
374
+ scheme: 'bearer',
375
+ type: 'http'
376
+ }
377
+ ],
378
+ url: '/api-keys/{id}',
379
+ ...options
380
+ });
381
+ };
382
+ export const updateApiKey = (options) => {
383
+ return (options.client ?? _heyApiClient).put({
384
+ security: [
385
+ {
386
+ scheme: 'bearer',
387
+ type: 'http'
388
+ }
389
+ ],
390
+ url: '/api-keys/{id}',
391
+ ...options,
392
+ headers: {
393
+ 'Content-Type': 'application/json',
394
+ ...options.headers
395
+ }
396
+ });
397
+ };
398
+ export const activateApiKey = (options) => {
399
+ return (options.client ?? _heyApiClient).post({
400
+ security: [
401
+ {
402
+ scheme: 'bearer',
403
+ type: 'http'
404
+ }
405
+ ],
406
+ url: '/api-keys/{id}/activate',
407
+ ...options
408
+ });
409
+ };
410
+ export const deactivateApiKey = (options) => {
411
+ return (options.client ?? _heyApiClient).post({
412
+ security: [
413
+ {
414
+ scheme: 'bearer',
415
+ type: 'http'
416
+ }
417
+ ],
418
+ url: '/api-keys/{id}/deactivate',
419
+ ...options
420
+ });
421
+ };
422
+ /**
423
+ * Get logs for a specific deployment job
424
+ */
425
+ export const getDeploymentJobLogs = (options) => {
426
+ return (options.client ?? _heyApiClient).get({
427
+ url: '/api/projects/{project_id}/deployments/{deployment_id}/jobs/{job_id}/logs',
428
+ ...options
429
+ });
430
+ };
431
+ /**
432
+ * Ingest a Sentry envelope (binary payload)
433
+ */
434
+ export const ingestSentryEnvelope = (options) => {
435
+ return (options.client ?? _heyApiClient).post({
436
+ bodySerializer: null,
437
+ url: '/api/{project_id}/envelope/',
438
+ ...options,
439
+ headers: {
440
+ 'Content-Type': 'application/octet-stream',
441
+ ...options.headers
442
+ }
443
+ });
444
+ };
445
+ /**
446
+ * Ingest a Sentry event (JSON payload)
447
+ */
448
+ export const ingestSentryEvent = (options) => {
449
+ return (options.client ?? _heyApiClient).post({
450
+ url: '/api/{project_id}/store/',
451
+ ...options,
452
+ headers: {
453
+ 'Content-Type': 'application/json',
454
+ ...options.headers
455
+ }
456
+ });
457
+ };
458
+ export const emailStatus = (options) => {
459
+ return (options?.client ?? _heyApiClient).get({
460
+ url: '/auth/email-status',
461
+ ...options
462
+ });
463
+ };
464
+ export const login = (options) => {
465
+ return (options.client ?? _heyApiClient).post({
466
+ url: '/auth/login',
467
+ ...options,
468
+ headers: {
469
+ 'Content-Type': 'application/json',
470
+ ...options.headers
471
+ }
472
+ });
473
+ };
474
+ export const requestMagicLink = (options) => {
475
+ return (options.client ?? _heyApiClient).post({
476
+ url: '/auth/magic-link/request',
477
+ ...options,
478
+ headers: {
479
+ 'Content-Type': 'application/json',
480
+ ...options.headers
481
+ }
482
+ });
483
+ };
484
+ export const verifyMagicLink = (options) => {
485
+ return (options.client ?? _heyApiClient).get({
486
+ url: '/auth/magic-link/verify',
487
+ ...options
488
+ });
489
+ };
490
+ export const requestPasswordReset = (options) => {
491
+ return (options.client ?? _heyApiClient).post({
492
+ url: '/auth/password-reset/request',
493
+ ...options,
494
+ headers: {
495
+ 'Content-Type': 'application/json',
496
+ ...options.headers
497
+ }
498
+ });
499
+ };
500
+ export const resetPassword = (options) => {
501
+ return (options.client ?? _heyApiClient).post({
502
+ url: '/auth/password-reset/verify',
503
+ ...options,
504
+ headers: {
505
+ 'Content-Type': 'application/json',
506
+ ...options.headers
507
+ }
508
+ });
509
+ };
510
+ export const verifyEmail = (options) => {
511
+ return (options.client ?? _heyApiClient).get({
512
+ url: '/auth/verify-email',
513
+ ...options
514
+ });
515
+ };
516
+ export const verifyMfaChallenge = (options) => {
517
+ return (options.client ?? _heyApiClient).post({
518
+ url: '/auth/verify-mfa',
519
+ ...options,
520
+ headers: {
521
+ 'Content-Type': 'application/json',
522
+ ...options.headers
523
+ }
524
+ });
525
+ };
526
+ /**
527
+ * Run a backup for an external service manually
528
+ */
529
+ export const runExternalServiceBackup = (options) => {
530
+ return (options.client ?? _heyApiClient).post({
531
+ security: [
532
+ {
533
+ scheme: 'bearer',
534
+ type: 'http'
535
+ }
536
+ ],
537
+ url: '/backups/external-services/{id}/run',
538
+ ...options,
539
+ headers: {
540
+ 'Content-Type': 'application/json',
541
+ ...options.headers
542
+ }
543
+ });
544
+ };
545
+ /**
546
+ * List all S3 sources
547
+ */
548
+ export const listS3Sources = (options) => {
549
+ return (options?.client ?? _heyApiClient).get({
550
+ security: [
551
+ {
552
+ scheme: 'bearer',
553
+ type: 'http'
554
+ }
555
+ ],
556
+ url: '/backups/s3-sources',
557
+ ...options
558
+ });
559
+ };
560
+ /**
561
+ * Create a new S3 source
562
+ */
563
+ export const createS3Source = (options) => {
564
+ return (options.client ?? _heyApiClient).post({
565
+ security: [
566
+ {
567
+ scheme: 'bearer',
568
+ type: 'http'
569
+ }
570
+ ],
571
+ url: '/backups/s3-sources',
572
+ ...options,
573
+ headers: {
574
+ 'Content-Type': 'application/json',
575
+ ...options.headers
576
+ }
577
+ });
578
+ };
579
+ /**
580
+ * Delete an S3 source
581
+ */
582
+ export const deleteS3Source = (options) => {
583
+ return (options.client ?? _heyApiClient).delete({
584
+ security: [
585
+ {
586
+ scheme: 'bearer',
587
+ type: 'http'
588
+ }
589
+ ],
590
+ url: '/backups/s3-sources/{id}',
591
+ ...options
592
+ });
593
+ };
594
+ /**
595
+ * Get an S3 source by ID
596
+ */
597
+ export const getS3Source = (options) => {
598
+ return (options.client ?? _heyApiClient).get({
599
+ security: [
600
+ {
601
+ scheme: 'bearer',
602
+ type: 'http'
603
+ }
604
+ ],
605
+ url: '/backups/s3-sources/{id}',
606
+ ...options
607
+ });
608
+ };
609
+ /**
610
+ * Update an S3 source
611
+ */
612
+ export const updateS3Source = (options) => {
613
+ return (options.client ?? _heyApiClient).patch({
614
+ security: [
615
+ {
616
+ scheme: 'bearer',
617
+ type: 'http'
618
+ }
619
+ ],
620
+ url: '/backups/s3-sources/{id}',
621
+ ...options,
622
+ headers: {
623
+ 'Content-Type': 'application/json',
624
+ ...options.headers
625
+ }
626
+ });
627
+ };
628
+ /**
629
+ * List all backups in an S3 source
630
+ */
631
+ export const listSourceBackups = (options) => {
632
+ return (options.client ?? _heyApiClient).get({
633
+ security: [
634
+ {
635
+ scheme: 'bearer',
636
+ type: 'http'
637
+ }
638
+ ],
639
+ url: '/backups/s3-sources/{id}/backups',
640
+ ...options
641
+ });
642
+ };
643
+ /**
644
+ * Run a backup immediately for an S3 source
645
+ */
646
+ export const runBackupForSource = (options) => {
647
+ return (options.client ?? _heyApiClient).post({
648
+ security: [
649
+ {
650
+ scheme: 'bearer',
651
+ type: 'http'
652
+ }
653
+ ],
654
+ url: '/backups/s3-sources/{id}/run',
655
+ ...options,
656
+ headers: {
657
+ 'Content-Type': 'application/json',
658
+ ...options.headers
659
+ }
660
+ });
661
+ };
662
+ /**
663
+ * List all backup schedules
664
+ */
665
+ export const listBackupSchedules = (options) => {
666
+ return (options?.client ?? _heyApiClient).get({
667
+ security: [
668
+ {
669
+ scheme: 'bearer',
670
+ type: 'http'
671
+ }
672
+ ],
673
+ url: '/backups/schedules',
674
+ ...options
675
+ });
676
+ };
677
+ /**
678
+ * Create a new backup schedule
679
+ */
680
+ export const createBackupSchedule = (options) => {
681
+ return (options.client ?? _heyApiClient).post({
682
+ security: [
683
+ {
684
+ scheme: 'bearer',
685
+ type: 'http'
686
+ }
687
+ ],
688
+ url: '/backups/schedules',
689
+ ...options,
690
+ headers: {
691
+ 'Content-Type': 'application/json',
692
+ ...options.headers
693
+ }
694
+ });
695
+ };
696
+ /**
697
+ * Delete a backup schedule
698
+ */
699
+ export const deleteBackupSchedule = (options) => {
700
+ return (options.client ?? _heyApiClient).delete({
701
+ security: [
702
+ {
703
+ scheme: 'bearer',
704
+ type: 'http'
705
+ }
706
+ ],
707
+ url: '/backups/schedules/{id}',
708
+ ...options
709
+ });
710
+ };
711
+ /**
712
+ * Get a backup schedule by ID
713
+ */
714
+ export const getBackupSchedule = (options) => {
715
+ return (options.client ?? _heyApiClient).get({
716
+ security: [
717
+ {
718
+ scheme: 'bearer',
719
+ type: 'http'
720
+ }
721
+ ],
722
+ url: '/backups/schedules/{id}',
723
+ ...options
724
+ });
725
+ };
726
+ /**
727
+ * List backups for a schedule
728
+ */
729
+ export const listBackupsForSchedule = (options) => {
730
+ return (options.client ?? _heyApiClient).get({
731
+ security: [
732
+ {
733
+ scheme: 'bearer',
734
+ type: 'http'
735
+ }
736
+ ],
737
+ url: '/backups/schedules/{id}/backups',
738
+ ...options
739
+ });
740
+ };
741
+ /**
742
+ * Disable a backup schedule
743
+ */
744
+ export const disableBackupSchedule = (options) => {
745
+ return (options.client ?? _heyApiClient).patch({
746
+ security: [
747
+ {
748
+ scheme: 'bearer',
749
+ type: 'http'
750
+ }
751
+ ],
752
+ url: '/backups/schedules/{id}/disable',
753
+ ...options
754
+ });
755
+ };
756
+ /**
757
+ * Enable a backup schedule
758
+ */
759
+ export const enableBackupSchedule = (options) => {
760
+ return (options.client ?? _heyApiClient).patch({
761
+ security: [
762
+ {
763
+ scheme: 'bearer',
764
+ type: 'http'
765
+ }
766
+ ],
767
+ url: '/backups/schedules/{id}/enable',
768
+ ...options
769
+ });
770
+ };
771
+ /**
772
+ * Get a backup by ID
773
+ */
774
+ export const getBackup = (options) => {
775
+ return (options.client ?? _heyApiClient).get({
776
+ security: [
777
+ {
778
+ scheme: 'bearer',
779
+ type: 'http'
780
+ }
781
+ ],
782
+ url: '/backups/{id}',
783
+ ...options
784
+ });
785
+ };
786
+ /**
787
+ * Get deployment activity graph showing daily deployment counts
788
+ * Similar to GitHub's contribution graph
789
+ */
790
+ export const getActivityGraph = (options) => {
791
+ return (options?.client ?? _heyApiClient).get({
792
+ security: [
793
+ {
794
+ scheme: 'bearer',
795
+ type: 'http'
796
+ }
797
+ ],
798
+ url: '/deployments/activity-graph',
799
+ ...options
800
+ });
801
+ };
802
+ /**
803
+ * List all DNS providers
804
+ */
805
+ export const listProviders = (options) => {
806
+ return (options?.client ?? _heyApiClient).get({
807
+ security: [
808
+ {
809
+ scheme: 'bearer',
810
+ type: 'http'
811
+ }
812
+ ],
813
+ url: '/dns-providers',
814
+ ...options
815
+ });
816
+ };
817
+ /**
818
+ * Create a new DNS provider
819
+ * The provider's credentials will be tested before creation.
820
+ * If the connection test fails, the provider will not be created.
821
+ */
822
+ export const createProvider = (options) => {
823
+ return (options.client ?? _heyApiClient).post({
824
+ security: [
825
+ {
826
+ scheme: 'bearer',
827
+ type: 'http'
828
+ }
829
+ ],
830
+ url: '/dns-providers',
831
+ ...options,
832
+ headers: {
833
+ 'Content-Type': 'application/json',
834
+ ...options.headers
835
+ }
836
+ });
837
+ };
838
+ /**
839
+ * Delete a DNS provider
840
+ */
841
+ export const deleteProvider = (options) => {
842
+ return (options.client ?? _heyApiClient).delete({
843
+ security: [
844
+ {
845
+ scheme: 'bearer',
846
+ type: 'http'
847
+ }
848
+ ],
849
+ url: '/dns-providers/{id}',
850
+ ...options
851
+ });
852
+ };
853
+ /**
854
+ * Get a DNS provider by ID
855
+ */
856
+ export const getProvider = (options) => {
857
+ return (options.client ?? _heyApiClient).get({
858
+ security: [
859
+ {
860
+ scheme: 'bearer',
861
+ type: 'http'
862
+ }
863
+ ],
864
+ url: '/dns-providers/{id}',
865
+ ...options
866
+ });
867
+ };
868
+ /**
869
+ * Update a DNS provider
870
+ */
871
+ export const updateProvider = (options) => {
872
+ return (options.client ?? _heyApiClient).put({
873
+ security: [
874
+ {
875
+ scheme: 'bearer',
876
+ type: 'http'
877
+ }
878
+ ],
879
+ url: '/dns-providers/{id}',
880
+ ...options,
881
+ headers: {
882
+ 'Content-Type': 'application/json',
883
+ ...options.headers
884
+ }
885
+ });
886
+ };
887
+ /**
888
+ * List managed domains for a provider
889
+ */
890
+ export const listManagedDomains = (options) => {
891
+ return (options.client ?? _heyApiClient).get({
892
+ security: [
893
+ {
894
+ scheme: 'bearer',
895
+ type: 'http'
896
+ }
897
+ ],
898
+ url: '/dns-providers/{id}/domains',
899
+ ...options
900
+ });
901
+ };
902
+ /**
903
+ * Add a managed domain to a provider
904
+ */
905
+ export const addManagedDomain = (options) => {
906
+ return (options.client ?? _heyApiClient).post({
907
+ security: [
908
+ {
909
+ scheme: 'bearer',
910
+ type: 'http'
911
+ }
912
+ ],
913
+ url: '/dns-providers/{id}/domains',
914
+ ...options,
915
+ headers: {
916
+ 'Content-Type': 'application/json',
917
+ ...options.headers
918
+ }
919
+ });
920
+ };
921
+ /**
922
+ * Test provider connection
923
+ */
924
+ export const testProviderConnection = (options) => {
925
+ return (options.client ?? _heyApiClient).post({
926
+ security: [
927
+ {
928
+ scheme: 'bearer',
929
+ type: 'http'
930
+ }
931
+ ],
932
+ url: '/dns-providers/{id}/test',
933
+ ...options
934
+ });
935
+ };
936
+ /**
937
+ * List zones available in a provider
938
+ */
939
+ export const listProviderZones = (options) => {
940
+ return (options.client ?? _heyApiClient).get({
941
+ security: [
942
+ {
943
+ scheme: 'bearer',
944
+ type: 'http'
945
+ }
946
+ ],
947
+ url: '/dns-providers/{id}/zones',
948
+ ...options
949
+ });
950
+ };
951
+ /**
952
+ * Remove a managed domain
953
+ */
954
+ export const removeManagedDomain = (options) => {
955
+ return (options.client ?? _heyApiClient).delete({
956
+ security: [
957
+ {
958
+ scheme: 'bearer',
959
+ type: 'http'
960
+ }
961
+ ],
962
+ url: '/dns-providers/{provider_id}/domains/{domain}',
963
+ ...options
964
+ });
965
+ };
966
+ /**
967
+ * Verify a managed domain
968
+ */
969
+ export const verifyManagedDomain = (options) => {
970
+ return (options.client ?? _heyApiClient).post({
971
+ security: [
972
+ {
973
+ scheme: 'bearer',
974
+ type: 'http'
975
+ }
976
+ ],
977
+ url: '/dns-providers/{provider_id}/domains/{domain}/verify',
978
+ ...options
979
+ });
980
+ };
981
+ /**
982
+ * Lookup DNS A records for a domain
983
+ */
984
+ export const lookupDnsARecords = (options) => {
985
+ return (options.client ?? _heyApiClient).get({
986
+ url: '/dns/lookup',
987
+ ...options
988
+ });
989
+ };
990
+ /**
991
+ * List all domains
992
+ */
993
+ export const listDomains = (options) => {
994
+ return (options?.client ?? _heyApiClient).get({
995
+ security: [
996
+ {
997
+ scheme: 'bearer',
998
+ type: 'http'
999
+ }
1000
+ ],
1001
+ url: '/domains',
1002
+ ...options
1003
+ });
1004
+ };
1005
+ /**
1006
+ * Create a new domain
1007
+ * Creates a new domain and automatically requests a Let's Encrypt challenge.
1008
+ * You can specify the challenge type (HTTP-01 or DNS-01) in the request.
1009
+ *
1010
+ * - **HTTP-01**: Validates domain ownership by placing a file on your web server at `/.well-known/acme-challenge/`
1011
+ * - **DNS-01**: Validates domain ownership by adding a TXT record to your DNS (required for wildcard domains)
1012
+ */
1013
+ export const createDomain = (options) => {
1014
+ return (options.client ?? _heyApiClient).post({
1015
+ security: [
1016
+ {
1017
+ scheme: 'bearer',
1018
+ type: 'http'
1019
+ }
1020
+ ],
1021
+ url: '/domains',
1022
+ ...options,
1023
+ headers: {
1024
+ 'Content-Type': 'application/json',
1025
+ ...options.headers
1026
+ }
1027
+ });
1028
+ };
1029
+ /**
1030
+ * Get domain details by hostname
1031
+ */
1032
+ export const getDomainByHost = (options) => {
1033
+ return (options.client ?? _heyApiClient).get({
1034
+ security: [
1035
+ {
1036
+ scheme: 'bearer',
1037
+ type: 'http'
1038
+ }
1039
+ ],
1040
+ url: '/domains/by-host/{hostname}',
1041
+ ...options
1042
+ });
1043
+ };
1044
+ /**
1045
+ * Cancel ACME order for a domain
1046
+ * Cancels the current ACME order for a domain and clears all challenge data.
1047
+ * This allows you to start over with a new order if the previous one failed or got stuck.
1048
+ */
1049
+ export const cancelDomainOrder = (options) => {
1050
+ return (options.client ?? _heyApiClient).delete({
1051
+ security: [
1052
+ {
1053
+ scheme: 'bearer',
1054
+ type: 'http'
1055
+ }
1056
+ ],
1057
+ url: '/domains/{domain_id}/order',
1058
+ ...options
1059
+ });
1060
+ };
1061
+ /**
1062
+ * Get ACME order for a domain
1063
+ */
1064
+ export const getDomainOrder = (options) => {
1065
+ return (options.client ?? _heyApiClient).get({
1066
+ security: [
1067
+ {
1068
+ scheme: 'bearer',
1069
+ type: 'http'
1070
+ }
1071
+ ],
1072
+ url: '/domains/{domain_id}/order',
1073
+ ...options
1074
+ });
1075
+ };
1076
+ /**
1077
+ * Create or recreate ACME order for a domain
1078
+ * Creates a new ACME order with Let's Encrypt for the specified domain.
1079
+ * If an order already exists, you should cancel it first using the cancel-order endpoint.
1080
+ * Returns the challenge details that need to be fulfilled (DNS record or HTTP token).
1081
+ */
1082
+ export const createOrRecreateOrder = (options) => {
1083
+ return (options.client ?? _heyApiClient).post({
1084
+ security: [
1085
+ {
1086
+ scheme: 'bearer',
1087
+ type: 'http'
1088
+ }
1089
+ ],
1090
+ url: '/domains/{domain_id}/order',
1091
+ ...options
1092
+ });
1093
+ };
1094
+ /**
1095
+ * Finalize ACME order for a domain
1096
+ * Finalizes the ACME order by completing the challenge validation and requesting the certificate.
1097
+ * This should be called after the challenge has been set up (DNS record added or HTTP token served).
1098
+ */
1099
+ export const finalizeOrder = (options) => {
1100
+ return (options.client ?? _heyApiClient).post({
1101
+ security: [
1102
+ {
1103
+ scheme: 'bearer',
1104
+ type: 'http'
1105
+ }
1106
+ ],
1107
+ url: '/domains/{domain_id}/order/finalize',
1108
+ ...options
1109
+ });
1110
+ };
1111
+ /**
1112
+ * Delete a domain
1113
+ */
1114
+ export const deleteDomain = (options) => {
1115
+ return (options.client ?? _heyApiClient).delete({
1116
+ security: [
1117
+ {
1118
+ scheme: 'bearer',
1119
+ type: 'http'
1120
+ }
1121
+ ],
1122
+ url: '/domains/{domain}',
1123
+ ...options
1124
+ });
1125
+ };
1126
+ /**
1127
+ * Get domain by ID
1128
+ */
1129
+ export const getDomainById = (options) => {
1130
+ return (options.client ?? _heyApiClient).get({
1131
+ security: [
1132
+ {
1133
+ scheme: 'bearer',
1134
+ type: 'http'
1135
+ }
1136
+ ],
1137
+ url: '/domains/{domain}',
1138
+ ...options
1139
+ });
1140
+ };
1141
+ /**
1142
+ * Get challenge token for a domain (returns plain text token)
1143
+ */
1144
+ export const getChallengeToken = (options) => {
1145
+ return (options.client ?? _heyApiClient).get({
1146
+ security: [
1147
+ {
1148
+ scheme: 'bearer',
1149
+ type: 'http'
1150
+ }
1151
+ ],
1152
+ url: '/domains/{domain}/challenge-token',
1153
+ ...options
1154
+ });
1155
+ };
1156
+ /**
1157
+ * Get HTTP challenge debug information
1158
+ * Returns detailed debug information for HTTP-01 challenge including:
1159
+ * - Whether a challenge exists for the domain
1160
+ * - The challenge token and URL that Let's Encrypt will access
1161
+ * - DNS resolution information showing where the domain currently points
1162
+ *
1163
+ * This is useful for debugging why HTTP-01 challenges fail.
1164
+ */
1165
+ export const getHttpChallengeDebug = (options) => {
1166
+ return (options.client ?? _heyApiClient).get({
1167
+ security: [
1168
+ {
1169
+ scheme: 'bearer',
1170
+ type: 'http'
1171
+ }
1172
+ ],
1173
+ url: '/domains/{domain}/http-challenge-debug',
1174
+ ...options
1175
+ });
1176
+ };
1177
+ /**
1178
+ * Provision a domain certificate
1179
+ */
1180
+ export const provisionDomain = (options) => {
1181
+ return (options.client ?? _heyApiClient).post({
1182
+ security: [
1183
+ {
1184
+ scheme: 'bearer',
1185
+ type: 'http'
1186
+ }
1187
+ ],
1188
+ url: '/domains/{domain}/provision',
1189
+ ...options
1190
+ });
1191
+ };
1192
+ /**
1193
+ * Renew domain certificate
1194
+ */
1195
+ export const renewDomain = (options) => {
1196
+ return (options.client ?? _heyApiClient).post({
1197
+ security: [
1198
+ {
1199
+ scheme: 'bearer',
1200
+ type: 'http'
1201
+ }
1202
+ ],
1203
+ url: '/domains/{domain}/renew',
1204
+ ...options
1205
+ });
1206
+ };
1207
+ /**
1208
+ * Check domain status
1209
+ */
1210
+ export const checkDomainStatus = (options) => {
1211
+ return (options.client ?? _heyApiClient).get({
1212
+ security: [
1213
+ {
1214
+ scheme: 'bearer',
1215
+ type: 'http'
1216
+ }
1217
+ ],
1218
+ url: '/domains/{domain}/status',
1219
+ ...options
1220
+ });
1221
+ };
1222
+ /**
1223
+ * List all email domains
1224
+ */
1225
+ export const listDomains2 = (options) => {
1226
+ return (options?.client ?? _heyApiClient).get({
1227
+ security: [
1228
+ {
1229
+ scheme: 'bearer',
1230
+ type: 'http'
1231
+ }
1232
+ ],
1233
+ url: '/email-domains',
1234
+ ...options
1235
+ });
1236
+ };
1237
+ /**
1238
+ * Create a new email domain
1239
+ */
1240
+ export const createDomain2 = (options) => {
1241
+ return (options.client ?? _heyApiClient).post({
1242
+ security: [
1243
+ {
1244
+ scheme: 'bearer',
1245
+ type: 'http'
1246
+ }
1247
+ ],
1248
+ url: '/email-domains',
1249
+ ...options,
1250
+ headers: {
1251
+ 'Content-Type': 'application/json',
1252
+ ...options.headers
1253
+ }
1254
+ });
1255
+ };
1256
+ /**
1257
+ * Delete an email domain
1258
+ */
1259
+ export const deleteDomain2 = (options) => {
1260
+ return (options.client ?? _heyApiClient).delete({
1261
+ security: [
1262
+ {
1263
+ scheme: 'bearer',
1264
+ type: 'http'
1265
+ }
1266
+ ],
1267
+ url: '/email-domains/{id}',
1268
+ ...options
1269
+ });
1270
+ };
1271
+ /**
1272
+ * Get an email domain by ID with DNS records
1273
+ */
1274
+ export const getDomain = (options) => {
1275
+ return (options.client ?? _heyApiClient).get({
1276
+ security: [
1277
+ {
1278
+ scheme: 'bearer',
1279
+ type: 'http'
1280
+ }
1281
+ ],
1282
+ url: '/email-domains/{id}',
1283
+ ...options
1284
+ });
1285
+ };
1286
+ /**
1287
+ * Verify an email domain's DNS configuration
1288
+ */
1289
+ export const verifyDomain = (options) => {
1290
+ return (options.client ?? _heyApiClient).post({
1291
+ security: [
1292
+ {
1293
+ scheme: 'bearer',
1294
+ type: 'http'
1295
+ }
1296
+ ],
1297
+ url: '/email-domains/{id}/verify',
1298
+ ...options
1299
+ });
1300
+ };
1301
+ /**
1302
+ * List all email providers
1303
+ */
1304
+ export const listProviders2 = (options) => {
1305
+ return (options?.client ?? _heyApiClient).get({
1306
+ security: [
1307
+ {
1308
+ scheme: 'bearer',
1309
+ type: 'http'
1310
+ }
1311
+ ],
1312
+ url: '/email-providers',
1313
+ ...options
1314
+ });
1315
+ };
1316
+ /**
1317
+ * Create a new email provider
1318
+ */
1319
+ export const createProvider2 = (options) => {
1320
+ return (options.client ?? _heyApiClient).post({
1321
+ security: [
1322
+ {
1323
+ scheme: 'bearer',
1324
+ type: 'http'
1325
+ }
1326
+ ],
1327
+ url: '/email-providers',
1328
+ ...options,
1329
+ headers: {
1330
+ 'Content-Type': 'application/json',
1331
+ ...options.headers
1332
+ }
1333
+ });
1334
+ };
1335
+ /**
1336
+ * Delete an email provider
1337
+ */
1338
+ export const deleteProvider2 = (options) => {
1339
+ return (options.client ?? _heyApiClient).delete({
1340
+ security: [
1341
+ {
1342
+ scheme: 'bearer',
1343
+ type: 'http'
1344
+ }
1345
+ ],
1346
+ url: '/email-providers/{id}',
1347
+ ...options
1348
+ });
1349
+ };
1350
+ /**
1351
+ * Get an email provider by ID
1352
+ */
1353
+ export const getProvider2 = (options) => {
1354
+ return (options.client ?? _heyApiClient).get({
1355
+ security: [
1356
+ {
1357
+ scheme: 'bearer',
1358
+ type: 'http'
1359
+ }
1360
+ ],
1361
+ url: '/email-providers/{id}',
1362
+ ...options
1363
+ });
1364
+ };
1365
+ /**
1366
+ * Test an email provider by sending a test email to the logged-in user
1367
+ */
1368
+ export const testProvider = (options) => {
1369
+ return (options.client ?? _heyApiClient).post({
1370
+ security: [
1371
+ {
1372
+ scheme: 'bearer',
1373
+ type: 'http'
1374
+ }
1375
+ ],
1376
+ url: '/email-providers/{id}/test',
1377
+ ...options,
1378
+ headers: {
1379
+ 'Content-Type': 'application/json',
1380
+ ...options.headers
1381
+ }
1382
+ });
1383
+ };
1384
+ /**
1385
+ * List emails with optional filtering
1386
+ */
1387
+ export const listEmails = (options) => {
1388
+ return (options?.client ?? _heyApiClient).get({
1389
+ security: [
1390
+ {
1391
+ scheme: 'bearer',
1392
+ type: 'http'
1393
+ }
1394
+ ],
1395
+ url: '/emails',
1396
+ ...options
1397
+ });
1398
+ };
1399
+ /**
1400
+ * Send an email
1401
+ */
1402
+ export const sendEmail = (options) => {
1403
+ return (options.client ?? _heyApiClient).post({
1404
+ security: [
1405
+ {
1406
+ scheme: 'bearer',
1407
+ type: 'http'
1408
+ }
1409
+ ],
1410
+ url: '/emails',
1411
+ ...options,
1412
+ headers: {
1413
+ 'Content-Type': 'application/json',
1414
+ ...options.headers
1415
+ }
1416
+ });
1417
+ };
1418
+ /**
1419
+ * Get email statistics
1420
+ */
1421
+ export const getEmailStats = (options) => {
1422
+ return (options?.client ?? _heyApiClient).get({
1423
+ security: [
1424
+ {
1425
+ scheme: 'bearer',
1426
+ type: 'http'
1427
+ }
1428
+ ],
1429
+ url: '/emails/stats',
1430
+ ...options
1431
+ });
1432
+ };
1433
+ /**
1434
+ * Get an email by ID
1435
+ */
1436
+ export const getEmail = (options) => {
1437
+ return (options.client ?? _heyApiClient).get({
1438
+ security: [
1439
+ {
1440
+ scheme: 'bearer',
1441
+ type: 'http'
1442
+ }
1443
+ ],
1444
+ url: '/emails/{id}',
1445
+ ...options
1446
+ });
1447
+ };
1448
+ /**
1449
+ * Get all external services
1450
+ */
1451
+ export const listServices = (options) => {
1452
+ return (options?.client ?? _heyApiClient).get({
1453
+ url: '/external-services',
1454
+ ...options
1455
+ });
1456
+ };
1457
+ /**
1458
+ * Create new external service
1459
+ */
1460
+ export const createService = (options) => {
1461
+ return (options.client ?? _heyApiClient).post({
1462
+ url: '/external-services',
1463
+ ...options,
1464
+ headers: {
1465
+ 'Content-Type': 'application/json',
1466
+ ...options.headers
1467
+ }
1468
+ });
1469
+ };
1470
+ /**
1471
+ * List available Docker containers that can be imported as services
1472
+ */
1473
+ export const listAvailableContainers = (options) => {
1474
+ return (options?.client ?? _heyApiClient).get({
1475
+ security: [
1476
+ {
1477
+ scheme: 'bearer',
1478
+ type: 'http'
1479
+ }
1480
+ ],
1481
+ url: '/external-services/available-containers',
1482
+ ...options
1483
+ });
1484
+ };
1485
+ /**
1486
+ * Get external service details by slug
1487
+ */
1488
+ export const getServiceBySlug = (options) => {
1489
+ return (options.client ?? _heyApiClient).get({
1490
+ url: '/external-services/by-slug/{slug}',
1491
+ ...options
1492
+ });
1493
+ };
1494
+ /**
1495
+ * Import an existing Docker container as a managed external service
1496
+ */
1497
+ export const importExternalService = (options) => {
1498
+ return (options.client ?? _heyApiClient).post({
1499
+ security: [
1500
+ {
1501
+ scheme: 'bearer',
1502
+ type: 'http'
1503
+ }
1504
+ ],
1505
+ url: '/external-services/import',
1506
+ ...options,
1507
+ headers: {
1508
+ 'Content-Type': 'application/json',
1509
+ ...options.headers
1510
+ }
1511
+ });
1512
+ };
1513
+ /**
1514
+ * List services linked to a project
1515
+ */
1516
+ export const listProjectServices = (options) => {
1517
+ return (options.client ?? _heyApiClient).get({
1518
+ url: '/external-services/projects/{project_id}',
1519
+ ...options
1520
+ });
1521
+ };
1522
+ /**
1523
+ * Get all environment variables for all services linked to a project
1524
+ */
1525
+ export const getProjectServiceEnvironmentVariables = (options) => {
1526
+ return (options.client ?? _heyApiClient).get({
1527
+ url: '/external-services/projects/{project_id}/environment',
1528
+ ...options
1529
+ });
1530
+ };
1531
+ /**
1532
+ * Get provider metadata (display names, icons, descriptions)
1533
+ */
1534
+ export const getProvidersMetadata = (options) => {
1535
+ return (options?.client ?? _heyApiClient).get({
1536
+ url: '/external-services/providers/metadata',
1537
+ ...options
1538
+ });
1539
+ };
1540
+ /**
1541
+ * Get metadata for a specific provider
1542
+ */
1543
+ export const getProviderMetadata = (options) => {
1544
+ return (options.client ?? _heyApiClient).get({
1545
+ url: '/external-services/providers/metadata/{service_type}',
1546
+ ...options
1547
+ });
1548
+ };
1549
+ /**
1550
+ * Get available service types
1551
+ */
1552
+ export const getServiceTypes = (options) => {
1553
+ return (options?.client ?? _heyApiClient).get({
1554
+ url: '/external-services/types',
1555
+ ...options
1556
+ });
1557
+ };
1558
+ /**
1559
+ * Get parameter schema for a specific service type
1560
+ */
1561
+ export const getServiceTypeParameters = (options) => {
1562
+ return (options.client ?? _heyApiClient).get({
1563
+ url: '/external-services/types/{service_type}/parameters',
1564
+ ...options
1565
+ });
1566
+ };
1567
+ /**
1568
+ * Delete external service
1569
+ */
1570
+ export const deleteService = (options) => {
1571
+ return (options.client ?? _heyApiClient).delete({
1572
+ url: '/external-services/{id}',
1573
+ ...options
1574
+ });
1575
+ };
1576
+ /**
1577
+ * Get external service details
1578
+ */
1579
+ export const getService = (options) => {
1580
+ return (options.client ?? _heyApiClient).get({
1581
+ url: '/external-services/{id}',
1582
+ ...options
1583
+ });
1584
+ };
1585
+ /**
1586
+ * Update external service
1587
+ */
1588
+ export const updateService = (options) => {
1589
+ return (options.client ?? _heyApiClient).put({
1590
+ url: '/external-services/{id}',
1591
+ ...options,
1592
+ headers: {
1593
+ 'Content-Type': 'application/json',
1594
+ ...options.headers
1595
+ }
1596
+ });
1597
+ };
1598
+ /**
1599
+ * Get environment variables preview with masked sensitive values
1600
+ */
1601
+ export const getServicePreviewEnvironmentVariablesMasked = (options) => {
1602
+ return (options.client ?? _heyApiClient).get({
1603
+ url: '/external-services/{id}/preview-environment-masked',
1604
+ ...options
1605
+ });
1606
+ };
1607
+ /**
1608
+ * Get environment variable names preview (safe - no sensitive values)
1609
+ */
1610
+ export const getServicePreviewEnvironmentVariableNames = (options) => {
1611
+ return (options.client ?? _heyApiClient).get({
1612
+ url: '/external-services/{id}/preview-environment-names',
1613
+ ...options
1614
+ });
1615
+ };
1616
+ /**
1617
+ * List projects linked to service
1618
+ */
1619
+ export const listServiceProjects = (options) => {
1620
+ return (options.client ?? _heyApiClient).get({
1621
+ url: '/external-services/{id}/projects',
1622
+ ...options
1623
+ });
1624
+ };
1625
+ /**
1626
+ * Link service to project
1627
+ */
1628
+ export const linkServiceToProject = (options) => {
1629
+ return (options.client ?? _heyApiClient).post({
1630
+ url: '/external-services/{id}/projects',
1631
+ ...options,
1632
+ headers: {
1633
+ 'Content-Type': 'application/json',
1634
+ ...options.headers
1635
+ }
1636
+ });
1637
+ };
1638
+ /**
1639
+ * Unlink service from project
1640
+ */
1641
+ export const unlinkServiceFromProject = (options) => {
1642
+ return (options.client ?? _heyApiClient).delete({
1643
+ url: '/external-services/{id}/projects/{project_id}',
1644
+ ...options
1645
+ });
1646
+ };
1647
+ /**
1648
+ * Get all environment variables for a service-project pair
1649
+ */
1650
+ export const getServiceEnvironmentVariables = (options) => {
1651
+ return (options.client ?? _heyApiClient).get({
1652
+ url: '/external-services/{id}/projects/{project_id}/environment',
1653
+ ...options
1654
+ });
1655
+ };
1656
+ /**
1657
+ * Get specific environment variable for a service-project pair
1658
+ */
1659
+ export const getServiceEnvironmentVariable = (options) => {
1660
+ return (options.client ?? _heyApiClient).get({
1661
+ url: '/external-services/{id}/projects/{project_id}/environment/{var_name}',
1662
+ ...options
1663
+ });
1664
+ };
1665
+ /**
1666
+ * Start an external service
1667
+ */
1668
+ export const startService = (options) => {
1669
+ return (options.client ?? _heyApiClient).post({
1670
+ url: '/external-services/{id}/start',
1671
+ ...options
1672
+ });
1673
+ };
1674
+ /**
1675
+ * Stop an external service
1676
+ */
1677
+ export const stopService = (options) => {
1678
+ return (options.client ?? _heyApiClient).post({
1679
+ url: '/external-services/{id}/stop',
1680
+ ...options
1681
+ });
1682
+ };
1683
+ /**
1684
+ * Upgrade external service to new Docker image with data migration
1685
+ * This endpoint uses service-specific upgrade procedures (e.g., pg_upgrade for PostgreSQL)
1686
+ */
1687
+ export const upgradeService = (options) => {
1688
+ return (options.client ?? _heyApiClient).post({
1689
+ url: '/external-services/{id}/upgrade',
1690
+ ...options,
1691
+ headers: {
1692
+ 'Content-Type': 'application/json',
1693
+ ...options.headers
1694
+ }
1695
+ });
1696
+ };
1697
+ /**
1698
+ * List containers at the root level (databases, keyspaces, etc.)
1699
+ */
1700
+ export const listRootContainers = (options) => {
1701
+ return (options.client ?? _heyApiClient).get({
1702
+ security: [
1703
+ {
1704
+ scheme: 'bearer',
1705
+ type: 'http'
1706
+ }
1707
+ ],
1708
+ url: '/external-services/{service_id}/query/containers',
1709
+ ...options
1710
+ });
1711
+ };
1712
+ /**
1713
+ * List containers at a specific path
1714
+ * Path segments are separated by forward slashes
1715
+ * Example: /external-services/1/query/containers/mydb lists schemas in database "mydb"
1716
+ */
1717
+ export const listContainersAtPath = (options) => {
1718
+ return (options.client ?? _heyApiClient).get({
1719
+ security: [
1720
+ {
1721
+ scheme: 'bearer',
1722
+ type: 'http'
1723
+ }
1724
+ ],
1725
+ url: '/external-services/{service_id}/query/containers/{path}',
1726
+ ...options
1727
+ });
1728
+ };
1729
+ /**
1730
+ * List entities (tables, collections, etc.) in a container
1731
+ * Example: /external-services/1/query/containers/mydb/public/entities lists tables in the public schema
1732
+ */
1733
+ export const listEntities = (options) => {
1734
+ return (options.client ?? _heyApiClient).get({
1735
+ security: [
1736
+ {
1737
+ scheme: 'bearer',
1738
+ type: 'http'
1739
+ }
1740
+ ],
1741
+ url: '/external-services/{service_id}/query/containers/{path}/entities',
1742
+ ...options
1743
+ });
1744
+ };
1745
+ /**
1746
+ * Get detailed information about an entity (table schema)
1747
+ */
1748
+ export const getEntityInfo = (options) => {
1749
+ return (options.client ?? _heyApiClient).get({
1750
+ security: [
1751
+ {
1752
+ scheme: 'bearer',
1753
+ type: 'http'
1754
+ }
1755
+ ],
1756
+ url: '/external-services/{service_id}/query/containers/{path}/entities/{entity}',
1757
+ ...options
1758
+ });
1759
+ };
1760
+ /**
1761
+ * Query data from an entity with optional filters, pagination, and sorting
1762
+ */
1763
+ export const queryData = (options) => {
1764
+ return (options.client ?? _heyApiClient).post({
1765
+ security: [
1766
+ {
1767
+ scheme: 'bearer',
1768
+ type: 'http'
1769
+ }
1770
+ ],
1771
+ url: '/external-services/{service_id}/query/containers/{path}/entities/{entity}/data',
1772
+ ...options,
1773
+ headers: {
1774
+ 'Content-Type': 'application/json',
1775
+ ...options.headers
1776
+ }
1777
+ });
1778
+ };
1779
+ /**
1780
+ * Download an object (S3 only) as a streaming response
1781
+ */
1782
+ export const downloadObject = (options) => {
1783
+ return (options.client ?? _heyApiClient).get({
1784
+ security: [
1785
+ {
1786
+ scheme: 'bearer',
1787
+ type: 'http'
1788
+ }
1789
+ ],
1790
+ url: '/external-services/{service_id}/query/containers/{path}/entities/{entity}/download',
1791
+ ...options
1792
+ });
1793
+ };
1794
+ /**
1795
+ * Get information about a specific container
1796
+ */
1797
+ export const getContainerInfo = (options) => {
1798
+ return (options.client ?? _heyApiClient).get({
1799
+ security: [
1800
+ {
1801
+ scheme: 'bearer',
1802
+ type: 'http'
1803
+ }
1804
+ ],
1805
+ url: '/external-services/{service_id}/query/containers/{path}/info',
1806
+ ...options
1807
+ });
1808
+ };
1809
+ /**
1810
+ * Check if a service supports query explorer functionality
1811
+ */
1812
+ export const checkExplorerSupport = (options) => {
1813
+ return (options.client ?? _heyApiClient).get({
1814
+ security: [
1815
+ {
1816
+ scheme: 'bearer',
1817
+ type: 'http'
1818
+ }
1819
+ ],
1820
+ url: '/external-services/{service_id}/query/explorer-support',
1821
+ ...options
1822
+ });
1823
+ };
1824
+ export const getFile = (options) => {
1825
+ return (options.client ?? _heyApiClient).get({
1826
+ url: '/files/{file_path}',
1827
+ ...options
1828
+ });
1829
+ };
1830
+ /**
1831
+ * Get geolocation information for an IP address
1832
+ */
1833
+ export const getIpGeolocation = (options) => {
1834
+ return (options.client ?? _heyApiClient).get({
1835
+ url: '/geo/{ip}',
1836
+ ...options
1837
+ });
1838
+ };
1839
+ /**
1840
+ * List user's git provider connections
1841
+ */
1842
+ export const listConnections = (options) => {
1843
+ return (options?.client ?? _heyApiClient).get({
1844
+ security: [
1845
+ {
1846
+ scheme: 'bearer',
1847
+ type: 'http'
1848
+ }
1849
+ ],
1850
+ url: '/git-connections',
1851
+ ...options
1852
+ });
1853
+ };
1854
+ /**
1855
+ * Permanently delete a git provider connection
1856
+ */
1857
+ export const deleteConnection = (options) => {
1858
+ return (options.client ?? _heyApiClient).delete({
1859
+ security: [
1860
+ {
1861
+ scheme: 'bearer',
1862
+ type: 'http'
1863
+ }
1864
+ ],
1865
+ url: '/git-connections/{connection_id}',
1866
+ ...options
1867
+ });
1868
+ };
1869
+ /**
1870
+ * Activate a git provider connection
1871
+ */
1872
+ export const activateConnection = (options) => {
1873
+ return (options.client ?? _heyApiClient).post({
1874
+ security: [
1875
+ {
1876
+ scheme: 'bearer',
1877
+ type: 'http'
1878
+ }
1879
+ ],
1880
+ url: '/git-connections/{connection_id}/activate',
1881
+ ...options
1882
+ });
1883
+ };
1884
+ /**
1885
+ * Deactivate a git provider connection
1886
+ */
1887
+ export const deactivateConnection = (options) => {
1888
+ return (options.client ?? _heyApiClient).post({
1889
+ security: [
1890
+ {
1891
+ scheme: 'bearer',
1892
+ type: 'http'
1893
+ }
1894
+ ],
1895
+ url: '/git-connections/{connection_id}/deactivate',
1896
+ ...options
1897
+ });
1898
+ };
1899
+ /**
1900
+ * List repositories for a specific connection
1901
+ * Fetches repositories from the connected git provider with support for pagination, search, and filtering.
1902
+ * This endpoint calls the provider's API directly to get the most up-to-date repository list.
1903
+ */
1904
+ export const listRepositoriesByConnection = (options) => {
1905
+ return (options.client ?? _heyApiClient).get({
1906
+ security: [
1907
+ {
1908
+ scheme: 'bearer',
1909
+ type: 'http'
1910
+ }
1911
+ ],
1912
+ url: '/git-connections/{connection_id}/repositories',
1913
+ ...options
1914
+ });
1915
+ };
1916
+ /**
1917
+ * Sync repositories from a connection
1918
+ * Synchronizes repository data from the git provider to the local database.
1919
+ * This updates the local cache of repositories for faster access.
1920
+ */
1921
+ export const syncRepositories = (options) => {
1922
+ return (options.client ?? _heyApiClient).post({
1923
+ security: [
1924
+ {
1925
+ scheme: 'bearer',
1926
+ type: 'http'
1927
+ }
1928
+ ],
1929
+ url: '/git-connections/{connection_id}/sync',
1930
+ ...options
1931
+ });
1932
+ };
1933
+ /**
1934
+ * Update access token for a connection (when tokens expire or are rotated)
1935
+ */
1936
+ export const updateConnectionToken = (options) => {
1937
+ return (options.client ?? _heyApiClient).post({
1938
+ security: [
1939
+ {
1940
+ scheme: 'bearer',
1941
+ type: 'http'
1942
+ }
1943
+ ],
1944
+ url: '/git-connections/{connection_id}/update-token',
1945
+ ...options,
1946
+ headers: {
1947
+ 'Content-Type': 'application/json',
1948
+ ...options.headers
1949
+ }
1950
+ });
1951
+ };
1952
+ /**
1953
+ * Validate a connection by testing the access token
1954
+ */
1955
+ export const validateConnection = (options) => {
1956
+ return (options.client ?? _heyApiClient).get({
1957
+ security: [
1958
+ {
1959
+ scheme: 'bearer',
1960
+ type: 'http'
1961
+ }
1962
+ ],
1963
+ url: '/git-connections/{connection_id}/validate',
1964
+ ...options
1965
+ });
1966
+ };
1967
+ /**
1968
+ * List all git providers
1969
+ */
1970
+ export const listGitProviders = (options) => {
1971
+ return (options?.client ?? _heyApiClient).get({
1972
+ security: [
1973
+ {
1974
+ scheme: 'bearer',
1975
+ type: 'http'
1976
+ }
1977
+ ],
1978
+ url: '/git-providers',
1979
+ ...options
1980
+ });
1981
+ };
1982
+ /**
1983
+ * Create a new git provider configuration
1984
+ */
1985
+ export const createGitProvider = (options) => {
1986
+ return (options.client ?? _heyApiClient).post({
1987
+ security: [
1988
+ {
1989
+ scheme: 'bearer',
1990
+ type: 'http'
1991
+ }
1992
+ ],
1993
+ url: '/git-providers',
1994
+ ...options,
1995
+ headers: {
1996
+ 'Content-Type': 'application/json',
1997
+ ...options.headers
1998
+ }
1999
+ });
2000
+ };
2001
+ /**
2002
+ * Create a GitHub Personal Access Token provider
2003
+ */
2004
+ export const createGithubPatProvider = (options) => {
2005
+ return (options.client ?? _heyApiClient).post({
2006
+ security: [
2007
+ {
2008
+ scheme: 'bearer',
2009
+ type: 'http'
2010
+ }
2011
+ ],
2012
+ url: '/git-providers/github/pat',
2013
+ ...options,
2014
+ headers: {
2015
+ 'Content-Type': 'application/json',
2016
+ ...options.headers
2017
+ }
2018
+ });
2019
+ };
2020
+ /**
2021
+ * Create a GitLab OAuth provider
2022
+ */
2023
+ export const createGitlabOauthProvider = (options) => {
2024
+ return (options.client ?? _heyApiClient).post({
2025
+ security: [
2026
+ {
2027
+ scheme: 'bearer',
2028
+ type: 'http'
2029
+ }
2030
+ ],
2031
+ url: '/git-providers/gitlab/oauth',
2032
+ ...options,
2033
+ headers: {
2034
+ 'Content-Type': 'application/json',
2035
+ ...options.headers
2036
+ }
2037
+ });
2038
+ };
2039
+ /**
2040
+ * Create a GitLab PAT provider
2041
+ */
2042
+ export const createGitlabPatProvider = (options) => {
2043
+ return (options.client ?? _heyApiClient).post({
2044
+ security: [
2045
+ {
2046
+ scheme: 'bearer',
2047
+ type: 'http'
2048
+ }
2049
+ ],
2050
+ url: '/git-providers/gitlab/pat',
2051
+ ...options,
2052
+ headers: {
2053
+ 'Content-Type': 'application/json',
2054
+ ...options.headers
2055
+ }
2056
+ });
2057
+ };
2058
+ /**
2059
+ * Permanently delete a git provider
2060
+ */
2061
+ export const deleteProvider3 = (options) => {
2062
+ return (options.client ?? _heyApiClient).delete({
2063
+ security: [
2064
+ {
2065
+ scheme: 'bearer',
2066
+ type: 'http'
2067
+ }
2068
+ ],
2069
+ url: '/git-providers/{provider_id}',
2070
+ ...options
2071
+ });
2072
+ };
2073
+ /**
2074
+ * Get a specific git provider
2075
+ */
2076
+ export const getGitProvider = (options) => {
2077
+ return (options.client ?? _heyApiClient).get({
2078
+ security: [
2079
+ {
2080
+ scheme: 'bearer',
2081
+ type: 'http'
2082
+ }
2083
+ ],
2084
+ url: '/git-providers/{provider_id}',
2085
+ ...options
2086
+ });
2087
+ };
2088
+ /**
2089
+ * Activate a git provider
2090
+ */
2091
+ export const activateProvider = (options) => {
2092
+ return (options.client ?? _heyApiClient).post({
2093
+ security: [
2094
+ {
2095
+ scheme: 'bearer',
2096
+ type: 'http'
2097
+ }
2098
+ ],
2099
+ url: '/git-providers/{provider_id}/activate',
2100
+ ...options
2101
+ });
2102
+ };
2103
+ /**
2104
+ * Handle OAuth callback for a git provider
2105
+ */
2106
+ export const handleGitProviderOauthCallback = (options) => {
2107
+ return (options.client ?? _heyApiClient).get({
2108
+ url: '/git-providers/{provider_id}/callback',
2109
+ ...options
2110
+ });
2111
+ };
2112
+ /**
2113
+ * Get connections for a specific git provider
2114
+ */
2115
+ export const getProviderConnections = (options) => {
2116
+ return (options.client ?? _heyApiClient).get({
2117
+ security: [
2118
+ {
2119
+ scheme: 'bearer',
2120
+ type: 'http'
2121
+ }
2122
+ ],
2123
+ url: '/git-providers/{provider_id}/connections',
2124
+ ...options
2125
+ });
2126
+ };
2127
+ /**
2128
+ * Deactivate a git provider
2129
+ */
2130
+ export const deactivateProvider = (options) => {
2131
+ return (options.client ?? _heyApiClient).post({
2132
+ security: [
2133
+ {
2134
+ scheme: 'bearer',
2135
+ type: 'http'
2136
+ }
2137
+ ],
2138
+ url: '/git-providers/{provider_id}/deactivate',
2139
+ ...options
2140
+ });
2141
+ };
2142
+ /**
2143
+ * Check if a git provider can be safely deleted
2144
+ */
2145
+ export const checkProviderDeletionSafety = (options) => {
2146
+ return (options.client ?? _heyApiClient).get({
2147
+ security: [
2148
+ {
2149
+ scheme: 'bearer',
2150
+ type: 'http'
2151
+ }
2152
+ ],
2153
+ url: '/git-providers/{provider_id}/deletion-check',
2154
+ ...options
2155
+ });
2156
+ };
2157
+ /**
2158
+ * Start OAuth flow for a git provider
2159
+ */
2160
+ export const startGitProviderOauth = (options) => {
2161
+ return (options.client ?? _heyApiClient).get({
2162
+ security: [
2163
+ {
2164
+ scheme: 'bearer',
2165
+ type: 'http'
2166
+ }
2167
+ ],
2168
+ url: '/git-providers/{provider_id}/oauth/authorize',
2169
+ ...options
2170
+ });
2171
+ };
2172
+ /**
2173
+ * Safely delete a git provider (only if no projects are using it)
2174
+ */
2175
+ export const deleteProviderSafely = (options) => {
2176
+ return (options.client ?? _heyApiClient).delete({
2177
+ security: [
2178
+ {
2179
+ scheme: 'bearer',
2180
+ type: 'http'
2181
+ }
2182
+ ],
2183
+ url: '/git-providers/{provider_id}/safe-delete',
2184
+ ...options
2185
+ });
2186
+ };
2187
+ /**
2188
+ * Discover workloads from a source
2189
+ */
2190
+ export const discoverWorkloads = (options) => {
2191
+ return (options.client ?? _heyApiClient).post({
2192
+ security: [
2193
+ {
2194
+ scheme: 'bearer',
2195
+ type: 'http'
2196
+ }
2197
+ ],
2198
+ url: '/imports/discover',
2199
+ ...options,
2200
+ headers: {
2201
+ 'Content-Type': 'application/json',
2202
+ ...options.headers
2203
+ }
2204
+ });
2205
+ };
2206
+ /**
2207
+ * Execute an import
2208
+ */
2209
+ export const executeImport = (options) => {
2210
+ return (options.client ?? _heyApiClient).post({
2211
+ security: [
2212
+ {
2213
+ scheme: 'bearer',
2214
+ type: 'http'
2215
+ }
2216
+ ],
2217
+ url: '/imports/execute',
2218
+ ...options,
2219
+ headers: {
2220
+ 'Content-Type': 'application/json',
2221
+ ...options.headers
2222
+ }
2223
+ });
2224
+ };
2225
+ /**
2226
+ * Create an import plan
2227
+ */
2228
+ export const createPlan = (options) => {
2229
+ return (options.client ?? _heyApiClient).post({
2230
+ security: [
2231
+ {
2232
+ scheme: 'bearer',
2233
+ type: 'http'
2234
+ }
2235
+ ],
2236
+ url: '/imports/plan',
2237
+ ...options,
2238
+ headers: {
2239
+ 'Content-Type': 'application/json',
2240
+ ...options.headers
2241
+ }
2242
+ });
2243
+ };
2244
+ /**
2245
+ * List available import sources
2246
+ */
2247
+ export const listSources = (options) => {
2248
+ return (options?.client ?? _heyApiClient).get({
2249
+ security: [
2250
+ {
2251
+ scheme: 'bearer',
2252
+ type: 'http'
2253
+ }
2254
+ ],
2255
+ url: '/imports/sources',
2256
+ ...options
2257
+ });
2258
+ };
2259
+ /**
2260
+ * Get import status
2261
+ */
2262
+ export const getImportStatus = (options) => {
2263
+ return (options.client ?? _heyApiClient).get({
2264
+ security: [
2265
+ {
2266
+ scheme: 'bearer',
2267
+ type: 'http'
2268
+ }
2269
+ ],
2270
+ url: '/imports/{session_id}',
2271
+ ...options
2272
+ });
2273
+ };
2274
+ /**
2275
+ * Get an incident by ID
2276
+ */
2277
+ export const getIncident = (options) => {
2278
+ return (options.client ?? _heyApiClient).get({
2279
+ url: '/incidents/{incident_id}',
2280
+ ...options
2281
+ });
2282
+ };
2283
+ /**
2284
+ * Update incident status
2285
+ */
2286
+ export const updateIncidentStatus = (options) => {
2287
+ return (options.client ?? _heyApiClient).patch({
2288
+ url: '/incidents/{incident_id}/status',
2289
+ ...options,
2290
+ headers: {
2291
+ 'Content-Type': 'application/json',
2292
+ ...options.headers
2293
+ }
2294
+ });
2295
+ };
2296
+ /**
2297
+ * Get incident updates
2298
+ */
2299
+ export const getIncidentUpdates = (options) => {
2300
+ return (options.client ?? _heyApiClient).get({
2301
+ url: '/incidents/{incident_id}/updates',
2302
+ ...options
2303
+ });
2304
+ };
2305
+ /**
2306
+ * List all IP access control rules
2307
+ */
2308
+ export const listIpAccessControl = (options) => {
2309
+ return (options?.client ?? _heyApiClient).get({
2310
+ url: '/ip-access-control',
2311
+ ...options
2312
+ });
2313
+ };
2314
+ /**
2315
+ * Create a new IP access control rule
2316
+ */
2317
+ export const createIpAccessControl = (options) => {
2318
+ return (options.client ?? _heyApiClient).post({
2319
+ url: '/ip-access-control',
2320
+ ...options,
2321
+ headers: {
2322
+ 'Content-Type': 'application/json',
2323
+ ...options.headers
2324
+ }
2325
+ });
2326
+ };
2327
+ /**
2328
+ * Check if an IP address is blocked
2329
+ */
2330
+ export const checkIpBlocked = (options) => {
2331
+ return (options.client ?? _heyApiClient).get({
2332
+ url: '/ip-access-control/check/{ip}',
2333
+ ...options
2334
+ });
2335
+ };
2336
+ /**
2337
+ * Delete an IP access control rule
2338
+ */
2339
+ export const deleteIpAccessControl = (options) => {
2340
+ return (options.client ?? _heyApiClient).delete({
2341
+ url: '/ip-access-control/{id}',
2342
+ ...options
2343
+ });
2344
+ };
2345
+ /**
2346
+ * Get a single IP access control rule by ID
2347
+ */
2348
+ export const getIpAccessControl = (options) => {
2349
+ return (options.client ?? _heyApiClient).get({
2350
+ url: '/ip-access-control/{id}',
2351
+ ...options
2352
+ });
2353
+ };
2354
+ /**
2355
+ * Update an IP access control rule
2356
+ */
2357
+ export const updateIpAccessControl = (options) => {
2358
+ return (options.client ?? _heyApiClient).patch({
2359
+ url: '/ip-access-control/{id}',
2360
+ ...options,
2361
+ headers: {
2362
+ 'Content-Type': 'application/json',
2363
+ ...options.headers
2364
+ }
2365
+ });
2366
+ };
2367
+ export const listRoutes = (options) => {
2368
+ return (options?.client ?? _heyApiClient).get({
2369
+ url: '/lb/routes',
2370
+ ...options
2371
+ });
2372
+ };
2373
+ export const createRoute = (options) => {
2374
+ return (options.client ?? _heyApiClient).post({
2375
+ url: '/lb/routes',
2376
+ ...options,
2377
+ headers: {
2378
+ 'Content-Type': 'application/json',
2379
+ ...options.headers
2380
+ }
2381
+ });
2382
+ };
2383
+ export const deleteRoute = (options) => {
2384
+ return (options.client ?? _heyApiClient).delete({
2385
+ url: '/lb/routes/{domain}',
2386
+ ...options
2387
+ });
2388
+ };
2389
+ export const getRoute = (options) => {
2390
+ return (options.client ?? _heyApiClient).get({
2391
+ url: '/lb/routes/{domain}',
2392
+ ...options
2393
+ });
2394
+ };
2395
+ export const updateRoute = (options) => {
2396
+ return (options.client ?? _heyApiClient).put({
2397
+ url: '/lb/routes/{domain}',
2398
+ ...options,
2399
+ headers: {
2400
+ 'Content-Type': 'application/json',
2401
+ ...options.headers
2402
+ }
2403
+ });
2404
+ };
2405
+ export const logout = (options) => {
2406
+ return (options?.client ?? _heyApiClient).post({
2407
+ url: '/logout',
2408
+ ...options
2409
+ });
2410
+ };
2411
+ /**
2412
+ * Delete a monitor
2413
+ */
2414
+ export const deleteMonitor = (options) => {
2415
+ return (options.client ?? _heyApiClient).delete({
2416
+ url: '/monitors/{monitor_id}',
2417
+ ...options
2418
+ });
2419
+ };
2420
+ /**
2421
+ * Get a monitor by ID
2422
+ */
2423
+ export const getMonitor = (options) => {
2424
+ return (options.client ?? _heyApiClient).get({
2425
+ url: '/monitors/{monitor_id}',
2426
+ ...options
2427
+ });
2428
+ };
2429
+ /**
2430
+ * Get bucketed status data for a monitor using TimescaleDB
2431
+ */
2432
+ export const getBucketedStatus = (options) => {
2433
+ return (options.client ?? _heyApiClient).get({
2434
+ url: '/monitors/{monitor_id}/bucketed',
2435
+ ...options
2436
+ });
2437
+ };
2438
+ /**
2439
+ * Get current status and uptime metrics for a monitor
2440
+ */
2441
+ export const getCurrentMonitorStatus = (options) => {
2442
+ return (options.client ?? _heyApiClient).get({
2443
+ url: '/monitors/{monitor_id}/current-status',
2444
+ ...options
2445
+ });
2446
+ };
2447
+ /**
2448
+ * Get uptime history for a monitor
2449
+ */
2450
+ export const getUptimeHistory = (options) => {
2451
+ return (options.client ?? _heyApiClient).get({
2452
+ url: '/monitors/{monitor_id}/uptime',
2453
+ ...options
2454
+ });
2455
+ };
2456
+ /**
2457
+ * Delete notification preferences
2458
+ */
2459
+ export const deletePreferences = (options) => {
2460
+ return (options?.client ?? _heyApiClient).delete({
2461
+ security: [
2462
+ {
2463
+ scheme: 'bearer',
2464
+ type: 'http'
2465
+ }
2466
+ ],
2467
+ url: '/notification-preferences',
2468
+ ...options
2469
+ });
2470
+ };
2471
+ /**
2472
+ * Get notification preferences
2473
+ */
2474
+ export const getPreferences = (options) => {
2475
+ return (options?.client ?? _heyApiClient).get({
2476
+ security: [
2477
+ {
2478
+ scheme: 'bearer',
2479
+ type: 'http'
2480
+ }
2481
+ ],
2482
+ url: '/notification-preferences',
2483
+ ...options
2484
+ });
2485
+ };
2486
+ /**
2487
+ * Update notification preferences
2488
+ */
2489
+ export const updatePreferences = (options) => {
2490
+ return (options.client ?? _heyApiClient).put({
2491
+ security: [
2492
+ {
2493
+ scheme: 'bearer',
2494
+ type: 'http'
2495
+ }
2496
+ ],
2497
+ url: '/notification-preferences',
2498
+ ...options,
2499
+ headers: {
2500
+ 'Content-Type': 'application/json',
2501
+ ...options.headers
2502
+ }
2503
+ });
2504
+ };
2505
+ /**
2506
+ * List all notification providers
2507
+ */
2508
+ export const listNotificationProviders = (options) => {
2509
+ return (options?.client ?? _heyApiClient).get({
2510
+ security: [
2511
+ {
2512
+ scheme: 'bearer',
2513
+ type: 'http'
2514
+ }
2515
+ ],
2516
+ url: '/notification-providers',
2517
+ ...options
2518
+ });
2519
+ };
2520
+ /**
2521
+ * Create a new notification provider
2522
+ */
2523
+ export const createNotificationProvider = (options) => {
2524
+ return (options.client ?? _heyApiClient).post({
2525
+ security: [
2526
+ {
2527
+ scheme: 'bearer',
2528
+ type: 'http'
2529
+ }
2530
+ ],
2531
+ url: '/notification-providers',
2532
+ ...options,
2533
+ headers: {
2534
+ 'Content-Type': 'application/json',
2535
+ ...options.headers
2536
+ }
2537
+ });
2538
+ };
2539
+ /**
2540
+ * Create a new Email notification provider
2541
+ */
2542
+ export const createEmailProvider = (options) => {
2543
+ return (options.client ?? _heyApiClient).post({
2544
+ security: [
2545
+ {
2546
+ scheme: 'bearer',
2547
+ type: 'http'
2548
+ }
2549
+ ],
2550
+ url: '/notification-providers/email',
2551
+ ...options,
2552
+ headers: {
2553
+ 'Content-Type': 'application/json',
2554
+ ...options.headers
2555
+ }
2556
+ });
2557
+ };
2558
+ /**
2559
+ * Update an Email notification provider
2560
+ */
2561
+ export const updateEmailProvider = (options) => {
2562
+ return (options.client ?? _heyApiClient).put({
2563
+ security: [
2564
+ {
2565
+ scheme: 'bearer',
2566
+ type: 'http'
2567
+ }
2568
+ ],
2569
+ url: '/notification-providers/email/{id}',
2570
+ ...options,
2571
+ headers: {
2572
+ 'Content-Type': 'application/json',
2573
+ ...options.headers
2574
+ }
2575
+ });
2576
+ };
2577
+ /**
2578
+ * Create a new Slack notification provider
2579
+ */
2580
+ export const createSlackProvider = (options) => {
2581
+ return (options.client ?? _heyApiClient).post({
2582
+ security: [
2583
+ {
2584
+ scheme: 'bearer',
2585
+ type: 'http'
2586
+ }
2587
+ ],
2588
+ url: '/notification-providers/slack',
2589
+ ...options,
2590
+ headers: {
2591
+ 'Content-Type': 'application/json',
2592
+ ...options.headers
2593
+ }
2594
+ });
2595
+ };
2596
+ /**
2597
+ * Update a Slack notification provider
2598
+ */
2599
+ export const updateSlackProvider = (options) => {
2600
+ return (options.client ?? _heyApiClient).put({
2601
+ security: [
2602
+ {
2603
+ scheme: 'bearer',
2604
+ type: 'http'
2605
+ }
2606
+ ],
2607
+ url: '/notification-providers/slack/{id}',
2608
+ ...options,
2609
+ headers: {
2610
+ 'Content-Type': 'application/json',
2611
+ ...options.headers
2612
+ }
2613
+ });
2614
+ };
2615
+ /**
2616
+ * Delete a notification provider
2617
+ */
2618
+ export const deleteProvider4 = (options) => {
2619
+ return (options.client ?? _heyApiClient).delete({
2620
+ security: [
2621
+ {
2622
+ scheme: 'bearer',
2623
+ type: 'http'
2624
+ }
2625
+ ],
2626
+ url: '/notification-providers/{id}',
2627
+ ...options
2628
+ });
2629
+ };
2630
+ /**
2631
+ * Get a single notification provider
2632
+ */
2633
+ export const getNotificationProvider = (options) => {
2634
+ return (options.client ?? _heyApiClient).get({
2635
+ security: [
2636
+ {
2637
+ scheme: 'bearer',
2638
+ type: 'http'
2639
+ }
2640
+ ],
2641
+ url: '/notification-providers/{id}',
2642
+ ...options
2643
+ });
2644
+ };
2645
+ /**
2646
+ * Update a notification provider
2647
+ */
2648
+ export const updateProvider2 = (options) => {
2649
+ return (options.client ?? _heyApiClient).put({
2650
+ security: [
2651
+ {
2652
+ scheme: 'bearer',
2653
+ type: 'http'
2654
+ }
2655
+ ],
2656
+ url: '/notification-providers/{id}',
2657
+ ...options,
2658
+ headers: {
2659
+ 'Content-Type': 'application/json',
2660
+ ...options.headers
2661
+ }
2662
+ });
2663
+ };
2664
+ /**
2665
+ * Test a notification provider
2666
+ */
2667
+ export const testProvider2 = (options) => {
2668
+ return (options.client ?? _heyApiClient).post({
2669
+ security: [
2670
+ {
2671
+ scheme: 'bearer',
2672
+ type: 'http'
2673
+ }
2674
+ ],
2675
+ url: '/notification-providers/{id}/test',
2676
+ ...options
2677
+ });
2678
+ };
2679
+ /**
2680
+ * List all ACME orders
2681
+ */
2682
+ export const listOrders = (options) => {
2683
+ return (options?.client ?? _heyApiClient).get({
2684
+ security: [
2685
+ {
2686
+ scheme: 'bearer',
2687
+ type: 'http'
2688
+ }
2689
+ ],
2690
+ url: '/orders',
2691
+ ...options
2692
+ });
2693
+ };
2694
+ /**
2695
+ * Check if performance metrics exist for a project
2696
+ */
2697
+ export const hasPerformanceMetrics = (options) => {
2698
+ return (options.client ?? _heyApiClient).get({
2699
+ url: '/performance/has-metrics',
2700
+ ...options
2701
+ });
2702
+ };
2703
+ /**
2704
+ * Get performance metrics
2705
+ */
2706
+ export const getPerformanceMetrics = (options) => {
2707
+ return (options.client ?? _heyApiClient).get({
2708
+ url: '/performance/metrics',
2709
+ ...options
2710
+ });
2711
+ };
2712
+ /**
2713
+ * Get metrics over time
2714
+ */
2715
+ export const getMetricsOverTime = (options) => {
2716
+ return (options.client ?? _heyApiClient).get({
2717
+ url: '/performance/metrics-over-time',
2718
+ ...options
2719
+ });
2720
+ };
2721
+ /**
2722
+ * Get grouped page metrics
2723
+ */
2724
+ export const getGroupedPageMetrics = (options) => {
2725
+ return (options.client ?? _heyApiClient).get({
2726
+ url: '/performance/page-metrics',
2727
+ ...options
2728
+ });
2729
+ };
2730
+ /**
2731
+ * Get information about how the service is being accessed
2732
+ * Returns details about the server's access mode, public IP address, private IP address,
2733
+ * and domain creation capabilities. Both IP addresses are always included when available.
2734
+ */
2735
+ export const getAccessInfo = (options) => {
2736
+ return (options?.client ?? _heyApiClient).get({
2737
+ url: '/platform/access-info',
2738
+ ...options
2739
+ });
2740
+ };
2741
+ /**
2742
+ * Get private/local IP address of the server
2743
+ */
2744
+ export const getPrivateIp = (options) => {
2745
+ return (options?.client ?? _heyApiClient).get({
2746
+ url: '/platform/private-ip',
2747
+ ...options
2748
+ });
2749
+ };
2750
+ /**
2751
+ * Get public IP address of the server
2752
+ */
2753
+ export const getPublicIp = (options) => {
2754
+ return (options?.client ?? _heyApiClient).get({
2755
+ url: '/platform/public-ip',
2756
+ ...options
2757
+ });
2758
+ };
2759
+ /**
2760
+ * List all available presets
2761
+ */
2762
+ export const listPresets = (options) => {
2763
+ return (options?.client ?? _heyApiClient).get({
2764
+ security: [
2765
+ {
2766
+ scheme: 'bearer',
2767
+ type: 'http'
2768
+ }
2769
+ ],
2770
+ url: '/presets',
2771
+ ...options
2772
+ });
2773
+ };
2774
+ /**
2775
+ * Get a list of all projects
2776
+ */
2777
+ export const getProjects = (options) => {
2778
+ return (options?.client ?? _heyApiClient).get({
2779
+ security: [
2780
+ {
2781
+ scheme: 'bearer',
2782
+ type: 'http'
2783
+ }
2784
+ ],
2785
+ url: '/projects',
2786
+ ...options
2787
+ });
2788
+ };
2789
+ /**
2790
+ * Create a new project
2791
+ */
2792
+ export const createProject = (options) => {
2793
+ return (options.client ?? _heyApiClient).post({
2794
+ security: [
2795
+ {
2796
+ scheme: 'bearer',
2797
+ type: 'http'
2798
+ }
2799
+ ],
2800
+ url: '/projects',
2801
+ ...options,
2802
+ headers: {
2803
+ 'Content-Type': 'application/json',
2804
+ ...options.headers
2805
+ }
2806
+ });
2807
+ };
2808
+ /**
2809
+ * Get details of a specific project by slug
2810
+ */
2811
+ export const getProjectBySlug = (options) => {
2812
+ return (options.client ?? _heyApiClient).get({
2813
+ security: [
2814
+ {
2815
+ scheme: 'bearer',
2816
+ type: 'http'
2817
+ }
2818
+ ],
2819
+ url: '/projects/by-slug/{slug}',
2820
+ ...options
2821
+ });
2822
+ };
2823
+ /**
2824
+ * Get project statistics
2825
+ */
2826
+ export const getProjectStatistics = (options) => {
2827
+ return (options?.client ?? _heyApiClient).get({
2828
+ security: [
2829
+ {
2830
+ scheme: 'bearer',
2831
+ type: 'http'
2832
+ }
2833
+ ],
2834
+ url: '/projects/statistics',
2835
+ ...options
2836
+ });
2837
+ };
2838
+ export const deleteProject = (options) => {
2839
+ return (options.client ?? _heyApiClient).delete({
2840
+ security: [
2841
+ {
2842
+ scheme: 'bearer',
2843
+ type: 'http'
2844
+ }
2845
+ ],
2846
+ url: '/projects/{id}',
2847
+ ...options
2848
+ });
2849
+ };
2850
+ /**
2851
+ * Get details of a specific project
2852
+ */
2853
+ export const getProject = (options) => {
2854
+ return (options.client ?? _heyApiClient).get({
2855
+ security: [
2856
+ {
2857
+ scheme: 'bearer',
2858
+ type: 'http'
2859
+ }
2860
+ ],
2861
+ url: '/projects/{id}',
2862
+ ...options
2863
+ });
2864
+ };
2865
+ export const updateProject = (options) => {
2866
+ return (options.client ?? _heyApiClient).put({
2867
+ security: [
2868
+ {
2869
+ scheme: 'bearer',
2870
+ type: 'http'
2871
+ }
2872
+ ],
2873
+ url: '/projects/{id}',
2874
+ ...options,
2875
+ headers: {
2876
+ 'Content-Type': 'application/json',
2877
+ ...options.headers
2878
+ }
2879
+ });
2880
+ };
2881
+ export const getProjectDeployments = (options) => {
2882
+ return (options.client ?? _heyApiClient).get({
2883
+ url: '/projects/{id}/deployments',
2884
+ ...options
2885
+ });
2886
+ };
2887
+ /**
2888
+ * Get the last deployment for a specific project
2889
+ */
2890
+ export const getLastDeployment = (options) => {
2891
+ return (options.client ?? _heyApiClient).get({
2892
+ url: '/projects/{id}/last-deployment',
2893
+ ...options
2894
+ });
2895
+ };
2896
+ /**
2897
+ * Trigger pipeline for a specific project
2898
+ */
2899
+ export const triggerProjectPipeline = (options) => {
2900
+ return (options.client ?? _heyApiClient).post({
2901
+ url: '/projects/{id}/trigger-pipeline',
2902
+ ...options,
2903
+ headers: {
2904
+ 'Content-Type': 'application/json',
2905
+ ...options.headers
2906
+ }
2907
+ });
2908
+ };
2909
+ /**
2910
+ * Get active visitors count
2911
+ */
2912
+ export const getActiveVisitors2 = (options) => {
2913
+ return (options.client ?? _heyApiClient).get({
2914
+ security: [
2915
+ {
2916
+ scheme: 'bearer',
2917
+ type: 'http'
2918
+ }
2919
+ ],
2920
+ url: '/projects/{project_id}/active-visitors',
2921
+ ...options
2922
+ });
2923
+ };
2924
+ /**
2925
+ * Get aggregated metrics by time bucket
2926
+ */
2927
+ export const getAggregatedBuckets = (options) => {
2928
+ return (options.client ?? _heyApiClient).get({
2929
+ security: [
2930
+ {
2931
+ scheme: 'bearer',
2932
+ type: 'http'
2933
+ }
2934
+ ],
2935
+ url: '/projects/{project_id}/aggregated-buckets',
2936
+ ...options
2937
+ });
2938
+ };
2939
+ /**
2940
+ * Update automatic deployment setting for a project
2941
+ */
2942
+ export const updateAutomaticDeploy = (options) => {
2943
+ return (options.client ?? _heyApiClient).post({
2944
+ security: [
2945
+ {
2946
+ scheme: 'bearer',
2947
+ type: 'http'
2948
+ }
2949
+ ],
2950
+ url: '/projects/{project_id}/automatic-deploy',
2951
+ ...options,
2952
+ headers: {
2953
+ 'Content-Type': 'application/json',
2954
+ ...options.headers
2955
+ }
2956
+ });
2957
+ };
2958
+ /**
2959
+ * List all custom domains for a project
2960
+ */
2961
+ export const listCustomDomainsForProject = (options) => {
2962
+ return (options.client ?? _heyApiClient).get({
2963
+ security: [
2964
+ {
2965
+ scheme: 'bearer',
2966
+ type: 'http'
2967
+ }
2968
+ ],
2969
+ url: '/projects/{project_id}/custom-domains',
2970
+ ...options
2971
+ });
2972
+ };
2973
+ /**
2974
+ * Create a custom domain for a project
2975
+ */
2976
+ export const createCustomDomain = (options) => {
2977
+ return (options.client ?? _heyApiClient).post({
2978
+ security: [
2979
+ {
2980
+ scheme: 'bearer',
2981
+ type: 'http'
2982
+ }
2983
+ ],
2984
+ url: '/projects/{project_id}/custom-domains',
2985
+ ...options,
2986
+ headers: {
2987
+ 'Content-Type': 'application/json',
2988
+ ...options.headers
2989
+ }
2990
+ });
2991
+ };
2992
+ /**
2993
+ * Delete a custom domain
2994
+ */
2995
+ export const deleteCustomDomain = (options) => {
2996
+ return (options.client ?? _heyApiClient).delete({
2997
+ security: [
2998
+ {
2999
+ scheme: 'bearer',
3000
+ type: 'http'
3001
+ }
3002
+ ],
3003
+ url: '/projects/{project_id}/custom-domains/{domain_id}',
3004
+ ...options
3005
+ });
3006
+ };
3007
+ /**
3008
+ * Get a custom domain by ID
3009
+ */
3010
+ export const getCustomDomain = (options) => {
3011
+ return (options.client ?? _heyApiClient).get({
3012
+ security: [
3013
+ {
3014
+ scheme: 'bearer',
3015
+ type: 'http'
3016
+ }
3017
+ ],
3018
+ url: '/projects/{project_id}/custom-domains/{domain_id}',
3019
+ ...options
3020
+ });
3021
+ };
3022
+ /**
3023
+ * Update a custom domain
3024
+ */
3025
+ export const updateCustomDomain = (options) => {
3026
+ return (options.client ?? _heyApiClient).put({
3027
+ security: [
3028
+ {
3029
+ scheme: 'bearer',
3030
+ type: 'http'
3031
+ }
3032
+ ],
3033
+ url: '/projects/{project_id}/custom-domains/{domain_id}',
3034
+ ...options,
3035
+ headers: {
3036
+ 'Content-Type': 'application/json',
3037
+ ...options.headers
3038
+ }
3039
+ });
3040
+ };
3041
+ /**
3042
+ * Link a custom domain to a certificate
3043
+ */
3044
+ export const linkCustomDomainToCertificate = (options) => {
3045
+ return (options.client ?? _heyApiClient).post({
3046
+ security: [
3047
+ {
3048
+ scheme: 'bearer',
3049
+ type: 'http'
3050
+ }
3051
+ ],
3052
+ url: '/projects/{project_id}/custom-domains/{domain_id}/link-certificate/{certificate_id}',
3053
+ ...options
3054
+ });
3055
+ };
3056
+ /**
3057
+ * Update deployment configuration for a project
3058
+ */
3059
+ export const updateProjectDeploymentConfig = (options) => {
3060
+ return (options.client ?? _heyApiClient).patch({
3061
+ security: [
3062
+ {
3063
+ scheme: 'bearer',
3064
+ type: 'http'
3065
+ }
3066
+ ],
3067
+ url: '/projects/{project_id}/deployment-config',
3068
+ ...options,
3069
+ headers: {
3070
+ 'Content-Type': 'application/json',
3071
+ ...options.headers
3072
+ }
3073
+ });
3074
+ };
3075
+ /**
3076
+ * Get a specific deployment by ID for a project (identified by ID or slug)
3077
+ */
3078
+ export const getDeployment = (options) => {
3079
+ return (options.client ?? _heyApiClient).get({
3080
+ url: '/projects/{project_id}/deployments/{deployment_id}',
3081
+ ...options
3082
+ });
3083
+ };
3084
+ /**
3085
+ * Cancel a deployment
3086
+ */
3087
+ export const cancelDeployment = (options) => {
3088
+ return (options.client ?? _heyApiClient).post({
3089
+ url: '/projects/{project_id}/deployments/{deployment_id}/cancel',
3090
+ ...options
3091
+ });
3092
+ };
3093
+ /**
3094
+ * Get jobs for a specific deployment
3095
+ * Returns all jobs (workflow tasks) for a deployment, ordered by execution order.
3096
+ * This replaces the old deployment stages endpoint.
3097
+ */
3098
+ export const getDeploymentJobs = (options) => {
3099
+ return (options.client ?? _heyApiClient).get({
3100
+ url: '/projects/{project_id}/deployments/{deployment_id}/jobs',
3101
+ ...options
3102
+ });
3103
+ };
3104
+ /**
3105
+ * Tail logs for a specific deployment job in real-time via WebSocket
3106
+ * **WebSocket Streaming**: Logs are sent as raw text, one line per WebSocket message.
3107
+ *
3108
+ * **Authentication**: Requires authentication via session cookie (browser clients)
3109
+ * or API key (API clients). For browser-based WebSocket connections, ensure the user
3110
+ * is logged in - the browser automatically includes session cookies in the WebSocket
3111
+ * upgrade request.
3112
+ *
3113
+ * **API Client Authentication**: Include API key in Authorization header:
3114
+ * ```
3115
+ * Authorization: Bearer tk_your_api_key_here
3116
+ * ```
3117
+ */
3118
+ export const tailDeploymentJobLogs = (options) => {
3119
+ return (options.client ?? _heyApiClient).get({
3120
+ url: '/projects/{project_id}/deployments/{deployment_id}/jobs/{job_id}/logs/tail',
3121
+ ...options
3122
+ });
3123
+ };
3124
+ /**
3125
+ * Get all operations for a deployment
3126
+ */
3127
+ export const getDeploymentOperations = (options) => {
3128
+ return (options.client ?? _heyApiClient).get({
3129
+ security: [
3130
+ {
3131
+ scheme: 'bearer',
3132
+ type: 'http'
3133
+ }
3134
+ ],
3135
+ url: '/projects/{project_id}/deployments/{deployment_id}/operations',
3136
+ ...options
3137
+ });
3138
+ };
3139
+ /**
3140
+ * Execute a deployment operation (deploy, mark_complete, take_screenshot)
3141
+ */
3142
+ export const executeDeploymentOperation = (options) => {
3143
+ return (options.client ?? _heyApiClient).post({
3144
+ security: [
3145
+ {
3146
+ scheme: 'bearer',
3147
+ type: 'http'
3148
+ }
3149
+ ],
3150
+ url: '/projects/{project_id}/deployments/{deployment_id}/operations',
3151
+ ...options,
3152
+ headers: {
3153
+ 'Content-Type': 'application/json',
3154
+ ...options.headers
3155
+ }
3156
+ });
3157
+ };
3158
+ /**
3159
+ * Get the status of a specific operation type
3160
+ */
3161
+ export const getDeploymentOperationStatus = (options) => {
3162
+ return (options.client ?? _heyApiClient).get({
3163
+ security: [
3164
+ {
3165
+ scheme: 'bearer',
3166
+ type: 'http'
3167
+ }
3168
+ ],
3169
+ url: '/projects/{project_id}/deployments/{deployment_id}/operations/{operation_type}',
3170
+ ...options
3171
+ });
3172
+ };
3173
+ /**
3174
+ * Pause a deployment
3175
+ */
3176
+ export const pauseDeployment = (options) => {
3177
+ return (options.client ?? _heyApiClient).post({
3178
+ url: '/projects/{project_id}/deployments/{deployment_id}/pause',
3179
+ ...options
3180
+ });
3181
+ };
3182
+ /**
3183
+ * Resume a deployment
3184
+ */
3185
+ export const resumeDeployment = (options) => {
3186
+ return (options.client ?? _heyApiClient).post({
3187
+ url: '/projects/{project_id}/deployments/{deployment_id}/resume',
3188
+ ...options
3189
+ });
3190
+ };
3191
+ export const rollbackToDeployment = (options) => {
3192
+ return (options.client ?? _heyApiClient).post({
3193
+ url: '/projects/{project_id}/deployments/{deployment_id}/rollback',
3194
+ ...options
3195
+ });
3196
+ };
3197
+ /**
3198
+ * Teardown a specific deployment
3199
+ */
3200
+ export const teardownDeployment = (options) => {
3201
+ return (options.client ?? _heyApiClient).delete({
3202
+ url: '/projects/{project_id}/deployments/{deployment_id}/teardown',
3203
+ ...options
3204
+ });
3205
+ };
3206
+ /**
3207
+ * List all DSNs for a project
3208
+ */
3209
+ export const listDsns = (options) => {
3210
+ return (options.client ?? _heyApiClient).get({
3211
+ url: '/projects/{project_id}/dsns',
3212
+ ...options
3213
+ });
3214
+ };
3215
+ /**
3216
+ * Create a new DSN for a project
3217
+ */
3218
+ export const createDsn = (options) => {
3219
+ return (options.client ?? _heyApiClient).post({
3220
+ url: '/projects/{project_id}/dsns',
3221
+ ...options,
3222
+ headers: {
3223
+ 'Content-Type': 'application/json',
3224
+ ...options.headers
3225
+ }
3226
+ });
3227
+ };
3228
+ /**
3229
+ * Get or create DSN for a project/environment/deployment combination
3230
+ */
3231
+ export const getOrCreateDsn = (options) => {
3232
+ return (options.client ?? _heyApiClient).post({
3233
+ url: '/projects/{project_id}/dsns/get-or-create',
3234
+ ...options,
3235
+ headers: {
3236
+ 'Content-Type': 'application/json',
3237
+ ...options.headers
3238
+ }
3239
+ });
3240
+ };
3241
+ /**
3242
+ * Regenerate DSN keys (rotate keys)
3243
+ */
3244
+ export const regenerateDsn = (options) => {
3245
+ return (options.client ?? _heyApiClient).post({
3246
+ url: '/projects/{project_id}/dsns/{dsn_id}/regenerate',
3247
+ ...options,
3248
+ headers: {
3249
+ 'Content-Type': 'application/json',
3250
+ ...options.headers
3251
+ }
3252
+ });
3253
+ };
3254
+ /**
3255
+ * Revoke (deactivate) a DSN
3256
+ */
3257
+ export const revokeDsn = (options) => {
3258
+ return (options.client ?? _heyApiClient).post({
3259
+ url: '/projects/{project_id}/dsns/{dsn_id}/revoke',
3260
+ ...options
3261
+ });
3262
+ };
3263
+ /**
3264
+ * Get environment variables for a project, optionally filtered by environment
3265
+ */
3266
+ export const getEnvironmentVariables = (options) => {
3267
+ return (options.client ?? _heyApiClient).get({
3268
+ url: '/projects/{project_id}/env-vars',
3269
+ ...options
3270
+ });
3271
+ };
3272
+ /**
3273
+ * Create a new environment variable
3274
+ */
3275
+ export const createEnvironmentVariable = (options) => {
3276
+ return (options.client ?? _heyApiClient).post({
3277
+ url: '/projects/{project_id}/env-vars',
3278
+ ...options,
3279
+ headers: {
3280
+ 'Content-Type': 'application/json',
3281
+ ...options.headers
3282
+ }
3283
+ });
3284
+ };
3285
+ /**
3286
+ * Get environment variable value by key
3287
+ */
3288
+ export const getEnvironmentVariableValue = (options) => {
3289
+ return (options.client ?? _heyApiClient).get({
3290
+ url: '/projects/{project_id}/env-vars/{key}/value',
3291
+ ...options
3292
+ });
3293
+ };
3294
+ /**
3295
+ * Delete an environment variable
3296
+ */
3297
+ export const deleteEnvironmentVariable = (options) => {
3298
+ return (options.client ?? _heyApiClient).delete({
3299
+ url: '/projects/{project_id}/env-vars/{var_id}',
3300
+ ...options
3301
+ });
3302
+ };
3303
+ /**
3304
+ * Update an environment variable
3305
+ */
3306
+ export const updateEnvironmentVariable = (options) => {
3307
+ return (options.client ?? _heyApiClient).put({
3308
+ url: '/projects/{project_id}/env-vars/{var_id}',
3309
+ ...options,
3310
+ headers: {
3311
+ 'Content-Type': 'application/json',
3312
+ ...options.headers
3313
+ }
3314
+ });
3315
+ };
3316
+ /**
3317
+ * Get all environments for a project
3318
+ */
3319
+ export const getEnvironments = (options) => {
3320
+ return (options.client ?? _heyApiClient).get({
3321
+ url: '/projects/{project_id}/environments',
3322
+ ...options
3323
+ });
3324
+ };
3325
+ /**
3326
+ * Create a new environment for a project
3327
+ */
3328
+ export const createEnvironment = (options) => {
3329
+ return (options.client ?? _heyApiClient).post({
3330
+ url: '/projects/{project_id}/environments',
3331
+ ...options,
3332
+ headers: {
3333
+ 'Content-Type': 'application/json',
3334
+ ...options.headers
3335
+ }
3336
+ });
3337
+ };
3338
+ /**
3339
+ * Delete an environment permanently
3340
+ * Permanently deletes an environment and all related data. Cannot delete:
3341
+ * - Production environments (name = "Production")
3342
+ *
3343
+ * Warning: This action is permanent and cannot be undone.
3344
+ * Active deployments are automatically cancelled before deletion.
3345
+ */
3346
+ export const deleteEnvironment = (options) => {
3347
+ return (options.client ?? _heyApiClient).delete({
3348
+ url: '/projects/{project_id}/environments/{env_id}',
3349
+ ...options
3350
+ });
3351
+ };
3352
+ /**
3353
+ * Get a specific environment by ID or slug
3354
+ */
3355
+ export const getEnvironment = (options) => {
3356
+ return (options.client ?? _heyApiClient).get({
3357
+ url: '/projects/{project_id}/environments/{env_id}',
3358
+ ...options
3359
+ });
3360
+ };
3361
+ export const getEnvironmentCrons = (options) => {
3362
+ return (options.client ?? _heyApiClient).get({
3363
+ url: '/projects/{project_id}/environments/{env_id}/crons',
3364
+ ...options
3365
+ });
3366
+ };
3367
+ export const getCronById = (options) => {
3368
+ return (options.client ?? _heyApiClient).get({
3369
+ url: '/projects/{project_id}/environments/{env_id}/crons/{cron_id}',
3370
+ ...options
3371
+ });
3372
+ };
3373
+ export const getCronExecutions = (options) => {
3374
+ return (options.client ?? _heyApiClient).get({
3375
+ url: '/projects/{project_id}/environments/{env_id}/crons/{cron_id}/executions',
3376
+ ...options
3377
+ });
3378
+ };
3379
+ /**
3380
+ * Get all environment domains for a specific environment
3381
+ */
3382
+ export const getEnvironmentDomains = (options) => {
3383
+ return (options.client ?? _heyApiClient).get({
3384
+ url: '/projects/{project_id}/environments/{env_id}/domains',
3385
+ ...options
3386
+ });
3387
+ };
3388
+ /**
3389
+ * Add a new environment domain
3390
+ */
3391
+ export const addEnvironmentDomain = (options) => {
3392
+ return (options.client ?? _heyApiClient).post({
3393
+ url: '/projects/{project_id}/environments/{env_id}/domains',
3394
+ ...options,
3395
+ headers: {
3396
+ 'Content-Type': 'application/json',
3397
+ ...options.headers
3398
+ }
3399
+ });
3400
+ };
3401
+ /**
3402
+ * Delete an environment domain
3403
+ */
3404
+ export const deleteEnvironmentDomain = (options) => {
3405
+ return (options.client ?? _heyApiClient).delete({
3406
+ url: '/projects/{project_id}/environments/{env_id}/domains/{domain_id}',
3407
+ ...options
3408
+ });
3409
+ };
3410
+ /**
3411
+ * Update environment settings
3412
+ */
3413
+ export const updateEnvironmentSettings = (options) => {
3414
+ return (options.client ?? _heyApiClient).put({
3415
+ url: '/projects/{project_id}/environments/{env_id}/settings',
3416
+ ...options,
3417
+ headers: {
3418
+ 'Content-Type': 'application/json',
3419
+ ...options.headers
3420
+ }
3421
+ });
3422
+ };
3423
+ /**
3424
+ * Teardown an environment and all its active deployments
3425
+ */
3426
+ export const teardownEnvironment = (options) => {
3427
+ return (options.client ?? _heyApiClient).delete({
3428
+ url: '/projects/{project_id}/environments/{env_id}/teardown',
3429
+ ...options
3430
+ });
3431
+ };
3432
+ /**
3433
+ * Get logs for a container in an environment via WebSocket
3434
+ */
3435
+ export const getContainerLogs = (options) => {
3436
+ return (options.client ?? _heyApiClient).get({
3437
+ security: [
3438
+ {
3439
+ scheme: 'bearer',
3440
+ type: 'http'
3441
+ }
3442
+ ],
3443
+ url: '/projects/{project_id}/environments/{environment_id}/container-logs',
3444
+ ...options
3445
+ });
3446
+ };
3447
+ /**
3448
+ * List all containers for an environment
3449
+ */
3450
+ export const listContainers = (options) => {
3451
+ return (options.client ?? _heyApiClient).get({
3452
+ security: [
3453
+ {
3454
+ scheme: 'bearer',
3455
+ type: 'http'
3456
+ }
3457
+ ],
3458
+ url: '/projects/{project_id}/environments/{environment_id}/containers',
3459
+ ...options
3460
+ });
3461
+ };
3462
+ /**
3463
+ * Get detailed information about a specific container
3464
+ */
3465
+ export const getContainerDetail = (options) => {
3466
+ return (options.client ?? _heyApiClient).get({
3467
+ url: '/projects/{project_id}/environments/{environment_id}/containers/{container_id}',
3468
+ ...options
3469
+ });
3470
+ };
3471
+ /**
3472
+ * Get logs for a specific container by container ID via WebSocket
3473
+ */
3474
+ export const getContainerLogsById = (options) => {
3475
+ return (options.client ?? _heyApiClient).get({
3476
+ security: [
3477
+ {
3478
+ scheme: 'bearer',
3479
+ type: 'http'
3480
+ }
3481
+ ],
3482
+ url: '/projects/{project_id}/environments/{environment_id}/containers/{container_id}/logs',
3483
+ ...options
3484
+ });
3485
+ };
3486
+ /**
3487
+ * Get metrics/stats for a specific container
3488
+ */
3489
+ export const getContainerMetrics = (options) => {
3490
+ return (options.client ?? _heyApiClient).get({
3491
+ url: '/projects/{project_id}/environments/{environment_id}/containers/{container_id}/metrics',
3492
+ ...options
3493
+ });
3494
+ };
3495
+ /**
3496
+ * Stream container metrics via Server-Sent Events (SSE)
3497
+ */
3498
+ export const streamContainerMetrics = (options) => {
3499
+ return (options.client ?? _heyApiClient).get({
3500
+ url: '/projects/{project_id}/environments/{environment_id}/containers/{container_id}/metrics/stream',
3501
+ ...options
3502
+ });
3503
+ };
3504
+ /**
3505
+ * Restart a container
3506
+ */
3507
+ export const restartContainer = (options) => {
3508
+ return (options.client ?? _heyApiClient).post({
3509
+ url: '/projects/{project_id}/environments/{environment_id}/containers/{container_id}/restart',
3510
+ ...options
3511
+ });
3512
+ };
3513
+ /**
3514
+ * Start a container
3515
+ */
3516
+ export const startContainer = (options) => {
3517
+ return (options.client ?? _heyApiClient).post({
3518
+ url: '/projects/{project_id}/environments/{environment_id}/containers/{container_id}/start',
3519
+ ...options
3520
+ });
3521
+ };
3522
+ /**
3523
+ * Stop a specific container
3524
+ */
3525
+ export const stopContainer = (options) => {
3526
+ return (options.client ?? _heyApiClient).post({
3527
+ url: '/projects/{project_id}/environments/{environment_id}/containers/{container_id}/stop',
3528
+ ...options
3529
+ });
3530
+ };
3531
+ /**
3532
+ * Get error dashboard statistics
3533
+ */
3534
+ export const getErrorDashboardStats = (options) => {
3535
+ return (options.client ?? _heyApiClient).get({
3536
+ url: '/projects/{project_id}/error-dashboard-stats',
3537
+ ...options
3538
+ });
3539
+ };
3540
+ /**
3541
+ * List error groups for a project
3542
+ */
3543
+ export const listErrorGroups = (options) => {
3544
+ return (options.client ?? _heyApiClient).get({
3545
+ url: '/projects/{project_id}/error-groups',
3546
+ ...options
3547
+ });
3548
+ };
3549
+ /**
3550
+ * Get a specific error group
3551
+ */
3552
+ export const getErrorGroup = (options) => {
3553
+ return (options.client ?? _heyApiClient).get({
3554
+ url: '/projects/{project_id}/error-groups/{group_id}',
3555
+ ...options
3556
+ });
3557
+ };
3558
+ /**
3559
+ * Update error group status
3560
+ */
3561
+ export const updateErrorGroup = (options) => {
3562
+ return (options.client ?? _heyApiClient).put({
3563
+ url: '/projects/{project_id}/error-groups/{group_id}',
3564
+ ...options,
3565
+ headers: {
3566
+ 'Content-Type': 'application/json',
3567
+ ...options.headers
3568
+ }
3569
+ });
3570
+ };
3571
+ /**
3572
+ * List error events for a specific group
3573
+ */
3574
+ export const listErrorEvents = (options) => {
3575
+ return (options.client ?? _heyApiClient).get({
3576
+ url: '/projects/{project_id}/error-groups/{group_id}/events',
3577
+ ...options
3578
+ });
3579
+ };
3580
+ /**
3581
+ * Get a specific error event
3582
+ */
3583
+ export const getErrorEvent = (options) => {
3584
+ return (options.client ?? _heyApiClient).get({
3585
+ url: '/projects/{project_id}/error-groups/{group_id}/events/{event_id}',
3586
+ ...options
3587
+ });
3588
+ };
3589
+ /**
3590
+ * Get error statistics for a project
3591
+ */
3592
+ export const getErrorStats = (options) => {
3593
+ return (options.client ?? _heyApiClient).get({
3594
+ url: '/projects/{project_id}/error-stats',
3595
+ ...options
3596
+ });
3597
+ };
3598
+ /**
3599
+ * Get error time series data for charts
3600
+ */
3601
+ export const getErrorTimeSeries = (options) => {
3602
+ return (options.client ?? _heyApiClient).get({
3603
+ url: '/projects/{project_id}/error-time-series',
3604
+ ...options
3605
+ });
3606
+ };
3607
+ /**
3608
+ * Get event counts with filtering
3609
+ */
3610
+ export const getEventsCount2 = (options) => {
3611
+ return (options.client ?? _heyApiClient).get({
3612
+ security: [
3613
+ {
3614
+ scheme: 'bearer',
3615
+ type: 'http'
3616
+ }
3617
+ ],
3618
+ url: '/projects/{project_id}/events',
3619
+ ...options
3620
+ });
3621
+ };
3622
+ /**
3623
+ * Get event type breakdown
3624
+ */
3625
+ export const getEventTypeBreakdown = (options) => {
3626
+ return (options.client ?? _heyApiClient).get({
3627
+ security: [
3628
+ {
3629
+ scheme: 'bearer',
3630
+ type: 'http'
3631
+ }
3632
+ ],
3633
+ url: '/projects/{project_id}/events/breakdown',
3634
+ ...options
3635
+ });
3636
+ };
3637
+ /**
3638
+ * Get property breakdown by grouping events by a column
3639
+ */
3640
+ export const getPropertyBreakdown = (options) => {
3641
+ return (options.client ?? _heyApiClient).get({
3642
+ security: [
3643
+ {
3644
+ scheme: 'bearer',
3645
+ type: 'http'
3646
+ }
3647
+ ],
3648
+ url: '/projects/{project_id}/events/properties/breakdown',
3649
+ ...options
3650
+ });
3651
+ };
3652
+ /**
3653
+ * Get property timeline by grouping events by a column over time
3654
+ */
3655
+ export const getPropertyTimeline = (options) => {
3656
+ return (options.client ?? _heyApiClient).get({
3657
+ security: [
3658
+ {
3659
+ scheme: 'bearer',
3660
+ type: 'http'
3661
+ }
3662
+ ],
3663
+ url: '/projects/{project_id}/events/properties/timeline',
3664
+ ...options
3665
+ });
3666
+ };
3667
+ /**
3668
+ * Get events timeline
3669
+ */
3670
+ export const getEventsTimeline = (options) => {
3671
+ return (options.client ?? _heyApiClient).get({
3672
+ security: [
3673
+ {
3674
+ scheme: 'bearer',
3675
+ type: 'http'
3676
+ }
3677
+ ],
3678
+ url: '/projects/{project_id}/events/timeline',
3679
+ ...options
3680
+ });
3681
+ };
3682
+ /**
3683
+ * Get all unique/distinct event types for a project
3684
+ */
3685
+ export const getUniqueEvents = (options) => {
3686
+ return (options.client ?? _heyApiClient).get({
3687
+ security: [
3688
+ {
3689
+ scheme: 'bearer',
3690
+ type: 'http'
3691
+ }
3692
+ ],
3693
+ url: '/projects/{project_id}/events/unique',
3694
+ ...options
3695
+ });
3696
+ };
3697
+ /**
3698
+ * List all funnels for a project
3699
+ */
3700
+ export const listFunnels = (options) => {
3701
+ return (options.client ?? _heyApiClient).get({
3702
+ security: [
3703
+ {
3704
+ scheme: 'bearer',
3705
+ type: 'http'
3706
+ }
3707
+ ],
3708
+ url: '/projects/{project_id}/funnels',
3709
+ ...options
3710
+ });
3711
+ };
3712
+ /**
3713
+ * Create a new funnel
3714
+ */
3715
+ export const createFunnel = (options) => {
3716
+ return (options.client ?? _heyApiClient).post({
3717
+ security: [
3718
+ {
3719
+ scheme: 'bearer',
3720
+ type: 'http'
3721
+ }
3722
+ ],
3723
+ url: '/projects/{project_id}/funnels',
3724
+ ...options,
3725
+ headers: {
3726
+ 'Content-Type': 'application/json',
3727
+ ...options.headers
3728
+ }
3729
+ });
3730
+ };
3731
+ /**
3732
+ * Preview funnel metrics without creating the funnel
3733
+ */
3734
+ export const previewFunnelMetrics = (options) => {
3735
+ return (options.client ?? _heyApiClient).post({
3736
+ security: [
3737
+ {
3738
+ scheme: 'bearer',
3739
+ type: 'http'
3740
+ }
3741
+ ],
3742
+ url: '/projects/{project_id}/funnels/preview',
3743
+ ...options,
3744
+ headers: {
3745
+ 'Content-Type': 'application/json',
3746
+ ...options.headers
3747
+ }
3748
+ });
3749
+ };
3750
+ /**
3751
+ * Delete a funnel
3752
+ */
3753
+ export const deleteFunnel = (options) => {
3754
+ return (options.client ?? _heyApiClient).delete({
3755
+ security: [
3756
+ {
3757
+ scheme: 'bearer',
3758
+ type: 'http'
3759
+ }
3760
+ ],
3761
+ url: '/projects/{project_id}/funnels/{funnel_id}',
3762
+ ...options
3763
+ });
3764
+ };
3765
+ /**
3766
+ * Update a funnel
3767
+ */
3768
+ export const updateFunnel = (options) => {
3769
+ return (options.client ?? _heyApiClient).put({
3770
+ security: [
3771
+ {
3772
+ scheme: 'bearer',
3773
+ type: 'http'
3774
+ }
3775
+ ],
3776
+ url: '/projects/{project_id}/funnels/{funnel_id}',
3777
+ ...options,
3778
+ headers: {
3779
+ 'Content-Type': 'application/json',
3780
+ ...options.headers
3781
+ }
3782
+ });
3783
+ };
3784
+ /**
3785
+ * Get funnel metrics
3786
+ */
3787
+ export const getFunnelMetrics = (options) => {
3788
+ return (options.client ?? _heyApiClient).get({
3789
+ security: [
3790
+ {
3791
+ scheme: 'bearer',
3792
+ type: 'http'
3793
+ }
3794
+ ],
3795
+ url: '/projects/{project_id}/funnels/{funnel_id}/metrics',
3796
+ ...options
3797
+ });
3798
+ };
3799
+ /**
3800
+ * Update git settings for a project
3801
+ */
3802
+ export const updateGitSettings = (options) => {
3803
+ return (options.client ?? _heyApiClient).post({
3804
+ security: [
3805
+ {
3806
+ scheme: 'bearer',
3807
+ type: 'http'
3808
+ }
3809
+ ],
3810
+ url: '/projects/{project_id}/git',
3811
+ ...options,
3812
+ headers: {
3813
+ 'Content-Type': 'application/json',
3814
+ ...options.headers
3815
+ }
3816
+ });
3817
+ };
3818
+ /**
3819
+ * Check if project has any error groups
3820
+ */
3821
+ export const hasErrorGroups = (options) => {
3822
+ return (options.client ?? _heyApiClient).get({
3823
+ url: '/projects/{project_id}/has-error-groups',
3824
+ ...options
3825
+ });
3826
+ };
3827
+ /**
3828
+ * Check if project has any analytics events
3829
+ */
3830
+ export const hasAnalyticsEvents = (options) => {
3831
+ return (options.client ?? _heyApiClient).get({
3832
+ security: [
3833
+ {
3834
+ scheme: 'bearer',
3835
+ type: 'http'
3836
+ }
3837
+ ],
3838
+ url: '/projects/{project_id}/has-events',
3839
+ ...options
3840
+ });
3841
+ };
3842
+ /**
3843
+ * Get hourly visits
3844
+ */
3845
+ export const getHourlyVisits = (options) => {
3846
+ return (options.client ?? _heyApiClient).get({
3847
+ security: [
3848
+ {
3849
+ scheme: 'bearer',
3850
+ type: 'http'
3851
+ }
3852
+ ],
3853
+ url: '/projects/{project_id}/hourly-visits',
3854
+ ...options
3855
+ });
3856
+ };
3857
+ /**
3858
+ * List all external images for a project
3859
+ */
3860
+ export const listExternalImages = (options) => {
3861
+ return (options.client ?? _heyApiClient).get({
3862
+ security: [
3863
+ {
3864
+ scheme: 'bearer',
3865
+ type: 'http'
3866
+ }
3867
+ ],
3868
+ url: '/projects/{project_id}/images',
3869
+ ...options
3870
+ });
3871
+ };
3872
+ /**
3873
+ * Push an external Docker image
3874
+ */
3875
+ export const pushExternalImage = (options) => {
3876
+ return (options.client ?? _heyApiClient).post({
3877
+ security: [
3878
+ {
3879
+ scheme: 'bearer',
3880
+ type: 'http'
3881
+ }
3882
+ ],
3883
+ url: '/projects/{project_id}/images/push',
3884
+ ...options,
3885
+ headers: {
3886
+ 'Content-Type': 'application/json',
3887
+ ...options.headers
3888
+ }
3889
+ });
3890
+ };
3891
+ /**
3892
+ * Get details of a specific external image
3893
+ */
3894
+ export const getExternalImage = (options) => {
3895
+ return (options.client ?? _heyApiClient).get({
3896
+ security: [
3897
+ {
3898
+ scheme: 'bearer',
3899
+ type: 'http'
3900
+ }
3901
+ ],
3902
+ url: '/projects/{project_id}/images/{image_id}',
3903
+ ...options
3904
+ });
3905
+ };
3906
+ /**
3907
+ * List incidents for a project
3908
+ */
3909
+ export const listIncidents = (options) => {
3910
+ return (options.client ?? _heyApiClient).get({
3911
+ url: '/projects/{project_id}/incidents',
3912
+ ...options
3913
+ });
3914
+ };
3915
+ /**
3916
+ * Create a new incident
3917
+ */
3918
+ export const createIncident = (options) => {
3919
+ return (options.client ?? _heyApiClient).post({
3920
+ url: '/projects/{project_id}/incidents',
3921
+ ...options,
3922
+ headers: {
3923
+ 'Content-Type': 'application/json',
3924
+ ...options.headers
3925
+ }
3926
+ });
3927
+ };
3928
+ /**
3929
+ * Get bucketed incident data for a project
3930
+ */
3931
+ export const getBucketedIncidents = (options) => {
3932
+ return (options.client ?? _heyApiClient).get({
3933
+ url: '/projects/{project_id}/incidents/bucketed',
3934
+ ...options
3935
+ });
3936
+ };
3937
+ /**
3938
+ * List monitors for a project
3939
+ */
3940
+ export const listMonitors = (options) => {
3941
+ return (options.client ?? _heyApiClient).get({
3942
+ url: '/projects/{project_id}/monitors',
3943
+ ...options
3944
+ });
3945
+ };
3946
+ /**
3947
+ * Create a new monitor
3948
+ */
3949
+ export const createMonitor = (options) => {
3950
+ return (options.client ?? _heyApiClient).post({
3951
+ url: '/projects/{project_id}/monitors',
3952
+ ...options,
3953
+ headers: {
3954
+ 'Content-Type': 'application/json',
3955
+ ...options.headers
3956
+ }
3957
+ });
3958
+ };
3959
+ /**
3960
+ * Update project settings
3961
+ */
3962
+ export const updateProjectSettings = (options) => {
3963
+ return (options.client ?? _heyApiClient).post({
3964
+ security: [
3965
+ {
3966
+ scheme: 'bearer',
3967
+ type: 'http'
3968
+ }
3969
+ ],
3970
+ url: '/projects/{project_id}/settings',
3971
+ ...options,
3972
+ headers: {
3973
+ 'Content-Type': 'application/json',
3974
+ ...options.headers
3975
+ }
3976
+ });
3977
+ };
3978
+ /**
3979
+ * Get status page overview
3980
+ */
3981
+ export const getStatusOverview = (options) => {
3982
+ return (options.client ?? _heyApiClient).get({
3983
+ url: '/projects/{project_id}/status',
3984
+ ...options
3985
+ });
3986
+ };
3987
+ /**
3988
+ * Get unique counts over time frame
3989
+ */
3990
+ export const getUniqueCounts = (options) => {
3991
+ return (options.client ?? _heyApiClient).get({
3992
+ security: [
3993
+ {
3994
+ scheme: 'bearer',
3995
+ type: 'http'
3996
+ }
3997
+ ],
3998
+ url: '/projects/{project_id}/unique-counts',
3999
+ ...options
4000
+ });
4001
+ };
4002
+ /**
4003
+ * List all webhooks for a project
4004
+ */
4005
+ export const listWebhooks = (options) => {
4006
+ return (options.client ?? _heyApiClient).get({
4007
+ security: [
4008
+ {
4009
+ scheme: 'bearer',
4010
+ type: 'http'
4011
+ }
4012
+ ],
4013
+ url: '/projects/{project_id}/webhooks',
4014
+ ...options
4015
+ });
4016
+ };
4017
+ /**
4018
+ * Create a new webhook
4019
+ */
4020
+ export const createWebhook = (options) => {
4021
+ return (options.client ?? _heyApiClient).post({
4022
+ security: [
4023
+ {
4024
+ scheme: 'bearer',
4025
+ type: 'http'
4026
+ }
4027
+ ],
4028
+ url: '/projects/{project_id}/webhooks',
4029
+ ...options,
4030
+ headers: {
4031
+ 'Content-Type': 'application/json',
4032
+ ...options.headers
4033
+ }
4034
+ });
4035
+ };
4036
+ /**
4037
+ * Delete a webhook
4038
+ */
4039
+ export const deleteWebhook = (options) => {
4040
+ return (options.client ?? _heyApiClient).delete({
4041
+ security: [
4042
+ {
4043
+ scheme: 'bearer',
4044
+ type: 'http'
4045
+ }
4046
+ ],
4047
+ url: '/projects/{project_id}/webhooks/{webhook_id}',
4048
+ ...options
4049
+ });
4050
+ };
4051
+ /**
4052
+ * Get a specific webhook
4053
+ */
4054
+ export const getWebhook = (options) => {
4055
+ return (options.client ?? _heyApiClient).get({
4056
+ security: [
4057
+ {
4058
+ scheme: 'bearer',
4059
+ type: 'http'
4060
+ }
4061
+ ],
4062
+ url: '/projects/{project_id}/webhooks/{webhook_id}',
4063
+ ...options
4064
+ });
4065
+ };
4066
+ /**
4067
+ * Update a webhook
4068
+ */
4069
+ export const updateWebhook = (options) => {
4070
+ return (options.client ?? _heyApiClient).put({
4071
+ security: [
4072
+ {
4073
+ scheme: 'bearer',
4074
+ type: 'http'
4075
+ }
4076
+ ],
4077
+ url: '/projects/{project_id}/webhooks/{webhook_id}',
4078
+ ...options,
4079
+ headers: {
4080
+ 'Content-Type': 'application/json',
4081
+ ...options.headers
4082
+ }
4083
+ });
4084
+ };
4085
+ /**
4086
+ * List webhook deliveries
4087
+ */
4088
+ export const listDeliveries = (options) => {
4089
+ return (options.client ?? _heyApiClient).get({
4090
+ security: [
4091
+ {
4092
+ scheme: 'bearer',
4093
+ type: 'http'
4094
+ }
4095
+ ],
4096
+ url: '/projects/{project_id}/webhooks/{webhook_id}/deliveries',
4097
+ ...options
4098
+ });
4099
+ };
4100
+ /**
4101
+ * Get a specific webhook delivery by ID
4102
+ */
4103
+ export const getDelivery = (options) => {
4104
+ return (options.client ?? _heyApiClient).get({
4105
+ security: [
4106
+ {
4107
+ scheme: 'bearer',
4108
+ type: 'http'
4109
+ }
4110
+ ],
4111
+ url: '/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}',
4112
+ ...options
4113
+ });
4114
+ };
4115
+ /**
4116
+ * Retry a failed delivery
4117
+ */
4118
+ export const retryDelivery = (options) => {
4119
+ return (options.client ?? _heyApiClient).post({
4120
+ security: [
4121
+ {
4122
+ scheme: 'bearer',
4123
+ type: 'http'
4124
+ }
4125
+ ],
4126
+ url: '/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}/retry',
4127
+ ...options
4128
+ });
4129
+ };
4130
+ /**
4131
+ * Get proxy logs with optional filters and pagination
4132
+ */
4133
+ export const getProxyLogs = (options) => {
4134
+ return (options?.client ?? _heyApiClient).get({
4135
+ url: '/proxy-logs',
4136
+ ...options
4137
+ });
4138
+ };
4139
+ /**
4140
+ * Get a proxy log by request ID (for tracing)
4141
+ */
4142
+ export const getProxyLogByRequestId = (options) => {
4143
+ return (options.client ?? _heyApiClient).get({
4144
+ url: '/proxy-logs/request/{request_id}',
4145
+ ...options
4146
+ });
4147
+ };
4148
+ /**
4149
+ * Get time-bucketed statistics with optional filters
4150
+ */
4151
+ export const getTimeBucketStats = (options) => {
4152
+ return (options.client ?? _heyApiClient).get({
4153
+ url: '/proxy-logs/stats/time-buckets',
4154
+ ...options
4155
+ });
4156
+ };
4157
+ /**
4158
+ * Get today's request count with optional filters
4159
+ */
4160
+ export const getTodayStats = (options) => {
4161
+ return (options?.client ?? _heyApiClient).get({
4162
+ url: '/proxy-logs/stats/today',
4163
+ ...options
4164
+ });
4165
+ };
4166
+ /**
4167
+ * Get a single proxy log by ID
4168
+ */
4169
+ export const getProxyLogById = (options) => {
4170
+ return (options.client ?? _heyApiClient).get({
4171
+ url: '/proxy-logs/{id}',
4172
+ ...options
4173
+ });
4174
+ };
4175
+ /**
4176
+ * List synced repositories with advanced filtering
4177
+ * Lists repositories that have been synced to the database with filtering options.
4178
+ * This provides fast access to repository metadata with filtering by connection, search, and other criteria.
4179
+ */
4180
+ export const listSyncedRepositories = (options) => {
4181
+ return (options?.client ?? _heyApiClient).get({
4182
+ security: [
4183
+ {
4184
+ scheme: 'bearer',
4185
+ type: 'http'
4186
+ }
4187
+ ],
4188
+ url: '/repositories',
4189
+ ...options
4190
+ });
4191
+ };
4192
+ /**
4193
+ * Get repository by owner and name from any connection
4194
+ */
4195
+ export const getRepositoryByName = (options) => {
4196
+ return (options.client ?? _heyApiClient).get({
4197
+ security: [
4198
+ {
4199
+ scheme: 'bearer',
4200
+ type: 'http'
4201
+ }
4202
+ ],
4203
+ url: '/repositories/{owner}/{name}',
4204
+ ...options
4205
+ });
4206
+ };
4207
+ /**
4208
+ * Get all repositories with same owner/name from all git providers
4209
+ */
4210
+ export const getAllRepositoriesByName = (options) => {
4211
+ return (options.client ?? _heyApiClient).get({
4212
+ security: [
4213
+ {
4214
+ scheme: 'bearer',
4215
+ type: 'http'
4216
+ }
4217
+ ],
4218
+ url: '/repositories/{owner}/{name}/all',
4219
+ ...options
4220
+ });
4221
+ };
4222
+ /**
4223
+ * Get repository preset by owner and name
4224
+ */
4225
+ export const getRepositoryPresetByName = (options) => {
4226
+ return (options.client ?? _heyApiClient).get({
4227
+ security: [
4228
+ {
4229
+ scheme: 'bearer',
4230
+ type: 'http'
4231
+ }
4232
+ ],
4233
+ url: '/repositories/{owner}/{name}/preset',
4234
+ ...options
4235
+ });
4236
+ };
4237
+ /**
4238
+ * Get repository branches
4239
+ */
4240
+ export const getRepositoryBranches = (options) => {
4241
+ return (options.client ?? _heyApiClient).get({
4242
+ security: [
4243
+ {
4244
+ scheme: 'bearer',
4245
+ type: 'http'
4246
+ }
4247
+ ],
4248
+ url: '/repositories/{owner}/{repo}/branches',
4249
+ ...options
4250
+ });
4251
+ };
4252
+ /**
4253
+ * Get repository tags
4254
+ */
4255
+ export const getRepositoryTags = (options) => {
4256
+ return (options.client ?? _heyApiClient).get({
4257
+ security: [
4258
+ {
4259
+ scheme: 'bearer',
4260
+ type: 'http'
4261
+ }
4262
+ ],
4263
+ url: '/repositories/{owner}/{repo}/tags',
4264
+ ...options
4265
+ });
4266
+ };
4267
+ export const getRepositoryPresetLive = (options) => {
4268
+ return (options.client ?? _heyApiClient).get({
4269
+ security: [
4270
+ {
4271
+ scheme: 'bearer',
4272
+ type: 'http'
4273
+ }
4274
+ ],
4275
+ url: '/repositories/{repository_id}/preset/live',
4276
+ ...options
4277
+ });
4278
+ };
4279
+ /**
4280
+ * Get repository branches by repository ID
4281
+ */
4282
+ export const getBranchesByRepositoryId = (options) => {
4283
+ return (options.client ?? _heyApiClient).get({
4284
+ security: [
4285
+ {
4286
+ scheme: 'bearer',
4287
+ type: 'http'
4288
+ }
4289
+ ],
4290
+ url: '/repository/{repository_id}/branches',
4291
+ ...options
4292
+ });
4293
+ };
4294
+ /**
4295
+ * Check if a commit exists in a repository
4296
+ */
4297
+ export const checkCommitExists = (options) => {
4298
+ return (options.client ?? _heyApiClient).get({
4299
+ security: [
4300
+ {
4301
+ scheme: 'bearer',
4302
+ type: 'http'
4303
+ }
4304
+ ],
4305
+ url: '/repository/{repository_id}/commits/{commit_sha}',
4306
+ ...options
4307
+ });
4308
+ };
4309
+ /**
4310
+ * Get repository tags by repository ID
4311
+ */
4312
+ export const getTagsByRepositoryId = (options) => {
4313
+ return (options.client ?? _heyApiClient).get({
4314
+ security: [
4315
+ {
4316
+ scheme: 'bearer',
4317
+ type: 'http'
4318
+ }
4319
+ ],
4320
+ url: '/repository/{repository_id}/tags',
4321
+ ...options
4322
+ });
4323
+ };
4324
+ /**
4325
+ * Get session replays for a project
4326
+ */
4327
+ export const getProjectSessionReplays = (options) => {
4328
+ return (options.client ?? _heyApiClient).get({
4329
+ url: '/session-replays',
4330
+ ...options
4331
+ });
4332
+ };
4333
+ /**
4334
+ * Get events for a specific session
4335
+ */
4336
+ export const getSessionEvents2 = (options) => {
4337
+ return (options.client ?? _heyApiClient).get({
4338
+ security: [
4339
+ {
4340
+ scheme: 'bearer',
4341
+ type: 'http'
4342
+ }
4343
+ ],
4344
+ url: '/sessions/{session_id}/events',
4345
+ ...options
4346
+ });
4347
+ };
4348
+ /**
4349
+ * Get application settings
4350
+ */
4351
+ export const getSettings = (options) => {
4352
+ return (options?.client ?? _heyApiClient).get({
4353
+ security: [
4354
+ {
4355
+ scheme: 'bearer',
4356
+ type: 'http'
4357
+ }
4358
+ ],
4359
+ url: '/settings',
4360
+ ...options
4361
+ });
4362
+ };
4363
+ /**
4364
+ * Update application settings
4365
+ */
4366
+ export const updateSettings = (options) => {
4367
+ return (options.client ?? _heyApiClient).put({
4368
+ security: [
4369
+ {
4370
+ scheme: 'bearer',
4371
+ type: 'http'
4372
+ }
4373
+ ],
4374
+ url: '/settings',
4375
+ ...options,
4376
+ headers: {
4377
+ 'Content-Type': 'application/json',
4378
+ ...options.headers
4379
+ }
4380
+ });
4381
+ };
4382
+ export const getCurrentUser = (options) => {
4383
+ return (options?.client ?? _heyApiClient).get({
4384
+ url: '/user/me',
4385
+ ...options
4386
+ });
4387
+ };
4388
+ export const listUsers = (options) => {
4389
+ return (options.client ?? _heyApiClient).get({
4390
+ security: [
4391
+ {
4392
+ scheme: 'bearer',
4393
+ type: 'http'
4394
+ }
4395
+ ],
4396
+ url: '/users',
4397
+ ...options
4398
+ });
4399
+ };
4400
+ /**
4401
+ * Create a new user with roles
4402
+ */
4403
+ export const createUser = (options) => {
4404
+ return (options.client ?? _heyApiClient).post({
4405
+ security: [
4406
+ {
4407
+ scheme: 'bearer',
4408
+ type: 'http'
4409
+ }
4410
+ ],
4411
+ url: '/users',
4412
+ ...options,
4413
+ headers: {
4414
+ 'Content-Type': 'application/json',
4415
+ ...options.headers
4416
+ }
4417
+ });
4418
+ };
4419
+ /**
4420
+ * Update current user's information
4421
+ */
4422
+ export const updateSelf = (options) => {
4423
+ return (options.client ?? _heyApiClient).patch({
4424
+ security: [
4425
+ {
4426
+ scheme: 'bearer',
4427
+ type: 'http'
4428
+ }
4429
+ ],
4430
+ url: '/users/me',
4431
+ ...options,
4432
+ headers: {
4433
+ 'Content-Type': 'application/json',
4434
+ ...options.headers
4435
+ }
4436
+ });
4437
+ };
4438
+ export const disableMfa = (options) => {
4439
+ return (options.client ?? _heyApiClient).delete({
4440
+ security: [
4441
+ {
4442
+ scheme: 'bearer',
4443
+ type: 'http'
4444
+ }
4445
+ ],
4446
+ url: '/users/me/mfa',
4447
+ ...options,
4448
+ headers: {
4449
+ 'Content-Type': 'application/json',
4450
+ ...options.headers
4451
+ }
4452
+ });
4453
+ };
4454
+ export const setupMfa = (options) => {
4455
+ return (options?.client ?? _heyApiClient).post({
4456
+ security: [
4457
+ {
4458
+ scheme: 'bearer',
4459
+ type: 'http'
4460
+ }
4461
+ ],
4462
+ url: '/users/me/mfa/setup',
4463
+ ...options
4464
+ });
4465
+ };
4466
+ export const verifyAndEnableMfa = (options) => {
4467
+ return (options.client ?? _heyApiClient).post({
4468
+ security: [
4469
+ {
4470
+ scheme: 'bearer',
4471
+ type: 'http'
4472
+ }
4473
+ ],
4474
+ url: '/users/me/mfa/verify',
4475
+ ...options,
4476
+ headers: {
4477
+ 'Content-Type': 'application/json',
4478
+ ...options.headers
4479
+ }
4480
+ });
4481
+ };
4482
+ /**
4483
+ * Delete a user
4484
+ */
4485
+ export const deleteUser = (options) => {
4486
+ return (options.client ?? _heyApiClient).delete({
4487
+ security: [
4488
+ {
4489
+ scheme: 'bearer',
4490
+ type: 'http'
4491
+ }
4492
+ ],
4493
+ url: '/users/{user_id}',
4494
+ ...options
4495
+ });
4496
+ };
4497
+ /**
4498
+ * Update user information (admin only)
4499
+ */
4500
+ export const updateUser = (options) => {
4501
+ return (options.client ?? _heyApiClient).patch({
4502
+ security: [
4503
+ {
4504
+ scheme: 'bearer',
4505
+ type: 'http'
4506
+ }
4507
+ ],
4508
+ url: '/users/{user_id}',
4509
+ ...options,
4510
+ headers: {
4511
+ 'Content-Type': 'application/json',
4512
+ ...options.headers
4513
+ }
4514
+ });
4515
+ };
4516
+ export const restoreUser = (options) => {
4517
+ return (options.client ?? _heyApiClient).post({
4518
+ security: [
4519
+ {
4520
+ scheme: 'bearer',
4521
+ type: 'http'
4522
+ }
4523
+ ],
4524
+ url: '/users/{user_id}/restore',
4525
+ ...options
4526
+ });
4527
+ };
4528
+ export const assignRole = (options) => {
4529
+ return (options.client ?? _heyApiClient).post({
4530
+ security: [
4531
+ {
4532
+ scheme: 'bearer',
4533
+ type: 'http'
4534
+ }
4535
+ ],
4536
+ url: '/users/{user_id}/roles',
4537
+ ...options,
4538
+ headers: {
4539
+ 'Content-Type': 'application/json',
4540
+ ...options.headers
4541
+ }
4542
+ });
4543
+ };
4544
+ export const removeRole = (options) => {
4545
+ return (options.client ?? _heyApiClient).delete({
4546
+ security: [
4547
+ {
4548
+ scheme: 'bearer',
4549
+ type: 'http'
4550
+ }
4551
+ ],
4552
+ url: '/users/{user_id}/roles/{role_type}',
4553
+ ...options
4554
+ });
4555
+ };
4556
+ /**
4557
+ * Get session replays for a visitor
4558
+ */
4559
+ export const getVisitorSessions2 = (options) => {
4560
+ return (options.client ?? _heyApiClient).get({
4561
+ url: '/visitors/{visitor_id}/session-replays',
4562
+ ...options
4563
+ });
4564
+ };
4565
+ /**
4566
+ * Delete a session replay
4567
+ */
4568
+ export const deleteSessionReplay = (options) => {
4569
+ return (options.client ?? _heyApiClient).delete({
4570
+ url: '/visitors/{visitor_id}/session-replays/{session_id}',
4571
+ ...options
4572
+ });
4573
+ };
4574
+ /**
4575
+ * Get session replay data with visitor info (without events)
4576
+ */
4577
+ export const getSessionReplay = (options) => {
4578
+ return (options.client ?? _heyApiClient).get({
4579
+ url: '/visitors/{visitor_id}/session-replays/{session_id}',
4580
+ ...options
4581
+ });
4582
+ };
4583
+ /**
4584
+ * Update session duration
4585
+ */
4586
+ export const updateSessionDuration = (options) => {
4587
+ return (options.client ?? _heyApiClient).put({
4588
+ url: '/visitors/{visitor_id}/session-replays/{session_id}/duration',
4589
+ ...options,
4590
+ headers: {
4591
+ 'Content-Type': 'application/json',
4592
+ ...options.headers
4593
+ }
4594
+ });
4595
+ };
4596
+ /**
4597
+ * Get session replay events (with session and visitor metadata)
4598
+ */
4599
+ export const getSessionReplayEvents = (options) => {
4600
+ return (options.client ?? _heyApiClient).get({
4601
+ url: '/visitors/{visitor_id}/session-replays/{session_id}/events',
4602
+ ...options
4603
+ });
4604
+ };
4605
+ /**
4606
+ * Add events to an existing session
4607
+ */
4608
+ export const addEvents = (options) => {
4609
+ return (options.client ?? _heyApiClient).post({
4610
+ url: '/visitors/{visitor_id}/session-replays/{session_id}/events',
4611
+ ...options,
4612
+ headers: {
4613
+ 'Content-Type': 'application/json',
4614
+ ...options.headers
4615
+ }
4616
+ });
4617
+ };
4618
+ /**
4619
+ * List available event types
4620
+ */
4621
+ export const listEventTypes = (options) => {
4622
+ return (options?.client ?? _heyApiClient).get({
4623
+ url: '/webhook-event-types',
4624
+ ...options
4625
+ });
4626
+ };
4627
+ /**
4628
+ * Trigger weekly digest generation manually
4629
+ */
4630
+ export const triggerWeeklyDigest = (options) => {
4631
+ return (options?.client ?? _heyApiClient).post({
4632
+ security: [
4633
+ {
4634
+ scheme: 'bearer',
4635
+ type: 'http'
4636
+ }
4637
+ ],
4638
+ url: '/weekly-digest/trigger',
4639
+ ...options
4640
+ });
4641
+ };
4642
+ /**
4643
+ * List audit logs with optional filtering
4644
+ */
4645
+ export const listAuditLogs = (options) => {
4646
+ return (options.client ?? _heyApiClient).get({
4647
+ url: 'audit/logs',
4648
+ ...options
4649
+ });
4650
+ };
4651
+ /**
4652
+ * Get a specific audit log entry by ID
4653
+ */
4654
+ export const getAuditLog = (options) => {
4655
+ return (options.client ?? _heyApiClient).get({
4656
+ url: 'audit/logs/{id}',
4657
+ ...options
4658
+ });
4659
+ };