@distilled.cloud/cloudflare 0.26.0 → 0.27.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 (60) hide show
  1. package/lib/client/api.d.ts.map +1 -1
  2. package/lib/client/api.js +15 -7
  3. package/lib/client/api.js.map +1 -1
  4. package/lib/services/ai-gateway.d.ts +7 -1
  5. package/lib/services/ai-gateway.d.ts.map +1 -1
  6. package/lib/services/ai-gateway.js +3 -1
  7. package/lib/services/ai-gateway.js.map +1 -1
  8. package/lib/services/aisearch.d.ts +7 -1
  9. package/lib/services/aisearch.d.ts.map +1 -1
  10. package/lib/services/aisearch.js +6 -0
  11. package/lib/services/aisearch.js.map +1 -1
  12. package/lib/services/api-gateway.d.ts +1 -1
  13. package/lib/services/api-gateway.d.ts.map +1 -1
  14. package/lib/services/api-gateway.js +1 -1
  15. package/lib/services/api-gateway.js.map +1 -1
  16. package/lib/services/cache.d.ts +7 -1
  17. package/lib/services/cache.d.ts.map +1 -1
  18. package/lib/services/cache.js +6 -1
  19. package/lib/services/cache.js.map +1 -1
  20. package/lib/services/iam.d.ts +7 -1
  21. package/lib/services/iam.d.ts.map +1 -1
  22. package/lib/services/iam.js +6 -1
  23. package/lib/services/iam.js.map +1 -1
  24. package/lib/services/page-rules.d.ts +7 -1
  25. package/lib/services/page-rules.d.ts.map +1 -1
  26. package/lib/services/page-rules.js +6 -1
  27. package/lib/services/page-rules.js.map +1 -1
  28. package/lib/services/pages.d.ts +8 -8
  29. package/lib/services/pages.d.ts.map +1 -1
  30. package/lib/services/pages.js +408 -396
  31. package/lib/services/pages.js.map +1 -1
  32. package/lib/services/r2.d.ts +7 -1
  33. package/lib/services/r2.d.ts.map +1 -1
  34. package/lib/services/r2.js +13 -1
  35. package/lib/services/r2.js.map +1 -1
  36. package/lib/services/schema-validation.d.ts +7 -1
  37. package/lib/services/schema-validation.d.ts.map +1 -1
  38. package/lib/services/schema-validation.js +6 -1
  39. package/lib/services/schema-validation.js.map +1 -1
  40. package/lib/services/workers.d.ts +7 -1
  41. package/lib/services/workers.d.ts.map +1 -1
  42. package/lib/services/workers.js +6 -1
  43. package/lib/services/workers.js.map +1 -1
  44. package/lib/services/zero-trust.d.ts +9 -3
  45. package/lib/services/zero-trust.d.ts.map +1 -1
  46. package/lib/services/zero-trust.js +8 -6
  47. package/lib/services/zero-trust.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/client/api.ts +15 -8
  50. package/src/services/ai-gateway.ts +13 -2
  51. package/src/services/aisearch.ts +10 -0
  52. package/src/services/api-gateway.ts +2 -2
  53. package/src/services/cache.ts +11 -2
  54. package/src/services/iam.ts +13 -2
  55. package/src/services/page-rules.ts +13 -2
  56. package/src/services/pages.ts +780 -760
  57. package/src/services/r2.ts +20 -2
  58. package/src/services/schema-validation.ts +10 -2
  59. package/src/services/workers.ts +11 -2
  60. package/src/services/zero-trust.ts +23 -9
@@ -232,7 +232,7 @@ export interface GetProjectResponse {
232
232
  createdOn: string;
233
233
  /** Configs for deployments in a project. */
234
234
  deploymentConfigs: {
235
- preview: {
235
+ preview?: {
236
236
  alwaysUseLatestCompatibilityDate: boolean;
237
237
  buildImageMajorVersion: number;
238
238
  compatibilityDate: string;
@@ -255,8 +255,8 @@ export interface GetProjectResponse {
255
255
  services?: Record<string, unknown> | null;
256
256
  vectorizeBindings?: Record<string, unknown> | null;
257
257
  wranglerConfigHash?: string | null;
258
- };
259
- production: {
258
+ } | null;
259
+ production?: {
260
260
  alwaysUseLatestCompatibilityDate: boolean;
261
261
  buildImageMajorVersion: number;
262
262
  compatibilityDate: string;
@@ -279,7 +279,7 @@ export interface GetProjectResponse {
279
279
  services?: Record<string, unknown> | null;
280
280
  vectorizeBindings?: Record<string, unknown> | null;
281
281
  wranglerConfigHash?: string | null;
282
- };
282
+ } | null;
283
283
  };
284
284
  /** Framework the project is using. */
285
285
  framework: string;
@@ -620,367 +620,377 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
620
620
  ]),
621
621
  createdOn: Schema.String,
622
622
  deploymentConfigs: Schema.Struct({
623
- preview: Schema.Struct({
624
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
625
- buildImageMajorVersion: Schema.Number,
626
- compatibilityDate: Schema.String,
627
- compatibilityFlags: Schema.Array(Schema.String),
628
- envVars: Schema.Union([
629
- Schema.Record(Schema.String, Schema.Unknown),
623
+ preview: Schema.optional(
624
+ Schema.Union([
625
+ Schema.Struct({
626
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
627
+ buildImageMajorVersion: Schema.Number,
628
+ compatibilityDate: Schema.String,
629
+ compatibilityFlags: Schema.Array(Schema.String),
630
+ envVars: Schema.Union([
631
+ Schema.Record(Schema.String, Schema.Unknown),
632
+ Schema.Null,
633
+ ]),
634
+ failOpen: Schema.Boolean,
635
+ usageModel: Schema.Union([
636
+ Schema.Literals(["standard", "bundled", "unbound"]),
637
+ Schema.String,
638
+ ]),
639
+ aiBindings: Schema.optional(
640
+ Schema.Union([
641
+ Schema.Record(Schema.String, Schema.Unknown),
642
+ Schema.Null,
643
+ ]),
644
+ ),
645
+ analyticsEngineDatasets: Schema.optional(
646
+ Schema.Union([
647
+ Schema.Record(Schema.String, Schema.Unknown),
648
+ Schema.Null,
649
+ ]),
650
+ ),
651
+ browsers: Schema.optional(
652
+ Schema.Union([
653
+ Schema.Record(Schema.String, Schema.Unknown),
654
+ Schema.Null,
655
+ ]),
656
+ ),
657
+ d1Databases: Schema.optional(
658
+ Schema.Union([
659
+ Schema.Record(Schema.String, Schema.Unknown),
660
+ Schema.Null,
661
+ ]),
662
+ ),
663
+ durableObjectNamespaces: Schema.optional(
664
+ Schema.Union([
665
+ Schema.Record(Schema.String, Schema.Unknown),
666
+ Schema.Null,
667
+ ]),
668
+ ),
669
+ hyperdriveBindings: Schema.optional(
670
+ Schema.Union([
671
+ Schema.Record(Schema.String, Schema.Unknown),
672
+ Schema.Null,
673
+ ]),
674
+ ),
675
+ kvNamespaces: Schema.optional(
676
+ Schema.Union([
677
+ Schema.Record(Schema.String, Schema.Unknown),
678
+ Schema.Null,
679
+ ]),
680
+ ),
681
+ limits: Schema.optional(
682
+ Schema.Union([
683
+ Schema.Struct({
684
+ cpuMs: Schema.Number,
685
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
686
+ Schema.Null,
687
+ ]),
688
+ ),
689
+ mtlsCertificates: Schema.optional(
690
+ Schema.Union([
691
+ Schema.Record(Schema.String, Schema.Unknown),
692
+ Schema.Null,
693
+ ]),
694
+ ),
695
+ placement: Schema.optional(
696
+ Schema.Union([
697
+ Schema.Struct({
698
+ mode: Schema.String,
699
+ }),
700
+ Schema.Null,
701
+ ]),
702
+ ),
703
+ queueProducers: Schema.optional(
704
+ Schema.Union([
705
+ Schema.Record(Schema.String, Schema.Unknown),
706
+ Schema.Null,
707
+ ]),
708
+ ),
709
+ r2Buckets: Schema.optional(
710
+ Schema.Union([
711
+ Schema.Record(Schema.String, Schema.Unknown),
712
+ Schema.Null,
713
+ ]),
714
+ ),
715
+ services: Schema.optional(
716
+ Schema.Union([
717
+ Schema.Record(Schema.String, Schema.Unknown),
718
+ Schema.Null,
719
+ ]),
720
+ ),
721
+ vectorizeBindings: Schema.optional(
722
+ Schema.Union([
723
+ Schema.Record(Schema.String, Schema.Unknown),
724
+ Schema.Null,
725
+ ]),
726
+ ),
727
+ wranglerConfigHash: Schema.optional(
728
+ Schema.Union([Schema.String, Schema.Null]),
729
+ ),
730
+ }).pipe(
731
+ Schema.encodeKeys({
732
+ alwaysUseLatestCompatibilityDate:
733
+ "always_use_latest_compatibility_date",
734
+ buildImageMajorVersion: "build_image_major_version",
735
+ compatibilityDate: "compatibility_date",
736
+ compatibilityFlags: "compatibility_flags",
737
+ envVars: "env_vars",
738
+ failOpen: "fail_open",
739
+ usageModel: "usage_model",
740
+ aiBindings: "ai_bindings",
741
+ analyticsEngineDatasets: "analytics_engine_datasets",
742
+ browsers: "browsers",
743
+ d1Databases: "d1_databases",
744
+ durableObjectNamespaces: "durable_object_namespaces",
745
+ hyperdriveBindings: "hyperdrive_bindings",
746
+ kvNamespaces: "kv_namespaces",
747
+ limits: "limits",
748
+ mtlsCertificates: "mtls_certificates",
749
+ placement: "placement",
750
+ queueProducers: "queue_producers",
751
+ r2Buckets: "r2_buckets",
752
+ services: "services",
753
+ vectorizeBindings: "vectorize_bindings",
754
+ wranglerConfigHash: "wrangler_config_hash",
755
+ }),
756
+ ),
630
757
  Schema.Null,
631
758
  ]),
632
- failOpen: Schema.Boolean,
633
- usageModel: Schema.Union([
634
- Schema.Literals(["standard", "bundled", "unbound"]),
635
- Schema.String,
636
- ]),
637
- aiBindings: Schema.optional(
638
- Schema.Union([
639
- Schema.Record(Schema.String, Schema.Unknown),
640
- Schema.Null,
641
- ]),
642
- ),
643
- analyticsEngineDatasets: Schema.optional(
644
- Schema.Union([
645
- Schema.Record(Schema.String, Schema.Unknown),
646
- Schema.Null,
647
- ]),
648
- ),
649
- browsers: Schema.optional(
650
- Schema.Union([
651
- Schema.Record(Schema.String, Schema.Unknown),
652
- Schema.Null,
653
- ]),
654
- ),
655
- d1Databases: Schema.optional(
656
- Schema.Union([
657
- Schema.Record(Schema.String, Schema.Unknown),
658
- Schema.Null,
659
- ]),
660
- ),
661
- durableObjectNamespaces: Schema.optional(
662
- Schema.Union([
663
- Schema.Record(Schema.String, Schema.Unknown),
664
- Schema.Null,
665
- ]),
666
- ),
667
- hyperdriveBindings: Schema.optional(
668
- Schema.Union([
669
- Schema.Record(Schema.String, Schema.Unknown),
670
- Schema.Null,
671
- ]),
672
- ),
673
- kvNamespaces: Schema.optional(
674
- Schema.Union([
675
- Schema.Record(Schema.String, Schema.Unknown),
676
- Schema.Null,
677
- ]),
678
- ),
679
- limits: Schema.optional(
680
- Schema.Union([
681
- Schema.Struct({
682
- cpuMs: Schema.Number,
683
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
684
- Schema.Null,
685
- ]),
686
- ),
687
- mtlsCertificates: Schema.optional(
688
- Schema.Union([
689
- Schema.Record(Schema.String, Schema.Unknown),
690
- Schema.Null,
691
- ]),
692
- ),
693
- placement: Schema.optional(
694
- Schema.Union([
695
- Schema.Struct({
696
- mode: Schema.String,
697
- }),
698
- Schema.Null,
699
- ]),
700
- ),
701
- queueProducers: Schema.optional(
702
- Schema.Union([
703
- Schema.Record(Schema.String, Schema.Unknown),
704
- Schema.Null,
705
- ]),
706
- ),
707
- r2Buckets: Schema.optional(
708
- Schema.Union([
709
- Schema.Record(Schema.String, Schema.Unknown),
710
- Schema.Null,
711
- ]),
712
- ),
713
- services: Schema.optional(
714
- Schema.Union([
715
- Schema.Record(Schema.String, Schema.Unknown),
716
- Schema.Null,
717
- ]),
718
- ),
719
- vectorizeBindings: Schema.optional(
720
- Schema.Union([
721
- Schema.Record(Schema.String, Schema.Unknown),
722
- Schema.Null,
723
- ]),
724
- ),
725
- wranglerConfigHash: Schema.optional(
726
- Schema.Union([Schema.String, Schema.Null]),
727
- ),
728
- }).pipe(
729
- Schema.encodeKeys({
730
- alwaysUseLatestCompatibilityDate:
731
- "always_use_latest_compatibility_date",
732
- buildImageMajorVersion: "build_image_major_version",
733
- compatibilityDate: "compatibility_date",
734
- compatibilityFlags: "compatibility_flags",
735
- envVars: "env_vars",
736
- failOpen: "fail_open",
737
- usageModel: "usage_model",
738
- aiBindings: "ai_bindings",
739
- analyticsEngineDatasets: "analytics_engine_datasets",
740
- browsers: "browsers",
741
- d1Databases: "d1_databases",
742
- durableObjectNamespaces: "durable_object_namespaces",
743
- hyperdriveBindings: "hyperdrive_bindings",
744
- kvNamespaces: "kv_namespaces",
745
- limits: "limits",
746
- mtlsCertificates: "mtls_certificates",
747
- placement: "placement",
748
- queueProducers: "queue_producers",
749
- r2Buckets: "r2_buckets",
750
- services: "services",
751
- vectorizeBindings: "vectorize_bindings",
752
- wranglerConfigHash: "wrangler_config_hash",
753
- }),
754
759
  ),
755
- production: Schema.Struct({
756
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
757
- buildImageMajorVersion: Schema.Number,
758
- compatibilityDate: Schema.String,
759
- compatibilityFlags: Schema.Array(Schema.String),
760
+ production: Schema.optional(
761
+ Schema.Union([
762
+ Schema.Struct({
763
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
764
+ buildImageMajorVersion: Schema.Number,
765
+ compatibilityDate: Schema.String,
766
+ compatibilityFlags: Schema.Array(Schema.String),
767
+ envVars: Schema.Union([
768
+ Schema.Record(Schema.String, Schema.Unknown),
769
+ Schema.Null,
770
+ ]),
771
+ failOpen: Schema.Boolean,
772
+ usageModel: Schema.Union([
773
+ Schema.Literals(["standard", "bundled", "unbound"]),
774
+ Schema.String,
775
+ ]),
776
+ aiBindings: Schema.optional(
777
+ Schema.Union([
778
+ Schema.Record(Schema.String, Schema.Unknown),
779
+ Schema.Null,
780
+ ]),
781
+ ),
782
+ analyticsEngineDatasets: Schema.optional(
783
+ Schema.Union([
784
+ Schema.Record(Schema.String, Schema.Unknown),
785
+ Schema.Null,
786
+ ]),
787
+ ),
788
+ browsers: Schema.optional(
789
+ Schema.Union([
790
+ Schema.Record(Schema.String, Schema.Unknown),
791
+ Schema.Null,
792
+ ]),
793
+ ),
794
+ d1Databases: Schema.optional(
795
+ Schema.Union([
796
+ Schema.Record(Schema.String, Schema.Unknown),
797
+ Schema.Null,
798
+ ]),
799
+ ),
800
+ durableObjectNamespaces: Schema.optional(
801
+ Schema.Union([
802
+ Schema.Record(Schema.String, Schema.Unknown),
803
+ Schema.Null,
804
+ ]),
805
+ ),
806
+ hyperdriveBindings: Schema.optional(
807
+ Schema.Union([
808
+ Schema.Record(Schema.String, Schema.Unknown),
809
+ Schema.Null,
810
+ ]),
811
+ ),
812
+ kvNamespaces: Schema.optional(
813
+ Schema.Union([
814
+ Schema.Record(Schema.String, Schema.Unknown),
815
+ Schema.Null,
816
+ ]),
817
+ ),
818
+ limits: Schema.optional(
819
+ Schema.Union([
820
+ Schema.Struct({
821
+ cpuMs: Schema.Number,
822
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
823
+ Schema.Null,
824
+ ]),
825
+ ),
826
+ mtlsCertificates: Schema.optional(
827
+ Schema.Union([
828
+ Schema.Record(Schema.String, Schema.Unknown),
829
+ Schema.Null,
830
+ ]),
831
+ ),
832
+ placement: Schema.optional(
833
+ Schema.Union([
834
+ Schema.Struct({
835
+ mode: Schema.String,
836
+ }),
837
+ Schema.Null,
838
+ ]),
839
+ ),
840
+ queueProducers: Schema.optional(
841
+ Schema.Union([
842
+ Schema.Record(Schema.String, Schema.Unknown),
843
+ Schema.Null,
844
+ ]),
845
+ ),
846
+ r2Buckets: Schema.optional(
847
+ Schema.Union([
848
+ Schema.Record(Schema.String, Schema.Unknown),
849
+ Schema.Null,
850
+ ]),
851
+ ),
852
+ services: Schema.optional(
853
+ Schema.Union([
854
+ Schema.Record(Schema.String, Schema.Unknown),
855
+ Schema.Null,
856
+ ]),
857
+ ),
858
+ vectorizeBindings: Schema.optional(
859
+ Schema.Union([
860
+ Schema.Record(Schema.String, Schema.Unknown),
861
+ Schema.Null,
862
+ ]),
863
+ ),
864
+ wranglerConfigHash: Schema.optional(
865
+ Schema.Union([Schema.String, Schema.Null]),
866
+ ),
867
+ }).pipe(
868
+ Schema.encodeKeys({
869
+ alwaysUseLatestCompatibilityDate:
870
+ "always_use_latest_compatibility_date",
871
+ buildImageMajorVersion: "build_image_major_version",
872
+ compatibilityDate: "compatibility_date",
873
+ compatibilityFlags: "compatibility_flags",
874
+ envVars: "env_vars",
875
+ failOpen: "fail_open",
876
+ usageModel: "usage_model",
877
+ aiBindings: "ai_bindings",
878
+ analyticsEngineDatasets: "analytics_engine_datasets",
879
+ browsers: "browsers",
880
+ d1Databases: "d1_databases",
881
+ durableObjectNamespaces: "durable_object_namespaces",
882
+ hyperdriveBindings: "hyperdrive_bindings",
883
+ kvNamespaces: "kv_namespaces",
884
+ limits: "limits",
885
+ mtlsCertificates: "mtls_certificates",
886
+ placement: "placement",
887
+ queueProducers: "queue_producers",
888
+ r2Buckets: "r2_buckets",
889
+ services: "services",
890
+ vectorizeBindings: "vectorize_bindings",
891
+ wranglerConfigHash: "wrangler_config_hash",
892
+ }),
893
+ ),
894
+ Schema.Null,
895
+ ]),
896
+ ),
897
+ }),
898
+ framework: Schema.String,
899
+ frameworkVersion: Schema.String,
900
+ latestDeployment: Schema.Union([
901
+ Schema.Struct({
902
+ id: Schema.String,
903
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
904
+ buildConfig: Schema.Struct({
905
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
906
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
907
+ buildCaching: Schema.optional(
908
+ Schema.Union([Schema.Boolean, Schema.Null]),
909
+ ),
910
+ buildCommand: Schema.optional(
911
+ Schema.Union([Schema.String, Schema.Null]),
912
+ ),
913
+ destinationDir: Schema.optional(
914
+ Schema.Union([Schema.String, Schema.Null]),
915
+ ),
916
+ rootDir: Schema.optional(
917
+ Schema.Union([Schema.String, Schema.Null]),
918
+ ),
919
+ }).pipe(
920
+ Schema.encodeKeys({
921
+ webAnalyticsTag: "web_analytics_tag",
922
+ webAnalyticsToken: "web_analytics_token",
923
+ buildCaching: "build_caching",
924
+ buildCommand: "build_command",
925
+ destinationDir: "destination_dir",
926
+ rootDir: "root_dir",
927
+ }),
928
+ ),
929
+ createdOn: Schema.String,
930
+ deploymentTrigger: Schema.Struct({
931
+ metadata: Schema.Struct({
932
+ branch: Schema.String,
933
+ commitDirty: Schema.Boolean,
934
+ commitHash: Schema.String,
935
+ commitMessage: Schema.String,
936
+ }).pipe(
937
+ Schema.encodeKeys({
938
+ branch: "branch",
939
+ commitDirty: "commit_dirty",
940
+ commitHash: "commit_hash",
941
+ commitMessage: "commit_message",
942
+ }),
943
+ ),
944
+ type: Schema.Union([
945
+ Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
946
+ Schema.String,
947
+ ]),
948
+ }),
760
949
  envVars: Schema.Union([
761
950
  Schema.Record(Schema.String, Schema.Unknown),
762
951
  Schema.Null,
763
952
  ]),
764
- failOpen: Schema.Boolean,
765
- usageModel: Schema.Union([
766
- Schema.Literals(["standard", "bundled", "unbound"]),
953
+ environment: Schema.Union([
954
+ Schema.Literals(["preview", "production"]),
767
955
  Schema.String,
768
956
  ]),
769
- aiBindings: Schema.optional(
770
- Schema.Union([
771
- Schema.Record(Schema.String, Schema.Unknown),
772
- Schema.Null,
957
+ isSkipped: Schema.Boolean,
958
+ latestStage: Schema.Struct({
959
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
960
+ name: Schema.Union([
961
+ Schema.Literals([
962
+ "queued",
963
+ "initialize",
964
+ "clone_repo",
965
+ "build",
966
+ "deploy",
967
+ ]),
968
+ Schema.String,
773
969
  ]),
774
- ),
775
- analyticsEngineDatasets: Schema.optional(
776
- Schema.Union([
777
- Schema.Record(Schema.String, Schema.Unknown),
778
- Schema.Null,
970
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
971
+ status: Schema.Union([
972
+ Schema.Literals([
973
+ "success",
974
+ "idle",
975
+ "active",
976
+ "failure",
977
+ "canceled",
978
+ ]),
979
+ Schema.String,
779
980
  ]),
981
+ }).pipe(
982
+ Schema.encodeKeys({
983
+ endedOn: "ended_on",
984
+ name: "name",
985
+ startedOn: "started_on",
986
+ status: "status",
987
+ }),
780
988
  ),
781
- browsers: Schema.optional(
782
- Schema.Union([
783
- Schema.Record(Schema.String, Schema.Unknown),
784
- Schema.Null,
785
- ]),
786
- ),
787
- d1Databases: Schema.optional(
788
- Schema.Union([
789
- Schema.Record(Schema.String, Schema.Unknown),
790
- Schema.Null,
791
- ]),
792
- ),
793
- durableObjectNamespaces: Schema.optional(
794
- Schema.Union([
795
- Schema.Record(Schema.String, Schema.Unknown),
796
- Schema.Null,
797
- ]),
798
- ),
799
- hyperdriveBindings: Schema.optional(
800
- Schema.Union([
801
- Schema.Record(Schema.String, Schema.Unknown),
802
- Schema.Null,
803
- ]),
804
- ),
805
- kvNamespaces: Schema.optional(
806
- Schema.Union([
807
- Schema.Record(Schema.String, Schema.Unknown),
808
- Schema.Null,
809
- ]),
810
- ),
811
- limits: Schema.optional(
812
- Schema.Union([
813
- Schema.Struct({
814
- cpuMs: Schema.Number,
815
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
816
- Schema.Null,
817
- ]),
818
- ),
819
- mtlsCertificates: Schema.optional(
820
- Schema.Union([
821
- Schema.Record(Schema.String, Schema.Unknown),
822
- Schema.Null,
823
- ]),
824
- ),
825
- placement: Schema.optional(
826
- Schema.Union([
827
- Schema.Struct({
828
- mode: Schema.String,
829
- }),
830
- Schema.Null,
831
- ]),
832
- ),
833
- queueProducers: Schema.optional(
834
- Schema.Union([
835
- Schema.Record(Schema.String, Schema.Unknown),
836
- Schema.Null,
837
- ]),
838
- ),
839
- r2Buckets: Schema.optional(
840
- Schema.Union([
841
- Schema.Record(Schema.String, Schema.Unknown),
842
- Schema.Null,
843
- ]),
844
- ),
845
- services: Schema.optional(
846
- Schema.Union([
847
- Schema.Record(Schema.String, Schema.Unknown),
848
- Schema.Null,
849
- ]),
850
- ),
851
- vectorizeBindings: Schema.optional(
852
- Schema.Union([
853
- Schema.Record(Schema.String, Schema.Unknown),
854
- Schema.Null,
855
- ]),
856
- ),
857
- wranglerConfigHash: Schema.optional(
858
- Schema.Union([Schema.String, Schema.Null]),
859
- ),
860
- }).pipe(
861
- Schema.encodeKeys({
862
- alwaysUseLatestCompatibilityDate:
863
- "always_use_latest_compatibility_date",
864
- buildImageMajorVersion: "build_image_major_version",
865
- compatibilityDate: "compatibility_date",
866
- compatibilityFlags: "compatibility_flags",
867
- envVars: "env_vars",
868
- failOpen: "fail_open",
869
- usageModel: "usage_model",
870
- aiBindings: "ai_bindings",
871
- analyticsEngineDatasets: "analytics_engine_datasets",
872
- browsers: "browsers",
873
- d1Databases: "d1_databases",
874
- durableObjectNamespaces: "durable_object_namespaces",
875
- hyperdriveBindings: "hyperdrive_bindings",
876
- kvNamespaces: "kv_namespaces",
877
- limits: "limits",
878
- mtlsCertificates: "mtls_certificates",
879
- placement: "placement",
880
- queueProducers: "queue_producers",
881
- r2Buckets: "r2_buckets",
882
- services: "services",
883
- vectorizeBindings: "vectorize_bindings",
884
- wranglerConfigHash: "wrangler_config_hash",
885
- }),
886
- ),
887
- }),
888
- framework: Schema.String,
889
- frameworkVersion: Schema.String,
890
- latestDeployment: Schema.Union([
891
- Schema.Struct({
892
- id: Schema.String,
893
- aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
894
- buildConfig: Schema.Struct({
895
- webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
896
- webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
897
- buildCaching: Schema.optional(
898
- Schema.Union([Schema.Boolean, Schema.Null]),
899
- ),
900
- buildCommand: Schema.optional(
901
- Schema.Union([Schema.String, Schema.Null]),
902
- ),
903
- destinationDir: Schema.optional(
904
- Schema.Union([Schema.String, Schema.Null]),
905
- ),
906
- rootDir: Schema.optional(
907
- Schema.Union([Schema.String, Schema.Null]),
908
- ),
909
- }).pipe(
910
- Schema.encodeKeys({
911
- webAnalyticsTag: "web_analytics_tag",
912
- webAnalyticsToken: "web_analytics_token",
913
- buildCaching: "build_caching",
914
- buildCommand: "build_command",
915
- destinationDir: "destination_dir",
916
- rootDir: "root_dir",
917
- }),
918
- ),
919
- createdOn: Schema.String,
920
- deploymentTrigger: Schema.Struct({
921
- metadata: Schema.Struct({
922
- branch: Schema.String,
923
- commitDirty: Schema.Boolean,
924
- commitHash: Schema.String,
925
- commitMessage: Schema.String,
926
- }).pipe(
927
- Schema.encodeKeys({
928
- branch: "branch",
929
- commitDirty: "commit_dirty",
930
- commitHash: "commit_hash",
931
- commitMessage: "commit_message",
932
- }),
933
- ),
934
- type: Schema.Union([
935
- Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
936
- Schema.String,
937
- ]),
938
- }),
939
- envVars: Schema.Union([
940
- Schema.Record(Schema.String, Schema.Unknown),
941
- Schema.Null,
942
- ]),
943
- environment: Schema.Union([
944
- Schema.Literals(["preview", "production"]),
945
- Schema.String,
946
- ]),
947
- isSkipped: Schema.Boolean,
948
- latestStage: Schema.Struct({
949
- endedOn: Schema.Union([Schema.String, Schema.Null]),
950
- name: Schema.Union([
951
- Schema.Literals([
952
- "queued",
953
- "initialize",
954
- "clone_repo",
955
- "build",
956
- "deploy",
957
- ]),
958
- Schema.String,
959
- ]),
960
- startedOn: Schema.Union([Schema.String, Schema.Null]),
961
- status: Schema.Union([
962
- Schema.Literals([
963
- "success",
964
- "idle",
965
- "active",
966
- "failure",
967
- "canceled",
968
- ]),
969
- Schema.String,
970
- ]),
971
- }).pipe(
972
- Schema.encodeKeys({
973
- endedOn: "ended_on",
974
- name: "name",
975
- startedOn: "started_on",
976
- status: "status",
977
- }),
978
- ),
979
- modifiedOn: Schema.String,
980
- projectId: Schema.String,
981
- projectName: Schema.String,
982
- shortId: Schema.String,
983
- source: Schema.optional(
989
+ modifiedOn: Schema.String,
990
+ projectId: Schema.String,
991
+ projectName: Schema.String,
992
+ shortId: Schema.String,
993
+ source: Schema.optional(
984
994
  Schema.Union([
985
995
  Schema.Struct({
986
996
  config: Schema.Struct({
@@ -1315,7 +1325,7 @@ export interface ListProjectsResponse {
1315
1325
  } | null;
1316
1326
  createdOn: string;
1317
1327
  deploymentConfigs: {
1318
- preview: {
1328
+ preview?: {
1319
1329
  alwaysUseLatestCompatibilityDate: boolean;
1320
1330
  buildImageMajorVersion: number;
1321
1331
  compatibilityDate: string;
@@ -1338,8 +1348,8 @@ export interface ListProjectsResponse {
1338
1348
  services?: Record<string, unknown> | null;
1339
1349
  vectorizeBindings?: Record<string, unknown> | null;
1340
1350
  wranglerConfigHash?: string | null;
1341
- };
1342
- production: {
1351
+ } | null;
1352
+ production?: {
1343
1353
  alwaysUseLatestCompatibilityDate: boolean;
1344
1354
  buildImageMajorVersion: number;
1345
1355
  compatibilityDate: string;
@@ -1362,7 +1372,7 @@ export interface ListProjectsResponse {
1362
1372
  services?: Record<string, unknown> | null;
1363
1373
  vectorizeBindings?: Record<string, unknown> | null;
1364
1374
  wranglerConfigHash?: string | null;
1365
- };
1375
+ } | null;
1366
1376
  };
1367
1377
  framework: string;
1368
1378
  frameworkVersion: string;
@@ -1544,426 +1554,436 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1544
1554
  }),
1545
1555
  ),
1546
1556
  type: Schema.Union([
1547
- Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1548
- Schema.String,
1549
- ]),
1550
- }),
1551
- envVars: Schema.Union([
1552
- Schema.Record(Schema.String, Schema.Unknown),
1553
- Schema.Null,
1554
- ]),
1555
- environment: Schema.Union([
1556
- Schema.Literals(["preview", "production"]),
1557
- Schema.String,
1558
- ]),
1559
- isSkipped: Schema.Boolean,
1560
- latestStage: Schema.Struct({
1561
- endedOn: Schema.Union([Schema.String, Schema.Null]),
1562
- name: Schema.Union([
1563
- Schema.Literals([
1564
- "queued",
1565
- "initialize",
1566
- "clone_repo",
1567
- "build",
1568
- "deploy",
1569
- ]),
1570
- Schema.String,
1571
- ]),
1572
- startedOn: Schema.Union([Schema.String, Schema.Null]),
1573
- status: Schema.Union([
1574
- Schema.Literals([
1575
- "success",
1576
- "idle",
1577
- "active",
1578
- "failure",
1579
- "canceled",
1580
- ]),
1581
- Schema.String,
1582
- ]),
1583
- }).pipe(
1584
- Schema.encodeKeys({
1585
- endedOn: "ended_on",
1586
- name: "name",
1587
- startedOn: "started_on",
1588
- status: "status",
1589
- }),
1590
- ),
1591
- modifiedOn: Schema.String,
1592
- projectId: Schema.String,
1593
- projectName: Schema.String,
1594
- shortId: Schema.String,
1595
- source: Schema.optional(
1596
- Schema.Union([
1597
- Schema.Struct({
1598
- config: Schema.Struct({
1599
- deploymentsEnabled: Schema.Boolean,
1600
- owner: Schema.String,
1601
- ownerId: Schema.String,
1602
- pathExcludes: Schema.Array(Schema.String),
1603
- pathIncludes: Schema.Array(Schema.String),
1604
- prCommentsEnabled: Schema.Boolean,
1605
- previewBranchExcludes: Schema.Array(Schema.String),
1606
- previewBranchIncludes: Schema.Array(Schema.String),
1607
- previewDeploymentSetting: Schema.Union([
1608
- Schema.Literals(["all", "none", "custom"]),
1609
- Schema.String,
1610
- ]),
1611
- productionBranch: Schema.String,
1612
- productionDeploymentsEnabled: Schema.Boolean,
1613
- repoId: Schema.String,
1614
- repoName: Schema.String,
1615
- }).pipe(
1616
- Schema.encodeKeys({
1617
- deploymentsEnabled: "deployments_enabled",
1618
- owner: "owner",
1619
- ownerId: "owner_id",
1620
- pathExcludes: "path_excludes",
1621
- pathIncludes: "path_includes",
1622
- prCommentsEnabled: "pr_comments_enabled",
1623
- previewBranchExcludes: "preview_branch_excludes",
1624
- previewBranchIncludes: "preview_branch_includes",
1625
- previewDeploymentSetting: "preview_deployment_setting",
1626
- productionBranch: "production_branch",
1627
- productionDeploymentsEnabled:
1628
- "production_deployments_enabled",
1629
- repoId: "repo_id",
1630
- repoName: "repo_name",
1631
- }),
1632
- ),
1633
- type: Schema.Union([
1634
- Schema.Literals(["github", "gitlab"]),
1635
- Schema.String,
1636
- ]),
1637
- }),
1638
- Schema.Null,
1639
- ]),
1640
- ),
1641
- stages: Schema.Array(
1642
- Schema.Struct({
1643
- endedOn: Schema.Union([Schema.String, Schema.Null]),
1644
- name: Schema.Union([
1645
- Schema.Literals([
1646
- "queued",
1647
- "initialize",
1648
- "clone_repo",
1649
- "build",
1650
- "deploy",
1651
- ]),
1652
- Schema.String,
1653
- ]),
1654
- startedOn: Schema.Union([Schema.String, Schema.Null]),
1655
- status: Schema.Union([
1656
- Schema.Literals([
1657
- "success",
1658
- "idle",
1659
- "active",
1660
- "failure",
1661
- "canceled",
1662
- ]),
1663
- Schema.String,
1664
- ]),
1665
- }).pipe(
1666
- Schema.encodeKeys({
1667
- endedOn: "ended_on",
1668
- name: "name",
1669
- startedOn: "started_on",
1670
- status: "status",
1671
- }),
1672
- ),
1673
- ),
1674
- url: Schema.String,
1675
- usesFunctions: Schema.optional(
1676
- Schema.Union([Schema.Boolean, Schema.Null]),
1677
- ),
1678
- }).pipe(
1679
- Schema.encodeKeys({
1680
- id: "id",
1681
- aliases: "aliases",
1682
- buildConfig: "build_config",
1683
- createdOn: "created_on",
1684
- deploymentTrigger: "deployment_trigger",
1685
- envVars: "env_vars",
1686
- environment: "environment",
1687
- isSkipped: "is_skipped",
1688
- latestStage: "latest_stage",
1689
- modifiedOn: "modified_on",
1690
- projectId: "project_id",
1691
- projectName: "project_name",
1692
- shortId: "short_id",
1693
- source: "source",
1694
- stages: "stages",
1695
- url: "url",
1696
- usesFunctions: "uses_functions",
1697
- }),
1698
- ),
1699
- Schema.Null,
1700
- ]),
1701
- createdOn: Schema.String,
1702
- deploymentConfigs: Schema.Struct({
1703
- preview: Schema.Struct({
1704
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
1705
- buildImageMajorVersion: Schema.Number,
1706
- compatibilityDate: Schema.String,
1707
- compatibilityFlags: Schema.Array(Schema.String),
1708
- envVars: Schema.Union([
1709
- Schema.Record(Schema.String, Schema.Unknown),
1710
- Schema.Null,
1711
- ]),
1712
- failOpen: Schema.Boolean,
1713
- usageModel: Schema.Union([
1714
- Schema.Literals(["standard", "bundled", "unbound"]),
1715
- Schema.String,
1716
- ]),
1717
- aiBindings: Schema.optional(
1718
- Schema.Union([
1719
- Schema.Record(Schema.String, Schema.Unknown),
1720
- Schema.Null,
1721
- ]),
1722
- ),
1723
- analyticsEngineDatasets: Schema.optional(
1724
- Schema.Union([
1725
- Schema.Record(Schema.String, Schema.Unknown),
1726
- Schema.Null,
1727
- ]),
1728
- ),
1729
- browsers: Schema.optional(
1730
- Schema.Union([
1731
- Schema.Record(Schema.String, Schema.Unknown),
1732
- Schema.Null,
1733
- ]),
1734
- ),
1735
- d1Databases: Schema.optional(
1736
- Schema.Union([
1737
- Schema.Record(Schema.String, Schema.Unknown),
1738
- Schema.Null,
1739
- ]),
1740
- ),
1741
- durableObjectNamespaces: Schema.optional(
1742
- Schema.Union([
1743
- Schema.Record(Schema.String, Schema.Unknown),
1744
- Schema.Null,
1745
- ]),
1746
- ),
1747
- hyperdriveBindings: Schema.optional(
1748
- Schema.Union([
1749
- Schema.Record(Schema.String, Schema.Unknown),
1750
- Schema.Null,
1751
- ]),
1752
- ),
1753
- kvNamespaces: Schema.optional(
1754
- Schema.Union([
1755
- Schema.Record(Schema.String, Schema.Unknown),
1756
- Schema.Null,
1757
- ]),
1758
- ),
1759
- limits: Schema.optional(
1760
- Schema.Union([
1761
- Schema.Struct({
1762
- cpuMs: Schema.Number,
1763
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1764
- Schema.Null,
1765
- ]),
1766
- ),
1767
- mtlsCertificates: Schema.optional(
1768
- Schema.Union([
1769
- Schema.Record(Schema.String, Schema.Unknown),
1770
- Schema.Null,
1771
- ]),
1772
- ),
1773
- placement: Schema.optional(
1774
- Schema.Union([
1775
- Schema.Struct({
1776
- mode: Schema.String,
1777
- }),
1778
- Schema.Null,
1779
- ]),
1780
- ),
1781
- queueProducers: Schema.optional(
1782
- Schema.Union([
1783
- Schema.Record(Schema.String, Schema.Unknown),
1784
- Schema.Null,
1785
- ]),
1786
- ),
1787
- r2Buckets: Schema.optional(
1788
- Schema.Union([
1789
- Schema.Record(Schema.String, Schema.Unknown),
1790
- Schema.Null,
1791
- ]),
1792
- ),
1793
- services: Schema.optional(
1794
- Schema.Union([
1795
- Schema.Record(Schema.String, Schema.Unknown),
1796
- Schema.Null,
1797
- ]),
1798
- ),
1799
- vectorizeBindings: Schema.optional(
1800
- Schema.Union([
1801
- Schema.Record(Schema.String, Schema.Unknown),
1802
- Schema.Null,
1803
- ]),
1804
- ),
1805
- wranglerConfigHash: Schema.optional(
1806
- Schema.Union([Schema.String, Schema.Null]),
1807
- ),
1808
- }).pipe(
1809
- Schema.encodeKeys({
1810
- alwaysUseLatestCompatibilityDate:
1811
- "always_use_latest_compatibility_date",
1812
- buildImageMajorVersion: "build_image_major_version",
1813
- compatibilityDate: "compatibility_date",
1814
- compatibilityFlags: "compatibility_flags",
1815
- envVars: "env_vars",
1816
- failOpen: "fail_open",
1817
- usageModel: "usage_model",
1818
- aiBindings: "ai_bindings",
1819
- analyticsEngineDatasets: "analytics_engine_datasets",
1820
- browsers: "browsers",
1821
- d1Databases: "d1_databases",
1822
- durableObjectNamespaces: "durable_object_namespaces",
1823
- hyperdriveBindings: "hyperdrive_bindings",
1824
- kvNamespaces: "kv_namespaces",
1825
- limits: "limits",
1826
- mtlsCertificates: "mtls_certificates",
1827
- placement: "placement",
1828
- queueProducers: "queue_producers",
1829
- r2Buckets: "r2_buckets",
1830
- services: "services",
1831
- vectorizeBindings: "vectorize_bindings",
1832
- wranglerConfigHash: "wrangler_config_hash",
1833
- }),
1834
- ),
1835
- production: Schema.Struct({
1836
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
1837
- buildImageMajorVersion: Schema.Number,
1838
- compatibilityDate: Schema.String,
1839
- compatibilityFlags: Schema.Array(Schema.String),
1840
- envVars: Schema.Union([
1841
- Schema.Record(Schema.String, Schema.Unknown),
1842
- Schema.Null,
1843
- ]),
1844
- failOpen: Schema.Boolean,
1845
- usageModel: Schema.Union([
1846
- Schema.Literals(["standard", "bundled", "unbound"]),
1847
- Schema.String,
1848
- ]),
1849
- aiBindings: Schema.optional(
1850
- Schema.Union([
1851
- Schema.Record(Schema.String, Schema.Unknown),
1852
- Schema.Null,
1853
- ]),
1854
- ),
1855
- analyticsEngineDatasets: Schema.optional(
1856
- Schema.Union([
1857
- Schema.Record(Schema.String, Schema.Unknown),
1858
- Schema.Null,
1859
- ]),
1860
- ),
1861
- browsers: Schema.optional(
1862
- Schema.Union([
1863
- Schema.Record(Schema.String, Schema.Unknown),
1864
- Schema.Null,
1865
- ]),
1866
- ),
1867
- d1Databases: Schema.optional(
1868
- Schema.Union([
1869
- Schema.Record(Schema.String, Schema.Unknown),
1870
- Schema.Null,
1871
- ]),
1872
- ),
1873
- durableObjectNamespaces: Schema.optional(
1874
- Schema.Union([
1875
- Schema.Record(Schema.String, Schema.Unknown),
1876
- Schema.Null,
1877
- ]),
1878
- ),
1879
- hyperdriveBindings: Schema.optional(
1880
- Schema.Union([
1881
- Schema.Record(Schema.String, Schema.Unknown),
1882
- Schema.Null,
1883
- ]),
1884
- ),
1885
- kvNamespaces: Schema.optional(
1886
- Schema.Union([
1887
- Schema.Record(Schema.String, Schema.Unknown),
1888
- Schema.Null,
1557
+ Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1558
+ Schema.String,
1889
1559
  ]),
1890
- ),
1891
- limits: Schema.optional(
1892
- Schema.Union([
1893
- Schema.Struct({
1894
- cpuMs: Schema.Number,
1895
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1896
- Schema.Null,
1560
+ }),
1561
+ envVars: Schema.Union([
1562
+ Schema.Record(Schema.String, Schema.Unknown),
1563
+ Schema.Null,
1564
+ ]),
1565
+ environment: Schema.Union([
1566
+ Schema.Literals(["preview", "production"]),
1567
+ Schema.String,
1568
+ ]),
1569
+ isSkipped: Schema.Boolean,
1570
+ latestStage: Schema.Struct({
1571
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
1572
+ name: Schema.Union([
1573
+ Schema.Literals([
1574
+ "queued",
1575
+ "initialize",
1576
+ "clone_repo",
1577
+ "build",
1578
+ "deploy",
1579
+ ]),
1580
+ Schema.String,
1897
1581
  ]),
1898
- ),
1899
- mtlsCertificates: Schema.optional(
1900
- Schema.Union([
1901
- Schema.Record(Schema.String, Schema.Unknown),
1902
- Schema.Null,
1582
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
1583
+ status: Schema.Union([
1584
+ Schema.Literals([
1585
+ "success",
1586
+ "idle",
1587
+ "active",
1588
+ "failure",
1589
+ "canceled",
1590
+ ]),
1591
+ Schema.String,
1903
1592
  ]),
1593
+ }).pipe(
1594
+ Schema.encodeKeys({
1595
+ endedOn: "ended_on",
1596
+ name: "name",
1597
+ startedOn: "started_on",
1598
+ status: "status",
1599
+ }),
1904
1600
  ),
1905
- placement: Schema.optional(
1601
+ modifiedOn: Schema.String,
1602
+ projectId: Schema.String,
1603
+ projectName: Schema.String,
1604
+ shortId: Schema.String,
1605
+ source: Schema.optional(
1906
1606
  Schema.Union([
1907
1607
  Schema.Struct({
1908
- mode: Schema.String,
1608
+ config: Schema.Struct({
1609
+ deploymentsEnabled: Schema.Boolean,
1610
+ owner: Schema.String,
1611
+ ownerId: Schema.String,
1612
+ pathExcludes: Schema.Array(Schema.String),
1613
+ pathIncludes: Schema.Array(Schema.String),
1614
+ prCommentsEnabled: Schema.Boolean,
1615
+ previewBranchExcludes: Schema.Array(Schema.String),
1616
+ previewBranchIncludes: Schema.Array(Schema.String),
1617
+ previewDeploymentSetting: Schema.Union([
1618
+ Schema.Literals(["all", "none", "custom"]),
1619
+ Schema.String,
1620
+ ]),
1621
+ productionBranch: Schema.String,
1622
+ productionDeploymentsEnabled: Schema.Boolean,
1623
+ repoId: Schema.String,
1624
+ repoName: Schema.String,
1625
+ }).pipe(
1626
+ Schema.encodeKeys({
1627
+ deploymentsEnabled: "deployments_enabled",
1628
+ owner: "owner",
1629
+ ownerId: "owner_id",
1630
+ pathExcludes: "path_excludes",
1631
+ pathIncludes: "path_includes",
1632
+ prCommentsEnabled: "pr_comments_enabled",
1633
+ previewBranchExcludes: "preview_branch_excludes",
1634
+ previewBranchIncludes: "preview_branch_includes",
1635
+ previewDeploymentSetting: "preview_deployment_setting",
1636
+ productionBranch: "production_branch",
1637
+ productionDeploymentsEnabled:
1638
+ "production_deployments_enabled",
1639
+ repoId: "repo_id",
1640
+ repoName: "repo_name",
1641
+ }),
1642
+ ),
1643
+ type: Schema.Union([
1644
+ Schema.Literals(["github", "gitlab"]),
1645
+ Schema.String,
1646
+ ]),
1909
1647
  }),
1910
1648
  Schema.Null,
1911
1649
  ]),
1912
1650
  ),
1913
- queueProducers: Schema.optional(
1914
- Schema.Union([
1915
- Schema.Record(Schema.String, Schema.Unknown),
1916
- Schema.Null,
1917
- ]),
1918
- ),
1919
- r2Buckets: Schema.optional(
1920
- Schema.Union([
1921
- Schema.Record(Schema.String, Schema.Unknown),
1922
- Schema.Null,
1923
- ]),
1924
- ),
1925
- services: Schema.optional(
1926
- Schema.Union([
1927
- Schema.Record(Schema.String, Schema.Unknown),
1928
- Schema.Null,
1929
- ]),
1930
- ),
1931
- vectorizeBindings: Schema.optional(
1932
- Schema.Union([
1933
- Schema.Record(Schema.String, Schema.Unknown),
1934
- Schema.Null,
1935
- ]),
1651
+ stages: Schema.Array(
1652
+ Schema.Struct({
1653
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
1654
+ name: Schema.Union([
1655
+ Schema.Literals([
1656
+ "queued",
1657
+ "initialize",
1658
+ "clone_repo",
1659
+ "build",
1660
+ "deploy",
1661
+ ]),
1662
+ Schema.String,
1663
+ ]),
1664
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
1665
+ status: Schema.Union([
1666
+ Schema.Literals([
1667
+ "success",
1668
+ "idle",
1669
+ "active",
1670
+ "failure",
1671
+ "canceled",
1672
+ ]),
1673
+ Schema.String,
1674
+ ]),
1675
+ }).pipe(
1676
+ Schema.encodeKeys({
1677
+ endedOn: "ended_on",
1678
+ name: "name",
1679
+ startedOn: "started_on",
1680
+ status: "status",
1681
+ }),
1682
+ ),
1936
1683
  ),
1937
- wranglerConfigHash: Schema.optional(
1938
- Schema.Union([Schema.String, Schema.Null]),
1684
+ url: Schema.String,
1685
+ usesFunctions: Schema.optional(
1686
+ Schema.Union([Schema.Boolean, Schema.Null]),
1939
1687
  ),
1940
1688
  }).pipe(
1941
1689
  Schema.encodeKeys({
1942
- alwaysUseLatestCompatibilityDate:
1943
- "always_use_latest_compatibility_date",
1944
- buildImageMajorVersion: "build_image_major_version",
1945
- compatibilityDate: "compatibility_date",
1946
- compatibilityFlags: "compatibility_flags",
1690
+ id: "id",
1691
+ aliases: "aliases",
1692
+ buildConfig: "build_config",
1693
+ createdOn: "created_on",
1694
+ deploymentTrigger: "deployment_trigger",
1947
1695
  envVars: "env_vars",
1948
- failOpen: "fail_open",
1949
- usageModel: "usage_model",
1950
- aiBindings: "ai_bindings",
1951
- analyticsEngineDatasets: "analytics_engine_datasets",
1952
- browsers: "browsers",
1953
- d1Databases: "d1_databases",
1954
- durableObjectNamespaces: "durable_object_namespaces",
1955
- hyperdriveBindings: "hyperdrive_bindings",
1956
- kvNamespaces: "kv_namespaces",
1957
- limits: "limits",
1958
- mtlsCertificates: "mtls_certificates",
1959
- placement: "placement",
1960
- queueProducers: "queue_producers",
1961
- r2Buckets: "r2_buckets",
1962
- services: "services",
1963
- vectorizeBindings: "vectorize_bindings",
1964
- wranglerConfigHash: "wrangler_config_hash",
1696
+ environment: "environment",
1697
+ isSkipped: "is_skipped",
1698
+ latestStage: "latest_stage",
1699
+ modifiedOn: "modified_on",
1700
+ projectId: "project_id",
1701
+ projectName: "project_name",
1702
+ shortId: "short_id",
1703
+ source: "source",
1704
+ stages: "stages",
1705
+ url: "url",
1706
+ usesFunctions: "uses_functions",
1965
1707
  }),
1966
1708
  ),
1709
+ Schema.Null,
1710
+ ]),
1711
+ createdOn: Schema.String,
1712
+ deploymentConfigs: Schema.Struct({
1713
+ preview: Schema.optional(
1714
+ Schema.Union([
1715
+ Schema.Struct({
1716
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
1717
+ buildImageMajorVersion: Schema.Number,
1718
+ compatibilityDate: Schema.String,
1719
+ compatibilityFlags: Schema.Array(Schema.String),
1720
+ envVars: Schema.Union([
1721
+ Schema.Record(Schema.String, Schema.Unknown),
1722
+ Schema.Null,
1723
+ ]),
1724
+ failOpen: Schema.Boolean,
1725
+ usageModel: Schema.Union([
1726
+ Schema.Literals(["standard", "bundled", "unbound"]),
1727
+ Schema.String,
1728
+ ]),
1729
+ aiBindings: Schema.optional(
1730
+ Schema.Union([
1731
+ Schema.Record(Schema.String, Schema.Unknown),
1732
+ Schema.Null,
1733
+ ]),
1734
+ ),
1735
+ analyticsEngineDatasets: Schema.optional(
1736
+ Schema.Union([
1737
+ Schema.Record(Schema.String, Schema.Unknown),
1738
+ Schema.Null,
1739
+ ]),
1740
+ ),
1741
+ browsers: Schema.optional(
1742
+ Schema.Union([
1743
+ Schema.Record(Schema.String, Schema.Unknown),
1744
+ Schema.Null,
1745
+ ]),
1746
+ ),
1747
+ d1Databases: Schema.optional(
1748
+ Schema.Union([
1749
+ Schema.Record(Schema.String, Schema.Unknown),
1750
+ Schema.Null,
1751
+ ]),
1752
+ ),
1753
+ durableObjectNamespaces: Schema.optional(
1754
+ Schema.Union([
1755
+ Schema.Record(Schema.String, Schema.Unknown),
1756
+ Schema.Null,
1757
+ ]),
1758
+ ),
1759
+ hyperdriveBindings: Schema.optional(
1760
+ Schema.Union([
1761
+ Schema.Record(Schema.String, Schema.Unknown),
1762
+ Schema.Null,
1763
+ ]),
1764
+ ),
1765
+ kvNamespaces: Schema.optional(
1766
+ Schema.Union([
1767
+ Schema.Record(Schema.String, Schema.Unknown),
1768
+ Schema.Null,
1769
+ ]),
1770
+ ),
1771
+ limits: Schema.optional(
1772
+ Schema.Union([
1773
+ Schema.Struct({
1774
+ cpuMs: Schema.Number,
1775
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1776
+ Schema.Null,
1777
+ ]),
1778
+ ),
1779
+ mtlsCertificates: Schema.optional(
1780
+ Schema.Union([
1781
+ Schema.Record(Schema.String, Schema.Unknown),
1782
+ Schema.Null,
1783
+ ]),
1784
+ ),
1785
+ placement: Schema.optional(
1786
+ Schema.Union([
1787
+ Schema.Struct({
1788
+ mode: Schema.String,
1789
+ }),
1790
+ Schema.Null,
1791
+ ]),
1792
+ ),
1793
+ queueProducers: Schema.optional(
1794
+ Schema.Union([
1795
+ Schema.Record(Schema.String, Schema.Unknown),
1796
+ Schema.Null,
1797
+ ]),
1798
+ ),
1799
+ r2Buckets: Schema.optional(
1800
+ Schema.Union([
1801
+ Schema.Record(Schema.String, Schema.Unknown),
1802
+ Schema.Null,
1803
+ ]),
1804
+ ),
1805
+ services: Schema.optional(
1806
+ Schema.Union([
1807
+ Schema.Record(Schema.String, Schema.Unknown),
1808
+ Schema.Null,
1809
+ ]),
1810
+ ),
1811
+ vectorizeBindings: Schema.optional(
1812
+ Schema.Union([
1813
+ Schema.Record(Schema.String, Schema.Unknown),
1814
+ Schema.Null,
1815
+ ]),
1816
+ ),
1817
+ wranglerConfigHash: Schema.optional(
1818
+ Schema.Union([Schema.String, Schema.Null]),
1819
+ ),
1820
+ }).pipe(
1821
+ Schema.encodeKeys({
1822
+ alwaysUseLatestCompatibilityDate:
1823
+ "always_use_latest_compatibility_date",
1824
+ buildImageMajorVersion: "build_image_major_version",
1825
+ compatibilityDate: "compatibility_date",
1826
+ compatibilityFlags: "compatibility_flags",
1827
+ envVars: "env_vars",
1828
+ failOpen: "fail_open",
1829
+ usageModel: "usage_model",
1830
+ aiBindings: "ai_bindings",
1831
+ analyticsEngineDatasets: "analytics_engine_datasets",
1832
+ browsers: "browsers",
1833
+ d1Databases: "d1_databases",
1834
+ durableObjectNamespaces: "durable_object_namespaces",
1835
+ hyperdriveBindings: "hyperdrive_bindings",
1836
+ kvNamespaces: "kv_namespaces",
1837
+ limits: "limits",
1838
+ mtlsCertificates: "mtls_certificates",
1839
+ placement: "placement",
1840
+ queueProducers: "queue_producers",
1841
+ r2Buckets: "r2_buckets",
1842
+ services: "services",
1843
+ vectorizeBindings: "vectorize_bindings",
1844
+ wranglerConfigHash: "wrangler_config_hash",
1845
+ }),
1846
+ ),
1847
+ Schema.Null,
1848
+ ]),
1849
+ ),
1850
+ production: Schema.optional(
1851
+ Schema.Union([
1852
+ Schema.Struct({
1853
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
1854
+ buildImageMajorVersion: Schema.Number,
1855
+ compatibilityDate: Schema.String,
1856
+ compatibilityFlags: Schema.Array(Schema.String),
1857
+ envVars: Schema.Union([
1858
+ Schema.Record(Schema.String, Schema.Unknown),
1859
+ Schema.Null,
1860
+ ]),
1861
+ failOpen: Schema.Boolean,
1862
+ usageModel: Schema.Union([
1863
+ Schema.Literals(["standard", "bundled", "unbound"]),
1864
+ Schema.String,
1865
+ ]),
1866
+ aiBindings: Schema.optional(
1867
+ Schema.Union([
1868
+ Schema.Record(Schema.String, Schema.Unknown),
1869
+ Schema.Null,
1870
+ ]),
1871
+ ),
1872
+ analyticsEngineDatasets: Schema.optional(
1873
+ Schema.Union([
1874
+ Schema.Record(Schema.String, Schema.Unknown),
1875
+ Schema.Null,
1876
+ ]),
1877
+ ),
1878
+ browsers: Schema.optional(
1879
+ Schema.Union([
1880
+ Schema.Record(Schema.String, Schema.Unknown),
1881
+ Schema.Null,
1882
+ ]),
1883
+ ),
1884
+ d1Databases: Schema.optional(
1885
+ Schema.Union([
1886
+ Schema.Record(Schema.String, Schema.Unknown),
1887
+ Schema.Null,
1888
+ ]),
1889
+ ),
1890
+ durableObjectNamespaces: Schema.optional(
1891
+ Schema.Union([
1892
+ Schema.Record(Schema.String, Schema.Unknown),
1893
+ Schema.Null,
1894
+ ]),
1895
+ ),
1896
+ hyperdriveBindings: Schema.optional(
1897
+ Schema.Union([
1898
+ Schema.Record(Schema.String, Schema.Unknown),
1899
+ Schema.Null,
1900
+ ]),
1901
+ ),
1902
+ kvNamespaces: Schema.optional(
1903
+ Schema.Union([
1904
+ Schema.Record(Schema.String, Schema.Unknown),
1905
+ Schema.Null,
1906
+ ]),
1907
+ ),
1908
+ limits: Schema.optional(
1909
+ Schema.Union([
1910
+ Schema.Struct({
1911
+ cpuMs: Schema.Number,
1912
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1913
+ Schema.Null,
1914
+ ]),
1915
+ ),
1916
+ mtlsCertificates: Schema.optional(
1917
+ Schema.Union([
1918
+ Schema.Record(Schema.String, Schema.Unknown),
1919
+ Schema.Null,
1920
+ ]),
1921
+ ),
1922
+ placement: Schema.optional(
1923
+ Schema.Union([
1924
+ Schema.Struct({
1925
+ mode: Schema.String,
1926
+ }),
1927
+ Schema.Null,
1928
+ ]),
1929
+ ),
1930
+ queueProducers: Schema.optional(
1931
+ Schema.Union([
1932
+ Schema.Record(Schema.String, Schema.Unknown),
1933
+ Schema.Null,
1934
+ ]),
1935
+ ),
1936
+ r2Buckets: Schema.optional(
1937
+ Schema.Union([
1938
+ Schema.Record(Schema.String, Schema.Unknown),
1939
+ Schema.Null,
1940
+ ]),
1941
+ ),
1942
+ services: Schema.optional(
1943
+ Schema.Union([
1944
+ Schema.Record(Schema.String, Schema.Unknown),
1945
+ Schema.Null,
1946
+ ]),
1947
+ ),
1948
+ vectorizeBindings: Schema.optional(
1949
+ Schema.Union([
1950
+ Schema.Record(Schema.String, Schema.Unknown),
1951
+ Schema.Null,
1952
+ ]),
1953
+ ),
1954
+ wranglerConfigHash: Schema.optional(
1955
+ Schema.Union([Schema.String, Schema.Null]),
1956
+ ),
1957
+ }).pipe(
1958
+ Schema.encodeKeys({
1959
+ alwaysUseLatestCompatibilityDate:
1960
+ "always_use_latest_compatibility_date",
1961
+ buildImageMajorVersion: "build_image_major_version",
1962
+ compatibilityDate: "compatibility_date",
1963
+ compatibilityFlags: "compatibility_flags",
1964
+ envVars: "env_vars",
1965
+ failOpen: "fail_open",
1966
+ usageModel: "usage_model",
1967
+ aiBindings: "ai_bindings",
1968
+ analyticsEngineDatasets: "analytics_engine_datasets",
1969
+ browsers: "browsers",
1970
+ d1Databases: "d1_databases",
1971
+ durableObjectNamespaces: "durable_object_namespaces",
1972
+ hyperdriveBindings: "hyperdrive_bindings",
1973
+ kvNamespaces: "kv_namespaces",
1974
+ limits: "limits",
1975
+ mtlsCertificates: "mtls_certificates",
1976
+ placement: "placement",
1977
+ queueProducers: "queue_producers",
1978
+ r2Buckets: "r2_buckets",
1979
+ services: "services",
1980
+ vectorizeBindings: "vectorize_bindings",
1981
+ wranglerConfigHash: "wrangler_config_hash",
1982
+ }),
1983
+ ),
1984
+ Schema.Null,
1985
+ ]),
1986
+ ),
1967
1987
  }),
1968
1988
  framework: Schema.String,
1969
1989
  frameworkVersion: Schema.String,