cribl-control-plane 0.5.0-beta.13 → 0.5.0-beta.14

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 (247) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/models/azureblobcollectorconf.d.ts +444 -0
  4. package/dist/commonjs/models/azureblobcollectorconf.d.ts.map +1 -0
  5. package/dist/commonjs/models/azureblobcollectorconf.js +324 -0
  6. package/dist/commonjs/models/azureblobcollectorconf.js.map +1 -0
  7. package/dist/commonjs/models/collector.d.ts +26 -0
  8. package/dist/commonjs/models/collector.d.ts.map +1 -0
  9. package/dist/commonjs/models/{collectorconf.js → collector.js} +22 -22
  10. package/dist/commonjs/models/collector.js.map +1 -0
  11. package/dist/commonjs/models/collectorazureblob.d.ts +10 -722
  12. package/dist/commonjs/models/collectorazureblob.d.ts.map +1 -1
  13. package/dist/commonjs/models/collectorazureblob.js +8 -478
  14. package/dist/commonjs/models/collectorazureblob.js.map +1 -1
  15. package/dist/commonjs/models/collectorcribllake.d.ts +7 -6
  16. package/dist/commonjs/models/collectorcribllake.d.ts.map +1 -1
  17. package/dist/commonjs/models/collectorcribllake.js +3 -2
  18. package/dist/commonjs/models/collectorcribllake.js.map +1 -1
  19. package/dist/commonjs/models/collectordatabase.d.ts +7 -58
  20. package/dist/commonjs/models/collectordatabase.d.ts.map +1 -1
  21. package/dist/commonjs/models/collectordatabase.js +4 -57
  22. package/dist/commonjs/models/collectordatabase.js.map +1 -1
  23. package/dist/commonjs/models/collectorfilesystem.d.ts +7 -47
  24. package/dist/commonjs/models/collectorfilesystem.d.ts.map +1 -1
  25. package/dist/commonjs/models/collectorfilesystem.js +4 -31
  26. package/dist/commonjs/models/collectorfilesystem.js.map +1 -1
  27. package/dist/commonjs/models/collectorgooglecloudstorage.d.ts +10 -394
  28. package/dist/commonjs/models/collectorgooglecloudstorage.d.ts.map +1 -1
  29. package/dist/commonjs/models/collectorgooglecloudstorage.js +8 -262
  30. package/dist/commonjs/models/collectorgooglecloudstorage.js.map +1 -1
  31. package/dist/commonjs/models/collectorhealthcheck.d.ts +12 -3790
  32. package/dist/commonjs/models/collectorhealthcheck.d.ts.map +1 -1
  33. package/dist/commonjs/models/collectorhealthcheck.js +8 -2890
  34. package/dist/commonjs/models/collectorhealthcheck.js.map +1 -1
  35. package/dist/commonjs/models/collectorrest.d.ts +12 -6524
  36. package/dist/commonjs/models/collectorrest.d.ts.map +1 -1
  37. package/dist/commonjs/models/collectorrest.js +8 -5311
  38. package/dist/commonjs/models/collectorrest.js.map +1 -1
  39. package/dist/commonjs/models/collectors3.d.ts +10 -1158
  40. package/dist/commonjs/models/collectors3.d.ts.map +1 -1
  41. package/dist/commonjs/models/collectors3.js +8 -740
  42. package/dist/commonjs/models/collectors3.js.map +1 -1
  43. package/dist/commonjs/models/collectorscript.d.ts +7 -42
  44. package/dist/commonjs/models/collectorscript.d.ts.map +1 -1
  45. package/dist/commonjs/models/collectorscript.js +4 -28
  46. package/dist/commonjs/models/collectorscript.js.map +1 -1
  47. package/dist/commonjs/models/collectorsplunk.d.ts +10 -1937
  48. package/dist/commonjs/models/collectorsplunk.d.ts.map +1 -1
  49. package/dist/commonjs/models/collectorsplunk.js +8 -1434
  50. package/dist/commonjs/models/collectorsplunk.js.map +1 -1
  51. package/dist/commonjs/models/cribllakecollectorconf.d.ts +20 -0
  52. package/dist/commonjs/models/cribllakecollectorconf.d.ts.map +1 -0
  53. package/dist/commonjs/models/{criblevent.js → cribllakecollectorconf.js} +17 -8
  54. package/dist/commonjs/models/cribllakecollectorconf.js.map +1 -0
  55. package/dist/commonjs/models/databasecollectorconf.d.ts +72 -0
  56. package/dist/commonjs/models/databasecollectorconf.d.ts.map +1 -0
  57. package/dist/commonjs/models/databasecollectorconf.js +112 -0
  58. package/dist/commonjs/models/databasecollectorconf.js.map +1 -0
  59. package/dist/commonjs/models/filesystemcollectorconf.d.ts +61 -0
  60. package/dist/commonjs/models/filesystemcollectorconf.d.ts.map +1 -0
  61. package/dist/commonjs/models/filesystemcollectorconf.js +84 -0
  62. package/dist/commonjs/models/filesystemcollectorconf.js.map +1 -0
  63. package/dist/commonjs/models/googlecloudstoragecollectorconf.d.ts +284 -0
  64. package/dist/commonjs/models/googlecloudstoragecollectorconf.d.ts.map +1 -0
  65. package/dist/commonjs/models/googlecloudstoragecollectorconf.js +228 -0
  66. package/dist/commonjs/models/googlecloudstoragecollectorconf.js.map +1 -0
  67. package/dist/commonjs/models/healthcheckcollectorconf.d.ts +2460 -0
  68. package/dist/commonjs/models/healthcheckcollectorconf.d.ts.map +1 -0
  69. package/dist/commonjs/models/healthcheckcollectorconf.js +2097 -0
  70. package/dist/commonjs/models/healthcheckcollectorconf.js.map +1 -0
  71. package/dist/commonjs/models/index.d.ts +11 -2
  72. package/dist/commonjs/models/index.d.ts.map +1 -1
  73. package/dist/commonjs/models/index.js +11 -2
  74. package/dist/commonjs/models/index.js.map +1 -1
  75. package/dist/commonjs/models/outputtestrequest.d.ts +6 -3
  76. package/dist/commonjs/models/outputtestrequest.d.ts.map +1 -1
  77. package/dist/commonjs/models/outputtestrequest.js +1 -2
  78. package/dist/commonjs/models/outputtestrequest.js.map +1 -1
  79. package/dist/commonjs/models/restcollectorconf.d.ts +5150 -0
  80. package/dist/commonjs/models/restcollectorconf.d.ts.map +1 -0
  81. package/dist/commonjs/models/restcollectorconf.js +4771 -0
  82. package/dist/commonjs/models/restcollectorconf.js.map +1 -0
  83. package/dist/commonjs/models/runnablejobcollection.d.ts +5 -23
  84. package/dist/commonjs/models/runnablejobcollection.d.ts.map +1 -1
  85. package/dist/commonjs/models/runnablejobcollection.js +3 -14
  86. package/dist/commonjs/models/runnablejobcollection.js.map +1 -1
  87. package/dist/commonjs/models/s3collectorconf.d.ts +929 -0
  88. package/dist/commonjs/models/s3collectorconf.d.ts.map +1 -0
  89. package/dist/commonjs/models/s3collectorconf.js +632 -0
  90. package/dist/commonjs/models/s3collectorconf.js.map +1 -0
  91. package/dist/commonjs/models/savedjobcollection.d.ts +6 -34
  92. package/dist/commonjs/models/savedjobcollection.d.ts.map +1 -1
  93. package/dist/commonjs/models/savedjobcollection.js +4 -26
  94. package/dist/commonjs/models/savedjobcollection.js.map +1 -1
  95. package/dist/commonjs/models/scriptcollectorconf.d.ts +56 -0
  96. package/dist/commonjs/models/scriptcollectorconf.d.ts.map +1 -0
  97. package/dist/commonjs/models/scriptcollectorconf.js +83 -0
  98. package/dist/commonjs/models/scriptcollectorconf.js.map +1 -0
  99. package/dist/commonjs/models/splunkcollectorconf.d.ts +1639 -0
  100. package/dist/commonjs/models/splunkcollectorconf.d.ts.map +1 -0
  101. package/dist/commonjs/models/splunkcollectorconf.js +1319 -0
  102. package/dist/commonjs/models/splunkcollectorconf.js.map +1 -0
  103. package/dist/esm/lib/config.d.ts +3 -3
  104. package/dist/esm/lib/config.js +3 -3
  105. package/dist/esm/models/azureblobcollectorconf.d.ts +444 -0
  106. package/dist/esm/models/azureblobcollectorconf.d.ts.map +1 -0
  107. package/dist/esm/models/azureblobcollectorconf.js +268 -0
  108. package/dist/esm/models/azureblobcollectorconf.js.map +1 -0
  109. package/dist/esm/models/collector.d.ts +26 -0
  110. package/dist/esm/models/collector.d.ts.map +1 -0
  111. package/dist/esm/models/{collectorconf.js → collector.js} +19 -19
  112. package/dist/esm/models/collector.js.map +1 -0
  113. package/dist/esm/models/collectorazureblob.d.ts +10 -722
  114. package/dist/esm/models/collectorazureblob.d.ts.map +1 -1
  115. package/dist/esm/models/collectorazureblob.js +7 -453
  116. package/dist/esm/models/collectorazureblob.js.map +1 -1
  117. package/dist/esm/models/collectorcribllake.d.ts +7 -6
  118. package/dist/esm/models/collectorcribllake.d.ts.map +1 -1
  119. package/dist/esm/models/collectorcribllake.js +3 -2
  120. package/dist/esm/models/collectorcribllake.js.map +1 -1
  121. package/dist/esm/models/collectordatabase.d.ts +7 -58
  122. package/dist/esm/models/collectordatabase.d.ts.map +1 -1
  123. package/dist/esm/models/collectordatabase.js +3 -52
  124. package/dist/esm/models/collectordatabase.js.map +1 -1
  125. package/dist/esm/models/collectorfilesystem.d.ts +7 -47
  126. package/dist/esm/models/collectorfilesystem.d.ts.map +1 -1
  127. package/dist/esm/models/collectorfilesystem.js +3 -28
  128. package/dist/esm/models/collectorfilesystem.js.map +1 -1
  129. package/dist/esm/models/collectorgooglecloudstorage.d.ts +10 -394
  130. package/dist/esm/models/collectorgooglecloudstorage.d.ts.map +1 -1
  131. package/dist/esm/models/collectorgooglecloudstorage.js +7 -249
  132. package/dist/esm/models/collectorgooglecloudstorage.js.map +1 -1
  133. package/dist/esm/models/collectorhealthcheck.d.ts +12 -3790
  134. package/dist/esm/models/collectorhealthcheck.d.ts.map +1 -1
  135. package/dist/esm/models/collectorhealthcheck.js +7 -2743
  136. package/dist/esm/models/collectorhealthcheck.js.map +1 -1
  137. package/dist/esm/models/collectorrest.d.ts +12 -6524
  138. package/dist/esm/models/collectorrest.d.ts.map +1 -1
  139. package/dist/esm/models/collectorrest.js +7 -5020
  140. package/dist/esm/models/collectorrest.js.map +1 -1
  141. package/dist/esm/models/collectors3.d.ts +10 -1158
  142. package/dist/esm/models/collectors3.d.ts.map +1 -1
  143. package/dist/esm/models/collectors3.js +7 -718
  144. package/dist/esm/models/collectors3.js.map +1 -1
  145. package/dist/esm/models/collectorscript.d.ts +7 -42
  146. package/dist/esm/models/collectorscript.d.ts.map +1 -1
  147. package/dist/esm/models/collectorscript.js +3 -25
  148. package/dist/esm/models/collectorscript.js.map +1 -1
  149. package/dist/esm/models/collectorsplunk.d.ts +10 -1937
  150. package/dist/esm/models/collectorsplunk.d.ts.map +1 -1
  151. package/dist/esm/models/collectorsplunk.js +7 -1375
  152. package/dist/esm/models/collectorsplunk.js.map +1 -1
  153. package/dist/esm/models/cribllakecollectorconf.d.ts +20 -0
  154. package/dist/esm/models/cribllakecollectorconf.d.ts.map +1 -0
  155. package/dist/esm/models/cribllakecollectorconf.js +20 -0
  156. package/dist/esm/models/cribllakecollectorconf.js.map +1 -0
  157. package/dist/esm/models/databasecollectorconf.d.ts +72 -0
  158. package/dist/esm/models/databasecollectorconf.d.ts.map +1 -0
  159. package/dist/esm/models/databasecollectorconf.js +70 -0
  160. package/dist/esm/models/databasecollectorconf.js.map +1 -0
  161. package/dist/esm/models/filesystemcollectorconf.d.ts +61 -0
  162. package/dist/esm/models/filesystemcollectorconf.d.ts.map +1 -0
  163. package/dist/esm/models/filesystemcollectorconf.js +44 -0
  164. package/dist/esm/models/filesystemcollectorconf.js.map +1 -0
  165. package/dist/esm/models/googlecloudstoragecollectorconf.d.ts +284 -0
  166. package/dist/esm/models/googlecloudstoragecollectorconf.d.ts.map +1 -0
  167. package/dist/esm/models/googlecloudstoragecollectorconf.js +178 -0
  168. package/dist/esm/models/googlecloudstoragecollectorconf.js.map +1 -0
  169. package/dist/esm/models/healthcheckcollectorconf.d.ts +2460 -0
  170. package/dist/esm/models/healthcheckcollectorconf.d.ts.map +1 -0
  171. package/dist/esm/models/healthcheckcollectorconf.js +1963 -0
  172. package/dist/esm/models/healthcheckcollectorconf.js.map +1 -0
  173. package/dist/esm/models/index.d.ts +11 -2
  174. package/dist/esm/models/index.d.ts.map +1 -1
  175. package/dist/esm/models/index.js +11 -2
  176. package/dist/esm/models/index.js.map +1 -1
  177. package/dist/esm/models/outputtestrequest.d.ts +6 -3
  178. package/dist/esm/models/outputtestrequest.d.ts.map +1 -1
  179. package/dist/esm/models/outputtestrequest.js +1 -2
  180. package/dist/esm/models/outputtestrequest.js.map +1 -1
  181. package/dist/esm/models/restcollectorconf.d.ts +5150 -0
  182. package/dist/esm/models/restcollectorconf.d.ts.map +1 -0
  183. package/dist/esm/models/restcollectorconf.js +4480 -0
  184. package/dist/esm/models/restcollectorconf.js.map +1 -0
  185. package/dist/esm/models/runnablejobcollection.d.ts +5 -23
  186. package/dist/esm/models/runnablejobcollection.d.ts.map +1 -1
  187. package/dist/esm/models/runnablejobcollection.js +2 -12
  188. package/dist/esm/models/runnablejobcollection.js.map +1 -1
  189. package/dist/esm/models/s3collectorconf.d.ts +929 -0
  190. package/dist/esm/models/s3collectorconf.d.ts.map +1 -0
  191. package/dist/esm/models/s3collectorconf.js +573 -0
  192. package/dist/esm/models/s3collectorconf.js.map +1 -0
  193. package/dist/esm/models/savedjobcollection.d.ts +6 -34
  194. package/dist/esm/models/savedjobcollection.d.ts.map +1 -1
  195. package/dist/esm/models/savedjobcollection.js +3 -23
  196. package/dist/esm/models/savedjobcollection.js.map +1 -1
  197. package/dist/esm/models/scriptcollectorconf.d.ts +56 -0
  198. package/dist/esm/models/scriptcollectorconf.d.ts.map +1 -0
  199. package/dist/esm/models/scriptcollectorconf.js +43 -0
  200. package/dist/esm/models/scriptcollectorconf.js.map +1 -0
  201. package/dist/esm/models/splunkcollectorconf.d.ts +1639 -0
  202. package/dist/esm/models/splunkcollectorconf.d.ts.map +1 -0
  203. package/dist/esm/models/splunkcollectorconf.js +1223 -0
  204. package/dist/esm/models/splunkcollectorconf.js.map +1 -0
  205. package/examples/package-lock.json +1 -1
  206. package/jsr.json +1 -1
  207. package/package.json +1 -1
  208. package/src/lib/config.ts +3 -3
  209. package/src/models/azureblobcollectorconf.ts +919 -0
  210. package/src/models/{collectorconf.ts → collector.ts} +37 -49
  211. package/src/models/collectorazureblob.ts +23 -1405
  212. package/src/models/collectorcribllake.ts +14 -8
  213. package/src/models/collectordatabase.ts +14 -151
  214. package/src/models/collectorfilesystem.ts +14 -93
  215. package/src/models/collectorgooglecloudstorage.ts +22 -812
  216. package/src/models/collectorhealthcheck.ts +24 -8024
  217. package/src/models/collectorrest.ts +24 -13558
  218. package/src/models/collectors3.ts +22 -1932
  219. package/src/models/collectorscript.ts +14 -75
  220. package/src/models/collectorsplunk.ts +22 -3754
  221. package/src/models/cribllakecollectorconf.ts +54 -0
  222. package/src/models/databasecollectorconf.ts +194 -0
  223. package/src/models/filesystemcollectorconf.ts +141 -0
  224. package/src/models/googlecloudstoragecollectorconf.ts +633 -0
  225. package/src/models/healthcheckcollectorconf.ts +5757 -0
  226. package/src/models/index.ts +11 -2
  227. package/src/models/outputtestrequest.ts +3 -8
  228. package/src/models/restcollectorconf.ts +12631 -0
  229. package/src/models/runnablejobcollection.ts +6 -44
  230. package/src/models/s3collectorconf.ts +1760 -0
  231. package/src/models/savedjobcollection.ts +12 -78
  232. package/src/models/scriptcollectorconf.ts +121 -0
  233. package/src/models/splunkcollectorconf.ts +3561 -0
  234. package/dist/commonjs/models/collectorconf.d.ts +0 -50
  235. package/dist/commonjs/models/collectorconf.d.ts.map +0 -1
  236. package/dist/commonjs/models/collectorconf.js.map +0 -1
  237. package/dist/commonjs/models/criblevent.d.ts +0 -14
  238. package/dist/commonjs/models/criblevent.d.ts.map +0 -1
  239. package/dist/commonjs/models/criblevent.js.map +0 -1
  240. package/dist/esm/models/collectorconf.d.ts +0 -50
  241. package/dist/esm/models/collectorconf.d.ts.map +0 -1
  242. package/dist/esm/models/collectorconf.js.map +0 -1
  243. package/dist/esm/models/criblevent.d.ts +0 -14
  244. package/dist/esm/models/criblevent.d.ts.map +0 -1
  245. package/dist/esm/models/criblevent.js +0 -12
  246. package/dist/esm/models/criblevent.js.map +0 -1
  247. package/src/models/criblevent.ts +0 -29
@@ -0,0 +1,1963 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import * as openEnums from "../types/enums.js";
7
+ /**
8
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
9
+ */
10
+ export const HealthCheckAuthenticationOauthSecretDiscoverType = {
11
+ /**
12
+ * HTTP Request
13
+ */
14
+ Http: "http",
15
+ /**
16
+ * JSON Response
17
+ */
18
+ Json: "json",
19
+ /**
20
+ * Item List
21
+ */
22
+ List: "list",
23
+ /**
24
+ * None
25
+ */
26
+ None: "none",
27
+ };
28
+ /**
29
+ * Health check HTTP method.
30
+ */
31
+ export const HealthCheckAuthenticationOauthSecretHealthCheckMethod = {
32
+ /**
33
+ * GET
34
+ */
35
+ Get: "get",
36
+ /**
37
+ * POST
38
+ */
39
+ Post: "post",
40
+ /**
41
+ * POST with Body
42
+ */
43
+ PostWithBody: "post_with_body",
44
+ };
45
+ export const HealthCheckAuthenticationOauthSecretHiddenDefaultBreakers = {
46
+ Cribl: "Cribl",
47
+ };
48
+ /**
49
+ * The algorithm to use when performing HTTP retries
50
+ */
51
+ export const HealthCheckAuthenticationOauthSecretRetryType = {
52
+ /**
53
+ * Disabled
54
+ */
55
+ None: "none",
56
+ /**
57
+ * Backoff
58
+ */
59
+ Backoff: "backoff",
60
+ /**
61
+ * Static
62
+ */
63
+ Static: "static",
64
+ };
65
+ /**
66
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
67
+ */
68
+ export const HealthCheckAuthenticationOauthDiscoverType = {
69
+ /**
70
+ * HTTP Request
71
+ */
72
+ Http: "http",
73
+ /**
74
+ * JSON Response
75
+ */
76
+ Json: "json",
77
+ /**
78
+ * Item List
79
+ */
80
+ List: "list",
81
+ /**
82
+ * None
83
+ */
84
+ None: "none",
85
+ };
86
+ /**
87
+ * Health check HTTP method.
88
+ */
89
+ export const HealthCheckAuthenticationOauthHealthCheckMethod = {
90
+ /**
91
+ * GET
92
+ */
93
+ Get: "get",
94
+ /**
95
+ * POST
96
+ */
97
+ Post: "post",
98
+ /**
99
+ * POST with Body
100
+ */
101
+ PostWithBody: "post_with_body",
102
+ };
103
+ export const HealthCheckAuthenticationOauthHiddenDefaultBreakers = {
104
+ Cribl: "Cribl",
105
+ };
106
+ /**
107
+ * The algorithm to use when performing HTTP retries
108
+ */
109
+ export const HealthCheckAuthenticationOauthRetryType = {
110
+ /**
111
+ * Disabled
112
+ */
113
+ None: "none",
114
+ /**
115
+ * Backoff
116
+ */
117
+ Backoff: "backoff",
118
+ /**
119
+ * Static
120
+ */
121
+ Static: "static",
122
+ };
123
+ /**
124
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
125
+ */
126
+ export const HealthCheckAuthenticationLoginSecretDiscoverType = {
127
+ /**
128
+ * HTTP Request
129
+ */
130
+ Http: "http",
131
+ /**
132
+ * JSON Response
133
+ */
134
+ Json: "json",
135
+ /**
136
+ * Item List
137
+ */
138
+ List: "list",
139
+ /**
140
+ * None
141
+ */
142
+ None: "none",
143
+ };
144
+ /**
145
+ * Health check HTTP method.
146
+ */
147
+ export const HealthCheckAuthenticationLoginSecretHealthCheckMethod = {
148
+ /**
149
+ * GET
150
+ */
151
+ Get: "get",
152
+ /**
153
+ * POST
154
+ */
155
+ Post: "post",
156
+ /**
157
+ * POST with Body
158
+ */
159
+ PostWithBody: "post_with_body",
160
+ };
161
+ export const HealthCheckAuthenticationLoginSecretHiddenDefaultBreakers = {
162
+ Cribl: "Cribl",
163
+ };
164
+ /**
165
+ * The algorithm to use when performing HTTP retries
166
+ */
167
+ export const HealthCheckAuthenticationLoginSecretRetryType = {
168
+ /**
169
+ * Disabled
170
+ */
171
+ None: "none",
172
+ /**
173
+ * Backoff
174
+ */
175
+ Backoff: "backoff",
176
+ /**
177
+ * Static
178
+ */
179
+ Static: "static",
180
+ };
181
+ /**
182
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
183
+ */
184
+ export const HealthCheckAuthenticationLoginDiscoverType = {
185
+ /**
186
+ * HTTP Request
187
+ */
188
+ Http: "http",
189
+ /**
190
+ * JSON Response
191
+ */
192
+ Json: "json",
193
+ /**
194
+ * Item List
195
+ */
196
+ List: "list",
197
+ /**
198
+ * None
199
+ */
200
+ None: "none",
201
+ };
202
+ /**
203
+ * Health check HTTP method.
204
+ */
205
+ export const HealthCheckAuthenticationLoginHealthCheckMethod = {
206
+ /**
207
+ * GET
208
+ */
209
+ Get: "get",
210
+ /**
211
+ * POST
212
+ */
213
+ Post: "post",
214
+ /**
215
+ * POST with Body
216
+ */
217
+ PostWithBody: "post_with_body",
218
+ };
219
+ export const HealthCheckAuthenticationLoginHiddenDefaultBreakers = {
220
+ Cribl: "Cribl",
221
+ };
222
+ /**
223
+ * The algorithm to use when performing HTTP retries
224
+ */
225
+ export const HealthCheckAuthenticationLoginRetryType = {
226
+ /**
227
+ * Disabled
228
+ */
229
+ None: "none",
230
+ /**
231
+ * Backoff
232
+ */
233
+ Backoff: "backoff",
234
+ /**
235
+ * Static
236
+ */
237
+ Static: "static",
238
+ };
239
+ /**
240
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
241
+ */
242
+ export const HealthCheckAuthenticationBasicSecretDiscoverType = {
243
+ /**
244
+ * HTTP Request
245
+ */
246
+ Http: "http",
247
+ /**
248
+ * JSON Response
249
+ */
250
+ Json: "json",
251
+ /**
252
+ * Item List
253
+ */
254
+ List: "list",
255
+ /**
256
+ * None
257
+ */
258
+ None: "none",
259
+ };
260
+ /**
261
+ * Health check HTTP method.
262
+ */
263
+ export const HealthCheckAuthenticationBasicSecretHealthCheckMethod = {
264
+ /**
265
+ * GET
266
+ */
267
+ Get: "get",
268
+ /**
269
+ * POST
270
+ */
271
+ Post: "post",
272
+ /**
273
+ * POST with Body
274
+ */
275
+ PostWithBody: "post_with_body",
276
+ };
277
+ export const HealthCheckAuthenticationBasicSecretHiddenDefaultBreakers = {
278
+ Cribl: "Cribl",
279
+ };
280
+ /**
281
+ * The algorithm to use when performing HTTP retries
282
+ */
283
+ export const HealthCheckAuthenticationBasicSecretRetryType = {
284
+ /**
285
+ * Disabled
286
+ */
287
+ None: "none",
288
+ /**
289
+ * Backoff
290
+ */
291
+ Backoff: "backoff",
292
+ /**
293
+ * Static
294
+ */
295
+ Static: "static",
296
+ };
297
+ /**
298
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
299
+ */
300
+ export const HealthCheckAuthenticationBasicDiscoverType = {
301
+ /**
302
+ * HTTP Request
303
+ */
304
+ Http: "http",
305
+ /**
306
+ * JSON Response
307
+ */
308
+ Json: "json",
309
+ /**
310
+ * Item List
311
+ */
312
+ List: "list",
313
+ /**
314
+ * None
315
+ */
316
+ None: "none",
317
+ };
318
+ /**
319
+ * Health check HTTP method.
320
+ */
321
+ export const HealthCheckAuthenticationBasicHealthCheckMethod = {
322
+ /**
323
+ * GET
324
+ */
325
+ Get: "get",
326
+ /**
327
+ * POST
328
+ */
329
+ Post: "post",
330
+ /**
331
+ * POST with Body
332
+ */
333
+ PostWithBody: "post_with_body",
334
+ };
335
+ export const HealthCheckAuthenticationBasicHiddenDefaultBreakers = {
336
+ Cribl: "Cribl",
337
+ };
338
+ /**
339
+ * The algorithm to use when performing HTTP retries
340
+ */
341
+ export const HealthCheckAuthenticationBasicRetryType = {
342
+ /**
343
+ * Disabled
344
+ */
345
+ None: "none",
346
+ /**
347
+ * Backoff
348
+ */
349
+ Backoff: "backoff",
350
+ /**
351
+ * Static
352
+ */
353
+ Static: "static",
354
+ };
355
+ /**
356
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
357
+ */
358
+ export const HealthCheckAuthenticationNoneDiscoverType = {
359
+ /**
360
+ * HTTP Request
361
+ */
362
+ Http: "http",
363
+ /**
364
+ * JSON Response
365
+ */
366
+ Json: "json",
367
+ /**
368
+ * Item List
369
+ */
370
+ List: "list",
371
+ /**
372
+ * None
373
+ */
374
+ None: "none",
375
+ };
376
+ /**
377
+ * Health check HTTP method.
378
+ */
379
+ export const HealthCheckAuthenticationNoneHealthCheckMethod = {
380
+ /**
381
+ * GET
382
+ */
383
+ Get: "get",
384
+ /**
385
+ * POST
386
+ */
387
+ Post: "post",
388
+ /**
389
+ * POST with Body
390
+ */
391
+ PostWithBody: "post_with_body",
392
+ };
393
+ export const HealthCheckAuthenticationNoneHiddenDefaultBreakers = {
394
+ Cribl: "Cribl",
395
+ };
396
+ /**
397
+ * The algorithm to use when performing HTTP retries
398
+ */
399
+ export const HealthCheckAuthenticationNoneRetryType = {
400
+ /**
401
+ * Disabled
402
+ */
403
+ None: "none",
404
+ /**
405
+ * Backoff
406
+ */
407
+ Backoff: "backoff",
408
+ /**
409
+ * Static
410
+ */
411
+ Static: "static",
412
+ };
413
+ /**
414
+ * Health check HTTP method.
415
+ */
416
+ export const HealthCheckCollectMethodPostWithBodyHealthCheckMethod = {
417
+ /**
418
+ * GET
419
+ */
420
+ Get: "get",
421
+ /**
422
+ * POST
423
+ */
424
+ Post: "post",
425
+ /**
426
+ * POST with Body
427
+ */
428
+ PostWithBody: "post_with_body",
429
+ };
430
+ /**
431
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
432
+ */
433
+ export const HealthCheckCollectMethodPostWithBodyDiscoverType = {
434
+ /**
435
+ * HTTP Request
436
+ */
437
+ Http: "http",
438
+ /**
439
+ * JSON Response
440
+ */
441
+ Json: "json",
442
+ /**
443
+ * Item List
444
+ */
445
+ List: "list",
446
+ /**
447
+ * None
448
+ */
449
+ None: "none",
450
+ };
451
+ /**
452
+ * Authentication method for Discover and Collect REST calls. You can specify API Key–based authentication by adding the appropriate Collect headers.
453
+ */
454
+ export const HealthCheckCollectMethodPostWithBodyAuthentication = {
455
+ None: "none",
456
+ Basic: "basic",
457
+ BasicSecret: "basicSecret",
458
+ Login: "login",
459
+ LoginSecret: "loginSecret",
460
+ Oauth: "oauth",
461
+ OauthSecret: "oauthSecret",
462
+ };
463
+ export const HealthCheckCollectMethodPostWithBodyHiddenDefaultBreakers = {
464
+ Cribl: "Cribl",
465
+ };
466
+ /**
467
+ * The algorithm to use when performing HTTP retries
468
+ */
469
+ export const HealthCheckCollectMethodPostWithBodyRetryType = {
470
+ /**
471
+ * Disabled
472
+ */
473
+ None: "none",
474
+ /**
475
+ * Backoff
476
+ */
477
+ Backoff: "backoff",
478
+ /**
479
+ * Static
480
+ */
481
+ Static: "static",
482
+ };
483
+ /**
484
+ * Health check HTTP method.
485
+ */
486
+ export const HealthCheckCollectMethodPostHealthCheckMethod = {
487
+ /**
488
+ * GET
489
+ */
490
+ Get: "get",
491
+ /**
492
+ * POST
493
+ */
494
+ Post: "post",
495
+ /**
496
+ * POST with Body
497
+ */
498
+ PostWithBody: "post_with_body",
499
+ };
500
+ /**
501
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
502
+ */
503
+ export const HealthCheckCollectMethodPostDiscoverType = {
504
+ /**
505
+ * HTTP Request
506
+ */
507
+ Http: "http",
508
+ /**
509
+ * JSON Response
510
+ */
511
+ Json: "json",
512
+ /**
513
+ * Item List
514
+ */
515
+ List: "list",
516
+ /**
517
+ * None
518
+ */
519
+ None: "none",
520
+ };
521
+ /**
522
+ * Authentication method for Discover and Collect REST calls. You can specify API Key–based authentication by adding the appropriate Collect headers.
523
+ */
524
+ export const HealthCheckCollectMethodPostAuthentication = {
525
+ None: "none",
526
+ Basic: "basic",
527
+ BasicSecret: "basicSecret",
528
+ Login: "login",
529
+ LoginSecret: "loginSecret",
530
+ Oauth: "oauth",
531
+ OauthSecret: "oauthSecret",
532
+ };
533
+ export const HealthCheckCollectMethodPostHiddenDefaultBreakers = {
534
+ Cribl: "Cribl",
535
+ };
536
+ /**
537
+ * The algorithm to use when performing HTTP retries
538
+ */
539
+ export const HealthCheckCollectMethodPostRetryType = {
540
+ /**
541
+ * Disabled
542
+ */
543
+ None: "none",
544
+ /**
545
+ * Backoff
546
+ */
547
+ Backoff: "backoff",
548
+ /**
549
+ * Static
550
+ */
551
+ Static: "static",
552
+ };
553
+ /**
554
+ * Health check HTTP method.
555
+ */
556
+ export const HealthCheckCollectMethodGetHealthCheckMethod = {
557
+ /**
558
+ * GET
559
+ */
560
+ Get: "get",
561
+ /**
562
+ * POST
563
+ */
564
+ Post: "post",
565
+ /**
566
+ * POST with Body
567
+ */
568
+ PostWithBody: "post_with_body",
569
+ };
570
+ /**
571
+ * Defines how task discovery will be performed. Use None to skip the discovery. Use HTTP Request to make a REST call to discover tasks. Use Item List to enumerate items for collect to retrieve. Use JSON Response to manually define discover tasks as a JSON array of objects. Each entry returned by the discover operation will result in a collect task.
572
+ */
573
+ export const HealthCheckCollectMethodGetDiscoverType = {
574
+ /**
575
+ * HTTP Request
576
+ */
577
+ Http: "http",
578
+ /**
579
+ * JSON Response
580
+ */
581
+ Json: "json",
582
+ /**
583
+ * Item List
584
+ */
585
+ List: "list",
586
+ /**
587
+ * None
588
+ */
589
+ None: "none",
590
+ };
591
+ /**
592
+ * Authentication method for Discover and Collect REST calls. You can specify API Key–based authentication by adding the appropriate Collect headers.
593
+ */
594
+ export const HealthCheckCollectMethodGetAuthentication = {
595
+ None: "none",
596
+ Basic: "basic",
597
+ BasicSecret: "basicSecret",
598
+ Login: "login",
599
+ LoginSecret: "loginSecret",
600
+ Oauth: "oauth",
601
+ OauthSecret: "oauthSecret",
602
+ };
603
+ export const HealthCheckCollectMethodGetHiddenDefaultBreakers = {
604
+ Cribl: "Cribl",
605
+ };
606
+ /**
607
+ * The algorithm to use when performing HTTP retries
608
+ */
609
+ export const HealthCheckCollectMethodGetRetryType = {
610
+ /**
611
+ * Disabled
612
+ */
613
+ None: "none",
614
+ /**
615
+ * Backoff
616
+ */
617
+ Backoff: "backoff",
618
+ /**
619
+ * Static
620
+ */
621
+ Static: "static",
622
+ };
623
+ /** @internal */
624
+ export const HealthCheckAuthenticationOauthSecretAuthRequestParam$inboundSchema = z.object({
625
+ name: z.string(),
626
+ value: z.string(),
627
+ });
628
+ /** @internal */
629
+ export const HealthCheckAuthenticationOauthSecretAuthRequestParam$outboundSchema = z.object({
630
+ name: z.string(),
631
+ value: z.string(),
632
+ });
633
+ export function healthCheckAuthenticationOauthSecretAuthRequestParamToJSON(healthCheckAuthenticationOauthSecretAuthRequestParam) {
634
+ return JSON.stringify(HealthCheckAuthenticationOauthSecretAuthRequestParam$outboundSchema.parse(healthCheckAuthenticationOauthSecretAuthRequestParam));
635
+ }
636
+ export function healthCheckAuthenticationOauthSecretAuthRequestParamFromJSON(jsonString) {
637
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthSecretAuthRequestParam$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthSecretAuthRequestParam' from JSON`);
638
+ }
639
+ /** @internal */
640
+ export const HealthCheckAuthenticationOauthSecretAuthRequestHeader$inboundSchema = z.object({
641
+ name: z.string(),
642
+ value: z.string(),
643
+ });
644
+ /** @internal */
645
+ export const HealthCheckAuthenticationOauthSecretAuthRequestHeader$outboundSchema = z.object({
646
+ name: z.string(),
647
+ value: z.string(),
648
+ });
649
+ export function healthCheckAuthenticationOauthSecretAuthRequestHeaderToJSON(healthCheckAuthenticationOauthSecretAuthRequestHeader) {
650
+ return JSON.stringify(HealthCheckAuthenticationOauthSecretAuthRequestHeader$outboundSchema.parse(healthCheckAuthenticationOauthSecretAuthRequestHeader));
651
+ }
652
+ export function healthCheckAuthenticationOauthSecretAuthRequestHeaderFromJSON(jsonString) {
653
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthSecretAuthRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthSecretAuthRequestHeader' from JSON`);
654
+ }
655
+ /** @internal */
656
+ export const HealthCheckAuthenticationOauthSecretDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthSecretDiscoverType);
657
+ /** @internal */
658
+ export const HealthCheckAuthenticationOauthSecretDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthSecretDiscoverType);
659
+ /** @internal */
660
+ export const HealthCheckAuthenticationOauthSecretDiscovery$inboundSchema = z.object({
661
+ discoverType: HealthCheckAuthenticationOauthSecretDiscoverType$inboundSchema
662
+ .default("none"),
663
+ });
664
+ /** @internal */
665
+ export const HealthCheckAuthenticationOauthSecretDiscovery$outboundSchema = z.object({
666
+ discoverType: HealthCheckAuthenticationOauthSecretDiscoverType$outboundSchema.default("none"),
667
+ });
668
+ export function healthCheckAuthenticationOauthSecretDiscoveryToJSON(healthCheckAuthenticationOauthSecretDiscovery) {
669
+ return JSON.stringify(HealthCheckAuthenticationOauthSecretDiscovery$outboundSchema.parse(healthCheckAuthenticationOauthSecretDiscovery));
670
+ }
671
+ export function healthCheckAuthenticationOauthSecretDiscoveryFromJSON(jsonString) {
672
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthSecretDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthSecretDiscovery' from JSON`);
673
+ }
674
+ /** @internal */
675
+ export const HealthCheckAuthenticationOauthSecretHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthSecretHealthCheckMethod);
676
+ /** @internal */
677
+ export const HealthCheckAuthenticationOauthSecretHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthSecretHealthCheckMethod);
678
+ /** @internal */
679
+ export const HealthCheckAuthenticationOauthSecretCollectRequestHeader$inboundSchema = z.object({
680
+ name: z.string(),
681
+ value: z.string(),
682
+ });
683
+ /** @internal */
684
+ export const HealthCheckAuthenticationOauthSecretCollectRequestHeader$outboundSchema = z.object({
685
+ name: z.string(),
686
+ value: z.string(),
687
+ });
688
+ export function healthCheckAuthenticationOauthSecretCollectRequestHeaderToJSON(healthCheckAuthenticationOauthSecretCollectRequestHeader) {
689
+ return JSON.stringify(HealthCheckAuthenticationOauthSecretCollectRequestHeader$outboundSchema
690
+ .parse(healthCheckAuthenticationOauthSecretCollectRequestHeader));
691
+ }
692
+ export function healthCheckAuthenticationOauthSecretCollectRequestHeaderFromJSON(jsonString) {
693
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthSecretCollectRequestHeader$inboundSchema
694
+ .parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthSecretCollectRequestHeader' from JSON`);
695
+ }
696
+ /** @internal */
697
+ export const HealthCheckAuthenticationOauthSecretHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthSecretHiddenDefaultBreakers);
698
+ /** @internal */
699
+ export const HealthCheckAuthenticationOauthSecretHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthSecretHiddenDefaultBreakers);
700
+ /** @internal */
701
+ export const HealthCheckAuthenticationOauthSecretRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthSecretRetryType);
702
+ /** @internal */
703
+ export const HealthCheckAuthenticationOauthSecretRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthSecretRetryType);
704
+ /** @internal */
705
+ export const HealthCheckAuthenticationOauthSecretRetryRules$inboundSchema = z.object({
706
+ type: HealthCheckAuthenticationOauthSecretRetryType$inboundSchema.default("backoff"),
707
+ interval: z.any().optional(),
708
+ limit: z.any().optional(),
709
+ multiplier: z.any().optional(),
710
+ codes: z.any().optional(),
711
+ enableHeader: z.any().optional(),
712
+ });
713
+ /** @internal */
714
+ export const HealthCheckAuthenticationOauthSecretRetryRules$outboundSchema = z.object({
715
+ type: HealthCheckAuthenticationOauthSecretRetryType$outboundSchema.default("backoff"),
716
+ interval: z.any().optional(),
717
+ limit: z.any().optional(),
718
+ multiplier: z.any().optional(),
719
+ codes: z.any().optional(),
720
+ enableHeader: z.any().optional(),
721
+ });
722
+ export function healthCheckAuthenticationOauthSecretRetryRulesToJSON(healthCheckAuthenticationOauthSecretRetryRules) {
723
+ return JSON.stringify(HealthCheckAuthenticationOauthSecretRetryRules$outboundSchema.parse(healthCheckAuthenticationOauthSecretRetryRules));
724
+ }
725
+ export function healthCheckAuthenticationOauthSecretRetryRulesFromJSON(jsonString) {
726
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthSecretRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthSecretRetryRules' from JSON`);
727
+ }
728
+ /** @internal */
729
+ export const HealthCheckAuthenticationOauthSecret$inboundSchema = z.object({
730
+ authentication: z.literal("oauthSecret"),
731
+ loginUrl: z.string().default(""),
732
+ tokenRespAttribute: z.string().optional(),
733
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
734
+ clientSecretParamName: z.string().default("client_secret"),
735
+ textSecret: z.string(),
736
+ authRequestParams: z.array(z.lazy(() => HealthCheckAuthenticationOauthSecretAuthRequestParam$inboundSchema)).optional(),
737
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthSecretAuthRequestHeader$inboundSchema)).optional(),
738
+ discovery: z.lazy(() => HealthCheckAuthenticationOauthSecretDiscovery$inboundSchema).optional(),
739
+ collectUrl: z.string(),
740
+ collectMethod: HealthCheckAuthenticationOauthSecretHealthCheckMethod$inboundSchema.default("get"),
741
+ collectRequestParams: z.any().optional(),
742
+ collectBody: z.any().optional(),
743
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthSecretCollectRequestHeader$inboundSchema)).optional(),
744
+ authenticateCollect: z.boolean().default(false),
745
+ timeout: z.number().default(30),
746
+ rejectUnauthorized: z.boolean().default(false),
747
+ defaultBreakers: HealthCheckAuthenticationOauthSecretHiddenDefaultBreakers$inboundSchema
748
+ .optional(),
749
+ safeHeaders: z.array(z.string()).optional(),
750
+ retryRules: z.lazy(() => HealthCheckAuthenticationOauthSecretRetryRules$inboundSchema).optional(),
751
+ });
752
+ /** @internal */
753
+ export const HealthCheckAuthenticationOauthSecret$outboundSchema = z.object({
754
+ authentication: z.literal("oauthSecret"),
755
+ loginUrl: z.string().default(""),
756
+ tokenRespAttribute: z.string().optional(),
757
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
758
+ clientSecretParamName: z.string().default("client_secret"),
759
+ textSecret: z.string(),
760
+ authRequestParams: z.array(z.lazy(() => HealthCheckAuthenticationOauthSecretAuthRequestParam$outboundSchema)).optional(),
761
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthSecretAuthRequestHeader$outboundSchema)).optional(),
762
+ discovery: z.lazy(() => HealthCheckAuthenticationOauthSecretDiscovery$outboundSchema).optional(),
763
+ collectUrl: z.string(),
764
+ collectMethod: HealthCheckAuthenticationOauthSecretHealthCheckMethod$outboundSchema
765
+ .default("get"),
766
+ collectRequestParams: z.any().optional(),
767
+ collectBody: z.any().optional(),
768
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthSecretCollectRequestHeader$outboundSchema)).optional(),
769
+ authenticateCollect: z.boolean().default(false),
770
+ timeout: z.number().default(30),
771
+ rejectUnauthorized: z.boolean().default(false),
772
+ defaultBreakers: HealthCheckAuthenticationOauthSecretHiddenDefaultBreakers$outboundSchema
773
+ .optional(),
774
+ safeHeaders: z.array(z.string()).optional(),
775
+ retryRules: z.lazy(() => HealthCheckAuthenticationOauthSecretRetryRules$outboundSchema).optional(),
776
+ });
777
+ export function healthCheckAuthenticationOauthSecretToJSON(healthCheckAuthenticationOauthSecret) {
778
+ return JSON.stringify(HealthCheckAuthenticationOauthSecret$outboundSchema.parse(healthCheckAuthenticationOauthSecret));
779
+ }
780
+ export function healthCheckAuthenticationOauthSecretFromJSON(jsonString) {
781
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthSecret$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthSecret' from JSON`);
782
+ }
783
+ /** @internal */
784
+ export const HealthCheckAuthenticationOauthAuthRequestParam$inboundSchema = z.object({
785
+ name: z.string(),
786
+ value: z.string(),
787
+ });
788
+ /** @internal */
789
+ export const HealthCheckAuthenticationOauthAuthRequestParam$outboundSchema = z.object({
790
+ name: z.string(),
791
+ value: z.string(),
792
+ });
793
+ export function healthCheckAuthenticationOauthAuthRequestParamToJSON(healthCheckAuthenticationOauthAuthRequestParam) {
794
+ return JSON.stringify(HealthCheckAuthenticationOauthAuthRequestParam$outboundSchema.parse(healthCheckAuthenticationOauthAuthRequestParam));
795
+ }
796
+ export function healthCheckAuthenticationOauthAuthRequestParamFromJSON(jsonString) {
797
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthAuthRequestParam$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthAuthRequestParam' from JSON`);
798
+ }
799
+ /** @internal */
800
+ export const HealthCheckAuthenticationOauthAuthRequestHeader$inboundSchema = z.object({
801
+ name: z.string(),
802
+ value: z.string(),
803
+ });
804
+ /** @internal */
805
+ export const HealthCheckAuthenticationOauthAuthRequestHeader$outboundSchema = z.object({
806
+ name: z.string(),
807
+ value: z.string(),
808
+ });
809
+ export function healthCheckAuthenticationOauthAuthRequestHeaderToJSON(healthCheckAuthenticationOauthAuthRequestHeader) {
810
+ return JSON.stringify(HealthCheckAuthenticationOauthAuthRequestHeader$outboundSchema.parse(healthCheckAuthenticationOauthAuthRequestHeader));
811
+ }
812
+ export function healthCheckAuthenticationOauthAuthRequestHeaderFromJSON(jsonString) {
813
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthAuthRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthAuthRequestHeader' from JSON`);
814
+ }
815
+ /** @internal */
816
+ export const HealthCheckAuthenticationOauthDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthDiscoverType);
817
+ /** @internal */
818
+ export const HealthCheckAuthenticationOauthDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthDiscoverType);
819
+ /** @internal */
820
+ export const HealthCheckAuthenticationOauthDiscovery$inboundSchema = z.object({
821
+ discoverType: HealthCheckAuthenticationOauthDiscoverType$inboundSchema
822
+ .default("none"),
823
+ });
824
+ /** @internal */
825
+ export const HealthCheckAuthenticationOauthDiscovery$outboundSchema = z.object({
826
+ discoverType: HealthCheckAuthenticationOauthDiscoverType$outboundSchema
827
+ .default("none"),
828
+ });
829
+ export function healthCheckAuthenticationOauthDiscoveryToJSON(healthCheckAuthenticationOauthDiscovery) {
830
+ return JSON.stringify(HealthCheckAuthenticationOauthDiscovery$outboundSchema.parse(healthCheckAuthenticationOauthDiscovery));
831
+ }
832
+ export function healthCheckAuthenticationOauthDiscoveryFromJSON(jsonString) {
833
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthDiscovery' from JSON`);
834
+ }
835
+ /** @internal */
836
+ export const HealthCheckAuthenticationOauthHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthHealthCheckMethod);
837
+ /** @internal */
838
+ export const HealthCheckAuthenticationOauthHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthHealthCheckMethod);
839
+ /** @internal */
840
+ export const HealthCheckAuthenticationOauthCollectRequestHeader$inboundSchema = z.object({
841
+ name: z.string(),
842
+ value: z.string(),
843
+ });
844
+ /** @internal */
845
+ export const HealthCheckAuthenticationOauthCollectRequestHeader$outboundSchema = z.object({
846
+ name: z.string(),
847
+ value: z.string(),
848
+ });
849
+ export function healthCheckAuthenticationOauthCollectRequestHeaderToJSON(healthCheckAuthenticationOauthCollectRequestHeader) {
850
+ return JSON.stringify(HealthCheckAuthenticationOauthCollectRequestHeader$outboundSchema.parse(healthCheckAuthenticationOauthCollectRequestHeader));
851
+ }
852
+ export function healthCheckAuthenticationOauthCollectRequestHeaderFromJSON(jsonString) {
853
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthCollectRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthCollectRequestHeader' from JSON`);
854
+ }
855
+ /** @internal */
856
+ export const HealthCheckAuthenticationOauthHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthHiddenDefaultBreakers);
857
+ /** @internal */
858
+ export const HealthCheckAuthenticationOauthHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthHiddenDefaultBreakers);
859
+ /** @internal */
860
+ export const HealthCheckAuthenticationOauthRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationOauthRetryType);
861
+ /** @internal */
862
+ export const HealthCheckAuthenticationOauthRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationOauthRetryType);
863
+ /** @internal */
864
+ export const HealthCheckAuthenticationOauthRetryRules$inboundSchema = z.object({
865
+ type: HealthCheckAuthenticationOauthRetryType$inboundSchema.default("backoff"),
866
+ interval: z.any().optional(),
867
+ limit: z.any().optional(),
868
+ multiplier: z.any().optional(),
869
+ codes: z.any().optional(),
870
+ enableHeader: z.any().optional(),
871
+ });
872
+ /** @internal */
873
+ export const HealthCheckAuthenticationOauthRetryRules$outboundSchema = z.object({
874
+ type: HealthCheckAuthenticationOauthRetryType$outboundSchema.default("backoff"),
875
+ interval: z.any().optional(),
876
+ limit: z.any().optional(),
877
+ multiplier: z.any().optional(),
878
+ codes: z.any().optional(),
879
+ enableHeader: z.any().optional(),
880
+ });
881
+ export function healthCheckAuthenticationOauthRetryRulesToJSON(healthCheckAuthenticationOauthRetryRules) {
882
+ return JSON.stringify(HealthCheckAuthenticationOauthRetryRules$outboundSchema.parse(healthCheckAuthenticationOauthRetryRules));
883
+ }
884
+ export function healthCheckAuthenticationOauthRetryRulesFromJSON(jsonString) {
885
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauthRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauthRetryRules' from JSON`);
886
+ }
887
+ /** @internal */
888
+ export const HealthCheckAuthenticationOauth$inboundSchema = z.object({
889
+ authentication: z.literal("oauth"),
890
+ loginUrl: z.string().default(""),
891
+ tokenRespAttribute: z.string().optional(),
892
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
893
+ clientSecretParamName: z.string().default("client_secret"),
894
+ clientSecretParamValue: z.string(),
895
+ authRequestParams: z.array(z.lazy(() => HealthCheckAuthenticationOauthAuthRequestParam$inboundSchema)).optional(),
896
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthAuthRequestHeader$inboundSchema)).optional(),
897
+ discovery: z.lazy(() => HealthCheckAuthenticationOauthDiscovery$inboundSchema)
898
+ .optional(),
899
+ collectUrl: z.string(),
900
+ collectMethod: HealthCheckAuthenticationOauthHealthCheckMethod$inboundSchema
901
+ .default("get"),
902
+ collectRequestParams: z.any().optional(),
903
+ collectBody: z.any().optional(),
904
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthCollectRequestHeader$inboundSchema)).optional(),
905
+ authenticateCollect: z.boolean().default(false),
906
+ timeout: z.number().default(30),
907
+ rejectUnauthorized: z.boolean().default(false),
908
+ defaultBreakers: HealthCheckAuthenticationOauthHiddenDefaultBreakers$inboundSchema
909
+ .optional(),
910
+ safeHeaders: z.array(z.string()).optional(),
911
+ retryRules: z.lazy(() => HealthCheckAuthenticationOauthRetryRules$inboundSchema).optional(),
912
+ });
913
+ /** @internal */
914
+ export const HealthCheckAuthenticationOauth$outboundSchema = z.object({
915
+ authentication: z.literal("oauth"),
916
+ loginUrl: z.string().default(""),
917
+ tokenRespAttribute: z.string().optional(),
918
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
919
+ clientSecretParamName: z.string().default("client_secret"),
920
+ clientSecretParamValue: z.string(),
921
+ authRequestParams: z.array(z.lazy(() => HealthCheckAuthenticationOauthAuthRequestParam$outboundSchema)).optional(),
922
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthAuthRequestHeader$outboundSchema)).optional(),
923
+ discovery: z.lazy(() => HealthCheckAuthenticationOauthDiscovery$outboundSchema).optional(),
924
+ collectUrl: z.string(),
925
+ collectMethod: HealthCheckAuthenticationOauthHealthCheckMethod$outboundSchema
926
+ .default("get"),
927
+ collectRequestParams: z.any().optional(),
928
+ collectBody: z.any().optional(),
929
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationOauthCollectRequestHeader$outboundSchema)).optional(),
930
+ authenticateCollect: z.boolean().default(false),
931
+ timeout: z.number().default(30),
932
+ rejectUnauthorized: z.boolean().default(false),
933
+ defaultBreakers: HealthCheckAuthenticationOauthHiddenDefaultBreakers$outboundSchema
934
+ .optional(),
935
+ safeHeaders: z.array(z.string()).optional(),
936
+ retryRules: z.lazy(() => HealthCheckAuthenticationOauthRetryRules$outboundSchema).optional(),
937
+ });
938
+ export function healthCheckAuthenticationOauthToJSON(healthCheckAuthenticationOauth) {
939
+ return JSON.stringify(HealthCheckAuthenticationOauth$outboundSchema.parse(healthCheckAuthenticationOauth));
940
+ }
941
+ export function healthCheckAuthenticationOauthFromJSON(jsonString) {
942
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationOauth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationOauth' from JSON`);
943
+ }
944
+ /** @internal */
945
+ export const HealthCheckAuthenticationLoginSecretAuthRequestHeader$inboundSchema = z.object({
946
+ name: z.string(),
947
+ value: z.string(),
948
+ });
949
+ /** @internal */
950
+ export const HealthCheckAuthenticationLoginSecretAuthRequestHeader$outboundSchema = z.object({
951
+ name: z.string(),
952
+ value: z.string(),
953
+ });
954
+ export function healthCheckAuthenticationLoginSecretAuthRequestHeaderToJSON(healthCheckAuthenticationLoginSecretAuthRequestHeader) {
955
+ return JSON.stringify(HealthCheckAuthenticationLoginSecretAuthRequestHeader$outboundSchema.parse(healthCheckAuthenticationLoginSecretAuthRequestHeader));
956
+ }
957
+ export function healthCheckAuthenticationLoginSecretAuthRequestHeaderFromJSON(jsonString) {
958
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginSecretAuthRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginSecretAuthRequestHeader' from JSON`);
959
+ }
960
+ /** @internal */
961
+ export const HealthCheckAuthenticationLoginSecretDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginSecretDiscoverType);
962
+ /** @internal */
963
+ export const HealthCheckAuthenticationLoginSecretDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginSecretDiscoverType);
964
+ /** @internal */
965
+ export const HealthCheckAuthenticationLoginSecretDiscovery$inboundSchema = z.object({
966
+ discoverType: HealthCheckAuthenticationLoginSecretDiscoverType$inboundSchema
967
+ .default("none"),
968
+ });
969
+ /** @internal */
970
+ export const HealthCheckAuthenticationLoginSecretDiscovery$outboundSchema = z.object({
971
+ discoverType: HealthCheckAuthenticationLoginSecretDiscoverType$outboundSchema.default("none"),
972
+ });
973
+ export function healthCheckAuthenticationLoginSecretDiscoveryToJSON(healthCheckAuthenticationLoginSecretDiscovery) {
974
+ return JSON.stringify(HealthCheckAuthenticationLoginSecretDiscovery$outboundSchema.parse(healthCheckAuthenticationLoginSecretDiscovery));
975
+ }
976
+ export function healthCheckAuthenticationLoginSecretDiscoveryFromJSON(jsonString) {
977
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginSecretDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginSecretDiscovery' from JSON`);
978
+ }
979
+ /** @internal */
980
+ export const HealthCheckAuthenticationLoginSecretHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginSecretHealthCheckMethod);
981
+ /** @internal */
982
+ export const HealthCheckAuthenticationLoginSecretHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginSecretHealthCheckMethod);
983
+ /** @internal */
984
+ export const HealthCheckAuthenticationLoginSecretCollectRequestHeader$inboundSchema = z.object({
985
+ name: z.string(),
986
+ value: z.string(),
987
+ });
988
+ /** @internal */
989
+ export const HealthCheckAuthenticationLoginSecretCollectRequestHeader$outboundSchema = z.object({
990
+ name: z.string(),
991
+ value: z.string(),
992
+ });
993
+ export function healthCheckAuthenticationLoginSecretCollectRequestHeaderToJSON(healthCheckAuthenticationLoginSecretCollectRequestHeader) {
994
+ return JSON.stringify(HealthCheckAuthenticationLoginSecretCollectRequestHeader$outboundSchema
995
+ .parse(healthCheckAuthenticationLoginSecretCollectRequestHeader));
996
+ }
997
+ export function healthCheckAuthenticationLoginSecretCollectRequestHeaderFromJSON(jsonString) {
998
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginSecretCollectRequestHeader$inboundSchema
999
+ .parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginSecretCollectRequestHeader' from JSON`);
1000
+ }
1001
+ /** @internal */
1002
+ export const HealthCheckAuthenticationLoginSecretHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginSecretHiddenDefaultBreakers);
1003
+ /** @internal */
1004
+ export const HealthCheckAuthenticationLoginSecretHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginSecretHiddenDefaultBreakers);
1005
+ /** @internal */
1006
+ export const HealthCheckAuthenticationLoginSecretRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginSecretRetryType);
1007
+ /** @internal */
1008
+ export const HealthCheckAuthenticationLoginSecretRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginSecretRetryType);
1009
+ /** @internal */
1010
+ export const HealthCheckAuthenticationLoginSecretRetryRules$inboundSchema = z.object({
1011
+ type: HealthCheckAuthenticationLoginSecretRetryType$inboundSchema.default("backoff"),
1012
+ interval: z.any().optional(),
1013
+ limit: z.any().optional(),
1014
+ multiplier: z.any().optional(),
1015
+ codes: z.any().optional(),
1016
+ enableHeader: z.any().optional(),
1017
+ });
1018
+ /** @internal */
1019
+ export const HealthCheckAuthenticationLoginSecretRetryRules$outboundSchema = z.object({
1020
+ type: HealthCheckAuthenticationLoginSecretRetryType$outboundSchema.default("backoff"),
1021
+ interval: z.any().optional(),
1022
+ limit: z.any().optional(),
1023
+ multiplier: z.any().optional(),
1024
+ codes: z.any().optional(),
1025
+ enableHeader: z.any().optional(),
1026
+ });
1027
+ export function healthCheckAuthenticationLoginSecretRetryRulesToJSON(healthCheckAuthenticationLoginSecretRetryRules) {
1028
+ return JSON.stringify(HealthCheckAuthenticationLoginSecretRetryRules$outboundSchema.parse(healthCheckAuthenticationLoginSecretRetryRules));
1029
+ }
1030
+ export function healthCheckAuthenticationLoginSecretRetryRulesFromJSON(jsonString) {
1031
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginSecretRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginSecretRetryRules' from JSON`);
1032
+ }
1033
+ /** @internal */
1034
+ export const HealthCheckAuthenticationLoginSecret$inboundSchema = z.object({
1035
+ authentication: z.literal("loginSecret"),
1036
+ loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1037
+ credentialsSecret: z.string(),
1038
+ loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1039
+ tokenRespAttribute: z.string().optional(),
1040
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
1041
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginSecretAuthRequestHeader$inboundSchema)).optional(),
1042
+ discovery: z.lazy(() => HealthCheckAuthenticationLoginSecretDiscovery$inboundSchema).optional(),
1043
+ collectUrl: z.string(),
1044
+ collectMethod: HealthCheckAuthenticationLoginSecretHealthCheckMethod$inboundSchema.default("get"),
1045
+ collectRequestParams: z.any().optional(),
1046
+ collectBody: z.any().optional(),
1047
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginSecretCollectRequestHeader$inboundSchema)).optional(),
1048
+ authenticateCollect: z.boolean().default(false),
1049
+ timeout: z.number().default(30),
1050
+ rejectUnauthorized: z.boolean().default(false),
1051
+ defaultBreakers: HealthCheckAuthenticationLoginSecretHiddenDefaultBreakers$inboundSchema
1052
+ .optional(),
1053
+ safeHeaders: z.array(z.string()).optional(),
1054
+ retryRules: z.lazy(() => HealthCheckAuthenticationLoginSecretRetryRules$inboundSchema).optional(),
1055
+ });
1056
+ /** @internal */
1057
+ export const HealthCheckAuthenticationLoginSecret$outboundSchema = z.object({
1058
+ authentication: z.literal("loginSecret"),
1059
+ loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1060
+ credentialsSecret: z.string(),
1061
+ loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1062
+ tokenRespAttribute: z.string().optional(),
1063
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
1064
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginSecretAuthRequestHeader$outboundSchema)).optional(),
1065
+ discovery: z.lazy(() => HealthCheckAuthenticationLoginSecretDiscovery$outboundSchema).optional(),
1066
+ collectUrl: z.string(),
1067
+ collectMethod: HealthCheckAuthenticationLoginSecretHealthCheckMethod$outboundSchema
1068
+ .default("get"),
1069
+ collectRequestParams: z.any().optional(),
1070
+ collectBody: z.any().optional(),
1071
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginSecretCollectRequestHeader$outboundSchema)).optional(),
1072
+ authenticateCollect: z.boolean().default(false),
1073
+ timeout: z.number().default(30),
1074
+ rejectUnauthorized: z.boolean().default(false),
1075
+ defaultBreakers: HealthCheckAuthenticationLoginSecretHiddenDefaultBreakers$outboundSchema
1076
+ .optional(),
1077
+ safeHeaders: z.array(z.string()).optional(),
1078
+ retryRules: z.lazy(() => HealthCheckAuthenticationLoginSecretRetryRules$outboundSchema).optional(),
1079
+ });
1080
+ export function healthCheckAuthenticationLoginSecretToJSON(healthCheckAuthenticationLoginSecret) {
1081
+ return JSON.stringify(HealthCheckAuthenticationLoginSecret$outboundSchema.parse(healthCheckAuthenticationLoginSecret));
1082
+ }
1083
+ export function healthCheckAuthenticationLoginSecretFromJSON(jsonString) {
1084
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginSecret$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginSecret' from JSON`);
1085
+ }
1086
+ /** @internal */
1087
+ export const HealthCheckAuthenticationLoginAuthRequestHeader$inboundSchema = z.object({
1088
+ name: z.string(),
1089
+ value: z.string(),
1090
+ });
1091
+ /** @internal */
1092
+ export const HealthCheckAuthenticationLoginAuthRequestHeader$outboundSchema = z.object({
1093
+ name: z.string(),
1094
+ value: z.string(),
1095
+ });
1096
+ export function healthCheckAuthenticationLoginAuthRequestHeaderToJSON(healthCheckAuthenticationLoginAuthRequestHeader) {
1097
+ return JSON.stringify(HealthCheckAuthenticationLoginAuthRequestHeader$outboundSchema.parse(healthCheckAuthenticationLoginAuthRequestHeader));
1098
+ }
1099
+ export function healthCheckAuthenticationLoginAuthRequestHeaderFromJSON(jsonString) {
1100
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginAuthRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginAuthRequestHeader' from JSON`);
1101
+ }
1102
+ /** @internal */
1103
+ export const HealthCheckAuthenticationLoginDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginDiscoverType);
1104
+ /** @internal */
1105
+ export const HealthCheckAuthenticationLoginDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginDiscoverType);
1106
+ /** @internal */
1107
+ export const HealthCheckAuthenticationLoginDiscovery$inboundSchema = z.object({
1108
+ discoverType: HealthCheckAuthenticationLoginDiscoverType$inboundSchema
1109
+ .default("none"),
1110
+ });
1111
+ /** @internal */
1112
+ export const HealthCheckAuthenticationLoginDiscovery$outboundSchema = z.object({
1113
+ discoverType: HealthCheckAuthenticationLoginDiscoverType$outboundSchema
1114
+ .default("none"),
1115
+ });
1116
+ export function healthCheckAuthenticationLoginDiscoveryToJSON(healthCheckAuthenticationLoginDiscovery) {
1117
+ return JSON.stringify(HealthCheckAuthenticationLoginDiscovery$outboundSchema.parse(healthCheckAuthenticationLoginDiscovery));
1118
+ }
1119
+ export function healthCheckAuthenticationLoginDiscoveryFromJSON(jsonString) {
1120
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginDiscovery' from JSON`);
1121
+ }
1122
+ /** @internal */
1123
+ export const HealthCheckAuthenticationLoginHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginHealthCheckMethod);
1124
+ /** @internal */
1125
+ export const HealthCheckAuthenticationLoginHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginHealthCheckMethod);
1126
+ /** @internal */
1127
+ export const HealthCheckAuthenticationLoginCollectRequestHeader$inboundSchema = z.object({
1128
+ name: z.string(),
1129
+ value: z.string(),
1130
+ });
1131
+ /** @internal */
1132
+ export const HealthCheckAuthenticationLoginCollectRequestHeader$outboundSchema = z.object({
1133
+ name: z.string(),
1134
+ value: z.string(),
1135
+ });
1136
+ export function healthCheckAuthenticationLoginCollectRequestHeaderToJSON(healthCheckAuthenticationLoginCollectRequestHeader) {
1137
+ return JSON.stringify(HealthCheckAuthenticationLoginCollectRequestHeader$outboundSchema.parse(healthCheckAuthenticationLoginCollectRequestHeader));
1138
+ }
1139
+ export function healthCheckAuthenticationLoginCollectRequestHeaderFromJSON(jsonString) {
1140
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginCollectRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginCollectRequestHeader' from JSON`);
1141
+ }
1142
+ /** @internal */
1143
+ export const HealthCheckAuthenticationLoginHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginHiddenDefaultBreakers);
1144
+ /** @internal */
1145
+ export const HealthCheckAuthenticationLoginHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginHiddenDefaultBreakers);
1146
+ /** @internal */
1147
+ export const HealthCheckAuthenticationLoginRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationLoginRetryType);
1148
+ /** @internal */
1149
+ export const HealthCheckAuthenticationLoginRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationLoginRetryType);
1150
+ /** @internal */
1151
+ export const HealthCheckAuthenticationLoginRetryRules$inboundSchema = z.object({
1152
+ type: HealthCheckAuthenticationLoginRetryType$inboundSchema.default("backoff"),
1153
+ interval: z.any().optional(),
1154
+ limit: z.any().optional(),
1155
+ multiplier: z.any().optional(),
1156
+ codes: z.any().optional(),
1157
+ enableHeader: z.any().optional(),
1158
+ });
1159
+ /** @internal */
1160
+ export const HealthCheckAuthenticationLoginRetryRules$outboundSchema = z.object({
1161
+ type: HealthCheckAuthenticationLoginRetryType$outboundSchema.default("backoff"),
1162
+ interval: z.any().optional(),
1163
+ limit: z.any().optional(),
1164
+ multiplier: z.any().optional(),
1165
+ codes: z.any().optional(),
1166
+ enableHeader: z.any().optional(),
1167
+ });
1168
+ export function healthCheckAuthenticationLoginRetryRulesToJSON(healthCheckAuthenticationLoginRetryRules) {
1169
+ return JSON.stringify(HealthCheckAuthenticationLoginRetryRules$outboundSchema.parse(healthCheckAuthenticationLoginRetryRules));
1170
+ }
1171
+ export function healthCheckAuthenticationLoginRetryRulesFromJSON(jsonString) {
1172
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLoginRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLoginRetryRules' from JSON`);
1173
+ }
1174
+ /** @internal */
1175
+ export const HealthCheckAuthenticationLogin$inboundSchema = z.object({
1176
+ authentication: z.literal("login"),
1177
+ loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1178
+ username: z.string(),
1179
+ password: z.string(),
1180
+ loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1181
+ tokenRespAttribute: z.string().optional(),
1182
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
1183
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginAuthRequestHeader$inboundSchema)).optional(),
1184
+ discovery: z.lazy(() => HealthCheckAuthenticationLoginDiscovery$inboundSchema)
1185
+ .optional(),
1186
+ collectUrl: z.string(),
1187
+ collectMethod: HealthCheckAuthenticationLoginHealthCheckMethod$inboundSchema
1188
+ .default("get"),
1189
+ collectRequestParams: z.any().optional(),
1190
+ collectBody: z.any().optional(),
1191
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginCollectRequestHeader$inboundSchema)).optional(),
1192
+ authenticateCollect: z.boolean().default(false),
1193
+ timeout: z.number().default(30),
1194
+ rejectUnauthorized: z.boolean().default(false),
1195
+ defaultBreakers: HealthCheckAuthenticationLoginHiddenDefaultBreakers$inboundSchema
1196
+ .optional(),
1197
+ safeHeaders: z.array(z.string()).optional(),
1198
+ retryRules: z.lazy(() => HealthCheckAuthenticationLoginRetryRules$inboundSchema).optional(),
1199
+ });
1200
+ /** @internal */
1201
+ export const HealthCheckAuthenticationLogin$outboundSchema = z.object({
1202
+ authentication: z.literal("login"),
1203
+ loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1204
+ username: z.string(),
1205
+ password: z.string(),
1206
+ loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
1207
+ tokenRespAttribute: z.string().optional(),
1208
+ authHeaderExpr: z.string().default("`Bearer ${token}`"),
1209
+ authRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginAuthRequestHeader$outboundSchema)).optional(),
1210
+ discovery: z.lazy(() => HealthCheckAuthenticationLoginDiscovery$outboundSchema).optional(),
1211
+ collectUrl: z.string(),
1212
+ collectMethod: HealthCheckAuthenticationLoginHealthCheckMethod$outboundSchema
1213
+ .default("get"),
1214
+ collectRequestParams: z.any().optional(),
1215
+ collectBody: z.any().optional(),
1216
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationLoginCollectRequestHeader$outboundSchema)).optional(),
1217
+ authenticateCollect: z.boolean().default(false),
1218
+ timeout: z.number().default(30),
1219
+ rejectUnauthorized: z.boolean().default(false),
1220
+ defaultBreakers: HealthCheckAuthenticationLoginHiddenDefaultBreakers$outboundSchema
1221
+ .optional(),
1222
+ safeHeaders: z.array(z.string()).optional(),
1223
+ retryRules: z.lazy(() => HealthCheckAuthenticationLoginRetryRules$outboundSchema).optional(),
1224
+ });
1225
+ export function healthCheckAuthenticationLoginToJSON(healthCheckAuthenticationLogin) {
1226
+ return JSON.stringify(HealthCheckAuthenticationLogin$outboundSchema.parse(healthCheckAuthenticationLogin));
1227
+ }
1228
+ export function healthCheckAuthenticationLoginFromJSON(jsonString) {
1229
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationLogin$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationLogin' from JSON`);
1230
+ }
1231
+ /** @internal */
1232
+ export const HealthCheckAuthenticationBasicSecretDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicSecretDiscoverType);
1233
+ /** @internal */
1234
+ export const HealthCheckAuthenticationBasicSecretDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicSecretDiscoverType);
1235
+ /** @internal */
1236
+ export const HealthCheckAuthenticationBasicSecretDiscovery$inboundSchema = z.object({
1237
+ discoverType: HealthCheckAuthenticationBasicSecretDiscoverType$inboundSchema
1238
+ .default("none"),
1239
+ });
1240
+ /** @internal */
1241
+ export const HealthCheckAuthenticationBasicSecretDiscovery$outboundSchema = z.object({
1242
+ discoverType: HealthCheckAuthenticationBasicSecretDiscoverType$outboundSchema.default("none"),
1243
+ });
1244
+ export function healthCheckAuthenticationBasicSecretDiscoveryToJSON(healthCheckAuthenticationBasicSecretDiscovery) {
1245
+ return JSON.stringify(HealthCheckAuthenticationBasicSecretDiscovery$outboundSchema.parse(healthCheckAuthenticationBasicSecretDiscovery));
1246
+ }
1247
+ export function healthCheckAuthenticationBasicSecretDiscoveryFromJSON(jsonString) {
1248
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasicSecretDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasicSecretDiscovery' from JSON`);
1249
+ }
1250
+ /** @internal */
1251
+ export const HealthCheckAuthenticationBasicSecretHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicSecretHealthCheckMethod);
1252
+ /** @internal */
1253
+ export const HealthCheckAuthenticationBasicSecretHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicSecretHealthCheckMethod);
1254
+ /** @internal */
1255
+ export const HealthCheckAuthenticationBasicSecretCollectRequestHeader$inboundSchema = z.object({
1256
+ name: z.string(),
1257
+ value: z.string(),
1258
+ });
1259
+ /** @internal */
1260
+ export const HealthCheckAuthenticationBasicSecretCollectRequestHeader$outboundSchema = z.object({
1261
+ name: z.string(),
1262
+ value: z.string(),
1263
+ });
1264
+ export function healthCheckAuthenticationBasicSecretCollectRequestHeaderToJSON(healthCheckAuthenticationBasicSecretCollectRequestHeader) {
1265
+ return JSON.stringify(HealthCheckAuthenticationBasicSecretCollectRequestHeader$outboundSchema
1266
+ .parse(healthCheckAuthenticationBasicSecretCollectRequestHeader));
1267
+ }
1268
+ export function healthCheckAuthenticationBasicSecretCollectRequestHeaderFromJSON(jsonString) {
1269
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasicSecretCollectRequestHeader$inboundSchema
1270
+ .parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasicSecretCollectRequestHeader' from JSON`);
1271
+ }
1272
+ /** @internal */
1273
+ export const HealthCheckAuthenticationBasicSecretHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicSecretHiddenDefaultBreakers);
1274
+ /** @internal */
1275
+ export const HealthCheckAuthenticationBasicSecretHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicSecretHiddenDefaultBreakers);
1276
+ /** @internal */
1277
+ export const HealthCheckAuthenticationBasicSecretRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicSecretRetryType);
1278
+ /** @internal */
1279
+ export const HealthCheckAuthenticationBasicSecretRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicSecretRetryType);
1280
+ /** @internal */
1281
+ export const HealthCheckAuthenticationBasicSecretRetryRules$inboundSchema = z.object({
1282
+ type: HealthCheckAuthenticationBasicSecretRetryType$inboundSchema.default("backoff"),
1283
+ interval: z.any().optional(),
1284
+ limit: z.any().optional(),
1285
+ multiplier: z.any().optional(),
1286
+ codes: z.any().optional(),
1287
+ enableHeader: z.any().optional(),
1288
+ });
1289
+ /** @internal */
1290
+ export const HealthCheckAuthenticationBasicSecretRetryRules$outboundSchema = z.object({
1291
+ type: HealthCheckAuthenticationBasicSecretRetryType$outboundSchema.default("backoff"),
1292
+ interval: z.any().optional(),
1293
+ limit: z.any().optional(),
1294
+ multiplier: z.any().optional(),
1295
+ codes: z.any().optional(),
1296
+ enableHeader: z.any().optional(),
1297
+ });
1298
+ export function healthCheckAuthenticationBasicSecretRetryRulesToJSON(healthCheckAuthenticationBasicSecretRetryRules) {
1299
+ return JSON.stringify(HealthCheckAuthenticationBasicSecretRetryRules$outboundSchema.parse(healthCheckAuthenticationBasicSecretRetryRules));
1300
+ }
1301
+ export function healthCheckAuthenticationBasicSecretRetryRulesFromJSON(jsonString) {
1302
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasicSecretRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasicSecretRetryRules' from JSON`);
1303
+ }
1304
+ /** @internal */
1305
+ export const HealthCheckAuthenticationBasicSecret$inboundSchema = z.object({
1306
+ authentication: z.literal("basicSecret"),
1307
+ credentialsSecret: z.string(),
1308
+ discovery: z.lazy(() => HealthCheckAuthenticationBasicSecretDiscovery$inboundSchema).optional(),
1309
+ collectUrl: z.string(),
1310
+ collectMethod: HealthCheckAuthenticationBasicSecretHealthCheckMethod$inboundSchema.default("get"),
1311
+ collectRequestParams: z.any().optional(),
1312
+ collectBody: z.any().optional(),
1313
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationBasicSecretCollectRequestHeader$inboundSchema)).optional(),
1314
+ authenticateCollect: z.boolean().default(false),
1315
+ timeout: z.number().default(30),
1316
+ rejectUnauthorized: z.boolean().default(false),
1317
+ defaultBreakers: HealthCheckAuthenticationBasicSecretHiddenDefaultBreakers$inboundSchema
1318
+ .optional(),
1319
+ safeHeaders: z.array(z.string()).optional(),
1320
+ retryRules: z.lazy(() => HealthCheckAuthenticationBasicSecretRetryRules$inboundSchema).optional(),
1321
+ });
1322
+ /** @internal */
1323
+ export const HealthCheckAuthenticationBasicSecret$outboundSchema = z.object({
1324
+ authentication: z.literal("basicSecret"),
1325
+ credentialsSecret: z.string(),
1326
+ discovery: z.lazy(() => HealthCheckAuthenticationBasicSecretDiscovery$outboundSchema).optional(),
1327
+ collectUrl: z.string(),
1328
+ collectMethod: HealthCheckAuthenticationBasicSecretHealthCheckMethod$outboundSchema
1329
+ .default("get"),
1330
+ collectRequestParams: z.any().optional(),
1331
+ collectBody: z.any().optional(),
1332
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationBasicSecretCollectRequestHeader$outboundSchema)).optional(),
1333
+ authenticateCollect: z.boolean().default(false),
1334
+ timeout: z.number().default(30),
1335
+ rejectUnauthorized: z.boolean().default(false),
1336
+ defaultBreakers: HealthCheckAuthenticationBasicSecretHiddenDefaultBreakers$outboundSchema
1337
+ .optional(),
1338
+ safeHeaders: z.array(z.string()).optional(),
1339
+ retryRules: z.lazy(() => HealthCheckAuthenticationBasicSecretRetryRules$outboundSchema).optional(),
1340
+ });
1341
+ export function healthCheckAuthenticationBasicSecretToJSON(healthCheckAuthenticationBasicSecret) {
1342
+ return JSON.stringify(HealthCheckAuthenticationBasicSecret$outboundSchema.parse(healthCheckAuthenticationBasicSecret));
1343
+ }
1344
+ export function healthCheckAuthenticationBasicSecretFromJSON(jsonString) {
1345
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasicSecret$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasicSecret' from JSON`);
1346
+ }
1347
+ /** @internal */
1348
+ export const HealthCheckAuthenticationBasicDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicDiscoverType);
1349
+ /** @internal */
1350
+ export const HealthCheckAuthenticationBasicDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicDiscoverType);
1351
+ /** @internal */
1352
+ export const HealthCheckAuthenticationBasicDiscovery$inboundSchema = z.object({
1353
+ discoverType: HealthCheckAuthenticationBasicDiscoverType$inboundSchema
1354
+ .default("none"),
1355
+ });
1356
+ /** @internal */
1357
+ export const HealthCheckAuthenticationBasicDiscovery$outboundSchema = z.object({
1358
+ discoverType: HealthCheckAuthenticationBasicDiscoverType$outboundSchema
1359
+ .default("none"),
1360
+ });
1361
+ export function healthCheckAuthenticationBasicDiscoveryToJSON(healthCheckAuthenticationBasicDiscovery) {
1362
+ return JSON.stringify(HealthCheckAuthenticationBasicDiscovery$outboundSchema.parse(healthCheckAuthenticationBasicDiscovery));
1363
+ }
1364
+ export function healthCheckAuthenticationBasicDiscoveryFromJSON(jsonString) {
1365
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasicDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasicDiscovery' from JSON`);
1366
+ }
1367
+ /** @internal */
1368
+ export const HealthCheckAuthenticationBasicHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicHealthCheckMethod);
1369
+ /** @internal */
1370
+ export const HealthCheckAuthenticationBasicHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicHealthCheckMethod);
1371
+ /** @internal */
1372
+ export const HealthCheckAuthenticationBasicCollectRequestHeader$inboundSchema = z.object({
1373
+ name: z.string(),
1374
+ value: z.string(),
1375
+ });
1376
+ /** @internal */
1377
+ export const HealthCheckAuthenticationBasicCollectRequestHeader$outboundSchema = z.object({
1378
+ name: z.string(),
1379
+ value: z.string(),
1380
+ });
1381
+ export function healthCheckAuthenticationBasicCollectRequestHeaderToJSON(healthCheckAuthenticationBasicCollectRequestHeader) {
1382
+ return JSON.stringify(HealthCheckAuthenticationBasicCollectRequestHeader$outboundSchema.parse(healthCheckAuthenticationBasicCollectRequestHeader));
1383
+ }
1384
+ export function healthCheckAuthenticationBasicCollectRequestHeaderFromJSON(jsonString) {
1385
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasicCollectRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasicCollectRequestHeader' from JSON`);
1386
+ }
1387
+ /** @internal */
1388
+ export const HealthCheckAuthenticationBasicHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicHiddenDefaultBreakers);
1389
+ /** @internal */
1390
+ export const HealthCheckAuthenticationBasicHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicHiddenDefaultBreakers);
1391
+ /** @internal */
1392
+ export const HealthCheckAuthenticationBasicRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationBasicRetryType);
1393
+ /** @internal */
1394
+ export const HealthCheckAuthenticationBasicRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationBasicRetryType);
1395
+ /** @internal */
1396
+ export const HealthCheckAuthenticationBasicRetryRules$inboundSchema = z.object({
1397
+ type: HealthCheckAuthenticationBasicRetryType$inboundSchema.default("backoff"),
1398
+ interval: z.any().optional(),
1399
+ limit: z.any().optional(),
1400
+ multiplier: z.any().optional(),
1401
+ codes: z.any().optional(),
1402
+ enableHeader: z.any().optional(),
1403
+ });
1404
+ /** @internal */
1405
+ export const HealthCheckAuthenticationBasicRetryRules$outboundSchema = z.object({
1406
+ type: HealthCheckAuthenticationBasicRetryType$outboundSchema.default("backoff"),
1407
+ interval: z.any().optional(),
1408
+ limit: z.any().optional(),
1409
+ multiplier: z.any().optional(),
1410
+ codes: z.any().optional(),
1411
+ enableHeader: z.any().optional(),
1412
+ });
1413
+ export function healthCheckAuthenticationBasicRetryRulesToJSON(healthCheckAuthenticationBasicRetryRules) {
1414
+ return JSON.stringify(HealthCheckAuthenticationBasicRetryRules$outboundSchema.parse(healthCheckAuthenticationBasicRetryRules));
1415
+ }
1416
+ export function healthCheckAuthenticationBasicRetryRulesFromJSON(jsonString) {
1417
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasicRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasicRetryRules' from JSON`);
1418
+ }
1419
+ /** @internal */
1420
+ export const HealthCheckAuthenticationBasic$inboundSchema = z.object({
1421
+ authentication: z.literal("basic"),
1422
+ username: z.string(),
1423
+ password: z.string(),
1424
+ discovery: z.lazy(() => HealthCheckAuthenticationBasicDiscovery$inboundSchema)
1425
+ .optional(),
1426
+ collectUrl: z.string(),
1427
+ collectMethod: HealthCheckAuthenticationBasicHealthCheckMethod$inboundSchema
1428
+ .default("get"),
1429
+ collectRequestParams: z.any().optional(),
1430
+ collectBody: z.any().optional(),
1431
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationBasicCollectRequestHeader$inboundSchema)).optional(),
1432
+ authenticateCollect: z.boolean().default(false),
1433
+ timeout: z.number().default(30),
1434
+ rejectUnauthorized: z.boolean().default(false),
1435
+ defaultBreakers: HealthCheckAuthenticationBasicHiddenDefaultBreakers$inboundSchema
1436
+ .optional(),
1437
+ safeHeaders: z.array(z.string()).optional(),
1438
+ retryRules: z.lazy(() => HealthCheckAuthenticationBasicRetryRules$inboundSchema).optional(),
1439
+ });
1440
+ /** @internal */
1441
+ export const HealthCheckAuthenticationBasic$outboundSchema = z.object({
1442
+ authentication: z.literal("basic"),
1443
+ username: z.string(),
1444
+ password: z.string(),
1445
+ discovery: z.lazy(() => HealthCheckAuthenticationBasicDiscovery$outboundSchema).optional(),
1446
+ collectUrl: z.string(),
1447
+ collectMethod: HealthCheckAuthenticationBasicHealthCheckMethod$outboundSchema
1448
+ .default("get"),
1449
+ collectRequestParams: z.any().optional(),
1450
+ collectBody: z.any().optional(),
1451
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationBasicCollectRequestHeader$outboundSchema)).optional(),
1452
+ authenticateCollect: z.boolean().default(false),
1453
+ timeout: z.number().default(30),
1454
+ rejectUnauthorized: z.boolean().default(false),
1455
+ defaultBreakers: HealthCheckAuthenticationBasicHiddenDefaultBreakers$outboundSchema
1456
+ .optional(),
1457
+ safeHeaders: z.array(z.string()).optional(),
1458
+ retryRules: z.lazy(() => HealthCheckAuthenticationBasicRetryRules$outboundSchema).optional(),
1459
+ });
1460
+ export function healthCheckAuthenticationBasicToJSON(healthCheckAuthenticationBasic) {
1461
+ return JSON.stringify(HealthCheckAuthenticationBasic$outboundSchema.parse(healthCheckAuthenticationBasic));
1462
+ }
1463
+ export function healthCheckAuthenticationBasicFromJSON(jsonString) {
1464
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationBasic$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationBasic' from JSON`);
1465
+ }
1466
+ /** @internal */
1467
+ export const HealthCheckAuthenticationNoneDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationNoneDiscoverType);
1468
+ /** @internal */
1469
+ export const HealthCheckAuthenticationNoneDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationNoneDiscoverType);
1470
+ /** @internal */
1471
+ export const HealthCheckAuthenticationNoneDiscovery$inboundSchema = z.object({
1472
+ discoverType: HealthCheckAuthenticationNoneDiscoverType$inboundSchema.default("none"),
1473
+ });
1474
+ /** @internal */
1475
+ export const HealthCheckAuthenticationNoneDiscovery$outboundSchema = z.object({
1476
+ discoverType: HealthCheckAuthenticationNoneDiscoverType$outboundSchema
1477
+ .default("none"),
1478
+ });
1479
+ export function healthCheckAuthenticationNoneDiscoveryToJSON(healthCheckAuthenticationNoneDiscovery) {
1480
+ return JSON.stringify(HealthCheckAuthenticationNoneDiscovery$outboundSchema.parse(healthCheckAuthenticationNoneDiscovery));
1481
+ }
1482
+ export function healthCheckAuthenticationNoneDiscoveryFromJSON(jsonString) {
1483
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationNoneDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationNoneDiscovery' from JSON`);
1484
+ }
1485
+ /** @internal */
1486
+ export const HealthCheckAuthenticationNoneHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationNoneHealthCheckMethod);
1487
+ /** @internal */
1488
+ export const HealthCheckAuthenticationNoneHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationNoneHealthCheckMethod);
1489
+ /** @internal */
1490
+ export const HealthCheckAuthenticationNoneCollectRequestHeader$inboundSchema = z.object({
1491
+ name: z.string(),
1492
+ value: z.string(),
1493
+ });
1494
+ /** @internal */
1495
+ export const HealthCheckAuthenticationNoneCollectRequestHeader$outboundSchema = z.object({
1496
+ name: z.string(),
1497
+ value: z.string(),
1498
+ });
1499
+ export function healthCheckAuthenticationNoneCollectRequestHeaderToJSON(healthCheckAuthenticationNoneCollectRequestHeader) {
1500
+ return JSON.stringify(HealthCheckAuthenticationNoneCollectRequestHeader$outboundSchema.parse(healthCheckAuthenticationNoneCollectRequestHeader));
1501
+ }
1502
+ export function healthCheckAuthenticationNoneCollectRequestHeaderFromJSON(jsonString) {
1503
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationNoneCollectRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationNoneCollectRequestHeader' from JSON`);
1504
+ }
1505
+ /** @internal */
1506
+ export const HealthCheckAuthenticationNoneHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationNoneHiddenDefaultBreakers);
1507
+ /** @internal */
1508
+ export const HealthCheckAuthenticationNoneHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationNoneHiddenDefaultBreakers);
1509
+ /** @internal */
1510
+ export const HealthCheckAuthenticationNoneRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckAuthenticationNoneRetryType);
1511
+ /** @internal */
1512
+ export const HealthCheckAuthenticationNoneRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckAuthenticationNoneRetryType);
1513
+ /** @internal */
1514
+ export const HealthCheckAuthenticationNoneRetryRules$inboundSchema = z.object({
1515
+ type: HealthCheckAuthenticationNoneRetryType$inboundSchema.default("backoff"),
1516
+ interval: z.any().optional(),
1517
+ limit: z.any().optional(),
1518
+ multiplier: z.any().optional(),
1519
+ codes: z.any().optional(),
1520
+ enableHeader: z.any().optional(),
1521
+ });
1522
+ /** @internal */
1523
+ export const HealthCheckAuthenticationNoneRetryRules$outboundSchema = z.object({
1524
+ type: HealthCheckAuthenticationNoneRetryType$outboundSchema.default("backoff"),
1525
+ interval: z.any().optional(),
1526
+ limit: z.any().optional(),
1527
+ multiplier: z.any().optional(),
1528
+ codes: z.any().optional(),
1529
+ enableHeader: z.any().optional(),
1530
+ });
1531
+ export function healthCheckAuthenticationNoneRetryRulesToJSON(healthCheckAuthenticationNoneRetryRules) {
1532
+ return JSON.stringify(HealthCheckAuthenticationNoneRetryRules$outboundSchema.parse(healthCheckAuthenticationNoneRetryRules));
1533
+ }
1534
+ export function healthCheckAuthenticationNoneRetryRulesFromJSON(jsonString) {
1535
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationNoneRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationNoneRetryRules' from JSON`);
1536
+ }
1537
+ /** @internal */
1538
+ export const HealthCheckAuthenticationNone$inboundSchema = z.object({
1539
+ authentication: z.literal("none"),
1540
+ discovery: z.lazy(() => HealthCheckAuthenticationNoneDiscovery$inboundSchema)
1541
+ .optional(),
1542
+ collectUrl: z.string(),
1543
+ collectMethod: HealthCheckAuthenticationNoneHealthCheckMethod$inboundSchema
1544
+ .default("get"),
1545
+ collectRequestParams: z.any().optional(),
1546
+ collectBody: z.any().optional(),
1547
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationNoneCollectRequestHeader$inboundSchema)).optional(),
1548
+ authenticateCollect: z.boolean().default(false),
1549
+ timeout: z.number().default(30),
1550
+ rejectUnauthorized: z.boolean().default(false),
1551
+ defaultBreakers: HealthCheckAuthenticationNoneHiddenDefaultBreakers$inboundSchema.optional(),
1552
+ safeHeaders: z.array(z.string()).optional(),
1553
+ retryRules: z.lazy(() => HealthCheckAuthenticationNoneRetryRules$inboundSchema).optional(),
1554
+ });
1555
+ /** @internal */
1556
+ export const HealthCheckAuthenticationNone$outboundSchema = z.object({
1557
+ authentication: z.literal("none"),
1558
+ discovery: z.lazy(() => HealthCheckAuthenticationNoneDiscovery$outboundSchema)
1559
+ .optional(),
1560
+ collectUrl: z.string(),
1561
+ collectMethod: HealthCheckAuthenticationNoneHealthCheckMethod$outboundSchema
1562
+ .default("get"),
1563
+ collectRequestParams: z.any().optional(),
1564
+ collectBody: z.any().optional(),
1565
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckAuthenticationNoneCollectRequestHeader$outboundSchema)).optional(),
1566
+ authenticateCollect: z.boolean().default(false),
1567
+ timeout: z.number().default(30),
1568
+ rejectUnauthorized: z.boolean().default(false),
1569
+ defaultBreakers: HealthCheckAuthenticationNoneHiddenDefaultBreakers$outboundSchema
1570
+ .optional(),
1571
+ safeHeaders: z.array(z.string()).optional(),
1572
+ retryRules: z.lazy(() => HealthCheckAuthenticationNoneRetryRules$outboundSchema).optional(),
1573
+ });
1574
+ export function healthCheckAuthenticationNoneToJSON(healthCheckAuthenticationNone) {
1575
+ return JSON.stringify(HealthCheckAuthenticationNone$outboundSchema.parse(healthCheckAuthenticationNone));
1576
+ }
1577
+ export function healthCheckAuthenticationNoneFromJSON(jsonString) {
1578
+ return safeParse(jsonString, (x) => HealthCheckAuthenticationNone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckAuthenticationNone' from JSON`);
1579
+ }
1580
+ /** @internal */
1581
+ export const HealthCheckCollectMethodPostWithBodyHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostWithBodyHealthCheckMethod);
1582
+ /** @internal */
1583
+ export const HealthCheckCollectMethodPostWithBodyHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostWithBodyHealthCheckMethod);
1584
+ /** @internal */
1585
+ export const HealthCheckCollectMethodPostWithBodyDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostWithBodyDiscoverType);
1586
+ /** @internal */
1587
+ export const HealthCheckCollectMethodPostWithBodyDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostWithBodyDiscoverType);
1588
+ /** @internal */
1589
+ export const HealthCheckCollectMethodPostWithBodyDiscovery$inboundSchema = z.object({
1590
+ discoverType: HealthCheckCollectMethodPostWithBodyDiscoverType$inboundSchema
1591
+ .default("none"),
1592
+ });
1593
+ /** @internal */
1594
+ export const HealthCheckCollectMethodPostWithBodyDiscovery$outboundSchema = z.object({
1595
+ discoverType: HealthCheckCollectMethodPostWithBodyDiscoverType$outboundSchema.default("none"),
1596
+ });
1597
+ export function healthCheckCollectMethodPostWithBodyDiscoveryToJSON(healthCheckCollectMethodPostWithBodyDiscovery) {
1598
+ return JSON.stringify(HealthCheckCollectMethodPostWithBodyDiscovery$outboundSchema.parse(healthCheckCollectMethodPostWithBodyDiscovery));
1599
+ }
1600
+ export function healthCheckCollectMethodPostWithBodyDiscoveryFromJSON(jsonString) {
1601
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPostWithBodyDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPostWithBodyDiscovery' from JSON`);
1602
+ }
1603
+ /** @internal */
1604
+ export const HealthCheckCollectMethodPostWithBodyCollectRequestHeader$inboundSchema = z.object({
1605
+ name: z.string(),
1606
+ value: z.string(),
1607
+ });
1608
+ /** @internal */
1609
+ export const HealthCheckCollectMethodPostWithBodyCollectRequestHeader$outboundSchema = z.object({
1610
+ name: z.string(),
1611
+ value: z.string(),
1612
+ });
1613
+ export function healthCheckCollectMethodPostWithBodyCollectRequestHeaderToJSON(healthCheckCollectMethodPostWithBodyCollectRequestHeader) {
1614
+ return JSON.stringify(HealthCheckCollectMethodPostWithBodyCollectRequestHeader$outboundSchema
1615
+ .parse(healthCheckCollectMethodPostWithBodyCollectRequestHeader));
1616
+ }
1617
+ export function healthCheckCollectMethodPostWithBodyCollectRequestHeaderFromJSON(jsonString) {
1618
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPostWithBodyCollectRequestHeader$inboundSchema
1619
+ .parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPostWithBodyCollectRequestHeader' from JSON`);
1620
+ }
1621
+ /** @internal */
1622
+ export const HealthCheckCollectMethodPostWithBodyAuthentication$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostWithBodyAuthentication);
1623
+ /** @internal */
1624
+ export const HealthCheckCollectMethodPostWithBodyAuthentication$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostWithBodyAuthentication);
1625
+ /** @internal */
1626
+ export const HealthCheckCollectMethodPostWithBodyHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostWithBodyHiddenDefaultBreakers);
1627
+ /** @internal */
1628
+ export const HealthCheckCollectMethodPostWithBodyHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostWithBodyHiddenDefaultBreakers);
1629
+ /** @internal */
1630
+ export const HealthCheckCollectMethodPostWithBodyRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostWithBodyRetryType);
1631
+ /** @internal */
1632
+ export const HealthCheckCollectMethodPostWithBodyRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostWithBodyRetryType);
1633
+ /** @internal */
1634
+ export const HealthCheckCollectMethodPostWithBodyRetryRules$inboundSchema = z.object({
1635
+ type: HealthCheckCollectMethodPostWithBodyRetryType$inboundSchema.default("backoff"),
1636
+ interval: z.any().optional(),
1637
+ limit: z.any().optional(),
1638
+ multiplier: z.any().optional(),
1639
+ codes: z.any().optional(),
1640
+ enableHeader: z.any().optional(),
1641
+ });
1642
+ /** @internal */
1643
+ export const HealthCheckCollectMethodPostWithBodyRetryRules$outboundSchema = z.object({
1644
+ type: HealthCheckCollectMethodPostWithBodyRetryType$outboundSchema.default("backoff"),
1645
+ interval: z.any().optional(),
1646
+ limit: z.any().optional(),
1647
+ multiplier: z.any().optional(),
1648
+ codes: z.any().optional(),
1649
+ enableHeader: z.any().optional(),
1650
+ });
1651
+ export function healthCheckCollectMethodPostWithBodyRetryRulesToJSON(healthCheckCollectMethodPostWithBodyRetryRules) {
1652
+ return JSON.stringify(HealthCheckCollectMethodPostWithBodyRetryRules$outboundSchema.parse(healthCheckCollectMethodPostWithBodyRetryRules));
1653
+ }
1654
+ export function healthCheckCollectMethodPostWithBodyRetryRulesFromJSON(jsonString) {
1655
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPostWithBodyRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPostWithBodyRetryRules' from JSON`);
1656
+ }
1657
+ /** @internal */
1658
+ export const HealthCheckCollectMethodPostWithBody$inboundSchema = z.object({
1659
+ collectMethod: HealthCheckCollectMethodPostWithBodyHealthCheckMethod$inboundSchema.default("get"),
1660
+ collectBody: z.any().optional(),
1661
+ discovery: z.lazy(() => HealthCheckCollectMethodPostWithBodyDiscovery$inboundSchema).optional(),
1662
+ collectUrl: z.string(),
1663
+ collectRequestParams: z.any().optional(),
1664
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckCollectMethodPostWithBodyCollectRequestHeader$inboundSchema)).optional(),
1665
+ authenticateCollect: z.boolean().default(false),
1666
+ authentication: HealthCheckCollectMethodPostWithBodyAuthentication$inboundSchema.default("none"),
1667
+ timeout: z.number().default(30),
1668
+ rejectUnauthorized: z.boolean().default(false),
1669
+ defaultBreakers: HealthCheckCollectMethodPostWithBodyHiddenDefaultBreakers$inboundSchema
1670
+ .optional(),
1671
+ safeHeaders: z.array(z.string()).optional(),
1672
+ retryRules: z.lazy(() => HealthCheckCollectMethodPostWithBodyRetryRules$inboundSchema).optional(),
1673
+ });
1674
+ /** @internal */
1675
+ export const HealthCheckCollectMethodPostWithBody$outboundSchema = z.object({
1676
+ collectMethod: HealthCheckCollectMethodPostWithBodyHealthCheckMethod$outboundSchema
1677
+ .default("get"),
1678
+ collectBody: z.any().optional(),
1679
+ discovery: z.lazy(() => HealthCheckCollectMethodPostWithBodyDiscovery$outboundSchema).optional(),
1680
+ collectUrl: z.string(),
1681
+ collectRequestParams: z.any().optional(),
1682
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckCollectMethodPostWithBodyCollectRequestHeader$outboundSchema)).optional(),
1683
+ authenticateCollect: z.boolean().default(false),
1684
+ authentication: HealthCheckCollectMethodPostWithBodyAuthentication$outboundSchema.default("none"),
1685
+ timeout: z.number().default(30),
1686
+ rejectUnauthorized: z.boolean().default(false),
1687
+ defaultBreakers: HealthCheckCollectMethodPostWithBodyHiddenDefaultBreakers$outboundSchema
1688
+ .optional(),
1689
+ safeHeaders: z.array(z.string()).optional(),
1690
+ retryRules: z.lazy(() => HealthCheckCollectMethodPostWithBodyRetryRules$outboundSchema).optional(),
1691
+ });
1692
+ export function healthCheckCollectMethodPostWithBodyToJSON(healthCheckCollectMethodPostWithBody) {
1693
+ return JSON.stringify(HealthCheckCollectMethodPostWithBody$outboundSchema.parse(healthCheckCollectMethodPostWithBody));
1694
+ }
1695
+ export function healthCheckCollectMethodPostWithBodyFromJSON(jsonString) {
1696
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPostWithBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPostWithBody' from JSON`);
1697
+ }
1698
+ /** @internal */
1699
+ export const HealthCheckCollectMethodPostHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostHealthCheckMethod);
1700
+ /** @internal */
1701
+ export const HealthCheckCollectMethodPostHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostHealthCheckMethod);
1702
+ /** @internal */
1703
+ export const HealthCheckCollectMethodPostDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostDiscoverType);
1704
+ /** @internal */
1705
+ export const HealthCheckCollectMethodPostDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostDiscoverType);
1706
+ /** @internal */
1707
+ export const HealthCheckCollectMethodPostDiscovery$inboundSchema = z.object({
1708
+ discoverType: HealthCheckCollectMethodPostDiscoverType$inboundSchema.default("none"),
1709
+ });
1710
+ /** @internal */
1711
+ export const HealthCheckCollectMethodPostDiscovery$outboundSchema = z.object({
1712
+ discoverType: HealthCheckCollectMethodPostDiscoverType$outboundSchema.default("none"),
1713
+ });
1714
+ export function healthCheckCollectMethodPostDiscoveryToJSON(healthCheckCollectMethodPostDiscovery) {
1715
+ return JSON.stringify(HealthCheckCollectMethodPostDiscovery$outboundSchema.parse(healthCheckCollectMethodPostDiscovery));
1716
+ }
1717
+ export function healthCheckCollectMethodPostDiscoveryFromJSON(jsonString) {
1718
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPostDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPostDiscovery' from JSON`);
1719
+ }
1720
+ /** @internal */
1721
+ export const HealthCheckCollectMethodPostCollectRequestHeader$inboundSchema = z.object({
1722
+ name: z.string(),
1723
+ value: z.string(),
1724
+ });
1725
+ /** @internal */
1726
+ export const HealthCheckCollectMethodPostCollectRequestHeader$outboundSchema = z.object({
1727
+ name: z.string(),
1728
+ value: z.string(),
1729
+ });
1730
+ export function healthCheckCollectMethodPostCollectRequestHeaderToJSON(healthCheckCollectMethodPostCollectRequestHeader) {
1731
+ return JSON.stringify(HealthCheckCollectMethodPostCollectRequestHeader$outboundSchema.parse(healthCheckCollectMethodPostCollectRequestHeader));
1732
+ }
1733
+ export function healthCheckCollectMethodPostCollectRequestHeaderFromJSON(jsonString) {
1734
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPostCollectRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPostCollectRequestHeader' from JSON`);
1735
+ }
1736
+ /** @internal */
1737
+ export const HealthCheckCollectMethodPostAuthentication$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostAuthentication);
1738
+ /** @internal */
1739
+ export const HealthCheckCollectMethodPostAuthentication$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostAuthentication);
1740
+ /** @internal */
1741
+ export const HealthCheckCollectMethodPostHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostHiddenDefaultBreakers);
1742
+ /** @internal */
1743
+ export const HealthCheckCollectMethodPostHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostHiddenDefaultBreakers);
1744
+ /** @internal */
1745
+ export const HealthCheckCollectMethodPostRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodPostRetryType);
1746
+ /** @internal */
1747
+ export const HealthCheckCollectMethodPostRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodPostRetryType);
1748
+ /** @internal */
1749
+ export const HealthCheckCollectMethodPostRetryRules$inboundSchema = z.object({
1750
+ type: HealthCheckCollectMethodPostRetryType$inboundSchema.default("backoff"),
1751
+ interval: z.any().optional(),
1752
+ limit: z.any().optional(),
1753
+ multiplier: z.any().optional(),
1754
+ codes: z.any().optional(),
1755
+ enableHeader: z.any().optional(),
1756
+ });
1757
+ /** @internal */
1758
+ export const HealthCheckCollectMethodPostRetryRules$outboundSchema = z.object({
1759
+ type: HealthCheckCollectMethodPostRetryType$outboundSchema.default("backoff"),
1760
+ interval: z.any().optional(),
1761
+ limit: z.any().optional(),
1762
+ multiplier: z.any().optional(),
1763
+ codes: z.any().optional(),
1764
+ enableHeader: z.any().optional(),
1765
+ });
1766
+ export function healthCheckCollectMethodPostRetryRulesToJSON(healthCheckCollectMethodPostRetryRules) {
1767
+ return JSON.stringify(HealthCheckCollectMethodPostRetryRules$outboundSchema.parse(healthCheckCollectMethodPostRetryRules));
1768
+ }
1769
+ export function healthCheckCollectMethodPostRetryRulesFromJSON(jsonString) {
1770
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPostRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPostRetryRules' from JSON`);
1771
+ }
1772
+ /** @internal */
1773
+ export const HealthCheckCollectMethodPost$inboundSchema = z.object({
1774
+ collectMethod: HealthCheckCollectMethodPostHealthCheckMethod$inboundSchema
1775
+ .default("get"),
1776
+ collectRequestParams: z.any().optional(),
1777
+ discovery: z.lazy(() => HealthCheckCollectMethodPostDiscovery$inboundSchema)
1778
+ .optional(),
1779
+ collectUrl: z.string(),
1780
+ collectBody: z.any().optional(),
1781
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckCollectMethodPostCollectRequestHeader$inboundSchema)).optional(),
1782
+ authenticateCollect: z.boolean().default(false),
1783
+ authentication: HealthCheckCollectMethodPostAuthentication$inboundSchema
1784
+ .default("none"),
1785
+ timeout: z.number().default(30),
1786
+ rejectUnauthorized: z.boolean().default(false),
1787
+ defaultBreakers: HealthCheckCollectMethodPostHiddenDefaultBreakers$inboundSchema.optional(),
1788
+ safeHeaders: z.array(z.string()).optional(),
1789
+ retryRules: z.lazy(() => HealthCheckCollectMethodPostRetryRules$inboundSchema)
1790
+ .optional(),
1791
+ });
1792
+ /** @internal */
1793
+ export const HealthCheckCollectMethodPost$outboundSchema = z.object({
1794
+ collectMethod: HealthCheckCollectMethodPostHealthCheckMethod$outboundSchema
1795
+ .default("get"),
1796
+ collectRequestParams: z.any().optional(),
1797
+ discovery: z.lazy(() => HealthCheckCollectMethodPostDiscovery$outboundSchema)
1798
+ .optional(),
1799
+ collectUrl: z.string(),
1800
+ collectBody: z.any().optional(),
1801
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckCollectMethodPostCollectRequestHeader$outboundSchema)).optional(),
1802
+ authenticateCollect: z.boolean().default(false),
1803
+ authentication: HealthCheckCollectMethodPostAuthentication$outboundSchema
1804
+ .default("none"),
1805
+ timeout: z.number().default(30),
1806
+ rejectUnauthorized: z.boolean().default(false),
1807
+ defaultBreakers: HealthCheckCollectMethodPostHiddenDefaultBreakers$outboundSchema.optional(),
1808
+ safeHeaders: z.array(z.string()).optional(),
1809
+ retryRules: z.lazy(() => HealthCheckCollectMethodPostRetryRules$outboundSchema).optional(),
1810
+ });
1811
+ export function healthCheckCollectMethodPostToJSON(healthCheckCollectMethodPost) {
1812
+ return JSON.stringify(HealthCheckCollectMethodPost$outboundSchema.parse(healthCheckCollectMethodPost));
1813
+ }
1814
+ export function healthCheckCollectMethodPostFromJSON(jsonString) {
1815
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodPost' from JSON`);
1816
+ }
1817
+ /** @internal */
1818
+ export const HealthCheckCollectMethodGetHealthCheckMethod$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodGetHealthCheckMethod);
1819
+ /** @internal */
1820
+ export const HealthCheckCollectMethodGetHealthCheckMethod$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodGetHealthCheckMethod);
1821
+ /** @internal */
1822
+ export const HealthCheckCollectMethodGetDiscoverType$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodGetDiscoverType);
1823
+ /** @internal */
1824
+ export const HealthCheckCollectMethodGetDiscoverType$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodGetDiscoverType);
1825
+ /** @internal */
1826
+ export const HealthCheckCollectMethodGetDiscovery$inboundSchema = z.object({
1827
+ discoverType: HealthCheckCollectMethodGetDiscoverType$inboundSchema.default("none"),
1828
+ });
1829
+ /** @internal */
1830
+ export const HealthCheckCollectMethodGetDiscovery$outboundSchema = z.object({
1831
+ discoverType: HealthCheckCollectMethodGetDiscoverType$outboundSchema.default("none"),
1832
+ });
1833
+ export function healthCheckCollectMethodGetDiscoveryToJSON(healthCheckCollectMethodGetDiscovery) {
1834
+ return JSON.stringify(HealthCheckCollectMethodGetDiscovery$outboundSchema.parse(healthCheckCollectMethodGetDiscovery));
1835
+ }
1836
+ export function healthCheckCollectMethodGetDiscoveryFromJSON(jsonString) {
1837
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodGetDiscovery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodGetDiscovery' from JSON`);
1838
+ }
1839
+ /** @internal */
1840
+ export const HealthCheckCollectMethodGetCollectRequestHeader$inboundSchema = z.object({
1841
+ name: z.string(),
1842
+ value: z.string(),
1843
+ });
1844
+ /** @internal */
1845
+ export const HealthCheckCollectMethodGetCollectRequestHeader$outboundSchema = z.object({
1846
+ name: z.string(),
1847
+ value: z.string(),
1848
+ });
1849
+ export function healthCheckCollectMethodGetCollectRequestHeaderToJSON(healthCheckCollectMethodGetCollectRequestHeader) {
1850
+ return JSON.stringify(HealthCheckCollectMethodGetCollectRequestHeader$outboundSchema.parse(healthCheckCollectMethodGetCollectRequestHeader));
1851
+ }
1852
+ export function healthCheckCollectMethodGetCollectRequestHeaderFromJSON(jsonString) {
1853
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodGetCollectRequestHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodGetCollectRequestHeader' from JSON`);
1854
+ }
1855
+ /** @internal */
1856
+ export const HealthCheckCollectMethodGetAuthentication$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodGetAuthentication);
1857
+ /** @internal */
1858
+ export const HealthCheckCollectMethodGetAuthentication$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodGetAuthentication);
1859
+ /** @internal */
1860
+ export const HealthCheckCollectMethodGetHiddenDefaultBreakers$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodGetHiddenDefaultBreakers);
1861
+ /** @internal */
1862
+ export const HealthCheckCollectMethodGetHiddenDefaultBreakers$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodGetHiddenDefaultBreakers);
1863
+ /** @internal */
1864
+ export const HealthCheckCollectMethodGetRetryType$inboundSchema = openEnums.inboundSchema(HealthCheckCollectMethodGetRetryType);
1865
+ /** @internal */
1866
+ export const HealthCheckCollectMethodGetRetryType$outboundSchema = openEnums.outboundSchema(HealthCheckCollectMethodGetRetryType);
1867
+ /** @internal */
1868
+ export const HealthCheckCollectMethodGetRetryRules$inboundSchema = z.object({
1869
+ type: HealthCheckCollectMethodGetRetryType$inboundSchema.default("backoff"),
1870
+ interval: z.any().optional(),
1871
+ limit: z.any().optional(),
1872
+ multiplier: z.any().optional(),
1873
+ codes: z.any().optional(),
1874
+ enableHeader: z.any().optional(),
1875
+ });
1876
+ /** @internal */
1877
+ export const HealthCheckCollectMethodGetRetryRules$outboundSchema = z.object({
1878
+ type: HealthCheckCollectMethodGetRetryType$outboundSchema.default("backoff"),
1879
+ interval: z.any().optional(),
1880
+ limit: z.any().optional(),
1881
+ multiplier: z.any().optional(),
1882
+ codes: z.any().optional(),
1883
+ enableHeader: z.any().optional(),
1884
+ });
1885
+ export function healthCheckCollectMethodGetRetryRulesToJSON(healthCheckCollectMethodGetRetryRules) {
1886
+ return JSON.stringify(HealthCheckCollectMethodGetRetryRules$outboundSchema.parse(healthCheckCollectMethodGetRetryRules));
1887
+ }
1888
+ export function healthCheckCollectMethodGetRetryRulesFromJSON(jsonString) {
1889
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodGetRetryRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodGetRetryRules' from JSON`);
1890
+ }
1891
+ /** @internal */
1892
+ export const HealthCheckCollectMethodGet$inboundSchema = z.object({
1893
+ collectMethod: HealthCheckCollectMethodGetHealthCheckMethod$inboundSchema
1894
+ .default("get"),
1895
+ collectRequestParams: z.any().optional(),
1896
+ discovery: z.lazy(() => HealthCheckCollectMethodGetDiscovery$inboundSchema)
1897
+ .optional(),
1898
+ collectUrl: z.string(),
1899
+ collectBody: z.any().optional(),
1900
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckCollectMethodGetCollectRequestHeader$inboundSchema)).optional(),
1901
+ authenticateCollect: z.boolean().default(false),
1902
+ authentication: HealthCheckCollectMethodGetAuthentication$inboundSchema
1903
+ .default("none"),
1904
+ timeout: z.number().default(30),
1905
+ rejectUnauthorized: z.boolean().default(false),
1906
+ defaultBreakers: HealthCheckCollectMethodGetHiddenDefaultBreakers$inboundSchema.optional(),
1907
+ safeHeaders: z.array(z.string()).optional(),
1908
+ retryRules: z.lazy(() => HealthCheckCollectMethodGetRetryRules$inboundSchema)
1909
+ .optional(),
1910
+ });
1911
+ /** @internal */
1912
+ export const HealthCheckCollectMethodGet$outboundSchema = z.object({
1913
+ collectMethod: HealthCheckCollectMethodGetHealthCheckMethod$outboundSchema
1914
+ .default("get"),
1915
+ collectRequestParams: z.any().optional(),
1916
+ discovery: z.lazy(() => HealthCheckCollectMethodGetDiscovery$outboundSchema)
1917
+ .optional(),
1918
+ collectUrl: z.string(),
1919
+ collectBody: z.any().optional(),
1920
+ collectRequestHeaders: z.array(z.lazy(() => HealthCheckCollectMethodGetCollectRequestHeader$outboundSchema)).optional(),
1921
+ authenticateCollect: z.boolean().default(false),
1922
+ authentication: HealthCheckCollectMethodGetAuthentication$outboundSchema
1923
+ .default("none"),
1924
+ timeout: z.number().default(30),
1925
+ rejectUnauthorized: z.boolean().default(false),
1926
+ defaultBreakers: HealthCheckCollectMethodGetHiddenDefaultBreakers$outboundSchema.optional(),
1927
+ safeHeaders: z.array(z.string()).optional(),
1928
+ retryRules: z.lazy(() => HealthCheckCollectMethodGetRetryRules$outboundSchema)
1929
+ .optional(),
1930
+ });
1931
+ export function healthCheckCollectMethodGetToJSON(healthCheckCollectMethodGet) {
1932
+ return JSON.stringify(HealthCheckCollectMethodGet$outboundSchema.parse(healthCheckCollectMethodGet));
1933
+ }
1934
+ export function healthCheckCollectMethodGetFromJSON(jsonString) {
1935
+ return safeParse(jsonString, (x) => HealthCheckCollectMethodGet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectMethodGet' from JSON`);
1936
+ }
1937
+ /** @internal */
1938
+ export const HealthCheckCollectorConf$inboundSchema = z.union([
1939
+ z.lazy(() => HealthCheckAuthenticationNone$inboundSchema),
1940
+ z.lazy(() => HealthCheckAuthenticationBasic$inboundSchema),
1941
+ z.lazy(() => HealthCheckAuthenticationBasicSecret$inboundSchema),
1942
+ z.lazy(() => HealthCheckAuthenticationLogin$inboundSchema),
1943
+ z.lazy(() => HealthCheckAuthenticationLoginSecret$inboundSchema),
1944
+ z.lazy(() => HealthCheckAuthenticationOauth$inboundSchema),
1945
+ z.lazy(() => HealthCheckAuthenticationOauthSecret$inboundSchema),
1946
+ ]);
1947
+ /** @internal */
1948
+ export const HealthCheckCollectorConf$outboundSchema = z.union([
1949
+ z.lazy(() => HealthCheckAuthenticationNone$outboundSchema),
1950
+ z.lazy(() => HealthCheckAuthenticationBasic$outboundSchema),
1951
+ z.lazy(() => HealthCheckAuthenticationBasicSecret$outboundSchema),
1952
+ z.lazy(() => HealthCheckAuthenticationLogin$outboundSchema),
1953
+ z.lazy(() => HealthCheckAuthenticationLoginSecret$outboundSchema),
1954
+ z.lazy(() => HealthCheckAuthenticationOauth$outboundSchema),
1955
+ z.lazy(() => HealthCheckAuthenticationOauthSecret$outboundSchema),
1956
+ ]);
1957
+ export function healthCheckCollectorConfToJSON(healthCheckCollectorConf) {
1958
+ return JSON.stringify(HealthCheckCollectorConf$outboundSchema.parse(healthCheckCollectorConf));
1959
+ }
1960
+ export function healthCheckCollectorConfFromJSON(jsonString) {
1961
+ return safeParse(jsonString, (x) => HealthCheckCollectorConf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthCheckCollectorConf' from JSON`);
1962
+ }
1963
+ //# sourceMappingURL=healthcheckcollectorconf.js.map