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

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 +3 -0
  2. package/dist/client/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client/client.gen.js +217 -0
  4. package/dist/client/client/index.d.ts +8 -0
  5. package/dist/client/client/index.d.ts.map +1 -0
  6. package/dist/client/client/index.js +5 -0
  7. package/dist/client/client/types.gen.d.ts +125 -0
  8. package/dist/client/client/types.gen.d.ts.map +1 -0
  9. package/dist/client/client/types.gen.js +2 -0
  10. package/dist/client/client/utils.gen.d.ts +39 -0
  11. package/dist/client/client/utils.gen.d.ts.map +1 -0
  12. package/dist/client/client/utils.gen.js +229 -0
  13. package/dist/client/client.gen.d.ts +13 -0
  14. package/dist/client/client.gen.d.ts.map +1 -0
  15. package/dist/client/client.gen.js +3 -0
  16. package/dist/client/core/auth.gen.d.ts +19 -0
  17. package/dist/client/core/auth.gen.d.ts.map +1 -0
  18. package/dist/client/core/auth.gen.js +14 -0
  19. package/dist/client/core/bodySerializer.gen.d.ts +18 -0
  20. package/dist/client/core/bodySerializer.gen.d.ts.map +1 -0
  21. package/dist/client/core/bodySerializer.gen.js +57 -0
  22. package/dist/client/core/params.gen.d.ts +34 -0
  23. package/dist/client/core/params.gen.d.ts.map +1 -0
  24. package/dist/client/core/params.gen.js +88 -0
  25. package/dist/client/core/pathSerializer.gen.d.ts +34 -0
  26. package/dist/client/core/pathSerializer.gen.d.ts.map +1 -0
  27. package/dist/client/core/pathSerializer.gen.js +114 -0
  28. package/dist/client/core/serverSentEvents.gen.d.ts +72 -0
  29. package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -0
  30. package/dist/client/core/serverSentEvents.gen.js +135 -0
  31. package/dist/client/core/types.gen.d.ts +79 -0
  32. package/dist/client/core/types.gen.d.ts.map +1 -0
  33. package/dist/client/core/types.gen.js +2 -0
  34. package/dist/client/core/utils.gen.d.ts +15 -0
  35. package/dist/client/core/utils.gen.d.ts.map +1 -0
  36. package/dist/client/core/utils.gen.js +69 -0
  37. package/dist/client/index.d.ts +3 -0
  38. package/dist/client/index.d.ts.map +1 -0
  39. package/dist/client/index.js +3 -0
  40. package/dist/client/sdk.gen.d.ts +764 -0
  41. package/dist/client/sdk.gen.d.ts.map +1 -0
  42. package/dist/client/sdk.gen.js +3389 -0
  43. package/dist/client/types.gen.d.ts +10338 -0
  44. package/dist/client/types.gen.d.ts.map +1 -0
  45. package/dist/client/types.gen.js +2 -0
  46. package/dist/index.d.ts +3867 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +504 -0
  49. package/package.json +1 -1
@@ -0,0 +1,3389 @@
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
+ security: [
9
+ {
10
+ scheme: 'bearer',
11
+ type: 'http'
12
+ }
13
+ ],
14
+ url: '/api/.well-known/temps.json',
15
+ ...options
16
+ });
17
+ };
18
+ export const listClients = (options) => {
19
+ return (options?.client ?? _heyApiClient).get({
20
+ security: [
21
+ {
22
+ scheme: 'bearer',
23
+ type: 'http'
24
+ }
25
+ ],
26
+ url: '/api//api/mcp/clients',
27
+ ...options
28
+ });
29
+ };
30
+ export const addClient = (options) => {
31
+ return (options.client ?? _heyApiClient).post({
32
+ security: [
33
+ {
34
+ scheme: 'bearer',
35
+ type: 'http'
36
+ }
37
+ ],
38
+ url: '/api//api/mcp/clients',
39
+ ...options,
40
+ headers: {
41
+ 'Content-Type': 'application/json',
42
+ ...options.headers
43
+ }
44
+ });
45
+ };
46
+ export const removeClient = (options) => {
47
+ return (options.client ?? _heyApiClient).delete({
48
+ security: [
49
+ {
50
+ scheme: 'bearer',
51
+ type: 'http'
52
+ }
53
+ ],
54
+ url: '/api//api/mcp/clients/{id}',
55
+ ...options
56
+ });
57
+ };
58
+ export const connectClient = (options) => {
59
+ return (options.client ?? _heyApiClient).post({
60
+ security: [
61
+ {
62
+ scheme: 'bearer',
63
+ type: 'http'
64
+ }
65
+ ],
66
+ url: '/api//api/mcp/clients/{id}/connect',
67
+ ...options
68
+ });
69
+ };
70
+ /**
71
+ * Get the analytics script
72
+ */
73
+ export const getAnalyticsScript = (options) => {
74
+ return (options?.client ?? _heyApiClient).get({
75
+ security: [
76
+ {
77
+ scheme: 'bearer',
78
+ type: 'http'
79
+ }
80
+ ],
81
+ url: '/api/_temps/analytics.js',
82
+ ...options
83
+ });
84
+ };
85
+ /**
86
+ * Record analytics event
87
+ */
88
+ export const recordEventMetrics = (options) => {
89
+ return (options.client ?? _heyApiClient).post({
90
+ security: [
91
+ {
92
+ scheme: 'bearer',
93
+ type: 'http'
94
+ }
95
+ ],
96
+ url: '/api/_temps/event',
97
+ ...options,
98
+ headers: {
99
+ 'Content-Type': 'application/json',
100
+ ...options.headers
101
+ }
102
+ });
103
+ };
104
+ /**
105
+ * Get the performance metrics script
106
+ */
107
+ export const getPerformanceScript = (options) => {
108
+ return (options?.client ?? _heyApiClient).get({
109
+ security: [
110
+ {
111
+ scheme: 'bearer',
112
+ type: 'http'
113
+ }
114
+ ],
115
+ url: '/api/_temps/performance.js',
116
+ ...options
117
+ });
118
+ };
119
+ /**
120
+ * Record performance metrics
121
+ */
122
+ export const recordSpeedMetrics = (options) => {
123
+ return (options.client ?? _heyApiClient).post({
124
+ security: [
125
+ {
126
+ scheme: 'bearer',
127
+ type: 'http'
128
+ }
129
+ ],
130
+ url: '/api/_temps/speed',
131
+ ...options,
132
+ headers: {
133
+ 'Content-Type': 'application/json',
134
+ ...options.headers
135
+ }
136
+ });
137
+ };
138
+ /**
139
+ * Update late performance metrics
140
+ */
141
+ export const updateSpeedMetrics = (options) => {
142
+ return (options.client ?? _heyApiClient).post({
143
+ security: [
144
+ {
145
+ scheme: 'bearer',
146
+ type: 'http'
147
+ }
148
+ ],
149
+ url: '/api/_temps/speed/update',
150
+ ...options,
151
+ headers: {
152
+ 'Content-Type': 'application/json',
153
+ ...options.headers
154
+ }
155
+ });
156
+ };
157
+ export const getBrowsers = (options) => {
158
+ return (options.client ?? _heyApiClient).get({
159
+ security: [
160
+ {
161
+ scheme: 'bearer',
162
+ type: 'http'
163
+ }
164
+ ],
165
+ url: '/api/analytics/browsers',
166
+ ...options
167
+ });
168
+ };
169
+ export const getEventsCount = (options) => {
170
+ return (options.client ?? _heyApiClient).get({
171
+ security: [
172
+ {
173
+ scheme: 'bearer',
174
+ type: 'http'
175
+ }
176
+ ],
177
+ url: '/api/analytics/events',
178
+ ...options
179
+ });
180
+ };
181
+ export const getAnalyticsMetrics = (options) => {
182
+ return (options.client ?? _heyApiClient).get({
183
+ security: [
184
+ {
185
+ scheme: 'bearer',
186
+ type: 'http'
187
+ }
188
+ ],
189
+ url: '/api/analytics/metrics',
190
+ ...options
191
+ });
192
+ };
193
+ export const getPathVisitors = (options) => {
194
+ return (options.client ?? _heyApiClient).get({
195
+ security: [
196
+ {
197
+ scheme: 'bearer',
198
+ type: 'http'
199
+ }
200
+ ],
201
+ url: '/api/analytics/path-visitors',
202
+ ...options
203
+ });
204
+ };
205
+ export const getReferrers = (options) => {
206
+ return (options.client ?? _heyApiClient).get({
207
+ security: [
208
+ {
209
+ scheme: 'bearer',
210
+ type: 'http'
211
+ }
212
+ ],
213
+ url: '/api/analytics/referrers',
214
+ ...options
215
+ });
216
+ };
217
+ /**
218
+ * Get detailed information about a specific session including events and request logs
219
+ */
220
+ export const getSessionDetails = (options) => {
221
+ return (options.client ?? _heyApiClient).get({
222
+ security: [
223
+ {
224
+ scheme: 'bearer',
225
+ type: 'http'
226
+ }
227
+ ],
228
+ url: '/api/analytics/sessions/{session_id}',
229
+ ...options
230
+ });
231
+ };
232
+ export const getSessionEvents = (options) => {
233
+ return (options.client ?? _heyApiClient).get({
234
+ security: [
235
+ {
236
+ scheme: 'bearer',
237
+ type: 'http'
238
+ }
239
+ ],
240
+ url: '/api/analytics/sessions/{session_id}/events',
241
+ ...options
242
+ });
243
+ };
244
+ export const getSessionLogs = (options) => {
245
+ return (options.client ?? _heyApiClient).get({
246
+ security: [
247
+ {
248
+ scheme: 'bearer',
249
+ type: 'http'
250
+ }
251
+ ],
252
+ url: '/api/analytics/sessions/{session_id}/logs',
253
+ ...options
254
+ });
255
+ };
256
+ export const getStatusCodes = (options) => {
257
+ return (options.client ?? _heyApiClient).get({
258
+ security: [
259
+ {
260
+ scheme: 'bearer',
261
+ type: 'http'
262
+ }
263
+ ],
264
+ url: '/api/analytics/status-codes',
265
+ ...options
266
+ });
267
+ };
268
+ export const getViewsOverTime = (options) => {
269
+ return (options.client ?? _heyApiClient).get({
270
+ security: [
271
+ {
272
+ scheme: 'bearer',
273
+ type: 'http'
274
+ }
275
+ ],
276
+ url: '/api/analytics/views-over-time',
277
+ ...options
278
+ });
279
+ };
280
+ export const getVisitorLocations = (options) => {
281
+ return (options.client ?? _heyApiClient).get({
282
+ security: [
283
+ {
284
+ scheme: 'bearer',
285
+ type: 'http'
286
+ }
287
+ ],
288
+ url: '/api/analytics/visitor-locations',
289
+ ...options
290
+ });
291
+ };
292
+ /**
293
+ * Get list of visitors with summary information
294
+ */
295
+ export const getVisitors = (options) => {
296
+ return (options.client ?? _heyApiClient).get({
297
+ security: [
298
+ {
299
+ scheme: 'bearer',
300
+ type: 'http'
301
+ }
302
+ ],
303
+ url: '/api/analytics/visitors',
304
+ ...options
305
+ });
306
+ };
307
+ /**
308
+ * Get detailed information about a specific visitor
309
+ */
310
+ export const getVisitorDetails = (options) => {
311
+ return (options.client ?? _heyApiClient).get({
312
+ security: [
313
+ {
314
+ scheme: 'bearer',
315
+ type: 'http'
316
+ }
317
+ ],
318
+ url: '/api/analytics/visitors/{visitor_id}',
319
+ ...options
320
+ });
321
+ };
322
+ export const enrichVisitor = (options) => {
323
+ return (options.client ?? _heyApiClient).put({
324
+ security: [
325
+ {
326
+ scheme: 'bearer',
327
+ type: 'http'
328
+ }
329
+ ],
330
+ url: '/api/analytics/visitors/{visitor_id}/enrich',
331
+ ...options,
332
+ headers: {
333
+ 'Content-Type': 'application/json',
334
+ ...options.headers
335
+ }
336
+ });
337
+ };
338
+ /**
339
+ * Get all sessions for a specific visitor
340
+ */
341
+ export const getVisitorSessions = (options) => {
342
+ return (options.client ?? _heyApiClient).get({
343
+ security: [
344
+ {
345
+ scheme: 'bearer',
346
+ type: 'http'
347
+ }
348
+ ],
349
+ url: '/api/analytics/visitors/{visitor_id}/sessions',
350
+ ...options
351
+ });
352
+ };
353
+ export const listApiKeys = (options) => {
354
+ return (options?.client ?? _heyApiClient).get({
355
+ security: [
356
+ {
357
+ scheme: 'bearer',
358
+ type: 'http'
359
+ }
360
+ ],
361
+ url: '/api/api-keys',
362
+ ...options
363
+ });
364
+ };
365
+ export const createApiKey = (options) => {
366
+ return (options.client ?? _heyApiClient).post({
367
+ security: [
368
+ {
369
+ scheme: 'bearer',
370
+ type: 'http'
371
+ }
372
+ ],
373
+ url: '/api/api-keys',
374
+ ...options,
375
+ headers: {
376
+ 'Content-Type': 'application/json',
377
+ ...options.headers
378
+ }
379
+ });
380
+ };
381
+ export const getApiKeyPermissions = (options) => {
382
+ return (options?.client ?? _heyApiClient).get({
383
+ security: [
384
+ {
385
+ scheme: 'bearer',
386
+ type: 'http'
387
+ }
388
+ ],
389
+ url: '/api/api-keys/permissions',
390
+ ...options
391
+ });
392
+ };
393
+ export const deleteApiKey = (options) => {
394
+ return (options.client ?? _heyApiClient).delete({
395
+ security: [
396
+ {
397
+ scheme: 'bearer',
398
+ type: 'http'
399
+ }
400
+ ],
401
+ url: '/api/api-keys/{id}',
402
+ ...options
403
+ });
404
+ };
405
+ export const getApiKey = (options) => {
406
+ return (options.client ?? _heyApiClient).get({
407
+ security: [
408
+ {
409
+ scheme: 'bearer',
410
+ type: 'http'
411
+ }
412
+ ],
413
+ url: '/api/api-keys/{id}',
414
+ ...options
415
+ });
416
+ };
417
+ export const updateApiKey = (options) => {
418
+ return (options.client ?? _heyApiClient).put({
419
+ security: [
420
+ {
421
+ scheme: 'bearer',
422
+ type: 'http'
423
+ }
424
+ ],
425
+ url: '/api/api-keys/{id}',
426
+ ...options,
427
+ headers: {
428
+ 'Content-Type': 'application/json',
429
+ ...options.headers
430
+ }
431
+ });
432
+ };
433
+ export const activateApiKey = (options) => {
434
+ return (options.client ?? _heyApiClient).post({
435
+ security: [
436
+ {
437
+ scheme: 'bearer',
438
+ type: 'http'
439
+ }
440
+ ],
441
+ url: '/api/api-keys/{id}/activate',
442
+ ...options
443
+ });
444
+ };
445
+ export const deactivateApiKey = (options) => {
446
+ return (options.client ?? _heyApiClient).post({
447
+ security: [
448
+ {
449
+ scheme: 'bearer',
450
+ type: 'http'
451
+ }
452
+ ],
453
+ url: '/api/api-keys/{id}/deactivate',
454
+ ...options
455
+ });
456
+ };
457
+ /**
458
+ * List audit logs with optional filtering
459
+ */
460
+ export const listAuditLogs = (options) => {
461
+ return (options.client ?? _heyApiClient).get({
462
+ url: '/api/audit/logs',
463
+ ...options
464
+ });
465
+ };
466
+ /**
467
+ * Get a specific audit log entry by ID
468
+ */
469
+ export const getAuditLog = (options) => {
470
+ return (options.client ?? _heyApiClient).get({
471
+ url: '/api/audit/logs/{id}',
472
+ ...options
473
+ });
474
+ };
475
+ export const initAuth = (options) => {
476
+ return (options?.client ?? _heyApiClient).post({
477
+ security: [
478
+ {
479
+ scheme: 'bearer',
480
+ type: 'http'
481
+ }
482
+ ],
483
+ url: '/api/auth/init',
484
+ ...options
485
+ });
486
+ };
487
+ export const authStatus = (options) => {
488
+ return (options.client ?? _heyApiClient).get({
489
+ security: [
490
+ {
491
+ scheme: 'bearer',
492
+ type: 'http'
493
+ }
494
+ ],
495
+ url: '/api/auth/status',
496
+ ...options
497
+ });
498
+ };
499
+ export const verifyMfaChallenge = (options) => {
500
+ return (options.client ?? _heyApiClient).post({
501
+ security: [
502
+ {
503
+ scheme: 'bearer',
504
+ type: 'http'
505
+ }
506
+ ],
507
+ url: '/api/auth/verify-mfa',
508
+ ...options,
509
+ headers: {
510
+ 'Content-Type': 'application/json',
511
+ ...options.headers
512
+ }
513
+ });
514
+ };
515
+ /**
516
+ * List all S3 sources
517
+ */
518
+ export const listS3Sources = (options) => {
519
+ return (options?.client ?? _heyApiClient).get({
520
+ url: '/api/backups/s3-sources',
521
+ ...options
522
+ });
523
+ };
524
+ /**
525
+ * Create a new S3 source
526
+ */
527
+ export const createS3Source = (options) => {
528
+ return (options.client ?? _heyApiClient).post({
529
+ url: '/api/backups/s3-sources',
530
+ ...options,
531
+ headers: {
532
+ 'Content-Type': 'application/json',
533
+ ...options.headers
534
+ }
535
+ });
536
+ };
537
+ /**
538
+ * Delete an S3 source
539
+ */
540
+ export const deleteS3Source = (options) => {
541
+ return (options.client ?? _heyApiClient).delete({
542
+ url: '/api/backups/s3-sources/{id}',
543
+ ...options
544
+ });
545
+ };
546
+ /**
547
+ * Get an S3 source by ID
548
+ */
549
+ export const getS3Source = (options) => {
550
+ return (options.client ?? _heyApiClient).get({
551
+ url: '/api/backups/s3-sources/{id}',
552
+ ...options
553
+ });
554
+ };
555
+ /**
556
+ * Update an S3 source
557
+ */
558
+ export const updateS3Source = (options) => {
559
+ return (options.client ?? _heyApiClient).patch({
560
+ url: '/api/backups/s3-sources/{id}',
561
+ ...options,
562
+ headers: {
563
+ 'Content-Type': 'application/json',
564
+ ...options.headers
565
+ }
566
+ });
567
+ };
568
+ /**
569
+ * List all backups in an S3 source
570
+ */
571
+ export const listSourceBackups = (options) => {
572
+ return (options.client ?? _heyApiClient).get({
573
+ url: '/api/backups/s3-sources/{id}/backups',
574
+ ...options
575
+ });
576
+ };
577
+ /**
578
+ * Run a backup immediately for an S3 source
579
+ */
580
+ export const runBackupForSource = (options) => {
581
+ return (options.client ?? _heyApiClient).post({
582
+ url: '/api/backups/s3-sources/{id}/run',
583
+ ...options,
584
+ headers: {
585
+ 'Content-Type': 'application/json',
586
+ ...options.headers
587
+ }
588
+ });
589
+ };
590
+ /**
591
+ * List all backup schedules
592
+ */
593
+ export const listBackupSchedules = (options) => {
594
+ return (options?.client ?? _heyApiClient).get({
595
+ url: '/api/backups/schedules',
596
+ ...options
597
+ });
598
+ };
599
+ /**
600
+ * Create a new backup schedule
601
+ */
602
+ export const createBackupSchedule = (options) => {
603
+ return (options.client ?? _heyApiClient).post({
604
+ url: '/api/backups/schedules',
605
+ ...options,
606
+ headers: {
607
+ 'Content-Type': 'application/json',
608
+ ...options.headers
609
+ }
610
+ });
611
+ };
612
+ /**
613
+ * Delete a backup schedule
614
+ */
615
+ export const deleteBackupSchedule = (options) => {
616
+ return (options.client ?? _heyApiClient).delete({
617
+ url: '/api/backups/schedules/{id}',
618
+ ...options
619
+ });
620
+ };
621
+ /**
622
+ * Get a backup schedule by ID
623
+ */
624
+ export const getBackupSchedule = (options) => {
625
+ return (options.client ?? _heyApiClient).get({
626
+ url: '/api/backups/schedules/{id}',
627
+ ...options
628
+ });
629
+ };
630
+ /**
631
+ * List backups for a schedule
632
+ */
633
+ export const listBackupsForSchedule = (options) => {
634
+ return (options.client ?? _heyApiClient).get({
635
+ url: '/api/backups/schedules/{id}/backups',
636
+ ...options
637
+ });
638
+ };
639
+ /**
640
+ * Disable a backup schedule
641
+ */
642
+ export const disableBackupSchedule = (options) => {
643
+ return (options.client ?? _heyApiClient).patch({
644
+ url: '/api/backups/schedules/{id}/disable',
645
+ ...options
646
+ });
647
+ };
648
+ /**
649
+ * Enable a backup schedule
650
+ */
651
+ export const enableBackupSchedule = (options) => {
652
+ return (options.client ?? _heyApiClient).patch({
653
+ url: '/api/backups/schedules/{id}/enable',
654
+ ...options
655
+ });
656
+ };
657
+ /**
658
+ * Get a backup by ID
659
+ */
660
+ export const getBackup = (options) => {
661
+ return (options.client ?? _heyApiClient).get({
662
+ url: '/api/backups/{id}',
663
+ ...options
664
+ });
665
+ };
666
+ export const cliLogin = (options) => {
667
+ return (options.client ?? _heyApiClient).post({
668
+ security: [
669
+ {
670
+ scheme: 'bearer',
671
+ type: 'http'
672
+ }
673
+ ],
674
+ url: '/api/cli/login',
675
+ ...options,
676
+ headers: {
677
+ 'Content-Type': 'application/json',
678
+ ...options.headers
679
+ }
680
+ });
681
+ };
682
+ /**
683
+ * Get metrics histogram for a specific deployment
684
+ */
685
+ export const getDeploymentMetricsHistogram = (options) => {
686
+ return (options.client ?? _heyApiClient).get({
687
+ security: [
688
+ {
689
+ scheme: 'bearer',
690
+ type: 'http'
691
+ }
692
+ ],
693
+ url: '/api/deployments/{deployment_id}/metrics/histogram',
694
+ ...options
695
+ });
696
+ };
697
+ /**
698
+ * Get all development projects for the current user
699
+ */
700
+ export const getDevProjects = (options) => {
701
+ return (options?.client ?? _heyApiClient).get({
702
+ url: '/api/dev-projects',
703
+ ...options
704
+ });
705
+ };
706
+ /**
707
+ * Create a new development project
708
+ */
709
+ export const createDevProject = (options) => {
710
+ return (options.client ?? _heyApiClient).post({
711
+ url: '/api/dev-projects',
712
+ ...options,
713
+ headers: {
714
+ 'Content-Type': 'application/json',
715
+ ...options.headers
716
+ }
717
+ });
718
+ };
719
+ /**
720
+ * Delete a development project
721
+ */
722
+ export const deleteDevProject = (options) => {
723
+ return (options.client ?? _heyApiClient).delete({
724
+ url: '/api/dev-projects/{id}',
725
+ ...options
726
+ });
727
+ };
728
+ /**
729
+ * Get a specific development project
730
+ */
731
+ export const getDevProject = (options) => {
732
+ return (options.client ?? _heyApiClient).get({
733
+ url: '/api/dev-projects/{id}',
734
+ ...options
735
+ });
736
+ };
737
+ /**
738
+ * Build Docker container for the project
739
+ */
740
+ export const buildDevContainer = (options) => {
741
+ return (options.client ?? _heyApiClient).post({
742
+ url: '/api/dev-projects/{id}/build',
743
+ ...options
744
+ });
745
+ };
746
+ /**
747
+ * Pull the latest changes from GitHub
748
+ */
749
+ export const pullDevProject = (options) => {
750
+ return (options.client ?? _heyApiClient).post({
751
+ url: '/api/dev-projects/{id}/pull',
752
+ ...options
753
+ });
754
+ };
755
+ /**
756
+ * Start the development container
757
+ */
758
+ export const startDevContainer = (options) => {
759
+ return (options.client ?? _heyApiClient).post({
760
+ url: '/api/dev-projects/{id}/start',
761
+ ...options
762
+ });
763
+ };
764
+ /**
765
+ * Stop the development container
766
+ */
767
+ export const stopDevContainer = (options) => {
768
+ return (options.client ?? _heyApiClient).post({
769
+ url: '/api/dev-projects/{id}/stop',
770
+ ...options
771
+ });
772
+ };
773
+ /**
774
+ * WebSocket endpoint for terminal connections
775
+ */
776
+ export const devTerminalWs = (options) => {
777
+ return (options.client ?? _heyApiClient).get({
778
+ url: '/api/dev-projects/{id}/terminal',
779
+ ...options
780
+ });
781
+ };
782
+ /**
783
+ * Delete a file or directory
784
+ */
785
+ export const deleteFileOrDirectory = (options) => {
786
+ return (options.client ?? _heyApiClient).delete({
787
+ url: '/api/dev-projects/{project_id}/fs/delete',
788
+ ...options
789
+ });
790
+ };
791
+ /**
792
+ * Create a new directory
793
+ */
794
+ export const createDirectory = (options) => {
795
+ return (options.client ?? _heyApiClient).post({
796
+ url: '/api/dev-projects/{project_id}/fs/directory',
797
+ ...options,
798
+ headers: {
799
+ 'Content-Type': 'application/json',
800
+ ...options.headers
801
+ }
802
+ });
803
+ };
804
+ /**
805
+ * Read file content
806
+ */
807
+ export const readFile = (options) => {
808
+ return (options.client ?? _heyApiClient).get({
809
+ url: '/api/dev-projects/{project_id}/fs/file',
810
+ ...options
811
+ });
812
+ };
813
+ /**
814
+ * Create a new file
815
+ */
816
+ export const createFile = (options) => {
817
+ return (options.client ?? _heyApiClient).post({
818
+ url: '/api/dev-projects/{project_id}/fs/file',
819
+ ...options,
820
+ headers: {
821
+ 'Content-Type': 'application/json',
822
+ ...options.headers
823
+ }
824
+ });
825
+ };
826
+ /**
827
+ * Write/update file content
828
+ */
829
+ export const writeFile = (options) => {
830
+ return (options.client ?? _heyApiClient).put({
831
+ url: '/api/dev-projects/{project_id}/fs/file',
832
+ ...options,
833
+ headers: {
834
+ 'Content-Type': 'application/json',
835
+ ...options.headers
836
+ }
837
+ });
838
+ };
839
+ /**
840
+ * List directory contents for a dev project
841
+ */
842
+ export const listDirectory = (options) => {
843
+ return (options.client ?? _heyApiClient).get({
844
+ url: '/api/dev-projects/{project_id}/fs/list',
845
+ ...options
846
+ });
847
+ };
848
+ /**
849
+ * Add files to git staging area
850
+ */
851
+ export const gitAdd = (options) => {
852
+ return (options.client ?? _heyApiClient).post({
853
+ url: '/api/dev-projects/{project_id}/git/add',
854
+ ...options
855
+ });
856
+ };
857
+ /**
858
+ * Get list of branches
859
+ */
860
+ export const getBranches = (options) => {
861
+ return (options.client ?? _heyApiClient).get({
862
+ url: '/api/dev-projects/{project_id}/git/branches',
863
+ ...options
864
+ });
865
+ };
866
+ /**
867
+ * Create a new branch
868
+ */
869
+ export const createBranch = (options) => {
870
+ return (options.client ?? _heyApiClient).post({
871
+ url: '/api/dev-projects/{project_id}/git/branches',
872
+ ...options,
873
+ headers: {
874
+ 'Content-Type': 'application/json',
875
+ ...options.headers
876
+ }
877
+ });
878
+ };
879
+ /**
880
+ * Switch to a different branch
881
+ */
882
+ export const switchBranch = (options) => {
883
+ return (options.client ?? _heyApiClient).post({
884
+ url: '/api/dev-projects/{project_id}/git/checkout/{branch}',
885
+ ...options
886
+ });
887
+ };
888
+ /**
889
+ * Commit changes
890
+ */
891
+ export const gitCommit = (options) => {
892
+ return (options.client ?? _heyApiClient).post({
893
+ url: '/api/dev-projects/{project_id}/git/commit',
894
+ ...options,
895
+ headers: {
896
+ 'Content-Type': 'application/json',
897
+ ...options.headers
898
+ }
899
+ });
900
+ };
901
+ /**
902
+ * Get git log
903
+ */
904
+ export const getGitLog = (options) => {
905
+ return (options.client ?? _heyApiClient).get({
906
+ url: '/api/dev-projects/{project_id}/git/log',
907
+ ...options
908
+ });
909
+ };
910
+ /**
911
+ * Pull latest changes from remote
912
+ */
913
+ export const gitPull = (options) => {
914
+ return (options.client ?? _heyApiClient).post({
915
+ url: '/api/dev-projects/{project_id}/git/pull',
916
+ ...options
917
+ });
918
+ };
919
+ /**
920
+ * Push changes to remote
921
+ */
922
+ export const gitPush = (options) => {
923
+ return (options.client ?? _heyApiClient).post({
924
+ url: '/api/dev-projects/{project_id}/git/push',
925
+ ...options
926
+ });
927
+ };
928
+ /**
929
+ * Remove files from repository
930
+ */
931
+ export const gitRemove = (options) => {
932
+ return (options.client ?? _heyApiClient).post({
933
+ url: '/api/dev-projects/{project_id}/git/remove',
934
+ ...options,
935
+ headers: {
936
+ 'Content-Type': 'application/json',
937
+ ...options.headers
938
+ }
939
+ });
940
+ };
941
+ /**
942
+ * Get git status for a dev project
943
+ */
944
+ export const getGitStatus = (options) => {
945
+ return (options.client ?? _heyApiClient).get({
946
+ url: '/api/dev-projects/{project_id}/git/status',
947
+ ...options
948
+ });
949
+ };
950
+ /**
951
+ * Remove files from git staging area (unstage)
952
+ */
953
+ export const gitUnstage = (options) => {
954
+ return (options.client ?? _heyApiClient).post({
955
+ url: '/api/dev-projects/{project_id}/git/unstage',
956
+ ...options,
957
+ headers: {
958
+ 'Content-Type': 'application/json',
959
+ ...options.headers
960
+ }
961
+ });
962
+ };
963
+ /**
964
+ * List all domains
965
+ */
966
+ export const listDomains = (options) => {
967
+ return (options?.client ?? _heyApiClient).get({
968
+ security: [
969
+ {
970
+ scheme: 'bearer',
971
+ type: 'http'
972
+ }
973
+ ],
974
+ url: '/api/domains',
975
+ ...options
976
+ });
977
+ };
978
+ /**
979
+ * Create a new domain
980
+ */
981
+ export const createDomain = (options) => {
982
+ return (options.client ?? _heyApiClient).post({
983
+ security: [
984
+ {
985
+ scheme: 'bearer',
986
+ type: 'http'
987
+ }
988
+ ],
989
+ url: '/api/domains',
990
+ ...options,
991
+ headers: {
992
+ 'Content-Type': 'application/json',
993
+ ...options.headers
994
+ }
995
+ });
996
+ };
997
+ /**
998
+ * Get domain details by hostname
999
+ */
1000
+ export const getDomainByHost = (options) => {
1001
+ return (options.client ?? _heyApiClient).get({
1002
+ security: [
1003
+ {
1004
+ scheme: 'bearer',
1005
+ type: 'http'
1006
+ }
1007
+ ],
1008
+ url: '/api/domains/by-host/{hostname}',
1009
+ ...options
1010
+ });
1011
+ };
1012
+ /**
1013
+ * Delete a domain
1014
+ */
1015
+ export const deleteDomain = (options) => {
1016
+ return (options.client ?? _heyApiClient).delete({
1017
+ security: [
1018
+ {
1019
+ scheme: 'bearer',
1020
+ type: 'http'
1021
+ }
1022
+ ],
1023
+ url: '/api/domains/{domain_id}',
1024
+ ...options
1025
+ });
1026
+ };
1027
+ /**
1028
+ * Get domain by ID
1029
+ */
1030
+ export const getDomainById = (options) => {
1031
+ return (options.client ?? _heyApiClient).get({
1032
+ security: [
1033
+ {
1034
+ scheme: 'bearer',
1035
+ type: 'http'
1036
+ }
1037
+ ],
1038
+ url: '/api/domains/{domain_id}',
1039
+ ...options
1040
+ });
1041
+ };
1042
+ /**
1043
+ * Provision a domain certificate
1044
+ */
1045
+ export const provisionDomain = (options) => {
1046
+ return (options.client ?? _heyApiClient).post({
1047
+ security: [
1048
+ {
1049
+ scheme: 'bearer',
1050
+ type: 'http'
1051
+ }
1052
+ ],
1053
+ url: '/api/domains/{domain_id}/provision',
1054
+ ...options
1055
+ });
1056
+ };
1057
+ /**
1058
+ * Renew domain certificate
1059
+ */
1060
+ export const renewDomain = (options) => {
1061
+ return (options.client ?? _heyApiClient).post({
1062
+ security: [
1063
+ {
1064
+ scheme: 'bearer',
1065
+ type: 'http'
1066
+ }
1067
+ ],
1068
+ url: '/api/domains/{domain_id}/renew',
1069
+ ...options
1070
+ });
1071
+ };
1072
+ /**
1073
+ * Check domain status
1074
+ */
1075
+ export const checkDomainStatus = (options) => {
1076
+ return (options.client ?? _heyApiClient).get({
1077
+ security: [
1078
+ {
1079
+ scheme: 'bearer',
1080
+ type: 'http'
1081
+ }
1082
+ ],
1083
+ url: '/api/domains/{domain_id}/status',
1084
+ ...options
1085
+ });
1086
+ };
1087
+ /**
1088
+ * Complete DNS challenge for a domain
1089
+ */
1090
+ export const completeDnsChallenge = (options) => {
1091
+ return (options.client ?? _heyApiClient).post({
1092
+ security: [
1093
+ {
1094
+ scheme: 'bearer',
1095
+ type: 'http'
1096
+ }
1097
+ ],
1098
+ url: '/api/domains/{domain}/complete-dns',
1099
+ ...options
1100
+ });
1101
+ };
1102
+ /**
1103
+ * Get all external services
1104
+ */
1105
+ export const listServices = (options) => {
1106
+ return (options?.client ?? _heyApiClient).get({
1107
+ security: [
1108
+ {
1109
+ scheme: 'bearer',
1110
+ type: 'http'
1111
+ }
1112
+ ],
1113
+ url: '/api/external-services',
1114
+ ...options
1115
+ });
1116
+ };
1117
+ /**
1118
+ * Create new external service
1119
+ */
1120
+ export const createService = (options) => {
1121
+ return (options.client ?? _heyApiClient).post({
1122
+ security: [
1123
+ {
1124
+ scheme: 'bearer',
1125
+ type: 'http'
1126
+ }
1127
+ ],
1128
+ url: '/api/external-services',
1129
+ ...options,
1130
+ headers: {
1131
+ 'Content-Type': 'application/json',
1132
+ ...options.headers
1133
+ }
1134
+ });
1135
+ };
1136
+ /**
1137
+ * Get external service details by slug
1138
+ */
1139
+ export const getServiceBySlug = (options) => {
1140
+ return (options.client ?? _heyApiClient).get({
1141
+ security: [
1142
+ {
1143
+ scheme: 'bearer',
1144
+ type: 'http'
1145
+ }
1146
+ ],
1147
+ url: '/api/external-services/by-slug/{slug}',
1148
+ ...options
1149
+ });
1150
+ };
1151
+ /**
1152
+ * List services linked to a project
1153
+ */
1154
+ export const listProjectServices = (options) => {
1155
+ return (options.client ?? _heyApiClient).get({
1156
+ security: [
1157
+ {
1158
+ scheme: 'bearer',
1159
+ type: 'http'
1160
+ }
1161
+ ],
1162
+ url: '/api/external-services/projects/{project_id}',
1163
+ ...options
1164
+ });
1165
+ };
1166
+ /**
1167
+ * Get all environment variables for all services linked to a project
1168
+ */
1169
+ export const getProjectServiceEnvironmentVariables = (options) => {
1170
+ return (options.client ?? _heyApiClient).get({
1171
+ security: [
1172
+ {
1173
+ scheme: 'bearer',
1174
+ type: 'http'
1175
+ }
1176
+ ],
1177
+ url: '/api/external-services/projects/{project_id}/environment',
1178
+ ...options
1179
+ });
1180
+ };
1181
+ /**
1182
+ * Get available service types
1183
+ */
1184
+ export const getServiceTypes = (options) => {
1185
+ return (options?.client ?? _heyApiClient).get({
1186
+ security: [
1187
+ {
1188
+ scheme: 'bearer',
1189
+ type: 'http'
1190
+ }
1191
+ ],
1192
+ url: '/api/external-services/types',
1193
+ ...options
1194
+ });
1195
+ };
1196
+ /**
1197
+ * Get parameters for a specific service type
1198
+ */
1199
+ export const getServiceTypeParameters = (options) => {
1200
+ return (options.client ?? _heyApiClient).get({
1201
+ security: [
1202
+ {
1203
+ scheme: 'bearer',
1204
+ type: 'http'
1205
+ }
1206
+ ],
1207
+ url: '/api/external-services/types/{service_type}/parameters',
1208
+ ...options
1209
+ });
1210
+ };
1211
+ /**
1212
+ * Delete external service
1213
+ */
1214
+ export const deleteService = (options) => {
1215
+ return (options.client ?? _heyApiClient).delete({
1216
+ security: [
1217
+ {
1218
+ scheme: 'bearer',
1219
+ type: 'http'
1220
+ }
1221
+ ],
1222
+ url: '/api/external-services/{id}',
1223
+ ...options
1224
+ });
1225
+ };
1226
+ /**
1227
+ * Get external service details
1228
+ */
1229
+ export const getService = (options) => {
1230
+ return (options.client ?? _heyApiClient).get({
1231
+ security: [
1232
+ {
1233
+ scheme: 'bearer',
1234
+ type: 'http'
1235
+ }
1236
+ ],
1237
+ url: '/api/external-services/{id}',
1238
+ ...options
1239
+ });
1240
+ };
1241
+ /**
1242
+ * Update external service
1243
+ */
1244
+ export const updateService = (options) => {
1245
+ return (options.client ?? _heyApiClient).put({
1246
+ security: [
1247
+ {
1248
+ scheme: 'bearer',
1249
+ type: 'http'
1250
+ }
1251
+ ],
1252
+ url: '/api/external-services/{id}',
1253
+ ...options,
1254
+ headers: {
1255
+ 'Content-Type': 'application/json',
1256
+ ...options.headers
1257
+ }
1258
+ });
1259
+ };
1260
+ /**
1261
+ * List projects linked to service
1262
+ */
1263
+ export const listServiceProjects = (options) => {
1264
+ return (options.client ?? _heyApiClient).get({
1265
+ security: [
1266
+ {
1267
+ scheme: 'bearer',
1268
+ type: 'http'
1269
+ }
1270
+ ],
1271
+ url: '/api/external-services/{id}/projects',
1272
+ ...options
1273
+ });
1274
+ };
1275
+ /**
1276
+ * Link service to project
1277
+ */
1278
+ export const linkServiceToProject = (options) => {
1279
+ return (options.client ?? _heyApiClient).post({
1280
+ security: [
1281
+ {
1282
+ scheme: 'bearer',
1283
+ type: 'http'
1284
+ }
1285
+ ],
1286
+ url: '/api/external-services/{id}/projects',
1287
+ ...options,
1288
+ headers: {
1289
+ 'Content-Type': 'application/json',
1290
+ ...options.headers
1291
+ }
1292
+ });
1293
+ };
1294
+ /**
1295
+ * Unlink service from project
1296
+ */
1297
+ export const unlinkServiceFromProject = (options) => {
1298
+ return (options.client ?? _heyApiClient).delete({
1299
+ security: [
1300
+ {
1301
+ scheme: 'bearer',
1302
+ type: 'http'
1303
+ }
1304
+ ],
1305
+ url: '/api/external-services/{id}/projects/{project_id}',
1306
+ ...options
1307
+ });
1308
+ };
1309
+ /**
1310
+ * Get all environment variables for a service-project pair
1311
+ */
1312
+ export const getServiceEnvironmentVariables = (options) => {
1313
+ return (options.client ?? _heyApiClient).get({
1314
+ security: [
1315
+ {
1316
+ scheme: 'bearer',
1317
+ type: 'http'
1318
+ }
1319
+ ],
1320
+ url: '/api/external-services/{id}/projects/{project_id}/environment',
1321
+ ...options
1322
+ });
1323
+ };
1324
+ /**
1325
+ * Get specific environment variable for a service-project pair
1326
+ */
1327
+ export const getServiceEnvironmentVariable = (options) => {
1328
+ return (options.client ?? _heyApiClient).get({
1329
+ security: [
1330
+ {
1331
+ scheme: 'bearer',
1332
+ type: 'http'
1333
+ }
1334
+ ],
1335
+ url: '/api/external-services/{id}/projects/{project_id}/environment/{var_name}',
1336
+ ...options
1337
+ });
1338
+ };
1339
+ /**
1340
+ * Start an external service
1341
+ */
1342
+ export const startService = (options) => {
1343
+ return (options.client ?? _heyApiClient).post({
1344
+ security: [
1345
+ {
1346
+ scheme: 'bearer',
1347
+ type: 'http'
1348
+ }
1349
+ ],
1350
+ url: '/api/external-services/{id}/start',
1351
+ ...options
1352
+ });
1353
+ };
1354
+ /**
1355
+ * Stop an external service
1356
+ */
1357
+ export const stopService = (options) => {
1358
+ return (options.client ?? _heyApiClient).post({
1359
+ security: [
1360
+ {
1361
+ scheme: 'bearer',
1362
+ type: 'http'
1363
+ }
1364
+ ],
1365
+ url: '/api/external-services/{id}/stop',
1366
+ ...options
1367
+ });
1368
+ };
1369
+ export const wsHandler = (options) => {
1370
+ return (options.client ?? _heyApiClient).get({
1371
+ url: '/api/external-services/{service_id}/connect',
1372
+ ...options
1373
+ });
1374
+ };
1375
+ /**
1376
+ * Get current feature flags
1377
+ */
1378
+ export const getFeatureFlags = (options) => {
1379
+ return (options?.client ?? _heyApiClient).get({
1380
+ url: '/api/feature-flags',
1381
+ ...options
1382
+ });
1383
+ };
1384
+ /**
1385
+ * Update automatic analytics flag
1386
+ */
1387
+ export const updateAutomaticAnalytics = (options) => {
1388
+ return (options.client ?? _heyApiClient).put({
1389
+ url: '/api/feature-flags/automatic-analytics',
1390
+ ...options,
1391
+ headers: {
1392
+ 'Content-Type': 'application/json',
1393
+ ...options.headers
1394
+ }
1395
+ });
1396
+ };
1397
+ export const getFile = (options) => {
1398
+ return (options.client ?? _heyApiClient).get({
1399
+ security: [
1400
+ {
1401
+ scheme: 'bearer',
1402
+ type: 'http'
1403
+ }
1404
+ ],
1405
+ url: '/api/files/{file_path:.*}',
1406
+ ...options
1407
+ });
1408
+ };
1409
+ export const getAllGithubApps = (options) => {
1410
+ return (options?.client ?? _heyApiClient).get({
1411
+ security: [
1412
+ {
1413
+ scheme: 'bearer',
1414
+ type: 'http'
1415
+ }
1416
+ ],
1417
+ url: '/api/github/apps',
1418
+ ...options
1419
+ });
1420
+ };
1421
+ export const githubCallback = (options) => {
1422
+ return (options.client ?? _heyApiClient).get({
1423
+ security: [
1424
+ {
1425
+ scheme: 'bearer',
1426
+ type: 'http'
1427
+ }
1428
+ ],
1429
+ url: '/api/github/callback',
1430
+ ...options
1431
+ });
1432
+ };
1433
+ export const redirectToGithubInstall = (options) => {
1434
+ return (options?.client ?? _heyApiClient).get({
1435
+ security: [
1436
+ {
1437
+ scheme: 'bearer',
1438
+ type: 'http'
1439
+ }
1440
+ ],
1441
+ url: '/api/github/install',
1442
+ ...options
1443
+ });
1444
+ };
1445
+ export const getAllGithubInstallations = (options) => {
1446
+ return (options?.client ?? _heyApiClient).get({
1447
+ security: [
1448
+ {
1449
+ scheme: 'bearer',
1450
+ type: 'http'
1451
+ }
1452
+ ],
1453
+ url: '/api/github/installations',
1454
+ ...options
1455
+ });
1456
+ };
1457
+ export const deleteGithubInstallation = (options) => {
1458
+ return (options.client ?? _heyApiClient).delete({
1459
+ security: [
1460
+ {
1461
+ scheme: 'bearer',
1462
+ type: 'http'
1463
+ }
1464
+ ],
1465
+ url: '/api/github/installations/{installation_id}',
1466
+ ...options
1467
+ });
1468
+ };
1469
+ export const syncGithubInstallation = (options) => {
1470
+ return (options.client ?? _heyApiClient).post({
1471
+ security: [
1472
+ {
1473
+ scheme: 'bearer',
1474
+ type: 'http'
1475
+ }
1476
+ ],
1477
+ url: '/api/github/installations/{installation_id}/sync',
1478
+ ...options
1479
+ });
1480
+ };
1481
+ export const login = (options) => {
1482
+ return (options?.client ?? _heyApiClient).get({
1483
+ security: [
1484
+ {
1485
+ scheme: 'bearer',
1486
+ type: 'http'
1487
+ }
1488
+ ],
1489
+ url: '/api/github/login',
1490
+ ...options
1491
+ });
1492
+ };
1493
+ export const getAllGithubRepos = (options) => {
1494
+ return (options.client ?? _heyApiClient).get({
1495
+ security: [
1496
+ {
1497
+ scheme: 'bearer',
1498
+ type: 'http'
1499
+ }
1500
+ ],
1501
+ url: '/api/github/repos',
1502
+ ...options
1503
+ });
1504
+ };
1505
+ export const getGithubRepoByOwnerName = (options) => {
1506
+ return (options.client ?? _heyApiClient).get({
1507
+ security: [
1508
+ {
1509
+ scheme: 'bearer',
1510
+ type: 'http'
1511
+ }
1512
+ ],
1513
+ url: '/api/github/repos/{owner}/{name}',
1514
+ ...options
1515
+ });
1516
+ };
1517
+ export const getRepoBranches = (options) => {
1518
+ return (options.client ?? _heyApiClient).get({
1519
+ url: '/api/github/repos/{owner}/{name}/branches',
1520
+ ...options
1521
+ });
1522
+ };
1523
+ export const getGithubRepoPreset = (options) => {
1524
+ return (options.client ?? _heyApiClient).get({
1525
+ security: [
1526
+ {
1527
+ scheme: 'bearer',
1528
+ type: 'http'
1529
+ }
1530
+ ],
1531
+ url: '/api/github/repos/{owner}/{name}/preset',
1532
+ ...options
1533
+ });
1534
+ };
1535
+ export const getRepoSources = (options) => {
1536
+ return (options?.client ?? _heyApiClient).get({
1537
+ security: [
1538
+ {
1539
+ scheme: 'bearer',
1540
+ type: 'http'
1541
+ }
1542
+ ],
1543
+ url: '/api/github/sources',
1544
+ ...options
1545
+ });
1546
+ };
1547
+ export const listRoutes = (options) => {
1548
+ return (options?.client ?? _heyApiClient).get({
1549
+ security: [
1550
+ {
1551
+ scheme: 'bearer',
1552
+ type: 'http'
1553
+ }
1554
+ ],
1555
+ url: '/api/lb/routes',
1556
+ ...options
1557
+ });
1558
+ };
1559
+ export const createRoute = (options) => {
1560
+ return (options.client ?? _heyApiClient).post({
1561
+ security: [
1562
+ {
1563
+ scheme: 'bearer',
1564
+ type: 'http'
1565
+ }
1566
+ ],
1567
+ url: '/api/lb/routes',
1568
+ ...options,
1569
+ headers: {
1570
+ 'Content-Type': 'application/json',
1571
+ ...options.headers
1572
+ }
1573
+ });
1574
+ };
1575
+ export const deleteRoute = (options) => {
1576
+ return (options.client ?? _heyApiClient).delete({
1577
+ security: [
1578
+ {
1579
+ scheme: 'bearer',
1580
+ type: 'http'
1581
+ }
1582
+ ],
1583
+ url: '/api/lb/routes/{domain}',
1584
+ ...options
1585
+ });
1586
+ };
1587
+ export const getRoute = (options) => {
1588
+ return (options.client ?? _heyApiClient).get({
1589
+ security: [
1590
+ {
1591
+ scheme: 'bearer',
1592
+ type: 'http'
1593
+ }
1594
+ ],
1595
+ url: '/api/lb/routes/{domain}',
1596
+ ...options
1597
+ });
1598
+ };
1599
+ export const updateRoute = (options) => {
1600
+ return (options.client ?? _heyApiClient).put({
1601
+ security: [
1602
+ {
1603
+ scheme: 'bearer',
1604
+ type: 'http'
1605
+ }
1606
+ ],
1607
+ url: '/api/lb/routes/{domain}',
1608
+ ...options,
1609
+ headers: {
1610
+ 'Content-Type': 'application/json',
1611
+ ...options.headers
1612
+ }
1613
+ });
1614
+ };
1615
+ export const provisionLbCertificate = (options) => {
1616
+ return (options.client ?? _heyApiClient).post({
1617
+ security: [
1618
+ {
1619
+ scheme: 'bearer',
1620
+ type: 'http'
1621
+ }
1622
+ ],
1623
+ url: '/api/lb/routes/{domain}/provision',
1624
+ ...options
1625
+ });
1626
+ };
1627
+ export const renewCertificate = (options) => {
1628
+ return (options.client ?? _heyApiClient).post({
1629
+ security: [
1630
+ {
1631
+ scheme: 'bearer',
1632
+ type: 'http'
1633
+ }
1634
+ ],
1635
+ url: '/api/lb/routes/{domain}/renew',
1636
+ ...options
1637
+ });
1638
+ };
1639
+ export const githubAppCallback = (options) => {
1640
+ return (options.client ?? _heyApiClient).get({
1641
+ security: [
1642
+ {
1643
+ scheme: 'bearer',
1644
+ type: 'http'
1645
+ }
1646
+ ],
1647
+ url: '/api/login/github/app',
1648
+ ...options
1649
+ });
1650
+ };
1651
+ export const logout = (options) => {
1652
+ return (options?.client ?? _heyApiClient).post({
1653
+ url: '/api/logout',
1654
+ ...options
1655
+ });
1656
+ };
1657
+ /**
1658
+ * Get filtered logs
1659
+ */
1660
+ export const getLogs = (options) => {
1661
+ return (options.client ?? _heyApiClient).get({
1662
+ security: [
1663
+ {
1664
+ scheme: 'bearer',
1665
+ type: 'http'
1666
+ }
1667
+ ],
1668
+ url: '/api/logs',
1669
+ ...options
1670
+ });
1671
+ };
1672
+ /**
1673
+ * Get total number of errors today for a project
1674
+ */
1675
+ export const getTodayErrorsCount = (options) => {
1676
+ return (options.client ?? _heyApiClient).get({
1677
+ security: [
1678
+ {
1679
+ scheme: 'bearer',
1680
+ type: 'http'
1681
+ }
1682
+ ],
1683
+ url: '/api/logs/errors/today',
1684
+ ...options
1685
+ });
1686
+ };
1687
+ /**
1688
+ * Get a specific log by ID
1689
+ */
1690
+ export const getLogById = (options) => {
1691
+ return (options.client ?? _heyApiClient).get({
1692
+ security: [
1693
+ {
1694
+ scheme: 'bearer',
1695
+ type: 'http'
1696
+ }
1697
+ ],
1698
+ url: '/api/logs/{id}',
1699
+ ...options
1700
+ });
1701
+ };
1702
+ export const streamLogs = (options) => {
1703
+ return (options.client ?? _heyApiClient).get({
1704
+ security: [
1705
+ {
1706
+ scheme: 'bearer',
1707
+ type: 'http'
1708
+ }
1709
+ ],
1710
+ url: '/api/logs/{log_id}/stream',
1711
+ ...options
1712
+ });
1713
+ };
1714
+ /**
1715
+ * Delete notification preferences
1716
+ */
1717
+ export const deletePreferences = (options) => {
1718
+ return (options?.client ?? _heyApiClient).delete({
1719
+ url: '/api/notification-preferences',
1720
+ ...options
1721
+ });
1722
+ };
1723
+ /**
1724
+ * Get notification preferences
1725
+ */
1726
+ export const getPreferences = (options) => {
1727
+ return (options?.client ?? _heyApiClient).get({
1728
+ url: '/api/notification-preferences',
1729
+ ...options
1730
+ });
1731
+ };
1732
+ /**
1733
+ * Update notification preferences
1734
+ */
1735
+ export const updatePreferences = (options) => {
1736
+ return (options.client ?? _heyApiClient).put({
1737
+ url: '/api/notification-preferences',
1738
+ ...options,
1739
+ headers: {
1740
+ 'Content-Type': 'application/json',
1741
+ ...options.headers
1742
+ }
1743
+ });
1744
+ };
1745
+ /**
1746
+ * List all notification providers
1747
+ */
1748
+ export const listProviders = (options) => {
1749
+ return (options?.client ?? _heyApiClient).get({
1750
+ security: [
1751
+ {
1752
+ scheme: 'bearer',
1753
+ type: 'http'
1754
+ }
1755
+ ],
1756
+ url: '/api/notification-providers',
1757
+ ...options
1758
+ });
1759
+ };
1760
+ /**
1761
+ * Create a new notification provider
1762
+ */
1763
+ export const createProvider = (options) => {
1764
+ return (options.client ?? _heyApiClient).post({
1765
+ security: [
1766
+ {
1767
+ scheme: 'bearer',
1768
+ type: 'http'
1769
+ }
1770
+ ],
1771
+ url: '/api/notification-providers',
1772
+ ...options,
1773
+ headers: {
1774
+ 'Content-Type': 'application/json',
1775
+ ...options.headers
1776
+ }
1777
+ });
1778
+ };
1779
+ /**
1780
+ * Create a new Email notification provider
1781
+ */
1782
+ export const createEmailProvider = (options) => {
1783
+ return (options.client ?? _heyApiClient).post({
1784
+ security: [
1785
+ {
1786
+ scheme: 'bearer',
1787
+ type: 'http'
1788
+ }
1789
+ ],
1790
+ url: '/api/notification-providers/email',
1791
+ ...options,
1792
+ headers: {
1793
+ 'Content-Type': 'application/json',
1794
+ ...options.headers
1795
+ }
1796
+ });
1797
+ };
1798
+ /**
1799
+ * Update an Email notification provider
1800
+ */
1801
+ export const updateEmailProvider = (options) => {
1802
+ return (options.client ?? _heyApiClient).put({
1803
+ security: [
1804
+ {
1805
+ scheme: 'bearer',
1806
+ type: 'http'
1807
+ }
1808
+ ],
1809
+ url: '/api/notification-providers/email/{id}',
1810
+ ...options,
1811
+ headers: {
1812
+ 'Content-Type': 'application/json',
1813
+ ...options.headers
1814
+ }
1815
+ });
1816
+ };
1817
+ /**
1818
+ * Create a new Slack notification provider
1819
+ */
1820
+ export const createSlackProvider = (options) => {
1821
+ return (options.client ?? _heyApiClient).post({
1822
+ security: [
1823
+ {
1824
+ scheme: 'bearer',
1825
+ type: 'http'
1826
+ }
1827
+ ],
1828
+ url: '/api/notification-providers/slack',
1829
+ ...options,
1830
+ headers: {
1831
+ 'Content-Type': 'application/json',
1832
+ ...options.headers
1833
+ }
1834
+ });
1835
+ };
1836
+ /**
1837
+ * Update a Slack notification provider
1838
+ */
1839
+ export const updateSlackProvider = (options) => {
1840
+ return (options.client ?? _heyApiClient).put({
1841
+ security: [
1842
+ {
1843
+ scheme: 'bearer',
1844
+ type: 'http'
1845
+ }
1846
+ ],
1847
+ url: '/api/notification-providers/slack/{id}',
1848
+ ...options,
1849
+ headers: {
1850
+ 'Content-Type': 'application/json',
1851
+ ...options.headers
1852
+ }
1853
+ });
1854
+ };
1855
+ /**
1856
+ * Delete a notification provider
1857
+ */
1858
+ export const deleteProvider = (options) => {
1859
+ return (options.client ?? _heyApiClient).delete({
1860
+ security: [
1861
+ {
1862
+ scheme: 'bearer',
1863
+ type: 'http'
1864
+ }
1865
+ ],
1866
+ url: '/api/notification-providers/{id}',
1867
+ ...options
1868
+ });
1869
+ };
1870
+ /**
1871
+ * Get a single notification provider
1872
+ */
1873
+ export const getProvider = (options) => {
1874
+ return (options.client ?? _heyApiClient).get({
1875
+ security: [
1876
+ {
1877
+ scheme: 'bearer',
1878
+ type: 'http'
1879
+ }
1880
+ ],
1881
+ url: '/api/notification-providers/{id}',
1882
+ ...options
1883
+ });
1884
+ };
1885
+ /**
1886
+ * Update a notification provider
1887
+ */
1888
+ export const updateProvider = (options) => {
1889
+ return (options.client ?? _heyApiClient).put({
1890
+ security: [
1891
+ {
1892
+ scheme: 'bearer',
1893
+ type: 'http'
1894
+ }
1895
+ ],
1896
+ url: '/api/notification-providers/{id}',
1897
+ ...options,
1898
+ headers: {
1899
+ 'Content-Type': 'application/json',
1900
+ ...options.headers
1901
+ }
1902
+ });
1903
+ };
1904
+ /**
1905
+ * Test a notification provider
1906
+ */
1907
+ export const testProvider = (options) => {
1908
+ return (options.client ?? _heyApiClient).post({
1909
+ security: [
1910
+ {
1911
+ scheme: 'bearer',
1912
+ type: 'http'
1913
+ }
1914
+ ],
1915
+ url: '/api/notification-providers/{id}/test',
1916
+ ...options
1917
+ });
1918
+ };
1919
+ export const listPaymentProviders = (options) => {
1920
+ return (options?.client ?? _heyApiClient).get({
1921
+ url: '/api/payments/providers',
1922
+ ...options
1923
+ });
1924
+ };
1925
+ export const createPaymentProvider = (options) => {
1926
+ return (options.client ?? _heyApiClient).post({
1927
+ url: '/api/payments/providers',
1928
+ ...options,
1929
+ headers: {
1930
+ 'Content-Type': 'application/json',
1931
+ ...options.headers
1932
+ }
1933
+ });
1934
+ };
1935
+ export const deletePaymentProvider = (options) => {
1936
+ return (options.client ?? _heyApiClient).delete({
1937
+ url: '/api/payments/providers/{id}',
1938
+ ...options
1939
+ });
1940
+ };
1941
+ export const getPaymentProvider = (options) => {
1942
+ return (options.client ?? _heyApiClient).get({
1943
+ url: '/api/payments/providers/{id}',
1944
+ ...options
1945
+ });
1946
+ };
1947
+ export const updatePaymentProvider = (options) => {
1948
+ return (options.client ?? _heyApiClient).put({
1949
+ url: '/api/payments/providers/{id}',
1950
+ ...options,
1951
+ headers: {
1952
+ 'Content-Type': 'application/json',
1953
+ ...options.headers
1954
+ }
1955
+ });
1956
+ };
1957
+ export const setDefaultPaymentProvider = (options) => {
1958
+ return (options.client ?? _heyApiClient).post({
1959
+ url: '/api/payments/providers/{id}/default',
1960
+ ...options
1961
+ });
1962
+ };
1963
+ export const testPaymentProvider = (options) => {
1964
+ return (options.client ?? _heyApiClient).post({
1965
+ url: '/api/payments/providers/{id}/test',
1966
+ ...options
1967
+ });
1968
+ };
1969
+ /**
1970
+ * Get total revenue across all projects
1971
+ */
1972
+ export const getTotalRevenue = (options) => {
1973
+ return (options?.client ?? _heyApiClient).get({
1974
+ url: '/api/payments/revenue/total',
1975
+ ...options
1976
+ });
1977
+ };
1978
+ /**
1979
+ * Get a list of all projects
1980
+ */
1981
+ export const getProjects = (options) => {
1982
+ return (options?.client ?? _heyApiClient).get({
1983
+ security: [
1984
+ {
1985
+ scheme: 'bearer',
1986
+ type: 'http'
1987
+ }
1988
+ ],
1989
+ url: '/api/projects',
1990
+ ...options
1991
+ });
1992
+ };
1993
+ /**
1994
+ * Create a new project
1995
+ */
1996
+ export const createProject = (options) => {
1997
+ return (options.client ?? _heyApiClient).post({
1998
+ security: [
1999
+ {
2000
+ scheme: 'bearer',
2001
+ type: 'http'
2002
+ }
2003
+ ],
2004
+ url: '/api/projects',
2005
+ ...options,
2006
+ headers: {
2007
+ 'Content-Type': 'application/json',
2008
+ ...options.headers
2009
+ }
2010
+ });
2011
+ };
2012
+ /**
2013
+ * Get details of a specific project by slug
2014
+ */
2015
+ export const getProjectBySlug = (options) => {
2016
+ return (options.client ?? _heyApiClient).get({
2017
+ security: [
2018
+ {
2019
+ scheme: 'bearer',
2020
+ type: 'http'
2021
+ }
2022
+ ],
2023
+ url: '/api/projects/by-slug/{slug}',
2024
+ ...options
2025
+ });
2026
+ };
2027
+ /**
2028
+ * Create a new project from a template
2029
+ */
2030
+ export const createProjectFromTemplate = (options) => {
2031
+ return (options.client ?? _heyApiClient).post({
2032
+ url: '/api/projects/from-template',
2033
+ ...options,
2034
+ headers: {
2035
+ 'Content-Type': 'application/json',
2036
+ ...options.headers
2037
+ }
2038
+ });
2039
+ };
2040
+ /**
2041
+ * Get total number of projects
2042
+ */
2043
+ export const getProjectStats = (options) => {
2044
+ return (options?.client ?? _heyApiClient).get({
2045
+ security: [
2046
+ {
2047
+ scheme: 'bearer',
2048
+ type: 'http'
2049
+ }
2050
+ ],
2051
+ url: '/api/projects/stats',
2052
+ ...options
2053
+ });
2054
+ };
2055
+ /**
2056
+ * Get total visitor statistics across all projects
2057
+ */
2058
+ export const getTotalVisitorStats = (options) => {
2059
+ return (options?.client ?? _heyApiClient).get({
2060
+ security: [
2061
+ {
2062
+ scheme: 'bearer',
2063
+ type: 'http'
2064
+ }
2065
+ ],
2066
+ url: '/api/projects/total-visitors',
2067
+ ...options
2068
+ });
2069
+ };
2070
+ export const deleteProject = (options) => {
2071
+ return (options.client ?? _heyApiClient).delete({
2072
+ security: [
2073
+ {
2074
+ scheme: 'bearer',
2075
+ type: 'http'
2076
+ }
2077
+ ],
2078
+ url: '/api/projects/{id}',
2079
+ ...options
2080
+ });
2081
+ };
2082
+ /**
2083
+ * Get details of a specific project
2084
+ */
2085
+ export const getProject = (options) => {
2086
+ return (options.client ?? _heyApiClient).get({
2087
+ security: [
2088
+ {
2089
+ scheme: 'bearer',
2090
+ type: 'http'
2091
+ }
2092
+ ],
2093
+ url: '/api/projects/{id}',
2094
+ ...options
2095
+ });
2096
+ };
2097
+ export const updateProject = (options) => {
2098
+ return (options.client ?? _heyApiClient).put({
2099
+ security: [
2100
+ {
2101
+ scheme: 'bearer',
2102
+ type: 'http'
2103
+ }
2104
+ ],
2105
+ url: '/api/projects/{id}',
2106
+ ...options,
2107
+ headers: {
2108
+ 'Content-Type': 'application/json',
2109
+ ...options.headers
2110
+ }
2111
+ });
2112
+ };
2113
+ export const getProjectDeployments = (options) => {
2114
+ return (options.client ?? _heyApiClient).get({
2115
+ security: [
2116
+ {
2117
+ scheme: 'bearer',
2118
+ type: 'http'
2119
+ }
2120
+ ],
2121
+ url: '/api/projects/{id}/deployments',
2122
+ ...options
2123
+ });
2124
+ };
2125
+ /**
2126
+ * Get the last deployment for a specific project
2127
+ */
2128
+ export const getLastDeployment = (options) => {
2129
+ return (options.client ?? _heyApiClient).get({
2130
+ security: [
2131
+ {
2132
+ scheme: 'bearer',
2133
+ type: 'http'
2134
+ }
2135
+ ],
2136
+ url: '/api/projects/{id}/last-deployment',
2137
+ ...options
2138
+ });
2139
+ };
2140
+ export const getProjectPipelines = (options) => {
2141
+ return (options.client ?? _heyApiClient).get({
2142
+ security: [
2143
+ {
2144
+ scheme: 'bearer',
2145
+ type: 'http'
2146
+ }
2147
+ ],
2148
+ url: '/api/projects/{id}/pipelines',
2149
+ ...options
2150
+ });
2151
+ };
2152
+ export const getPipelineLogs = (options) => {
2153
+ return (options.client ?? _heyApiClient).get({
2154
+ security: [
2155
+ {
2156
+ scheme: 'bearer',
2157
+ type: 'http'
2158
+ }
2159
+ ],
2160
+ url: '/api/projects/{id}/pipelines/{pid}/logs',
2161
+ ...options
2162
+ });
2163
+ };
2164
+ /**
2165
+ * Trigger pipeline for a specific project
2166
+ */
2167
+ export const triggerProjectPipeline = (options) => {
2168
+ return (options.client ?? _heyApiClient).post({
2169
+ security: [
2170
+ {
2171
+ scheme: 'bearer',
2172
+ type: 'http'
2173
+ }
2174
+ ],
2175
+ url: '/api/projects/{id}/trigger-pipeline',
2176
+ ...options,
2177
+ headers: {
2178
+ 'Content-Type': 'application/json',
2179
+ ...options.headers
2180
+ }
2181
+ });
2182
+ };
2183
+ /**
2184
+ * Update automatic deployment setting for a project
2185
+ */
2186
+ export const updateAutomaticDeploy = (options) => {
2187
+ return (options.client ?? _heyApiClient).post({
2188
+ security: [
2189
+ {
2190
+ scheme: 'bearer',
2191
+ type: 'http'
2192
+ }
2193
+ ],
2194
+ url: '/api/projects/{project_id_or_slug}/automatic-deploy',
2195
+ ...options,
2196
+ headers: {
2197
+ 'Content-Type': 'application/json',
2198
+ ...options.headers
2199
+ }
2200
+ });
2201
+ };
2202
+ /**
2203
+ * Update deployment settings for a project
2204
+ */
2205
+ export const updateDeploymentSettings = (options) => {
2206
+ return (options.client ?? _heyApiClient).put({
2207
+ security: [
2208
+ {
2209
+ scheme: 'bearer',
2210
+ type: 'http'
2211
+ }
2212
+ ],
2213
+ url: '/api/projects/{project_id_or_slug}/deployment-settings',
2214
+ ...options,
2215
+ headers: {
2216
+ 'Content-Type': 'application/json',
2217
+ ...options.headers
2218
+ }
2219
+ });
2220
+ };
2221
+ export const manualDockerDeployment = (options) => {
2222
+ return (options.client ?? _heyApiClient).post({
2223
+ security: [
2224
+ {
2225
+ scheme: 'bearer',
2226
+ type: 'http'
2227
+ }
2228
+ ],
2229
+ url: '/api/projects/{project_id_or_slug}/deployments/manual/docker',
2230
+ ...options
2231
+ });
2232
+ };
2233
+ export const manualStaticDeployment = (options) => {
2234
+ return (options.client ?? _heyApiClient).post({
2235
+ security: [
2236
+ {
2237
+ scheme: 'bearer',
2238
+ type: 'http'
2239
+ }
2240
+ ],
2241
+ url: '/api/projects/{project_id_or_slug}/deployments/manual/static',
2242
+ ...options
2243
+ });
2244
+ };
2245
+ /**
2246
+ * Get a specific deployment by ID for a project (identified by ID or slug)
2247
+ */
2248
+ export const getDeployment = (options) => {
2249
+ return (options.client ?? _heyApiClient).get({
2250
+ security: [
2251
+ {
2252
+ scheme: 'bearer',
2253
+ type: 'http'
2254
+ }
2255
+ ],
2256
+ url: '/api/projects/{project_id_or_slug}/deployments/{deployment_id}',
2257
+ ...options
2258
+ });
2259
+ };
2260
+ /**
2261
+ * Pause a deployment
2262
+ */
2263
+ export const pauseDeployment = (options) => {
2264
+ return (options.client ?? _heyApiClient).post({
2265
+ security: [
2266
+ {
2267
+ scheme: 'bearer',
2268
+ type: 'http'
2269
+ }
2270
+ ],
2271
+ url: '/api/projects/{project_id_or_slug}/deployments/{deployment_id}/pause',
2272
+ ...options
2273
+ });
2274
+ };
2275
+ /**
2276
+ * Resume a deployment
2277
+ */
2278
+ export const resumeDeployment = (options) => {
2279
+ return (options.client ?? _heyApiClient).post({
2280
+ security: [
2281
+ {
2282
+ scheme: 'bearer',
2283
+ type: 'http'
2284
+ }
2285
+ ],
2286
+ url: '/api/projects/{project_id_or_slug}/deployments/{deployment_id}/resume',
2287
+ ...options
2288
+ });
2289
+ };
2290
+ /**
2291
+ * Get all stages for a specific deployment
2292
+ */
2293
+ export const getDeploymentStages = (options) => {
2294
+ return (options.client ?? _heyApiClient).get({
2295
+ security: [
2296
+ {
2297
+ scheme: 'bearer',
2298
+ type: 'http'
2299
+ }
2300
+ ],
2301
+ url: '/api/projects/{project_id_or_slug}/deployments/{deployment_id}/stages',
2302
+ ...options
2303
+ });
2304
+ };
2305
+ /**
2306
+ * Get logs for a specific deployment stage
2307
+ */
2308
+ export const getDeploymentStageLogs = (options) => {
2309
+ return (options.client ?? _heyApiClient).get({
2310
+ security: [
2311
+ {
2312
+ scheme: 'bearer',
2313
+ type: 'http'
2314
+ }
2315
+ ],
2316
+ url: '/api/projects/{project_id_or_slug}/deployments/{deployment_id}/stages/{stage_id}/logs',
2317
+ ...options
2318
+ });
2319
+ };
2320
+ export const tailDeploymentStageLogs = (options) => {
2321
+ return (options.client ?? _heyApiClient).get({
2322
+ security: [
2323
+ {
2324
+ scheme: 'bearer',
2325
+ type: 'http'
2326
+ }
2327
+ ],
2328
+ url: '/api/projects/{project_id_or_slug}/deployments/{deployment_id}/stages/{stage_id}/logs/tail',
2329
+ ...options
2330
+ });
2331
+ };
2332
+ /**
2333
+ * Teardown a specific deployment
2334
+ */
2335
+ export const teardownDeployment = (options) => {
2336
+ return (options.client ?? _heyApiClient).delete({
2337
+ security: [
2338
+ {
2339
+ scheme: 'bearer',
2340
+ type: 'http'
2341
+ }
2342
+ ],
2343
+ url: '/api/projects/{project_id_or_slug}/deployments/{deployment_id}/teardown',
2344
+ ...options
2345
+ });
2346
+ };
2347
+ /**
2348
+ * Get all custom domains for a project
2349
+ */
2350
+ export const getCustomDomains = (options) => {
2351
+ return (options.client ?? _heyApiClient).get({
2352
+ security: [
2353
+ {
2354
+ scheme: 'bearer',
2355
+ type: 'http'
2356
+ }
2357
+ ],
2358
+ url: '/api/projects/{project_id_or_slug}/domains',
2359
+ ...options
2360
+ });
2361
+ };
2362
+ /**
2363
+ * Create a new custom domain
2364
+ */
2365
+ export const createCustomDomain = (options) => {
2366
+ return (options.client ?? _heyApiClient).post({
2367
+ security: [
2368
+ {
2369
+ scheme: 'bearer',
2370
+ type: 'http'
2371
+ }
2372
+ ],
2373
+ url: '/api/projects/{project_id_or_slug}/domains',
2374
+ ...options,
2375
+ headers: {
2376
+ 'Content-Type': 'application/json',
2377
+ ...options.headers
2378
+ }
2379
+ });
2380
+ };
2381
+ /**
2382
+ * Delete a custom domain
2383
+ */
2384
+ export const deleteCustomDomain = (options) => {
2385
+ return (options.client ?? _heyApiClient).delete({
2386
+ security: [
2387
+ {
2388
+ scheme: 'bearer',
2389
+ type: 'http'
2390
+ }
2391
+ ],
2392
+ url: '/api/projects/{project_id_or_slug}/domains/{domain_id}',
2393
+ ...options
2394
+ });
2395
+ };
2396
+ /**
2397
+ * Update a custom domain for a project
2398
+ */
2399
+ export const updateCustomDomain = (options) => {
2400
+ return (options.client ?? _heyApiClient).put({
2401
+ security: [
2402
+ {
2403
+ scheme: 'bearer',
2404
+ type: 'http'
2405
+ }
2406
+ ],
2407
+ url: '/api/projects/{project_id_or_slug}/domains/{domain_id}',
2408
+ ...options,
2409
+ headers: {
2410
+ 'Content-Type': 'application/json',
2411
+ ...options.headers
2412
+ }
2413
+ });
2414
+ };
2415
+ /**
2416
+ * Check custom domain configuration
2417
+ */
2418
+ export const checkCustomDomainConfiguration = (options) => {
2419
+ return (options.client ?? _heyApiClient).post({
2420
+ security: [
2421
+ {
2422
+ scheme: 'bearer',
2423
+ type: 'http'
2424
+ }
2425
+ ],
2426
+ url: '/api/projects/{project_id_or_slug}/domains/{domain_id}/check',
2427
+ ...options,
2428
+ headers: {
2429
+ 'Content-Type': 'application/json',
2430
+ ...options.headers
2431
+ }
2432
+ });
2433
+ };
2434
+ /**
2435
+ * Provision certificate for a custom domain
2436
+ */
2437
+ export const provisionCertificate = (options) => {
2438
+ return (options.client ?? _heyApiClient).post({
2439
+ security: [
2440
+ {
2441
+ scheme: 'bearer',
2442
+ type: 'http'
2443
+ }
2444
+ ],
2445
+ url: '/api/projects/{project_id_or_slug}/domains/{domain_id}/provision-certificate',
2446
+ ...options
2447
+ });
2448
+ };
2449
+ /**
2450
+ * Get environment variables for a project, optionally filtered by environment
2451
+ */
2452
+ export const getEnvironmentVariables = (options) => {
2453
+ return (options.client ?? _heyApiClient).get({
2454
+ security: [
2455
+ {
2456
+ scheme: 'bearer',
2457
+ type: 'http'
2458
+ }
2459
+ ],
2460
+ url: '/api/projects/{project_id_or_slug}/env-vars',
2461
+ ...options
2462
+ });
2463
+ };
2464
+ /**
2465
+ * Create a new environment variable
2466
+ */
2467
+ export const createEnvironmentVariable = (options) => {
2468
+ return (options.client ?? _heyApiClient).post({
2469
+ security: [
2470
+ {
2471
+ scheme: 'bearer',
2472
+ type: 'http'
2473
+ }
2474
+ ],
2475
+ url: '/api/projects/{project_id_or_slug}/env-vars',
2476
+ ...options,
2477
+ headers: {
2478
+ 'Content-Type': 'application/json',
2479
+ ...options.headers
2480
+ }
2481
+ });
2482
+ };
2483
+ /**
2484
+ * Get environment variable value by key
2485
+ */
2486
+ export const getEnvironmentVariableValue = (options) => {
2487
+ return (options.client ?? _heyApiClient).get({
2488
+ security: [
2489
+ {
2490
+ scheme: 'bearer',
2491
+ type: 'http'
2492
+ }
2493
+ ],
2494
+ url: '/api/projects/{project_id_or_slug}/env-vars/{key}/value',
2495
+ ...options
2496
+ });
2497
+ };
2498
+ /**
2499
+ * Delete an environment variable
2500
+ */
2501
+ export const deleteEnvironmentVariable = (options) => {
2502
+ return (options.client ?? _heyApiClient).delete({
2503
+ security: [
2504
+ {
2505
+ scheme: 'bearer',
2506
+ type: 'http'
2507
+ }
2508
+ ],
2509
+ url: '/api/projects/{project_id_or_slug}/env-vars/{var_id}',
2510
+ ...options
2511
+ });
2512
+ };
2513
+ /**
2514
+ * Update an environment variable
2515
+ */
2516
+ export const updateEnvironmentVariable = (options) => {
2517
+ return (options.client ?? _heyApiClient).put({
2518
+ security: [
2519
+ {
2520
+ scheme: 'bearer',
2521
+ type: 'http'
2522
+ }
2523
+ ],
2524
+ url: '/api/projects/{project_id_or_slug}/env-vars/{var_id}',
2525
+ ...options,
2526
+ headers: {
2527
+ 'Content-Type': 'application/json',
2528
+ ...options.headers
2529
+ }
2530
+ });
2531
+ };
2532
+ /**
2533
+ * Get all environments for a project
2534
+ */
2535
+ export const getEnvironments = (options) => {
2536
+ return (options.client ?? _heyApiClient).get({
2537
+ security: [
2538
+ {
2539
+ scheme: 'bearer',
2540
+ type: 'http'
2541
+ }
2542
+ ],
2543
+ url: '/api/projects/{project_id_or_slug}/environments',
2544
+ ...options
2545
+ });
2546
+ };
2547
+ /**
2548
+ * Create a new environment for a project
2549
+ */
2550
+ export const createEnvironment = (options) => {
2551
+ return (options.client ?? _heyApiClient).post({
2552
+ security: [
2553
+ {
2554
+ scheme: 'bearer',
2555
+ type: 'http'
2556
+ }
2557
+ ],
2558
+ url: '/api/projects/{project_id_or_slug}/environments',
2559
+ ...options,
2560
+ headers: {
2561
+ 'Content-Type': 'application/json',
2562
+ ...options.headers
2563
+ }
2564
+ });
2565
+ };
2566
+ /**
2567
+ * Get a specific environment by ID or slug
2568
+ */
2569
+ export const getEnvironment = (options) => {
2570
+ return (options.client ?? _heyApiClient).get({
2571
+ security: [
2572
+ {
2573
+ scheme: 'bearer',
2574
+ type: 'http'
2575
+ }
2576
+ ],
2577
+ url: '/api/projects/{project_id_or_slug}/environments/{env_id_or_slug}',
2578
+ ...options
2579
+ });
2580
+ };
2581
+ /**
2582
+ * Get all environment domains for a specific environment
2583
+ */
2584
+ export const getEnvironmentDomains = (options) => {
2585
+ return (options.client ?? _heyApiClient).get({
2586
+ security: [
2587
+ {
2588
+ scheme: 'bearer',
2589
+ type: 'http'
2590
+ }
2591
+ ],
2592
+ url: '/api/projects/{project_id_or_slug}/environments/{env_id_or_slug}/domains',
2593
+ ...options
2594
+ });
2595
+ };
2596
+ /**
2597
+ * Add a new environment domain
2598
+ */
2599
+ export const addEnvironmentDomain = (options) => {
2600
+ return (options.client ?? _heyApiClient).post({
2601
+ security: [
2602
+ {
2603
+ scheme: 'bearer',
2604
+ type: 'http'
2605
+ }
2606
+ ],
2607
+ url: '/api/projects/{project_id_or_slug}/environments/{env_id_or_slug}/domains',
2608
+ ...options,
2609
+ headers: {
2610
+ 'Content-Type': 'application/json',
2611
+ ...options.headers
2612
+ }
2613
+ });
2614
+ };
2615
+ /**
2616
+ * Delete an environment domain
2617
+ */
2618
+ export const deleteEnvironmentDomain = (options) => {
2619
+ return (options.client ?? _heyApiClient).delete({
2620
+ security: [
2621
+ {
2622
+ scheme: 'bearer',
2623
+ type: 'http'
2624
+ }
2625
+ ],
2626
+ url: '/api/projects/{project_id_or_slug}/environments/{env_id_or_slug}/domains/{domain_id}',
2627
+ ...options
2628
+ });
2629
+ };
2630
+ /**
2631
+ * Update environment settings
2632
+ */
2633
+ export const updateEnvironmentSettings = (options) => {
2634
+ return (options.client ?? _heyApiClient).put({
2635
+ security: [
2636
+ {
2637
+ scheme: 'bearer',
2638
+ type: 'http'
2639
+ }
2640
+ ],
2641
+ url: '/api/projects/{project_id_or_slug}/environments/{env_id_or_slug}/settings',
2642
+ ...options,
2643
+ headers: {
2644
+ 'Content-Type': 'application/json',
2645
+ ...options.headers
2646
+ }
2647
+ });
2648
+ };
2649
+ /**
2650
+ * Teardown an environment and all its active deployments
2651
+ */
2652
+ export const teardownEnvironment = (options) => {
2653
+ return (options.client ?? _heyApiClient).delete({
2654
+ security: [
2655
+ {
2656
+ scheme: 'bearer',
2657
+ type: 'http'
2658
+ }
2659
+ ],
2660
+ url: '/api/projects/{project_id_or_slug}/environments/{env_id_or_slug}/teardown',
2661
+ ...options
2662
+ });
2663
+ };
2664
+ export const getContainerLogs = (options) => {
2665
+ return (options.client ?? _heyApiClient).get({
2666
+ security: [
2667
+ {
2668
+ scheme: 'bearer',
2669
+ type: 'http'
2670
+ }
2671
+ ],
2672
+ url: '/api/projects/{project_id_or_slug}/environments/{environment_id_or_slug}/container-logs',
2673
+ ...options
2674
+ });
2675
+ };
2676
+ /**
2677
+ * Get project error statistics
2678
+ */
2679
+ export const getProjectErrorStats = (options) => {
2680
+ return (options.client ?? _heyApiClient).get({
2681
+ security: [
2682
+ {
2683
+ scheme: 'bearer',
2684
+ type: 'http'
2685
+ }
2686
+ ],
2687
+ url: '/api/projects/{project_id_or_slug}/error-stats',
2688
+ ...options
2689
+ });
2690
+ };
2691
+ /**
2692
+ * Update GitHub repository information for a project
2693
+ */
2694
+ export const updateGithubRepo = (options) => {
2695
+ return (options.client ?? _heyApiClient).post({
2696
+ security: [
2697
+ {
2698
+ scheme: 'bearer',
2699
+ type: 'http'
2700
+ }
2701
+ ],
2702
+ url: '/api/projects/{project_id_or_slug}/github',
2703
+ ...options,
2704
+ headers: {
2705
+ 'Content-Type': 'application/json',
2706
+ ...options.headers
2707
+ }
2708
+ });
2709
+ };
2710
+ /**
2711
+ * Get hourly visitor statistics
2712
+ */
2713
+ export const getHourlyVisitorStats = (options) => {
2714
+ return (options.client ?? _heyApiClient).get({
2715
+ security: [
2716
+ {
2717
+ scheme: 'bearer',
2718
+ type: 'http'
2719
+ }
2720
+ ],
2721
+ url: '/api/projects/{project_id_or_slug}/hourly-visitor-stats',
2722
+ ...options
2723
+ });
2724
+ };
2725
+ /**
2726
+ * Get project revenue statistics
2727
+ */
2728
+ export const getProjectRevenueStats = (options) => {
2729
+ return (options.client ?? _heyApiClient).get({
2730
+ security: [
2731
+ {
2732
+ scheme: 'bearer',
2733
+ type: 'http'
2734
+ }
2735
+ ],
2736
+ url: '/api/projects/{project_id_or_slug}/revenue-stats',
2737
+ ...options
2738
+ });
2739
+ };
2740
+ /**
2741
+ * Update project settings
2742
+ */
2743
+ export const updateProjectSettings = (options) => {
2744
+ return (options.client ?? _heyApiClient).post({
2745
+ security: [
2746
+ {
2747
+ scheme: 'bearer',
2748
+ type: 'http'
2749
+ }
2750
+ ],
2751
+ url: '/api/projects/{project_id_or_slug}/settings',
2752
+ ...options,
2753
+ headers: {
2754
+ 'Content-Type': 'application/json',
2755
+ ...options.headers
2756
+ }
2757
+ });
2758
+ };
2759
+ /**
2760
+ * Get project visitor statistics
2761
+ */
2762
+ export const getProjectVisitorStats = (options) => {
2763
+ return (options.client ?? _heyApiClient).get({
2764
+ security: [
2765
+ {
2766
+ scheme: 'bearer',
2767
+ type: 'http'
2768
+ }
2769
+ ],
2770
+ url: '/api/projects/{project_id_or_slug}/visitor-stats',
2771
+ ...options
2772
+ });
2773
+ };
2774
+ export const rollbackToDeployment = (options) => {
2775
+ return (options.client ?? _heyApiClient).post({
2776
+ security: [
2777
+ {
2778
+ scheme: 'bearer',
2779
+ type: 'http'
2780
+ }
2781
+ ],
2782
+ url: '/api/projects/{project_id}/deployments/{deployment_id}/rollback',
2783
+ ...options
2784
+ });
2785
+ };
2786
+ export const setEnvironmentMode = (options) => {
2787
+ return (options.client ?? _heyApiClient).post({
2788
+ url: '/api/projects/{project_id}/environment/{environment_id}/payment-live-mode',
2789
+ ...options,
2790
+ headers: {
2791
+ 'Content-Type': 'application/json',
2792
+ ...options.headers
2793
+ }
2794
+ });
2795
+ };
2796
+ export const getEnvironmentCrons = (options) => {
2797
+ return (options.client ?? _heyApiClient).get({
2798
+ security: [
2799
+ {
2800
+ scheme: 'bearer',
2801
+ type: 'http'
2802
+ }
2803
+ ],
2804
+ url: '/api/projects/{project_id}/environments/{env_id}/crons',
2805
+ ...options
2806
+ });
2807
+ };
2808
+ export const getCronById = (options) => {
2809
+ return (options.client ?? _heyApiClient).get({
2810
+ security: [
2811
+ {
2812
+ scheme: 'bearer',
2813
+ type: 'http'
2814
+ }
2815
+ ],
2816
+ url: '/api/projects/{project_id}/environments/{env_id}/crons/{cron_id}',
2817
+ ...options
2818
+ });
2819
+ };
2820
+ export const getCronExecutions = (options) => {
2821
+ return (options.client ?? _heyApiClient).get({
2822
+ security: [
2823
+ {
2824
+ scheme: 'bearer',
2825
+ type: 'http'
2826
+ }
2827
+ ],
2828
+ url: '/api/projects/{project_id}/environments/{env_id}/crons/{cron_id}/executions',
2829
+ ...options
2830
+ });
2831
+ };
2832
+ /**
2833
+ * Ingest OpenTelemetry logs
2834
+ */
2835
+ export const ingestLogs = (options) => {
2836
+ return (options.client ?? _heyApiClient).post({
2837
+ security: [
2838
+ {
2839
+ scheme: 'bearer',
2840
+ type: 'http'
2841
+ }
2842
+ ],
2843
+ url: '/api/projects/{project_id}/environments/{environment_id}/deployments/{deployment_id}/opentelemetry/logs',
2844
+ ...options
2845
+ });
2846
+ };
2847
+ /**
2848
+ * Ingest OpenTelemetry traces
2849
+ */
2850
+ export const ingestTraces = (options) => {
2851
+ return (options.client ?? _heyApiClient).post({
2852
+ security: [
2853
+ {
2854
+ scheme: 'bearer',
2855
+ type: 'http'
2856
+ }
2857
+ ],
2858
+ url: '/api/projects/{project_id}/environments/{environment_id}/deployments/{deployment_id}/opentelemetry/traces',
2859
+ ...options
2860
+ });
2861
+ };
2862
+ /**
2863
+ * Get project favicon
2864
+ */
2865
+ export const getProjectFavicon = (options) => {
2866
+ return (options.client ?? _heyApiClient).get({
2867
+ security: [
2868
+ {
2869
+ scheme: 'bearer',
2870
+ type: 'http'
2871
+ }
2872
+ ],
2873
+ url: '/api/projects/{project_id}/favicon',
2874
+ ...options
2875
+ });
2876
+ };
2877
+ /**
2878
+ * List all funnels for a project
2879
+ */
2880
+ export const listFunnels = (options) => {
2881
+ return (options.client ?? _heyApiClient).get({
2882
+ security: [
2883
+ {
2884
+ scheme: 'bearer',
2885
+ type: 'http'
2886
+ }
2887
+ ],
2888
+ url: '/api/projects/{project_id}/funnels',
2889
+ ...options
2890
+ });
2891
+ };
2892
+ /**
2893
+ * Create a new funnel
2894
+ */
2895
+ export const createFunnel = (options) => {
2896
+ return (options.client ?? _heyApiClient).post({
2897
+ security: [
2898
+ {
2899
+ scheme: 'bearer',
2900
+ type: 'http'
2901
+ }
2902
+ ],
2903
+ url: '/api/projects/{project_id}/funnels',
2904
+ ...options,
2905
+ headers: {
2906
+ 'Content-Type': 'application/json',
2907
+ ...options.headers
2908
+ }
2909
+ });
2910
+ };
2911
+ /**
2912
+ * Delete a funnel
2913
+ */
2914
+ export const deleteFunnel = (options) => {
2915
+ return (options.client ?? _heyApiClient).delete({
2916
+ security: [
2917
+ {
2918
+ scheme: 'bearer',
2919
+ type: 'http'
2920
+ }
2921
+ ],
2922
+ url: '/api/projects/{project_id}/funnels/{funnel_id}',
2923
+ ...options
2924
+ });
2925
+ };
2926
+ /**
2927
+ * Update a funnel
2928
+ */
2929
+ export const updateFunnel = (options) => {
2930
+ return (options.client ?? _heyApiClient).put({
2931
+ security: [
2932
+ {
2933
+ scheme: 'bearer',
2934
+ type: 'http'
2935
+ }
2936
+ ],
2937
+ url: '/api/projects/{project_id}/funnels/{funnel_id}',
2938
+ ...options,
2939
+ headers: {
2940
+ 'Content-Type': 'application/json',
2941
+ ...options.headers
2942
+ }
2943
+ });
2944
+ };
2945
+ /**
2946
+ * Get funnel metrics
2947
+ */
2948
+ export const getFunnelMetrics = (options) => {
2949
+ return (options.client ?? _heyApiClient).get({
2950
+ security: [
2951
+ {
2952
+ scheme: 'bearer',
2953
+ type: 'http'
2954
+ }
2955
+ ],
2956
+ url: '/api/projects/{project_id}/funnels/{funnel_id}/metrics',
2957
+ ...options
2958
+ });
2959
+ };
2960
+ /**
2961
+ * Get logs matching query parameters
2962
+ */
2963
+ export const getOpentelemetryLogs = (options) => {
2964
+ return (options.client ?? _heyApiClient).get({
2965
+ security: [
2966
+ {
2967
+ scheme: 'bearer',
2968
+ type: 'http'
2969
+ }
2970
+ ],
2971
+ url: '/api/projects/{project_id}/opentelemetry/logs',
2972
+ ...options
2973
+ });
2974
+ };
2975
+ /**
2976
+ * Get traces matching query parameters
2977
+ */
2978
+ export const getOpentelemetryTraces = (options) => {
2979
+ return (options.client ?? _heyApiClient).get({
2980
+ security: [
2981
+ {
2982
+ scheme: 'bearer',
2983
+ type: 'http'
2984
+ }
2985
+ ],
2986
+ url: '/api/projects/{project_id}/opentelemetry/traces',
2987
+ ...options
2988
+ });
2989
+ };
2990
+ /**
2991
+ * Get trace duration percentiles
2992
+ */
2993
+ export const getTracePercentiles = (options) => {
2994
+ return (options.client ?? _heyApiClient).get({
2995
+ security: [
2996
+ {
2997
+ scheme: 'bearer',
2998
+ type: 'http'
2999
+ }
3000
+ ],
3001
+ url: '/api/projects/{project_id}/opentelemetry/traces/percentiles',
3002
+ ...options
3003
+ });
3004
+ };
3005
+ /**
3006
+ * Get detailed trace information including all spans
3007
+ */
3008
+ export const getTraceDetails = (options) => {
3009
+ return (options.client ?? _heyApiClient).get({
3010
+ security: [
3011
+ {
3012
+ scheme: 'bearer',
3013
+ type: 'http'
3014
+ }
3015
+ ],
3016
+ url: '/api/projects/{project_id}/opentelemetry/traces/{trace_id}',
3017
+ ...options
3018
+ });
3019
+ };
3020
+ export const getPaymentEnvironmentVariables = (options) => {
3021
+ return (options.client ?? _heyApiClient).get({
3022
+ url: '/api/projects/{project_id}/payments/environment-variables',
3023
+ ...options
3024
+ });
3025
+ };
3026
+ export const getPaymentMetrics = (options) => {
3027
+ return (options.client ?? _heyApiClient).get({
3028
+ url: '/api/projects/{project_id}/payments/metrics',
3029
+ ...options
3030
+ });
3031
+ };
3032
+ export const getProducts = (options) => {
3033
+ return (options.client ?? _heyApiClient).get({
3034
+ url: '/api/projects/{project_id}/payments/products',
3035
+ ...options
3036
+ });
3037
+ };
3038
+ export const createProduct = (options) => {
3039
+ return (options.client ?? _heyApiClient).post({
3040
+ url: '/api/projects/{project_id}/payments/products',
3041
+ ...options,
3042
+ headers: {
3043
+ 'Content-Type': 'application/json',
3044
+ ...options.headers
3045
+ }
3046
+ });
3047
+ };
3048
+ export const deleteProduct = (options) => {
3049
+ return (options.client ?? _heyApiClient).delete({
3050
+ url: '/api/projects/{project_id}/payments/products/{id}',
3051
+ ...options
3052
+ });
3053
+ };
3054
+ export const getProduct = (options) => {
3055
+ return (options.client ?? _heyApiClient).get({
3056
+ url: '/api/projects/{project_id}/payments/products/{id}',
3057
+ ...options
3058
+ });
3059
+ };
3060
+ export const updateProduct = (options) => {
3061
+ return (options.client ?? _heyApiClient).put({
3062
+ url: '/api/projects/{project_id}/payments/products/{id}',
3063
+ ...options,
3064
+ headers: {
3065
+ 'Content-Type': 'application/json',
3066
+ ...options.headers
3067
+ }
3068
+ });
3069
+ };
3070
+ export const getProjectPaymentProvider = (options) => {
3071
+ return (options.client ?? _heyApiClient).get({
3072
+ url: '/api/projects/{project_id}/payments/provider',
3073
+ ...options
3074
+ });
3075
+ };
3076
+ export const setProjectPaymentProvider = (options) => {
3077
+ return (options.client ?? _heyApiClient).post({
3078
+ url: '/api/projects/{project_id}/payments/provider',
3079
+ ...options,
3080
+ headers: {
3081
+ 'Content-Type': 'application/json',
3082
+ ...options.headers
3083
+ }
3084
+ });
3085
+ };
3086
+ export const getTodayRevenue = (options) => {
3087
+ return (options.client ?? _heyApiClient).get({
3088
+ url: '/api/projects/{project_id}/payments/revenue/today',
3089
+ ...options
3090
+ });
3091
+ };
3092
+ export const getPaymentSettings = (options) => {
3093
+ return (options.client ?? _heyApiClient).get({
3094
+ url: '/api/projects/{project_id}/payments/settings',
3095
+ ...options
3096
+ });
3097
+ };
3098
+ export const listWebhooks = (options) => {
3099
+ return (options.client ?? _heyApiClient).get({
3100
+ url: '/api/projects/{project_id}/payments/webhooks',
3101
+ ...options
3102
+ });
3103
+ };
3104
+ export const createWebhook = (options) => {
3105
+ return (options.client ?? _heyApiClient).post({
3106
+ url: '/api/projects/{project_id}/payments/webhooks',
3107
+ ...options,
3108
+ headers: {
3109
+ 'Content-Type': 'application/json',
3110
+ ...options.headers
3111
+ }
3112
+ });
3113
+ };
3114
+ export const getWebhookLogs = (options) => {
3115
+ return (options.client ?? _heyApiClient).get({
3116
+ url: '/api/projects/{project_id}/payments/webhooks/logs',
3117
+ ...options
3118
+ });
3119
+ };
3120
+ export const retryWebhook = (options) => {
3121
+ return (options.client ?? _heyApiClient).post({
3122
+ url: '/api/projects/{project_id}/payments/webhooks/logs/{id}/retry',
3123
+ ...options
3124
+ });
3125
+ };
3126
+ export const getWebhookLog = (options) => {
3127
+ return (options.client ?? _heyApiClient).get({
3128
+ url: '/api/projects/{project_id}/payments/webhooks/logs/{log_id}',
3129
+ ...options
3130
+ });
3131
+ };
3132
+ export const deleteWebhook = (options) => {
3133
+ return (options.client ?? _heyApiClient).delete({
3134
+ url: '/api/projects/{project_id}/payments/webhooks/{id}',
3135
+ ...options
3136
+ });
3137
+ };
3138
+ export const getWebhook = (options) => {
3139
+ return (options.client ?? _heyApiClient).get({
3140
+ url: '/api/projects/{project_id}/payments/webhooks/{id}',
3141
+ ...options
3142
+ });
3143
+ };
3144
+ export const updateWebhook = (options) => {
3145
+ return (options.client ?? _heyApiClient).put({
3146
+ url: '/api/projects/{project_id}/payments/webhooks/{id}',
3147
+ ...options,
3148
+ headers: {
3149
+ 'Content-Type': 'application/json',
3150
+ ...options.headers
3151
+ }
3152
+ });
3153
+ };
3154
+ /**
3155
+ * Get session metrics (max duration, mean duration, bounce rate)
3156
+ */
3157
+ export const getSessionMetrics = (options) => {
3158
+ return (options.client ?? _heyApiClient).get({
3159
+ security: [
3160
+ {
3161
+ scheme: 'bearer',
3162
+ type: 'http'
3163
+ }
3164
+ ],
3165
+ url: '/api/projects/{project_id}/session-metrics',
3166
+ ...options
3167
+ });
3168
+ };
3169
+ export const setupStatus = (options) => {
3170
+ return (options?.client ?? _heyApiClient).get({
3171
+ security: [
3172
+ {
3173
+ scheme: 'bearer',
3174
+ type: 'http'
3175
+ }
3176
+ ],
3177
+ url: '/api/setup-status',
3178
+ ...options
3179
+ });
3180
+ };
3181
+ export const getSpeedPerformanceMetrics = (options) => {
3182
+ return (options.client ?? _heyApiClient).get({
3183
+ security: [
3184
+ {
3185
+ scheme: 'bearer',
3186
+ type: 'http'
3187
+ }
3188
+ ],
3189
+ url: '/api/speed-insights/metrics',
3190
+ ...options
3191
+ });
3192
+ };
3193
+ export const getSpeedMetricsOverTime = (options) => {
3194
+ return (options.client ?? _heyApiClient).get({
3195
+ security: [
3196
+ {
3197
+ scheme: 'bearer',
3198
+ type: 'http'
3199
+ }
3200
+ ],
3201
+ url: '/api/speed-insights/metrics-over-time',
3202
+ ...options
3203
+ });
3204
+ };
3205
+ /**
3206
+ * Get available templates
3207
+ */
3208
+ export const getTemplates = (options) => {
3209
+ return (options?.client ?? _heyApiClient).get({
3210
+ security: [
3211
+ {
3212
+ scheme: 'bearer',
3213
+ type: 'http'
3214
+ }
3215
+ ],
3216
+ url: '/api/templates',
3217
+ ...options
3218
+ });
3219
+ };
3220
+ /**
3221
+ * Get a template by name
3222
+ */
3223
+ export const getTemplateByName = (options) => {
3224
+ return (options.client ?? _heyApiClient).get({
3225
+ security: [
3226
+ {
3227
+ scheme: 'bearer',
3228
+ type: 'http'
3229
+ }
3230
+ ],
3231
+ url: '/api/templates/{name}',
3232
+ ...options
3233
+ });
3234
+ };
3235
+ /**
3236
+ * Get a template preview image by name
3237
+ */
3238
+ export const getTemplatePreview = (options) => {
3239
+ return (options.client ?? _heyApiClient).get({
3240
+ security: [
3241
+ {
3242
+ scheme: 'bearer',
3243
+ type: 'http'
3244
+ }
3245
+ ],
3246
+ url: '/api/templates/{name}/preview',
3247
+ ...options
3248
+ });
3249
+ };
3250
+ export const renewToken = (options) => {
3251
+ return (options.client ?? _heyApiClient).post({
3252
+ security: [
3253
+ {
3254
+ scheme: 'bearer',
3255
+ type: 'http'
3256
+ }
3257
+ ],
3258
+ url: '/api/token/renew',
3259
+ ...options,
3260
+ headers: {
3261
+ 'Content-Type': 'application/json',
3262
+ ...options.headers
3263
+ }
3264
+ });
3265
+ };
3266
+ export const getCurrentUser = (options) => {
3267
+ return (options?.client ?? _heyApiClient).get({
3268
+ url: '/api/user/me',
3269
+ ...options
3270
+ });
3271
+ };
3272
+ export const listUsers = (options) => {
3273
+ return (options.client ?? _heyApiClient).get({
3274
+ url: '/api/users',
3275
+ ...options
3276
+ });
3277
+ };
3278
+ /**
3279
+ * Create a new user with roles
3280
+ */
3281
+ export const createUser = (options) => {
3282
+ return (options.client ?? _heyApiClient).post({
3283
+ url: '/api/users',
3284
+ ...options,
3285
+ headers: {
3286
+ 'Content-Type': 'application/json',
3287
+ ...options.headers
3288
+ }
3289
+ });
3290
+ };
3291
+ /**
3292
+ * Update current user's information
3293
+ */
3294
+ export const updateSelf = (options) => {
3295
+ return (options.client ?? _heyApiClient).patch({
3296
+ url: '/api/users/me',
3297
+ ...options,
3298
+ headers: {
3299
+ 'Content-Type': 'application/json',
3300
+ ...options.headers
3301
+ }
3302
+ });
3303
+ };
3304
+ export const disableMfa = (options) => {
3305
+ return (options.client ?? _heyApiClient).delete({
3306
+ url: '/api/users/me/mfa',
3307
+ ...options,
3308
+ headers: {
3309
+ 'Content-Type': 'application/json',
3310
+ ...options.headers
3311
+ }
3312
+ });
3313
+ };
3314
+ export const setupMfa = (options) => {
3315
+ return (options?.client ?? _heyApiClient).post({
3316
+ url: '/api/users/me/mfa/setup',
3317
+ ...options
3318
+ });
3319
+ };
3320
+ export const verifyAndEnableMfa = (options) => {
3321
+ return (options.client ?? _heyApiClient).post({
3322
+ url: '/api/users/me/mfa/verify',
3323
+ ...options,
3324
+ headers: {
3325
+ 'Content-Type': 'application/json',
3326
+ ...options.headers
3327
+ }
3328
+ });
3329
+ };
3330
+ /**
3331
+ * Delete a user
3332
+ */
3333
+ export const deleteUser = (options) => {
3334
+ return (options.client ?? _heyApiClient).delete({
3335
+ url: '/api/users/{user_id}',
3336
+ ...options
3337
+ });
3338
+ };
3339
+ /**
3340
+ * Update user information (admin only)
3341
+ */
3342
+ export const updateUser = (options) => {
3343
+ return (options.client ?? _heyApiClient).patch({
3344
+ url: '/api/users/{user_id}',
3345
+ ...options,
3346
+ headers: {
3347
+ 'Content-Type': 'application/json',
3348
+ ...options.headers
3349
+ }
3350
+ });
3351
+ };
3352
+ export const restoreUser = (options) => {
3353
+ return (options.client ?? _heyApiClient).post({
3354
+ url: '/api/users/{user_id}/restore',
3355
+ ...options
3356
+ });
3357
+ };
3358
+ export const assignRole = (options) => {
3359
+ return (options.client ?? _heyApiClient).post({
3360
+ url: '/api/users/{user_id}/roles',
3361
+ ...options,
3362
+ headers: {
3363
+ 'Content-Type': 'application/json',
3364
+ ...options.headers
3365
+ }
3366
+ });
3367
+ };
3368
+ export const removeRole = (options) => {
3369
+ return (options.client ?? _heyApiClient).delete({
3370
+ url: '/api/users/{user_id}/roles/{role_type}',
3371
+ ...options
3372
+ });
3373
+ };
3374
+ export const githubWebhook = (options) => {
3375
+ return (options.client ?? _heyApiClient).post({
3376
+ security: [
3377
+ {
3378
+ scheme: 'bearer',
3379
+ type: 'http'
3380
+ }
3381
+ ],
3382
+ url: '/api/webhook/github',
3383
+ ...options,
3384
+ headers: {
3385
+ 'Content-Type': 'application/json',
3386
+ ...options.headers
3387
+ }
3388
+ });
3389
+ };