cribl-control-plane 0.5.0-beta.4 → 0.5.0-beta.6

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 (162) 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/collectorazureblob.d.ts +643 -19
  4. package/dist/commonjs/models/collectorazureblob.d.ts.map +1 -1
  5. package/dist/commonjs/models/collectorazureblob.js +437 -20
  6. package/dist/commonjs/models/collectorazureblob.js.map +1 -1
  7. package/dist/commonjs/models/collectorconf.d.ts +26 -2
  8. package/dist/commonjs/models/collectorconf.d.ts.map +1 -1
  9. package/dist/commonjs/models/collectorconf.js +12 -12
  10. package/dist/commonjs/models/collectorconf.js.map +1 -1
  11. package/dist/commonjs/models/collectorgooglecloudstorage.d.ts +316 -19
  12. package/dist/commonjs/models/collectorgooglecloudstorage.d.ts.map +1 -1
  13. package/dist/commonjs/models/collectorgooglecloudstorage.js +222 -20
  14. package/dist/commonjs/models/collectorgooglecloudstorage.js.map +1 -1
  15. package/dist/commonjs/models/collectorhealthcheck.d.ts +3635 -72
  16. package/dist/commonjs/models/collectorhealthcheck.d.ts.map +1 -1
  17. package/dist/commonjs/models/collectorhealthcheck.js +2828 -126
  18. package/dist/commonjs/models/collectorhealthcheck.js.map +1 -1
  19. package/dist/commonjs/models/collectorrest.d.ts +6369 -147
  20. package/dist/commonjs/models/collectorrest.d.ts.map +1 -1
  21. package/dist/commonjs/models/collectorrest.js +5232 -96
  22. package/dist/commonjs/models/collectorrest.js.map +1 -1
  23. package/dist/commonjs/models/collectors3.d.ts +1003 -34
  24. package/dist/commonjs/models/collectors3.d.ts.map +1 -1
  25. package/dist/commonjs/models/collectors3.js +653 -32
  26. package/dist/commonjs/models/collectors3.js.map +1 -1
  27. package/dist/commonjs/models/collectorsplunk.d.ts +1803 -82
  28. package/dist/commonjs/models/collectorsplunk.d.ts.map +1 -1
  29. package/dist/commonjs/models/collectorsplunk.js +1320 -50
  30. package/dist/commonjs/models/collectorsplunk.js.map +1 -1
  31. package/dist/commonjs/models/functionconfschemahandlebars.d.ts +46 -0
  32. package/dist/commonjs/models/functionconfschemahandlebars.d.ts.map +1 -0
  33. package/dist/commonjs/models/{functionconfschemahandlebar.js → functionconfschemahandlebars.js} +12 -11
  34. package/dist/commonjs/models/functionconfschemahandlebars.js.map +1 -0
  35. package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts +5 -0
  36. package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
  37. package/dist/commonjs/models/functionconfschemanotificationpolicies.js +2 -0
  38. package/dist/commonjs/models/functionconfschemanotificationpolicies.js.map +1 -1
  39. package/dist/commonjs/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
  40. package/dist/commonjs/models/functionhandlebars.d.ts.map +1 -0
  41. package/dist/commonjs/models/{functionhandlebar.js → functionhandlebars.js} +9 -9
  42. package/dist/commonjs/models/functionhandlebars.js.map +1 -0
  43. package/dist/commonjs/models/functionresponse.d.ts +2 -2
  44. package/dist/commonjs/models/functionresponse.d.ts.map +1 -1
  45. package/dist/commonjs/models/functionresponse.js +2 -2
  46. package/dist/commonjs/models/functionresponse.js.map +1 -1
  47. package/dist/commonjs/models/index.d.ts +3 -3
  48. package/dist/commonjs/models/index.d.ts.map +1 -1
  49. package/dist/commonjs/models/index.js +3 -3
  50. package/dist/commonjs/models/index.js.map +1 -1
  51. package/dist/commonjs/models/pipelinefunctionconf.d.ts +2 -2
  52. package/dist/commonjs/models/pipelinefunctionconf.d.ts.map +1 -1
  53. package/dist/commonjs/models/pipelinefunctionconf.js +2 -2
  54. package/dist/commonjs/models/pipelinefunctionconf.js.map +1 -1
  55. package/dist/commonjs/models/pipelinefunctionconfinput.d.ts +3 -3
  56. package/dist/commonjs/models/pipelinefunctionconfinput.d.ts.map +1 -1
  57. package/dist/commonjs/models/pipelinefunctionconfinput.js +2 -2
  58. package/dist/commonjs/models/pipelinefunctionconfinput.js.map +1 -1
  59. package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts +109 -0
  60. package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts.map +1 -0
  61. package/dist/commonjs/models/pipelinefunctionhandlebars.js +114 -0
  62. package/dist/commonjs/models/pipelinefunctionhandlebars.js.map +1 -0
  63. package/dist/esm/lib/config.d.ts +3 -3
  64. package/dist/esm/lib/config.js +3 -3
  65. package/dist/esm/models/collectorazureblob.d.ts +643 -19
  66. package/dist/esm/models/collectorazureblob.d.ts.map +1 -1
  67. package/dist/esm/models/collectorazureblob.js +412 -17
  68. package/dist/esm/models/collectorazureblob.js.map +1 -1
  69. package/dist/esm/models/collectorconf.d.ts +26 -2
  70. package/dist/esm/models/collectorconf.d.ts.map +1 -1
  71. package/dist/esm/models/collectorconf.js +12 -12
  72. package/dist/esm/models/collectorconf.js.map +1 -1
  73. package/dist/esm/models/collectorgooglecloudstorage.d.ts +316 -19
  74. package/dist/esm/models/collectorgooglecloudstorage.d.ts.map +1 -1
  75. package/dist/esm/models/collectorgooglecloudstorage.js +209 -17
  76. package/dist/esm/models/collectorgooglecloudstorage.js.map +1 -1
  77. package/dist/esm/models/collectorhealthcheck.d.ts +3635 -72
  78. package/dist/esm/models/collectorhealthcheck.d.ts.map +1 -1
  79. package/dist/esm/models/collectorhealthcheck.js +2681 -119
  80. package/dist/esm/models/collectorhealthcheck.js.map +1 -1
  81. package/dist/esm/models/collectorrest.d.ts +6369 -147
  82. package/dist/esm/models/collectorrest.d.ts.map +1 -1
  83. package/dist/esm/models/collectorrest.js +4941 -83
  84. package/dist/esm/models/collectorrest.js.map +1 -1
  85. package/dist/esm/models/collectors3.d.ts +1003 -34
  86. package/dist/esm/models/collectors3.d.ts.map +1 -1
  87. package/dist/esm/models/collectors3.js +631 -29
  88. package/dist/esm/models/collectors3.js.map +1 -1
  89. package/dist/esm/models/collectorsplunk.d.ts +1803 -82
  90. package/dist/esm/models/collectorsplunk.d.ts.map +1 -1
  91. package/dist/esm/models/collectorsplunk.js +1261 -43
  92. package/dist/esm/models/collectorsplunk.js.map +1 -1
  93. package/dist/esm/models/functionconfschemahandlebars.d.ts +46 -0
  94. package/dist/esm/models/functionconfschemahandlebars.d.ts.map +1 -0
  95. package/dist/esm/models/functionconfschemahandlebars.js +26 -0
  96. package/dist/esm/models/functionconfschemahandlebars.js.map +1 -0
  97. package/dist/esm/models/functionconfschemanotificationpolicies.d.ts +5 -0
  98. package/dist/esm/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
  99. package/dist/esm/models/functionconfschemanotificationpolicies.js +2 -0
  100. package/dist/esm/models/functionconfschemanotificationpolicies.js.map +1 -1
  101. package/dist/esm/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
  102. package/dist/esm/models/functionhandlebars.d.ts.map +1 -0
  103. package/dist/esm/models/{functionhandlebar.js → functionhandlebars.js} +7 -7
  104. package/dist/esm/models/functionhandlebars.js.map +1 -0
  105. package/dist/esm/models/functionresponse.d.ts +2 -2
  106. package/dist/esm/models/functionresponse.d.ts.map +1 -1
  107. package/dist/esm/models/functionresponse.js +2 -2
  108. package/dist/esm/models/functionresponse.js.map +1 -1
  109. package/dist/esm/models/index.d.ts +3 -3
  110. package/dist/esm/models/index.d.ts.map +1 -1
  111. package/dist/esm/models/index.js +3 -3
  112. package/dist/esm/models/index.js.map +1 -1
  113. package/dist/esm/models/pipelinefunctionconf.d.ts +2 -2
  114. package/dist/esm/models/pipelinefunctionconf.d.ts.map +1 -1
  115. package/dist/esm/models/pipelinefunctionconf.js +2 -2
  116. package/dist/esm/models/pipelinefunctionconf.js.map +1 -1
  117. package/dist/esm/models/pipelinefunctionconfinput.d.ts +3 -3
  118. package/dist/esm/models/pipelinefunctionconfinput.d.ts.map +1 -1
  119. package/dist/esm/models/pipelinefunctionconfinput.js +2 -2
  120. package/dist/esm/models/pipelinefunctionconfinput.js.map +1 -1
  121. package/dist/esm/models/pipelinefunctionhandlebars.d.ts +109 -0
  122. package/dist/esm/models/pipelinefunctionhandlebars.d.ts.map +1 -0
  123. package/dist/esm/models/pipelinefunctionhandlebars.js +72 -0
  124. package/dist/esm/models/pipelinefunctionhandlebars.js.map +1 -0
  125. package/examples/package-lock.json +1 -1
  126. package/jsr.json +1 -1
  127. package/package.json +1 -1
  128. package/src/lib/config.ts +3 -3
  129. package/src/models/collectorazureblob.ts +1317 -91
  130. package/src/models/collectorconf.ts +36 -24
  131. package/src/models/collectorgooglecloudstorage.ts +698 -66
  132. package/src/models/collectorhealthcheck.ts +7751 -175
  133. package/src/models/collectorrest.ts +13275 -231
  134. package/src/models/collectors3.ts +1722 -97
  135. package/src/models/collectorsplunk.ts +3531 -187
  136. package/src/models/{functionconfschemahandlebar.ts → functionconfschemahandlebars.ts} +23 -20
  137. package/src/models/functionconfschemanotificationpolicies.ts +7 -0
  138. package/src/models/{functionhandlebar.ts → functionhandlebars.ts} +14 -14
  139. package/src/models/functionresponse.ts +5 -5
  140. package/src/models/index.ts +3 -3
  141. package/src/models/pipelinefunctionconf.ts +5 -5
  142. package/src/models/pipelinefunctionconfinput.ts +7 -7
  143. package/src/models/{pipelinefunctionhandlebar.ts → pipelinefunctionhandlebars.ts} +67 -62
  144. package/dist/commonjs/models/functionconfschemahandlebar.d.ts +0 -44
  145. package/dist/commonjs/models/functionconfschemahandlebar.d.ts.map +0 -1
  146. package/dist/commonjs/models/functionconfschemahandlebar.js.map +0 -1
  147. package/dist/commonjs/models/functionhandlebar.d.ts.map +0 -1
  148. package/dist/commonjs/models/functionhandlebar.js.map +0 -1
  149. package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts +0 -108
  150. package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts.map +0 -1
  151. package/dist/commonjs/models/pipelinefunctionhandlebar.js +0 -112
  152. package/dist/commonjs/models/pipelinefunctionhandlebar.js.map +0 -1
  153. package/dist/esm/models/functionconfschemahandlebar.d.ts +0 -44
  154. package/dist/esm/models/functionconfschemahandlebar.d.ts.map +0 -1
  155. package/dist/esm/models/functionconfschemahandlebar.js +0 -25
  156. package/dist/esm/models/functionconfschemahandlebar.js.map +0 -1
  157. package/dist/esm/models/functionhandlebar.d.ts.map +0 -1
  158. package/dist/esm/models/functionhandlebar.js.map +0 -1
  159. package/dist/esm/models/pipelinefunctionhandlebar.d.ts +0 -108
  160. package/dist/esm/models/pipelinefunctionhandlebar.d.ts.map +0 -1
  161. package/dist/esm/models/pipelinefunctionhandlebar.js +0 -70
  162. package/dist/esm/models/pipelinefunctionhandlebar.js.map +0 -1
@@ -5,11 +5,39 @@
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import * as openEnums from "../types/enums.js";
8
- import { OpenEnum } from "../types/enums.js";
8
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../types/fp.js";
10
10
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
11
11
 
12
- export type CollectorGoogleCloudStorageExtractor = {
12
+ /**
13
+ * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
14
+ */
15
+ export const CollectorGoogleCloudStorageAuthenticationMethod3 = {
16
+ Auto: "auto",
17
+ Manual: "manual",
18
+ Secret: "secret",
19
+ } as const;
20
+ /**
21
+ * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
22
+ */
23
+ export type CollectorGoogleCloudStorageAuthenticationMethod3 = OpenEnum<
24
+ typeof CollectorGoogleCloudStorageAuthenticationMethod3
25
+ >;
26
+
27
+ /**
28
+ * Collector type: google_cloud_storage
29
+ */
30
+ export const CollectorGoogleCloudStorageType3 = {
31
+ GoogleCloudStorage: "google_cloud_storage",
32
+ } as const;
33
+ /**
34
+ * Collector type: google_cloud_storage
35
+ */
36
+ export type CollectorGoogleCloudStorageType3 = ClosedEnum<
37
+ typeof CollectorGoogleCloudStorageType3
38
+ >;
39
+
40
+ export type CollectorGoogleCloudStorageExtractor3 = {
13
41
  /**
14
42
  * A token from the template path, such as epoch
15
43
  */
@@ -20,10 +48,69 @@ export type CollectorGoogleCloudStorageExtractor = {
20
48
  expression: string;
21
49
  };
22
50
 
51
+ export type CollectorGoogleCloudStorageGoogleCloudStorage3 = {
52
+ /**
53
+ * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
54
+ */
55
+ authType?: CollectorGoogleCloudStorageAuthenticationMethod3 | undefined;
56
+ /**
57
+ * Select or create a stored text secret that references your credentials
58
+ */
59
+ textSecret: string;
60
+ /**
61
+ * Collector type: google_cloud_storage
62
+ */
63
+ type: CollectorGoogleCloudStorageType3;
64
+ /**
65
+ * Name of the predefined Destination that will be used to auto-populate Collector settings
66
+ */
67
+ outputName?: string | undefined;
68
+ /**
69
+ * Name of the bucket to collect from. This value can be a constant or a JavaScript expression that can only be evaluated at init time. Example referencing a Global Variable: `myBucket-${C.vars.myVar}`.
70
+ */
71
+ bucket: string;
72
+ /**
73
+ * The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are also supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
74
+ */
75
+ path?: string | undefined;
76
+ /**
77
+ * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
78
+ */
79
+ extractors?: Array<CollectorGoogleCloudStorageExtractor3> | undefined;
80
+ /**
81
+ * Google Cloud Storage service endpoint. If empty, the endpoint will default to https://storage.googleapis.com.
82
+ */
83
+ endpoint?: string | undefined;
84
+ /**
85
+ * Used to disable Collector event time filtering when a date range is specified
86
+ */
87
+ disableTimeFilter?: boolean | undefined;
88
+ /**
89
+ * Recurse through subdirectories
90
+ */
91
+ recurse?: boolean | undefined;
92
+ /**
93
+ * Maximum number of metadata objects to batch before recording as results
94
+ */
95
+ maxBatchSize?: number | undefined;
96
+ /**
97
+ * Maximum file size for each Parquet chunk
98
+ */
99
+ parquetChunkSizeMB?: number | undefined;
100
+ /**
101
+ * The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
102
+ */
103
+ parquetChunkDownloadTimeout?: number | undefined;
104
+ /**
105
+ * Contents of Google Cloud service account credentials (JSON keys) file. To upload a file, click the upload button at this field's upper right.
106
+ */
107
+ serviceAccountCredentials?: string | undefined;
108
+ };
109
+
23
110
  /**
24
111
  * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
25
112
  */
26
- export const CollectorGoogleCloudStorageAuthenticationMethod = {
113
+ export const CollectorGoogleCloudStorageAuthenticationMethod2 = {
27
114
  Auto: "auto",
28
115
  Manual: "manual",
29
116
  Secret: "secret",
@@ -31,15 +118,47 @@ export const CollectorGoogleCloudStorageAuthenticationMethod = {
31
118
  /**
32
119
  * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
33
120
  */
34
- export type CollectorGoogleCloudStorageAuthenticationMethod = OpenEnum<
35
- typeof CollectorGoogleCloudStorageAuthenticationMethod
121
+ export type CollectorGoogleCloudStorageAuthenticationMethod2 = OpenEnum<
122
+ typeof CollectorGoogleCloudStorageAuthenticationMethod2
36
123
  >;
37
124
 
38
- export type CollectorGoogleCloudStorage = {
125
+ /**
126
+ * Collector type: google_cloud_storage
127
+ */
128
+ export const CollectorGoogleCloudStorageType2 = {
129
+ GoogleCloudStorage: "google_cloud_storage",
130
+ } as const;
131
+ /**
132
+ * Collector type: google_cloud_storage
133
+ */
134
+ export type CollectorGoogleCloudStorageType2 = ClosedEnum<
135
+ typeof CollectorGoogleCloudStorageType2
136
+ >;
137
+
138
+ export type CollectorGoogleCloudStorageExtractor2 = {
139
+ /**
140
+ * A token from the template path, such as epoch
141
+ */
142
+ key: string;
143
+ /**
144
+ * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields, such as {date: new Date(+value*1000)}
145
+ */
146
+ expression: string;
147
+ };
148
+
149
+ export type CollectorGoogleCloudStorageGoogleCloudStorage2 = {
150
+ /**
151
+ * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
152
+ */
153
+ authType?: CollectorGoogleCloudStorageAuthenticationMethod2 | undefined;
154
+ /**
155
+ * Contents of Google Cloud service account credentials (JSON keys) file. To upload a file, click the upload button at this field's upper right.
156
+ */
157
+ serviceAccountCredentials: string;
39
158
  /**
40
159
  * Collector type: google_cloud_storage
41
160
  */
42
- type: "google_cloud_storage";
161
+ type: CollectorGoogleCloudStorageType2;
43
162
  /**
44
163
  * Name of the predefined Destination that will be used to auto-populate Collector settings
45
164
  */
@@ -55,7 +174,7 @@ export type CollectorGoogleCloudStorage = {
55
174
  /**
56
175
  * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
57
176
  */
58
- extractors?: Array<CollectorGoogleCloudStorageExtractor> | undefined;
177
+ extractors?: Array<CollectorGoogleCloudStorageExtractor2> | undefined;
59
178
  /**
60
179
  * Google Cloud Storage service endpoint. If empty, the endpoint will default to https://storage.googleapis.com.
61
180
  */
@@ -72,10 +191,100 @@ export type CollectorGoogleCloudStorage = {
72
191
  * Maximum number of metadata objects to batch before recording as results
73
192
  */
74
193
  maxBatchSize?: number | undefined;
194
+ /**
195
+ * Maximum file size for each Parquet chunk
196
+ */
197
+ parquetChunkSizeMB?: number | undefined;
198
+ /**
199
+ * The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
200
+ */
201
+ parquetChunkDownloadTimeout?: number | undefined;
202
+ /**
203
+ * Select or create a stored text secret that references your credentials
204
+ */
205
+ textSecret?: string | undefined;
206
+ };
207
+
208
+ /**
209
+ * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
210
+ */
211
+ export const CollectorGoogleCloudStorageAuthenticationMethod1 = {
212
+ Auto: "auto",
213
+ Manual: "manual",
214
+ Secret: "secret",
215
+ } as const;
216
+ /**
217
+ * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
218
+ */
219
+ export type CollectorGoogleCloudStorageAuthenticationMethod1 = OpenEnum<
220
+ typeof CollectorGoogleCloudStorageAuthenticationMethod1
221
+ >;
222
+
223
+ /**
224
+ * Collector type: google_cloud_storage
225
+ */
226
+ export const CollectorGoogleCloudStorageType1 = {
227
+ GoogleCloudStorage: "google_cloud_storage",
228
+ } as const;
229
+ /**
230
+ * Collector type: google_cloud_storage
231
+ */
232
+ export type CollectorGoogleCloudStorageType1 = ClosedEnum<
233
+ typeof CollectorGoogleCloudStorageType1
234
+ >;
235
+
236
+ export type CollectorGoogleCloudStorageExtractor1 = {
237
+ /**
238
+ * A token from the template path, such as epoch
239
+ */
240
+ key: string;
241
+ /**
242
+ * JavaScript expression that receives token under "value" variable, and evaluates to populate event fields, such as {date: new Date(+value*1000)}
243
+ */
244
+ expression: string;
245
+ };
246
+
247
+ export type CollectorGoogleCloudStorageGoogleCloudStorage1 = {
75
248
  /**
76
249
  * Enter account credentials manually, select a secret that references your credentials, or use Google Application Default Credentials
77
250
  */
78
- authType?: CollectorGoogleCloudStorageAuthenticationMethod | undefined;
251
+ authType?: CollectorGoogleCloudStorageAuthenticationMethod1 | undefined;
252
+ /**
253
+ * Collector type: google_cloud_storage
254
+ */
255
+ type: CollectorGoogleCloudStorageType1;
256
+ /**
257
+ * Name of the predefined Destination that will be used to auto-populate Collector settings
258
+ */
259
+ outputName?: string | undefined;
260
+ /**
261
+ * Name of the bucket to collect from. This value can be a constant or a JavaScript expression that can only be evaluated at init time. Example referencing a Global Variable: `myBucket-${C.vars.myVar}`.
262
+ */
263
+ bucket: string;
264
+ /**
265
+ * The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are also supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
266
+ */
267
+ path?: string | undefined;
268
+ /**
269
+ * Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
270
+ */
271
+ extractors?: Array<CollectorGoogleCloudStorageExtractor1> | undefined;
272
+ /**
273
+ * Google Cloud Storage service endpoint. If empty, the endpoint will default to https://storage.googleapis.com.
274
+ */
275
+ endpoint?: string | undefined;
276
+ /**
277
+ * Used to disable Collector event time filtering when a date range is specified
278
+ */
279
+ disableTimeFilter?: boolean | undefined;
280
+ /**
281
+ * Recurse through subdirectories
282
+ */
283
+ recurse?: boolean | undefined;
284
+ /**
285
+ * Maximum number of metadata objects to batch before recording as results
286
+ */
287
+ maxBatchSize?: number | undefined;
79
288
  /**
80
289
  * Maximum file size for each Parquet chunk
81
290
  */
@@ -84,11 +293,50 @@ export type CollectorGoogleCloudStorage = {
84
293
  * The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
85
294
  */
86
295
  parquetChunkDownloadTimeout?: number | undefined;
296
+ /**
297
+ * Contents of Google Cloud service account credentials (JSON keys) file. To upload a file, click the upload button at this field's upper right.
298
+ */
299
+ serviceAccountCredentials?: string | undefined;
300
+ /**
301
+ * Select or create a stored text secret that references your credentials
302
+ */
303
+ textSecret?: string | undefined;
87
304
  };
88
305
 
306
+ export type CollectorGoogleCloudStorage =
307
+ | CollectorGoogleCloudStorageGoogleCloudStorage2
308
+ | CollectorGoogleCloudStorageGoogleCloudStorage3
309
+ | CollectorGoogleCloudStorageGoogleCloudStorage1;
310
+
311
+ /** @internal */
312
+ export const CollectorGoogleCloudStorageAuthenticationMethod3$inboundSchema:
313
+ z.ZodType<
314
+ CollectorGoogleCloudStorageAuthenticationMethod3,
315
+ z.ZodTypeDef,
316
+ unknown
317
+ > = openEnums.inboundSchema(CollectorGoogleCloudStorageAuthenticationMethod3);
318
+ /** @internal */
319
+ export const CollectorGoogleCloudStorageAuthenticationMethod3$outboundSchema:
320
+ z.ZodType<
321
+ string,
322
+ z.ZodTypeDef,
323
+ CollectorGoogleCloudStorageAuthenticationMethod3
324
+ > = openEnums.outboundSchema(
325
+ CollectorGoogleCloudStorageAuthenticationMethod3,
326
+ );
327
+
328
+ /** @internal */
329
+ export const CollectorGoogleCloudStorageType3$inboundSchema: z.ZodNativeEnum<
330
+ typeof CollectorGoogleCloudStorageType3
331
+ > = z.nativeEnum(CollectorGoogleCloudStorageType3);
332
+ /** @internal */
333
+ export const CollectorGoogleCloudStorageType3$outboundSchema: z.ZodNativeEnum<
334
+ typeof CollectorGoogleCloudStorageType3
335
+ > = CollectorGoogleCloudStorageType3$inboundSchema;
336
+
89
337
  /** @internal */
90
- export const CollectorGoogleCloudStorageExtractor$inboundSchema: z.ZodType<
91
- CollectorGoogleCloudStorageExtractor,
338
+ export const CollectorGoogleCloudStorageExtractor3$inboundSchema: z.ZodType<
339
+ CollectorGoogleCloudStorageExtractor3,
92
340
  z.ZodTypeDef,
93
341
  unknown
94
342
  > = z.object({
@@ -96,116 +344,500 @@ export const CollectorGoogleCloudStorageExtractor$inboundSchema: z.ZodType<
96
344
  expression: z.string(),
97
345
  });
98
346
  /** @internal */
99
- export type CollectorGoogleCloudStorageExtractor$Outbound = {
347
+ export type CollectorGoogleCloudStorageExtractor3$Outbound = {
100
348
  key: string;
101
349
  expression: string;
102
350
  };
103
351
 
104
352
  /** @internal */
105
- export const CollectorGoogleCloudStorageExtractor$outboundSchema: z.ZodType<
106
- CollectorGoogleCloudStorageExtractor$Outbound,
353
+ export const CollectorGoogleCloudStorageExtractor3$outboundSchema: z.ZodType<
354
+ CollectorGoogleCloudStorageExtractor3$Outbound,
107
355
  z.ZodTypeDef,
108
- CollectorGoogleCloudStorageExtractor
356
+ CollectorGoogleCloudStorageExtractor3
109
357
  > = z.object({
110
358
  key: z.string(),
111
359
  expression: z.string(),
112
360
  });
113
361
 
114
- export function collectorGoogleCloudStorageExtractorToJSON(
115
- collectorGoogleCloudStorageExtractor: CollectorGoogleCloudStorageExtractor,
362
+ export function collectorGoogleCloudStorageExtractor3ToJSON(
363
+ collectorGoogleCloudStorageExtractor3: CollectorGoogleCloudStorageExtractor3,
116
364
  ): string {
117
365
  return JSON.stringify(
118
- CollectorGoogleCloudStorageExtractor$outboundSchema.parse(
119
- collectorGoogleCloudStorageExtractor,
366
+ CollectorGoogleCloudStorageExtractor3$outboundSchema.parse(
367
+ collectorGoogleCloudStorageExtractor3,
120
368
  ),
121
369
  );
122
370
  }
123
- export function collectorGoogleCloudStorageExtractorFromJSON(
371
+ export function collectorGoogleCloudStorageExtractor3FromJSON(
124
372
  jsonString: string,
125
- ): SafeParseResult<CollectorGoogleCloudStorageExtractor, SDKValidationError> {
373
+ ): SafeParseResult<CollectorGoogleCloudStorageExtractor3, SDKValidationError> {
126
374
  return safeParse(
127
375
  jsonString,
128
376
  (x) =>
129
- CollectorGoogleCloudStorageExtractor$inboundSchema.parse(JSON.parse(x)),
130
- `Failed to parse 'CollectorGoogleCloudStorageExtractor' from JSON`,
377
+ CollectorGoogleCloudStorageExtractor3$inboundSchema.parse(JSON.parse(x)),
378
+ `Failed to parse 'CollectorGoogleCloudStorageExtractor3' from JSON`,
131
379
  );
132
380
  }
133
381
 
134
382
  /** @internal */
135
- export const CollectorGoogleCloudStorageAuthenticationMethod$inboundSchema:
383
+ export const CollectorGoogleCloudStorageGoogleCloudStorage3$inboundSchema:
136
384
  z.ZodType<
137
- CollectorGoogleCloudStorageAuthenticationMethod,
385
+ CollectorGoogleCloudStorageGoogleCloudStorage3,
138
386
  z.ZodTypeDef,
139
387
  unknown
140
- > = openEnums.inboundSchema(CollectorGoogleCloudStorageAuthenticationMethod);
388
+ > = z.object({
389
+ authType: CollectorGoogleCloudStorageAuthenticationMethod3$inboundSchema
390
+ .default("manual"),
391
+ textSecret: z.string(),
392
+ type: CollectorGoogleCloudStorageType3$inboundSchema,
393
+ outputName: z.string().optional(),
394
+ bucket: z.string(),
395
+ path: z.string().optional(),
396
+ extractors: z.array(
397
+ z.lazy(() => CollectorGoogleCloudStorageExtractor3$inboundSchema),
398
+ ).optional(),
399
+ endpoint: z.string().optional(),
400
+ disableTimeFilter: z.boolean().default(false),
401
+ recurse: z.boolean().default(true),
402
+ maxBatchSize: z.number().default(10),
403
+ parquetChunkSizeMB: z.number().default(5),
404
+ parquetChunkDownloadTimeout: z.number().default(600),
405
+ serviceAccountCredentials: z.string().optional(),
406
+ });
141
407
  /** @internal */
142
- export const CollectorGoogleCloudStorageAuthenticationMethod$outboundSchema:
408
+ export type CollectorGoogleCloudStorageGoogleCloudStorage3$Outbound = {
409
+ authType: string;
410
+ textSecret: string;
411
+ type: string;
412
+ outputName?: string | undefined;
413
+ bucket: string;
414
+ path?: string | undefined;
415
+ extractors?:
416
+ | Array<CollectorGoogleCloudStorageExtractor3$Outbound>
417
+ | undefined;
418
+ endpoint?: string | undefined;
419
+ disableTimeFilter: boolean;
420
+ recurse: boolean;
421
+ maxBatchSize: number;
422
+ parquetChunkSizeMB: number;
423
+ parquetChunkDownloadTimeout: number;
424
+ serviceAccountCredentials?: string | undefined;
425
+ };
426
+
427
+ /** @internal */
428
+ export const CollectorGoogleCloudStorageGoogleCloudStorage3$outboundSchema:
429
+ z.ZodType<
430
+ CollectorGoogleCloudStorageGoogleCloudStorage3$Outbound,
431
+ z.ZodTypeDef,
432
+ CollectorGoogleCloudStorageGoogleCloudStorage3
433
+ > = z.object({
434
+ authType: CollectorGoogleCloudStorageAuthenticationMethod3$outboundSchema
435
+ .default("manual"),
436
+ textSecret: z.string(),
437
+ type: CollectorGoogleCloudStorageType3$outboundSchema,
438
+ outputName: z.string().optional(),
439
+ bucket: z.string(),
440
+ path: z.string().optional(),
441
+ extractors: z.array(
442
+ z.lazy(() => CollectorGoogleCloudStorageExtractor3$outboundSchema),
443
+ ).optional(),
444
+ endpoint: z.string().optional(),
445
+ disableTimeFilter: z.boolean().default(false),
446
+ recurse: z.boolean().default(true),
447
+ maxBatchSize: z.number().default(10),
448
+ parquetChunkSizeMB: z.number().default(5),
449
+ parquetChunkDownloadTimeout: z.number().default(600),
450
+ serviceAccountCredentials: z.string().optional(),
451
+ });
452
+
453
+ export function collectorGoogleCloudStorageGoogleCloudStorage3ToJSON(
454
+ collectorGoogleCloudStorageGoogleCloudStorage3:
455
+ CollectorGoogleCloudStorageGoogleCloudStorage3,
456
+ ): string {
457
+ return JSON.stringify(
458
+ CollectorGoogleCloudStorageGoogleCloudStorage3$outboundSchema.parse(
459
+ collectorGoogleCloudStorageGoogleCloudStorage3,
460
+ ),
461
+ );
462
+ }
463
+ export function collectorGoogleCloudStorageGoogleCloudStorage3FromJSON(
464
+ jsonString: string,
465
+ ): SafeParseResult<
466
+ CollectorGoogleCloudStorageGoogleCloudStorage3,
467
+ SDKValidationError
468
+ > {
469
+ return safeParse(
470
+ jsonString,
471
+ (x) =>
472
+ CollectorGoogleCloudStorageGoogleCloudStorage3$inboundSchema.parse(
473
+ JSON.parse(x),
474
+ ),
475
+ `Failed to parse 'CollectorGoogleCloudStorageGoogleCloudStorage3' from JSON`,
476
+ );
477
+ }
478
+
479
+ /** @internal */
480
+ export const CollectorGoogleCloudStorageAuthenticationMethod2$inboundSchema:
481
+ z.ZodType<
482
+ CollectorGoogleCloudStorageAuthenticationMethod2,
483
+ z.ZodTypeDef,
484
+ unknown
485
+ > = openEnums.inboundSchema(CollectorGoogleCloudStorageAuthenticationMethod2);
486
+ /** @internal */
487
+ export const CollectorGoogleCloudStorageAuthenticationMethod2$outboundSchema:
143
488
  z.ZodType<
144
489
  string,
145
490
  z.ZodTypeDef,
146
- CollectorGoogleCloudStorageAuthenticationMethod
147
- > = openEnums.outboundSchema(CollectorGoogleCloudStorageAuthenticationMethod);
491
+ CollectorGoogleCloudStorageAuthenticationMethod2
492
+ > = openEnums.outboundSchema(
493
+ CollectorGoogleCloudStorageAuthenticationMethod2,
494
+ );
148
495
 
149
496
  /** @internal */
150
- export const CollectorGoogleCloudStorage$inboundSchema: z.ZodType<
151
- CollectorGoogleCloudStorage,
497
+ export const CollectorGoogleCloudStorageType2$inboundSchema: z.ZodNativeEnum<
498
+ typeof CollectorGoogleCloudStorageType2
499
+ > = z.nativeEnum(CollectorGoogleCloudStorageType2);
500
+ /** @internal */
501
+ export const CollectorGoogleCloudStorageType2$outboundSchema: z.ZodNativeEnum<
502
+ typeof CollectorGoogleCloudStorageType2
503
+ > = CollectorGoogleCloudStorageType2$inboundSchema;
504
+
505
+ /** @internal */
506
+ export const CollectorGoogleCloudStorageExtractor2$inboundSchema: z.ZodType<
507
+ CollectorGoogleCloudStorageExtractor2,
152
508
  z.ZodTypeDef,
153
509
  unknown
154
510
  > = z.object({
155
- type: z.literal("google_cloud_storage"),
156
- outputName: z.string().optional(),
157
- bucket: z.string(),
158
- path: z.string().optional(),
159
- extractors: z.array(
160
- z.lazy(() => CollectorGoogleCloudStorageExtractor$inboundSchema),
161
- ).optional(),
162
- endpoint: z.string().optional(),
163
- disableTimeFilter: z.boolean().default(false),
164
- recurse: z.boolean().default(true),
165
- maxBatchSize: z.number().default(10),
166
- authType: CollectorGoogleCloudStorageAuthenticationMethod$inboundSchema
167
- .default("manual"),
168
- parquetChunkSizeMB: z.number().default(5),
169
- parquetChunkDownloadTimeout: z.number().default(600),
511
+ key: z.string(),
512
+ expression: z.string(),
513
+ });
514
+ /** @internal */
515
+ export type CollectorGoogleCloudStorageExtractor2$Outbound = {
516
+ key: string;
517
+ expression: string;
518
+ };
519
+
520
+ /** @internal */
521
+ export const CollectorGoogleCloudStorageExtractor2$outboundSchema: z.ZodType<
522
+ CollectorGoogleCloudStorageExtractor2$Outbound,
523
+ z.ZodTypeDef,
524
+ CollectorGoogleCloudStorageExtractor2
525
+ > = z.object({
526
+ key: z.string(),
527
+ expression: z.string(),
170
528
  });
529
+
530
+ export function collectorGoogleCloudStorageExtractor2ToJSON(
531
+ collectorGoogleCloudStorageExtractor2: CollectorGoogleCloudStorageExtractor2,
532
+ ): string {
533
+ return JSON.stringify(
534
+ CollectorGoogleCloudStorageExtractor2$outboundSchema.parse(
535
+ collectorGoogleCloudStorageExtractor2,
536
+ ),
537
+ );
538
+ }
539
+ export function collectorGoogleCloudStorageExtractor2FromJSON(
540
+ jsonString: string,
541
+ ): SafeParseResult<CollectorGoogleCloudStorageExtractor2, SDKValidationError> {
542
+ return safeParse(
543
+ jsonString,
544
+ (x) =>
545
+ CollectorGoogleCloudStorageExtractor2$inboundSchema.parse(JSON.parse(x)),
546
+ `Failed to parse 'CollectorGoogleCloudStorageExtractor2' from JSON`,
547
+ );
548
+ }
549
+
171
550
  /** @internal */
172
- export type CollectorGoogleCloudStorage$Outbound = {
173
- type: "google_cloud_storage";
551
+ export const CollectorGoogleCloudStorageGoogleCloudStorage2$inboundSchema:
552
+ z.ZodType<
553
+ CollectorGoogleCloudStorageGoogleCloudStorage2,
554
+ z.ZodTypeDef,
555
+ unknown
556
+ > = z.object({
557
+ authType: CollectorGoogleCloudStorageAuthenticationMethod2$inboundSchema
558
+ .default("manual"),
559
+ serviceAccountCredentials: z.string(),
560
+ type: CollectorGoogleCloudStorageType2$inboundSchema,
561
+ outputName: z.string().optional(),
562
+ bucket: z.string(),
563
+ path: z.string().optional(),
564
+ extractors: z.array(
565
+ z.lazy(() => CollectorGoogleCloudStorageExtractor2$inboundSchema),
566
+ ).optional(),
567
+ endpoint: z.string().optional(),
568
+ disableTimeFilter: z.boolean().default(false),
569
+ recurse: z.boolean().default(true),
570
+ maxBatchSize: z.number().default(10),
571
+ parquetChunkSizeMB: z.number().default(5),
572
+ parquetChunkDownloadTimeout: z.number().default(600),
573
+ textSecret: z.string().optional(),
574
+ });
575
+ /** @internal */
576
+ export type CollectorGoogleCloudStorageGoogleCloudStorage2$Outbound = {
577
+ authType: string;
578
+ serviceAccountCredentials: string;
579
+ type: string;
174
580
  outputName?: string | undefined;
175
581
  bucket: string;
176
582
  path?: string | undefined;
177
- extractors?: Array<CollectorGoogleCloudStorageExtractor$Outbound> | undefined;
583
+ extractors?:
584
+ | Array<CollectorGoogleCloudStorageExtractor2$Outbound>
585
+ | undefined;
178
586
  endpoint?: string | undefined;
179
587
  disableTimeFilter: boolean;
180
588
  recurse: boolean;
181
589
  maxBatchSize: number;
590
+ parquetChunkSizeMB: number;
591
+ parquetChunkDownloadTimeout: number;
592
+ textSecret?: string | undefined;
593
+ };
594
+
595
+ /** @internal */
596
+ export const CollectorGoogleCloudStorageGoogleCloudStorage2$outboundSchema:
597
+ z.ZodType<
598
+ CollectorGoogleCloudStorageGoogleCloudStorage2$Outbound,
599
+ z.ZodTypeDef,
600
+ CollectorGoogleCloudStorageGoogleCloudStorage2
601
+ > = z.object({
602
+ authType: CollectorGoogleCloudStorageAuthenticationMethod2$outboundSchema
603
+ .default("manual"),
604
+ serviceAccountCredentials: z.string(),
605
+ type: CollectorGoogleCloudStorageType2$outboundSchema,
606
+ outputName: z.string().optional(),
607
+ bucket: z.string(),
608
+ path: z.string().optional(),
609
+ extractors: z.array(
610
+ z.lazy(() => CollectorGoogleCloudStorageExtractor2$outboundSchema),
611
+ ).optional(),
612
+ endpoint: z.string().optional(),
613
+ disableTimeFilter: z.boolean().default(false),
614
+ recurse: z.boolean().default(true),
615
+ maxBatchSize: z.number().default(10),
616
+ parquetChunkSizeMB: z.number().default(5),
617
+ parquetChunkDownloadTimeout: z.number().default(600),
618
+ textSecret: z.string().optional(),
619
+ });
620
+
621
+ export function collectorGoogleCloudStorageGoogleCloudStorage2ToJSON(
622
+ collectorGoogleCloudStorageGoogleCloudStorage2:
623
+ CollectorGoogleCloudStorageGoogleCloudStorage2,
624
+ ): string {
625
+ return JSON.stringify(
626
+ CollectorGoogleCloudStorageGoogleCloudStorage2$outboundSchema.parse(
627
+ collectorGoogleCloudStorageGoogleCloudStorage2,
628
+ ),
629
+ );
630
+ }
631
+ export function collectorGoogleCloudStorageGoogleCloudStorage2FromJSON(
632
+ jsonString: string,
633
+ ): SafeParseResult<
634
+ CollectorGoogleCloudStorageGoogleCloudStorage2,
635
+ SDKValidationError
636
+ > {
637
+ return safeParse(
638
+ jsonString,
639
+ (x) =>
640
+ CollectorGoogleCloudStorageGoogleCloudStorage2$inboundSchema.parse(
641
+ JSON.parse(x),
642
+ ),
643
+ `Failed to parse 'CollectorGoogleCloudStorageGoogleCloudStorage2' from JSON`,
644
+ );
645
+ }
646
+
647
+ /** @internal */
648
+ export const CollectorGoogleCloudStorageAuthenticationMethod1$inboundSchema:
649
+ z.ZodType<
650
+ CollectorGoogleCloudStorageAuthenticationMethod1,
651
+ z.ZodTypeDef,
652
+ unknown
653
+ > = openEnums.inboundSchema(CollectorGoogleCloudStorageAuthenticationMethod1);
654
+ /** @internal */
655
+ export const CollectorGoogleCloudStorageAuthenticationMethod1$outboundSchema:
656
+ z.ZodType<
657
+ string,
658
+ z.ZodTypeDef,
659
+ CollectorGoogleCloudStorageAuthenticationMethod1
660
+ > = openEnums.outboundSchema(
661
+ CollectorGoogleCloudStorageAuthenticationMethod1,
662
+ );
663
+
664
+ /** @internal */
665
+ export const CollectorGoogleCloudStorageType1$inboundSchema: z.ZodNativeEnum<
666
+ typeof CollectorGoogleCloudStorageType1
667
+ > = z.nativeEnum(CollectorGoogleCloudStorageType1);
668
+ /** @internal */
669
+ export const CollectorGoogleCloudStorageType1$outboundSchema: z.ZodNativeEnum<
670
+ typeof CollectorGoogleCloudStorageType1
671
+ > = CollectorGoogleCloudStorageType1$inboundSchema;
672
+
673
+ /** @internal */
674
+ export const CollectorGoogleCloudStorageExtractor1$inboundSchema: z.ZodType<
675
+ CollectorGoogleCloudStorageExtractor1,
676
+ z.ZodTypeDef,
677
+ unknown
678
+ > = z.object({
679
+ key: z.string(),
680
+ expression: z.string(),
681
+ });
682
+ /** @internal */
683
+ export type CollectorGoogleCloudStorageExtractor1$Outbound = {
684
+ key: string;
685
+ expression: string;
686
+ };
687
+
688
+ /** @internal */
689
+ export const CollectorGoogleCloudStorageExtractor1$outboundSchema: z.ZodType<
690
+ CollectorGoogleCloudStorageExtractor1$Outbound,
691
+ z.ZodTypeDef,
692
+ CollectorGoogleCloudStorageExtractor1
693
+ > = z.object({
694
+ key: z.string(),
695
+ expression: z.string(),
696
+ });
697
+
698
+ export function collectorGoogleCloudStorageExtractor1ToJSON(
699
+ collectorGoogleCloudStorageExtractor1: CollectorGoogleCloudStorageExtractor1,
700
+ ): string {
701
+ return JSON.stringify(
702
+ CollectorGoogleCloudStorageExtractor1$outboundSchema.parse(
703
+ collectorGoogleCloudStorageExtractor1,
704
+ ),
705
+ );
706
+ }
707
+ export function collectorGoogleCloudStorageExtractor1FromJSON(
708
+ jsonString: string,
709
+ ): SafeParseResult<CollectorGoogleCloudStorageExtractor1, SDKValidationError> {
710
+ return safeParse(
711
+ jsonString,
712
+ (x) =>
713
+ CollectorGoogleCloudStorageExtractor1$inboundSchema.parse(JSON.parse(x)),
714
+ `Failed to parse 'CollectorGoogleCloudStorageExtractor1' from JSON`,
715
+ );
716
+ }
717
+
718
+ /** @internal */
719
+ export const CollectorGoogleCloudStorageGoogleCloudStorage1$inboundSchema:
720
+ z.ZodType<
721
+ CollectorGoogleCloudStorageGoogleCloudStorage1,
722
+ z.ZodTypeDef,
723
+ unknown
724
+ > = z.object({
725
+ authType: CollectorGoogleCloudStorageAuthenticationMethod1$inboundSchema
726
+ .default("manual"),
727
+ type: CollectorGoogleCloudStorageType1$inboundSchema,
728
+ outputName: z.string().optional(),
729
+ bucket: z.string(),
730
+ path: z.string().optional(),
731
+ extractors: z.array(
732
+ z.lazy(() => CollectorGoogleCloudStorageExtractor1$inboundSchema),
733
+ ).optional(),
734
+ endpoint: z.string().optional(),
735
+ disableTimeFilter: z.boolean().default(false),
736
+ recurse: z.boolean().default(true),
737
+ maxBatchSize: z.number().default(10),
738
+ parquetChunkSizeMB: z.number().default(5),
739
+ parquetChunkDownloadTimeout: z.number().default(600),
740
+ serviceAccountCredentials: z.string().optional(),
741
+ textSecret: z.string().optional(),
742
+ });
743
+ /** @internal */
744
+ export type CollectorGoogleCloudStorageGoogleCloudStorage1$Outbound = {
182
745
  authType: string;
746
+ type: string;
747
+ outputName?: string | undefined;
748
+ bucket: string;
749
+ path?: string | undefined;
750
+ extractors?:
751
+ | Array<CollectorGoogleCloudStorageExtractor1$Outbound>
752
+ | undefined;
753
+ endpoint?: string | undefined;
754
+ disableTimeFilter: boolean;
755
+ recurse: boolean;
756
+ maxBatchSize: number;
183
757
  parquetChunkSizeMB: number;
184
758
  parquetChunkDownloadTimeout: number;
759
+ serviceAccountCredentials?: string | undefined;
760
+ textSecret?: string | undefined;
185
761
  };
186
762
 
763
+ /** @internal */
764
+ export const CollectorGoogleCloudStorageGoogleCloudStorage1$outboundSchema:
765
+ z.ZodType<
766
+ CollectorGoogleCloudStorageGoogleCloudStorage1$Outbound,
767
+ z.ZodTypeDef,
768
+ CollectorGoogleCloudStorageGoogleCloudStorage1
769
+ > = z.object({
770
+ authType: CollectorGoogleCloudStorageAuthenticationMethod1$outboundSchema
771
+ .default("manual"),
772
+ type: CollectorGoogleCloudStorageType1$outboundSchema,
773
+ outputName: z.string().optional(),
774
+ bucket: z.string(),
775
+ path: z.string().optional(),
776
+ extractors: z.array(
777
+ z.lazy(() => CollectorGoogleCloudStorageExtractor1$outboundSchema),
778
+ ).optional(),
779
+ endpoint: z.string().optional(),
780
+ disableTimeFilter: z.boolean().default(false),
781
+ recurse: z.boolean().default(true),
782
+ maxBatchSize: z.number().default(10),
783
+ parquetChunkSizeMB: z.number().default(5),
784
+ parquetChunkDownloadTimeout: z.number().default(600),
785
+ serviceAccountCredentials: z.string().optional(),
786
+ textSecret: z.string().optional(),
787
+ });
788
+
789
+ export function collectorGoogleCloudStorageGoogleCloudStorage1ToJSON(
790
+ collectorGoogleCloudStorageGoogleCloudStorage1:
791
+ CollectorGoogleCloudStorageGoogleCloudStorage1,
792
+ ): string {
793
+ return JSON.stringify(
794
+ CollectorGoogleCloudStorageGoogleCloudStorage1$outboundSchema.parse(
795
+ collectorGoogleCloudStorageGoogleCloudStorage1,
796
+ ),
797
+ );
798
+ }
799
+ export function collectorGoogleCloudStorageGoogleCloudStorage1FromJSON(
800
+ jsonString: string,
801
+ ): SafeParseResult<
802
+ CollectorGoogleCloudStorageGoogleCloudStorage1,
803
+ SDKValidationError
804
+ > {
805
+ return safeParse(
806
+ jsonString,
807
+ (x) =>
808
+ CollectorGoogleCloudStorageGoogleCloudStorage1$inboundSchema.parse(
809
+ JSON.parse(x),
810
+ ),
811
+ `Failed to parse 'CollectorGoogleCloudStorageGoogleCloudStorage1' from JSON`,
812
+ );
813
+ }
814
+
815
+ /** @internal */
816
+ export const CollectorGoogleCloudStorage$inboundSchema: z.ZodType<
817
+ CollectorGoogleCloudStorage,
818
+ z.ZodTypeDef,
819
+ unknown
820
+ > = z.union([
821
+ z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage2$inboundSchema),
822
+ z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage3$inboundSchema),
823
+ z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage1$inboundSchema),
824
+ ]);
825
+ /** @internal */
826
+ export type CollectorGoogleCloudStorage$Outbound =
827
+ | CollectorGoogleCloudStorageGoogleCloudStorage2$Outbound
828
+ | CollectorGoogleCloudStorageGoogleCloudStorage3$Outbound
829
+ | CollectorGoogleCloudStorageGoogleCloudStorage1$Outbound;
830
+
187
831
  /** @internal */
188
832
  export const CollectorGoogleCloudStorage$outboundSchema: z.ZodType<
189
833
  CollectorGoogleCloudStorage$Outbound,
190
834
  z.ZodTypeDef,
191
835
  CollectorGoogleCloudStorage
192
- > = z.object({
193
- type: z.literal("google_cloud_storage"),
194
- outputName: z.string().optional(),
195
- bucket: z.string(),
196
- path: z.string().optional(),
197
- extractors: z.array(
198
- z.lazy(() => CollectorGoogleCloudStorageExtractor$outboundSchema),
199
- ).optional(),
200
- endpoint: z.string().optional(),
201
- disableTimeFilter: z.boolean().default(false),
202
- recurse: z.boolean().default(true),
203
- maxBatchSize: z.number().default(10),
204
- authType: CollectorGoogleCloudStorageAuthenticationMethod$outboundSchema
205
- .default("manual"),
206
- parquetChunkSizeMB: z.number().default(5),
207
- parquetChunkDownloadTimeout: z.number().default(600),
208
- });
836
+ > = z.union([
837
+ z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage2$outboundSchema),
838
+ z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage3$outboundSchema),
839
+ z.lazy(() => CollectorGoogleCloudStorageGoogleCloudStorage1$outboundSchema),
840
+ ]);
209
841
 
210
842
  export function collectorGoogleCloudStorageToJSON(
211
843
  collectorGoogleCloudStorage: CollectorGoogleCloudStorage,