@meshscale/sdk 0.1.7

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.
@@ -0,0 +1,918 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'http://localhost:3002' | 'https://api.meshscale.cloud' | (string & {});
3
+ };
4
+ export type Error = {
5
+ code: string;
6
+ message: string;
7
+ requestId?: string | null;
8
+ };
9
+ export type ErrorResponse = {
10
+ error: Error;
11
+ };
12
+ export type HealthResponse = {
13
+ status: string;
14
+ api: {
15
+ majorVersion: number;
16
+ releaseVersion: string;
17
+ };
18
+ };
19
+ export type UserResponse = {
20
+ userId: string;
21
+ };
22
+ export type UserPreferencesResponse = {
23
+ preferences?: {
24
+ [key: string]: unknown;
25
+ } | null;
26
+ };
27
+ export type Organization = {
28
+ id?: string;
29
+ name?: string;
30
+ slug?: string;
31
+ logo?: string | null;
32
+ createdAt?: string;
33
+ role?: string | null;
34
+ };
35
+ export type OrganizationResponse = {
36
+ organization: Organization;
37
+ };
38
+ export type OrganizationListResponse = {
39
+ organizations: Array<Organization>;
40
+ activeOrganizationId?: string | null;
41
+ };
42
+ export type Region = {
43
+ id: string;
44
+ slug: string;
45
+ name: string;
46
+ createdAt?: string;
47
+ };
48
+ export type RegionsResponse = {
49
+ regions: Array<Region>;
50
+ };
51
+ export type Project = {
52
+ id: string;
53
+ organizationId: string;
54
+ status: 'PARTIAL_DEPLOYMENT' | 'ACTIVE' | 'INACTIVE';
55
+ createdBy: string;
56
+ deletedBy?: string | null;
57
+ createdAt: string;
58
+ updatedAt: string;
59
+ deletedAt?: string | null;
60
+ };
61
+ export type ProjectSettings = {
62
+ id: string;
63
+ projectId: string;
64
+ defaultRegionId: string;
65
+ createdAt: string;
66
+ updatedAt: string;
67
+ };
68
+ export type ProjectResponse = {
69
+ project: Project;
70
+ };
71
+ export type ProjectsResponse = {
72
+ projects: Array<Project>;
73
+ };
74
+ export type ProjectDetailResponse = {
75
+ project: Project;
76
+ settings?: ProjectSettings;
77
+ enabledRegions: Array<Region>;
78
+ };
79
+ export type ProjectSettingsResponse = {
80
+ settings?: ProjectSettings;
81
+ enabledRegions: Array<Region>;
82
+ };
83
+ export type ProjectSettingsPatchResponse = {
84
+ settings: ProjectSettings;
85
+ enabledRegionIds: Array<string>;
86
+ };
87
+ export type TeamSettings = {
88
+ id: string;
89
+ organizationId: string;
90
+ defaultDeploymentRegionId?: string | null;
91
+ gitProviderId?: string | null;
92
+ buildCaching: boolean;
93
+ deploymentCaching: boolean;
94
+ previewBuilds: boolean;
95
+ automaticPreviewBuildAndDeployment: boolean;
96
+ notificationTeamPreferencesSetId?: string | null;
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ };
100
+ export type TeamSettingsResponse = {
101
+ settings?: TeamSettings;
102
+ enabledRegions?: Array<Region>;
103
+ };
104
+ export type TeamSettingsPatchResponse = {
105
+ settings: TeamSettings;
106
+ enabledRegionIds?: Array<string>;
107
+ };
108
+ export type Build = {
109
+ id: string;
110
+ projectId: string;
111
+ status: 'STARTED' | 'BUILDING' | 'COMPLETED' | 'ERROR' | 'PENDING';
112
+ logs?: string | null;
113
+ framework?: string | null;
114
+ rootDir?: string | null;
115
+ createdAt: string;
116
+ startedAt?: string | null;
117
+ completedAt?: string | null;
118
+ buildTimeMs?: number | null;
119
+ };
120
+ export type BuildResponse = {
121
+ build: Build;
122
+ };
123
+ export type BuildsResponse = {
124
+ builds: Array<Build>;
125
+ };
126
+ export type Deployment = {
127
+ id: string;
128
+ projectId: string;
129
+ gitRepo: string;
130
+ gitUserName: string;
131
+ gitBranch: string;
132
+ gitCommitHash: string;
133
+ gitCommitMessage?: string | null;
134
+ buildId: string;
135
+ artifactId: string;
136
+ regionId: string;
137
+ status: 'QUEUED' | 'PROVISIONING' | 'ACTIVE' | 'INACTIVE' | 'PAUSED';
138
+ deploymentTimeMs?: number | null;
139
+ createdAt: string;
140
+ updatedAt: string;
141
+ };
142
+ export type DeploymentResponse = {
143
+ deployment: Deployment;
144
+ };
145
+ export type DeploymentCreateResponse = {
146
+ deployment: Deployment;
147
+ buildId: string;
148
+ };
149
+ export type DeploymentDetailResponse = {
150
+ deployment?: Deployment;
151
+ };
152
+ export type DeploymentsResponse = {
153
+ deployments: Array<{
154
+ deployment?: Deployment;
155
+ project?: Project;
156
+ region?: Region;
157
+ }>;
158
+ };
159
+ export type ProjectId = string;
160
+ export type DeploymentId = string;
161
+ export type ProjectIdQuery = string;
162
+ export type RegionIdQuery = string;
163
+ export type CreateOrganization = {
164
+ name: string;
165
+ slug: string;
166
+ logo?: string | null;
167
+ metadata?: string | null;
168
+ };
169
+ export type SetActiveOrganization = {
170
+ organizationId: string;
171
+ };
172
+ export type UserPreferencesPatch = {
173
+ [key: string]: unknown;
174
+ };
175
+ export type CreateProject = {
176
+ /**
177
+ * Regions selected for this project. Every region must be enabled for the active team.
178
+ */
179
+ regionIds: Array<string>;
180
+ /**
181
+ * Defaults to the first regionIds entry.
182
+ */
183
+ defaultRegionId?: string;
184
+ };
185
+ export type ProjectPatch = {
186
+ status: 'PARTIAL_DEPLOYMENT' | 'ACTIVE' | 'INACTIVE';
187
+ };
188
+ export type TeamSettingsPatch = {
189
+ defaultDeploymentRegionId?: string;
190
+ /**
191
+ * Complete replacement set of regions enabled for the active team.
192
+ */
193
+ enabledRegionIds?: Array<string>;
194
+ gitProviderId?: string | null;
195
+ buildCaching?: boolean;
196
+ deploymentCaching?: boolean;
197
+ previewBuilds?: boolean;
198
+ automaticPreviewBuildAndDeployment?: boolean;
199
+ };
200
+ export type ProjectSettingsPatch = {
201
+ defaultRegionId?: string;
202
+ enabledRegionIds?: Array<string>;
203
+ };
204
+ export type CreateBuild = {
205
+ projectId: string;
206
+ framework?: string | null;
207
+ rootDir?: string | null;
208
+ };
209
+ export type CreateDeployment = {
210
+ projectId: string;
211
+ regionId: string;
212
+ gitRepo: string;
213
+ gitUserName: string;
214
+ gitBranch: string;
215
+ gitCommitHash: string;
216
+ gitCommitMessage?: string | null;
217
+ /**
218
+ * Required by the current database schema; artifact creation itself is handled by another service.
219
+ */
220
+ artifactId: string;
221
+ };
222
+ export type DeploymentPatch = {
223
+ branch?: string;
224
+ syncMode?: 'synced' | 'independent';
225
+ /**
226
+ * Current implementation accepts the deployment status values defined by the API route.
227
+ */
228
+ status?: string;
229
+ };
230
+ export type GetHealthData = {
231
+ body?: never;
232
+ path?: never;
233
+ query?: never;
234
+ url: '/api/v1/health';
235
+ };
236
+ export type GetHealthErrors = {
237
+ /**
238
+ * Rate limit exceeded
239
+ */
240
+ 429: ErrorResponse;
241
+ };
242
+ export type GetHealthError = GetHealthErrors[keyof GetHealthErrors];
243
+ export type GetHealthResponses = {
244
+ /**
245
+ * API is healthy
246
+ */
247
+ 200: HealthResponse;
248
+ };
249
+ export type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
250
+ export type ListRegionsData = {
251
+ body?: never;
252
+ path?: never;
253
+ query?: never;
254
+ url: '/api/v1/regions';
255
+ };
256
+ export type ListRegionsErrors = {
257
+ /**
258
+ * Rate limit exceeded
259
+ */
260
+ 429: ErrorResponse;
261
+ };
262
+ export type ListRegionsError = ListRegionsErrors[keyof ListRegionsErrors];
263
+ export type ListRegionsResponses = {
264
+ /**
265
+ * Regions
266
+ */
267
+ 200: RegionsResponse;
268
+ };
269
+ export type ListRegionsResponse = ListRegionsResponses[keyof ListRegionsResponses];
270
+ export type GetUserData = {
271
+ body?: never;
272
+ path?: never;
273
+ query?: never;
274
+ url: '/api/v1/user';
275
+ };
276
+ export type GetUserErrors = {
277
+ /**
278
+ * Authentication required
279
+ */
280
+ 401: ErrorResponse;
281
+ /**
282
+ * Rate limit exceeded
283
+ */
284
+ 429: ErrorResponse;
285
+ };
286
+ export type GetUserError = GetUserErrors[keyof GetUserErrors];
287
+ export type GetUserResponses = {
288
+ /**
289
+ * Current user
290
+ */
291
+ 200: UserResponse;
292
+ };
293
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
294
+ export type GetUserPreferencesData = {
295
+ body?: never;
296
+ path?: never;
297
+ query?: never;
298
+ url: '/api/v1/user/preferences';
299
+ };
300
+ export type GetUserPreferencesErrors = {
301
+ /**
302
+ * Authentication required
303
+ */
304
+ 401: ErrorResponse;
305
+ /**
306
+ * Rate limit exceeded
307
+ */
308
+ 429: ErrorResponse;
309
+ };
310
+ export type GetUserPreferencesError = GetUserPreferencesErrors[keyof GetUserPreferencesErrors];
311
+ export type GetUserPreferencesResponses = {
312
+ /**
313
+ * Preferences
314
+ */
315
+ 200: UserPreferencesResponse;
316
+ };
317
+ export type GetUserPreferencesResponse = GetUserPreferencesResponses[keyof GetUserPreferencesResponses];
318
+ export type UpdateUserPreferencesData = {
319
+ body: UserPreferencesPatch;
320
+ path?: never;
321
+ query?: never;
322
+ url: '/api/v1/user/preferences';
323
+ };
324
+ export type UpdateUserPreferencesErrors = {
325
+ /**
326
+ * Invalid request
327
+ */
328
+ 400: ErrorResponse;
329
+ /**
330
+ * Authentication required
331
+ */
332
+ 401: ErrorResponse;
333
+ /**
334
+ * Rate limit exceeded
335
+ */
336
+ 429: ErrorResponse;
337
+ };
338
+ export type UpdateUserPreferencesError = UpdateUserPreferencesErrors[keyof UpdateUserPreferencesErrors];
339
+ export type UpdateUserPreferencesResponses = {
340
+ /**
341
+ * Updated preferences
342
+ */
343
+ 200: UserPreferencesResponse;
344
+ };
345
+ export type UpdateUserPreferencesResponse = UpdateUserPreferencesResponses[keyof UpdateUserPreferencesResponses];
346
+ export type ListOrganizationsData = {
347
+ body?: never;
348
+ path?: never;
349
+ query?: never;
350
+ url: '/api/v1/organizations';
351
+ };
352
+ export type ListOrganizationsErrors = {
353
+ /**
354
+ * Authentication required
355
+ */
356
+ 401: ErrorResponse;
357
+ /**
358
+ * Rate limit exceeded
359
+ */
360
+ 429: ErrorResponse;
361
+ };
362
+ export type ListOrganizationsError = ListOrganizationsErrors[keyof ListOrganizationsErrors];
363
+ export type ListOrganizationsResponses = {
364
+ /**
365
+ * Organizations
366
+ */
367
+ 200: OrganizationListResponse;
368
+ };
369
+ export type ListOrganizationsResponse = ListOrganizationsResponses[keyof ListOrganizationsResponses];
370
+ export type SetActiveOrganizationData = {
371
+ body: SetActiveOrganization;
372
+ path?: never;
373
+ query?: never;
374
+ url: '/api/v1/organizations';
375
+ };
376
+ export type SetActiveOrganizationErrors = {
377
+ /**
378
+ * Invalid request
379
+ */
380
+ 400: ErrorResponse;
381
+ /**
382
+ * Authentication required
383
+ */
384
+ 401: ErrorResponse;
385
+ /**
386
+ * The authenticated principal is not allowed to perform this operation
387
+ */
388
+ 403: ErrorResponse;
389
+ /**
390
+ * Resource not found
391
+ */
392
+ 404: ErrorResponse;
393
+ /**
394
+ * Rate limit exceeded
395
+ */
396
+ 429: ErrorResponse;
397
+ };
398
+ export type SetActiveOrganizationError = SetActiveOrganizationErrors[keyof SetActiveOrganizationErrors];
399
+ export type SetActiveOrganizationResponses = {
400
+ /**
401
+ * Active organization
402
+ */
403
+ 200: OrganizationResponse;
404
+ };
405
+ export type SetActiveOrganizationResponse = SetActiveOrganizationResponses[keyof SetActiveOrganizationResponses];
406
+ export type CreateOrganizationData = {
407
+ body: CreateOrganization;
408
+ path?: never;
409
+ query?: never;
410
+ url: '/api/v1/organizations';
411
+ };
412
+ export type CreateOrganizationErrors = {
413
+ /**
414
+ * Invalid request
415
+ */
416
+ 400: ErrorResponse;
417
+ /**
418
+ * Authentication required
419
+ */
420
+ 401: ErrorResponse;
421
+ /**
422
+ * Resource conflict
423
+ */
424
+ 409: ErrorResponse;
425
+ /**
426
+ * Rate limit exceeded
427
+ */
428
+ 429: ErrorResponse;
429
+ };
430
+ export type CreateOrganizationError = CreateOrganizationErrors[keyof CreateOrganizationErrors];
431
+ export type CreateOrganizationResponses = {
432
+ /**
433
+ * Created
434
+ */
435
+ 201: OrganizationResponse;
436
+ };
437
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
438
+ export type GetTeamSettingsData = {
439
+ body?: never;
440
+ path?: never;
441
+ query?: never;
442
+ url: '/api/v1/organizations/settings';
443
+ };
444
+ export type GetTeamSettingsErrors = {
445
+ /**
446
+ * Authentication required
447
+ */
448
+ 401: ErrorResponse;
449
+ /**
450
+ * Rate limit exceeded
451
+ */
452
+ 429: ErrorResponse;
453
+ };
454
+ export type GetTeamSettingsError = GetTeamSettingsErrors[keyof GetTeamSettingsErrors];
455
+ export type GetTeamSettingsResponses = {
456
+ /**
457
+ * Team settings
458
+ */
459
+ 200: TeamSettingsResponse;
460
+ };
461
+ export type GetTeamSettingsResponse = GetTeamSettingsResponses[keyof GetTeamSettingsResponses];
462
+ export type UpdateTeamSettingsData = {
463
+ body: TeamSettingsPatch;
464
+ path?: never;
465
+ query?: never;
466
+ url: '/api/v1/organizations/settings';
467
+ };
468
+ export type UpdateTeamSettingsErrors = {
469
+ /**
470
+ * Invalid request
471
+ */
472
+ 400: ErrorResponse;
473
+ /**
474
+ * Authentication required
475
+ */
476
+ 401: ErrorResponse;
477
+ /**
478
+ * Rate limit exceeded
479
+ */
480
+ 429: ErrorResponse;
481
+ };
482
+ export type UpdateTeamSettingsError = UpdateTeamSettingsErrors[keyof UpdateTeamSettingsErrors];
483
+ export type UpdateTeamSettingsResponses = {
484
+ /**
485
+ * Updated team settings
486
+ */
487
+ 200: TeamSettingsPatchResponse;
488
+ };
489
+ export type UpdateTeamSettingsResponse = UpdateTeamSettingsResponses[keyof UpdateTeamSettingsResponses];
490
+ export type ListProjectsData = {
491
+ body?: never;
492
+ path?: never;
493
+ query?: never;
494
+ url: '/api/v1/projects';
495
+ };
496
+ export type ListProjectsErrors = {
497
+ /**
498
+ * Authentication required
499
+ */
500
+ 401: ErrorResponse;
501
+ /**
502
+ * Rate limit exceeded
503
+ */
504
+ 429: ErrorResponse;
505
+ };
506
+ export type ListProjectsError = ListProjectsErrors[keyof ListProjectsErrors];
507
+ export type ListProjectsResponses = {
508
+ /**
509
+ * Projects
510
+ */
511
+ 200: ProjectsResponse;
512
+ };
513
+ export type ListProjectsResponse = ListProjectsResponses[keyof ListProjectsResponses];
514
+ export type CreateProjectData = {
515
+ body: CreateProject;
516
+ path?: never;
517
+ query?: never;
518
+ url: '/api/v1/projects';
519
+ };
520
+ export type CreateProjectErrors = {
521
+ /**
522
+ * Invalid request
523
+ */
524
+ 400: ErrorResponse;
525
+ /**
526
+ * Authentication required
527
+ */
528
+ 401: ErrorResponse;
529
+ /**
530
+ * One or more requested regions are not enabled for the active team
531
+ */
532
+ 403: ErrorResponse;
533
+ /**
534
+ * Rate limit exceeded
535
+ */
536
+ 429: ErrorResponse;
537
+ };
538
+ export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
539
+ export type CreateProjectResponses = {
540
+ /**
541
+ * Created
542
+ */
543
+ 201: ProjectResponse;
544
+ };
545
+ export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
546
+ export type DeleteProjectData = {
547
+ body?: never;
548
+ path: {
549
+ projectId: string;
550
+ };
551
+ query?: never;
552
+ url: '/api/v1/projects/{projectId}';
553
+ };
554
+ export type DeleteProjectErrors = {
555
+ /**
556
+ * Authentication required
557
+ */
558
+ 401: ErrorResponse;
559
+ /**
560
+ * Resource not found
561
+ */
562
+ 404: ErrorResponse;
563
+ /**
564
+ * Rate limit exceeded
565
+ */
566
+ 429: ErrorResponse;
567
+ };
568
+ export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
569
+ export type DeleteProjectResponses = {
570
+ /**
571
+ * Deleted
572
+ */
573
+ 204: void;
574
+ };
575
+ export type DeleteProjectResponse = DeleteProjectResponses[keyof DeleteProjectResponses];
576
+ export type GetProjectData = {
577
+ body?: never;
578
+ path: {
579
+ projectId: string;
580
+ };
581
+ query?: never;
582
+ url: '/api/v1/projects/{projectId}';
583
+ };
584
+ export type GetProjectErrors = {
585
+ /**
586
+ * Authentication required
587
+ */
588
+ 401: ErrorResponse;
589
+ /**
590
+ * Resource not found
591
+ */
592
+ 404: ErrorResponse;
593
+ /**
594
+ * Rate limit exceeded
595
+ */
596
+ 429: ErrorResponse;
597
+ };
598
+ export type GetProjectError = GetProjectErrors[keyof GetProjectErrors];
599
+ export type GetProjectResponses = {
600
+ /**
601
+ * Project
602
+ */
603
+ 200: ProjectDetailResponse;
604
+ };
605
+ export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
606
+ export type UpdateProjectData = {
607
+ body: ProjectPatch;
608
+ path: {
609
+ projectId: string;
610
+ };
611
+ query?: never;
612
+ url: '/api/v1/projects/{projectId}';
613
+ };
614
+ export type UpdateProjectErrors = {
615
+ /**
616
+ * Invalid request
617
+ */
618
+ 400: ErrorResponse;
619
+ /**
620
+ * Authentication required
621
+ */
622
+ 401: ErrorResponse;
623
+ /**
624
+ * Resource not found
625
+ */
626
+ 404: ErrorResponse;
627
+ /**
628
+ * Rate limit exceeded
629
+ */
630
+ 429: ErrorResponse;
631
+ };
632
+ export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
633
+ export type UpdateProjectResponses = {
634
+ /**
635
+ * Updated
636
+ */
637
+ 200: ProjectResponse;
638
+ };
639
+ export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
640
+ export type GetProjectSettingsData = {
641
+ body?: never;
642
+ path: {
643
+ projectId: string;
644
+ };
645
+ query?: never;
646
+ url: '/api/v1/projects/{projectId}/settings';
647
+ };
648
+ export type GetProjectSettingsErrors = {
649
+ /**
650
+ * Authentication required
651
+ */
652
+ 401: ErrorResponse;
653
+ /**
654
+ * Resource not found
655
+ */
656
+ 404: ErrorResponse;
657
+ /**
658
+ * Rate limit exceeded
659
+ */
660
+ 429: ErrorResponse;
661
+ };
662
+ export type GetProjectSettingsError = GetProjectSettingsErrors[keyof GetProjectSettingsErrors];
663
+ export type GetProjectSettingsResponses = {
664
+ /**
665
+ * Project settings
666
+ */
667
+ 200: ProjectSettingsResponse;
668
+ };
669
+ export type GetProjectSettingsResponse = GetProjectSettingsResponses[keyof GetProjectSettingsResponses];
670
+ export type UpdateProjectSettingsData = {
671
+ body: ProjectSettingsPatch;
672
+ path: {
673
+ projectId: string;
674
+ };
675
+ query?: never;
676
+ url: '/api/v1/projects/{projectId}/settings';
677
+ };
678
+ export type UpdateProjectSettingsErrors = {
679
+ /**
680
+ * Invalid request
681
+ */
682
+ 400: ErrorResponse;
683
+ /**
684
+ * Authentication required
685
+ */
686
+ 401: ErrorResponse;
687
+ /**
688
+ * One or more requested regions are not enabled for the active team
689
+ */
690
+ 403: ErrorResponse;
691
+ /**
692
+ * Resource not found
693
+ */
694
+ 404: ErrorResponse;
695
+ /**
696
+ * Rate limit exceeded
697
+ */
698
+ 429: ErrorResponse;
699
+ };
700
+ export type UpdateProjectSettingsError = UpdateProjectSettingsErrors[keyof UpdateProjectSettingsErrors];
701
+ export type UpdateProjectSettingsResponses = {
702
+ /**
703
+ * Updated project settings
704
+ */
705
+ 200: ProjectSettingsPatchResponse;
706
+ };
707
+ export type UpdateProjectSettingsResponse = UpdateProjectSettingsResponses[keyof UpdateProjectSettingsResponses];
708
+ export type ListBuildsData = {
709
+ body?: never;
710
+ path?: never;
711
+ query?: {
712
+ projectId?: string;
713
+ };
714
+ url: '/api/v1/builds';
715
+ };
716
+ export type ListBuildsErrors = {
717
+ /**
718
+ * Authentication required
719
+ */
720
+ 401: ErrorResponse;
721
+ /**
722
+ * Rate limit exceeded
723
+ */
724
+ 429: ErrorResponse;
725
+ };
726
+ export type ListBuildsError = ListBuildsErrors[keyof ListBuildsErrors];
727
+ export type ListBuildsResponses = {
728
+ /**
729
+ * Builds
730
+ */
731
+ 200: BuildsResponse;
732
+ };
733
+ export type ListBuildsResponse = ListBuildsResponses[keyof ListBuildsResponses];
734
+ export type CreateBuildData = {
735
+ body: CreateBuild;
736
+ path?: never;
737
+ query?: never;
738
+ url: '/api/v1/builds';
739
+ };
740
+ export type CreateBuildErrors = {
741
+ /**
742
+ * Invalid request
743
+ */
744
+ 400: ErrorResponse;
745
+ /**
746
+ * Authentication required
747
+ */
748
+ 401: ErrorResponse;
749
+ /**
750
+ * Resource not found
751
+ */
752
+ 404: ErrorResponse;
753
+ /**
754
+ * Rate limit exceeded
755
+ */
756
+ 429: ErrorResponse;
757
+ };
758
+ export type CreateBuildError = CreateBuildErrors[keyof CreateBuildErrors];
759
+ export type CreateBuildResponses = {
760
+ /**
761
+ * Created
762
+ */
763
+ 201: BuildResponse;
764
+ };
765
+ export type CreateBuildResponse = CreateBuildResponses[keyof CreateBuildResponses];
766
+ export type ListDeploymentsData = {
767
+ body?: never;
768
+ path?: never;
769
+ query?: {
770
+ projectId?: string;
771
+ regionId?: string;
772
+ };
773
+ url: '/api/v1/deployments';
774
+ };
775
+ export type ListDeploymentsErrors = {
776
+ /**
777
+ * Authentication required
778
+ */
779
+ 401: ErrorResponse;
780
+ /**
781
+ * Rate limit exceeded
782
+ */
783
+ 429: ErrorResponse;
784
+ };
785
+ export type ListDeploymentsError = ListDeploymentsErrors[keyof ListDeploymentsErrors];
786
+ export type ListDeploymentsResponses = {
787
+ /**
788
+ * Deployments
789
+ */
790
+ 200: DeploymentsResponse;
791
+ };
792
+ export type ListDeploymentsResponse = ListDeploymentsResponses[keyof ListDeploymentsResponses];
793
+ export type CreateDeploymentData = {
794
+ body: CreateDeployment;
795
+ path?: never;
796
+ query?: never;
797
+ url: '/api/v1/deployments';
798
+ };
799
+ export type CreateDeploymentErrors = {
800
+ /**
801
+ * Invalid request
802
+ */
803
+ 400: ErrorResponse;
804
+ /**
805
+ * Authentication required
806
+ */
807
+ 401: ErrorResponse;
808
+ /**
809
+ * Resource not found
810
+ */
811
+ 404: ErrorResponse;
812
+ /**
813
+ * Rate limit exceeded
814
+ */
815
+ 429: ErrorResponse;
816
+ };
817
+ export type CreateDeploymentError = CreateDeploymentErrors[keyof CreateDeploymentErrors];
818
+ export type CreateDeploymentResponses = {
819
+ /**
820
+ * Created
821
+ */
822
+ 201: DeploymentCreateResponse;
823
+ };
824
+ export type CreateDeploymentResponse = CreateDeploymentResponses[keyof CreateDeploymentResponses];
825
+ export type DeleteDeploymentData = {
826
+ body?: never;
827
+ path: {
828
+ deploymentId: string;
829
+ };
830
+ query?: never;
831
+ url: '/api/v1/deployments/{deploymentId}';
832
+ };
833
+ export type DeleteDeploymentErrors = {
834
+ /**
835
+ * Authentication required
836
+ */
837
+ 401: ErrorResponse;
838
+ /**
839
+ * Resource not found
840
+ */
841
+ 404: ErrorResponse;
842
+ /**
843
+ * Rate limit exceeded
844
+ */
845
+ 429: ErrorResponse;
846
+ };
847
+ export type DeleteDeploymentError = DeleteDeploymentErrors[keyof DeleteDeploymentErrors];
848
+ export type DeleteDeploymentResponses = {
849
+ /**
850
+ * Deleted
851
+ */
852
+ 204: void;
853
+ };
854
+ export type DeleteDeploymentResponse = DeleteDeploymentResponses[keyof DeleteDeploymentResponses];
855
+ export type GetDeploymentData = {
856
+ body?: never;
857
+ path: {
858
+ deploymentId: string;
859
+ };
860
+ query?: never;
861
+ url: '/api/v1/deployments/{deploymentId}';
862
+ };
863
+ export type GetDeploymentErrors = {
864
+ /**
865
+ * Authentication required
866
+ */
867
+ 401: ErrorResponse;
868
+ /**
869
+ * Resource not found
870
+ */
871
+ 404: ErrorResponse;
872
+ /**
873
+ * Rate limit exceeded
874
+ */
875
+ 429: ErrorResponse;
876
+ };
877
+ export type GetDeploymentError = GetDeploymentErrors[keyof GetDeploymentErrors];
878
+ export type GetDeploymentResponses = {
879
+ /**
880
+ * Deployment
881
+ */
882
+ 200: DeploymentDetailResponse;
883
+ };
884
+ export type GetDeploymentResponse = GetDeploymentResponses[keyof GetDeploymentResponses];
885
+ export type UpdateDeploymentData = {
886
+ body: DeploymentPatch;
887
+ path: {
888
+ deploymentId: string;
889
+ };
890
+ query?: never;
891
+ url: '/api/v1/deployments/{deploymentId}';
892
+ };
893
+ export type UpdateDeploymentErrors = {
894
+ /**
895
+ * Invalid request
896
+ */
897
+ 400: ErrorResponse;
898
+ /**
899
+ * Authentication required
900
+ */
901
+ 401: ErrorResponse;
902
+ /**
903
+ * Resource not found
904
+ */
905
+ 404: ErrorResponse;
906
+ /**
907
+ * Rate limit exceeded
908
+ */
909
+ 429: ErrorResponse;
910
+ };
911
+ export type UpdateDeploymentError = UpdateDeploymentErrors[keyof UpdateDeploymentErrors];
912
+ export type UpdateDeploymentResponses = {
913
+ /**
914
+ * Updated
915
+ */
916
+ 200: DeploymentResponse;
917
+ };
918
+ export type UpdateDeploymentResponse = UpdateDeploymentResponses[keyof UpdateDeploymentResponses];