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
@@ -4,3782 +4,50 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../lib/schemas.js";
7
- import * as openEnums from "../types/enums.js";
8
- import { ClosedEnum, OpenEnum } from "../types/enums.js";
9
7
  import { Result as SafeParseResult } from "../types/fp.js";
10
8
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+ import {
10
+ SplunkCollectorConf,
11
+ SplunkCollectorConf$inboundSchema,
12
+ SplunkCollectorConf$Outbound,
13
+ SplunkCollectorConf$outboundSchema,
14
+ } from "./splunkcollectorconf.js";
11
15
 
12
16
  /**
13
- * Authentication method for Discover and Collect REST calls
17
+ * Splunk collector configuration
14
18
  */
15
- export const CollectorSplunkAuthentication7 = {
19
+ export type CollectorSplunk = {
16
20
  /**
17
- * None
21
+ * Collector type
18
22
  */
19
- None: "none",
20
- /**
21
- * Basic
22
- */
23
- Basic: "basic",
24
- /**
25
- * Basic (credentials secret)
26
- */
27
- BasicSecret: "basicSecret",
28
- /**
29
- * Bearer Token
30
- */
31
- Token: "token",
32
- /**
33
- * Bearer Token (text secret)
34
- */
35
- TokenSecret: "tokenSecret",
36
- } as const;
37
- /**
38
- * Authentication method for Discover and Collect REST calls
39
- */
40
- export type CollectorSplunkAuthentication7 = OpenEnum<
41
- typeof CollectorSplunkAuthentication7
42
- >;
43
-
44
- /**
45
- * Collector type: splunk
46
- */
47
- export const CollectorSplunkType7 = {
48
- Splunk: "splunk",
49
- } as const;
50
- /**
51
- * Collector type: splunk
52
- */
53
- export type CollectorSplunkType7 = ClosedEnum<typeof CollectorSplunkType7>;
54
-
55
- /**
56
- * Format of the returned output
57
- */
58
- export const CollectorSplunkOutputMode7 = {
59
- Csv: "csv",
60
- Json: "json",
61
- } as const;
62
- /**
63
- * Format of the returned output
64
- */
65
- export type CollectorSplunkOutputMode7 = OpenEnum<
66
- typeof CollectorSplunkOutputMode7
67
- >;
68
-
69
- export type CollectorSplunkCollectRequestParam7 = {
70
- name: string;
71
- /**
72
- * JavaScript expression to compute the parameter's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
73
- */
74
- value: string;
75
- };
76
-
77
- export type CollectorSplunkCollectRequestHeader7 = {
78
- name: string;
79
- /**
80
- * JavaScript expression to compute the header's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
81
- */
82
- value: string;
83
- };
84
-
85
- /**
86
- * Algorithm to use when performing HTTP retries
87
- */
88
- export const CollectorSplunkRetryType7 = {
89
- /**
90
- * Disabled
91
- */
92
- None: "none",
93
- /**
94
- * Backoff
95
- */
96
- Backoff: "backoff",
97
- /**
98
- * Static
99
- */
100
- Static: "static",
101
- } as const;
102
- /**
103
- * Algorithm to use when performing HTTP retries
104
- */
105
- export type CollectorSplunkRetryType7 = OpenEnum<
106
- typeof CollectorSplunkRetryType7
107
- >;
108
-
109
- export type CollectorSplunkRetryRules7 = {
110
- /**
111
- * Algorithm to use when performing HTTP retries
112
- */
113
- type?: CollectorSplunkRetryType7 | undefined;
114
- interval?: any | undefined;
115
- limit?: any | undefined;
116
- multiplier?: any | undefined;
117
- codes?: any | undefined;
118
- enableHeader?: any | undefined;
119
- retryConnectTimeout?: any | undefined;
120
- retryConnectReset?: any | undefined;
121
- };
122
-
123
- export type CollectorSplunkSplunk7 = {
124
- /**
125
- * Authentication method for Discover and Collect REST calls
126
- */
127
- authentication?: CollectorSplunkAuthentication7 | undefined;
128
- /**
129
- * URL to use for login API call, this call is expected to be a POST.
130
- */
131
- loginUrl?: string | undefined;
132
- /**
133
- * Select or create a stored secret that references your login credentials
134
- */
135
- credentialsSecret: string;
136
- /**
137
- * Template for POST body to send with login request, ${username} and ${password} are used to specify location of these attributes in the message
138
- */
139
- loginBody?: string | undefined;
140
- /**
141
- * Path to token attribute in login response body. Nested attributes are allowed.
142
- */
143
- tokenRespAttribute?: string | undefined;
144
- /**
145
- * JavaScript expression to compute the Authorization header to pass in discover and collect calls. The value ${token} is used to reference the token obtained from login.
146
- */
147
- authHeaderExpr?: string | undefined;
148
- /**
149
- * Collector type: splunk
150
- */
151
- type: CollectorSplunkType7;
152
- /**
153
- * Search head base URL. Can be an expression. Default is https://localhost:8089.
154
- */
155
- searchHead?: string | undefined;
156
- /**
157
- * Examples: 'index=myAppLogs level=error channel=myApp' OR '| mstats avg(myStat) as myStat WHERE index=myStatsIndex.'
158
- */
159
- search: string;
160
- /**
161
- * The earliest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-16m@m'
162
- */
163
- earliest?: string | undefined;
164
- /**
165
- * The latest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-1m@m'
166
- */
167
- latest?: string | undefined;
168
- /**
169
- * REST API used to create a search
170
- */
171
- endpoint?: string | undefined;
172
- /**
173
- * Format of the returned output
174
- */
175
- outputMode?: CollectorSplunkOutputMode7 | undefined;
176
- /**
177
- * Optional collect request parameters
178
- */
179
- collectRequestParams?: Array<CollectorSplunkCollectRequestParam7> | undefined;
180
- /**
181
- * Optional collect request headers
182
- */
183
- collectRequestHeaders?:
184
- | Array<CollectorSplunkCollectRequestHeader7>
185
- | undefined;
186
- /**
187
- * HTTP request inactivity timeout. Use 0 for no timeout.
188
- */
189
- timeout?: number | undefined;
190
- /**
191
- * Use round-robin DNS lookup. Suitable when DNS server returns multiple addresses in sort order.
192
- */
193
- useRoundRobinDns?: boolean | undefined;
194
- /**
195
- * Disable collector event time filtering when a date range is specified
196
- */
197
- disableTimeFilter?: boolean | undefined;
198
- /**
199
- * Reject certificates that cannot be verified against a valid CA (such as self-signed certificates)
200
- */
201
- rejectUnauthorized?: boolean | undefined;
202
- /**
203
- * Escape characters (\") in search queries will be passed directly to Splunk
204
- */
205
- handleEscapedChars?: boolean | undefined;
206
- retryRules?: CollectorSplunkRetryRules7 | undefined;
207
- username?: string | undefined;
208
- password?: string | undefined;
209
- token?: string | undefined;
210
- /**
211
- * Select or create a stored secret that references your Bearer token
212
- */
213
- tokenSecret?: string | undefined;
214
- };
215
-
216
- /**
217
- * Authentication method for Discover and Collect REST calls
218
- */
219
- export const CollectorSplunkAuthentication6 = {
220
- /**
221
- * None
222
- */
223
- None: "none",
224
- /**
225
- * Basic
226
- */
227
- Basic: "basic",
228
- /**
229
- * Basic (credentials secret)
230
- */
231
- BasicSecret: "basicSecret",
232
- /**
233
- * Bearer Token
234
- */
235
- Token: "token",
236
- /**
237
- * Bearer Token (text secret)
238
- */
239
- TokenSecret: "tokenSecret",
240
- } as const;
241
- /**
242
- * Authentication method for Discover and Collect REST calls
243
- */
244
- export type CollectorSplunkAuthentication6 = OpenEnum<
245
- typeof CollectorSplunkAuthentication6
246
- >;
247
-
248
- /**
249
- * Collector type: splunk
250
- */
251
- export const CollectorSplunkType6 = {
252
- Splunk: "splunk",
253
- } as const;
254
- /**
255
- * Collector type: splunk
256
- */
257
- export type CollectorSplunkType6 = ClosedEnum<typeof CollectorSplunkType6>;
258
-
259
- /**
260
- * Format of the returned output
261
- */
262
- export const CollectorSplunkOutputMode6 = {
263
- Csv: "csv",
264
- Json: "json",
265
- } as const;
266
- /**
267
- * Format of the returned output
268
- */
269
- export type CollectorSplunkOutputMode6 = OpenEnum<
270
- typeof CollectorSplunkOutputMode6
271
- >;
272
-
273
- export type CollectorSplunkCollectRequestParam6 = {
274
- name: string;
275
- /**
276
- * JavaScript expression to compute the parameter's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
277
- */
278
- value: string;
279
- };
280
-
281
- export type CollectorSplunkCollectRequestHeader6 = {
282
- name: string;
283
- /**
284
- * JavaScript expression to compute the header's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
285
- */
286
- value: string;
287
- };
288
-
289
- /**
290
- * Algorithm to use when performing HTTP retries
291
- */
292
- export const CollectorSplunkRetryType6 = {
293
- /**
294
- * Disabled
295
- */
296
- None: "none",
297
- /**
298
- * Backoff
299
- */
300
- Backoff: "backoff",
301
- /**
302
- * Static
303
- */
304
- Static: "static",
305
- } as const;
306
- /**
307
- * Algorithm to use when performing HTTP retries
308
- */
309
- export type CollectorSplunkRetryType6 = OpenEnum<
310
- typeof CollectorSplunkRetryType6
311
- >;
312
-
313
- export type CollectorSplunkRetryRules6 = {
314
- /**
315
- * Algorithm to use when performing HTTP retries
316
- */
317
- type?: CollectorSplunkRetryType6 | undefined;
318
- interval?: any | undefined;
319
- limit?: any | undefined;
320
- multiplier?: any | undefined;
321
- codes?: any | undefined;
322
- enableHeader?: any | undefined;
323
- retryConnectTimeout?: any | undefined;
324
- retryConnectReset?: any | undefined;
325
- };
326
-
327
- export type CollectorSplunkSplunk6 = {
328
- /**
329
- * Authentication method for Discover and Collect REST calls
330
- */
331
- authentication?: CollectorSplunkAuthentication6 | undefined;
332
- /**
333
- * URL to use for login API call, this call is expected to be a POST.
334
- */
335
- loginUrl?: string | undefined;
336
- username: string;
337
- password: string;
338
- /**
339
- * Template for POST body to send with login request, ${username} and ${password} are used to specify location of these attributes in the message
340
- */
341
- loginBody?: string | undefined;
342
- /**
343
- * Path to token attribute in login response body. Nested attributes are allowed.
344
- */
345
- tokenRespAttribute?: string | undefined;
346
- /**
347
- * JavaScript expression to compute the Authorization header to pass in discover and collect calls. The value ${token} is used to reference the token obtained from login.
348
- */
349
- authHeaderExpr?: string | undefined;
350
- /**
351
- * Collector type: splunk
352
- */
353
- type: CollectorSplunkType6;
354
- /**
355
- * Search head base URL. Can be an expression. Default is https://localhost:8089.
356
- */
357
- searchHead?: string | undefined;
358
- /**
359
- * Examples: 'index=myAppLogs level=error channel=myApp' OR '| mstats avg(myStat) as myStat WHERE index=myStatsIndex.'
360
- */
361
- search: string;
362
- /**
363
- * The earliest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-16m@m'
364
- */
365
- earliest?: string | undefined;
366
- /**
367
- * The latest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-1m@m'
368
- */
369
- latest?: string | undefined;
370
- /**
371
- * REST API used to create a search
372
- */
373
- endpoint?: string | undefined;
374
- /**
375
- * Format of the returned output
376
- */
377
- outputMode?: CollectorSplunkOutputMode6 | undefined;
378
- /**
379
- * Optional collect request parameters
380
- */
381
- collectRequestParams?: Array<CollectorSplunkCollectRequestParam6> | undefined;
382
- /**
383
- * Optional collect request headers
384
- */
385
- collectRequestHeaders?:
386
- | Array<CollectorSplunkCollectRequestHeader6>
387
- | undefined;
388
- /**
389
- * HTTP request inactivity timeout. Use 0 for no timeout.
390
- */
391
- timeout?: number | undefined;
392
- /**
393
- * Use round-robin DNS lookup. Suitable when DNS server returns multiple addresses in sort order.
394
- */
395
- useRoundRobinDns?: boolean | undefined;
396
- /**
397
- * Disable collector event time filtering when a date range is specified
398
- */
399
- disableTimeFilter?: boolean | undefined;
400
- /**
401
- * Reject certificates that cannot be verified against a valid CA (such as self-signed certificates)
402
- */
403
- rejectUnauthorized?: boolean | undefined;
404
- /**
405
- * Escape characters (\") in search queries will be passed directly to Splunk
406
- */
407
- handleEscapedChars?: boolean | undefined;
408
- retryRules?: CollectorSplunkRetryRules6 | undefined;
409
- /**
410
- * Select or create a stored secret that references your login credentials
411
- */
412
- credentialsSecret?: string | undefined;
413
- token?: string | undefined;
414
- /**
415
- * Select or create a stored secret that references your Bearer token
416
- */
417
- tokenSecret?: string | undefined;
418
- };
419
-
420
- /**
421
- * Authentication method for Discover and Collect REST calls
422
- */
423
- export const CollectorSplunkAuthentication5 = {
424
- /**
425
- * None
426
- */
427
- None: "none",
428
- /**
429
- * Basic
430
- */
431
- Basic: "basic",
432
- /**
433
- * Basic (credentials secret)
434
- */
435
- BasicSecret: "basicSecret",
436
- /**
437
- * Bearer Token
438
- */
439
- Token: "token",
440
- /**
441
- * Bearer Token (text secret)
442
- */
443
- TokenSecret: "tokenSecret",
444
- } as const;
445
- /**
446
- * Authentication method for Discover and Collect REST calls
447
- */
448
- export type CollectorSplunkAuthentication5 = OpenEnum<
449
- typeof CollectorSplunkAuthentication5
450
- >;
451
-
452
- /**
453
- * Collector type: splunk
454
- */
455
- export const CollectorSplunkType5 = {
456
- Splunk: "splunk",
457
- } as const;
458
- /**
459
- * Collector type: splunk
460
- */
461
- export type CollectorSplunkType5 = ClosedEnum<typeof CollectorSplunkType5>;
462
-
463
- /**
464
- * Format of the returned output
465
- */
466
- export const CollectorSplunkOutputMode5 = {
467
- Csv: "csv",
468
- Json: "json",
469
- } as const;
470
- /**
471
- * Format of the returned output
472
- */
473
- export type CollectorSplunkOutputMode5 = OpenEnum<
474
- typeof CollectorSplunkOutputMode5
475
- >;
476
-
477
- export type CollectorSplunkCollectRequestParam5 = {
478
- name: string;
479
- /**
480
- * JavaScript expression to compute the parameter's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
481
- */
482
- value: string;
483
- };
484
-
485
- export type CollectorSplunkCollectRequestHeader5 = {
486
- name: string;
487
- /**
488
- * JavaScript expression to compute the header's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
489
- */
490
- value: string;
491
- };
492
-
493
- /**
494
- * Algorithm to use when performing HTTP retries
495
- */
496
- export const CollectorSplunkRetryType5 = {
497
- /**
498
- * Disabled
499
- */
500
- None: "none",
501
- /**
502
- * Backoff
503
- */
504
- Backoff: "backoff",
505
- /**
506
- * Static
507
- */
508
- Static: "static",
509
- } as const;
510
- /**
511
- * Algorithm to use when performing HTTP retries
512
- */
513
- export type CollectorSplunkRetryType5 = OpenEnum<
514
- typeof CollectorSplunkRetryType5
515
- >;
516
-
517
- export type CollectorSplunkRetryRules5 = {
518
- /**
519
- * Algorithm to use when performing HTTP retries
520
- */
521
- type?: CollectorSplunkRetryType5 | undefined;
522
- interval?: any | undefined;
523
- limit?: any | undefined;
524
- multiplier?: any | undefined;
525
- codes?: any | undefined;
526
- enableHeader?: any | undefined;
527
- retryConnectTimeout?: any | undefined;
528
- retryConnectReset?: any | undefined;
529
- };
530
-
531
- export type CollectorSplunkSplunk5 = {
532
- /**
533
- * Authentication method for Discover and Collect REST calls
534
- */
535
- authentication?: CollectorSplunkAuthentication5 | undefined;
536
- /**
537
- * Select or create a stored secret that references your Bearer token
538
- */
539
- tokenSecret: string;
540
- /**
541
- * Collector type: splunk
542
- */
543
- type: CollectorSplunkType5;
544
- /**
545
- * Search head base URL. Can be an expression. Default is https://localhost:8089.
546
- */
547
- searchHead?: string | undefined;
548
- /**
549
- * Examples: 'index=myAppLogs level=error channel=myApp' OR '| mstats avg(myStat) as myStat WHERE index=myStatsIndex.'
550
- */
551
- search: string;
552
- /**
553
- * The earliest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-16m@m'
554
- */
555
- earliest?: string | undefined;
556
- /**
557
- * The latest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-1m@m'
558
- */
559
- latest?: string | undefined;
560
- /**
561
- * REST API used to create a search
562
- */
563
- endpoint?: string | undefined;
564
- /**
565
- * Format of the returned output
566
- */
567
- outputMode?: CollectorSplunkOutputMode5 | undefined;
568
- /**
569
- * Optional collect request parameters
570
- */
571
- collectRequestParams?: Array<CollectorSplunkCollectRequestParam5> | undefined;
572
- /**
573
- * Optional collect request headers
574
- */
575
- collectRequestHeaders?:
576
- | Array<CollectorSplunkCollectRequestHeader5>
577
- | undefined;
578
- /**
579
- * HTTP request inactivity timeout. Use 0 for no timeout.
580
- */
581
- timeout?: number | undefined;
582
- /**
583
- * Use round-robin DNS lookup. Suitable when DNS server returns multiple addresses in sort order.
584
- */
585
- useRoundRobinDns?: boolean | undefined;
586
- /**
587
- * Disable collector event time filtering when a date range is specified
588
- */
589
- disableTimeFilter?: boolean | undefined;
590
- /**
591
- * Reject certificates that cannot be verified against a valid CA (such as self-signed certificates)
592
- */
593
- rejectUnauthorized?: boolean | undefined;
594
- /**
595
- * Escape characters (\") in search queries will be passed directly to Splunk
596
- */
597
- handleEscapedChars?: boolean | undefined;
598
- retryRules?: CollectorSplunkRetryRules5 | undefined;
599
- username?: string | undefined;
600
- password?: string | undefined;
601
- /**
602
- * Select or create a stored secret that references your login credentials
603
- */
604
- credentialsSecret?: string | undefined;
605
- token?: string | undefined;
606
- /**
607
- * URL to use for login API call, this call is expected to be a POST.
608
- */
609
- loginUrl?: string | undefined;
610
- /**
611
- * Template for POST body to send with login request, ${username} and ${password} are used to specify location of these attributes in the message
612
- */
613
- loginBody?: string | undefined;
614
- /**
615
- * Path to token attribute in login response body. Nested attributes are allowed.
616
- */
617
- tokenRespAttribute?: string | undefined;
618
- /**
619
- * JavaScript expression to compute the Authorization header to pass in discover and collect calls. The value ${token} is used to reference the token obtained from login.
620
- */
621
- authHeaderExpr?: string | undefined;
622
- };
623
-
624
- /**
625
- * Authentication method for Discover and Collect REST calls
626
- */
627
- export const CollectorSplunkAuthentication4 = {
628
- /**
629
- * None
630
- */
631
- None: "none",
632
- /**
633
- * Basic
634
- */
635
- Basic: "basic",
636
- /**
637
- * Basic (credentials secret)
638
- */
639
- BasicSecret: "basicSecret",
640
- /**
641
- * Bearer Token
642
- */
643
- Token: "token",
644
- /**
645
- * Bearer Token (text secret)
646
- */
647
- TokenSecret: "tokenSecret",
648
- } as const;
649
- /**
650
- * Authentication method for Discover and Collect REST calls
651
- */
652
- export type CollectorSplunkAuthentication4 = OpenEnum<
653
- typeof CollectorSplunkAuthentication4
654
- >;
655
-
656
- /**
657
- * Collector type: splunk
658
- */
659
- export const CollectorSplunkType4 = {
660
- Splunk: "splunk",
661
- } as const;
662
- /**
663
- * Collector type: splunk
664
- */
665
- export type CollectorSplunkType4 = ClosedEnum<typeof CollectorSplunkType4>;
666
-
667
- /**
668
- * Format of the returned output
669
- */
670
- export const CollectorSplunkOutputMode4 = {
671
- Csv: "csv",
672
- Json: "json",
673
- } as const;
674
- /**
675
- * Format of the returned output
676
- */
677
- export type CollectorSplunkOutputMode4 = OpenEnum<
678
- typeof CollectorSplunkOutputMode4
679
- >;
680
-
681
- export type CollectorSplunkCollectRequestParam4 = {
682
- name: string;
683
- /**
684
- * JavaScript expression to compute the parameter's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
685
- */
686
- value: string;
687
- };
688
-
689
- export type CollectorSplunkCollectRequestHeader4 = {
690
- name: string;
691
- /**
692
- * JavaScript expression to compute the header's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
693
- */
694
- value: string;
695
- };
696
-
697
- /**
698
- * Algorithm to use when performing HTTP retries
699
- */
700
- export const CollectorSplunkRetryType4 = {
701
- /**
702
- * Disabled
703
- */
704
- None: "none",
705
- /**
706
- * Backoff
707
- */
708
- Backoff: "backoff",
709
- /**
710
- * Static
711
- */
712
- Static: "static",
713
- } as const;
714
- /**
715
- * Algorithm to use when performing HTTP retries
716
- */
717
- export type CollectorSplunkRetryType4 = OpenEnum<
718
- typeof CollectorSplunkRetryType4
719
- >;
720
-
721
- export type CollectorSplunkRetryRules4 = {
722
- /**
723
- * Algorithm to use when performing HTTP retries
724
- */
725
- type?: CollectorSplunkRetryType4 | undefined;
726
- interval?: any | undefined;
727
- limit?: any | undefined;
728
- multiplier?: any | undefined;
729
- codes?: any | undefined;
730
- enableHeader?: any | undefined;
731
- retryConnectTimeout?: any | undefined;
732
- retryConnectReset?: any | undefined;
733
- };
734
-
735
- export type CollectorSplunkSplunk4 = {
736
- /**
737
- * Authentication method for Discover and Collect REST calls
738
- */
739
- authentication?: CollectorSplunkAuthentication4 | undefined;
740
- token: string;
741
- /**
742
- * Collector type: splunk
743
- */
744
- type: CollectorSplunkType4;
745
- /**
746
- * Search head base URL. Can be an expression. Default is https://localhost:8089.
747
- */
748
- searchHead?: string | undefined;
749
- /**
750
- * Examples: 'index=myAppLogs level=error channel=myApp' OR '| mstats avg(myStat) as myStat WHERE index=myStatsIndex.'
751
- */
752
- search: string;
753
- /**
754
- * The earliest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-16m@m'
755
- */
756
- earliest?: string | undefined;
757
- /**
758
- * The latest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-1m@m'
759
- */
760
- latest?: string | undefined;
761
- /**
762
- * REST API used to create a search
763
- */
764
- endpoint?: string | undefined;
765
- /**
766
- * Format of the returned output
767
- */
768
- outputMode?: CollectorSplunkOutputMode4 | undefined;
769
- /**
770
- * Optional collect request parameters
771
- */
772
- collectRequestParams?: Array<CollectorSplunkCollectRequestParam4> | undefined;
773
- /**
774
- * Optional collect request headers
775
- */
776
- collectRequestHeaders?:
777
- | Array<CollectorSplunkCollectRequestHeader4>
778
- | undefined;
779
- /**
780
- * HTTP request inactivity timeout. Use 0 for no timeout.
781
- */
782
- timeout?: number | undefined;
783
- /**
784
- * Use round-robin DNS lookup. Suitable when DNS server returns multiple addresses in sort order.
785
- */
786
- useRoundRobinDns?: boolean | undefined;
787
- /**
788
- * Disable collector event time filtering when a date range is specified
789
- */
790
- disableTimeFilter?: boolean | undefined;
791
- /**
792
- * Reject certificates that cannot be verified against a valid CA (such as self-signed certificates)
793
- */
794
- rejectUnauthorized?: boolean | undefined;
795
- /**
796
- * Escape characters (\") in search queries will be passed directly to Splunk
797
- */
798
- handleEscapedChars?: boolean | undefined;
799
- retryRules?: CollectorSplunkRetryRules4 | undefined;
800
- username?: string | undefined;
801
- password?: string | undefined;
802
- /**
803
- * Select or create a stored secret that references your login credentials
804
- */
805
- credentialsSecret?: string | undefined;
806
- /**
807
- * Select or create a stored secret that references your Bearer token
808
- */
809
- tokenSecret?: string | undefined;
810
- /**
811
- * URL to use for login API call, this call is expected to be a POST.
812
- */
813
- loginUrl?: string | undefined;
814
- /**
815
- * Template for POST body to send with login request, ${username} and ${password} are used to specify location of these attributes in the message
816
- */
817
- loginBody?: string | undefined;
818
- /**
819
- * Path to token attribute in login response body. Nested attributes are allowed.
820
- */
821
- tokenRespAttribute?: string | undefined;
822
- /**
823
- * JavaScript expression to compute the Authorization header to pass in discover and collect calls. The value ${token} is used to reference the token obtained from login.
824
- */
825
- authHeaderExpr?: string | undefined;
826
- };
827
-
828
- /**
829
- * Authentication method for Discover and Collect REST calls
830
- */
831
- export const CollectorSplunkAuthentication3 = {
832
- /**
833
- * None
834
- */
835
- None: "none",
836
- /**
837
- * Basic
838
- */
839
- Basic: "basic",
840
- /**
841
- * Basic (credentials secret)
842
- */
843
- BasicSecret: "basicSecret",
844
- /**
845
- * Bearer Token
846
- */
847
- Token: "token",
848
- /**
849
- * Bearer Token (text secret)
850
- */
851
- TokenSecret: "tokenSecret",
852
- } as const;
853
- /**
854
- * Authentication method for Discover and Collect REST calls
855
- */
856
- export type CollectorSplunkAuthentication3 = OpenEnum<
857
- typeof CollectorSplunkAuthentication3
858
- >;
859
-
860
- /**
861
- * Collector type: splunk
862
- */
863
- export const CollectorSplunkType3 = {
864
- Splunk: "splunk",
865
- } as const;
866
- /**
867
- * Collector type: splunk
868
- */
869
- export type CollectorSplunkType3 = ClosedEnum<typeof CollectorSplunkType3>;
870
-
871
- /**
872
- * Format of the returned output
873
- */
874
- export const CollectorSplunkOutputMode3 = {
875
- Csv: "csv",
876
- Json: "json",
877
- } as const;
878
- /**
879
- * Format of the returned output
880
- */
881
- export type CollectorSplunkOutputMode3 = OpenEnum<
882
- typeof CollectorSplunkOutputMode3
883
- >;
884
-
885
- export type CollectorSplunkCollectRequestParam3 = {
886
- name: string;
887
- /**
888
- * JavaScript expression to compute the parameter's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
889
- */
890
- value: string;
891
- };
892
-
893
- export type CollectorSplunkCollectRequestHeader3 = {
894
- name: string;
895
- /**
896
- * JavaScript expression to compute the header's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
897
- */
898
- value: string;
899
- };
900
-
901
- /**
902
- * Algorithm to use when performing HTTP retries
903
- */
904
- export const CollectorSplunkRetryType3 = {
905
- /**
906
- * Disabled
907
- */
908
- None: "none",
909
- /**
910
- * Backoff
911
- */
912
- Backoff: "backoff",
913
- /**
914
- * Static
915
- */
916
- Static: "static",
917
- } as const;
918
- /**
919
- * Algorithm to use when performing HTTP retries
920
- */
921
- export type CollectorSplunkRetryType3 = OpenEnum<
922
- typeof CollectorSplunkRetryType3
923
- >;
924
-
925
- export type CollectorSplunkRetryRules3 = {
926
- /**
927
- * Algorithm to use when performing HTTP retries
928
- */
929
- type?: CollectorSplunkRetryType3 | undefined;
930
- interval?: any | undefined;
931
- limit?: any | undefined;
932
- multiplier?: any | undefined;
933
- codes?: any | undefined;
934
- enableHeader?: any | undefined;
935
- retryConnectTimeout?: any | undefined;
936
- retryConnectReset?: any | undefined;
937
- };
938
-
939
- export type CollectorSplunkSplunk3 = {
940
- /**
941
- * Authentication method for Discover and Collect REST calls
942
- */
943
- authentication?: CollectorSplunkAuthentication3 | undefined;
944
- /**
945
- * Select or create a stored secret that references your login credentials
946
- */
947
- credentialsSecret: string;
948
- /**
949
- * Collector type: splunk
950
- */
951
- type: CollectorSplunkType3;
952
- /**
953
- * Search head base URL. Can be an expression. Default is https://localhost:8089.
954
- */
955
- searchHead?: string | undefined;
956
- /**
957
- * Examples: 'index=myAppLogs level=error channel=myApp' OR '| mstats avg(myStat) as myStat WHERE index=myStatsIndex.'
958
- */
959
- search: string;
960
- /**
961
- * The earliest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-16m@m'
962
- */
963
- earliest?: string | undefined;
964
- /**
965
- * The latest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-1m@m'
966
- */
967
- latest?: string | undefined;
968
- /**
969
- * REST API used to create a search
970
- */
971
- endpoint?: string | undefined;
972
- /**
973
- * Format of the returned output
974
- */
975
- outputMode?: CollectorSplunkOutputMode3 | undefined;
976
- /**
977
- * Optional collect request parameters
978
- */
979
- collectRequestParams?: Array<CollectorSplunkCollectRequestParam3> | undefined;
980
- /**
981
- * Optional collect request headers
982
- */
983
- collectRequestHeaders?:
984
- | Array<CollectorSplunkCollectRequestHeader3>
985
- | undefined;
986
- /**
987
- * HTTP request inactivity timeout. Use 0 for no timeout.
988
- */
989
- timeout?: number | undefined;
990
- /**
991
- * Use round-robin DNS lookup. Suitable when DNS server returns multiple addresses in sort order.
992
- */
993
- useRoundRobinDns?: boolean | undefined;
994
- /**
995
- * Disable collector event time filtering when a date range is specified
996
- */
997
- disableTimeFilter?: boolean | undefined;
998
- /**
999
- * Reject certificates that cannot be verified against a valid CA (such as self-signed certificates)
1000
- */
1001
- rejectUnauthorized?: boolean | undefined;
1002
- /**
1003
- * Escape characters (\") in search queries will be passed directly to Splunk
1004
- */
1005
- handleEscapedChars?: boolean | undefined;
1006
- retryRules?: CollectorSplunkRetryRules3 | undefined;
1007
- username?: string | undefined;
1008
- password?: string | undefined;
1009
- token?: string | undefined;
1010
- /**
1011
- * Select or create a stored secret that references your Bearer token
1012
- */
1013
- tokenSecret?: string | undefined;
1014
- /**
1015
- * URL to use for login API call, this call is expected to be a POST.
1016
- */
1017
- loginUrl?: string | undefined;
1018
- /**
1019
- * Template for POST body to send with login request, ${username} and ${password} are used to specify location of these attributes in the message
1020
- */
1021
- loginBody?: string | undefined;
1022
- /**
1023
- * Path to token attribute in login response body. Nested attributes are allowed.
1024
- */
1025
- tokenRespAttribute?: string | undefined;
1026
- /**
1027
- * JavaScript expression to compute the Authorization header to pass in discover and collect calls. The value ${token} is used to reference the token obtained from login.
1028
- */
1029
- authHeaderExpr?: string | undefined;
1030
- };
1031
-
1032
- /**
1033
- * Authentication method for Discover and Collect REST calls
1034
- */
1035
- export const CollectorSplunkAuthentication2 = {
1036
- /**
1037
- * None
1038
- */
1039
- None: "none",
1040
- /**
1041
- * Basic
1042
- */
1043
- Basic: "basic",
1044
- /**
1045
- * Basic (credentials secret)
1046
- */
1047
- BasicSecret: "basicSecret",
1048
- /**
1049
- * Bearer Token
1050
- */
1051
- Token: "token",
1052
- /**
1053
- * Bearer Token (text secret)
1054
- */
1055
- TokenSecret: "tokenSecret",
1056
- } as const;
1057
- /**
1058
- * Authentication method for Discover and Collect REST calls
1059
- */
1060
- export type CollectorSplunkAuthentication2 = OpenEnum<
1061
- typeof CollectorSplunkAuthentication2
1062
- >;
1063
-
1064
- /**
1065
- * Collector type: splunk
1066
- */
1067
- export const CollectorSplunkType2 = {
1068
- Splunk: "splunk",
1069
- } as const;
1070
- /**
1071
- * Collector type: splunk
1072
- */
1073
- export type CollectorSplunkType2 = ClosedEnum<typeof CollectorSplunkType2>;
1074
-
1075
- /**
1076
- * Format of the returned output
1077
- */
1078
- export const CollectorSplunkOutputMode2 = {
1079
- Csv: "csv",
1080
- Json: "json",
1081
- } as const;
1082
- /**
1083
- * Format of the returned output
1084
- */
1085
- export type CollectorSplunkOutputMode2 = OpenEnum<
1086
- typeof CollectorSplunkOutputMode2
1087
- >;
1088
-
1089
- export type CollectorSplunkCollectRequestParam2 = {
1090
- name: string;
1091
- /**
1092
- * JavaScript expression to compute the parameter's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
1093
- */
1094
- value: string;
1095
- };
1096
-
1097
- export type CollectorSplunkCollectRequestHeader2 = {
1098
- name: string;
1099
- /**
1100
- * JavaScript expression to compute the header's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
1101
- */
1102
- value: string;
1103
- };
1104
-
1105
- /**
1106
- * Algorithm to use when performing HTTP retries
1107
- */
1108
- export const CollectorSplunkRetryType2 = {
1109
- /**
1110
- * Disabled
1111
- */
1112
- None: "none",
1113
- /**
1114
- * Backoff
1115
- */
1116
- Backoff: "backoff",
1117
- /**
1118
- * Static
1119
- */
1120
- Static: "static",
1121
- } as const;
1122
- /**
1123
- * Algorithm to use when performing HTTP retries
1124
- */
1125
- export type CollectorSplunkRetryType2 = OpenEnum<
1126
- typeof CollectorSplunkRetryType2
1127
- >;
1128
-
1129
- export type CollectorSplunkRetryRules2 = {
1130
- /**
1131
- * Algorithm to use when performing HTTP retries
1132
- */
1133
- type?: CollectorSplunkRetryType2 | undefined;
1134
- interval?: any | undefined;
1135
- limit?: any | undefined;
1136
- multiplier?: any | undefined;
1137
- codes?: any | undefined;
1138
- enableHeader?: any | undefined;
1139
- retryConnectTimeout?: any | undefined;
1140
- retryConnectReset?: any | undefined;
1141
- };
1142
-
1143
- export type CollectorSplunkSplunk2 = {
1144
- /**
1145
- * Authentication method for Discover and Collect REST calls
1146
- */
1147
- authentication?: CollectorSplunkAuthentication2 | undefined;
1148
- username: string;
1149
- password: string;
1150
- /**
1151
- * Collector type: splunk
1152
- */
1153
- type: CollectorSplunkType2;
1154
- /**
1155
- * Search head base URL. Can be an expression. Default is https://localhost:8089.
1156
- */
1157
- searchHead?: string | undefined;
1158
- /**
1159
- * Examples: 'index=myAppLogs level=error channel=myApp' OR '| mstats avg(myStat) as myStat WHERE index=myStatsIndex.'
1160
- */
1161
- search: string;
1162
- /**
1163
- * The earliest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-16m@m'
1164
- */
1165
- earliest?: string | undefined;
1166
- /**
1167
- * The latest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-1m@m'
1168
- */
1169
- latest?: string | undefined;
1170
- /**
1171
- * REST API used to create a search
1172
- */
1173
- endpoint?: string | undefined;
1174
- /**
1175
- * Format of the returned output
1176
- */
1177
- outputMode?: CollectorSplunkOutputMode2 | undefined;
1178
- /**
1179
- * Optional collect request parameters
1180
- */
1181
- collectRequestParams?: Array<CollectorSplunkCollectRequestParam2> | undefined;
1182
- /**
1183
- * Optional collect request headers
1184
- */
1185
- collectRequestHeaders?:
1186
- | Array<CollectorSplunkCollectRequestHeader2>
1187
- | undefined;
1188
- /**
1189
- * HTTP request inactivity timeout. Use 0 for no timeout.
1190
- */
1191
- timeout?: number | undefined;
1192
- /**
1193
- * Use round-robin DNS lookup. Suitable when DNS server returns multiple addresses in sort order.
1194
- */
1195
- useRoundRobinDns?: boolean | undefined;
1196
- /**
1197
- * Disable collector event time filtering when a date range is specified
1198
- */
1199
- disableTimeFilter?: boolean | undefined;
1200
- /**
1201
- * Reject certificates that cannot be verified against a valid CA (such as self-signed certificates)
1202
- */
1203
- rejectUnauthorized?: boolean | undefined;
1204
- /**
1205
- * Escape characters (\") in search queries will be passed directly to Splunk
1206
- */
1207
- handleEscapedChars?: boolean | undefined;
1208
- retryRules?: CollectorSplunkRetryRules2 | undefined;
1209
- /**
1210
- * Select or create a stored secret that references your login credentials
1211
- */
1212
- credentialsSecret?: string | undefined;
1213
- token?: string | undefined;
1214
- /**
1215
- * Select or create a stored secret that references your Bearer token
1216
- */
1217
- tokenSecret?: string | undefined;
1218
- /**
1219
- * URL to use for login API call, this call is expected to be a POST.
1220
- */
1221
- loginUrl?: string | undefined;
1222
- /**
1223
- * Template for POST body to send with login request, ${username} and ${password} are used to specify location of these attributes in the message
1224
- */
1225
- loginBody?: string | undefined;
1226
- /**
1227
- * Path to token attribute in login response body. Nested attributes are allowed.
1228
- */
1229
- tokenRespAttribute?: string | undefined;
1230
- /**
1231
- * JavaScript expression to compute the Authorization header to pass in discover and collect calls. The value ${token} is used to reference the token obtained from login.
1232
- */
1233
- authHeaderExpr?: string | undefined;
1234
- };
1235
-
1236
- /**
1237
- * Authentication method for Discover and Collect REST calls
1238
- */
1239
- export const CollectorSplunkAuthentication1 = {
1240
- /**
1241
- * None
1242
- */
1243
- None: "none",
1244
- /**
1245
- * Basic
1246
- */
1247
- Basic: "basic",
1248
- /**
1249
- * Basic (credentials secret)
1250
- */
1251
- BasicSecret: "basicSecret",
1252
- /**
1253
- * Bearer Token
1254
- */
1255
- Token: "token",
1256
- /**
1257
- * Bearer Token (text secret)
1258
- */
1259
- TokenSecret: "tokenSecret",
1260
- } as const;
1261
- /**
1262
- * Authentication method for Discover and Collect REST calls
1263
- */
1264
- export type CollectorSplunkAuthentication1 = OpenEnum<
1265
- typeof CollectorSplunkAuthentication1
1266
- >;
1267
-
1268
- /**
1269
- * Collector type: splunk
1270
- */
1271
- export const CollectorSplunkType1 = {
1272
- Splunk: "splunk",
1273
- } as const;
1274
- /**
1275
- * Collector type: splunk
1276
- */
1277
- export type CollectorSplunkType1 = ClosedEnum<typeof CollectorSplunkType1>;
1278
-
1279
- /**
1280
- * Format of the returned output
1281
- */
1282
- export const CollectorSplunkOutputMode1 = {
1283
- Csv: "csv",
1284
- Json: "json",
1285
- } as const;
1286
- /**
1287
- * Format of the returned output
1288
- */
1289
- export type CollectorSplunkOutputMode1 = OpenEnum<
1290
- typeof CollectorSplunkOutputMode1
1291
- >;
1292
-
1293
- export type CollectorSplunkCollectRequestParam1 = {
1294
- name: string;
1295
- /**
1296
- * JavaScript expression to compute the parameter's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
1297
- */
1298
- value: string;
1299
- };
1300
-
1301
- export type CollectorSplunkCollectRequestHeader1 = {
1302
- name: string;
1303
- /**
1304
- * JavaScript expression to compute the header's value, normally enclosed in backticks (`${earliest}`). If a constant, use single quotes ('earliest'). Values without delimiters (earliest) are evaluated as strings.
1305
- */
1306
- value: string;
1307
- };
1308
-
1309
- /**
1310
- * Algorithm to use when performing HTTP retries
1311
- */
1312
- export const CollectorSplunkRetryType1 = {
1313
- /**
1314
- * Disabled
1315
- */
1316
- None: "none",
1317
- /**
1318
- * Backoff
1319
- */
1320
- Backoff: "backoff",
1321
- /**
1322
- * Static
1323
- */
1324
- Static: "static",
1325
- } as const;
1326
- /**
1327
- * Algorithm to use when performing HTTP retries
1328
- */
1329
- export type CollectorSplunkRetryType1 = OpenEnum<
1330
- typeof CollectorSplunkRetryType1
1331
- >;
1332
-
1333
- export type CollectorSplunkRetryRules1 = {
1334
- /**
1335
- * Algorithm to use when performing HTTP retries
1336
- */
1337
- type?: CollectorSplunkRetryType1 | undefined;
1338
- interval?: any | undefined;
1339
- limit?: any | undefined;
1340
- multiplier?: any | undefined;
1341
- codes?: any | undefined;
1342
- enableHeader?: any | undefined;
1343
- retryConnectTimeout?: any | undefined;
1344
- retryConnectReset?: any | undefined;
1345
- };
1346
-
1347
- export type CollectorSplunkSplunk1 = {
1348
- /**
1349
- * Authentication method for Discover and Collect REST calls
1350
- */
1351
- authentication?: CollectorSplunkAuthentication1 | undefined;
1352
- /**
1353
- * Collector type: splunk
1354
- */
1355
- type: CollectorSplunkType1;
1356
- /**
1357
- * Search head base URL. Can be an expression. Default is https://localhost:8089.
1358
- */
1359
- searchHead?: string | undefined;
1360
- /**
1361
- * Examples: 'index=myAppLogs level=error channel=myApp' OR '| mstats avg(myStat) as myStat WHERE index=myStatsIndex.'
1362
- */
1363
- search: string;
1364
- /**
1365
- * The earliest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-16m@m'
1366
- */
1367
- earliest?: string | undefined;
1368
- /**
1369
- * The latest time boundary for the search. Can be an exact or relative time. Examples: '2022-01-14T12:00:00Z' or '-1m@m'
1370
- */
1371
- latest?: string | undefined;
1372
- /**
1373
- * REST API used to create a search
1374
- */
1375
- endpoint?: string | undefined;
1376
- /**
1377
- * Format of the returned output
1378
- */
1379
- outputMode?: CollectorSplunkOutputMode1 | undefined;
1380
- /**
1381
- * Optional collect request parameters
1382
- */
1383
- collectRequestParams?: Array<CollectorSplunkCollectRequestParam1> | undefined;
1384
- /**
1385
- * Optional collect request headers
1386
- */
1387
- collectRequestHeaders?:
1388
- | Array<CollectorSplunkCollectRequestHeader1>
1389
- | undefined;
1390
- /**
1391
- * HTTP request inactivity timeout. Use 0 for no timeout.
1392
- */
1393
- timeout?: number | undefined;
1394
- /**
1395
- * Use round-robin DNS lookup. Suitable when DNS server returns multiple addresses in sort order.
1396
- */
1397
- useRoundRobinDns?: boolean | undefined;
1398
- /**
1399
- * Disable collector event time filtering when a date range is specified
1400
- */
1401
- disableTimeFilter?: boolean | undefined;
1402
- /**
1403
- * Reject certificates that cannot be verified against a valid CA (such as self-signed certificates)
1404
- */
1405
- rejectUnauthorized?: boolean | undefined;
1406
- /**
1407
- * Escape characters (\") in search queries will be passed directly to Splunk
1408
- */
1409
- handleEscapedChars?: boolean | undefined;
1410
- retryRules?: CollectorSplunkRetryRules1 | undefined;
1411
- username?: string | undefined;
1412
- password?: string | undefined;
1413
- /**
1414
- * Select or create a stored secret that references your login credentials
1415
- */
1416
- credentialsSecret?: string | undefined;
1417
- token?: string | undefined;
1418
- /**
1419
- * Select or create a stored secret that references your Bearer token
1420
- */
1421
- tokenSecret?: string | undefined;
1422
- /**
1423
- * URL to use for login API call, this call is expected to be a POST.
1424
- */
1425
- loginUrl?: string | undefined;
1426
- /**
1427
- * Template for POST body to send with login request, ${username} and ${password} are used to specify location of these attributes in the message
1428
- */
1429
- loginBody?: string | undefined;
1430
- /**
1431
- * Path to token attribute in login response body. Nested attributes are allowed.
1432
- */
1433
- tokenRespAttribute?: string | undefined;
1434
- /**
1435
- * JavaScript expression to compute the Authorization header to pass in discover and collect calls. The value ${token} is used to reference the token obtained from login.
1436
- */
1437
- authHeaderExpr?: string | undefined;
1438
- };
1439
-
1440
- export type CollectorSplunk =
1441
- | CollectorSplunkSplunk2
1442
- | CollectorSplunkSplunk6
1443
- | CollectorSplunkSplunk3
1444
- | CollectorSplunkSplunk4
1445
- | CollectorSplunkSplunk5
1446
- | CollectorSplunkSplunk7
1447
- | CollectorSplunkSplunk1;
1448
-
1449
- /** @internal */
1450
- export const CollectorSplunkAuthentication7$inboundSchema: z.ZodType<
1451
- CollectorSplunkAuthentication7,
1452
- z.ZodTypeDef,
1453
- unknown
1454
- > = openEnums.inboundSchema(CollectorSplunkAuthentication7);
1455
- /** @internal */
1456
- export const CollectorSplunkAuthentication7$outboundSchema: z.ZodType<
1457
- string,
1458
- z.ZodTypeDef,
1459
- CollectorSplunkAuthentication7
1460
- > = openEnums.outboundSchema(CollectorSplunkAuthentication7);
1461
-
1462
- /** @internal */
1463
- export const CollectorSplunkType7$inboundSchema: z.ZodNativeEnum<
1464
- typeof CollectorSplunkType7
1465
- > = z.nativeEnum(CollectorSplunkType7);
1466
- /** @internal */
1467
- export const CollectorSplunkType7$outboundSchema: z.ZodNativeEnum<
1468
- typeof CollectorSplunkType7
1469
- > = CollectorSplunkType7$inboundSchema;
1470
-
1471
- /** @internal */
1472
- export const CollectorSplunkOutputMode7$inboundSchema: z.ZodType<
1473
- CollectorSplunkOutputMode7,
1474
- z.ZodTypeDef,
1475
- unknown
1476
- > = openEnums.inboundSchema(CollectorSplunkOutputMode7);
1477
- /** @internal */
1478
- export const CollectorSplunkOutputMode7$outboundSchema: z.ZodType<
1479
- string,
1480
- z.ZodTypeDef,
1481
- CollectorSplunkOutputMode7
1482
- > = openEnums.outboundSchema(CollectorSplunkOutputMode7);
1483
-
1484
- /** @internal */
1485
- export const CollectorSplunkCollectRequestParam7$inboundSchema: z.ZodType<
1486
- CollectorSplunkCollectRequestParam7,
1487
- z.ZodTypeDef,
1488
- unknown
1489
- > = z.object({
1490
- name: z.string(),
1491
- value: z.string(),
1492
- });
1493
- /** @internal */
1494
- export type CollectorSplunkCollectRequestParam7$Outbound = {
1495
- name: string;
1496
- value: string;
1497
- };
1498
-
1499
- /** @internal */
1500
- export const CollectorSplunkCollectRequestParam7$outboundSchema: z.ZodType<
1501
- CollectorSplunkCollectRequestParam7$Outbound,
1502
- z.ZodTypeDef,
1503
- CollectorSplunkCollectRequestParam7
1504
- > = z.object({
1505
- name: z.string(),
1506
- value: z.string(),
1507
- });
1508
-
1509
- export function collectorSplunkCollectRequestParam7ToJSON(
1510
- collectorSplunkCollectRequestParam7: CollectorSplunkCollectRequestParam7,
1511
- ): string {
1512
- return JSON.stringify(
1513
- CollectorSplunkCollectRequestParam7$outboundSchema.parse(
1514
- collectorSplunkCollectRequestParam7,
1515
- ),
1516
- );
1517
- }
1518
- export function collectorSplunkCollectRequestParam7FromJSON(
1519
- jsonString: string,
1520
- ): SafeParseResult<CollectorSplunkCollectRequestParam7, SDKValidationError> {
1521
- return safeParse(
1522
- jsonString,
1523
- (x) =>
1524
- CollectorSplunkCollectRequestParam7$inboundSchema.parse(JSON.parse(x)),
1525
- `Failed to parse 'CollectorSplunkCollectRequestParam7' from JSON`,
1526
- );
1527
- }
1528
-
1529
- /** @internal */
1530
- export const CollectorSplunkCollectRequestHeader7$inboundSchema: z.ZodType<
1531
- CollectorSplunkCollectRequestHeader7,
1532
- z.ZodTypeDef,
1533
- unknown
1534
- > = z.object({
1535
- name: z.string(),
1536
- value: z.string(),
1537
- });
1538
- /** @internal */
1539
- export type CollectorSplunkCollectRequestHeader7$Outbound = {
1540
- name: string;
1541
- value: string;
1542
- };
1543
-
1544
- /** @internal */
1545
- export const CollectorSplunkCollectRequestHeader7$outboundSchema: z.ZodType<
1546
- CollectorSplunkCollectRequestHeader7$Outbound,
1547
- z.ZodTypeDef,
1548
- CollectorSplunkCollectRequestHeader7
1549
- > = z.object({
1550
- name: z.string(),
1551
- value: z.string(),
1552
- });
1553
-
1554
- export function collectorSplunkCollectRequestHeader7ToJSON(
1555
- collectorSplunkCollectRequestHeader7: CollectorSplunkCollectRequestHeader7,
1556
- ): string {
1557
- return JSON.stringify(
1558
- CollectorSplunkCollectRequestHeader7$outboundSchema.parse(
1559
- collectorSplunkCollectRequestHeader7,
1560
- ),
1561
- );
1562
- }
1563
- export function collectorSplunkCollectRequestHeader7FromJSON(
1564
- jsonString: string,
1565
- ): SafeParseResult<CollectorSplunkCollectRequestHeader7, SDKValidationError> {
1566
- return safeParse(
1567
- jsonString,
1568
- (x) =>
1569
- CollectorSplunkCollectRequestHeader7$inboundSchema.parse(JSON.parse(x)),
1570
- `Failed to parse 'CollectorSplunkCollectRequestHeader7' from JSON`,
1571
- );
1572
- }
1573
-
1574
- /** @internal */
1575
- export const CollectorSplunkRetryType7$inboundSchema: z.ZodType<
1576
- CollectorSplunkRetryType7,
1577
- z.ZodTypeDef,
1578
- unknown
1579
- > = openEnums.inboundSchema(CollectorSplunkRetryType7);
1580
- /** @internal */
1581
- export const CollectorSplunkRetryType7$outboundSchema: z.ZodType<
1582
- string,
1583
- z.ZodTypeDef,
1584
- CollectorSplunkRetryType7
1585
- > = openEnums.outboundSchema(CollectorSplunkRetryType7);
1586
-
1587
- /** @internal */
1588
- export const CollectorSplunkRetryRules7$inboundSchema: z.ZodType<
1589
- CollectorSplunkRetryRules7,
1590
- z.ZodTypeDef,
1591
- unknown
1592
- > = z.object({
1593
- type: CollectorSplunkRetryType7$inboundSchema.default("backoff"),
1594
- interval: z.any().optional(),
1595
- limit: z.any().optional(),
1596
- multiplier: z.any().optional(),
1597
- codes: z.any().optional(),
1598
- enableHeader: z.any().optional(),
1599
- retryConnectTimeout: z.any().optional(),
1600
- retryConnectReset: z.any().optional(),
1601
- });
1602
- /** @internal */
1603
- export type CollectorSplunkRetryRules7$Outbound = {
1604
- type: string;
1605
- interval?: any | undefined;
1606
- limit?: any | undefined;
1607
- multiplier?: any | undefined;
1608
- codes?: any | undefined;
1609
- enableHeader?: any | undefined;
1610
- retryConnectTimeout?: any | undefined;
1611
- retryConnectReset?: any | undefined;
1612
- };
1613
-
1614
- /** @internal */
1615
- export const CollectorSplunkRetryRules7$outboundSchema: z.ZodType<
1616
- CollectorSplunkRetryRules7$Outbound,
1617
- z.ZodTypeDef,
1618
- CollectorSplunkRetryRules7
1619
- > = z.object({
1620
- type: CollectorSplunkRetryType7$outboundSchema.default("backoff"),
1621
- interval: z.any().optional(),
1622
- limit: z.any().optional(),
1623
- multiplier: z.any().optional(),
1624
- codes: z.any().optional(),
1625
- enableHeader: z.any().optional(),
1626
- retryConnectTimeout: z.any().optional(),
1627
- retryConnectReset: z.any().optional(),
1628
- });
1629
-
1630
- export function collectorSplunkRetryRules7ToJSON(
1631
- collectorSplunkRetryRules7: CollectorSplunkRetryRules7,
1632
- ): string {
1633
- return JSON.stringify(
1634
- CollectorSplunkRetryRules7$outboundSchema.parse(collectorSplunkRetryRules7),
1635
- );
1636
- }
1637
- export function collectorSplunkRetryRules7FromJSON(
1638
- jsonString: string,
1639
- ): SafeParseResult<CollectorSplunkRetryRules7, SDKValidationError> {
1640
- return safeParse(
1641
- jsonString,
1642
- (x) => CollectorSplunkRetryRules7$inboundSchema.parse(JSON.parse(x)),
1643
- `Failed to parse 'CollectorSplunkRetryRules7' from JSON`,
1644
- );
1645
- }
1646
-
1647
- /** @internal */
1648
- export const CollectorSplunkSplunk7$inboundSchema: z.ZodType<
1649
- CollectorSplunkSplunk7,
1650
- z.ZodTypeDef,
1651
- unknown
1652
- > = z.object({
1653
- authentication: CollectorSplunkAuthentication7$inboundSchema.default("basic"),
1654
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1655
- credentialsSecret: z.string(),
1656
- loginBody: z.string().default(
1657
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
1658
- ),
1659
- tokenRespAttribute: z.string().default("token"),
1660
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1661
- type: CollectorSplunkType7$inboundSchema,
1662
- searchHead: z.string().default("https://localhost:8089"),
1663
- search: z.string(),
1664
- earliest: z.string().optional(),
1665
- latest: z.string().optional(),
1666
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1667
- outputMode: CollectorSplunkOutputMode7$inboundSchema.default("json"),
1668
- collectRequestParams: z.array(
1669
- z.lazy(() => CollectorSplunkCollectRequestParam7$inboundSchema),
1670
- ).optional(),
1671
- collectRequestHeaders: z.array(
1672
- z.lazy(() => CollectorSplunkCollectRequestHeader7$inboundSchema),
1673
- ).optional(),
1674
- timeout: z.number().default(0),
1675
- useRoundRobinDns: z.boolean().default(false),
1676
- disableTimeFilter: z.boolean().default(true),
1677
- rejectUnauthorized: z.boolean().default(false),
1678
- handleEscapedChars: z.boolean().default(false),
1679
- retryRules: z.lazy(() => CollectorSplunkRetryRules7$inboundSchema).optional(),
1680
- username: z.string().optional(),
1681
- password: z.string().optional(),
1682
- token: z.string().optional(),
1683
- tokenSecret: z.string().optional(),
1684
- });
1685
- /** @internal */
1686
- export type CollectorSplunkSplunk7$Outbound = {
1687
- authentication: string;
1688
- loginUrl: string;
1689
- credentialsSecret: string;
1690
- loginBody: string;
1691
- tokenRespAttribute: string;
1692
- authHeaderExpr: string;
1693
- type: string;
1694
- searchHead: string;
1695
- search: string;
1696
- earliest?: string | undefined;
1697
- latest?: string | undefined;
1698
- endpoint: string;
1699
- outputMode: string;
1700
- collectRequestParams?:
1701
- | Array<CollectorSplunkCollectRequestParam7$Outbound>
1702
- | undefined;
1703
- collectRequestHeaders?:
1704
- | Array<CollectorSplunkCollectRequestHeader7$Outbound>
1705
- | undefined;
1706
- timeout: number;
1707
- useRoundRobinDns: boolean;
1708
- disableTimeFilter: boolean;
1709
- rejectUnauthorized: boolean;
1710
- handleEscapedChars: boolean;
1711
- retryRules?: CollectorSplunkRetryRules7$Outbound | undefined;
1712
- username?: string | undefined;
1713
- password?: string | undefined;
1714
- token?: string | undefined;
1715
- tokenSecret?: string | undefined;
1716
- };
1717
-
1718
- /** @internal */
1719
- export const CollectorSplunkSplunk7$outboundSchema: z.ZodType<
1720
- CollectorSplunkSplunk7$Outbound,
1721
- z.ZodTypeDef,
1722
- CollectorSplunkSplunk7
1723
- > = z.object({
1724
- authentication: CollectorSplunkAuthentication7$outboundSchema.default(
1725
- "basic",
1726
- ),
1727
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1728
- credentialsSecret: z.string(),
1729
- loginBody: z.string().default(
1730
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
1731
- ),
1732
- tokenRespAttribute: z.string().default("token"),
1733
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1734
- type: CollectorSplunkType7$outboundSchema,
1735
- searchHead: z.string().default("https://localhost:8089"),
1736
- search: z.string(),
1737
- earliest: z.string().optional(),
1738
- latest: z.string().optional(),
1739
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1740
- outputMode: CollectorSplunkOutputMode7$outboundSchema.default("json"),
1741
- collectRequestParams: z.array(
1742
- z.lazy(() => CollectorSplunkCollectRequestParam7$outboundSchema),
1743
- ).optional(),
1744
- collectRequestHeaders: z.array(
1745
- z.lazy(() => CollectorSplunkCollectRequestHeader7$outboundSchema),
1746
- ).optional(),
1747
- timeout: z.number().default(0),
1748
- useRoundRobinDns: z.boolean().default(false),
1749
- disableTimeFilter: z.boolean().default(true),
1750
- rejectUnauthorized: z.boolean().default(false),
1751
- handleEscapedChars: z.boolean().default(false),
1752
- retryRules: z.lazy(() => CollectorSplunkRetryRules7$outboundSchema)
1753
- .optional(),
1754
- username: z.string().optional(),
1755
- password: z.string().optional(),
1756
- token: z.string().optional(),
1757
- tokenSecret: z.string().optional(),
1758
- });
1759
-
1760
- export function collectorSplunkSplunk7ToJSON(
1761
- collectorSplunkSplunk7: CollectorSplunkSplunk7,
1762
- ): string {
1763
- return JSON.stringify(
1764
- CollectorSplunkSplunk7$outboundSchema.parse(collectorSplunkSplunk7),
1765
- );
1766
- }
1767
- export function collectorSplunkSplunk7FromJSON(
1768
- jsonString: string,
1769
- ): SafeParseResult<CollectorSplunkSplunk7, SDKValidationError> {
1770
- return safeParse(
1771
- jsonString,
1772
- (x) => CollectorSplunkSplunk7$inboundSchema.parse(JSON.parse(x)),
1773
- `Failed to parse 'CollectorSplunkSplunk7' from JSON`,
1774
- );
1775
- }
1776
-
1777
- /** @internal */
1778
- export const CollectorSplunkAuthentication6$inboundSchema: z.ZodType<
1779
- CollectorSplunkAuthentication6,
1780
- z.ZodTypeDef,
1781
- unknown
1782
- > = openEnums.inboundSchema(CollectorSplunkAuthentication6);
1783
- /** @internal */
1784
- export const CollectorSplunkAuthentication6$outboundSchema: z.ZodType<
1785
- string,
1786
- z.ZodTypeDef,
1787
- CollectorSplunkAuthentication6
1788
- > = openEnums.outboundSchema(CollectorSplunkAuthentication6);
1789
-
1790
- /** @internal */
1791
- export const CollectorSplunkType6$inboundSchema: z.ZodNativeEnum<
1792
- typeof CollectorSplunkType6
1793
- > = z.nativeEnum(CollectorSplunkType6);
1794
- /** @internal */
1795
- export const CollectorSplunkType6$outboundSchema: z.ZodNativeEnum<
1796
- typeof CollectorSplunkType6
1797
- > = CollectorSplunkType6$inboundSchema;
1798
-
1799
- /** @internal */
1800
- export const CollectorSplunkOutputMode6$inboundSchema: z.ZodType<
1801
- CollectorSplunkOutputMode6,
1802
- z.ZodTypeDef,
1803
- unknown
1804
- > = openEnums.inboundSchema(CollectorSplunkOutputMode6);
1805
- /** @internal */
1806
- export const CollectorSplunkOutputMode6$outboundSchema: z.ZodType<
1807
- string,
1808
- z.ZodTypeDef,
1809
- CollectorSplunkOutputMode6
1810
- > = openEnums.outboundSchema(CollectorSplunkOutputMode6);
1811
-
1812
- /** @internal */
1813
- export const CollectorSplunkCollectRequestParam6$inboundSchema: z.ZodType<
1814
- CollectorSplunkCollectRequestParam6,
1815
- z.ZodTypeDef,
1816
- unknown
1817
- > = z.object({
1818
- name: z.string(),
1819
- value: z.string(),
1820
- });
1821
- /** @internal */
1822
- export type CollectorSplunkCollectRequestParam6$Outbound = {
1823
- name: string;
1824
- value: string;
1825
- };
1826
-
1827
- /** @internal */
1828
- export const CollectorSplunkCollectRequestParam6$outboundSchema: z.ZodType<
1829
- CollectorSplunkCollectRequestParam6$Outbound,
1830
- z.ZodTypeDef,
1831
- CollectorSplunkCollectRequestParam6
1832
- > = z.object({
1833
- name: z.string(),
1834
- value: z.string(),
1835
- });
1836
-
1837
- export function collectorSplunkCollectRequestParam6ToJSON(
1838
- collectorSplunkCollectRequestParam6: CollectorSplunkCollectRequestParam6,
1839
- ): string {
1840
- return JSON.stringify(
1841
- CollectorSplunkCollectRequestParam6$outboundSchema.parse(
1842
- collectorSplunkCollectRequestParam6,
1843
- ),
1844
- );
1845
- }
1846
- export function collectorSplunkCollectRequestParam6FromJSON(
1847
- jsonString: string,
1848
- ): SafeParseResult<CollectorSplunkCollectRequestParam6, SDKValidationError> {
1849
- return safeParse(
1850
- jsonString,
1851
- (x) =>
1852
- CollectorSplunkCollectRequestParam6$inboundSchema.parse(JSON.parse(x)),
1853
- `Failed to parse 'CollectorSplunkCollectRequestParam6' from JSON`,
1854
- );
1855
- }
1856
-
1857
- /** @internal */
1858
- export const CollectorSplunkCollectRequestHeader6$inboundSchema: z.ZodType<
1859
- CollectorSplunkCollectRequestHeader6,
1860
- z.ZodTypeDef,
1861
- unknown
1862
- > = z.object({
1863
- name: z.string(),
1864
- value: z.string(),
1865
- });
1866
- /** @internal */
1867
- export type CollectorSplunkCollectRequestHeader6$Outbound = {
1868
- name: string;
1869
- value: string;
1870
- };
1871
-
1872
- /** @internal */
1873
- export const CollectorSplunkCollectRequestHeader6$outboundSchema: z.ZodType<
1874
- CollectorSplunkCollectRequestHeader6$Outbound,
1875
- z.ZodTypeDef,
1876
- CollectorSplunkCollectRequestHeader6
1877
- > = z.object({
1878
- name: z.string(),
1879
- value: z.string(),
1880
- });
1881
-
1882
- export function collectorSplunkCollectRequestHeader6ToJSON(
1883
- collectorSplunkCollectRequestHeader6: CollectorSplunkCollectRequestHeader6,
1884
- ): string {
1885
- return JSON.stringify(
1886
- CollectorSplunkCollectRequestHeader6$outboundSchema.parse(
1887
- collectorSplunkCollectRequestHeader6,
1888
- ),
1889
- );
1890
- }
1891
- export function collectorSplunkCollectRequestHeader6FromJSON(
1892
- jsonString: string,
1893
- ): SafeParseResult<CollectorSplunkCollectRequestHeader6, SDKValidationError> {
1894
- return safeParse(
1895
- jsonString,
1896
- (x) =>
1897
- CollectorSplunkCollectRequestHeader6$inboundSchema.parse(JSON.parse(x)),
1898
- `Failed to parse 'CollectorSplunkCollectRequestHeader6' from JSON`,
1899
- );
1900
- }
1901
-
1902
- /** @internal */
1903
- export const CollectorSplunkRetryType6$inboundSchema: z.ZodType<
1904
- CollectorSplunkRetryType6,
1905
- z.ZodTypeDef,
1906
- unknown
1907
- > = openEnums.inboundSchema(CollectorSplunkRetryType6);
1908
- /** @internal */
1909
- export const CollectorSplunkRetryType6$outboundSchema: z.ZodType<
1910
- string,
1911
- z.ZodTypeDef,
1912
- CollectorSplunkRetryType6
1913
- > = openEnums.outboundSchema(CollectorSplunkRetryType6);
1914
-
1915
- /** @internal */
1916
- export const CollectorSplunkRetryRules6$inboundSchema: z.ZodType<
1917
- CollectorSplunkRetryRules6,
1918
- z.ZodTypeDef,
1919
- unknown
1920
- > = z.object({
1921
- type: CollectorSplunkRetryType6$inboundSchema.default("backoff"),
1922
- interval: z.any().optional(),
1923
- limit: z.any().optional(),
1924
- multiplier: z.any().optional(),
1925
- codes: z.any().optional(),
1926
- enableHeader: z.any().optional(),
1927
- retryConnectTimeout: z.any().optional(),
1928
- retryConnectReset: z.any().optional(),
1929
- });
1930
- /** @internal */
1931
- export type CollectorSplunkRetryRules6$Outbound = {
1932
- type: string;
1933
- interval?: any | undefined;
1934
- limit?: any | undefined;
1935
- multiplier?: any | undefined;
1936
- codes?: any | undefined;
1937
- enableHeader?: any | undefined;
1938
- retryConnectTimeout?: any | undefined;
1939
- retryConnectReset?: any | undefined;
1940
- };
1941
-
1942
- /** @internal */
1943
- export const CollectorSplunkRetryRules6$outboundSchema: z.ZodType<
1944
- CollectorSplunkRetryRules6$Outbound,
1945
- z.ZodTypeDef,
1946
- CollectorSplunkRetryRules6
1947
- > = z.object({
1948
- type: CollectorSplunkRetryType6$outboundSchema.default("backoff"),
1949
- interval: z.any().optional(),
1950
- limit: z.any().optional(),
1951
- multiplier: z.any().optional(),
1952
- codes: z.any().optional(),
1953
- enableHeader: z.any().optional(),
1954
- retryConnectTimeout: z.any().optional(),
1955
- retryConnectReset: z.any().optional(),
1956
- });
1957
-
1958
- export function collectorSplunkRetryRules6ToJSON(
1959
- collectorSplunkRetryRules6: CollectorSplunkRetryRules6,
1960
- ): string {
1961
- return JSON.stringify(
1962
- CollectorSplunkRetryRules6$outboundSchema.parse(collectorSplunkRetryRules6),
1963
- );
1964
- }
1965
- export function collectorSplunkRetryRules6FromJSON(
1966
- jsonString: string,
1967
- ): SafeParseResult<CollectorSplunkRetryRules6, SDKValidationError> {
1968
- return safeParse(
1969
- jsonString,
1970
- (x) => CollectorSplunkRetryRules6$inboundSchema.parse(JSON.parse(x)),
1971
- `Failed to parse 'CollectorSplunkRetryRules6' from JSON`,
1972
- );
1973
- }
1974
-
1975
- /** @internal */
1976
- export const CollectorSplunkSplunk6$inboundSchema: z.ZodType<
1977
- CollectorSplunkSplunk6,
1978
- z.ZodTypeDef,
1979
- unknown
1980
- > = z.object({
1981
- authentication: CollectorSplunkAuthentication6$inboundSchema.default("basic"),
1982
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
1983
- username: z.string(),
1984
- password: z.string(),
1985
- loginBody: z.string().default(
1986
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
1987
- ),
1988
- tokenRespAttribute: z.string().default("token"),
1989
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
1990
- type: CollectorSplunkType6$inboundSchema,
1991
- searchHead: z.string().default("https://localhost:8089"),
1992
- search: z.string(),
1993
- earliest: z.string().optional(),
1994
- latest: z.string().optional(),
1995
- endpoint: z.string().default("/services/search/v2/jobs/export"),
1996
- outputMode: CollectorSplunkOutputMode6$inboundSchema.default("json"),
1997
- collectRequestParams: z.array(
1998
- z.lazy(() => CollectorSplunkCollectRequestParam6$inboundSchema),
1999
- ).optional(),
2000
- collectRequestHeaders: z.array(
2001
- z.lazy(() => CollectorSplunkCollectRequestHeader6$inboundSchema),
2002
- ).optional(),
2003
- timeout: z.number().default(0),
2004
- useRoundRobinDns: z.boolean().default(false),
2005
- disableTimeFilter: z.boolean().default(true),
2006
- rejectUnauthorized: z.boolean().default(false),
2007
- handleEscapedChars: z.boolean().default(false),
2008
- retryRules: z.lazy(() => CollectorSplunkRetryRules6$inboundSchema).optional(),
2009
- credentialsSecret: z.string().optional(),
2010
- token: z.string().optional(),
2011
- tokenSecret: z.string().optional(),
2012
- });
2013
- /** @internal */
2014
- export type CollectorSplunkSplunk6$Outbound = {
2015
- authentication: string;
2016
- loginUrl: string;
2017
- username: string;
2018
- password: string;
2019
- loginBody: string;
2020
- tokenRespAttribute: string;
2021
- authHeaderExpr: string;
2022
- type: string;
2023
- searchHead: string;
2024
- search: string;
2025
- earliest?: string | undefined;
2026
- latest?: string | undefined;
2027
- endpoint: string;
2028
- outputMode: string;
2029
- collectRequestParams?:
2030
- | Array<CollectorSplunkCollectRequestParam6$Outbound>
2031
- | undefined;
2032
- collectRequestHeaders?:
2033
- | Array<CollectorSplunkCollectRequestHeader6$Outbound>
2034
- | undefined;
2035
- timeout: number;
2036
- useRoundRobinDns: boolean;
2037
- disableTimeFilter: boolean;
2038
- rejectUnauthorized: boolean;
2039
- handleEscapedChars: boolean;
2040
- retryRules?: CollectorSplunkRetryRules6$Outbound | undefined;
2041
- credentialsSecret?: string | undefined;
2042
- token?: string | undefined;
2043
- tokenSecret?: string | undefined;
2044
- };
2045
-
2046
- /** @internal */
2047
- export const CollectorSplunkSplunk6$outboundSchema: z.ZodType<
2048
- CollectorSplunkSplunk6$Outbound,
2049
- z.ZodTypeDef,
2050
- CollectorSplunkSplunk6
2051
- > = z.object({
2052
- authentication: CollectorSplunkAuthentication6$outboundSchema.default(
2053
- "basic",
2054
- ),
2055
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
2056
- username: z.string(),
2057
- password: z.string(),
2058
- loginBody: z.string().default(
2059
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
2060
- ),
2061
- tokenRespAttribute: z.string().default("token"),
2062
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
2063
- type: CollectorSplunkType6$outboundSchema,
2064
- searchHead: z.string().default("https://localhost:8089"),
2065
- search: z.string(),
2066
- earliest: z.string().optional(),
2067
- latest: z.string().optional(),
2068
- endpoint: z.string().default("/services/search/v2/jobs/export"),
2069
- outputMode: CollectorSplunkOutputMode6$outboundSchema.default("json"),
2070
- collectRequestParams: z.array(
2071
- z.lazy(() => CollectorSplunkCollectRequestParam6$outboundSchema),
2072
- ).optional(),
2073
- collectRequestHeaders: z.array(
2074
- z.lazy(() => CollectorSplunkCollectRequestHeader6$outboundSchema),
2075
- ).optional(),
2076
- timeout: z.number().default(0),
2077
- useRoundRobinDns: z.boolean().default(false),
2078
- disableTimeFilter: z.boolean().default(true),
2079
- rejectUnauthorized: z.boolean().default(false),
2080
- handleEscapedChars: z.boolean().default(false),
2081
- retryRules: z.lazy(() => CollectorSplunkRetryRules6$outboundSchema)
2082
- .optional(),
2083
- credentialsSecret: z.string().optional(),
2084
- token: z.string().optional(),
2085
- tokenSecret: z.string().optional(),
2086
- });
2087
-
2088
- export function collectorSplunkSplunk6ToJSON(
2089
- collectorSplunkSplunk6: CollectorSplunkSplunk6,
2090
- ): string {
2091
- return JSON.stringify(
2092
- CollectorSplunkSplunk6$outboundSchema.parse(collectorSplunkSplunk6),
2093
- );
2094
- }
2095
- export function collectorSplunkSplunk6FromJSON(
2096
- jsonString: string,
2097
- ): SafeParseResult<CollectorSplunkSplunk6, SDKValidationError> {
2098
- return safeParse(
2099
- jsonString,
2100
- (x) => CollectorSplunkSplunk6$inboundSchema.parse(JSON.parse(x)),
2101
- `Failed to parse 'CollectorSplunkSplunk6' from JSON`,
2102
- );
2103
- }
2104
-
2105
- /** @internal */
2106
- export const CollectorSplunkAuthentication5$inboundSchema: z.ZodType<
2107
- CollectorSplunkAuthentication5,
2108
- z.ZodTypeDef,
2109
- unknown
2110
- > = openEnums.inboundSchema(CollectorSplunkAuthentication5);
2111
- /** @internal */
2112
- export const CollectorSplunkAuthentication5$outboundSchema: z.ZodType<
2113
- string,
2114
- z.ZodTypeDef,
2115
- CollectorSplunkAuthentication5
2116
- > = openEnums.outboundSchema(CollectorSplunkAuthentication5);
2117
-
2118
- /** @internal */
2119
- export const CollectorSplunkType5$inboundSchema: z.ZodNativeEnum<
2120
- typeof CollectorSplunkType5
2121
- > = z.nativeEnum(CollectorSplunkType5);
2122
- /** @internal */
2123
- export const CollectorSplunkType5$outboundSchema: z.ZodNativeEnum<
2124
- typeof CollectorSplunkType5
2125
- > = CollectorSplunkType5$inboundSchema;
2126
-
2127
- /** @internal */
2128
- export const CollectorSplunkOutputMode5$inboundSchema: z.ZodType<
2129
- CollectorSplunkOutputMode5,
2130
- z.ZodTypeDef,
2131
- unknown
2132
- > = openEnums.inboundSchema(CollectorSplunkOutputMode5);
2133
- /** @internal */
2134
- export const CollectorSplunkOutputMode5$outboundSchema: z.ZodType<
2135
- string,
2136
- z.ZodTypeDef,
2137
- CollectorSplunkOutputMode5
2138
- > = openEnums.outboundSchema(CollectorSplunkOutputMode5);
2139
-
2140
- /** @internal */
2141
- export const CollectorSplunkCollectRequestParam5$inboundSchema: z.ZodType<
2142
- CollectorSplunkCollectRequestParam5,
2143
- z.ZodTypeDef,
2144
- unknown
2145
- > = z.object({
2146
- name: z.string(),
2147
- value: z.string(),
2148
- });
2149
- /** @internal */
2150
- export type CollectorSplunkCollectRequestParam5$Outbound = {
2151
- name: string;
2152
- value: string;
2153
- };
2154
-
2155
- /** @internal */
2156
- export const CollectorSplunkCollectRequestParam5$outboundSchema: z.ZodType<
2157
- CollectorSplunkCollectRequestParam5$Outbound,
2158
- z.ZodTypeDef,
2159
- CollectorSplunkCollectRequestParam5
2160
- > = z.object({
2161
- name: z.string(),
2162
- value: z.string(),
2163
- });
2164
-
2165
- export function collectorSplunkCollectRequestParam5ToJSON(
2166
- collectorSplunkCollectRequestParam5: CollectorSplunkCollectRequestParam5,
2167
- ): string {
2168
- return JSON.stringify(
2169
- CollectorSplunkCollectRequestParam5$outboundSchema.parse(
2170
- collectorSplunkCollectRequestParam5,
2171
- ),
2172
- );
2173
- }
2174
- export function collectorSplunkCollectRequestParam5FromJSON(
2175
- jsonString: string,
2176
- ): SafeParseResult<CollectorSplunkCollectRequestParam5, SDKValidationError> {
2177
- return safeParse(
2178
- jsonString,
2179
- (x) =>
2180
- CollectorSplunkCollectRequestParam5$inboundSchema.parse(JSON.parse(x)),
2181
- `Failed to parse 'CollectorSplunkCollectRequestParam5' from JSON`,
2182
- );
2183
- }
2184
-
2185
- /** @internal */
2186
- export const CollectorSplunkCollectRequestHeader5$inboundSchema: z.ZodType<
2187
- CollectorSplunkCollectRequestHeader5,
2188
- z.ZodTypeDef,
2189
- unknown
2190
- > = z.object({
2191
- name: z.string(),
2192
- value: z.string(),
2193
- });
2194
- /** @internal */
2195
- export type CollectorSplunkCollectRequestHeader5$Outbound = {
2196
- name: string;
2197
- value: string;
2198
- };
2199
-
2200
- /** @internal */
2201
- export const CollectorSplunkCollectRequestHeader5$outboundSchema: z.ZodType<
2202
- CollectorSplunkCollectRequestHeader5$Outbound,
2203
- z.ZodTypeDef,
2204
- CollectorSplunkCollectRequestHeader5
2205
- > = z.object({
2206
- name: z.string(),
2207
- value: z.string(),
2208
- });
2209
-
2210
- export function collectorSplunkCollectRequestHeader5ToJSON(
2211
- collectorSplunkCollectRequestHeader5: CollectorSplunkCollectRequestHeader5,
2212
- ): string {
2213
- return JSON.stringify(
2214
- CollectorSplunkCollectRequestHeader5$outboundSchema.parse(
2215
- collectorSplunkCollectRequestHeader5,
2216
- ),
2217
- );
2218
- }
2219
- export function collectorSplunkCollectRequestHeader5FromJSON(
2220
- jsonString: string,
2221
- ): SafeParseResult<CollectorSplunkCollectRequestHeader5, SDKValidationError> {
2222
- return safeParse(
2223
- jsonString,
2224
- (x) =>
2225
- CollectorSplunkCollectRequestHeader5$inboundSchema.parse(JSON.parse(x)),
2226
- `Failed to parse 'CollectorSplunkCollectRequestHeader5' from JSON`,
2227
- );
2228
- }
2229
-
2230
- /** @internal */
2231
- export const CollectorSplunkRetryType5$inboundSchema: z.ZodType<
2232
- CollectorSplunkRetryType5,
2233
- z.ZodTypeDef,
2234
- unknown
2235
- > = openEnums.inboundSchema(CollectorSplunkRetryType5);
2236
- /** @internal */
2237
- export const CollectorSplunkRetryType5$outboundSchema: z.ZodType<
2238
- string,
2239
- z.ZodTypeDef,
2240
- CollectorSplunkRetryType5
2241
- > = openEnums.outboundSchema(CollectorSplunkRetryType5);
2242
-
2243
- /** @internal */
2244
- export const CollectorSplunkRetryRules5$inboundSchema: z.ZodType<
2245
- CollectorSplunkRetryRules5,
2246
- z.ZodTypeDef,
2247
- unknown
2248
- > = z.object({
2249
- type: CollectorSplunkRetryType5$inboundSchema.default("backoff"),
2250
- interval: z.any().optional(),
2251
- limit: z.any().optional(),
2252
- multiplier: z.any().optional(),
2253
- codes: z.any().optional(),
2254
- enableHeader: z.any().optional(),
2255
- retryConnectTimeout: z.any().optional(),
2256
- retryConnectReset: z.any().optional(),
2257
- });
2258
- /** @internal */
2259
- export type CollectorSplunkRetryRules5$Outbound = {
2260
- type: string;
2261
- interval?: any | undefined;
2262
- limit?: any | undefined;
2263
- multiplier?: any | undefined;
2264
- codes?: any | undefined;
2265
- enableHeader?: any | undefined;
2266
- retryConnectTimeout?: any | undefined;
2267
- retryConnectReset?: any | undefined;
2268
- };
2269
-
2270
- /** @internal */
2271
- export const CollectorSplunkRetryRules5$outboundSchema: z.ZodType<
2272
- CollectorSplunkRetryRules5$Outbound,
2273
- z.ZodTypeDef,
2274
- CollectorSplunkRetryRules5
2275
- > = z.object({
2276
- type: CollectorSplunkRetryType5$outboundSchema.default("backoff"),
2277
- interval: z.any().optional(),
2278
- limit: z.any().optional(),
2279
- multiplier: z.any().optional(),
2280
- codes: z.any().optional(),
2281
- enableHeader: z.any().optional(),
2282
- retryConnectTimeout: z.any().optional(),
2283
- retryConnectReset: z.any().optional(),
2284
- });
2285
-
2286
- export function collectorSplunkRetryRules5ToJSON(
2287
- collectorSplunkRetryRules5: CollectorSplunkRetryRules5,
2288
- ): string {
2289
- return JSON.stringify(
2290
- CollectorSplunkRetryRules5$outboundSchema.parse(collectorSplunkRetryRules5),
2291
- );
2292
- }
2293
- export function collectorSplunkRetryRules5FromJSON(
2294
- jsonString: string,
2295
- ): SafeParseResult<CollectorSplunkRetryRules5, SDKValidationError> {
2296
- return safeParse(
2297
- jsonString,
2298
- (x) => CollectorSplunkRetryRules5$inboundSchema.parse(JSON.parse(x)),
2299
- `Failed to parse 'CollectorSplunkRetryRules5' from JSON`,
2300
- );
2301
- }
2302
-
2303
- /** @internal */
2304
- export const CollectorSplunkSplunk5$inboundSchema: z.ZodType<
2305
- CollectorSplunkSplunk5,
2306
- z.ZodTypeDef,
2307
- unknown
2308
- > = z.object({
2309
- authentication: CollectorSplunkAuthentication5$inboundSchema.default("basic"),
2310
- tokenSecret: z.string(),
2311
- type: CollectorSplunkType5$inboundSchema,
2312
- searchHead: z.string().default("https://localhost:8089"),
2313
- search: z.string(),
2314
- earliest: z.string().optional(),
2315
- latest: z.string().optional(),
2316
- endpoint: z.string().default("/services/search/v2/jobs/export"),
2317
- outputMode: CollectorSplunkOutputMode5$inboundSchema.default("json"),
2318
- collectRequestParams: z.array(
2319
- z.lazy(() => CollectorSplunkCollectRequestParam5$inboundSchema),
2320
- ).optional(),
2321
- collectRequestHeaders: z.array(
2322
- z.lazy(() => CollectorSplunkCollectRequestHeader5$inboundSchema),
2323
- ).optional(),
2324
- timeout: z.number().default(0),
2325
- useRoundRobinDns: z.boolean().default(false),
2326
- disableTimeFilter: z.boolean().default(true),
2327
- rejectUnauthorized: z.boolean().default(false),
2328
- handleEscapedChars: z.boolean().default(false),
2329
- retryRules: z.lazy(() => CollectorSplunkRetryRules5$inboundSchema).optional(),
2330
- username: z.string().optional(),
2331
- password: z.string().optional(),
2332
- credentialsSecret: z.string().optional(),
2333
- token: z.string().optional(),
2334
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
2335
- loginBody: z.string().default(
2336
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
2337
- ),
2338
- tokenRespAttribute: z.string().default("token"),
2339
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
2340
- });
2341
- /** @internal */
2342
- export type CollectorSplunkSplunk5$Outbound = {
2343
- authentication: string;
2344
- tokenSecret: string;
2345
- type: string;
2346
- searchHead: string;
2347
- search: string;
2348
- earliest?: string | undefined;
2349
- latest?: string | undefined;
2350
- endpoint: string;
2351
- outputMode: string;
2352
- collectRequestParams?:
2353
- | Array<CollectorSplunkCollectRequestParam5$Outbound>
2354
- | undefined;
2355
- collectRequestHeaders?:
2356
- | Array<CollectorSplunkCollectRequestHeader5$Outbound>
2357
- | undefined;
2358
- timeout: number;
2359
- useRoundRobinDns: boolean;
2360
- disableTimeFilter: boolean;
2361
- rejectUnauthorized: boolean;
2362
- handleEscapedChars: boolean;
2363
- retryRules?: CollectorSplunkRetryRules5$Outbound | undefined;
2364
- username?: string | undefined;
2365
- password?: string | undefined;
2366
- credentialsSecret?: string | undefined;
2367
- token?: string | undefined;
2368
- loginUrl: string;
2369
- loginBody: string;
2370
- tokenRespAttribute: string;
2371
- authHeaderExpr: string;
2372
- };
2373
-
2374
- /** @internal */
2375
- export const CollectorSplunkSplunk5$outboundSchema: z.ZodType<
2376
- CollectorSplunkSplunk5$Outbound,
2377
- z.ZodTypeDef,
2378
- CollectorSplunkSplunk5
2379
- > = z.object({
2380
- authentication: CollectorSplunkAuthentication5$outboundSchema.default(
2381
- "basic",
2382
- ),
2383
- tokenSecret: z.string(),
2384
- type: CollectorSplunkType5$outboundSchema,
2385
- searchHead: z.string().default("https://localhost:8089"),
2386
- search: z.string(),
2387
- earliest: z.string().optional(),
2388
- latest: z.string().optional(),
2389
- endpoint: z.string().default("/services/search/v2/jobs/export"),
2390
- outputMode: CollectorSplunkOutputMode5$outboundSchema.default("json"),
2391
- collectRequestParams: z.array(
2392
- z.lazy(() => CollectorSplunkCollectRequestParam5$outboundSchema),
2393
- ).optional(),
2394
- collectRequestHeaders: z.array(
2395
- z.lazy(() => CollectorSplunkCollectRequestHeader5$outboundSchema),
2396
- ).optional(),
2397
- timeout: z.number().default(0),
2398
- useRoundRobinDns: z.boolean().default(false),
2399
- disableTimeFilter: z.boolean().default(true),
2400
- rejectUnauthorized: z.boolean().default(false),
2401
- handleEscapedChars: z.boolean().default(false),
2402
- retryRules: z.lazy(() => CollectorSplunkRetryRules5$outboundSchema)
2403
- .optional(),
2404
- username: z.string().optional(),
2405
- password: z.string().optional(),
2406
- credentialsSecret: z.string().optional(),
2407
- token: z.string().optional(),
2408
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
2409
- loginBody: z.string().default(
2410
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
2411
- ),
2412
- tokenRespAttribute: z.string().default("token"),
2413
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
2414
- });
2415
-
2416
- export function collectorSplunkSplunk5ToJSON(
2417
- collectorSplunkSplunk5: CollectorSplunkSplunk5,
2418
- ): string {
2419
- return JSON.stringify(
2420
- CollectorSplunkSplunk5$outboundSchema.parse(collectorSplunkSplunk5),
2421
- );
2422
- }
2423
- export function collectorSplunkSplunk5FromJSON(
2424
- jsonString: string,
2425
- ): SafeParseResult<CollectorSplunkSplunk5, SDKValidationError> {
2426
- return safeParse(
2427
- jsonString,
2428
- (x) => CollectorSplunkSplunk5$inboundSchema.parse(JSON.parse(x)),
2429
- `Failed to parse 'CollectorSplunkSplunk5' from JSON`,
2430
- );
2431
- }
2432
-
2433
- /** @internal */
2434
- export const CollectorSplunkAuthentication4$inboundSchema: z.ZodType<
2435
- CollectorSplunkAuthentication4,
2436
- z.ZodTypeDef,
2437
- unknown
2438
- > = openEnums.inboundSchema(CollectorSplunkAuthentication4);
2439
- /** @internal */
2440
- export const CollectorSplunkAuthentication4$outboundSchema: z.ZodType<
2441
- string,
2442
- z.ZodTypeDef,
2443
- CollectorSplunkAuthentication4
2444
- > = openEnums.outboundSchema(CollectorSplunkAuthentication4);
2445
-
2446
- /** @internal */
2447
- export const CollectorSplunkType4$inboundSchema: z.ZodNativeEnum<
2448
- typeof CollectorSplunkType4
2449
- > = z.nativeEnum(CollectorSplunkType4);
2450
- /** @internal */
2451
- export const CollectorSplunkType4$outboundSchema: z.ZodNativeEnum<
2452
- typeof CollectorSplunkType4
2453
- > = CollectorSplunkType4$inboundSchema;
2454
-
2455
- /** @internal */
2456
- export const CollectorSplunkOutputMode4$inboundSchema: z.ZodType<
2457
- CollectorSplunkOutputMode4,
2458
- z.ZodTypeDef,
2459
- unknown
2460
- > = openEnums.inboundSchema(CollectorSplunkOutputMode4);
2461
- /** @internal */
2462
- export const CollectorSplunkOutputMode4$outboundSchema: z.ZodType<
2463
- string,
2464
- z.ZodTypeDef,
2465
- CollectorSplunkOutputMode4
2466
- > = openEnums.outboundSchema(CollectorSplunkOutputMode4);
2467
-
2468
- /** @internal */
2469
- export const CollectorSplunkCollectRequestParam4$inboundSchema: z.ZodType<
2470
- CollectorSplunkCollectRequestParam4,
2471
- z.ZodTypeDef,
2472
- unknown
2473
- > = z.object({
2474
- name: z.string(),
2475
- value: z.string(),
2476
- });
2477
- /** @internal */
2478
- export type CollectorSplunkCollectRequestParam4$Outbound = {
2479
- name: string;
2480
- value: string;
2481
- };
2482
-
2483
- /** @internal */
2484
- export const CollectorSplunkCollectRequestParam4$outboundSchema: z.ZodType<
2485
- CollectorSplunkCollectRequestParam4$Outbound,
2486
- z.ZodTypeDef,
2487
- CollectorSplunkCollectRequestParam4
2488
- > = z.object({
2489
- name: z.string(),
2490
- value: z.string(),
2491
- });
2492
-
2493
- export function collectorSplunkCollectRequestParam4ToJSON(
2494
- collectorSplunkCollectRequestParam4: CollectorSplunkCollectRequestParam4,
2495
- ): string {
2496
- return JSON.stringify(
2497
- CollectorSplunkCollectRequestParam4$outboundSchema.parse(
2498
- collectorSplunkCollectRequestParam4,
2499
- ),
2500
- );
2501
- }
2502
- export function collectorSplunkCollectRequestParam4FromJSON(
2503
- jsonString: string,
2504
- ): SafeParseResult<CollectorSplunkCollectRequestParam4, SDKValidationError> {
2505
- return safeParse(
2506
- jsonString,
2507
- (x) =>
2508
- CollectorSplunkCollectRequestParam4$inboundSchema.parse(JSON.parse(x)),
2509
- `Failed to parse 'CollectorSplunkCollectRequestParam4' from JSON`,
2510
- );
2511
- }
2512
-
2513
- /** @internal */
2514
- export const CollectorSplunkCollectRequestHeader4$inboundSchema: z.ZodType<
2515
- CollectorSplunkCollectRequestHeader4,
2516
- z.ZodTypeDef,
2517
- unknown
2518
- > = z.object({
2519
- name: z.string(),
2520
- value: z.string(),
2521
- });
2522
- /** @internal */
2523
- export type CollectorSplunkCollectRequestHeader4$Outbound = {
2524
- name: string;
2525
- value: string;
2526
- };
2527
-
2528
- /** @internal */
2529
- export const CollectorSplunkCollectRequestHeader4$outboundSchema: z.ZodType<
2530
- CollectorSplunkCollectRequestHeader4$Outbound,
2531
- z.ZodTypeDef,
2532
- CollectorSplunkCollectRequestHeader4
2533
- > = z.object({
2534
- name: z.string(),
2535
- value: z.string(),
2536
- });
2537
-
2538
- export function collectorSplunkCollectRequestHeader4ToJSON(
2539
- collectorSplunkCollectRequestHeader4: CollectorSplunkCollectRequestHeader4,
2540
- ): string {
2541
- return JSON.stringify(
2542
- CollectorSplunkCollectRequestHeader4$outboundSchema.parse(
2543
- collectorSplunkCollectRequestHeader4,
2544
- ),
2545
- );
2546
- }
2547
- export function collectorSplunkCollectRequestHeader4FromJSON(
2548
- jsonString: string,
2549
- ): SafeParseResult<CollectorSplunkCollectRequestHeader4, SDKValidationError> {
2550
- return safeParse(
2551
- jsonString,
2552
- (x) =>
2553
- CollectorSplunkCollectRequestHeader4$inboundSchema.parse(JSON.parse(x)),
2554
- `Failed to parse 'CollectorSplunkCollectRequestHeader4' from JSON`,
2555
- );
2556
- }
2557
-
2558
- /** @internal */
2559
- export const CollectorSplunkRetryType4$inboundSchema: z.ZodType<
2560
- CollectorSplunkRetryType4,
2561
- z.ZodTypeDef,
2562
- unknown
2563
- > = openEnums.inboundSchema(CollectorSplunkRetryType4);
2564
- /** @internal */
2565
- export const CollectorSplunkRetryType4$outboundSchema: z.ZodType<
2566
- string,
2567
- z.ZodTypeDef,
2568
- CollectorSplunkRetryType4
2569
- > = openEnums.outboundSchema(CollectorSplunkRetryType4);
2570
-
2571
- /** @internal */
2572
- export const CollectorSplunkRetryRules4$inboundSchema: z.ZodType<
2573
- CollectorSplunkRetryRules4,
2574
- z.ZodTypeDef,
2575
- unknown
2576
- > = z.object({
2577
- type: CollectorSplunkRetryType4$inboundSchema.default("backoff"),
2578
- interval: z.any().optional(),
2579
- limit: z.any().optional(),
2580
- multiplier: z.any().optional(),
2581
- codes: z.any().optional(),
2582
- enableHeader: z.any().optional(),
2583
- retryConnectTimeout: z.any().optional(),
2584
- retryConnectReset: z.any().optional(),
2585
- });
2586
- /** @internal */
2587
- export type CollectorSplunkRetryRules4$Outbound = {
2588
- type: string;
2589
- interval?: any | undefined;
2590
- limit?: any | undefined;
2591
- multiplier?: any | undefined;
2592
- codes?: any | undefined;
2593
- enableHeader?: any | undefined;
2594
- retryConnectTimeout?: any | undefined;
2595
- retryConnectReset?: any | undefined;
2596
- };
2597
-
2598
- /** @internal */
2599
- export const CollectorSplunkRetryRules4$outboundSchema: z.ZodType<
2600
- CollectorSplunkRetryRules4$Outbound,
2601
- z.ZodTypeDef,
2602
- CollectorSplunkRetryRules4
2603
- > = z.object({
2604
- type: CollectorSplunkRetryType4$outboundSchema.default("backoff"),
2605
- interval: z.any().optional(),
2606
- limit: z.any().optional(),
2607
- multiplier: z.any().optional(),
2608
- codes: z.any().optional(),
2609
- enableHeader: z.any().optional(),
2610
- retryConnectTimeout: z.any().optional(),
2611
- retryConnectReset: z.any().optional(),
2612
- });
2613
-
2614
- export function collectorSplunkRetryRules4ToJSON(
2615
- collectorSplunkRetryRules4: CollectorSplunkRetryRules4,
2616
- ): string {
2617
- return JSON.stringify(
2618
- CollectorSplunkRetryRules4$outboundSchema.parse(collectorSplunkRetryRules4),
2619
- );
2620
- }
2621
- export function collectorSplunkRetryRules4FromJSON(
2622
- jsonString: string,
2623
- ): SafeParseResult<CollectorSplunkRetryRules4, SDKValidationError> {
2624
- return safeParse(
2625
- jsonString,
2626
- (x) => CollectorSplunkRetryRules4$inboundSchema.parse(JSON.parse(x)),
2627
- `Failed to parse 'CollectorSplunkRetryRules4' from JSON`,
2628
- );
2629
- }
2630
-
2631
- /** @internal */
2632
- export const CollectorSplunkSplunk4$inboundSchema: z.ZodType<
2633
- CollectorSplunkSplunk4,
2634
- z.ZodTypeDef,
2635
- unknown
2636
- > = z.object({
2637
- authentication: CollectorSplunkAuthentication4$inboundSchema.default("basic"),
2638
- token: z.string(),
2639
- type: CollectorSplunkType4$inboundSchema,
2640
- searchHead: z.string().default("https://localhost:8089"),
2641
- search: z.string(),
2642
- earliest: z.string().optional(),
2643
- latest: z.string().optional(),
2644
- endpoint: z.string().default("/services/search/v2/jobs/export"),
2645
- outputMode: CollectorSplunkOutputMode4$inboundSchema.default("json"),
2646
- collectRequestParams: z.array(
2647
- z.lazy(() => CollectorSplunkCollectRequestParam4$inboundSchema),
2648
- ).optional(),
2649
- collectRequestHeaders: z.array(
2650
- z.lazy(() => CollectorSplunkCollectRequestHeader4$inboundSchema),
2651
- ).optional(),
2652
- timeout: z.number().default(0),
2653
- useRoundRobinDns: z.boolean().default(false),
2654
- disableTimeFilter: z.boolean().default(true),
2655
- rejectUnauthorized: z.boolean().default(false),
2656
- handleEscapedChars: z.boolean().default(false),
2657
- retryRules: z.lazy(() => CollectorSplunkRetryRules4$inboundSchema).optional(),
2658
- username: z.string().optional(),
2659
- password: z.string().optional(),
2660
- credentialsSecret: z.string().optional(),
2661
- tokenSecret: z.string().optional(),
2662
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
2663
- loginBody: z.string().default(
2664
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
2665
- ),
2666
- tokenRespAttribute: z.string().default("token"),
2667
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
2668
- });
2669
- /** @internal */
2670
- export type CollectorSplunkSplunk4$Outbound = {
2671
- authentication: string;
2672
- token: string;
2673
- type: string;
2674
- searchHead: string;
2675
- search: string;
2676
- earliest?: string | undefined;
2677
- latest?: string | undefined;
2678
- endpoint: string;
2679
- outputMode: string;
2680
- collectRequestParams?:
2681
- | Array<CollectorSplunkCollectRequestParam4$Outbound>
2682
- | undefined;
2683
- collectRequestHeaders?:
2684
- | Array<CollectorSplunkCollectRequestHeader4$Outbound>
2685
- | undefined;
2686
- timeout: number;
2687
- useRoundRobinDns: boolean;
2688
- disableTimeFilter: boolean;
2689
- rejectUnauthorized: boolean;
2690
- handleEscapedChars: boolean;
2691
- retryRules?: CollectorSplunkRetryRules4$Outbound | undefined;
2692
- username?: string | undefined;
2693
- password?: string | undefined;
2694
- credentialsSecret?: string | undefined;
2695
- tokenSecret?: string | undefined;
2696
- loginUrl: string;
2697
- loginBody: string;
2698
- tokenRespAttribute: string;
2699
- authHeaderExpr: string;
2700
- };
2701
-
2702
- /** @internal */
2703
- export const CollectorSplunkSplunk4$outboundSchema: z.ZodType<
2704
- CollectorSplunkSplunk4$Outbound,
2705
- z.ZodTypeDef,
2706
- CollectorSplunkSplunk4
2707
- > = z.object({
2708
- authentication: CollectorSplunkAuthentication4$outboundSchema.default(
2709
- "basic",
2710
- ),
2711
- token: z.string(),
2712
- type: CollectorSplunkType4$outboundSchema,
2713
- searchHead: z.string().default("https://localhost:8089"),
2714
- search: z.string(),
2715
- earliest: z.string().optional(),
2716
- latest: z.string().optional(),
2717
- endpoint: z.string().default("/services/search/v2/jobs/export"),
2718
- outputMode: CollectorSplunkOutputMode4$outboundSchema.default("json"),
2719
- collectRequestParams: z.array(
2720
- z.lazy(() => CollectorSplunkCollectRequestParam4$outboundSchema),
2721
- ).optional(),
2722
- collectRequestHeaders: z.array(
2723
- z.lazy(() => CollectorSplunkCollectRequestHeader4$outboundSchema),
2724
- ).optional(),
2725
- timeout: z.number().default(0),
2726
- useRoundRobinDns: z.boolean().default(false),
2727
- disableTimeFilter: z.boolean().default(true),
2728
- rejectUnauthorized: z.boolean().default(false),
2729
- handleEscapedChars: z.boolean().default(false),
2730
- retryRules: z.lazy(() => CollectorSplunkRetryRules4$outboundSchema)
2731
- .optional(),
2732
- username: z.string().optional(),
2733
- password: z.string().optional(),
2734
- credentialsSecret: z.string().optional(),
2735
- tokenSecret: z.string().optional(),
2736
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
2737
- loginBody: z.string().default(
2738
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
2739
- ),
2740
- tokenRespAttribute: z.string().default("token"),
2741
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
2742
- });
2743
-
2744
- export function collectorSplunkSplunk4ToJSON(
2745
- collectorSplunkSplunk4: CollectorSplunkSplunk4,
2746
- ): string {
2747
- return JSON.stringify(
2748
- CollectorSplunkSplunk4$outboundSchema.parse(collectorSplunkSplunk4),
2749
- );
2750
- }
2751
- export function collectorSplunkSplunk4FromJSON(
2752
- jsonString: string,
2753
- ): SafeParseResult<CollectorSplunkSplunk4, SDKValidationError> {
2754
- return safeParse(
2755
- jsonString,
2756
- (x) => CollectorSplunkSplunk4$inboundSchema.parse(JSON.parse(x)),
2757
- `Failed to parse 'CollectorSplunkSplunk4' from JSON`,
2758
- );
2759
- }
2760
-
2761
- /** @internal */
2762
- export const CollectorSplunkAuthentication3$inboundSchema: z.ZodType<
2763
- CollectorSplunkAuthentication3,
2764
- z.ZodTypeDef,
2765
- unknown
2766
- > = openEnums.inboundSchema(CollectorSplunkAuthentication3);
2767
- /** @internal */
2768
- export const CollectorSplunkAuthentication3$outboundSchema: z.ZodType<
2769
- string,
2770
- z.ZodTypeDef,
2771
- CollectorSplunkAuthentication3
2772
- > = openEnums.outboundSchema(CollectorSplunkAuthentication3);
2773
-
2774
- /** @internal */
2775
- export const CollectorSplunkType3$inboundSchema: z.ZodNativeEnum<
2776
- typeof CollectorSplunkType3
2777
- > = z.nativeEnum(CollectorSplunkType3);
2778
- /** @internal */
2779
- export const CollectorSplunkType3$outboundSchema: z.ZodNativeEnum<
2780
- typeof CollectorSplunkType3
2781
- > = CollectorSplunkType3$inboundSchema;
2782
-
2783
- /** @internal */
2784
- export const CollectorSplunkOutputMode3$inboundSchema: z.ZodType<
2785
- CollectorSplunkOutputMode3,
2786
- z.ZodTypeDef,
2787
- unknown
2788
- > = openEnums.inboundSchema(CollectorSplunkOutputMode3);
2789
- /** @internal */
2790
- export const CollectorSplunkOutputMode3$outboundSchema: z.ZodType<
2791
- string,
2792
- z.ZodTypeDef,
2793
- CollectorSplunkOutputMode3
2794
- > = openEnums.outboundSchema(CollectorSplunkOutputMode3);
2795
-
2796
- /** @internal */
2797
- export const CollectorSplunkCollectRequestParam3$inboundSchema: z.ZodType<
2798
- CollectorSplunkCollectRequestParam3,
2799
- z.ZodTypeDef,
2800
- unknown
2801
- > = z.object({
2802
- name: z.string(),
2803
- value: z.string(),
2804
- });
2805
- /** @internal */
2806
- export type CollectorSplunkCollectRequestParam3$Outbound = {
2807
- name: string;
2808
- value: string;
2809
- };
2810
-
2811
- /** @internal */
2812
- export const CollectorSplunkCollectRequestParam3$outboundSchema: z.ZodType<
2813
- CollectorSplunkCollectRequestParam3$Outbound,
2814
- z.ZodTypeDef,
2815
- CollectorSplunkCollectRequestParam3
2816
- > = z.object({
2817
- name: z.string(),
2818
- value: z.string(),
2819
- });
2820
-
2821
- export function collectorSplunkCollectRequestParam3ToJSON(
2822
- collectorSplunkCollectRequestParam3: CollectorSplunkCollectRequestParam3,
2823
- ): string {
2824
- return JSON.stringify(
2825
- CollectorSplunkCollectRequestParam3$outboundSchema.parse(
2826
- collectorSplunkCollectRequestParam3,
2827
- ),
2828
- );
2829
- }
2830
- export function collectorSplunkCollectRequestParam3FromJSON(
2831
- jsonString: string,
2832
- ): SafeParseResult<CollectorSplunkCollectRequestParam3, SDKValidationError> {
2833
- return safeParse(
2834
- jsonString,
2835
- (x) =>
2836
- CollectorSplunkCollectRequestParam3$inboundSchema.parse(JSON.parse(x)),
2837
- `Failed to parse 'CollectorSplunkCollectRequestParam3' from JSON`,
2838
- );
2839
- }
2840
-
2841
- /** @internal */
2842
- export const CollectorSplunkCollectRequestHeader3$inboundSchema: z.ZodType<
2843
- CollectorSplunkCollectRequestHeader3,
2844
- z.ZodTypeDef,
2845
- unknown
2846
- > = z.object({
2847
- name: z.string(),
2848
- value: z.string(),
2849
- });
2850
- /** @internal */
2851
- export type CollectorSplunkCollectRequestHeader3$Outbound = {
2852
- name: string;
2853
- value: string;
2854
- };
2855
-
2856
- /** @internal */
2857
- export const CollectorSplunkCollectRequestHeader3$outboundSchema: z.ZodType<
2858
- CollectorSplunkCollectRequestHeader3$Outbound,
2859
- z.ZodTypeDef,
2860
- CollectorSplunkCollectRequestHeader3
2861
- > = z.object({
2862
- name: z.string(),
2863
- value: z.string(),
2864
- });
2865
-
2866
- export function collectorSplunkCollectRequestHeader3ToJSON(
2867
- collectorSplunkCollectRequestHeader3: CollectorSplunkCollectRequestHeader3,
2868
- ): string {
2869
- return JSON.stringify(
2870
- CollectorSplunkCollectRequestHeader3$outboundSchema.parse(
2871
- collectorSplunkCollectRequestHeader3,
2872
- ),
2873
- );
2874
- }
2875
- export function collectorSplunkCollectRequestHeader3FromJSON(
2876
- jsonString: string,
2877
- ): SafeParseResult<CollectorSplunkCollectRequestHeader3, SDKValidationError> {
2878
- return safeParse(
2879
- jsonString,
2880
- (x) =>
2881
- CollectorSplunkCollectRequestHeader3$inboundSchema.parse(JSON.parse(x)),
2882
- `Failed to parse 'CollectorSplunkCollectRequestHeader3' from JSON`,
2883
- );
2884
- }
2885
-
2886
- /** @internal */
2887
- export const CollectorSplunkRetryType3$inboundSchema: z.ZodType<
2888
- CollectorSplunkRetryType3,
2889
- z.ZodTypeDef,
2890
- unknown
2891
- > = openEnums.inboundSchema(CollectorSplunkRetryType3);
2892
- /** @internal */
2893
- export const CollectorSplunkRetryType3$outboundSchema: z.ZodType<
2894
- string,
2895
- z.ZodTypeDef,
2896
- CollectorSplunkRetryType3
2897
- > = openEnums.outboundSchema(CollectorSplunkRetryType3);
2898
-
2899
- /** @internal */
2900
- export const CollectorSplunkRetryRules3$inboundSchema: z.ZodType<
2901
- CollectorSplunkRetryRules3,
2902
- z.ZodTypeDef,
2903
- unknown
2904
- > = z.object({
2905
- type: CollectorSplunkRetryType3$inboundSchema.default("backoff"),
2906
- interval: z.any().optional(),
2907
- limit: z.any().optional(),
2908
- multiplier: z.any().optional(),
2909
- codes: z.any().optional(),
2910
- enableHeader: z.any().optional(),
2911
- retryConnectTimeout: z.any().optional(),
2912
- retryConnectReset: z.any().optional(),
2913
- });
2914
- /** @internal */
2915
- export type CollectorSplunkRetryRules3$Outbound = {
2916
- type: string;
2917
- interval?: any | undefined;
2918
- limit?: any | undefined;
2919
- multiplier?: any | undefined;
2920
- codes?: any | undefined;
2921
- enableHeader?: any | undefined;
2922
- retryConnectTimeout?: any | undefined;
2923
- retryConnectReset?: any | undefined;
2924
- };
2925
-
2926
- /** @internal */
2927
- export const CollectorSplunkRetryRules3$outboundSchema: z.ZodType<
2928
- CollectorSplunkRetryRules3$Outbound,
2929
- z.ZodTypeDef,
2930
- CollectorSplunkRetryRules3
2931
- > = z.object({
2932
- type: CollectorSplunkRetryType3$outboundSchema.default("backoff"),
2933
- interval: z.any().optional(),
2934
- limit: z.any().optional(),
2935
- multiplier: z.any().optional(),
2936
- codes: z.any().optional(),
2937
- enableHeader: z.any().optional(),
2938
- retryConnectTimeout: z.any().optional(),
2939
- retryConnectReset: z.any().optional(),
2940
- });
2941
-
2942
- export function collectorSplunkRetryRules3ToJSON(
2943
- collectorSplunkRetryRules3: CollectorSplunkRetryRules3,
2944
- ): string {
2945
- return JSON.stringify(
2946
- CollectorSplunkRetryRules3$outboundSchema.parse(collectorSplunkRetryRules3),
2947
- );
2948
- }
2949
- export function collectorSplunkRetryRules3FromJSON(
2950
- jsonString: string,
2951
- ): SafeParseResult<CollectorSplunkRetryRules3, SDKValidationError> {
2952
- return safeParse(
2953
- jsonString,
2954
- (x) => CollectorSplunkRetryRules3$inboundSchema.parse(JSON.parse(x)),
2955
- `Failed to parse 'CollectorSplunkRetryRules3' from JSON`,
2956
- );
2957
- }
2958
-
2959
- /** @internal */
2960
- export const CollectorSplunkSplunk3$inboundSchema: z.ZodType<
2961
- CollectorSplunkSplunk3,
2962
- z.ZodTypeDef,
2963
- unknown
2964
- > = z.object({
2965
- authentication: CollectorSplunkAuthentication3$inboundSchema.default("basic"),
2966
- credentialsSecret: z.string(),
2967
- type: CollectorSplunkType3$inboundSchema,
2968
- searchHead: z.string().default("https://localhost:8089"),
2969
- search: z.string(),
2970
- earliest: z.string().optional(),
2971
- latest: z.string().optional(),
2972
- endpoint: z.string().default("/services/search/v2/jobs/export"),
2973
- outputMode: CollectorSplunkOutputMode3$inboundSchema.default("json"),
2974
- collectRequestParams: z.array(
2975
- z.lazy(() => CollectorSplunkCollectRequestParam3$inboundSchema),
2976
- ).optional(),
2977
- collectRequestHeaders: z.array(
2978
- z.lazy(() => CollectorSplunkCollectRequestHeader3$inboundSchema),
2979
- ).optional(),
2980
- timeout: z.number().default(0),
2981
- useRoundRobinDns: z.boolean().default(false),
2982
- disableTimeFilter: z.boolean().default(true),
2983
- rejectUnauthorized: z.boolean().default(false),
2984
- handleEscapedChars: z.boolean().default(false),
2985
- retryRules: z.lazy(() => CollectorSplunkRetryRules3$inboundSchema).optional(),
2986
- username: z.string().optional(),
2987
- password: z.string().optional(),
2988
- token: z.string().optional(),
2989
- tokenSecret: z.string().optional(),
2990
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
2991
- loginBody: z.string().default(
2992
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
2993
- ),
2994
- tokenRespAttribute: z.string().default("token"),
2995
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
2996
- });
2997
- /** @internal */
2998
- export type CollectorSplunkSplunk3$Outbound = {
2999
- authentication: string;
3000
- credentialsSecret: string;
3001
- type: string;
3002
- searchHead: string;
3003
- search: string;
3004
- earliest?: string | undefined;
3005
- latest?: string | undefined;
3006
- endpoint: string;
3007
- outputMode: string;
3008
- collectRequestParams?:
3009
- | Array<CollectorSplunkCollectRequestParam3$Outbound>
3010
- | undefined;
3011
- collectRequestHeaders?:
3012
- | Array<CollectorSplunkCollectRequestHeader3$Outbound>
3013
- | undefined;
3014
- timeout: number;
3015
- useRoundRobinDns: boolean;
3016
- disableTimeFilter: boolean;
3017
- rejectUnauthorized: boolean;
3018
- handleEscapedChars: boolean;
3019
- retryRules?: CollectorSplunkRetryRules3$Outbound | undefined;
3020
- username?: string | undefined;
3021
- password?: string | undefined;
3022
- token?: string | undefined;
3023
- tokenSecret?: string | undefined;
3024
- loginUrl: string;
3025
- loginBody: string;
3026
- tokenRespAttribute: string;
3027
- authHeaderExpr: string;
3028
- };
3029
-
3030
- /** @internal */
3031
- export const CollectorSplunkSplunk3$outboundSchema: z.ZodType<
3032
- CollectorSplunkSplunk3$Outbound,
3033
- z.ZodTypeDef,
3034
- CollectorSplunkSplunk3
3035
- > = z.object({
3036
- authentication: CollectorSplunkAuthentication3$outboundSchema.default(
3037
- "basic",
3038
- ),
3039
- credentialsSecret: z.string(),
3040
- type: CollectorSplunkType3$outboundSchema,
3041
- searchHead: z.string().default("https://localhost:8089"),
3042
- search: z.string(),
3043
- earliest: z.string().optional(),
3044
- latest: z.string().optional(),
3045
- endpoint: z.string().default("/services/search/v2/jobs/export"),
3046
- outputMode: CollectorSplunkOutputMode3$outboundSchema.default("json"),
3047
- collectRequestParams: z.array(
3048
- z.lazy(() => CollectorSplunkCollectRequestParam3$outboundSchema),
3049
- ).optional(),
3050
- collectRequestHeaders: z.array(
3051
- z.lazy(() => CollectorSplunkCollectRequestHeader3$outboundSchema),
3052
- ).optional(),
3053
- timeout: z.number().default(0),
3054
- useRoundRobinDns: z.boolean().default(false),
3055
- disableTimeFilter: z.boolean().default(true),
3056
- rejectUnauthorized: z.boolean().default(false),
3057
- handleEscapedChars: z.boolean().default(false),
3058
- retryRules: z.lazy(() => CollectorSplunkRetryRules3$outboundSchema)
3059
- .optional(),
3060
- username: z.string().optional(),
3061
- password: z.string().optional(),
3062
- token: z.string().optional(),
3063
- tokenSecret: z.string().optional(),
3064
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
3065
- loginBody: z.string().default(
3066
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
3067
- ),
3068
- tokenRespAttribute: z.string().default("token"),
3069
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
3070
- });
3071
-
3072
- export function collectorSplunkSplunk3ToJSON(
3073
- collectorSplunkSplunk3: CollectorSplunkSplunk3,
3074
- ): string {
3075
- return JSON.stringify(
3076
- CollectorSplunkSplunk3$outboundSchema.parse(collectorSplunkSplunk3),
3077
- );
3078
- }
3079
- export function collectorSplunkSplunk3FromJSON(
3080
- jsonString: string,
3081
- ): SafeParseResult<CollectorSplunkSplunk3, SDKValidationError> {
3082
- return safeParse(
3083
- jsonString,
3084
- (x) => CollectorSplunkSplunk3$inboundSchema.parse(JSON.parse(x)),
3085
- `Failed to parse 'CollectorSplunkSplunk3' from JSON`,
3086
- );
3087
- }
3088
-
3089
- /** @internal */
3090
- export const CollectorSplunkAuthentication2$inboundSchema: z.ZodType<
3091
- CollectorSplunkAuthentication2,
3092
- z.ZodTypeDef,
3093
- unknown
3094
- > = openEnums.inboundSchema(CollectorSplunkAuthentication2);
3095
- /** @internal */
3096
- export const CollectorSplunkAuthentication2$outboundSchema: z.ZodType<
3097
- string,
3098
- z.ZodTypeDef,
3099
- CollectorSplunkAuthentication2
3100
- > = openEnums.outboundSchema(CollectorSplunkAuthentication2);
3101
-
3102
- /** @internal */
3103
- export const CollectorSplunkType2$inboundSchema: z.ZodNativeEnum<
3104
- typeof CollectorSplunkType2
3105
- > = z.nativeEnum(CollectorSplunkType2);
3106
- /** @internal */
3107
- export const CollectorSplunkType2$outboundSchema: z.ZodNativeEnum<
3108
- typeof CollectorSplunkType2
3109
- > = CollectorSplunkType2$inboundSchema;
3110
-
3111
- /** @internal */
3112
- export const CollectorSplunkOutputMode2$inboundSchema: z.ZodType<
3113
- CollectorSplunkOutputMode2,
3114
- z.ZodTypeDef,
3115
- unknown
3116
- > = openEnums.inboundSchema(CollectorSplunkOutputMode2);
3117
- /** @internal */
3118
- export const CollectorSplunkOutputMode2$outboundSchema: z.ZodType<
3119
- string,
3120
- z.ZodTypeDef,
3121
- CollectorSplunkOutputMode2
3122
- > = openEnums.outboundSchema(CollectorSplunkOutputMode2);
3123
-
3124
- /** @internal */
3125
- export const CollectorSplunkCollectRequestParam2$inboundSchema: z.ZodType<
3126
- CollectorSplunkCollectRequestParam2,
3127
- z.ZodTypeDef,
3128
- unknown
3129
- > = z.object({
3130
- name: z.string(),
3131
- value: z.string(),
3132
- });
3133
- /** @internal */
3134
- export type CollectorSplunkCollectRequestParam2$Outbound = {
3135
- name: string;
3136
- value: string;
3137
- };
3138
-
3139
- /** @internal */
3140
- export const CollectorSplunkCollectRequestParam2$outboundSchema: z.ZodType<
3141
- CollectorSplunkCollectRequestParam2$Outbound,
3142
- z.ZodTypeDef,
3143
- CollectorSplunkCollectRequestParam2
3144
- > = z.object({
3145
- name: z.string(),
3146
- value: z.string(),
3147
- });
3148
-
3149
- export function collectorSplunkCollectRequestParam2ToJSON(
3150
- collectorSplunkCollectRequestParam2: CollectorSplunkCollectRequestParam2,
3151
- ): string {
3152
- return JSON.stringify(
3153
- CollectorSplunkCollectRequestParam2$outboundSchema.parse(
3154
- collectorSplunkCollectRequestParam2,
3155
- ),
3156
- );
3157
- }
3158
- export function collectorSplunkCollectRequestParam2FromJSON(
3159
- jsonString: string,
3160
- ): SafeParseResult<CollectorSplunkCollectRequestParam2, SDKValidationError> {
3161
- return safeParse(
3162
- jsonString,
3163
- (x) =>
3164
- CollectorSplunkCollectRequestParam2$inboundSchema.parse(JSON.parse(x)),
3165
- `Failed to parse 'CollectorSplunkCollectRequestParam2' from JSON`,
3166
- );
3167
- }
3168
-
3169
- /** @internal */
3170
- export const CollectorSplunkCollectRequestHeader2$inboundSchema: z.ZodType<
3171
- CollectorSplunkCollectRequestHeader2,
3172
- z.ZodTypeDef,
3173
- unknown
3174
- > = z.object({
3175
- name: z.string(),
3176
- value: z.string(),
3177
- });
3178
- /** @internal */
3179
- export type CollectorSplunkCollectRequestHeader2$Outbound = {
3180
- name: string;
3181
- value: string;
3182
- };
3183
-
3184
- /** @internal */
3185
- export const CollectorSplunkCollectRequestHeader2$outboundSchema: z.ZodType<
3186
- CollectorSplunkCollectRequestHeader2$Outbound,
3187
- z.ZodTypeDef,
3188
- CollectorSplunkCollectRequestHeader2
3189
- > = z.object({
3190
- name: z.string(),
3191
- value: z.string(),
3192
- });
3193
-
3194
- export function collectorSplunkCollectRequestHeader2ToJSON(
3195
- collectorSplunkCollectRequestHeader2: CollectorSplunkCollectRequestHeader2,
3196
- ): string {
3197
- return JSON.stringify(
3198
- CollectorSplunkCollectRequestHeader2$outboundSchema.parse(
3199
- collectorSplunkCollectRequestHeader2,
3200
- ),
3201
- );
3202
- }
3203
- export function collectorSplunkCollectRequestHeader2FromJSON(
3204
- jsonString: string,
3205
- ): SafeParseResult<CollectorSplunkCollectRequestHeader2, SDKValidationError> {
3206
- return safeParse(
3207
- jsonString,
3208
- (x) =>
3209
- CollectorSplunkCollectRequestHeader2$inboundSchema.parse(JSON.parse(x)),
3210
- `Failed to parse 'CollectorSplunkCollectRequestHeader2' from JSON`,
3211
- );
3212
- }
3213
-
3214
- /** @internal */
3215
- export const CollectorSplunkRetryType2$inboundSchema: z.ZodType<
3216
- CollectorSplunkRetryType2,
3217
- z.ZodTypeDef,
3218
- unknown
3219
- > = openEnums.inboundSchema(CollectorSplunkRetryType2);
3220
- /** @internal */
3221
- export const CollectorSplunkRetryType2$outboundSchema: z.ZodType<
3222
- string,
3223
- z.ZodTypeDef,
3224
- CollectorSplunkRetryType2
3225
- > = openEnums.outboundSchema(CollectorSplunkRetryType2);
3226
-
3227
- /** @internal */
3228
- export const CollectorSplunkRetryRules2$inboundSchema: z.ZodType<
3229
- CollectorSplunkRetryRules2,
3230
- z.ZodTypeDef,
3231
- unknown
3232
- > = z.object({
3233
- type: CollectorSplunkRetryType2$inboundSchema.default("backoff"),
3234
- interval: z.any().optional(),
3235
- limit: z.any().optional(),
3236
- multiplier: z.any().optional(),
3237
- codes: z.any().optional(),
3238
- enableHeader: z.any().optional(),
3239
- retryConnectTimeout: z.any().optional(),
3240
- retryConnectReset: z.any().optional(),
3241
- });
3242
- /** @internal */
3243
- export type CollectorSplunkRetryRules2$Outbound = {
3244
- type: string;
3245
- interval?: any | undefined;
3246
- limit?: any | undefined;
3247
- multiplier?: any | undefined;
3248
- codes?: any | undefined;
3249
- enableHeader?: any | undefined;
3250
- retryConnectTimeout?: any | undefined;
3251
- retryConnectReset?: any | undefined;
3252
- };
3253
-
3254
- /** @internal */
3255
- export const CollectorSplunkRetryRules2$outboundSchema: z.ZodType<
3256
- CollectorSplunkRetryRules2$Outbound,
3257
- z.ZodTypeDef,
3258
- CollectorSplunkRetryRules2
3259
- > = z.object({
3260
- type: CollectorSplunkRetryType2$outboundSchema.default("backoff"),
3261
- interval: z.any().optional(),
3262
- limit: z.any().optional(),
3263
- multiplier: z.any().optional(),
3264
- codes: z.any().optional(),
3265
- enableHeader: z.any().optional(),
3266
- retryConnectTimeout: z.any().optional(),
3267
- retryConnectReset: z.any().optional(),
3268
- });
3269
-
3270
- export function collectorSplunkRetryRules2ToJSON(
3271
- collectorSplunkRetryRules2: CollectorSplunkRetryRules2,
3272
- ): string {
3273
- return JSON.stringify(
3274
- CollectorSplunkRetryRules2$outboundSchema.parse(collectorSplunkRetryRules2),
3275
- );
3276
- }
3277
- export function collectorSplunkRetryRules2FromJSON(
3278
- jsonString: string,
3279
- ): SafeParseResult<CollectorSplunkRetryRules2, SDKValidationError> {
3280
- return safeParse(
3281
- jsonString,
3282
- (x) => CollectorSplunkRetryRules2$inboundSchema.parse(JSON.parse(x)),
3283
- `Failed to parse 'CollectorSplunkRetryRules2' from JSON`,
3284
- );
3285
- }
3286
-
3287
- /** @internal */
3288
- export const CollectorSplunkSplunk2$inboundSchema: z.ZodType<
3289
- CollectorSplunkSplunk2,
3290
- z.ZodTypeDef,
3291
- unknown
3292
- > = z.object({
3293
- authentication: CollectorSplunkAuthentication2$inboundSchema.default("basic"),
3294
- username: z.string(),
3295
- password: z.string(),
3296
- type: CollectorSplunkType2$inboundSchema,
3297
- searchHead: z.string().default("https://localhost:8089"),
3298
- search: z.string(),
3299
- earliest: z.string().optional(),
3300
- latest: z.string().optional(),
3301
- endpoint: z.string().default("/services/search/v2/jobs/export"),
3302
- outputMode: CollectorSplunkOutputMode2$inboundSchema.default("json"),
3303
- collectRequestParams: z.array(
3304
- z.lazy(() => CollectorSplunkCollectRequestParam2$inboundSchema),
3305
- ).optional(),
3306
- collectRequestHeaders: z.array(
3307
- z.lazy(() => CollectorSplunkCollectRequestHeader2$inboundSchema),
3308
- ).optional(),
3309
- timeout: z.number().default(0),
3310
- useRoundRobinDns: z.boolean().default(false),
3311
- disableTimeFilter: z.boolean().default(true),
3312
- rejectUnauthorized: z.boolean().default(false),
3313
- handleEscapedChars: z.boolean().default(false),
3314
- retryRules: z.lazy(() => CollectorSplunkRetryRules2$inboundSchema).optional(),
3315
- credentialsSecret: z.string().optional(),
3316
- token: z.string().optional(),
3317
- tokenSecret: z.string().optional(),
3318
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
3319
- loginBody: z.string().default(
3320
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
3321
- ),
3322
- tokenRespAttribute: z.string().default("token"),
3323
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
3324
- });
3325
- /** @internal */
3326
- export type CollectorSplunkSplunk2$Outbound = {
3327
- authentication: string;
3328
- username: string;
3329
- password: string;
3330
- type: string;
3331
- searchHead: string;
3332
- search: string;
3333
- earliest?: string | undefined;
3334
- latest?: string | undefined;
3335
- endpoint: string;
3336
- outputMode: string;
3337
- collectRequestParams?:
3338
- | Array<CollectorSplunkCollectRequestParam2$Outbound>
3339
- | undefined;
3340
- collectRequestHeaders?:
3341
- | Array<CollectorSplunkCollectRequestHeader2$Outbound>
3342
- | undefined;
3343
- timeout: number;
3344
- useRoundRobinDns: boolean;
3345
- disableTimeFilter: boolean;
3346
- rejectUnauthorized: boolean;
3347
- handleEscapedChars: boolean;
3348
- retryRules?: CollectorSplunkRetryRules2$Outbound | undefined;
3349
- credentialsSecret?: string | undefined;
3350
- token?: string | undefined;
3351
- tokenSecret?: string | undefined;
3352
- loginUrl: string;
3353
- loginBody: string;
3354
- tokenRespAttribute: string;
3355
- authHeaderExpr: string;
3356
- };
3357
-
3358
- /** @internal */
3359
- export const CollectorSplunkSplunk2$outboundSchema: z.ZodType<
3360
- CollectorSplunkSplunk2$Outbound,
3361
- z.ZodTypeDef,
3362
- CollectorSplunkSplunk2
3363
- > = z.object({
3364
- authentication: CollectorSplunkAuthentication2$outboundSchema.default(
3365
- "basic",
3366
- ),
3367
- username: z.string(),
3368
- password: z.string(),
3369
- type: CollectorSplunkType2$outboundSchema,
3370
- searchHead: z.string().default("https://localhost:8089"),
3371
- search: z.string(),
3372
- earliest: z.string().optional(),
3373
- latest: z.string().optional(),
3374
- endpoint: z.string().default("/services/search/v2/jobs/export"),
3375
- outputMode: CollectorSplunkOutputMode2$outboundSchema.default("json"),
3376
- collectRequestParams: z.array(
3377
- z.lazy(() => CollectorSplunkCollectRequestParam2$outboundSchema),
3378
- ).optional(),
3379
- collectRequestHeaders: z.array(
3380
- z.lazy(() => CollectorSplunkCollectRequestHeader2$outboundSchema),
3381
- ).optional(),
3382
- timeout: z.number().default(0),
3383
- useRoundRobinDns: z.boolean().default(false),
3384
- disableTimeFilter: z.boolean().default(true),
3385
- rejectUnauthorized: z.boolean().default(false),
3386
- handleEscapedChars: z.boolean().default(false),
3387
- retryRules: z.lazy(() => CollectorSplunkRetryRules2$outboundSchema)
3388
- .optional(),
3389
- credentialsSecret: z.string().optional(),
3390
- token: z.string().optional(),
3391
- tokenSecret: z.string().optional(),
3392
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
3393
- loginBody: z.string().default(
3394
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
3395
- ),
3396
- tokenRespAttribute: z.string().default("token"),
3397
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
3398
- });
3399
-
3400
- export function collectorSplunkSplunk2ToJSON(
3401
- collectorSplunkSplunk2: CollectorSplunkSplunk2,
3402
- ): string {
3403
- return JSON.stringify(
3404
- CollectorSplunkSplunk2$outboundSchema.parse(collectorSplunkSplunk2),
3405
- );
3406
- }
3407
- export function collectorSplunkSplunk2FromJSON(
3408
- jsonString: string,
3409
- ): SafeParseResult<CollectorSplunkSplunk2, SDKValidationError> {
3410
- return safeParse(
3411
- jsonString,
3412
- (x) => CollectorSplunkSplunk2$inboundSchema.parse(JSON.parse(x)),
3413
- `Failed to parse 'CollectorSplunkSplunk2' from JSON`,
3414
- );
3415
- }
3416
-
3417
- /** @internal */
3418
- export const CollectorSplunkAuthentication1$inboundSchema: z.ZodType<
3419
- CollectorSplunkAuthentication1,
3420
- z.ZodTypeDef,
3421
- unknown
3422
- > = openEnums.inboundSchema(CollectorSplunkAuthentication1);
3423
- /** @internal */
3424
- export const CollectorSplunkAuthentication1$outboundSchema: z.ZodType<
3425
- string,
3426
- z.ZodTypeDef,
3427
- CollectorSplunkAuthentication1
3428
- > = openEnums.outboundSchema(CollectorSplunkAuthentication1);
3429
-
3430
- /** @internal */
3431
- export const CollectorSplunkType1$inboundSchema: z.ZodNativeEnum<
3432
- typeof CollectorSplunkType1
3433
- > = z.nativeEnum(CollectorSplunkType1);
3434
- /** @internal */
3435
- export const CollectorSplunkType1$outboundSchema: z.ZodNativeEnum<
3436
- typeof CollectorSplunkType1
3437
- > = CollectorSplunkType1$inboundSchema;
3438
-
3439
- /** @internal */
3440
- export const CollectorSplunkOutputMode1$inboundSchema: z.ZodType<
3441
- CollectorSplunkOutputMode1,
3442
- z.ZodTypeDef,
3443
- unknown
3444
- > = openEnums.inboundSchema(CollectorSplunkOutputMode1);
3445
- /** @internal */
3446
- export const CollectorSplunkOutputMode1$outboundSchema: z.ZodType<
3447
- string,
3448
- z.ZodTypeDef,
3449
- CollectorSplunkOutputMode1
3450
- > = openEnums.outboundSchema(CollectorSplunkOutputMode1);
3451
-
3452
- /** @internal */
3453
- export const CollectorSplunkCollectRequestParam1$inboundSchema: z.ZodType<
3454
- CollectorSplunkCollectRequestParam1,
3455
- z.ZodTypeDef,
3456
- unknown
3457
- > = z.object({
3458
- name: z.string(),
3459
- value: z.string(),
3460
- });
3461
- /** @internal */
3462
- export type CollectorSplunkCollectRequestParam1$Outbound = {
3463
- name: string;
3464
- value: string;
3465
- };
3466
-
3467
- /** @internal */
3468
- export const CollectorSplunkCollectRequestParam1$outboundSchema: z.ZodType<
3469
- CollectorSplunkCollectRequestParam1$Outbound,
3470
- z.ZodTypeDef,
3471
- CollectorSplunkCollectRequestParam1
3472
- > = z.object({
3473
- name: z.string(),
3474
- value: z.string(),
3475
- });
3476
-
3477
- export function collectorSplunkCollectRequestParam1ToJSON(
3478
- collectorSplunkCollectRequestParam1: CollectorSplunkCollectRequestParam1,
3479
- ): string {
3480
- return JSON.stringify(
3481
- CollectorSplunkCollectRequestParam1$outboundSchema.parse(
3482
- collectorSplunkCollectRequestParam1,
3483
- ),
3484
- );
3485
- }
3486
- export function collectorSplunkCollectRequestParam1FromJSON(
3487
- jsonString: string,
3488
- ): SafeParseResult<CollectorSplunkCollectRequestParam1, SDKValidationError> {
3489
- return safeParse(
3490
- jsonString,
3491
- (x) =>
3492
- CollectorSplunkCollectRequestParam1$inboundSchema.parse(JSON.parse(x)),
3493
- `Failed to parse 'CollectorSplunkCollectRequestParam1' from JSON`,
3494
- );
3495
- }
3496
-
3497
- /** @internal */
3498
- export const CollectorSplunkCollectRequestHeader1$inboundSchema: z.ZodType<
3499
- CollectorSplunkCollectRequestHeader1,
3500
- z.ZodTypeDef,
3501
- unknown
3502
- > = z.object({
3503
- name: z.string(),
3504
- value: z.string(),
3505
- });
3506
- /** @internal */
3507
- export type CollectorSplunkCollectRequestHeader1$Outbound = {
3508
- name: string;
3509
- value: string;
3510
- };
3511
-
3512
- /** @internal */
3513
- export const CollectorSplunkCollectRequestHeader1$outboundSchema: z.ZodType<
3514
- CollectorSplunkCollectRequestHeader1$Outbound,
3515
- z.ZodTypeDef,
3516
- CollectorSplunkCollectRequestHeader1
3517
- > = z.object({
3518
- name: z.string(),
3519
- value: z.string(),
3520
- });
3521
-
3522
- export function collectorSplunkCollectRequestHeader1ToJSON(
3523
- collectorSplunkCollectRequestHeader1: CollectorSplunkCollectRequestHeader1,
3524
- ): string {
3525
- return JSON.stringify(
3526
- CollectorSplunkCollectRequestHeader1$outboundSchema.parse(
3527
- collectorSplunkCollectRequestHeader1,
3528
- ),
3529
- );
3530
- }
3531
- export function collectorSplunkCollectRequestHeader1FromJSON(
3532
- jsonString: string,
3533
- ): SafeParseResult<CollectorSplunkCollectRequestHeader1, SDKValidationError> {
3534
- return safeParse(
3535
- jsonString,
3536
- (x) =>
3537
- CollectorSplunkCollectRequestHeader1$inboundSchema.parse(JSON.parse(x)),
3538
- `Failed to parse 'CollectorSplunkCollectRequestHeader1' from JSON`,
3539
- );
3540
- }
3541
-
3542
- /** @internal */
3543
- export const CollectorSplunkRetryType1$inboundSchema: z.ZodType<
3544
- CollectorSplunkRetryType1,
3545
- z.ZodTypeDef,
3546
- unknown
3547
- > = openEnums.inboundSchema(CollectorSplunkRetryType1);
3548
- /** @internal */
3549
- export const CollectorSplunkRetryType1$outboundSchema: z.ZodType<
3550
- string,
3551
- z.ZodTypeDef,
3552
- CollectorSplunkRetryType1
3553
- > = openEnums.outboundSchema(CollectorSplunkRetryType1);
3554
-
3555
- /** @internal */
3556
- export const CollectorSplunkRetryRules1$inboundSchema: z.ZodType<
3557
- CollectorSplunkRetryRules1,
3558
- z.ZodTypeDef,
3559
- unknown
3560
- > = z.object({
3561
- type: CollectorSplunkRetryType1$inboundSchema.default("backoff"),
3562
- interval: z.any().optional(),
3563
- limit: z.any().optional(),
3564
- multiplier: z.any().optional(),
3565
- codes: z.any().optional(),
3566
- enableHeader: z.any().optional(),
3567
- retryConnectTimeout: z.any().optional(),
3568
- retryConnectReset: z.any().optional(),
3569
- });
3570
- /** @internal */
3571
- export type CollectorSplunkRetryRules1$Outbound = {
3572
- type: string;
3573
- interval?: any | undefined;
3574
- limit?: any | undefined;
3575
- multiplier?: any | undefined;
3576
- codes?: any | undefined;
3577
- enableHeader?: any | undefined;
3578
- retryConnectTimeout?: any | undefined;
3579
- retryConnectReset?: any | undefined;
23
+ type: "splunk";
24
+ conf: SplunkCollectorConf;
3580
25
  };
3581
26
 
3582
27
  /** @internal */
3583
- export const CollectorSplunkRetryRules1$outboundSchema: z.ZodType<
3584
- CollectorSplunkRetryRules1$Outbound,
3585
- z.ZodTypeDef,
3586
- CollectorSplunkRetryRules1
3587
- > = z.object({
3588
- type: CollectorSplunkRetryType1$outboundSchema.default("backoff"),
3589
- interval: z.any().optional(),
3590
- limit: z.any().optional(),
3591
- multiplier: z.any().optional(),
3592
- codes: z.any().optional(),
3593
- enableHeader: z.any().optional(),
3594
- retryConnectTimeout: z.any().optional(),
3595
- retryConnectReset: z.any().optional(),
3596
- });
3597
-
3598
- export function collectorSplunkRetryRules1ToJSON(
3599
- collectorSplunkRetryRules1: CollectorSplunkRetryRules1,
3600
- ): string {
3601
- return JSON.stringify(
3602
- CollectorSplunkRetryRules1$outboundSchema.parse(collectorSplunkRetryRules1),
3603
- );
3604
- }
3605
- export function collectorSplunkRetryRules1FromJSON(
3606
- jsonString: string,
3607
- ): SafeParseResult<CollectorSplunkRetryRules1, SDKValidationError> {
3608
- return safeParse(
3609
- jsonString,
3610
- (x) => CollectorSplunkRetryRules1$inboundSchema.parse(JSON.parse(x)),
3611
- `Failed to parse 'CollectorSplunkRetryRules1' from JSON`,
3612
- );
3613
- }
3614
-
3615
- /** @internal */
3616
- export const CollectorSplunkSplunk1$inboundSchema: z.ZodType<
3617
- CollectorSplunkSplunk1,
28
+ export const CollectorSplunk$inboundSchema: z.ZodType<
29
+ CollectorSplunk,
3618
30
  z.ZodTypeDef,
3619
31
  unknown
3620
32
  > = z.object({
3621
- authentication: CollectorSplunkAuthentication1$inboundSchema.default("basic"),
3622
- type: CollectorSplunkType1$inboundSchema,
3623
- searchHead: z.string().default("https://localhost:8089"),
3624
- search: z.string(),
3625
- earliest: z.string().optional(),
3626
- latest: z.string().optional(),
3627
- endpoint: z.string().default("/services/search/v2/jobs/export"),
3628
- outputMode: CollectorSplunkOutputMode1$inboundSchema.default("json"),
3629
- collectRequestParams: z.array(
3630
- z.lazy(() => CollectorSplunkCollectRequestParam1$inboundSchema),
3631
- ).optional(),
3632
- collectRequestHeaders: z.array(
3633
- z.lazy(() => CollectorSplunkCollectRequestHeader1$inboundSchema),
3634
- ).optional(),
3635
- timeout: z.number().default(0),
3636
- useRoundRobinDns: z.boolean().default(false),
3637
- disableTimeFilter: z.boolean().default(true),
3638
- rejectUnauthorized: z.boolean().default(false),
3639
- handleEscapedChars: z.boolean().default(false),
3640
- retryRules: z.lazy(() => CollectorSplunkRetryRules1$inboundSchema).optional(),
3641
- username: z.string().optional(),
3642
- password: z.string().optional(),
3643
- credentialsSecret: z.string().optional(),
3644
- token: z.string().optional(),
3645
- tokenSecret: z.string().optional(),
3646
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
3647
- loginBody: z.string().default(
3648
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
3649
- ),
3650
- tokenRespAttribute: z.string().default("token"),
3651
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
33
+ type: z.literal("splunk"),
34
+ conf: SplunkCollectorConf$inboundSchema,
3652
35
  });
3653
36
  /** @internal */
3654
- export type CollectorSplunkSplunk1$Outbound = {
3655
- authentication: string;
3656
- type: string;
3657
- searchHead: string;
3658
- search: string;
3659
- earliest?: string | undefined;
3660
- latest?: string | undefined;
3661
- endpoint: string;
3662
- outputMode: string;
3663
- collectRequestParams?:
3664
- | Array<CollectorSplunkCollectRequestParam1$Outbound>
3665
- | undefined;
3666
- collectRequestHeaders?:
3667
- | Array<CollectorSplunkCollectRequestHeader1$Outbound>
3668
- | undefined;
3669
- timeout: number;
3670
- useRoundRobinDns: boolean;
3671
- disableTimeFilter: boolean;
3672
- rejectUnauthorized: boolean;
3673
- handleEscapedChars: boolean;
3674
- retryRules?: CollectorSplunkRetryRules1$Outbound | undefined;
3675
- username?: string | undefined;
3676
- password?: string | undefined;
3677
- credentialsSecret?: string | undefined;
3678
- token?: string | undefined;
3679
- tokenSecret?: string | undefined;
3680
- loginUrl: string;
3681
- loginBody: string;
3682
- tokenRespAttribute: string;
3683
- authHeaderExpr: string;
37
+ export type CollectorSplunk$Outbound = {
38
+ type: "splunk";
39
+ conf: SplunkCollectorConf$Outbound;
3684
40
  };
3685
41
 
3686
- /** @internal */
3687
- export const CollectorSplunkSplunk1$outboundSchema: z.ZodType<
3688
- CollectorSplunkSplunk1$Outbound,
3689
- z.ZodTypeDef,
3690
- CollectorSplunkSplunk1
3691
- > = z.object({
3692
- authentication: CollectorSplunkAuthentication1$outboundSchema.default(
3693
- "basic",
3694
- ),
3695
- type: CollectorSplunkType1$outboundSchema,
3696
- searchHead: z.string().default("https://localhost:8089"),
3697
- search: z.string(),
3698
- earliest: z.string().optional(),
3699
- latest: z.string().optional(),
3700
- endpoint: z.string().default("/services/search/v2/jobs/export"),
3701
- outputMode: CollectorSplunkOutputMode1$outboundSchema.default("json"),
3702
- collectRequestParams: z.array(
3703
- z.lazy(() => CollectorSplunkCollectRequestParam1$outboundSchema),
3704
- ).optional(),
3705
- collectRequestHeaders: z.array(
3706
- z.lazy(() => CollectorSplunkCollectRequestHeader1$outboundSchema),
3707
- ).optional(),
3708
- timeout: z.number().default(0),
3709
- useRoundRobinDns: z.boolean().default(false),
3710
- disableTimeFilter: z.boolean().default(true),
3711
- rejectUnauthorized: z.boolean().default(false),
3712
- handleEscapedChars: z.boolean().default(false),
3713
- retryRules: z.lazy(() => CollectorSplunkRetryRules1$outboundSchema)
3714
- .optional(),
3715
- username: z.string().optional(),
3716
- password: z.string().optional(),
3717
- credentialsSecret: z.string().optional(),
3718
- token: z.string().optional(),
3719
- tokenSecret: z.string().optional(),
3720
- loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
3721
- loginBody: z.string().default(
3722
- "`{ \"username\": \"${username}\", \"password\": \"${password}\" }`",
3723
- ),
3724
- tokenRespAttribute: z.string().default("token"),
3725
- authHeaderExpr: z.string().default("`Bearer ${token}`"),
3726
- });
3727
-
3728
- export function collectorSplunkSplunk1ToJSON(
3729
- collectorSplunkSplunk1: CollectorSplunkSplunk1,
3730
- ): string {
3731
- return JSON.stringify(
3732
- CollectorSplunkSplunk1$outboundSchema.parse(collectorSplunkSplunk1),
3733
- );
3734
- }
3735
- export function collectorSplunkSplunk1FromJSON(
3736
- jsonString: string,
3737
- ): SafeParseResult<CollectorSplunkSplunk1, SDKValidationError> {
3738
- return safeParse(
3739
- jsonString,
3740
- (x) => CollectorSplunkSplunk1$inboundSchema.parse(JSON.parse(x)),
3741
- `Failed to parse 'CollectorSplunkSplunk1' from JSON`,
3742
- );
3743
- }
3744
-
3745
- /** @internal */
3746
- export const CollectorSplunk$inboundSchema: z.ZodType<
3747
- CollectorSplunk,
3748
- z.ZodTypeDef,
3749
- unknown
3750
- > = z.union([
3751
- z.lazy(() => CollectorSplunkSplunk2$inboundSchema),
3752
- z.lazy(() => CollectorSplunkSplunk6$inboundSchema),
3753
- z.lazy(() => CollectorSplunkSplunk3$inboundSchema),
3754
- z.lazy(() => CollectorSplunkSplunk4$inboundSchema),
3755
- z.lazy(() => CollectorSplunkSplunk5$inboundSchema),
3756
- z.lazy(() => CollectorSplunkSplunk7$inboundSchema),
3757
- z.lazy(() => CollectorSplunkSplunk1$inboundSchema),
3758
- ]);
3759
- /** @internal */
3760
- export type CollectorSplunk$Outbound =
3761
- | CollectorSplunkSplunk2$Outbound
3762
- | CollectorSplunkSplunk6$Outbound
3763
- | CollectorSplunkSplunk3$Outbound
3764
- | CollectorSplunkSplunk4$Outbound
3765
- | CollectorSplunkSplunk5$Outbound
3766
- | CollectorSplunkSplunk7$Outbound
3767
- | CollectorSplunkSplunk1$Outbound;
3768
-
3769
42
  /** @internal */
3770
43
  export const CollectorSplunk$outboundSchema: z.ZodType<
3771
44
  CollectorSplunk$Outbound,
3772
45
  z.ZodTypeDef,
3773
46
  CollectorSplunk
3774
- > = z.union([
3775
- z.lazy(() => CollectorSplunkSplunk2$outboundSchema),
3776
- z.lazy(() => CollectorSplunkSplunk6$outboundSchema),
3777
- z.lazy(() => CollectorSplunkSplunk3$outboundSchema),
3778
- z.lazy(() => CollectorSplunkSplunk4$outboundSchema),
3779
- z.lazy(() => CollectorSplunkSplunk5$outboundSchema),
3780
- z.lazy(() => CollectorSplunkSplunk7$outboundSchema),
3781
- z.lazy(() => CollectorSplunkSplunk1$outboundSchema),
3782
- ]);
47
+ > = z.object({
48
+ type: z.literal("splunk"),
49
+ conf: SplunkCollectorConf$outboundSchema,
50
+ });
3783
51
 
3784
52
  export function collectorSplunkToJSON(
3785
53
  collectorSplunk: CollectorSplunk,