cribl-control-plane 0.5.0-beta.4 → 0.5.0-beta.5
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.
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/collectorazureblob.d.ts +643 -19
- package/dist/commonjs/models/collectorazureblob.d.ts.map +1 -1
- package/dist/commonjs/models/collectorazureblob.js +437 -20
- package/dist/commonjs/models/collectorazureblob.js.map +1 -1
- package/dist/commonjs/models/collectorconf.d.ts +26 -2
- package/dist/commonjs/models/collectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/collectorconf.js +12 -12
- package/dist/commonjs/models/collectorconf.js.map +1 -1
- package/dist/commonjs/models/collectorgooglecloudstorage.d.ts +316 -19
- package/dist/commonjs/models/collectorgooglecloudstorage.d.ts.map +1 -1
- package/dist/commonjs/models/collectorgooglecloudstorage.js +222 -20
- package/dist/commonjs/models/collectorgooglecloudstorage.js.map +1 -1
- package/dist/commonjs/models/collectorhealthcheck.d.ts +3635 -72
- package/dist/commonjs/models/collectorhealthcheck.d.ts.map +1 -1
- package/dist/commonjs/models/collectorhealthcheck.js +2828 -126
- package/dist/commonjs/models/collectorhealthcheck.js.map +1 -1
- package/dist/commonjs/models/collectorrest.d.ts +6369 -147
- package/dist/commonjs/models/collectorrest.d.ts.map +1 -1
- package/dist/commonjs/models/collectorrest.js +5232 -96
- package/dist/commonjs/models/collectorrest.js.map +1 -1
- package/dist/commonjs/models/collectors3.d.ts +1003 -34
- package/dist/commonjs/models/collectors3.d.ts.map +1 -1
- package/dist/commonjs/models/collectors3.js +653 -32
- package/dist/commonjs/models/collectors3.js.map +1 -1
- package/dist/commonjs/models/collectorsplunk.d.ts +1803 -82
- package/dist/commonjs/models/collectorsplunk.d.ts.map +1 -1
- package/dist/commonjs/models/collectorsplunk.js +1320 -50
- package/dist/commonjs/models/collectorsplunk.js.map +1 -1
- package/dist/commonjs/models/functionconfschemahandlebars.d.ts +46 -0
- package/dist/commonjs/models/functionconfschemahandlebars.d.ts.map +1 -0
- package/dist/commonjs/models/{functionconfschemahandlebar.js → functionconfschemahandlebars.js} +12 -11
- package/dist/commonjs/models/functionconfschemahandlebars.js.map +1 -0
- package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts +5 -0
- package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemanotificationpolicies.js +2 -0
- package/dist/commonjs/models/functionconfschemanotificationpolicies.js.map +1 -1
- package/dist/commonjs/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
- package/dist/commonjs/models/functionhandlebars.d.ts.map +1 -0
- package/dist/commonjs/models/{functionhandlebar.js → functionhandlebars.js} +9 -9
- package/dist/commonjs/models/functionhandlebars.js.map +1 -0
- package/dist/commonjs/models/functionresponse.d.ts +2 -2
- package/dist/commonjs/models/functionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/functionresponse.js +2 -2
- package/dist/commonjs/models/functionresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +3 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconf.d.ts +2 -2
- package/dist/commonjs/models/pipelinefunctionconf.d.ts.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconf.js +2 -2
- package/dist/commonjs/models/pipelinefunctionconf.js.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconfinput.d.ts +3 -3
- package/dist/commonjs/models/pipelinefunctionconfinput.d.ts.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconfinput.js +2 -2
- package/dist/commonjs/models/pipelinefunctionconfinput.js.map +1 -1
- package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts +109 -0
- package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts.map +1 -0
- package/dist/commonjs/models/pipelinefunctionhandlebars.js +114 -0
- package/dist/commonjs/models/pipelinefunctionhandlebars.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/collectorazureblob.d.ts +643 -19
- package/dist/esm/models/collectorazureblob.d.ts.map +1 -1
- package/dist/esm/models/collectorazureblob.js +412 -17
- package/dist/esm/models/collectorazureblob.js.map +1 -1
- package/dist/esm/models/collectorconf.d.ts +26 -2
- package/dist/esm/models/collectorconf.d.ts.map +1 -1
- package/dist/esm/models/collectorconf.js +12 -12
- package/dist/esm/models/collectorconf.js.map +1 -1
- package/dist/esm/models/collectorgooglecloudstorage.d.ts +316 -19
- package/dist/esm/models/collectorgooglecloudstorage.d.ts.map +1 -1
- package/dist/esm/models/collectorgooglecloudstorage.js +209 -17
- package/dist/esm/models/collectorgooglecloudstorage.js.map +1 -1
- package/dist/esm/models/collectorhealthcheck.d.ts +3635 -72
- package/dist/esm/models/collectorhealthcheck.d.ts.map +1 -1
- package/dist/esm/models/collectorhealthcheck.js +2681 -119
- package/dist/esm/models/collectorhealthcheck.js.map +1 -1
- package/dist/esm/models/collectorrest.d.ts +6369 -147
- package/dist/esm/models/collectorrest.d.ts.map +1 -1
- package/dist/esm/models/collectorrest.js +4941 -83
- package/dist/esm/models/collectorrest.js.map +1 -1
- package/dist/esm/models/collectors3.d.ts +1003 -34
- package/dist/esm/models/collectors3.d.ts.map +1 -1
- package/dist/esm/models/collectors3.js +631 -29
- package/dist/esm/models/collectors3.js.map +1 -1
- package/dist/esm/models/collectorsplunk.d.ts +1803 -82
- package/dist/esm/models/collectorsplunk.d.ts.map +1 -1
- package/dist/esm/models/collectorsplunk.js +1261 -43
- package/dist/esm/models/collectorsplunk.js.map +1 -1
- package/dist/esm/models/functionconfschemahandlebars.d.ts +46 -0
- package/dist/esm/models/functionconfschemahandlebars.d.ts.map +1 -0
- package/dist/esm/models/functionconfschemahandlebars.js +26 -0
- package/dist/esm/models/functionconfschemahandlebars.js.map +1 -0
- package/dist/esm/models/functionconfschemanotificationpolicies.d.ts +5 -0
- package/dist/esm/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemanotificationpolicies.js +2 -0
- package/dist/esm/models/functionconfschemanotificationpolicies.js.map +1 -1
- package/dist/esm/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
- package/dist/esm/models/functionhandlebars.d.ts.map +1 -0
- package/dist/esm/models/{functionhandlebar.js → functionhandlebars.js} +7 -7
- package/dist/esm/models/functionhandlebars.js.map +1 -0
- package/dist/esm/models/functionresponse.d.ts +2 -2
- package/dist/esm/models/functionresponse.d.ts.map +1 -1
- package/dist/esm/models/functionresponse.js +2 -2
- package/dist/esm/models/functionresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +3 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -3
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/pipelinefunctionconf.d.ts +2 -2
- package/dist/esm/models/pipelinefunctionconf.d.ts.map +1 -1
- package/dist/esm/models/pipelinefunctionconf.js +2 -2
- package/dist/esm/models/pipelinefunctionconf.js.map +1 -1
- package/dist/esm/models/pipelinefunctionconfinput.d.ts +3 -3
- package/dist/esm/models/pipelinefunctionconfinput.d.ts.map +1 -1
- package/dist/esm/models/pipelinefunctionconfinput.js +2 -2
- package/dist/esm/models/pipelinefunctionconfinput.js.map +1 -1
- package/dist/esm/models/pipelinefunctionhandlebars.d.ts +109 -0
- package/dist/esm/models/pipelinefunctionhandlebars.d.ts.map +1 -0
- package/dist/esm/models/pipelinefunctionhandlebars.js +72 -0
- package/dist/esm/models/pipelinefunctionhandlebars.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/collectorazureblob.ts +1317 -91
- package/src/models/collectorconf.ts +36 -24
- package/src/models/collectorgooglecloudstorage.ts +698 -66
- package/src/models/collectorhealthcheck.ts +7751 -175
- package/src/models/collectorrest.ts +13275 -231
- package/src/models/collectors3.ts +1722 -97
- package/src/models/collectorsplunk.ts +3531 -187
- package/src/models/{functionconfschemahandlebar.ts → functionconfschemahandlebars.ts} +23 -20
- package/src/models/functionconfschemanotificationpolicies.ts +7 -0
- package/src/models/{functionhandlebar.ts → functionhandlebars.ts} +14 -14
- package/src/models/functionresponse.ts +5 -5
- package/src/models/index.ts +3 -3
- package/src/models/pipelinefunctionconf.ts +5 -5
- package/src/models/pipelinefunctionconfinput.ts +7 -7
- package/src/models/{pipelinefunctionhandlebar.ts → pipelinefunctionhandlebars.ts} +67 -62
- package/dist/commonjs/models/functionconfschemahandlebar.d.ts +0 -44
- package/dist/commonjs/models/functionconfschemahandlebar.d.ts.map +0 -1
- package/dist/commonjs/models/functionconfschemahandlebar.js.map +0 -1
- package/dist/commonjs/models/functionhandlebar.d.ts.map +0 -1
- package/dist/commonjs/models/functionhandlebar.js.map +0 -1
- package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts +0 -108
- package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts.map +0 -1
- package/dist/commonjs/models/pipelinefunctionhandlebar.js +0 -112
- package/dist/commonjs/models/pipelinefunctionhandlebar.js.map +0 -1
- package/dist/esm/models/functionconfschemahandlebar.d.ts +0 -44
- package/dist/esm/models/functionconfschemahandlebar.d.ts.map +0 -1
- package/dist/esm/models/functionconfschemahandlebar.js +0 -25
- package/dist/esm/models/functionconfschemahandlebar.js.map +0 -1
- package/dist/esm/models/functionhandlebar.d.ts.map +0 -1
- package/dist/esm/models/functionhandlebar.js.map +0 -1
- package/dist/esm/models/pipelinefunctionhandlebar.d.ts +0 -108
- package/dist/esm/models/pipelinefunctionhandlebar.d.ts.map +0 -1
- package/dist/esm/models/pipelinefunctionhandlebar.js +0 -70
- package/dist/esm/models/pipelinefunctionhandlebar.js.map +0 -1
|
@@ -4,17 +4,65 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
import * as openEnums from "../types/enums.js";
|
|
7
|
+
/**
|
|
8
|
+
* Authentication method for Discover and Collect REST calls
|
|
9
|
+
*/
|
|
10
|
+
export const CollectorSplunkAuthentication7 = {
|
|
11
|
+
/**
|
|
12
|
+
* None
|
|
13
|
+
*/
|
|
14
|
+
None: "none",
|
|
15
|
+
/**
|
|
16
|
+
* Basic
|
|
17
|
+
*/
|
|
18
|
+
Basic: "basic",
|
|
19
|
+
/**
|
|
20
|
+
* Basic (credentials secret)
|
|
21
|
+
*/
|
|
22
|
+
BasicSecret: "basicSecret",
|
|
23
|
+
/**
|
|
24
|
+
* Bearer Token
|
|
25
|
+
*/
|
|
26
|
+
Token: "token",
|
|
27
|
+
/**
|
|
28
|
+
* Bearer Token (text secret)
|
|
29
|
+
*/
|
|
30
|
+
TokenSecret: "tokenSecret",
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Collector type: splunk
|
|
34
|
+
*/
|
|
35
|
+
export const CollectorSplunkType7 = {
|
|
36
|
+
Splunk: "splunk",
|
|
37
|
+
};
|
|
7
38
|
/**
|
|
8
39
|
* Format of the returned output
|
|
9
40
|
*/
|
|
10
|
-
export const
|
|
41
|
+
export const CollectorSplunkOutputMode7 = {
|
|
11
42
|
Csv: "csv",
|
|
12
43
|
Json: "json",
|
|
13
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Algorithm to use when performing HTTP retries
|
|
47
|
+
*/
|
|
48
|
+
export const CollectorSplunkRetryType7 = {
|
|
49
|
+
/**
|
|
50
|
+
* Disabled
|
|
51
|
+
*/
|
|
52
|
+
None: "none",
|
|
53
|
+
/**
|
|
54
|
+
* Backoff
|
|
55
|
+
*/
|
|
56
|
+
Backoff: "backoff",
|
|
57
|
+
/**
|
|
58
|
+
* Static
|
|
59
|
+
*/
|
|
60
|
+
Static: "static",
|
|
61
|
+
};
|
|
14
62
|
/**
|
|
15
63
|
* Authentication method for Discover and Collect REST calls
|
|
16
64
|
*/
|
|
17
|
-
export const
|
|
65
|
+
export const CollectorSplunkAuthentication6 = {
|
|
18
66
|
/**
|
|
19
67
|
* None
|
|
20
68
|
*/
|
|
@@ -36,10 +84,23 @@ export const CollectorSplunkAuthentication = {
|
|
|
36
84
|
*/
|
|
37
85
|
TokenSecret: "tokenSecret",
|
|
38
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* Collector type: splunk
|
|
89
|
+
*/
|
|
90
|
+
export const CollectorSplunkType6 = {
|
|
91
|
+
Splunk: "splunk",
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Format of the returned output
|
|
95
|
+
*/
|
|
96
|
+
export const CollectorSplunkOutputMode6 = {
|
|
97
|
+
Csv: "csv",
|
|
98
|
+
Json: "json",
|
|
99
|
+
};
|
|
39
100
|
/**
|
|
40
101
|
* Algorithm to use when performing HTTP retries
|
|
41
102
|
*/
|
|
42
|
-
export const
|
|
103
|
+
export const CollectorSplunkRetryType6 = {
|
|
43
104
|
/**
|
|
44
105
|
* Disabled
|
|
45
106
|
*/
|
|
@@ -53,53 +114,1027 @@ export const CollectorSplunkRetryType = {
|
|
|
53
114
|
*/
|
|
54
115
|
Static: "static",
|
|
55
116
|
};
|
|
117
|
+
/**
|
|
118
|
+
* Authentication method for Discover and Collect REST calls
|
|
119
|
+
*/
|
|
120
|
+
export const CollectorSplunkAuthentication5 = {
|
|
121
|
+
/**
|
|
122
|
+
* None
|
|
123
|
+
*/
|
|
124
|
+
None: "none",
|
|
125
|
+
/**
|
|
126
|
+
* Basic
|
|
127
|
+
*/
|
|
128
|
+
Basic: "basic",
|
|
129
|
+
/**
|
|
130
|
+
* Basic (credentials secret)
|
|
131
|
+
*/
|
|
132
|
+
BasicSecret: "basicSecret",
|
|
133
|
+
/**
|
|
134
|
+
* Bearer Token
|
|
135
|
+
*/
|
|
136
|
+
Token: "token",
|
|
137
|
+
/**
|
|
138
|
+
* Bearer Token (text secret)
|
|
139
|
+
*/
|
|
140
|
+
TokenSecret: "tokenSecret",
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Collector type: splunk
|
|
144
|
+
*/
|
|
145
|
+
export const CollectorSplunkType5 = {
|
|
146
|
+
Splunk: "splunk",
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Format of the returned output
|
|
150
|
+
*/
|
|
151
|
+
export const CollectorSplunkOutputMode5 = {
|
|
152
|
+
Csv: "csv",
|
|
153
|
+
Json: "json",
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Algorithm to use when performing HTTP retries
|
|
157
|
+
*/
|
|
158
|
+
export const CollectorSplunkRetryType5 = {
|
|
159
|
+
/**
|
|
160
|
+
* Disabled
|
|
161
|
+
*/
|
|
162
|
+
None: "none",
|
|
163
|
+
/**
|
|
164
|
+
* Backoff
|
|
165
|
+
*/
|
|
166
|
+
Backoff: "backoff",
|
|
167
|
+
/**
|
|
168
|
+
* Static
|
|
169
|
+
*/
|
|
170
|
+
Static: "static",
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Authentication method for Discover and Collect REST calls
|
|
174
|
+
*/
|
|
175
|
+
export const CollectorSplunkAuthentication4 = {
|
|
176
|
+
/**
|
|
177
|
+
* None
|
|
178
|
+
*/
|
|
179
|
+
None: "none",
|
|
180
|
+
/**
|
|
181
|
+
* Basic
|
|
182
|
+
*/
|
|
183
|
+
Basic: "basic",
|
|
184
|
+
/**
|
|
185
|
+
* Basic (credentials secret)
|
|
186
|
+
*/
|
|
187
|
+
BasicSecret: "basicSecret",
|
|
188
|
+
/**
|
|
189
|
+
* Bearer Token
|
|
190
|
+
*/
|
|
191
|
+
Token: "token",
|
|
192
|
+
/**
|
|
193
|
+
* Bearer Token (text secret)
|
|
194
|
+
*/
|
|
195
|
+
TokenSecret: "tokenSecret",
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Collector type: splunk
|
|
199
|
+
*/
|
|
200
|
+
export const CollectorSplunkType4 = {
|
|
201
|
+
Splunk: "splunk",
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Format of the returned output
|
|
205
|
+
*/
|
|
206
|
+
export const CollectorSplunkOutputMode4 = {
|
|
207
|
+
Csv: "csv",
|
|
208
|
+
Json: "json",
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Algorithm to use when performing HTTP retries
|
|
212
|
+
*/
|
|
213
|
+
export const CollectorSplunkRetryType4 = {
|
|
214
|
+
/**
|
|
215
|
+
* Disabled
|
|
216
|
+
*/
|
|
217
|
+
None: "none",
|
|
218
|
+
/**
|
|
219
|
+
* Backoff
|
|
220
|
+
*/
|
|
221
|
+
Backoff: "backoff",
|
|
222
|
+
/**
|
|
223
|
+
* Static
|
|
224
|
+
*/
|
|
225
|
+
Static: "static",
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Authentication method for Discover and Collect REST calls
|
|
229
|
+
*/
|
|
230
|
+
export const CollectorSplunkAuthentication3 = {
|
|
231
|
+
/**
|
|
232
|
+
* None
|
|
233
|
+
*/
|
|
234
|
+
None: "none",
|
|
235
|
+
/**
|
|
236
|
+
* Basic
|
|
237
|
+
*/
|
|
238
|
+
Basic: "basic",
|
|
239
|
+
/**
|
|
240
|
+
* Basic (credentials secret)
|
|
241
|
+
*/
|
|
242
|
+
BasicSecret: "basicSecret",
|
|
243
|
+
/**
|
|
244
|
+
* Bearer Token
|
|
245
|
+
*/
|
|
246
|
+
Token: "token",
|
|
247
|
+
/**
|
|
248
|
+
* Bearer Token (text secret)
|
|
249
|
+
*/
|
|
250
|
+
TokenSecret: "tokenSecret",
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Collector type: splunk
|
|
254
|
+
*/
|
|
255
|
+
export const CollectorSplunkType3 = {
|
|
256
|
+
Splunk: "splunk",
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Format of the returned output
|
|
260
|
+
*/
|
|
261
|
+
export const CollectorSplunkOutputMode3 = {
|
|
262
|
+
Csv: "csv",
|
|
263
|
+
Json: "json",
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Algorithm to use when performing HTTP retries
|
|
267
|
+
*/
|
|
268
|
+
export const CollectorSplunkRetryType3 = {
|
|
269
|
+
/**
|
|
270
|
+
* Disabled
|
|
271
|
+
*/
|
|
272
|
+
None: "none",
|
|
273
|
+
/**
|
|
274
|
+
* Backoff
|
|
275
|
+
*/
|
|
276
|
+
Backoff: "backoff",
|
|
277
|
+
/**
|
|
278
|
+
* Static
|
|
279
|
+
*/
|
|
280
|
+
Static: "static",
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Authentication method for Discover and Collect REST calls
|
|
284
|
+
*/
|
|
285
|
+
export const CollectorSplunkAuthentication2 = {
|
|
286
|
+
/**
|
|
287
|
+
* None
|
|
288
|
+
*/
|
|
289
|
+
None: "none",
|
|
290
|
+
/**
|
|
291
|
+
* Basic
|
|
292
|
+
*/
|
|
293
|
+
Basic: "basic",
|
|
294
|
+
/**
|
|
295
|
+
* Basic (credentials secret)
|
|
296
|
+
*/
|
|
297
|
+
BasicSecret: "basicSecret",
|
|
298
|
+
/**
|
|
299
|
+
* Bearer Token
|
|
300
|
+
*/
|
|
301
|
+
Token: "token",
|
|
302
|
+
/**
|
|
303
|
+
* Bearer Token (text secret)
|
|
304
|
+
*/
|
|
305
|
+
TokenSecret: "tokenSecret",
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Collector type: splunk
|
|
309
|
+
*/
|
|
310
|
+
export const CollectorSplunkType2 = {
|
|
311
|
+
Splunk: "splunk",
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Format of the returned output
|
|
315
|
+
*/
|
|
316
|
+
export const CollectorSplunkOutputMode2 = {
|
|
317
|
+
Csv: "csv",
|
|
318
|
+
Json: "json",
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Algorithm to use when performing HTTP retries
|
|
322
|
+
*/
|
|
323
|
+
export const CollectorSplunkRetryType2 = {
|
|
324
|
+
/**
|
|
325
|
+
* Disabled
|
|
326
|
+
*/
|
|
327
|
+
None: "none",
|
|
328
|
+
/**
|
|
329
|
+
* Backoff
|
|
330
|
+
*/
|
|
331
|
+
Backoff: "backoff",
|
|
332
|
+
/**
|
|
333
|
+
* Static
|
|
334
|
+
*/
|
|
335
|
+
Static: "static",
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Authentication method for Discover and Collect REST calls
|
|
339
|
+
*/
|
|
340
|
+
export const CollectorSplunkAuthentication1 = {
|
|
341
|
+
/**
|
|
342
|
+
* None
|
|
343
|
+
*/
|
|
344
|
+
None: "none",
|
|
345
|
+
/**
|
|
346
|
+
* Basic
|
|
347
|
+
*/
|
|
348
|
+
Basic: "basic",
|
|
349
|
+
/**
|
|
350
|
+
* Basic (credentials secret)
|
|
351
|
+
*/
|
|
352
|
+
BasicSecret: "basicSecret",
|
|
353
|
+
/**
|
|
354
|
+
* Bearer Token
|
|
355
|
+
*/
|
|
356
|
+
Token: "token",
|
|
357
|
+
/**
|
|
358
|
+
* Bearer Token (text secret)
|
|
359
|
+
*/
|
|
360
|
+
TokenSecret: "tokenSecret",
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* Collector type: splunk
|
|
364
|
+
*/
|
|
365
|
+
export const CollectorSplunkType1 = {
|
|
366
|
+
Splunk: "splunk",
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Format of the returned output
|
|
370
|
+
*/
|
|
371
|
+
export const CollectorSplunkOutputMode1 = {
|
|
372
|
+
Csv: "csv",
|
|
373
|
+
Json: "json",
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Algorithm to use when performing HTTP retries
|
|
377
|
+
*/
|
|
378
|
+
export const CollectorSplunkRetryType1 = {
|
|
379
|
+
/**
|
|
380
|
+
* Disabled
|
|
381
|
+
*/
|
|
382
|
+
None: "none",
|
|
383
|
+
/**
|
|
384
|
+
* Backoff
|
|
385
|
+
*/
|
|
386
|
+
Backoff: "backoff",
|
|
387
|
+
/**
|
|
388
|
+
* Static
|
|
389
|
+
*/
|
|
390
|
+
Static: "static",
|
|
391
|
+
};
|
|
392
|
+
/** @internal */
|
|
393
|
+
export const CollectorSplunkAuthentication7$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication7);
|
|
394
|
+
/** @internal */
|
|
395
|
+
export const CollectorSplunkAuthentication7$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication7);
|
|
396
|
+
/** @internal */
|
|
397
|
+
export const CollectorSplunkType7$inboundSchema = z.nativeEnum(CollectorSplunkType7);
|
|
398
|
+
/** @internal */
|
|
399
|
+
export const CollectorSplunkType7$outboundSchema = CollectorSplunkType7$inboundSchema;
|
|
400
|
+
/** @internal */
|
|
401
|
+
export const CollectorSplunkOutputMode7$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode7);
|
|
402
|
+
/** @internal */
|
|
403
|
+
export const CollectorSplunkOutputMode7$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode7);
|
|
404
|
+
/** @internal */
|
|
405
|
+
export const CollectorSplunkCollectRequestParam7$inboundSchema = z.object({
|
|
406
|
+
name: z.string(),
|
|
407
|
+
value: z.string(),
|
|
408
|
+
});
|
|
409
|
+
/** @internal */
|
|
410
|
+
export const CollectorSplunkCollectRequestParam7$outboundSchema = z.object({
|
|
411
|
+
name: z.string(),
|
|
412
|
+
value: z.string(),
|
|
413
|
+
});
|
|
414
|
+
export function collectorSplunkCollectRequestParam7ToJSON(collectorSplunkCollectRequestParam7) {
|
|
415
|
+
return JSON.stringify(CollectorSplunkCollectRequestParam7$outboundSchema.parse(collectorSplunkCollectRequestParam7));
|
|
416
|
+
}
|
|
417
|
+
export function collectorSplunkCollectRequestParam7FromJSON(jsonString) {
|
|
418
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam7' from JSON`);
|
|
419
|
+
}
|
|
420
|
+
/** @internal */
|
|
421
|
+
export const CollectorSplunkCollectRequestHeader7$inboundSchema = z.object({
|
|
422
|
+
name: z.string(),
|
|
423
|
+
value: z.string(),
|
|
424
|
+
});
|
|
425
|
+
/** @internal */
|
|
426
|
+
export const CollectorSplunkCollectRequestHeader7$outboundSchema = z.object({
|
|
427
|
+
name: z.string(),
|
|
428
|
+
value: z.string(),
|
|
429
|
+
});
|
|
430
|
+
export function collectorSplunkCollectRequestHeader7ToJSON(collectorSplunkCollectRequestHeader7) {
|
|
431
|
+
return JSON.stringify(CollectorSplunkCollectRequestHeader7$outboundSchema.parse(collectorSplunkCollectRequestHeader7));
|
|
432
|
+
}
|
|
433
|
+
export function collectorSplunkCollectRequestHeader7FromJSON(jsonString) {
|
|
434
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader7' from JSON`);
|
|
435
|
+
}
|
|
436
|
+
/** @internal */
|
|
437
|
+
export const CollectorSplunkRetryType7$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType7);
|
|
438
|
+
/** @internal */
|
|
439
|
+
export const CollectorSplunkRetryType7$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType7);
|
|
440
|
+
/** @internal */
|
|
441
|
+
export const CollectorSplunkRetryRules7$inboundSchema = z.object({
|
|
442
|
+
type: CollectorSplunkRetryType7$inboundSchema.default("backoff"),
|
|
443
|
+
interval: z.any().optional(),
|
|
444
|
+
limit: z.any().optional(),
|
|
445
|
+
multiplier: z.any().optional(),
|
|
446
|
+
codes: z.any().optional(),
|
|
447
|
+
enableHeader: z.any().optional(),
|
|
448
|
+
retryConnectTimeout: z.any().optional(),
|
|
449
|
+
retryConnectReset: z.any().optional(),
|
|
450
|
+
});
|
|
451
|
+
/** @internal */
|
|
452
|
+
export const CollectorSplunkRetryRules7$outboundSchema = z.object({
|
|
453
|
+
type: CollectorSplunkRetryType7$outboundSchema.default("backoff"),
|
|
454
|
+
interval: z.any().optional(),
|
|
455
|
+
limit: z.any().optional(),
|
|
456
|
+
multiplier: z.any().optional(),
|
|
457
|
+
codes: z.any().optional(),
|
|
458
|
+
enableHeader: z.any().optional(),
|
|
459
|
+
retryConnectTimeout: z.any().optional(),
|
|
460
|
+
retryConnectReset: z.any().optional(),
|
|
461
|
+
});
|
|
462
|
+
export function collectorSplunkRetryRules7ToJSON(collectorSplunkRetryRules7) {
|
|
463
|
+
return JSON.stringify(CollectorSplunkRetryRules7$outboundSchema.parse(collectorSplunkRetryRules7));
|
|
464
|
+
}
|
|
465
|
+
export function collectorSplunkRetryRules7FromJSON(jsonString) {
|
|
466
|
+
return safeParse(jsonString, (x) => CollectorSplunkRetryRules7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules7' from JSON`);
|
|
467
|
+
}
|
|
468
|
+
/** @internal */
|
|
469
|
+
export const CollectorSplunkSplunk7$inboundSchema = z.object({
|
|
470
|
+
authentication: CollectorSplunkAuthentication7$inboundSchema.default("basic"),
|
|
471
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
472
|
+
credentialsSecret: z.string(),
|
|
473
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
474
|
+
tokenRespAttribute: z.string().default("token"),
|
|
475
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
476
|
+
type: CollectorSplunkType7$inboundSchema,
|
|
477
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
478
|
+
search: z.string(),
|
|
479
|
+
earliest: z.string().optional(),
|
|
480
|
+
latest: z.string().optional(),
|
|
481
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
482
|
+
outputMode: CollectorSplunkOutputMode7$inboundSchema.default("json"),
|
|
483
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam7$inboundSchema)).optional(),
|
|
484
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader7$inboundSchema)).optional(),
|
|
485
|
+
timeout: z.number().default(0),
|
|
486
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
487
|
+
disableTimeFilter: z.boolean().default(true),
|
|
488
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
489
|
+
handleEscapedChars: z.boolean().default(false),
|
|
490
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules7$inboundSchema).optional(),
|
|
491
|
+
username: z.string().optional(),
|
|
492
|
+
password: z.string().optional(),
|
|
493
|
+
token: z.string().optional(),
|
|
494
|
+
tokenSecret: z.string().optional(),
|
|
495
|
+
});
|
|
496
|
+
/** @internal */
|
|
497
|
+
export const CollectorSplunkSplunk7$outboundSchema = z.object({
|
|
498
|
+
authentication: CollectorSplunkAuthentication7$outboundSchema.default("basic"),
|
|
499
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
500
|
+
credentialsSecret: z.string(),
|
|
501
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
502
|
+
tokenRespAttribute: z.string().default("token"),
|
|
503
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
504
|
+
type: CollectorSplunkType7$outboundSchema,
|
|
505
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
506
|
+
search: z.string(),
|
|
507
|
+
earliest: z.string().optional(),
|
|
508
|
+
latest: z.string().optional(),
|
|
509
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
510
|
+
outputMode: CollectorSplunkOutputMode7$outboundSchema.default("json"),
|
|
511
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam7$outboundSchema)).optional(),
|
|
512
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader7$outboundSchema)).optional(),
|
|
513
|
+
timeout: z.number().default(0),
|
|
514
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
515
|
+
disableTimeFilter: z.boolean().default(true),
|
|
516
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
517
|
+
handleEscapedChars: z.boolean().default(false),
|
|
518
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules7$outboundSchema)
|
|
519
|
+
.optional(),
|
|
520
|
+
username: z.string().optional(),
|
|
521
|
+
password: z.string().optional(),
|
|
522
|
+
token: z.string().optional(),
|
|
523
|
+
tokenSecret: z.string().optional(),
|
|
524
|
+
});
|
|
525
|
+
export function collectorSplunkSplunk7ToJSON(collectorSplunkSplunk7) {
|
|
526
|
+
return JSON.stringify(CollectorSplunkSplunk7$outboundSchema.parse(collectorSplunkSplunk7));
|
|
527
|
+
}
|
|
528
|
+
export function collectorSplunkSplunk7FromJSON(jsonString) {
|
|
529
|
+
return safeParse(jsonString, (x) => CollectorSplunkSplunk7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk7' from JSON`);
|
|
530
|
+
}
|
|
531
|
+
/** @internal */
|
|
532
|
+
export const CollectorSplunkAuthentication6$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication6);
|
|
533
|
+
/** @internal */
|
|
534
|
+
export const CollectorSplunkAuthentication6$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication6);
|
|
535
|
+
/** @internal */
|
|
536
|
+
export const CollectorSplunkType6$inboundSchema = z.nativeEnum(CollectorSplunkType6);
|
|
537
|
+
/** @internal */
|
|
538
|
+
export const CollectorSplunkType6$outboundSchema = CollectorSplunkType6$inboundSchema;
|
|
539
|
+
/** @internal */
|
|
540
|
+
export const CollectorSplunkOutputMode6$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode6);
|
|
541
|
+
/** @internal */
|
|
542
|
+
export const CollectorSplunkOutputMode6$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode6);
|
|
543
|
+
/** @internal */
|
|
544
|
+
export const CollectorSplunkCollectRequestParam6$inboundSchema = z.object({
|
|
545
|
+
name: z.string(),
|
|
546
|
+
value: z.string(),
|
|
547
|
+
});
|
|
548
|
+
/** @internal */
|
|
549
|
+
export const CollectorSplunkCollectRequestParam6$outboundSchema = z.object({
|
|
550
|
+
name: z.string(),
|
|
551
|
+
value: z.string(),
|
|
552
|
+
});
|
|
553
|
+
export function collectorSplunkCollectRequestParam6ToJSON(collectorSplunkCollectRequestParam6) {
|
|
554
|
+
return JSON.stringify(CollectorSplunkCollectRequestParam6$outboundSchema.parse(collectorSplunkCollectRequestParam6));
|
|
555
|
+
}
|
|
556
|
+
export function collectorSplunkCollectRequestParam6FromJSON(jsonString) {
|
|
557
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam6' from JSON`);
|
|
558
|
+
}
|
|
559
|
+
/** @internal */
|
|
560
|
+
export const CollectorSplunkCollectRequestHeader6$inboundSchema = z.object({
|
|
561
|
+
name: z.string(),
|
|
562
|
+
value: z.string(),
|
|
563
|
+
});
|
|
564
|
+
/** @internal */
|
|
565
|
+
export const CollectorSplunkCollectRequestHeader6$outboundSchema = z.object({
|
|
566
|
+
name: z.string(),
|
|
567
|
+
value: z.string(),
|
|
568
|
+
});
|
|
569
|
+
export function collectorSplunkCollectRequestHeader6ToJSON(collectorSplunkCollectRequestHeader6) {
|
|
570
|
+
return JSON.stringify(CollectorSplunkCollectRequestHeader6$outboundSchema.parse(collectorSplunkCollectRequestHeader6));
|
|
571
|
+
}
|
|
572
|
+
export function collectorSplunkCollectRequestHeader6FromJSON(jsonString) {
|
|
573
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader6' from JSON`);
|
|
574
|
+
}
|
|
575
|
+
/** @internal */
|
|
576
|
+
export const CollectorSplunkRetryType6$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType6);
|
|
577
|
+
/** @internal */
|
|
578
|
+
export const CollectorSplunkRetryType6$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType6);
|
|
579
|
+
/** @internal */
|
|
580
|
+
export const CollectorSplunkRetryRules6$inboundSchema = z.object({
|
|
581
|
+
type: CollectorSplunkRetryType6$inboundSchema.default("backoff"),
|
|
582
|
+
interval: z.any().optional(),
|
|
583
|
+
limit: z.any().optional(),
|
|
584
|
+
multiplier: z.any().optional(),
|
|
585
|
+
codes: z.any().optional(),
|
|
586
|
+
enableHeader: z.any().optional(),
|
|
587
|
+
retryConnectTimeout: z.any().optional(),
|
|
588
|
+
retryConnectReset: z.any().optional(),
|
|
589
|
+
});
|
|
590
|
+
/** @internal */
|
|
591
|
+
export const CollectorSplunkRetryRules6$outboundSchema = z.object({
|
|
592
|
+
type: CollectorSplunkRetryType6$outboundSchema.default("backoff"),
|
|
593
|
+
interval: z.any().optional(),
|
|
594
|
+
limit: z.any().optional(),
|
|
595
|
+
multiplier: z.any().optional(),
|
|
596
|
+
codes: z.any().optional(),
|
|
597
|
+
enableHeader: z.any().optional(),
|
|
598
|
+
retryConnectTimeout: z.any().optional(),
|
|
599
|
+
retryConnectReset: z.any().optional(),
|
|
600
|
+
});
|
|
601
|
+
export function collectorSplunkRetryRules6ToJSON(collectorSplunkRetryRules6) {
|
|
602
|
+
return JSON.stringify(CollectorSplunkRetryRules6$outboundSchema.parse(collectorSplunkRetryRules6));
|
|
603
|
+
}
|
|
604
|
+
export function collectorSplunkRetryRules6FromJSON(jsonString) {
|
|
605
|
+
return safeParse(jsonString, (x) => CollectorSplunkRetryRules6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules6' from JSON`);
|
|
606
|
+
}
|
|
607
|
+
/** @internal */
|
|
608
|
+
export const CollectorSplunkSplunk6$inboundSchema = z.object({
|
|
609
|
+
authentication: CollectorSplunkAuthentication6$inboundSchema.default("basic"),
|
|
610
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
611
|
+
username: z.string(),
|
|
612
|
+
password: z.string(),
|
|
613
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
614
|
+
tokenRespAttribute: z.string().default("token"),
|
|
615
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
616
|
+
type: CollectorSplunkType6$inboundSchema,
|
|
617
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
618
|
+
search: z.string(),
|
|
619
|
+
earliest: z.string().optional(),
|
|
620
|
+
latest: z.string().optional(),
|
|
621
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
622
|
+
outputMode: CollectorSplunkOutputMode6$inboundSchema.default("json"),
|
|
623
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam6$inboundSchema)).optional(),
|
|
624
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader6$inboundSchema)).optional(),
|
|
625
|
+
timeout: z.number().default(0),
|
|
626
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
627
|
+
disableTimeFilter: z.boolean().default(true),
|
|
628
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
629
|
+
handleEscapedChars: z.boolean().default(false),
|
|
630
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules6$inboundSchema).optional(),
|
|
631
|
+
credentialsSecret: z.string().optional(),
|
|
632
|
+
token: z.string().optional(),
|
|
633
|
+
tokenSecret: z.string().optional(),
|
|
634
|
+
});
|
|
635
|
+
/** @internal */
|
|
636
|
+
export const CollectorSplunkSplunk6$outboundSchema = z.object({
|
|
637
|
+
authentication: CollectorSplunkAuthentication6$outboundSchema.default("basic"),
|
|
638
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
639
|
+
username: z.string(),
|
|
640
|
+
password: z.string(),
|
|
641
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
642
|
+
tokenRespAttribute: z.string().default("token"),
|
|
643
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
644
|
+
type: CollectorSplunkType6$outboundSchema,
|
|
645
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
646
|
+
search: z.string(),
|
|
647
|
+
earliest: z.string().optional(),
|
|
648
|
+
latest: z.string().optional(),
|
|
649
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
650
|
+
outputMode: CollectorSplunkOutputMode6$outboundSchema.default("json"),
|
|
651
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam6$outboundSchema)).optional(),
|
|
652
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader6$outboundSchema)).optional(),
|
|
653
|
+
timeout: z.number().default(0),
|
|
654
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
655
|
+
disableTimeFilter: z.boolean().default(true),
|
|
656
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
657
|
+
handleEscapedChars: z.boolean().default(false),
|
|
658
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules6$outboundSchema)
|
|
659
|
+
.optional(),
|
|
660
|
+
credentialsSecret: z.string().optional(),
|
|
661
|
+
token: z.string().optional(),
|
|
662
|
+
tokenSecret: z.string().optional(),
|
|
663
|
+
});
|
|
664
|
+
export function collectorSplunkSplunk6ToJSON(collectorSplunkSplunk6) {
|
|
665
|
+
return JSON.stringify(CollectorSplunkSplunk6$outboundSchema.parse(collectorSplunkSplunk6));
|
|
666
|
+
}
|
|
667
|
+
export function collectorSplunkSplunk6FromJSON(jsonString) {
|
|
668
|
+
return safeParse(jsonString, (x) => CollectorSplunkSplunk6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk6' from JSON`);
|
|
669
|
+
}
|
|
670
|
+
/** @internal */
|
|
671
|
+
export const CollectorSplunkAuthentication5$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication5);
|
|
672
|
+
/** @internal */
|
|
673
|
+
export const CollectorSplunkAuthentication5$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication5);
|
|
674
|
+
/** @internal */
|
|
675
|
+
export const CollectorSplunkType5$inboundSchema = z.nativeEnum(CollectorSplunkType5);
|
|
676
|
+
/** @internal */
|
|
677
|
+
export const CollectorSplunkType5$outboundSchema = CollectorSplunkType5$inboundSchema;
|
|
678
|
+
/** @internal */
|
|
679
|
+
export const CollectorSplunkOutputMode5$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode5);
|
|
680
|
+
/** @internal */
|
|
681
|
+
export const CollectorSplunkOutputMode5$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode5);
|
|
682
|
+
/** @internal */
|
|
683
|
+
export const CollectorSplunkCollectRequestParam5$inboundSchema = z.object({
|
|
684
|
+
name: z.string(),
|
|
685
|
+
value: z.string(),
|
|
686
|
+
});
|
|
687
|
+
/** @internal */
|
|
688
|
+
export const CollectorSplunkCollectRequestParam5$outboundSchema = z.object({
|
|
689
|
+
name: z.string(),
|
|
690
|
+
value: z.string(),
|
|
691
|
+
});
|
|
692
|
+
export function collectorSplunkCollectRequestParam5ToJSON(collectorSplunkCollectRequestParam5) {
|
|
693
|
+
return JSON.stringify(CollectorSplunkCollectRequestParam5$outboundSchema.parse(collectorSplunkCollectRequestParam5));
|
|
694
|
+
}
|
|
695
|
+
export function collectorSplunkCollectRequestParam5FromJSON(jsonString) {
|
|
696
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam5' from JSON`);
|
|
697
|
+
}
|
|
698
|
+
/** @internal */
|
|
699
|
+
export const CollectorSplunkCollectRequestHeader5$inboundSchema = z.object({
|
|
700
|
+
name: z.string(),
|
|
701
|
+
value: z.string(),
|
|
702
|
+
});
|
|
703
|
+
/** @internal */
|
|
704
|
+
export const CollectorSplunkCollectRequestHeader5$outboundSchema = z.object({
|
|
705
|
+
name: z.string(),
|
|
706
|
+
value: z.string(),
|
|
707
|
+
});
|
|
708
|
+
export function collectorSplunkCollectRequestHeader5ToJSON(collectorSplunkCollectRequestHeader5) {
|
|
709
|
+
return JSON.stringify(CollectorSplunkCollectRequestHeader5$outboundSchema.parse(collectorSplunkCollectRequestHeader5));
|
|
710
|
+
}
|
|
711
|
+
export function collectorSplunkCollectRequestHeader5FromJSON(jsonString) {
|
|
712
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader5' from JSON`);
|
|
713
|
+
}
|
|
714
|
+
/** @internal */
|
|
715
|
+
export const CollectorSplunkRetryType5$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType5);
|
|
716
|
+
/** @internal */
|
|
717
|
+
export const CollectorSplunkRetryType5$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType5);
|
|
718
|
+
/** @internal */
|
|
719
|
+
export const CollectorSplunkRetryRules5$inboundSchema = z.object({
|
|
720
|
+
type: CollectorSplunkRetryType5$inboundSchema.default("backoff"),
|
|
721
|
+
interval: z.any().optional(),
|
|
722
|
+
limit: z.any().optional(),
|
|
723
|
+
multiplier: z.any().optional(),
|
|
724
|
+
codes: z.any().optional(),
|
|
725
|
+
enableHeader: z.any().optional(),
|
|
726
|
+
retryConnectTimeout: z.any().optional(),
|
|
727
|
+
retryConnectReset: z.any().optional(),
|
|
728
|
+
});
|
|
729
|
+
/** @internal */
|
|
730
|
+
export const CollectorSplunkRetryRules5$outboundSchema = z.object({
|
|
731
|
+
type: CollectorSplunkRetryType5$outboundSchema.default("backoff"),
|
|
732
|
+
interval: z.any().optional(),
|
|
733
|
+
limit: z.any().optional(),
|
|
734
|
+
multiplier: z.any().optional(),
|
|
735
|
+
codes: z.any().optional(),
|
|
736
|
+
enableHeader: z.any().optional(),
|
|
737
|
+
retryConnectTimeout: z.any().optional(),
|
|
738
|
+
retryConnectReset: z.any().optional(),
|
|
739
|
+
});
|
|
740
|
+
export function collectorSplunkRetryRules5ToJSON(collectorSplunkRetryRules5) {
|
|
741
|
+
return JSON.stringify(CollectorSplunkRetryRules5$outboundSchema.parse(collectorSplunkRetryRules5));
|
|
742
|
+
}
|
|
743
|
+
export function collectorSplunkRetryRules5FromJSON(jsonString) {
|
|
744
|
+
return safeParse(jsonString, (x) => CollectorSplunkRetryRules5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules5' from JSON`);
|
|
745
|
+
}
|
|
746
|
+
/** @internal */
|
|
747
|
+
export const CollectorSplunkSplunk5$inboundSchema = z.object({
|
|
748
|
+
authentication: CollectorSplunkAuthentication5$inboundSchema.default("basic"),
|
|
749
|
+
tokenSecret: z.string(),
|
|
750
|
+
type: CollectorSplunkType5$inboundSchema,
|
|
751
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
752
|
+
search: z.string(),
|
|
753
|
+
earliest: z.string().optional(),
|
|
754
|
+
latest: z.string().optional(),
|
|
755
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
756
|
+
outputMode: CollectorSplunkOutputMode5$inboundSchema.default("json"),
|
|
757
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam5$inboundSchema)).optional(),
|
|
758
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader5$inboundSchema)).optional(),
|
|
759
|
+
timeout: z.number().default(0),
|
|
760
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
761
|
+
disableTimeFilter: z.boolean().default(true),
|
|
762
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
763
|
+
handleEscapedChars: z.boolean().default(false),
|
|
764
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules5$inboundSchema).optional(),
|
|
765
|
+
username: z.string().optional(),
|
|
766
|
+
password: z.string().optional(),
|
|
767
|
+
credentialsSecret: z.string().optional(),
|
|
768
|
+
token: z.string().optional(),
|
|
769
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
770
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
771
|
+
tokenRespAttribute: z.string().default("token"),
|
|
772
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
773
|
+
});
|
|
774
|
+
/** @internal */
|
|
775
|
+
export const CollectorSplunkSplunk5$outboundSchema = z.object({
|
|
776
|
+
authentication: CollectorSplunkAuthentication5$outboundSchema.default("basic"),
|
|
777
|
+
tokenSecret: z.string(),
|
|
778
|
+
type: CollectorSplunkType5$outboundSchema,
|
|
779
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
780
|
+
search: z.string(),
|
|
781
|
+
earliest: z.string().optional(),
|
|
782
|
+
latest: z.string().optional(),
|
|
783
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
784
|
+
outputMode: CollectorSplunkOutputMode5$outboundSchema.default("json"),
|
|
785
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam5$outboundSchema)).optional(),
|
|
786
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader5$outboundSchema)).optional(),
|
|
787
|
+
timeout: z.number().default(0),
|
|
788
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
789
|
+
disableTimeFilter: z.boolean().default(true),
|
|
790
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
791
|
+
handleEscapedChars: z.boolean().default(false),
|
|
792
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules5$outboundSchema)
|
|
793
|
+
.optional(),
|
|
794
|
+
username: z.string().optional(),
|
|
795
|
+
password: z.string().optional(),
|
|
796
|
+
credentialsSecret: z.string().optional(),
|
|
797
|
+
token: z.string().optional(),
|
|
798
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
799
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
800
|
+
tokenRespAttribute: z.string().default("token"),
|
|
801
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
802
|
+
});
|
|
803
|
+
export function collectorSplunkSplunk5ToJSON(collectorSplunkSplunk5) {
|
|
804
|
+
return JSON.stringify(CollectorSplunkSplunk5$outboundSchema.parse(collectorSplunkSplunk5));
|
|
805
|
+
}
|
|
806
|
+
export function collectorSplunkSplunk5FromJSON(jsonString) {
|
|
807
|
+
return safeParse(jsonString, (x) => CollectorSplunkSplunk5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk5' from JSON`);
|
|
808
|
+
}
|
|
809
|
+
/** @internal */
|
|
810
|
+
export const CollectorSplunkAuthentication4$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication4);
|
|
811
|
+
/** @internal */
|
|
812
|
+
export const CollectorSplunkAuthentication4$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication4);
|
|
813
|
+
/** @internal */
|
|
814
|
+
export const CollectorSplunkType4$inboundSchema = z.nativeEnum(CollectorSplunkType4);
|
|
815
|
+
/** @internal */
|
|
816
|
+
export const CollectorSplunkType4$outboundSchema = CollectorSplunkType4$inboundSchema;
|
|
817
|
+
/** @internal */
|
|
818
|
+
export const CollectorSplunkOutputMode4$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode4);
|
|
819
|
+
/** @internal */
|
|
820
|
+
export const CollectorSplunkOutputMode4$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode4);
|
|
821
|
+
/** @internal */
|
|
822
|
+
export const CollectorSplunkCollectRequestParam4$inboundSchema = z.object({
|
|
823
|
+
name: z.string(),
|
|
824
|
+
value: z.string(),
|
|
825
|
+
});
|
|
826
|
+
/** @internal */
|
|
827
|
+
export const CollectorSplunkCollectRequestParam4$outboundSchema = z.object({
|
|
828
|
+
name: z.string(),
|
|
829
|
+
value: z.string(),
|
|
830
|
+
});
|
|
831
|
+
export function collectorSplunkCollectRequestParam4ToJSON(collectorSplunkCollectRequestParam4) {
|
|
832
|
+
return JSON.stringify(CollectorSplunkCollectRequestParam4$outboundSchema.parse(collectorSplunkCollectRequestParam4));
|
|
833
|
+
}
|
|
834
|
+
export function collectorSplunkCollectRequestParam4FromJSON(jsonString) {
|
|
835
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam4' from JSON`);
|
|
836
|
+
}
|
|
837
|
+
/** @internal */
|
|
838
|
+
export const CollectorSplunkCollectRequestHeader4$inboundSchema = z.object({
|
|
839
|
+
name: z.string(),
|
|
840
|
+
value: z.string(),
|
|
841
|
+
});
|
|
842
|
+
/** @internal */
|
|
843
|
+
export const CollectorSplunkCollectRequestHeader4$outboundSchema = z.object({
|
|
844
|
+
name: z.string(),
|
|
845
|
+
value: z.string(),
|
|
846
|
+
});
|
|
847
|
+
export function collectorSplunkCollectRequestHeader4ToJSON(collectorSplunkCollectRequestHeader4) {
|
|
848
|
+
return JSON.stringify(CollectorSplunkCollectRequestHeader4$outboundSchema.parse(collectorSplunkCollectRequestHeader4));
|
|
849
|
+
}
|
|
850
|
+
export function collectorSplunkCollectRequestHeader4FromJSON(jsonString) {
|
|
851
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader4' from JSON`);
|
|
852
|
+
}
|
|
853
|
+
/** @internal */
|
|
854
|
+
export const CollectorSplunkRetryType4$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType4);
|
|
855
|
+
/** @internal */
|
|
856
|
+
export const CollectorSplunkRetryType4$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType4);
|
|
857
|
+
/** @internal */
|
|
858
|
+
export const CollectorSplunkRetryRules4$inboundSchema = z.object({
|
|
859
|
+
type: CollectorSplunkRetryType4$inboundSchema.default("backoff"),
|
|
860
|
+
interval: z.any().optional(),
|
|
861
|
+
limit: z.any().optional(),
|
|
862
|
+
multiplier: z.any().optional(),
|
|
863
|
+
codes: z.any().optional(),
|
|
864
|
+
enableHeader: z.any().optional(),
|
|
865
|
+
retryConnectTimeout: z.any().optional(),
|
|
866
|
+
retryConnectReset: z.any().optional(),
|
|
867
|
+
});
|
|
868
|
+
/** @internal */
|
|
869
|
+
export const CollectorSplunkRetryRules4$outboundSchema = z.object({
|
|
870
|
+
type: CollectorSplunkRetryType4$outboundSchema.default("backoff"),
|
|
871
|
+
interval: z.any().optional(),
|
|
872
|
+
limit: z.any().optional(),
|
|
873
|
+
multiplier: z.any().optional(),
|
|
874
|
+
codes: z.any().optional(),
|
|
875
|
+
enableHeader: z.any().optional(),
|
|
876
|
+
retryConnectTimeout: z.any().optional(),
|
|
877
|
+
retryConnectReset: z.any().optional(),
|
|
878
|
+
});
|
|
879
|
+
export function collectorSplunkRetryRules4ToJSON(collectorSplunkRetryRules4) {
|
|
880
|
+
return JSON.stringify(CollectorSplunkRetryRules4$outboundSchema.parse(collectorSplunkRetryRules4));
|
|
881
|
+
}
|
|
882
|
+
export function collectorSplunkRetryRules4FromJSON(jsonString) {
|
|
883
|
+
return safeParse(jsonString, (x) => CollectorSplunkRetryRules4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules4' from JSON`);
|
|
884
|
+
}
|
|
885
|
+
/** @internal */
|
|
886
|
+
export const CollectorSplunkSplunk4$inboundSchema = z.object({
|
|
887
|
+
authentication: CollectorSplunkAuthentication4$inboundSchema.default("basic"),
|
|
888
|
+
token: z.string(),
|
|
889
|
+
type: CollectorSplunkType4$inboundSchema,
|
|
890
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
891
|
+
search: z.string(),
|
|
892
|
+
earliest: z.string().optional(),
|
|
893
|
+
latest: z.string().optional(),
|
|
894
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
895
|
+
outputMode: CollectorSplunkOutputMode4$inboundSchema.default("json"),
|
|
896
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam4$inboundSchema)).optional(),
|
|
897
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader4$inboundSchema)).optional(),
|
|
898
|
+
timeout: z.number().default(0),
|
|
899
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
900
|
+
disableTimeFilter: z.boolean().default(true),
|
|
901
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
902
|
+
handleEscapedChars: z.boolean().default(false),
|
|
903
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules4$inboundSchema).optional(),
|
|
904
|
+
username: z.string().optional(),
|
|
905
|
+
password: z.string().optional(),
|
|
906
|
+
credentialsSecret: z.string().optional(),
|
|
907
|
+
tokenSecret: z.string().optional(),
|
|
908
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
909
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
910
|
+
tokenRespAttribute: z.string().default("token"),
|
|
911
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
912
|
+
});
|
|
913
|
+
/** @internal */
|
|
914
|
+
export const CollectorSplunkSplunk4$outboundSchema = z.object({
|
|
915
|
+
authentication: CollectorSplunkAuthentication4$outboundSchema.default("basic"),
|
|
916
|
+
token: z.string(),
|
|
917
|
+
type: CollectorSplunkType4$outboundSchema,
|
|
918
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
919
|
+
search: z.string(),
|
|
920
|
+
earliest: z.string().optional(),
|
|
921
|
+
latest: z.string().optional(),
|
|
922
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
923
|
+
outputMode: CollectorSplunkOutputMode4$outboundSchema.default("json"),
|
|
924
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam4$outboundSchema)).optional(),
|
|
925
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader4$outboundSchema)).optional(),
|
|
926
|
+
timeout: z.number().default(0),
|
|
927
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
928
|
+
disableTimeFilter: z.boolean().default(true),
|
|
929
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
930
|
+
handleEscapedChars: z.boolean().default(false),
|
|
931
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules4$outboundSchema)
|
|
932
|
+
.optional(),
|
|
933
|
+
username: z.string().optional(),
|
|
934
|
+
password: z.string().optional(),
|
|
935
|
+
credentialsSecret: z.string().optional(),
|
|
936
|
+
tokenSecret: z.string().optional(),
|
|
937
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
938
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
939
|
+
tokenRespAttribute: z.string().default("token"),
|
|
940
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
941
|
+
});
|
|
942
|
+
export function collectorSplunkSplunk4ToJSON(collectorSplunkSplunk4) {
|
|
943
|
+
return JSON.stringify(CollectorSplunkSplunk4$outboundSchema.parse(collectorSplunkSplunk4));
|
|
944
|
+
}
|
|
945
|
+
export function collectorSplunkSplunk4FromJSON(jsonString) {
|
|
946
|
+
return safeParse(jsonString, (x) => CollectorSplunkSplunk4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk4' from JSON`);
|
|
947
|
+
}
|
|
948
|
+
/** @internal */
|
|
949
|
+
export const CollectorSplunkAuthentication3$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication3);
|
|
950
|
+
/** @internal */
|
|
951
|
+
export const CollectorSplunkAuthentication3$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication3);
|
|
952
|
+
/** @internal */
|
|
953
|
+
export const CollectorSplunkType3$inboundSchema = z.nativeEnum(CollectorSplunkType3);
|
|
954
|
+
/** @internal */
|
|
955
|
+
export const CollectorSplunkType3$outboundSchema = CollectorSplunkType3$inboundSchema;
|
|
56
956
|
/** @internal */
|
|
57
|
-
export const
|
|
957
|
+
export const CollectorSplunkOutputMode3$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode3);
|
|
58
958
|
/** @internal */
|
|
59
|
-
export const
|
|
959
|
+
export const CollectorSplunkOutputMode3$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode3);
|
|
960
|
+
/** @internal */
|
|
961
|
+
export const CollectorSplunkCollectRequestParam3$inboundSchema = z.object({
|
|
962
|
+
name: z.string(),
|
|
963
|
+
value: z.string(),
|
|
964
|
+
});
|
|
965
|
+
/** @internal */
|
|
966
|
+
export const CollectorSplunkCollectRequestParam3$outboundSchema = z.object({
|
|
967
|
+
name: z.string(),
|
|
968
|
+
value: z.string(),
|
|
969
|
+
});
|
|
970
|
+
export function collectorSplunkCollectRequestParam3ToJSON(collectorSplunkCollectRequestParam3) {
|
|
971
|
+
return JSON.stringify(CollectorSplunkCollectRequestParam3$outboundSchema.parse(collectorSplunkCollectRequestParam3));
|
|
972
|
+
}
|
|
973
|
+
export function collectorSplunkCollectRequestParam3FromJSON(jsonString) {
|
|
974
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam3' from JSON`);
|
|
975
|
+
}
|
|
60
976
|
/** @internal */
|
|
61
|
-
export const
|
|
977
|
+
export const CollectorSplunkCollectRequestHeader3$inboundSchema = z.object({
|
|
62
978
|
name: z.string(),
|
|
63
979
|
value: z.string(),
|
|
64
980
|
});
|
|
65
981
|
/** @internal */
|
|
66
|
-
export const
|
|
982
|
+
export const CollectorSplunkCollectRequestHeader3$outboundSchema = z.object({
|
|
67
983
|
name: z.string(),
|
|
68
984
|
value: z.string(),
|
|
69
985
|
});
|
|
70
|
-
export function
|
|
71
|
-
return JSON.stringify(
|
|
986
|
+
export function collectorSplunkCollectRequestHeader3ToJSON(collectorSplunkCollectRequestHeader3) {
|
|
987
|
+
return JSON.stringify(CollectorSplunkCollectRequestHeader3$outboundSchema.parse(collectorSplunkCollectRequestHeader3));
|
|
988
|
+
}
|
|
989
|
+
export function collectorSplunkCollectRequestHeader3FromJSON(jsonString) {
|
|
990
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader3' from JSON`);
|
|
991
|
+
}
|
|
992
|
+
/** @internal */
|
|
993
|
+
export const CollectorSplunkRetryType3$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType3);
|
|
994
|
+
/** @internal */
|
|
995
|
+
export const CollectorSplunkRetryType3$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType3);
|
|
996
|
+
/** @internal */
|
|
997
|
+
export const CollectorSplunkRetryRules3$inboundSchema = z.object({
|
|
998
|
+
type: CollectorSplunkRetryType3$inboundSchema.default("backoff"),
|
|
999
|
+
interval: z.any().optional(),
|
|
1000
|
+
limit: z.any().optional(),
|
|
1001
|
+
multiplier: z.any().optional(),
|
|
1002
|
+
codes: z.any().optional(),
|
|
1003
|
+
enableHeader: z.any().optional(),
|
|
1004
|
+
retryConnectTimeout: z.any().optional(),
|
|
1005
|
+
retryConnectReset: z.any().optional(),
|
|
1006
|
+
});
|
|
1007
|
+
/** @internal */
|
|
1008
|
+
export const CollectorSplunkRetryRules3$outboundSchema = z.object({
|
|
1009
|
+
type: CollectorSplunkRetryType3$outboundSchema.default("backoff"),
|
|
1010
|
+
interval: z.any().optional(),
|
|
1011
|
+
limit: z.any().optional(),
|
|
1012
|
+
multiplier: z.any().optional(),
|
|
1013
|
+
codes: z.any().optional(),
|
|
1014
|
+
enableHeader: z.any().optional(),
|
|
1015
|
+
retryConnectTimeout: z.any().optional(),
|
|
1016
|
+
retryConnectReset: z.any().optional(),
|
|
1017
|
+
});
|
|
1018
|
+
export function collectorSplunkRetryRules3ToJSON(collectorSplunkRetryRules3) {
|
|
1019
|
+
return JSON.stringify(CollectorSplunkRetryRules3$outboundSchema.parse(collectorSplunkRetryRules3));
|
|
1020
|
+
}
|
|
1021
|
+
export function collectorSplunkRetryRules3FromJSON(jsonString) {
|
|
1022
|
+
return safeParse(jsonString, (x) => CollectorSplunkRetryRules3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules3' from JSON`);
|
|
1023
|
+
}
|
|
1024
|
+
/** @internal */
|
|
1025
|
+
export const CollectorSplunkSplunk3$inboundSchema = z.object({
|
|
1026
|
+
authentication: CollectorSplunkAuthentication3$inboundSchema.default("basic"),
|
|
1027
|
+
credentialsSecret: z.string(),
|
|
1028
|
+
type: CollectorSplunkType3$inboundSchema,
|
|
1029
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
1030
|
+
search: z.string(),
|
|
1031
|
+
earliest: z.string().optional(),
|
|
1032
|
+
latest: z.string().optional(),
|
|
1033
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
1034
|
+
outputMode: CollectorSplunkOutputMode3$inboundSchema.default("json"),
|
|
1035
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam3$inboundSchema)).optional(),
|
|
1036
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader3$inboundSchema)).optional(),
|
|
1037
|
+
timeout: z.number().default(0),
|
|
1038
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
1039
|
+
disableTimeFilter: z.boolean().default(true),
|
|
1040
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
1041
|
+
handleEscapedChars: z.boolean().default(false),
|
|
1042
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules3$inboundSchema).optional(),
|
|
1043
|
+
username: z.string().optional(),
|
|
1044
|
+
password: z.string().optional(),
|
|
1045
|
+
token: z.string().optional(),
|
|
1046
|
+
tokenSecret: z.string().optional(),
|
|
1047
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
1048
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
1049
|
+
tokenRespAttribute: z.string().default("token"),
|
|
1050
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
1051
|
+
});
|
|
1052
|
+
/** @internal */
|
|
1053
|
+
export const CollectorSplunkSplunk3$outboundSchema = z.object({
|
|
1054
|
+
authentication: CollectorSplunkAuthentication3$outboundSchema.default("basic"),
|
|
1055
|
+
credentialsSecret: z.string(),
|
|
1056
|
+
type: CollectorSplunkType3$outboundSchema,
|
|
1057
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
1058
|
+
search: z.string(),
|
|
1059
|
+
earliest: z.string().optional(),
|
|
1060
|
+
latest: z.string().optional(),
|
|
1061
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
1062
|
+
outputMode: CollectorSplunkOutputMode3$outboundSchema.default("json"),
|
|
1063
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam3$outboundSchema)).optional(),
|
|
1064
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader3$outboundSchema)).optional(),
|
|
1065
|
+
timeout: z.number().default(0),
|
|
1066
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
1067
|
+
disableTimeFilter: z.boolean().default(true),
|
|
1068
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
1069
|
+
handleEscapedChars: z.boolean().default(false),
|
|
1070
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules3$outboundSchema)
|
|
1071
|
+
.optional(),
|
|
1072
|
+
username: z.string().optional(),
|
|
1073
|
+
password: z.string().optional(),
|
|
1074
|
+
token: z.string().optional(),
|
|
1075
|
+
tokenSecret: z.string().optional(),
|
|
1076
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
1077
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
1078
|
+
tokenRespAttribute: z.string().default("token"),
|
|
1079
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
1080
|
+
});
|
|
1081
|
+
export function collectorSplunkSplunk3ToJSON(collectorSplunkSplunk3) {
|
|
1082
|
+
return JSON.stringify(CollectorSplunkSplunk3$outboundSchema.parse(collectorSplunkSplunk3));
|
|
72
1083
|
}
|
|
73
|
-
export function
|
|
74
|
-
return safeParse(jsonString, (x) =>
|
|
1084
|
+
export function collectorSplunkSplunk3FromJSON(jsonString) {
|
|
1085
|
+
return safeParse(jsonString, (x) => CollectorSplunkSplunk3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk3' from JSON`);
|
|
75
1086
|
}
|
|
76
1087
|
/** @internal */
|
|
77
|
-
export const
|
|
1088
|
+
export const CollectorSplunkAuthentication2$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication2);
|
|
1089
|
+
/** @internal */
|
|
1090
|
+
export const CollectorSplunkAuthentication2$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication2);
|
|
1091
|
+
/** @internal */
|
|
1092
|
+
export const CollectorSplunkType2$inboundSchema = z.nativeEnum(CollectorSplunkType2);
|
|
1093
|
+
/** @internal */
|
|
1094
|
+
export const CollectorSplunkType2$outboundSchema = CollectorSplunkType2$inboundSchema;
|
|
1095
|
+
/** @internal */
|
|
1096
|
+
export const CollectorSplunkOutputMode2$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode2);
|
|
1097
|
+
/** @internal */
|
|
1098
|
+
export const CollectorSplunkOutputMode2$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode2);
|
|
1099
|
+
/** @internal */
|
|
1100
|
+
export const CollectorSplunkCollectRequestParam2$inboundSchema = z.object({
|
|
78
1101
|
name: z.string(),
|
|
79
1102
|
value: z.string(),
|
|
80
1103
|
});
|
|
81
1104
|
/** @internal */
|
|
82
|
-
export const
|
|
1105
|
+
export const CollectorSplunkCollectRequestParam2$outboundSchema = z.object({
|
|
83
1106
|
name: z.string(),
|
|
84
1107
|
value: z.string(),
|
|
85
1108
|
});
|
|
86
|
-
export function
|
|
87
|
-
return JSON.stringify(
|
|
1109
|
+
export function collectorSplunkCollectRequestParam2ToJSON(collectorSplunkCollectRequestParam2) {
|
|
1110
|
+
return JSON.stringify(CollectorSplunkCollectRequestParam2$outboundSchema.parse(collectorSplunkCollectRequestParam2));
|
|
88
1111
|
}
|
|
89
|
-
export function
|
|
90
|
-
return safeParse(jsonString, (x) =>
|
|
1112
|
+
export function collectorSplunkCollectRequestParam2FromJSON(jsonString) {
|
|
1113
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam2' from JSON`);
|
|
91
1114
|
}
|
|
92
1115
|
/** @internal */
|
|
93
|
-
export const
|
|
1116
|
+
export const CollectorSplunkCollectRequestHeader2$inboundSchema = z.object({
|
|
1117
|
+
name: z.string(),
|
|
1118
|
+
value: z.string(),
|
|
1119
|
+
});
|
|
94
1120
|
/** @internal */
|
|
95
|
-
export const
|
|
1121
|
+
export const CollectorSplunkCollectRequestHeader2$outboundSchema = z.object({
|
|
1122
|
+
name: z.string(),
|
|
1123
|
+
value: z.string(),
|
|
1124
|
+
});
|
|
1125
|
+
export function collectorSplunkCollectRequestHeader2ToJSON(collectorSplunkCollectRequestHeader2) {
|
|
1126
|
+
return JSON.stringify(CollectorSplunkCollectRequestHeader2$outboundSchema.parse(collectorSplunkCollectRequestHeader2));
|
|
1127
|
+
}
|
|
1128
|
+
export function collectorSplunkCollectRequestHeader2FromJSON(jsonString) {
|
|
1129
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader2' from JSON`);
|
|
1130
|
+
}
|
|
96
1131
|
/** @internal */
|
|
97
|
-
export const
|
|
1132
|
+
export const CollectorSplunkRetryType2$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType2);
|
|
98
1133
|
/** @internal */
|
|
99
|
-
export const
|
|
1134
|
+
export const CollectorSplunkRetryType2$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType2);
|
|
100
1135
|
/** @internal */
|
|
101
|
-
export const
|
|
102
|
-
type:
|
|
1136
|
+
export const CollectorSplunkRetryRules2$inboundSchema = z.object({
|
|
1137
|
+
type: CollectorSplunkRetryType2$inboundSchema.default("backoff"),
|
|
103
1138
|
interval: z.any().optional(),
|
|
104
1139
|
limit: z.any().optional(),
|
|
105
1140
|
multiplier: z.any().optional(),
|
|
@@ -109,8 +1144,8 @@ export const CollectorSplunkRetryRules$inboundSchema = z.object({
|
|
|
109
1144
|
retryConnectReset: z.any().optional(),
|
|
110
1145
|
});
|
|
111
1146
|
/** @internal */
|
|
112
|
-
export const
|
|
113
|
-
type:
|
|
1147
|
+
export const CollectorSplunkRetryRules2$outboundSchema = z.object({
|
|
1148
|
+
type: CollectorSplunkRetryType2$outboundSchema.default("backoff"),
|
|
114
1149
|
interval: z.any().optional(),
|
|
115
1150
|
limit: z.any().optional(),
|
|
116
1151
|
multiplier: z.any().optional(),
|
|
@@ -119,51 +1154,234 @@ export const CollectorSplunkRetryRules$outboundSchema = z.object({
|
|
|
119
1154
|
retryConnectTimeout: z.any().optional(),
|
|
120
1155
|
retryConnectReset: z.any().optional(),
|
|
121
1156
|
});
|
|
122
|
-
export function
|
|
123
|
-
return JSON.stringify(
|
|
1157
|
+
export function collectorSplunkRetryRules2ToJSON(collectorSplunkRetryRules2) {
|
|
1158
|
+
return JSON.stringify(CollectorSplunkRetryRules2$outboundSchema.parse(collectorSplunkRetryRules2));
|
|
124
1159
|
}
|
|
125
|
-
export function
|
|
126
|
-
return safeParse(jsonString, (x) =>
|
|
1160
|
+
export function collectorSplunkRetryRules2FromJSON(jsonString) {
|
|
1161
|
+
return safeParse(jsonString, (x) => CollectorSplunkRetryRules2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules2' from JSON`);
|
|
127
1162
|
}
|
|
128
1163
|
/** @internal */
|
|
129
|
-
export const
|
|
130
|
-
|
|
1164
|
+
export const CollectorSplunkSplunk2$inboundSchema = z.object({
|
|
1165
|
+
authentication: CollectorSplunkAuthentication2$inboundSchema.default("basic"),
|
|
1166
|
+
username: z.string(),
|
|
1167
|
+
password: z.string(),
|
|
1168
|
+
type: CollectorSplunkType2$inboundSchema,
|
|
1169
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
1170
|
+
search: z.string(),
|
|
1171
|
+
earliest: z.string().optional(),
|
|
1172
|
+
latest: z.string().optional(),
|
|
1173
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
1174
|
+
outputMode: CollectorSplunkOutputMode2$inboundSchema.default("json"),
|
|
1175
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam2$inboundSchema)).optional(),
|
|
1176
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader2$inboundSchema)).optional(),
|
|
1177
|
+
timeout: z.number().default(0),
|
|
1178
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
1179
|
+
disableTimeFilter: z.boolean().default(true),
|
|
1180
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
1181
|
+
handleEscapedChars: z.boolean().default(false),
|
|
1182
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules2$inboundSchema).optional(),
|
|
1183
|
+
credentialsSecret: z.string().optional(),
|
|
1184
|
+
token: z.string().optional(),
|
|
1185
|
+
tokenSecret: z.string().optional(),
|
|
1186
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
1187
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
1188
|
+
tokenRespAttribute: z.string().default("token"),
|
|
1189
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
1190
|
+
});
|
|
1191
|
+
/** @internal */
|
|
1192
|
+
export const CollectorSplunkSplunk2$outboundSchema = z.object({
|
|
1193
|
+
authentication: CollectorSplunkAuthentication2$outboundSchema.default("basic"),
|
|
1194
|
+
username: z.string(),
|
|
1195
|
+
password: z.string(),
|
|
1196
|
+
type: CollectorSplunkType2$outboundSchema,
|
|
131
1197
|
searchHead: z.string().default("https://localhost:8089"),
|
|
132
1198
|
search: z.string(),
|
|
133
1199
|
earliest: z.string().optional(),
|
|
134
1200
|
latest: z.string().optional(),
|
|
135
1201
|
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
136
|
-
outputMode:
|
|
137
|
-
collectRequestParams: z.array(z.lazy(() =>
|
|
1202
|
+
outputMode: CollectorSplunkOutputMode2$outboundSchema.default("json"),
|
|
1203
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam2$outboundSchema)).optional(),
|
|
1204
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader2$outboundSchema)).optional(),
|
|
1205
|
+
timeout: z.number().default(0),
|
|
1206
|
+
useRoundRobinDns: z.boolean().default(false),
|
|
1207
|
+
disableTimeFilter: z.boolean().default(true),
|
|
1208
|
+
rejectUnauthorized: z.boolean().default(false),
|
|
1209
|
+
handleEscapedChars: z.boolean().default(false),
|
|
1210
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules2$outboundSchema)
|
|
138
1211
|
.optional(),
|
|
139
|
-
|
|
140
|
-
|
|
1212
|
+
credentialsSecret: z.string().optional(),
|
|
1213
|
+
token: z.string().optional(),
|
|
1214
|
+
tokenSecret: z.string().optional(),
|
|
1215
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
1216
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
1217
|
+
tokenRespAttribute: z.string().default("token"),
|
|
1218
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
1219
|
+
});
|
|
1220
|
+
export function collectorSplunkSplunk2ToJSON(collectorSplunkSplunk2) {
|
|
1221
|
+
return JSON.stringify(CollectorSplunkSplunk2$outboundSchema.parse(collectorSplunkSplunk2));
|
|
1222
|
+
}
|
|
1223
|
+
export function collectorSplunkSplunk2FromJSON(jsonString) {
|
|
1224
|
+
return safeParse(jsonString, (x) => CollectorSplunkSplunk2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk2' from JSON`);
|
|
1225
|
+
}
|
|
1226
|
+
/** @internal */
|
|
1227
|
+
export const CollectorSplunkAuthentication1$inboundSchema = openEnums.inboundSchema(CollectorSplunkAuthentication1);
|
|
1228
|
+
/** @internal */
|
|
1229
|
+
export const CollectorSplunkAuthentication1$outboundSchema = openEnums.outboundSchema(CollectorSplunkAuthentication1);
|
|
1230
|
+
/** @internal */
|
|
1231
|
+
export const CollectorSplunkType1$inboundSchema = z.nativeEnum(CollectorSplunkType1);
|
|
1232
|
+
/** @internal */
|
|
1233
|
+
export const CollectorSplunkType1$outboundSchema = CollectorSplunkType1$inboundSchema;
|
|
1234
|
+
/** @internal */
|
|
1235
|
+
export const CollectorSplunkOutputMode1$inboundSchema = openEnums.inboundSchema(CollectorSplunkOutputMode1);
|
|
1236
|
+
/** @internal */
|
|
1237
|
+
export const CollectorSplunkOutputMode1$outboundSchema = openEnums.outboundSchema(CollectorSplunkOutputMode1);
|
|
1238
|
+
/** @internal */
|
|
1239
|
+
export const CollectorSplunkCollectRequestParam1$inboundSchema = z.object({
|
|
1240
|
+
name: z.string(),
|
|
1241
|
+
value: z.string(),
|
|
1242
|
+
});
|
|
1243
|
+
/** @internal */
|
|
1244
|
+
export const CollectorSplunkCollectRequestParam1$outboundSchema = z.object({
|
|
1245
|
+
name: z.string(),
|
|
1246
|
+
value: z.string(),
|
|
1247
|
+
});
|
|
1248
|
+
export function collectorSplunkCollectRequestParam1ToJSON(collectorSplunkCollectRequestParam1) {
|
|
1249
|
+
return JSON.stringify(CollectorSplunkCollectRequestParam1$outboundSchema.parse(collectorSplunkCollectRequestParam1));
|
|
1250
|
+
}
|
|
1251
|
+
export function collectorSplunkCollectRequestParam1FromJSON(jsonString) {
|
|
1252
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestParam1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestParam1' from JSON`);
|
|
1253
|
+
}
|
|
1254
|
+
/** @internal */
|
|
1255
|
+
export const CollectorSplunkCollectRequestHeader1$inboundSchema = z.object({
|
|
1256
|
+
name: z.string(),
|
|
1257
|
+
value: z.string(),
|
|
1258
|
+
});
|
|
1259
|
+
/** @internal */
|
|
1260
|
+
export const CollectorSplunkCollectRequestHeader1$outboundSchema = z.object({
|
|
1261
|
+
name: z.string(),
|
|
1262
|
+
value: z.string(),
|
|
1263
|
+
});
|
|
1264
|
+
export function collectorSplunkCollectRequestHeader1ToJSON(collectorSplunkCollectRequestHeader1) {
|
|
1265
|
+
return JSON.stringify(CollectorSplunkCollectRequestHeader1$outboundSchema.parse(collectorSplunkCollectRequestHeader1));
|
|
1266
|
+
}
|
|
1267
|
+
export function collectorSplunkCollectRequestHeader1FromJSON(jsonString) {
|
|
1268
|
+
return safeParse(jsonString, (x) => CollectorSplunkCollectRequestHeader1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkCollectRequestHeader1' from JSON`);
|
|
1269
|
+
}
|
|
1270
|
+
/** @internal */
|
|
1271
|
+
export const CollectorSplunkRetryType1$inboundSchema = openEnums.inboundSchema(CollectorSplunkRetryType1);
|
|
1272
|
+
/** @internal */
|
|
1273
|
+
export const CollectorSplunkRetryType1$outboundSchema = openEnums.outboundSchema(CollectorSplunkRetryType1);
|
|
1274
|
+
/** @internal */
|
|
1275
|
+
export const CollectorSplunkRetryRules1$inboundSchema = z.object({
|
|
1276
|
+
type: CollectorSplunkRetryType1$inboundSchema.default("backoff"),
|
|
1277
|
+
interval: z.any().optional(),
|
|
1278
|
+
limit: z.any().optional(),
|
|
1279
|
+
multiplier: z.any().optional(),
|
|
1280
|
+
codes: z.any().optional(),
|
|
1281
|
+
enableHeader: z.any().optional(),
|
|
1282
|
+
retryConnectTimeout: z.any().optional(),
|
|
1283
|
+
retryConnectReset: z.any().optional(),
|
|
1284
|
+
});
|
|
1285
|
+
/** @internal */
|
|
1286
|
+
export const CollectorSplunkRetryRules1$outboundSchema = z.object({
|
|
1287
|
+
type: CollectorSplunkRetryType1$outboundSchema.default("backoff"),
|
|
1288
|
+
interval: z.any().optional(),
|
|
1289
|
+
limit: z.any().optional(),
|
|
1290
|
+
multiplier: z.any().optional(),
|
|
1291
|
+
codes: z.any().optional(),
|
|
1292
|
+
enableHeader: z.any().optional(),
|
|
1293
|
+
retryConnectTimeout: z.any().optional(),
|
|
1294
|
+
retryConnectReset: z.any().optional(),
|
|
1295
|
+
});
|
|
1296
|
+
export function collectorSplunkRetryRules1ToJSON(collectorSplunkRetryRules1) {
|
|
1297
|
+
return JSON.stringify(CollectorSplunkRetryRules1$outboundSchema.parse(collectorSplunkRetryRules1));
|
|
1298
|
+
}
|
|
1299
|
+
export function collectorSplunkRetryRules1FromJSON(jsonString) {
|
|
1300
|
+
return safeParse(jsonString, (x) => CollectorSplunkRetryRules1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkRetryRules1' from JSON`);
|
|
1301
|
+
}
|
|
1302
|
+
/** @internal */
|
|
1303
|
+
export const CollectorSplunkSplunk1$inboundSchema = z.object({
|
|
1304
|
+
authentication: CollectorSplunkAuthentication1$inboundSchema.default("basic"),
|
|
1305
|
+
type: CollectorSplunkType1$inboundSchema,
|
|
1306
|
+
searchHead: z.string().default("https://localhost:8089"),
|
|
1307
|
+
search: z.string(),
|
|
1308
|
+
earliest: z.string().optional(),
|
|
1309
|
+
latest: z.string().optional(),
|
|
1310
|
+
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
1311
|
+
outputMode: CollectorSplunkOutputMode1$inboundSchema.default("json"),
|
|
1312
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam1$inboundSchema)).optional(),
|
|
1313
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader1$inboundSchema)).optional(),
|
|
141
1314
|
timeout: z.number().default(0),
|
|
142
1315
|
useRoundRobinDns: z.boolean().default(false),
|
|
143
1316
|
disableTimeFilter: z.boolean().default(true),
|
|
144
1317
|
rejectUnauthorized: z.boolean().default(false),
|
|
145
1318
|
handleEscapedChars: z.boolean().default(false),
|
|
146
|
-
retryRules: z.lazy(() =>
|
|
1319
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules1$inboundSchema).optional(),
|
|
1320
|
+
username: z.string().optional(),
|
|
1321
|
+
password: z.string().optional(),
|
|
1322
|
+
credentialsSecret: z.string().optional(),
|
|
1323
|
+
token: z.string().optional(),
|
|
1324
|
+
tokenSecret: z.string().optional(),
|
|
1325
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
1326
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
1327
|
+
tokenRespAttribute: z.string().default("token"),
|
|
1328
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
147
1329
|
});
|
|
148
1330
|
/** @internal */
|
|
149
|
-
export const
|
|
150
|
-
|
|
1331
|
+
export const CollectorSplunkSplunk1$outboundSchema = z.object({
|
|
1332
|
+
authentication: CollectorSplunkAuthentication1$outboundSchema.default("basic"),
|
|
1333
|
+
type: CollectorSplunkType1$outboundSchema,
|
|
151
1334
|
searchHead: z.string().default("https://localhost:8089"),
|
|
152
1335
|
search: z.string(),
|
|
153
1336
|
earliest: z.string().optional(),
|
|
154
1337
|
latest: z.string().optional(),
|
|
155
1338
|
endpoint: z.string().default("/services/search/v2/jobs/export"),
|
|
156
|
-
outputMode:
|
|
157
|
-
collectRequestParams: z.array(z.lazy(() =>
|
|
158
|
-
collectRequestHeaders: z.array(z.lazy(() =>
|
|
159
|
-
authentication: CollectorSplunkAuthentication$outboundSchema.default("basic"),
|
|
1339
|
+
outputMode: CollectorSplunkOutputMode1$outboundSchema.default("json"),
|
|
1340
|
+
collectRequestParams: z.array(z.lazy(() => CollectorSplunkCollectRequestParam1$outboundSchema)).optional(),
|
|
1341
|
+
collectRequestHeaders: z.array(z.lazy(() => CollectorSplunkCollectRequestHeader1$outboundSchema)).optional(),
|
|
160
1342
|
timeout: z.number().default(0),
|
|
161
1343
|
useRoundRobinDns: z.boolean().default(false),
|
|
162
1344
|
disableTimeFilter: z.boolean().default(true),
|
|
163
1345
|
rejectUnauthorized: z.boolean().default(false),
|
|
164
1346
|
handleEscapedChars: z.boolean().default(false),
|
|
165
|
-
retryRules: z.lazy(() =>
|
|
1347
|
+
retryRules: z.lazy(() => CollectorSplunkRetryRules1$outboundSchema)
|
|
1348
|
+
.optional(),
|
|
1349
|
+
username: z.string().optional(),
|
|
1350
|
+
password: z.string().optional(),
|
|
1351
|
+
credentialsSecret: z.string().optional(),
|
|
1352
|
+
token: z.string().optional(),
|
|
1353
|
+
tokenSecret: z.string().optional(),
|
|
1354
|
+
loginUrl: z.string().default("`https://localhost:9000/api/v1/auth/login`"),
|
|
1355
|
+
loginBody: z.string().default("`{ \"username\": \"${username}\", \"password\": \"${password}\" }`"),
|
|
1356
|
+
tokenRespAttribute: z.string().default("token"),
|
|
1357
|
+
authHeaderExpr: z.string().default("`Bearer ${token}`"),
|
|
166
1358
|
});
|
|
1359
|
+
export function collectorSplunkSplunk1ToJSON(collectorSplunkSplunk1) {
|
|
1360
|
+
return JSON.stringify(CollectorSplunkSplunk1$outboundSchema.parse(collectorSplunkSplunk1));
|
|
1361
|
+
}
|
|
1362
|
+
export function collectorSplunkSplunk1FromJSON(jsonString) {
|
|
1363
|
+
return safeParse(jsonString, (x) => CollectorSplunkSplunk1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectorSplunkSplunk1' from JSON`);
|
|
1364
|
+
}
|
|
1365
|
+
/** @internal */
|
|
1366
|
+
export const CollectorSplunk$inboundSchema = z.union([
|
|
1367
|
+
z.lazy(() => CollectorSplunkSplunk2$inboundSchema),
|
|
1368
|
+
z.lazy(() => CollectorSplunkSplunk6$inboundSchema),
|
|
1369
|
+
z.lazy(() => CollectorSplunkSplunk3$inboundSchema),
|
|
1370
|
+
z.lazy(() => CollectorSplunkSplunk4$inboundSchema),
|
|
1371
|
+
z.lazy(() => CollectorSplunkSplunk5$inboundSchema),
|
|
1372
|
+
z.lazy(() => CollectorSplunkSplunk7$inboundSchema),
|
|
1373
|
+
z.lazy(() => CollectorSplunkSplunk1$inboundSchema),
|
|
1374
|
+
]);
|
|
1375
|
+
/** @internal */
|
|
1376
|
+
export const CollectorSplunk$outboundSchema = z.union([
|
|
1377
|
+
z.lazy(() => CollectorSplunkSplunk2$outboundSchema),
|
|
1378
|
+
z.lazy(() => CollectorSplunkSplunk6$outboundSchema),
|
|
1379
|
+
z.lazy(() => CollectorSplunkSplunk3$outboundSchema),
|
|
1380
|
+
z.lazy(() => CollectorSplunkSplunk4$outboundSchema),
|
|
1381
|
+
z.lazy(() => CollectorSplunkSplunk5$outboundSchema),
|
|
1382
|
+
z.lazy(() => CollectorSplunkSplunk7$outboundSchema),
|
|
1383
|
+
z.lazy(() => CollectorSplunkSplunk1$outboundSchema),
|
|
1384
|
+
]);
|
|
167
1385
|
export function collectorSplunkToJSON(collectorSplunk) {
|
|
168
1386
|
return JSON.stringify(CollectorSplunk$outboundSchema.parse(collectorSplunk));
|
|
169
1387
|
}
|