@nxtedition/types 23.0.52 → 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.
@@ -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[];
@@ -3372,6 +3385,14 @@ declare interface UserDomainUnseenNotificationsRecord {
3372
3385
  latestReceived?: string;
3373
3386
  }
3374
3387
 
3388
+ declare interface UsernameDomainRecord {
3389
+ value?: string[];
3390
+ }
3391
+
3392
+ declare interface UsernameDomainRecords {
3393
+ ":username?": UsernameDomainRecord;
3394
+ }
3395
+
3375
3396
  declare interface UserNotificationAddedToSearch extends UserNotificationCommon {
3376
3397
  type: "added-to-search";
3377
3398
  payload: {
@@ -0,0 +1,7 @@
1
+ export interface AuthDomainRecords {
2
+ ":auth": AuthDomainRecord;
3
+ }
4
+ export interface AuthDomainRecord {
5
+ /** hash of a user's password, or null if not set */
6
+ hash?: string | null;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -4,6 +4,10 @@ export interface ContactDomainRecords {
4
4
  export interface ContactRecord {
5
5
  title?: string;
6
6
  email?: string;
7
+ phone?: string;
7
8
  firstName?: string;
8
9
  lastName?: string;
10
+ cell?: string;
11
+ company?: string;
12
+ address?: string;
9
13
  }
@@ -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 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 {
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,6 @@
1
+ export interface UsernameDomainRecords {
2
+ ":username?": UsernameDomainRecord;
3
+ }
4
+ export interface UsernameDomainRecord {
5
+ value?: string[];
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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;
@@ -16014,6 +16057,39 @@ function _assertGuardDomainRecord(domain, input) {
16014
16057
  }
16015
16058
  }; })()(input);
16016
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
+ }
16017
16093
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
16018
16094
  }
16019
16095
  }
@@ -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;
@@ -16148,6 +16192,40 @@ function _assertDomainRecord(domain, input) {
16148
16192
  return input;
16149
16193
  }; })()(input);
16150
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
+ }
16151
16229
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
16152
16230
  }
16153
16231
  }
@@ -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);
@@ -972,6 +975,9 @@ function _isDomainRecord(domain, input) {
972
975
  case ":user.unseenNotifications?": {
973
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);
974
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
+ }
975
981
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
976
982
  }
977
983
  }
@@ -2372,6 +2372,37 @@ function _schemasDomainRecord(domain) {
2372
2372
  ]
2373
2373
  };
2374
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
+ }
2375
2406
  case ":bundle": {
2376
2407
  return {
2377
2408
  version: "3.1",
@@ -3466,11 +3497,23 @@ function _schemasDomainRecord(domain) {
3466
3497
  email: {
3467
3498
  type: "string"
3468
3499
  },
3500
+ phone: {
3501
+ type: "string"
3502
+ },
3469
3503
  firstName: {
3470
3504
  type: "string"
3471
3505
  },
3472
3506
  lastName: {
3473
3507
  type: "string"
3508
+ },
3509
+ cell: {
3510
+ type: "string"
3511
+ },
3512
+ company: {
3513
+ type: "string"
3514
+ },
3515
+ address: {
3516
+ type: "string"
3474
3517
  }
3475
3518
  },
3476
3519
  required: []
@@ -12949,6 +12992,32 @@ function _schemasDomainRecord(domain) {
12949
12992
  ]
12950
12993
  };
12951
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
+ }
12952
13021
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
12953
13022
  }
12954
13023
  }
@@ -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 ? (() => {
@@ -1837,6 +1840,9 @@ function _stringifyDomainRecord(domain, input) {
1837
1840
  case ":user.unseenNotifications?": {
1838
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);
1839
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
+ }
1840
1846
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
1841
1847
  }
1842
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", ":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?"]);
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) {
@@ -4910,6 +4910,63 @@ function _validateEqualsDomainRecord(domain, input) {
4910
4910
  };
4911
4911
  }; })()(input);
4912
4912
  }
4913
+ case ":auth": {
4914
+ return (() => { const _io0 = (input, _exceptionable = true) => (null === input.hash || undefined === input.hash || "string" === typeof input.hash) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
4915
+ if (["hash"].some(prop => key === prop))
4916
+ return true;
4917
+ const value = input[key];
4918
+ if (undefined === value)
4919
+ return true;
4920
+ return false;
4921
+ })); const _vo0 = (input, _path, _exceptionable = true) => [null === input.hash || undefined === input.hash || "string" === typeof input.hash || _report(_exceptionable, {
4922
+ path: _path + ".hash",
4923
+ expected: "(null | string | undefined)",
4924
+ value: input.hash
4925
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
4926
+ if (["hash"].some(prop => key === prop))
4927
+ return true;
4928
+ const value = input[key];
4929
+ if (undefined === value)
4930
+ return true;
4931
+ return _report(_exceptionable, {
4932
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
4933
+ expected: "undefined",
4934
+ value: value,
4935
+ description: [
4936
+ `The property \`${key}\` is not defined in the object type.`,
4937
+ "",
4938
+ "Please remove the property next time."
4939
+ ].join("\n")
4940
+ });
4941
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
4942
+ if (false === __is(input)) {
4943
+ errors = [];
4944
+ _report = __typia_transform__validateReport._validateReport(errors);
4945
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
4946
+ path: _path + "",
4947
+ expected: "AuthDomainRecord",
4948
+ value: input
4949
+ })) && _vo0(input, _path + "", true) || _report(true, {
4950
+ path: _path + "",
4951
+ expected: "AuthDomainRecord",
4952
+ value: input
4953
+ }))(input, "$input", true);
4954
+ const success = 0 === errors.length;
4955
+ return success ? {
4956
+ success,
4957
+ data: input
4958
+ } : {
4959
+ success,
4960
+ errors,
4961
+ data: input
4962
+ };
4963
+ }
4964
+ return {
4965
+ success: true,
4966
+ data: input
4967
+ };
4968
+ }; })()(input);
4969
+ }
4913
4970
  case ":bundle": {
4914
4971
  return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && _io1(input.files, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
4915
4972
  if (["user", "description", "files"].some(prop => key === prop))
@@ -6760,8 +6817,8 @@ function _validateEqualsDomainRecord(domain, input) {
6760
6817
  }; })()(input);
6761
6818
  }
6762
6819
  case ":contact": {
6763
- return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6764
- if (["title", "email", "firstName", "lastName"].some(prop => key === prop))
6820
+ return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.phone || "string" === typeof input.phone) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName) && (undefined === input.cell || "string" === typeof input.cell) && (undefined === input.company || "string" === typeof input.company) && (undefined === input.address || "string" === typeof input.address) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6821
+ if (["title", "email", "phone", "firstName", "lastName", "cell", "company", "address"].some(prop => key === prop))
6765
6822
  return true;
6766
6823
  const value = input[key];
6767
6824
  if (undefined === value)
@@ -6775,6 +6832,10 @@ function _validateEqualsDomainRecord(domain, input) {
6775
6832
  path: _path + ".email",
6776
6833
  expected: "(string | undefined)",
6777
6834
  value: input.email
6835
+ }), undefined === input.phone || "string" === typeof input.phone || _report(_exceptionable, {
6836
+ path: _path + ".phone",
6837
+ expected: "(string | undefined)",
6838
+ value: input.phone
6778
6839
  }), undefined === input.firstName || "string" === typeof input.firstName || _report(_exceptionable, {
6779
6840
  path: _path + ".firstName",
6780
6841
  expected: "(string | undefined)",
@@ -6783,8 +6844,20 @@ function _validateEqualsDomainRecord(domain, input) {
6783
6844
  path: _path + ".lastName",
6784
6845
  expected: "(string | undefined)",
6785
6846
  value: input.lastName
6847
+ }), undefined === input.cell || "string" === typeof input.cell || _report(_exceptionable, {
6848
+ path: _path + ".cell",
6849
+ expected: "(string | undefined)",
6850
+ value: input.cell
6851
+ }), undefined === input.company || "string" === typeof input.company || _report(_exceptionable, {
6852
+ path: _path + ".company",
6853
+ expected: "(string | undefined)",
6854
+ value: input.company
6855
+ }), undefined === input.address || "string" === typeof input.address || _report(_exceptionable, {
6856
+ path: _path + ".address",
6857
+ expected: "(string | undefined)",
6858
+ value: input.address
6786
6859
  }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
6787
- if (["title", "email", "firstName", "lastName"].some(prop => key === prop))
6860
+ if (["title", "email", "phone", "firstName", "lastName", "cell", "company", "address"].some(prop => key === prop))
6788
6861
  return true;
6789
6862
  const value = input[key];
6790
6863
  if (undefined === value)
@@ -24635,6 +24708,71 @@ function _validateEqualsDomainRecord(domain, input) {
24635
24708
  };
24636
24709
  }; })()(input);
24637
24710
  }
24711
+ case ":username?": {
24712
+ return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.value || Array.isArray(input.value) && input.value.every((elem, _index1) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
24713
+ if (["value"].some(prop => key === prop))
24714
+ return true;
24715
+ const value = input[key];
24716
+ if (undefined === value)
24717
+ return true;
24718
+ return false;
24719
+ })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.value || (Array.isArray(input.value) || _report(_exceptionable, {
24720
+ path: _path + ".value",
24721
+ expected: "(Array<string> | undefined)",
24722
+ value: input.value
24723
+ })) && input.value.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
24724
+ path: _path + ".value[" + _index2 + "]",
24725
+ expected: "string",
24726
+ value: elem
24727
+ })).every(flag => flag) || _report(_exceptionable, {
24728
+ path: _path + ".value",
24729
+ expected: "(Array<string> | undefined)",
24730
+ value: input.value
24731
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
24732
+ if (["value"].some(prop => key === prop))
24733
+ return true;
24734
+ const value = input[key];
24735
+ if (undefined === value)
24736
+ return true;
24737
+ return _report(_exceptionable, {
24738
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
24739
+ expected: "undefined",
24740
+ value: value,
24741
+ description: [
24742
+ `The property \`${key}\` is not defined in the object type.`,
24743
+ "",
24744
+ "Please remove the property next time."
24745
+ ].join("\n")
24746
+ });
24747
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
24748
+ if (false === __is(input)) {
24749
+ errors = [];
24750
+ _report = __typia_transform__validateReport._validateReport(errors);
24751
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
24752
+ path: _path + "",
24753
+ expected: "UsernameDomainRecord",
24754
+ value: input
24755
+ })) && _vo0(input, _path + "", true) || _report(true, {
24756
+ path: _path + "",
24757
+ expected: "UsernameDomainRecord",
24758
+ value: input
24759
+ }))(input, "$input", true);
24760
+ const success = 0 === errors.length;
24761
+ return success ? {
24762
+ success,
24763
+ data: input
24764
+ } : {
24765
+ success,
24766
+ errors,
24767
+ data: input
24768
+ };
24769
+ }
24770
+ return {
24771
+ success: true,
24772
+ data: input
24773
+ };
24774
+ }; })()(input);
24775
+ }
24638
24776
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
24639
24777
  }
24640
24778
  }
@@ -2978,6 +2978,40 @@ function _validateDomainRecord(domain, input) {
2978
2978
  };
2979
2979
  }; })()(input);
2980
2980
  }
2981
+ case ":auth": {
2982
+ return (() => { const _io0 = input => null === input.hash || undefined === input.hash || "string" === typeof input.hash; const _vo0 = (input, _path, _exceptionable = true) => [null === input.hash || undefined === input.hash || "string" === typeof input.hash || _report(_exceptionable, {
2983
+ path: _path + ".hash",
2984
+ expected: "(null | string | undefined)",
2985
+ value: input.hash
2986
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
2987
+ if (false === __is(input)) {
2988
+ errors = [];
2989
+ _report = __typia_transform__validateReport._validateReport(errors);
2990
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
2991
+ path: _path + "",
2992
+ expected: "AuthDomainRecord",
2993
+ value: input
2994
+ })) && _vo0(input, _path + "", true) || _report(true, {
2995
+ path: _path + "",
2996
+ expected: "AuthDomainRecord",
2997
+ value: input
2998
+ }))(input, "$input", true);
2999
+ const success = 0 === errors.length;
3000
+ return success ? {
3001
+ success,
3002
+ data: input
3003
+ } : {
3004
+ success,
3005
+ errors,
3006
+ data: input
3007
+ };
3008
+ }
3009
+ return {
3010
+ success: true,
3011
+ data: input
3012
+ };
3013
+ }; })()(input);
3014
+ }
2981
3015
  case ":bundle": {
2982
3016
  return (() => { const _io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && _io1(input.files)); const _io1 = input => Object.keys(input).every(key => {
2983
3017
  const value = input[key];
@@ -4165,7 +4199,7 @@ function _validateDomainRecord(domain, input) {
4165
4199
  }; })()(input);
4166
4200
  }
4167
4201
  case ":contact": {
4168
- return (() => { const _io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
4202
+ return (() => { const _io0 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.phone || "string" === typeof input.phone) && (undefined === input.firstName || "string" === typeof input.firstName) && (undefined === input.lastName || "string" === typeof input.lastName) && (undefined === input.cell || "string" === typeof input.cell) && (undefined === input.company || "string" === typeof input.company) && (undefined === input.address || "string" === typeof input.address); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
4169
4203
  path: _path + ".title",
4170
4204
  expected: "(string | undefined)",
4171
4205
  value: input.title
@@ -4173,6 +4207,10 @@ function _validateDomainRecord(domain, input) {
4173
4207
  path: _path + ".email",
4174
4208
  expected: "(string | undefined)",
4175
4209
  value: input.email
4210
+ }), undefined === input.phone || "string" === typeof input.phone || _report(_exceptionable, {
4211
+ path: _path + ".phone",
4212
+ expected: "(string | undefined)",
4213
+ value: input.phone
4176
4214
  }), undefined === input.firstName || "string" === typeof input.firstName || _report(_exceptionable, {
4177
4215
  path: _path + ".firstName",
4178
4216
  expected: "(string | undefined)",
@@ -4181,6 +4219,18 @@ function _validateDomainRecord(domain, input) {
4181
4219
  path: _path + ".lastName",
4182
4220
  expected: "(string | undefined)",
4183
4221
  value: input.lastName
4222
+ }), undefined === input.cell || "string" === typeof input.cell || _report(_exceptionable, {
4223
+ path: _path + ".cell",
4224
+ expected: "(string | undefined)",
4225
+ value: input.cell
4226
+ }), undefined === input.company || "string" === typeof input.company || _report(_exceptionable, {
4227
+ path: _path + ".company",
4228
+ expected: "(string | undefined)",
4229
+ value: input.company
4230
+ }), undefined === input.address || "string" === typeof input.address || _report(_exceptionable, {
4231
+ path: _path + ".address",
4232
+ expected: "(string | undefined)",
4233
+ value: input.address
4184
4234
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
4185
4235
  if (false === __is(input)) {
4186
4236
  errors = [];
@@ -15123,6 +15173,48 @@ function _validateDomainRecord(domain, input) {
15123
15173
  };
15124
15174
  }; })()(input);
15125
15175
  }
15176
+ case ":username?": {
15177
+ return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.value || (Array.isArray(input.value) || _report(_exceptionable, {
15178
+ path: _path + ".value",
15179
+ expected: "(Array<string> | undefined)",
15180
+ value: input.value
15181
+ })) && input.value.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
15182
+ path: _path + ".value[" + _index2 + "]",
15183
+ expected: "string",
15184
+ value: elem
15185
+ })).every(flag => flag) || _report(_exceptionable, {
15186
+ path: _path + ".value",
15187
+ expected: "(Array<string> | undefined)",
15188
+ value: input.value
15189
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let errors; let _report; return input => {
15190
+ if (false === __is(input)) {
15191
+ errors = [];
15192
+ _report = __typia_transform__validateReport._validateReport(errors);
15193
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
15194
+ path: _path + "",
15195
+ expected: "UsernameDomainRecord",
15196
+ value: input
15197
+ })) && _vo0(input, _path + "", true) || _report(true, {
15198
+ path: _path + "",
15199
+ expected: "UsernameDomainRecord",
15200
+ value: input
15201
+ }))(input, "$input", true);
15202
+ const success = 0 === errors.length;
15203
+ return success ? {
15204
+ success,
15205
+ data: input
15206
+ } : {
15207
+ success,
15208
+ errors,
15209
+ data: input
15210
+ };
15211
+ }
15212
+ return {
15213
+ success: true,
15214
+ data: input
15215
+ };
15216
+ }; })()(input);
15217
+ }
15126
15218
  default: throw new Error("Unrecognized domain \"" + domain + "\"");
15127
15219
  }
15128
15220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/types",
3
- "version": "23.0.52",
3
+ "version": "23.0.53",
4
4
  "description": "TypeScript types to be shared between nxtedition packages.",
5
5
  "license": "MIT",
6
6
  "type": "module",