@vercel/sdk 1.10.1 → 1.10.3

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 (81) hide show
  1. package/bin/mcp-server.js +436 -1558
  2. package/bin/mcp-server.js.map +19 -19
  3. package/esm/__tests__/teams.test.js +2 -4
  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/domainsGetDomainConfig.js +1 -0
  8. package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
  9. package/esm/funcs/domainsPatchDomain.js +2 -2
  10. package/esm/funcs/domainsPatchDomain.js.map +1 -1
  11. package/esm/lib/config.d.ts +3 -3
  12. package/esm/lib/config.js +3 -3
  13. package/esm/mcp-server/mcp-server.js +1 -1
  14. package/esm/mcp-server/server.js +1 -1
  15. package/esm/models/canceldeploymentop.d.ts +49 -49
  16. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  17. package/esm/models/canceldeploymentop.js +53 -55
  18. package/esm/models/canceldeploymentop.js.map +1 -1
  19. package/esm/models/createdeploymentop.d.ts +174 -174
  20. package/esm/models/createdeploymentop.d.ts.map +1 -1
  21. package/esm/models/createdeploymentop.js +166 -165
  22. package/esm/models/createdeploymentop.js.map +1 -1
  23. package/esm/models/createprojectop.d.ts +33 -585
  24. package/esm/models/createprojectop.d.ts.map +1 -1
  25. package/esm/models/createprojectop.js +31 -530
  26. package/esm/models/createprojectop.js.map +1 -1
  27. package/esm/models/getdeploymentop.d.ts +90 -90
  28. package/esm/models/getdeploymentop.d.ts.map +1 -1
  29. package/esm/models/getdeploymentop.js +101 -102
  30. package/esm/models/getdeploymentop.js.map +1 -1
  31. package/esm/models/getdomainconfigop.d.ts +63 -0
  32. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  33. package/esm/models/getdomainconfigop.js +52 -0
  34. package/esm/models/getdomainconfigop.js.map +1 -1
  35. package/esm/models/getprojectsop.d.ts +33 -585
  36. package/esm/models/getprojectsop.d.ts.map +1 -1
  37. package/esm/models/getprojectsop.js +31 -530
  38. package/esm/models/getprojectsop.js.map +1 -1
  39. package/esm/models/team.d.ts +13 -12
  40. package/esm/models/team.d.ts.map +1 -1
  41. package/esm/models/team.js +6 -7
  42. package/esm/models/team.js.map +1 -1
  43. package/esm/models/teamlimited.d.ts +0 -2
  44. package/esm/models/teamlimited.d.ts.map +1 -1
  45. package/esm/models/teamlimited.js +0 -2
  46. package/esm/models/teamlimited.js.map +1 -1
  47. package/esm/models/updateprojectdatacacheop.d.ts +41 -593
  48. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  49. package/esm/models/updateprojectdatacacheop.js +43 -561
  50. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  51. package/esm/models/updateprojectop.d.ts +33 -585
  52. package/esm/models/updateprojectop.d.ts.map +1 -1
  53. package/esm/models/updateprojectop.js +31 -530
  54. package/esm/models/updateprojectop.js.map +1 -1
  55. package/esm/models/userevent.d.ts +154 -124
  56. package/esm/models/userevent.d.ts.map +1 -1
  57. package/esm/models/userevent.js +166 -135
  58. package/esm/models/userevent.js.map +1 -1
  59. package/examples/package-lock.json +1 -1
  60. package/examples/projectsUpdateProject.example.ts +1 -1
  61. package/jsr.json +1 -1
  62. package/package.json +1 -1
  63. package/src/__tests__/teams.test.ts +2 -4
  64. package/src/funcs/domainsBuyDomain.ts +2 -2
  65. package/src/funcs/domainsGetDomainConfig.ts +1 -0
  66. package/src/funcs/domainsPatchDomain.ts +2 -2
  67. package/src/lib/config.ts +3 -3
  68. package/src/mcp-server/mcp-server.ts +1 -1
  69. package/src/mcp-server/server.ts +1 -1
  70. package/src/models/canceldeploymentop.ts +78 -104
  71. package/src/models/createdeploymentop.ts +347 -350
  72. package/src/models/createprojectop.ts +197 -1221
  73. package/src/models/getdeploymentop.ts +214 -216
  74. package/src/models/getdomainconfigop.ts +129 -0
  75. package/src/models/getprojectsop.ts +202 -1207
  76. package/src/models/team.ts +13 -16
  77. package/src/models/teamlimited.ts +0 -4
  78. package/src/models/updateprojectdatacacheop.ts +171 -1168
  79. package/src/models/updateprojectop.ts +197 -1221
  80. package/src/models/userevent.ts +309 -236
  81. package/vercel-spec.json +141 -1530
@@ -1761,6 +1761,7 @@ export type CreateProjectPermissions = {
1761
1761
  observabilityFunnel?: Array<ACLAction> | undefined;
1762
1762
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1763
1763
  vercelAppInstallation?: Array<ACLAction> | undefined;
1764
+ vercelAppInstallationRequest?: Array<ACLAction> | undefined;
1764
1765
  paymentMethod?: Array<ACLAction> | undefined;
1765
1766
  permissions?: Array<ACLAction> | undefined;
1766
1767
  postgres?: Array<ACLAction> | undefined;
@@ -1976,193 +1977,44 @@ export type CreateProjectWebAnalytics = {
1976
1977
  hasData?: boolean | undefined;
1977
1978
  };
1978
1979
 
1979
- export type CreateProjectSrc2 = {
1980
- re?: string | undefined;
1981
- eq?: string | undefined;
1982
- neq?: string | undefined;
1983
- inc?: Array<string> | undefined;
1984
- ninc?: Array<string> | undefined;
1985
- pre?: string | undefined;
1986
- suf?: string | undefined;
1987
- gt?: number | undefined;
1988
- gte?: number | undefined;
1989
- lt?: number | undefined;
1990
- lte?: number | undefined;
1991
- };
1992
-
1993
- export type CreateProjectSrc = CreateProjectSrc2 | string;
1994
-
1995
- export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType =
1996
- {
1997
- Path: "path",
1998
- Host: "host",
1999
- Method: "method",
2000
- Header: "header",
2001
- Cookie: "cookie",
2002
- Query: "query",
2003
- IpAddress: "ip_address",
2004
- Protocol: "protocol",
2005
- Scheme: "scheme",
2006
- Environment: "environment",
2007
- Region: "region",
2008
- InitialRequestPath: "initial_request_path",
2009
- } as const;
2010
- export type CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType =
2011
- ClosedEnum<
2012
- typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType
2013
- >;
2014
-
2015
- export type CreateProjectValue2 = {
2016
- re?: string | undefined;
2017
- eq?: string | undefined;
2018
- neq?: string | undefined;
2019
- inc?: Array<string> | undefined;
2020
- ninc?: Array<string> | undefined;
2021
- pre?: string | undefined;
2022
- suf?: string | undefined;
2023
- gt?: number | undefined;
2024
- gte?: number | undefined;
2025
- lt?: number | undefined;
2026
- lte?: number | undefined;
2027
- };
2028
-
2029
- export type CreateProjectValue = CreateProjectValue2 | string;
2030
-
2031
- export type CreateProjectHas = {
2032
- type: CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType;
2033
- key?: string | undefined;
2034
- value?: CreateProjectValue2 | string | undefined;
2035
- };
2036
-
2037
- export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
2038
- {
2039
- Path: "path",
2040
- Host: "host",
2041
- Method: "method",
2042
- Header: "header",
2043
- Cookie: "cookie",
2044
- Query: "query",
2045
- IpAddress: "ip_address",
2046
- Protocol: "protocol",
2047
- Scheme: "scheme",
2048
- Environment: "environment",
2049
- Region: "region",
2050
- InitialRequestPath: "initial_request_path",
2051
- } as const;
2052
- export type CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
2053
- ClosedEnum<
2054
- typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType
2055
- >;
2056
-
2057
- export type CreateProjectValueProjects2 = {
2058
- re?: string | undefined;
2059
- eq?: string | undefined;
2060
- neq?: string | undefined;
2061
- inc?: Array<string> | undefined;
2062
- ninc?: Array<string> | undefined;
2063
- pre?: string | undefined;
2064
- suf?: string | undefined;
2065
- gt?: number | undefined;
2066
- gte?: number | undefined;
2067
- lt?: number | undefined;
2068
- lte?: number | undefined;
2069
- };
2070
-
2071
- export type CreateProjectProjectsValue = CreateProjectValueProjects2 | string;
2072
-
2073
- export type CreateProjectMissing = {
2074
- type:
2075
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType;
2076
- key?: string | undefined;
2077
- value?: CreateProjectValueProjects2 | string | undefined;
2078
- };
2079
-
2080
- export const CreateProjectHandle = {
2081
- Init: "init",
2082
- Finalize: "finalize",
2083
- } as const;
2084
- export type CreateProjectHandle = ClosedEnum<typeof CreateProjectHandle>;
2085
-
2086
1980
  export const CreateProjectAction = {
2087
- Deny: "deny",
2088
- Challenge: "challenge",
2089
1981
  Log: "log",
2090
- Bypass: "bypass",
2091
- RateLimit: "rate_limit",
2092
- Redirect: "redirect",
1982
+ Challenge: "challenge",
1983
+ Deny: "deny",
2093
1984
  } as const;
2094
1985
  export type CreateProjectAction = ClosedEnum<typeof CreateProjectAction>;
2095
1986
 
2096
- export const CreateProjectAlgo = {
2097
- FixedWindow: "fixed_window",
2098
- TokenBucket: "token_bucket",
2099
- } as const;
2100
- export type CreateProjectAlgo = ClosedEnum<typeof CreateProjectAlgo>;
2101
-
2102
- export type CreateProjectErl = {
2103
- algo: CreateProjectAlgo;
2104
- window: number;
2105
- limit: number;
2106
- keys: Array<string>;
2107
- };
2108
-
2109
- export type CreateProjectMitigate = {
2110
- action: CreateProjectAction;
2111
- ruleId: string;
2112
- ttl?: number | undefined;
2113
- erl?: CreateProjectErl | undefined;
2114
- };
2115
-
2116
- export type CreateProjectFirewallRoutes = {
2117
- src?: CreateProjectSrc2 | string | undefined;
2118
- has?: Array<CreateProjectHas> | undefined;
2119
- missing?: Array<CreateProjectMissing> | undefined;
2120
- dest?: string | undefined;
2121
- status?: number | undefined;
2122
- handle?: CreateProjectHandle | undefined;
2123
- mitigate?: CreateProjectMitigate | undefined;
1987
+ export type CreateProjectBotFilter = {
1988
+ active: boolean;
1989
+ action?: CreateProjectAction | undefined;
2124
1990
  };
2125
1991
 
2126
1992
  export const CreateProjectProjectsAction = {
2127
- Deny: "deny",
2128
- Challenge: "challenge",
2129
1993
  Log: "log",
1994
+ Challenge: "challenge",
1995
+ Deny: "deny",
2130
1996
  } as const;
2131
1997
  export type CreateProjectProjectsAction = ClosedEnum<
2132
1998
  typeof CreateProjectProjectsAction
2133
1999
  >;
2134
2000
 
2135
- export type CreateProjectBotFilter = {
2001
+ export type CreateProjectAiBots = {
2136
2002
  active: boolean;
2137
2003
  action?: CreateProjectProjectsAction | undefined;
2138
2004
  };
2139
2005
 
2140
2006
  export const CreateProjectProjectsResponseAction = {
2141
- Deny: "deny",
2142
- Challenge: "challenge",
2143
2007
  Log: "log",
2008
+ Challenge: "challenge",
2009
+ Deny: "deny",
2144
2010
  } as const;
2145
2011
  export type CreateProjectProjectsResponseAction = ClosedEnum<
2146
2012
  typeof CreateProjectProjectsResponseAction
2147
2013
  >;
2148
2014
 
2149
- export type CreateProjectAiBots = {
2150
- active: boolean;
2151
- action?: CreateProjectProjectsResponseAction | undefined;
2152
- };
2153
-
2154
- export const CreateProjectProjectsResponse200Action = {
2155
- Deny: "deny",
2156
- Challenge: "challenge",
2157
- Log: "log",
2158
- } as const;
2159
- export type CreateProjectProjectsResponse200Action = ClosedEnum<
2160
- typeof CreateProjectProjectsResponse200Action
2161
- >;
2162
-
2163
2015
  export type CreateProjectOwasp = {
2164
2016
  active: boolean;
2165
- action?: CreateProjectProjectsResponse200Action | undefined;
2017
+ action?: CreateProjectProjectsResponseAction | undefined;
2166
2018
  };
2167
2019
 
2168
2020
  export type CreateProjectManagedRules = {
@@ -2178,7 +2030,6 @@ export type CreateProjectSecurity = {
2178
2030
  firewallUpdatedAt?: number | undefined;
2179
2031
  attackModeActiveUntil?: number | null | undefined;
2180
2032
  firewallConfigVersion?: number | undefined;
2181
- firewallRoutes?: Array<CreateProjectFirewallRoutes> | undefined;
2182
2033
  firewallSeawallEnabled?: boolean | undefined;
2183
2034
  ja3Enabled?: boolean | undefined;
2184
2035
  ja4Enabled?: boolean | undefined;
@@ -9374,6 +9225,7 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
9374
9225
  observabilityFunnel: z.array(ACLAction$inboundSchema).optional(),
9375
9226
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
9376
9227
  vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
9228
+ vercelAppInstallationRequest: z.array(ACLAction$inboundSchema).optional(),
9377
9229
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
9378
9230
  permissions: z.array(ACLAction$inboundSchema).optional(),
9379
9231
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -9594,6 +9446,7 @@ export type CreateProjectPermissions$Outbound = {
9594
9446
  observabilityFunnel?: Array<string> | undefined;
9595
9447
  openTelemetryEndpoint?: Array<string> | undefined;
9596
9448
  vercelAppInstallation?: Array<string> | undefined;
9449
+ vercelAppInstallationRequest?: Array<string> | undefined;
9597
9450
  paymentMethod?: Array<string> | undefined;
9598
9451
  permissions?: Array<string> | undefined;
9599
9452
  postgres?: Array<string> | undefined;
@@ -9819,6 +9672,7 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
9819
9672
  observabilityFunnel: z.array(ACLAction$outboundSchema).optional(),
9820
9673
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
9821
9674
  vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
9675
+ vercelAppInstallationRequest: z.array(ACLAction$outboundSchema).optional(),
9822
9676
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
9823
9677
  permissions: z.array(ACLAction$outboundSchema).optional(),
9824
9678
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -10816,1185 +10670,314 @@ export function createProjectWebAnalyticsFromJSON(
10816
10670
  }
10817
10671
 
10818
10672
  /** @internal */
10819
- export const CreateProjectSrc2$inboundSchema: z.ZodType<
10820
- CreateProjectSrc2,
10673
+ export const CreateProjectAction$inboundSchema: z.ZodNativeEnum<
10674
+ typeof CreateProjectAction
10675
+ > = z.nativeEnum(CreateProjectAction);
10676
+
10677
+ /** @internal */
10678
+ export const CreateProjectAction$outboundSchema: z.ZodNativeEnum<
10679
+ typeof CreateProjectAction
10680
+ > = CreateProjectAction$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 CreateProjectAction$ {
10687
+ /** @deprecated use `CreateProjectAction$inboundSchema` instead. */
10688
+ export const inboundSchema = CreateProjectAction$inboundSchema;
10689
+ /** @deprecated use `CreateProjectAction$outboundSchema` instead. */
10690
+ export const outboundSchema = CreateProjectAction$outboundSchema;
10691
+ }
10692
+
10693
+ /** @internal */
10694
+ export const CreateProjectBotFilter$inboundSchema: z.ZodType<
10695
+ CreateProjectBotFilter,
10821
10696
  z.ZodTypeDef,
10822
10697
  unknown
10823
10698
  > = z.object({
10824
- re: z.string().optional(),
10825
- eq: z.string().optional(),
10826
- neq: z.string().optional(),
10827
- inc: z.array(z.string()).optional(),
10828
- ninc: z.array(z.string()).optional(),
10829
- pre: z.string().optional(),
10830
- suf: z.string().optional(),
10831
- gt: z.number().optional(),
10832
- gte: z.number().optional(),
10833
- lt: z.number().optional(),
10834
- lte: z.number().optional(),
10699
+ active: z.boolean(),
10700
+ action: CreateProjectAction$inboundSchema.optional(),
10835
10701
  });
10836
10702
 
10837
10703
  /** @internal */
10838
- export type CreateProjectSrc2$Outbound = {
10839
- re?: string | undefined;
10840
- eq?: string | undefined;
10841
- neq?: string | undefined;
10842
- inc?: Array<string> | undefined;
10843
- ninc?: Array<string> | undefined;
10844
- pre?: string | undefined;
10845
- suf?: string | undefined;
10846
- gt?: number | undefined;
10847
- gte?: number | undefined;
10848
- lt?: number | undefined;
10849
- lte?: number | undefined;
10704
+ export type CreateProjectBotFilter$Outbound = {
10705
+ active: boolean;
10706
+ action?: string | undefined;
10850
10707
  };
10851
10708
 
10852
10709
  /** @internal */
10853
- export const CreateProjectSrc2$outboundSchema: z.ZodType<
10854
- CreateProjectSrc2$Outbound,
10710
+ export const CreateProjectBotFilter$outboundSchema: z.ZodType<
10711
+ CreateProjectBotFilter$Outbound,
10855
10712
  z.ZodTypeDef,
10856
- CreateProjectSrc2
10713
+ CreateProjectBotFilter
10857
10714
  > = z.object({
10858
- re: z.string().optional(),
10859
- eq: z.string().optional(),
10860
- neq: z.string().optional(),
10861
- inc: z.array(z.string()).optional(),
10862
- ninc: z.array(z.string()).optional(),
10863
- pre: z.string().optional(),
10864
- suf: z.string().optional(),
10865
- gt: z.number().optional(),
10866
- gte: z.number().optional(),
10867
- lt: z.number().optional(),
10868
- lte: z.number().optional(),
10715
+ active: z.boolean(),
10716
+ action: CreateProjectAction$outboundSchema.optional(),
10869
10717
  });
10870
10718
 
10871
10719
  /**
10872
10720
  * @internal
10873
10721
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10874
10722
  */
10875
- export namespace CreateProjectSrc2$ {
10876
- /** @deprecated use `CreateProjectSrc2$inboundSchema` instead. */
10877
- export const inboundSchema = CreateProjectSrc2$inboundSchema;
10878
- /** @deprecated use `CreateProjectSrc2$outboundSchema` instead. */
10879
- export const outboundSchema = CreateProjectSrc2$outboundSchema;
10880
- /** @deprecated use `CreateProjectSrc2$Outbound` instead. */
10881
- export type Outbound = CreateProjectSrc2$Outbound;
10723
+ export namespace CreateProjectBotFilter$ {
10724
+ /** @deprecated use `CreateProjectBotFilter$inboundSchema` instead. */
10725
+ export const inboundSchema = CreateProjectBotFilter$inboundSchema;
10726
+ /** @deprecated use `CreateProjectBotFilter$outboundSchema` instead. */
10727
+ export const outboundSchema = CreateProjectBotFilter$outboundSchema;
10728
+ /** @deprecated use `CreateProjectBotFilter$Outbound` instead. */
10729
+ export type Outbound = CreateProjectBotFilter$Outbound;
10882
10730
  }
10883
10731
 
10884
- export function createProjectSrc2ToJSON(
10885
- createProjectSrc2: CreateProjectSrc2,
10732
+ export function createProjectBotFilterToJSON(
10733
+ createProjectBotFilter: CreateProjectBotFilter,
10886
10734
  ): string {
10887
10735
  return JSON.stringify(
10888
- CreateProjectSrc2$outboundSchema.parse(createProjectSrc2),
10736
+ CreateProjectBotFilter$outboundSchema.parse(createProjectBotFilter),
10889
10737
  );
10890
10738
  }
10891
10739
 
10892
- export function createProjectSrc2FromJSON(
10740
+ export function createProjectBotFilterFromJSON(
10893
10741
  jsonString: string,
10894
- ): SafeParseResult<CreateProjectSrc2, SDKValidationError> {
10742
+ ): SafeParseResult<CreateProjectBotFilter, SDKValidationError> {
10895
10743
  return safeParse(
10896
10744
  jsonString,
10897
- (x) => CreateProjectSrc2$inboundSchema.parse(JSON.parse(x)),
10898
- `Failed to parse 'CreateProjectSrc2' from JSON`,
10745
+ (x) => CreateProjectBotFilter$inboundSchema.parse(JSON.parse(x)),
10746
+ `Failed to parse 'CreateProjectBotFilter' from JSON`,
10899
10747
  );
10900
10748
  }
10901
10749
 
10902
10750
  /** @internal */
10903
- export const CreateProjectSrc$inboundSchema: z.ZodType<
10904
- CreateProjectSrc,
10751
+ export const CreateProjectProjectsAction$inboundSchema: z.ZodNativeEnum<
10752
+ typeof CreateProjectProjectsAction
10753
+ > = z.nativeEnum(CreateProjectProjectsAction);
10754
+
10755
+ /** @internal */
10756
+ export const CreateProjectProjectsAction$outboundSchema: z.ZodNativeEnum<
10757
+ typeof CreateProjectProjectsAction
10758
+ > = CreateProjectProjectsAction$inboundSchema;
10759
+
10760
+ /**
10761
+ * @internal
10762
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10763
+ */
10764
+ export namespace CreateProjectProjectsAction$ {
10765
+ /** @deprecated use `CreateProjectProjectsAction$inboundSchema` instead. */
10766
+ export const inboundSchema = CreateProjectProjectsAction$inboundSchema;
10767
+ /** @deprecated use `CreateProjectProjectsAction$outboundSchema` instead. */
10768
+ export const outboundSchema = CreateProjectProjectsAction$outboundSchema;
10769
+ }
10770
+
10771
+ /** @internal */
10772
+ export const CreateProjectAiBots$inboundSchema: z.ZodType<
10773
+ CreateProjectAiBots,
10905
10774
  z.ZodTypeDef,
10906
10775
  unknown
10907
- > = z.union([z.lazy(() => CreateProjectSrc2$inboundSchema), z.string()]);
10776
+ > = z.object({
10777
+ active: z.boolean(),
10778
+ action: CreateProjectProjectsAction$inboundSchema.optional(),
10779
+ });
10908
10780
 
10909
10781
  /** @internal */
10910
- export type CreateProjectSrc$Outbound = CreateProjectSrc2$Outbound | string;
10782
+ export type CreateProjectAiBots$Outbound = {
10783
+ active: boolean;
10784
+ action?: string | undefined;
10785
+ };
10911
10786
 
10912
10787
  /** @internal */
10913
- export const CreateProjectSrc$outboundSchema: z.ZodType<
10914
- CreateProjectSrc$Outbound,
10788
+ export const CreateProjectAiBots$outboundSchema: z.ZodType<
10789
+ CreateProjectAiBots$Outbound,
10915
10790
  z.ZodTypeDef,
10916
- CreateProjectSrc
10917
- > = z.union([z.lazy(() => CreateProjectSrc2$outboundSchema), z.string()]);
10791
+ CreateProjectAiBots
10792
+ > = z.object({
10793
+ active: z.boolean(),
10794
+ action: CreateProjectProjectsAction$outboundSchema.optional(),
10795
+ });
10918
10796
 
10919
10797
  /**
10920
10798
  * @internal
10921
10799
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10922
10800
  */
10923
- export namespace CreateProjectSrc$ {
10924
- /** @deprecated use `CreateProjectSrc$inboundSchema` instead. */
10925
- export const inboundSchema = CreateProjectSrc$inboundSchema;
10926
- /** @deprecated use `CreateProjectSrc$outboundSchema` instead. */
10927
- export const outboundSchema = CreateProjectSrc$outboundSchema;
10928
- /** @deprecated use `CreateProjectSrc$Outbound` instead. */
10929
- export type Outbound = CreateProjectSrc$Outbound;
10801
+ export namespace CreateProjectAiBots$ {
10802
+ /** @deprecated use `CreateProjectAiBots$inboundSchema` instead. */
10803
+ export const inboundSchema = CreateProjectAiBots$inboundSchema;
10804
+ /** @deprecated use `CreateProjectAiBots$outboundSchema` instead. */
10805
+ export const outboundSchema = CreateProjectAiBots$outboundSchema;
10806
+ /** @deprecated use `CreateProjectAiBots$Outbound` instead. */
10807
+ export type Outbound = CreateProjectAiBots$Outbound;
10930
10808
  }
10931
10809
 
10932
- export function createProjectSrcToJSON(
10933
- createProjectSrc: CreateProjectSrc,
10810
+ export function createProjectAiBotsToJSON(
10811
+ createProjectAiBots: CreateProjectAiBots,
10934
10812
  ): string {
10935
10813
  return JSON.stringify(
10936
- CreateProjectSrc$outboundSchema.parse(createProjectSrc),
10814
+ CreateProjectAiBots$outboundSchema.parse(createProjectAiBots),
10937
10815
  );
10938
10816
  }
10939
10817
 
10940
- export function createProjectSrcFromJSON(
10818
+ export function createProjectAiBotsFromJSON(
10941
10819
  jsonString: string,
10942
- ): SafeParseResult<CreateProjectSrc, SDKValidationError> {
10820
+ ): SafeParseResult<CreateProjectAiBots, SDKValidationError> {
10943
10821
  return safeParse(
10944
10822
  jsonString,
10945
- (x) => CreateProjectSrc$inboundSchema.parse(JSON.parse(x)),
10946
- `Failed to parse 'CreateProjectSrc' from JSON`,
10823
+ (x) => CreateProjectAiBots$inboundSchema.parse(JSON.parse(x)),
10824
+ `Failed to parse 'CreateProjectAiBots' from JSON`,
10947
10825
  );
10948
10826
  }
10949
10827
 
10950
10828
  /** @internal */
10951
- export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema:
10952
- z.ZodNativeEnum<
10953
- typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType
10954
- > = z.nativeEnum(
10955
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType,
10956
- );
10829
+ export const CreateProjectProjectsResponseAction$inboundSchema: z.ZodNativeEnum<
10830
+ typeof CreateProjectProjectsResponseAction
10831
+ > = z.nativeEnum(CreateProjectProjectsResponseAction);
10957
10832
 
10958
10833
  /** @internal */
10959
- export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema:
10960
- z.ZodNativeEnum<
10961
- typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType
10962
- > =
10963
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema;
10834
+ export const CreateProjectProjectsResponseAction$outboundSchema:
10835
+ z.ZodNativeEnum<typeof CreateProjectProjectsResponseAction> =
10836
+ CreateProjectProjectsResponseAction$inboundSchema;
10964
10837
 
10965
10838
  /**
10966
10839
  * @internal
10967
10840
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10968
10841
  */
10969
- export namespace CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$ {
10970
- /** @deprecated use `CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema` instead. */
10842
+ export namespace CreateProjectProjectsResponseAction$ {
10843
+ /** @deprecated use `CreateProjectProjectsResponseAction$inboundSchema` instead. */
10971
10844
  export const inboundSchema =
10972
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema;
10973
- /** @deprecated use `CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema` instead. */
10845
+ CreateProjectProjectsResponseAction$inboundSchema;
10846
+ /** @deprecated use `CreateProjectProjectsResponseAction$outboundSchema` instead. */
10974
10847
  export const outboundSchema =
10975
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema;
10848
+ CreateProjectProjectsResponseAction$outboundSchema;
10976
10849
  }
10977
10850
 
10978
10851
  /** @internal */
10979
- export const CreateProjectValue2$inboundSchema: z.ZodType<
10980
- CreateProjectValue2,
10852
+ export const CreateProjectOwasp$inboundSchema: z.ZodType<
10853
+ CreateProjectOwasp,
10981
10854
  z.ZodTypeDef,
10982
10855
  unknown
10983
10856
  > = z.object({
10984
- re: z.string().optional(),
10985
- eq: z.string().optional(),
10986
- neq: z.string().optional(),
10987
- inc: z.array(z.string()).optional(),
10988
- ninc: z.array(z.string()).optional(),
10989
- pre: z.string().optional(),
10990
- suf: z.string().optional(),
10991
- gt: z.number().optional(),
10992
- gte: z.number().optional(),
10993
- lt: z.number().optional(),
10994
- lte: z.number().optional(),
10857
+ active: z.boolean(),
10858
+ action: CreateProjectProjectsResponseAction$inboundSchema.optional(),
10995
10859
  });
10996
10860
 
10997
10861
  /** @internal */
10998
- export type CreateProjectValue2$Outbound = {
10999
- re?: string | undefined;
11000
- eq?: string | undefined;
11001
- neq?: string | undefined;
11002
- inc?: Array<string> | undefined;
11003
- ninc?: Array<string> | undefined;
11004
- pre?: string | undefined;
11005
- suf?: string | undefined;
11006
- gt?: number | undefined;
11007
- gte?: number | undefined;
11008
- lt?: number | undefined;
11009
- lte?: number | undefined;
10862
+ export type CreateProjectOwasp$Outbound = {
10863
+ active: boolean;
10864
+ action?: string | undefined;
11010
10865
  };
11011
10866
 
11012
10867
  /** @internal */
11013
- export const CreateProjectValue2$outboundSchema: z.ZodType<
11014
- CreateProjectValue2$Outbound,
10868
+ export const CreateProjectOwasp$outboundSchema: z.ZodType<
10869
+ CreateProjectOwasp$Outbound,
11015
10870
  z.ZodTypeDef,
11016
- CreateProjectValue2
10871
+ CreateProjectOwasp
11017
10872
  > = z.object({
11018
- re: z.string().optional(),
11019
- eq: z.string().optional(),
11020
- neq: z.string().optional(),
11021
- inc: z.array(z.string()).optional(),
11022
- ninc: z.array(z.string()).optional(),
11023
- pre: z.string().optional(),
11024
- suf: z.string().optional(),
11025
- gt: z.number().optional(),
11026
- gte: z.number().optional(),
11027
- lt: z.number().optional(),
11028
- lte: z.number().optional(),
10873
+ active: z.boolean(),
10874
+ action: CreateProjectProjectsResponseAction$outboundSchema.optional(),
11029
10875
  });
11030
10876
 
11031
10877
  /**
11032
10878
  * @internal
11033
10879
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11034
10880
  */
11035
- export namespace CreateProjectValue2$ {
11036
- /** @deprecated use `CreateProjectValue2$inboundSchema` instead. */
11037
- export const inboundSchema = CreateProjectValue2$inboundSchema;
11038
- /** @deprecated use `CreateProjectValue2$outboundSchema` instead. */
11039
- export const outboundSchema = CreateProjectValue2$outboundSchema;
11040
- /** @deprecated use `CreateProjectValue2$Outbound` instead. */
11041
- export type Outbound = CreateProjectValue2$Outbound;
10881
+ export namespace CreateProjectOwasp$ {
10882
+ /** @deprecated use `CreateProjectOwasp$inboundSchema` instead. */
10883
+ export const inboundSchema = CreateProjectOwasp$inboundSchema;
10884
+ /** @deprecated use `CreateProjectOwasp$outboundSchema` instead. */
10885
+ export const outboundSchema = CreateProjectOwasp$outboundSchema;
10886
+ /** @deprecated use `CreateProjectOwasp$Outbound` instead. */
10887
+ export type Outbound = CreateProjectOwasp$Outbound;
11042
10888
  }
11043
10889
 
11044
- export function createProjectValue2ToJSON(
11045
- createProjectValue2: CreateProjectValue2,
10890
+ export function createProjectOwaspToJSON(
10891
+ createProjectOwasp: CreateProjectOwasp,
11046
10892
  ): string {
11047
10893
  return JSON.stringify(
11048
- CreateProjectValue2$outboundSchema.parse(createProjectValue2),
10894
+ CreateProjectOwasp$outboundSchema.parse(createProjectOwasp),
11049
10895
  );
11050
10896
  }
11051
10897
 
11052
- export function createProjectValue2FromJSON(
10898
+ export function createProjectOwaspFromJSON(
11053
10899
  jsonString: string,
11054
- ): SafeParseResult<CreateProjectValue2, SDKValidationError> {
10900
+ ): SafeParseResult<CreateProjectOwasp, SDKValidationError> {
11055
10901
  return safeParse(
11056
10902
  jsonString,
11057
- (x) => CreateProjectValue2$inboundSchema.parse(JSON.parse(x)),
11058
- `Failed to parse 'CreateProjectValue2' from JSON`,
10903
+ (x) => CreateProjectOwasp$inboundSchema.parse(JSON.parse(x)),
10904
+ `Failed to parse 'CreateProjectOwasp' from JSON`,
11059
10905
  );
11060
10906
  }
11061
10907
 
11062
10908
  /** @internal */
11063
- export const CreateProjectValue$inboundSchema: z.ZodType<
11064
- CreateProjectValue,
10909
+ export const CreateProjectManagedRules$inboundSchema: z.ZodType<
10910
+ CreateProjectManagedRules,
11065
10911
  z.ZodTypeDef,
11066
10912
  unknown
11067
- > = z.union([z.lazy(() => CreateProjectValue2$inboundSchema), z.string()]);
10913
+ > = z.object({
10914
+ bot_filter: z.lazy(() => CreateProjectBotFilter$inboundSchema),
10915
+ ai_bots: z.lazy(() => CreateProjectAiBots$inboundSchema),
10916
+ owasp: z.lazy(() => CreateProjectOwasp$inboundSchema),
10917
+ }).transform((v) => {
10918
+ return remap$(v, {
10919
+ "bot_filter": "botFilter",
10920
+ "ai_bots": "aiBots",
10921
+ });
10922
+ });
11068
10923
 
11069
10924
  /** @internal */
11070
- export type CreateProjectValue$Outbound = CreateProjectValue2$Outbound | string;
10925
+ export type CreateProjectManagedRules$Outbound = {
10926
+ bot_filter: CreateProjectBotFilter$Outbound;
10927
+ ai_bots: CreateProjectAiBots$Outbound;
10928
+ owasp: CreateProjectOwasp$Outbound;
10929
+ };
11071
10930
 
11072
10931
  /** @internal */
11073
- export const CreateProjectValue$outboundSchema: z.ZodType<
11074
- CreateProjectValue$Outbound,
10932
+ export const CreateProjectManagedRules$outboundSchema: z.ZodType<
10933
+ CreateProjectManagedRules$Outbound,
11075
10934
  z.ZodTypeDef,
11076
- CreateProjectValue
11077
- > = z.union([z.lazy(() => CreateProjectValue2$outboundSchema), z.string()]);
10935
+ CreateProjectManagedRules
10936
+ > = z.object({
10937
+ botFilter: z.lazy(() => CreateProjectBotFilter$outboundSchema),
10938
+ aiBots: z.lazy(() => CreateProjectAiBots$outboundSchema),
10939
+ owasp: z.lazy(() => CreateProjectOwasp$outboundSchema),
10940
+ }).transform((v) => {
10941
+ return remap$(v, {
10942
+ botFilter: "bot_filter",
10943
+ aiBots: "ai_bots",
10944
+ });
10945
+ });
11078
10946
 
11079
10947
  /**
11080
10948
  * @internal
11081
10949
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11082
10950
  */
11083
- export namespace CreateProjectValue$ {
11084
- /** @deprecated use `CreateProjectValue$inboundSchema` instead. */
11085
- export const inboundSchema = CreateProjectValue$inboundSchema;
11086
- /** @deprecated use `CreateProjectValue$outboundSchema` instead. */
11087
- export const outboundSchema = CreateProjectValue$outboundSchema;
11088
- /** @deprecated use `CreateProjectValue$Outbound` instead. */
11089
- export type Outbound = CreateProjectValue$Outbound;
10951
+ export namespace CreateProjectManagedRules$ {
10952
+ /** @deprecated use `CreateProjectManagedRules$inboundSchema` instead. */
10953
+ export const inboundSchema = CreateProjectManagedRules$inboundSchema;
10954
+ /** @deprecated use `CreateProjectManagedRules$outboundSchema` instead. */
10955
+ export const outboundSchema = CreateProjectManagedRules$outboundSchema;
10956
+ /** @deprecated use `CreateProjectManagedRules$Outbound` instead. */
10957
+ export type Outbound = CreateProjectManagedRules$Outbound;
11090
10958
  }
11091
10959
 
11092
- export function createProjectValueToJSON(
11093
- createProjectValue: CreateProjectValue,
10960
+ export function createProjectManagedRulesToJSON(
10961
+ createProjectManagedRules: CreateProjectManagedRules,
11094
10962
  ): string {
11095
10963
  return JSON.stringify(
11096
- CreateProjectValue$outboundSchema.parse(createProjectValue),
10964
+ CreateProjectManagedRules$outboundSchema.parse(createProjectManagedRules),
11097
10965
  );
11098
10966
  }
11099
10967
 
11100
- export function createProjectValueFromJSON(
10968
+ export function createProjectManagedRulesFromJSON(
11101
10969
  jsonString: string,
11102
- ): SafeParseResult<CreateProjectValue, SDKValidationError> {
10970
+ ): SafeParseResult<CreateProjectManagedRules, SDKValidationError> {
11103
10971
  return safeParse(
11104
10972
  jsonString,
11105
- (x) => CreateProjectValue$inboundSchema.parse(JSON.parse(x)),
11106
- `Failed to parse 'CreateProjectValue' from JSON`,
10973
+ (x) => CreateProjectManagedRules$inboundSchema.parse(JSON.parse(x)),
10974
+ `Failed to parse 'CreateProjectManagedRules' from JSON`,
11107
10975
  );
11108
10976
  }
11109
10977
 
11110
10978
  /** @internal */
11111
- export const CreateProjectHas$inboundSchema: z.ZodType<
11112
- CreateProjectHas,
11113
- z.ZodTypeDef,
11114
- unknown
11115
- > = z.object({
11116
- type:
11117
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$inboundSchema,
11118
- key: z.string().optional(),
11119
- value: z.union([z.lazy(() => CreateProjectValue2$inboundSchema), z.string()])
11120
- .optional(),
11121
- });
11122
-
11123
- /** @internal */
11124
- export type CreateProjectHas$Outbound = {
11125
- type: string;
11126
- key?: string | undefined;
11127
- value?: CreateProjectValue2$Outbound | string | undefined;
11128
- };
11129
-
11130
- /** @internal */
11131
- export const CreateProjectHas$outboundSchema: z.ZodType<
11132
- CreateProjectHas$Outbound,
11133
- z.ZodTypeDef,
11134
- CreateProjectHas
11135
- > = z.object({
11136
- type:
11137
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType$outboundSchema,
11138
- key: z.string().optional(),
11139
- value: z.union([z.lazy(() => CreateProjectValue2$outboundSchema), z.string()])
11140
- .optional(),
11141
- });
11142
-
11143
- /**
11144
- * @internal
11145
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11146
- */
11147
- export namespace CreateProjectHas$ {
11148
- /** @deprecated use `CreateProjectHas$inboundSchema` instead. */
11149
- export const inboundSchema = CreateProjectHas$inboundSchema;
11150
- /** @deprecated use `CreateProjectHas$outboundSchema` instead. */
11151
- export const outboundSchema = CreateProjectHas$outboundSchema;
11152
- /** @deprecated use `CreateProjectHas$Outbound` instead. */
11153
- export type Outbound = CreateProjectHas$Outbound;
11154
- }
11155
-
11156
- export function createProjectHasToJSON(
11157
- createProjectHas: CreateProjectHas,
11158
- ): string {
11159
- return JSON.stringify(
11160
- CreateProjectHas$outboundSchema.parse(createProjectHas),
11161
- );
11162
- }
11163
-
11164
- export function createProjectHasFromJSON(
11165
- jsonString: string,
11166
- ): SafeParseResult<CreateProjectHas, SDKValidationError> {
11167
- return safeParse(
11168
- jsonString,
11169
- (x) => CreateProjectHas$inboundSchema.parse(JSON.parse(x)),
11170
- `Failed to parse 'CreateProjectHas' from JSON`,
11171
- );
11172
- }
11173
-
11174
- /** @internal */
11175
- export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema:
11176
- z.ZodNativeEnum<
11177
- typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType
11178
- > = z.nativeEnum(
11179
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType,
11180
- );
11181
-
11182
- /** @internal */
11183
- export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema:
11184
- z.ZodNativeEnum<
11185
- typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType
11186
- > =
11187
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema;
11188
-
11189
- /**
11190
- * @internal
11191
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11192
- */
11193
- export namespace CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$ {
11194
- /** @deprecated use `CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema` instead. */
11195
- export const inboundSchema =
11196
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema;
11197
- /** @deprecated use `CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema` instead. */
11198
- export const outboundSchema =
11199
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema;
11200
- }
11201
-
11202
- /** @internal */
11203
- export const CreateProjectValueProjects2$inboundSchema: z.ZodType<
11204
- CreateProjectValueProjects2,
11205
- z.ZodTypeDef,
11206
- unknown
11207
- > = z.object({
11208
- re: z.string().optional(),
11209
- eq: z.string().optional(),
11210
- neq: z.string().optional(),
11211
- inc: z.array(z.string()).optional(),
11212
- ninc: z.array(z.string()).optional(),
11213
- pre: z.string().optional(),
11214
- suf: z.string().optional(),
11215
- gt: z.number().optional(),
11216
- gte: z.number().optional(),
11217
- lt: z.number().optional(),
11218
- lte: z.number().optional(),
11219
- });
11220
-
11221
- /** @internal */
11222
- export type CreateProjectValueProjects2$Outbound = {
11223
- re?: string | undefined;
11224
- eq?: string | undefined;
11225
- neq?: string | undefined;
11226
- inc?: Array<string> | undefined;
11227
- ninc?: Array<string> | undefined;
11228
- pre?: string | undefined;
11229
- suf?: string | undefined;
11230
- gt?: number | undefined;
11231
- gte?: number | undefined;
11232
- lt?: number | undefined;
11233
- lte?: number | undefined;
11234
- };
11235
-
11236
- /** @internal */
11237
- export const CreateProjectValueProjects2$outboundSchema: z.ZodType<
11238
- CreateProjectValueProjects2$Outbound,
11239
- z.ZodTypeDef,
11240
- CreateProjectValueProjects2
11241
- > = z.object({
11242
- re: z.string().optional(),
11243
- eq: z.string().optional(),
11244
- neq: z.string().optional(),
11245
- inc: z.array(z.string()).optional(),
11246
- ninc: z.array(z.string()).optional(),
11247
- pre: z.string().optional(),
11248
- suf: z.string().optional(),
11249
- gt: z.number().optional(),
11250
- gte: z.number().optional(),
11251
- lt: z.number().optional(),
11252
- lte: z.number().optional(),
11253
- });
11254
-
11255
- /**
11256
- * @internal
11257
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11258
- */
11259
- export namespace CreateProjectValueProjects2$ {
11260
- /** @deprecated use `CreateProjectValueProjects2$inboundSchema` instead. */
11261
- export const inboundSchema = CreateProjectValueProjects2$inboundSchema;
11262
- /** @deprecated use `CreateProjectValueProjects2$outboundSchema` instead. */
11263
- export const outboundSchema = CreateProjectValueProjects2$outboundSchema;
11264
- /** @deprecated use `CreateProjectValueProjects2$Outbound` instead. */
11265
- export type Outbound = CreateProjectValueProjects2$Outbound;
11266
- }
11267
-
11268
- export function createProjectValueProjects2ToJSON(
11269
- createProjectValueProjects2: CreateProjectValueProjects2,
11270
- ): string {
11271
- return JSON.stringify(
11272
- CreateProjectValueProjects2$outboundSchema.parse(
11273
- createProjectValueProjects2,
11274
- ),
11275
- );
11276
- }
11277
-
11278
- export function createProjectValueProjects2FromJSON(
11279
- jsonString: string,
11280
- ): SafeParseResult<CreateProjectValueProjects2, SDKValidationError> {
11281
- return safeParse(
11282
- jsonString,
11283
- (x) => CreateProjectValueProjects2$inboundSchema.parse(JSON.parse(x)),
11284
- `Failed to parse 'CreateProjectValueProjects2' from JSON`,
11285
- );
11286
- }
11287
-
11288
- /** @internal */
11289
- export const CreateProjectProjectsValue$inboundSchema: z.ZodType<
11290
- CreateProjectProjectsValue,
11291
- z.ZodTypeDef,
11292
- unknown
11293
- > = z.union([
11294
- z.lazy(() => CreateProjectValueProjects2$inboundSchema),
11295
- z.string(),
11296
- ]);
11297
-
11298
- /** @internal */
11299
- export type CreateProjectProjectsValue$Outbound =
11300
- | CreateProjectValueProjects2$Outbound
11301
- | string;
11302
-
11303
- /** @internal */
11304
- export const CreateProjectProjectsValue$outboundSchema: z.ZodType<
11305
- CreateProjectProjectsValue$Outbound,
11306
- z.ZodTypeDef,
11307
- CreateProjectProjectsValue
11308
- > = z.union([
11309
- z.lazy(() => CreateProjectValueProjects2$outboundSchema),
11310
- z.string(),
11311
- ]);
11312
-
11313
- /**
11314
- * @internal
11315
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11316
- */
11317
- export namespace CreateProjectProjectsValue$ {
11318
- /** @deprecated use `CreateProjectProjectsValue$inboundSchema` instead. */
11319
- export const inboundSchema = CreateProjectProjectsValue$inboundSchema;
11320
- /** @deprecated use `CreateProjectProjectsValue$outboundSchema` instead. */
11321
- export const outboundSchema = CreateProjectProjectsValue$outboundSchema;
11322
- /** @deprecated use `CreateProjectProjectsValue$Outbound` instead. */
11323
- export type Outbound = CreateProjectProjectsValue$Outbound;
11324
- }
11325
-
11326
- export function createProjectProjectsValueToJSON(
11327
- createProjectProjectsValue: CreateProjectProjectsValue,
11328
- ): string {
11329
- return JSON.stringify(
11330
- CreateProjectProjectsValue$outboundSchema.parse(createProjectProjectsValue),
11331
- );
11332
- }
11333
-
11334
- export function createProjectProjectsValueFromJSON(
11335
- jsonString: string,
11336
- ): SafeParseResult<CreateProjectProjectsValue, SDKValidationError> {
11337
- return safeParse(
11338
- jsonString,
11339
- (x) => CreateProjectProjectsValue$inboundSchema.parse(JSON.parse(x)),
11340
- `Failed to parse 'CreateProjectProjectsValue' from JSON`,
11341
- );
11342
- }
11343
-
11344
- /** @internal */
11345
- export const CreateProjectMissing$inboundSchema: z.ZodType<
11346
- CreateProjectMissing,
11347
- z.ZodTypeDef,
11348
- unknown
11349
- > = z.object({
11350
- type:
11351
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$inboundSchema,
11352
- key: z.string().optional(),
11353
- value: z.union([
11354
- z.lazy(() => CreateProjectValueProjects2$inboundSchema),
11355
- z.string(),
11356
- ]).optional(),
11357
- });
11358
-
11359
- /** @internal */
11360
- export type CreateProjectMissing$Outbound = {
11361
- type: string;
11362
- key?: string | undefined;
11363
- value?: CreateProjectValueProjects2$Outbound | string | undefined;
11364
- };
11365
-
11366
- /** @internal */
11367
- export const CreateProjectMissing$outboundSchema: z.ZodType<
11368
- CreateProjectMissing$Outbound,
11369
- z.ZodTypeDef,
11370
- CreateProjectMissing
11371
- > = z.object({
11372
- type:
11373
- CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType$outboundSchema,
11374
- key: z.string().optional(),
11375
- value: z.union([
11376
- z.lazy(() => CreateProjectValueProjects2$outboundSchema),
11377
- z.string(),
11378
- ]).optional(),
11379
- });
11380
-
11381
- /**
11382
- * @internal
11383
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11384
- */
11385
- export namespace CreateProjectMissing$ {
11386
- /** @deprecated use `CreateProjectMissing$inboundSchema` instead. */
11387
- export const inboundSchema = CreateProjectMissing$inboundSchema;
11388
- /** @deprecated use `CreateProjectMissing$outboundSchema` instead. */
11389
- export const outboundSchema = CreateProjectMissing$outboundSchema;
11390
- /** @deprecated use `CreateProjectMissing$Outbound` instead. */
11391
- export type Outbound = CreateProjectMissing$Outbound;
11392
- }
11393
-
11394
- export function createProjectMissingToJSON(
11395
- createProjectMissing: CreateProjectMissing,
11396
- ): string {
11397
- return JSON.stringify(
11398
- CreateProjectMissing$outboundSchema.parse(createProjectMissing),
11399
- );
11400
- }
11401
-
11402
- export function createProjectMissingFromJSON(
11403
- jsonString: string,
11404
- ): SafeParseResult<CreateProjectMissing, SDKValidationError> {
11405
- return safeParse(
11406
- jsonString,
11407
- (x) => CreateProjectMissing$inboundSchema.parse(JSON.parse(x)),
11408
- `Failed to parse 'CreateProjectMissing' from JSON`,
11409
- );
11410
- }
11411
-
11412
- /** @internal */
11413
- export const CreateProjectHandle$inboundSchema: z.ZodNativeEnum<
11414
- typeof CreateProjectHandle
11415
- > = z.nativeEnum(CreateProjectHandle);
11416
-
11417
- /** @internal */
11418
- export const CreateProjectHandle$outboundSchema: z.ZodNativeEnum<
11419
- typeof CreateProjectHandle
11420
- > = CreateProjectHandle$inboundSchema;
11421
-
11422
- /**
11423
- * @internal
11424
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11425
- */
11426
- export namespace CreateProjectHandle$ {
11427
- /** @deprecated use `CreateProjectHandle$inboundSchema` instead. */
11428
- export const inboundSchema = CreateProjectHandle$inboundSchema;
11429
- /** @deprecated use `CreateProjectHandle$outboundSchema` instead. */
11430
- export const outboundSchema = CreateProjectHandle$outboundSchema;
11431
- }
11432
-
11433
- /** @internal */
11434
- export const CreateProjectAction$inboundSchema: z.ZodNativeEnum<
11435
- typeof CreateProjectAction
11436
- > = z.nativeEnum(CreateProjectAction);
11437
-
11438
- /** @internal */
11439
- export const CreateProjectAction$outboundSchema: z.ZodNativeEnum<
11440
- typeof CreateProjectAction
11441
- > = CreateProjectAction$inboundSchema;
11442
-
11443
- /**
11444
- * @internal
11445
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11446
- */
11447
- export namespace CreateProjectAction$ {
11448
- /** @deprecated use `CreateProjectAction$inboundSchema` instead. */
11449
- export const inboundSchema = CreateProjectAction$inboundSchema;
11450
- /** @deprecated use `CreateProjectAction$outboundSchema` instead. */
11451
- export const outboundSchema = CreateProjectAction$outboundSchema;
11452
- }
11453
-
11454
- /** @internal */
11455
- export const CreateProjectAlgo$inboundSchema: z.ZodNativeEnum<
11456
- typeof CreateProjectAlgo
11457
- > = z.nativeEnum(CreateProjectAlgo);
11458
-
11459
- /** @internal */
11460
- export const CreateProjectAlgo$outboundSchema: z.ZodNativeEnum<
11461
- typeof CreateProjectAlgo
11462
- > = CreateProjectAlgo$inboundSchema;
11463
-
11464
- /**
11465
- * @internal
11466
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11467
- */
11468
- export namespace CreateProjectAlgo$ {
11469
- /** @deprecated use `CreateProjectAlgo$inboundSchema` instead. */
11470
- export const inboundSchema = CreateProjectAlgo$inboundSchema;
11471
- /** @deprecated use `CreateProjectAlgo$outboundSchema` instead. */
11472
- export const outboundSchema = CreateProjectAlgo$outboundSchema;
11473
- }
11474
-
11475
- /** @internal */
11476
- export const CreateProjectErl$inboundSchema: z.ZodType<
11477
- CreateProjectErl,
11478
- z.ZodTypeDef,
11479
- unknown
11480
- > = z.object({
11481
- algo: CreateProjectAlgo$inboundSchema,
11482
- window: z.number(),
11483
- limit: z.number(),
11484
- keys: z.array(z.string()),
11485
- });
11486
-
11487
- /** @internal */
11488
- export type CreateProjectErl$Outbound = {
11489
- algo: string;
11490
- window: number;
11491
- limit: number;
11492
- keys: Array<string>;
11493
- };
11494
-
11495
- /** @internal */
11496
- export const CreateProjectErl$outboundSchema: z.ZodType<
11497
- CreateProjectErl$Outbound,
11498
- z.ZodTypeDef,
11499
- CreateProjectErl
11500
- > = z.object({
11501
- algo: CreateProjectAlgo$outboundSchema,
11502
- window: z.number(),
11503
- limit: z.number(),
11504
- keys: z.array(z.string()),
11505
- });
11506
-
11507
- /**
11508
- * @internal
11509
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11510
- */
11511
- export namespace CreateProjectErl$ {
11512
- /** @deprecated use `CreateProjectErl$inboundSchema` instead. */
11513
- export const inboundSchema = CreateProjectErl$inboundSchema;
11514
- /** @deprecated use `CreateProjectErl$outboundSchema` instead. */
11515
- export const outboundSchema = CreateProjectErl$outboundSchema;
11516
- /** @deprecated use `CreateProjectErl$Outbound` instead. */
11517
- export type Outbound = CreateProjectErl$Outbound;
11518
- }
11519
-
11520
- export function createProjectErlToJSON(
11521
- createProjectErl: CreateProjectErl,
11522
- ): string {
11523
- return JSON.stringify(
11524
- CreateProjectErl$outboundSchema.parse(createProjectErl),
11525
- );
11526
- }
11527
-
11528
- export function createProjectErlFromJSON(
11529
- jsonString: string,
11530
- ): SafeParseResult<CreateProjectErl, SDKValidationError> {
11531
- return safeParse(
11532
- jsonString,
11533
- (x) => CreateProjectErl$inboundSchema.parse(JSON.parse(x)),
11534
- `Failed to parse 'CreateProjectErl' from JSON`,
11535
- );
11536
- }
11537
-
11538
- /** @internal */
11539
- export const CreateProjectMitigate$inboundSchema: z.ZodType<
11540
- CreateProjectMitigate,
11541
- z.ZodTypeDef,
11542
- unknown
11543
- > = z.object({
11544
- action: CreateProjectAction$inboundSchema,
11545
- rule_id: z.string(),
11546
- ttl: z.number().optional(),
11547
- erl: z.lazy(() => CreateProjectErl$inboundSchema).optional(),
11548
- }).transform((v) => {
11549
- return remap$(v, {
11550
- "rule_id": "ruleId",
11551
- });
11552
- });
11553
-
11554
- /** @internal */
11555
- export type CreateProjectMitigate$Outbound = {
11556
- action: string;
11557
- rule_id: string;
11558
- ttl?: number | undefined;
11559
- erl?: CreateProjectErl$Outbound | undefined;
11560
- };
11561
-
11562
- /** @internal */
11563
- export const CreateProjectMitigate$outboundSchema: z.ZodType<
11564
- CreateProjectMitigate$Outbound,
11565
- z.ZodTypeDef,
11566
- CreateProjectMitigate
11567
- > = z.object({
11568
- action: CreateProjectAction$outboundSchema,
11569
- ruleId: z.string(),
11570
- ttl: z.number().optional(),
11571
- erl: z.lazy(() => CreateProjectErl$outboundSchema).optional(),
11572
- }).transform((v) => {
11573
- return remap$(v, {
11574
- ruleId: "rule_id",
11575
- });
11576
- });
11577
-
11578
- /**
11579
- * @internal
11580
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11581
- */
11582
- export namespace CreateProjectMitigate$ {
11583
- /** @deprecated use `CreateProjectMitigate$inboundSchema` instead. */
11584
- export const inboundSchema = CreateProjectMitigate$inboundSchema;
11585
- /** @deprecated use `CreateProjectMitigate$outboundSchema` instead. */
11586
- export const outboundSchema = CreateProjectMitigate$outboundSchema;
11587
- /** @deprecated use `CreateProjectMitigate$Outbound` instead. */
11588
- export type Outbound = CreateProjectMitigate$Outbound;
11589
- }
11590
-
11591
- export function createProjectMitigateToJSON(
11592
- createProjectMitigate: CreateProjectMitigate,
11593
- ): string {
11594
- return JSON.stringify(
11595
- CreateProjectMitigate$outboundSchema.parse(createProjectMitigate),
11596
- );
11597
- }
11598
-
11599
- export function createProjectMitigateFromJSON(
11600
- jsonString: string,
11601
- ): SafeParseResult<CreateProjectMitigate, SDKValidationError> {
11602
- return safeParse(
11603
- jsonString,
11604
- (x) => CreateProjectMitigate$inboundSchema.parse(JSON.parse(x)),
11605
- `Failed to parse 'CreateProjectMitigate' from JSON`,
11606
- );
11607
- }
11608
-
11609
- /** @internal */
11610
- export const CreateProjectFirewallRoutes$inboundSchema: z.ZodType<
11611
- CreateProjectFirewallRoutes,
11612
- z.ZodTypeDef,
11613
- unknown
11614
- > = z.object({
11615
- src: z.union([z.lazy(() => CreateProjectSrc2$inboundSchema), z.string()])
11616
- .optional(),
11617
- has: z.array(z.lazy(() => CreateProjectHas$inboundSchema)).optional(),
11618
- missing: z.array(z.lazy(() => CreateProjectMissing$inboundSchema)).optional(),
11619
- dest: z.string().optional(),
11620
- status: z.number().optional(),
11621
- handle: CreateProjectHandle$inboundSchema.optional(),
11622
- mitigate: z.lazy(() => CreateProjectMitigate$inboundSchema).optional(),
11623
- });
11624
-
11625
- /** @internal */
11626
- export type CreateProjectFirewallRoutes$Outbound = {
11627
- src?: CreateProjectSrc2$Outbound | string | undefined;
11628
- has?: Array<CreateProjectHas$Outbound> | undefined;
11629
- missing?: Array<CreateProjectMissing$Outbound> | undefined;
11630
- dest?: string | undefined;
11631
- status?: number | undefined;
11632
- handle?: string | undefined;
11633
- mitigate?: CreateProjectMitigate$Outbound | undefined;
11634
- };
11635
-
11636
- /** @internal */
11637
- export const CreateProjectFirewallRoutes$outboundSchema: z.ZodType<
11638
- CreateProjectFirewallRoutes$Outbound,
11639
- z.ZodTypeDef,
11640
- CreateProjectFirewallRoutes
11641
- > = z.object({
11642
- src: z.union([z.lazy(() => CreateProjectSrc2$outboundSchema), z.string()])
11643
- .optional(),
11644
- has: z.array(z.lazy(() => CreateProjectHas$outboundSchema)).optional(),
11645
- missing: z.array(z.lazy(() => CreateProjectMissing$outboundSchema))
11646
- .optional(),
11647
- dest: z.string().optional(),
11648
- status: z.number().optional(),
11649
- handle: CreateProjectHandle$outboundSchema.optional(),
11650
- mitigate: z.lazy(() => CreateProjectMitigate$outboundSchema).optional(),
11651
- });
11652
-
11653
- /**
11654
- * @internal
11655
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11656
- */
11657
- export namespace CreateProjectFirewallRoutes$ {
11658
- /** @deprecated use `CreateProjectFirewallRoutes$inboundSchema` instead. */
11659
- export const inboundSchema = CreateProjectFirewallRoutes$inboundSchema;
11660
- /** @deprecated use `CreateProjectFirewallRoutes$outboundSchema` instead. */
11661
- export const outboundSchema = CreateProjectFirewallRoutes$outboundSchema;
11662
- /** @deprecated use `CreateProjectFirewallRoutes$Outbound` instead. */
11663
- export type Outbound = CreateProjectFirewallRoutes$Outbound;
11664
- }
11665
-
11666
- export function createProjectFirewallRoutesToJSON(
11667
- createProjectFirewallRoutes: CreateProjectFirewallRoutes,
11668
- ): string {
11669
- return JSON.stringify(
11670
- CreateProjectFirewallRoutes$outboundSchema.parse(
11671
- createProjectFirewallRoutes,
11672
- ),
11673
- );
11674
- }
11675
-
11676
- export function createProjectFirewallRoutesFromJSON(
11677
- jsonString: string,
11678
- ): SafeParseResult<CreateProjectFirewallRoutes, SDKValidationError> {
11679
- return safeParse(
11680
- jsonString,
11681
- (x) => CreateProjectFirewallRoutes$inboundSchema.parse(JSON.parse(x)),
11682
- `Failed to parse 'CreateProjectFirewallRoutes' from JSON`,
11683
- );
11684
- }
11685
-
11686
- /** @internal */
11687
- export const CreateProjectProjectsAction$inboundSchema: z.ZodNativeEnum<
11688
- typeof CreateProjectProjectsAction
11689
- > = z.nativeEnum(CreateProjectProjectsAction);
11690
-
11691
- /** @internal */
11692
- export const CreateProjectProjectsAction$outboundSchema: z.ZodNativeEnum<
11693
- typeof CreateProjectProjectsAction
11694
- > = CreateProjectProjectsAction$inboundSchema;
11695
-
11696
- /**
11697
- * @internal
11698
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11699
- */
11700
- export namespace CreateProjectProjectsAction$ {
11701
- /** @deprecated use `CreateProjectProjectsAction$inboundSchema` instead. */
11702
- export const inboundSchema = CreateProjectProjectsAction$inboundSchema;
11703
- /** @deprecated use `CreateProjectProjectsAction$outboundSchema` instead. */
11704
- export const outboundSchema = CreateProjectProjectsAction$outboundSchema;
11705
- }
11706
-
11707
- /** @internal */
11708
- export const CreateProjectBotFilter$inboundSchema: z.ZodType<
11709
- CreateProjectBotFilter,
11710
- z.ZodTypeDef,
11711
- unknown
11712
- > = z.object({
11713
- active: z.boolean(),
11714
- action: CreateProjectProjectsAction$inboundSchema.optional(),
11715
- });
11716
-
11717
- /** @internal */
11718
- export type CreateProjectBotFilter$Outbound = {
11719
- active: boolean;
11720
- action?: string | undefined;
11721
- };
11722
-
11723
- /** @internal */
11724
- export const CreateProjectBotFilter$outboundSchema: z.ZodType<
11725
- CreateProjectBotFilter$Outbound,
11726
- z.ZodTypeDef,
11727
- CreateProjectBotFilter
11728
- > = z.object({
11729
- active: z.boolean(),
11730
- action: CreateProjectProjectsAction$outboundSchema.optional(),
11731
- });
11732
-
11733
- /**
11734
- * @internal
11735
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11736
- */
11737
- export namespace CreateProjectBotFilter$ {
11738
- /** @deprecated use `CreateProjectBotFilter$inboundSchema` instead. */
11739
- export const inboundSchema = CreateProjectBotFilter$inboundSchema;
11740
- /** @deprecated use `CreateProjectBotFilter$outboundSchema` instead. */
11741
- export const outboundSchema = CreateProjectBotFilter$outboundSchema;
11742
- /** @deprecated use `CreateProjectBotFilter$Outbound` instead. */
11743
- export type Outbound = CreateProjectBotFilter$Outbound;
11744
- }
11745
-
11746
- export function createProjectBotFilterToJSON(
11747
- createProjectBotFilter: CreateProjectBotFilter,
11748
- ): string {
11749
- return JSON.stringify(
11750
- CreateProjectBotFilter$outboundSchema.parse(createProjectBotFilter),
11751
- );
11752
- }
11753
-
11754
- export function createProjectBotFilterFromJSON(
11755
- jsonString: string,
11756
- ): SafeParseResult<CreateProjectBotFilter, SDKValidationError> {
11757
- return safeParse(
11758
- jsonString,
11759
- (x) => CreateProjectBotFilter$inboundSchema.parse(JSON.parse(x)),
11760
- `Failed to parse 'CreateProjectBotFilter' from JSON`,
11761
- );
11762
- }
11763
-
11764
- /** @internal */
11765
- export const CreateProjectProjectsResponseAction$inboundSchema: z.ZodNativeEnum<
11766
- typeof CreateProjectProjectsResponseAction
11767
- > = z.nativeEnum(CreateProjectProjectsResponseAction);
11768
-
11769
- /** @internal */
11770
- export const CreateProjectProjectsResponseAction$outboundSchema:
11771
- z.ZodNativeEnum<typeof CreateProjectProjectsResponseAction> =
11772
- CreateProjectProjectsResponseAction$inboundSchema;
11773
-
11774
- /**
11775
- * @internal
11776
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11777
- */
11778
- export namespace CreateProjectProjectsResponseAction$ {
11779
- /** @deprecated use `CreateProjectProjectsResponseAction$inboundSchema` instead. */
11780
- export const inboundSchema =
11781
- CreateProjectProjectsResponseAction$inboundSchema;
11782
- /** @deprecated use `CreateProjectProjectsResponseAction$outboundSchema` instead. */
11783
- export const outboundSchema =
11784
- CreateProjectProjectsResponseAction$outboundSchema;
11785
- }
11786
-
11787
- /** @internal */
11788
- export const CreateProjectAiBots$inboundSchema: z.ZodType<
11789
- CreateProjectAiBots,
11790
- z.ZodTypeDef,
11791
- unknown
11792
- > = z.object({
11793
- active: z.boolean(),
11794
- action: CreateProjectProjectsResponseAction$inboundSchema.optional(),
11795
- });
11796
-
11797
- /** @internal */
11798
- export type CreateProjectAiBots$Outbound = {
11799
- active: boolean;
11800
- action?: string | undefined;
11801
- };
11802
-
11803
- /** @internal */
11804
- export const CreateProjectAiBots$outboundSchema: z.ZodType<
11805
- CreateProjectAiBots$Outbound,
11806
- z.ZodTypeDef,
11807
- CreateProjectAiBots
11808
- > = z.object({
11809
- active: z.boolean(),
11810
- action: CreateProjectProjectsResponseAction$outboundSchema.optional(),
11811
- });
11812
-
11813
- /**
11814
- * @internal
11815
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11816
- */
11817
- export namespace CreateProjectAiBots$ {
11818
- /** @deprecated use `CreateProjectAiBots$inboundSchema` instead. */
11819
- export const inboundSchema = CreateProjectAiBots$inboundSchema;
11820
- /** @deprecated use `CreateProjectAiBots$outboundSchema` instead. */
11821
- export const outboundSchema = CreateProjectAiBots$outboundSchema;
11822
- /** @deprecated use `CreateProjectAiBots$Outbound` instead. */
11823
- export type Outbound = CreateProjectAiBots$Outbound;
11824
- }
11825
-
11826
- export function createProjectAiBotsToJSON(
11827
- createProjectAiBots: CreateProjectAiBots,
11828
- ): string {
11829
- return JSON.stringify(
11830
- CreateProjectAiBots$outboundSchema.parse(createProjectAiBots),
11831
- );
11832
- }
11833
-
11834
- export function createProjectAiBotsFromJSON(
11835
- jsonString: string,
11836
- ): SafeParseResult<CreateProjectAiBots, SDKValidationError> {
11837
- return safeParse(
11838
- jsonString,
11839
- (x) => CreateProjectAiBots$inboundSchema.parse(JSON.parse(x)),
11840
- `Failed to parse 'CreateProjectAiBots' from JSON`,
11841
- );
11842
- }
11843
-
11844
- /** @internal */
11845
- export const CreateProjectProjectsResponse200Action$inboundSchema:
11846
- z.ZodNativeEnum<typeof CreateProjectProjectsResponse200Action> = z.nativeEnum(
11847
- CreateProjectProjectsResponse200Action,
11848
- );
11849
-
11850
- /** @internal */
11851
- export const CreateProjectProjectsResponse200Action$outboundSchema:
11852
- z.ZodNativeEnum<typeof CreateProjectProjectsResponse200Action> =
11853
- CreateProjectProjectsResponse200Action$inboundSchema;
11854
-
11855
- /**
11856
- * @internal
11857
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11858
- */
11859
- export namespace CreateProjectProjectsResponse200Action$ {
11860
- /** @deprecated use `CreateProjectProjectsResponse200Action$inboundSchema` instead. */
11861
- export const inboundSchema =
11862
- CreateProjectProjectsResponse200Action$inboundSchema;
11863
- /** @deprecated use `CreateProjectProjectsResponse200Action$outboundSchema` instead. */
11864
- export const outboundSchema =
11865
- CreateProjectProjectsResponse200Action$outboundSchema;
11866
- }
11867
-
11868
- /** @internal */
11869
- export const CreateProjectOwasp$inboundSchema: z.ZodType<
11870
- CreateProjectOwasp,
11871
- z.ZodTypeDef,
11872
- unknown
11873
- > = z.object({
11874
- active: z.boolean(),
11875
- action: CreateProjectProjectsResponse200Action$inboundSchema.optional(),
11876
- });
11877
-
11878
- /** @internal */
11879
- export type CreateProjectOwasp$Outbound = {
11880
- active: boolean;
11881
- action?: string | undefined;
11882
- };
11883
-
11884
- /** @internal */
11885
- export const CreateProjectOwasp$outboundSchema: z.ZodType<
11886
- CreateProjectOwasp$Outbound,
11887
- z.ZodTypeDef,
11888
- CreateProjectOwasp
11889
- > = z.object({
11890
- active: z.boolean(),
11891
- action: CreateProjectProjectsResponse200Action$outboundSchema.optional(),
11892
- });
11893
-
11894
- /**
11895
- * @internal
11896
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11897
- */
11898
- export namespace CreateProjectOwasp$ {
11899
- /** @deprecated use `CreateProjectOwasp$inboundSchema` instead. */
11900
- export const inboundSchema = CreateProjectOwasp$inboundSchema;
11901
- /** @deprecated use `CreateProjectOwasp$outboundSchema` instead. */
11902
- export const outboundSchema = CreateProjectOwasp$outboundSchema;
11903
- /** @deprecated use `CreateProjectOwasp$Outbound` instead. */
11904
- export type Outbound = CreateProjectOwasp$Outbound;
11905
- }
11906
-
11907
- export function createProjectOwaspToJSON(
11908
- createProjectOwasp: CreateProjectOwasp,
11909
- ): string {
11910
- return JSON.stringify(
11911
- CreateProjectOwasp$outboundSchema.parse(createProjectOwasp),
11912
- );
11913
- }
11914
-
11915
- export function createProjectOwaspFromJSON(
11916
- jsonString: string,
11917
- ): SafeParseResult<CreateProjectOwasp, SDKValidationError> {
11918
- return safeParse(
11919
- jsonString,
11920
- (x) => CreateProjectOwasp$inboundSchema.parse(JSON.parse(x)),
11921
- `Failed to parse 'CreateProjectOwasp' from JSON`,
11922
- );
11923
- }
11924
-
11925
- /** @internal */
11926
- export const CreateProjectManagedRules$inboundSchema: z.ZodType<
11927
- CreateProjectManagedRules,
11928
- z.ZodTypeDef,
11929
- unknown
11930
- > = z.object({
11931
- bot_filter: z.lazy(() => CreateProjectBotFilter$inboundSchema),
11932
- ai_bots: z.lazy(() => CreateProjectAiBots$inboundSchema),
11933
- owasp: z.lazy(() => CreateProjectOwasp$inboundSchema),
11934
- }).transform((v) => {
11935
- return remap$(v, {
11936
- "bot_filter": "botFilter",
11937
- "ai_bots": "aiBots",
11938
- });
11939
- });
11940
-
11941
- /** @internal */
11942
- export type CreateProjectManagedRules$Outbound = {
11943
- bot_filter: CreateProjectBotFilter$Outbound;
11944
- ai_bots: CreateProjectAiBots$Outbound;
11945
- owasp: CreateProjectOwasp$Outbound;
11946
- };
11947
-
11948
- /** @internal */
11949
- export const CreateProjectManagedRules$outboundSchema: z.ZodType<
11950
- CreateProjectManagedRules$Outbound,
11951
- z.ZodTypeDef,
11952
- CreateProjectManagedRules
11953
- > = z.object({
11954
- botFilter: z.lazy(() => CreateProjectBotFilter$outboundSchema),
11955
- aiBots: z.lazy(() => CreateProjectAiBots$outboundSchema),
11956
- owasp: z.lazy(() => CreateProjectOwasp$outboundSchema),
11957
- }).transform((v) => {
11958
- return remap$(v, {
11959
- botFilter: "bot_filter",
11960
- aiBots: "ai_bots",
11961
- });
11962
- });
11963
-
11964
- /**
11965
- * @internal
11966
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11967
- */
11968
- export namespace CreateProjectManagedRules$ {
11969
- /** @deprecated use `CreateProjectManagedRules$inboundSchema` instead. */
11970
- export const inboundSchema = CreateProjectManagedRules$inboundSchema;
11971
- /** @deprecated use `CreateProjectManagedRules$outboundSchema` instead. */
11972
- export const outboundSchema = CreateProjectManagedRules$outboundSchema;
11973
- /** @deprecated use `CreateProjectManagedRules$Outbound` instead. */
11974
- export type Outbound = CreateProjectManagedRules$Outbound;
11975
- }
11976
-
11977
- export function createProjectManagedRulesToJSON(
11978
- createProjectManagedRules: CreateProjectManagedRules,
11979
- ): string {
11980
- return JSON.stringify(
11981
- CreateProjectManagedRules$outboundSchema.parse(createProjectManagedRules),
11982
- );
11983
- }
11984
-
11985
- export function createProjectManagedRulesFromJSON(
11986
- jsonString: string,
11987
- ): SafeParseResult<CreateProjectManagedRules, SDKValidationError> {
11988
- return safeParse(
11989
- jsonString,
11990
- (x) => CreateProjectManagedRules$inboundSchema.parse(JSON.parse(x)),
11991
- `Failed to parse 'CreateProjectManagedRules' from JSON`,
11992
- );
11993
- }
11994
-
11995
- /** @internal */
11996
- export const CreateProjectSecurity$inboundSchema: z.ZodType<
11997
- CreateProjectSecurity,
10979
+ export const CreateProjectSecurity$inboundSchema: z.ZodType<
10980
+ CreateProjectSecurity,
11998
10981
  z.ZodTypeDef,
11999
10982
  unknown
12000
10983
  > = z.object({
@@ -12004,9 +10987,6 @@ export const CreateProjectSecurity$inboundSchema: z.ZodType<
12004
10987
  firewallUpdatedAt: z.number().optional(),
12005
10988
  attackModeActiveUntil: z.nullable(z.number()).optional(),
12006
10989
  firewallConfigVersion: z.number().optional(),
12007
- firewallRoutes: z.array(
12008
- z.lazy(() => CreateProjectFirewallRoutes$inboundSchema),
12009
- ).optional(),
12010
10990
  firewallSeawallEnabled: z.boolean().optional(),
12011
10991
  ja3Enabled: z.boolean().optional(),
12012
10992
  ja4Enabled: z.boolean().optional(),
@@ -12025,7 +11005,6 @@ export type CreateProjectSecurity$Outbound = {
12025
11005
  firewallUpdatedAt?: number | undefined;
12026
11006
  attackModeActiveUntil?: number | null | undefined;
12027
11007
  firewallConfigVersion?: number | undefined;
12028
- firewallRoutes?: Array<CreateProjectFirewallRoutes$Outbound> | undefined;
12029
11008
  firewallSeawallEnabled?: boolean | undefined;
12030
11009
  ja3Enabled?: boolean | undefined;
12031
11010
  ja4Enabled?: boolean | undefined;
@@ -12046,9 +11025,6 @@ export const CreateProjectSecurity$outboundSchema: z.ZodType<
12046
11025
  firewallUpdatedAt: z.number().optional(),
12047
11026
  attackModeActiveUntil: z.nullable(z.number()).optional(),
12048
11027
  firewallConfigVersion: z.number().optional(),
12049
- firewallRoutes: z.array(
12050
- z.lazy(() => CreateProjectFirewallRoutes$outboundSchema),
12051
- ).optional(),
12052
11028
  firewallSeawallEnabled: z.boolean().optional(),
12053
11029
  ja3Enabled: z.boolean().optional(),
12054
11030
  ja4Enabled: z.boolean().optional(),