@nxtedition/types 23.0.51 → 23.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nxtpression.d.ts +19 -1
- package/dist/records/domains/general.d.ts +16 -0
- package/dist/records/exact/storage.d.ts +1 -1
- package/dist/records/validate/assert-guard.js +100 -4
- package/dist/records/validate/assert.js +102 -4
- package/dist/records/validate/is.js +12 -1
- package/dist/records/validate/schemas.js +76 -1
- package/dist/records/validate/stringify.js +8 -1
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +138 -5
- package/dist/records/validate/validate.js +114 -4
- package/package.json +1 -1
package/dist/nxtpression.d.ts
CHANGED
|
@@ -844,6 +844,18 @@ declare interface FontFace_2 {
|
|
|
844
844
|
ranges: Range_2[];
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
+
declare interface GeneralAssetRecord {
|
|
848
|
+
title?: string;
|
|
849
|
+
tags?: string;
|
|
850
|
+
media?: string;
|
|
851
|
+
duration?: string;
|
|
852
|
+
deadlines?: string;
|
|
853
|
+
assignees?: string;
|
|
854
|
+
locations?: string;
|
|
855
|
+
status?: string;
|
|
856
|
+
storage?: string;
|
|
857
|
+
}
|
|
858
|
+
|
|
847
859
|
declare interface GeneralCreatedRecord {
|
|
848
860
|
time?: string;
|
|
849
861
|
user?: string;
|
|
@@ -861,6 +873,12 @@ declare interface GeneralDomainRecords {
|
|
|
861
873
|
":general.poster": GeneralPosterRecord;
|
|
862
874
|
":general.status": GeneralStatusRecord;
|
|
863
875
|
":general.description": GeneralDescriptionRecord;
|
|
876
|
+
":general._asset": GeneralAssetRecord;
|
|
877
|
+
":general._embedding": GeneralEmbeddingRecord;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
declare interface GeneralEmbeddingRecord {
|
|
881
|
+
[hash: string]: string | null;
|
|
864
882
|
}
|
|
865
883
|
|
|
866
884
|
declare interface GeneralPosterRecord {
|
|
@@ -2800,7 +2818,7 @@ declare interface StorageLocationsRecordEntry {
|
|
|
2800
2818
|
capacity: number | null;
|
|
2801
2819
|
origin: string;
|
|
2802
2820
|
allows: ("get" | "put" | "del")[];
|
|
2803
|
-
net
|
|
2821
|
+
net?: {
|
|
2804
2822
|
rx: number;
|
|
2805
2823
|
tx: number;
|
|
2806
2824
|
};
|
|
@@ -5,6 +5,8 @@ export interface GeneralDomainRecords {
|
|
|
5
5
|
":general.poster": GeneralPosterRecord;
|
|
6
6
|
":general.status": GeneralStatusRecord;
|
|
7
7
|
":general.description": GeneralDescriptionRecord;
|
|
8
|
+
":general._asset": GeneralAssetRecord;
|
|
9
|
+
":general._embedding": GeneralEmbeddingRecord;
|
|
8
10
|
}
|
|
9
11
|
export interface GeneralTitleRecord {
|
|
10
12
|
value?: string;
|
|
@@ -39,3 +41,17 @@ export interface GeneralStatusRecordValue {
|
|
|
39
41
|
export interface GeneralDescriptionRecord {
|
|
40
42
|
value?: string;
|
|
41
43
|
}
|
|
44
|
+
export interface GeneralAssetRecord {
|
|
45
|
+
title?: string;
|
|
46
|
+
tags?: string;
|
|
47
|
+
media?: string;
|
|
48
|
+
duration?: string;
|
|
49
|
+
deadlines?: string;
|
|
50
|
+
assignees?: string;
|
|
51
|
+
locations?: string;
|
|
52
|
+
status?: string;
|
|
53
|
+
storage?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface GeneralEmbeddingRecord {
|
|
56
|
+
[hash: string]: string | null;
|
|
57
|
+
}
|
|
@@ -918,7 +918,7 @@ function _assertGuardExactRecord(name, input) {
|
|
|
918
918
|
if (undefined === value)
|
|
919
919
|
return true;
|
|
920
920
|
return "object" === typeof value && null !== value && _io1(value);
|
|
921
|
-
}); 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 _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
921
|
+
}); 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 _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
922
922
|
const value = input[key];
|
|
923
923
|
if (undefined === value)
|
|
924
924
|
return true;
|
|
@@ -1003,15 +1003,15 @@ function _assertGuardExactRecord(name, input) {
|
|
|
1003
1003
|
path: _path + ".allows",
|
|
1004
1004
|
expected: "Array<\"get\" | \"put\" | \"del\">",
|
|
1005
1005
|
value: input.allows
|
|
1006
|
-
}, _errorFactory)) && (("object" === typeof input.net && null !== input.net || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1006
|
+
}, _errorFactory)) && (undefined === input.net || ("object" === typeof input.net && null !== input.net || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1007
1007
|
method: "typia.assertGuard",
|
|
1008
1008
|
path: _path + ".net",
|
|
1009
|
-
expected: "__type",
|
|
1009
|
+
expected: "(__type | undefined)",
|
|
1010
1010
|
value: input.net
|
|
1011
1011
|
}, _errorFactory)) && _ao2(input.net, _path + ".net", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1012
1012
|
method: "typia.assertGuard",
|
|
1013
1013
|
path: _path + ".net",
|
|
1014
|
-
expected: "__type",
|
|
1014
|
+
expected: "(__type | undefined)",
|
|
1015
1015
|
value: input.net
|
|
1016
1016
|
}, _errorFactory)) && ("number" === typeof input.latency || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1017
1017
|
method: "typia.assertGuard",
|
|
@@ -5639,6 +5639,102 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
5639
5639
|
}
|
|
5640
5640
|
}; })()(input);
|
|
5641
5641
|
}
|
|
5642
|
+
case ":general._asset": {
|
|
5643
|
+
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 _ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5644
|
+
method: "typia.assertGuard",
|
|
5645
|
+
path: _path + ".title",
|
|
5646
|
+
expected: "(string | undefined)",
|
|
5647
|
+
value: input.title
|
|
5648
|
+
}, _errorFactory)) && (undefined === input.tags || "string" === typeof input.tags || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5649
|
+
method: "typia.assertGuard",
|
|
5650
|
+
path: _path + ".tags",
|
|
5651
|
+
expected: "(string | undefined)",
|
|
5652
|
+
value: input.tags
|
|
5653
|
+
}, _errorFactory)) && (undefined === input.media || "string" === typeof input.media || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5654
|
+
method: "typia.assertGuard",
|
|
5655
|
+
path: _path + ".media",
|
|
5656
|
+
expected: "(string | undefined)",
|
|
5657
|
+
value: input.media
|
|
5658
|
+
}, _errorFactory)) && (undefined === input.duration || "string" === typeof input.duration || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5659
|
+
method: "typia.assertGuard",
|
|
5660
|
+
path: _path + ".duration",
|
|
5661
|
+
expected: "(string | undefined)",
|
|
5662
|
+
value: input.duration
|
|
5663
|
+
}, _errorFactory)) && (undefined === input.deadlines || "string" === typeof input.deadlines || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5664
|
+
method: "typia.assertGuard",
|
|
5665
|
+
path: _path + ".deadlines",
|
|
5666
|
+
expected: "(string | undefined)",
|
|
5667
|
+
value: input.deadlines
|
|
5668
|
+
}, _errorFactory)) && (undefined === input.assignees || "string" === typeof input.assignees || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5669
|
+
method: "typia.assertGuard",
|
|
5670
|
+
path: _path + ".assignees",
|
|
5671
|
+
expected: "(string | undefined)",
|
|
5672
|
+
value: input.assignees
|
|
5673
|
+
}, _errorFactory)) && (undefined === input.locations || "string" === typeof input.locations || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5674
|
+
method: "typia.assertGuard",
|
|
5675
|
+
path: _path + ".locations",
|
|
5676
|
+
expected: "(string | undefined)",
|
|
5677
|
+
value: input.locations
|
|
5678
|
+
}, _errorFactory)) && (undefined === input.status || "string" === typeof input.status || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5679
|
+
method: "typia.assertGuard",
|
|
5680
|
+
path: _path + ".status",
|
|
5681
|
+
expected: "(string | undefined)",
|
|
5682
|
+
value: input.status
|
|
5683
|
+
}, _errorFactory)) && (undefined === input.storage || "string" === typeof input.storage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5684
|
+
method: "typia.assertGuard",
|
|
5685
|
+
path: _path + ".storage",
|
|
5686
|
+
expected: "(string | undefined)",
|
|
5687
|
+
value: input.storage
|
|
5688
|
+
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5689
|
+
if (false === __is(input)) {
|
|
5690
|
+
_errorFactory = errorFactory;
|
|
5691
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5692
|
+
method: "typia.assertGuard",
|
|
5693
|
+
path: _path + "",
|
|
5694
|
+
expected: "GeneralAssetRecord",
|
|
5695
|
+
value: input
|
|
5696
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5697
|
+
method: "typia.assertGuard",
|
|
5698
|
+
path: _path + "",
|
|
5699
|
+
expected: "GeneralAssetRecord",
|
|
5700
|
+
value: input
|
|
5701
|
+
}, _errorFactory))(input, "$input", true);
|
|
5702
|
+
}
|
|
5703
|
+
}; })()(input);
|
|
5704
|
+
}
|
|
5705
|
+
case ":general._embedding": {
|
|
5706
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
5707
|
+
const value = input[key];
|
|
5708
|
+
if (undefined === value)
|
|
5709
|
+
return true;
|
|
5710
|
+
return null === value || "string" === typeof value;
|
|
5711
|
+
}); const _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
5712
|
+
const value = input[key];
|
|
5713
|
+
if (undefined === value)
|
|
5714
|
+
return true;
|
|
5715
|
+
return null === value || "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5716
|
+
method: "typia.assertGuard",
|
|
5717
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5718
|
+
expected: "(null | string)",
|
|
5719
|
+
value: value
|
|
5720
|
+
}, _errorFactory);
|
|
5721
|
+
}); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5722
|
+
if (false === __is(input)) {
|
|
5723
|
+
_errorFactory = errorFactory;
|
|
5724
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5725
|
+
method: "typia.assertGuard",
|
|
5726
|
+
path: _path + "",
|
|
5727
|
+
expected: "GeneralEmbeddingRecord",
|
|
5728
|
+
value: input
|
|
5729
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5730
|
+
method: "typia.assertGuard",
|
|
5731
|
+
path: _path + "",
|
|
5732
|
+
expected: "GeneralEmbeddingRecord",
|
|
5733
|
+
value: input
|
|
5734
|
+
}, _errorFactory))(input, "$input", true);
|
|
5735
|
+
}
|
|
5736
|
+
}; })()(input);
|
|
5737
|
+
}
|
|
5642
5738
|
case ":media.source": {
|
|
5643
5739
|
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 => {
|
|
5644
5740
|
const value = input[key];
|
|
@@ -930,7 +930,7 @@ function _assertExactRecord(name, input) {
|
|
|
930
930
|
if (undefined === value)
|
|
931
931
|
return true;
|
|
932
932
|
return "object" === typeof value && null !== value && _io1(value);
|
|
933
|
-
}); 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 _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
933
|
+
}); 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 _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
934
934
|
const value = input[key];
|
|
935
935
|
if (undefined === value)
|
|
936
936
|
return true;
|
|
@@ -1015,15 +1015,15 @@ function _assertExactRecord(name, input) {
|
|
|
1015
1015
|
path: _path + ".allows",
|
|
1016
1016
|
expected: "Array<\"get\" | \"put\" | \"del\">",
|
|
1017
1017
|
value: input.allows
|
|
1018
|
-
}, _errorFactory)) && (("object" === typeof input.net && null !== input.net || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1018
|
+
}, _errorFactory)) && (undefined === input.net || ("object" === typeof input.net && null !== input.net || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1019
1019
|
method: "typia.assert",
|
|
1020
1020
|
path: _path + ".net",
|
|
1021
|
-
expected: "__type",
|
|
1021
|
+
expected: "(__type | undefined)",
|
|
1022
1022
|
value: input.net
|
|
1023
1023
|
}, _errorFactory)) && _ao2(input.net, _path + ".net", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1024
1024
|
method: "typia.assert",
|
|
1025
1025
|
path: _path + ".net",
|
|
1026
|
-
expected: "__type",
|
|
1026
|
+
expected: "(__type | undefined)",
|
|
1027
1027
|
value: input.net
|
|
1028
1028
|
}, _errorFactory)) && ("number" === typeof input.latency || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1029
1029
|
method: "typia.assert",
|
|
@@ -5714,6 +5714,104 @@ function _assertDomainRecord(domain, input) {
|
|
|
5714
5714
|
return input;
|
|
5715
5715
|
}; })()(input);
|
|
5716
5716
|
}
|
|
5717
|
+
case ":general._asset": {
|
|
5718
|
+
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 _ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5719
|
+
method: "typia.assert",
|
|
5720
|
+
path: _path + ".title",
|
|
5721
|
+
expected: "(string | undefined)",
|
|
5722
|
+
value: input.title
|
|
5723
|
+
}, _errorFactory)) && (undefined === input.tags || "string" === typeof input.tags || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5724
|
+
method: "typia.assert",
|
|
5725
|
+
path: _path + ".tags",
|
|
5726
|
+
expected: "(string | undefined)",
|
|
5727
|
+
value: input.tags
|
|
5728
|
+
}, _errorFactory)) && (undefined === input.media || "string" === typeof input.media || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5729
|
+
method: "typia.assert",
|
|
5730
|
+
path: _path + ".media",
|
|
5731
|
+
expected: "(string | undefined)",
|
|
5732
|
+
value: input.media
|
|
5733
|
+
}, _errorFactory)) && (undefined === input.duration || "string" === typeof input.duration || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5734
|
+
method: "typia.assert",
|
|
5735
|
+
path: _path + ".duration",
|
|
5736
|
+
expected: "(string | undefined)",
|
|
5737
|
+
value: input.duration
|
|
5738
|
+
}, _errorFactory)) && (undefined === input.deadlines || "string" === typeof input.deadlines || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5739
|
+
method: "typia.assert",
|
|
5740
|
+
path: _path + ".deadlines",
|
|
5741
|
+
expected: "(string | undefined)",
|
|
5742
|
+
value: input.deadlines
|
|
5743
|
+
}, _errorFactory)) && (undefined === input.assignees || "string" === typeof input.assignees || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5744
|
+
method: "typia.assert",
|
|
5745
|
+
path: _path + ".assignees",
|
|
5746
|
+
expected: "(string | undefined)",
|
|
5747
|
+
value: input.assignees
|
|
5748
|
+
}, _errorFactory)) && (undefined === input.locations || "string" === typeof input.locations || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5749
|
+
method: "typia.assert",
|
|
5750
|
+
path: _path + ".locations",
|
|
5751
|
+
expected: "(string | undefined)",
|
|
5752
|
+
value: input.locations
|
|
5753
|
+
}, _errorFactory)) && (undefined === input.status || "string" === typeof input.status || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5754
|
+
method: "typia.assert",
|
|
5755
|
+
path: _path + ".status",
|
|
5756
|
+
expected: "(string | undefined)",
|
|
5757
|
+
value: input.status
|
|
5758
|
+
}, _errorFactory)) && (undefined === input.storage || "string" === typeof input.storage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5759
|
+
method: "typia.assert",
|
|
5760
|
+
path: _path + ".storage",
|
|
5761
|
+
expected: "(string | undefined)",
|
|
5762
|
+
value: input.storage
|
|
5763
|
+
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5764
|
+
if (false === __is(input)) {
|
|
5765
|
+
_errorFactory = errorFactory;
|
|
5766
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5767
|
+
method: "typia.assert",
|
|
5768
|
+
path: _path + "",
|
|
5769
|
+
expected: "GeneralAssetRecord",
|
|
5770
|
+
value: input
|
|
5771
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5772
|
+
method: "typia.assert",
|
|
5773
|
+
path: _path + "",
|
|
5774
|
+
expected: "GeneralAssetRecord",
|
|
5775
|
+
value: input
|
|
5776
|
+
}, _errorFactory))(input, "$input", true);
|
|
5777
|
+
}
|
|
5778
|
+
return input;
|
|
5779
|
+
}; })()(input);
|
|
5780
|
+
}
|
|
5781
|
+
case ":general._embedding": {
|
|
5782
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
5783
|
+
const value = input[key];
|
|
5784
|
+
if (undefined === value)
|
|
5785
|
+
return true;
|
|
5786
|
+
return null === value || "string" === typeof value;
|
|
5787
|
+
}); const _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
5788
|
+
const value = input[key];
|
|
5789
|
+
if (undefined === value)
|
|
5790
|
+
return true;
|
|
5791
|
+
return null === value || "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5792
|
+
method: "typia.assert",
|
|
5793
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5794
|
+
expected: "(null | string)",
|
|
5795
|
+
value: value
|
|
5796
|
+
}, _errorFactory);
|
|
5797
|
+
}); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5798
|
+
if (false === __is(input)) {
|
|
5799
|
+
_errorFactory = errorFactory;
|
|
5800
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5801
|
+
method: "typia.assert",
|
|
5802
|
+
path: _path + "",
|
|
5803
|
+
expected: "GeneralEmbeddingRecord",
|
|
5804
|
+
value: input
|
|
5805
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5806
|
+
method: "typia.assert",
|
|
5807
|
+
path: _path + "",
|
|
5808
|
+
expected: "GeneralEmbeddingRecord",
|
|
5809
|
+
value: input
|
|
5810
|
+
}, _errorFactory))(input, "$input", true);
|
|
5811
|
+
}
|
|
5812
|
+
return input;
|
|
5813
|
+
}; })()(input);
|
|
5814
|
+
}
|
|
5717
5815
|
case ":media.source": {
|
|
5718
5816
|
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 => {
|
|
5719
5817
|
const value = input[key];
|
|
@@ -76,7 +76,7 @@ function _isExactRecord(name, input) {
|
|
|
76
76
|
if (undefined === value)
|
|
77
77
|
return true;
|
|
78
78
|
return "object" === typeof value && null !== value && _io1(value);
|
|
79
|
-
}); 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; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
79
|
+
}); 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; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
80
80
|
}
|
|
81
81
|
case "storage.zones?": {
|
|
82
82
|
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
@@ -424,6 +424,17 @@ function _isDomainRecord(domain, input) {
|
|
|
424
424
|
case ":general.description": {
|
|
425
425
|
return (() => { const _io0 = input => undefined === input.value || "string" === typeof input.value; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
426
426
|
}
|
|
427
|
+
case ":general._asset": {
|
|
428
|
+
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); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
429
|
+
}
|
|
430
|
+
case ":general._embedding": {
|
|
431
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
432
|
+
const value = input[key];
|
|
433
|
+
if (undefined === value)
|
|
434
|
+
return true;
|
|
435
|
+
return null === value || "string" === typeof value;
|
|
436
|
+
}); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
437
|
+
}
|
|
427
438
|
case ":media.source": {
|
|
428
439
|
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 => {
|
|
429
440
|
const value = input[key];
|
|
@@ -933,7 +933,6 @@ function _schemasExactRecord(name) {
|
|
|
933
933
|
"capacity",
|
|
934
934
|
"origin",
|
|
935
935
|
"allows",
|
|
936
|
-
"net",
|
|
937
936
|
"latency"
|
|
938
937
|
]
|
|
939
938
|
}
|
|
@@ -4619,6 +4618,82 @@ function _schemasDomainRecord(domain) {
|
|
|
4619
4618
|
]
|
|
4620
4619
|
};
|
|
4621
4620
|
}
|
|
4621
|
+
case ":general._asset": {
|
|
4622
|
+
return {
|
|
4623
|
+
version: "3.1",
|
|
4624
|
+
components: {
|
|
4625
|
+
schemas: {
|
|
4626
|
+
GeneralAssetRecord: {
|
|
4627
|
+
type: "object",
|
|
4628
|
+
properties: {
|
|
4629
|
+
title: {
|
|
4630
|
+
type: "string"
|
|
4631
|
+
},
|
|
4632
|
+
tags: {
|
|
4633
|
+
type: "string"
|
|
4634
|
+
},
|
|
4635
|
+
media: {
|
|
4636
|
+
type: "string"
|
|
4637
|
+
},
|
|
4638
|
+
duration: {
|
|
4639
|
+
type: "string"
|
|
4640
|
+
},
|
|
4641
|
+
deadlines: {
|
|
4642
|
+
type: "string"
|
|
4643
|
+
},
|
|
4644
|
+
assignees: {
|
|
4645
|
+
type: "string"
|
|
4646
|
+
},
|
|
4647
|
+
locations: {
|
|
4648
|
+
type: "string"
|
|
4649
|
+
},
|
|
4650
|
+
status: {
|
|
4651
|
+
type: "string"
|
|
4652
|
+
},
|
|
4653
|
+
storage: {
|
|
4654
|
+
type: "string"
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4657
|
+
required: []
|
|
4658
|
+
}
|
|
4659
|
+
}
|
|
4660
|
+
},
|
|
4661
|
+
schemas: [
|
|
4662
|
+
{
|
|
4663
|
+
$ref: "#/components/schemas/GeneralAssetRecord"
|
|
4664
|
+
}
|
|
4665
|
+
]
|
|
4666
|
+
};
|
|
4667
|
+
}
|
|
4668
|
+
case ":general._embedding": {
|
|
4669
|
+
return {
|
|
4670
|
+
version: "3.1",
|
|
4671
|
+
components: {
|
|
4672
|
+
schemas: {
|
|
4673
|
+
GeneralEmbeddingRecord: {
|
|
4674
|
+
type: "object",
|
|
4675
|
+
properties: {},
|
|
4676
|
+
required: [],
|
|
4677
|
+
additionalProperties: {
|
|
4678
|
+
oneOf: [
|
|
4679
|
+
{
|
|
4680
|
+
type: "null"
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
type: "string"
|
|
4684
|
+
}
|
|
4685
|
+
]
|
|
4686
|
+
}
|
|
4687
|
+
}
|
|
4688
|
+
}
|
|
4689
|
+
},
|
|
4690
|
+
schemas: [
|
|
4691
|
+
{
|
|
4692
|
+
$ref: "#/components/schemas/GeneralEmbeddingRecord"
|
|
4693
|
+
}
|
|
4694
|
+
]
|
|
4695
|
+
};
|
|
4696
|
+
}
|
|
4622
4697
|
case ":media.source": {
|
|
4623
4698
|
return {
|
|
4624
4699
|
version: "3.1",
|
|
@@ -276,7 +276,7 @@ function _stringifyExactRecord(name, input) {
|
|
|
276
276
|
}
|
|
277
277
|
case "storage.locations?": {
|
|
278
278
|
return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
279
|
-
return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"location":${__typia_transform__jsonStringifyString._jsonStringifyString(input.location)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"zone":${__typia_transform__jsonStringifyString._jsonStringifyString(input.zone)},"free":${null !== input.free ? input.free : "null"},"size":${null !== input.size ? input.size : "null"},"available":${null !== input.available ? input.available : "null"},"cache":${null !== input.cache ? input.cache : "null"},"capacity":${null !== input.capacity ? input.capacity : "null"},"origin":${__typia_transform__jsonStringifyString._jsonStringifyString(input.origin)},"allows":${`[${input.allows.map(elem => "\"" + elem + "\"").join(",")}]`},"
|
|
279
|
+
return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{${undefined === input.net ? "" : `"net":${undefined !== input.net ? _so2(input.net) : undefined},`}"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"location":${__typia_transform__jsonStringifyString._jsonStringifyString(input.location)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"zone":${__typia_transform__jsonStringifyString._jsonStringifyString(input.zone)},"free":${null !== input.free ? input.free : "null"},"size":${null !== input.size ? input.size : "null"},"available":${null !== input.available ? input.available : "null"},"cache":${null !== input.cache ? input.cache : "null"},"capacity":${null !== input.capacity ? input.capacity : "null"},"origin":${__typia_transform__jsonStringifyString._jsonStringifyString(input.origin)},"allows":${`[${input.allows.map(elem => "\"" + elem + "\"").join(",")}]`},"latency":${input.latency}}`; const _so2 = input => `{"rx":${input.rx},"tx":${input.tx}}`; 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; return input => _so0(input); })()(input);
|
|
280
280
|
}
|
|
281
281
|
case "storage.zones?": {
|
|
282
282
|
return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
@@ -891,6 +891,13 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
891
891
|
case ":general.description": {
|
|
892
892
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
893
893
|
}
|
|
894
|
+
case ":general._asset": {
|
|
895
|
+
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? __typia_transform__jsonStringifyString._jsonStringifyString(input.tags) : undefined},`}${undefined === input.media ? "" : `"media":${undefined !== input.media ? __typia_transform__jsonStringifyString._jsonStringifyString(input.media) : undefined},`}${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? __typia_transform__jsonStringifyString._jsonStringifyString(input.duration) : undefined},`}${undefined === input.deadlines ? "" : `"deadlines":${undefined !== input.deadlines ? __typia_transform__jsonStringifyString._jsonStringifyString(input.deadlines) : undefined},`}${undefined === input.assignees ? "" : `"assignees":${undefined !== input.assignees ? __typia_transform__jsonStringifyString._jsonStringifyString(input.assignees) : undefined},`}${undefined === input.locations ? "" : `"locations":${undefined !== input.locations ? __typia_transform__jsonStringifyString._jsonStringifyString(input.locations) : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.storage ? "" : `"storage":${undefined !== input.storage ? __typia_transform__jsonStringifyString._jsonStringifyString(input.storage) : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
896
|
+
}
|
|
897
|
+
case ":general._embedding": {
|
|
898
|
+
return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
899
|
+
return ""; return `${JSON.stringify(key)}:${null !== value ? __typia_transform__jsonStringifyString._jsonStringifyString(value) : "null"}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
|
|
900
|
+
}
|
|
894
901
|
case ":media.source": {
|
|
895
902
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? null !== input.input ? _so1(input.input) : "null" : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? _so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? _so5(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so7(input.transcribe) : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : "null" : undefined}`}`)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
896
903
|
return ""; return `${JSON.stringify(key)}:${_so3(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? _so4(input.styleOverrides) : undefined}`}`)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? __typia_transform__jsonStringifyString._jsonStringifyString(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? __typia_transform__jsonStringifyString._jsonStringifyString(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? __typia_transform__jsonStringifyString._jsonStringifyString(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? __typia_transform__jsonStringifyString._jsonStringifyString(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined}`}`)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? _so6(input.crop) : undefined}`}`)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? __typia_transform__jsonStringifyString._jsonStringifyString(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`; 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 => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const _exactRecordNames = new Set(["asset.assignees", "asset.clone", "asset.deadlines", "asset.duration", "asset.embedding", "asset.icon", "asset.locations", "asset.media", "asset.tags", "asset.title", "asset.types", "storage.locations?", "storage.zones?", "nxt.status?", "media.subtitles", "media.subtitles?", "media.transcribe?", "media.fonts?", "media.consolidate", "asset-daemon", "asset-daemon:user-notify.state", "deepstream-replicator.stats?"]);
|
|
2
|
-
const _domainNames = new Set([":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":bundle", ":bundle.revisions", ":clone", ":comment-reaction", ":comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":connection", ":connection.methods?", ":connection.stats?", ":contact", ":deepstream.replicate", ":design?", ":edit", ":event", ":event._template?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.children?", ":event.props?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":prompter", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":storyboard.descendants?", ":storyboard.ancestors?", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
2
|
+
const _domainNames = new Set([":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":asset.presence?", ":asset.comments?", ":bundle", ":bundle.revisions", ":clone", ":comment-reaction", ":comment-read-mark", ":comment", ":comment.reactions?", ":comment.replies?", ":comment.readMarks?", ":connection", ":connection.methods?", ":connection.stats?", ":contact", ":deepstream.replicate", ":design?", ":edit", ":event", ":event._template?", ":event.overlay?", ":event.template?", ":event.duration?", ":event.children?", ":event.props?", ":file.replicate", ":file.restrictions", ":file.stats?", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":general._asset", ":general._embedding", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":media.updateSubtitles?", ":media.updateGraphics?", ":monitor.stats?", ":panel", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":prompter", ":publish", ":publish.stats?", ":publish.methods?", ":publish.accepts", ":published", ":render-preset", ":render.stats?", ":render.query?", ":render.result?", ":render.schedulers?", ":revs?", ":role.tags", ":script", ":script?", ":script.revisions?", ":script.revision", ":script.revision?", ":script.content?", ":script.text?", ":script.children", ":search", ":search?", ":settings", ":storyboard", ":storyboard.pipelines", ":storyboard.descendants?", ":storyboard.ancestors?", ":subtitle-style", ":subtitle", ":template", ":_user-notification-status", ":user-notification", ":user-notification.readAt", ":user", ":user.latestSeenNotification", ":user.receivedNotifications?", ":user.unseenNotifications?"]);
|
|
3
3
|
export const exactRecordNames = _exactRecordNames;
|
|
4
4
|
export const domainNames = _domainNames;
|
|
5
5
|
export function isEmptyRecord(data) {
|
|
@@ -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 && (
|
|
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
|
-
}),
|
|
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];
|
|
@@ -9076,6 +9076,139 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
9076
9076
|
};
|
|
9077
9077
|
}; })()(input);
|
|
9078
9078
|
}
|
|
9079
|
+
case ":general._asset": {
|
|
9080
|
+
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 => {
|
|
9081
|
+
if (["title", "tags", "media", "duration", "deadlines", "assignees", "locations", "status", "storage"].some(prop => key === prop))
|
|
9082
|
+
return true;
|
|
9083
|
+
const value = input[key];
|
|
9084
|
+
if (undefined === value)
|
|
9085
|
+
return true;
|
|
9086
|
+
return false;
|
|
9087
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
9088
|
+
path: _path + ".title",
|
|
9089
|
+
expected: "(string | undefined)",
|
|
9090
|
+
value: input.title
|
|
9091
|
+
}), undefined === input.tags || "string" === typeof input.tags || _report(_exceptionable, {
|
|
9092
|
+
path: _path + ".tags",
|
|
9093
|
+
expected: "(string | undefined)",
|
|
9094
|
+
value: input.tags
|
|
9095
|
+
}), undefined === input.media || "string" === typeof input.media || _report(_exceptionable, {
|
|
9096
|
+
path: _path + ".media",
|
|
9097
|
+
expected: "(string | undefined)",
|
|
9098
|
+
value: input.media
|
|
9099
|
+
}), undefined === input.duration || "string" === typeof input.duration || _report(_exceptionable, {
|
|
9100
|
+
path: _path + ".duration",
|
|
9101
|
+
expected: "(string | undefined)",
|
|
9102
|
+
value: input.duration
|
|
9103
|
+
}), undefined === input.deadlines || "string" === typeof input.deadlines || _report(_exceptionable, {
|
|
9104
|
+
path: _path + ".deadlines",
|
|
9105
|
+
expected: "(string | undefined)",
|
|
9106
|
+
value: input.deadlines
|
|
9107
|
+
}), undefined === input.assignees || "string" === typeof input.assignees || _report(_exceptionable, {
|
|
9108
|
+
path: _path + ".assignees",
|
|
9109
|
+
expected: "(string | undefined)",
|
|
9110
|
+
value: input.assignees
|
|
9111
|
+
}), undefined === input.locations || "string" === typeof input.locations || _report(_exceptionable, {
|
|
9112
|
+
path: _path + ".locations",
|
|
9113
|
+
expected: "(string | undefined)",
|
|
9114
|
+
value: input.locations
|
|
9115
|
+
}), undefined === input.status || "string" === typeof input.status || _report(_exceptionable, {
|
|
9116
|
+
path: _path + ".status",
|
|
9117
|
+
expected: "(string | undefined)",
|
|
9118
|
+
value: input.status
|
|
9119
|
+
}), undefined === input.storage || "string" === typeof input.storage || _report(_exceptionable, {
|
|
9120
|
+
path: _path + ".storage",
|
|
9121
|
+
expected: "(string | undefined)",
|
|
9122
|
+
value: input.storage
|
|
9123
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
9124
|
+
if (["title", "tags", "media", "duration", "deadlines", "assignees", "locations", "status", "storage"].some(prop => key === prop))
|
|
9125
|
+
return true;
|
|
9126
|
+
const value = input[key];
|
|
9127
|
+
if (undefined === value)
|
|
9128
|
+
return true;
|
|
9129
|
+
return _report(_exceptionable, {
|
|
9130
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9131
|
+
expected: "undefined",
|
|
9132
|
+
value: value,
|
|
9133
|
+
description: [
|
|
9134
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
9135
|
+
"",
|
|
9136
|
+
"Please remove the property next time."
|
|
9137
|
+
].join("\n")
|
|
9138
|
+
});
|
|
9139
|
+
}).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 => {
|
|
9140
|
+
if (false === __is(input)) {
|
|
9141
|
+
errors = [];
|
|
9142
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
9143
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
9144
|
+
path: _path + "",
|
|
9145
|
+
expected: "GeneralAssetRecord",
|
|
9146
|
+
value: input
|
|
9147
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
9148
|
+
path: _path + "",
|
|
9149
|
+
expected: "GeneralAssetRecord",
|
|
9150
|
+
value: input
|
|
9151
|
+
}))(input, "$input", true);
|
|
9152
|
+
const success = 0 === errors.length;
|
|
9153
|
+
return success ? {
|
|
9154
|
+
success,
|
|
9155
|
+
data: input
|
|
9156
|
+
} : {
|
|
9157
|
+
success,
|
|
9158
|
+
errors,
|
|
9159
|
+
data: input
|
|
9160
|
+
};
|
|
9161
|
+
}
|
|
9162
|
+
return {
|
|
9163
|
+
success: true,
|
|
9164
|
+
data: input
|
|
9165
|
+
};
|
|
9166
|
+
}; })()(input);
|
|
9167
|
+
}
|
|
9168
|
+
case ":general._embedding": {
|
|
9169
|
+
return (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
9170
|
+
const value = input[key];
|
|
9171
|
+
if (undefined === value)
|
|
9172
|
+
return true;
|
|
9173
|
+
return null === value || "string" === typeof value;
|
|
9174
|
+
}); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
9175
|
+
const value = input[key];
|
|
9176
|
+
if (undefined === value)
|
|
9177
|
+
return true;
|
|
9178
|
+
return null === value || "string" === typeof value || _report(_exceptionable, {
|
|
9179
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
9180
|
+
expected: "(null | string)",
|
|
9181
|
+
value: value
|
|
9182
|
+
});
|
|
9183
|
+
}).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 => {
|
|
9184
|
+
if (false === __is(input)) {
|
|
9185
|
+
errors = [];
|
|
9186
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
9187
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
9188
|
+
path: _path + "",
|
|
9189
|
+
expected: "GeneralEmbeddingRecord",
|
|
9190
|
+
value: input
|
|
9191
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
9192
|
+
path: _path + "",
|
|
9193
|
+
expected: "GeneralEmbeddingRecord",
|
|
9194
|
+
value: input
|
|
9195
|
+
}))(input, "$input", true);
|
|
9196
|
+
const success = 0 === errors.length;
|
|
9197
|
+
return success ? {
|
|
9198
|
+
success,
|
|
9199
|
+
data: input
|
|
9200
|
+
} : {
|
|
9201
|
+
success,
|
|
9202
|
+
errors,
|
|
9203
|
+
data: input
|
|
9204
|
+
};
|
|
9205
|
+
}
|
|
9206
|
+
return {
|
|
9207
|
+
success: true,
|
|
9208
|
+
data: input
|
|
9209
|
+
};
|
|
9210
|
+
}; })()(input);
|
|
9211
|
+
}
|
|
9079
9212
|
case ":media.source": {
|
|
9080
9213
|
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
9214
|
if (["id", "preset", "input", "lang", "subtitle", "subtitleTracks", "video", "start", "end", "transcribe"].some(prop => key === prop))
|
|
@@ -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",
|
|
@@ -5765,6 +5765,116 @@ function _validateDomainRecord(domain, input) {
|
|
|
5765
5765
|
};
|
|
5766
5766
|
}; })()(input);
|
|
5767
5767
|
}
|
|
5768
|
+
case ":general._asset": {
|
|
5769
|
+
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, {
|
|
5770
|
+
path: _path + ".title",
|
|
5771
|
+
expected: "(string | undefined)",
|
|
5772
|
+
value: input.title
|
|
5773
|
+
}), undefined === input.tags || "string" === typeof input.tags || _report(_exceptionable, {
|
|
5774
|
+
path: _path + ".tags",
|
|
5775
|
+
expected: "(string | undefined)",
|
|
5776
|
+
value: input.tags
|
|
5777
|
+
}), undefined === input.media || "string" === typeof input.media || _report(_exceptionable, {
|
|
5778
|
+
path: _path + ".media",
|
|
5779
|
+
expected: "(string | undefined)",
|
|
5780
|
+
value: input.media
|
|
5781
|
+
}), undefined === input.duration || "string" === typeof input.duration || _report(_exceptionable, {
|
|
5782
|
+
path: _path + ".duration",
|
|
5783
|
+
expected: "(string | undefined)",
|
|
5784
|
+
value: input.duration
|
|
5785
|
+
}), undefined === input.deadlines || "string" === typeof input.deadlines || _report(_exceptionable, {
|
|
5786
|
+
path: _path + ".deadlines",
|
|
5787
|
+
expected: "(string | undefined)",
|
|
5788
|
+
value: input.deadlines
|
|
5789
|
+
}), undefined === input.assignees || "string" === typeof input.assignees || _report(_exceptionable, {
|
|
5790
|
+
path: _path + ".assignees",
|
|
5791
|
+
expected: "(string | undefined)",
|
|
5792
|
+
value: input.assignees
|
|
5793
|
+
}), undefined === input.locations || "string" === typeof input.locations || _report(_exceptionable, {
|
|
5794
|
+
path: _path + ".locations",
|
|
5795
|
+
expected: "(string | undefined)",
|
|
5796
|
+
value: input.locations
|
|
5797
|
+
}), undefined === input.status || "string" === typeof input.status || _report(_exceptionable, {
|
|
5798
|
+
path: _path + ".status",
|
|
5799
|
+
expected: "(string | undefined)",
|
|
5800
|
+
value: input.status
|
|
5801
|
+
}), undefined === input.storage || "string" === typeof input.storage || _report(_exceptionable, {
|
|
5802
|
+
path: _path + ".storage",
|
|
5803
|
+
expected: "(string | undefined)",
|
|
5804
|
+
value: input.storage
|
|
5805
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
|
|
5806
|
+
if (false === __is(input)) {
|
|
5807
|
+
errors = [];
|
|
5808
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
5809
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
5810
|
+
path: _path + "",
|
|
5811
|
+
expected: "GeneralAssetRecord",
|
|
5812
|
+
value: input
|
|
5813
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
5814
|
+
path: _path + "",
|
|
5815
|
+
expected: "GeneralAssetRecord",
|
|
5816
|
+
value: input
|
|
5817
|
+
}))(input, "$input", true);
|
|
5818
|
+
const success = 0 === errors.length;
|
|
5819
|
+
return success ? {
|
|
5820
|
+
success,
|
|
5821
|
+
data: input
|
|
5822
|
+
} : {
|
|
5823
|
+
success,
|
|
5824
|
+
errors,
|
|
5825
|
+
data: input
|
|
5826
|
+
};
|
|
5827
|
+
}
|
|
5828
|
+
return {
|
|
5829
|
+
success: true,
|
|
5830
|
+
data: input
|
|
5831
|
+
};
|
|
5832
|
+
}; })()(input);
|
|
5833
|
+
}
|
|
5834
|
+
case ":general._embedding": {
|
|
5835
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
5836
|
+
const value = input[key];
|
|
5837
|
+
if (undefined === value)
|
|
5838
|
+
return true;
|
|
5839
|
+
return null === value || "string" === typeof value;
|
|
5840
|
+
}); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
5841
|
+
const value = input[key];
|
|
5842
|
+
if (undefined === value)
|
|
5843
|
+
return true;
|
|
5844
|
+
return null === value || "string" === typeof value || _report(_exceptionable, {
|
|
5845
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5846
|
+
expected: "(null | string)",
|
|
5847
|
+
value: value
|
|
5848
|
+
});
|
|
5849
|
+
}).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 => {
|
|
5850
|
+
if (false === __is(input)) {
|
|
5851
|
+
errors = [];
|
|
5852
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
5853
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
5854
|
+
path: _path + "",
|
|
5855
|
+
expected: "GeneralEmbeddingRecord",
|
|
5856
|
+
value: input
|
|
5857
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
5858
|
+
path: _path + "",
|
|
5859
|
+
expected: "GeneralEmbeddingRecord",
|
|
5860
|
+
value: input
|
|
5861
|
+
}))(input, "$input", true);
|
|
5862
|
+
const success = 0 === errors.length;
|
|
5863
|
+
return success ? {
|
|
5864
|
+
success,
|
|
5865
|
+
data: input
|
|
5866
|
+
} : {
|
|
5867
|
+
success,
|
|
5868
|
+
errors,
|
|
5869
|
+
data: input
|
|
5870
|
+
};
|
|
5871
|
+
}
|
|
5872
|
+
return {
|
|
5873
|
+
success: true,
|
|
5874
|
+
data: input
|
|
5875
|
+
};
|
|
5876
|
+
}; })()(input);
|
|
5877
|
+
}
|
|
5768
5878
|
case ":media.source": {
|
|
5769
5879
|
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
5880
|
const value = input[key];
|