@vercel/sdk 1.10.8 → 1.11.1

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