@vercel/sdk 1.10.1 → 1.10.2

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 (93) hide show
  1. package/bin/mcp-server.js +816 -1951
  2. package/bin/mcp-server.js.map +22 -22
  3. package/esm/__tests__/teams.test.js +2 -2
  4. package/esm/__tests__/teams.test.js.map +1 -1
  5. package/esm/funcs/domainsBuyDomain.js +2 -2
  6. package/esm/funcs/domainsBuyDomain.js.map +1 -1
  7. package/esm/funcs/domainsPatchDomain.js +2 -2
  8. package/esm/funcs/domainsPatchDomain.js.map +1 -1
  9. package/esm/lib/config.d.ts +3 -3
  10. package/esm/lib/config.js +3 -3
  11. package/esm/mcp-server/mcp-server.js +1 -1
  12. package/esm/mcp-server/server.js +1 -1
  13. package/esm/models/canceldeploymentop.d.ts +49 -49
  14. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  15. package/esm/models/canceldeploymentop.js +53 -55
  16. package/esm/models/canceldeploymentop.js.map +1 -1
  17. package/esm/models/createdeploymentop.d.ts +139 -139
  18. package/esm/models/createdeploymentop.d.ts.map +1 -1
  19. package/esm/models/createdeploymentop.js +153 -152
  20. package/esm/models/createdeploymentop.js.map +1 -1
  21. package/esm/models/createprojectenvop.d.ts +6 -6
  22. package/esm/models/createprojectenvop.js +2 -2
  23. package/esm/models/createprojectenvop.js.map +1 -1
  24. package/esm/models/createprojectop.d.ts +189 -741
  25. package/esm/models/createprojectop.d.ts.map +1 -1
  26. package/esm/models/createprojectop.js +179 -678
  27. package/esm/models/createprojectop.js.map +1 -1
  28. package/esm/models/editprojectenvop.d.ts +3 -3
  29. package/esm/models/editprojectenvop.js +1 -1
  30. package/esm/models/editprojectenvop.js.map +1 -1
  31. package/esm/models/filterprojectenvsop.d.ts +9 -9
  32. package/esm/models/filterprojectenvsop.js +3 -3
  33. package/esm/models/filterprojectenvsop.js.map +1 -1
  34. package/esm/models/getdeploymentop.d.ts +90 -90
  35. package/esm/models/getdeploymentop.d.ts.map +1 -1
  36. package/esm/models/getdeploymentop.js +101 -102
  37. package/esm/models/getdeploymentop.js.map +1 -1
  38. package/esm/models/getfirewallconfigop.d.ts +3 -0
  39. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  40. package/esm/models/getfirewallconfigop.js +1 -0
  41. package/esm/models/getfirewallconfigop.js.map +1 -1
  42. package/esm/models/getprojectsop.d.ts +33 -585
  43. package/esm/models/getprojectsop.d.ts.map +1 -1
  44. package/esm/models/getprojectsop.js +31 -530
  45. package/esm/models/getprojectsop.js.map +1 -1
  46. package/esm/models/putfirewallconfigop.d.ts +3 -0
  47. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  48. package/esm/models/putfirewallconfigop.js +1 -0
  49. package/esm/models/putfirewallconfigop.js.map +1 -1
  50. package/esm/models/removeprojectenvop.d.ts +9 -9
  51. package/esm/models/removeprojectenvop.js +3 -3
  52. package/esm/models/removeprojectenvop.js.map +1 -1
  53. package/esm/models/team.d.ts +13 -10
  54. package/esm/models/team.d.ts.map +1 -1
  55. package/esm/models/team.js +6 -5
  56. package/esm/models/team.js.map +1 -1
  57. package/esm/models/updateprojectdatacacheop.d.ts +41 -593
  58. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  59. package/esm/models/updateprojectdatacacheop.js +43 -561
  60. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  61. package/esm/models/updateprojectop.d.ts +33 -585
  62. package/esm/models/updateprojectop.d.ts.map +1 -1
  63. package/esm/models/updateprojectop.js +31 -530
  64. package/esm/models/updateprojectop.js.map +1 -1
  65. package/esm/models/userevent.d.ts +154 -124
  66. package/esm/models/userevent.d.ts.map +1 -1
  67. package/esm/models/userevent.js +166 -135
  68. package/esm/models/userevent.js.map +1 -1
  69. package/examples/package-lock.json +1 -1
  70. package/jsr.json +1 -1
  71. package/package.json +1 -1
  72. package/src/__tests__/teams.test.ts +2 -2
  73. package/src/funcs/domainsBuyDomain.ts +2 -2
  74. package/src/funcs/domainsPatchDomain.ts +2 -2
  75. package/src/lib/config.ts +3 -3
  76. package/src/mcp-server/mcp-server.ts +1 -1
  77. package/src/mcp-server/server.ts +1 -1
  78. package/src/models/canceldeploymentop.ts +78 -104
  79. package/src/models/createdeploymentop.ts +332 -335
  80. package/src/models/createprojectenvop.ts +2 -2
  81. package/src/models/createprojectop.ts +448 -1472
  82. package/src/models/editprojectenvop.ts +1 -1
  83. package/src/models/filterprojectenvsop.ts +3 -3
  84. package/src/models/getdeploymentop.ts +214 -216
  85. package/src/models/getfirewallconfigop.ts +1 -0
  86. package/src/models/getprojectsop.ts +202 -1207
  87. package/src/models/putfirewallconfigop.ts +1 -0
  88. package/src/models/removeprojectenvop.ts +3 -3
  89. package/src/models/team.ts +13 -12
  90. package/src/models/updateprojectdatacacheop.ts +171 -1168
  91. package/src/models/updateprojectop.ts +197 -1221
  92. package/src/models/userevent.ts +309 -236
  93. package/vercel-spec.json +429 -1834
@@ -1403,6 +1403,7 @@ export type Permissions = {
1403
1403
  observabilityFunnel?: Array<ACLAction> | undefined;
1404
1404
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1405
1405
  vercelAppInstallation?: Array<ACLAction> | undefined;
1406
+ vercelAppInstallationRequest?: Array<ACLAction> | undefined;
1406
1407
  paymentMethod?: Array<ACLAction> | undefined;
1407
1408
  permissions?: Array<ACLAction> | undefined;
1408
1409
  postgres?: Array<ACLAction> | undefined;
@@ -1673,200 +1674,46 @@ export type UpdateProjectDataCacheWebAnalytics = {
1673
1674
  hasData?: boolean | undefined;
1674
1675
  };
1675
1676
 
1676
- export type Src2 = {
1677
- re?: string | undefined;
1678
- eq?: string | undefined;
1679
- neq?: string | undefined;
1680
- inc?: Array<string> | undefined;
1681
- ninc?: Array<string> | undefined;
1682
- pre?: string | undefined;
1683
- suf?: string | undefined;
1684
- gt?: number | undefined;
1685
- gte?: number | undefined;
1686
- lt?: number | undefined;
1687
- lte?: number | undefined;
1688
- };
1689
-
1690
- export type Src = Src2 | string;
1691
-
1692
- export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType =
1693
- {
1694
- Path: "path",
1695
- Host: "host",
1696
- Method: "method",
1697
- Header: "header",
1698
- Cookie: "cookie",
1699
- Query: "query",
1700
- IpAddress: "ip_address",
1701
- Protocol: "protocol",
1702
- Scheme: "scheme",
1703
- Environment: "environment",
1704
- Region: "region",
1705
- InitialRequestPath: "initial_request_path",
1706
- } as const;
1707
- export type UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType =
1708
- ClosedEnum<
1709
- typeof UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType
1710
- >;
1711
-
1712
- export type UpdateProjectDataCacheValueProjects2 = {
1713
- re?: string | undefined;
1714
- eq?: string | undefined;
1715
- neq?: string | undefined;
1716
- inc?: Array<string> | undefined;
1717
- ninc?: Array<string> | undefined;
1718
- pre?: string | undefined;
1719
- suf?: string | undefined;
1720
- gt?: number | undefined;
1721
- gte?: number | undefined;
1722
- lt?: number | undefined;
1723
- lte?: number | undefined;
1724
- };
1725
-
1726
- export type UpdateProjectDataCacheProjectsValue =
1727
- | UpdateProjectDataCacheValueProjects2
1728
- | string;
1729
-
1730
- export type Has = {
1731
- type:
1732
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType;
1733
- key?: string | undefined;
1734
- value?: UpdateProjectDataCacheValueProjects2 | string | undefined;
1735
- };
1736
-
1737
- export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
1738
- {
1739
- Path: "path",
1740
- Host: "host",
1741
- Method: "method",
1742
- Header: "header",
1743
- Cookie: "cookie",
1744
- Query: "query",
1745
- IpAddress: "ip_address",
1746
- Protocol: "protocol",
1747
- Scheme: "scheme",
1748
- Environment: "environment",
1749
- Region: "region",
1750
- InitialRequestPath: "initial_request_path",
1751
- } as const;
1752
- export type UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
1753
- ClosedEnum<
1754
- typeof UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType
1755
- >;
1756
-
1757
- export type UpdateProjectDataCacheValue2 = {
1758
- re?: string | undefined;
1759
- eq?: string | undefined;
1760
- neq?: string | undefined;
1761
- inc?: Array<string> | undefined;
1762
- ninc?: Array<string> | undefined;
1763
- pre?: string | undefined;
1764
- suf?: string | undefined;
1765
- gt?: number | undefined;
1766
- gte?: number | undefined;
1767
- lt?: number | undefined;
1768
- lte?: number | undefined;
1769
- };
1770
-
1771
- export type UpdateProjectDataCacheValue = UpdateProjectDataCacheValue2 | string;
1772
-
1773
- export type Missing = {
1774
- type:
1775
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType;
1776
- key?: string | undefined;
1777
- value?: UpdateProjectDataCacheValue2 | string | undefined;
1778
- };
1779
-
1780
- export const Handle = {
1781
- Init: "init",
1782
- Finalize: "finalize",
1783
- } as const;
1784
- export type Handle = ClosedEnum<typeof Handle>;
1785
-
1786
- export const UpdateProjectDataCacheProjectsResponse200Action = {
1787
- Deny: "deny",
1788
- Challenge: "challenge",
1677
+ export const UpdateProjectDataCacheProjectsResponseAction = {
1789
1678
  Log: "log",
1790
- Bypass: "bypass",
1791
- RateLimit: "rate_limit",
1792
- Redirect: "redirect",
1793
- } as const;
1794
- export type UpdateProjectDataCacheProjectsResponse200Action = ClosedEnum<
1795
- typeof UpdateProjectDataCacheProjectsResponse200Action
1796
- >;
1797
-
1798
- export const UpdateProjectDataCacheAlgo = {
1799
- FixedWindow: "fixed_window",
1800
- TokenBucket: "token_bucket",
1679
+ Challenge: "challenge",
1680
+ Deny: "deny",
1801
1681
  } as const;
1802
- export type UpdateProjectDataCacheAlgo = ClosedEnum<
1803
- typeof UpdateProjectDataCacheAlgo
1682
+ export type UpdateProjectDataCacheProjectsResponseAction = ClosedEnum<
1683
+ typeof UpdateProjectDataCacheProjectsResponseAction
1804
1684
  >;
1805
1685
 
1806
- export type Erl = {
1807
- algo: UpdateProjectDataCacheAlgo;
1808
- window: number;
1809
- limit: number;
1810
- keys: Array<string>;
1811
- };
1812
-
1813
- export type UpdateProjectDataCacheMitigate = {
1814
- action: UpdateProjectDataCacheProjectsResponse200Action;
1815
- ruleId: string;
1816
- ttl?: number | undefined;
1817
- erl?: Erl | undefined;
1818
- };
1819
-
1820
- export type FirewallRoutes = {
1821
- src?: Src2 | string | undefined;
1822
- has?: Array<Has> | undefined;
1823
- missing?: Array<Missing> | undefined;
1824
- dest?: string | undefined;
1825
- status?: number | undefined;
1826
- handle?: Handle | undefined;
1827
- mitigate?: UpdateProjectDataCacheMitigate | undefined;
1686
+ export type BotFilter = {
1687
+ active: boolean;
1688
+ action?: UpdateProjectDataCacheProjectsResponseAction | undefined;
1828
1689
  };
1829
1690
 
1830
1691
  export const UpdateProjectDataCacheAction = {
1831
- Deny: "deny",
1832
- Challenge: "challenge",
1833
1692
  Log: "log",
1693
+ Challenge: "challenge",
1694
+ Deny: "deny",
1834
1695
  } as const;
1835
1696
  export type UpdateProjectDataCacheAction = ClosedEnum<
1836
1697
  typeof UpdateProjectDataCacheAction
1837
1698
  >;
1838
1699
 
1839
- export type BotFilter = {
1700
+ export type UpdateProjectDataCacheAiBots = {
1840
1701
  active: boolean;
1841
1702
  action?: UpdateProjectDataCacheAction | undefined;
1842
1703
  };
1843
1704
 
1844
1705
  export const UpdateProjectDataCacheProjectsAction = {
1845
- Deny: "deny",
1846
- Challenge: "challenge",
1847
1706
  Log: "log",
1707
+ Challenge: "challenge",
1708
+ Deny: "deny",
1848
1709
  } as const;
1849
1710
  export type UpdateProjectDataCacheProjectsAction = ClosedEnum<
1850
1711
  typeof UpdateProjectDataCacheProjectsAction
1851
1712
  >;
1852
1713
 
1853
- export type UpdateProjectDataCacheAiBots = {
1854
- active: boolean;
1855
- action?: UpdateProjectDataCacheProjectsAction | undefined;
1856
- };
1857
-
1858
- export const UpdateProjectDataCacheProjectsResponseAction = {
1859
- Deny: "deny",
1860
- Challenge: "challenge",
1861
- Log: "log",
1862
- } as const;
1863
- export type UpdateProjectDataCacheProjectsResponseAction = ClosedEnum<
1864
- typeof UpdateProjectDataCacheProjectsResponseAction
1865
- >;
1866
-
1867
1714
  export type UpdateProjectDataCacheOwasp = {
1868
1715
  active: boolean;
1869
- action?: UpdateProjectDataCacheProjectsResponseAction | undefined;
1716
+ action?: UpdateProjectDataCacheProjectsAction | undefined;
1870
1717
  };
1871
1718
 
1872
1719
  export type UpdateProjectDataCacheManagedRules = {
@@ -1882,7 +1729,6 @@ export type UpdateProjectDataCacheSecurity = {
1882
1729
  firewallUpdatedAt?: number | undefined;
1883
1730
  attackModeActiveUntil?: number | null | undefined;
1884
1731
  firewallConfigVersion?: number | undefined;
1885
- firewallRoutes?: Array<FirewallRoutes> | undefined;
1886
1732
  firewallSeawallEnabled?: boolean | undefined;
1887
1733
  ja3Enabled?: boolean | undefined;
1888
1734
  ja4Enabled?: boolean | undefined;
@@ -8336,6 +8182,7 @@ export const Permissions$inboundSchema: z.ZodType<
8336
8182
  observabilityFunnel: z.array(ACLAction$inboundSchema).optional(),
8337
8183
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
8338
8184
  vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
8185
+ vercelAppInstallationRequest: z.array(ACLAction$inboundSchema).optional(),
8339
8186
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
8340
8187
  permissions: z.array(ACLAction$inboundSchema).optional(),
8341
8188
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -8558,6 +8405,7 @@ export type Permissions$Outbound = {
8558
8405
  observabilityFunnel?: Array<string> | undefined;
8559
8406
  openTelemetryEndpoint?: Array<string> | undefined;
8560
8407
  vercelAppInstallation?: Array<string> | undefined;
8408
+ vercelAppInstallationRequest?: Array<string> | undefined;
8561
8409
  paymentMethod?: Array<string> | undefined;
8562
8410
  permissions?: Array<string> | undefined;
8563
8411
  postgres?: Array<string> | undefined;
@@ -8781,6 +8629,7 @@ export const Permissions$outboundSchema: z.ZodType<
8781
8629
  observabilityFunnel: z.array(ACLAction$outboundSchema).optional(),
8782
8630
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
8783
8631
  vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
8632
+ vercelAppInstallationRequest: z.array(ACLAction$outboundSchema).optional(),
8784
8633
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
8785
8634
  permissions: z.array(ACLAction$outboundSchema).optional(),
8786
8635
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -9829,1099 +9678,258 @@ export function updateProjectDataCacheWebAnalyticsFromJSON(
9829
9678
  }
9830
9679
 
9831
9680
  /** @internal */
9832
- export const Src2$inboundSchema: z.ZodType<Src2, z.ZodTypeDef, unknown> = z
9833
- .object({
9834
- re: z.string().optional(),
9835
- eq: z.string().optional(),
9836
- neq: z.string().optional(),
9837
- inc: z.array(z.string()).optional(),
9838
- ninc: z.array(z.string()).optional(),
9839
- pre: z.string().optional(),
9840
- suf: z.string().optional(),
9841
- gt: z.number().optional(),
9842
- gte: z.number().optional(),
9843
- lt: z.number().optional(),
9844
- lte: z.number().optional(),
9845
- });
9846
-
9847
- /** @internal */
9848
- export type Src2$Outbound = {
9849
- re?: string | undefined;
9850
- eq?: string | undefined;
9851
- neq?: string | undefined;
9852
- inc?: Array<string> | undefined;
9853
- ninc?: Array<string> | undefined;
9854
- pre?: string | undefined;
9855
- suf?: string | undefined;
9856
- gt?: number | undefined;
9857
- gte?: number | undefined;
9858
- lt?: number | undefined;
9859
- lte?: number | undefined;
9860
- };
9681
+ export const UpdateProjectDataCacheProjectsResponseAction$inboundSchema:
9682
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponseAction> = z
9683
+ .nativeEnum(UpdateProjectDataCacheProjectsResponseAction);
9861
9684
 
9862
9685
  /** @internal */
9863
- export const Src2$outboundSchema: z.ZodType<Src2$Outbound, z.ZodTypeDef, Src2> =
9864
- z.object({
9865
- re: z.string().optional(),
9866
- eq: z.string().optional(),
9867
- neq: z.string().optional(),
9868
- inc: z.array(z.string()).optional(),
9869
- ninc: z.array(z.string()).optional(),
9870
- pre: z.string().optional(),
9871
- suf: z.string().optional(),
9872
- gt: z.number().optional(),
9873
- gte: z.number().optional(),
9874
- lt: z.number().optional(),
9875
- lte: z.number().optional(),
9876
- });
9686
+ export const UpdateProjectDataCacheProjectsResponseAction$outboundSchema:
9687
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponseAction> =
9688
+ UpdateProjectDataCacheProjectsResponseAction$inboundSchema;
9877
9689
 
9878
9690
  /**
9879
9691
  * @internal
9880
9692
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9881
9693
  */
9882
- export namespace Src2$ {
9883
- /** @deprecated use `Src2$inboundSchema` instead. */
9884
- export const inboundSchema = Src2$inboundSchema;
9885
- /** @deprecated use `Src2$outboundSchema` instead. */
9886
- export const outboundSchema = Src2$outboundSchema;
9887
- /** @deprecated use `Src2$Outbound` instead. */
9888
- export type Outbound = Src2$Outbound;
9889
- }
9890
-
9891
- export function src2ToJSON(src2: Src2): string {
9892
- return JSON.stringify(Src2$outboundSchema.parse(src2));
9893
- }
9894
-
9895
- export function src2FromJSON(
9896
- jsonString: string,
9897
- ): SafeParseResult<Src2, SDKValidationError> {
9898
- return safeParse(
9899
- jsonString,
9900
- (x) => Src2$inboundSchema.parse(JSON.parse(x)),
9901
- `Failed to parse 'Src2' from JSON`,
9902
- );
9694
+ export namespace UpdateProjectDataCacheProjectsResponseAction$ {
9695
+ /** @deprecated use `UpdateProjectDataCacheProjectsResponseAction$inboundSchema` instead. */
9696
+ export const inboundSchema =
9697
+ UpdateProjectDataCacheProjectsResponseAction$inboundSchema;
9698
+ /** @deprecated use `UpdateProjectDataCacheProjectsResponseAction$outboundSchema` instead. */
9699
+ export const outboundSchema =
9700
+ UpdateProjectDataCacheProjectsResponseAction$outboundSchema;
9903
9701
  }
9904
9702
 
9905
9703
  /** @internal */
9906
- export const Src$inboundSchema: z.ZodType<Src, z.ZodTypeDef, unknown> = z.union(
9907
- [z.lazy(() => Src2$inboundSchema), z.string()],
9908
- );
9704
+ export const BotFilter$inboundSchema: z.ZodType<
9705
+ BotFilter,
9706
+ z.ZodTypeDef,
9707
+ unknown
9708
+ > = z.object({
9709
+ active: z.boolean(),
9710
+ action: UpdateProjectDataCacheProjectsResponseAction$inboundSchema.optional(),
9711
+ });
9909
9712
 
9910
9713
  /** @internal */
9911
- export type Src$Outbound = Src2$Outbound | string;
9714
+ export type BotFilter$Outbound = {
9715
+ active: boolean;
9716
+ action?: string | undefined;
9717
+ };
9912
9718
 
9913
9719
  /** @internal */
9914
- export const Src$outboundSchema: z.ZodType<Src$Outbound, z.ZodTypeDef, Src> = z
9915
- .union([z.lazy(() => Src2$outboundSchema), z.string()]);
9720
+ export const BotFilter$outboundSchema: z.ZodType<
9721
+ BotFilter$Outbound,
9722
+ z.ZodTypeDef,
9723
+ BotFilter
9724
+ > = z.object({
9725
+ active: z.boolean(),
9726
+ action: UpdateProjectDataCacheProjectsResponseAction$outboundSchema
9727
+ .optional(),
9728
+ });
9916
9729
 
9917
9730
  /**
9918
9731
  * @internal
9919
9732
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9920
9733
  */
9921
- export namespace Src$ {
9922
- /** @deprecated use `Src$inboundSchema` instead. */
9923
- export const inboundSchema = Src$inboundSchema;
9924
- /** @deprecated use `Src$outboundSchema` instead. */
9925
- export const outboundSchema = Src$outboundSchema;
9926
- /** @deprecated use `Src$Outbound` instead. */
9927
- export type Outbound = Src$Outbound;
9734
+ export namespace BotFilter$ {
9735
+ /** @deprecated use `BotFilter$inboundSchema` instead. */
9736
+ export const inboundSchema = BotFilter$inboundSchema;
9737
+ /** @deprecated use `BotFilter$outboundSchema` instead. */
9738
+ export const outboundSchema = BotFilter$outboundSchema;
9739
+ /** @deprecated use `BotFilter$Outbound` instead. */
9740
+ export type Outbound = BotFilter$Outbound;
9928
9741
  }
9929
9742
 
9930
- export function srcToJSON(src: Src): string {
9931
- return JSON.stringify(Src$outboundSchema.parse(src));
9743
+ export function botFilterToJSON(botFilter: BotFilter): string {
9744
+ return JSON.stringify(BotFilter$outboundSchema.parse(botFilter));
9932
9745
  }
9933
9746
 
9934
- export function srcFromJSON(
9747
+ export function botFilterFromJSON(
9935
9748
  jsonString: string,
9936
- ): SafeParseResult<Src, SDKValidationError> {
9749
+ ): SafeParseResult<BotFilter, SDKValidationError> {
9937
9750
  return safeParse(
9938
9751
  jsonString,
9939
- (x) => Src$inboundSchema.parse(JSON.parse(x)),
9940
- `Failed to parse 'Src' from JSON`,
9752
+ (x) => BotFilter$inboundSchema.parse(JSON.parse(x)),
9753
+ `Failed to parse 'BotFilter' from JSON`,
9941
9754
  );
9942
9755
  }
9943
9756
 
9944
9757
  /** @internal */
9945
- export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema:
9946
- z.ZodNativeEnum<
9947
- typeof UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType
9948
- > = z.nativeEnum(
9949
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType,
9950
- );
9758
+ export const UpdateProjectDataCacheAction$inboundSchema: z.ZodNativeEnum<
9759
+ typeof UpdateProjectDataCacheAction
9760
+ > = z.nativeEnum(UpdateProjectDataCacheAction);
9951
9761
 
9952
9762
  /** @internal */
9953
- export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema:
9954
- z.ZodNativeEnum<
9955
- typeof UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType
9956
- > =
9957
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema;
9763
+ export const UpdateProjectDataCacheAction$outboundSchema: z.ZodNativeEnum<
9764
+ typeof UpdateProjectDataCacheAction
9765
+ > = UpdateProjectDataCacheAction$inboundSchema;
9958
9766
 
9959
9767
  /**
9960
9768
  * @internal
9961
9769
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9962
9770
  */
9963
- export namespace UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$ {
9964
- /** @deprecated use `UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema` instead. */
9965
- export const inboundSchema =
9966
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema;
9967
- /** @deprecated use `UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema` instead. */
9968
- export const outboundSchema =
9969
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema;
9771
+ export namespace UpdateProjectDataCacheAction$ {
9772
+ /** @deprecated use `UpdateProjectDataCacheAction$inboundSchema` instead. */
9773
+ export const inboundSchema = UpdateProjectDataCacheAction$inboundSchema;
9774
+ /** @deprecated use `UpdateProjectDataCacheAction$outboundSchema` instead. */
9775
+ export const outboundSchema = UpdateProjectDataCacheAction$outboundSchema;
9970
9776
  }
9971
9777
 
9972
9778
  /** @internal */
9973
- export const UpdateProjectDataCacheValueProjects2$inboundSchema: z.ZodType<
9974
- UpdateProjectDataCacheValueProjects2,
9779
+ export const UpdateProjectDataCacheAiBots$inboundSchema: z.ZodType<
9780
+ UpdateProjectDataCacheAiBots,
9975
9781
  z.ZodTypeDef,
9976
9782
  unknown
9977
9783
  > = z.object({
9978
- re: z.string().optional(),
9979
- eq: z.string().optional(),
9980
- neq: z.string().optional(),
9981
- inc: z.array(z.string()).optional(),
9982
- ninc: z.array(z.string()).optional(),
9983
- pre: z.string().optional(),
9984
- suf: z.string().optional(),
9985
- gt: z.number().optional(),
9986
- gte: z.number().optional(),
9987
- lt: z.number().optional(),
9988
- lte: z.number().optional(),
9784
+ active: z.boolean(),
9785
+ action: UpdateProjectDataCacheAction$inboundSchema.optional(),
9989
9786
  });
9990
9787
 
9991
9788
  /** @internal */
9992
- export type UpdateProjectDataCacheValueProjects2$Outbound = {
9993
- re?: string | undefined;
9994
- eq?: string | undefined;
9995
- neq?: string | undefined;
9996
- inc?: Array<string> | undefined;
9997
- ninc?: Array<string> | undefined;
9998
- pre?: string | undefined;
9999
- suf?: string | undefined;
10000
- gt?: number | undefined;
10001
- gte?: number | undefined;
10002
- lt?: number | undefined;
10003
- lte?: number | undefined;
9789
+ export type UpdateProjectDataCacheAiBots$Outbound = {
9790
+ active: boolean;
9791
+ action?: string | undefined;
10004
9792
  };
10005
9793
 
10006
9794
  /** @internal */
10007
- export const UpdateProjectDataCacheValueProjects2$outboundSchema: z.ZodType<
10008
- UpdateProjectDataCacheValueProjects2$Outbound,
9795
+ export const UpdateProjectDataCacheAiBots$outboundSchema: z.ZodType<
9796
+ UpdateProjectDataCacheAiBots$Outbound,
10009
9797
  z.ZodTypeDef,
10010
- UpdateProjectDataCacheValueProjects2
9798
+ UpdateProjectDataCacheAiBots
10011
9799
  > = z.object({
10012
- re: z.string().optional(),
10013
- eq: z.string().optional(),
10014
- neq: z.string().optional(),
10015
- inc: z.array(z.string()).optional(),
10016
- ninc: z.array(z.string()).optional(),
10017
- pre: z.string().optional(),
10018
- suf: z.string().optional(),
10019
- gt: z.number().optional(),
10020
- gte: z.number().optional(),
10021
- lt: z.number().optional(),
10022
- lte: z.number().optional(),
9800
+ active: z.boolean(),
9801
+ action: UpdateProjectDataCacheAction$outboundSchema.optional(),
10023
9802
  });
10024
9803
 
10025
9804
  /**
10026
9805
  * @internal
10027
9806
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10028
9807
  */
10029
- export namespace UpdateProjectDataCacheValueProjects2$ {
10030
- /** @deprecated use `UpdateProjectDataCacheValueProjects2$inboundSchema` instead. */
10031
- export const inboundSchema =
10032
- UpdateProjectDataCacheValueProjects2$inboundSchema;
10033
- /** @deprecated use `UpdateProjectDataCacheValueProjects2$outboundSchema` instead. */
10034
- export const outboundSchema =
10035
- UpdateProjectDataCacheValueProjects2$outboundSchema;
10036
- /** @deprecated use `UpdateProjectDataCacheValueProjects2$Outbound` instead. */
10037
- export type Outbound = UpdateProjectDataCacheValueProjects2$Outbound;
9808
+ export namespace UpdateProjectDataCacheAiBots$ {
9809
+ /** @deprecated use `UpdateProjectDataCacheAiBots$inboundSchema` instead. */
9810
+ export const inboundSchema = UpdateProjectDataCacheAiBots$inboundSchema;
9811
+ /** @deprecated use `UpdateProjectDataCacheAiBots$outboundSchema` instead. */
9812
+ export const outboundSchema = UpdateProjectDataCacheAiBots$outboundSchema;
9813
+ /** @deprecated use `UpdateProjectDataCacheAiBots$Outbound` instead. */
9814
+ export type Outbound = UpdateProjectDataCacheAiBots$Outbound;
10038
9815
  }
10039
9816
 
10040
- export function updateProjectDataCacheValueProjects2ToJSON(
10041
- updateProjectDataCacheValueProjects2: UpdateProjectDataCacheValueProjects2,
9817
+ export function updateProjectDataCacheAiBotsToJSON(
9818
+ updateProjectDataCacheAiBots: UpdateProjectDataCacheAiBots,
10042
9819
  ): string {
10043
9820
  return JSON.stringify(
10044
- UpdateProjectDataCacheValueProjects2$outboundSchema.parse(
10045
- updateProjectDataCacheValueProjects2,
9821
+ UpdateProjectDataCacheAiBots$outboundSchema.parse(
9822
+ updateProjectDataCacheAiBots,
10046
9823
  ),
10047
9824
  );
10048
9825
  }
10049
9826
 
10050
- export function updateProjectDataCacheValueProjects2FromJSON(
9827
+ export function updateProjectDataCacheAiBotsFromJSON(
10051
9828
  jsonString: string,
10052
- ): SafeParseResult<UpdateProjectDataCacheValueProjects2, SDKValidationError> {
9829
+ ): SafeParseResult<UpdateProjectDataCacheAiBots, SDKValidationError> {
10053
9830
  return safeParse(
10054
9831
  jsonString,
10055
- (x) =>
10056
- UpdateProjectDataCacheValueProjects2$inboundSchema.parse(JSON.parse(x)),
10057
- `Failed to parse 'UpdateProjectDataCacheValueProjects2' from JSON`,
9832
+ (x) => UpdateProjectDataCacheAiBots$inboundSchema.parse(JSON.parse(x)),
9833
+ `Failed to parse 'UpdateProjectDataCacheAiBots' from JSON`,
9834
+ );
9835
+ }
9836
+
9837
+ /** @internal */
9838
+ export const UpdateProjectDataCacheProjectsAction$inboundSchema:
9839
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsAction> = z.nativeEnum(
9840
+ UpdateProjectDataCacheProjectsAction,
10058
9841
  );
9842
+
9843
+ /** @internal */
9844
+ export const UpdateProjectDataCacheProjectsAction$outboundSchema:
9845
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsAction> =
9846
+ UpdateProjectDataCacheProjectsAction$inboundSchema;
9847
+
9848
+ /**
9849
+ * @internal
9850
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9851
+ */
9852
+ export namespace UpdateProjectDataCacheProjectsAction$ {
9853
+ /** @deprecated use `UpdateProjectDataCacheProjectsAction$inboundSchema` instead. */
9854
+ export const inboundSchema =
9855
+ UpdateProjectDataCacheProjectsAction$inboundSchema;
9856
+ /** @deprecated use `UpdateProjectDataCacheProjectsAction$outboundSchema` instead. */
9857
+ export const outboundSchema =
9858
+ UpdateProjectDataCacheProjectsAction$outboundSchema;
10059
9859
  }
10060
9860
 
10061
9861
  /** @internal */
10062
- export const UpdateProjectDataCacheProjectsValue$inboundSchema: z.ZodType<
10063
- UpdateProjectDataCacheProjectsValue,
9862
+ export const UpdateProjectDataCacheOwasp$inboundSchema: z.ZodType<
9863
+ UpdateProjectDataCacheOwasp,
10064
9864
  z.ZodTypeDef,
10065
9865
  unknown
10066
- > = z.union([
10067
- z.lazy(() => UpdateProjectDataCacheValueProjects2$inboundSchema),
10068
- z.string(),
10069
- ]);
9866
+ > = z.object({
9867
+ active: z.boolean(),
9868
+ action: UpdateProjectDataCacheProjectsAction$inboundSchema.optional(),
9869
+ });
10070
9870
 
10071
9871
  /** @internal */
10072
- export type UpdateProjectDataCacheProjectsValue$Outbound =
10073
- | UpdateProjectDataCacheValueProjects2$Outbound
10074
- | string;
9872
+ export type UpdateProjectDataCacheOwasp$Outbound = {
9873
+ active: boolean;
9874
+ action?: string | undefined;
9875
+ };
10075
9876
 
10076
9877
  /** @internal */
10077
- export const UpdateProjectDataCacheProjectsValue$outboundSchema: z.ZodType<
10078
- UpdateProjectDataCacheProjectsValue$Outbound,
9878
+ export const UpdateProjectDataCacheOwasp$outboundSchema: z.ZodType<
9879
+ UpdateProjectDataCacheOwasp$Outbound,
10079
9880
  z.ZodTypeDef,
10080
- UpdateProjectDataCacheProjectsValue
10081
- > = z.union([
10082
- z.lazy(() => UpdateProjectDataCacheValueProjects2$outboundSchema),
10083
- z.string(),
10084
- ]);
9881
+ UpdateProjectDataCacheOwasp
9882
+ > = z.object({
9883
+ active: z.boolean(),
9884
+ action: UpdateProjectDataCacheProjectsAction$outboundSchema.optional(),
9885
+ });
10085
9886
 
10086
9887
  /**
10087
9888
  * @internal
10088
9889
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10089
9890
  */
10090
- export namespace UpdateProjectDataCacheProjectsValue$ {
10091
- /** @deprecated use `UpdateProjectDataCacheProjectsValue$inboundSchema` instead. */
10092
- export const inboundSchema =
10093
- UpdateProjectDataCacheProjectsValue$inboundSchema;
10094
- /** @deprecated use `UpdateProjectDataCacheProjectsValue$outboundSchema` instead. */
10095
- export const outboundSchema =
10096
- UpdateProjectDataCacheProjectsValue$outboundSchema;
10097
- /** @deprecated use `UpdateProjectDataCacheProjectsValue$Outbound` instead. */
10098
- export type Outbound = UpdateProjectDataCacheProjectsValue$Outbound;
9891
+ export namespace UpdateProjectDataCacheOwasp$ {
9892
+ /** @deprecated use `UpdateProjectDataCacheOwasp$inboundSchema` instead. */
9893
+ export const inboundSchema = UpdateProjectDataCacheOwasp$inboundSchema;
9894
+ /** @deprecated use `UpdateProjectDataCacheOwasp$outboundSchema` instead. */
9895
+ export const outboundSchema = UpdateProjectDataCacheOwasp$outboundSchema;
9896
+ /** @deprecated use `UpdateProjectDataCacheOwasp$Outbound` instead. */
9897
+ export type Outbound = UpdateProjectDataCacheOwasp$Outbound;
10099
9898
  }
10100
9899
 
10101
- export function updateProjectDataCacheProjectsValueToJSON(
10102
- updateProjectDataCacheProjectsValue: UpdateProjectDataCacheProjectsValue,
9900
+ export function updateProjectDataCacheOwaspToJSON(
9901
+ updateProjectDataCacheOwasp: UpdateProjectDataCacheOwasp,
10103
9902
  ): string {
10104
9903
  return JSON.stringify(
10105
- UpdateProjectDataCacheProjectsValue$outboundSchema.parse(
10106
- updateProjectDataCacheProjectsValue,
9904
+ UpdateProjectDataCacheOwasp$outboundSchema.parse(
9905
+ updateProjectDataCacheOwasp,
10107
9906
  ),
10108
9907
  );
10109
9908
  }
10110
9909
 
10111
- export function updateProjectDataCacheProjectsValueFromJSON(
9910
+ export function updateProjectDataCacheOwaspFromJSON(
10112
9911
  jsonString: string,
10113
- ): SafeParseResult<UpdateProjectDataCacheProjectsValue, SDKValidationError> {
9912
+ ): SafeParseResult<UpdateProjectDataCacheOwasp, SDKValidationError> {
10114
9913
  return safeParse(
10115
9914
  jsonString,
10116
- (x) =>
10117
- UpdateProjectDataCacheProjectsValue$inboundSchema.parse(JSON.parse(x)),
10118
- `Failed to parse 'UpdateProjectDataCacheProjectsValue' from JSON`,
9915
+ (x) => UpdateProjectDataCacheOwasp$inboundSchema.parse(JSON.parse(x)),
9916
+ `Failed to parse 'UpdateProjectDataCacheOwasp' from JSON`,
10119
9917
  );
10120
9918
  }
10121
9919
 
10122
9920
  /** @internal */
10123
- export const Has$inboundSchema: z.ZodType<Has, z.ZodTypeDef, unknown> = z
10124
- .object({
10125
- type:
10126
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema,
10127
- key: z.string().optional(),
10128
- value: z.union([
10129
- z.lazy(() => UpdateProjectDataCacheValueProjects2$inboundSchema),
10130
- z.string(),
10131
- ]).optional(),
10132
- });
10133
-
10134
- /** @internal */
10135
- export type Has$Outbound = {
10136
- type: string;
10137
- key?: string | undefined;
10138
- value?: UpdateProjectDataCacheValueProjects2$Outbound | string | undefined;
10139
- };
10140
-
10141
- /** @internal */
10142
- export const Has$outboundSchema: z.ZodType<Has$Outbound, z.ZodTypeDef, Has> = z
10143
- .object({
10144
- type:
10145
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema,
10146
- key: z.string().optional(),
10147
- value: z.union([
10148
- z.lazy(() => UpdateProjectDataCacheValueProjects2$outboundSchema),
10149
- z.string(),
10150
- ]).optional(),
10151
- });
10152
-
10153
- /**
10154
- * @internal
10155
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10156
- */
10157
- export namespace Has$ {
10158
- /** @deprecated use `Has$inboundSchema` instead. */
10159
- export const inboundSchema = Has$inboundSchema;
10160
- /** @deprecated use `Has$outboundSchema` instead. */
10161
- export const outboundSchema = Has$outboundSchema;
10162
- /** @deprecated use `Has$Outbound` instead. */
10163
- export type Outbound = Has$Outbound;
10164
- }
10165
-
10166
- export function hasToJSON(has: Has): string {
10167
- return JSON.stringify(Has$outboundSchema.parse(has));
10168
- }
10169
-
10170
- export function hasFromJSON(
10171
- jsonString: string,
10172
- ): SafeParseResult<Has, SDKValidationError> {
10173
- return safeParse(
10174
- jsonString,
10175
- (x) => Has$inboundSchema.parse(JSON.parse(x)),
10176
- `Failed to parse 'Has' from JSON`,
10177
- );
10178
- }
10179
-
10180
- /** @internal */
10181
- export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema:
10182
- z.ZodNativeEnum<
10183
- typeof UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType
10184
- > = z.nativeEnum(
10185
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType,
10186
- );
10187
-
10188
- /** @internal */
10189
- export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema:
10190
- z.ZodNativeEnum<
10191
- typeof UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType
10192
- > =
10193
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema;
10194
-
10195
- /**
10196
- * @internal
10197
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10198
- */
10199
- export namespace UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$ {
10200
- /** @deprecated use `UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema` instead. */
10201
- export const inboundSchema =
10202
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema;
10203
- /** @deprecated use `UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema` instead. */
10204
- export const outboundSchema =
10205
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema;
10206
- }
10207
-
10208
- /** @internal */
10209
- export const UpdateProjectDataCacheValue2$inboundSchema: z.ZodType<
10210
- UpdateProjectDataCacheValue2,
10211
- z.ZodTypeDef,
10212
- unknown
10213
- > = z.object({
10214
- re: z.string().optional(),
10215
- eq: z.string().optional(),
10216
- neq: z.string().optional(),
10217
- inc: z.array(z.string()).optional(),
10218
- ninc: z.array(z.string()).optional(),
10219
- pre: z.string().optional(),
10220
- suf: z.string().optional(),
10221
- gt: z.number().optional(),
10222
- gte: z.number().optional(),
10223
- lt: z.number().optional(),
10224
- lte: z.number().optional(),
10225
- });
10226
-
10227
- /** @internal */
10228
- export type UpdateProjectDataCacheValue2$Outbound = {
10229
- re?: string | undefined;
10230
- eq?: string | undefined;
10231
- neq?: string | undefined;
10232
- inc?: Array<string> | undefined;
10233
- ninc?: Array<string> | undefined;
10234
- pre?: string | undefined;
10235
- suf?: string | undefined;
10236
- gt?: number | undefined;
10237
- gte?: number | undefined;
10238
- lt?: number | undefined;
10239
- lte?: number | undefined;
10240
- };
10241
-
10242
- /** @internal */
10243
- export const UpdateProjectDataCacheValue2$outboundSchema: z.ZodType<
10244
- UpdateProjectDataCacheValue2$Outbound,
10245
- z.ZodTypeDef,
10246
- UpdateProjectDataCacheValue2
10247
- > = z.object({
10248
- re: z.string().optional(),
10249
- eq: z.string().optional(),
10250
- neq: z.string().optional(),
10251
- inc: z.array(z.string()).optional(),
10252
- ninc: z.array(z.string()).optional(),
10253
- pre: z.string().optional(),
10254
- suf: z.string().optional(),
10255
- gt: z.number().optional(),
10256
- gte: z.number().optional(),
10257
- lt: z.number().optional(),
10258
- lte: z.number().optional(),
10259
- });
10260
-
10261
- /**
10262
- * @internal
10263
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10264
- */
10265
- export namespace UpdateProjectDataCacheValue2$ {
10266
- /** @deprecated use `UpdateProjectDataCacheValue2$inboundSchema` instead. */
10267
- export const inboundSchema = UpdateProjectDataCacheValue2$inboundSchema;
10268
- /** @deprecated use `UpdateProjectDataCacheValue2$outboundSchema` instead. */
10269
- export const outboundSchema = UpdateProjectDataCacheValue2$outboundSchema;
10270
- /** @deprecated use `UpdateProjectDataCacheValue2$Outbound` instead. */
10271
- export type Outbound = UpdateProjectDataCacheValue2$Outbound;
10272
- }
10273
-
10274
- export function updateProjectDataCacheValue2ToJSON(
10275
- updateProjectDataCacheValue2: UpdateProjectDataCacheValue2,
10276
- ): string {
10277
- return JSON.stringify(
10278
- UpdateProjectDataCacheValue2$outboundSchema.parse(
10279
- updateProjectDataCacheValue2,
10280
- ),
10281
- );
10282
- }
10283
-
10284
- export function updateProjectDataCacheValue2FromJSON(
10285
- jsonString: string,
10286
- ): SafeParseResult<UpdateProjectDataCacheValue2, SDKValidationError> {
10287
- return safeParse(
10288
- jsonString,
10289
- (x) => UpdateProjectDataCacheValue2$inboundSchema.parse(JSON.parse(x)),
10290
- `Failed to parse 'UpdateProjectDataCacheValue2' from JSON`,
10291
- );
10292
- }
10293
-
10294
- /** @internal */
10295
- export const UpdateProjectDataCacheValue$inboundSchema: z.ZodType<
10296
- UpdateProjectDataCacheValue,
10297
- z.ZodTypeDef,
10298
- unknown
10299
- > = z.union([
10300
- z.lazy(() => UpdateProjectDataCacheValue2$inboundSchema),
10301
- z.string(),
10302
- ]);
10303
-
10304
- /** @internal */
10305
- export type UpdateProjectDataCacheValue$Outbound =
10306
- | UpdateProjectDataCacheValue2$Outbound
10307
- | string;
10308
-
10309
- /** @internal */
10310
- export const UpdateProjectDataCacheValue$outboundSchema: z.ZodType<
10311
- UpdateProjectDataCacheValue$Outbound,
10312
- z.ZodTypeDef,
10313
- UpdateProjectDataCacheValue
10314
- > = z.union([
10315
- z.lazy(() => UpdateProjectDataCacheValue2$outboundSchema),
10316
- z.string(),
10317
- ]);
10318
-
10319
- /**
10320
- * @internal
10321
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10322
- */
10323
- export namespace UpdateProjectDataCacheValue$ {
10324
- /** @deprecated use `UpdateProjectDataCacheValue$inboundSchema` instead. */
10325
- export const inboundSchema = UpdateProjectDataCacheValue$inboundSchema;
10326
- /** @deprecated use `UpdateProjectDataCacheValue$outboundSchema` instead. */
10327
- export const outboundSchema = UpdateProjectDataCacheValue$outboundSchema;
10328
- /** @deprecated use `UpdateProjectDataCacheValue$Outbound` instead. */
10329
- export type Outbound = UpdateProjectDataCacheValue$Outbound;
10330
- }
10331
-
10332
- export function updateProjectDataCacheValueToJSON(
10333
- updateProjectDataCacheValue: UpdateProjectDataCacheValue,
10334
- ): string {
10335
- return JSON.stringify(
10336
- UpdateProjectDataCacheValue$outboundSchema.parse(
10337
- updateProjectDataCacheValue,
10338
- ),
10339
- );
10340
- }
10341
-
10342
- export function updateProjectDataCacheValueFromJSON(
10343
- jsonString: string,
10344
- ): SafeParseResult<UpdateProjectDataCacheValue, SDKValidationError> {
10345
- return safeParse(
10346
- jsonString,
10347
- (x) => UpdateProjectDataCacheValue$inboundSchema.parse(JSON.parse(x)),
10348
- `Failed to parse 'UpdateProjectDataCacheValue' from JSON`,
10349
- );
10350
- }
10351
-
10352
- /** @internal */
10353
- export const Missing$inboundSchema: z.ZodType<Missing, z.ZodTypeDef, unknown> =
10354
- z.object({
10355
- type:
10356
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema,
10357
- key: z.string().optional(),
10358
- value: z.union([
10359
- z.lazy(() => UpdateProjectDataCacheValue2$inboundSchema),
10360
- z.string(),
10361
- ]).optional(),
10362
- });
10363
-
10364
- /** @internal */
10365
- export type Missing$Outbound = {
10366
- type: string;
10367
- key?: string | undefined;
10368
- value?: UpdateProjectDataCacheValue2$Outbound | string | undefined;
10369
- };
10370
-
10371
- /** @internal */
10372
- export const Missing$outboundSchema: z.ZodType<
10373
- Missing$Outbound,
10374
- z.ZodTypeDef,
10375
- Missing
10376
- > = z.object({
10377
- type:
10378
- UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema,
10379
- key: z.string().optional(),
10380
- value: z.union([
10381
- z.lazy(() => UpdateProjectDataCacheValue2$outboundSchema),
10382
- z.string(),
10383
- ]).optional(),
10384
- });
10385
-
10386
- /**
10387
- * @internal
10388
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10389
- */
10390
- export namespace Missing$ {
10391
- /** @deprecated use `Missing$inboundSchema` instead. */
10392
- export const inboundSchema = Missing$inboundSchema;
10393
- /** @deprecated use `Missing$outboundSchema` instead. */
10394
- export const outboundSchema = Missing$outboundSchema;
10395
- /** @deprecated use `Missing$Outbound` instead. */
10396
- export type Outbound = Missing$Outbound;
10397
- }
10398
-
10399
- export function missingToJSON(missing: Missing): string {
10400
- return JSON.stringify(Missing$outboundSchema.parse(missing));
10401
- }
10402
-
10403
- export function missingFromJSON(
10404
- jsonString: string,
10405
- ): SafeParseResult<Missing, SDKValidationError> {
10406
- return safeParse(
10407
- jsonString,
10408
- (x) => Missing$inboundSchema.parse(JSON.parse(x)),
10409
- `Failed to parse 'Missing' from JSON`,
10410
- );
10411
- }
10412
-
10413
- /** @internal */
10414
- export const Handle$inboundSchema: z.ZodNativeEnum<typeof Handle> = z
10415
- .nativeEnum(Handle);
10416
-
10417
- /** @internal */
10418
- export const Handle$outboundSchema: z.ZodNativeEnum<typeof Handle> =
10419
- Handle$inboundSchema;
10420
-
10421
- /**
10422
- * @internal
10423
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10424
- */
10425
- export namespace Handle$ {
10426
- /** @deprecated use `Handle$inboundSchema` instead. */
10427
- export const inboundSchema = Handle$inboundSchema;
10428
- /** @deprecated use `Handle$outboundSchema` instead. */
10429
- export const outboundSchema = Handle$outboundSchema;
10430
- }
10431
-
10432
- /** @internal */
10433
- export const UpdateProjectDataCacheProjectsResponse200Action$inboundSchema:
10434
- z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponse200Action> = z
10435
- .nativeEnum(UpdateProjectDataCacheProjectsResponse200Action);
10436
-
10437
- /** @internal */
10438
- export const UpdateProjectDataCacheProjectsResponse200Action$outboundSchema:
10439
- z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponse200Action> =
10440
- UpdateProjectDataCacheProjectsResponse200Action$inboundSchema;
10441
-
10442
- /**
10443
- * @internal
10444
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10445
- */
10446
- export namespace UpdateProjectDataCacheProjectsResponse200Action$ {
10447
- /** @deprecated use `UpdateProjectDataCacheProjectsResponse200Action$inboundSchema` instead. */
10448
- export const inboundSchema =
10449
- UpdateProjectDataCacheProjectsResponse200Action$inboundSchema;
10450
- /** @deprecated use `UpdateProjectDataCacheProjectsResponse200Action$outboundSchema` instead. */
10451
- export const outboundSchema =
10452
- UpdateProjectDataCacheProjectsResponse200Action$outboundSchema;
10453
- }
10454
-
10455
- /** @internal */
10456
- export const UpdateProjectDataCacheAlgo$inboundSchema: z.ZodNativeEnum<
10457
- typeof UpdateProjectDataCacheAlgo
10458
- > = z.nativeEnum(UpdateProjectDataCacheAlgo);
10459
-
10460
- /** @internal */
10461
- export const UpdateProjectDataCacheAlgo$outboundSchema: z.ZodNativeEnum<
10462
- typeof UpdateProjectDataCacheAlgo
10463
- > = UpdateProjectDataCacheAlgo$inboundSchema;
10464
-
10465
- /**
10466
- * @internal
10467
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10468
- */
10469
- export namespace UpdateProjectDataCacheAlgo$ {
10470
- /** @deprecated use `UpdateProjectDataCacheAlgo$inboundSchema` instead. */
10471
- export const inboundSchema = UpdateProjectDataCacheAlgo$inboundSchema;
10472
- /** @deprecated use `UpdateProjectDataCacheAlgo$outboundSchema` instead. */
10473
- export const outboundSchema = UpdateProjectDataCacheAlgo$outboundSchema;
10474
- }
10475
-
10476
- /** @internal */
10477
- export const Erl$inboundSchema: z.ZodType<Erl, z.ZodTypeDef, unknown> = z
10478
- .object({
10479
- algo: UpdateProjectDataCacheAlgo$inboundSchema,
10480
- window: z.number(),
10481
- limit: z.number(),
10482
- keys: z.array(z.string()),
10483
- });
10484
-
10485
- /** @internal */
10486
- export type Erl$Outbound = {
10487
- algo: string;
10488
- window: number;
10489
- limit: number;
10490
- keys: Array<string>;
10491
- };
10492
-
10493
- /** @internal */
10494
- export const Erl$outboundSchema: z.ZodType<Erl$Outbound, z.ZodTypeDef, Erl> = z
10495
- .object({
10496
- algo: UpdateProjectDataCacheAlgo$outboundSchema,
10497
- window: z.number(),
10498
- limit: z.number(),
10499
- keys: z.array(z.string()),
10500
- });
10501
-
10502
- /**
10503
- * @internal
10504
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10505
- */
10506
- export namespace Erl$ {
10507
- /** @deprecated use `Erl$inboundSchema` instead. */
10508
- export const inboundSchema = Erl$inboundSchema;
10509
- /** @deprecated use `Erl$outboundSchema` instead. */
10510
- export const outboundSchema = Erl$outboundSchema;
10511
- /** @deprecated use `Erl$Outbound` instead. */
10512
- export type Outbound = Erl$Outbound;
10513
- }
10514
-
10515
- export function erlToJSON(erl: Erl): string {
10516
- return JSON.stringify(Erl$outboundSchema.parse(erl));
10517
- }
10518
-
10519
- export function erlFromJSON(
10520
- jsonString: string,
10521
- ): SafeParseResult<Erl, SDKValidationError> {
10522
- return safeParse(
10523
- jsonString,
10524
- (x) => Erl$inboundSchema.parse(JSON.parse(x)),
10525
- `Failed to parse 'Erl' from JSON`,
10526
- );
10527
- }
10528
-
10529
- /** @internal */
10530
- export const UpdateProjectDataCacheMitigate$inboundSchema: z.ZodType<
10531
- UpdateProjectDataCacheMitigate,
10532
- z.ZodTypeDef,
10533
- unknown
10534
- > = z.object({
10535
- action: UpdateProjectDataCacheProjectsResponse200Action$inboundSchema,
10536
- rule_id: z.string(),
10537
- ttl: z.number().optional(),
10538
- erl: z.lazy(() => Erl$inboundSchema).optional(),
10539
- }).transform((v) => {
10540
- return remap$(v, {
10541
- "rule_id": "ruleId",
10542
- });
10543
- });
10544
-
10545
- /** @internal */
10546
- export type UpdateProjectDataCacheMitigate$Outbound = {
10547
- action: string;
10548
- rule_id: string;
10549
- ttl?: number | undefined;
10550
- erl?: Erl$Outbound | undefined;
10551
- };
10552
-
10553
- /** @internal */
10554
- export const UpdateProjectDataCacheMitigate$outboundSchema: z.ZodType<
10555
- UpdateProjectDataCacheMitigate$Outbound,
10556
- z.ZodTypeDef,
10557
- UpdateProjectDataCacheMitigate
10558
- > = z.object({
10559
- action: UpdateProjectDataCacheProjectsResponse200Action$outboundSchema,
10560
- ruleId: z.string(),
10561
- ttl: z.number().optional(),
10562
- erl: z.lazy(() => Erl$outboundSchema).optional(),
10563
- }).transform((v) => {
10564
- return remap$(v, {
10565
- ruleId: "rule_id",
10566
- });
10567
- });
10568
-
10569
- /**
10570
- * @internal
10571
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10572
- */
10573
- export namespace UpdateProjectDataCacheMitigate$ {
10574
- /** @deprecated use `UpdateProjectDataCacheMitigate$inboundSchema` instead. */
10575
- export const inboundSchema = UpdateProjectDataCacheMitigate$inboundSchema;
10576
- /** @deprecated use `UpdateProjectDataCacheMitigate$outboundSchema` instead. */
10577
- export const outboundSchema = UpdateProjectDataCacheMitigate$outboundSchema;
10578
- /** @deprecated use `UpdateProjectDataCacheMitigate$Outbound` instead. */
10579
- export type Outbound = UpdateProjectDataCacheMitigate$Outbound;
10580
- }
10581
-
10582
- export function updateProjectDataCacheMitigateToJSON(
10583
- updateProjectDataCacheMitigate: UpdateProjectDataCacheMitigate,
10584
- ): string {
10585
- return JSON.stringify(
10586
- UpdateProjectDataCacheMitigate$outboundSchema.parse(
10587
- updateProjectDataCacheMitigate,
10588
- ),
10589
- );
10590
- }
10591
-
10592
- export function updateProjectDataCacheMitigateFromJSON(
10593
- jsonString: string,
10594
- ): SafeParseResult<UpdateProjectDataCacheMitigate, SDKValidationError> {
10595
- return safeParse(
10596
- jsonString,
10597
- (x) => UpdateProjectDataCacheMitigate$inboundSchema.parse(JSON.parse(x)),
10598
- `Failed to parse 'UpdateProjectDataCacheMitigate' from JSON`,
10599
- );
10600
- }
10601
-
10602
- /** @internal */
10603
- export const FirewallRoutes$inboundSchema: z.ZodType<
10604
- FirewallRoutes,
10605
- z.ZodTypeDef,
10606
- unknown
10607
- > = z.object({
10608
- src: z.union([z.lazy(() => Src2$inboundSchema), z.string()]).optional(),
10609
- has: z.array(z.lazy(() => Has$inboundSchema)).optional(),
10610
- missing: z.array(z.lazy(() => Missing$inboundSchema)).optional(),
10611
- dest: z.string().optional(),
10612
- status: z.number().optional(),
10613
- handle: Handle$inboundSchema.optional(),
10614
- mitigate: z.lazy(() => UpdateProjectDataCacheMitigate$inboundSchema)
10615
- .optional(),
10616
- });
10617
-
10618
- /** @internal */
10619
- export type FirewallRoutes$Outbound = {
10620
- src?: Src2$Outbound | string | undefined;
10621
- has?: Array<Has$Outbound> | undefined;
10622
- missing?: Array<Missing$Outbound> | undefined;
10623
- dest?: string | undefined;
10624
- status?: number | undefined;
10625
- handle?: string | undefined;
10626
- mitigate?: UpdateProjectDataCacheMitigate$Outbound | undefined;
10627
- };
10628
-
10629
- /** @internal */
10630
- export const FirewallRoutes$outboundSchema: z.ZodType<
10631
- FirewallRoutes$Outbound,
10632
- z.ZodTypeDef,
10633
- FirewallRoutes
10634
- > = z.object({
10635
- src: z.union([z.lazy(() => Src2$outboundSchema), z.string()]).optional(),
10636
- has: z.array(z.lazy(() => Has$outboundSchema)).optional(),
10637
- missing: z.array(z.lazy(() => Missing$outboundSchema)).optional(),
10638
- dest: z.string().optional(),
10639
- status: z.number().optional(),
10640
- handle: Handle$outboundSchema.optional(),
10641
- mitigate: z.lazy(() => UpdateProjectDataCacheMitigate$outboundSchema)
10642
- .optional(),
10643
- });
10644
-
10645
- /**
10646
- * @internal
10647
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10648
- */
10649
- export namespace FirewallRoutes$ {
10650
- /** @deprecated use `FirewallRoutes$inboundSchema` instead. */
10651
- export const inboundSchema = FirewallRoutes$inboundSchema;
10652
- /** @deprecated use `FirewallRoutes$outboundSchema` instead. */
10653
- export const outboundSchema = FirewallRoutes$outboundSchema;
10654
- /** @deprecated use `FirewallRoutes$Outbound` instead. */
10655
- export type Outbound = FirewallRoutes$Outbound;
10656
- }
10657
-
10658
- export function firewallRoutesToJSON(firewallRoutes: FirewallRoutes): string {
10659
- return JSON.stringify(FirewallRoutes$outboundSchema.parse(firewallRoutes));
10660
- }
10661
-
10662
- export function firewallRoutesFromJSON(
10663
- jsonString: string,
10664
- ): SafeParseResult<FirewallRoutes, SDKValidationError> {
10665
- return safeParse(
10666
- jsonString,
10667
- (x) => FirewallRoutes$inboundSchema.parse(JSON.parse(x)),
10668
- `Failed to parse 'FirewallRoutes' from JSON`,
10669
- );
10670
- }
10671
-
10672
- /** @internal */
10673
- export const UpdateProjectDataCacheAction$inboundSchema: z.ZodNativeEnum<
10674
- typeof UpdateProjectDataCacheAction
10675
- > = z.nativeEnum(UpdateProjectDataCacheAction);
10676
-
10677
- /** @internal */
10678
- export const UpdateProjectDataCacheAction$outboundSchema: z.ZodNativeEnum<
10679
- typeof UpdateProjectDataCacheAction
10680
- > = UpdateProjectDataCacheAction$inboundSchema;
10681
-
10682
- /**
10683
- * @internal
10684
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10685
- */
10686
- export namespace UpdateProjectDataCacheAction$ {
10687
- /** @deprecated use `UpdateProjectDataCacheAction$inboundSchema` instead. */
10688
- export const inboundSchema = UpdateProjectDataCacheAction$inboundSchema;
10689
- /** @deprecated use `UpdateProjectDataCacheAction$outboundSchema` instead. */
10690
- export const outboundSchema = UpdateProjectDataCacheAction$outboundSchema;
10691
- }
10692
-
10693
- /** @internal */
10694
- export const BotFilter$inboundSchema: z.ZodType<
10695
- BotFilter,
10696
- z.ZodTypeDef,
10697
- unknown
10698
- > = z.object({
10699
- active: z.boolean(),
10700
- action: UpdateProjectDataCacheAction$inboundSchema.optional(),
10701
- });
10702
-
10703
- /** @internal */
10704
- export type BotFilter$Outbound = {
10705
- active: boolean;
10706
- action?: string | undefined;
10707
- };
10708
-
10709
- /** @internal */
10710
- export const BotFilter$outboundSchema: z.ZodType<
10711
- BotFilter$Outbound,
10712
- z.ZodTypeDef,
10713
- BotFilter
10714
- > = z.object({
10715
- active: z.boolean(),
10716
- action: UpdateProjectDataCacheAction$outboundSchema.optional(),
10717
- });
10718
-
10719
- /**
10720
- * @internal
10721
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10722
- */
10723
- export namespace BotFilter$ {
10724
- /** @deprecated use `BotFilter$inboundSchema` instead. */
10725
- export const inboundSchema = BotFilter$inboundSchema;
10726
- /** @deprecated use `BotFilter$outboundSchema` instead. */
10727
- export const outboundSchema = BotFilter$outboundSchema;
10728
- /** @deprecated use `BotFilter$Outbound` instead. */
10729
- export type Outbound = BotFilter$Outbound;
10730
- }
10731
-
10732
- export function botFilterToJSON(botFilter: BotFilter): string {
10733
- return JSON.stringify(BotFilter$outboundSchema.parse(botFilter));
10734
- }
10735
-
10736
- export function botFilterFromJSON(
10737
- jsonString: string,
10738
- ): SafeParseResult<BotFilter, SDKValidationError> {
10739
- return safeParse(
10740
- jsonString,
10741
- (x) => BotFilter$inboundSchema.parse(JSON.parse(x)),
10742
- `Failed to parse 'BotFilter' from JSON`,
10743
- );
10744
- }
10745
-
10746
- /** @internal */
10747
- export const UpdateProjectDataCacheProjectsAction$inboundSchema:
10748
- z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsAction> = z.nativeEnum(
10749
- UpdateProjectDataCacheProjectsAction,
10750
- );
10751
-
10752
- /** @internal */
10753
- export const UpdateProjectDataCacheProjectsAction$outboundSchema:
10754
- z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsAction> =
10755
- UpdateProjectDataCacheProjectsAction$inboundSchema;
10756
-
10757
- /**
10758
- * @internal
10759
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10760
- */
10761
- export namespace UpdateProjectDataCacheProjectsAction$ {
10762
- /** @deprecated use `UpdateProjectDataCacheProjectsAction$inboundSchema` instead. */
10763
- export const inboundSchema =
10764
- UpdateProjectDataCacheProjectsAction$inboundSchema;
10765
- /** @deprecated use `UpdateProjectDataCacheProjectsAction$outboundSchema` instead. */
10766
- export const outboundSchema =
10767
- UpdateProjectDataCacheProjectsAction$outboundSchema;
10768
- }
10769
-
10770
- /** @internal */
10771
- export const UpdateProjectDataCacheAiBots$inboundSchema: z.ZodType<
10772
- UpdateProjectDataCacheAiBots,
10773
- z.ZodTypeDef,
10774
- unknown
10775
- > = z.object({
10776
- active: z.boolean(),
10777
- action: UpdateProjectDataCacheProjectsAction$inboundSchema.optional(),
10778
- });
10779
-
10780
- /** @internal */
10781
- export type UpdateProjectDataCacheAiBots$Outbound = {
10782
- active: boolean;
10783
- action?: string | undefined;
10784
- };
10785
-
10786
- /** @internal */
10787
- export const UpdateProjectDataCacheAiBots$outboundSchema: z.ZodType<
10788
- UpdateProjectDataCacheAiBots$Outbound,
10789
- z.ZodTypeDef,
10790
- UpdateProjectDataCacheAiBots
10791
- > = z.object({
10792
- active: z.boolean(),
10793
- action: UpdateProjectDataCacheProjectsAction$outboundSchema.optional(),
10794
- });
10795
-
10796
- /**
10797
- * @internal
10798
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10799
- */
10800
- export namespace UpdateProjectDataCacheAiBots$ {
10801
- /** @deprecated use `UpdateProjectDataCacheAiBots$inboundSchema` instead. */
10802
- export const inboundSchema = UpdateProjectDataCacheAiBots$inboundSchema;
10803
- /** @deprecated use `UpdateProjectDataCacheAiBots$outboundSchema` instead. */
10804
- export const outboundSchema = UpdateProjectDataCacheAiBots$outboundSchema;
10805
- /** @deprecated use `UpdateProjectDataCacheAiBots$Outbound` instead. */
10806
- export type Outbound = UpdateProjectDataCacheAiBots$Outbound;
10807
- }
10808
-
10809
- export function updateProjectDataCacheAiBotsToJSON(
10810
- updateProjectDataCacheAiBots: UpdateProjectDataCacheAiBots,
10811
- ): string {
10812
- return JSON.stringify(
10813
- UpdateProjectDataCacheAiBots$outboundSchema.parse(
10814
- updateProjectDataCacheAiBots,
10815
- ),
10816
- );
10817
- }
10818
-
10819
- export function updateProjectDataCacheAiBotsFromJSON(
10820
- jsonString: string,
10821
- ): SafeParseResult<UpdateProjectDataCacheAiBots, SDKValidationError> {
10822
- return safeParse(
10823
- jsonString,
10824
- (x) => UpdateProjectDataCacheAiBots$inboundSchema.parse(JSON.parse(x)),
10825
- `Failed to parse 'UpdateProjectDataCacheAiBots' from JSON`,
10826
- );
10827
- }
10828
-
10829
- /** @internal */
10830
- export const UpdateProjectDataCacheProjectsResponseAction$inboundSchema:
10831
- z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponseAction> = z
10832
- .nativeEnum(UpdateProjectDataCacheProjectsResponseAction);
10833
-
10834
- /** @internal */
10835
- export const UpdateProjectDataCacheProjectsResponseAction$outboundSchema:
10836
- z.ZodNativeEnum<typeof UpdateProjectDataCacheProjectsResponseAction> =
10837
- UpdateProjectDataCacheProjectsResponseAction$inboundSchema;
10838
-
10839
- /**
10840
- * @internal
10841
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10842
- */
10843
- export namespace UpdateProjectDataCacheProjectsResponseAction$ {
10844
- /** @deprecated use `UpdateProjectDataCacheProjectsResponseAction$inboundSchema` instead. */
10845
- export const inboundSchema =
10846
- UpdateProjectDataCacheProjectsResponseAction$inboundSchema;
10847
- /** @deprecated use `UpdateProjectDataCacheProjectsResponseAction$outboundSchema` instead. */
10848
- export const outboundSchema =
10849
- UpdateProjectDataCacheProjectsResponseAction$outboundSchema;
10850
- }
10851
-
10852
- /** @internal */
10853
- export const UpdateProjectDataCacheOwasp$inboundSchema: z.ZodType<
10854
- UpdateProjectDataCacheOwasp,
10855
- z.ZodTypeDef,
10856
- unknown
10857
- > = z.object({
10858
- active: z.boolean(),
10859
- action: UpdateProjectDataCacheProjectsResponseAction$inboundSchema.optional(),
10860
- });
10861
-
10862
- /** @internal */
10863
- export type UpdateProjectDataCacheOwasp$Outbound = {
10864
- active: boolean;
10865
- action?: string | undefined;
10866
- };
10867
-
10868
- /** @internal */
10869
- export const UpdateProjectDataCacheOwasp$outboundSchema: z.ZodType<
10870
- UpdateProjectDataCacheOwasp$Outbound,
10871
- z.ZodTypeDef,
10872
- UpdateProjectDataCacheOwasp
10873
- > = z.object({
10874
- active: z.boolean(),
10875
- action: UpdateProjectDataCacheProjectsResponseAction$outboundSchema
10876
- .optional(),
10877
- });
10878
-
10879
- /**
10880
- * @internal
10881
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10882
- */
10883
- export namespace UpdateProjectDataCacheOwasp$ {
10884
- /** @deprecated use `UpdateProjectDataCacheOwasp$inboundSchema` instead. */
10885
- export const inboundSchema = UpdateProjectDataCacheOwasp$inboundSchema;
10886
- /** @deprecated use `UpdateProjectDataCacheOwasp$outboundSchema` instead. */
10887
- export const outboundSchema = UpdateProjectDataCacheOwasp$outboundSchema;
10888
- /** @deprecated use `UpdateProjectDataCacheOwasp$Outbound` instead. */
10889
- export type Outbound = UpdateProjectDataCacheOwasp$Outbound;
10890
- }
10891
-
10892
- export function updateProjectDataCacheOwaspToJSON(
10893
- updateProjectDataCacheOwasp: UpdateProjectDataCacheOwasp,
10894
- ): string {
10895
- return JSON.stringify(
10896
- UpdateProjectDataCacheOwasp$outboundSchema.parse(
10897
- updateProjectDataCacheOwasp,
10898
- ),
10899
- );
10900
- }
10901
-
10902
- export function updateProjectDataCacheOwaspFromJSON(
10903
- jsonString: string,
10904
- ): SafeParseResult<UpdateProjectDataCacheOwasp, SDKValidationError> {
10905
- return safeParse(
10906
- jsonString,
10907
- (x) => UpdateProjectDataCacheOwasp$inboundSchema.parse(JSON.parse(x)),
10908
- `Failed to parse 'UpdateProjectDataCacheOwasp' from JSON`,
10909
- );
10910
- }
10911
-
10912
- /** @internal */
10913
- export const UpdateProjectDataCacheManagedRules$inboundSchema: z.ZodType<
10914
- UpdateProjectDataCacheManagedRules,
10915
- z.ZodTypeDef,
10916
- unknown
10917
- > = z.object({
10918
- bot_filter: z.lazy(() => BotFilter$inboundSchema),
10919
- ai_bots: z.lazy(() => UpdateProjectDataCacheAiBots$inboundSchema),
10920
- owasp: z.lazy(() => UpdateProjectDataCacheOwasp$inboundSchema),
10921
- }).transform((v) => {
10922
- return remap$(v, {
10923
- "bot_filter": "botFilter",
10924
- "ai_bots": "aiBots",
9921
+ export const UpdateProjectDataCacheManagedRules$inboundSchema: z.ZodType<
9922
+ UpdateProjectDataCacheManagedRules,
9923
+ z.ZodTypeDef,
9924
+ unknown
9925
+ > = z.object({
9926
+ bot_filter: z.lazy(() => BotFilter$inboundSchema),
9927
+ ai_bots: z.lazy(() => UpdateProjectDataCacheAiBots$inboundSchema),
9928
+ owasp: z.lazy(() => UpdateProjectDataCacheOwasp$inboundSchema),
9929
+ }).transform((v) => {
9930
+ return remap$(v, {
9931
+ "bot_filter": "botFilter",
9932
+ "ai_bots": "aiBots",
10925
9933
  });
10926
9934
  });
10927
9935
 
@@ -10995,8 +10003,6 @@ export const UpdateProjectDataCacheSecurity$inboundSchema: z.ZodType<
10995
10003
  firewallUpdatedAt: z.number().optional(),
10996
10004
  attackModeActiveUntil: z.nullable(z.number()).optional(),
10997
10005
  firewallConfigVersion: z.number().optional(),
10998
- firewallRoutes: z.array(z.lazy(() => FirewallRoutes$inboundSchema))
10999
- .optional(),
11000
10006
  firewallSeawallEnabled: z.boolean().optional(),
11001
10007
  ja3Enabled: z.boolean().optional(),
11002
10008
  ja4Enabled: z.boolean().optional(),
@@ -11015,7 +10021,6 @@ export type UpdateProjectDataCacheSecurity$Outbound = {
11015
10021
  firewallUpdatedAt?: number | undefined;
11016
10022
  attackModeActiveUntil?: number | null | undefined;
11017
10023
  firewallConfigVersion?: number | undefined;
11018
- firewallRoutes?: Array<FirewallRoutes$Outbound> | undefined;
11019
10024
  firewallSeawallEnabled?: boolean | undefined;
11020
10025
  ja3Enabled?: boolean | undefined;
11021
10026
  ja4Enabled?: boolean | undefined;
@@ -11036,8 +10041,6 @@ export const UpdateProjectDataCacheSecurity$outboundSchema: z.ZodType<
11036
10041
  firewallUpdatedAt: z.number().optional(),
11037
10042
  attackModeActiveUntil: z.nullable(z.number()).optional(),
11038
10043
  firewallConfigVersion: z.number().optional(),
11039
- firewallRoutes: z.array(z.lazy(() => FirewallRoutes$outboundSchema))
11040
- .optional(),
11041
10044
  firewallSeawallEnabled: z.boolean().optional(),
11042
10045
  ja3Enabled: z.boolean().optional(),
11043
10046
  ja4Enabled: z.boolean().optional(),