@nxtedition/types 23.0.51 → 23.0.53

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.
@@ -1672,7 +1672,7 @@ function _validateEqualsExactRecord(name, input) {
1672
1672
  if (undefined === value)
1673
1673
  return true;
1674
1674
  return "object" === typeof value && null !== value && _io1(value, true && _exceptionable);
1675
- }); const _io1 = (input, _exceptionable = true) => "string" === typeof input.id && "string" === typeof input.location && "string" === typeof input.timestamp && "string" === typeof input.type && "string" === typeof input.zone && (null === input.free || "number" === typeof input.free) && (null === input.size || "number" === typeof input.size) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && (null === input.capacity || "number" === typeof input.capacity) && "string" === typeof input.origin && (Array.isArray(input.allows) && input.allows.every((elem, _index1) => "get" === elem || "put" === elem || "del" === elem)) && ("object" === typeof input.net && null !== input.net && _io2(input.net, true && _exceptionable)) && "number" === typeof input.latency && (14 === Object.keys(input).length || Object.keys(input).every(key => {
1675
+ }); const _io1 = (input, _exceptionable = true) => "string" === typeof input.id && "string" === typeof input.location && "string" === typeof input.timestamp && "string" === typeof input.type && "string" === typeof input.zone && (null === input.free || "number" === typeof input.free) && (null === input.size || "number" === typeof input.size) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && (null === input.capacity || "number" === typeof input.capacity) && "string" === typeof input.origin && (Array.isArray(input.allows) && input.allows.every((elem, _index1) => "get" === elem || "put" === elem || "del" === elem)) && (undefined === input.net || "object" === typeof input.net && null !== input.net && _io2(input.net, true && _exceptionable)) && "number" === typeof input.latency && (13 === Object.keys(input).length || Object.keys(input).every(key => {
1676
1676
  if (["id", "location", "timestamp", "type", "zone", "free", "size", "available", "cache", "capacity", "origin", "allows", "net", "latency"].some(prop => key === prop))
1677
1677
  return true;
1678
1678
  const value = input[key];
@@ -1755,19 +1755,19 @@ function _validateEqualsExactRecord(name, input) {
1755
1755
  path: _path + ".allows",
1756
1756
  expected: "Array<\"get\" | \"put\" | \"del\">",
1757
1757
  value: input.allows
1758
- }), ("object" === typeof input.net && null !== input.net || _report(_exceptionable, {
1758
+ }), undefined === input.net || ("object" === typeof input.net && null !== input.net || _report(_exceptionable, {
1759
1759
  path: _path + ".net",
1760
- expected: "__type",
1760
+ expected: "(__type | undefined)",
1761
1761
  value: input.net
1762
1762
  })) && _vo2(input.net, _path + ".net", true && _exceptionable) || _report(_exceptionable, {
1763
1763
  path: _path + ".net",
1764
- expected: "__type",
1764
+ expected: "(__type | undefined)",
1765
1765
  value: input.net
1766
1766
  }), "number" === typeof input.latency || _report(_exceptionable, {
1767
1767
  path: _path + ".latency",
1768
1768
  expected: "number",
1769
1769
  value: input.latency
1770
- }), 14 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1770
+ }), 13 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1771
1771
  if (["id", "location", "timestamp", "type", "zone", "free", "size", "available", "cache", "capacity", "origin", "allows", "net", "latency"].some(prop => key === prop))
1772
1772
  return true;
1773
1773
  const value = input[key];
@@ -4910,6 +4910,63 @@ function _validateEqualsDomainRecord(domain, input) {
4910
4910
  };
4911
4911
  }; })()(input);
4912
4912
  }
4913
+ case ":auth": {
4914
+ return (() => { const _io0 = (input, _exceptionable = true) => (null === input.hash || undefined === input.hash || "string" === typeof input.hash) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
4915
+ if (["hash"].some(prop => key === prop))
4916
+ return true;
4917
+ const value = input[key];
4918
+ if (undefined === value)
4919
+ return true;
4920
+ return false;
4921
+ })); const _vo0 = (input, _path, _exceptionable = true) => [null === input.hash || undefined === input.hash || "string" === typeof input.hash || _report(_exceptionable, {
4922
+ path: _path + ".hash",
4923
+ expected: "(null | string | undefined)",
4924
+ value: input.hash
4925
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
4926
+ if (["hash"].some(prop => key === prop))
4927
+ return true;
4928
+ const value = input[key];
4929
+ if (undefined === value)
4930
+ return true;
4931
+ return _report(_exceptionable, {
4932
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
4933
+ expected: "undefined",
4934
+ value: value,
4935
+ description: [
4936
+ `The property \`${key}\` is not defined in the object type.`,
4937
+ "",
4938
+ "Please remove the property next time."
4939
+ ].join("\n")
4940
+ });
4941
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
4942
+ if (false === __is(input)) {
4943
+ errors = [];
4944
+ _report = __typia_transform__validateReport._validateReport(errors);
4945
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
4946
+ path: _path + "",
4947
+ expected: "AuthDomainRecord",
4948
+ value: input
4949
+ })) && _vo0(input, _path + "", true) || _report(true, {
4950
+ path: _path + "",
4951
+ expected: "AuthDomainRecord",
4952
+ value: input
4953
+ }))(input, "$input", true);
4954
+ const success = 0 === errors.length;
4955
+ return success ? {
4956
+ success,
4957
+ data: input
4958
+ } : {
4959
+ success,
4960
+ errors,
4961
+ data: input
4962
+ };
4963
+ }
4964
+ return {
4965
+ success: true,
4966
+ data: input
4967
+ };
4968
+ }; })()(input);
4969
+ }
4913
4970
  case ":bundle": {
4914
4971
  return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && _io1(input.files, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
4915
4972
  if (["user", "description", "files"].some(prop => key === prop))
@@ -6760,8 +6817,8 @@ function _validateEqualsDomainRecord(domain, input) {
6760
6817
  }; })()(input);
6761
6818
  }
6762
6819
  case ":contact": {
6763
- return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6764
- if (["title", "email", "firstName", "lastName"].some(prop => key === prop))
6820
+ return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.phone || "string" === typeof input.phone) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName) && (undefined === input.cell || "string" === typeof input.cell) && (undefined === input.company || "string" === typeof input.company) && (undefined === input.address || "string" === typeof input.address) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6821
+ if (["title", "email", "phone", "firstName", "lastName", "cell", "company", "address"].some(prop => key === prop))
6765
6822
  return true;
6766
6823
  const value = input[key];
6767
6824
  if (undefined === value)
@@ -6775,6 +6832,10 @@ function _validateEqualsDomainRecord(domain, input) {
6775
6832
  path: _path + ".email",
6776
6833
  expected: "(string | undefined)",
6777
6834
  value: input.email
6835
+ }), undefined === input.phone || "string" === typeof input.phone || _report(_exceptionable, {
6836
+ path: _path + ".phone",
6837
+ expected: "(string | undefined)",
6838
+ value: input.phone
6778
6839
  }), undefined === input.firstName || "string" === typeof input.firstName || _report(_exceptionable, {
6779
6840
  path: _path + ".firstName",
6780
6841
  expected: "(string | undefined)",
@@ -6783,8 +6844,20 @@ function _validateEqualsDomainRecord(domain, input) {
6783
6844
  path: _path + ".lastName",
6784
6845
  expected: "(string | undefined)",
6785
6846
  value: input.lastName
6847
+ }), undefined === input.cell || "string" === typeof input.cell || _report(_exceptionable, {
6848
+ path: _path + ".cell",
6849
+ expected: "(string | undefined)",
6850
+ value: input.cell
6851
+ }), undefined === input.company || "string" === typeof input.company || _report(_exceptionable, {
6852
+ path: _path + ".company",
6853
+ expected: "(string | undefined)",
6854
+ value: input.company
6855
+ }), undefined === input.address || "string" === typeof input.address || _report(_exceptionable, {
6856
+ path: _path + ".address",
6857
+ expected: "(string | undefined)",
6858
+ value: input.address
6786
6859
  }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
6787
- if (["title", "email", "firstName", "lastName"].some(prop => key === prop))
6860
+ if (["title", "email", "phone", "firstName", "lastName", "cell", "company", "address"].some(prop => key === prop))
6788
6861
  return true;
6789
6862
  const value = input[key];
6790
6863
  if (undefined === value)
@@ -9076,6 +9149,139 @@ function _validateEqualsDomainRecord(domain, input) {
9076
9149
  };
9077
9150
  }; })()(input);
9078
9151
  }
9152
+ case ":general._asset": {
9153
+ return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (undefined === input.tags || "string" === typeof input.tags) && (undefined === input.media || "string" === typeof input.media) && (undefined === input.duration || "string" === typeof input.duration) && (undefined === input.deadlines || "string" === typeof input.deadlines) && (undefined === input.assignees || "string" === typeof input.assignees) && (undefined === input.locations || "string" === typeof input.locations) && (undefined === input.status || "string" === typeof input.status) && (undefined === input.storage || "string" === typeof input.storage) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
9154
+ if (["title", "tags", "media", "duration", "deadlines", "assignees", "locations", "status", "storage"].some(prop => key === prop))
9155
+ return true;
9156
+ const value = input[key];
9157
+ if (undefined === value)
9158
+ return true;
9159
+ return false;
9160
+ })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
9161
+ path: _path + ".title",
9162
+ expected: "(string | undefined)",
9163
+ value: input.title
9164
+ }), undefined === input.tags || "string" === typeof input.tags || _report(_exceptionable, {
9165
+ path: _path + ".tags",
9166
+ expected: "(string | undefined)",
9167
+ value: input.tags
9168
+ }), undefined === input.media || "string" === typeof input.media || _report(_exceptionable, {
9169
+ path: _path + ".media",
9170
+ expected: "(string | undefined)",
9171
+ value: input.media
9172
+ }), undefined === input.duration || "string" === typeof input.duration || _report(_exceptionable, {
9173
+ path: _path + ".duration",
9174
+ expected: "(string | undefined)",
9175
+ value: input.duration
9176
+ }), undefined === input.deadlines || "string" === typeof input.deadlines || _report(_exceptionable, {
9177
+ path: _path + ".deadlines",
9178
+ expected: "(string | undefined)",
9179
+ value: input.deadlines
9180
+ }), undefined === input.assignees || "string" === typeof input.assignees || _report(_exceptionable, {
9181
+ path: _path + ".assignees",
9182
+ expected: "(string | undefined)",
9183
+ value: input.assignees
9184
+ }), undefined === input.locations || "string" === typeof input.locations || _report(_exceptionable, {
9185
+ path: _path + ".locations",
9186
+ expected: "(string | undefined)",
9187
+ value: input.locations
9188
+ }), undefined === input.status || "string" === typeof input.status || _report(_exceptionable, {
9189
+ path: _path + ".status",
9190
+ expected: "(string | undefined)",
9191
+ value: input.status
9192
+ }), undefined === input.storage || "string" === typeof input.storage || _report(_exceptionable, {
9193
+ path: _path + ".storage",
9194
+ expected: "(string | undefined)",
9195
+ value: input.storage
9196
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
9197
+ if (["title", "tags", "media", "duration", "deadlines", "assignees", "locations", "status", "storage"].some(prop => key === prop))
9198
+ return true;
9199
+ const value = input[key];
9200
+ if (undefined === value)
9201
+ return true;
9202
+ return _report(_exceptionable, {
9203
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
9204
+ expected: "undefined",
9205
+ value: value,
9206
+ description: [
9207
+ `The property \`${key}\` is not defined in the object type.`,
9208
+ "",
9209
+ "Please remove the property next time."
9210
+ ].join("\n")
9211
+ });
9212
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
9213
+ if (false === __is(input)) {
9214
+ errors = [];
9215
+ _report = __typia_transform__validateReport._validateReport(errors);
9216
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
9217
+ path: _path + "",
9218
+ expected: "GeneralAssetRecord",
9219
+ value: input
9220
+ })) && _vo0(input, _path + "", true) || _report(true, {
9221
+ path: _path + "",
9222
+ expected: "GeneralAssetRecord",
9223
+ value: input
9224
+ }))(input, "$input", true);
9225
+ const success = 0 === errors.length;
9226
+ return success ? {
9227
+ success,
9228
+ data: input
9229
+ } : {
9230
+ success,
9231
+ errors,
9232
+ data: input
9233
+ };
9234
+ }
9235
+ return {
9236
+ success: true,
9237
+ data: input
9238
+ };
9239
+ }; })()(input);
9240
+ }
9241
+ case ":general._embedding": {
9242
+ return (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
9243
+ const value = input[key];
9244
+ if (undefined === value)
9245
+ return true;
9246
+ return null === value || "string" === typeof value;
9247
+ }); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
9248
+ const value = input[key];
9249
+ if (undefined === value)
9250
+ return true;
9251
+ return null === value || "string" === typeof value || _report(_exceptionable, {
9252
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
9253
+ expected: "(null | string)",
9254
+ value: value
9255
+ });
9256
+ }).every(flag => flag)].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
9257
+ if (false === __is(input)) {
9258
+ errors = [];
9259
+ _report = __typia_transform__validateReport._validateReport(errors);
9260
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
9261
+ path: _path + "",
9262
+ expected: "GeneralEmbeddingRecord",
9263
+ value: input
9264
+ })) && _vo0(input, _path + "", true) || _report(true, {
9265
+ path: _path + "",
9266
+ expected: "GeneralEmbeddingRecord",
9267
+ value: input
9268
+ }))(input, "$input", true);
9269
+ const success = 0 === errors.length;
9270
+ return success ? {
9271
+ success,
9272
+ data: input
9273
+ } : {
9274
+ success,
9275
+ errors,
9276
+ data: input
9277
+ };
9278
+ }
9279
+ return {
9280
+ success: true,
9281
+ data: input
9282
+ };
9283
+ }; })()(input);
9284
+ }
9079
9285
  case ":media.source": {
9080
9286
  return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io1(input.input, true && _exceptionable)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io2(input.subtitleTracks, true && _exceptionable)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io5(input.video, true && _exceptionable)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io7(input.transcribe, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
9081
9287
  if (["id", "preset", "input", "lang", "subtitle", "subtitleTracks", "video", "start", "end", "transcribe"].some(prop => key === prop))
@@ -24502,6 +24708,71 @@ function _validateEqualsDomainRecord(domain, input) {
24502
24708
  };
24503
24709
  }; })()(input);
24504
24710
  }
24711
+ case ":username?": {
24712
+ return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.value || Array.isArray(input.value) && input.value.every((elem, _index1) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
24713
+ if (["value"].some(prop => key === prop))
24714
+ return true;
24715
+ const value = input[key];
24716
+ if (undefined === value)
24717
+ return true;
24718
+ return false;
24719
+ })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.value || (Array.isArray(input.value) || _report(_exceptionable, {
24720
+ path: _path + ".value",
24721
+ expected: "(Array<string> | undefined)",
24722
+ value: input.value
24723
+ })) && input.value.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
24724
+ path: _path + ".value[" + _index2 + "]",
24725
+ expected: "string",
24726
+ value: elem
24727
+ })).every(flag => flag) || _report(_exceptionable, {
24728
+ path: _path + ".value",
24729
+ expected: "(Array<string> | undefined)",
24730
+ value: input.value
24731
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
24732
+ if (["value"].some(prop => key === prop))
24733
+ return true;
24734
+ const value = input[key];
24735
+ if (undefined === value)
24736
+ return true;
24737
+ return _report(_exceptionable, {
24738
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
24739
+ expected: "undefined",
24740
+ value: value,
24741
+ description: [
24742
+ `The property \`${key}\` is not defined in the object type.`,
24743
+ "",
24744
+ "Please remove the property next time."
24745
+ ].join("\n")
24746
+ });
24747
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
24748
+ if (false === __is(input)) {
24749
+ errors = [];
24750
+ _report = __typia_transform__validateReport._validateReport(errors);
24751
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
24752
+ path: _path + "",
24753
+ expected: "UsernameDomainRecord",
24754
+ value: input
24755
+ })) && _vo0(input, _path + "", true) || _report(true, {
24756
+ path: _path + "",
24757
+ expected: "UsernameDomainRecord",
24758
+ value: input
24759
+ }))(input, "$input", true);
24760
+ const success = 0 === errors.length;
24761
+ return success ? {
24762
+ success,
24763
+ data: input
24764
+ } : {
24765
+ success,
24766
+ errors,
24767
+ data: input
24768
+ };
24769
+ }
24770
+ return {
24771
+ success: true,
24772
+ data: input
24773
+ };
24774
+ }; })()(input);
24775
+ }
24505
24776
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
24506
24777
  }
24507
24778
  }
@@ -936,7 +936,7 @@ function _validateExactRecord(name, input) {
936
936
  if (undefined === value)
937
937
  return true;
938
938
  return "object" === typeof value && null !== value && _io1(value);
939
- }); const _io1 = input => "string" === typeof input.id && "string" === typeof input.location && "string" === typeof input.timestamp && "string" === typeof input.type && "string" === typeof input.zone && (null === input.free || "number" === typeof input.free) && (null === input.size || "number" === typeof input.size) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && (null === input.capacity || "number" === typeof input.capacity) && "string" === typeof input.origin && (Array.isArray(input.allows) && input.allows.every(elem => "get" === elem || "put" === elem || "del" === elem)) && ("object" === typeof input.net && null !== input.net && _io2(input.net)) && "number" === typeof input.latency; const _io2 = input => "number" === typeof input.rx && "number" === typeof input.tx; const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
939
+ }); const _io1 = input => "string" === typeof input.id && "string" === typeof input.location && "string" === typeof input.timestamp && "string" === typeof input.type && "string" === typeof input.zone && (null === input.free || "number" === typeof input.free) && (null === input.size || "number" === typeof input.size) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && (null === input.capacity || "number" === typeof input.capacity) && "string" === typeof input.origin && (Array.isArray(input.allows) && input.allows.every(elem => "get" === elem || "put" === elem || "del" === elem)) && (undefined === input.net || "object" === typeof input.net && null !== input.net && _io2(input.net)) && "number" === typeof input.latency; const _io2 = input => "number" === typeof input.rx && "number" === typeof input.tx; const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
940
940
  const value = input[key];
941
941
  if (undefined === value)
942
942
  return true;
@@ -1005,13 +1005,13 @@ function _validateExactRecord(name, input) {
1005
1005
  path: _path + ".allows",
1006
1006
  expected: "Array<\"get\" | \"put\" | \"del\">",
1007
1007
  value: input.allows
1008
- }), ("object" === typeof input.net && null !== input.net || _report(_exceptionable, {
1008
+ }), undefined === input.net || ("object" === typeof input.net && null !== input.net || _report(_exceptionable, {
1009
1009
  path: _path + ".net",
1010
- expected: "__type",
1010
+ expected: "(__type | undefined)",
1011
1011
  value: input.net
1012
1012
  })) && _vo2(input.net, _path + ".net", true && _exceptionable) || _report(_exceptionable, {
1013
1013
  path: _path + ".net",
1014
- expected: "__type",
1014
+ expected: "(__type | undefined)",
1015
1015
  value: input.net
1016
1016
  }), "number" === typeof input.latency || _report(_exceptionable, {
1017
1017
  path: _path + ".latency",
@@ -2978,6 +2978,40 @@ function _validateDomainRecord(domain, input) {
2978
2978
  };
2979
2979
  }; })()(input);
2980
2980
  }
2981
+ case ":auth": {
2982
+ return (() => { const _io0 = input => null === input.hash || undefined === input.hash || "string" === typeof input.hash; const _vo0 = (input, _path, _exceptionable = true) => [null === input.hash || undefined === input.hash || "string" === typeof input.hash || _report(_exceptionable, {
2983
+ path: _path + ".hash",
2984
+ expected: "(null | string | undefined)",
2985
+ value: input.hash
2986
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
2987
+ if (false === __is(input)) {
2988
+ errors = [];
2989
+ _report = __typia_transform__validateReport._validateReport(errors);
2990
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
2991
+ path: _path + "",
2992
+ expected: "AuthDomainRecord",
2993
+ value: input
2994
+ })) && _vo0(input, _path + "", true) || _report(true, {
2995
+ path: _path + "",
2996
+ expected: "AuthDomainRecord",
2997
+ value: input
2998
+ }))(input, "$input", true);
2999
+ const success = 0 === errors.length;
3000
+ return success ? {
3001
+ success,
3002
+ data: input
3003
+ } : {
3004
+ success,
3005
+ errors,
3006
+ data: input
3007
+ };
3008
+ }
3009
+ return {
3010
+ success: true,
3011
+ data: input
3012
+ };
3013
+ }; })()(input);
3014
+ }
2981
3015
  case ":bundle": {
2982
3016
  return (() => { const _io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && _io1(input.files)); const _io1 = input => Object.keys(input).every(key => {
2983
3017
  const value = input[key];
@@ -4165,7 +4199,7 @@ function _validateDomainRecord(domain, input) {
4165
4199
  }; })()(input);
4166
4200
  }
4167
4201
  case ":contact": {
4168
- return (() => { const _io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
4202
+ return (() => { const _io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.phone || "string" === typeof input.phone) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName) && (undefined === input.cell || "string" === typeof input.cell) && (undefined === input.company || "string" === typeof input.company) && (undefined === input.address || "string" === typeof input.address); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
4169
4203
  path: _path + ".title",
4170
4204
  expected: "(string | undefined)",
4171
4205
  value: input.title
@@ -4173,6 +4207,10 @@ function _validateDomainRecord(domain, input) {
4173
4207
  path: _path + ".email",
4174
4208
  expected: "(string | undefined)",
4175
4209
  value: input.email
4210
+ }), undefined === input.phone || "string" === typeof input.phone || _report(_exceptionable, {
4211
+ path: _path + ".phone",
4212
+ expected: "(string | undefined)",
4213
+ value: input.phone
4176
4214
  }), undefined === input.firstName || "string" === typeof input.firstName || _report(_exceptionable, {
4177
4215
  path: _path + ".firstName",
4178
4216
  expected: "(string | undefined)",
@@ -4181,6 +4219,18 @@ function _validateDomainRecord(domain, input) {
4181
4219
  path: _path + ".lastName",
4182
4220
  expected: "(string | undefined)",
4183
4221
  value: input.lastName
4222
+ }), undefined === input.cell || "string" === typeof input.cell || _report(_exceptionable, {
4223
+ path: _path + ".cell",
4224
+ expected: "(string | undefined)",
4225
+ value: input.cell
4226
+ }), undefined === input.company || "string" === typeof input.company || _report(_exceptionable, {
4227
+ path: _path + ".company",
4228
+ expected: "(string | undefined)",
4229
+ value: input.company
4230
+ }), undefined === input.address || "string" === typeof input.address || _report(_exceptionable, {
4231
+ path: _path + ".address",
4232
+ expected: "(string | undefined)",
4233
+ value: input.address
4184
4234
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
4185
4235
  if (false === __is(input)) {
4186
4236
  errors = [];
@@ -5765,6 +5815,116 @@ function _validateDomainRecord(domain, input) {
5765
5815
  };
5766
5816
  }; })()(input);
5767
5817
  }
5818
+ case ":general._asset": {
5819
+ return (() => { const _io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.tags || "string" === typeof input.tags) && (undefined === input.media || "string" === typeof input.media) && (undefined === input.duration || "string" === typeof input.duration) && (undefined === input.deadlines || "string" === typeof input.deadlines) && (undefined === input.assignees || "string" === typeof input.assignees) && (undefined === input.locations || "string" === typeof input.locations) && (undefined === input.status || "string" === typeof input.status) && (undefined === input.storage || "string" === typeof input.storage); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
5820
+ path: _path + ".title",
5821
+ expected: "(string | undefined)",
5822
+ value: input.title
5823
+ }), undefined === input.tags || "string" === typeof input.tags || _report(_exceptionable, {
5824
+ path: _path + ".tags",
5825
+ expected: "(string | undefined)",
5826
+ value: input.tags
5827
+ }), undefined === input.media || "string" === typeof input.media || _report(_exceptionable, {
5828
+ path: _path + ".media",
5829
+ expected: "(string | undefined)",
5830
+ value: input.media
5831
+ }), undefined === input.duration || "string" === typeof input.duration || _report(_exceptionable, {
5832
+ path: _path + ".duration",
5833
+ expected: "(string | undefined)",
5834
+ value: input.duration
5835
+ }), undefined === input.deadlines || "string" === typeof input.deadlines || _report(_exceptionable, {
5836
+ path: _path + ".deadlines",
5837
+ expected: "(string | undefined)",
5838
+ value: input.deadlines
5839
+ }), undefined === input.assignees || "string" === typeof input.assignees || _report(_exceptionable, {
5840
+ path: _path + ".assignees",
5841
+ expected: "(string | undefined)",
5842
+ value: input.assignees
5843
+ }), undefined === input.locations || "string" === typeof input.locations || _report(_exceptionable, {
5844
+ path: _path + ".locations",
5845
+ expected: "(string | undefined)",
5846
+ value: input.locations
5847
+ }), undefined === input.status || "string" === typeof input.status || _report(_exceptionable, {
5848
+ path: _path + ".status",
5849
+ expected: "(string | undefined)",
5850
+ value: input.status
5851
+ }), undefined === input.storage || "string" === typeof input.storage || _report(_exceptionable, {
5852
+ path: _path + ".storage",
5853
+ expected: "(string | undefined)",
5854
+ value: input.storage
5855
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
5856
+ if (false === __is(input)) {
5857
+ errors = [];
5858
+ _report = __typia_transform__validateReport._validateReport(errors);
5859
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
5860
+ path: _path + "",
5861
+ expected: "GeneralAssetRecord",
5862
+ value: input
5863
+ })) && _vo0(input, _path + "", true) || _report(true, {
5864
+ path: _path + "",
5865
+ expected: "GeneralAssetRecord",
5866
+ value: input
5867
+ }))(input, "$input", true);
5868
+ const success = 0 === errors.length;
5869
+ return success ? {
5870
+ success,
5871
+ data: input
5872
+ } : {
5873
+ success,
5874
+ errors,
5875
+ data: input
5876
+ };
5877
+ }
5878
+ return {
5879
+ success: true,
5880
+ data: input
5881
+ };
5882
+ }; })()(input);
5883
+ }
5884
+ case ":general._embedding": {
5885
+ return (() => { const _io0 = input => Object.keys(input).every(key => {
5886
+ const value = input[key];
5887
+ if (undefined === value)
5888
+ return true;
5889
+ return null === value || "string" === typeof value;
5890
+ }); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
5891
+ const value = input[key];
5892
+ if (undefined === value)
5893
+ return true;
5894
+ return null === value || "string" === typeof value || _report(_exceptionable, {
5895
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
5896
+ expected: "(null | string)",
5897
+ value: value
5898
+ });
5899
+ }).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
5900
+ if (false === __is(input)) {
5901
+ errors = [];
5902
+ _report = __typia_transform__validateReport._validateReport(errors);
5903
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
5904
+ path: _path + "",
5905
+ expected: "GeneralEmbeddingRecord",
5906
+ value: input
5907
+ })) && _vo0(input, _path + "", true) || _report(true, {
5908
+ path: _path + "",
5909
+ expected: "GeneralEmbeddingRecord",
5910
+ value: input
5911
+ }))(input, "$input", true);
5912
+ const success = 0 === errors.length;
5913
+ return success ? {
5914
+ success,
5915
+ data: input
5916
+ } : {
5917
+ success,
5918
+ errors,
5919
+ data: input
5920
+ };
5921
+ }
5922
+ return {
5923
+ success: true,
5924
+ data: input
5925
+ };
5926
+ }; })()(input);
5927
+ }
5768
5928
  case ":media.source": {
5769
5929
  return (() => { const _io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io5(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io7(input.transcribe)); const _io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io2 = input => Object.keys(input).every(key => {
5770
5930
  const value = input[key];
@@ -15013,6 +15173,48 @@ function _validateDomainRecord(domain, input) {
15013
15173
  };
15014
15174
  }; })()(input);
15015
15175
  }
15176
+ case ":username?": {
15177
+ return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.value || (Array.isArray(input.value) || _report(_exceptionable, {
15178
+ path: _path + ".value",
15179
+ expected: "(Array<string> | undefined)",
15180
+ value: input.value
15181
+ })) && input.value.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
15182
+ path: _path + ".value[" + _index2 + "]",
15183
+ expected: "string",
15184
+ value: elem
15185
+ })).every(flag => flag) || _report(_exceptionable, {
15186
+ path: _path + ".value",
15187
+ expected: "(Array<string> | undefined)",
15188
+ value: input.value
15189
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
15190
+ if (false === __is(input)) {
15191
+ errors = [];
15192
+ _report = __typia_transform__validateReport._validateReport(errors);
15193
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
15194
+ path: _path + "",
15195
+ expected: "UsernameDomainRecord",
15196
+ value: input
15197
+ })) && _vo0(input, _path + "", true) || _report(true, {
15198
+ path: _path + "",
15199
+ expected: "UsernameDomainRecord",
15200
+ value: input
15201
+ }))(input, "$input", true);
15202
+ const success = 0 === errors.length;
15203
+ return success ? {
15204
+ success,
15205
+ data: input
15206
+ } : {
15207
+ success,
15208
+ errors,
15209
+ data: input
15210
+ };
15211
+ }
15212
+ return {
15213
+ success: true,
15214
+ data: input
15215
+ };
15216
+ }; })()(input);
15217
+ }
15016
15218
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
15017
15219
  }
15018
15220
  }