@nxtedition/types 23.0.2 → 23.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/asset.d.ts +10 -0
  2. package/dist/asset.js +1 -0
  3. package/dist/common/clone.d.ts +32 -0
  4. package/dist/common/clone.js +602 -0
  5. package/dist/common/index.d.ts +3 -0
  6. package/dist/common/index.js +3 -0
  7. package/dist/common/nxtpression.d.ts +19 -0
  8. package/dist/common/nxtpression.js +240 -0
  9. package/dist/common/search.d.ts +69 -0
  10. package/dist/common/search.js +1591 -0
  11. package/dist/common/settings.d.ts +6 -5
  12. package/dist/common/settings.js +89 -36
  13. package/dist/domains/asset.d.ts +22 -0
  14. package/dist/domains/asset.js +232 -0
  15. package/dist/domains/clone.d.ts +14 -0
  16. package/dist/domains/clone.js +192 -0
  17. package/dist/domains/connection.d.ts +39 -15
  18. package/dist/domains/connection.js +621 -174
  19. package/dist/domains/design.d.ts +24 -0
  20. package/dist/domains/design.js +303 -0
  21. package/dist/domains/file.d.ts +17 -0
  22. package/dist/domains/file.js +233 -0
  23. package/dist/domains/index.d.ts +11 -1
  24. package/dist/domains/index.js +5 -0
  25. package/dist/domains/media.d.ts +28 -0
  26. package/dist/domains/media.js +346 -0
  27. package/dist/domains/published.d.ts +18 -0
  28. package/dist/domains/published.js +164 -0
  29. package/dist/domains/revs.d.ts +13 -0
  30. package/dist/domains/revs.js +125 -0
  31. package/dist/domains/search.d.ts +3 -0
  32. package/dist/domains/search.js +62 -13
  33. package/dist/domains/settings.js +70 -26
  34. package/dist/domains/user.d.ts +14 -0
  35. package/dist/domains/user.js +141 -0
  36. package/dist/index.d.ts +20 -6
  37. package/dist/index.js +135 -0
  38. package/dist/rpc.d.ts +8 -13
  39. package/dist/rpc.js +9 -9
  40. package/dist/schema.json +724 -1546
  41. package/package.json +1 -1
@@ -1,15 +1,16 @@
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);
4
- const $io1 = 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);
5
- const $io2 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
4
+ const $io1 = input => "string" === typeof input.content;
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
6
+ const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
6
7
  const $iu0 = input => (() => {
7
8
  if ("file" === input.type)
8
9
  return $io0(input);
9
10
  else if ("reuters" === input.type)
10
- return $io1(input);
11
- else if ("facebook" === input.type)
12
11
  return $io2(input);
12
+ else if ("facebook" === input.type)
13
+ return $io3(input);
13
14
  else
14
15
  return false;
15
16
  })();
@@ -17,16 +18,17 @@ export const isConnectionRecord = input => {
17
18
  };
18
19
  export const assertConnectionRecord = (input, errorFactory) => {
19
20
  const __is = input => {
20
- 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);
21
- const $io1 = 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);
22
- const $io2 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
22
+ const $io1 = input => "string" === typeof input.content;
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
24
+ const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
23
25
  const $iu0 = input => (() => {
24
26
  if ("file" === input.type)
25
27
  return $io0(input);
26
28
  else if ("reuters" === input.type)
27
- return $io1(input);
28
- else if ("facebook" === input.type)
29
29
  return $io2(input);
30
+ else if ("facebook" === input.type)
31
+ return $io3(input);
30
32
  else
31
33
  return false;
32
34
  })();
@@ -59,8 +61,41 @@ export const assertConnectionRecord = (input, errorFactory) => {
59
61
  path: _path + ".concurrency",
60
62
  expected: "(number | undefined)",
61
63
  value: input.concurrency
64
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
65
+ path: _path + ".stabilityThreshold",
66
+ expected: "(number | undefined)",
67
+ value: input.stabilityThreshold
68
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
69
+ path: _path + ".pollInterval",
70
+ expected: "(number | undefined)",
71
+ value: input.pollInterval
72
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
73
+ path: _path + ".listConcurrency",
74
+ expected: "(number | undefined)",
75
+ 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
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
81
+ path: _path + ".metafile",
82
+ expected: "(__type | undefined)",
83
+ value: input.metafile
84
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
85
+ path: _path + ".metafile",
86
+ expected: "(__type | undefined)",
87
+ value: input.metafile
88
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
89
+ path: _path + ".notifyOnPublish",
90
+ expected: "(boolean | undefined)",
91
+ value: input.notifyOnPublish
62
92
  }, errorFactory));
63
- const $ao1 = (input, _path, _exceptionable = true) => ("reuters" === input.type || $guard(_exceptionable, {
93
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
94
+ path: _path + ".content",
95
+ expected: "string",
96
+ value: input.content
97
+ }, errorFactory);
98
+ const $ao2 = (input, _path, _exceptionable = true) => ("reuters" === input.type || $guard(_exceptionable, {
64
99
  path: _path + ".type",
65
100
  expected: "\"reuters\"",
66
101
  value: input.type
@@ -76,8 +111,12 @@ export const assertConnectionRecord = (input, errorFactory) => {
76
111
  path: _path + ".audience",
77
112
  expected: "(string | undefined)",
78
113
  value: input.audience
114
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
115
+ path: _path + ".notifyOnPublish",
116
+ expected: "(boolean | undefined)",
117
+ value: input.notifyOnPublish
79
118
  }, errorFactory));
80
- const $ao2 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
119
+ const $ao3 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
81
120
  path: _path + ".type",
82
121
  expected: "\"facebook\"",
83
122
  value: input.type
@@ -93,14 +132,18 @@ export const assertConnectionRecord = (input, errorFactory) => {
93
132
  path: _path + ".grantedScopes",
94
133
  expected: "(Array<string> | undefined)",
95
134
  value: input.grantedScopes
135
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
136
+ path: _path + ".notifyOnPublish",
137
+ expected: "(boolean | undefined)",
138
+ value: input.notifyOnPublish
96
139
  }, errorFactory));
97
140
  const $au0 = (input, _path, _exceptionable = true) => (() => {
98
141
  if ("file" === input.type)
99
142
  return $ao0(input, _path, true && _exceptionable);
100
143
  else if ("reuters" === input.type)
101
- return $ao1(input, _path, true && _exceptionable);
102
- else if ("facebook" === input.type)
103
144
  return $ao2(input, _path, true && _exceptionable);
145
+ else if ("facebook" === input.type)
146
+ return $ao3(input, _path, true && _exceptionable);
104
147
  else
105
148
  return $guard(_exceptionable, {
106
149
  path: _path,
@@ -141,9 +184,40 @@ export const randomConnectionRecord = generator => {
141
184
  concurrency: $pick([
142
185
  () => undefined,
143
186
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
187
+ ])(),
188
+ stabilityThreshold: $pick([
189
+ () => undefined,
190
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
191
+ ])(),
192
+ pollInterval: $pick([
193
+ () => undefined,
194
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
195
+ ])(),
196
+ listConcurrency: $pick([
197
+ () => undefined,
198
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
199
+ ])(),
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
+ metafile: $pick([
209
+ () => undefined,
210
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
211
+ ])(),
212
+ notifyOnPublish: $pick([
213
+ () => undefined,
214
+ () => (generator?.boolean ?? $generator.boolean)()
144
215
  ])()
145
216
  });
146
217
  const $ro1 = (_recursive = false, _depth = 0) => ({
218
+ content: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
219
+ });
220
+ const $ro2 = (_recursive = false, _depth = 0) => ({
147
221
  type: "reuters",
148
222
  clientId: $pick([
149
223
  () => undefined,
@@ -156,33 +230,42 @@ export const randomConnectionRecord = generator => {
156
230
  audience: $pick([
157
231
  () => undefined,
158
232
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
233
+ ])(),
234
+ notifyOnPublish: $pick([
235
+ () => undefined,
236
+ () => (generator?.boolean ?? $generator.boolean)()
159
237
  ])()
160
238
  });
161
- const $ro2 = (_recursive = false, _depth = 0) => ({
239
+ const $ro3 = (_recursive = false, _depth = 0) => ({
162
240
  type: "facebook",
163
241
  grantedScopes: $pick([
164
242
  () => undefined,
165
243
  () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
244
+ ])(),
245
+ notifyOnPublish: $pick([
246
+ () => undefined,
247
+ () => (generator?.boolean ?? $generator.boolean)()
166
248
  ])()
167
249
  });
168
250
  return $pick([
169
251
  () => $ro0(),
170
- () => $ro1(),
171
- () => $ro2()
252
+ () => $ro2(),
253
+ () => $ro3()
172
254
  ])();
173
255
  };
174
256
  export const assertGuardConnectionRecord = (input, errorFactory) => {
175
257
  const __is = input => {
176
- 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);
177
- const $io1 = 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);
178
- const $io2 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
259
+ const $io1 = input => "string" === typeof input.content;
260
+ 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
261
+ const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
179
262
  const $iu0 = input => (() => {
180
263
  if ("file" === input.type)
181
264
  return $io0(input);
182
265
  else if ("reuters" === input.type)
183
- return $io1(input);
184
- else if ("facebook" === input.type)
185
266
  return $io2(input);
267
+ else if ("facebook" === input.type)
268
+ return $io3(input);
186
269
  else
187
270
  return false;
188
271
  })();
@@ -215,8 +298,41 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
215
298
  path: _path + ".concurrency",
216
299
  expected: "(number | undefined)",
217
300
  value: input.concurrency
301
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
302
+ path: _path + ".stabilityThreshold",
303
+ expected: "(number | undefined)",
304
+ value: input.stabilityThreshold
305
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
306
+ path: _path + ".pollInterval",
307
+ expected: "(number | undefined)",
308
+ value: input.pollInterval
309
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
310
+ path: _path + ".listConcurrency",
311
+ expected: "(number | undefined)",
312
+ 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
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
318
+ path: _path + ".metafile",
319
+ expected: "(__type | undefined)",
320
+ value: input.metafile
321
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
322
+ path: _path + ".metafile",
323
+ expected: "(__type | undefined)",
324
+ value: input.metafile
325
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
326
+ path: _path + ".notifyOnPublish",
327
+ expected: "(boolean | undefined)",
328
+ value: input.notifyOnPublish
218
329
  }, errorFactory));
219
- const $ao1 = (input, _path, _exceptionable = true) => ("reuters" === input.type || $guard(_exceptionable, {
330
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
331
+ path: _path + ".content",
332
+ expected: "string",
333
+ value: input.content
334
+ }, errorFactory);
335
+ const $ao2 = (input, _path, _exceptionable = true) => ("reuters" === input.type || $guard(_exceptionable, {
220
336
  path: _path + ".type",
221
337
  expected: "\"reuters\"",
222
338
  value: input.type
@@ -232,8 +348,12 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
232
348
  path: _path + ".audience",
233
349
  expected: "(string | undefined)",
234
350
  value: input.audience
351
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
352
+ path: _path + ".notifyOnPublish",
353
+ expected: "(boolean | undefined)",
354
+ value: input.notifyOnPublish
235
355
  }, errorFactory));
236
- const $ao2 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
356
+ const $ao3 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
237
357
  path: _path + ".type",
238
358
  expected: "\"facebook\"",
239
359
  value: input.type
@@ -249,14 +369,18 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
249
369
  path: _path + ".grantedScopes",
250
370
  expected: "(Array<string> | undefined)",
251
371
  value: input.grantedScopes
372
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
373
+ path: _path + ".notifyOnPublish",
374
+ expected: "(boolean | undefined)",
375
+ value: input.notifyOnPublish
252
376
  }, errorFactory));
253
377
  const $au0 = (input, _path, _exceptionable = true) => (() => {
254
378
  if ("file" === input.type)
255
379
  return $ao0(input, _path, true && _exceptionable);
256
380
  else if ("reuters" === input.type)
257
- return $ao1(input, _path, true && _exceptionable);
258
- else if ("facebook" === input.type)
259
381
  return $ao2(input, _path, true && _exceptionable);
382
+ else if ("facebook" === input.type)
383
+ return $ao3(input, _path, true && _exceptionable);
260
384
  else
261
385
  return $guard(_exceptionable, {
262
386
  path: _path,
@@ -276,12 +400,13 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
276
400
  })(input, "$input", true);
277
401
  };
278
402
  export const stringifyConnectionRecord = input => {
279
- 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);
280
- const $io1 = 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);
281
- const $io2 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
404
+ const $io1 = input => "string" === typeof input.content;
405
+ 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
406
+ const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
282
407
  const $string = __typia.json.createStringify.string;
283
408
  const $throws = __typia.json.createStringify.throws;
284
- 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},`}"type":${(() => {
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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
285
410
  if ("string" === typeof input.type)
286
411
  return $string(input.type);
287
412
  if ("string" === typeof input.type)
@@ -291,7 +416,7 @@ export const stringifyConnectionRecord = input => {
291
416
  value: input.type
292
417
  });
293
418
  })()},"protocol":${$string(input.protocol)}}`;
294
- const $so1 = 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},`}"type":${(() => {
419
+ 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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
295
420
  if ("string" === typeof input.type)
296
421
  return $string(input.type);
297
422
  if ("string" === typeof input.type)
@@ -301,7 +426,7 @@ export const stringifyConnectionRecord = input => {
301
426
  value: input.type
302
427
  });
303
428
  })()}}`;
304
- const $so2 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}"type":${(() => {
429
+ const $so3 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
305
430
  if ("string" === typeof input.type)
306
431
  return $string(input.type);
307
432
  if ("string" === typeof input.type)
@@ -315,9 +440,9 @@ export const stringifyConnectionRecord = input => {
315
440
  if ("file" === input.type)
316
441
  return $so0(input);
317
442
  else if ("reuters" === input.type)
318
- return $so1(input);
319
- else if ("facebook" === input.type)
320
443
  return $so2(input);
444
+ else if ("facebook" === input.type)
445
+ return $so3(input);
321
446
  else
322
447
  $throws({
323
448
  expected: "(FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
@@ -328,16 +453,17 @@ export const stringifyConnectionRecord = input => {
328
453
  };
329
454
  export const assertStringifyConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
330
455
  const __is = input => {
331
- 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));
332
- const $io1 = 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);
333
- const $io2 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
457
+ const $io1 = input => "string" === typeof input.content;
458
+ 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
459
+ const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
334
460
  const $iu0 = input => (() => {
335
461
  if ("file" === input.type)
336
462
  return $io0(input);
337
463
  else if ("reuters" === input.type)
338
- return $io1(input);
339
- else if ("facebook" === input.type)
340
464
  return $io2(input);
465
+ else if ("facebook" === input.type)
466
+ return $io3(input);
341
467
  else
342
468
  return false;
343
469
  })();
@@ -370,8 +496,41 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
370
496
  path: _path + ".concurrency",
371
497
  expected: "(number | undefined)",
372
498
  value: input.concurrency
499
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold) || $guard(_exceptionable, {
500
+ path: _path + ".stabilityThreshold",
501
+ expected: "(number | undefined)",
502
+ value: input.stabilityThreshold
503
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval) || $guard(_exceptionable, {
504
+ path: _path + ".pollInterval",
505
+ expected: "(number | undefined)",
506
+ value: input.pollInterval
507
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency) || $guard(_exceptionable, {
508
+ path: _path + ".listConcurrency",
509
+ expected: "(number | undefined)",
510
+ 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
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
516
+ path: _path + ".metafile",
517
+ expected: "(__type | undefined)",
518
+ value: input.metafile
519
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
520
+ path: _path + ".metafile",
521
+ expected: "(__type | undefined)",
522
+ value: input.metafile
523
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
524
+ path: _path + ".notifyOnPublish",
525
+ expected: "(boolean | undefined)",
526
+ value: input.notifyOnPublish
373
527
  }, errorFactory));
374
- const $ao1 = (input, _path, _exceptionable = true) => ("reuters" === input.type || $guard(_exceptionable, {
528
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
529
+ path: _path + ".content",
530
+ expected: "string",
531
+ value: input.content
532
+ }, errorFactory);
533
+ const $ao2 = (input, _path, _exceptionable = true) => ("reuters" === input.type || $guard(_exceptionable, {
375
534
  path: _path + ".type",
376
535
  expected: "\"reuters\"",
377
536
  value: input.type
@@ -387,8 +546,12 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
387
546
  path: _path + ".audience",
388
547
  expected: "(string | undefined)",
389
548
  value: input.audience
549
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
550
+ path: _path + ".notifyOnPublish",
551
+ expected: "(boolean | undefined)",
552
+ value: input.notifyOnPublish
390
553
  }, errorFactory));
391
- const $ao2 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
554
+ const $ao3 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
392
555
  path: _path + ".type",
393
556
  expected: "\"facebook\"",
394
557
  value: input.type
@@ -404,14 +567,18 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
404
567
  path: _path + ".grantedScopes",
405
568
  expected: "(Array<string> | undefined)",
406
569
  value: input.grantedScopes
570
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
571
+ path: _path + ".notifyOnPublish",
572
+ expected: "(boolean | undefined)",
573
+ value: input.notifyOnPublish
407
574
  }, errorFactory));
408
575
  const $au0 = (input, _path, _exceptionable = true) => (() => {
409
576
  if ("file" === input.type)
410
577
  return $ao0(input, _path, true && _exceptionable);
411
578
  else if ("reuters" === input.type)
412
- return $ao1(input, _path, true && _exceptionable);
413
- else if ("facebook" === input.type)
414
579
  return $ao2(input, _path, true && _exceptionable);
580
+ else if ("facebook" === input.type)
581
+ return $ao3(input, _path, true && _exceptionable);
415
582
  else
416
583
  return $guard(_exceptionable, {
417
584
  path: _path,
@@ -431,12 +598,13 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
431
598
  })(input, "$input", true);
432
599
  return input;
433
600
  }; const stringify = input => {
434
- 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);
435
- const $io1 = 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);
436
- const $io2 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
602
+ const $io1 = input => "string" === typeof input.content;
603
+ 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
604
+ const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
437
605
  const $string = __typia.json.createAssertStringify.string;
438
606
  const $throws = __typia.json.createAssertStringify.throws;
439
- 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},`}"type":${(() => {
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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
440
608
  if ("string" === typeof input.type)
441
609
  return $string(input.type);
442
610
  if ("string" === typeof input.type)
@@ -446,7 +614,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
446
614
  value: input.type
447
615
  });
448
616
  })()},"protocol":${$string(input.protocol)}}`;
449
- const $so1 = 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},`}"type":${(() => {
617
+ 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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
450
618
  if ("string" === typeof input.type)
451
619
  return $string(input.type);
452
620
  if ("string" === typeof input.type)
@@ -456,7 +624,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
456
624
  value: input.type
457
625
  });
458
626
  })()}}`;
459
- const $so2 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}"type":${(() => {
627
+ const $so3 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
460
628
  if ("string" === typeof input.type)
461
629
  return $string(input.type);
462
630
  if ("string" === typeof input.type)
@@ -470,9 +638,9 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
470
638
  if ("file" === input.type)
471
639
  return $so0(input);
472
640
  else if ("reuters" === input.type)
473
- return $so1(input);
474
- else if ("facebook" === input.type)
475
641
  return $so2(input);
642
+ else if ("facebook" === input.type)
643
+ return $so3(input);
476
644
  else
477
645
  $throws({
478
646
  expected: "(FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
@@ -481,187 +649,124 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
481
649
  })();
482
650
  return $su0(input);
483
651
  }; return stringify(assert(input, errorFactory)); };
484
- export const isConnectionStatsRecord = input => {
485
- 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)));
486
- const $io1 = input => true;
652
+ export const isConnectionRecordCommon = input => {
653
+ const $io0 = input => "string" === typeof input.type && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
487
654
  return "object" === typeof input && null !== input && $io0(input);
488
655
  };
489
- export const assertConnectionStatsRecord = (input, errorFactory) => {
656
+ export const assertConnectionRecordCommon = (input, errorFactory) => {
490
657
  const __is = input => {
491
- 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)));
492
- const $io1 = input => true;
658
+ const $io0 = input => "string" === typeof input.type && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
493
659
  return "object" === typeof input && null !== input && $io0(input);
494
660
  };
495
661
  if (false === __is(input))
496
662
  ((input, _path, _exceptionable = true) => {
497
663
  const $guard = __typia.createAssert.guard;
498
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
499
- path: _path + ".status",
500
- expected: "string",
501
- value: input.status
502
- }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
503
- path: _path + ".substatus",
664
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
665
+ path: _path + ".type",
504
666
  expected: "string",
505
- value: input.substatus
506
- }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
507
- path: _path + ".pages",
508
- expected: "(Array<__type> | undefined)",
509
- value: input.pages
510
- }, errorFactory)) && input.pages.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
511
- path: _path + ".pages[" + _index1 + "]",
512
- expected: "__type",
513
- value: elem
514
- }, errorFactory)) && $ao1(elem, _path + ".pages[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
515
- path: _path + ".pages[" + _index1 + "]",
516
- expected: "__type",
517
- value: elem
518
- }, errorFactory)) || $guard(_exceptionable, {
519
- path: _path + ".pages",
520
- expected: "(Array<__type> | undefined)",
521
- value: input.pages
667
+ value: input.type
668
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
669
+ path: _path + ".notifyOnPublish",
670
+ expected: "(boolean | undefined)",
671
+ value: input.notifyOnPublish
522
672
  }, errorFactory));
523
- const $ao1 = (input, _path, _exceptionable = true) => true;
524
673
  return ("object" === typeof input && null !== input || $guard(true, {
525
674
  path: _path + "",
526
- expected: "ConnectionStatsRecord",
675
+ expected: "ConnectionRecordCommon",
527
676
  value: input
528
677
  }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
529
678
  path: _path + "",
530
- expected: "ConnectionStatsRecord",
679
+ expected: "ConnectionRecordCommon",
531
680
  value: input
532
681
  }, errorFactory);
533
682
  })(input, "$input", true);
534
683
  return input;
535
684
  };
536
- export const randomConnectionStatsRecord = generator => {
685
+ export const randomConnectionRecordCommon = generator => {
537
686
  const $generator = __typia.createRandom.generator;
538
687
  const $pick = __typia.createRandom.pick;
539
688
  const $ro0 = (_recursive = false, _depth = 0) => ({
540
- status: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
541
- substatus: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
542
- pages: $pick([
689
+ type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
690
+ notifyOnPublish: $pick([
543
691
  () => undefined,
544
- () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
692
+ () => (generator?.boolean ?? $generator.boolean)()
545
693
  ])()
546
694
  });
547
- const $ro1 = (_recursive = false, _depth = 0) => ({
548
- id: "any type used..."
549
- });
550
695
  return $ro0();
551
696
  };
552
- export const assertGuardConnectionStatsRecord = (input, errorFactory) => {
697
+ export const assertGuardConnectionRecordCommon = (input, errorFactory) => {
553
698
  const __is = input => {
554
- 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)));
555
- const $io1 = input => true;
699
+ const $io0 = input => "string" === typeof input.type && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
556
700
  return "object" === typeof input && null !== input && $io0(input);
557
701
  };
558
702
  if (false === __is(input))
559
703
  ((input, _path, _exceptionable = true) => {
560
704
  const $guard = __typia.createAssertGuard.guard;
561
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
562
- path: _path + ".status",
563
- expected: "string",
564
- value: input.status
565
- }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
566
- path: _path + ".substatus",
705
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
706
+ path: _path + ".type",
567
707
  expected: "string",
568
- value: input.substatus
569
- }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
570
- path: _path + ".pages",
571
- expected: "(Array<__type> | undefined)",
572
- value: input.pages
573
- }, errorFactory)) && input.pages.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
574
- path: _path + ".pages[" + _index1 + "]",
575
- expected: "__type",
576
- value: elem
577
- }, errorFactory)) && $ao1(elem, _path + ".pages[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
578
- path: _path + ".pages[" + _index1 + "]",
579
- expected: "__type",
580
- value: elem
581
- }, errorFactory)) || $guard(_exceptionable, {
582
- path: _path + ".pages",
583
- expected: "(Array<__type> | undefined)",
584
- value: input.pages
708
+ value: input.type
709
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
710
+ path: _path + ".notifyOnPublish",
711
+ expected: "(boolean | undefined)",
712
+ value: input.notifyOnPublish
585
713
  }, errorFactory));
586
- const $ao1 = (input, _path, _exceptionable = true) => true;
587
714
  return ("object" === typeof input && null !== input || $guard(true, {
588
715
  path: _path + "",
589
- expected: "ConnectionStatsRecord",
716
+ expected: "ConnectionRecordCommon",
590
717
  value: input
591
718
  }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
592
719
  path: _path + "",
593
- expected: "ConnectionStatsRecord",
720
+ expected: "ConnectionRecordCommon",
594
721
  value: input
595
722
  }, errorFactory);
596
723
  })(input, "$input", true);
597
724
  };
598
- export const stringifyConnectionStatsRecord = input => {
599
- const $io1 = input => true;
725
+ export const stringifyConnectionRecordCommon = input => {
600
726
  const $string = __typia.json.createStringify.string;
601
- 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)}}`;
602
- const $so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`;
727
+ const $so0 = input => `{${undefined === input.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${$string(input.type)}}`;
603
728
  return $so0(input);
604
729
  };
605
- export const assertStringifyConnectionStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
730
+ export const assertStringifyConnectionRecordCommon = (input, errorFactory) => { const assert = (input, errorFactory) => {
606
731
  const __is = input => {
607
- 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)));
608
- const $io1 = input => true;
732
+ const $io0 = input => "string" === typeof input.type && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
609
733
  return "object" === typeof input && null !== input && $io0(input);
610
734
  };
611
735
  if (false === __is(input))
612
736
  ((input, _path, _exceptionable = true) => {
613
737
  const $guard = __typia.json.createAssertStringify.guard;
614
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
615
- path: _path + ".status",
616
- expected: "string",
617
- value: input.status
618
- }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
619
- path: _path + ".substatus",
738
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
739
+ path: _path + ".type",
620
740
  expected: "string",
621
- value: input.substatus
622
- }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
623
- path: _path + ".pages",
624
- expected: "(Array<__type> | undefined)",
625
- value: input.pages
626
- }, errorFactory)) && input.pages.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
627
- path: _path + ".pages[" + _index1 + "]",
628
- expected: "__type",
629
- value: elem
630
- }, errorFactory)) && $ao1(elem, _path + ".pages[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
631
- path: _path + ".pages[" + _index1 + "]",
632
- expected: "__type",
633
- value: elem
634
- }, errorFactory)) || $guard(_exceptionable, {
635
- path: _path + ".pages",
636
- expected: "(Array<__type> | undefined)",
637
- value: input.pages
741
+ value: input.type
742
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
743
+ path: _path + ".notifyOnPublish",
744
+ expected: "(boolean | undefined)",
745
+ value: input.notifyOnPublish
638
746
  }, errorFactory));
639
- const $ao1 = (input, _path, _exceptionable = true) => true;
640
747
  return ("object" === typeof input && null !== input || $guard(true, {
641
748
  path: _path + "",
642
- expected: "ConnectionStatsRecord",
749
+ expected: "ConnectionRecordCommon",
643
750
  value: input
644
751
  }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
645
752
  path: _path + "",
646
- expected: "ConnectionStatsRecord",
753
+ expected: "ConnectionRecordCommon",
647
754
  value: input
648
755
  }, errorFactory);
649
756
  })(input, "$input", true);
650
757
  return input;
651
758
  }; const stringify = input => {
652
- const $io1 = input => true;
653
759
  const $string = __typia.json.createAssertStringify.string;
654
- 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)}}`;
655
- const $so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`;
760
+ const $so0 = input => `{${undefined === input.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${$string(input.type)}}`;
656
761
  return $so0(input);
657
762
  }; return stringify(assert(input, errorFactory)); };
658
763
  export const isReutersConnectionRecord = input => {
659
- const $io0 = 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);
764
+ const $io0 = 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
660
765
  return "object" === typeof input && null !== input && $io0(input);
661
766
  };
662
767
  export const assertReutersConnectionRecord = (input, errorFactory) => {
663
768
  const __is = input => {
664
- const $io0 = 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);
769
+ const $io0 = 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
665
770
  return "object" === typeof input && null !== input && $io0(input);
666
771
  };
667
772
  if (false === __is(input))
@@ -683,6 +788,10 @@ export const assertReutersConnectionRecord = (input, errorFactory) => {
683
788
  path: _path + ".audience",
684
789
  expected: "(string | undefined)",
685
790
  value: input.audience
791
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
792
+ path: _path + ".notifyOnPublish",
793
+ expected: "(boolean | undefined)",
794
+ value: input.notifyOnPublish
686
795
  }, errorFactory));
687
796
  return ("object" === typeof input && null !== input || $guard(true, {
688
797
  path: _path + "",
@@ -712,13 +821,17 @@ export const randomReutersConnectionRecord = generator => {
712
821
  audience: $pick([
713
822
  () => undefined,
714
823
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
824
+ ])(),
825
+ notifyOnPublish: $pick([
826
+ () => undefined,
827
+ () => (generator?.boolean ?? $generator.boolean)()
715
828
  ])()
716
829
  });
717
830
  return $ro0();
718
831
  };
719
832
  export const assertGuardReutersConnectionRecord = (input, errorFactory) => {
720
833
  const __is = input => {
721
- const $io0 = 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);
834
+ const $io0 = 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
722
835
  return "object" === typeof input && null !== input && $io0(input);
723
836
  };
724
837
  if (false === __is(input))
@@ -740,6 +853,10 @@ export const assertGuardReutersConnectionRecord = (input, errorFactory) => {
740
853
  path: _path + ".audience",
741
854
  expected: "(string | undefined)",
742
855
  value: input.audience
856
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
857
+ path: _path + ".notifyOnPublish",
858
+ expected: "(boolean | undefined)",
859
+ value: input.notifyOnPublish
743
860
  }, errorFactory));
744
861
  return ("object" === typeof input && null !== input || $guard(true, {
745
862
  path: _path + "",
@@ -755,7 +872,7 @@ export const assertGuardReutersConnectionRecord = (input, errorFactory) => {
755
872
  export const stringifyReutersConnectionRecord = input => {
756
873
  const $string = __typia.json.createStringify.string;
757
874
  const $throws = __typia.json.createStringify.throws;
758
- const $so0 = 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},`}"type":${(() => {
875
+ const $so0 = 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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
759
876
  if ("string" === typeof input.type)
760
877
  return $string(input.type);
761
878
  if ("string" === typeof input.type)
@@ -769,7 +886,7 @@ export const stringifyReutersConnectionRecord = input => {
769
886
  };
770
887
  export const assertStringifyReutersConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
771
888
  const __is = input => {
772
- const $io0 = 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);
889
+ const $io0 = 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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
773
890
  return "object" === typeof input && null !== input && $io0(input);
774
891
  };
775
892
  if (false === __is(input))
@@ -791,6 +908,10 @@ export const assertStringifyReutersConnectionRecord = (input, errorFactory) => {
791
908
  path: _path + ".audience",
792
909
  expected: "(string | undefined)",
793
910
  value: input.audience
911
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
912
+ path: _path + ".notifyOnPublish",
913
+ expected: "(boolean | undefined)",
914
+ value: input.notifyOnPublish
794
915
  }, errorFactory));
795
916
  return ("object" === typeof input && null !== input || $guard(true, {
796
917
  path: _path + "",
@@ -806,7 +927,7 @@ export const assertStringifyReutersConnectionRecord = (input, errorFactory) => {
806
927
  }; const stringify = input => {
807
928
  const $string = __typia.json.createAssertStringify.string;
808
929
  const $throws = __typia.json.createAssertStringify.throws;
809
- const $so0 = 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},`}"type":${(() => {
930
+ const $so0 = 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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
810
931
  if ("string" === typeof input.type)
811
932
  return $string(input.type);
812
933
  if ("string" === typeof input.type)
@@ -819,12 +940,12 @@ export const assertStringifyReutersConnectionRecord = (input, errorFactory) => {
819
940
  return $so0(input);
820
941
  }; return stringify(assert(input, errorFactory)); };
821
942
  export const isFacebookConnectionRecord = input => {
822
- const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
943
+ const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
823
944
  return "object" === typeof input && null !== input && $io0(input);
824
945
  };
825
946
  export const assertFacebookConnectionRecord = (input, errorFactory) => {
826
947
  const __is = input => {
827
- const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
948
+ const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
828
949
  return "object" === typeof input && null !== input && $io0(input);
829
950
  };
830
951
  if (false === __is(input))
@@ -846,6 +967,10 @@ export const assertFacebookConnectionRecord = (input, errorFactory) => {
846
967
  path: _path + ".grantedScopes",
847
968
  expected: "(Array<string> | undefined)",
848
969
  value: input.grantedScopes
970
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
971
+ path: _path + ".notifyOnPublish",
972
+ expected: "(boolean | undefined)",
973
+ value: input.notifyOnPublish
849
974
  }, errorFactory));
850
975
  return ("object" === typeof input && null !== input || $guard(true, {
851
976
  path: _path + "",
@@ -867,13 +992,17 @@ export const randomFacebookConnectionRecord = generator => {
867
992
  grantedScopes: $pick([
868
993
  () => undefined,
869
994
  () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
995
+ ])(),
996
+ notifyOnPublish: $pick([
997
+ () => undefined,
998
+ () => (generator?.boolean ?? $generator.boolean)()
870
999
  ])()
871
1000
  });
872
1001
  return $ro0();
873
1002
  };
874
1003
  export const assertGuardFacebookConnectionRecord = (input, errorFactory) => {
875
1004
  const __is = input => {
876
- const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
1005
+ const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
877
1006
  return "object" === typeof input && null !== input && $io0(input);
878
1007
  };
879
1008
  if (false === __is(input))
@@ -895,6 +1024,10 @@ export const assertGuardFacebookConnectionRecord = (input, errorFactory) => {
895
1024
  path: _path + ".grantedScopes",
896
1025
  expected: "(Array<string> | undefined)",
897
1026
  value: input.grantedScopes
1027
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
1028
+ path: _path + ".notifyOnPublish",
1029
+ expected: "(boolean | undefined)",
1030
+ value: input.notifyOnPublish
898
1031
  }, errorFactory));
899
1032
  return ("object" === typeof input && null !== input || $guard(true, {
900
1033
  path: _path + "",
@@ -910,7 +1043,7 @@ export const assertGuardFacebookConnectionRecord = (input, errorFactory) => {
910
1043
  export const stringifyFacebookConnectionRecord = input => {
911
1044
  const $string = __typia.json.createStringify.string;
912
1045
  const $throws = __typia.json.createStringify.throws;
913
- const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}"type":${(() => {
1046
+ const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
914
1047
  if ("string" === typeof input.type)
915
1048
  return $string(input.type);
916
1049
  if ("string" === typeof input.type)
@@ -924,7 +1057,7 @@ export const stringifyFacebookConnectionRecord = input => {
924
1057
  };
925
1058
  export const assertStringifyFacebookConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
926
1059
  const __is = input => {
927
- const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem));
1060
+ const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
928
1061
  return "object" === typeof input && null !== input && $io0(input);
929
1062
  };
930
1063
  if (false === __is(input))
@@ -946,6 +1079,10 @@ export const assertStringifyFacebookConnectionRecord = (input, errorFactory) =>
946
1079
  path: _path + ".grantedScopes",
947
1080
  expected: "(Array<string> | undefined)",
948
1081
  value: input.grantedScopes
1082
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
1083
+ path: _path + ".notifyOnPublish",
1084
+ expected: "(boolean | undefined)",
1085
+ value: input.notifyOnPublish
949
1086
  }, errorFactory));
950
1087
  return ("object" === typeof input && null !== input || $guard(true, {
951
1088
  path: _path + "",
@@ -961,7 +1098,7 @@ export const assertStringifyFacebookConnectionRecord = (input, errorFactory) =>
961
1098
  }; const stringify = input => {
962
1099
  const $string = __typia.json.createAssertStringify.string;
963
1100
  const $throws = __typia.json.createAssertStringify.throws;
964
- const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}"type":${(() => {
1101
+ const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
965
1102
  if ("string" === typeof input.type)
966
1103
  return $string(input.type);
967
1104
  if ("string" === typeof input.type)
@@ -974,12 +1111,14 @@ export const assertStringifyFacebookConnectionRecord = (input, errorFactory) =>
974
1111
  return $so0(input);
975
1112
  }; return stringify(assert(input, errorFactory)); };
976
1113
  export const isFilePublishConnectionRecord = input => {
977
- 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);
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
1115
+ const $io1 = input => "string" === typeof input.content;
978
1116
  return "object" === typeof input && null !== input && $io0(input);
979
1117
  };
980
1118
  export const assertFilePublishConnectionRecord = (input, errorFactory) => {
981
1119
  const __is = input => {
982
- 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);
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
1121
+ const $io1 = input => "string" === typeof input.content;
983
1122
  return "object" === typeof input && null !== input && $io0(input);
984
1123
  };
985
1124
  if (false === __is(input))
@@ -1009,7 +1148,40 @@ export const assertFilePublishConnectionRecord = (input, errorFactory) => {
1009
1148
  path: _path + ".concurrency",
1010
1149
  expected: "(number | undefined)",
1011
1150
  value: input.concurrency
1151
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
1152
+ path: _path + ".stabilityThreshold",
1153
+ expected: "(number | undefined)",
1154
+ value: input.stabilityThreshold
1155
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
1156
+ path: _path + ".pollInterval",
1157
+ expected: "(number | undefined)",
1158
+ value: input.pollInterval
1159
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
1160
+ path: _path + ".listConcurrency",
1161
+ expected: "(number | undefined)",
1162
+ 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
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1168
+ path: _path + ".metafile",
1169
+ expected: "(__type | undefined)",
1170
+ value: input.metafile
1171
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
1172
+ path: _path + ".metafile",
1173
+ expected: "(__type | undefined)",
1174
+ value: input.metafile
1175
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
1176
+ path: _path + ".notifyOnPublish",
1177
+ expected: "(boolean | undefined)",
1178
+ value: input.notifyOnPublish
1012
1179
  }, errorFactory));
1180
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
1181
+ path: _path + ".content",
1182
+ expected: "string",
1183
+ value: input.content
1184
+ }, errorFactory);
1013
1185
  return ("object" === typeof input && null !== input || $guard(true, {
1014
1186
  path: _path + "",
1015
1187
  expected: "FilePublishConnectionRecord",
@@ -1043,13 +1215,45 @@ export const randomFilePublishConnectionRecord = generator => {
1043
1215
  concurrency: $pick([
1044
1216
  () => undefined,
1045
1217
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1218
+ ])(),
1219
+ stabilityThreshold: $pick([
1220
+ () => undefined,
1221
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1222
+ ])(),
1223
+ pollInterval: $pick([
1224
+ () => undefined,
1225
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1226
+ ])(),
1227
+ listConcurrency: $pick([
1228
+ () => undefined,
1229
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1230
+ ])(),
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
+ metafile: $pick([
1240
+ () => undefined,
1241
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
1242
+ ])(),
1243
+ notifyOnPublish: $pick([
1244
+ () => undefined,
1245
+ () => (generator?.boolean ?? $generator.boolean)()
1046
1246
  ])()
1047
1247
  });
1248
+ const $ro1 = (_recursive = false, _depth = 0) => ({
1249
+ content: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1250
+ });
1048
1251
  return $ro0();
1049
1252
  };
1050
1253
  export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
1051
1254
  const __is = input => {
1052
- 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);
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
1256
+ const $io1 = input => "string" === typeof input.content;
1053
1257
  return "object" === typeof input && null !== input && $io0(input);
1054
1258
  };
1055
1259
  if (false === __is(input))
@@ -1079,7 +1283,40 @@ export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
1079
1283
  path: _path + ".concurrency",
1080
1284
  expected: "(number | undefined)",
1081
1285
  value: input.concurrency
1286
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold || $guard(_exceptionable, {
1287
+ path: _path + ".stabilityThreshold",
1288
+ expected: "(number | undefined)",
1289
+ value: input.stabilityThreshold
1290
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval || $guard(_exceptionable, {
1291
+ path: _path + ".pollInterval",
1292
+ expected: "(number | undefined)",
1293
+ value: input.pollInterval
1294
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency || $guard(_exceptionable, {
1295
+ path: _path + ".listConcurrency",
1296
+ expected: "(number | undefined)",
1297
+ 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
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1303
+ path: _path + ".metafile",
1304
+ expected: "(__type | undefined)",
1305
+ value: input.metafile
1306
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
1307
+ path: _path + ".metafile",
1308
+ expected: "(__type | undefined)",
1309
+ value: input.metafile
1310
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
1311
+ path: _path + ".notifyOnPublish",
1312
+ expected: "(boolean | undefined)",
1313
+ value: input.notifyOnPublish
1082
1314
  }, errorFactory));
1315
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
1316
+ path: _path + ".content",
1317
+ expected: "string",
1318
+ value: input.content
1319
+ }, errorFactory);
1083
1320
  return ("object" === typeof input && null !== input || $guard(true, {
1084
1321
  path: _path + "",
1085
1322
  expected: "FilePublishConnectionRecord",
@@ -1092,9 +1329,10 @@ export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
1092
1329
  })(input, "$input", true);
1093
1330
  };
1094
1331
  export const stringifyFilePublishConnectionRecord = input => {
1332
+ const $io1 = input => "string" === typeof input.content;
1095
1333
  const $string = __typia.json.createStringify.string;
1096
1334
  const $throws = __typia.json.createStringify.throws;
1097
- 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},`}"type":${(() => {
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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
1098
1336
  if ("string" === typeof input.type)
1099
1337
  return $string(input.type);
1100
1338
  if ("string" === typeof input.type)
@@ -1108,7 +1346,8 @@ export const stringifyFilePublishConnectionRecord = input => {
1108
1346
  };
1109
1347
  export const assertStringifyFilePublishConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1110
1348
  const __is = input => {
1111
- 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));
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.notifyOnPublish || "boolean" === typeof input.notifyOnPublish);
1350
+ const $io1 = input => "string" === typeof input.content;
1112
1351
  return "object" === typeof input && null !== input && $io0(input);
1113
1352
  };
1114
1353
  if (false === __is(input))
@@ -1138,7 +1377,40 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
1138
1377
  path: _path + ".concurrency",
1139
1378
  expected: "(number | undefined)",
1140
1379
  value: input.concurrency
1380
+ }, errorFactory)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold) || $guard(_exceptionable, {
1381
+ path: _path + ".stabilityThreshold",
1382
+ expected: "(number | undefined)",
1383
+ value: input.stabilityThreshold
1384
+ }, errorFactory)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval) || $guard(_exceptionable, {
1385
+ path: _path + ".pollInterval",
1386
+ expected: "(number | undefined)",
1387
+ value: input.pollInterval
1388
+ }, errorFactory)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency) || $guard(_exceptionable, {
1389
+ path: _path + ".listConcurrency",
1390
+ expected: "(number | undefined)",
1391
+ 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
+ }, errorFactory)) && (undefined === input.metafile || ("object" === typeof input.metafile && null !== input.metafile || $guard(_exceptionable, {
1397
+ path: _path + ".metafile",
1398
+ expected: "(__type | undefined)",
1399
+ value: input.metafile
1400
+ }, errorFactory)) && $ao1(input.metafile, _path + ".metafile", true && _exceptionable) || $guard(_exceptionable, {
1401
+ path: _path + ".metafile",
1402
+ expected: "(__type | undefined)",
1403
+ value: input.metafile
1404
+ }, errorFactory)) && (undefined === input.notifyOnPublish || "boolean" === typeof input.notifyOnPublish || $guard(_exceptionable, {
1405
+ path: _path + ".notifyOnPublish",
1406
+ expected: "(boolean | undefined)",
1407
+ value: input.notifyOnPublish
1141
1408
  }, errorFactory));
1409
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
1410
+ path: _path + ".content",
1411
+ expected: "string",
1412
+ value: input.content
1413
+ }, errorFactory);
1142
1414
  return ("object" === typeof input && null !== input || $guard(true, {
1143
1415
  path: _path + "",
1144
1416
  expected: "FilePublishConnectionRecord",
@@ -1151,9 +1423,10 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
1151
1423
  })(input, "$input", true);
1152
1424
  return input;
1153
1425
  }; const stringify = input => {
1426
+ const $io1 = input => "string" === typeof input.content;
1154
1427
  const $string = __typia.json.createAssertStringify.string;
1155
1428
  const $throws = __typia.json.createAssertStringify.throws;
1156
- 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},`}"type":${(() => {
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.notifyOnPublish ? "" : `"notifyOnPublish":${undefined !== input.notifyOnPublish ? input.notifyOnPublish : undefined},`}"type":${(() => {
1157
1430
  if ("string" === typeof input.type)
1158
1431
  return $string(input.type);
1159
1432
  if ("string" === typeof input.type)
@@ -1165,3 +1438,177 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
1165
1438
  })()},"protocol":${$string(input.protocol)}}`;
1166
1439
  return $so0(input);
1167
1440
  }; 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;
1444
+ return "object" === typeof input && null !== input && $io0(input);
1445
+ };
1446
+ export const assertConnectionStatsRecord = (input, errorFactory) => {
1447
+ 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;
1450
+ return "object" === typeof input && null !== input && $io0(input);
1451
+ };
1452
+ if (false === __is(input))
1453
+ ((input, _path, _exceptionable = true) => {
1454
+ 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",
1461
+ 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
1479
+ }, errorFactory));
1480
+ const $ao1 = (input, _path, _exceptionable = true) => true;
1481
+ return ("object" === typeof input && null !== input || $guard(true, {
1482
+ path: _path + "",
1483
+ expected: "ConnectionStatsRecord",
1484
+ value: input
1485
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1486
+ path: _path + "",
1487
+ expected: "ConnectionStatsRecord",
1488
+ value: input
1489
+ }, errorFactory);
1490
+ })(input, "$input", true);
1491
+ return input;
1492
+ };
1493
+ export const randomConnectionStatsRecord = generator => {
1494
+ const $generator = __typia.createRandom.generator;
1495
+ const $pick = __typia.createRandom.pick;
1496
+ 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([
1500
+ () => 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
+ };
1515
+ if (false === __is(input))
1516
+ ((input, _path, _exceptionable = true) => {
1517
+ const $guard = __typia.createAssertGuard.guard;
1518
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
1519
+ path: _path + ".status",
1520
+ expected: "string",
1521
+ value: input.status
1522
+ }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
1523
+ path: _path + ".substatus",
1524
+ expected: "string",
1525
+ value: input.substatus
1526
+ }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
1527
+ path: _path + ".pages",
1528
+ expected: "(Array<__type> | undefined)",
1529
+ value: input.pages
1530
+ }, errorFactory)) && input.pages.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1531
+ path: _path + ".pages[" + _index1 + "]",
1532
+ expected: "__type",
1533
+ value: elem
1534
+ }, errorFactory)) && $ao1(elem, _path + ".pages[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1535
+ path: _path + ".pages[" + _index1 + "]",
1536
+ expected: "__type",
1537
+ value: elem
1538
+ }, errorFactory)) || $guard(_exceptionable, {
1539
+ path: _path + ".pages",
1540
+ expected: "(Array<__type> | undefined)",
1541
+ value: input.pages
1542
+ }, errorFactory));
1543
+ const $ao1 = (input, _path, _exceptionable = true) => true;
1544
+ return ("object" === typeof input && null !== input || $guard(true, {
1545
+ path: _path + "",
1546
+ expected: "ConnectionStatsRecord",
1547
+ value: input
1548
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1549
+ path: _path + "",
1550
+ expected: "ConnectionStatsRecord",
1551
+ value: input
1552
+ }, errorFactory);
1553
+ })(input, "$input", true);
1554
+ };
1555
+ export const stringifyConnectionStatsRecord = input => {
1556
+ const $io1 = input => true;
1557
+ 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)}}`;
1559
+ const $so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`;
1560
+ return $so0(input);
1561
+ };
1562
+ export const assertStringifyConnectionStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1563
+ 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)));
1565
+ const $io1 = input => true;
1566
+ return "object" === typeof input && null !== input && $io0(input);
1567
+ };
1568
+ if (false === __is(input))
1569
+ ((input, _path, _exceptionable = true) => {
1570
+ const $guard = __typia.json.createAssertStringify.guard;
1571
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.status || $guard(_exceptionable, {
1572
+ path: _path + ".status",
1573
+ expected: "string",
1574
+ value: input.status
1575
+ }, errorFactory)) && ("string" === typeof input.substatus || $guard(_exceptionable, {
1576
+ path: _path + ".substatus",
1577
+ expected: "string",
1578
+ value: input.substatus
1579
+ }, errorFactory)) && (undefined === input.pages || (Array.isArray(input.pages) || $guard(_exceptionable, {
1580
+ path: _path + ".pages",
1581
+ expected: "(Array<__type> | undefined)",
1582
+ value: input.pages
1583
+ }, errorFactory)) && input.pages.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1584
+ path: _path + ".pages[" + _index1 + "]",
1585
+ expected: "__type",
1586
+ value: elem
1587
+ }, errorFactory)) && $ao1(elem, _path + ".pages[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1588
+ path: _path + ".pages[" + _index1 + "]",
1589
+ expected: "__type",
1590
+ value: elem
1591
+ }, errorFactory)) || $guard(_exceptionable, {
1592
+ path: _path + ".pages",
1593
+ expected: "(Array<__type> | undefined)",
1594
+ value: input.pages
1595
+ }, errorFactory));
1596
+ const $ao1 = (input, _path, _exceptionable = true) => true;
1597
+ return ("object" === typeof input && null !== input || $guard(true, {
1598
+ path: _path + "",
1599
+ expected: "ConnectionStatsRecord",
1600
+ value: input
1601
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1602
+ path: _path + "",
1603
+ expected: "ConnectionStatsRecord",
1604
+ value: input
1605
+ }, errorFactory);
1606
+ })(input, "$input", true);
1607
+ return input;
1608
+ }; const stringify = input => {
1609
+ const $io1 = input => true;
1610
+ 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)}}`;
1612
+ const $so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`;
1613
+ return $so0(input);
1614
+ }; return stringify(assert(input, errorFactory)); };