@nxtedition/types 23.0.24 → 23.0.25

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.
@@ -1,11 +1,11 @@
1
1
  import __typia from "typia";
2
2
  export const isConnectionRecord = input => {
3
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
3
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
4
4
  const $io1 = input => "string" === typeof input.content;
5
5
  const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
6
6
  const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
7
7
  const $iu0 = input => (() => {
8
- if ("file" === input.type)
8
+ if (undefined !== input.protocol)
9
9
  return $io0(input);
10
10
  else if ("reuters" === input.type)
11
11
  return $io2(input);
@@ -18,12 +18,12 @@ export const isConnectionRecord = input => {
18
18
  };
19
19
  export const assertConnectionRecord = (input, errorFactory) => {
20
20
  const __is = input => {
21
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
21
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
22
22
  const $io1 = input => "string" === typeof input.content;
23
23
  const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
24
24
  const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
25
25
  const $iu0 = input => (() => {
26
- if ("file" === input.type)
26
+ if (undefined !== input.protocol)
27
27
  return $io0(input);
28
28
  else if ("reuters" === input.type)
29
29
  return $io2(input);
@@ -37,21 +37,25 @@ export const assertConnectionRecord = (input, errorFactory) => {
37
37
  if (false === __is(input))
38
38
  ((input, _path, _exceptionable = true) => {
39
39
  const $guard = __typia.createAssert.guard;
40
- const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
40
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
41
+ path: _path + ".protocol",
42
+ expected: "\"s3\"",
43
+ value: input.protocol
44
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
45
+ path: _path + ".bucket",
46
+ expected: "(string | undefined)",
47
+ value: input.bucket
48
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
41
49
  path: _path + ".type",
42
50
  expected: "\"file\"",
43
51
  value: input.type
44
- }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
45
- path: _path + ".protocol",
46
- expected: "string",
47
- value: input.protocol
48
52
  }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
49
53
  path: _path + ".host",
50
54
  expected: "(string | undefined)",
51
55
  value: input.host
52
- }, errorFactory)) && (undefined === input.port || "number" === typeof input.port || $guard(_exceptionable, {
56
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
53
57
  path: _path + ".port",
54
- expected: "(number | undefined)",
58
+ expected: "(number | string | undefined)",
55
59
  value: input.port
56
60
  }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
57
61
  path: _path + ".ignoreMissing",
@@ -73,10 +77,6 @@ export const assertConnectionRecord = (input, errorFactory) => {
73
77
  path: _path + ".listConcurrency",
74
78
  expected: "(number | undefined)",
75
79
  value: input.listConcurrency
76
- }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
77
- path: _path + ".bucket",
78
- expected: "(string | undefined)",
79
- value: input.bucket
80
80
  }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
81
81
  path: _path + ".metafile",
82
82
  expected: "(__type | undefined)",
@@ -138,7 +138,7 @@ export const assertConnectionRecord = (input, errorFactory) => {
138
138
  value: input.userNotificationsEnabled
139
139
  }, errorFactory));
140
140
  const $au0 = (input, _path, _exceptionable = true) => (() => {
141
- if ("file" === input.type)
141
+ if (undefined !== input.protocol)
142
142
  return $ao0(input, _path, true && _exceptionable);
143
143
  else if ("reuters" === input.type)
144
144
  return $ao2(input, _path, true && _exceptionable);
@@ -147,34 +147,43 @@ export const assertConnectionRecord = (input, errorFactory) => {
147
147
  else
148
148
  return $guard(_exceptionable, {
149
149
  path: _path,
150
- expected: "(FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
150
+ expected: "(FilePublishConnectionS3Record | ReutersConnectionRecord | FacebookConnectionRecord)",
151
151
  value: input
152
152
  }, errorFactory);
153
153
  })();
154
154
  return ("object" === typeof input && null !== input || $guard(true, {
155
155
  path: _path + "",
156
- expected: "(FacebookConnectionRecord | FilePublishConnectionRecord | ReutersConnectionRecord)",
156
+ expected: "(FacebookConnectionRecord | FilePublishConnectionS3Record | ReutersConnectionRecord)",
157
157
  value: input
158
158
  }, errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
159
159
  path: _path + "",
160
- expected: "(FacebookConnectionRecord | FilePublishConnectionRecord | ReutersConnectionRecord)",
160
+ expected: "(FacebookConnectionRecord | FilePublishConnectionS3Record | ReutersConnectionRecord)",
161
161
  value: input
162
162
  }, errorFactory);
163
163
  })(input, "$input", true);
164
164
  return input;
165
165
  };
166
166
  export const randomConnectionRecord = generator => {
167
- const $generator = __typia.createRandom.generator;
168
167
  const $pick = __typia.createRandom.pick;
168
+ const $generator = __typia.createRandom.generator;
169
169
  const $ro0 = (_recursive = false, _depth = 0) => ({
170
+ protocol: "s3",
171
+ client: $pick([
172
+ () => "any type used...",
173
+ () => undefined
174
+ ])(),
175
+ bucket: $pick([
176
+ () => undefined,
177
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
178
+ ])(),
170
179
  type: "file",
171
- protocol: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
172
180
  host: $pick([
173
181
  () => undefined,
174
182
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
175
183
  ])(),
176
184
  port: $pick([
177
185
  () => undefined,
186
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
178
187
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
179
188
  ])(),
180
189
  ignoreMissing: $pick([
@@ -197,14 +206,6 @@ export const randomConnectionRecord = generator => {
197
206
  () => undefined,
198
207
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
199
208
  ])(),
200
- client: $pick([
201
- () => "any type used...",
202
- () => undefined
203
- ])(),
204
- bucket: $pick([
205
- () => undefined,
206
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
207
- ])(),
208
209
  metafile: $pick([
209
210
  () => undefined,
210
211
  () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
@@ -255,12 +256,12 @@ export const randomConnectionRecord = generator => {
255
256
  };
256
257
  export const assertGuardConnectionRecord = (input, errorFactory) => {
257
258
  const __is = input => {
258
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
259
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
259
260
  const $io1 = input => "string" === typeof input.content;
260
261
  const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
261
262
  const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
262
263
  const $iu0 = input => (() => {
263
- if ("file" === input.type)
264
+ if (undefined !== input.protocol)
264
265
  return $io0(input);
265
266
  else if ("reuters" === input.type)
266
267
  return $io2(input);
@@ -274,21 +275,25 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
274
275
  if (false === __is(input))
275
276
  ((input, _path, _exceptionable = true) => {
276
277
  const $guard = __typia.createAssertGuard.guard;
277
- const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
278
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
279
+ path: _path + ".protocol",
280
+ expected: "\"s3\"",
281
+ value: input.protocol
282
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
283
+ path: _path + ".bucket",
284
+ expected: "(string | undefined)",
285
+ value: input.bucket
286
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
278
287
  path: _path + ".type",
279
288
  expected: "\"file\"",
280
289
  value: input.type
281
- }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
282
- path: _path + ".protocol",
283
- expected: "string",
284
- value: input.protocol
285
290
  }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
286
291
  path: _path + ".host",
287
292
  expected: "(string | undefined)",
288
293
  value: input.host
289
- }, errorFactory)) && (undefined === input.port || "number" === typeof input.port || $guard(_exceptionable, {
294
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
290
295
  path: _path + ".port",
291
- expected: "(number | undefined)",
296
+ expected: "(number | string | undefined)",
292
297
  value: input.port
293
298
  }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
294
299
  path: _path + ".ignoreMissing",
@@ -310,10 +315,6 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
310
315
  path: _path + ".listConcurrency",
311
316
  expected: "(number | undefined)",
312
317
  value: input.listConcurrency
313
- }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
314
- path: _path + ".bucket",
315
- expected: "(string | undefined)",
316
- value: input.bucket
317
318
  }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
318
319
  path: _path + ".metafile",
319
320
  expected: "(__type | undefined)",
@@ -375,7 +376,7 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
375
376
  value: input.userNotificationsEnabled
376
377
  }, errorFactory));
377
378
  const $au0 = (input, _path, _exceptionable = true) => (() => {
378
- if ("file" === input.type)
379
+ if (undefined !== input.protocol)
379
380
  return $ao0(input, _path, true && _exceptionable);
380
381
  else if ("reuters" === input.type)
381
382
  return $ao2(input, _path, true && _exceptionable);
@@ -384,29 +385,47 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
384
385
  else
385
386
  return $guard(_exceptionable, {
386
387
  path: _path,
387
- expected: "(FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
388
+ expected: "(FilePublishConnectionS3Record | ReutersConnectionRecord | FacebookConnectionRecord)",
388
389
  value: input
389
390
  }, errorFactory);
390
391
  })();
391
392
  return ("object" === typeof input && null !== input || $guard(true, {
392
393
  path: _path + "",
393
- expected: "(FacebookConnectionRecord | FilePublishConnectionRecord | ReutersConnectionRecord)",
394
+ expected: "(FacebookConnectionRecord | FilePublishConnectionS3Record | ReutersConnectionRecord)",
394
395
  value: input
395
396
  }, errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
396
397
  path: _path + "",
397
- expected: "(FacebookConnectionRecord | FilePublishConnectionRecord | ReutersConnectionRecord)",
398
+ expected: "(FacebookConnectionRecord | FilePublishConnectionS3Record | ReutersConnectionRecord)",
398
399
  value: input
399
400
  }, errorFactory);
400
401
  })(input, "$input", true);
401
402
  };
402
403
  export const stringifyConnectionRecord = input => {
403
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
404
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
404
405
  const $io1 = input => "string" === typeof input.content;
405
406
  const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
406
407
  const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
407
408
  const $string = __typia.json.createStringify.string;
408
409
  const $throws = __typia.json.createStringify.throws;
409
- const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
410
+ const $so0 = input => `{${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
411
+ if ("string" === typeof input.port)
412
+ return $string(input.port);
413
+ if ("number" === typeof input.port)
414
+ return input.port;
415
+ $throws({
416
+ expected: "(number | string | undefined)",
417
+ value: input.port
418
+ });
419
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${(() => {
420
+ if ("string" === typeof input.protocol)
421
+ return $string(input.protocol);
422
+ if ("string" === typeof input.protocol)
423
+ return "\"" + input.protocol + "\"";
424
+ $throws({
425
+ expected: "\"s3\"",
426
+ value: input.protocol
427
+ });
428
+ })()},"type":${(() => {
410
429
  if ("string" === typeof input.type)
411
430
  return $string(input.type);
412
431
  if ("string" === typeof input.type)
@@ -415,7 +434,7 @@ export const stringifyConnectionRecord = input => {
415
434
  expected: "\"file\"",
416
435
  value: input.type
417
436
  });
418
- })()},"protocol":${$string(input.protocol)}}`;
437
+ })()}}`;
419
438
  const $so2 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
420
439
  if ("string" === typeof input.type)
421
440
  return $string(input.type);
@@ -437,7 +456,7 @@ export const stringifyConnectionRecord = input => {
437
456
  });
438
457
  })()}}`;
439
458
  const $su0 = input => (() => {
440
- if ("file" === input.type)
459
+ if (undefined !== input.protocol)
441
460
  return $so0(input);
442
461
  else if ("reuters" === input.type)
443
462
  return $so2(input);
@@ -445,7 +464,7 @@ export const stringifyConnectionRecord = input => {
445
464
  return $so3(input);
446
465
  else
447
466
  $throws({
448
- expected: "(FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
467
+ expected: "(FilePublishConnectionS3Record | ReutersConnectionRecord | FacebookConnectionRecord)",
449
468
  value: input
450
469
  });
451
470
  })();
@@ -453,12 +472,12 @@ export const stringifyConnectionRecord = input => {
453
472
  };
454
473
  export const assertStringifyConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
455
474
  const __is = input => {
456
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
475
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
457
476
  const $io1 = input => "string" === typeof input.content;
458
477
  const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
459
478
  const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
460
479
  const $iu0 = input => (() => {
461
- if ("file" === input.type)
480
+ if (undefined !== input.protocol)
462
481
  return $io0(input);
463
482
  else if ("reuters" === input.type)
464
483
  return $io2(input);
@@ -472,21 +491,25 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
472
491
  if (false === __is(input))
473
492
  ((input, _path, _exceptionable = true) => {
474
493
  const $guard = __typia.json.createAssertStringify.guard;
475
- const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
494
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
495
+ path: _path + ".protocol",
496
+ expected: "\"s3\"",
497
+ value: input.protocol
498
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
499
+ path: _path + ".bucket",
500
+ expected: "(string | undefined)",
501
+ value: input.bucket
502
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
476
503
  path: _path + ".type",
477
504
  expected: "\"file\"",
478
505
  value: input.type
479
- }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
480
- path: _path + ".protocol",
481
- expected: "string",
482
- value: input.protocol
483
506
  }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
484
507
  path: _path + ".host",
485
508
  expected: "(string | undefined)",
486
509
  value: input.host
487
- }, errorFactory)) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port) || $guard(_exceptionable, {
510
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port) || $guard(_exceptionable, {
488
511
  path: _path + ".port",
489
- expected: "(number | undefined)",
512
+ expected: "(number | string | undefined)",
490
513
  value: input.port
491
514
  }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
492
515
  path: _path + ".ignoreMissing",
@@ -508,10 +531,6 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
508
531
  path: _path + ".listConcurrency",
509
532
  expected: "(number | undefined)",
510
533
  value: input.listConcurrency
511
- }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
512
- path: _path + ".bucket",
513
- expected: "(string | undefined)",
514
- value: input.bucket
515
534
  }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
516
535
  path: _path + ".metafile",
517
536
  expected: "(__type | undefined)",
@@ -573,7 +592,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
573
592
  value: input.userNotificationsEnabled
574
593
  }, errorFactory));
575
594
  const $au0 = (input, _path, _exceptionable = true) => (() => {
576
- if ("file" === input.type)
595
+ if (undefined !== input.protocol)
577
596
  return $ao0(input, _path, true && _exceptionable);
578
597
  else if ("reuters" === input.type)
579
598
  return $ao2(input, _path, true && _exceptionable);
@@ -582,29 +601,47 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
582
601
  else
583
602
  return $guard(_exceptionable, {
584
603
  path: _path,
585
- expected: "(FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
604
+ expected: "(FilePublishConnectionS3Record | ReutersConnectionRecord | FacebookConnectionRecord)",
586
605
  value: input
587
606
  }, errorFactory);
588
607
  })();
589
608
  return ("object" === typeof input && null !== input || $guard(true, {
590
609
  path: _path + "",
591
- expected: "(FacebookConnectionRecord | FilePublishConnectionRecord | ReutersConnectionRecord)",
610
+ expected: "(FacebookConnectionRecord | FilePublishConnectionS3Record | ReutersConnectionRecord)",
592
611
  value: input
593
612
  }, errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
594
613
  path: _path + "",
595
- expected: "(FacebookConnectionRecord | FilePublishConnectionRecord | ReutersConnectionRecord)",
614
+ expected: "(FacebookConnectionRecord | FilePublishConnectionS3Record | ReutersConnectionRecord)",
596
615
  value: input
597
616
  }, errorFactory);
598
617
  })(input, "$input", true);
599
618
  return input;
600
619
  }; const stringify = input => {
601
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
620
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
602
621
  const $io1 = input => "string" === typeof input.content;
603
622
  const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
604
623
  const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
605
624
  const $string = __typia.json.createAssertStringify.string;
606
625
  const $throws = __typia.json.createAssertStringify.throws;
607
- const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
626
+ const $so0 = input => `{${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
627
+ if ("string" === typeof input.port)
628
+ return $string(input.port);
629
+ if ("number" === typeof input.port)
630
+ return input.port;
631
+ $throws({
632
+ expected: "(number | string | undefined)",
633
+ value: input.port
634
+ });
635
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${(() => {
636
+ if ("string" === typeof input.protocol)
637
+ return $string(input.protocol);
638
+ if ("string" === typeof input.protocol)
639
+ return "\"" + input.protocol + "\"";
640
+ $throws({
641
+ expected: "\"s3\"",
642
+ value: input.protocol
643
+ });
644
+ })()},"type":${(() => {
608
645
  if ("string" === typeof input.type)
609
646
  return $string(input.type);
610
647
  if ("string" === typeof input.type)
@@ -613,7 +650,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
613
650
  expected: "\"file\"",
614
651
  value: input.type
615
652
  });
616
- })()},"protocol":${$string(input.protocol)}}`;
653
+ })()}}`;
617
654
  const $so2 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
618
655
  if ("string" === typeof input.type)
619
656
  return $string(input.type);
@@ -635,7 +672,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
635
672
  });
636
673
  })()}}`;
637
674
  const $su0 = input => (() => {
638
- if ("file" === input.type)
675
+ if (undefined !== input.protocol)
639
676
  return $so0(input);
640
677
  else if ("reuters" === input.type)
641
678
  return $so2(input);
@@ -643,7 +680,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
643
680
  return $so3(input);
644
681
  else
645
682
  $throws({
646
- expected: "(FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
683
+ expected: "(FilePublishConnectionS3Record | ReutersConnectionRecord | FacebookConnectionRecord)",
647
684
  value: input
648
685
  });
649
686
  })();
@@ -1111,34 +1148,38 @@ export const assertStringifyFacebookConnectionRecord = (input, errorFactory) =>
1111
1148
  return $so0(input);
1112
1149
  }; return stringify(assert(input, errorFactory)); };
1113
1150
  export const isFilePublishConnectionRecord = input => {
1114
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1151
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1115
1152
  const $io1 = input => "string" === typeof input.content;
1116
1153
  return "object" === typeof input && null !== input && $io0(input);
1117
1154
  };
1118
1155
  export const assertFilePublishConnectionRecord = (input, errorFactory) => {
1119
1156
  const __is = input => {
1120
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1157
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1121
1158
  const $io1 = input => "string" === typeof input.content;
1122
1159
  return "object" === typeof input && null !== input && $io0(input);
1123
1160
  };
1124
1161
  if (false === __is(input))
1125
1162
  ((input, _path, _exceptionable = true) => {
1126
1163
  const $guard = __typia.createAssert.guard;
1127
- const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
1164
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
1165
+ path: _path + ".protocol",
1166
+ expected: "\"s3\"",
1167
+ value: input.protocol
1168
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1169
+ path: _path + ".bucket",
1170
+ expected: "(string | undefined)",
1171
+ value: input.bucket
1172
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
1128
1173
  path: _path + ".type",
1129
1174
  expected: "\"file\"",
1130
1175
  value: input.type
1131
- }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
1132
- path: _path + ".protocol",
1133
- expected: "string",
1134
- value: input.protocol
1135
1176
  }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
1136
1177
  path: _path + ".host",
1137
1178
  expected: "(string | undefined)",
1138
1179
  value: input.host
1139
- }, errorFactory)) && (undefined === input.port || "number" === typeof input.port || $guard(_exceptionable, {
1180
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
1140
1181
  path: _path + ".port",
1141
- expected: "(number | undefined)",
1182
+ expected: "(number | string | undefined)",
1142
1183
  value: input.port
1143
1184
  }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
1144
1185
  path: _path + ".ignoreMissing",
@@ -1160,10 +1201,6 @@ export const assertFilePublishConnectionRecord = (input, errorFactory) => {
1160
1201
  path: _path + ".listConcurrency",
1161
1202
  expected: "(number | undefined)",
1162
1203
  value: input.listConcurrency
1163
- }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1164
- path: _path + ".bucket",
1165
- expected: "(string | undefined)",
1166
- value: input.bucket
1167
1204
  }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1168
1205
  path: _path + ".metafile",
1169
1206
  expected: "(__type | undefined)",
@@ -1184,28 +1221,37 @@ export const assertFilePublishConnectionRecord = (input, errorFactory) => {
1184
1221
  }, errorFactory);
1185
1222
  return ("object" === typeof input && null !== input || $guard(true, {
1186
1223
  path: _path + "",
1187
- expected: "FilePublishConnectionRecord",
1224
+ expected: "FilePublishConnectionS3Record",
1188
1225
  value: input
1189
1226
  }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1190
1227
  path: _path + "",
1191
- expected: "FilePublishConnectionRecord",
1228
+ expected: "FilePublishConnectionS3Record",
1192
1229
  value: input
1193
1230
  }, errorFactory);
1194
1231
  })(input, "$input", true);
1195
1232
  return input;
1196
1233
  };
1197
1234
  export const randomFilePublishConnectionRecord = generator => {
1198
- const $generator = __typia.createRandom.generator;
1199
1235
  const $pick = __typia.createRandom.pick;
1236
+ const $generator = __typia.createRandom.generator;
1200
1237
  const $ro0 = (_recursive = false, _depth = 0) => ({
1238
+ protocol: "s3",
1239
+ client: $pick([
1240
+ () => "any type used...",
1241
+ () => undefined
1242
+ ])(),
1243
+ bucket: $pick([
1244
+ () => undefined,
1245
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1246
+ ])(),
1201
1247
  type: "file",
1202
- protocol: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1203
1248
  host: $pick([
1204
1249
  () => undefined,
1205
1250
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1206
1251
  ])(),
1207
1252
  port: $pick([
1208
1253
  () => undefined,
1254
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1209
1255
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1210
1256
  ])(),
1211
1257
  ignoreMissing: $pick([
@@ -1228,14 +1274,6 @@ export const randomFilePublishConnectionRecord = generator => {
1228
1274
  () => undefined,
1229
1275
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1230
1276
  ])(),
1231
- client: $pick([
1232
- () => "any type used...",
1233
- () => undefined
1234
- ])(),
1235
- bucket: $pick([
1236
- () => undefined,
1237
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1238
- ])(),
1239
1277
  metafile: $pick([
1240
1278
  () => undefined,
1241
1279
  () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
@@ -1252,28 +1290,32 @@ export const randomFilePublishConnectionRecord = generator => {
1252
1290
  };
1253
1291
  export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
1254
1292
  const __is = input => {
1255
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1293
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1256
1294
  const $io1 = input => "string" === typeof input.content;
1257
1295
  return "object" === typeof input && null !== input && $io0(input);
1258
1296
  };
1259
1297
  if (false === __is(input))
1260
1298
  ((input, _path, _exceptionable = true) => {
1261
1299
  const $guard = __typia.createAssertGuard.guard;
1262
- const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
1300
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
1301
+ path: _path + ".protocol",
1302
+ expected: "\"s3\"",
1303
+ value: input.protocol
1304
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1305
+ path: _path + ".bucket",
1306
+ expected: "(string | undefined)",
1307
+ value: input.bucket
1308
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
1263
1309
  path: _path + ".type",
1264
1310
  expected: "\"file\"",
1265
1311
  value: input.type
1266
- }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
1267
- path: _path + ".protocol",
1268
- expected: "string",
1269
- value: input.protocol
1270
1312
  }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
1271
1313
  path: _path + ".host",
1272
1314
  expected: "(string | undefined)",
1273
1315
  value: input.host
1274
- }, errorFactory)) && (undefined === input.port || "number" === typeof input.port || $guard(_exceptionable, {
1316
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
1275
1317
  path: _path + ".port",
1276
- expected: "(number | undefined)",
1318
+ expected: "(number | string | undefined)",
1277
1319
  value: input.port
1278
1320
  }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
1279
1321
  path: _path + ".ignoreMissing",
@@ -1295,10 +1337,6 @@ export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
1295
1337
  path: _path + ".listConcurrency",
1296
1338
  expected: "(number | undefined)",
1297
1339
  value: input.listConcurrency
1298
- }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1299
- path: _path + ".bucket",
1300
- expected: "(string | undefined)",
1301
- value: input.bucket
1302
1340
  }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1303
1341
  path: _path + ".metafile",
1304
1342
  expected: "(__type | undefined)",
@@ -1319,11 +1357,11 @@ export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
1319
1357
  }, errorFactory);
1320
1358
  return ("object" === typeof input && null !== input || $guard(true, {
1321
1359
  path: _path + "",
1322
- expected: "FilePublishConnectionRecord",
1360
+ expected: "FilePublishConnectionS3Record",
1323
1361
  value: input
1324
1362
  }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1325
1363
  path: _path + "",
1326
- expected: "FilePublishConnectionRecord",
1364
+ expected: "FilePublishConnectionS3Record",
1327
1365
  value: input
1328
1366
  }, errorFactory);
1329
1367
  })(input, "$input", true);
@@ -1332,7 +1370,25 @@ export const stringifyFilePublishConnectionRecord = input => {
1332
1370
  const $io1 = input => "string" === typeof input.content;
1333
1371
  const $string = __typia.json.createStringify.string;
1334
1372
  const $throws = __typia.json.createStringify.throws;
1335
- const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
1373
+ const $so0 = input => `{${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
1374
+ if ("string" === typeof input.port)
1375
+ return $string(input.port);
1376
+ if ("number" === typeof input.port)
1377
+ return input.port;
1378
+ $throws({
1379
+ expected: "(number | string | undefined)",
1380
+ value: input.port
1381
+ });
1382
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${(() => {
1383
+ if ("string" === typeof input.protocol)
1384
+ return $string(input.protocol);
1385
+ if ("string" === typeof input.protocol)
1386
+ return "\"" + input.protocol + "\"";
1387
+ $throws({
1388
+ expected: "\"s3\"",
1389
+ value: input.protocol
1390
+ });
1391
+ })()},"type":${(() => {
1336
1392
  if ("string" === typeof input.type)
1337
1393
  return $string(input.type);
1338
1394
  if ("string" === typeof input.type)
@@ -1341,33 +1397,37 @@ export const stringifyFilePublishConnectionRecord = input => {
1341
1397
  expected: "\"file\"",
1342
1398
  value: input.type
1343
1399
  });
1344
- })()},"protocol":${$string(input.protocol)}}`;
1400
+ })()}}`;
1345
1401
  return $so0(input);
1346
1402
  };
1347
1403
  export const assertStringifyFilePublishConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1348
1404
  const __is = input => {
1349
- const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1405
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1350
1406
  const $io1 = input => "string" === typeof input.content;
1351
1407
  return "object" === typeof input && null !== input && $io0(input);
1352
1408
  };
1353
1409
  if (false === __is(input))
1354
1410
  ((input, _path, _exceptionable = true) => {
1355
1411
  const $guard = __typia.json.createAssertStringify.guard;
1356
- const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
1412
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
1413
+ path: _path + ".protocol",
1414
+ expected: "\"s3\"",
1415
+ value: input.protocol
1416
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1417
+ path: _path + ".bucket",
1418
+ expected: "(string | undefined)",
1419
+ value: input.bucket
1420
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
1357
1421
  path: _path + ".type",
1358
1422
  expected: "\"file\"",
1359
1423
  value: input.type
1360
- }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
1361
- path: _path + ".protocol",
1362
- expected: "string",
1363
- value: input.protocol
1364
1424
  }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
1365
1425
  path: _path + ".host",
1366
1426
  expected: "(string | undefined)",
1367
1427
  value: input.host
1368
- }, errorFactory)) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port) || $guard(_exceptionable, {
1428
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port) || $guard(_exceptionable, {
1369
1429
  path: _path + ".port",
1370
- expected: "(number | undefined)",
1430
+ expected: "(number | string | undefined)",
1371
1431
  value: input.port
1372
1432
  }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
1373
1433
  path: _path + ".ignoreMissing",
@@ -1389,10 +1449,6 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
1389
1449
  path: _path + ".listConcurrency",
1390
1450
  expected: "(number | undefined)",
1391
1451
  value: input.listConcurrency
1392
- }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1393
- path: _path + ".bucket",
1394
- expected: "(string | undefined)",
1395
- value: input.bucket
1396
1452
  }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1397
1453
  path: _path + ".metafile",
1398
1454
  expected: "(__type | undefined)",
@@ -1413,11 +1469,11 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
1413
1469
  }, errorFactory);
1414
1470
  return ("object" === typeof input && null !== input || $guard(true, {
1415
1471
  path: _path + "",
1416
- expected: "FilePublishConnectionRecord",
1472
+ expected: "FilePublishConnectionS3Record",
1417
1473
  value: input
1418
1474
  }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1419
1475
  path: _path + "",
1420
- expected: "FilePublishConnectionRecord",
1476
+ expected: "FilePublishConnectionS3Record",
1421
1477
  value: input
1422
1478
  }, errorFactory);
1423
1479
  })(input, "$input", true);
@@ -1426,7 +1482,25 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
1426
1482
  const $io1 = input => "string" === typeof input.content;
1427
1483
  const $string = __typia.json.createAssertStringify.string;
1428
1484
  const $throws = __typia.json.createAssertStringify.throws;
1429
- const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
1485
+ const $so0 = input => `{${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
1486
+ if ("string" === typeof input.port)
1487
+ return $string(input.port);
1488
+ if ("number" === typeof input.port)
1489
+ return input.port;
1490
+ $throws({
1491
+ expected: "(number | string | undefined)",
1492
+ value: input.port
1493
+ });
1494
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${(() => {
1495
+ if ("string" === typeof input.protocol)
1496
+ return $string(input.protocol);
1497
+ if ("string" === typeof input.protocol)
1498
+ return "\"" + input.protocol + "\"";
1499
+ $throws({
1500
+ expected: "\"s3\"",
1501
+ value: input.protocol
1502
+ });
1503
+ })()},"type":${(() => {
1430
1504
  if ("string" === typeof input.type)
1431
1505
  return $string(input.type);
1432
1506
  if ("string" === typeof input.type)
@@ -1435,93 +1509,722 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
1435
1509
  expected: "\"file\"",
1436
1510
  value: input.type
1437
1511
  });
1438
- })()},"protocol":${$string(input.protocol)}}`;
1512
+ })()}}`;
1439
1513
  return $so0(input);
1440
1514
  }; return stringify(assert(input, errorFactory)); };
1441
- export const isConnectionStatsRecord = input => {
1442
- const $io0 = input => "string" === typeof input.status && "string" === typeof input.substatus && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1443
- const $io1 = input => true;
1515
+ export const isFilePublishBaseConnectionRecord = input => {
1516
+ const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1517
+ const $io1 = input => "string" === typeof input.content;
1444
1518
  return "object" === typeof input && null !== input && $io0(input);
1445
1519
  };
1446
- export const assertConnectionStatsRecord = (input, errorFactory) => {
1520
+ export const assertFilePublishBaseConnectionRecord = (input, errorFactory) => {
1447
1521
  const __is = input => {
1448
- const $io0 = input => "string" === typeof input.status && "string" === typeof input.substatus && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1449
- const $io1 = input => true;
1522
+ const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1523
+ const $io1 = input => "string" === typeof input.content;
1450
1524
  return "object" === typeof input && null !== input && $io0(input);
1451
1525
  };
1452
1526
  if (false === __is(input))
1453
1527
  ((input, _path, _exceptionable = true) => {
1454
1528
  const $guard = __typia.createAssert.guard;
1455
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
1456
- path: _path + ".status",
1457
- expected: "string",
1458
- value: input.status
1459
- }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
1460
- path: _path + ".substatus",
1529
+ const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
1530
+ path: _path + ".type",
1531
+ expected: "\"file\"",
1532
+ value: input.type
1533
+ }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
1534
+ path: _path + ".protocol",
1461
1535
  expected: "string",
1462
- value: input.substatus
1463
- }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
1464
- path: _path + ".pages",
1465
- expected: "(Array<__type> | undefined)",
1466
- value: input.pages
1467
- }, errorFactory)) && input.pages.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1468
- path: _path + ".pages[" + _index1 + "]",
1469
- expected: "__type",
1470
- value: elem
1471
- }, errorFactory)) && $ao1(elem, _path + ".pages[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1472
- path: _path + ".pages[" + _index1 + "]",
1473
- expected: "__type",
1474
- value: elem
1475
- }, errorFactory)) || $guard(_exceptionable, {
1476
- path: _path + ".pages",
1477
- expected: "(Array<__type> | undefined)",
1478
- value: input.pages
1536
+ value: input.protocol
1537
+ }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
1538
+ path: _path + ".host",
1539
+ expected: "(string | undefined)",
1540
+ value: input.host
1541
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
1542
+ path: _path + ".port",
1543
+ expected: "(number | string | undefined)",
1544
+ value: input.port
1545
+ }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
1546
+ path: _path + ".ignoreMissing",
1547
+ expected: "(boolean | undefined)",
1548
+ value: input.ignoreMissing
1549
+ }, errorFactory)) && (undefined === input.concurrency || "number" === typeof input.concurrency || $guard(_exceptionable, {
1550
+ path: _path + ".concurrency",
1551
+ expected: "(number | undefined)",
1552
+ value: input.concurrency
1553
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
1554
+ path: _path + ".stabilityThreshold",
1555
+ expected: "(number | undefined)",
1556
+ value: input.stabilityThreshold
1557
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
1558
+ path: _path + ".pollInterval",
1559
+ expected: "(number | undefined)",
1560
+ value: input.pollInterval
1561
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
1562
+ path: _path + ".listConcurrency",
1563
+ expected: "(number | undefined)",
1564
+ value: input.listConcurrency
1565
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1566
+ path: _path + ".metafile",
1567
+ expected: "(__type | undefined)",
1568
+ value: input.metafile
1569
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
1570
+ path: _path + ".metafile",
1571
+ expected: "(__type | undefined)",
1572
+ value: input.metafile
1573
+ }, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
1574
+ path: _path + ".userNotificationsEnabled",
1575
+ expected: "(boolean | undefined)",
1576
+ value: input.userNotificationsEnabled
1479
1577
  }, errorFactory));
1480
- const $ao1 = (input, _path, _exceptionable = true) => true;
1578
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
1579
+ path: _path + ".content",
1580
+ expected: "string",
1581
+ value: input.content
1582
+ }, errorFactory);
1481
1583
  return ("object" === typeof input && null !== input || $guard(true, {
1482
1584
  path: _path + "",
1483
- expected: "ConnectionStatsRecord",
1585
+ expected: "FilePublishBaseConnectionRecord",
1484
1586
  value: input
1485
1587
  }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1486
1588
  path: _path + "",
1487
- expected: "ConnectionStatsRecord",
1589
+ expected: "FilePublishBaseConnectionRecord",
1488
1590
  value: input
1489
1591
  }, errorFactory);
1490
1592
  })(input, "$input", true);
1491
1593
  return input;
1492
1594
  };
1493
- export const randomConnectionStatsRecord = generator => {
1595
+ export const randomFilePublishBaseConnectionRecord = generator => {
1494
1596
  const $generator = __typia.createRandom.generator;
1495
1597
  const $pick = __typia.createRandom.pick;
1496
1598
  const $ro0 = (_recursive = false, _depth = 0) => ({
1497
- status: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1498
- substatus: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1499
- pages: $pick([
1599
+ type: "file",
1600
+ protocol: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1601
+ host: $pick([
1500
1602
  () => undefined,
1501
- () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
1502
- ])()
1503
- });
1504
- const $ro1 = (_recursive = false, _depth = 0) => ({
1505
- id: "any type used..."
1506
- });
1507
- return $ro0();
1508
- };
1509
- export const assertGuardConnectionStatsRecord = (input, errorFactory) => {
1510
- const __is = input => {
1511
- const $io0 = input => "string" === typeof input.status && "string" === typeof input.substatus && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1512
- const $io1 = input => true;
1513
- return "object" === typeof input && null !== input && $io0(input);
1514
- };
1603
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1604
+ ])(),
1605
+ port: $pick([
1606
+ () => undefined,
1607
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1608
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1609
+ ])(),
1610
+ ignoreMissing: $pick([
1611
+ () => undefined,
1612
+ () => (generator?.boolean ?? $generator.boolean)()
1613
+ ])(),
1614
+ concurrency: $pick([
1615
+ () => undefined,
1616
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1617
+ ])(),
1618
+ stabilityThreshold: $pick([
1619
+ () => undefined,
1620
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1621
+ ])(),
1622
+ pollInterval: $pick([
1623
+ () => undefined,
1624
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1625
+ ])(),
1626
+ listConcurrency: $pick([
1627
+ () => undefined,
1628
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1629
+ ])(),
1630
+ metafile: $pick([
1631
+ () => undefined,
1632
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
1633
+ ])(),
1634
+ userNotificationsEnabled: $pick([
1635
+ () => undefined,
1636
+ () => (generator?.boolean ?? $generator.boolean)()
1637
+ ])()
1638
+ });
1639
+ const $ro1 = (_recursive = false, _depth = 0) => ({
1640
+ content: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1641
+ });
1642
+ return $ro0();
1643
+ };
1644
+ export const assertGuardFilePublishBaseConnectionRecord = (input, errorFactory) => {
1645
+ const __is = input => {
1646
+ const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1647
+ const $io1 = input => "string" === typeof input.content;
1648
+ return "object" === typeof input && null !== input && $io0(input);
1649
+ };
1650
+ if (false === __is(input))
1651
+ ((input, _path, _exceptionable = true) => {
1652
+ const $guard = __typia.createAssertGuard.guard;
1653
+ const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
1654
+ path: _path + ".type",
1655
+ expected: "\"file\"",
1656
+ value: input.type
1657
+ }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
1658
+ path: _path + ".protocol",
1659
+ expected: "string",
1660
+ value: input.protocol
1661
+ }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
1662
+ path: _path + ".host",
1663
+ expected: "(string | undefined)",
1664
+ value: input.host
1665
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
1666
+ path: _path + ".port",
1667
+ expected: "(number | string | undefined)",
1668
+ value: input.port
1669
+ }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
1670
+ path: _path + ".ignoreMissing",
1671
+ expected: "(boolean | undefined)",
1672
+ value: input.ignoreMissing
1673
+ }, errorFactory)) && (undefined === input.concurrency || "number" === typeof input.concurrency || $guard(_exceptionable, {
1674
+ path: _path + ".concurrency",
1675
+ expected: "(number | undefined)",
1676
+ value: input.concurrency
1677
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
1678
+ path: _path + ".stabilityThreshold",
1679
+ expected: "(number | undefined)",
1680
+ value: input.stabilityThreshold
1681
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
1682
+ path: _path + ".pollInterval",
1683
+ expected: "(number | undefined)",
1684
+ value: input.pollInterval
1685
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
1686
+ path: _path + ".listConcurrency",
1687
+ expected: "(number | undefined)",
1688
+ value: input.listConcurrency
1689
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1690
+ path: _path + ".metafile",
1691
+ expected: "(__type | undefined)",
1692
+ value: input.metafile
1693
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
1694
+ path: _path + ".metafile",
1695
+ expected: "(__type | undefined)",
1696
+ value: input.metafile
1697
+ }, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
1698
+ path: _path + ".userNotificationsEnabled",
1699
+ expected: "(boolean | undefined)",
1700
+ value: input.userNotificationsEnabled
1701
+ }, errorFactory));
1702
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
1703
+ path: _path + ".content",
1704
+ expected: "string",
1705
+ value: input.content
1706
+ }, errorFactory);
1707
+ return ("object" === typeof input && null !== input || $guard(true, {
1708
+ path: _path + "",
1709
+ expected: "FilePublishBaseConnectionRecord",
1710
+ value: input
1711
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1712
+ path: _path + "",
1713
+ expected: "FilePublishBaseConnectionRecord",
1714
+ value: input
1715
+ }, errorFactory);
1716
+ })(input, "$input", true);
1717
+ };
1718
+ export const stringifyFilePublishBaseConnectionRecord = input => {
1719
+ const $io1 = input => "string" === typeof input.content;
1720
+ const $string = __typia.json.createStringify.string;
1721
+ const $throws = __typia.json.createStringify.throws;
1722
+ const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
1723
+ if ("string" === typeof input.port)
1724
+ return $string(input.port);
1725
+ if ("number" === typeof input.port)
1726
+ return input.port;
1727
+ $throws({
1728
+ expected: "(number | string | undefined)",
1729
+ value: input.port
1730
+ });
1731
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
1732
+ if ("string" === typeof input.type)
1733
+ return $string(input.type);
1734
+ if ("string" === typeof input.type)
1735
+ return "\"" + input.type + "\"";
1736
+ $throws({
1737
+ expected: "\"file\"",
1738
+ value: input.type
1739
+ });
1740
+ })()},"protocol":${$string(input.protocol)}}`;
1741
+ return $so0(input);
1742
+ };
1743
+ export const assertStringifyFilePublishBaseConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1744
+ const __is = input => {
1745
+ const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1746
+ const $io1 = input => "string" === typeof input.content;
1747
+ return "object" === typeof input && null !== input && $io0(input);
1748
+ };
1749
+ if (false === __is(input))
1750
+ ((input, _path, _exceptionable = true) => {
1751
+ const $guard = __typia.json.createAssertStringify.guard;
1752
+ const $ao0 = (input, _path, _exceptionable = true) => ("file" === input.type || $guard(_exceptionable, {
1753
+ path: _path + ".type",
1754
+ expected: "\"file\"",
1755
+ value: input.type
1756
+ }, errorFactory)) && ("string" === typeof input.protocol || $guard(_exceptionable, {
1757
+ path: _path + ".protocol",
1758
+ expected: "string",
1759
+ value: input.protocol
1760
+ }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
1761
+ path: _path + ".host",
1762
+ expected: "(string | undefined)",
1763
+ value: input.host
1764
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port) || $guard(_exceptionable, {
1765
+ path: _path + ".port",
1766
+ expected: "(number | string | undefined)",
1767
+ value: input.port
1768
+ }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
1769
+ path: _path + ".ignoreMissing",
1770
+ expected: "(boolean | undefined)",
1771
+ value: input.ignoreMissing
1772
+ }, errorFactory)) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency) || $guard(_exceptionable, {
1773
+ path: _path + ".concurrency",
1774
+ expected: "(number | undefined)",
1775
+ value: input.concurrency
1776
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold) || $guard(_exceptionable, {
1777
+ path: _path + ".stabilityThreshold",
1778
+ expected: "(number | undefined)",
1779
+ value: input.stabilityThreshold
1780
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval) || $guard(_exceptionable, {
1781
+ path: _path + ".pollInterval",
1782
+ expected: "(number | undefined)",
1783
+ value: input.pollInterval
1784
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency) || $guard(_exceptionable, {
1785
+ path: _path + ".listConcurrency",
1786
+ expected: "(number | undefined)",
1787
+ value: input.listConcurrency
1788
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1789
+ path: _path + ".metafile",
1790
+ expected: "(__type | undefined)",
1791
+ value: input.metafile
1792
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
1793
+ path: _path + ".metafile",
1794
+ expected: "(__type | undefined)",
1795
+ value: input.metafile
1796
+ }, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
1797
+ path: _path + ".userNotificationsEnabled",
1798
+ expected: "(boolean | undefined)",
1799
+ value: input.userNotificationsEnabled
1800
+ }, errorFactory));
1801
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
1802
+ path: _path + ".content",
1803
+ expected: "string",
1804
+ value: input.content
1805
+ }, errorFactory);
1806
+ return ("object" === typeof input && null !== input || $guard(true, {
1807
+ path: _path + "",
1808
+ expected: "FilePublishBaseConnectionRecord",
1809
+ value: input
1810
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1811
+ path: _path + "",
1812
+ expected: "FilePublishBaseConnectionRecord",
1813
+ value: input
1814
+ }, errorFactory);
1815
+ })(input, "$input", true);
1816
+ return input;
1817
+ }; const stringify = input => {
1818
+ const $io1 = input => "string" === typeof input.content;
1819
+ const $string = __typia.json.createAssertStringify.string;
1820
+ const $throws = __typia.json.createAssertStringify.throws;
1821
+ const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
1822
+ if ("string" === typeof input.port)
1823
+ return $string(input.port);
1824
+ if ("number" === typeof input.port)
1825
+ return input.port;
1826
+ $throws({
1827
+ expected: "(number | string | undefined)",
1828
+ value: input.port
1829
+ });
1830
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
1831
+ if ("string" === typeof input.type)
1832
+ return $string(input.type);
1833
+ if ("string" === typeof input.type)
1834
+ return "\"" + input.type + "\"";
1835
+ $throws({
1836
+ expected: "\"file\"",
1837
+ value: input.type
1838
+ });
1839
+ })()},"protocol":${$string(input.protocol)}}`;
1840
+ return $so0(input);
1841
+ }; return stringify(assert(input, errorFactory)); };
1842
+ export const isFilePublishConnectionS3Record = input => {
1843
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1844
+ const $io1 = input => "string" === typeof input.content;
1845
+ return "object" === typeof input && null !== input && $io0(input);
1846
+ };
1847
+ export const assertFilePublishConnectionS3Record = (input, errorFactory) => {
1848
+ const __is = input => {
1849
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1850
+ const $io1 = input => "string" === typeof input.content;
1851
+ return "object" === typeof input && null !== input && $io0(input);
1852
+ };
1853
+ if (false === __is(input))
1854
+ ((input, _path, _exceptionable = true) => {
1855
+ const $guard = __typia.createAssert.guard;
1856
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
1857
+ path: _path + ".protocol",
1858
+ expected: "\"s3\"",
1859
+ value: input.protocol
1860
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1861
+ path: _path + ".bucket",
1862
+ expected: "(string | undefined)",
1863
+ value: input.bucket
1864
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
1865
+ path: _path + ".type",
1866
+ expected: "\"file\"",
1867
+ value: input.type
1868
+ }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
1869
+ path: _path + ".host",
1870
+ expected: "(string | undefined)",
1871
+ value: input.host
1872
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
1873
+ path: _path + ".port",
1874
+ expected: "(number | string | undefined)",
1875
+ value: input.port
1876
+ }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
1877
+ path: _path + ".ignoreMissing",
1878
+ expected: "(boolean | undefined)",
1879
+ value: input.ignoreMissing
1880
+ }, errorFactory)) && (undefined === input.concurrency || "number" === typeof input.concurrency || $guard(_exceptionable, {
1881
+ path: _path + ".concurrency",
1882
+ expected: "(number | undefined)",
1883
+ value: input.concurrency
1884
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
1885
+ path: _path + ".stabilityThreshold",
1886
+ expected: "(number | undefined)",
1887
+ value: input.stabilityThreshold
1888
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
1889
+ path: _path + ".pollInterval",
1890
+ expected: "(number | undefined)",
1891
+ value: input.pollInterval
1892
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
1893
+ path: _path + ".listConcurrency",
1894
+ expected: "(number | undefined)",
1895
+ value: input.listConcurrency
1896
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1897
+ path: _path + ".metafile",
1898
+ expected: "(__type | undefined)",
1899
+ value: input.metafile
1900
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
1901
+ path: _path + ".metafile",
1902
+ expected: "(__type | undefined)",
1903
+ value: input.metafile
1904
+ }, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
1905
+ path: _path + ".userNotificationsEnabled",
1906
+ expected: "(boolean | undefined)",
1907
+ value: input.userNotificationsEnabled
1908
+ }, errorFactory));
1909
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
1910
+ path: _path + ".content",
1911
+ expected: "string",
1912
+ value: input.content
1913
+ }, errorFactory);
1914
+ return ("object" === typeof input && null !== input || $guard(true, {
1915
+ path: _path + "",
1916
+ expected: "FilePublishConnectionS3Record",
1917
+ value: input
1918
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1919
+ path: _path + "",
1920
+ expected: "FilePublishConnectionS3Record",
1921
+ value: input
1922
+ }, errorFactory);
1923
+ })(input, "$input", true);
1924
+ return input;
1925
+ };
1926
+ export const randomFilePublishConnectionS3Record = generator => {
1927
+ const $pick = __typia.createRandom.pick;
1928
+ const $generator = __typia.createRandom.generator;
1929
+ const $ro0 = (_recursive = false, _depth = 0) => ({
1930
+ protocol: "s3",
1931
+ client: $pick([
1932
+ () => "any type used...",
1933
+ () => undefined
1934
+ ])(),
1935
+ bucket: $pick([
1936
+ () => undefined,
1937
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1938
+ ])(),
1939
+ type: "file",
1940
+ host: $pick([
1941
+ () => undefined,
1942
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1943
+ ])(),
1944
+ port: $pick([
1945
+ () => undefined,
1946
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1947
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1948
+ ])(),
1949
+ ignoreMissing: $pick([
1950
+ () => undefined,
1951
+ () => (generator?.boolean ?? $generator.boolean)()
1952
+ ])(),
1953
+ concurrency: $pick([
1954
+ () => undefined,
1955
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1956
+ ])(),
1957
+ stabilityThreshold: $pick([
1958
+ () => undefined,
1959
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1960
+ ])(),
1961
+ pollInterval: $pick([
1962
+ () => undefined,
1963
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1964
+ ])(),
1965
+ listConcurrency: $pick([
1966
+ () => undefined,
1967
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1968
+ ])(),
1969
+ metafile: $pick([
1970
+ () => undefined,
1971
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
1972
+ ])(),
1973
+ userNotificationsEnabled: $pick([
1974
+ () => undefined,
1975
+ () => (generator?.boolean ?? $generator.boolean)()
1976
+ ])()
1977
+ });
1978
+ const $ro1 = (_recursive = false, _depth = 0) => ({
1979
+ content: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1980
+ });
1981
+ return $ro0();
1982
+ };
1983
+ export const assertGuardFilePublishConnectionS3Record = (input, errorFactory) => {
1984
+ const __is = input => {
1985
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
1986
+ const $io1 = input => "string" === typeof input.content;
1987
+ return "object" === typeof input && null !== input && $io0(input);
1988
+ };
1515
1989
  if (false === __is(input))
1516
1990
  ((input, _path, _exceptionable = true) => {
1517
1991
  const $guard = __typia.createAssertGuard.guard;
1518
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
1519
- path: _path + ".status",
1992
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
1993
+ path: _path + ".protocol",
1994
+ expected: "\"s3\"",
1995
+ value: input.protocol
1996
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
1997
+ path: _path + ".bucket",
1998
+ expected: "(string | undefined)",
1999
+ value: input.bucket
2000
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
2001
+ path: _path + ".type",
2002
+ expected: "\"file\"",
2003
+ value: input.type
2004
+ }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
2005
+ path: _path + ".host",
2006
+ expected: "(string | undefined)",
2007
+ value: input.host
2008
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port || $guard(_exceptionable, {
2009
+ path: _path + ".port",
2010
+ expected: "(number | string | undefined)",
2011
+ value: input.port
2012
+ }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
2013
+ path: _path + ".ignoreMissing",
2014
+ expected: "(boolean | undefined)",
2015
+ value: input.ignoreMissing
2016
+ }, errorFactory)) && (undefined === input.concurrency || "number" === typeof input.concurrency || $guard(_exceptionable, {
2017
+ path: _path + ".concurrency",
2018
+ expected: "(number | undefined)",
2019
+ value: input.concurrency
2020
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
2021
+ path: _path + ".stabilityThreshold",
2022
+ expected: "(number | undefined)",
2023
+ value: input.stabilityThreshold
2024
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
2025
+ path: _path + ".pollInterval",
2026
+ expected: "(number | undefined)",
2027
+ value: input.pollInterval
2028
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
2029
+ path: _path + ".listConcurrency",
2030
+ expected: "(number | undefined)",
2031
+ value: input.listConcurrency
2032
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
2033
+ path: _path + ".metafile",
2034
+ expected: "(__type | undefined)",
2035
+ value: input.metafile
2036
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
2037
+ path: _path + ".metafile",
2038
+ expected: "(__type | undefined)",
2039
+ value: input.metafile
2040
+ }, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
2041
+ path: _path + ".userNotificationsEnabled",
2042
+ expected: "(boolean | undefined)",
2043
+ value: input.userNotificationsEnabled
2044
+ }, errorFactory));
2045
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
2046
+ path: _path + ".content",
2047
+ expected: "string",
2048
+ value: input.content
2049
+ }, errorFactory);
2050
+ return ("object" === typeof input && null !== input || $guard(true, {
2051
+ path: _path + "",
2052
+ expected: "FilePublishConnectionS3Record",
2053
+ value: input
2054
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2055
+ path: _path + "",
2056
+ expected: "FilePublishConnectionS3Record",
2057
+ value: input
2058
+ }, errorFactory);
2059
+ })(input, "$input", true);
2060
+ };
2061
+ export const stringifyFilePublishConnectionS3Record = input => {
2062
+ const $io1 = input => "string" === typeof input.content;
2063
+ const $string = __typia.json.createStringify.string;
2064
+ const $throws = __typia.json.createStringify.throws;
2065
+ const $so0 = input => `{${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
2066
+ if ("string" === typeof input.port)
2067
+ return $string(input.port);
2068
+ if ("number" === typeof input.port)
2069
+ return input.port;
2070
+ $throws({
2071
+ expected: "(number | string | undefined)",
2072
+ value: input.port
2073
+ });
2074
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${(() => {
2075
+ if ("string" === typeof input.protocol)
2076
+ return $string(input.protocol);
2077
+ if ("string" === typeof input.protocol)
2078
+ return "\"" + input.protocol + "\"";
2079
+ $throws({
2080
+ expected: "\"s3\"",
2081
+ value: input.protocol
2082
+ });
2083
+ })()},"type":${(() => {
2084
+ if ("string" === typeof input.type)
2085
+ return $string(input.type);
2086
+ if ("string" === typeof input.type)
2087
+ return "\"" + input.type + "\"";
2088
+ $throws({
2089
+ expected: "\"file\"",
2090
+ value: input.type
2091
+ });
2092
+ })()}}`;
2093
+ return $so0(input);
2094
+ };
2095
+ export const assertStringifyFilePublishConnectionS3Record = (input, errorFactory) => { const assert = (input, errorFactory) => {
2096
+ const __is = input => {
2097
+ const $io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
2098
+ const $io1 = input => "string" === typeof input.content;
2099
+ return "object" === typeof input && null !== input && $io0(input);
2100
+ };
2101
+ if (false === __is(input))
2102
+ ((input, _path, _exceptionable = true) => {
2103
+ const $guard = __typia.json.createAssertStringify.guard;
2104
+ const $ao0 = (input, _path, _exceptionable = true) => ("s3" === input.protocol || $guard(_exceptionable, {
2105
+ path: _path + ".protocol",
2106
+ expected: "\"s3\"",
2107
+ value: input.protocol
2108
+ }, errorFactory)) && true && (undefined === input.bucket || "string" === typeof input.bucket || $guard(_exceptionable, {
2109
+ path: _path + ".bucket",
2110
+ expected: "(string | undefined)",
2111
+ value: input.bucket
2112
+ }, errorFactory)) && ("file" === input.type || $guard(_exceptionable, {
2113
+ path: _path + ".type",
2114
+ expected: "\"file\"",
2115
+ value: input.type
2116
+ }, errorFactory)) && (undefined === input.host || "string" === typeof input.host || $guard(_exceptionable, {
2117
+ path: _path + ".host",
2118
+ expected: "(string | undefined)",
2119
+ value: input.host
2120
+ }, errorFactory)) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port && !Number.isNaN(input.port) || $guard(_exceptionable, {
2121
+ path: _path + ".port",
2122
+ expected: "(number | string | undefined)",
2123
+ value: input.port
2124
+ }, errorFactory)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing || $guard(_exceptionable, {
2125
+ path: _path + ".ignoreMissing",
2126
+ expected: "(boolean | undefined)",
2127
+ value: input.ignoreMissing
2128
+ }, errorFactory)) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency) || $guard(_exceptionable, {
2129
+ path: _path + ".concurrency",
2130
+ expected: "(number | undefined)",
2131
+ value: input.concurrency
2132
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold) || $guard(_exceptionable, {
2133
+ path: _path + ".stabilityThreshold",
2134
+ expected: "(number | undefined)",
2135
+ value: input.stabilityThreshold
2136
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval) || $guard(_exceptionable, {
2137
+ path: _path + ".pollInterval",
2138
+ expected: "(number | undefined)",
2139
+ value: input.pollInterval
2140
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency) || $guard(_exceptionable, {
2141
+ path: _path + ".listConcurrency",
2142
+ expected: "(number | undefined)",
2143
+ value: input.listConcurrency
2144
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
2145
+ path: _path + ".metafile",
2146
+ expected: "(__type | undefined)",
2147
+ value: input.metafile
2148
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
2149
+ path: _path + ".metafile",
2150
+ expected: "(__type | undefined)",
2151
+ value: input.metafile
2152
+ }, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
2153
+ path: _path + ".userNotificationsEnabled",
2154
+ expected: "(boolean | undefined)",
2155
+ value: input.userNotificationsEnabled
2156
+ }, errorFactory));
2157
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
2158
+ path: _path + ".content",
1520
2159
  expected: "string",
2160
+ value: input.content
2161
+ }, errorFactory);
2162
+ return ("object" === typeof input && null !== input || $guard(true, {
2163
+ path: _path + "",
2164
+ expected: "FilePublishConnectionS3Record",
2165
+ value: input
2166
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2167
+ path: _path + "",
2168
+ expected: "FilePublishConnectionS3Record",
2169
+ value: input
2170
+ }, errorFactory);
2171
+ })(input, "$input", true);
2172
+ return input;
2173
+ }; const stringify = input => {
2174
+ const $io1 = input => "string" === typeof input.content;
2175
+ const $string = __typia.json.createAssertStringify.string;
2176
+ const $throws = __typia.json.createAssertStringify.throws;
2177
+ const $so0 = input => `{${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
2178
+ if ("string" === typeof input.port)
2179
+ return $string(input.port);
2180
+ if ("number" === typeof input.port)
2181
+ return input.port;
2182
+ $throws({
2183
+ expected: "(number | string | undefined)",
2184
+ value: input.port
2185
+ });
2186
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${(() => {
2187
+ if ("string" === typeof input.protocol)
2188
+ return $string(input.protocol);
2189
+ if ("string" === typeof input.protocol)
2190
+ return "\"" + input.protocol + "\"";
2191
+ $throws({
2192
+ expected: "\"s3\"",
2193
+ value: input.protocol
2194
+ });
2195
+ })()},"type":${(() => {
2196
+ if ("string" === typeof input.type)
2197
+ return $string(input.type);
2198
+ if ("string" === typeof input.type)
2199
+ return "\"" + input.type + "\"";
2200
+ $throws({
2201
+ expected: "\"file\"",
2202
+ value: input.type
2203
+ });
2204
+ })()}}`;
2205
+ return $so0(input);
2206
+ }; return stringify(assert(input, errorFactory)); };
2207
+ export const isConnectionStatsRecord = input => {
2208
+ const $io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
2209
+ const $io1 = input => true;
2210
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
2211
+ };
2212
+ export const assertConnectionStatsRecord = (input, errorFactory) => {
2213
+ const __is = input => {
2214
+ const $io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
2215
+ const $io1 = input => true;
2216
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
2217
+ };
2218
+ if (false === __is(input))
2219
+ ((input, _path, _exceptionable = true) => {
2220
+ const $guard = __typia.createAssert.guard;
2221
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.status || "string" === typeof input.status || $guard(_exceptionable, {
2222
+ path: _path + ".status",
2223
+ expected: "(string | undefined)",
1521
2224
  value: input.status
1522
- }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
2225
+ }, errorFactory)) && (undefined === input.substatus || "string" === typeof input.substatus || $guard(_exceptionable, {
1523
2226
  path: _path + ".substatus",
1524
- expected: "string",
2227
+ expected: "(string | undefined)",
1525
2228
  value: input.substatus
1526
2229
  }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
1527
2230
  path: _path + ".pages",
@@ -1541,7 +2244,76 @@ export const assertGuardConnectionStatsRecord = (input, errorFactory) => {
1541
2244
  value: input.pages
1542
2245
  }, errorFactory));
1543
2246
  const $ao1 = (input, _path, _exceptionable = true) => true;
1544
- return ("object" === typeof input && null !== input || $guard(true, {
2247
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
2248
+ path: _path + "",
2249
+ expected: "ConnectionStatsRecord",
2250
+ value: input
2251
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2252
+ path: _path + "",
2253
+ expected: "ConnectionStatsRecord",
2254
+ value: input
2255
+ }, errorFactory);
2256
+ })(input, "$input", true);
2257
+ return input;
2258
+ };
2259
+ export const randomConnectionStatsRecord = generator => {
2260
+ const $generator = __typia.createRandom.generator;
2261
+ const $pick = __typia.createRandom.pick;
2262
+ const $ro0 = (_recursive = false, _depth = 0) => ({
2263
+ status: $pick([
2264
+ () => undefined,
2265
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
2266
+ ])(),
2267
+ substatus: $pick([
2268
+ () => undefined,
2269
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
2270
+ ])(),
2271
+ pages: $pick([
2272
+ () => undefined,
2273
+ () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
2274
+ ])()
2275
+ });
2276
+ const $ro1 = (_recursive = false, _depth = 0) => ({
2277
+ id: "any type used..."
2278
+ });
2279
+ return $ro0();
2280
+ };
2281
+ export const assertGuardConnectionStatsRecord = (input, errorFactory) => {
2282
+ const __is = input => {
2283
+ const $io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
2284
+ const $io1 = input => true;
2285
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
2286
+ };
2287
+ if (false === __is(input))
2288
+ ((input, _path, _exceptionable = true) => {
2289
+ const $guard = __typia.createAssertGuard.guard;
2290
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.status || "string" === typeof input.status || $guard(_exceptionable, {
2291
+ path: _path + ".status",
2292
+ expected: "(string | undefined)",
2293
+ value: input.status
2294
+ }, errorFactory)) && (undefined === input.substatus || "string" === typeof input.substatus || $guard(_exceptionable, {
2295
+ path: _path + ".substatus",
2296
+ expected: "(string | undefined)",
2297
+ value: input.substatus
2298
+ }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
2299
+ path: _path + ".pages",
2300
+ expected: "(Array<__type> | undefined)",
2301
+ value: input.pages
2302
+ }, errorFactory)) && input.pages.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
2303
+ path: _path + ".pages[" + _index1 + "]",
2304
+ expected: "__type",
2305
+ value: elem
2306
+ }, errorFactory)) && $ao1(elem, _path + ".pages[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2307
+ path: _path + ".pages[" + _index1 + "]",
2308
+ expected: "__type",
2309
+ value: elem
2310
+ }, errorFactory)) || $guard(_exceptionable, {
2311
+ path: _path + ".pages",
2312
+ expected: "(Array<__type> | undefined)",
2313
+ value: input.pages
2314
+ }, errorFactory));
2315
+ const $ao1 = (input, _path, _exceptionable = true) => true;
2316
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1545
2317
  path: _path + "",
1546
2318
  expected: "ConnectionStatsRecord",
1547
2319
  value: input
@@ -1555,26 +2327,27 @@ export const assertGuardConnectionStatsRecord = (input, errorFactory) => {
1555
2327
  export const stringifyConnectionStatsRecord = input => {
1556
2328
  const $io1 = input => true;
1557
2329
  const $string = __typia.json.createStringify.string;
1558
- const $so0 = input => `{${undefined === input.pages ? "" : `"pages":${undefined !== input.pages ? `[${input.pages.map(elem => $so1(elem)).join(",")}]` : undefined},`}"status":${$string(input.status)},"substatus":${$string(input.substatus)}}`;
2330
+ const $tail = __typia.json.createStringify.tail;
2331
+ const $so0 = input => `{${$tail(`${undefined === input.status ? "" : `"status":${undefined !== input.status ? $string(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? $string(input.substatus) : undefined},`}${undefined === input.pages ? "" : `"pages":${undefined !== input.pages ? `[${input.pages.map(elem => $so1(elem)).join(",")}]` : undefined}`}`)}}`;
1559
2332
  const $so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`;
1560
2333
  return $so0(input);
1561
2334
  };
1562
2335
  export const assertStringifyConnectionStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1563
2336
  const __is = input => {
1564
- const $io0 = input => "string" === typeof input.status && "string" === typeof input.substatus && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
2337
+ const $io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1565
2338
  const $io1 = input => true;
1566
- return "object" === typeof input && null !== input && $io0(input);
2339
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1567
2340
  };
1568
2341
  if (false === __is(input))
1569
2342
  ((input, _path, _exceptionable = true) => {
1570
2343
  const $guard = __typia.json.createAssertStringify.guard;
1571
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
2344
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.status || "string" === typeof input.status || $guard(_exceptionable, {
1572
2345
  path: _path + ".status",
1573
- expected: "string",
2346
+ expected: "(string | undefined)",
1574
2347
  value: input.status
1575
- }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
2348
+ }, errorFactory)) && (undefined === input.substatus || "string" === typeof input.substatus || $guard(_exceptionable, {
1576
2349
  path: _path + ".substatus",
1577
- expected: "string",
2350
+ expected: "(string | undefined)",
1578
2351
  value: input.substatus
1579
2352
  }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
1580
2353
  path: _path + ".pages",
@@ -1594,7 +2367,7 @@ export const assertStringifyConnectionStatsRecord = (input, errorFactory) => { c
1594
2367
  value: input.pages
1595
2368
  }, errorFactory));
1596
2369
  const $ao1 = (input, _path, _exceptionable = true) => true;
1597
- return ("object" === typeof input && null !== input || $guard(true, {
2370
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1598
2371
  path: _path + "",
1599
2372
  expected: "ConnectionStatsRecord",
1600
2373
  value: input
@@ -1608,7 +2381,8 @@ export const assertStringifyConnectionStatsRecord = (input, errorFactory) => { c
1608
2381
  }; const stringify = input => {
1609
2382
  const $io1 = input => true;
1610
2383
  const $string = __typia.json.createAssertStringify.string;
1611
- const $so0 = input => `{${undefined === input.pages ? "" : `"pages":${undefined !== input.pages ? `[${input.pages.map(elem => $so1(elem)).join(",")}]` : undefined},`}"status":${$string(input.status)},"substatus":${$string(input.substatus)}}`;
2384
+ const $tail = __typia.json.createAssertStringify.tail;
2385
+ const $so0 = input => `{${$tail(`${undefined === input.status ? "" : `"status":${undefined !== input.status ? $string(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? $string(input.substatus) : undefined},`}${undefined === input.pages ? "" : `"pages":${undefined !== input.pages ? `[${input.pages.map(elem => $so1(elem)).join(",")}]` : undefined}`}`)}}`;
1612
2386
  const $so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`;
1613
2387
  return $so0(input);
1614
2388
  }; return stringify(assert(input, errorFactory)); };