cribl-control-plane 0.5.0-rc.8 → 0.5.0-rc.9
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/funcs/packsDelete.d.ts +1 -1
- package/dist/commonjs/funcs/packsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/packsDelete.js +1 -1
- package/dist/commonjs/funcs/packsDelete.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/azureblobcollectorconf.d.ts +364 -29
- package/dist/commonjs/models/azureblobcollectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/azureblobcollectorconf.js +241 -27
- package/dist/commonjs/models/azureblobcollectorconf.js.map +1 -1
- package/dist/commonjs/models/countedpackuninstallinfo.d.ts +15 -0
- package/dist/commonjs/models/countedpackuninstallinfo.d.ts.map +1 -0
- package/dist/commonjs/models/countedpackuninstallinfo.js +52 -0
- package/dist/commonjs/models/countedpackuninstallinfo.js.map +1 -0
- package/dist/commonjs/models/googlecloudstoragecollectorconf.d.ts +203 -27
- package/dist/commonjs/models/googlecloudstoragecollectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/googlecloudstoragecollectorconf.js +145 -28
- package/dist/commonjs/models/googlecloudstoragecollectorconf.js.map +1 -1
- package/dist/commonjs/models/healthcheckcollectorconf.d.ts +2322 -98
- package/dist/commonjs/models/healthcheckcollectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/healthcheckcollectorconf.js +1924 -66
- package/dist/commonjs/models/healthcheckcollectorconf.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/nodeprovidedinfo.d.ts +2 -2
- package/dist/commonjs/models/nodeprovidedinfo.d.ts.map +1 -1
- package/dist/commonjs/models/nodeprovidedinfo.js +2 -2
- package/dist/commonjs/models/nodeprovidedinfo.js.map +1 -1
- package/dist/commonjs/models/packuninstallinfo.d.ts +11 -0
- package/dist/commonjs/models/packuninstallinfo.d.ts.map +1 -0
- package/dist/commonjs/models/packuninstallinfo.js +51 -0
- package/dist/commonjs/models/packuninstallinfo.js.map +1 -0
- package/dist/commonjs/models/restcollectorconf.d.ts +4977 -138
- package/dist/commonjs/models/restcollectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/restcollectorconf.js +4670 -99
- package/dist/commonjs/models/restcollectorconf.js.map +1 -1
- package/dist/commonjs/models/s3collectorconf.d.ts +758 -29
- package/dist/commonjs/models/s3collectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/s3collectorconf.js +494 -32
- package/dist/commonjs/models/s3collectorconf.js.map +1 -1
- package/dist/commonjs/models/splunkcollectorconf.d.ts +1478 -66
- package/dist/commonjs/models/splunkcollectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/splunkcollectorconf.js +1150 -48
- package/dist/commonjs/models/splunkcollectorconf.js.map +1 -1
- package/dist/commonjs/sdk/packs.d.ts +1 -1
- package/dist/commonjs/sdk/packs.d.ts.map +1 -1
- package/dist/esm/funcs/packsDelete.d.ts +1 -1
- package/dist/esm/funcs/packsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/packsDelete.js +1 -1
- package/dist/esm/funcs/packsDelete.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/azureblobcollectorconf.d.ts +364 -29
- package/dist/esm/models/azureblobcollectorconf.d.ts.map +1 -1
- package/dist/esm/models/azureblobcollectorconf.js +222 -24
- package/dist/esm/models/azureblobcollectorconf.js.map +1 -1
- package/dist/esm/models/countedpackuninstallinfo.d.ts +15 -0
- package/dist/esm/models/countedpackuninstallinfo.d.ts.map +1 -0
- package/dist/esm/models/countedpackuninstallinfo.js +15 -0
- package/dist/esm/models/countedpackuninstallinfo.js.map +1 -0
- package/dist/esm/models/googlecloudstoragecollectorconf.d.ts +203 -27
- package/dist/esm/models/googlecloudstoragecollectorconf.d.ts.map +1 -1
- package/dist/esm/models/googlecloudstoragecollectorconf.js +132 -25
- package/dist/esm/models/googlecloudstoragecollectorconf.js.map +1 -1
- package/dist/esm/models/healthcheckcollectorconf.d.ts +2322 -98
- package/dist/esm/models/healthcheckcollectorconf.d.ts.map +1 -1
- package/dist/esm/models/healthcheckcollectorconf.js +1827 -59
- package/dist/esm/models/healthcheckcollectorconf.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/nodeprovidedinfo.d.ts +2 -2
- package/dist/esm/models/nodeprovidedinfo.d.ts.map +1 -1
- package/dist/esm/models/nodeprovidedinfo.js +2 -2
- package/dist/esm/models/nodeprovidedinfo.js.map +1 -1
- package/dist/esm/models/packuninstallinfo.d.ts +11 -0
- package/dist/esm/models/packuninstallinfo.d.ts.map +1 -0
- package/dist/esm/models/packuninstallinfo.js +14 -0
- package/dist/esm/models/packuninstallinfo.js.map +1 -0
- package/dist/esm/models/restcollectorconf.d.ts +4977 -138
- package/dist/esm/models/restcollectorconf.d.ts.map +1 -1
- package/dist/esm/models/restcollectorconf.js +4416 -86
- package/dist/esm/models/restcollectorconf.js.map +1 -1
- package/dist/esm/models/s3collectorconf.d.ts +758 -29
- package/dist/esm/models/s3collectorconf.d.ts.map +1 -1
- package/dist/esm/models/s3collectorconf.js +472 -29
- package/dist/esm/models/s3collectorconf.js.map +1 -1
- package/dist/esm/models/splunkcollectorconf.d.ts +1478 -66
- package/dist/esm/models/splunkcollectorconf.d.ts.map +1 -1
- package/dist/esm/models/splunkcollectorconf.js +1091 -41
- package/dist/esm/models/splunkcollectorconf.js.map +1 -1
- package/dist/esm/sdk/packs.d.ts +1 -1
- package/dist/esm/sdk/packs.d.ts.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/packsDelete.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/azureblobcollectorconf.ts +761 -56
- package/src/models/countedpackuninstallinfo.ts +40 -0
- package/src/models/googlecloudstoragecollectorconf.ts +464 -63
- package/src/models/healthcheckcollectorconf.ts +5473 -211
- package/src/models/index.ts +2 -0
- package/src/models/nodeprovidedinfo.ts +4 -4
- package/src/models/packuninstallinfo.ts +33 -0
- package/src/models/restcollectorconf.ts +12333 -239
- package/src/models/s3collectorconf.ts +1595 -180
- package/src/models/splunkcollectorconf.ts +3304 -205
- package/src/sdk/packs.ts +1 -1
|
@@ -4,28 +4,178 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../types/enums.js";
|
|
8
|
-
import { OpenEnum } from "../types/enums.js";
|
|
9
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
8
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
export type AzureBlobAuthTypeClientCertCertificate = {
|
|
11
|
+
/**
|
|
12
|
+
* The certificate you registered as credentials for your app in the Azure portal
|
|
13
|
+
*/
|
|
14
|
+
certificateName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type AzureBlobAuthTypeClientCertExtractor = {
|
|
18
|
+
/**
|
|
19
|
+
* A token from the template path, such as epoch
|
|
20
|
+
*/
|
|
21
|
+
key: string;
|
|
22
|
+
/**
|
|
23
|
+
* A JavaScript expression that accesses a corresponding <token> through the value variable and evaluates the token to populate event fields. Example: {date: new Date(+value*1000)}
|
|
24
|
+
*/
|
|
25
|
+
expression: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type AzureBlobAuthTypeClientCert = {
|
|
29
|
+
/**
|
|
30
|
+
* Enter authentication data directly, or select a secret referencing your auth data
|
|
31
|
+
*/
|
|
32
|
+
authType: "clientCert";
|
|
33
|
+
/**
|
|
34
|
+
* The name of your Azure storage account
|
|
35
|
+
*/
|
|
36
|
+
storageAccountName: string;
|
|
37
|
+
/**
|
|
38
|
+
* The service principal's tenant ID
|
|
39
|
+
*/
|
|
40
|
+
tenantId: string;
|
|
41
|
+
/**
|
|
42
|
+
* The service principal's client ID
|
|
43
|
+
*/
|
|
44
|
+
clientId: string;
|
|
45
|
+
certificate: AzureBlobAuthTypeClientCertCertificate;
|
|
46
|
+
/**
|
|
47
|
+
* The Azure cloud to use. Defaults to Azure Public Cloud.
|
|
48
|
+
*/
|
|
49
|
+
azureCloud?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The endpoint suffix for the service URL. Takes precedence over the Azure Cloud setting. Defaults to core.windows.net.
|
|
52
|
+
*/
|
|
53
|
+
endpointSuffix?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* An optional predefined Destination that will be used to auto-populate Collector settings
|
|
56
|
+
*/
|
|
57
|
+
outputName?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Container 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}
|
|
60
|
+
*/
|
|
61
|
+
containerName: string;
|
|
62
|
+
/**
|
|
63
|
+
* The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
|
|
64
|
+
*/
|
|
65
|
+
path?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Extractors allow use of 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.
|
|
68
|
+
*/
|
|
69
|
+
extractors?: Array<AzureBlobAuthTypeClientCertExtractor> | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Recurse through subdirectories
|
|
72
|
+
*/
|
|
73
|
+
recurse?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Include Azure Blob metadata in collected events. In each event, metadata will be located at: __collectible.metadata.
|
|
76
|
+
*/
|
|
77
|
+
includeMetadata?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Include Azure Blob tags in collected events. In each event, tags will be located at: __collectible.tags. Disable this feature when using a Shared Access Signature Connection String, to prevent errors.
|
|
80
|
+
*/
|
|
81
|
+
includeTags?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Maximum number of metadata objects to batch before recording as results
|
|
84
|
+
*/
|
|
85
|
+
maxBatchSize?: number | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Maximum file size for each Parquet chunk
|
|
88
|
+
*/
|
|
89
|
+
parquetChunkSizeMB?: number | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
|
|
92
|
+
*/
|
|
93
|
+
parquetChunkDownloadTimeout?: number | undefined;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type AzureBlobAuthTypeClientSecretExtractor = {
|
|
97
|
+
/**
|
|
98
|
+
* A token from the template path, such as epoch
|
|
99
|
+
*/
|
|
100
|
+
key: string;
|
|
101
|
+
/**
|
|
102
|
+
* A JavaScript expression that accesses a corresponding <token> through the value variable and evaluates the token to populate event fields. Example: {date: new Date(+value*1000)}
|
|
103
|
+
*/
|
|
104
|
+
expression: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type AzureBlobAuthTypeClientSecret = {
|
|
108
|
+
/**
|
|
109
|
+
* Enter authentication data directly, or select a secret referencing your auth data
|
|
110
|
+
*/
|
|
111
|
+
authType: "clientSecret";
|
|
112
|
+
/**
|
|
113
|
+
* The name of your Azure storage account
|
|
114
|
+
*/
|
|
115
|
+
storageAccountName: string;
|
|
116
|
+
/**
|
|
117
|
+
* The service principal's tenant ID
|
|
118
|
+
*/
|
|
119
|
+
tenantId: string;
|
|
120
|
+
/**
|
|
121
|
+
* The service principal's client ID
|
|
122
|
+
*/
|
|
123
|
+
clientId: string;
|
|
124
|
+
/**
|
|
125
|
+
* Text secret containing the client secret
|
|
126
|
+
*/
|
|
127
|
+
clientTextSecret: string;
|
|
128
|
+
/**
|
|
129
|
+
* The endpoint suffix for the service URL. Takes precedence over the Azure Cloud setting. Defaults to core.windows.net.
|
|
130
|
+
*/
|
|
131
|
+
endpointSuffix?: string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* The Azure cloud to use. Defaults to Azure Public Cloud.
|
|
134
|
+
*/
|
|
135
|
+
azureCloud?: string | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* An optional predefined Destination that will be used to auto-populate Collector settings
|
|
138
|
+
*/
|
|
139
|
+
outputName?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Container 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}
|
|
142
|
+
*/
|
|
143
|
+
containerName: string;
|
|
144
|
+
/**
|
|
145
|
+
* The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
|
|
146
|
+
*/
|
|
147
|
+
path?: string | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Extractors allow use of 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.
|
|
150
|
+
*/
|
|
151
|
+
extractors?: Array<AzureBlobAuthTypeClientSecretExtractor> | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Recurse through subdirectories
|
|
154
|
+
*/
|
|
155
|
+
recurse?: boolean | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Include Azure Blob metadata in collected events. In each event, metadata will be located at: __collectible.metadata.
|
|
158
|
+
*/
|
|
159
|
+
includeMetadata?: boolean | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Include Azure Blob tags in collected events. In each event, tags will be located at: __collectible.tags. Disable this feature when using a Shared Access Signature Connection String, to prevent errors.
|
|
162
|
+
*/
|
|
163
|
+
includeTags?: boolean | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Maximum number of metadata objects to batch before recording as results
|
|
166
|
+
*/
|
|
167
|
+
maxBatchSize?: number | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* Maximum file size for each Parquet chunk
|
|
170
|
+
*/
|
|
171
|
+
parquetChunkSizeMB?: number | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
|
|
174
|
+
*/
|
|
175
|
+
parquetChunkDownloadTimeout?: number | undefined;
|
|
176
|
+
};
|
|
27
177
|
|
|
28
|
-
export type
|
|
178
|
+
export type AzureBlobAuthTypeSecretExtractor = {
|
|
29
179
|
/**
|
|
30
180
|
* A token from the template path, such as epoch
|
|
31
181
|
*/
|
|
@@ -36,15 +186,81 @@ export type AzureBlobCollectorConfExtractor = {
|
|
|
36
186
|
expression: string;
|
|
37
187
|
};
|
|
38
188
|
|
|
39
|
-
export type
|
|
189
|
+
export type AzureBlobAuthTypeSecret = {
|
|
190
|
+
/**
|
|
191
|
+
* Enter authentication data directly, or select a secret referencing your auth data
|
|
192
|
+
*/
|
|
193
|
+
authType: "secret";
|
|
194
|
+
/**
|
|
195
|
+
* Text secret
|
|
196
|
+
*/
|
|
197
|
+
textSecret: string;
|
|
40
198
|
/**
|
|
41
199
|
* An optional predefined Destination that will be used to auto-populate Collector settings
|
|
42
200
|
*/
|
|
43
201
|
outputName?: string | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Container 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}
|
|
204
|
+
*/
|
|
205
|
+
containerName: string;
|
|
206
|
+
/**
|
|
207
|
+
* The directory from which to collect data. Templating is supported, such as myDir/${datacenter}/${host}/${app}/. Time-based tokens are supported, such as myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/.
|
|
208
|
+
*/
|
|
209
|
+
path?: string | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Extractors allow use of 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.
|
|
212
|
+
*/
|
|
213
|
+
extractors?: Array<AzureBlobAuthTypeSecretExtractor> | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Recurse through subdirectories
|
|
216
|
+
*/
|
|
217
|
+
recurse?: boolean | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Include Azure Blob metadata in collected events. In each event, metadata will be located at: __collectible.metadata.
|
|
220
|
+
*/
|
|
221
|
+
includeMetadata?: boolean | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* Include Azure Blob tags in collected events. In each event, tags will be located at: __collectible.tags. Disable this feature when using a Shared Access Signature Connection String, to prevent errors.
|
|
224
|
+
*/
|
|
225
|
+
includeTags?: boolean | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Maximum number of metadata objects to batch before recording as results
|
|
228
|
+
*/
|
|
229
|
+
maxBatchSize?: number | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Maximum file size for each Parquet chunk
|
|
232
|
+
*/
|
|
233
|
+
parquetChunkSizeMB?: number | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* The maximum time allowed for downloading a Parquet chunk. Processing will abort if a chunk cannot be downloaded within the time specified.
|
|
236
|
+
*/
|
|
237
|
+
parquetChunkDownloadTimeout?: number | undefined;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export type AzureBlobAuthTypeManualExtractor = {
|
|
241
|
+
/**
|
|
242
|
+
* A token from the template path, such as epoch
|
|
243
|
+
*/
|
|
244
|
+
key: string;
|
|
245
|
+
/**
|
|
246
|
+
* A JavaScript expression that accesses a corresponding <token> through the value variable and evaluates the token to populate event fields. Example: {date: new Date(+value*1000)}
|
|
247
|
+
*/
|
|
248
|
+
expression: string;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export type AzureBlobAuthTypeManual = {
|
|
44
252
|
/**
|
|
45
253
|
* Enter authentication data directly, or select a secret referencing your auth data
|
|
46
254
|
*/
|
|
47
|
-
authType
|
|
255
|
+
authType: "manual";
|
|
256
|
+
/**
|
|
257
|
+
* Enter your Azure storage account Connection String. If left blank, Cribl Stream will fall back to env.AZURE_STORAGE_CONNECTION_STRING.
|
|
258
|
+
*/
|
|
259
|
+
connectionString: string;
|
|
260
|
+
/**
|
|
261
|
+
* An optional predefined Destination that will be used to auto-populate Collector settings
|
|
262
|
+
*/
|
|
263
|
+
outputName?: string | undefined;
|
|
48
264
|
/**
|
|
49
265
|
* Container 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}
|
|
50
266
|
*/
|
|
@@ -56,7 +272,7 @@ export type AzureBlobCollectorConf = {
|
|
|
56
272
|
/**
|
|
57
273
|
* Extractors allow use of 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.
|
|
58
274
|
*/
|
|
59
|
-
extractors?: Array<
|
|
275
|
+
extractors?: Array<AzureBlobAuthTypeManualExtractor> | undefined;
|
|
60
276
|
/**
|
|
61
277
|
* Recurse through subdirectories
|
|
62
278
|
*/
|
|
@@ -83,18 +299,58 @@ export type AzureBlobCollectorConf = {
|
|
|
83
299
|
parquetChunkDownloadTimeout?: number | undefined;
|
|
84
300
|
};
|
|
85
301
|
|
|
302
|
+
export type AzureBlobCollectorConf =
|
|
303
|
+
| AzureBlobAuthTypeManual
|
|
304
|
+
| AzureBlobAuthTypeSecret
|
|
305
|
+
| AzureBlobAuthTypeClientSecret
|
|
306
|
+
| AzureBlobAuthTypeClientCert;
|
|
307
|
+
|
|
86
308
|
/** @internal */
|
|
87
|
-
export const
|
|
88
|
-
|
|
89
|
-
|
|
309
|
+
export const AzureBlobAuthTypeClientCertCertificate$inboundSchema: z.ZodType<
|
|
310
|
+
AzureBlobAuthTypeClientCertCertificate,
|
|
311
|
+
z.ZodTypeDef,
|
|
312
|
+
unknown
|
|
313
|
+
> = z.object({
|
|
314
|
+
certificateName: z.string(),
|
|
315
|
+
});
|
|
90
316
|
/** @internal */
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
317
|
+
export type AzureBlobAuthTypeClientCertCertificate$Outbound = {
|
|
318
|
+
certificateName: string;
|
|
319
|
+
};
|
|
94
320
|
|
|
95
321
|
/** @internal */
|
|
96
|
-
export const
|
|
97
|
-
|
|
322
|
+
export const AzureBlobAuthTypeClientCertCertificate$outboundSchema: z.ZodType<
|
|
323
|
+
AzureBlobAuthTypeClientCertCertificate$Outbound,
|
|
324
|
+
z.ZodTypeDef,
|
|
325
|
+
AzureBlobAuthTypeClientCertCertificate
|
|
326
|
+
> = z.object({
|
|
327
|
+
certificateName: z.string(),
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
export function azureBlobAuthTypeClientCertCertificateToJSON(
|
|
331
|
+
azureBlobAuthTypeClientCertCertificate:
|
|
332
|
+
AzureBlobAuthTypeClientCertCertificate,
|
|
333
|
+
): string {
|
|
334
|
+
return JSON.stringify(
|
|
335
|
+
AzureBlobAuthTypeClientCertCertificate$outboundSchema.parse(
|
|
336
|
+
azureBlobAuthTypeClientCertCertificate,
|
|
337
|
+
),
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
export function azureBlobAuthTypeClientCertCertificateFromJSON(
|
|
341
|
+
jsonString: string,
|
|
342
|
+
): SafeParseResult<AzureBlobAuthTypeClientCertCertificate, SDKValidationError> {
|
|
343
|
+
return safeParse(
|
|
344
|
+
jsonString,
|
|
345
|
+
(x) =>
|
|
346
|
+
AzureBlobAuthTypeClientCertCertificate$inboundSchema.parse(JSON.parse(x)),
|
|
347
|
+
`Failed to parse 'AzureBlobAuthTypeClientCertCertificate' from JSON`,
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/** @internal */
|
|
352
|
+
export const AzureBlobAuthTypeClientCertExtractor$inboundSchema: z.ZodType<
|
|
353
|
+
AzureBlobAuthTypeClientCertExtractor,
|
|
98
354
|
z.ZodTypeDef,
|
|
99
355
|
unknown
|
|
100
356
|
> = z.object({
|
|
@@ -102,54 +358,110 @@ export const AzureBlobCollectorConfExtractor$inboundSchema: z.ZodType<
|
|
|
102
358
|
expression: z.string(),
|
|
103
359
|
});
|
|
104
360
|
/** @internal */
|
|
105
|
-
export type
|
|
361
|
+
export type AzureBlobAuthTypeClientCertExtractor$Outbound = {
|
|
106
362
|
key: string;
|
|
107
363
|
expression: string;
|
|
108
364
|
};
|
|
109
365
|
|
|
110
366
|
/** @internal */
|
|
111
|
-
export const
|
|
112
|
-
|
|
367
|
+
export const AzureBlobAuthTypeClientCertExtractor$outboundSchema: z.ZodType<
|
|
368
|
+
AzureBlobAuthTypeClientCertExtractor$Outbound,
|
|
113
369
|
z.ZodTypeDef,
|
|
114
|
-
|
|
370
|
+
AzureBlobAuthTypeClientCertExtractor
|
|
115
371
|
> = z.object({
|
|
116
372
|
key: z.string(),
|
|
117
373
|
expression: z.string(),
|
|
118
374
|
});
|
|
119
375
|
|
|
120
|
-
export function
|
|
121
|
-
|
|
376
|
+
export function azureBlobAuthTypeClientCertExtractorToJSON(
|
|
377
|
+
azureBlobAuthTypeClientCertExtractor: AzureBlobAuthTypeClientCertExtractor,
|
|
122
378
|
): string {
|
|
123
379
|
return JSON.stringify(
|
|
124
|
-
|
|
125
|
-
|
|
380
|
+
AzureBlobAuthTypeClientCertExtractor$outboundSchema.parse(
|
|
381
|
+
azureBlobAuthTypeClientCertExtractor,
|
|
126
382
|
),
|
|
127
383
|
);
|
|
128
384
|
}
|
|
129
|
-
export function
|
|
385
|
+
export function azureBlobAuthTypeClientCertExtractorFromJSON(
|
|
130
386
|
jsonString: string,
|
|
131
|
-
): SafeParseResult<
|
|
387
|
+
): SafeParseResult<AzureBlobAuthTypeClientCertExtractor, SDKValidationError> {
|
|
132
388
|
return safeParse(
|
|
133
389
|
jsonString,
|
|
134
|
-
(x) =>
|
|
135
|
-
|
|
390
|
+
(x) =>
|
|
391
|
+
AzureBlobAuthTypeClientCertExtractor$inboundSchema.parse(JSON.parse(x)),
|
|
392
|
+
`Failed to parse 'AzureBlobAuthTypeClientCertExtractor' from JSON`,
|
|
136
393
|
);
|
|
137
394
|
}
|
|
138
395
|
|
|
139
396
|
/** @internal */
|
|
140
|
-
export const
|
|
141
|
-
|
|
397
|
+
export const AzureBlobAuthTypeClientCert$inboundSchema: z.ZodType<
|
|
398
|
+
AzureBlobAuthTypeClientCert,
|
|
142
399
|
z.ZodTypeDef,
|
|
143
400
|
unknown
|
|
144
401
|
> = z.object({
|
|
402
|
+
authType: z.literal("clientCert"),
|
|
403
|
+
storageAccountName: z.string(),
|
|
404
|
+
tenantId: z.string(),
|
|
405
|
+
clientId: z.string(),
|
|
406
|
+
certificate: z.lazy(() =>
|
|
407
|
+
AzureBlobAuthTypeClientCertCertificate$inboundSchema
|
|
408
|
+
),
|
|
409
|
+
azureCloud: z.string().optional(),
|
|
410
|
+
endpointSuffix: z.string().optional(),
|
|
145
411
|
outputName: z.string().optional(),
|
|
146
|
-
|
|
147
|
-
|
|
412
|
+
containerName: z.string(),
|
|
413
|
+
path: z.string().optional(),
|
|
414
|
+
extractors: z.array(
|
|
415
|
+
z.lazy(() => AzureBlobAuthTypeClientCertExtractor$inboundSchema),
|
|
416
|
+
).optional(),
|
|
417
|
+
recurse: z.boolean().default(true),
|
|
418
|
+
includeMetadata: z.boolean().default(true),
|
|
419
|
+
includeTags: z.boolean().default(true),
|
|
420
|
+
maxBatchSize: z.number().default(10),
|
|
421
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
422
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
423
|
+
});
|
|
424
|
+
/** @internal */
|
|
425
|
+
export type AzureBlobAuthTypeClientCert$Outbound = {
|
|
426
|
+
authType: "clientCert";
|
|
427
|
+
storageAccountName: string;
|
|
428
|
+
tenantId: string;
|
|
429
|
+
clientId: string;
|
|
430
|
+
certificate: AzureBlobAuthTypeClientCertCertificate$Outbound;
|
|
431
|
+
azureCloud?: string | undefined;
|
|
432
|
+
endpointSuffix?: string | undefined;
|
|
433
|
+
outputName?: string | undefined;
|
|
434
|
+
containerName: string;
|
|
435
|
+
path?: string | undefined;
|
|
436
|
+
extractors?: Array<AzureBlobAuthTypeClientCertExtractor$Outbound> | undefined;
|
|
437
|
+
recurse: boolean;
|
|
438
|
+
includeMetadata: boolean;
|
|
439
|
+
includeTags: boolean;
|
|
440
|
+
maxBatchSize: number;
|
|
441
|
+
parquetChunkSizeMB: number;
|
|
442
|
+
parquetChunkDownloadTimeout: number;
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
/** @internal */
|
|
446
|
+
export const AzureBlobAuthTypeClientCert$outboundSchema: z.ZodType<
|
|
447
|
+
AzureBlobAuthTypeClientCert$Outbound,
|
|
448
|
+
z.ZodTypeDef,
|
|
449
|
+
AzureBlobAuthTypeClientCert
|
|
450
|
+
> = z.object({
|
|
451
|
+
authType: z.literal("clientCert"),
|
|
452
|
+
storageAccountName: z.string(),
|
|
453
|
+
tenantId: z.string(),
|
|
454
|
+
clientId: z.string(),
|
|
455
|
+
certificate: z.lazy(() =>
|
|
456
|
+
AzureBlobAuthTypeClientCertCertificate$outboundSchema
|
|
148
457
|
),
|
|
458
|
+
azureCloud: z.string().optional(),
|
|
459
|
+
endpointSuffix: z.string().optional(),
|
|
460
|
+
outputName: z.string().optional(),
|
|
149
461
|
containerName: z.string(),
|
|
150
462
|
path: z.string().optional(),
|
|
151
463
|
extractors: z.array(
|
|
152
|
-
z.lazy(() =>
|
|
464
|
+
z.lazy(() => AzureBlobAuthTypeClientCertExtractor$outboundSchema),
|
|
153
465
|
).optional(),
|
|
154
466
|
recurse: z.boolean().default(true),
|
|
155
467
|
includeMetadata: z.boolean().default(true),
|
|
@@ -158,13 +470,113 @@ export const AzureBlobCollectorConf$inboundSchema: z.ZodType<
|
|
|
158
470
|
parquetChunkSizeMB: z.number().default(5),
|
|
159
471
|
parquetChunkDownloadTimeout: z.number().default(600),
|
|
160
472
|
});
|
|
473
|
+
|
|
474
|
+
export function azureBlobAuthTypeClientCertToJSON(
|
|
475
|
+
azureBlobAuthTypeClientCert: AzureBlobAuthTypeClientCert,
|
|
476
|
+
): string {
|
|
477
|
+
return JSON.stringify(
|
|
478
|
+
AzureBlobAuthTypeClientCert$outboundSchema.parse(
|
|
479
|
+
azureBlobAuthTypeClientCert,
|
|
480
|
+
),
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
export function azureBlobAuthTypeClientCertFromJSON(
|
|
484
|
+
jsonString: string,
|
|
485
|
+
): SafeParseResult<AzureBlobAuthTypeClientCert, SDKValidationError> {
|
|
486
|
+
return safeParse(
|
|
487
|
+
jsonString,
|
|
488
|
+
(x) => AzureBlobAuthTypeClientCert$inboundSchema.parse(JSON.parse(x)),
|
|
489
|
+
`Failed to parse 'AzureBlobAuthTypeClientCert' from JSON`,
|
|
490
|
+
);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/** @internal */
|
|
494
|
+
export const AzureBlobAuthTypeClientSecretExtractor$inboundSchema: z.ZodType<
|
|
495
|
+
AzureBlobAuthTypeClientSecretExtractor,
|
|
496
|
+
z.ZodTypeDef,
|
|
497
|
+
unknown
|
|
498
|
+
> = z.object({
|
|
499
|
+
key: z.string(),
|
|
500
|
+
expression: z.string(),
|
|
501
|
+
});
|
|
502
|
+
/** @internal */
|
|
503
|
+
export type AzureBlobAuthTypeClientSecretExtractor$Outbound = {
|
|
504
|
+
key: string;
|
|
505
|
+
expression: string;
|
|
506
|
+
};
|
|
507
|
+
|
|
161
508
|
/** @internal */
|
|
162
|
-
export
|
|
509
|
+
export const AzureBlobAuthTypeClientSecretExtractor$outboundSchema: z.ZodType<
|
|
510
|
+
AzureBlobAuthTypeClientSecretExtractor$Outbound,
|
|
511
|
+
z.ZodTypeDef,
|
|
512
|
+
AzureBlobAuthTypeClientSecretExtractor
|
|
513
|
+
> = z.object({
|
|
514
|
+
key: z.string(),
|
|
515
|
+
expression: z.string(),
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
export function azureBlobAuthTypeClientSecretExtractorToJSON(
|
|
519
|
+
azureBlobAuthTypeClientSecretExtractor:
|
|
520
|
+
AzureBlobAuthTypeClientSecretExtractor,
|
|
521
|
+
): string {
|
|
522
|
+
return JSON.stringify(
|
|
523
|
+
AzureBlobAuthTypeClientSecretExtractor$outboundSchema.parse(
|
|
524
|
+
azureBlobAuthTypeClientSecretExtractor,
|
|
525
|
+
),
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
export function azureBlobAuthTypeClientSecretExtractorFromJSON(
|
|
529
|
+
jsonString: string,
|
|
530
|
+
): SafeParseResult<AzureBlobAuthTypeClientSecretExtractor, SDKValidationError> {
|
|
531
|
+
return safeParse(
|
|
532
|
+
jsonString,
|
|
533
|
+
(x) =>
|
|
534
|
+
AzureBlobAuthTypeClientSecretExtractor$inboundSchema.parse(JSON.parse(x)),
|
|
535
|
+
`Failed to parse 'AzureBlobAuthTypeClientSecretExtractor' from JSON`,
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/** @internal */
|
|
540
|
+
export const AzureBlobAuthTypeClientSecret$inboundSchema: z.ZodType<
|
|
541
|
+
AzureBlobAuthTypeClientSecret,
|
|
542
|
+
z.ZodTypeDef,
|
|
543
|
+
unknown
|
|
544
|
+
> = z.object({
|
|
545
|
+
authType: z.literal("clientSecret"),
|
|
546
|
+
storageAccountName: z.string(),
|
|
547
|
+
tenantId: z.string(),
|
|
548
|
+
clientId: z.string(),
|
|
549
|
+
clientTextSecret: z.string(),
|
|
550
|
+
endpointSuffix: z.string().optional(),
|
|
551
|
+
azureCloud: z.string().default("azure"),
|
|
552
|
+
outputName: z.string().optional(),
|
|
553
|
+
containerName: z.string(),
|
|
554
|
+
path: z.string().optional(),
|
|
555
|
+
extractors: z.array(
|
|
556
|
+
z.lazy(() => AzureBlobAuthTypeClientSecretExtractor$inboundSchema),
|
|
557
|
+
).optional(),
|
|
558
|
+
recurse: z.boolean().default(true),
|
|
559
|
+
includeMetadata: z.boolean().default(true),
|
|
560
|
+
includeTags: z.boolean().default(true),
|
|
561
|
+
maxBatchSize: z.number().default(10),
|
|
562
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
563
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
564
|
+
});
|
|
565
|
+
/** @internal */
|
|
566
|
+
export type AzureBlobAuthTypeClientSecret$Outbound = {
|
|
567
|
+
authType: "clientSecret";
|
|
568
|
+
storageAccountName: string;
|
|
569
|
+
tenantId: string;
|
|
570
|
+
clientId: string;
|
|
571
|
+
clientTextSecret: string;
|
|
572
|
+
endpointSuffix?: string | undefined;
|
|
573
|
+
azureCloud: string;
|
|
163
574
|
outputName?: string | undefined;
|
|
164
|
-
authType: string;
|
|
165
575
|
containerName: string;
|
|
166
576
|
path?: string | undefined;
|
|
167
|
-
extractors?:
|
|
577
|
+
extractors?:
|
|
578
|
+
| Array<AzureBlobAuthTypeClientSecretExtractor$Outbound>
|
|
579
|
+
| undefined;
|
|
168
580
|
recurse: boolean;
|
|
169
581
|
includeMetadata: boolean;
|
|
170
582
|
includeTags: boolean;
|
|
@@ -174,19 +586,23 @@ export type AzureBlobCollectorConf$Outbound = {
|
|
|
174
586
|
};
|
|
175
587
|
|
|
176
588
|
/** @internal */
|
|
177
|
-
export const
|
|
178
|
-
|
|
589
|
+
export const AzureBlobAuthTypeClientSecret$outboundSchema: z.ZodType<
|
|
590
|
+
AzureBlobAuthTypeClientSecret$Outbound,
|
|
179
591
|
z.ZodTypeDef,
|
|
180
|
-
|
|
592
|
+
AzureBlobAuthTypeClientSecret
|
|
181
593
|
> = z.object({
|
|
594
|
+
authType: z.literal("clientSecret"),
|
|
595
|
+
storageAccountName: z.string(),
|
|
596
|
+
tenantId: z.string(),
|
|
597
|
+
clientId: z.string(),
|
|
598
|
+
clientTextSecret: z.string(),
|
|
599
|
+
endpointSuffix: z.string().optional(),
|
|
600
|
+
azureCloud: z.string().default("azure"),
|
|
182
601
|
outputName: z.string().optional(),
|
|
183
|
-
authType: AzureBlobCollectorConfAuthenticationMethod$outboundSchema.default(
|
|
184
|
-
"manual",
|
|
185
|
-
),
|
|
186
602
|
containerName: z.string(),
|
|
187
603
|
path: z.string().optional(),
|
|
188
604
|
extractors: z.array(
|
|
189
|
-
z.lazy(() =>
|
|
605
|
+
z.lazy(() => AzureBlobAuthTypeClientSecretExtractor$outboundSchema),
|
|
190
606
|
).optional(),
|
|
191
607
|
recurse: z.boolean().default(true),
|
|
192
608
|
includeMetadata: z.boolean().default(true),
|
|
@@ -196,6 +612,295 @@ export const AzureBlobCollectorConf$outboundSchema: z.ZodType<
|
|
|
196
612
|
parquetChunkDownloadTimeout: z.number().default(600),
|
|
197
613
|
});
|
|
198
614
|
|
|
615
|
+
export function azureBlobAuthTypeClientSecretToJSON(
|
|
616
|
+
azureBlobAuthTypeClientSecret: AzureBlobAuthTypeClientSecret,
|
|
617
|
+
): string {
|
|
618
|
+
return JSON.stringify(
|
|
619
|
+
AzureBlobAuthTypeClientSecret$outboundSchema.parse(
|
|
620
|
+
azureBlobAuthTypeClientSecret,
|
|
621
|
+
),
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
export function azureBlobAuthTypeClientSecretFromJSON(
|
|
625
|
+
jsonString: string,
|
|
626
|
+
): SafeParseResult<AzureBlobAuthTypeClientSecret, SDKValidationError> {
|
|
627
|
+
return safeParse(
|
|
628
|
+
jsonString,
|
|
629
|
+
(x) => AzureBlobAuthTypeClientSecret$inboundSchema.parse(JSON.parse(x)),
|
|
630
|
+
`Failed to parse 'AzureBlobAuthTypeClientSecret' from JSON`,
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/** @internal */
|
|
635
|
+
export const AzureBlobAuthTypeSecretExtractor$inboundSchema: z.ZodType<
|
|
636
|
+
AzureBlobAuthTypeSecretExtractor,
|
|
637
|
+
z.ZodTypeDef,
|
|
638
|
+
unknown
|
|
639
|
+
> = z.object({
|
|
640
|
+
key: z.string(),
|
|
641
|
+
expression: z.string(),
|
|
642
|
+
});
|
|
643
|
+
/** @internal */
|
|
644
|
+
export type AzureBlobAuthTypeSecretExtractor$Outbound = {
|
|
645
|
+
key: string;
|
|
646
|
+
expression: string;
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
/** @internal */
|
|
650
|
+
export const AzureBlobAuthTypeSecretExtractor$outboundSchema: z.ZodType<
|
|
651
|
+
AzureBlobAuthTypeSecretExtractor$Outbound,
|
|
652
|
+
z.ZodTypeDef,
|
|
653
|
+
AzureBlobAuthTypeSecretExtractor
|
|
654
|
+
> = z.object({
|
|
655
|
+
key: z.string(),
|
|
656
|
+
expression: z.string(),
|
|
657
|
+
});
|
|
658
|
+
|
|
659
|
+
export function azureBlobAuthTypeSecretExtractorToJSON(
|
|
660
|
+
azureBlobAuthTypeSecretExtractor: AzureBlobAuthTypeSecretExtractor,
|
|
661
|
+
): string {
|
|
662
|
+
return JSON.stringify(
|
|
663
|
+
AzureBlobAuthTypeSecretExtractor$outboundSchema.parse(
|
|
664
|
+
azureBlobAuthTypeSecretExtractor,
|
|
665
|
+
),
|
|
666
|
+
);
|
|
667
|
+
}
|
|
668
|
+
export function azureBlobAuthTypeSecretExtractorFromJSON(
|
|
669
|
+
jsonString: string,
|
|
670
|
+
): SafeParseResult<AzureBlobAuthTypeSecretExtractor, SDKValidationError> {
|
|
671
|
+
return safeParse(
|
|
672
|
+
jsonString,
|
|
673
|
+
(x) => AzureBlobAuthTypeSecretExtractor$inboundSchema.parse(JSON.parse(x)),
|
|
674
|
+
`Failed to parse 'AzureBlobAuthTypeSecretExtractor' from JSON`,
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/** @internal */
|
|
679
|
+
export const AzureBlobAuthTypeSecret$inboundSchema: z.ZodType<
|
|
680
|
+
AzureBlobAuthTypeSecret,
|
|
681
|
+
z.ZodTypeDef,
|
|
682
|
+
unknown
|
|
683
|
+
> = z.object({
|
|
684
|
+
authType: z.literal("secret"),
|
|
685
|
+
textSecret: z.string(),
|
|
686
|
+
outputName: z.string().optional(),
|
|
687
|
+
containerName: z.string(),
|
|
688
|
+
path: z.string().optional(),
|
|
689
|
+
extractors: z.array(
|
|
690
|
+
z.lazy(() => AzureBlobAuthTypeSecretExtractor$inboundSchema),
|
|
691
|
+
).optional(),
|
|
692
|
+
recurse: z.boolean().default(true),
|
|
693
|
+
includeMetadata: z.boolean().default(true),
|
|
694
|
+
includeTags: z.boolean().default(true),
|
|
695
|
+
maxBatchSize: z.number().default(10),
|
|
696
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
697
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
698
|
+
});
|
|
699
|
+
/** @internal */
|
|
700
|
+
export type AzureBlobAuthTypeSecret$Outbound = {
|
|
701
|
+
authType: "secret";
|
|
702
|
+
textSecret: string;
|
|
703
|
+
outputName?: string | undefined;
|
|
704
|
+
containerName: string;
|
|
705
|
+
path?: string | undefined;
|
|
706
|
+
extractors?: Array<AzureBlobAuthTypeSecretExtractor$Outbound> | undefined;
|
|
707
|
+
recurse: boolean;
|
|
708
|
+
includeMetadata: boolean;
|
|
709
|
+
includeTags: boolean;
|
|
710
|
+
maxBatchSize: number;
|
|
711
|
+
parquetChunkSizeMB: number;
|
|
712
|
+
parquetChunkDownloadTimeout: number;
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
/** @internal */
|
|
716
|
+
export const AzureBlobAuthTypeSecret$outboundSchema: z.ZodType<
|
|
717
|
+
AzureBlobAuthTypeSecret$Outbound,
|
|
718
|
+
z.ZodTypeDef,
|
|
719
|
+
AzureBlobAuthTypeSecret
|
|
720
|
+
> = z.object({
|
|
721
|
+
authType: z.literal("secret"),
|
|
722
|
+
textSecret: z.string(),
|
|
723
|
+
outputName: z.string().optional(),
|
|
724
|
+
containerName: z.string(),
|
|
725
|
+
path: z.string().optional(),
|
|
726
|
+
extractors: z.array(
|
|
727
|
+
z.lazy(() => AzureBlobAuthTypeSecretExtractor$outboundSchema),
|
|
728
|
+
).optional(),
|
|
729
|
+
recurse: z.boolean().default(true),
|
|
730
|
+
includeMetadata: z.boolean().default(true),
|
|
731
|
+
includeTags: z.boolean().default(true),
|
|
732
|
+
maxBatchSize: z.number().default(10),
|
|
733
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
734
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
735
|
+
});
|
|
736
|
+
|
|
737
|
+
export function azureBlobAuthTypeSecretToJSON(
|
|
738
|
+
azureBlobAuthTypeSecret: AzureBlobAuthTypeSecret,
|
|
739
|
+
): string {
|
|
740
|
+
return JSON.stringify(
|
|
741
|
+
AzureBlobAuthTypeSecret$outboundSchema.parse(azureBlobAuthTypeSecret),
|
|
742
|
+
);
|
|
743
|
+
}
|
|
744
|
+
export function azureBlobAuthTypeSecretFromJSON(
|
|
745
|
+
jsonString: string,
|
|
746
|
+
): SafeParseResult<AzureBlobAuthTypeSecret, SDKValidationError> {
|
|
747
|
+
return safeParse(
|
|
748
|
+
jsonString,
|
|
749
|
+
(x) => AzureBlobAuthTypeSecret$inboundSchema.parse(JSON.parse(x)),
|
|
750
|
+
`Failed to parse 'AzureBlobAuthTypeSecret' from JSON`,
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/** @internal */
|
|
755
|
+
export const AzureBlobAuthTypeManualExtractor$inboundSchema: z.ZodType<
|
|
756
|
+
AzureBlobAuthTypeManualExtractor,
|
|
757
|
+
z.ZodTypeDef,
|
|
758
|
+
unknown
|
|
759
|
+
> = z.object({
|
|
760
|
+
key: z.string(),
|
|
761
|
+
expression: z.string(),
|
|
762
|
+
});
|
|
763
|
+
/** @internal */
|
|
764
|
+
export type AzureBlobAuthTypeManualExtractor$Outbound = {
|
|
765
|
+
key: string;
|
|
766
|
+
expression: string;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
/** @internal */
|
|
770
|
+
export const AzureBlobAuthTypeManualExtractor$outboundSchema: z.ZodType<
|
|
771
|
+
AzureBlobAuthTypeManualExtractor$Outbound,
|
|
772
|
+
z.ZodTypeDef,
|
|
773
|
+
AzureBlobAuthTypeManualExtractor
|
|
774
|
+
> = z.object({
|
|
775
|
+
key: z.string(),
|
|
776
|
+
expression: z.string(),
|
|
777
|
+
});
|
|
778
|
+
|
|
779
|
+
export function azureBlobAuthTypeManualExtractorToJSON(
|
|
780
|
+
azureBlobAuthTypeManualExtractor: AzureBlobAuthTypeManualExtractor,
|
|
781
|
+
): string {
|
|
782
|
+
return JSON.stringify(
|
|
783
|
+
AzureBlobAuthTypeManualExtractor$outboundSchema.parse(
|
|
784
|
+
azureBlobAuthTypeManualExtractor,
|
|
785
|
+
),
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
export function azureBlobAuthTypeManualExtractorFromJSON(
|
|
789
|
+
jsonString: string,
|
|
790
|
+
): SafeParseResult<AzureBlobAuthTypeManualExtractor, SDKValidationError> {
|
|
791
|
+
return safeParse(
|
|
792
|
+
jsonString,
|
|
793
|
+
(x) => AzureBlobAuthTypeManualExtractor$inboundSchema.parse(JSON.parse(x)),
|
|
794
|
+
`Failed to parse 'AzureBlobAuthTypeManualExtractor' from JSON`,
|
|
795
|
+
);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/** @internal */
|
|
799
|
+
export const AzureBlobAuthTypeManual$inboundSchema: z.ZodType<
|
|
800
|
+
AzureBlobAuthTypeManual,
|
|
801
|
+
z.ZodTypeDef,
|
|
802
|
+
unknown
|
|
803
|
+
> = z.object({
|
|
804
|
+
authType: z.literal("manual"),
|
|
805
|
+
connectionString: z.string(),
|
|
806
|
+
outputName: z.string().optional(),
|
|
807
|
+
containerName: z.string(),
|
|
808
|
+
path: z.string().optional(),
|
|
809
|
+
extractors: z.array(
|
|
810
|
+
z.lazy(() => AzureBlobAuthTypeManualExtractor$inboundSchema),
|
|
811
|
+
).optional(),
|
|
812
|
+
recurse: z.boolean().default(true),
|
|
813
|
+
includeMetadata: z.boolean().default(true),
|
|
814
|
+
includeTags: z.boolean().default(true),
|
|
815
|
+
maxBatchSize: z.number().default(10),
|
|
816
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
817
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
818
|
+
});
|
|
819
|
+
/** @internal */
|
|
820
|
+
export type AzureBlobAuthTypeManual$Outbound = {
|
|
821
|
+
authType: "manual";
|
|
822
|
+
connectionString: string;
|
|
823
|
+
outputName?: string | undefined;
|
|
824
|
+
containerName: string;
|
|
825
|
+
path?: string | undefined;
|
|
826
|
+
extractors?: Array<AzureBlobAuthTypeManualExtractor$Outbound> | undefined;
|
|
827
|
+
recurse: boolean;
|
|
828
|
+
includeMetadata: boolean;
|
|
829
|
+
includeTags: boolean;
|
|
830
|
+
maxBatchSize: number;
|
|
831
|
+
parquetChunkSizeMB: number;
|
|
832
|
+
parquetChunkDownloadTimeout: number;
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
/** @internal */
|
|
836
|
+
export const AzureBlobAuthTypeManual$outboundSchema: z.ZodType<
|
|
837
|
+
AzureBlobAuthTypeManual$Outbound,
|
|
838
|
+
z.ZodTypeDef,
|
|
839
|
+
AzureBlobAuthTypeManual
|
|
840
|
+
> = z.object({
|
|
841
|
+
authType: z.literal("manual"),
|
|
842
|
+
connectionString: z.string(),
|
|
843
|
+
outputName: z.string().optional(),
|
|
844
|
+
containerName: z.string(),
|
|
845
|
+
path: z.string().optional(),
|
|
846
|
+
extractors: z.array(
|
|
847
|
+
z.lazy(() => AzureBlobAuthTypeManualExtractor$outboundSchema),
|
|
848
|
+
).optional(),
|
|
849
|
+
recurse: z.boolean().default(true),
|
|
850
|
+
includeMetadata: z.boolean().default(true),
|
|
851
|
+
includeTags: z.boolean().default(true),
|
|
852
|
+
maxBatchSize: z.number().default(10),
|
|
853
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
854
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
855
|
+
});
|
|
856
|
+
|
|
857
|
+
export function azureBlobAuthTypeManualToJSON(
|
|
858
|
+
azureBlobAuthTypeManual: AzureBlobAuthTypeManual,
|
|
859
|
+
): string {
|
|
860
|
+
return JSON.stringify(
|
|
861
|
+
AzureBlobAuthTypeManual$outboundSchema.parse(azureBlobAuthTypeManual),
|
|
862
|
+
);
|
|
863
|
+
}
|
|
864
|
+
export function azureBlobAuthTypeManualFromJSON(
|
|
865
|
+
jsonString: string,
|
|
866
|
+
): SafeParseResult<AzureBlobAuthTypeManual, SDKValidationError> {
|
|
867
|
+
return safeParse(
|
|
868
|
+
jsonString,
|
|
869
|
+
(x) => AzureBlobAuthTypeManual$inboundSchema.parse(JSON.parse(x)),
|
|
870
|
+
`Failed to parse 'AzureBlobAuthTypeManual' from JSON`,
|
|
871
|
+
);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/** @internal */
|
|
875
|
+
export const AzureBlobCollectorConf$inboundSchema: z.ZodType<
|
|
876
|
+
AzureBlobCollectorConf,
|
|
877
|
+
z.ZodTypeDef,
|
|
878
|
+
unknown
|
|
879
|
+
> = z.union([
|
|
880
|
+
z.lazy(() => AzureBlobAuthTypeManual$inboundSchema),
|
|
881
|
+
z.lazy(() => AzureBlobAuthTypeSecret$inboundSchema),
|
|
882
|
+
z.lazy(() => AzureBlobAuthTypeClientSecret$inboundSchema),
|
|
883
|
+
z.lazy(() => AzureBlobAuthTypeClientCert$inboundSchema),
|
|
884
|
+
]);
|
|
885
|
+
/** @internal */
|
|
886
|
+
export type AzureBlobCollectorConf$Outbound =
|
|
887
|
+
| AzureBlobAuthTypeManual$Outbound
|
|
888
|
+
| AzureBlobAuthTypeSecret$Outbound
|
|
889
|
+
| AzureBlobAuthTypeClientSecret$Outbound
|
|
890
|
+
| AzureBlobAuthTypeClientCert$Outbound;
|
|
891
|
+
|
|
892
|
+
/** @internal */
|
|
893
|
+
export const AzureBlobCollectorConf$outboundSchema: z.ZodType<
|
|
894
|
+
AzureBlobCollectorConf$Outbound,
|
|
895
|
+
z.ZodTypeDef,
|
|
896
|
+
AzureBlobCollectorConf
|
|
897
|
+
> = z.union([
|
|
898
|
+
z.lazy(() => AzureBlobAuthTypeManual$outboundSchema),
|
|
899
|
+
z.lazy(() => AzureBlobAuthTypeSecret$outboundSchema),
|
|
900
|
+
z.lazy(() => AzureBlobAuthTypeClientSecret$outboundSchema),
|
|
901
|
+
z.lazy(() => AzureBlobAuthTypeClientCert$outboundSchema),
|
|
902
|
+
]);
|
|
903
|
+
|
|
199
904
|
export function azureBlobCollectorConfToJSON(
|
|
200
905
|
azureBlobCollectorConf: AzureBlobCollectorConf,
|
|
201
906
|
): string {
|