@vercel/sdk 1.10.8 → 1.11.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 (105) hide show
  1. package/bin/mcp-server.js +3715 -927
  2. package/bin/mcp-server.js.map +20 -20
  3. package/esm/__tests__/accessgroups.test.js +6 -6
  4. package/esm/__tests__/accessgroups.test.js.map +1 -1
  5. package/esm/__tests__/domains.test.js +5 -6
  6. package/esm/__tests__/domains.test.js.map +1 -1
  7. package/esm/__tests__/edgeconfig.test.js +6 -6
  8. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  9. package/esm/__tests__/integrations.test.js +1 -1
  10. package/esm/__tests__/rollingrelease.test.js +2 -2
  11. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  12. package/esm/__tests__/security.test.js +11 -1
  13. package/esm/__tests__/security.test.js.map +1 -1
  14. package/esm/__tests__/teams.test.js +2 -2
  15. package/esm/__tests__/teams.test.js.map +1 -1
  16. package/esm/lib/config.d.ts +3 -3
  17. package/esm/lib/config.js +3 -3
  18. package/esm/mcp-server/mcp-server.js +1 -1
  19. package/esm/mcp-server/server.js +1 -1
  20. package/esm/models/canceldeploymentop.d.ts +41 -41
  21. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  22. package/esm/models/canceldeploymentop.js +43 -41
  23. package/esm/models/canceldeploymentop.js.map +1 -1
  24. package/esm/models/createdeploymentop.d.ts +98 -98
  25. package/esm/models/createdeploymentop.d.ts.map +1 -1
  26. package/esm/models/createdeploymentop.js +113 -117
  27. package/esm/models/createdeploymentop.js.map +1 -1
  28. package/esm/models/createintegrationstoredirectop.d.ts +240 -240
  29. package/esm/models/createintegrationstoredirectop.js +294 -294
  30. package/esm/models/createprojectop.d.ts +1626 -281
  31. package/esm/models/createprojectop.d.ts.map +1 -1
  32. package/esm/models/createprojectop.js +1676 -298
  33. package/esm/models/createprojectop.js.map +1 -1
  34. package/esm/models/createwebhookop.d.ts +72 -66
  35. package/esm/models/createwebhookop.d.ts.map +1 -1
  36. package/esm/models/createwebhookop.js +24 -22
  37. package/esm/models/createwebhookop.js.map +1 -1
  38. package/esm/models/getconfigurationproductsop.d.ts +330 -330
  39. package/esm/models/getconfigurationproductsop.js +408 -408
  40. package/esm/models/getdeploymentop.d.ts +16 -16
  41. package/esm/models/getdeploymentop.d.ts.map +1 -1
  42. package/esm/models/getdeploymentop.js +24 -24
  43. package/esm/models/getdeploymentop.js.map +1 -1
  44. package/esm/models/getprojectsop.d.ts +1402 -57
  45. package/esm/models/getprojectsop.d.ts.map +1 -1
  46. package/esm/models/getprojectsop.js +1575 -202
  47. package/esm/models/getprojectsop.js.map +1 -1
  48. package/esm/models/getwebhookop.d.ts +36 -33
  49. package/esm/models/getwebhookop.d.ts.map +1 -1
  50. package/esm/models/getwebhookop.js +12 -11
  51. package/esm/models/getwebhookop.js.map +1 -1
  52. package/esm/models/getwebhooksop.d.ts +72 -66
  53. package/esm/models/getwebhooksop.d.ts.map +1 -1
  54. package/esm/models/getwebhooksop.js +24 -22
  55. package/esm/models/getwebhooksop.js.map +1 -1
  56. package/esm/models/listaccessgroupsop.d.ts +2 -5
  57. package/esm/models/listaccessgroupsop.d.ts.map +1 -1
  58. package/esm/models/listaccessgroupsop.js +2 -2
  59. package/esm/models/listaccessgroupsop.js.map +1 -1
  60. package/esm/models/readaccessgroupop.d.ts +48 -5
  61. package/esm/models/readaccessgroupop.d.ts.map +1 -1
  62. package/esm/models/readaccessgroupop.js +30 -2
  63. package/esm/models/readaccessgroupop.js.map +1 -1
  64. package/esm/models/team.d.ts +35 -18
  65. package/esm/models/team.d.ts.map +1 -1
  66. package/esm/models/team.js +15 -13
  67. package/esm/models/team.js.map +1 -1
  68. package/esm/models/updateprojectdatacacheop.d.ts +1402 -57
  69. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  70. package/esm/models/updateprojectdatacacheop.js +1584 -200
  71. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  72. package/esm/models/updateprojectop.d.ts +1402 -57
  73. package/esm/models/updateprojectop.d.ts.map +1 -1
  74. package/esm/models/updateprojectop.js +1579 -202
  75. package/esm/models/updateprojectop.js.map +1 -1
  76. package/examples/package-lock.json +1 -1
  77. package/examples/projectsUpdateProject.example.ts +1 -1
  78. package/jsr.json +1 -1
  79. package/package.json +1 -1
  80. package/src/__tests__/accessgroups.test.ts +6 -6
  81. package/src/__tests__/domains.test.ts +5 -6
  82. package/src/__tests__/edgeconfig.test.ts +6 -6
  83. package/src/__tests__/integrations.test.ts +1 -1
  84. package/src/__tests__/rollingrelease.test.ts +2 -2
  85. package/src/__tests__/security.test.ts +11 -1
  86. package/src/__tests__/teams.test.ts +2 -2
  87. package/src/lib/config.ts +3 -3
  88. package/src/mcp-server/mcp-server.ts +1 -1
  89. package/src/mcp-server/server.ts +1 -1
  90. package/src/models/canceldeploymentop.ts +84 -64
  91. package/src/models/createdeploymentop.ts +239 -192
  92. package/src/models/createintegrationstoredirectop.ts +505 -505
  93. package/src/models/createprojectop.ts +3443 -466
  94. package/src/models/createwebhookop.ts +24 -22
  95. package/src/models/getconfigurationproductsop.ts +703 -703
  96. package/src/models/getdeploymentop.ts +34 -34
  97. package/src/models/getprojectsop.ts +3255 -300
  98. package/src/models/getwebhookop.ts +12 -11
  99. package/src/models/getwebhooksop.ts +24 -22
  100. package/src/models/listaccessgroupsop.ts +4 -7
  101. package/src/models/readaccessgroupop.ts +42 -7
  102. package/src/models/team.ts +47 -28
  103. package/src/models/updateprojectdatacacheop.ts +3184 -307
  104. package/src/models/updateprojectop.ts +3290 -298
  105. package/vercel-spec.json +4895 -2034
@@ -822,7 +822,7 @@ export type LatestDeployments = {
822
822
  };
823
823
 
824
824
  export const UpdateProjectDataCacheLinkProjectsResponse200Type = {
825
- GithubCustomHost: "github-custom-host",
825
+ Bitbucket: "bitbucket",
826
826
  } as const;
827
827
  export type UpdateProjectDataCacheLinkProjectsResponse200Type = ClosedEnum<
828
828
  typeof UpdateProjectDataCacheLinkProjectsResponse200Type
@@ -837,15 +837,12 @@ export type UpdateProjectDataCacheLinkProjectsResponseDeployHooks = {
837
837
  };
838
838
 
839
839
  export type Link5 = {
840
- org: string;
841
- /**
842
- * A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes.
843
- */
844
- repoOwnerId?: number | undefined;
845
- repo?: string | undefined;
846
- repoId?: number | undefined;
840
+ name: string;
841
+ slug: string;
842
+ owner: string;
847
843
  type: UpdateProjectDataCacheLinkProjectsResponse200Type;
848
- host: string;
844
+ uuid: string;
845
+ workspaceUuid: string;
849
846
  createdAt?: number | undefined;
850
847
  deployHooks: Array<UpdateProjectDataCacheLinkProjectsResponseDeployHooks>;
851
848
  gitCredentialId: string;
@@ -855,7 +852,7 @@ export type Link5 = {
855
852
  };
856
853
 
857
854
  export const UpdateProjectDataCacheLinkProjectsResponseType = {
858
- Bitbucket: "bitbucket",
855
+ Gitlab: "gitlab",
859
856
  } as const;
860
857
  export type UpdateProjectDataCacheLinkProjectsResponseType = ClosedEnum<
861
858
  typeof UpdateProjectDataCacheLinkProjectsResponseType
@@ -870,12 +867,16 @@ export type UpdateProjectDataCacheLinkProjectsDeployHooks = {
870
867
  };
871
868
 
872
869
  export type Link4 = {
873
- name: string;
874
- slug: string;
875
- owner: string;
870
+ projectId: string;
871
+ projectName: string;
872
+ projectNameWithNamespace: string;
873
+ projectNamespace: string;
874
+ /**
875
+ * A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. This is the id of the top level group that a namespace belongs to. Gitlab supports group nesting (up to 20 levels).
876
+ */
877
+ projectOwnerId?: number | undefined;
878
+ projectUrl: string;
876
879
  type: UpdateProjectDataCacheLinkProjectsResponseType;
877
- uuid: string;
878
- workspaceUuid: string;
879
880
  createdAt?: number | undefined;
880
881
  deployHooks: Array<UpdateProjectDataCacheLinkProjectsDeployHooks>;
881
882
  gitCredentialId: string;
@@ -885,7 +886,7 @@ export type Link4 = {
885
886
  };
886
887
 
887
888
  export const UpdateProjectDataCacheLinkProjectsType = {
888
- Gitlab: "gitlab",
889
+ GithubCustomHost: "github-custom-host",
889
890
  } as const;
890
891
  export type UpdateProjectDataCacheLinkProjectsType = ClosedEnum<
891
892
  typeof UpdateProjectDataCacheLinkProjectsType
@@ -900,16 +901,15 @@ export type UpdateProjectDataCacheLinkDeployHooks = {
900
901
  };
901
902
 
902
903
  export type Link3 = {
903
- projectId: string;
904
- projectName: string;
905
- projectNameWithNamespace: string;
906
- projectNamespace: string;
904
+ org: string;
907
905
  /**
908
- * A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. This is the id of the top level group that a namespace belongs to. Gitlab supports group nesting (up to 20 levels).
906
+ * A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes.
909
907
  */
910
- projectOwnerId?: number | undefined;
911
- projectUrl: string;
908
+ repoOwnerId?: number | undefined;
909
+ repo?: string | undefined;
910
+ repoId?: number | undefined;
912
911
  type: UpdateProjectDataCacheLinkProjectsType;
912
+ host: string;
913
913
  createdAt?: number | undefined;
914
914
  deployHooks: Array<UpdateProjectDataCacheLinkDeployHooks>;
915
915
  gitCredentialId: string;
@@ -980,7 +980,7 @@ export type Link1 = {
980
980
  productionBranch: string;
981
981
  };
982
982
 
983
- export type Link = Link3 | Link4 | Link5 | Link1 | Link2;
983
+ export type Link = Link4 | Link5 | Link3 | Link1 | Link2;
984
984
 
985
985
  export type UpdateProjectDataCacheMicrofrontends2 = {
986
986
  updatedAt: number;
@@ -1421,6 +1421,7 @@ export type Permissions = {
1421
1421
  notificationCustomerBudget?: Array<ACLAction> | undefined;
1422
1422
  notificationStatementOfReasons?: Array<ACLAction> | undefined;
1423
1423
  observabilityConfiguration?: Array<ACLAction> | undefined;
1424
+ alerts?: Array<ACLAction> | undefined;
1424
1425
  observabilityNotebook?: Array<ACLAction> | undefined;
1425
1426
  observabilityFunnel?: Array<ACLAction> | undefined;
1426
1427
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
@@ -1711,18 +1712,18 @@ export type BotFilter = {
1711
1712
  action?: UpdateProjectDataCacheProjectsResponseAction | undefined;
1712
1713
  };
1713
1714
 
1714
- export const UpdateProjectDataCacheAction = {
1715
+ export const UpdateProjectDataCacheProjectsResponse200Action = {
1715
1716
  Log: "log",
1716
1717
  Challenge: "challenge",
1717
1718
  Deny: "deny",
1718
1719
  } as const;
1719
- export type UpdateProjectDataCacheAction = ClosedEnum<
1720
- typeof UpdateProjectDataCacheAction
1720
+ export type UpdateProjectDataCacheProjectsResponse200Action = ClosedEnum<
1721
+ typeof UpdateProjectDataCacheProjectsResponse200Action
1721
1722
  >;
1722
1723
 
1723
1724
  export type UpdateProjectDataCacheAiBots = {
1724
1725
  active: boolean;
1725
- action?: UpdateProjectDataCacheAction | undefined;
1726
+ action?: UpdateProjectDataCacheProjectsResponse200Action | undefined;
1726
1727
  };
1727
1728
 
1728
1729
  export const UpdateProjectDataCacheProjectsAction = {
@@ -1798,6 +1799,312 @@ export type Features = {
1798
1799
  webAnalytics?: boolean | undefined;
1799
1800
  };
1800
1801
 
1802
+ export type UpdateProjectDataCacheHistory = {
1803
+ scanner: string;
1804
+ reason: string;
1805
+ by: string;
1806
+ byId: string;
1807
+ at: number;
1808
+ };
1809
+
1810
+ export const UpdateProjectDataCacheAction = {
1811
+ Blocked: "blocked",
1812
+ } as const;
1813
+ export type UpdateProjectDataCacheAction = ClosedEnum<
1814
+ typeof UpdateProjectDataCacheAction
1815
+ >;
1816
+
1817
+ export type Block = {
1818
+ action: UpdateProjectDataCacheAction;
1819
+ reason: string;
1820
+ statusCode: number;
1821
+ createdAt: number;
1822
+ caseId?: string | undefined;
1823
+ actor?: string | undefined;
1824
+ comment?: string | undefined;
1825
+ isCascading?: boolean | undefined;
1826
+ };
1827
+
1828
+ export const UpdateProjectDataCacheBlockHistoryProjectsResponseAction = {
1829
+ RouteUnblocked: "route-unblocked",
1830
+ } as const;
1831
+ export type UpdateProjectDataCacheBlockHistoryProjectsResponseAction =
1832
+ ClosedEnum<typeof UpdateProjectDataCacheBlockHistoryProjectsResponseAction>;
1833
+
1834
+ export const UpdateProjectDataCacheHasProjectsResponseType = {
1835
+ Host: "host",
1836
+ } as const;
1837
+ export type UpdateProjectDataCacheHasProjectsResponseType = ClosedEnum<
1838
+ typeof UpdateProjectDataCacheHasProjectsResponseType
1839
+ >;
1840
+
1841
+ export type UpdateProjectDataCacheHasProjectsValue = {
1842
+ eq: string;
1843
+ };
1844
+
1845
+ export type UpdateProjectDataCacheHas2 = {
1846
+ type: UpdateProjectDataCacheHasProjectsResponseType;
1847
+ value: UpdateProjectDataCacheHasProjectsValue;
1848
+ };
1849
+
1850
+ export const UpdateProjectDataCacheHasProjectsType = {
1851
+ Header: "header",
1852
+ } as const;
1853
+ export type UpdateProjectDataCacheHasProjectsType = ClosedEnum<
1854
+ typeof UpdateProjectDataCacheHasProjectsType
1855
+ >;
1856
+
1857
+ export const UpdateProjectDataCacheHasProjectsKey = {
1858
+ XVercelIpCountry: "x-vercel-ip-country",
1859
+ } as const;
1860
+ export type UpdateProjectDataCacheHasProjectsKey = ClosedEnum<
1861
+ typeof UpdateProjectDataCacheHasProjectsKey
1862
+ >;
1863
+
1864
+ export type UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue = {
1865
+ eq: string;
1866
+ };
1867
+
1868
+ export type UpdateProjectDataCacheHas1 = {
1869
+ type: UpdateProjectDataCacheHasProjectsType;
1870
+ key: UpdateProjectDataCacheHasProjectsKey;
1871
+ value: UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue;
1872
+ };
1873
+
1874
+ export type RouteHas = UpdateProjectDataCacheHas1 | UpdateProjectDataCacheHas2;
1875
+
1876
+ export const UpdateProjectDataCacheRouteAction = {
1877
+ BlockLegalCwc: "block_legal_cwc",
1878
+ } as const;
1879
+ export type UpdateProjectDataCacheRouteAction = ClosedEnum<
1880
+ typeof UpdateProjectDataCacheRouteAction
1881
+ >;
1882
+
1883
+ export type RouteMitigate = {
1884
+ action: UpdateProjectDataCacheRouteAction;
1885
+ };
1886
+
1887
+ export type UpdateProjectDataCacheRoute2 = {
1888
+ has: Array<UpdateProjectDataCacheHas1 | UpdateProjectDataCacheHas2>;
1889
+ mitigate: RouteMitigate;
1890
+ src?: string | undefined;
1891
+ };
1892
+
1893
+ export type UpdateProjectDataCacheRoute1 = {
1894
+ src: string;
1895
+ status: number;
1896
+ };
1897
+
1898
+ export type BlockHistoryRoute =
1899
+ | UpdateProjectDataCacheRoute1
1900
+ | UpdateProjectDataCacheRoute2;
1901
+
1902
+ export type BlockHistory4 = {
1903
+ action: UpdateProjectDataCacheBlockHistoryProjectsResponseAction;
1904
+ route: UpdateProjectDataCacheRoute1 | UpdateProjectDataCacheRoute2;
1905
+ statusCode?: number | undefined;
1906
+ createdAt: number;
1907
+ caseId?: string | undefined;
1908
+ actor?: string | undefined;
1909
+ comment?: string | undefined;
1910
+ isCascading?: boolean | undefined;
1911
+ };
1912
+
1913
+ export const UpdateProjectDataCacheBlockHistoryProjectsAction = {
1914
+ RouteBlocked: "route-blocked",
1915
+ } as const;
1916
+ export type UpdateProjectDataCacheBlockHistoryProjectsAction = ClosedEnum<
1917
+ typeof UpdateProjectDataCacheBlockHistoryProjectsAction
1918
+ >;
1919
+
1920
+ export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType = {
1921
+ Host: "host",
1922
+ } as const;
1923
+ export type UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType =
1924
+ ClosedEnum<
1925
+ typeof UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType
1926
+ >;
1927
+
1928
+ export type UpdateProjectDataCacheHasProjectsResponse200Value = {
1929
+ eq: string;
1930
+ };
1931
+
1932
+ export type UpdateProjectDataCacheHasProjects2 = {
1933
+ type: UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType;
1934
+ value: UpdateProjectDataCacheHasProjectsResponse200Value;
1935
+ };
1936
+
1937
+ export const UpdateProjectDataCacheHasProjectsResponse200Type = {
1938
+ Header: "header",
1939
+ } as const;
1940
+ export type UpdateProjectDataCacheHasProjectsResponse200Type = ClosedEnum<
1941
+ typeof UpdateProjectDataCacheHasProjectsResponse200Type
1942
+ >;
1943
+
1944
+ export const UpdateProjectDataCacheHasKey = {
1945
+ XVercelIpCountry: "x-vercel-ip-country",
1946
+ } as const;
1947
+ export type UpdateProjectDataCacheHasKey = ClosedEnum<
1948
+ typeof UpdateProjectDataCacheHasKey
1949
+ >;
1950
+
1951
+ export type UpdateProjectDataCacheHasProjectsResponseValue = {
1952
+ eq: string;
1953
+ };
1954
+
1955
+ export type UpdateProjectDataCacheHasProjects1 = {
1956
+ type: UpdateProjectDataCacheHasProjectsResponse200Type;
1957
+ key: UpdateProjectDataCacheHasKey;
1958
+ value: UpdateProjectDataCacheHasProjectsResponseValue;
1959
+ };
1960
+
1961
+ export type UpdateProjectDataCacheRouteHas =
1962
+ | UpdateProjectDataCacheHasProjects1
1963
+ | UpdateProjectDataCacheHasProjects2;
1964
+
1965
+ export const RouteAction = {
1966
+ BlockLegalCwc: "block_legal_cwc",
1967
+ } as const;
1968
+ export type RouteAction = ClosedEnum<typeof RouteAction>;
1969
+
1970
+ export type UpdateProjectDataCacheRouteMitigate = {
1971
+ action: RouteAction;
1972
+ };
1973
+
1974
+ export type Route2 = {
1975
+ has: Array<
1976
+ UpdateProjectDataCacheHasProjects1 | UpdateProjectDataCacheHasProjects2
1977
+ >;
1978
+ mitigate: UpdateProjectDataCacheRouteMitigate;
1979
+ src?: string | undefined;
1980
+ };
1981
+
1982
+ export type Route1 = {
1983
+ src: string;
1984
+ status: number;
1985
+ };
1986
+
1987
+ export type Route = Route1 | Route2;
1988
+
1989
+ export type BlockHistory3 = {
1990
+ action: UpdateProjectDataCacheBlockHistoryProjectsAction;
1991
+ route: Route1 | Route2;
1992
+ reason: string;
1993
+ createdAt: number;
1994
+ caseId?: string | undefined;
1995
+ actor?: string | undefined;
1996
+ comment?: string | undefined;
1997
+ isCascading?: boolean | undefined;
1998
+ };
1999
+
2000
+ export const UpdateProjectDataCacheBlockHistoryAction = {
2001
+ Unblocked: "unblocked",
2002
+ } as const;
2003
+ export type UpdateProjectDataCacheBlockHistoryAction = ClosedEnum<
2004
+ typeof UpdateProjectDataCacheBlockHistoryAction
2005
+ >;
2006
+
2007
+ export type BlockHistory2 = {
2008
+ action: UpdateProjectDataCacheBlockHistoryAction;
2009
+ createdAt: number;
2010
+ caseId?: string | undefined;
2011
+ actor?: string | undefined;
2012
+ comment?: string | undefined;
2013
+ isCascading?: boolean | undefined;
2014
+ };
2015
+
2016
+ export const BlockHistoryAction = {
2017
+ Blocked: "blocked",
2018
+ } as const;
2019
+ export type BlockHistoryAction = ClosedEnum<typeof BlockHistoryAction>;
2020
+
2021
+ export type BlockHistory1 = {
2022
+ action: BlockHistoryAction;
2023
+ reason: string;
2024
+ statusCode: number;
2025
+ createdAt: number;
2026
+ caseId?: string | undefined;
2027
+ actor?: string | undefined;
2028
+ comment?: string | undefined;
2029
+ isCascading?: boolean | undefined;
2030
+ };
2031
+
2032
+ export type UpdateProjectDataCacheBlockHistory =
2033
+ | BlockHistory1
2034
+ | BlockHistory3
2035
+ | BlockHistory4
2036
+ | BlockHistory2;
2037
+
2038
+ export type UpdateProjectDataCacheAbuse = {
2039
+ scanner?: string | undefined;
2040
+ history: Array<UpdateProjectDataCacheHistory>;
2041
+ updatedAt: number;
2042
+ block?: Block | undefined;
2043
+ blockHistory?:
2044
+ | Array<BlockHistory1 | BlockHistory3 | BlockHistory4 | BlockHistory2>
2045
+ | undefined;
2046
+ };
2047
+
2048
+ export const UpdateProjectDataCacheHasType = {
2049
+ Host: "host",
2050
+ } as const;
2051
+ export type UpdateProjectDataCacheHasType = ClosedEnum<
2052
+ typeof UpdateProjectDataCacheHasType
2053
+ >;
2054
+
2055
+ export type HasValue = {
2056
+ eq: string;
2057
+ };
2058
+
2059
+ export type Has2 = {
2060
+ type: UpdateProjectDataCacheHasType;
2061
+ value: HasValue;
2062
+ };
2063
+
2064
+ export const HasType = {
2065
+ Header: "header",
2066
+ } as const;
2067
+ export type HasType = ClosedEnum<typeof HasType>;
2068
+
2069
+ export const Key = {
2070
+ XVercelIpCountry: "x-vercel-ip-country",
2071
+ } as const;
2072
+ export type Key = ClosedEnum<typeof Key>;
2073
+
2074
+ export type UpdateProjectDataCacheHasValue = {
2075
+ eq: string;
2076
+ };
2077
+
2078
+ export type Has1 = {
2079
+ type: HasType;
2080
+ key: Key;
2081
+ value: UpdateProjectDataCacheHasValue;
2082
+ };
2083
+
2084
+ export type Has = Has1 | Has2;
2085
+
2086
+ export const InternalRoutesAction = {
2087
+ BlockLegalCwc: "block_legal_cwc",
2088
+ } as const;
2089
+ export type InternalRoutesAction = ClosedEnum<typeof InternalRoutesAction>;
2090
+
2091
+ export type UpdateProjectDataCacheInternalRoutesMitigate = {
2092
+ action: InternalRoutesAction;
2093
+ };
2094
+
2095
+ export type InternalRoutes2 = {
2096
+ has: Array<Has1 | Has2>;
2097
+ mitigate: UpdateProjectDataCacheInternalRoutesMitigate;
2098
+ src?: string | undefined;
2099
+ };
2100
+
2101
+ export type InternalRoutes1 = {
2102
+ src: string;
2103
+ status: number;
2104
+ };
2105
+
2106
+ export type InternalRoutes = InternalRoutes1 | InternalRoutes2;
2107
+
1801
2108
  export type UpdateProjectDataCacheResponseBody = {
1802
2109
  accountId: string;
1803
2110
  analytics?: Analytics | undefined;
@@ -1833,7 +2140,7 @@ export type UpdateProjectDataCacheResponseBody = {
1833
2140
  id: string;
1834
2141
  ipBuckets?: Array<UpdateProjectDataCacheIpBuckets> | undefined;
1835
2142
  latestDeployments?: Array<LatestDeployments> | undefined;
1836
- link?: Link3 | Link4 | Link5 | Link1 | Link2 | undefined;
2143
+ link?: Link4 | Link5 | Link3 | Link1 | Link2 | undefined;
1837
2144
  microfrontends?:
1838
2145
  | UpdateProjectDataCacheMicrofrontends1
1839
2146
  | UpdateProjectDataCacheMicrofrontends2
@@ -1893,6 +2200,8 @@ export type UpdateProjectDataCacheResponseBody = {
1893
2200
  tier?: UpdateProjectDataCacheTier | undefined;
1894
2201
  features?: Features | undefined;
1895
2202
  v0?: boolean | undefined;
2203
+ abuse?: UpdateProjectDataCacheAbuse | undefined;
2204
+ internalRoutes?: Array<InternalRoutes1 | InternalRoutes2> | undefined;
1896
2205
  };
1897
2206
 
1898
2207
  /** @internal */
@@ -5626,12 +5935,12 @@ export function updateProjectDataCacheLinkProjectsResponseDeployHooksFromJSON(
5626
5935
  /** @internal */
5627
5936
  export const Link5$inboundSchema: z.ZodType<Link5, z.ZodTypeDef, unknown> = z
5628
5937
  .object({
5629
- org: z.string(),
5630
- repoOwnerId: z.number().optional(),
5631
- repo: z.string().optional(),
5632
- repoId: z.number().optional(),
5938
+ name: z.string(),
5939
+ slug: z.string(),
5940
+ owner: z.string(),
5633
5941
  type: UpdateProjectDataCacheLinkProjectsResponse200Type$inboundSchema,
5634
- host: z.string(),
5942
+ uuid: z.string(),
5943
+ workspaceUuid: z.string(),
5635
5944
  createdAt: z.number().optional(),
5636
5945
  deployHooks: z.array(
5637
5946
  z.lazy(() =>
@@ -5646,12 +5955,12 @@ export const Link5$inboundSchema: z.ZodType<Link5, z.ZodTypeDef, unknown> = z
5646
5955
 
5647
5956
  /** @internal */
5648
5957
  export type Link5$Outbound = {
5649
- org: string;
5650
- repoOwnerId?: number | undefined;
5651
- repo?: string | undefined;
5652
- repoId?: number | undefined;
5958
+ name: string;
5959
+ slug: string;
5960
+ owner: string;
5653
5961
  type: string;
5654
- host: string;
5962
+ uuid: string;
5963
+ workspaceUuid: string;
5655
5964
  createdAt?: number | undefined;
5656
5965
  deployHooks: Array<
5657
5966
  UpdateProjectDataCacheLinkProjectsResponseDeployHooks$Outbound
@@ -5668,12 +5977,12 @@ export const Link5$outboundSchema: z.ZodType<
5668
5977
  z.ZodTypeDef,
5669
5978
  Link5
5670
5979
  > = z.object({
5671
- org: z.string(),
5672
- repoOwnerId: z.number().optional(),
5673
- repo: z.string().optional(),
5674
- repoId: z.number().optional(),
5980
+ name: z.string(),
5981
+ slug: z.string(),
5982
+ owner: z.string(),
5675
5983
  type: UpdateProjectDataCacheLinkProjectsResponse200Type$outboundSchema,
5676
- host: z.string(),
5984
+ uuid: z.string(),
5985
+ workspaceUuid: z.string(),
5677
5986
  createdAt: z.number().optional(),
5678
5987
  deployHooks: z.array(
5679
5988
  z.lazy(() =>
@@ -5818,12 +6127,13 @@ export function updateProjectDataCacheLinkProjectsDeployHooksFromJSON(
5818
6127
  /** @internal */
5819
6128
  export const Link4$inboundSchema: z.ZodType<Link4, z.ZodTypeDef, unknown> = z
5820
6129
  .object({
5821
- name: z.string(),
5822
- slug: z.string(),
5823
- owner: z.string(),
6130
+ projectId: z.string(),
6131
+ projectName: z.string(),
6132
+ projectNameWithNamespace: z.string(),
6133
+ projectNamespace: z.string(),
6134
+ projectOwnerId: z.number().optional(),
6135
+ projectUrl: z.string(),
5824
6136
  type: UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema,
5825
- uuid: z.string(),
5826
- workspaceUuid: z.string(),
5827
6137
  createdAt: z.number().optional(),
5828
6138
  deployHooks: z.array(
5829
6139
  z.lazy(() => UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema),
@@ -5836,12 +6146,13 @@ export const Link4$inboundSchema: z.ZodType<Link4, z.ZodTypeDef, unknown> = z
5836
6146
 
5837
6147
  /** @internal */
5838
6148
  export type Link4$Outbound = {
5839
- name: string;
5840
- slug: string;
5841
- owner: string;
6149
+ projectId: string;
6150
+ projectName: string;
6151
+ projectNameWithNamespace: string;
6152
+ projectNamespace: string;
6153
+ projectOwnerId?: number | undefined;
6154
+ projectUrl: string;
5842
6155
  type: string;
5843
- uuid: string;
5844
- workspaceUuid: string;
5845
6156
  createdAt?: number | undefined;
5846
6157
  deployHooks: Array<UpdateProjectDataCacheLinkProjectsDeployHooks$Outbound>;
5847
6158
  gitCredentialId: string;
@@ -5856,12 +6167,13 @@ export const Link4$outboundSchema: z.ZodType<
5856
6167
  z.ZodTypeDef,
5857
6168
  Link4
5858
6169
  > = z.object({
5859
- name: z.string(),
5860
- slug: z.string(),
5861
- owner: z.string(),
6170
+ projectId: z.string(),
6171
+ projectName: z.string(),
6172
+ projectNameWithNamespace: z.string(),
6173
+ projectNamespace: z.string(),
6174
+ projectOwnerId: z.number().optional(),
6175
+ projectUrl: z.string(),
5862
6176
  type: UpdateProjectDataCacheLinkProjectsResponseType$outboundSchema,
5863
- uuid: z.string(),
5864
- workspaceUuid: z.string(),
5865
6177
  createdAt: z.number().optional(),
5866
6178
  deployHooks: z.array(
5867
6179
  z.lazy(() => UpdateProjectDataCacheLinkProjectsDeployHooks$outboundSchema),
@@ -5997,13 +6309,12 @@ export function updateProjectDataCacheLinkDeployHooksFromJSON(
5997
6309
  /** @internal */
5998
6310
  export const Link3$inboundSchema: z.ZodType<Link3, z.ZodTypeDef, unknown> = z
5999
6311
  .object({
6000
- projectId: z.string(),
6001
- projectName: z.string(),
6002
- projectNameWithNamespace: z.string(),
6003
- projectNamespace: z.string(),
6004
- projectOwnerId: z.number().optional(),
6005
- projectUrl: z.string(),
6312
+ org: z.string(),
6313
+ repoOwnerId: z.number().optional(),
6314
+ repo: z.string().optional(),
6315
+ repoId: z.number().optional(),
6006
6316
  type: UpdateProjectDataCacheLinkProjectsType$inboundSchema,
6317
+ host: z.string(),
6007
6318
  createdAt: z.number().optional(),
6008
6319
  deployHooks: z.array(
6009
6320
  z.lazy(() => UpdateProjectDataCacheLinkDeployHooks$inboundSchema),
@@ -6016,13 +6327,12 @@ export const Link3$inboundSchema: z.ZodType<Link3, z.ZodTypeDef, unknown> = z
6016
6327
 
6017
6328
  /** @internal */
6018
6329
  export type Link3$Outbound = {
6019
- projectId: string;
6020
- projectName: string;
6021
- projectNameWithNamespace: string;
6022
- projectNamespace: string;
6023
- projectOwnerId?: number | undefined;
6024
- projectUrl: string;
6330
+ org: string;
6331
+ repoOwnerId?: number | undefined;
6332
+ repo?: string | undefined;
6333
+ repoId?: number | undefined;
6025
6334
  type: string;
6335
+ host: string;
6026
6336
  createdAt?: number | undefined;
6027
6337
  deployHooks: Array<UpdateProjectDataCacheLinkDeployHooks$Outbound>;
6028
6338
  gitCredentialId: string;
@@ -6037,13 +6347,12 @@ export const Link3$outboundSchema: z.ZodType<
6037
6347
  z.ZodTypeDef,
6038
6348
  Link3
6039
6349
  > = z.object({
6040
- projectId: z.string(),
6041
- projectName: z.string(),
6042
- projectNameWithNamespace: z.string(),
6043
- projectNamespace: z.string(),
6044
- projectOwnerId: z.number().optional(),
6045
- projectUrl: z.string(),
6350
+ org: z.string(),
6351
+ repoOwnerId: z.number().optional(),
6352
+ repo: z.string().optional(),
6353
+ repoId: z.number().optional(),
6046
6354
  type: UpdateProjectDataCacheLinkProjectsType$outboundSchema,
6355
+ host: z.string(),
6047
6356
  createdAt: z.number().optional(),
6048
6357
  deployHooks: z.array(
6049
6358
  z.lazy(() => UpdateProjectDataCacheLinkDeployHooks$outboundSchema),
@@ -6404,27 +6713,27 @@ export function link1FromJSON(
6404
6713
  /** @internal */
6405
6714
  export const Link$inboundSchema: z.ZodType<Link, z.ZodTypeDef, unknown> = z
6406
6715
  .union([
6407
- z.lazy(() => Link3$inboundSchema),
6408
6716
  z.lazy(() => Link4$inboundSchema),
6409
6717
  z.lazy(() => Link5$inboundSchema),
6718
+ z.lazy(() => Link3$inboundSchema),
6410
6719
  z.lazy(() => Link1$inboundSchema),
6411
6720
  z.lazy(() => Link2$inboundSchema),
6412
6721
  ]);
6413
6722
 
6414
6723
  /** @internal */
6415
6724
  export type Link$Outbound =
6416
- | Link3$Outbound
6417
6725
  | Link4$Outbound
6418
6726
  | Link5$Outbound
6727
+ | Link3$Outbound
6419
6728
  | Link1$Outbound
6420
6729
  | Link2$Outbound;
6421
6730
 
6422
6731
  /** @internal */
6423
6732
  export const Link$outboundSchema: z.ZodType<Link$Outbound, z.ZodTypeDef, Link> =
6424
6733
  z.union([
6425
- z.lazy(() => Link3$outboundSchema),
6426
6734
  z.lazy(() => Link4$outboundSchema),
6427
6735
  z.lazy(() => Link5$outboundSchema),
6736
+ z.lazy(() => Link3$outboundSchema),
6428
6737
  z.lazy(() => Link1$outboundSchema),
6429
6738
  z.lazy(() => Link2$outboundSchema),
6430
6739
  ]);
@@ -8206,6 +8515,7 @@ export const Permissions$inboundSchema: z.ZodType<
8206
8515
  notificationCustomerBudget: z.array(ACLAction$inboundSchema).optional(),
8207
8516
  notificationStatementOfReasons: z.array(ACLAction$inboundSchema).optional(),
8208
8517
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
8518
+ alerts: z.array(ACLAction$inboundSchema).optional(),
8209
8519
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
8210
8520
  observabilityFunnel: z.array(ACLAction$inboundSchema).optional(),
8211
8521
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
@@ -8430,6 +8740,7 @@ export type Permissions$Outbound = {
8430
8740
  notificationCustomerBudget?: Array<string> | undefined;
8431
8741
  notificationStatementOfReasons?: Array<string> | undefined;
8432
8742
  observabilityConfiguration?: Array<string> | undefined;
8743
+ alerts?: Array<string> | undefined;
8433
8744
  observabilityNotebook?: Array<string> | undefined;
8434
8745
  observabilityFunnel?: Array<string> | undefined;
8435
8746
  openTelemetryEndpoint?: Array<string> | undefined;
@@ -8655,6 +8966,7 @@ export const Permissions$outboundSchema: z.ZodType<
8655
8966
  notificationCustomerBudget: z.array(ACLAction$outboundSchema).optional(),
8656
8967
  notificationStatementOfReasons: z.array(ACLAction$outboundSchema).optional(),
8657
8968
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
8969
+ alerts: z.array(ACLAction$outboundSchema).optional(),
8658
8970
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
8659
8971
  observabilityFunnel: z.array(ACLAction$outboundSchema).optional(),
8660
8972
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
@@ -9786,24 +10098,26 @@ export function botFilterFromJSON(
9786
10098
  }
9787
10099
 
9788
10100
  /** @internal */
9789
- export const UpdateProjectDataCacheAction$inboundSchema: z.ZodNativeEnum<
9790
- typeof UpdateProjectDataCacheAction
9791
- > = z.nativeEnum(UpdateProjectDataCacheAction);
10101
+ export const UpdateProjectDataCacheProjectsResponse200Action$inboundSchema:
10102
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponse200Action> = z
10103
+ .nativeEnum(UpdateProjectDataCacheProjectsResponse200Action);
9792
10104
 
9793
10105
  /** @internal */
9794
- export const UpdateProjectDataCacheAction$outboundSchema: z.ZodNativeEnum<
9795
- typeof UpdateProjectDataCacheAction
9796
- > = UpdateProjectDataCacheAction$inboundSchema;
10106
+ export const UpdateProjectDataCacheProjectsResponse200Action$outboundSchema:
10107
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponse200Action> =
10108
+ UpdateProjectDataCacheProjectsResponse200Action$inboundSchema;
9797
10109
 
9798
10110
  /**
9799
10111
  * @internal
9800
10112
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9801
10113
  */
9802
- export namespace UpdateProjectDataCacheAction$ {
9803
- /** @deprecated use `UpdateProjectDataCacheAction$inboundSchema` instead. */
9804
- export const inboundSchema = UpdateProjectDataCacheAction$inboundSchema;
9805
- /** @deprecated use `UpdateProjectDataCacheAction$outboundSchema` instead. */
9806
- export const outboundSchema = UpdateProjectDataCacheAction$outboundSchema;
10114
+ export namespace UpdateProjectDataCacheProjectsResponse200Action$ {
10115
+ /** @deprecated use `UpdateProjectDataCacheProjectsResponse200Action$inboundSchema` instead. */
10116
+ export const inboundSchema =
10117
+ UpdateProjectDataCacheProjectsResponse200Action$inboundSchema;
10118
+ /** @deprecated use `UpdateProjectDataCacheProjectsResponse200Action$outboundSchema` instead. */
10119
+ export const outboundSchema =
10120
+ UpdateProjectDataCacheProjectsResponse200Action$outboundSchema;
9807
10121
  }
9808
10122
 
9809
10123
  /** @internal */
@@ -9813,7 +10127,8 @@ export const UpdateProjectDataCacheAiBots$inboundSchema: z.ZodType<
9813
10127
  unknown
9814
10128
  > = z.object({
9815
10129
  active: z.boolean(),
9816
- action: UpdateProjectDataCacheAction$inboundSchema.optional(),
10130
+ action: UpdateProjectDataCacheProjectsResponse200Action$inboundSchema
10131
+ .optional(),
9817
10132
  });
9818
10133
 
9819
10134
  /** @internal */
@@ -9829,7 +10144,8 @@ export const UpdateProjectDataCacheAiBots$outboundSchema: z.ZodType<
9829
10144
  UpdateProjectDataCacheAiBots
9830
10145
  > = z.object({
9831
10146
  active: z.boolean(),
9832
- action: UpdateProjectDataCacheAction$outboundSchema.optional(),
10147
+ action: UpdateProjectDataCacheProjectsResponse200Action$outboundSchema
10148
+ .optional(),
9833
10149
  });
9834
10150
 
9835
10151
  /**
@@ -10270,225 +10586,2775 @@ export function featuresFromJSON(
10270
10586
  }
10271
10587
 
10272
10588
  /** @internal */
10273
- export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10274
- UpdateProjectDataCacheResponseBody,
10589
+ export const UpdateProjectDataCacheHistory$inboundSchema: z.ZodType<
10590
+ UpdateProjectDataCacheHistory,
10275
10591
  z.ZodTypeDef,
10276
10592
  unknown
10277
10593
  > = z.object({
10278
- accountId: z.string(),
10279
- analytics: z.lazy(() => Analytics$inboundSchema).optional(),
10280
- speedInsights: z.lazy(() => SpeedInsights$inboundSchema).optional(),
10281
- autoExposeSystemEnvs: z.boolean().optional(),
10282
- autoAssignCustomDomains: z.boolean().optional(),
10283
- autoAssignCustomDomainsUpdatedBy: z.string().optional(),
10284
- buildCommand: z.nullable(z.string()).optional(),
10285
- commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
10286
- connectConfigurations: z.nullable(
10287
- z.array(z.lazy(() =>
10288
- UpdateProjectDataCacheConnectConfigurations$inboundSchema
10289
- )),
10290
- ).optional(),
10291
- connectConfigurationId: z.nullable(z.string()).optional(),
10292
- connectBuildsEnabled: z.boolean().optional(),
10293
- passiveConnectConfigurationId: z.nullable(z.string()).optional(),
10294
- createdAt: z.number().optional(),
10295
- customerSupportCodeVisibility: z.boolean().optional(),
10296
- crons: z.lazy(() => Crons$inboundSchema).optional(),
10297
- dataCache: z.lazy(() => UpdateProjectDataCacheDataCache$inboundSchema)
10298
- .optional(),
10299
- deploymentExpiration: z.nullable(
10300
- z.lazy(() => DeploymentExpiration$inboundSchema),
10301
- ).optional(),
10302
- devCommand: z.nullable(z.string()).optional(),
10303
- directoryListing: z.boolean(),
10304
- installCommand: z.nullable(z.string()).optional(),
10305
- env: z.array(z.lazy(() => Env$inboundSchema)).optional(),
10306
- customEnvironments: z.array(z.lazy(() => CustomEnvironments$inboundSchema))
10307
- .optional(),
10308
- framework: z.nullable(UpdateProjectDataCacheFramework$inboundSchema)
10309
- .optional(),
10310
- gitForkProtection: z.boolean().optional(),
10311
- gitLFS: z.boolean().optional(),
10312
- id: z.string(),
10313
- ipBuckets: z.array(
10314
- z.lazy(() => UpdateProjectDataCacheIpBuckets$inboundSchema),
10315
- ).optional(),
10316
- latestDeployments: z.array(z.lazy(() => LatestDeployments$inboundSchema))
10317
- .optional(),
10318
- link: z.union([
10319
- z.lazy(() => Link3$inboundSchema),
10320
- z.lazy(() => Link4$inboundSchema),
10321
- z.lazy(() => Link5$inboundSchema),
10322
- z.lazy(() => Link1$inboundSchema),
10323
- z.lazy(() => Link2$inboundSchema),
10324
- ]).optional(),
10325
- microfrontends: z.union([
10326
- z.lazy(() => UpdateProjectDataCacheMicrofrontends1$inboundSchema),
10327
- z.lazy(() => UpdateProjectDataCacheMicrofrontends2$inboundSchema),
10328
- ]).optional(),
10329
- name: z.string(),
10330
- nodeVersion: UpdateProjectDataCacheNodeVersion$inboundSchema,
10331
- optionsAllowlist: z.nullable(
10332
- z.lazy(() => UpdateProjectDataCacheOptionsAllowlist$inboundSchema),
10333
- ).optional(),
10334
- outputDirectory: z.nullable(z.string()).optional(),
10335
- passwordProtection: z.nullable(
10336
- z.lazy(() => UpdateProjectDataCachePasswordProtection$inboundSchema),
10337
- ).optional(),
10338
- productionDeploymentsFastLane: z.boolean().optional(),
10339
- publicSource: z.nullable(z.boolean()).optional(),
10340
- resourceConfig: z.lazy(() =>
10341
- UpdateProjectDataCacheResourceConfig$inboundSchema
10342
- ),
10343
- rollbackDescription: z.lazy(() => RollbackDescription$inboundSchema)
10344
- .optional(),
10345
- rollingRelease: z.nullable(z.lazy(() => RollingRelease$inboundSchema))
10346
- .optional(),
10347
- defaultResourceConfig: z.lazy(() => DefaultResourceConfig$inboundSchema),
10348
- rootDirectory: z.nullable(z.string()).optional(),
10349
- serverlessFunctionZeroConfigFailover: z.boolean().optional(),
10350
- skewProtectionBoundaryAt: z.number().optional(),
10351
- skewProtectionMaxAge: z.number().optional(),
10352
- skipGitConnectDuringLink: z.boolean().optional(),
10353
- sourceFilesOutsideRootDirectory: z.boolean().optional(),
10354
- enableAffectedProjectsDeployments: z.boolean().optional(),
10355
- ssoProtection: z.nullable(
10356
- z.lazy(() => UpdateProjectDataCacheSsoProtection$inboundSchema),
10357
- ).optional(),
10358
- targets: z.record(z.nullable(z.lazy(() => Targets$inboundSchema))).optional(),
10359
- transferCompletedAt: z.number().optional(),
10360
- transferStartedAt: z.number().optional(),
10361
- transferToAccountId: z.string().optional(),
10362
- transferredFromAccountId: z.string().optional(),
10363
- updatedAt: z.number().optional(),
10364
- live: z.boolean().optional(),
10365
- enablePreviewFeedback: z.nullable(z.boolean()).optional(),
10366
- enableProductionFeedback: z.nullable(z.boolean()).optional(),
10367
- permissions: z.lazy(() => Permissions$inboundSchema).optional(),
10368
- lastRollbackTarget: z.nullable(z.lazy(() => LastRollbackTarget$inboundSchema))
10369
- .optional(),
10370
- lastAliasRequest: z.nullable(z.lazy(() => LastAliasRequest$inboundSchema))
10371
- .optional(),
10372
- protectionBypass: z.record(
10373
- z.union([
10374
- z.lazy(() => ProtectionBypass1$inboundSchema),
10375
- z.lazy(() => ProtectionBypass2$inboundSchema),
10376
- ]),
10377
- ).optional(),
10378
- hasActiveBranches: z.boolean().optional(),
10379
- trustedIps: z.nullable(
10380
- z.union([
10381
- z.lazy(() => TrustedIps1$inboundSchema),
10382
- z.lazy(() => TrustedIps2$inboundSchema),
10383
- ]),
10384
- ).optional(),
10385
- gitComments: z.lazy(() => GitComments$inboundSchema).optional(),
10386
- gitProviderOptions: z.lazy(() => GitProviderOptions$inboundSchema).optional(),
10387
- paused: z.boolean().optional(),
10388
- concurrencyBucketName: z.string().optional(),
10389
- webAnalytics: z.lazy(() => UpdateProjectDataCacheWebAnalytics$inboundSchema)
10390
- .optional(),
10391
- security: z.lazy(() => UpdateProjectDataCacheSecurity$inboundSchema)
10392
- .optional(),
10393
- oidcTokenConfig: z.lazy(() =>
10394
- UpdateProjectDataCacheOidcTokenConfig$inboundSchema
10395
- ).optional(),
10396
- tier: UpdateProjectDataCacheTier$inboundSchema.optional(),
10397
- features: z.lazy(() => Features$inboundSchema).optional(),
10398
- v0: z.boolean().optional(),
10594
+ scanner: z.string(),
10595
+ reason: z.string(),
10596
+ by: z.string(),
10597
+ byId: z.string(),
10598
+ at: z.number(),
10399
10599
  });
10400
10600
 
10401
10601
  /** @internal */
10402
- export type UpdateProjectDataCacheResponseBody$Outbound = {
10403
- accountId: string;
10404
- analytics?: Analytics$Outbound | undefined;
10405
- speedInsights?: SpeedInsights$Outbound | undefined;
10406
- autoExposeSystemEnvs?: boolean | undefined;
10407
- autoAssignCustomDomains?: boolean | undefined;
10408
- autoAssignCustomDomainsUpdatedBy?: string | undefined;
10409
- buildCommand?: string | null | undefined;
10410
- commandForIgnoringBuildStep?: string | null | undefined;
10411
- connectConfigurations?:
10412
- | Array<UpdateProjectDataCacheConnectConfigurations$Outbound>
10413
- | null
10414
- | undefined;
10415
- connectConfigurationId?: string | null | undefined;
10416
- connectBuildsEnabled?: boolean | undefined;
10417
- passiveConnectConfigurationId?: string | null | undefined;
10418
- createdAt?: number | undefined;
10419
- customerSupportCodeVisibility?: boolean | undefined;
10420
- crons?: Crons$Outbound | undefined;
10421
- dataCache?: UpdateProjectDataCacheDataCache$Outbound | undefined;
10422
- deploymentExpiration?: DeploymentExpiration$Outbound | null | undefined;
10423
- devCommand?: string | null | undefined;
10424
- directoryListing: boolean;
10425
- installCommand?: string | null | undefined;
10426
- env?: Array<Env$Outbound> | undefined;
10427
- customEnvironments?: Array<CustomEnvironments$Outbound> | undefined;
10428
- framework?: string | null | undefined;
10429
- gitForkProtection?: boolean | undefined;
10430
- gitLFS?: boolean | undefined;
10431
- id: string;
10432
- ipBuckets?: Array<UpdateProjectDataCacheIpBuckets$Outbound> | undefined;
10433
- latestDeployments?: Array<LatestDeployments$Outbound> | undefined;
10434
- link?:
10435
- | Link3$Outbound
10436
- | Link4$Outbound
10437
- | Link5$Outbound
10438
- | Link1$Outbound
10439
- | Link2$Outbound
10440
- | undefined;
10441
- microfrontends?:
10442
- | UpdateProjectDataCacheMicrofrontends1$Outbound
10443
- | UpdateProjectDataCacheMicrofrontends2$Outbound
10444
- | undefined;
10445
- name: string;
10446
- nodeVersion: string;
10447
- optionsAllowlist?:
10448
- | UpdateProjectDataCacheOptionsAllowlist$Outbound
10449
- | null
10450
- | undefined;
10451
- outputDirectory?: string | null | undefined;
10452
- passwordProtection?:
10453
- | UpdateProjectDataCachePasswordProtection$Outbound
10454
- | null
10455
- | undefined;
10456
- productionDeploymentsFastLane?: boolean | undefined;
10457
- publicSource?: boolean | null | undefined;
10458
- resourceConfig: UpdateProjectDataCacheResourceConfig$Outbound;
10459
- rollbackDescription?: RollbackDescription$Outbound | undefined;
10460
- rollingRelease?: RollingRelease$Outbound | null | undefined;
10461
- defaultResourceConfig: DefaultResourceConfig$Outbound;
10462
- rootDirectory?: string | null | undefined;
10463
- serverlessFunctionZeroConfigFailover?: boolean | undefined;
10464
- skewProtectionBoundaryAt?: number | undefined;
10465
- skewProtectionMaxAge?: number | undefined;
10466
- skipGitConnectDuringLink?: boolean | undefined;
10467
- sourceFilesOutsideRootDirectory?: boolean | undefined;
10468
- enableAffectedProjectsDeployments?: boolean | undefined;
10469
- ssoProtection?:
10470
- | UpdateProjectDataCacheSsoProtection$Outbound
10471
- | null
10472
- | undefined;
10473
- targets?: { [k: string]: Targets$Outbound | null } | undefined;
10474
- transferCompletedAt?: number | undefined;
10475
- transferStartedAt?: number | undefined;
10476
- transferToAccountId?: string | undefined;
10477
- transferredFromAccountId?: string | undefined;
10478
- updatedAt?: number | undefined;
10479
- live?: boolean | undefined;
10480
- enablePreviewFeedback?: boolean | null | undefined;
10481
- enableProductionFeedback?: boolean | null | undefined;
10482
- permissions?: Permissions$Outbound | undefined;
10483
- lastRollbackTarget?: LastRollbackTarget$Outbound | null | undefined;
10484
- lastAliasRequest?: LastAliasRequest$Outbound | null | undefined;
10485
- protectionBypass?: {
10486
- [k: string]: ProtectionBypass1$Outbound | ProtectionBypass2$Outbound;
10487
- } | undefined;
10488
- hasActiveBranches?: boolean | undefined;
10489
- trustedIps?: TrustedIps1$Outbound | TrustedIps2$Outbound | null | undefined;
10490
- gitComments?: GitComments$Outbound | undefined;
10491
- gitProviderOptions?: GitProviderOptions$Outbound | undefined;
10602
+ export type UpdateProjectDataCacheHistory$Outbound = {
10603
+ scanner: string;
10604
+ reason: string;
10605
+ by: string;
10606
+ byId: string;
10607
+ at: number;
10608
+ };
10609
+
10610
+ /** @internal */
10611
+ export const UpdateProjectDataCacheHistory$outboundSchema: z.ZodType<
10612
+ UpdateProjectDataCacheHistory$Outbound,
10613
+ z.ZodTypeDef,
10614
+ UpdateProjectDataCacheHistory
10615
+ > = z.object({
10616
+ scanner: z.string(),
10617
+ reason: z.string(),
10618
+ by: z.string(),
10619
+ byId: z.string(),
10620
+ at: z.number(),
10621
+ });
10622
+
10623
+ /**
10624
+ * @internal
10625
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10626
+ */
10627
+ export namespace UpdateProjectDataCacheHistory$ {
10628
+ /** @deprecated use `UpdateProjectDataCacheHistory$inboundSchema` instead. */
10629
+ export const inboundSchema = UpdateProjectDataCacheHistory$inboundSchema;
10630
+ /** @deprecated use `UpdateProjectDataCacheHistory$outboundSchema` instead. */
10631
+ export const outboundSchema = UpdateProjectDataCacheHistory$outboundSchema;
10632
+ /** @deprecated use `UpdateProjectDataCacheHistory$Outbound` instead. */
10633
+ export type Outbound = UpdateProjectDataCacheHistory$Outbound;
10634
+ }
10635
+
10636
+ export function updateProjectDataCacheHistoryToJSON(
10637
+ updateProjectDataCacheHistory: UpdateProjectDataCacheHistory,
10638
+ ): string {
10639
+ return JSON.stringify(
10640
+ UpdateProjectDataCacheHistory$outboundSchema.parse(
10641
+ updateProjectDataCacheHistory,
10642
+ ),
10643
+ );
10644
+ }
10645
+
10646
+ export function updateProjectDataCacheHistoryFromJSON(
10647
+ jsonString: string,
10648
+ ): SafeParseResult<UpdateProjectDataCacheHistory, SDKValidationError> {
10649
+ return safeParse(
10650
+ jsonString,
10651
+ (x) => UpdateProjectDataCacheHistory$inboundSchema.parse(JSON.parse(x)),
10652
+ `Failed to parse 'UpdateProjectDataCacheHistory' from JSON`,
10653
+ );
10654
+ }
10655
+
10656
+ /** @internal */
10657
+ export const UpdateProjectDataCacheAction$inboundSchema: z.ZodNativeEnum<
10658
+ typeof UpdateProjectDataCacheAction
10659
+ > = z.nativeEnum(UpdateProjectDataCacheAction);
10660
+
10661
+ /** @internal */
10662
+ export const UpdateProjectDataCacheAction$outboundSchema: z.ZodNativeEnum<
10663
+ typeof UpdateProjectDataCacheAction
10664
+ > = UpdateProjectDataCacheAction$inboundSchema;
10665
+
10666
+ /**
10667
+ * @internal
10668
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10669
+ */
10670
+ export namespace UpdateProjectDataCacheAction$ {
10671
+ /** @deprecated use `UpdateProjectDataCacheAction$inboundSchema` instead. */
10672
+ export const inboundSchema = UpdateProjectDataCacheAction$inboundSchema;
10673
+ /** @deprecated use `UpdateProjectDataCacheAction$outboundSchema` instead. */
10674
+ export const outboundSchema = UpdateProjectDataCacheAction$outboundSchema;
10675
+ }
10676
+
10677
+ /** @internal */
10678
+ export const Block$inboundSchema: z.ZodType<Block, z.ZodTypeDef, unknown> = z
10679
+ .object({
10680
+ action: UpdateProjectDataCacheAction$inboundSchema,
10681
+ reason: z.string(),
10682
+ statusCode: z.number(),
10683
+ createdAt: z.number(),
10684
+ caseId: z.string().optional(),
10685
+ actor: z.string().optional(),
10686
+ comment: z.string().optional(),
10687
+ isCascading: z.boolean().optional(),
10688
+ });
10689
+
10690
+ /** @internal */
10691
+ export type Block$Outbound = {
10692
+ action: string;
10693
+ reason: string;
10694
+ statusCode: number;
10695
+ createdAt: number;
10696
+ caseId?: string | undefined;
10697
+ actor?: string | undefined;
10698
+ comment?: string | undefined;
10699
+ isCascading?: boolean | undefined;
10700
+ };
10701
+
10702
+ /** @internal */
10703
+ export const Block$outboundSchema: z.ZodType<
10704
+ Block$Outbound,
10705
+ z.ZodTypeDef,
10706
+ Block
10707
+ > = z.object({
10708
+ action: UpdateProjectDataCacheAction$outboundSchema,
10709
+ reason: z.string(),
10710
+ statusCode: z.number(),
10711
+ createdAt: z.number(),
10712
+ caseId: z.string().optional(),
10713
+ actor: z.string().optional(),
10714
+ comment: z.string().optional(),
10715
+ isCascading: z.boolean().optional(),
10716
+ });
10717
+
10718
+ /**
10719
+ * @internal
10720
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10721
+ */
10722
+ export namespace Block$ {
10723
+ /** @deprecated use `Block$inboundSchema` instead. */
10724
+ export const inboundSchema = Block$inboundSchema;
10725
+ /** @deprecated use `Block$outboundSchema` instead. */
10726
+ export const outboundSchema = Block$outboundSchema;
10727
+ /** @deprecated use `Block$Outbound` instead. */
10728
+ export type Outbound = Block$Outbound;
10729
+ }
10730
+
10731
+ export function blockToJSON(block: Block): string {
10732
+ return JSON.stringify(Block$outboundSchema.parse(block));
10733
+ }
10734
+
10735
+ export function blockFromJSON(
10736
+ jsonString: string,
10737
+ ): SafeParseResult<Block, SDKValidationError> {
10738
+ return safeParse(
10739
+ jsonString,
10740
+ (x) => Block$inboundSchema.parse(JSON.parse(x)),
10741
+ `Failed to parse 'Block' from JSON`,
10742
+ );
10743
+ }
10744
+
10745
+ /** @internal */
10746
+ export const UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema:
10747
+ z.ZodNativeEnum<
10748
+ typeof UpdateProjectDataCacheBlockHistoryProjectsResponseAction
10749
+ > = z.nativeEnum(UpdateProjectDataCacheBlockHistoryProjectsResponseAction);
10750
+
10751
+ /** @internal */
10752
+ export const UpdateProjectDataCacheBlockHistoryProjectsResponseAction$outboundSchema:
10753
+ z.ZodNativeEnum<
10754
+ typeof UpdateProjectDataCacheBlockHistoryProjectsResponseAction
10755
+ > = UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema;
10756
+
10757
+ /**
10758
+ * @internal
10759
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10760
+ */
10761
+ export namespace UpdateProjectDataCacheBlockHistoryProjectsResponseAction$ {
10762
+ /** @deprecated use `UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema` instead. */
10763
+ export const inboundSchema =
10764
+ UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema;
10765
+ /** @deprecated use `UpdateProjectDataCacheBlockHistoryProjectsResponseAction$outboundSchema` instead. */
10766
+ export const outboundSchema =
10767
+ UpdateProjectDataCacheBlockHistoryProjectsResponseAction$outboundSchema;
10768
+ }
10769
+
10770
+ /** @internal */
10771
+ export const UpdateProjectDataCacheHasProjectsResponseType$inboundSchema:
10772
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsResponseType> = z
10773
+ .nativeEnum(UpdateProjectDataCacheHasProjectsResponseType);
10774
+
10775
+ /** @internal */
10776
+ export const UpdateProjectDataCacheHasProjectsResponseType$outboundSchema:
10777
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsResponseType> =
10778
+ UpdateProjectDataCacheHasProjectsResponseType$inboundSchema;
10779
+
10780
+ /**
10781
+ * @internal
10782
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10783
+ */
10784
+ export namespace UpdateProjectDataCacheHasProjectsResponseType$ {
10785
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponseType$inboundSchema` instead. */
10786
+ export const inboundSchema =
10787
+ UpdateProjectDataCacheHasProjectsResponseType$inboundSchema;
10788
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponseType$outboundSchema` instead. */
10789
+ export const outboundSchema =
10790
+ UpdateProjectDataCacheHasProjectsResponseType$outboundSchema;
10791
+ }
10792
+
10793
+ /** @internal */
10794
+ export const UpdateProjectDataCacheHasProjectsValue$inboundSchema: z.ZodType<
10795
+ UpdateProjectDataCacheHasProjectsValue,
10796
+ z.ZodTypeDef,
10797
+ unknown
10798
+ > = z.object({
10799
+ eq: z.string(),
10800
+ });
10801
+
10802
+ /** @internal */
10803
+ export type UpdateProjectDataCacheHasProjectsValue$Outbound = {
10804
+ eq: string;
10805
+ };
10806
+
10807
+ /** @internal */
10808
+ export const UpdateProjectDataCacheHasProjectsValue$outboundSchema: z.ZodType<
10809
+ UpdateProjectDataCacheHasProjectsValue$Outbound,
10810
+ z.ZodTypeDef,
10811
+ UpdateProjectDataCacheHasProjectsValue
10812
+ > = z.object({
10813
+ eq: z.string(),
10814
+ });
10815
+
10816
+ /**
10817
+ * @internal
10818
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10819
+ */
10820
+ export namespace UpdateProjectDataCacheHasProjectsValue$ {
10821
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsValue$inboundSchema` instead. */
10822
+ export const inboundSchema =
10823
+ UpdateProjectDataCacheHasProjectsValue$inboundSchema;
10824
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsValue$outboundSchema` instead. */
10825
+ export const outboundSchema =
10826
+ UpdateProjectDataCacheHasProjectsValue$outboundSchema;
10827
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsValue$Outbound` instead. */
10828
+ export type Outbound = UpdateProjectDataCacheHasProjectsValue$Outbound;
10829
+ }
10830
+
10831
+ export function updateProjectDataCacheHasProjectsValueToJSON(
10832
+ updateProjectDataCacheHasProjectsValue:
10833
+ UpdateProjectDataCacheHasProjectsValue,
10834
+ ): string {
10835
+ return JSON.stringify(
10836
+ UpdateProjectDataCacheHasProjectsValue$outboundSchema.parse(
10837
+ updateProjectDataCacheHasProjectsValue,
10838
+ ),
10839
+ );
10840
+ }
10841
+
10842
+ export function updateProjectDataCacheHasProjectsValueFromJSON(
10843
+ jsonString: string,
10844
+ ): SafeParseResult<UpdateProjectDataCacheHasProjectsValue, SDKValidationError> {
10845
+ return safeParse(
10846
+ jsonString,
10847
+ (x) =>
10848
+ UpdateProjectDataCacheHasProjectsValue$inboundSchema.parse(JSON.parse(x)),
10849
+ `Failed to parse 'UpdateProjectDataCacheHasProjectsValue' from JSON`,
10850
+ );
10851
+ }
10852
+
10853
+ /** @internal */
10854
+ export const UpdateProjectDataCacheHas2$inboundSchema: z.ZodType<
10855
+ UpdateProjectDataCacheHas2,
10856
+ z.ZodTypeDef,
10857
+ unknown
10858
+ > = z.object({
10859
+ type: UpdateProjectDataCacheHasProjectsResponseType$inboundSchema,
10860
+ value: z.lazy(() => UpdateProjectDataCacheHasProjectsValue$inboundSchema),
10861
+ });
10862
+
10863
+ /** @internal */
10864
+ export type UpdateProjectDataCacheHas2$Outbound = {
10865
+ type: string;
10866
+ value: UpdateProjectDataCacheHasProjectsValue$Outbound;
10867
+ };
10868
+
10869
+ /** @internal */
10870
+ export const UpdateProjectDataCacheHas2$outboundSchema: z.ZodType<
10871
+ UpdateProjectDataCacheHas2$Outbound,
10872
+ z.ZodTypeDef,
10873
+ UpdateProjectDataCacheHas2
10874
+ > = z.object({
10875
+ type: UpdateProjectDataCacheHasProjectsResponseType$outboundSchema,
10876
+ value: z.lazy(() => UpdateProjectDataCacheHasProjectsValue$outboundSchema),
10877
+ });
10878
+
10879
+ /**
10880
+ * @internal
10881
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10882
+ */
10883
+ export namespace UpdateProjectDataCacheHas2$ {
10884
+ /** @deprecated use `UpdateProjectDataCacheHas2$inboundSchema` instead. */
10885
+ export const inboundSchema = UpdateProjectDataCacheHas2$inboundSchema;
10886
+ /** @deprecated use `UpdateProjectDataCacheHas2$outboundSchema` instead. */
10887
+ export const outboundSchema = UpdateProjectDataCacheHas2$outboundSchema;
10888
+ /** @deprecated use `UpdateProjectDataCacheHas2$Outbound` instead. */
10889
+ export type Outbound = UpdateProjectDataCacheHas2$Outbound;
10890
+ }
10891
+
10892
+ export function updateProjectDataCacheHas2ToJSON(
10893
+ updateProjectDataCacheHas2: UpdateProjectDataCacheHas2,
10894
+ ): string {
10895
+ return JSON.stringify(
10896
+ UpdateProjectDataCacheHas2$outboundSchema.parse(updateProjectDataCacheHas2),
10897
+ );
10898
+ }
10899
+
10900
+ export function updateProjectDataCacheHas2FromJSON(
10901
+ jsonString: string,
10902
+ ): SafeParseResult<UpdateProjectDataCacheHas2, SDKValidationError> {
10903
+ return safeParse(
10904
+ jsonString,
10905
+ (x) => UpdateProjectDataCacheHas2$inboundSchema.parse(JSON.parse(x)),
10906
+ `Failed to parse 'UpdateProjectDataCacheHas2' from JSON`,
10907
+ );
10908
+ }
10909
+
10910
+ /** @internal */
10911
+ export const UpdateProjectDataCacheHasProjectsType$inboundSchema:
10912
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsType> = z.nativeEnum(
10913
+ UpdateProjectDataCacheHasProjectsType,
10914
+ );
10915
+
10916
+ /** @internal */
10917
+ export const UpdateProjectDataCacheHasProjectsType$outboundSchema:
10918
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsType> =
10919
+ UpdateProjectDataCacheHasProjectsType$inboundSchema;
10920
+
10921
+ /**
10922
+ * @internal
10923
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10924
+ */
10925
+ export namespace UpdateProjectDataCacheHasProjectsType$ {
10926
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsType$inboundSchema` instead. */
10927
+ export const inboundSchema =
10928
+ UpdateProjectDataCacheHasProjectsType$inboundSchema;
10929
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsType$outboundSchema` instead. */
10930
+ export const outboundSchema =
10931
+ UpdateProjectDataCacheHasProjectsType$outboundSchema;
10932
+ }
10933
+
10934
+ /** @internal */
10935
+ export const UpdateProjectDataCacheHasProjectsKey$inboundSchema:
10936
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsKey> = z.nativeEnum(
10937
+ UpdateProjectDataCacheHasProjectsKey,
10938
+ );
10939
+
10940
+ /** @internal */
10941
+ export const UpdateProjectDataCacheHasProjectsKey$outboundSchema:
10942
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsKey> =
10943
+ UpdateProjectDataCacheHasProjectsKey$inboundSchema;
10944
+
10945
+ /**
10946
+ * @internal
10947
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10948
+ */
10949
+ export namespace UpdateProjectDataCacheHasProjectsKey$ {
10950
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsKey$inboundSchema` instead. */
10951
+ export const inboundSchema =
10952
+ UpdateProjectDataCacheHasProjectsKey$inboundSchema;
10953
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsKey$outboundSchema` instead. */
10954
+ export const outboundSchema =
10955
+ UpdateProjectDataCacheHasProjectsKey$outboundSchema;
10956
+ }
10957
+
10958
+ /** @internal */
10959
+ export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$inboundSchema:
10960
+ z.ZodType<
10961
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue,
10962
+ z.ZodTypeDef,
10963
+ unknown
10964
+ > = z.object({
10965
+ eq: z.string(),
10966
+ });
10967
+
10968
+ /** @internal */
10969
+ export type UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$Outbound =
10970
+ {
10971
+ eq: string;
10972
+ };
10973
+
10974
+ /** @internal */
10975
+ export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$outboundSchema:
10976
+ z.ZodType<
10977
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$Outbound,
10978
+ z.ZodTypeDef,
10979
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue
10980
+ > = z.object({
10981
+ eq: z.string(),
10982
+ });
10983
+
10984
+ /**
10985
+ * @internal
10986
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10987
+ */
10988
+ export namespace UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$ {
10989
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$inboundSchema` instead. */
10990
+ export const inboundSchema =
10991
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$inboundSchema;
10992
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$outboundSchema` instead. */
10993
+ export const outboundSchema =
10994
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$outboundSchema;
10995
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$Outbound` instead. */
10996
+ export type Outbound =
10997
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$Outbound;
10998
+ }
10999
+
11000
+ export function updateProjectDataCacheHasProjectsResponse200ApplicationJSONValueToJSON(
11001
+ updateProjectDataCacheHasProjectsResponse200ApplicationJSONValue:
11002
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue,
11003
+ ): string {
11004
+ return JSON.stringify(
11005
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$outboundSchema
11006
+ .parse(updateProjectDataCacheHasProjectsResponse200ApplicationJSONValue),
11007
+ );
11008
+ }
11009
+
11010
+ export function updateProjectDataCacheHasProjectsResponse200ApplicationJSONValueFromJSON(
11011
+ jsonString: string,
11012
+ ): SafeParseResult<
11013
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue,
11014
+ SDKValidationError
11015
+ > {
11016
+ return safeParse(
11017
+ jsonString,
11018
+ (x) =>
11019
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$inboundSchema
11020
+ .parse(JSON.parse(x)),
11021
+ `Failed to parse 'UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue' from JSON`,
11022
+ );
11023
+ }
11024
+
11025
+ /** @internal */
11026
+ export const UpdateProjectDataCacheHas1$inboundSchema: z.ZodType<
11027
+ UpdateProjectDataCacheHas1,
11028
+ z.ZodTypeDef,
11029
+ unknown
11030
+ > = z.object({
11031
+ type: UpdateProjectDataCacheHasProjectsType$inboundSchema,
11032
+ key: UpdateProjectDataCacheHasProjectsKey$inboundSchema,
11033
+ value: z.lazy(() =>
11034
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$inboundSchema
11035
+ ),
11036
+ });
11037
+
11038
+ /** @internal */
11039
+ export type UpdateProjectDataCacheHas1$Outbound = {
11040
+ type: string;
11041
+ key: string;
11042
+ value:
11043
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$Outbound;
11044
+ };
11045
+
11046
+ /** @internal */
11047
+ export const UpdateProjectDataCacheHas1$outboundSchema: z.ZodType<
11048
+ UpdateProjectDataCacheHas1$Outbound,
11049
+ z.ZodTypeDef,
11050
+ UpdateProjectDataCacheHas1
11051
+ > = z.object({
11052
+ type: UpdateProjectDataCacheHasProjectsType$outboundSchema,
11053
+ key: UpdateProjectDataCacheHasProjectsKey$outboundSchema,
11054
+ value: z.lazy(() =>
11055
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$outboundSchema
11056
+ ),
11057
+ });
11058
+
11059
+ /**
11060
+ * @internal
11061
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11062
+ */
11063
+ export namespace UpdateProjectDataCacheHas1$ {
11064
+ /** @deprecated use `UpdateProjectDataCacheHas1$inboundSchema` instead. */
11065
+ export const inboundSchema = UpdateProjectDataCacheHas1$inboundSchema;
11066
+ /** @deprecated use `UpdateProjectDataCacheHas1$outboundSchema` instead. */
11067
+ export const outboundSchema = UpdateProjectDataCacheHas1$outboundSchema;
11068
+ /** @deprecated use `UpdateProjectDataCacheHas1$Outbound` instead. */
11069
+ export type Outbound = UpdateProjectDataCacheHas1$Outbound;
11070
+ }
11071
+
11072
+ export function updateProjectDataCacheHas1ToJSON(
11073
+ updateProjectDataCacheHas1: UpdateProjectDataCacheHas1,
11074
+ ): string {
11075
+ return JSON.stringify(
11076
+ UpdateProjectDataCacheHas1$outboundSchema.parse(updateProjectDataCacheHas1),
11077
+ );
11078
+ }
11079
+
11080
+ export function updateProjectDataCacheHas1FromJSON(
11081
+ jsonString: string,
11082
+ ): SafeParseResult<UpdateProjectDataCacheHas1, SDKValidationError> {
11083
+ return safeParse(
11084
+ jsonString,
11085
+ (x) => UpdateProjectDataCacheHas1$inboundSchema.parse(JSON.parse(x)),
11086
+ `Failed to parse 'UpdateProjectDataCacheHas1' from JSON`,
11087
+ );
11088
+ }
11089
+
11090
+ /** @internal */
11091
+ export const RouteHas$inboundSchema: z.ZodType<
11092
+ RouteHas,
11093
+ z.ZodTypeDef,
11094
+ unknown
11095
+ > = z.union([
11096
+ z.lazy(() => UpdateProjectDataCacheHas1$inboundSchema),
11097
+ z.lazy(() => UpdateProjectDataCacheHas2$inboundSchema),
11098
+ ]);
11099
+
11100
+ /** @internal */
11101
+ export type RouteHas$Outbound =
11102
+ | UpdateProjectDataCacheHas1$Outbound
11103
+ | UpdateProjectDataCacheHas2$Outbound;
11104
+
11105
+ /** @internal */
11106
+ export const RouteHas$outboundSchema: z.ZodType<
11107
+ RouteHas$Outbound,
11108
+ z.ZodTypeDef,
11109
+ RouteHas
11110
+ > = z.union([
11111
+ z.lazy(() => UpdateProjectDataCacheHas1$outboundSchema),
11112
+ z.lazy(() => UpdateProjectDataCacheHas2$outboundSchema),
11113
+ ]);
11114
+
11115
+ /**
11116
+ * @internal
11117
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11118
+ */
11119
+ export namespace RouteHas$ {
11120
+ /** @deprecated use `RouteHas$inboundSchema` instead. */
11121
+ export const inboundSchema = RouteHas$inboundSchema;
11122
+ /** @deprecated use `RouteHas$outboundSchema` instead. */
11123
+ export const outboundSchema = RouteHas$outboundSchema;
11124
+ /** @deprecated use `RouteHas$Outbound` instead. */
11125
+ export type Outbound = RouteHas$Outbound;
11126
+ }
11127
+
11128
+ export function routeHasToJSON(routeHas: RouteHas): string {
11129
+ return JSON.stringify(RouteHas$outboundSchema.parse(routeHas));
11130
+ }
11131
+
11132
+ export function routeHasFromJSON(
11133
+ jsonString: string,
11134
+ ): SafeParseResult<RouteHas, SDKValidationError> {
11135
+ return safeParse(
11136
+ jsonString,
11137
+ (x) => RouteHas$inboundSchema.parse(JSON.parse(x)),
11138
+ `Failed to parse 'RouteHas' from JSON`,
11139
+ );
11140
+ }
11141
+
11142
+ /** @internal */
11143
+ export const UpdateProjectDataCacheRouteAction$inboundSchema: z.ZodNativeEnum<
11144
+ typeof UpdateProjectDataCacheRouteAction
11145
+ > = z.nativeEnum(UpdateProjectDataCacheRouteAction);
11146
+
11147
+ /** @internal */
11148
+ export const UpdateProjectDataCacheRouteAction$outboundSchema: z.ZodNativeEnum<
11149
+ typeof UpdateProjectDataCacheRouteAction
11150
+ > = UpdateProjectDataCacheRouteAction$inboundSchema;
11151
+
11152
+ /**
11153
+ * @internal
11154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11155
+ */
11156
+ export namespace UpdateProjectDataCacheRouteAction$ {
11157
+ /** @deprecated use `UpdateProjectDataCacheRouteAction$inboundSchema` instead. */
11158
+ export const inboundSchema = UpdateProjectDataCacheRouteAction$inboundSchema;
11159
+ /** @deprecated use `UpdateProjectDataCacheRouteAction$outboundSchema` instead. */
11160
+ export const outboundSchema =
11161
+ UpdateProjectDataCacheRouteAction$outboundSchema;
11162
+ }
11163
+
11164
+ /** @internal */
11165
+ export const RouteMitigate$inboundSchema: z.ZodType<
11166
+ RouteMitigate,
11167
+ z.ZodTypeDef,
11168
+ unknown
11169
+ > = z.object({
11170
+ action: UpdateProjectDataCacheRouteAction$inboundSchema,
11171
+ });
11172
+
11173
+ /** @internal */
11174
+ export type RouteMitigate$Outbound = {
11175
+ action: string;
11176
+ };
11177
+
11178
+ /** @internal */
11179
+ export const RouteMitigate$outboundSchema: z.ZodType<
11180
+ RouteMitigate$Outbound,
11181
+ z.ZodTypeDef,
11182
+ RouteMitigate
11183
+ > = z.object({
11184
+ action: UpdateProjectDataCacheRouteAction$outboundSchema,
11185
+ });
11186
+
11187
+ /**
11188
+ * @internal
11189
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11190
+ */
11191
+ export namespace RouteMitigate$ {
11192
+ /** @deprecated use `RouteMitigate$inboundSchema` instead. */
11193
+ export const inboundSchema = RouteMitigate$inboundSchema;
11194
+ /** @deprecated use `RouteMitigate$outboundSchema` instead. */
11195
+ export const outboundSchema = RouteMitigate$outboundSchema;
11196
+ /** @deprecated use `RouteMitigate$Outbound` instead. */
11197
+ export type Outbound = RouteMitigate$Outbound;
11198
+ }
11199
+
11200
+ export function routeMitigateToJSON(routeMitigate: RouteMitigate): string {
11201
+ return JSON.stringify(RouteMitigate$outboundSchema.parse(routeMitigate));
11202
+ }
11203
+
11204
+ export function routeMitigateFromJSON(
11205
+ jsonString: string,
11206
+ ): SafeParseResult<RouteMitigate, SDKValidationError> {
11207
+ return safeParse(
11208
+ jsonString,
11209
+ (x) => RouteMitigate$inboundSchema.parse(JSON.parse(x)),
11210
+ `Failed to parse 'RouteMitigate' from JSON`,
11211
+ );
11212
+ }
11213
+
11214
+ /** @internal */
11215
+ export const UpdateProjectDataCacheRoute2$inboundSchema: z.ZodType<
11216
+ UpdateProjectDataCacheRoute2,
11217
+ z.ZodTypeDef,
11218
+ unknown
11219
+ > = z.object({
11220
+ has: z.array(
11221
+ z.union([
11222
+ z.lazy(() => UpdateProjectDataCacheHas1$inboundSchema),
11223
+ z.lazy(() => UpdateProjectDataCacheHas2$inboundSchema),
11224
+ ]),
11225
+ ),
11226
+ mitigate: z.lazy(() => RouteMitigate$inboundSchema),
11227
+ src: z.string().optional(),
11228
+ });
11229
+
11230
+ /** @internal */
11231
+ export type UpdateProjectDataCacheRoute2$Outbound = {
11232
+ has: Array<
11233
+ UpdateProjectDataCacheHas1$Outbound | UpdateProjectDataCacheHas2$Outbound
11234
+ >;
11235
+ mitigate: RouteMitigate$Outbound;
11236
+ src?: string | undefined;
11237
+ };
11238
+
11239
+ /** @internal */
11240
+ export const UpdateProjectDataCacheRoute2$outboundSchema: z.ZodType<
11241
+ UpdateProjectDataCacheRoute2$Outbound,
11242
+ z.ZodTypeDef,
11243
+ UpdateProjectDataCacheRoute2
11244
+ > = z.object({
11245
+ has: z.array(
11246
+ z.union([
11247
+ z.lazy(() => UpdateProjectDataCacheHas1$outboundSchema),
11248
+ z.lazy(() => UpdateProjectDataCacheHas2$outboundSchema),
11249
+ ]),
11250
+ ),
11251
+ mitigate: z.lazy(() => RouteMitigate$outboundSchema),
11252
+ src: z.string().optional(),
11253
+ });
11254
+
11255
+ /**
11256
+ * @internal
11257
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11258
+ */
11259
+ export namespace UpdateProjectDataCacheRoute2$ {
11260
+ /** @deprecated use `UpdateProjectDataCacheRoute2$inboundSchema` instead. */
11261
+ export const inboundSchema = UpdateProjectDataCacheRoute2$inboundSchema;
11262
+ /** @deprecated use `UpdateProjectDataCacheRoute2$outboundSchema` instead. */
11263
+ export const outboundSchema = UpdateProjectDataCacheRoute2$outboundSchema;
11264
+ /** @deprecated use `UpdateProjectDataCacheRoute2$Outbound` instead. */
11265
+ export type Outbound = UpdateProjectDataCacheRoute2$Outbound;
11266
+ }
11267
+
11268
+ export function updateProjectDataCacheRoute2ToJSON(
11269
+ updateProjectDataCacheRoute2: UpdateProjectDataCacheRoute2,
11270
+ ): string {
11271
+ return JSON.stringify(
11272
+ UpdateProjectDataCacheRoute2$outboundSchema.parse(
11273
+ updateProjectDataCacheRoute2,
11274
+ ),
11275
+ );
11276
+ }
11277
+
11278
+ export function updateProjectDataCacheRoute2FromJSON(
11279
+ jsonString: string,
11280
+ ): SafeParseResult<UpdateProjectDataCacheRoute2, SDKValidationError> {
11281
+ return safeParse(
11282
+ jsonString,
11283
+ (x) => UpdateProjectDataCacheRoute2$inboundSchema.parse(JSON.parse(x)),
11284
+ `Failed to parse 'UpdateProjectDataCacheRoute2' from JSON`,
11285
+ );
11286
+ }
11287
+
11288
+ /** @internal */
11289
+ export const UpdateProjectDataCacheRoute1$inboundSchema: z.ZodType<
11290
+ UpdateProjectDataCacheRoute1,
11291
+ z.ZodTypeDef,
11292
+ unknown
11293
+ > = z.object({
11294
+ src: z.string(),
11295
+ status: z.number(),
11296
+ });
11297
+
11298
+ /** @internal */
11299
+ export type UpdateProjectDataCacheRoute1$Outbound = {
11300
+ src: string;
11301
+ status: number;
11302
+ };
11303
+
11304
+ /** @internal */
11305
+ export const UpdateProjectDataCacheRoute1$outboundSchema: z.ZodType<
11306
+ UpdateProjectDataCacheRoute1$Outbound,
11307
+ z.ZodTypeDef,
11308
+ UpdateProjectDataCacheRoute1
11309
+ > = z.object({
11310
+ src: z.string(),
11311
+ status: z.number(),
11312
+ });
11313
+
11314
+ /**
11315
+ * @internal
11316
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11317
+ */
11318
+ export namespace UpdateProjectDataCacheRoute1$ {
11319
+ /** @deprecated use `UpdateProjectDataCacheRoute1$inboundSchema` instead. */
11320
+ export const inboundSchema = UpdateProjectDataCacheRoute1$inboundSchema;
11321
+ /** @deprecated use `UpdateProjectDataCacheRoute1$outboundSchema` instead. */
11322
+ export const outboundSchema = UpdateProjectDataCacheRoute1$outboundSchema;
11323
+ /** @deprecated use `UpdateProjectDataCacheRoute1$Outbound` instead. */
11324
+ export type Outbound = UpdateProjectDataCacheRoute1$Outbound;
11325
+ }
11326
+
11327
+ export function updateProjectDataCacheRoute1ToJSON(
11328
+ updateProjectDataCacheRoute1: UpdateProjectDataCacheRoute1,
11329
+ ): string {
11330
+ return JSON.stringify(
11331
+ UpdateProjectDataCacheRoute1$outboundSchema.parse(
11332
+ updateProjectDataCacheRoute1,
11333
+ ),
11334
+ );
11335
+ }
11336
+
11337
+ export function updateProjectDataCacheRoute1FromJSON(
11338
+ jsonString: string,
11339
+ ): SafeParseResult<UpdateProjectDataCacheRoute1, SDKValidationError> {
11340
+ return safeParse(
11341
+ jsonString,
11342
+ (x) => UpdateProjectDataCacheRoute1$inboundSchema.parse(JSON.parse(x)),
11343
+ `Failed to parse 'UpdateProjectDataCacheRoute1' from JSON`,
11344
+ );
11345
+ }
11346
+
11347
+ /** @internal */
11348
+ export const BlockHistoryRoute$inboundSchema: z.ZodType<
11349
+ BlockHistoryRoute,
11350
+ z.ZodTypeDef,
11351
+ unknown
11352
+ > = z.union([
11353
+ z.lazy(() => UpdateProjectDataCacheRoute1$inboundSchema),
11354
+ z.lazy(() => UpdateProjectDataCacheRoute2$inboundSchema),
11355
+ ]);
11356
+
11357
+ /** @internal */
11358
+ export type BlockHistoryRoute$Outbound =
11359
+ | UpdateProjectDataCacheRoute1$Outbound
11360
+ | UpdateProjectDataCacheRoute2$Outbound;
11361
+
11362
+ /** @internal */
11363
+ export const BlockHistoryRoute$outboundSchema: z.ZodType<
11364
+ BlockHistoryRoute$Outbound,
11365
+ z.ZodTypeDef,
11366
+ BlockHistoryRoute
11367
+ > = z.union([
11368
+ z.lazy(() => UpdateProjectDataCacheRoute1$outboundSchema),
11369
+ z.lazy(() => UpdateProjectDataCacheRoute2$outboundSchema),
11370
+ ]);
11371
+
11372
+ /**
11373
+ * @internal
11374
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11375
+ */
11376
+ export namespace BlockHistoryRoute$ {
11377
+ /** @deprecated use `BlockHistoryRoute$inboundSchema` instead. */
11378
+ export const inboundSchema = BlockHistoryRoute$inboundSchema;
11379
+ /** @deprecated use `BlockHistoryRoute$outboundSchema` instead. */
11380
+ export const outboundSchema = BlockHistoryRoute$outboundSchema;
11381
+ /** @deprecated use `BlockHistoryRoute$Outbound` instead. */
11382
+ export type Outbound = BlockHistoryRoute$Outbound;
11383
+ }
11384
+
11385
+ export function blockHistoryRouteToJSON(
11386
+ blockHistoryRoute: BlockHistoryRoute,
11387
+ ): string {
11388
+ return JSON.stringify(
11389
+ BlockHistoryRoute$outboundSchema.parse(blockHistoryRoute),
11390
+ );
11391
+ }
11392
+
11393
+ export function blockHistoryRouteFromJSON(
11394
+ jsonString: string,
11395
+ ): SafeParseResult<BlockHistoryRoute, SDKValidationError> {
11396
+ return safeParse(
11397
+ jsonString,
11398
+ (x) => BlockHistoryRoute$inboundSchema.parse(JSON.parse(x)),
11399
+ `Failed to parse 'BlockHistoryRoute' from JSON`,
11400
+ );
11401
+ }
11402
+
11403
+ /** @internal */
11404
+ export const BlockHistory4$inboundSchema: z.ZodType<
11405
+ BlockHistory4,
11406
+ z.ZodTypeDef,
11407
+ unknown
11408
+ > = z.object({
11409
+ action:
11410
+ UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema,
11411
+ route: z.union([
11412
+ z.lazy(() => UpdateProjectDataCacheRoute1$inboundSchema),
11413
+ z.lazy(() => UpdateProjectDataCacheRoute2$inboundSchema),
11414
+ ]),
11415
+ statusCode: z.number().optional(),
11416
+ createdAt: z.number(),
11417
+ caseId: z.string().optional(),
11418
+ actor: z.string().optional(),
11419
+ comment: z.string().optional(),
11420
+ isCascading: z.boolean().optional(),
11421
+ });
11422
+
11423
+ /** @internal */
11424
+ export type BlockHistory4$Outbound = {
11425
+ action: string;
11426
+ route:
11427
+ | UpdateProjectDataCacheRoute1$Outbound
11428
+ | UpdateProjectDataCacheRoute2$Outbound;
11429
+ statusCode?: number | undefined;
11430
+ createdAt: number;
11431
+ caseId?: string | undefined;
11432
+ actor?: string | undefined;
11433
+ comment?: string | undefined;
11434
+ isCascading?: boolean | undefined;
11435
+ };
11436
+
11437
+ /** @internal */
11438
+ export const BlockHistory4$outboundSchema: z.ZodType<
11439
+ BlockHistory4$Outbound,
11440
+ z.ZodTypeDef,
11441
+ BlockHistory4
11442
+ > = z.object({
11443
+ action:
11444
+ UpdateProjectDataCacheBlockHistoryProjectsResponseAction$outboundSchema,
11445
+ route: z.union([
11446
+ z.lazy(() => UpdateProjectDataCacheRoute1$outboundSchema),
11447
+ z.lazy(() => UpdateProjectDataCacheRoute2$outboundSchema),
11448
+ ]),
11449
+ statusCode: z.number().optional(),
11450
+ createdAt: z.number(),
11451
+ caseId: z.string().optional(),
11452
+ actor: z.string().optional(),
11453
+ comment: z.string().optional(),
11454
+ isCascading: z.boolean().optional(),
11455
+ });
11456
+
11457
+ /**
11458
+ * @internal
11459
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11460
+ */
11461
+ export namespace BlockHistory4$ {
11462
+ /** @deprecated use `BlockHistory4$inboundSchema` instead. */
11463
+ export const inboundSchema = BlockHistory4$inboundSchema;
11464
+ /** @deprecated use `BlockHistory4$outboundSchema` instead. */
11465
+ export const outboundSchema = BlockHistory4$outboundSchema;
11466
+ /** @deprecated use `BlockHistory4$Outbound` instead. */
11467
+ export type Outbound = BlockHistory4$Outbound;
11468
+ }
11469
+
11470
+ export function blockHistory4ToJSON(blockHistory4: BlockHistory4): string {
11471
+ return JSON.stringify(BlockHistory4$outboundSchema.parse(blockHistory4));
11472
+ }
11473
+
11474
+ export function blockHistory4FromJSON(
11475
+ jsonString: string,
11476
+ ): SafeParseResult<BlockHistory4, SDKValidationError> {
11477
+ return safeParse(
11478
+ jsonString,
11479
+ (x) => BlockHistory4$inboundSchema.parse(JSON.parse(x)),
11480
+ `Failed to parse 'BlockHistory4' from JSON`,
11481
+ );
11482
+ }
11483
+
11484
+ /** @internal */
11485
+ export const UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema:
11486
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheBlockHistoryProjectsAction> = z
11487
+ .nativeEnum(UpdateProjectDataCacheBlockHistoryProjectsAction);
11488
+
11489
+ /** @internal */
11490
+ export const UpdateProjectDataCacheBlockHistoryProjectsAction$outboundSchema:
11491
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheBlockHistoryProjectsAction> =
11492
+ UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema;
11493
+
11494
+ /**
11495
+ * @internal
11496
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11497
+ */
11498
+ export namespace UpdateProjectDataCacheBlockHistoryProjectsAction$ {
11499
+ /** @deprecated use `UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema` instead. */
11500
+ export const inboundSchema =
11501
+ UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema;
11502
+ /** @deprecated use `UpdateProjectDataCacheBlockHistoryProjectsAction$outboundSchema` instead. */
11503
+ export const outboundSchema =
11504
+ UpdateProjectDataCacheBlockHistoryProjectsAction$outboundSchema;
11505
+ }
11506
+
11507
+ /** @internal */
11508
+ export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema:
11509
+ z.ZodNativeEnum<
11510
+ typeof UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType
11511
+ > = z.nativeEnum(
11512
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType,
11513
+ );
11514
+
11515
+ /** @internal */
11516
+ export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$outboundSchema:
11517
+ z.ZodNativeEnum<
11518
+ typeof UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType
11519
+ > =
11520
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema;
11521
+
11522
+ /**
11523
+ * @internal
11524
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11525
+ */
11526
+ export namespace UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$ {
11527
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema` instead. */
11528
+ export const inboundSchema =
11529
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema;
11530
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$outboundSchema` instead. */
11531
+ export const outboundSchema =
11532
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$outboundSchema;
11533
+ }
11534
+
11535
+ /** @internal */
11536
+ export const UpdateProjectDataCacheHasProjectsResponse200Value$inboundSchema:
11537
+ z.ZodType<
11538
+ UpdateProjectDataCacheHasProjectsResponse200Value,
11539
+ z.ZodTypeDef,
11540
+ unknown
11541
+ > = z.object({
11542
+ eq: z.string(),
11543
+ });
11544
+
11545
+ /** @internal */
11546
+ export type UpdateProjectDataCacheHasProjectsResponse200Value$Outbound = {
11547
+ eq: string;
11548
+ };
11549
+
11550
+ /** @internal */
11551
+ export const UpdateProjectDataCacheHasProjectsResponse200Value$outboundSchema:
11552
+ z.ZodType<
11553
+ UpdateProjectDataCacheHasProjectsResponse200Value$Outbound,
11554
+ z.ZodTypeDef,
11555
+ UpdateProjectDataCacheHasProjectsResponse200Value
11556
+ > = z.object({
11557
+ eq: z.string(),
11558
+ });
11559
+
11560
+ /**
11561
+ * @internal
11562
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11563
+ */
11564
+ export namespace UpdateProjectDataCacheHasProjectsResponse200Value$ {
11565
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200Value$inboundSchema` instead. */
11566
+ export const inboundSchema =
11567
+ UpdateProjectDataCacheHasProjectsResponse200Value$inboundSchema;
11568
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200Value$outboundSchema` instead. */
11569
+ export const outboundSchema =
11570
+ UpdateProjectDataCacheHasProjectsResponse200Value$outboundSchema;
11571
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200Value$Outbound` instead. */
11572
+ export type Outbound =
11573
+ UpdateProjectDataCacheHasProjectsResponse200Value$Outbound;
11574
+ }
11575
+
11576
+ export function updateProjectDataCacheHasProjectsResponse200ValueToJSON(
11577
+ updateProjectDataCacheHasProjectsResponse200Value:
11578
+ UpdateProjectDataCacheHasProjectsResponse200Value,
11579
+ ): string {
11580
+ return JSON.stringify(
11581
+ UpdateProjectDataCacheHasProjectsResponse200Value$outboundSchema.parse(
11582
+ updateProjectDataCacheHasProjectsResponse200Value,
11583
+ ),
11584
+ );
11585
+ }
11586
+
11587
+ export function updateProjectDataCacheHasProjectsResponse200ValueFromJSON(
11588
+ jsonString: string,
11589
+ ): SafeParseResult<
11590
+ UpdateProjectDataCacheHasProjectsResponse200Value,
11591
+ SDKValidationError
11592
+ > {
11593
+ return safeParse(
11594
+ jsonString,
11595
+ (x) =>
11596
+ UpdateProjectDataCacheHasProjectsResponse200Value$inboundSchema.parse(
11597
+ JSON.parse(x),
11598
+ ),
11599
+ `Failed to parse 'UpdateProjectDataCacheHasProjectsResponse200Value' from JSON`,
11600
+ );
11601
+ }
11602
+
11603
+ /** @internal */
11604
+ export const UpdateProjectDataCacheHasProjects2$inboundSchema: z.ZodType<
11605
+ UpdateProjectDataCacheHasProjects2,
11606
+ z.ZodTypeDef,
11607
+ unknown
11608
+ > = z.object({
11609
+ type:
11610
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema,
11611
+ value: z.lazy(() =>
11612
+ UpdateProjectDataCacheHasProjectsResponse200Value$inboundSchema
11613
+ ),
11614
+ });
11615
+
11616
+ /** @internal */
11617
+ export type UpdateProjectDataCacheHasProjects2$Outbound = {
11618
+ type: string;
11619
+ value: UpdateProjectDataCacheHasProjectsResponse200Value$Outbound;
11620
+ };
11621
+
11622
+ /** @internal */
11623
+ export const UpdateProjectDataCacheHasProjects2$outboundSchema: z.ZodType<
11624
+ UpdateProjectDataCacheHasProjects2$Outbound,
11625
+ z.ZodTypeDef,
11626
+ UpdateProjectDataCacheHasProjects2
11627
+ > = z.object({
11628
+ type:
11629
+ UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$outboundSchema,
11630
+ value: z.lazy(() =>
11631
+ UpdateProjectDataCacheHasProjectsResponse200Value$outboundSchema
11632
+ ),
11633
+ });
11634
+
11635
+ /**
11636
+ * @internal
11637
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11638
+ */
11639
+ export namespace UpdateProjectDataCacheHasProjects2$ {
11640
+ /** @deprecated use `UpdateProjectDataCacheHasProjects2$inboundSchema` instead. */
11641
+ export const inboundSchema = UpdateProjectDataCacheHasProjects2$inboundSchema;
11642
+ /** @deprecated use `UpdateProjectDataCacheHasProjects2$outboundSchema` instead. */
11643
+ export const outboundSchema =
11644
+ UpdateProjectDataCacheHasProjects2$outboundSchema;
11645
+ /** @deprecated use `UpdateProjectDataCacheHasProjects2$Outbound` instead. */
11646
+ export type Outbound = UpdateProjectDataCacheHasProjects2$Outbound;
11647
+ }
11648
+
11649
+ export function updateProjectDataCacheHasProjects2ToJSON(
11650
+ updateProjectDataCacheHasProjects2: UpdateProjectDataCacheHasProjects2,
11651
+ ): string {
11652
+ return JSON.stringify(
11653
+ UpdateProjectDataCacheHasProjects2$outboundSchema.parse(
11654
+ updateProjectDataCacheHasProjects2,
11655
+ ),
11656
+ );
11657
+ }
11658
+
11659
+ export function updateProjectDataCacheHasProjects2FromJSON(
11660
+ jsonString: string,
11661
+ ): SafeParseResult<UpdateProjectDataCacheHasProjects2, SDKValidationError> {
11662
+ return safeParse(
11663
+ jsonString,
11664
+ (x) =>
11665
+ UpdateProjectDataCacheHasProjects2$inboundSchema.parse(JSON.parse(x)),
11666
+ `Failed to parse 'UpdateProjectDataCacheHasProjects2' from JSON`,
11667
+ );
11668
+ }
11669
+
11670
+ /** @internal */
11671
+ export const UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema:
11672
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsResponse200Type> = z
11673
+ .nativeEnum(UpdateProjectDataCacheHasProjectsResponse200Type);
11674
+
11675
+ /** @internal */
11676
+ export const UpdateProjectDataCacheHasProjectsResponse200Type$outboundSchema:
11677
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheHasProjectsResponse200Type> =
11678
+ UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema;
11679
+
11680
+ /**
11681
+ * @internal
11682
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11683
+ */
11684
+ export namespace UpdateProjectDataCacheHasProjectsResponse200Type$ {
11685
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema` instead. */
11686
+ export const inboundSchema =
11687
+ UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema;
11688
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponse200Type$outboundSchema` instead. */
11689
+ export const outboundSchema =
11690
+ UpdateProjectDataCacheHasProjectsResponse200Type$outboundSchema;
11691
+ }
11692
+
11693
+ /** @internal */
11694
+ export const UpdateProjectDataCacheHasKey$inboundSchema: z.ZodNativeEnum<
11695
+ typeof UpdateProjectDataCacheHasKey
11696
+ > = z.nativeEnum(UpdateProjectDataCacheHasKey);
11697
+
11698
+ /** @internal */
11699
+ export const UpdateProjectDataCacheHasKey$outboundSchema: z.ZodNativeEnum<
11700
+ typeof UpdateProjectDataCacheHasKey
11701
+ > = UpdateProjectDataCacheHasKey$inboundSchema;
11702
+
11703
+ /**
11704
+ * @internal
11705
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11706
+ */
11707
+ export namespace UpdateProjectDataCacheHasKey$ {
11708
+ /** @deprecated use `UpdateProjectDataCacheHasKey$inboundSchema` instead. */
11709
+ export const inboundSchema = UpdateProjectDataCacheHasKey$inboundSchema;
11710
+ /** @deprecated use `UpdateProjectDataCacheHasKey$outboundSchema` instead. */
11711
+ export const outboundSchema = UpdateProjectDataCacheHasKey$outboundSchema;
11712
+ }
11713
+
11714
+ /** @internal */
11715
+ export const UpdateProjectDataCacheHasProjectsResponseValue$inboundSchema:
11716
+ z.ZodType<
11717
+ UpdateProjectDataCacheHasProjectsResponseValue,
11718
+ z.ZodTypeDef,
11719
+ unknown
11720
+ > = z.object({
11721
+ eq: z.string(),
11722
+ });
11723
+
11724
+ /** @internal */
11725
+ export type UpdateProjectDataCacheHasProjectsResponseValue$Outbound = {
11726
+ eq: string;
11727
+ };
11728
+
11729
+ /** @internal */
11730
+ export const UpdateProjectDataCacheHasProjectsResponseValue$outboundSchema:
11731
+ z.ZodType<
11732
+ UpdateProjectDataCacheHasProjectsResponseValue$Outbound,
11733
+ z.ZodTypeDef,
11734
+ UpdateProjectDataCacheHasProjectsResponseValue
11735
+ > = z.object({
11736
+ eq: z.string(),
11737
+ });
11738
+
11739
+ /**
11740
+ * @internal
11741
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11742
+ */
11743
+ export namespace UpdateProjectDataCacheHasProjectsResponseValue$ {
11744
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponseValue$inboundSchema` instead. */
11745
+ export const inboundSchema =
11746
+ UpdateProjectDataCacheHasProjectsResponseValue$inboundSchema;
11747
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponseValue$outboundSchema` instead. */
11748
+ export const outboundSchema =
11749
+ UpdateProjectDataCacheHasProjectsResponseValue$outboundSchema;
11750
+ /** @deprecated use `UpdateProjectDataCacheHasProjectsResponseValue$Outbound` instead. */
11751
+ export type Outbound =
11752
+ UpdateProjectDataCacheHasProjectsResponseValue$Outbound;
11753
+ }
11754
+
11755
+ export function updateProjectDataCacheHasProjectsResponseValueToJSON(
11756
+ updateProjectDataCacheHasProjectsResponseValue:
11757
+ UpdateProjectDataCacheHasProjectsResponseValue,
11758
+ ): string {
11759
+ return JSON.stringify(
11760
+ UpdateProjectDataCacheHasProjectsResponseValue$outboundSchema.parse(
11761
+ updateProjectDataCacheHasProjectsResponseValue,
11762
+ ),
11763
+ );
11764
+ }
11765
+
11766
+ export function updateProjectDataCacheHasProjectsResponseValueFromJSON(
11767
+ jsonString: string,
11768
+ ): SafeParseResult<
11769
+ UpdateProjectDataCacheHasProjectsResponseValue,
11770
+ SDKValidationError
11771
+ > {
11772
+ return safeParse(
11773
+ jsonString,
11774
+ (x) =>
11775
+ UpdateProjectDataCacheHasProjectsResponseValue$inboundSchema.parse(
11776
+ JSON.parse(x),
11777
+ ),
11778
+ `Failed to parse 'UpdateProjectDataCacheHasProjectsResponseValue' from JSON`,
11779
+ );
11780
+ }
11781
+
11782
+ /** @internal */
11783
+ export const UpdateProjectDataCacheHasProjects1$inboundSchema: z.ZodType<
11784
+ UpdateProjectDataCacheHasProjects1,
11785
+ z.ZodTypeDef,
11786
+ unknown
11787
+ > = z.object({
11788
+ type: UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema,
11789
+ key: UpdateProjectDataCacheHasKey$inboundSchema,
11790
+ value: z.lazy(() =>
11791
+ UpdateProjectDataCacheHasProjectsResponseValue$inboundSchema
11792
+ ),
11793
+ });
11794
+
11795
+ /** @internal */
11796
+ export type UpdateProjectDataCacheHasProjects1$Outbound = {
11797
+ type: string;
11798
+ key: string;
11799
+ value: UpdateProjectDataCacheHasProjectsResponseValue$Outbound;
11800
+ };
11801
+
11802
+ /** @internal */
11803
+ export const UpdateProjectDataCacheHasProjects1$outboundSchema: z.ZodType<
11804
+ UpdateProjectDataCacheHasProjects1$Outbound,
11805
+ z.ZodTypeDef,
11806
+ UpdateProjectDataCacheHasProjects1
11807
+ > = z.object({
11808
+ type: UpdateProjectDataCacheHasProjectsResponse200Type$outboundSchema,
11809
+ key: UpdateProjectDataCacheHasKey$outboundSchema,
11810
+ value: z.lazy(() =>
11811
+ UpdateProjectDataCacheHasProjectsResponseValue$outboundSchema
11812
+ ),
11813
+ });
11814
+
11815
+ /**
11816
+ * @internal
11817
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11818
+ */
11819
+ export namespace UpdateProjectDataCacheHasProjects1$ {
11820
+ /** @deprecated use `UpdateProjectDataCacheHasProjects1$inboundSchema` instead. */
11821
+ export const inboundSchema = UpdateProjectDataCacheHasProjects1$inboundSchema;
11822
+ /** @deprecated use `UpdateProjectDataCacheHasProjects1$outboundSchema` instead. */
11823
+ export const outboundSchema =
11824
+ UpdateProjectDataCacheHasProjects1$outboundSchema;
11825
+ /** @deprecated use `UpdateProjectDataCacheHasProjects1$Outbound` instead. */
11826
+ export type Outbound = UpdateProjectDataCacheHasProjects1$Outbound;
11827
+ }
11828
+
11829
+ export function updateProjectDataCacheHasProjects1ToJSON(
11830
+ updateProjectDataCacheHasProjects1: UpdateProjectDataCacheHasProjects1,
11831
+ ): string {
11832
+ return JSON.stringify(
11833
+ UpdateProjectDataCacheHasProjects1$outboundSchema.parse(
11834
+ updateProjectDataCacheHasProjects1,
11835
+ ),
11836
+ );
11837
+ }
11838
+
11839
+ export function updateProjectDataCacheHasProjects1FromJSON(
11840
+ jsonString: string,
11841
+ ): SafeParseResult<UpdateProjectDataCacheHasProjects1, SDKValidationError> {
11842
+ return safeParse(
11843
+ jsonString,
11844
+ (x) =>
11845
+ UpdateProjectDataCacheHasProjects1$inboundSchema.parse(JSON.parse(x)),
11846
+ `Failed to parse 'UpdateProjectDataCacheHasProjects1' from JSON`,
11847
+ );
11848
+ }
11849
+
11850
+ /** @internal */
11851
+ export const UpdateProjectDataCacheRouteHas$inboundSchema: z.ZodType<
11852
+ UpdateProjectDataCacheRouteHas,
11853
+ z.ZodTypeDef,
11854
+ unknown
11855
+ > = z.union([
11856
+ z.lazy(() => UpdateProjectDataCacheHasProjects1$inboundSchema),
11857
+ z.lazy(() => UpdateProjectDataCacheHasProjects2$inboundSchema),
11858
+ ]);
11859
+
11860
+ /** @internal */
11861
+ export type UpdateProjectDataCacheRouteHas$Outbound =
11862
+ | UpdateProjectDataCacheHasProjects1$Outbound
11863
+ | UpdateProjectDataCacheHasProjects2$Outbound;
11864
+
11865
+ /** @internal */
11866
+ export const UpdateProjectDataCacheRouteHas$outboundSchema: z.ZodType<
11867
+ UpdateProjectDataCacheRouteHas$Outbound,
11868
+ z.ZodTypeDef,
11869
+ UpdateProjectDataCacheRouteHas
11870
+ > = z.union([
11871
+ z.lazy(() => UpdateProjectDataCacheHasProjects1$outboundSchema),
11872
+ z.lazy(() => UpdateProjectDataCacheHasProjects2$outboundSchema),
11873
+ ]);
11874
+
11875
+ /**
11876
+ * @internal
11877
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11878
+ */
11879
+ export namespace UpdateProjectDataCacheRouteHas$ {
11880
+ /** @deprecated use `UpdateProjectDataCacheRouteHas$inboundSchema` instead. */
11881
+ export const inboundSchema = UpdateProjectDataCacheRouteHas$inboundSchema;
11882
+ /** @deprecated use `UpdateProjectDataCacheRouteHas$outboundSchema` instead. */
11883
+ export const outboundSchema = UpdateProjectDataCacheRouteHas$outboundSchema;
11884
+ /** @deprecated use `UpdateProjectDataCacheRouteHas$Outbound` instead. */
11885
+ export type Outbound = UpdateProjectDataCacheRouteHas$Outbound;
11886
+ }
11887
+
11888
+ export function updateProjectDataCacheRouteHasToJSON(
11889
+ updateProjectDataCacheRouteHas: UpdateProjectDataCacheRouteHas,
11890
+ ): string {
11891
+ return JSON.stringify(
11892
+ UpdateProjectDataCacheRouteHas$outboundSchema.parse(
11893
+ updateProjectDataCacheRouteHas,
11894
+ ),
11895
+ );
11896
+ }
11897
+
11898
+ export function updateProjectDataCacheRouteHasFromJSON(
11899
+ jsonString: string,
11900
+ ): SafeParseResult<UpdateProjectDataCacheRouteHas, SDKValidationError> {
11901
+ return safeParse(
11902
+ jsonString,
11903
+ (x) => UpdateProjectDataCacheRouteHas$inboundSchema.parse(JSON.parse(x)),
11904
+ `Failed to parse 'UpdateProjectDataCacheRouteHas' from JSON`,
11905
+ );
11906
+ }
11907
+
11908
+ /** @internal */
11909
+ export const RouteAction$inboundSchema: z.ZodNativeEnum<typeof RouteAction> = z
11910
+ .nativeEnum(RouteAction);
11911
+
11912
+ /** @internal */
11913
+ export const RouteAction$outboundSchema: z.ZodNativeEnum<typeof RouteAction> =
11914
+ RouteAction$inboundSchema;
11915
+
11916
+ /**
11917
+ * @internal
11918
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11919
+ */
11920
+ export namespace RouteAction$ {
11921
+ /** @deprecated use `RouteAction$inboundSchema` instead. */
11922
+ export const inboundSchema = RouteAction$inboundSchema;
11923
+ /** @deprecated use `RouteAction$outboundSchema` instead. */
11924
+ export const outboundSchema = RouteAction$outboundSchema;
11925
+ }
11926
+
11927
+ /** @internal */
11928
+ export const UpdateProjectDataCacheRouteMitigate$inboundSchema: z.ZodType<
11929
+ UpdateProjectDataCacheRouteMitigate,
11930
+ z.ZodTypeDef,
11931
+ unknown
11932
+ > = z.object({
11933
+ action: RouteAction$inboundSchema,
11934
+ });
11935
+
11936
+ /** @internal */
11937
+ export type UpdateProjectDataCacheRouteMitigate$Outbound = {
11938
+ action: string;
11939
+ };
11940
+
11941
+ /** @internal */
11942
+ export const UpdateProjectDataCacheRouteMitigate$outboundSchema: z.ZodType<
11943
+ UpdateProjectDataCacheRouteMitigate$Outbound,
11944
+ z.ZodTypeDef,
11945
+ UpdateProjectDataCacheRouteMitigate
11946
+ > = z.object({
11947
+ action: RouteAction$outboundSchema,
11948
+ });
11949
+
11950
+ /**
11951
+ * @internal
11952
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11953
+ */
11954
+ export namespace UpdateProjectDataCacheRouteMitigate$ {
11955
+ /** @deprecated use `UpdateProjectDataCacheRouteMitigate$inboundSchema` instead. */
11956
+ export const inboundSchema =
11957
+ UpdateProjectDataCacheRouteMitigate$inboundSchema;
11958
+ /** @deprecated use `UpdateProjectDataCacheRouteMitigate$outboundSchema` instead. */
11959
+ export const outboundSchema =
11960
+ UpdateProjectDataCacheRouteMitigate$outboundSchema;
11961
+ /** @deprecated use `UpdateProjectDataCacheRouteMitigate$Outbound` instead. */
11962
+ export type Outbound = UpdateProjectDataCacheRouteMitigate$Outbound;
11963
+ }
11964
+
11965
+ export function updateProjectDataCacheRouteMitigateToJSON(
11966
+ updateProjectDataCacheRouteMitigate: UpdateProjectDataCacheRouteMitigate,
11967
+ ): string {
11968
+ return JSON.stringify(
11969
+ UpdateProjectDataCacheRouteMitigate$outboundSchema.parse(
11970
+ updateProjectDataCacheRouteMitigate,
11971
+ ),
11972
+ );
11973
+ }
11974
+
11975
+ export function updateProjectDataCacheRouteMitigateFromJSON(
11976
+ jsonString: string,
11977
+ ): SafeParseResult<UpdateProjectDataCacheRouteMitigate, SDKValidationError> {
11978
+ return safeParse(
11979
+ jsonString,
11980
+ (x) =>
11981
+ UpdateProjectDataCacheRouteMitigate$inboundSchema.parse(JSON.parse(x)),
11982
+ `Failed to parse 'UpdateProjectDataCacheRouteMitigate' from JSON`,
11983
+ );
11984
+ }
11985
+
11986
+ /** @internal */
11987
+ export const Route2$inboundSchema: z.ZodType<Route2, z.ZodTypeDef, unknown> = z
11988
+ .object({
11989
+ has: z.array(
11990
+ z.union([
11991
+ z.lazy(() => UpdateProjectDataCacheHasProjects1$inboundSchema),
11992
+ z.lazy(() => UpdateProjectDataCacheHasProjects2$inboundSchema),
11993
+ ]),
11994
+ ),
11995
+ mitigate: z.lazy(() => UpdateProjectDataCacheRouteMitigate$inboundSchema),
11996
+ src: z.string().optional(),
11997
+ });
11998
+
11999
+ /** @internal */
12000
+ export type Route2$Outbound = {
12001
+ has: Array<
12002
+ | UpdateProjectDataCacheHasProjects1$Outbound
12003
+ | UpdateProjectDataCacheHasProjects2$Outbound
12004
+ >;
12005
+ mitigate: UpdateProjectDataCacheRouteMitigate$Outbound;
12006
+ src?: string | undefined;
12007
+ };
12008
+
12009
+ /** @internal */
12010
+ export const Route2$outboundSchema: z.ZodType<
12011
+ Route2$Outbound,
12012
+ z.ZodTypeDef,
12013
+ Route2
12014
+ > = z.object({
12015
+ has: z.array(
12016
+ z.union([
12017
+ z.lazy(() => UpdateProjectDataCacheHasProjects1$outboundSchema),
12018
+ z.lazy(() => UpdateProjectDataCacheHasProjects2$outboundSchema),
12019
+ ]),
12020
+ ),
12021
+ mitigate: z.lazy(() => UpdateProjectDataCacheRouteMitigate$outboundSchema),
12022
+ src: z.string().optional(),
12023
+ });
12024
+
12025
+ /**
12026
+ * @internal
12027
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12028
+ */
12029
+ export namespace Route2$ {
12030
+ /** @deprecated use `Route2$inboundSchema` instead. */
12031
+ export const inboundSchema = Route2$inboundSchema;
12032
+ /** @deprecated use `Route2$outboundSchema` instead. */
12033
+ export const outboundSchema = Route2$outboundSchema;
12034
+ /** @deprecated use `Route2$Outbound` instead. */
12035
+ export type Outbound = Route2$Outbound;
12036
+ }
12037
+
12038
+ export function route2ToJSON(route2: Route2): string {
12039
+ return JSON.stringify(Route2$outboundSchema.parse(route2));
12040
+ }
12041
+
12042
+ export function route2FromJSON(
12043
+ jsonString: string,
12044
+ ): SafeParseResult<Route2, SDKValidationError> {
12045
+ return safeParse(
12046
+ jsonString,
12047
+ (x) => Route2$inboundSchema.parse(JSON.parse(x)),
12048
+ `Failed to parse 'Route2' from JSON`,
12049
+ );
12050
+ }
12051
+
12052
+ /** @internal */
12053
+ export const Route1$inboundSchema: z.ZodType<Route1, z.ZodTypeDef, unknown> = z
12054
+ .object({
12055
+ src: z.string(),
12056
+ status: z.number(),
12057
+ });
12058
+
12059
+ /** @internal */
12060
+ export type Route1$Outbound = {
12061
+ src: string;
12062
+ status: number;
12063
+ };
12064
+
12065
+ /** @internal */
12066
+ export const Route1$outboundSchema: z.ZodType<
12067
+ Route1$Outbound,
12068
+ z.ZodTypeDef,
12069
+ Route1
12070
+ > = z.object({
12071
+ src: z.string(),
12072
+ status: z.number(),
12073
+ });
12074
+
12075
+ /**
12076
+ * @internal
12077
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12078
+ */
12079
+ export namespace Route1$ {
12080
+ /** @deprecated use `Route1$inboundSchema` instead. */
12081
+ export const inboundSchema = Route1$inboundSchema;
12082
+ /** @deprecated use `Route1$outboundSchema` instead. */
12083
+ export const outboundSchema = Route1$outboundSchema;
12084
+ /** @deprecated use `Route1$Outbound` instead. */
12085
+ export type Outbound = Route1$Outbound;
12086
+ }
12087
+
12088
+ export function route1ToJSON(route1: Route1): string {
12089
+ return JSON.stringify(Route1$outboundSchema.parse(route1));
12090
+ }
12091
+
12092
+ export function route1FromJSON(
12093
+ jsonString: string,
12094
+ ): SafeParseResult<Route1, SDKValidationError> {
12095
+ return safeParse(
12096
+ jsonString,
12097
+ (x) => Route1$inboundSchema.parse(JSON.parse(x)),
12098
+ `Failed to parse 'Route1' from JSON`,
12099
+ );
12100
+ }
12101
+
12102
+ /** @internal */
12103
+ export const Route$inboundSchema: z.ZodType<Route, z.ZodTypeDef, unknown> = z
12104
+ .union([
12105
+ z.lazy(() => Route1$inboundSchema),
12106
+ z.lazy(() => Route2$inboundSchema),
12107
+ ]);
12108
+
12109
+ /** @internal */
12110
+ export type Route$Outbound = Route1$Outbound | Route2$Outbound;
12111
+
12112
+ /** @internal */
12113
+ export const Route$outboundSchema: z.ZodType<
12114
+ Route$Outbound,
12115
+ z.ZodTypeDef,
12116
+ Route
12117
+ > = z.union([
12118
+ z.lazy(() => Route1$outboundSchema),
12119
+ z.lazy(() => Route2$outboundSchema),
12120
+ ]);
12121
+
12122
+ /**
12123
+ * @internal
12124
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12125
+ */
12126
+ export namespace Route$ {
12127
+ /** @deprecated use `Route$inboundSchema` instead. */
12128
+ export const inboundSchema = Route$inboundSchema;
12129
+ /** @deprecated use `Route$outboundSchema` instead. */
12130
+ export const outboundSchema = Route$outboundSchema;
12131
+ /** @deprecated use `Route$Outbound` instead. */
12132
+ export type Outbound = Route$Outbound;
12133
+ }
12134
+
12135
+ export function routeToJSON(route: Route): string {
12136
+ return JSON.stringify(Route$outboundSchema.parse(route));
12137
+ }
12138
+
12139
+ export function routeFromJSON(
12140
+ jsonString: string,
12141
+ ): SafeParseResult<Route, SDKValidationError> {
12142
+ return safeParse(
12143
+ jsonString,
12144
+ (x) => Route$inboundSchema.parse(JSON.parse(x)),
12145
+ `Failed to parse 'Route' from JSON`,
12146
+ );
12147
+ }
12148
+
12149
+ /** @internal */
12150
+ export const BlockHistory3$inboundSchema: z.ZodType<
12151
+ BlockHistory3,
12152
+ z.ZodTypeDef,
12153
+ unknown
12154
+ > = z.object({
12155
+ action: UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema,
12156
+ route: z.union([
12157
+ z.lazy(() => Route1$inboundSchema),
12158
+ z.lazy(() => Route2$inboundSchema),
12159
+ ]),
12160
+ reason: z.string(),
12161
+ createdAt: z.number(),
12162
+ caseId: z.string().optional(),
12163
+ actor: z.string().optional(),
12164
+ comment: z.string().optional(),
12165
+ isCascading: z.boolean().optional(),
12166
+ });
12167
+
12168
+ /** @internal */
12169
+ export type BlockHistory3$Outbound = {
12170
+ action: string;
12171
+ route: Route1$Outbound | Route2$Outbound;
12172
+ reason: string;
12173
+ createdAt: number;
12174
+ caseId?: string | undefined;
12175
+ actor?: string | undefined;
12176
+ comment?: string | undefined;
12177
+ isCascading?: boolean | undefined;
12178
+ };
12179
+
12180
+ /** @internal */
12181
+ export const BlockHistory3$outboundSchema: z.ZodType<
12182
+ BlockHistory3$Outbound,
12183
+ z.ZodTypeDef,
12184
+ BlockHistory3
12185
+ > = z.object({
12186
+ action: UpdateProjectDataCacheBlockHistoryProjectsAction$outboundSchema,
12187
+ route: z.union([
12188
+ z.lazy(() => Route1$outboundSchema),
12189
+ z.lazy(() => Route2$outboundSchema),
12190
+ ]),
12191
+ reason: z.string(),
12192
+ createdAt: z.number(),
12193
+ caseId: z.string().optional(),
12194
+ actor: z.string().optional(),
12195
+ comment: z.string().optional(),
12196
+ isCascading: z.boolean().optional(),
12197
+ });
12198
+
12199
+ /**
12200
+ * @internal
12201
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12202
+ */
12203
+ export namespace BlockHistory3$ {
12204
+ /** @deprecated use `BlockHistory3$inboundSchema` instead. */
12205
+ export const inboundSchema = BlockHistory3$inboundSchema;
12206
+ /** @deprecated use `BlockHistory3$outboundSchema` instead. */
12207
+ export const outboundSchema = BlockHistory3$outboundSchema;
12208
+ /** @deprecated use `BlockHistory3$Outbound` instead. */
12209
+ export type Outbound = BlockHistory3$Outbound;
12210
+ }
12211
+
12212
+ export function blockHistory3ToJSON(blockHistory3: BlockHistory3): string {
12213
+ return JSON.stringify(BlockHistory3$outboundSchema.parse(blockHistory3));
12214
+ }
12215
+
12216
+ export function blockHistory3FromJSON(
12217
+ jsonString: string,
12218
+ ): SafeParseResult<BlockHistory3, SDKValidationError> {
12219
+ return safeParse(
12220
+ jsonString,
12221
+ (x) => BlockHistory3$inboundSchema.parse(JSON.parse(x)),
12222
+ `Failed to parse 'BlockHistory3' from JSON`,
12223
+ );
12224
+ }
12225
+
12226
+ /** @internal */
12227
+ export const UpdateProjectDataCacheBlockHistoryAction$inboundSchema:
12228
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheBlockHistoryAction> = z
12229
+ .nativeEnum(UpdateProjectDataCacheBlockHistoryAction);
12230
+
12231
+ /** @internal */
12232
+ export const UpdateProjectDataCacheBlockHistoryAction$outboundSchema:
12233
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheBlockHistoryAction> =
12234
+ UpdateProjectDataCacheBlockHistoryAction$inboundSchema;
12235
+
12236
+ /**
12237
+ * @internal
12238
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12239
+ */
12240
+ export namespace UpdateProjectDataCacheBlockHistoryAction$ {
12241
+ /** @deprecated use `UpdateProjectDataCacheBlockHistoryAction$inboundSchema` instead. */
12242
+ export const inboundSchema =
12243
+ UpdateProjectDataCacheBlockHistoryAction$inboundSchema;
12244
+ /** @deprecated use `UpdateProjectDataCacheBlockHistoryAction$outboundSchema` instead. */
12245
+ export const outboundSchema =
12246
+ UpdateProjectDataCacheBlockHistoryAction$outboundSchema;
12247
+ }
12248
+
12249
+ /** @internal */
12250
+ export const BlockHistory2$inboundSchema: z.ZodType<
12251
+ BlockHistory2,
12252
+ z.ZodTypeDef,
12253
+ unknown
12254
+ > = z.object({
12255
+ action: UpdateProjectDataCacheBlockHistoryAction$inboundSchema,
12256
+ createdAt: z.number(),
12257
+ caseId: z.string().optional(),
12258
+ actor: z.string().optional(),
12259
+ comment: z.string().optional(),
12260
+ isCascading: z.boolean().optional(),
12261
+ });
12262
+
12263
+ /** @internal */
12264
+ export type BlockHistory2$Outbound = {
12265
+ action: string;
12266
+ createdAt: number;
12267
+ caseId?: string | undefined;
12268
+ actor?: string | undefined;
12269
+ comment?: string | undefined;
12270
+ isCascading?: boolean | undefined;
12271
+ };
12272
+
12273
+ /** @internal */
12274
+ export const BlockHistory2$outboundSchema: z.ZodType<
12275
+ BlockHistory2$Outbound,
12276
+ z.ZodTypeDef,
12277
+ BlockHistory2
12278
+ > = z.object({
12279
+ action: UpdateProjectDataCacheBlockHistoryAction$outboundSchema,
12280
+ createdAt: z.number(),
12281
+ caseId: z.string().optional(),
12282
+ actor: z.string().optional(),
12283
+ comment: z.string().optional(),
12284
+ isCascading: z.boolean().optional(),
12285
+ });
12286
+
12287
+ /**
12288
+ * @internal
12289
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12290
+ */
12291
+ export namespace BlockHistory2$ {
12292
+ /** @deprecated use `BlockHistory2$inboundSchema` instead. */
12293
+ export const inboundSchema = BlockHistory2$inboundSchema;
12294
+ /** @deprecated use `BlockHistory2$outboundSchema` instead. */
12295
+ export const outboundSchema = BlockHistory2$outboundSchema;
12296
+ /** @deprecated use `BlockHistory2$Outbound` instead. */
12297
+ export type Outbound = BlockHistory2$Outbound;
12298
+ }
12299
+
12300
+ export function blockHistory2ToJSON(blockHistory2: BlockHistory2): string {
12301
+ return JSON.stringify(BlockHistory2$outboundSchema.parse(blockHistory2));
12302
+ }
12303
+
12304
+ export function blockHistory2FromJSON(
12305
+ jsonString: string,
12306
+ ): SafeParseResult<BlockHistory2, SDKValidationError> {
12307
+ return safeParse(
12308
+ jsonString,
12309
+ (x) => BlockHistory2$inboundSchema.parse(JSON.parse(x)),
12310
+ `Failed to parse 'BlockHistory2' from JSON`,
12311
+ );
12312
+ }
12313
+
12314
+ /** @internal */
12315
+ export const BlockHistoryAction$inboundSchema: z.ZodNativeEnum<
12316
+ typeof BlockHistoryAction
12317
+ > = z.nativeEnum(BlockHistoryAction);
12318
+
12319
+ /** @internal */
12320
+ export const BlockHistoryAction$outboundSchema: z.ZodNativeEnum<
12321
+ typeof BlockHistoryAction
12322
+ > = BlockHistoryAction$inboundSchema;
12323
+
12324
+ /**
12325
+ * @internal
12326
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12327
+ */
12328
+ export namespace BlockHistoryAction$ {
12329
+ /** @deprecated use `BlockHistoryAction$inboundSchema` instead. */
12330
+ export const inboundSchema = BlockHistoryAction$inboundSchema;
12331
+ /** @deprecated use `BlockHistoryAction$outboundSchema` instead. */
12332
+ export const outboundSchema = BlockHistoryAction$outboundSchema;
12333
+ }
12334
+
12335
+ /** @internal */
12336
+ export const BlockHistory1$inboundSchema: z.ZodType<
12337
+ BlockHistory1,
12338
+ z.ZodTypeDef,
12339
+ unknown
12340
+ > = z.object({
12341
+ action: BlockHistoryAction$inboundSchema,
12342
+ reason: z.string(),
12343
+ statusCode: z.number(),
12344
+ createdAt: z.number(),
12345
+ caseId: z.string().optional(),
12346
+ actor: z.string().optional(),
12347
+ comment: z.string().optional(),
12348
+ isCascading: z.boolean().optional(),
12349
+ });
12350
+
12351
+ /** @internal */
12352
+ export type BlockHistory1$Outbound = {
12353
+ action: string;
12354
+ reason: string;
12355
+ statusCode: number;
12356
+ createdAt: number;
12357
+ caseId?: string | undefined;
12358
+ actor?: string | undefined;
12359
+ comment?: string | undefined;
12360
+ isCascading?: boolean | undefined;
12361
+ };
12362
+
12363
+ /** @internal */
12364
+ export const BlockHistory1$outboundSchema: z.ZodType<
12365
+ BlockHistory1$Outbound,
12366
+ z.ZodTypeDef,
12367
+ BlockHistory1
12368
+ > = z.object({
12369
+ action: BlockHistoryAction$outboundSchema,
12370
+ reason: z.string(),
12371
+ statusCode: z.number(),
12372
+ createdAt: z.number(),
12373
+ caseId: z.string().optional(),
12374
+ actor: z.string().optional(),
12375
+ comment: z.string().optional(),
12376
+ isCascading: z.boolean().optional(),
12377
+ });
12378
+
12379
+ /**
12380
+ * @internal
12381
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12382
+ */
12383
+ export namespace BlockHistory1$ {
12384
+ /** @deprecated use `BlockHistory1$inboundSchema` instead. */
12385
+ export const inboundSchema = BlockHistory1$inboundSchema;
12386
+ /** @deprecated use `BlockHistory1$outboundSchema` instead. */
12387
+ export const outboundSchema = BlockHistory1$outboundSchema;
12388
+ /** @deprecated use `BlockHistory1$Outbound` instead. */
12389
+ export type Outbound = BlockHistory1$Outbound;
12390
+ }
12391
+
12392
+ export function blockHistory1ToJSON(blockHistory1: BlockHistory1): string {
12393
+ return JSON.stringify(BlockHistory1$outboundSchema.parse(blockHistory1));
12394
+ }
12395
+
12396
+ export function blockHistory1FromJSON(
12397
+ jsonString: string,
12398
+ ): SafeParseResult<BlockHistory1, SDKValidationError> {
12399
+ return safeParse(
12400
+ jsonString,
12401
+ (x) => BlockHistory1$inboundSchema.parse(JSON.parse(x)),
12402
+ `Failed to parse 'BlockHistory1' from JSON`,
12403
+ );
12404
+ }
12405
+
12406
+ /** @internal */
12407
+ export const UpdateProjectDataCacheBlockHistory$inboundSchema: z.ZodType<
12408
+ UpdateProjectDataCacheBlockHistory,
12409
+ z.ZodTypeDef,
12410
+ unknown
12411
+ > = z.union([
12412
+ z.lazy(() => BlockHistory1$inboundSchema),
12413
+ z.lazy(() => BlockHistory3$inboundSchema),
12414
+ z.lazy(() => BlockHistory4$inboundSchema),
12415
+ z.lazy(() => BlockHistory2$inboundSchema),
12416
+ ]);
12417
+
12418
+ /** @internal */
12419
+ export type UpdateProjectDataCacheBlockHistory$Outbound =
12420
+ | BlockHistory1$Outbound
12421
+ | BlockHistory3$Outbound
12422
+ | BlockHistory4$Outbound
12423
+ | BlockHistory2$Outbound;
12424
+
12425
+ /** @internal */
12426
+ export const UpdateProjectDataCacheBlockHistory$outboundSchema: z.ZodType<
12427
+ UpdateProjectDataCacheBlockHistory$Outbound,
12428
+ z.ZodTypeDef,
12429
+ UpdateProjectDataCacheBlockHistory
12430
+ > = z.union([
12431
+ z.lazy(() => BlockHistory1$outboundSchema),
12432
+ z.lazy(() => BlockHistory3$outboundSchema),
12433
+ z.lazy(() => BlockHistory4$outboundSchema),
12434
+ z.lazy(() => BlockHistory2$outboundSchema),
12435
+ ]);
12436
+
12437
+ /**
12438
+ * @internal
12439
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12440
+ */
12441
+ export namespace UpdateProjectDataCacheBlockHistory$ {
12442
+ /** @deprecated use `UpdateProjectDataCacheBlockHistory$inboundSchema` instead. */
12443
+ export const inboundSchema = UpdateProjectDataCacheBlockHistory$inboundSchema;
12444
+ /** @deprecated use `UpdateProjectDataCacheBlockHistory$outboundSchema` instead. */
12445
+ export const outboundSchema =
12446
+ UpdateProjectDataCacheBlockHistory$outboundSchema;
12447
+ /** @deprecated use `UpdateProjectDataCacheBlockHistory$Outbound` instead. */
12448
+ export type Outbound = UpdateProjectDataCacheBlockHistory$Outbound;
12449
+ }
12450
+
12451
+ export function updateProjectDataCacheBlockHistoryToJSON(
12452
+ updateProjectDataCacheBlockHistory: UpdateProjectDataCacheBlockHistory,
12453
+ ): string {
12454
+ return JSON.stringify(
12455
+ UpdateProjectDataCacheBlockHistory$outboundSchema.parse(
12456
+ updateProjectDataCacheBlockHistory,
12457
+ ),
12458
+ );
12459
+ }
12460
+
12461
+ export function updateProjectDataCacheBlockHistoryFromJSON(
12462
+ jsonString: string,
12463
+ ): SafeParseResult<UpdateProjectDataCacheBlockHistory, SDKValidationError> {
12464
+ return safeParse(
12465
+ jsonString,
12466
+ (x) =>
12467
+ UpdateProjectDataCacheBlockHistory$inboundSchema.parse(JSON.parse(x)),
12468
+ `Failed to parse 'UpdateProjectDataCacheBlockHistory' from JSON`,
12469
+ );
12470
+ }
12471
+
12472
+ /** @internal */
12473
+ export const UpdateProjectDataCacheAbuse$inboundSchema: z.ZodType<
12474
+ UpdateProjectDataCacheAbuse,
12475
+ z.ZodTypeDef,
12476
+ unknown
12477
+ > = z.object({
12478
+ scanner: z.string().optional(),
12479
+ history: z.array(z.lazy(() => UpdateProjectDataCacheHistory$inboundSchema)),
12480
+ updatedAt: z.number(),
12481
+ block: z.lazy(() => Block$inboundSchema).optional(),
12482
+ blockHistory: z.array(
12483
+ z.union([
12484
+ z.lazy(() => BlockHistory1$inboundSchema),
12485
+ z.lazy(() => BlockHistory3$inboundSchema),
12486
+ z.lazy(() => BlockHistory4$inboundSchema),
12487
+ z.lazy(() => BlockHistory2$inboundSchema),
12488
+ ]),
12489
+ ).optional(),
12490
+ });
12491
+
12492
+ /** @internal */
12493
+ export type UpdateProjectDataCacheAbuse$Outbound = {
12494
+ scanner?: string | undefined;
12495
+ history: Array<UpdateProjectDataCacheHistory$Outbound>;
12496
+ updatedAt: number;
12497
+ block?: Block$Outbound | undefined;
12498
+ blockHistory?:
12499
+ | Array<
12500
+ | BlockHistory1$Outbound
12501
+ | BlockHistory3$Outbound
12502
+ | BlockHistory4$Outbound
12503
+ | BlockHistory2$Outbound
12504
+ >
12505
+ | undefined;
12506
+ };
12507
+
12508
+ /** @internal */
12509
+ export const UpdateProjectDataCacheAbuse$outboundSchema: z.ZodType<
12510
+ UpdateProjectDataCacheAbuse$Outbound,
12511
+ z.ZodTypeDef,
12512
+ UpdateProjectDataCacheAbuse
12513
+ > = z.object({
12514
+ scanner: z.string().optional(),
12515
+ history: z.array(z.lazy(() => UpdateProjectDataCacheHistory$outboundSchema)),
12516
+ updatedAt: z.number(),
12517
+ block: z.lazy(() => Block$outboundSchema).optional(),
12518
+ blockHistory: z.array(
12519
+ z.union([
12520
+ z.lazy(() => BlockHistory1$outboundSchema),
12521
+ z.lazy(() => BlockHistory3$outboundSchema),
12522
+ z.lazy(() => BlockHistory4$outboundSchema),
12523
+ z.lazy(() => BlockHistory2$outboundSchema),
12524
+ ]),
12525
+ ).optional(),
12526
+ });
12527
+
12528
+ /**
12529
+ * @internal
12530
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12531
+ */
12532
+ export namespace UpdateProjectDataCacheAbuse$ {
12533
+ /** @deprecated use `UpdateProjectDataCacheAbuse$inboundSchema` instead. */
12534
+ export const inboundSchema = UpdateProjectDataCacheAbuse$inboundSchema;
12535
+ /** @deprecated use `UpdateProjectDataCacheAbuse$outboundSchema` instead. */
12536
+ export const outboundSchema = UpdateProjectDataCacheAbuse$outboundSchema;
12537
+ /** @deprecated use `UpdateProjectDataCacheAbuse$Outbound` instead. */
12538
+ export type Outbound = UpdateProjectDataCacheAbuse$Outbound;
12539
+ }
12540
+
12541
+ export function updateProjectDataCacheAbuseToJSON(
12542
+ updateProjectDataCacheAbuse: UpdateProjectDataCacheAbuse,
12543
+ ): string {
12544
+ return JSON.stringify(
12545
+ UpdateProjectDataCacheAbuse$outboundSchema.parse(
12546
+ updateProjectDataCacheAbuse,
12547
+ ),
12548
+ );
12549
+ }
12550
+
12551
+ export function updateProjectDataCacheAbuseFromJSON(
12552
+ jsonString: string,
12553
+ ): SafeParseResult<UpdateProjectDataCacheAbuse, SDKValidationError> {
12554
+ return safeParse(
12555
+ jsonString,
12556
+ (x) => UpdateProjectDataCacheAbuse$inboundSchema.parse(JSON.parse(x)),
12557
+ `Failed to parse 'UpdateProjectDataCacheAbuse' from JSON`,
12558
+ );
12559
+ }
12560
+
12561
+ /** @internal */
12562
+ export const UpdateProjectDataCacheHasType$inboundSchema: z.ZodNativeEnum<
12563
+ typeof UpdateProjectDataCacheHasType
12564
+ > = z.nativeEnum(UpdateProjectDataCacheHasType);
12565
+
12566
+ /** @internal */
12567
+ export const UpdateProjectDataCacheHasType$outboundSchema: z.ZodNativeEnum<
12568
+ typeof UpdateProjectDataCacheHasType
12569
+ > = UpdateProjectDataCacheHasType$inboundSchema;
12570
+
12571
+ /**
12572
+ * @internal
12573
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12574
+ */
12575
+ export namespace UpdateProjectDataCacheHasType$ {
12576
+ /** @deprecated use `UpdateProjectDataCacheHasType$inboundSchema` instead. */
12577
+ export const inboundSchema = UpdateProjectDataCacheHasType$inboundSchema;
12578
+ /** @deprecated use `UpdateProjectDataCacheHasType$outboundSchema` instead. */
12579
+ export const outboundSchema = UpdateProjectDataCacheHasType$outboundSchema;
12580
+ }
12581
+
12582
+ /** @internal */
12583
+ export const HasValue$inboundSchema: z.ZodType<
12584
+ HasValue,
12585
+ z.ZodTypeDef,
12586
+ unknown
12587
+ > = z.object({
12588
+ eq: z.string(),
12589
+ });
12590
+
12591
+ /** @internal */
12592
+ export type HasValue$Outbound = {
12593
+ eq: string;
12594
+ };
12595
+
12596
+ /** @internal */
12597
+ export const HasValue$outboundSchema: z.ZodType<
12598
+ HasValue$Outbound,
12599
+ z.ZodTypeDef,
12600
+ HasValue
12601
+ > = z.object({
12602
+ eq: z.string(),
12603
+ });
12604
+
12605
+ /**
12606
+ * @internal
12607
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12608
+ */
12609
+ export namespace HasValue$ {
12610
+ /** @deprecated use `HasValue$inboundSchema` instead. */
12611
+ export const inboundSchema = HasValue$inboundSchema;
12612
+ /** @deprecated use `HasValue$outboundSchema` instead. */
12613
+ export const outboundSchema = HasValue$outboundSchema;
12614
+ /** @deprecated use `HasValue$Outbound` instead. */
12615
+ export type Outbound = HasValue$Outbound;
12616
+ }
12617
+
12618
+ export function hasValueToJSON(hasValue: HasValue): string {
12619
+ return JSON.stringify(HasValue$outboundSchema.parse(hasValue));
12620
+ }
12621
+
12622
+ export function hasValueFromJSON(
12623
+ jsonString: string,
12624
+ ): SafeParseResult<HasValue, SDKValidationError> {
12625
+ return safeParse(
12626
+ jsonString,
12627
+ (x) => HasValue$inboundSchema.parse(JSON.parse(x)),
12628
+ `Failed to parse 'HasValue' from JSON`,
12629
+ );
12630
+ }
12631
+
12632
+ /** @internal */
12633
+ export const Has2$inboundSchema: z.ZodType<Has2, z.ZodTypeDef, unknown> = z
12634
+ .object({
12635
+ type: UpdateProjectDataCacheHasType$inboundSchema,
12636
+ value: z.lazy(() => HasValue$inboundSchema),
12637
+ });
12638
+
12639
+ /** @internal */
12640
+ export type Has2$Outbound = {
12641
+ type: string;
12642
+ value: HasValue$Outbound;
12643
+ };
12644
+
12645
+ /** @internal */
12646
+ export const Has2$outboundSchema: z.ZodType<Has2$Outbound, z.ZodTypeDef, Has2> =
12647
+ z.object({
12648
+ type: UpdateProjectDataCacheHasType$outboundSchema,
12649
+ value: z.lazy(() => HasValue$outboundSchema),
12650
+ });
12651
+
12652
+ /**
12653
+ * @internal
12654
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12655
+ */
12656
+ export namespace Has2$ {
12657
+ /** @deprecated use `Has2$inboundSchema` instead. */
12658
+ export const inboundSchema = Has2$inboundSchema;
12659
+ /** @deprecated use `Has2$outboundSchema` instead. */
12660
+ export const outboundSchema = Has2$outboundSchema;
12661
+ /** @deprecated use `Has2$Outbound` instead. */
12662
+ export type Outbound = Has2$Outbound;
12663
+ }
12664
+
12665
+ export function has2ToJSON(has2: Has2): string {
12666
+ return JSON.stringify(Has2$outboundSchema.parse(has2));
12667
+ }
12668
+
12669
+ export function has2FromJSON(
12670
+ jsonString: string,
12671
+ ): SafeParseResult<Has2, SDKValidationError> {
12672
+ return safeParse(
12673
+ jsonString,
12674
+ (x) => Has2$inboundSchema.parse(JSON.parse(x)),
12675
+ `Failed to parse 'Has2' from JSON`,
12676
+ );
12677
+ }
12678
+
12679
+ /** @internal */
12680
+ export const HasType$inboundSchema: z.ZodNativeEnum<typeof HasType> = z
12681
+ .nativeEnum(HasType);
12682
+
12683
+ /** @internal */
12684
+ export const HasType$outboundSchema: z.ZodNativeEnum<typeof HasType> =
12685
+ HasType$inboundSchema;
12686
+
12687
+ /**
12688
+ * @internal
12689
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12690
+ */
12691
+ export namespace HasType$ {
12692
+ /** @deprecated use `HasType$inboundSchema` instead. */
12693
+ export const inboundSchema = HasType$inboundSchema;
12694
+ /** @deprecated use `HasType$outboundSchema` instead. */
12695
+ export const outboundSchema = HasType$outboundSchema;
12696
+ }
12697
+
12698
+ /** @internal */
12699
+ export const Key$inboundSchema: z.ZodNativeEnum<typeof Key> = z.nativeEnum(Key);
12700
+
12701
+ /** @internal */
12702
+ export const Key$outboundSchema: z.ZodNativeEnum<typeof Key> =
12703
+ Key$inboundSchema;
12704
+
12705
+ /**
12706
+ * @internal
12707
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12708
+ */
12709
+ export namespace Key$ {
12710
+ /** @deprecated use `Key$inboundSchema` instead. */
12711
+ export const inboundSchema = Key$inboundSchema;
12712
+ /** @deprecated use `Key$outboundSchema` instead. */
12713
+ export const outboundSchema = Key$outboundSchema;
12714
+ }
12715
+
12716
+ /** @internal */
12717
+ export const UpdateProjectDataCacheHasValue$inboundSchema: z.ZodType<
12718
+ UpdateProjectDataCacheHasValue,
12719
+ z.ZodTypeDef,
12720
+ unknown
12721
+ > = z.object({
12722
+ eq: z.string(),
12723
+ });
12724
+
12725
+ /** @internal */
12726
+ export type UpdateProjectDataCacheHasValue$Outbound = {
12727
+ eq: string;
12728
+ };
12729
+
12730
+ /** @internal */
12731
+ export const UpdateProjectDataCacheHasValue$outboundSchema: z.ZodType<
12732
+ UpdateProjectDataCacheHasValue$Outbound,
12733
+ z.ZodTypeDef,
12734
+ UpdateProjectDataCacheHasValue
12735
+ > = z.object({
12736
+ eq: z.string(),
12737
+ });
12738
+
12739
+ /**
12740
+ * @internal
12741
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12742
+ */
12743
+ export namespace UpdateProjectDataCacheHasValue$ {
12744
+ /** @deprecated use `UpdateProjectDataCacheHasValue$inboundSchema` instead. */
12745
+ export const inboundSchema = UpdateProjectDataCacheHasValue$inboundSchema;
12746
+ /** @deprecated use `UpdateProjectDataCacheHasValue$outboundSchema` instead. */
12747
+ export const outboundSchema = UpdateProjectDataCacheHasValue$outboundSchema;
12748
+ /** @deprecated use `UpdateProjectDataCacheHasValue$Outbound` instead. */
12749
+ export type Outbound = UpdateProjectDataCacheHasValue$Outbound;
12750
+ }
12751
+
12752
+ export function updateProjectDataCacheHasValueToJSON(
12753
+ updateProjectDataCacheHasValue: UpdateProjectDataCacheHasValue,
12754
+ ): string {
12755
+ return JSON.stringify(
12756
+ UpdateProjectDataCacheHasValue$outboundSchema.parse(
12757
+ updateProjectDataCacheHasValue,
12758
+ ),
12759
+ );
12760
+ }
12761
+
12762
+ export function updateProjectDataCacheHasValueFromJSON(
12763
+ jsonString: string,
12764
+ ): SafeParseResult<UpdateProjectDataCacheHasValue, SDKValidationError> {
12765
+ return safeParse(
12766
+ jsonString,
12767
+ (x) => UpdateProjectDataCacheHasValue$inboundSchema.parse(JSON.parse(x)),
12768
+ `Failed to parse 'UpdateProjectDataCacheHasValue' from JSON`,
12769
+ );
12770
+ }
12771
+
12772
+ /** @internal */
12773
+ export const Has1$inboundSchema: z.ZodType<Has1, z.ZodTypeDef, unknown> = z
12774
+ .object({
12775
+ type: HasType$inboundSchema,
12776
+ key: Key$inboundSchema,
12777
+ value: z.lazy(() => UpdateProjectDataCacheHasValue$inboundSchema),
12778
+ });
12779
+
12780
+ /** @internal */
12781
+ export type Has1$Outbound = {
12782
+ type: string;
12783
+ key: string;
12784
+ value: UpdateProjectDataCacheHasValue$Outbound;
12785
+ };
12786
+
12787
+ /** @internal */
12788
+ export const Has1$outboundSchema: z.ZodType<Has1$Outbound, z.ZodTypeDef, Has1> =
12789
+ z.object({
12790
+ type: HasType$outboundSchema,
12791
+ key: Key$outboundSchema,
12792
+ value: z.lazy(() => UpdateProjectDataCacheHasValue$outboundSchema),
12793
+ });
12794
+
12795
+ /**
12796
+ * @internal
12797
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12798
+ */
12799
+ export namespace Has1$ {
12800
+ /** @deprecated use `Has1$inboundSchema` instead. */
12801
+ export const inboundSchema = Has1$inboundSchema;
12802
+ /** @deprecated use `Has1$outboundSchema` instead. */
12803
+ export const outboundSchema = Has1$outboundSchema;
12804
+ /** @deprecated use `Has1$Outbound` instead. */
12805
+ export type Outbound = Has1$Outbound;
12806
+ }
12807
+
12808
+ export function has1ToJSON(has1: Has1): string {
12809
+ return JSON.stringify(Has1$outboundSchema.parse(has1));
12810
+ }
12811
+
12812
+ export function has1FromJSON(
12813
+ jsonString: string,
12814
+ ): SafeParseResult<Has1, SDKValidationError> {
12815
+ return safeParse(
12816
+ jsonString,
12817
+ (x) => Has1$inboundSchema.parse(JSON.parse(x)),
12818
+ `Failed to parse 'Has1' from JSON`,
12819
+ );
12820
+ }
12821
+
12822
+ /** @internal */
12823
+ export const Has$inboundSchema: z.ZodType<Has, z.ZodTypeDef, unknown> = z.union(
12824
+ [z.lazy(() => Has1$inboundSchema), z.lazy(() => Has2$inboundSchema)],
12825
+ );
12826
+
12827
+ /** @internal */
12828
+ export type Has$Outbound = Has1$Outbound | Has2$Outbound;
12829
+
12830
+ /** @internal */
12831
+ export const Has$outboundSchema: z.ZodType<Has$Outbound, z.ZodTypeDef, Has> = z
12832
+ .union([
12833
+ z.lazy(() => Has1$outboundSchema),
12834
+ z.lazy(() => Has2$outboundSchema),
12835
+ ]);
12836
+
12837
+ /**
12838
+ * @internal
12839
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12840
+ */
12841
+ export namespace Has$ {
12842
+ /** @deprecated use `Has$inboundSchema` instead. */
12843
+ export const inboundSchema = Has$inboundSchema;
12844
+ /** @deprecated use `Has$outboundSchema` instead. */
12845
+ export const outboundSchema = Has$outboundSchema;
12846
+ /** @deprecated use `Has$Outbound` instead. */
12847
+ export type Outbound = Has$Outbound;
12848
+ }
12849
+
12850
+ export function hasToJSON(has: Has): string {
12851
+ return JSON.stringify(Has$outboundSchema.parse(has));
12852
+ }
12853
+
12854
+ export function hasFromJSON(
12855
+ jsonString: string,
12856
+ ): SafeParseResult<Has, SDKValidationError> {
12857
+ return safeParse(
12858
+ jsonString,
12859
+ (x) => Has$inboundSchema.parse(JSON.parse(x)),
12860
+ `Failed to parse 'Has' from JSON`,
12861
+ );
12862
+ }
12863
+
12864
+ /** @internal */
12865
+ export const InternalRoutesAction$inboundSchema: z.ZodNativeEnum<
12866
+ typeof InternalRoutesAction
12867
+ > = z.nativeEnum(InternalRoutesAction);
12868
+
12869
+ /** @internal */
12870
+ export const InternalRoutesAction$outboundSchema: z.ZodNativeEnum<
12871
+ typeof InternalRoutesAction
12872
+ > = InternalRoutesAction$inboundSchema;
12873
+
12874
+ /**
12875
+ * @internal
12876
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12877
+ */
12878
+ export namespace InternalRoutesAction$ {
12879
+ /** @deprecated use `InternalRoutesAction$inboundSchema` instead. */
12880
+ export const inboundSchema = InternalRoutesAction$inboundSchema;
12881
+ /** @deprecated use `InternalRoutesAction$outboundSchema` instead. */
12882
+ export const outboundSchema = InternalRoutesAction$outboundSchema;
12883
+ }
12884
+
12885
+ /** @internal */
12886
+ export const UpdateProjectDataCacheInternalRoutesMitigate$inboundSchema:
12887
+ z.ZodType<
12888
+ UpdateProjectDataCacheInternalRoutesMitigate,
12889
+ z.ZodTypeDef,
12890
+ unknown
12891
+ > = z.object({
12892
+ action: InternalRoutesAction$inboundSchema,
12893
+ });
12894
+
12895
+ /** @internal */
12896
+ export type UpdateProjectDataCacheInternalRoutesMitigate$Outbound = {
12897
+ action: string;
12898
+ };
12899
+
12900
+ /** @internal */
12901
+ export const UpdateProjectDataCacheInternalRoutesMitigate$outboundSchema:
12902
+ z.ZodType<
12903
+ UpdateProjectDataCacheInternalRoutesMitigate$Outbound,
12904
+ z.ZodTypeDef,
12905
+ UpdateProjectDataCacheInternalRoutesMitigate
12906
+ > = z.object({
12907
+ action: InternalRoutesAction$outboundSchema,
12908
+ });
12909
+
12910
+ /**
12911
+ * @internal
12912
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12913
+ */
12914
+ export namespace UpdateProjectDataCacheInternalRoutesMitigate$ {
12915
+ /** @deprecated use `UpdateProjectDataCacheInternalRoutesMitigate$inboundSchema` instead. */
12916
+ export const inboundSchema =
12917
+ UpdateProjectDataCacheInternalRoutesMitigate$inboundSchema;
12918
+ /** @deprecated use `UpdateProjectDataCacheInternalRoutesMitigate$outboundSchema` instead. */
12919
+ export const outboundSchema =
12920
+ UpdateProjectDataCacheInternalRoutesMitigate$outboundSchema;
12921
+ /** @deprecated use `UpdateProjectDataCacheInternalRoutesMitigate$Outbound` instead. */
12922
+ export type Outbound = UpdateProjectDataCacheInternalRoutesMitigate$Outbound;
12923
+ }
12924
+
12925
+ export function updateProjectDataCacheInternalRoutesMitigateToJSON(
12926
+ updateProjectDataCacheInternalRoutesMitigate:
12927
+ UpdateProjectDataCacheInternalRoutesMitigate,
12928
+ ): string {
12929
+ return JSON.stringify(
12930
+ UpdateProjectDataCacheInternalRoutesMitigate$outboundSchema.parse(
12931
+ updateProjectDataCacheInternalRoutesMitigate,
12932
+ ),
12933
+ );
12934
+ }
12935
+
12936
+ export function updateProjectDataCacheInternalRoutesMitigateFromJSON(
12937
+ jsonString: string,
12938
+ ): SafeParseResult<
12939
+ UpdateProjectDataCacheInternalRoutesMitigate,
12940
+ SDKValidationError
12941
+ > {
12942
+ return safeParse(
12943
+ jsonString,
12944
+ (x) =>
12945
+ UpdateProjectDataCacheInternalRoutesMitigate$inboundSchema.parse(
12946
+ JSON.parse(x),
12947
+ ),
12948
+ `Failed to parse 'UpdateProjectDataCacheInternalRoutesMitigate' from JSON`,
12949
+ );
12950
+ }
12951
+
12952
+ /** @internal */
12953
+ export const InternalRoutes2$inboundSchema: z.ZodType<
12954
+ InternalRoutes2,
12955
+ z.ZodTypeDef,
12956
+ unknown
12957
+ > = z.object({
12958
+ has: z.array(
12959
+ z.union([
12960
+ z.lazy(() => Has1$inboundSchema),
12961
+ z.lazy(() => Has2$inboundSchema),
12962
+ ]),
12963
+ ),
12964
+ mitigate: z.lazy(() =>
12965
+ UpdateProjectDataCacheInternalRoutesMitigate$inboundSchema
12966
+ ),
12967
+ src: z.string().optional(),
12968
+ });
12969
+
12970
+ /** @internal */
12971
+ export type InternalRoutes2$Outbound = {
12972
+ has: Array<Has1$Outbound | Has2$Outbound>;
12973
+ mitigate: UpdateProjectDataCacheInternalRoutesMitigate$Outbound;
12974
+ src?: string | undefined;
12975
+ };
12976
+
12977
+ /** @internal */
12978
+ export const InternalRoutes2$outboundSchema: z.ZodType<
12979
+ InternalRoutes2$Outbound,
12980
+ z.ZodTypeDef,
12981
+ InternalRoutes2
12982
+ > = z.object({
12983
+ has: z.array(
12984
+ z.union([
12985
+ z.lazy(() => Has1$outboundSchema),
12986
+ z.lazy(() => Has2$outboundSchema),
12987
+ ]),
12988
+ ),
12989
+ mitigate: z.lazy(() =>
12990
+ UpdateProjectDataCacheInternalRoutesMitigate$outboundSchema
12991
+ ),
12992
+ src: z.string().optional(),
12993
+ });
12994
+
12995
+ /**
12996
+ * @internal
12997
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12998
+ */
12999
+ export namespace InternalRoutes2$ {
13000
+ /** @deprecated use `InternalRoutes2$inboundSchema` instead. */
13001
+ export const inboundSchema = InternalRoutes2$inboundSchema;
13002
+ /** @deprecated use `InternalRoutes2$outboundSchema` instead. */
13003
+ export const outboundSchema = InternalRoutes2$outboundSchema;
13004
+ /** @deprecated use `InternalRoutes2$Outbound` instead. */
13005
+ export type Outbound = InternalRoutes2$Outbound;
13006
+ }
13007
+
13008
+ export function internalRoutes2ToJSON(
13009
+ internalRoutes2: InternalRoutes2,
13010
+ ): string {
13011
+ return JSON.stringify(InternalRoutes2$outboundSchema.parse(internalRoutes2));
13012
+ }
13013
+
13014
+ export function internalRoutes2FromJSON(
13015
+ jsonString: string,
13016
+ ): SafeParseResult<InternalRoutes2, SDKValidationError> {
13017
+ return safeParse(
13018
+ jsonString,
13019
+ (x) => InternalRoutes2$inboundSchema.parse(JSON.parse(x)),
13020
+ `Failed to parse 'InternalRoutes2' from JSON`,
13021
+ );
13022
+ }
13023
+
13024
+ /** @internal */
13025
+ export const InternalRoutes1$inboundSchema: z.ZodType<
13026
+ InternalRoutes1,
13027
+ z.ZodTypeDef,
13028
+ unknown
13029
+ > = z.object({
13030
+ src: z.string(),
13031
+ status: z.number(),
13032
+ });
13033
+
13034
+ /** @internal */
13035
+ export type InternalRoutes1$Outbound = {
13036
+ src: string;
13037
+ status: number;
13038
+ };
13039
+
13040
+ /** @internal */
13041
+ export const InternalRoutes1$outboundSchema: z.ZodType<
13042
+ InternalRoutes1$Outbound,
13043
+ z.ZodTypeDef,
13044
+ InternalRoutes1
13045
+ > = z.object({
13046
+ src: z.string(),
13047
+ status: z.number(),
13048
+ });
13049
+
13050
+ /**
13051
+ * @internal
13052
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
13053
+ */
13054
+ export namespace InternalRoutes1$ {
13055
+ /** @deprecated use `InternalRoutes1$inboundSchema` instead. */
13056
+ export const inboundSchema = InternalRoutes1$inboundSchema;
13057
+ /** @deprecated use `InternalRoutes1$outboundSchema` instead. */
13058
+ export const outboundSchema = InternalRoutes1$outboundSchema;
13059
+ /** @deprecated use `InternalRoutes1$Outbound` instead. */
13060
+ export type Outbound = InternalRoutes1$Outbound;
13061
+ }
13062
+
13063
+ export function internalRoutes1ToJSON(
13064
+ internalRoutes1: InternalRoutes1,
13065
+ ): string {
13066
+ return JSON.stringify(InternalRoutes1$outboundSchema.parse(internalRoutes1));
13067
+ }
13068
+
13069
+ export function internalRoutes1FromJSON(
13070
+ jsonString: string,
13071
+ ): SafeParseResult<InternalRoutes1, SDKValidationError> {
13072
+ return safeParse(
13073
+ jsonString,
13074
+ (x) => InternalRoutes1$inboundSchema.parse(JSON.parse(x)),
13075
+ `Failed to parse 'InternalRoutes1' from JSON`,
13076
+ );
13077
+ }
13078
+
13079
+ /** @internal */
13080
+ export const InternalRoutes$inboundSchema: z.ZodType<
13081
+ InternalRoutes,
13082
+ z.ZodTypeDef,
13083
+ unknown
13084
+ > = z.union([
13085
+ z.lazy(() => InternalRoutes1$inboundSchema),
13086
+ z.lazy(() => InternalRoutes2$inboundSchema),
13087
+ ]);
13088
+
13089
+ /** @internal */
13090
+ export type InternalRoutes$Outbound =
13091
+ | InternalRoutes1$Outbound
13092
+ | InternalRoutes2$Outbound;
13093
+
13094
+ /** @internal */
13095
+ export const InternalRoutes$outboundSchema: z.ZodType<
13096
+ InternalRoutes$Outbound,
13097
+ z.ZodTypeDef,
13098
+ InternalRoutes
13099
+ > = z.union([
13100
+ z.lazy(() => InternalRoutes1$outboundSchema),
13101
+ z.lazy(() => InternalRoutes2$outboundSchema),
13102
+ ]);
13103
+
13104
+ /**
13105
+ * @internal
13106
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
13107
+ */
13108
+ export namespace InternalRoutes$ {
13109
+ /** @deprecated use `InternalRoutes$inboundSchema` instead. */
13110
+ export const inboundSchema = InternalRoutes$inboundSchema;
13111
+ /** @deprecated use `InternalRoutes$outboundSchema` instead. */
13112
+ export const outboundSchema = InternalRoutes$outboundSchema;
13113
+ /** @deprecated use `InternalRoutes$Outbound` instead. */
13114
+ export type Outbound = InternalRoutes$Outbound;
13115
+ }
13116
+
13117
+ export function internalRoutesToJSON(internalRoutes: InternalRoutes): string {
13118
+ return JSON.stringify(InternalRoutes$outboundSchema.parse(internalRoutes));
13119
+ }
13120
+
13121
+ export function internalRoutesFromJSON(
13122
+ jsonString: string,
13123
+ ): SafeParseResult<InternalRoutes, SDKValidationError> {
13124
+ return safeParse(
13125
+ jsonString,
13126
+ (x) => InternalRoutes$inboundSchema.parse(JSON.parse(x)),
13127
+ `Failed to parse 'InternalRoutes' from JSON`,
13128
+ );
13129
+ }
13130
+
13131
+ /** @internal */
13132
+ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
13133
+ UpdateProjectDataCacheResponseBody,
13134
+ z.ZodTypeDef,
13135
+ unknown
13136
+ > = z.object({
13137
+ accountId: z.string(),
13138
+ analytics: z.lazy(() => Analytics$inboundSchema).optional(),
13139
+ speedInsights: z.lazy(() => SpeedInsights$inboundSchema).optional(),
13140
+ autoExposeSystemEnvs: z.boolean().optional(),
13141
+ autoAssignCustomDomains: z.boolean().optional(),
13142
+ autoAssignCustomDomainsUpdatedBy: z.string().optional(),
13143
+ buildCommand: z.nullable(z.string()).optional(),
13144
+ commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
13145
+ connectConfigurations: z.nullable(
13146
+ z.array(z.lazy(() =>
13147
+ UpdateProjectDataCacheConnectConfigurations$inboundSchema
13148
+ )),
13149
+ ).optional(),
13150
+ connectConfigurationId: z.nullable(z.string()).optional(),
13151
+ connectBuildsEnabled: z.boolean().optional(),
13152
+ passiveConnectConfigurationId: z.nullable(z.string()).optional(),
13153
+ createdAt: z.number().optional(),
13154
+ customerSupportCodeVisibility: z.boolean().optional(),
13155
+ crons: z.lazy(() => Crons$inboundSchema).optional(),
13156
+ dataCache: z.lazy(() => UpdateProjectDataCacheDataCache$inboundSchema)
13157
+ .optional(),
13158
+ deploymentExpiration: z.nullable(
13159
+ z.lazy(() => DeploymentExpiration$inboundSchema),
13160
+ ).optional(),
13161
+ devCommand: z.nullable(z.string()).optional(),
13162
+ directoryListing: z.boolean(),
13163
+ installCommand: z.nullable(z.string()).optional(),
13164
+ env: z.array(z.lazy(() => Env$inboundSchema)).optional(),
13165
+ customEnvironments: z.array(z.lazy(() => CustomEnvironments$inboundSchema))
13166
+ .optional(),
13167
+ framework: z.nullable(UpdateProjectDataCacheFramework$inboundSchema)
13168
+ .optional(),
13169
+ gitForkProtection: z.boolean().optional(),
13170
+ gitLFS: z.boolean().optional(),
13171
+ id: z.string(),
13172
+ ipBuckets: z.array(
13173
+ z.lazy(() => UpdateProjectDataCacheIpBuckets$inboundSchema),
13174
+ ).optional(),
13175
+ latestDeployments: z.array(z.lazy(() => LatestDeployments$inboundSchema))
13176
+ .optional(),
13177
+ link: z.union([
13178
+ z.lazy(() => Link4$inboundSchema),
13179
+ z.lazy(() => Link5$inboundSchema),
13180
+ z.lazy(() => Link3$inboundSchema),
13181
+ z.lazy(() => Link1$inboundSchema),
13182
+ z.lazy(() => Link2$inboundSchema),
13183
+ ]).optional(),
13184
+ microfrontends: z.union([
13185
+ z.lazy(() => UpdateProjectDataCacheMicrofrontends1$inboundSchema),
13186
+ z.lazy(() => UpdateProjectDataCacheMicrofrontends2$inboundSchema),
13187
+ ]).optional(),
13188
+ name: z.string(),
13189
+ nodeVersion: UpdateProjectDataCacheNodeVersion$inboundSchema,
13190
+ optionsAllowlist: z.nullable(
13191
+ z.lazy(() => UpdateProjectDataCacheOptionsAllowlist$inboundSchema),
13192
+ ).optional(),
13193
+ outputDirectory: z.nullable(z.string()).optional(),
13194
+ passwordProtection: z.nullable(
13195
+ z.lazy(() => UpdateProjectDataCachePasswordProtection$inboundSchema),
13196
+ ).optional(),
13197
+ productionDeploymentsFastLane: z.boolean().optional(),
13198
+ publicSource: z.nullable(z.boolean()).optional(),
13199
+ resourceConfig: z.lazy(() =>
13200
+ UpdateProjectDataCacheResourceConfig$inboundSchema
13201
+ ),
13202
+ rollbackDescription: z.lazy(() => RollbackDescription$inboundSchema)
13203
+ .optional(),
13204
+ rollingRelease: z.nullable(z.lazy(() => RollingRelease$inboundSchema))
13205
+ .optional(),
13206
+ defaultResourceConfig: z.lazy(() => DefaultResourceConfig$inboundSchema),
13207
+ rootDirectory: z.nullable(z.string()).optional(),
13208
+ serverlessFunctionZeroConfigFailover: z.boolean().optional(),
13209
+ skewProtectionBoundaryAt: z.number().optional(),
13210
+ skewProtectionMaxAge: z.number().optional(),
13211
+ skipGitConnectDuringLink: z.boolean().optional(),
13212
+ sourceFilesOutsideRootDirectory: z.boolean().optional(),
13213
+ enableAffectedProjectsDeployments: z.boolean().optional(),
13214
+ ssoProtection: z.nullable(
13215
+ z.lazy(() => UpdateProjectDataCacheSsoProtection$inboundSchema),
13216
+ ).optional(),
13217
+ targets: z.record(z.nullable(z.lazy(() => Targets$inboundSchema))).optional(),
13218
+ transferCompletedAt: z.number().optional(),
13219
+ transferStartedAt: z.number().optional(),
13220
+ transferToAccountId: z.string().optional(),
13221
+ transferredFromAccountId: z.string().optional(),
13222
+ updatedAt: z.number().optional(),
13223
+ live: z.boolean().optional(),
13224
+ enablePreviewFeedback: z.nullable(z.boolean()).optional(),
13225
+ enableProductionFeedback: z.nullable(z.boolean()).optional(),
13226
+ permissions: z.lazy(() => Permissions$inboundSchema).optional(),
13227
+ lastRollbackTarget: z.nullable(z.lazy(() => LastRollbackTarget$inboundSchema))
13228
+ .optional(),
13229
+ lastAliasRequest: z.nullable(z.lazy(() => LastAliasRequest$inboundSchema))
13230
+ .optional(),
13231
+ protectionBypass: z.record(
13232
+ z.union([
13233
+ z.lazy(() => ProtectionBypass1$inboundSchema),
13234
+ z.lazy(() => ProtectionBypass2$inboundSchema),
13235
+ ]),
13236
+ ).optional(),
13237
+ hasActiveBranches: z.boolean().optional(),
13238
+ trustedIps: z.nullable(
13239
+ z.union([
13240
+ z.lazy(() => TrustedIps1$inboundSchema),
13241
+ z.lazy(() => TrustedIps2$inboundSchema),
13242
+ ]),
13243
+ ).optional(),
13244
+ gitComments: z.lazy(() => GitComments$inboundSchema).optional(),
13245
+ gitProviderOptions: z.lazy(() => GitProviderOptions$inboundSchema).optional(),
13246
+ paused: z.boolean().optional(),
13247
+ concurrencyBucketName: z.string().optional(),
13248
+ webAnalytics: z.lazy(() => UpdateProjectDataCacheWebAnalytics$inboundSchema)
13249
+ .optional(),
13250
+ security: z.lazy(() => UpdateProjectDataCacheSecurity$inboundSchema)
13251
+ .optional(),
13252
+ oidcTokenConfig: z.lazy(() =>
13253
+ UpdateProjectDataCacheOidcTokenConfig$inboundSchema
13254
+ ).optional(),
13255
+ tier: UpdateProjectDataCacheTier$inboundSchema.optional(),
13256
+ features: z.lazy(() => Features$inboundSchema).optional(),
13257
+ v0: z.boolean().optional(),
13258
+ abuse: z.lazy(() => UpdateProjectDataCacheAbuse$inboundSchema).optional(),
13259
+ internalRoutes: z.array(
13260
+ z.union([
13261
+ z.lazy(() => InternalRoutes1$inboundSchema),
13262
+ z.lazy(() => InternalRoutes2$inboundSchema),
13263
+ ]),
13264
+ ).optional(),
13265
+ });
13266
+
13267
+ /** @internal */
13268
+ export type UpdateProjectDataCacheResponseBody$Outbound = {
13269
+ accountId: string;
13270
+ analytics?: Analytics$Outbound | undefined;
13271
+ speedInsights?: SpeedInsights$Outbound | undefined;
13272
+ autoExposeSystemEnvs?: boolean | undefined;
13273
+ autoAssignCustomDomains?: boolean | undefined;
13274
+ autoAssignCustomDomainsUpdatedBy?: string | undefined;
13275
+ buildCommand?: string | null | undefined;
13276
+ commandForIgnoringBuildStep?: string | null | undefined;
13277
+ connectConfigurations?:
13278
+ | Array<UpdateProjectDataCacheConnectConfigurations$Outbound>
13279
+ | null
13280
+ | undefined;
13281
+ connectConfigurationId?: string | null | undefined;
13282
+ connectBuildsEnabled?: boolean | undefined;
13283
+ passiveConnectConfigurationId?: string | null | undefined;
13284
+ createdAt?: number | undefined;
13285
+ customerSupportCodeVisibility?: boolean | undefined;
13286
+ crons?: Crons$Outbound | undefined;
13287
+ dataCache?: UpdateProjectDataCacheDataCache$Outbound | undefined;
13288
+ deploymentExpiration?: DeploymentExpiration$Outbound | null | undefined;
13289
+ devCommand?: string | null | undefined;
13290
+ directoryListing: boolean;
13291
+ installCommand?: string | null | undefined;
13292
+ env?: Array<Env$Outbound> | undefined;
13293
+ customEnvironments?: Array<CustomEnvironments$Outbound> | undefined;
13294
+ framework?: string | null | undefined;
13295
+ gitForkProtection?: boolean | undefined;
13296
+ gitLFS?: boolean | undefined;
13297
+ id: string;
13298
+ ipBuckets?: Array<UpdateProjectDataCacheIpBuckets$Outbound> | undefined;
13299
+ latestDeployments?: Array<LatestDeployments$Outbound> | undefined;
13300
+ link?:
13301
+ | Link4$Outbound
13302
+ | Link5$Outbound
13303
+ | Link3$Outbound
13304
+ | Link1$Outbound
13305
+ | Link2$Outbound
13306
+ | undefined;
13307
+ microfrontends?:
13308
+ | UpdateProjectDataCacheMicrofrontends1$Outbound
13309
+ | UpdateProjectDataCacheMicrofrontends2$Outbound
13310
+ | undefined;
13311
+ name: string;
13312
+ nodeVersion: string;
13313
+ optionsAllowlist?:
13314
+ | UpdateProjectDataCacheOptionsAllowlist$Outbound
13315
+ | null
13316
+ | undefined;
13317
+ outputDirectory?: string | null | undefined;
13318
+ passwordProtection?:
13319
+ | UpdateProjectDataCachePasswordProtection$Outbound
13320
+ | null
13321
+ | undefined;
13322
+ productionDeploymentsFastLane?: boolean | undefined;
13323
+ publicSource?: boolean | null | undefined;
13324
+ resourceConfig: UpdateProjectDataCacheResourceConfig$Outbound;
13325
+ rollbackDescription?: RollbackDescription$Outbound | undefined;
13326
+ rollingRelease?: RollingRelease$Outbound | null | undefined;
13327
+ defaultResourceConfig: DefaultResourceConfig$Outbound;
13328
+ rootDirectory?: string | null | undefined;
13329
+ serverlessFunctionZeroConfigFailover?: boolean | undefined;
13330
+ skewProtectionBoundaryAt?: number | undefined;
13331
+ skewProtectionMaxAge?: number | undefined;
13332
+ skipGitConnectDuringLink?: boolean | undefined;
13333
+ sourceFilesOutsideRootDirectory?: boolean | undefined;
13334
+ enableAffectedProjectsDeployments?: boolean | undefined;
13335
+ ssoProtection?:
13336
+ | UpdateProjectDataCacheSsoProtection$Outbound
13337
+ | null
13338
+ | undefined;
13339
+ targets?: { [k: string]: Targets$Outbound | null } | undefined;
13340
+ transferCompletedAt?: number | undefined;
13341
+ transferStartedAt?: number | undefined;
13342
+ transferToAccountId?: string | undefined;
13343
+ transferredFromAccountId?: string | undefined;
13344
+ updatedAt?: number | undefined;
13345
+ live?: boolean | undefined;
13346
+ enablePreviewFeedback?: boolean | null | undefined;
13347
+ enableProductionFeedback?: boolean | null | undefined;
13348
+ permissions?: Permissions$Outbound | undefined;
13349
+ lastRollbackTarget?: LastRollbackTarget$Outbound | null | undefined;
13350
+ lastAliasRequest?: LastAliasRequest$Outbound | null | undefined;
13351
+ protectionBypass?: {
13352
+ [k: string]: ProtectionBypass1$Outbound | ProtectionBypass2$Outbound;
13353
+ } | undefined;
13354
+ hasActiveBranches?: boolean | undefined;
13355
+ trustedIps?: TrustedIps1$Outbound | TrustedIps2$Outbound | null | undefined;
13356
+ gitComments?: GitComments$Outbound | undefined;
13357
+ gitProviderOptions?: GitProviderOptions$Outbound | undefined;
10492
13358
  paused?: boolean | undefined;
10493
13359
  concurrencyBucketName?: string | undefined;
10494
13360
  webAnalytics?: UpdateProjectDataCacheWebAnalytics$Outbound | undefined;
@@ -10497,6 +13363,10 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
10497
13363
  tier?: string | undefined;
10498
13364
  features?: Features$Outbound | undefined;
10499
13365
  v0?: boolean | undefined;
13366
+ abuse?: UpdateProjectDataCacheAbuse$Outbound | undefined;
13367
+ internalRoutes?:
13368
+ | Array<InternalRoutes1$Outbound | InternalRoutes2$Outbound>
13369
+ | undefined;
10500
13370
  };
10501
13371
 
10502
13372
  /** @internal */
@@ -10546,9 +13416,9 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10546
13416
  latestDeployments: z.array(z.lazy(() => LatestDeployments$outboundSchema))
10547
13417
  .optional(),
10548
13418
  link: z.union([
10549
- z.lazy(() => Link3$outboundSchema),
10550
13419
  z.lazy(() => Link4$outboundSchema),
10551
13420
  z.lazy(() => Link5$outboundSchema),
13421
+ z.lazy(() => Link3$outboundSchema),
10552
13422
  z.lazy(() => Link1$outboundSchema),
10553
13423
  z.lazy(() => Link2$outboundSchema),
10554
13424
  ]).optional(),
@@ -10629,6 +13499,13 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10629
13499
  tier: UpdateProjectDataCacheTier$outboundSchema.optional(),
10630
13500
  features: z.lazy(() => Features$outboundSchema).optional(),
10631
13501
  v0: z.boolean().optional(),
13502
+ abuse: z.lazy(() => UpdateProjectDataCacheAbuse$outboundSchema).optional(),
13503
+ internalRoutes: z.array(
13504
+ z.union([
13505
+ z.lazy(() => InternalRoutes1$outboundSchema),
13506
+ z.lazy(() => InternalRoutes2$outboundSchema),
13507
+ ]),
13508
+ ).optional(),
10632
13509
  });
10633
13510
 
10634
13511
  /**