@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.
- package/dist/nxtpression.d.ts +41 -2
- package/dist/records/domains/auth.d.ts +7 -0
- package/dist/records/domains/auth.js +1 -0
- package/dist/records/domains/contact.d.ts +4 -0
- package/dist/records/domains/general.d.ts +16 -0
- package/dist/records/domains/index.d.ts +5 -1
- package/dist/records/domains/index.js +2 -0
- package/dist/records/domains/username.d.ts +6 -0
- package/dist/records/domains/username.js +1 -0
- package/dist/records/exact/storage.d.ts +1 -1
- package/dist/records/validate/assert-guard.js +177 -5
- package/dist/records/validate/assert.js +181 -5
- package/dist/records/validate/is.js +19 -2
- package/dist/records/validate/schemas.js +145 -1
- package/dist/records/validate/stringify.js +15 -2
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +279 -8
- package/dist/records/validate/validate.js +207 -5
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -2880,6 +2880,30 @@ function _assertDomainRecord(domain, input) {
|
|
|
2880
2880
|
return input;
|
|
2881
2881
|
}; })()(input);
|
|
2882
2882
|
}
|
|
2883
|
+
case ":auth": {
|
|
2884
|
+
return (() => { const _io0 = input => null === input.hash || undefined === input.hash || "string" === typeof input.hash; const _ao0 = (input, _path, _exceptionable = true) => null === input.hash || undefined === input.hash || "string" === typeof input.hash || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2885
|
+
method: "typia.assert",
|
|
2886
|
+
path: _path + ".hash",
|
|
2887
|
+
expected: "(null | string | undefined)",
|
|
2888
|
+
value: input.hash
|
|
2889
|
+
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
2890
|
+
if (false === __is(input)) {
|
|
2891
|
+
_errorFactory = errorFactory;
|
|
2892
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
2893
|
+
method: "typia.assert",
|
|
2894
|
+
path: _path + "",
|
|
2895
|
+
expected: "AuthDomainRecord",
|
|
2896
|
+
value: input
|
|
2897
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
2898
|
+
method: "typia.assert",
|
|
2899
|
+
path: _path + "",
|
|
2900
|
+
expected: "AuthDomainRecord",
|
|
2901
|
+
value: input
|
|
2902
|
+
}, _errorFactory))(input, "$input", true);
|
|
2903
|
+
}
|
|
2904
|
+
return input;
|
|
2905
|
+
}; })()(input);
|
|
2906
|
+
}
|
|
2883
2907
|
case ":bundle": {
|
|
2884
2908
|
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 => {
|
|
2885
2909
|
const value = input[key];
|
|
@@ -4112,7 +4136,7 @@ function _assertDomainRecord(domain, input) {
|
|
|
4112
4136
|
}; })()(input);
|
|
4113
4137
|
}
|
|
4114
4138
|
case ":contact": {
|
|
4115
|
-
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 _ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4139
|
+
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 _ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4116
4140
|
method: "typia.assert",
|
|
4117
4141
|
path: _path + ".title",
|
|
4118
4142
|
expected: "(string | undefined)",
|
|
@@ -4122,6 +4146,11 @@ function _assertDomainRecord(domain, input) {
|
|
|
4122
4146
|
path: _path + ".email",
|
|
4123
4147
|
expected: "(string | undefined)",
|
|
4124
4148
|
value: input.email
|
|
4149
|
+
}, _errorFactory)) && (undefined === input.phone || "string" === typeof input.phone || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4150
|
+
method: "typia.assert",
|
|
4151
|
+
path: _path + ".phone",
|
|
4152
|
+
expected: "(string | undefined)",
|
|
4153
|
+
value: input.phone
|
|
4125
4154
|
}, _errorFactory)) && (undefined === input.firstName || "string" === typeof input.firstName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4126
4155
|
method: "typia.assert",
|
|
4127
4156
|
path: _path + ".firstName",
|
|
@@ -4132,6 +4161,21 @@ function _assertDomainRecord(domain, input) {
|
|
|
4132
4161
|
path: _path + ".lastName",
|
|
4133
4162
|
expected: "(string | undefined)",
|
|
4134
4163
|
value: input.lastName
|
|
4164
|
+
}, _errorFactory)) && (undefined === input.cell || "string" === typeof input.cell || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4165
|
+
method: "typia.assert",
|
|
4166
|
+
path: _path + ".cell",
|
|
4167
|
+
expected: "(string | undefined)",
|
|
4168
|
+
value: input.cell
|
|
4169
|
+
}, _errorFactory)) && (undefined === input.company || "string" === typeof input.company || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4170
|
+
method: "typia.assert",
|
|
4171
|
+
path: _path + ".company",
|
|
4172
|
+
expected: "(string | undefined)",
|
|
4173
|
+
value: input.company
|
|
4174
|
+
}, _errorFactory)) && (undefined === input.address || "string" === typeof input.address || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4175
|
+
method: "typia.assert",
|
|
4176
|
+
path: _path + ".address",
|
|
4177
|
+
expected: "(string | undefined)",
|
|
4178
|
+
value: input.address
|
|
4135
4179
|
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
4136
4180
|
if (false === __is(input)) {
|
|
4137
4181
|
_errorFactory = errorFactory;
|
|
@@ -5714,6 +5758,104 @@ function _assertDomainRecord(domain, input) {
|
|
|
5714
5758
|
return input;
|
|
5715
5759
|
}; })()(input);
|
|
5716
5760
|
}
|
|
5761
|
+
case ":general._asset": {
|
|
5762
|
+
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, {
|
|
5763
|
+
method: "typia.assert",
|
|
5764
|
+
path: _path + ".title",
|
|
5765
|
+
expected: "(string | undefined)",
|
|
5766
|
+
value: input.title
|
|
5767
|
+
}, _errorFactory)) && (undefined === input.tags || "string" === typeof input.tags || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5768
|
+
method: "typia.assert",
|
|
5769
|
+
path: _path + ".tags",
|
|
5770
|
+
expected: "(string | undefined)",
|
|
5771
|
+
value: input.tags
|
|
5772
|
+
}, _errorFactory)) && (undefined === input.media || "string" === typeof input.media || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5773
|
+
method: "typia.assert",
|
|
5774
|
+
path: _path + ".media",
|
|
5775
|
+
expected: "(string | undefined)",
|
|
5776
|
+
value: input.media
|
|
5777
|
+
}, _errorFactory)) && (undefined === input.duration || "string" === typeof input.duration || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5778
|
+
method: "typia.assert",
|
|
5779
|
+
path: _path + ".duration",
|
|
5780
|
+
expected: "(string | undefined)",
|
|
5781
|
+
value: input.duration
|
|
5782
|
+
}, _errorFactory)) && (undefined === input.deadlines || "string" === typeof input.deadlines || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5783
|
+
method: "typia.assert",
|
|
5784
|
+
path: _path + ".deadlines",
|
|
5785
|
+
expected: "(string | undefined)",
|
|
5786
|
+
value: input.deadlines
|
|
5787
|
+
}, _errorFactory)) && (undefined === input.assignees || "string" === typeof input.assignees || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5788
|
+
method: "typia.assert",
|
|
5789
|
+
path: _path + ".assignees",
|
|
5790
|
+
expected: "(string | undefined)",
|
|
5791
|
+
value: input.assignees
|
|
5792
|
+
}, _errorFactory)) && (undefined === input.locations || "string" === typeof input.locations || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5793
|
+
method: "typia.assert",
|
|
5794
|
+
path: _path + ".locations",
|
|
5795
|
+
expected: "(string | undefined)",
|
|
5796
|
+
value: input.locations
|
|
5797
|
+
}, _errorFactory)) && (undefined === input.status || "string" === typeof input.status || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5798
|
+
method: "typia.assert",
|
|
5799
|
+
path: _path + ".status",
|
|
5800
|
+
expected: "(string | undefined)",
|
|
5801
|
+
value: input.status
|
|
5802
|
+
}, _errorFactory)) && (undefined === input.storage || "string" === typeof input.storage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5803
|
+
method: "typia.assert",
|
|
5804
|
+
path: _path + ".storage",
|
|
5805
|
+
expected: "(string | undefined)",
|
|
5806
|
+
value: input.storage
|
|
5807
|
+
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5808
|
+
if (false === __is(input)) {
|
|
5809
|
+
_errorFactory = errorFactory;
|
|
5810
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5811
|
+
method: "typia.assert",
|
|
5812
|
+
path: _path + "",
|
|
5813
|
+
expected: "GeneralAssetRecord",
|
|
5814
|
+
value: input
|
|
5815
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5816
|
+
method: "typia.assert",
|
|
5817
|
+
path: _path + "",
|
|
5818
|
+
expected: "GeneralAssetRecord",
|
|
5819
|
+
value: input
|
|
5820
|
+
}, _errorFactory))(input, "$input", true);
|
|
5821
|
+
}
|
|
5822
|
+
return input;
|
|
5823
|
+
}; })()(input);
|
|
5824
|
+
}
|
|
5825
|
+
case ":general._embedding": {
|
|
5826
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
5827
|
+
const value = input[key];
|
|
5828
|
+
if (undefined === value)
|
|
5829
|
+
return true;
|
|
5830
|
+
return null === value || "string" === typeof value;
|
|
5831
|
+
}); const _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
5832
|
+
const value = input[key];
|
|
5833
|
+
if (undefined === value)
|
|
5834
|
+
return true;
|
|
5835
|
+
return null === value || "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5836
|
+
method: "typia.assert",
|
|
5837
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5838
|
+
expected: "(null | string)",
|
|
5839
|
+
value: value
|
|
5840
|
+
}, _errorFactory);
|
|
5841
|
+
}); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5842
|
+
if (false === __is(input)) {
|
|
5843
|
+
_errorFactory = errorFactory;
|
|
5844
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5845
|
+
method: "typia.assert",
|
|
5846
|
+
path: _path + "",
|
|
5847
|
+
expected: "GeneralEmbeddingRecord",
|
|
5848
|
+
value: input
|
|
5849
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5850
|
+
method: "typia.assert",
|
|
5851
|
+
path: _path + "",
|
|
5852
|
+
expected: "GeneralEmbeddingRecord",
|
|
5853
|
+
value: input
|
|
5854
|
+
}, _errorFactory))(input, "$input", true);
|
|
5855
|
+
}
|
|
5856
|
+
return input;
|
|
5857
|
+
}; })()(input);
|
|
5858
|
+
}
|
|
5717
5859
|
case ":media.source": {
|
|
5718
5860
|
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
5861
|
const value = input[key];
|
|
@@ -16050,6 +16192,40 @@ function _assertDomainRecord(domain, input) {
|
|
|
16050
16192
|
return input;
|
|
16051
16193
|
}; })()(input);
|
|
16052
16194
|
}
|
|
16195
|
+
case ":username?": {
|
|
16196
|
+
return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); const _ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16197
|
+
method: "typia.assert",
|
|
16198
|
+
path: _path + ".value",
|
|
16199
|
+
expected: "(Array<string> | undefined)",
|
|
16200
|
+
value: input.value
|
|
16201
|
+
}, _errorFactory)) && input.value.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16202
|
+
method: "typia.assert",
|
|
16203
|
+
path: _path + ".value[" + _index2 + "]",
|
|
16204
|
+
expected: "string",
|
|
16205
|
+
value: elem
|
|
16206
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16207
|
+
method: "typia.assert",
|
|
16208
|
+
path: _path + ".value",
|
|
16209
|
+
expected: "(Array<string> | undefined)",
|
|
16210
|
+
value: input.value
|
|
16211
|
+
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
16212
|
+
if (false === __is(input)) {
|
|
16213
|
+
_errorFactory = errorFactory;
|
|
16214
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
16215
|
+
method: "typia.assert",
|
|
16216
|
+
path: _path + "",
|
|
16217
|
+
expected: "UsernameDomainRecord",
|
|
16218
|
+
value: input
|
|
16219
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
16220
|
+
method: "typia.assert",
|
|
16221
|
+
path: _path + "",
|
|
16222
|
+
expected: "UsernameDomainRecord",
|
|
16223
|
+
value: input
|
|
16224
|
+
}, _errorFactory))(input, "$input", true);
|
|
16225
|
+
}
|
|
16226
|
+
return input;
|
|
16227
|
+
}; })()(input);
|
|
16228
|
+
}
|
|
16053
16229
|
default: throw new Error("Unrecognized domain \"" + domain + "\"");
|
|
16054
16230
|
}
|
|
16055
16231
|
}
|
|
@@ -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 => {
|
|
@@ -220,6 +220,9 @@ function _isDomainRecord(domain, input) {
|
|
|
220
220
|
case ":asset.comments?": {
|
|
221
221
|
return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
222
222
|
}
|
|
223
|
+
case ":auth": {
|
|
224
|
+
return (() => { const _io0 = input => null === input.hash || undefined === input.hash || "string" === typeof input.hash; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
225
|
+
}
|
|
223
226
|
case ":bundle": {
|
|
224
227
|
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 => {
|
|
225
228
|
const value = input[key];
|
|
@@ -316,7 +319,7 @@ function _isDomainRecord(domain, input) {
|
|
|
316
319
|
return (() => { const _io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.pages || Array.isArray(input.pages) && input.pages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => true; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
317
320
|
}
|
|
318
321
|
case ":contact": {
|
|
319
|
-
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); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
322
|
+
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); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
320
323
|
}
|
|
321
324
|
case ":deepstream.replicate": {
|
|
322
325
|
return (() => { const _io0 = input => (undefined === input.synced || "boolean" === typeof input.synced) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since) && (undefined === input.version || "number" === typeof input.version); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
@@ -424,6 +427,17 @@ function _isDomainRecord(domain, input) {
|
|
|
424
427
|
case ":general.description": {
|
|
425
428
|
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
429
|
}
|
|
430
|
+
case ":general._asset": {
|
|
431
|
+
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);
|
|
432
|
+
}
|
|
433
|
+
case ":general._embedding": {
|
|
434
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
435
|
+
const value = input[key];
|
|
436
|
+
if (undefined === value)
|
|
437
|
+
return true;
|
|
438
|
+
return null === value || "string" === typeof value;
|
|
439
|
+
}); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
440
|
+
}
|
|
427
441
|
case ":media.source": {
|
|
428
442
|
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
443
|
const value = input[key];
|
|
@@ -961,6 +975,9 @@ function _isDomainRecord(domain, input) {
|
|
|
961
975
|
case ":user.unseenNotifications?": {
|
|
962
976
|
return (() => { const _io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
963
977
|
}
|
|
978
|
+
case ":username?": {
|
|
979
|
+
return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
980
|
+
}
|
|
964
981
|
default: throw new Error("Unrecognized domain \"" + domain + "\"");
|
|
965
982
|
}
|
|
966
983
|
}
|
|
@@ -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
|
}
|
|
@@ -2373,6 +2372,37 @@ function _schemasDomainRecord(domain) {
|
|
|
2373
2372
|
]
|
|
2374
2373
|
};
|
|
2375
2374
|
}
|
|
2375
|
+
case ":auth": {
|
|
2376
|
+
return {
|
|
2377
|
+
version: "3.1",
|
|
2378
|
+
components: {
|
|
2379
|
+
schemas: {
|
|
2380
|
+
AuthDomainRecord: {
|
|
2381
|
+
type: "object",
|
|
2382
|
+
properties: {
|
|
2383
|
+
hash: {
|
|
2384
|
+
oneOf: [
|
|
2385
|
+
{
|
|
2386
|
+
type: "null"
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
type: "string"
|
|
2390
|
+
}
|
|
2391
|
+
],
|
|
2392
|
+
description: "hash of a user's password, or null if not set"
|
|
2393
|
+
}
|
|
2394
|
+
},
|
|
2395
|
+
required: []
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
schemas: [
|
|
2400
|
+
{
|
|
2401
|
+
$ref: "#/components/schemas/AuthDomainRecord"
|
|
2402
|
+
}
|
|
2403
|
+
]
|
|
2404
|
+
};
|
|
2405
|
+
}
|
|
2376
2406
|
case ":bundle": {
|
|
2377
2407
|
return {
|
|
2378
2408
|
version: "3.1",
|
|
@@ -3467,11 +3497,23 @@ function _schemasDomainRecord(domain) {
|
|
|
3467
3497
|
email: {
|
|
3468
3498
|
type: "string"
|
|
3469
3499
|
},
|
|
3500
|
+
phone: {
|
|
3501
|
+
type: "string"
|
|
3502
|
+
},
|
|
3470
3503
|
firstName: {
|
|
3471
3504
|
type: "string"
|
|
3472
3505
|
},
|
|
3473
3506
|
lastName: {
|
|
3474
3507
|
type: "string"
|
|
3508
|
+
},
|
|
3509
|
+
cell: {
|
|
3510
|
+
type: "string"
|
|
3511
|
+
},
|
|
3512
|
+
company: {
|
|
3513
|
+
type: "string"
|
|
3514
|
+
},
|
|
3515
|
+
address: {
|
|
3516
|
+
type: "string"
|
|
3475
3517
|
}
|
|
3476
3518
|
},
|
|
3477
3519
|
required: []
|
|
@@ -4619,6 +4661,82 @@ function _schemasDomainRecord(domain) {
|
|
|
4619
4661
|
]
|
|
4620
4662
|
};
|
|
4621
4663
|
}
|
|
4664
|
+
case ":general._asset": {
|
|
4665
|
+
return {
|
|
4666
|
+
version: "3.1",
|
|
4667
|
+
components: {
|
|
4668
|
+
schemas: {
|
|
4669
|
+
GeneralAssetRecord: {
|
|
4670
|
+
type: "object",
|
|
4671
|
+
properties: {
|
|
4672
|
+
title: {
|
|
4673
|
+
type: "string"
|
|
4674
|
+
},
|
|
4675
|
+
tags: {
|
|
4676
|
+
type: "string"
|
|
4677
|
+
},
|
|
4678
|
+
media: {
|
|
4679
|
+
type: "string"
|
|
4680
|
+
},
|
|
4681
|
+
duration: {
|
|
4682
|
+
type: "string"
|
|
4683
|
+
},
|
|
4684
|
+
deadlines: {
|
|
4685
|
+
type: "string"
|
|
4686
|
+
},
|
|
4687
|
+
assignees: {
|
|
4688
|
+
type: "string"
|
|
4689
|
+
},
|
|
4690
|
+
locations: {
|
|
4691
|
+
type: "string"
|
|
4692
|
+
},
|
|
4693
|
+
status: {
|
|
4694
|
+
type: "string"
|
|
4695
|
+
},
|
|
4696
|
+
storage: {
|
|
4697
|
+
type: "string"
|
|
4698
|
+
}
|
|
4699
|
+
},
|
|
4700
|
+
required: []
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4703
|
+
},
|
|
4704
|
+
schemas: [
|
|
4705
|
+
{
|
|
4706
|
+
$ref: "#/components/schemas/GeneralAssetRecord"
|
|
4707
|
+
}
|
|
4708
|
+
]
|
|
4709
|
+
};
|
|
4710
|
+
}
|
|
4711
|
+
case ":general._embedding": {
|
|
4712
|
+
return {
|
|
4713
|
+
version: "3.1",
|
|
4714
|
+
components: {
|
|
4715
|
+
schemas: {
|
|
4716
|
+
GeneralEmbeddingRecord: {
|
|
4717
|
+
type: "object",
|
|
4718
|
+
properties: {},
|
|
4719
|
+
required: [],
|
|
4720
|
+
additionalProperties: {
|
|
4721
|
+
oneOf: [
|
|
4722
|
+
{
|
|
4723
|
+
type: "null"
|
|
4724
|
+
},
|
|
4725
|
+
{
|
|
4726
|
+
type: "string"
|
|
4727
|
+
}
|
|
4728
|
+
]
|
|
4729
|
+
}
|
|
4730
|
+
}
|
|
4731
|
+
}
|
|
4732
|
+
},
|
|
4733
|
+
schemas: [
|
|
4734
|
+
{
|
|
4735
|
+
$ref: "#/components/schemas/GeneralEmbeddingRecord"
|
|
4736
|
+
}
|
|
4737
|
+
]
|
|
4738
|
+
};
|
|
4739
|
+
}
|
|
4622
4740
|
case ":media.source": {
|
|
4623
4741
|
return {
|
|
4624
4742
|
version: "3.1",
|
|
@@ -12874,6 +12992,32 @@ function _schemasDomainRecord(domain) {
|
|
|
12874
12992
|
]
|
|
12875
12993
|
};
|
|
12876
12994
|
}
|
|
12995
|
+
case ":username?": {
|
|
12996
|
+
return {
|
|
12997
|
+
version: "3.1",
|
|
12998
|
+
components: {
|
|
12999
|
+
schemas: {
|
|
13000
|
+
UsernameDomainRecord: {
|
|
13001
|
+
type: "object",
|
|
13002
|
+
properties: {
|
|
13003
|
+
value: {
|
|
13004
|
+
type: "array",
|
|
13005
|
+
items: {
|
|
13006
|
+
type: "string"
|
|
13007
|
+
}
|
|
13008
|
+
}
|
|
13009
|
+
},
|
|
13010
|
+
required: []
|
|
13011
|
+
}
|
|
13012
|
+
}
|
|
13013
|
+
},
|
|
13014
|
+
schemas: [
|
|
13015
|
+
{
|
|
13016
|
+
$ref: "#/components/schemas/UsernameDomainRecord"
|
|
13017
|
+
}
|
|
13018
|
+
]
|
|
13019
|
+
};
|
|
13020
|
+
}
|
|
12877
13021
|
default: throw new Error("Unrecognized domain \"" + domain + "\"");
|
|
12878
13022
|
}
|
|
12879
13023
|
}
|
|
@@ -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)
|
|
@@ -507,6 +507,9 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
507
507
|
case ":asset.comments?": {
|
|
508
508
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
509
509
|
}
|
|
510
|
+
case ":auth": {
|
|
511
|
+
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.hash ? "" : `"hash":${undefined !== input.hash ? null !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : "null" : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
512
|
+
}
|
|
510
513
|
case ":bundle": {
|
|
511
514
|
return (() => { const _so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? __typia_transform__jsonStringifyString._jsonStringifyString(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}"files":${_so1(input.files)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
512
515
|
return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _io1 = input => Object.keys(input).every(key => {
|
|
@@ -658,7 +661,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
658
661
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.pages ? "" : `"pages":${undefined !== input.pages ? `[${input.pages.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`; const _io1 = input => true; return input => _so0(input); })()(input);
|
|
659
662
|
}
|
|
660
663
|
case ":contact": {
|
|
661
|
-
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.email ? "" : `"email":${undefined !== input.email ? __typia_transform__jsonStringifyString._jsonStringifyString(input.email) : undefined},`}${undefined === input.firstName ? "" : `"firstName":${undefined !== input.firstName ? __typia_transform__jsonStringifyString._jsonStringifyString(input.firstName) : undefined},`}${undefined === input.lastName ? "" : `"lastName":${undefined !== input.lastName ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lastName) : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
664
|
+
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.email ? "" : `"email":${undefined !== input.email ? __typia_transform__jsonStringifyString._jsonStringifyString(input.email) : undefined},`}${undefined === input.phone ? "" : `"phone":${undefined !== input.phone ? __typia_transform__jsonStringifyString._jsonStringifyString(input.phone) : undefined},`}${undefined === input.firstName ? "" : `"firstName":${undefined !== input.firstName ? __typia_transform__jsonStringifyString._jsonStringifyString(input.firstName) : undefined},`}${undefined === input.lastName ? "" : `"lastName":${undefined !== input.lastName ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lastName) : undefined},`}${undefined === input.cell ? "" : `"cell":${undefined !== input.cell ? __typia_transform__jsonStringifyString._jsonStringifyString(input.cell) : undefined},`}${undefined === input.company ? "" : `"company":${undefined !== input.company ? __typia_transform__jsonStringifyString._jsonStringifyString(input.company) : undefined},`}${undefined === input.address ? "" : `"address":${undefined !== input.address ? __typia_transform__jsonStringifyString._jsonStringifyString(input.address) : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
662
665
|
}
|
|
663
666
|
case ":deepstream.replicate": {
|
|
664
667
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.synced ? "" : `"synced":${undefined !== input.synced ? input.synced : undefined},`}${undefined === input.since ? "" : `"since":${undefined !== input.since ? null !== input.since ? (() => {
|
|
@@ -891,6 +894,13 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
891
894
|
case ":general.description": {
|
|
892
895
|
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
896
|
}
|
|
897
|
+
case ":general._asset": {
|
|
898
|
+
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);
|
|
899
|
+
}
|
|
900
|
+
case ":general._embedding": {
|
|
901
|
+
return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
902
|
+
return ""; return `${JSON.stringify(key)}:${null !== value ? __typia_transform__jsonStringifyString._jsonStringifyString(value) : "null"}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
|
|
903
|
+
}
|
|
894
904
|
case ":media.source": {
|
|
895
905
|
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
906
|
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 => {
|
|
@@ -1830,6 +1840,9 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
1830
1840
|
case ":user.unseenNotifications?": {
|
|
1831
1841
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.hasUnseen ? "" : `"hasUnseen":${undefined !== input.hasUnseen ? input.hasUnseen : undefined},`}${undefined === input.latestReceived ? "" : `"latestReceived":${undefined !== input.latestReceived ? __typia_transform__jsonStringifyString._jsonStringifyString(input.latestReceived) : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
1832
1842
|
}
|
|
1843
|
+
case ":username?": {
|
|
1844
|
+
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
1845
|
+
}
|
|
1833
1846
|
default: throw new Error("Unrecognized domain \"" + domain + "\"");
|
|
1834
1847
|
}
|
|
1835
1848
|
}
|
|
@@ -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?", ":auth", ":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?", ":username?"]);
|
|
3
3
|
export const exactRecordNames = _exactRecordNames;
|
|
4
4
|
export const domainNames = _domainNames;
|
|
5
5
|
export function isEmptyRecord(data) {
|