@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
package/dist/nxtpression.d.ts
CHANGED
|
@@ -261,6 +261,15 @@ declare interface AssetTypesRecord {
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
+
declare interface AuthDomainRecord {
|
|
265
|
+
/** hash of a user's password, or null if not set */
|
|
266
|
+
hash?: string | null;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare interface AuthDomainRecords {
|
|
270
|
+
":auth": AuthDomainRecord;
|
|
271
|
+
}
|
|
272
|
+
|
|
264
273
|
declare interface BundleDomainRecords {
|
|
265
274
|
[":bundle"]: BundleRecord;
|
|
266
275
|
[":bundle.revisions"]: BundleRevisionsRecord;
|
|
@@ -391,8 +400,12 @@ declare interface ContactDomainRecords {
|
|
|
391
400
|
declare interface ContactRecord {
|
|
392
401
|
title?: string;
|
|
393
402
|
email?: string;
|
|
403
|
+
phone?: string;
|
|
394
404
|
firstName?: string;
|
|
395
405
|
lastName?: string;
|
|
406
|
+
cell?: string;
|
|
407
|
+
company?: string;
|
|
408
|
+
address?: string;
|
|
396
409
|
}
|
|
397
410
|
|
|
398
411
|
declare interface CopyOperation {
|
|
@@ -450,7 +463,7 @@ declare interface DesignViewRow<Id = string, Key = string, Value = void> {
|
|
|
450
463
|
value: Value;
|
|
451
464
|
}
|
|
452
465
|
|
|
453
|
-
declare interface DomainRecords extends AssetDomainRecords, BundleDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords {
|
|
466
|
+
declare interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
454
467
|
}
|
|
455
468
|
|
|
456
469
|
declare type Dynamic = false | string[];
|
|
@@ -844,6 +857,18 @@ declare interface FontFace_2 {
|
|
|
844
857
|
ranges: Range_2[];
|
|
845
858
|
}
|
|
846
859
|
|
|
860
|
+
declare interface GeneralAssetRecord {
|
|
861
|
+
title?: string;
|
|
862
|
+
tags?: string;
|
|
863
|
+
media?: string;
|
|
864
|
+
duration?: string;
|
|
865
|
+
deadlines?: string;
|
|
866
|
+
assignees?: string;
|
|
867
|
+
locations?: string;
|
|
868
|
+
status?: string;
|
|
869
|
+
storage?: string;
|
|
870
|
+
}
|
|
871
|
+
|
|
847
872
|
declare interface GeneralCreatedRecord {
|
|
848
873
|
time?: string;
|
|
849
874
|
user?: string;
|
|
@@ -861,6 +886,12 @@ declare interface GeneralDomainRecords {
|
|
|
861
886
|
":general.poster": GeneralPosterRecord;
|
|
862
887
|
":general.status": GeneralStatusRecord;
|
|
863
888
|
":general.description": GeneralDescriptionRecord;
|
|
889
|
+
":general._asset": GeneralAssetRecord;
|
|
890
|
+
":general._embedding": GeneralEmbeddingRecord;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
declare interface GeneralEmbeddingRecord {
|
|
894
|
+
[hash: string]: string | null;
|
|
864
895
|
}
|
|
865
896
|
|
|
866
897
|
declare interface GeneralPosterRecord {
|
|
@@ -2800,7 +2831,7 @@ declare interface StorageLocationsRecordEntry {
|
|
|
2800
2831
|
capacity: number | null;
|
|
2801
2832
|
origin: string;
|
|
2802
2833
|
allows: ("get" | "put" | "del")[];
|
|
2803
|
-
net
|
|
2834
|
+
net?: {
|
|
2804
2835
|
rx: number;
|
|
2805
2836
|
tx: number;
|
|
2806
2837
|
};
|
|
@@ -3354,6 +3385,14 @@ declare interface UserDomainUnseenNotificationsRecord {
|
|
|
3354
3385
|
latestReceived?: string;
|
|
3355
3386
|
}
|
|
3356
3387
|
|
|
3388
|
+
declare interface UsernameDomainRecord {
|
|
3389
|
+
value?: string[];
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
declare interface UsernameDomainRecords {
|
|
3393
|
+
":username?": UsernameDomainRecord;
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3357
3396
|
declare interface UserNotificationAddedToSearch extends UserNotificationCommon {
|
|
3358
3397
|
type: "added-to-search";
|
|
3359
3398
|
payload: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AssetDomainRecords } from './asset.ts';
|
|
2
|
+
import type { AuthDomainRecords } from './auth.ts';
|
|
2
3
|
import type { BundleDomainRecords } from './bundle.ts';
|
|
3
4
|
import type { CloneDomainRecords } from './clone.ts';
|
|
4
5
|
import type { CommentReactionDomainRecords } from './comment-reaction.ts';
|
|
@@ -36,7 +37,9 @@ import type { TemplateDomainRecords } from './template.ts';
|
|
|
36
37
|
import type { UserNotificationStatusDomainRecords } from './user-notification-status.ts';
|
|
37
38
|
import type { UserNotificationDomainRecords } from './user-notification.ts';
|
|
38
39
|
import type { UserDomainRecords } from './user.ts';
|
|
40
|
+
import type { UsernameDomainRecords } from './username.ts';
|
|
39
41
|
export * from './asset.ts';
|
|
42
|
+
export * from './auth.ts';
|
|
40
43
|
export * from './bundle.ts';
|
|
41
44
|
export * from './clone.ts';
|
|
42
45
|
export * from './comment-reaction.ts';
|
|
@@ -74,5 +77,6 @@ export * from './template.ts';
|
|
|
74
77
|
export * from './user-notification-status.ts';
|
|
75
78
|
export * from './user-notification.ts';
|
|
76
79
|
export * from './user.ts';
|
|
77
|
-
export
|
|
80
|
+
export * from './username.ts';
|
|
81
|
+
export interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
78
82
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./asset.js";
|
|
2
|
+
export * from "./auth.js";
|
|
2
3
|
export * from "./bundle.js";
|
|
3
4
|
export * from "./clone.js";
|
|
4
5
|
export * from "./comment-reaction.js";
|
|
@@ -36,3 +37,4 @@ export * from "./template.js";
|
|
|
36
37
|
export * from "./user-notification-status.js";
|
|
37
38
|
export * from "./user-notification.js";
|
|
38
39
|
export * from "./user.js";
|
|
40
|
+
export * from "./username.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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",
|
|
@@ -2837,6 +2837,29 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}; })()(input);
|
|
2839
2839
|
}
|
|
2840
|
+
case ":auth": {
|
|
2841
|
+
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, {
|
|
2842
|
+
method: "typia.assertGuard",
|
|
2843
|
+
path: _path + ".hash",
|
|
2844
|
+
expected: "(null | string | undefined)",
|
|
2845
|
+
value: input.hash
|
|
2846
|
+
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
2847
|
+
if (false === __is(input)) {
|
|
2848
|
+
_errorFactory = errorFactory;
|
|
2849
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
2850
|
+
method: "typia.assertGuard",
|
|
2851
|
+
path: _path + "",
|
|
2852
|
+
expected: "AuthDomainRecord",
|
|
2853
|
+
value: input
|
|
2854
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
2855
|
+
method: "typia.assertGuard",
|
|
2856
|
+
path: _path + "",
|
|
2857
|
+
expected: "AuthDomainRecord",
|
|
2858
|
+
value: input
|
|
2859
|
+
}, _errorFactory))(input, "$input", true);
|
|
2860
|
+
}
|
|
2861
|
+
}; })()(input);
|
|
2862
|
+
}
|
|
2840
2863
|
case ":bundle": {
|
|
2841
2864
|
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 => {
|
|
2842
2865
|
const value = input[key];
|
|
@@ -4057,7 +4080,7 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
4057
4080
|
}; })()(input);
|
|
4058
4081
|
}
|
|
4059
4082
|
case ":contact": {
|
|
4060
|
-
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, {
|
|
4083
|
+
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, {
|
|
4061
4084
|
method: "typia.assertGuard",
|
|
4062
4085
|
path: _path + ".title",
|
|
4063
4086
|
expected: "(string | undefined)",
|
|
@@ -4067,6 +4090,11 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
4067
4090
|
path: _path + ".email",
|
|
4068
4091
|
expected: "(string | undefined)",
|
|
4069
4092
|
value: input.email
|
|
4093
|
+
}, _errorFactory)) && (undefined === input.phone || "string" === typeof input.phone || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4094
|
+
method: "typia.assertGuard",
|
|
4095
|
+
path: _path + ".phone",
|
|
4096
|
+
expected: "(string | undefined)",
|
|
4097
|
+
value: input.phone
|
|
4070
4098
|
}, _errorFactory)) && (undefined === input.firstName || "string" === typeof input.firstName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4071
4099
|
method: "typia.assertGuard",
|
|
4072
4100
|
path: _path + ".firstName",
|
|
@@ -4077,6 +4105,21 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
4077
4105
|
path: _path + ".lastName",
|
|
4078
4106
|
expected: "(string | undefined)",
|
|
4079
4107
|
value: input.lastName
|
|
4108
|
+
}, _errorFactory)) && (undefined === input.cell || "string" === typeof input.cell || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4109
|
+
method: "typia.assertGuard",
|
|
4110
|
+
path: _path + ".cell",
|
|
4111
|
+
expected: "(string | undefined)",
|
|
4112
|
+
value: input.cell
|
|
4113
|
+
}, _errorFactory)) && (undefined === input.company || "string" === typeof input.company || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4114
|
+
method: "typia.assertGuard",
|
|
4115
|
+
path: _path + ".company",
|
|
4116
|
+
expected: "(string | undefined)",
|
|
4117
|
+
value: input.company
|
|
4118
|
+
}, _errorFactory)) && (undefined === input.address || "string" === typeof input.address || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4119
|
+
method: "typia.assertGuard",
|
|
4120
|
+
path: _path + ".address",
|
|
4121
|
+
expected: "(string | undefined)",
|
|
4122
|
+
value: input.address
|
|
4080
4123
|
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
4081
4124
|
if (false === __is(input)) {
|
|
4082
4125
|
_errorFactory = errorFactory;
|
|
@@ -5639,6 +5682,102 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
5639
5682
|
}
|
|
5640
5683
|
}; })()(input);
|
|
5641
5684
|
}
|
|
5685
|
+
case ":general._asset": {
|
|
5686
|
+
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, {
|
|
5687
|
+
method: "typia.assertGuard",
|
|
5688
|
+
path: _path + ".title",
|
|
5689
|
+
expected: "(string | undefined)",
|
|
5690
|
+
value: input.title
|
|
5691
|
+
}, _errorFactory)) && (undefined === input.tags || "string" === typeof input.tags || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5692
|
+
method: "typia.assertGuard",
|
|
5693
|
+
path: _path + ".tags",
|
|
5694
|
+
expected: "(string | undefined)",
|
|
5695
|
+
value: input.tags
|
|
5696
|
+
}, _errorFactory)) && (undefined === input.media || "string" === typeof input.media || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5697
|
+
method: "typia.assertGuard",
|
|
5698
|
+
path: _path + ".media",
|
|
5699
|
+
expected: "(string | undefined)",
|
|
5700
|
+
value: input.media
|
|
5701
|
+
}, _errorFactory)) && (undefined === input.duration || "string" === typeof input.duration || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5702
|
+
method: "typia.assertGuard",
|
|
5703
|
+
path: _path + ".duration",
|
|
5704
|
+
expected: "(string | undefined)",
|
|
5705
|
+
value: input.duration
|
|
5706
|
+
}, _errorFactory)) && (undefined === input.deadlines || "string" === typeof input.deadlines || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5707
|
+
method: "typia.assertGuard",
|
|
5708
|
+
path: _path + ".deadlines",
|
|
5709
|
+
expected: "(string | undefined)",
|
|
5710
|
+
value: input.deadlines
|
|
5711
|
+
}, _errorFactory)) && (undefined === input.assignees || "string" === typeof input.assignees || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5712
|
+
method: "typia.assertGuard",
|
|
5713
|
+
path: _path + ".assignees",
|
|
5714
|
+
expected: "(string | undefined)",
|
|
5715
|
+
value: input.assignees
|
|
5716
|
+
}, _errorFactory)) && (undefined === input.locations || "string" === typeof input.locations || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5717
|
+
method: "typia.assertGuard",
|
|
5718
|
+
path: _path + ".locations",
|
|
5719
|
+
expected: "(string | undefined)",
|
|
5720
|
+
value: input.locations
|
|
5721
|
+
}, _errorFactory)) && (undefined === input.status || "string" === typeof input.status || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5722
|
+
method: "typia.assertGuard",
|
|
5723
|
+
path: _path + ".status",
|
|
5724
|
+
expected: "(string | undefined)",
|
|
5725
|
+
value: input.status
|
|
5726
|
+
}, _errorFactory)) && (undefined === input.storage || "string" === typeof input.storage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5727
|
+
method: "typia.assertGuard",
|
|
5728
|
+
path: _path + ".storage",
|
|
5729
|
+
expected: "(string | undefined)",
|
|
5730
|
+
value: input.storage
|
|
5731
|
+
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5732
|
+
if (false === __is(input)) {
|
|
5733
|
+
_errorFactory = errorFactory;
|
|
5734
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5735
|
+
method: "typia.assertGuard",
|
|
5736
|
+
path: _path + "",
|
|
5737
|
+
expected: "GeneralAssetRecord",
|
|
5738
|
+
value: input
|
|
5739
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5740
|
+
method: "typia.assertGuard",
|
|
5741
|
+
path: _path + "",
|
|
5742
|
+
expected: "GeneralAssetRecord",
|
|
5743
|
+
value: input
|
|
5744
|
+
}, _errorFactory))(input, "$input", true);
|
|
5745
|
+
}
|
|
5746
|
+
}; })()(input);
|
|
5747
|
+
}
|
|
5748
|
+
case ":general._embedding": {
|
|
5749
|
+
return (() => { const _io0 = input => Object.keys(input).every(key => {
|
|
5750
|
+
const value = input[key];
|
|
5751
|
+
if (undefined === value)
|
|
5752
|
+
return true;
|
|
5753
|
+
return null === value || "string" === typeof value;
|
|
5754
|
+
}); const _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
5755
|
+
const value = input[key];
|
|
5756
|
+
if (undefined === value)
|
|
5757
|
+
return true;
|
|
5758
|
+
return null === value || "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
5759
|
+
method: "typia.assertGuard",
|
|
5760
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5761
|
+
expected: "(null | string)",
|
|
5762
|
+
value: value
|
|
5763
|
+
}, _errorFactory);
|
|
5764
|
+
}); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
5765
|
+
if (false === __is(input)) {
|
|
5766
|
+
_errorFactory = errorFactory;
|
|
5767
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5768
|
+
method: "typia.assertGuard",
|
|
5769
|
+
path: _path + "",
|
|
5770
|
+
expected: "GeneralEmbeddingRecord",
|
|
5771
|
+
value: input
|
|
5772
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
5773
|
+
method: "typia.assertGuard",
|
|
5774
|
+
path: _path + "",
|
|
5775
|
+
expected: "GeneralEmbeddingRecord",
|
|
5776
|
+
value: input
|
|
5777
|
+
}, _errorFactory))(input, "$input", true);
|
|
5778
|
+
}
|
|
5779
|
+
}; })()(input);
|
|
5780
|
+
}
|
|
5642
5781
|
case ":media.source": {
|
|
5643
5782
|
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
5783
|
const value = input[key];
|
|
@@ -15918,6 +16057,39 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
15918
16057
|
}
|
|
15919
16058
|
}; })()(input);
|
|
15920
16059
|
}
|
|
16060
|
+
case ":username?": {
|
|
16061
|
+
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, {
|
|
16062
|
+
method: "typia.assertGuard",
|
|
16063
|
+
path: _path + ".value",
|
|
16064
|
+
expected: "(Array<string> | undefined)",
|
|
16065
|
+
value: input.value
|
|
16066
|
+
}, _errorFactory)) && input.value.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16067
|
+
method: "typia.assertGuard",
|
|
16068
|
+
path: _path + ".value[" + _index2 + "]",
|
|
16069
|
+
expected: "string",
|
|
16070
|
+
value: elem
|
|
16071
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16072
|
+
method: "typia.assertGuard",
|
|
16073
|
+
path: _path + ".value",
|
|
16074
|
+
expected: "(Array<string> | undefined)",
|
|
16075
|
+
value: input.value
|
|
16076
|
+
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
16077
|
+
if (false === __is(input)) {
|
|
16078
|
+
_errorFactory = errorFactory;
|
|
16079
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
16080
|
+
method: "typia.assertGuard",
|
|
16081
|
+
path: _path + "",
|
|
16082
|
+
expected: "UsernameDomainRecord",
|
|
16083
|
+
value: input
|
|
16084
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
16085
|
+
method: "typia.assertGuard",
|
|
16086
|
+
path: _path + "",
|
|
16087
|
+
expected: "UsernameDomainRecord",
|
|
16088
|
+
value: input
|
|
16089
|
+
}, _errorFactory))(input, "$input", true);
|
|
16090
|
+
}
|
|
16091
|
+
}; })()(input);
|
|
16092
|
+
}
|
|
15921
16093
|
default: throw new Error("Unrecognized domain \"" + domain + "\"");
|
|
15922
16094
|
}
|
|
15923
16095
|
}
|