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