@faable/deploy-sdk 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,895 @@
1
+ import type { operations } from "./types.js";
2
+ import { FaableApi } from "@faable/sdk-base";
3
+ type OpBody<K extends keyof operations> = operations[K] extends {
4
+ requestBody: {
5
+ content: {
6
+ "application/json": infer B;
7
+ };
8
+ };
9
+ } ? B : never;
10
+ type OpQuery<K extends keyof operations> = operations[K] extends {
11
+ parameters: {
12
+ query?: infer Q;
13
+ };
14
+ } ? NonNullable<Q> : Record<string, never>;
15
+ /**
16
+ * Auto-generated deploy-API methods, one per secured operation in the OpenAPI
17
+ * spec. `DeployApi` extends this and adds the constructor, custom-logic
18
+ * helpers, and deprecated aliases.
19
+ */
20
+ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
21
+ /**
22
+ * `GET /app/checkname` — operationId: `app/checkname`
23
+ *
24
+ * Check if an app name is availiable
25
+ */
26
+ appCheckname(params?: OpQuery<"app/checkname">): Promise<{
27
+ name: string;
28
+ slug: string;
29
+ url?: string;
30
+ availiable: boolean;
31
+ error?: string;
32
+ }>;
33
+ /**
34
+ * `POST /app` — operationId: `app/create`
35
+ *
36
+ * Create App
37
+ */
38
+ appCreate(data: OpBody<"app/create">): Promise<{
39
+ id: string;
40
+ team: string;
41
+ name: string;
42
+ description: string;
43
+ slug: string;
44
+ url: string;
45
+ active: boolean;
46
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
47
+ runtime_strategy: string | null;
48
+ instance_type: string;
49
+ region: "gui1" | "poz1" | "ams1";
50
+ status: import("./types.js").components["schemas"]["AppStatus"];
51
+ repository?: string;
52
+ github_branch?: string;
53
+ github_installation_id?: string;
54
+ metadata: {
55
+ [key: string]: unknown;
56
+ };
57
+ createdAt: string;
58
+ updatedAt?: string;
59
+ }>;
60
+ /**
61
+ * `DELETE /app/{id}` — operationId: `app/delete`
62
+ *
63
+ * Delete App
64
+ */
65
+ appDelete(id: string): Promise<{
66
+ id: string;
67
+ team: string;
68
+ name: string;
69
+ description: string;
70
+ slug: string;
71
+ url: string;
72
+ active: boolean;
73
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
74
+ runtime_strategy: string | null;
75
+ instance_type: string;
76
+ region: "gui1" | "poz1" | "ams1";
77
+ status: import("./types.js").components["schemas"]["AppStatus"];
78
+ repository?: string;
79
+ github_branch?: string;
80
+ github_installation_id?: string;
81
+ metadata: {
82
+ [key: string]: unknown;
83
+ };
84
+ createdAt: string;
85
+ updatedAt?: string;
86
+ }>;
87
+ /**
88
+ * `GET /app/{id}` — operationId: `app/get`
89
+ *
90
+ * Get App
91
+ */
92
+ appGet(id: string, params?: OpQuery<"app/get">): Promise<{
93
+ id: string;
94
+ team: string;
95
+ name: string;
96
+ description: string;
97
+ slug: string;
98
+ url: string;
99
+ active: boolean;
100
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
101
+ runtime_strategy: string | null;
102
+ instance_type: string;
103
+ region: "gui1" | "poz1" | "ams1";
104
+ status: import("./types.js").components["schemas"]["AppStatus"];
105
+ repository?: string;
106
+ github_branch?: string;
107
+ github_installation_id?: string;
108
+ metadata: {
109
+ [key: string]: unknown;
110
+ };
111
+ createdAt: string;
112
+ updatedAt?: string;
113
+ }>;
114
+ /**
115
+ * `GET /app/{id}/deploy-workflow` — operationId: `app/get_deploy_workflow`
116
+ *
117
+ * Get deploy workflow status
118
+ */
119
+ appGetDeployWorkflow(id: string): Promise<{
120
+ configured: boolean;
121
+ workflow_path?: string;
122
+ }>;
123
+ /**
124
+ * `GET /app/{app_id}/registry` — operationId: `app/get_registry`
125
+ *
126
+ * Get app registry
127
+ */
128
+ appGetRegistry(app_id: string): Promise<{
129
+ id: string;
130
+ app_id: string;
131
+ hostname: string;
132
+ image: string;
133
+ user: string;
134
+ password: string;
135
+ }>;
136
+ /**
137
+ * `POST /app/{id}/link-repository` — operationId: `app/link_repository`
138
+ *
139
+ * Link a GitHub repository to an app
140
+ */
141
+ appLinkRepository(id: string, data: OpBody<"app/link_repository">): Promise<{
142
+ id: string;
143
+ team: string;
144
+ name: string;
145
+ description: string;
146
+ slug: string;
147
+ url: string;
148
+ active: boolean;
149
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
150
+ runtime_strategy: string | null;
151
+ instance_type: string;
152
+ region: "gui1" | "poz1" | "ams1";
153
+ status: import("./types.js").components["schemas"]["AppStatus"];
154
+ repository?: string;
155
+ github_branch?: string;
156
+ github_installation_id?: string;
157
+ metadata: {
158
+ [key: string]: unknown;
159
+ };
160
+ createdAt: string;
161
+ updatedAt?: string;
162
+ }>;
163
+ /**
164
+ * `GET /app` — operationId: `app/list`
165
+ *
166
+ * List Apps
167
+ */
168
+ appList(params?: Omit<OpQuery<"app/list">, "cursor" | "next">): {
169
+ all: () => Promise<{
170
+ id: string;
171
+ team: string;
172
+ name: string;
173
+ description: string;
174
+ slug: string;
175
+ url: string;
176
+ active: boolean;
177
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
178
+ runtime_strategy: string | null;
179
+ instance_type: string;
180
+ region: "gui1" | "poz1" | "ams1";
181
+ status: import("./types.js").components["schemas"]["AppStatus"];
182
+ repository?: string;
183
+ github_branch?: string;
184
+ github_installation_id?: string;
185
+ metadata: {
186
+ [key: string]: unknown;
187
+ };
188
+ createdAt: string;
189
+ updatedAt?: string;
190
+ }[]>;
191
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
192
+ id: string;
193
+ team: string;
194
+ name: string;
195
+ description: string;
196
+ slug: string;
197
+ url: string;
198
+ active: boolean;
199
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
200
+ runtime_strategy: string | null;
201
+ instance_type: string;
202
+ region: "gui1" | "poz1" | "ams1";
203
+ status: import("./types.js").components["schemas"]["AppStatus"];
204
+ repository?: string;
205
+ github_branch?: string;
206
+ github_installation_id?: string;
207
+ metadata: {
208
+ [key: string]: unknown;
209
+ };
210
+ createdAt: string;
211
+ updatedAt?: string;
212
+ }>>;
213
+ pass: (params?: {
214
+ cursor?: string;
215
+ pageSize?: string;
216
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
217
+ id: string;
218
+ team: string;
219
+ name: string;
220
+ description: string;
221
+ slug: string;
222
+ url: string;
223
+ active: boolean;
224
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
225
+ runtime_strategy: string | null;
226
+ instance_type: string;
227
+ region: "gui1" | "poz1" | "ams1";
228
+ status: import("./types.js").components["schemas"]["AppStatus"];
229
+ repository?: string;
230
+ github_branch?: string;
231
+ github_installation_id?: string;
232
+ metadata: {
233
+ [key: string]: unknown;
234
+ };
235
+ createdAt: string;
236
+ updatedAt?: string;
237
+ }>>;
238
+ };
239
+ /**
240
+ * `GET /app/{app_id}/logs` — operationId: `app/logs`
241
+ *
242
+ * Get app logs
243
+ */
244
+ appLogs(app_id: string, params?: OpQuery<"app/logs">): Promise<void>;
245
+ /**
246
+ * `POST /app/{id}/deploy-workflow` — operationId: `app/setup_deploy_workflow`
247
+ *
248
+ * Set up deploy workflow
249
+ */
250
+ appSetupDeployWorkflow(id: string): Promise<{
251
+ configured: boolean;
252
+ workflow_path?: string;
253
+ }>;
254
+ /**
255
+ * `GET /app/slug/{slug}` — operationId: `app/slug`
256
+ *
257
+ * Get App by unique slug
258
+ */
259
+ appSlug(slug: string): Promise<{
260
+ id: string;
261
+ team: string;
262
+ name: string;
263
+ description: string;
264
+ slug: string;
265
+ url: string;
266
+ active: boolean;
267
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
268
+ runtime_strategy: string | null;
269
+ instance_type: string;
270
+ region: "gui1" | "poz1" | "ams1";
271
+ status: import("./types.js").components["schemas"]["AppStatus"];
272
+ repository?: string;
273
+ github_branch?: string;
274
+ github_installation_id?: string;
275
+ metadata: {
276
+ [key: string]: unknown;
277
+ };
278
+ createdAt: string;
279
+ updatedAt?: string;
280
+ }>;
281
+ /**
282
+ * `GET /app/{app_id}/traffic` — operationId: `app/traffic`
283
+ *
284
+ * Get App Traffic
285
+ */
286
+ appTraffic(app_id: string, params?: OpQuery<"app/traffic">): Promise<{
287
+ range: {
288
+ from: number;
289
+ to: number;
290
+ interval: number;
291
+ deployment_id?: string;
292
+ };
293
+ top_endpoints: {
294
+ path: string;
295
+ requests: number;
296
+ req_bytes: number;
297
+ resp_bytes: number;
298
+ }[];
299
+ error_endpoints: {
300
+ path: string;
301
+ status: number;
302
+ errors: number;
303
+ }[];
304
+ status_codes: {
305
+ status: number;
306
+ requests: number;
307
+ }[];
308
+ methods: {
309
+ method: string;
310
+ requests: number;
311
+ }[];
312
+ transfer: {
313
+ ts: string;
314
+ inbound_bytes: number;
315
+ outbound_bytes: number;
316
+ requests: number;
317
+ p50_ms: number;
318
+ p95_ms: number;
319
+ }[];
320
+ origin_status_codes: {
321
+ status: number;
322
+ requests: number;
323
+ }[];
324
+ latency: {
325
+ p50: number;
326
+ p95: number;
327
+ p99: number;
328
+ samples: number;
329
+ };
330
+ top_referrers: {
331
+ referer: string;
332
+ requests: number;
333
+ }[];
334
+ top_user_agents: {
335
+ user_agent: string;
336
+ requests: number;
337
+ }[];
338
+ }>;
339
+ /**
340
+ * `POST /app/{id}/unlink-repository` — operationId: `app/unlink_repository`
341
+ *
342
+ * Unlink the GitHub repository from an app
343
+ */
344
+ appUnlinkRepository(id: string): Promise<{
345
+ id: string;
346
+ team: string;
347
+ name: string;
348
+ description: string;
349
+ slug: string;
350
+ url: string;
351
+ active: boolean;
352
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
353
+ runtime_strategy: string | null;
354
+ instance_type: string;
355
+ region: "gui1" | "poz1" | "ams1";
356
+ status: import("./types.js").components["schemas"]["AppStatus"];
357
+ repository?: string;
358
+ github_branch?: string;
359
+ github_installation_id?: string;
360
+ metadata: {
361
+ [key: string]: unknown;
362
+ };
363
+ createdAt: string;
364
+ updatedAt?: string;
365
+ }>;
366
+ /**
367
+ * `POST /app/{id}` — operationId: `app/update`
368
+ *
369
+ * Update App
370
+ */
371
+ appUpdate(id: string, data: OpBody<"app/update">): Promise<{
372
+ id: string;
373
+ team: string;
374
+ name: string;
375
+ description: string;
376
+ slug: string;
377
+ url: string;
378
+ active: boolean;
379
+ runtime: import("./types.js").components["schemas"]["AppRuntime"];
380
+ runtime_strategy: string | null;
381
+ instance_type: string;
382
+ region: "gui1" | "poz1" | "ams1";
383
+ status: import("./types.js").components["schemas"]["AppStatus"];
384
+ repository?: string;
385
+ github_branch?: string;
386
+ github_installation_id?: string;
387
+ metadata: {
388
+ [key: string]: unknown;
389
+ };
390
+ createdAt: string;
391
+ updatedAt?: string;
392
+ }>;
393
+ /**
394
+ * `POST /deployment` — operationId: `deployment/create`
395
+ *
396
+ * Create Deployment
397
+ */
398
+ deploymentCreate(data: OpBody<"deployment/create">): Promise<{
399
+ id: string;
400
+ team: string;
401
+ app_id: string;
402
+ image?: string;
403
+ github_commit?: string;
404
+ github_ref?: string;
405
+ github_actor?: string;
406
+ github_commit_message?: string;
407
+ status: import("./types.js").components["schemas"]["DeploymentStatus"];
408
+ metadata: {
409
+ [key: string]: unknown;
410
+ };
411
+ createdAt: string;
412
+ updatedAt?: string;
413
+ }>;
414
+ /**
415
+ * `DELETE /deployment/{id}` — operationId: `deployment/delete`
416
+ *
417
+ * Delete Deployment
418
+ */
419
+ deploymentDelete(id: string): Promise<{
420
+ id: string;
421
+ team: string;
422
+ app_id: string;
423
+ image?: string;
424
+ github_commit?: string;
425
+ github_ref?: string;
426
+ github_actor?: string;
427
+ github_commit_message?: string;
428
+ status: import("./types.js").components["schemas"]["DeploymentStatus"];
429
+ metadata: {
430
+ [key: string]: unknown;
431
+ };
432
+ createdAt: string;
433
+ updatedAt?: string;
434
+ }>;
435
+ /**
436
+ * `GET /deployment/{id}` — operationId: `deployment/get`
437
+ *
438
+ * Get Deployment
439
+ */
440
+ deploymentGet(id: string): Promise<{
441
+ id: string;
442
+ team: string;
443
+ app_id: string;
444
+ image?: string;
445
+ github_commit?: string;
446
+ github_ref?: string;
447
+ github_actor?: string;
448
+ github_commit_message?: string;
449
+ status: import("./types.js").components["schemas"]["DeploymentStatus"];
450
+ metadata: {
451
+ [key: string]: unknown;
452
+ };
453
+ createdAt: string;
454
+ updatedAt?: string;
455
+ }>;
456
+ /**
457
+ * `GET /deployment` — operationId: `deployment/list`
458
+ *
459
+ * List Deployments
460
+ */
461
+ deploymentList(params?: Omit<OpQuery<"deployment/list">, "cursor" | "next">): {
462
+ all: () => Promise<{
463
+ id: string;
464
+ team: string;
465
+ app_id: string;
466
+ image?: string;
467
+ github_commit?: string;
468
+ github_ref?: string;
469
+ github_actor?: string;
470
+ github_commit_message?: string;
471
+ status: import("./types.js").components["schemas"]["DeploymentStatus"];
472
+ metadata: {
473
+ [key: string]: unknown;
474
+ };
475
+ createdAt: string;
476
+ updatedAt?: string;
477
+ }[]>;
478
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
479
+ id: string;
480
+ team: string;
481
+ app_id: string;
482
+ image?: string;
483
+ github_commit?: string;
484
+ github_ref?: string;
485
+ github_actor?: string;
486
+ github_commit_message?: string;
487
+ status: import("./types.js").components["schemas"]["DeploymentStatus"];
488
+ metadata: {
489
+ [key: string]: unknown;
490
+ };
491
+ createdAt: string;
492
+ updatedAt?: string;
493
+ }>>;
494
+ pass: (params?: {
495
+ cursor?: string;
496
+ pageSize?: string;
497
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
498
+ id: string;
499
+ team: string;
500
+ app_id: string;
501
+ image?: string;
502
+ github_commit?: string;
503
+ github_ref?: string;
504
+ github_actor?: string;
505
+ github_commit_message?: string;
506
+ status: import("./types.js").components["schemas"]["DeploymentStatus"];
507
+ metadata: {
508
+ [key: string]: unknown;
509
+ };
510
+ createdAt: string;
511
+ updatedAt?: string;
512
+ }>>;
513
+ };
514
+ /**
515
+ * `POST /domain` — operationId: `domain/create`
516
+ *
517
+ * Create Domain
518
+ */
519
+ domainCreate(data: OpBody<"domain/create">): Promise<{
520
+ id: string;
521
+ team: string;
522
+ fqdn: string;
523
+ tls: boolean;
524
+ app_id: string | null;
525
+ verified: boolean;
526
+ active: boolean;
527
+ dns_alias: string | null;
528
+ status: import("./types.js").components["schemas"]["DomainStatus"];
529
+ metadata: {
530
+ [key: string]: unknown;
531
+ };
532
+ createdAt: string;
533
+ updatedAt?: string;
534
+ }>;
535
+ /**
536
+ * `DELETE /domain/{id}` — operationId: `domain/delete`
537
+ *
538
+ * Delete Domain
539
+ */
540
+ domainDelete(id: string): Promise<{
541
+ id: string;
542
+ team: string;
543
+ fqdn: string;
544
+ tls: boolean;
545
+ app_id: string | null;
546
+ verified: boolean;
547
+ active: boolean;
548
+ dns_alias: string | null;
549
+ status: import("./types.js").components["schemas"]["DomainStatus"];
550
+ metadata: {
551
+ [key: string]: unknown;
552
+ };
553
+ createdAt: string;
554
+ updatedAt?: string;
555
+ }>;
556
+ /**
557
+ * `GET /domain/fqdn/{fqdn}` — operationId: `domain/fqdn`
558
+ *
559
+ * Get domain by FQDN
560
+ */
561
+ domainFqdn(fqdn: string): Promise<{
562
+ id: string;
563
+ team: string;
564
+ fqdn: string;
565
+ tls: boolean;
566
+ app_id: string | null;
567
+ verified: boolean;
568
+ active: boolean;
569
+ dns_alias: string | null;
570
+ status: import("./types.js").components["schemas"]["DomainStatus"];
571
+ metadata: {
572
+ [key: string]: unknown;
573
+ };
574
+ createdAt: string;
575
+ updatedAt?: string;
576
+ }>;
577
+ /**
578
+ * `GET /domain/{id}` — operationId: `domain/get`
579
+ *
580
+ * Get Domain
581
+ */
582
+ domainGet(id: string): Promise<{
583
+ id: string;
584
+ team: string;
585
+ fqdn: string;
586
+ tls: boolean;
587
+ app_id: string | null;
588
+ verified: boolean;
589
+ active: boolean;
590
+ dns_alias: string | null;
591
+ status: import("./types.js").components["schemas"]["DomainStatus"];
592
+ metadata: {
593
+ [key: string]: unknown;
594
+ };
595
+ createdAt: string;
596
+ updatedAt?: string;
597
+ }>;
598
+ /**
599
+ * `GET /domain` — operationId: `domain/list`
600
+ *
601
+ * List Domains
602
+ */
603
+ domainList(params?: Omit<OpQuery<"domain/list">, "cursor" | "next">): {
604
+ all: () => Promise<{
605
+ id: string;
606
+ team: string;
607
+ fqdn: string;
608
+ tls: boolean;
609
+ app_id: string | null;
610
+ verified: boolean;
611
+ active: boolean;
612
+ dns_alias: string | null;
613
+ status: import("./types.js").components["schemas"]["DomainStatus"];
614
+ metadata: {
615
+ [key: string]: unknown;
616
+ };
617
+ createdAt: string;
618
+ updatedAt?: string;
619
+ }[]>;
620
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
621
+ id: string;
622
+ team: string;
623
+ fqdn: string;
624
+ tls: boolean;
625
+ app_id: string | null;
626
+ verified: boolean;
627
+ active: boolean;
628
+ dns_alias: string | null;
629
+ status: import("./types.js").components["schemas"]["DomainStatus"];
630
+ metadata: {
631
+ [key: string]: unknown;
632
+ };
633
+ createdAt: string;
634
+ updatedAt?: string;
635
+ }>>;
636
+ pass: (params?: {
637
+ cursor?: string;
638
+ pageSize?: string;
639
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
640
+ id: string;
641
+ team: string;
642
+ fqdn: string;
643
+ tls: boolean;
644
+ app_id: string | null;
645
+ verified: boolean;
646
+ active: boolean;
647
+ dns_alias: string | null;
648
+ status: import("./types.js").components["schemas"]["DomainStatus"];
649
+ metadata: {
650
+ [key: string]: unknown;
651
+ };
652
+ createdAt: string;
653
+ updatedAt?: string;
654
+ }>>;
655
+ };
656
+ /**
657
+ * `POST /domain/{id}` — operationId: `domain/update`
658
+ *
659
+ * Update Domain
660
+ */
661
+ domainUpdate(id: string, data: OpBody<"domain/update">): Promise<{
662
+ id: string;
663
+ team: string;
664
+ fqdn: string;
665
+ tls: boolean;
666
+ app_id: string | null;
667
+ verified: boolean;
668
+ active: boolean;
669
+ dns_alias: string | null;
670
+ status: import("./types.js").components["schemas"]["DomainStatus"];
671
+ metadata: {
672
+ [key: string]: unknown;
673
+ };
674
+ createdAt: string;
675
+ updatedAt?: string;
676
+ }>;
677
+ /**
678
+ * `POST /project` — operationId: `project/create`
679
+ *
680
+ * Create Project
681
+ */
682
+ projectCreate(data: OpBody<"project/create">): Promise<{
683
+ id: string;
684
+ name: string;
685
+ description: string;
686
+ slug: string;
687
+ team: string;
688
+ user_id?: string;
689
+ collaborators: string[];
690
+ createdAt: string;
691
+ updatedAt?: string;
692
+ }>;
693
+ /**
694
+ * `DELETE /project/{id}` — operationId: `project/delete`
695
+ *
696
+ * Delete Project
697
+ */
698
+ projectDelete(id: string): Promise<{
699
+ id: string;
700
+ name: string;
701
+ description: string;
702
+ slug: string;
703
+ team: string;
704
+ user_id?: string;
705
+ collaborators: string[];
706
+ createdAt: string;
707
+ updatedAt?: string;
708
+ }>;
709
+ /**
710
+ * `GET /project/{id}` — operationId: `project/get`
711
+ *
712
+ * Get Project
713
+ */
714
+ projectGet(id: string): Promise<{
715
+ id: string;
716
+ name: string;
717
+ description: string;
718
+ slug: string;
719
+ team: string;
720
+ user_id?: string;
721
+ collaborators: string[];
722
+ createdAt: string;
723
+ updatedAt?: string;
724
+ }>;
725
+ /**
726
+ * `POST /project/{id}/invite` — operationId: `project/invite`
727
+ *
728
+ * Invite collaborators to project
729
+ */
730
+ projectInvite(id: string, data: OpBody<"project/invite">): Promise<{
731
+ id: string;
732
+ name: string;
733
+ description: string;
734
+ slug: string;
735
+ team: string;
736
+ user_id?: string;
737
+ collaborators: string[];
738
+ createdAt: string;
739
+ updatedAt?: string;
740
+ }>;
741
+ /**
742
+ * `GET /project` — operationId: `project/list`
743
+ *
744
+ * List Projects
745
+ */
746
+ projectList(params?: Omit<OpQuery<"project/list">, "cursor" | "next">): {
747
+ all: () => Promise<{
748
+ id: string;
749
+ name: string;
750
+ description: string;
751
+ slug: string;
752
+ team: string;
753
+ user_id?: string;
754
+ collaborators: string[];
755
+ createdAt: string;
756
+ updatedAt?: string;
757
+ }[]>;
758
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
759
+ id: string;
760
+ name: string;
761
+ description: string;
762
+ slug: string;
763
+ team: string;
764
+ user_id?: string;
765
+ collaborators: string[];
766
+ createdAt: string;
767
+ updatedAt?: string;
768
+ }>>;
769
+ pass: (params?: {
770
+ cursor?: string;
771
+ pageSize?: string;
772
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
773
+ id: string;
774
+ name: string;
775
+ description: string;
776
+ slug: string;
777
+ team: string;
778
+ user_id?: string;
779
+ collaborators: string[];
780
+ createdAt: string;
781
+ updatedAt?: string;
782
+ }>>;
783
+ };
784
+ /**
785
+ * `POST /project/{id}` — operationId: `project/update`
786
+ *
787
+ * Update Project
788
+ */
789
+ projectUpdate(id: string, data: OpBody<"project/update">): Promise<{
790
+ id: string;
791
+ name: string;
792
+ description: string;
793
+ slug: string;
794
+ team: string;
795
+ user_id?: string;
796
+ collaborators: string[];
797
+ createdAt: string;
798
+ updatedAt?: string;
799
+ }>;
800
+ /**
801
+ * `POST /secret/createbatch` — operationId: `secrets/create_batch`
802
+ *
803
+ * Create secrets in batch
804
+ */
805
+ secretsCreateBatch(data: OpBody<"secrets/create_batch">): Promise<{
806
+ id: string;
807
+ team: string;
808
+ app_id?: string;
809
+ profile_id?: string;
810
+ related: string;
811
+ related_model: string;
812
+ name: string;
813
+ value: string;
814
+ metadata: {
815
+ [key: string]: unknown;
816
+ };
817
+ createdAt: string;
818
+ updatedAt?: string;
819
+ }[]>;
820
+ /**
821
+ * `DELETE /secret/{secret_id}` — operationId: `secrets/delete`
822
+ *
823
+ * Delete a secret
824
+ */
825
+ secretsDelete(secret_id: string): Promise<void>;
826
+ /**
827
+ * `GET /secret/{context_id}` — operationId: `secrets/list_app`
828
+ *
829
+ * List all secrets assigned to an App or Profile contexts
830
+ */
831
+ secretsListApp(context_id: string, params?: OpQuery<"secrets/list_app">): Promise<{
832
+ next: string | null;
833
+ results: import("./types.js").components["schemas"]["Secret"][];
834
+ }>;
835
+ /**
836
+ * `POST /secret` — operationId: `secrets/upsert`
837
+ *
838
+ * Upsert a secret
839
+ */
840
+ secretsUpsert(data: OpBody<"secrets/upsert">): Promise<{
841
+ id: string;
842
+ team: string;
843
+ app_id?: string;
844
+ profile_id?: string;
845
+ related: string;
846
+ related_model: string;
847
+ name: string;
848
+ value: string;
849
+ metadata: {
850
+ [key: string]: unknown;
851
+ };
852
+ createdAt: string;
853
+ updatedAt?: string;
854
+ }>;
855
+ /**
856
+ * `GET /usage/summary` — operationId: `usage/summary`
857
+ *
858
+ * Get team usage summary for the current billing period
859
+ */
860
+ usageSummary(): Promise<{
861
+ resources: {
862
+ apps: number;
863
+ domains: number;
864
+ deployments: number;
865
+ };
866
+ traffic: {
867
+ used_gb: number;
868
+ cost_estimate_cents: number;
869
+ };
870
+ teams: {
871
+ id: string;
872
+ name: string;
873
+ slug: string;
874
+ period: {
875
+ start: string;
876
+ end: string;
877
+ };
878
+ subscription: {
879
+ plan: string | null;
880
+ status: string;
881
+ } | null;
882
+ resources: {
883
+ apps: number;
884
+ domains: number;
885
+ deployments: number;
886
+ };
887
+ traffic: {
888
+ used_gb: number;
889
+ cost_estimate_cents: number;
890
+ } | null;
891
+ }[];
892
+ }>;
893
+ }
894
+ export {};
895
+ //# sourceMappingURL=generated-client.d.ts.map