@sylphx/contract 0.2.0 → 0.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/endpoint.d.ts +13 -1
  3. package/dist/endpoint.d.ts.map +1 -1
  4. package/dist/endpoints/admin-ai-playground.d.ts +3 -3
  5. package/dist/endpoints/admin-ai-playground.js +6 -6
  6. package/dist/endpoints/admin-anomalies.d.ts +7 -7
  7. package/dist/endpoints/admin-anomalies.js +14 -14
  8. package/dist/endpoints/admin-apm.d.ts +6 -6
  9. package/dist/endpoints/admin-apm.js +12 -12
  10. package/dist/endpoints/admin-audit.d.ts +185 -52
  11. package/dist/endpoints/admin-audit.d.ts.map +1 -1
  12. package/dist/endpoints/admin-audit.js +113 -113
  13. package/dist/endpoints/admin-billing.d.ts +19 -19
  14. package/dist/endpoints/admin-billing.js +38 -38
  15. package/dist/endpoints/admin-bootstrap.d.ts +1 -1
  16. package/dist/endpoints/admin-bootstrap.js +2 -2
  17. package/dist/endpoints/admin-broadcasts.d.ts +5 -5
  18. package/dist/endpoints/admin-broadcasts.js +10 -10
  19. package/dist/endpoints/admin-builds.d.ts +1 -1
  20. package/dist/endpoints/admin-builds.js +2 -2
  21. package/dist/endpoints/admin-config.d.ts +11 -11
  22. package/dist/endpoints/admin-config.js +22 -22
  23. package/dist/endpoints/admin-consent.d.ts +38 -14
  24. package/dist/endpoints/admin-consent.d.ts.map +1 -1
  25. package/dist/endpoints/admin-consent.js +27 -27
  26. package/dist/endpoints/admin-env-services.d.ts +1 -1
  27. package/dist/endpoints/admin-env-services.js +2 -2
  28. package/dist/endpoints/admin-impersonation.d.ts +9 -9
  29. package/dist/endpoints/admin-impersonation.js +18 -18
  30. package/dist/endpoints/admin-invitations.d.ts +5 -5
  31. package/dist/endpoints/admin-invitations.js +10 -10
  32. package/dist/endpoints/admin-jwt-keys.d.ts +6 -6
  33. package/dist/endpoints/admin-jwt-keys.js +12 -12
  34. package/dist/endpoints/admin-logs.d.ts +7 -7
  35. package/dist/endpoints/admin-logs.js +14 -14
  36. package/dist/endpoints/admin-plans.d.ts +4 -4
  37. package/dist/endpoints/admin-plans.js +8 -8
  38. package/dist/endpoints/admin-project-users.d.ts +8 -8
  39. package/dist/endpoints/admin-project-users.js +16 -16
  40. package/dist/endpoints/admin-projects.d.ts +36 -7
  41. package/dist/endpoints/admin-projects.d.ts.map +1 -1
  42. package/dist/endpoints/admin-projects.js +44 -15
  43. package/dist/endpoints/admin-quotas.d.ts +6 -6
  44. package/dist/endpoints/admin-quotas.js +12 -12
  45. package/dist/endpoints/admin-rate-limits.d.ts +2 -2
  46. package/dist/endpoints/admin-rate-limits.js +4 -4
  47. package/dist/endpoints/admin-reconcile.d.ts +1 -1
  48. package/dist/endpoints/admin-reconcile.js +2 -2
  49. package/dist/endpoints/admin-resources.d.ts +2 -2
  50. package/dist/endpoints/admin-resources.js +4 -4
  51. package/dist/endpoints/admin-secrets.d.ts +2 -2
  52. package/dist/endpoints/admin-secrets.js +4 -4
  53. package/dist/endpoints/admin-services.d.ts +1 -1
  54. package/dist/endpoints/admin-services.js +2 -2
  55. package/dist/endpoints/admin-tasks.d.ts +6 -6
  56. package/dist/endpoints/admin-tasks.js +12 -12
  57. package/dist/endpoints/admin-tenants.d.ts +1 -1
  58. package/dist/endpoints/admin-tenants.js +2 -2
  59. package/dist/endpoints/admin-traces.d.ts +5 -5
  60. package/dist/endpoints/admin-traces.js +10 -10
  61. package/dist/endpoints/admin-users.d.ts +8 -8
  62. package/dist/endpoints/admin-users.js +16 -16
  63. package/dist/endpoints/admin-webhook-signature-versions.d.ts +3 -3
  64. package/dist/endpoints/admin-webhook-signature-versions.js +6 -6
  65. package/dist/endpoints/auth.d.ts +6 -0
  66. package/dist/endpoints/auth.d.ts.map +1 -1
  67. package/dist/endpoints/auth.js +12 -1
  68. package/dist/endpoints/branch-databases.d.ts +27 -28
  69. package/dist/endpoints/branch-databases.d.ts.map +1 -1
  70. package/dist/endpoints/branch-databases.js +7 -7
  71. package/dist/endpoints/databases.d.ts +253 -3
  72. package/dist/endpoints/databases.d.ts.map +1 -1
  73. package/dist/endpoints/databases.js +19 -12
  74. package/dist/endpoints/environments.d.ts +9 -0
  75. package/dist/endpoints/environments.d.ts.map +1 -1
  76. package/dist/endpoints/organizations.d.ts +11 -0
  77. package/dist/endpoints/organizations.d.ts.map +1 -1
  78. package/dist/endpoints/organizations.js +8 -1
  79. package/dist/endpoints/project-manifest.d.ts +42 -34
  80. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  81. package/dist/endpoints/secrets.d.ts +6 -6
  82. package/dist/endpoints/secrets.d.ts.map +1 -1
  83. package/dist/endpoints/secrets.js +6 -5
  84. package/dist/endpoints/storage.d.ts +4 -6
  85. package/dist/endpoints/storage.d.ts.map +1 -1
  86. package/dist/endpoints/storage.js +1 -12
  87. package/dist/hono-app.d.ts +206 -0
  88. package/dist/hono-app.d.ts.map +1 -0
  89. package/dist/hono-app.js +62 -0
  90. package/dist/index.d.ts +503 -278
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +10 -4
  93. package/dist/schemas/admin-audit.d.ts +183 -0
  94. package/dist/schemas/admin-audit.d.ts.map +1 -1
  95. package/dist/schemas/admin-audit.js +144 -0
  96. package/dist/schemas/admin-consent.d.ts +32 -3
  97. package/dist/schemas/admin-consent.d.ts.map +1 -1
  98. package/dist/schemas/admin-consent.js +28 -1
  99. package/dist/schemas/admin-projects.d.ts +20 -0
  100. package/dist/schemas/admin-projects.d.ts.map +1 -1
  101. package/dist/schemas/admin-projects.js +17 -0
  102. package/dist/schemas/auth.d.ts +11 -0
  103. package/dist/schemas/auth.d.ts.map +1 -1
  104. package/dist/schemas/auth.js +10 -0
  105. package/dist/schemas/branch-database.d.ts +20 -19
  106. package/dist/schemas/branch-database.d.ts.map +1 -1
  107. package/dist/schemas/branch-database.js +9 -7
  108. package/dist/schemas/environment.d.ts +6 -0
  109. package/dist/schemas/environment.d.ts.map +1 -1
  110. package/dist/schemas/environment.js +2 -0
  111. package/dist/schemas/ids.d.ts +2 -0
  112. package/dist/schemas/ids.d.ts.map +1 -1
  113. package/dist/schemas/ids.js +1 -0
  114. package/dist/schemas/organization.d.ts +24 -2
  115. package/dist/schemas/organization.d.ts.map +1 -1
  116. package/dist/schemas/organization.js +13 -1
  117. package/dist/schemas/project-manifest.d.ts +59 -37
  118. package/dist/schemas/project-manifest.d.ts.map +1 -1
  119. package/dist/schemas/project-manifest.js +11 -3
  120. package/dist/schemas/secret.d.ts +1 -1
  121. package/dist/schemas/secret.js +2 -2
  122. package/dist/schemas/storage.d.ts +4 -5
  123. package/dist/schemas/storage.d.ts.map +1 -1
  124. package/dist/schemas/storage.js +5 -4
  125. package/package.json +16 -2
@@ -83,9 +83,10 @@ export declare const projectManifestEndpoints: {
83
83
  }[] | undefined;
84
84
  readonly services?: readonly {
85
85
  readonly name: string;
86
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
86
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
87
87
  readonly port?: number | undefined;
88
88
  readonly env?: readonly string[] | undefined;
89
+ readonly resources?: readonly string[] | undefined;
89
90
  readonly replicas?: number | undefined;
90
91
  readonly command?: string | undefined;
91
92
  readonly internal_port?: number | undefined;
@@ -95,7 +96,6 @@ export declare const projectManifestEndpoints: {
95
96
  readonly scale_to_zero?: boolean | undefined;
96
97
  readonly idle_timeout_seconds?: number | undefined;
97
98
  readonly min_replicas?: number | undefined;
98
- readonly resources?: readonly string[] | undefined;
99
99
  }[] | undefined;
100
100
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
101
101
  readonly env?: {
@@ -135,9 +135,10 @@ export declare const projectManifestEndpoints: {
135
135
  }[] | undefined;
136
136
  readonly services?: readonly {
137
137
  readonly name: string;
138
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
138
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
139
139
  readonly port?: number | undefined;
140
140
  readonly env?: readonly string[] | undefined;
141
+ readonly resources?: readonly string[] | undefined;
141
142
  readonly replicas?: number | undefined;
142
143
  readonly command?: string | undefined;
143
144
  readonly internal_port?: number | undefined;
@@ -147,7 +148,6 @@ export declare const projectManifestEndpoints: {
147
148
  readonly scale_to_zero?: boolean | undefined;
148
149
  readonly idle_timeout_seconds?: number | undefined;
149
150
  readonly min_replicas?: number | undefined;
150
- readonly resources?: readonly string[] | undefined;
151
151
  }[] | undefined;
152
152
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
153
153
  readonly env?: {
@@ -187,9 +187,10 @@ export declare const projectManifestEndpoints: {
187
187
  }[] | undefined;
188
188
  readonly services?: readonly {
189
189
  readonly name: string;
190
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
190
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
191
191
  readonly port?: number | undefined;
192
192
  readonly env?: readonly string[] | undefined;
193
+ readonly resources?: readonly string[] | undefined;
193
194
  readonly replicas?: number | undefined;
194
195
  readonly command?: string | undefined;
195
196
  readonly internal_port?: number | undefined;
@@ -199,7 +200,6 @@ export declare const projectManifestEndpoints: {
199
200
  readonly scale_to_zero?: boolean | undefined;
200
201
  readonly idle_timeout_seconds?: number | undefined;
201
202
  readonly min_replicas?: number | undefined;
202
- readonly resources?: readonly string[] | undefined;
203
203
  }[] | undefined;
204
204
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
205
205
  readonly env?: {
@@ -239,9 +239,10 @@ export declare const projectManifestEndpoints: {
239
239
  }[] | undefined;
240
240
  readonly services?: readonly {
241
241
  readonly name: string;
242
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
242
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
243
243
  readonly port?: number | undefined;
244
244
  readonly env?: readonly string[] | undefined;
245
+ readonly resources?: readonly string[] | undefined;
245
246
  readonly replicas?: number | undefined;
246
247
  readonly command?: string | undefined;
247
248
  readonly internal_port?: number | undefined;
@@ -251,7 +252,6 @@ export declare const projectManifestEndpoints: {
251
252
  readonly scale_to_zero?: boolean | undefined;
252
253
  readonly idle_timeout_seconds?: number | undefined;
253
254
  readonly min_replicas?: number | undefined;
254
- readonly resources?: readonly string[] | undefined;
255
255
  }[] | undefined;
256
256
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
257
257
  readonly env?: {
@@ -292,9 +292,10 @@ export declare const projectManifestEndpoints: {
292
292
  }[] | undefined;
293
293
  readonly services?: readonly {
294
294
  readonly name: string;
295
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
295
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
296
296
  readonly port?: number | undefined;
297
297
  readonly env?: readonly string[] | undefined;
298
+ readonly resources?: readonly string[] | undefined;
298
299
  readonly replicas?: number | undefined;
299
300
  readonly command?: string | undefined;
300
301
  readonly internal_port?: number | undefined;
@@ -304,7 +305,6 @@ export declare const projectManifestEndpoints: {
304
305
  readonly scale_to_zero?: boolean | undefined;
305
306
  readonly idle_timeout_seconds?: number | undefined;
306
307
  readonly min_replicas?: number | undefined;
307
- readonly resources?: readonly string[] | undefined;
308
308
  }[] | undefined;
309
309
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
310
310
  readonly env?: {
@@ -344,9 +344,10 @@ export declare const projectManifestEndpoints: {
344
344
  }[] | undefined;
345
345
  readonly services?: readonly {
346
346
  readonly name: string;
347
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
347
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
348
348
  readonly port?: number | undefined;
349
349
  readonly env?: readonly string[] | undefined;
350
+ readonly resources?: readonly string[] | undefined;
350
351
  readonly replicas?: number | undefined;
351
352
  readonly command?: string | undefined;
352
353
  readonly internal_port?: number | undefined;
@@ -356,7 +357,6 @@ export declare const projectManifestEndpoints: {
356
357
  readonly scale_to_zero?: boolean | undefined;
357
358
  readonly idle_timeout_seconds?: number | undefined;
358
359
  readonly min_replicas?: number | undefined;
359
- readonly resources?: readonly string[] | undefined;
360
360
  }[] | undefined;
361
361
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
362
362
  readonly env?: {
@@ -396,9 +396,10 @@ export declare const projectManifestEndpoints: {
396
396
  }[] | undefined;
397
397
  readonly services?: readonly {
398
398
  readonly name: string;
399
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
399
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
400
400
  readonly port?: number | undefined;
401
401
  readonly env?: readonly string[] | undefined;
402
+ readonly resources?: readonly string[] | undefined;
402
403
  readonly replicas?: number | undefined;
403
404
  readonly command?: string | undefined;
404
405
  readonly internal_port?: number | undefined;
@@ -408,7 +409,6 @@ export declare const projectManifestEndpoints: {
408
409
  readonly scale_to_zero?: boolean | undefined;
409
410
  readonly idle_timeout_seconds?: number | undefined;
410
411
  readonly min_replicas?: number | undefined;
411
- readonly resources?: readonly string[] | undefined;
412
412
  }[] | undefined;
413
413
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
414
414
  readonly env?: {
@@ -448,9 +448,10 @@ export declare const projectManifestEndpoints: {
448
448
  }[] | undefined;
449
449
  readonly services?: readonly {
450
450
  readonly name: string;
451
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
451
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
452
452
  readonly port?: number | undefined;
453
453
  readonly env?: readonly string[] | undefined;
454
+ readonly resources?: readonly string[] | undefined;
454
455
  readonly replicas?: number | undefined;
455
456
  readonly command?: string | undefined;
456
457
  readonly internal_port?: number | undefined;
@@ -460,7 +461,6 @@ export declare const projectManifestEndpoints: {
460
461
  readonly scale_to_zero?: boolean | undefined;
461
462
  readonly idle_timeout_seconds?: number | undefined;
462
463
  readonly min_replicas?: number | undefined;
463
- readonly resources?: readonly string[] | undefined;
464
464
  }[] | undefined;
465
465
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
466
466
  readonly env?: {
@@ -492,7 +492,8 @@ export declare const projectManifestEndpoints: {
492
492
  };
493
493
  }, never>>;
494
494
  resources: Schema.optional<Schema.Struct<{
495
- postgres: Schema.optional<Schema.Struct<{
495
+ database: Schema.optional<Schema.Struct<{
496
+ engine: Schema.optional<Schema.Literal<["postgres"]>>;
496
497
  tier: Schema.Literal<["nano", "micro", "standard", "large", "xl"]>;
497
498
  storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
498
499
  version: Schema.optional<Schema.Literal<["15", "16", "17"]>>;
@@ -512,7 +513,10 @@ export declare const projectManifestEndpoints: {
512
513
  mount: typeof Schema.String;
513
514
  }>>>;
514
515
  search: Schema.optional<Schema.Struct<{
516
+ engine: Schema.optional<Schema.Literal<["typesense"]>>;
515
517
  tier: Schema.Literal<["micro", "standard"]>;
518
+ storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
519
+ nodes: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
516
520
  }>>;
517
521
  }>>;
518
522
  ci: Schema.optional<Schema.Struct<{
@@ -596,9 +600,10 @@ export declare const projectManifestEndpoints: {
596
600
  }[] | undefined;
597
601
  readonly services?: readonly {
598
602
  readonly name: string;
599
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
603
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
600
604
  readonly port?: number | undefined;
601
605
  readonly env?: readonly string[] | undefined;
606
+ readonly resources?: readonly string[] | undefined;
602
607
  readonly replicas?: number | undefined;
603
608
  readonly command?: string | undefined;
604
609
  readonly internal_port?: number | undefined;
@@ -608,7 +613,6 @@ export declare const projectManifestEndpoints: {
608
613
  readonly scale_to_zero?: boolean | undefined;
609
614
  readonly idle_timeout_seconds?: number | undefined;
610
615
  readonly min_replicas?: number | undefined;
611
- readonly resources?: readonly string[] | undefined;
612
616
  }[] | undefined;
613
617
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
614
618
  readonly env?: {
@@ -648,9 +652,10 @@ export declare const projectManifestEndpoints: {
648
652
  }[] | undefined;
649
653
  readonly services?: readonly {
650
654
  readonly name: string;
651
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
655
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
652
656
  readonly port?: number | undefined;
653
657
  readonly env?: readonly string[] | undefined;
658
+ readonly resources?: readonly string[] | undefined;
654
659
  readonly replicas?: number | undefined;
655
660
  readonly command?: string | undefined;
656
661
  readonly internal_port?: number | undefined;
@@ -660,7 +665,6 @@ export declare const projectManifestEndpoints: {
660
665
  readonly scale_to_zero?: boolean | undefined;
661
666
  readonly idle_timeout_seconds?: number | undefined;
662
667
  readonly min_replicas?: number | undefined;
663
- readonly resources?: readonly string[] | undefined;
664
668
  }[] | undefined;
665
669
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
666
670
  readonly env?: {
@@ -700,9 +704,10 @@ export declare const projectManifestEndpoints: {
700
704
  }[] | undefined;
701
705
  readonly services?: readonly {
702
706
  readonly name: string;
703
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
707
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
704
708
  readonly port?: number | undefined;
705
709
  readonly env?: readonly string[] | undefined;
710
+ readonly resources?: readonly string[] | undefined;
706
711
  readonly replicas?: number | undefined;
707
712
  readonly command?: string | undefined;
708
713
  readonly internal_port?: number | undefined;
@@ -712,7 +717,6 @@ export declare const projectManifestEndpoints: {
712
717
  readonly scale_to_zero?: boolean | undefined;
713
718
  readonly idle_timeout_seconds?: number | undefined;
714
719
  readonly min_replicas?: number | undefined;
715
- readonly resources?: readonly string[] | undefined;
716
720
  }[] | undefined;
717
721
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
718
722
  readonly env?: {
@@ -752,9 +756,10 @@ export declare const projectManifestEndpoints: {
752
756
  }[] | undefined;
753
757
  readonly services?: readonly {
754
758
  readonly name: string;
755
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
759
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
756
760
  readonly port?: number | undefined;
757
761
  readonly env?: readonly string[] | undefined;
762
+ readonly resources?: readonly string[] | undefined;
758
763
  readonly replicas?: number | undefined;
759
764
  readonly command?: string | undefined;
760
765
  readonly internal_port?: number | undefined;
@@ -764,7 +769,6 @@ export declare const projectManifestEndpoints: {
764
769
  readonly scale_to_zero?: boolean | undefined;
765
770
  readonly idle_timeout_seconds?: number | undefined;
766
771
  readonly min_replicas?: number | undefined;
767
- readonly resources?: readonly string[] | undefined;
768
772
  }[] | undefined;
769
773
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
770
774
  readonly env?: {
@@ -805,9 +809,10 @@ export declare const projectManifestEndpoints: {
805
809
  }[] | undefined;
806
810
  readonly services?: readonly {
807
811
  readonly name: string;
808
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
812
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
809
813
  readonly port?: number | undefined;
810
814
  readonly env?: readonly string[] | undefined;
815
+ readonly resources?: readonly string[] | undefined;
811
816
  readonly replicas?: number | undefined;
812
817
  readonly command?: string | undefined;
813
818
  readonly internal_port?: number | undefined;
@@ -817,7 +822,6 @@ export declare const projectManifestEndpoints: {
817
822
  readonly scale_to_zero?: boolean | undefined;
818
823
  readonly idle_timeout_seconds?: number | undefined;
819
824
  readonly min_replicas?: number | undefined;
820
- readonly resources?: readonly string[] | undefined;
821
825
  }[] | undefined;
822
826
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
823
827
  readonly env?: {
@@ -857,9 +861,10 @@ export declare const projectManifestEndpoints: {
857
861
  }[] | undefined;
858
862
  readonly services?: readonly {
859
863
  readonly name: string;
860
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
864
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
861
865
  readonly port?: number | undefined;
862
866
  readonly env?: readonly string[] | undefined;
867
+ readonly resources?: readonly string[] | undefined;
863
868
  readonly replicas?: number | undefined;
864
869
  readonly command?: string | undefined;
865
870
  readonly internal_port?: number | undefined;
@@ -869,7 +874,6 @@ export declare const projectManifestEndpoints: {
869
874
  readonly scale_to_zero?: boolean | undefined;
870
875
  readonly idle_timeout_seconds?: number | undefined;
871
876
  readonly min_replicas?: number | undefined;
872
- readonly resources?: readonly string[] | undefined;
873
877
  }[] | undefined;
874
878
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
875
879
  readonly env?: {
@@ -909,9 +913,10 @@ export declare const projectManifestEndpoints: {
909
913
  }[] | undefined;
910
914
  readonly services?: readonly {
911
915
  readonly name: string;
912
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
916
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
913
917
  readonly port?: number | undefined;
914
918
  readonly env?: readonly string[] | undefined;
919
+ readonly resources?: readonly string[] | undefined;
915
920
  readonly replicas?: number | undefined;
916
921
  readonly command?: string | undefined;
917
922
  readonly internal_port?: number | undefined;
@@ -921,7 +926,6 @@ export declare const projectManifestEndpoints: {
921
926
  readonly scale_to_zero?: boolean | undefined;
922
927
  readonly idle_timeout_seconds?: number | undefined;
923
928
  readonly min_replicas?: number | undefined;
924
- readonly resources?: readonly string[] | undefined;
925
929
  }[] | undefined;
926
930
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
927
931
  readonly env?: {
@@ -961,9 +965,10 @@ export declare const projectManifestEndpoints: {
961
965
  }[] | undefined;
962
966
  readonly services?: readonly {
963
967
  readonly name: string;
964
- readonly type?: "function" | "web" | "cron" | "worker" | undefined;
968
+ readonly type?: "function" | "cron" | "web" | "worker" | undefined;
965
969
  readonly port?: number | undefined;
966
970
  readonly env?: readonly string[] | undefined;
971
+ readonly resources?: readonly string[] | undefined;
967
972
  readonly replicas?: number | undefined;
968
973
  readonly command?: string | undefined;
969
974
  readonly internal_port?: number | undefined;
@@ -973,7 +978,6 @@ export declare const projectManifestEndpoints: {
973
978
  readonly scale_to_zero?: boolean | undefined;
974
979
  readonly idle_timeout_seconds?: number | undefined;
975
980
  readonly min_replicas?: number | undefined;
976
- readonly resources?: readonly string[] | undefined;
977
981
  }[] | undefined;
978
982
  readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
979
983
  readonly env?: {
@@ -1005,7 +1009,8 @@ export declare const projectManifestEndpoints: {
1005
1009
  };
1006
1010
  }, never>>;
1007
1011
  resources: Schema.optional<Schema.Struct<{
1008
- postgres: Schema.optional<Schema.Struct<{
1012
+ database: Schema.optional<Schema.Struct<{
1013
+ engine: Schema.optional<Schema.Literal<["postgres"]>>;
1009
1014
  tier: Schema.Literal<["nano", "micro", "standard", "large", "xl"]>;
1010
1015
  storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1011
1016
  version: Schema.optional<Schema.Literal<["15", "16", "17"]>>;
@@ -1025,7 +1030,10 @@ export declare const projectManifestEndpoints: {
1025
1030
  mount: typeof Schema.String;
1026
1031
  }>>>;
1027
1032
  search: Schema.optional<Schema.Struct<{
1033
+ engine: Schema.optional<Schema.Literal<["typesense"]>>;
1028
1034
  tier: Schema.Literal<["micro", "standard"]>;
1035
+ storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1036
+ nodes: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1029
1037
  }>>;
1030
1038
  }>>;
1031
1039
  ci: Schema.optional<Schema.Struct<{
@@ -1 +1 @@
1
- {"version":3,"file":"project-manifest.d.ts","sourceRoot":"","sources":["../../src/endpoints/project-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2B/B,eA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB3B,CAAA"}
@@ -5,8 +5,8 @@
5
5
  import { Schema } from 'effect';
6
6
  export declare const secretsEndpoints: {
7
7
  readonly list: import("../endpoint.js").Endpoint<"GET", "/secrets", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
8
- projectId: typeof Schema.String;
9
- environmentId: Schema.optional<typeof Schema.String>;
8
+ projectId: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
9
+ environmentId: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">>;
10
10
  includeInactive: Schema.optional<typeof Schema.String>;
11
11
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
12
12
  secrets: Schema.Array$<Schema.Struct<{
@@ -24,7 +24,7 @@ export declare const secretsEndpoints: {
24
24
  }>>;
25
25
  }>>;
26
26
  readonly get: import("../endpoint.js").Endpoint<"GET", "/secrets/detail", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
27
- id: typeof Schema.String;
27
+ id: Schema.brand<Schema.filter<typeof Schema.String>, "SecretId">;
28
28
  reveal: Schema.optional<typeof Schema.String>;
29
29
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
30
30
  id: Schema.brand<Schema.filter<typeof Schema.String>, "SecretId">;
@@ -47,7 +47,7 @@ export declare const secretsEndpoints: {
47
47
  updatedAt: typeof Schema.String;
48
48
  }>>;
49
49
  readonly create: import("../endpoint.js").Endpoint<"POST", "/secrets", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
50
- projectId: typeof Schema.String;
50
+ projectId: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
51
51
  key: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
52
52
  value: Schema.filter<Schema.filter<typeof Schema.String>>;
53
53
  description: Schema.optional<typeof Schema.String>;
@@ -69,7 +69,7 @@ export declare const secretsEndpoints: {
69
69
  version: typeof Schema.String;
70
70
  }>>;
71
71
  readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/secrets", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
72
- id: typeof Schema.String;
72
+ id: Schema.brand<Schema.filter<typeof Schema.String>, "SecretId">;
73
73
  }>, Schema.Struct<{
74
74
  success: typeof Schema.Boolean;
75
75
  }>>;
@@ -84,7 +84,7 @@ export declare const secretsEndpoints: {
84
84
  rolledBackTo: typeof Schema.String;
85
85
  }>>;
86
86
  readonly stats: import("../endpoint.js").Endpoint<"GET", "/secrets/stats", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
87
- projectId: typeof Schema.String;
87
+ projectId: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
88
88
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
89
89
  stats: Schema.Array$<Schema.Struct<{
90
90
  environmentId: Schema.NullOr<typeof Schema.String>;
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/endpoints/secrets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA4B/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEnB,CAAA"}
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/endpoints/secrets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA6B/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEnB,CAAA"}
@@ -4,18 +4,19 @@
4
4
  */
5
5
  import { Schema } from 'effect';
6
6
  import { defineEndpoint } from '../endpoint.js';
7
+ import { EnvironmentId, ProjectId, SecretId } from '../schemas/ids.js';
7
8
  import { CreateSecretInput, CreateSecretResult, RollbackSecretInput, RollbackSecretResult, SecretDetail, SecretListItem, UpdateSecretInput, UpdateSecretResult, } from '../schemas/secret.js';
8
9
  const ListQuery = Schema.Struct({
9
- projectId: Schema.String,
10
- environmentId: Schema.optional(Schema.String),
10
+ projectId: ProjectId,
11
+ environmentId: Schema.optional(EnvironmentId),
11
12
  includeInactive: Schema.optional(Schema.String),
12
13
  });
13
14
  const DetailQuery = Schema.Struct({
14
- id: Schema.String,
15
+ id: SecretId,
15
16
  reveal: Schema.optional(Schema.String),
16
17
  });
17
- const StatsQuery = Schema.Struct({ projectId: Schema.String });
18
- const DeleteBody = Schema.Struct({ id: Schema.String });
18
+ const StatsQuery = Schema.Struct({ projectId: ProjectId });
19
+ const DeleteBody = Schema.Struct({ id: SecretId });
19
20
  export const secretsEndpoints = {
20
21
  list: defineEndpoint({
21
22
  method: 'GET',
@@ -22,6 +22,10 @@ export declare const storageEndpoints: {
22
22
  publicUrl: Schema.optional<typeof Schema.String>;
23
23
  fileId: Schema.optional<typeof Schema.String>;
24
24
  expiresAt: Schema.optional<typeof Schema.String>;
25
+ presignedUrl: Schema.optional<typeof Schema.String>;
26
+ storageKey: Schema.optional<typeof Schema.String>;
27
+ tokenPayload: Schema.optional<typeof Schema.String>;
28
+ url: Schema.optional<typeof Schema.String>;
25
29
  uploadEndpoint: Schema.optional<typeof Schema.String>;
26
30
  clientPayload: Schema.optional<typeof Schema.String>;
27
31
  maxSize: Schema.optional<typeof Schema.Number>;
@@ -157,11 +161,5 @@ export declare const storageEndpoints: {
157
161
  uploadedAt: Schema.optional<typeof Schema.String>;
158
162
  }>;
159
163
  }>>;
160
- readonly softDelete: import("../endpoint.js").Endpoint<"DELETE", "/storage/files/:id", Schema.Struct<{
161
- id: typeof Schema.String;
162
- }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
163
- success: Schema.Literal<[true]>;
164
- isDeleted: Schema.Literal<[true]>;
165
- }>>;
166
164
  };
167
165
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/endpoints/storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAyB/B,eAAO,MAAM,gBAAgB;IAC5B;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EM,CAAA"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/endpoints/storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwB/B,eAAO,MAAM,gBAAgB;IAC5B;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEM,CAAA"}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { Schema } from 'effect';
5
5
  import { defineEndpoint } from '../endpoint.js';
6
- import { DeleteFileResult, FileInfo, ListFilesQuery, ListFilesResult, ListFileVersionsResult, RestoreFileResult, RestoreVersionResult, SignedUrlInput, SignedUrlResult, SoftDeleteFileResult, UploadTokenInput, UploadTokenResult, UploadUrlInput, UploadUrlResult, } from '../schemas/storage.js';
6
+ import { DeleteFileResult, FileInfo, ListFilesQuery, ListFilesResult, ListFileVersionsResult, RestoreFileResult, RestoreVersionResult, SignedUrlInput, SignedUrlResult, UploadTokenInput, UploadTokenResult, UploadUrlInput, UploadUrlResult, } from '../schemas/storage.js';
7
7
  const IdPath = Schema.Struct({ id: Schema.String });
8
8
  const FileVersionPath = Schema.Struct({
9
9
  id: Schema.String,
@@ -103,15 +103,4 @@ export const storageEndpoints = {
103
103
  summary: 'Restore a soft-deleted file',
104
104
  tags: ['storage'],
105
105
  }),
106
- // Alias of `delete` — explicit endpoint name so SDK `softDeleteFile()`
107
- // is unambiguous; same underlying route.
108
- softDelete: defineEndpoint({
109
- method: 'DELETE',
110
- path: '/storage/files/:id',
111
- params: IdPath,
112
- response: SoftDeleteFileResult,
113
- plane: 'baas',
114
- summary: 'Soft-delete a stored file (explicit alias of delete)',
115
- tags: ['storage'],
116
- }),
117
106
  };