@nxtedition/types 1.6.14 → 23.0.1

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.
@@ -960,3 +960,1503 @@ export const assertStringifyMediaRenderRecordValue = (input, errorFactory) => {
960
960
  const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? `[${input.children.map(elem => $so0(elem)).join(",")}]` : undefined}`}`)}}`;
961
961
  return $so0(input);
962
962
  }; return stringify(assert(input, errorFactory)); };
963
+ export const isMediaTranscriptChangesRecord = input => {
964
+ const $io0 = input => Object.keys(input).every(key => {
965
+ const value = input[key];
966
+ if (undefined === value)
967
+ return true;
968
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
969
+ });
970
+ const $io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
971
+ const $io2 = input => "add" === input.op && "string" === typeof input.path && true;
972
+ const $io3 = input => "remove" === input.op && "string" === typeof input.path;
973
+ const $io4 = input => "replace" === input.op && "string" === typeof input.path && true;
974
+ const $io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
975
+ const $io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
976
+ const $io7 = input => "test" === input.op && "string" === typeof input.path && true;
977
+ const $iu0 = input => (() => {
978
+ if ("add" === input.op)
979
+ return $io2(input);
980
+ else if ("remove" === input.op)
981
+ return $io3(input);
982
+ else if ("test" === input.op)
983
+ return $io7(input);
984
+ else if ("replace" === input.op)
985
+ return $io4(input);
986
+ else if ("copy" === input.op)
987
+ return $io6(input);
988
+ else if ("move" === input.op)
989
+ return $io5(input);
990
+ else
991
+ return false;
992
+ })();
993
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
994
+ };
995
+ export const assertMediaTranscriptChangesRecord = (input, errorFactory) => {
996
+ const __is = input => {
997
+ const $io0 = input => Object.keys(input).every(key => {
998
+ const value = input[key];
999
+ if (undefined === value)
1000
+ return true;
1001
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
1002
+ });
1003
+ const $io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1004
+ const $io2 = input => "add" === input.op && "string" === typeof input.path && true;
1005
+ const $io3 = input => "remove" === input.op && "string" === typeof input.path;
1006
+ const $io4 = input => "replace" === input.op && "string" === typeof input.path && true;
1007
+ const $io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1008
+ const $io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1009
+ const $io7 = input => "test" === input.op && "string" === typeof input.path && true;
1010
+ const $iu0 = input => (() => {
1011
+ if ("add" === input.op)
1012
+ return $io2(input);
1013
+ else if ("remove" === input.op)
1014
+ return $io3(input);
1015
+ else if ("test" === input.op)
1016
+ return $io7(input);
1017
+ else if ("replace" === input.op)
1018
+ return $io4(input);
1019
+ else if ("copy" === input.op)
1020
+ return $io6(input);
1021
+ else if ("move" === input.op)
1022
+ return $io5(input);
1023
+ else
1024
+ return false;
1025
+ })();
1026
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1027
+ };
1028
+ if (false === __is(input))
1029
+ ((input, _path, _exceptionable = true) => {
1030
+ const $guard = __typia.createAssert.guard;
1031
+ const $join = __typia.createAssert.join;
1032
+ const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1033
+ const value = input[key];
1034
+ if (undefined === value)
1035
+ return true;
1036
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1037
+ path: _path + $join(key),
1038
+ expected: "MediaTranscriptChangesRecordValue",
1039
+ value: value
1040
+ }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1041
+ path: _path + $join(key),
1042
+ expected: "MediaTranscriptChangesRecordValue",
1043
+ value: value
1044
+ }, errorFactory);
1045
+ });
1046
+ const $ao1 = (input, _path, _exceptionable = true) => undefined === input.patch || (Array.isArray(input.patch) || $guard(_exceptionable, {
1047
+ path: _path + ".patch",
1048
+ expected: "(Array<Operation> | undefined)",
1049
+ value: input.patch
1050
+ }, errorFactory)) && input.patch.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1051
+ path: _path + ".patch[" + _index1 + "]",
1052
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1053
+ value: elem
1054
+ }, errorFactory)) && $au0(elem, _path + ".patch[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1055
+ path: _path + ".patch[" + _index1 + "]",
1056
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1057
+ value: elem
1058
+ }, errorFactory)) || $guard(_exceptionable, {
1059
+ path: _path + ".patch",
1060
+ expected: "(Array<Operation> | undefined)",
1061
+ value: input.patch
1062
+ }, errorFactory);
1063
+ const $ao2 = (input, _path, _exceptionable = true) => ("add" === input.op || $guard(_exceptionable, {
1064
+ path: _path + ".op",
1065
+ expected: "\"add\"",
1066
+ value: input.op
1067
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1068
+ path: _path + ".path",
1069
+ expected: "string",
1070
+ value: input.path
1071
+ }, errorFactory)) && true;
1072
+ const $ao3 = (input, _path, _exceptionable = true) => ("remove" === input.op || $guard(_exceptionable, {
1073
+ path: _path + ".op",
1074
+ expected: "\"remove\"",
1075
+ value: input.op
1076
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1077
+ path: _path + ".path",
1078
+ expected: "string",
1079
+ value: input.path
1080
+ }, errorFactory));
1081
+ const $ao4 = (input, _path, _exceptionable = true) => ("replace" === input.op || $guard(_exceptionable, {
1082
+ path: _path + ".op",
1083
+ expected: "\"replace\"",
1084
+ value: input.op
1085
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1086
+ path: _path + ".path",
1087
+ expected: "string",
1088
+ value: input.path
1089
+ }, errorFactory)) && true;
1090
+ const $ao5 = (input, _path, _exceptionable = true) => ("move" === input.op || $guard(_exceptionable, {
1091
+ path: _path + ".op",
1092
+ expected: "\"move\"",
1093
+ value: input.op
1094
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1095
+ path: _path + ".from",
1096
+ expected: "string",
1097
+ value: input.from
1098
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1099
+ path: _path + ".path",
1100
+ expected: "string",
1101
+ value: input.path
1102
+ }, errorFactory));
1103
+ const $ao6 = (input, _path, _exceptionable = true) => ("copy" === input.op || $guard(_exceptionable, {
1104
+ path: _path + ".op",
1105
+ expected: "\"copy\"",
1106
+ value: input.op
1107
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1108
+ path: _path + ".from",
1109
+ expected: "string",
1110
+ value: input.from
1111
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1112
+ path: _path + ".path",
1113
+ expected: "string",
1114
+ value: input.path
1115
+ }, errorFactory));
1116
+ const $ao7 = (input, _path, _exceptionable = true) => ("test" === input.op || $guard(_exceptionable, {
1117
+ path: _path + ".op",
1118
+ expected: "\"test\"",
1119
+ value: input.op
1120
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1121
+ path: _path + ".path",
1122
+ expected: "string",
1123
+ value: input.path
1124
+ }, errorFactory)) && true;
1125
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
1126
+ if ("add" === input.op)
1127
+ return $ao2(input, _path, true && _exceptionable);
1128
+ else if ("remove" === input.op)
1129
+ return $ao3(input, _path, true && _exceptionable);
1130
+ else if ("test" === input.op)
1131
+ return $ao7(input, _path, true && _exceptionable);
1132
+ else if ("replace" === input.op)
1133
+ return $ao4(input, _path, true && _exceptionable);
1134
+ else if ("copy" === input.op)
1135
+ return $ao6(input, _path, true && _exceptionable);
1136
+ else if ("move" === input.op)
1137
+ return $ao5(input, _path, true && _exceptionable);
1138
+ else
1139
+ return $guard(_exceptionable, {
1140
+ path: _path,
1141
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
1142
+ value: input
1143
+ }, errorFactory);
1144
+ })();
1145
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1146
+ path: _path + "",
1147
+ expected: "MediaTranscriptChangesRecord",
1148
+ value: input
1149
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1150
+ path: _path + "",
1151
+ expected: "MediaTranscriptChangesRecord",
1152
+ value: input
1153
+ }, errorFactory);
1154
+ })(input, "$input", true);
1155
+ return input;
1156
+ };
1157
+ export const randomMediaTranscriptChangesRecord = generator => {
1158
+ const $generator = __typia.createRandom.generator;
1159
+ const $pick = __typia.createRandom.pick;
1160
+ const $ro0 = (_recursive = false, _depth = 0) => {
1161
+ const output = {};
1162
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro1(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
1163
+ return output;
1164
+ };
1165
+ const $ro1 = (_recursive = false, _depth = 0) => ({
1166
+ patch: $pick([
1167
+ () => undefined,
1168
+ () => (generator?.array ?? $generator.array)(() => $pick([
1169
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth),
1170
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth),
1171
+ () => $ro7(_recursive, _recursive ? 1 + _depth : _depth),
1172
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth),
1173
+ () => $ro6(_recursive, _recursive ? 1 + _depth : _depth),
1174
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
1175
+ ])())
1176
+ ])()
1177
+ });
1178
+ const $ro2 = (_recursive = false, _depth = 0) => ({
1179
+ op: "add",
1180
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1181
+ value: "any type used..."
1182
+ });
1183
+ const $ro3 = (_recursive = false, _depth = 0) => ({
1184
+ op: "remove",
1185
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1186
+ });
1187
+ const $ro4 = (_recursive = false, _depth = 0) => ({
1188
+ op: "replace",
1189
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1190
+ value: "any type used..."
1191
+ });
1192
+ const $ro5 = (_recursive = false, _depth = 0) => ({
1193
+ op: "move",
1194
+ from: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1195
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1196
+ });
1197
+ const $ro6 = (_recursive = false, _depth = 0) => ({
1198
+ op: "copy",
1199
+ from: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1200
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1201
+ });
1202
+ const $ro7 = (_recursive = false, _depth = 0) => ({
1203
+ op: "test",
1204
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1205
+ value: "any type used..."
1206
+ });
1207
+ return $ro0();
1208
+ };
1209
+ export const assertGuardMediaTranscriptChangesRecord = (input, errorFactory) => {
1210
+ const __is = input => {
1211
+ const $io0 = input => Object.keys(input).every(key => {
1212
+ const value = input[key];
1213
+ if (undefined === value)
1214
+ return true;
1215
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
1216
+ });
1217
+ const $io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1218
+ const $io2 = input => "add" === input.op && "string" === typeof input.path && true;
1219
+ const $io3 = input => "remove" === input.op && "string" === typeof input.path;
1220
+ const $io4 = input => "replace" === input.op && "string" === typeof input.path && true;
1221
+ const $io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1222
+ const $io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1223
+ const $io7 = input => "test" === input.op && "string" === typeof input.path && true;
1224
+ const $iu0 = input => (() => {
1225
+ if ("add" === input.op)
1226
+ return $io2(input);
1227
+ else if ("remove" === input.op)
1228
+ return $io3(input);
1229
+ else if ("test" === input.op)
1230
+ return $io7(input);
1231
+ else if ("replace" === input.op)
1232
+ return $io4(input);
1233
+ else if ("copy" === input.op)
1234
+ return $io6(input);
1235
+ else if ("move" === input.op)
1236
+ return $io5(input);
1237
+ else
1238
+ return false;
1239
+ })();
1240
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1241
+ };
1242
+ if (false === __is(input))
1243
+ ((input, _path, _exceptionable = true) => {
1244
+ const $guard = __typia.createAssertGuard.guard;
1245
+ const $join = __typia.createAssertGuard.join;
1246
+ const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1247
+ const value = input[key];
1248
+ if (undefined === value)
1249
+ return true;
1250
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1251
+ path: _path + $join(key),
1252
+ expected: "MediaTranscriptChangesRecordValue",
1253
+ value: value
1254
+ }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1255
+ path: _path + $join(key),
1256
+ expected: "MediaTranscriptChangesRecordValue",
1257
+ value: value
1258
+ }, errorFactory);
1259
+ });
1260
+ const $ao1 = (input, _path, _exceptionable = true) => undefined === input.patch || (Array.isArray(input.patch) || $guard(_exceptionable, {
1261
+ path: _path + ".patch",
1262
+ expected: "(Array<Operation> | undefined)",
1263
+ value: input.patch
1264
+ }, errorFactory)) && input.patch.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1265
+ path: _path + ".patch[" + _index1 + "]",
1266
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1267
+ value: elem
1268
+ }, errorFactory)) && $au0(elem, _path + ".patch[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1269
+ path: _path + ".patch[" + _index1 + "]",
1270
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1271
+ value: elem
1272
+ }, errorFactory)) || $guard(_exceptionable, {
1273
+ path: _path + ".patch",
1274
+ expected: "(Array<Operation> | undefined)",
1275
+ value: input.patch
1276
+ }, errorFactory);
1277
+ const $ao2 = (input, _path, _exceptionable = true) => ("add" === input.op || $guard(_exceptionable, {
1278
+ path: _path + ".op",
1279
+ expected: "\"add\"",
1280
+ value: input.op
1281
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1282
+ path: _path + ".path",
1283
+ expected: "string",
1284
+ value: input.path
1285
+ }, errorFactory)) && true;
1286
+ const $ao3 = (input, _path, _exceptionable = true) => ("remove" === input.op || $guard(_exceptionable, {
1287
+ path: _path + ".op",
1288
+ expected: "\"remove\"",
1289
+ value: input.op
1290
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1291
+ path: _path + ".path",
1292
+ expected: "string",
1293
+ value: input.path
1294
+ }, errorFactory));
1295
+ const $ao4 = (input, _path, _exceptionable = true) => ("replace" === input.op || $guard(_exceptionable, {
1296
+ path: _path + ".op",
1297
+ expected: "\"replace\"",
1298
+ value: input.op
1299
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1300
+ path: _path + ".path",
1301
+ expected: "string",
1302
+ value: input.path
1303
+ }, errorFactory)) && true;
1304
+ const $ao5 = (input, _path, _exceptionable = true) => ("move" === input.op || $guard(_exceptionable, {
1305
+ path: _path + ".op",
1306
+ expected: "\"move\"",
1307
+ value: input.op
1308
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1309
+ path: _path + ".from",
1310
+ expected: "string",
1311
+ value: input.from
1312
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1313
+ path: _path + ".path",
1314
+ expected: "string",
1315
+ value: input.path
1316
+ }, errorFactory));
1317
+ const $ao6 = (input, _path, _exceptionable = true) => ("copy" === input.op || $guard(_exceptionable, {
1318
+ path: _path + ".op",
1319
+ expected: "\"copy\"",
1320
+ value: input.op
1321
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1322
+ path: _path + ".from",
1323
+ expected: "string",
1324
+ value: input.from
1325
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1326
+ path: _path + ".path",
1327
+ expected: "string",
1328
+ value: input.path
1329
+ }, errorFactory));
1330
+ const $ao7 = (input, _path, _exceptionable = true) => ("test" === input.op || $guard(_exceptionable, {
1331
+ path: _path + ".op",
1332
+ expected: "\"test\"",
1333
+ value: input.op
1334
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1335
+ path: _path + ".path",
1336
+ expected: "string",
1337
+ value: input.path
1338
+ }, errorFactory)) && true;
1339
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
1340
+ if ("add" === input.op)
1341
+ return $ao2(input, _path, true && _exceptionable);
1342
+ else if ("remove" === input.op)
1343
+ return $ao3(input, _path, true && _exceptionable);
1344
+ else if ("test" === input.op)
1345
+ return $ao7(input, _path, true && _exceptionable);
1346
+ else if ("replace" === input.op)
1347
+ return $ao4(input, _path, true && _exceptionable);
1348
+ else if ("copy" === input.op)
1349
+ return $ao6(input, _path, true && _exceptionable);
1350
+ else if ("move" === input.op)
1351
+ return $ao5(input, _path, true && _exceptionable);
1352
+ else
1353
+ return $guard(_exceptionable, {
1354
+ path: _path,
1355
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
1356
+ value: input
1357
+ }, errorFactory);
1358
+ })();
1359
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1360
+ path: _path + "",
1361
+ expected: "MediaTranscriptChangesRecord",
1362
+ value: input
1363
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1364
+ path: _path + "",
1365
+ expected: "MediaTranscriptChangesRecord",
1366
+ value: input
1367
+ }, errorFactory);
1368
+ })(input, "$input", true);
1369
+ };
1370
+ export const stringifyMediaTranscriptChangesRecord = input => {
1371
+ const $io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1372
+ const $io2 = input => "add" === input.op && "string" === typeof input.path && true;
1373
+ const $io3 = input => "remove" === input.op && "string" === typeof input.path;
1374
+ const $io4 = input => "replace" === input.op && "string" === typeof input.path && true;
1375
+ const $io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1376
+ const $io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1377
+ const $io7 = input => "test" === input.op && "string" === typeof input.path && true;
1378
+ const $iu0 = input => (() => {
1379
+ if ("add" === input.op)
1380
+ return $io2(input);
1381
+ else if ("remove" === input.op)
1382
+ return $io3(input);
1383
+ else if ("test" === input.op)
1384
+ return $io7(input);
1385
+ else if ("replace" === input.op)
1386
+ return $io4(input);
1387
+ else if ("copy" === input.op)
1388
+ return $io6(input);
1389
+ else if ("move" === input.op)
1390
+ return $io5(input);
1391
+ else
1392
+ return false;
1393
+ })();
1394
+ const $tail = __typia.json.createStringify.tail;
1395
+ const $string = __typia.json.createStringify.string;
1396
+ const $throws = __typia.json.createStringify.throws;
1397
+ const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1398
+ return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
1399
+ const $so1 = input => `{${$tail(`${undefined === input.patch ? "" : `"patch":${undefined !== input.patch ? `[${input.patch.map(elem => $su0(elem)).join(",")}]` : undefined}`}`)}}`;
1400
+ const $so2 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
1401
+ if ("string" === typeof input.op)
1402
+ return $string(input.op);
1403
+ if ("string" === typeof input.op)
1404
+ return "\"" + input.op + "\"";
1405
+ $throws({
1406
+ expected: "\"add\"",
1407
+ value: input.op
1408
+ });
1409
+ })()},"path":${$string(input.path)}}`;
1410
+ const $so3 = input => `{"op":${(() => {
1411
+ if ("string" === typeof input.op)
1412
+ return $string(input.op);
1413
+ if ("string" === typeof input.op)
1414
+ return "\"" + input.op + "\"";
1415
+ $throws({
1416
+ expected: "\"remove\"",
1417
+ value: input.op
1418
+ });
1419
+ })()},"path":${$string(input.path)}}`;
1420
+ const $so4 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
1421
+ if ("string" === typeof input.op)
1422
+ return $string(input.op);
1423
+ if ("string" === typeof input.op)
1424
+ return "\"" + input.op + "\"";
1425
+ $throws({
1426
+ expected: "\"replace\"",
1427
+ value: input.op
1428
+ });
1429
+ })()},"path":${$string(input.path)}}`;
1430
+ const $so5 = input => `{"op":${(() => {
1431
+ if ("string" === typeof input.op)
1432
+ return $string(input.op);
1433
+ if ("string" === typeof input.op)
1434
+ return "\"" + input.op + "\"";
1435
+ $throws({
1436
+ expected: "\"move\"",
1437
+ value: input.op
1438
+ });
1439
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
1440
+ const $so6 = input => `{"op":${(() => {
1441
+ if ("string" === typeof input.op)
1442
+ return $string(input.op);
1443
+ if ("string" === typeof input.op)
1444
+ return "\"" + input.op + "\"";
1445
+ $throws({
1446
+ expected: "\"copy\"",
1447
+ value: input.op
1448
+ });
1449
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
1450
+ const $so7 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
1451
+ if ("string" === typeof input.op)
1452
+ return $string(input.op);
1453
+ if ("string" === typeof input.op)
1454
+ return "\"" + input.op + "\"";
1455
+ $throws({
1456
+ expected: "\"test\"",
1457
+ value: input.op
1458
+ });
1459
+ })()},"path":${$string(input.path)}}`;
1460
+ const $su0 = input => (() => {
1461
+ if ("add" === input.op)
1462
+ return $so2(input);
1463
+ else if ("remove" === input.op)
1464
+ return $so3(input);
1465
+ else if ("test" === input.op)
1466
+ return $so7(input);
1467
+ else if ("replace" === input.op)
1468
+ return $so4(input);
1469
+ else if ("copy" === input.op)
1470
+ return $so6(input);
1471
+ else if ("move" === input.op)
1472
+ return $so5(input);
1473
+ else
1474
+ $throws({
1475
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
1476
+ value: input
1477
+ });
1478
+ })();
1479
+ return $so0(input);
1480
+ };
1481
+ export const assertStringifyMediaTranscriptChangesRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1482
+ const __is = input => {
1483
+ const $io0 = input => Object.keys(input).every(key => {
1484
+ const value = input[key];
1485
+ if (undefined === value)
1486
+ return true;
1487
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
1488
+ });
1489
+ const $io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1490
+ const $io2 = input => "add" === input.op && "string" === typeof input.path && true;
1491
+ const $io3 = input => "remove" === input.op && "string" === typeof input.path;
1492
+ const $io4 = input => "replace" === input.op && "string" === typeof input.path && true;
1493
+ const $io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1494
+ const $io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1495
+ const $io7 = input => "test" === input.op && "string" === typeof input.path && true;
1496
+ const $iu0 = input => (() => {
1497
+ if ("add" === input.op)
1498
+ return $io2(input);
1499
+ else if ("remove" === input.op)
1500
+ return $io3(input);
1501
+ else if ("test" === input.op)
1502
+ return $io7(input);
1503
+ else if ("replace" === input.op)
1504
+ return $io4(input);
1505
+ else if ("copy" === input.op)
1506
+ return $io6(input);
1507
+ else if ("move" === input.op)
1508
+ return $io5(input);
1509
+ else
1510
+ return false;
1511
+ })();
1512
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1513
+ };
1514
+ if (false === __is(input))
1515
+ ((input, _path, _exceptionable = true) => {
1516
+ const $guard = __typia.json.createAssertStringify.guard;
1517
+ const $join = __typia.json.createAssertStringify.join;
1518
+ const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1519
+ const value = input[key];
1520
+ if (undefined === value)
1521
+ return true;
1522
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1523
+ path: _path + $join(key),
1524
+ expected: "MediaTranscriptChangesRecordValue",
1525
+ value: value
1526
+ }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1527
+ path: _path + $join(key),
1528
+ expected: "MediaTranscriptChangesRecordValue",
1529
+ value: value
1530
+ }, errorFactory);
1531
+ });
1532
+ const $ao1 = (input, _path, _exceptionable = true) => undefined === input.patch || (Array.isArray(input.patch) || $guard(_exceptionable, {
1533
+ path: _path + ".patch",
1534
+ expected: "(Array<Operation> | undefined)",
1535
+ value: input.patch
1536
+ }, errorFactory)) && input.patch.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1537
+ path: _path + ".patch[" + _index1 + "]",
1538
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1539
+ value: elem
1540
+ }, errorFactory)) && $au0(elem, _path + ".patch[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1541
+ path: _path + ".patch[" + _index1 + "]",
1542
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1543
+ value: elem
1544
+ }, errorFactory)) || $guard(_exceptionable, {
1545
+ path: _path + ".patch",
1546
+ expected: "(Array<Operation> | undefined)",
1547
+ value: input.patch
1548
+ }, errorFactory);
1549
+ const $ao2 = (input, _path, _exceptionable = true) => ("add" === input.op || $guard(_exceptionable, {
1550
+ path: _path + ".op",
1551
+ expected: "\"add\"",
1552
+ value: input.op
1553
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1554
+ path: _path + ".path",
1555
+ expected: "string",
1556
+ value: input.path
1557
+ }, errorFactory)) && true;
1558
+ const $ao3 = (input, _path, _exceptionable = true) => ("remove" === input.op || $guard(_exceptionable, {
1559
+ path: _path + ".op",
1560
+ expected: "\"remove\"",
1561
+ value: input.op
1562
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1563
+ path: _path + ".path",
1564
+ expected: "string",
1565
+ value: input.path
1566
+ }, errorFactory));
1567
+ const $ao4 = (input, _path, _exceptionable = true) => ("replace" === input.op || $guard(_exceptionable, {
1568
+ path: _path + ".op",
1569
+ expected: "\"replace\"",
1570
+ value: input.op
1571
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1572
+ path: _path + ".path",
1573
+ expected: "string",
1574
+ value: input.path
1575
+ }, errorFactory)) && true;
1576
+ const $ao5 = (input, _path, _exceptionable = true) => ("move" === input.op || $guard(_exceptionable, {
1577
+ path: _path + ".op",
1578
+ expected: "\"move\"",
1579
+ value: input.op
1580
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1581
+ path: _path + ".from",
1582
+ expected: "string",
1583
+ value: input.from
1584
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1585
+ path: _path + ".path",
1586
+ expected: "string",
1587
+ value: input.path
1588
+ }, errorFactory));
1589
+ const $ao6 = (input, _path, _exceptionable = true) => ("copy" === input.op || $guard(_exceptionable, {
1590
+ path: _path + ".op",
1591
+ expected: "\"copy\"",
1592
+ value: input.op
1593
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1594
+ path: _path + ".from",
1595
+ expected: "string",
1596
+ value: input.from
1597
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1598
+ path: _path + ".path",
1599
+ expected: "string",
1600
+ value: input.path
1601
+ }, errorFactory));
1602
+ const $ao7 = (input, _path, _exceptionable = true) => ("test" === input.op || $guard(_exceptionable, {
1603
+ path: _path + ".op",
1604
+ expected: "\"test\"",
1605
+ value: input.op
1606
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1607
+ path: _path + ".path",
1608
+ expected: "string",
1609
+ value: input.path
1610
+ }, errorFactory)) && true;
1611
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
1612
+ if ("add" === input.op)
1613
+ return $ao2(input, _path, true && _exceptionable);
1614
+ else if ("remove" === input.op)
1615
+ return $ao3(input, _path, true && _exceptionable);
1616
+ else if ("test" === input.op)
1617
+ return $ao7(input, _path, true && _exceptionable);
1618
+ else if ("replace" === input.op)
1619
+ return $ao4(input, _path, true && _exceptionable);
1620
+ else if ("copy" === input.op)
1621
+ return $ao6(input, _path, true && _exceptionable);
1622
+ else if ("move" === input.op)
1623
+ return $ao5(input, _path, true && _exceptionable);
1624
+ else
1625
+ return $guard(_exceptionable, {
1626
+ path: _path,
1627
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
1628
+ value: input
1629
+ }, errorFactory);
1630
+ })();
1631
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1632
+ path: _path + "",
1633
+ expected: "MediaTranscriptChangesRecord",
1634
+ value: input
1635
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1636
+ path: _path + "",
1637
+ expected: "MediaTranscriptChangesRecord",
1638
+ value: input
1639
+ }, errorFactory);
1640
+ })(input, "$input", true);
1641
+ return input;
1642
+ }; const stringify = input => {
1643
+ const $io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1644
+ const $io2 = input => "add" === input.op && "string" === typeof input.path && true;
1645
+ const $io3 = input => "remove" === input.op && "string" === typeof input.path;
1646
+ const $io4 = input => "replace" === input.op && "string" === typeof input.path && true;
1647
+ const $io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1648
+ const $io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1649
+ const $io7 = input => "test" === input.op && "string" === typeof input.path && true;
1650
+ const $iu0 = input => (() => {
1651
+ if ("add" === input.op)
1652
+ return $io2(input);
1653
+ else if ("remove" === input.op)
1654
+ return $io3(input);
1655
+ else if ("test" === input.op)
1656
+ return $io7(input);
1657
+ else if ("replace" === input.op)
1658
+ return $io4(input);
1659
+ else if ("copy" === input.op)
1660
+ return $io6(input);
1661
+ else if ("move" === input.op)
1662
+ return $io5(input);
1663
+ else
1664
+ return false;
1665
+ })();
1666
+ const $tail = __typia.json.createAssertStringify.tail;
1667
+ const $string = __typia.json.createAssertStringify.string;
1668
+ const $throws = __typia.json.createAssertStringify.throws;
1669
+ const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1670
+ return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
1671
+ const $so1 = input => `{${$tail(`${undefined === input.patch ? "" : `"patch":${undefined !== input.patch ? `[${input.patch.map(elem => $su0(elem)).join(",")}]` : undefined}`}`)}}`;
1672
+ const $so2 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
1673
+ if ("string" === typeof input.op)
1674
+ return $string(input.op);
1675
+ if ("string" === typeof input.op)
1676
+ return "\"" + input.op + "\"";
1677
+ $throws({
1678
+ expected: "\"add\"",
1679
+ value: input.op
1680
+ });
1681
+ })()},"path":${$string(input.path)}}`;
1682
+ const $so3 = input => `{"op":${(() => {
1683
+ if ("string" === typeof input.op)
1684
+ return $string(input.op);
1685
+ if ("string" === typeof input.op)
1686
+ return "\"" + input.op + "\"";
1687
+ $throws({
1688
+ expected: "\"remove\"",
1689
+ value: input.op
1690
+ });
1691
+ })()},"path":${$string(input.path)}}`;
1692
+ const $so4 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
1693
+ if ("string" === typeof input.op)
1694
+ return $string(input.op);
1695
+ if ("string" === typeof input.op)
1696
+ return "\"" + input.op + "\"";
1697
+ $throws({
1698
+ expected: "\"replace\"",
1699
+ value: input.op
1700
+ });
1701
+ })()},"path":${$string(input.path)}}`;
1702
+ const $so5 = input => `{"op":${(() => {
1703
+ if ("string" === typeof input.op)
1704
+ return $string(input.op);
1705
+ if ("string" === typeof input.op)
1706
+ return "\"" + input.op + "\"";
1707
+ $throws({
1708
+ expected: "\"move\"",
1709
+ value: input.op
1710
+ });
1711
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
1712
+ const $so6 = input => `{"op":${(() => {
1713
+ if ("string" === typeof input.op)
1714
+ return $string(input.op);
1715
+ if ("string" === typeof input.op)
1716
+ return "\"" + input.op + "\"";
1717
+ $throws({
1718
+ expected: "\"copy\"",
1719
+ value: input.op
1720
+ });
1721
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
1722
+ const $so7 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
1723
+ if ("string" === typeof input.op)
1724
+ return $string(input.op);
1725
+ if ("string" === typeof input.op)
1726
+ return "\"" + input.op + "\"";
1727
+ $throws({
1728
+ expected: "\"test\"",
1729
+ value: input.op
1730
+ });
1731
+ })()},"path":${$string(input.path)}}`;
1732
+ const $su0 = input => (() => {
1733
+ if ("add" === input.op)
1734
+ return $so2(input);
1735
+ else if ("remove" === input.op)
1736
+ return $so3(input);
1737
+ else if ("test" === input.op)
1738
+ return $so7(input);
1739
+ else if ("replace" === input.op)
1740
+ return $so4(input);
1741
+ else if ("copy" === input.op)
1742
+ return $so6(input);
1743
+ else if ("move" === input.op)
1744
+ return $so5(input);
1745
+ else
1746
+ $throws({
1747
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
1748
+ value: input
1749
+ });
1750
+ })();
1751
+ return $so0(input);
1752
+ }; return stringify(assert(input, errorFactory)); };
1753
+ export const isMediaTranscriptChangesRecordValue = input => {
1754
+ const $io0 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1755
+ const $io1 = input => "add" === input.op && "string" === typeof input.path && true;
1756
+ const $io2 = input => "remove" === input.op && "string" === typeof input.path;
1757
+ const $io3 = input => "replace" === input.op && "string" === typeof input.path && true;
1758
+ const $io4 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1759
+ const $io5 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1760
+ const $io6 = input => "test" === input.op && "string" === typeof input.path && true;
1761
+ const $iu0 = input => (() => {
1762
+ if ("add" === input.op)
1763
+ return $io1(input);
1764
+ else if ("remove" === input.op)
1765
+ return $io2(input);
1766
+ else if ("test" === input.op)
1767
+ return $io6(input);
1768
+ else if ("replace" === input.op)
1769
+ return $io3(input);
1770
+ else if ("copy" === input.op)
1771
+ return $io5(input);
1772
+ else if ("move" === input.op)
1773
+ return $io4(input);
1774
+ else
1775
+ return false;
1776
+ })();
1777
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1778
+ };
1779
+ export const assertMediaTranscriptChangesRecordValue = (input, errorFactory) => {
1780
+ const __is = input => {
1781
+ const $io0 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1782
+ const $io1 = input => "add" === input.op && "string" === typeof input.path && true;
1783
+ const $io2 = input => "remove" === input.op && "string" === typeof input.path;
1784
+ const $io3 = input => "replace" === input.op && "string" === typeof input.path && true;
1785
+ const $io4 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1786
+ const $io5 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1787
+ const $io6 = input => "test" === input.op && "string" === typeof input.path && true;
1788
+ const $iu0 = input => (() => {
1789
+ if ("add" === input.op)
1790
+ return $io1(input);
1791
+ else if ("remove" === input.op)
1792
+ return $io2(input);
1793
+ else if ("test" === input.op)
1794
+ return $io6(input);
1795
+ else if ("replace" === input.op)
1796
+ return $io3(input);
1797
+ else if ("copy" === input.op)
1798
+ return $io5(input);
1799
+ else if ("move" === input.op)
1800
+ return $io4(input);
1801
+ else
1802
+ return false;
1803
+ })();
1804
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1805
+ };
1806
+ if (false === __is(input))
1807
+ ((input, _path, _exceptionable = true) => {
1808
+ const $guard = __typia.createAssert.guard;
1809
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.patch || (Array.isArray(input.patch) || $guard(_exceptionable, {
1810
+ path: _path + ".patch",
1811
+ expected: "(Array<Operation> | undefined)",
1812
+ value: input.patch
1813
+ }, errorFactory)) && input.patch.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1814
+ path: _path + ".patch[" + _index1 + "]",
1815
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1816
+ value: elem
1817
+ }, errorFactory)) && $au0(elem, _path + ".patch[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1818
+ path: _path + ".patch[" + _index1 + "]",
1819
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
1820
+ value: elem
1821
+ }, errorFactory)) || $guard(_exceptionable, {
1822
+ path: _path + ".patch",
1823
+ expected: "(Array<Operation> | undefined)",
1824
+ value: input.patch
1825
+ }, errorFactory);
1826
+ const $ao1 = (input, _path, _exceptionable = true) => ("add" === input.op || $guard(_exceptionable, {
1827
+ path: _path + ".op",
1828
+ expected: "\"add\"",
1829
+ value: input.op
1830
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1831
+ path: _path + ".path",
1832
+ expected: "string",
1833
+ value: input.path
1834
+ }, errorFactory)) && true;
1835
+ const $ao2 = (input, _path, _exceptionable = true) => ("remove" === input.op || $guard(_exceptionable, {
1836
+ path: _path + ".op",
1837
+ expected: "\"remove\"",
1838
+ value: input.op
1839
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1840
+ path: _path + ".path",
1841
+ expected: "string",
1842
+ value: input.path
1843
+ }, errorFactory));
1844
+ const $ao3 = (input, _path, _exceptionable = true) => ("replace" === input.op || $guard(_exceptionable, {
1845
+ path: _path + ".op",
1846
+ expected: "\"replace\"",
1847
+ value: input.op
1848
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1849
+ path: _path + ".path",
1850
+ expected: "string",
1851
+ value: input.path
1852
+ }, errorFactory)) && true;
1853
+ const $ao4 = (input, _path, _exceptionable = true) => ("move" === input.op || $guard(_exceptionable, {
1854
+ path: _path + ".op",
1855
+ expected: "\"move\"",
1856
+ value: input.op
1857
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1858
+ path: _path + ".from",
1859
+ expected: "string",
1860
+ value: input.from
1861
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1862
+ path: _path + ".path",
1863
+ expected: "string",
1864
+ value: input.path
1865
+ }, errorFactory));
1866
+ const $ao5 = (input, _path, _exceptionable = true) => ("copy" === input.op || $guard(_exceptionable, {
1867
+ path: _path + ".op",
1868
+ expected: "\"copy\"",
1869
+ value: input.op
1870
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
1871
+ path: _path + ".from",
1872
+ expected: "string",
1873
+ value: input.from
1874
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1875
+ path: _path + ".path",
1876
+ expected: "string",
1877
+ value: input.path
1878
+ }, errorFactory));
1879
+ const $ao6 = (input, _path, _exceptionable = true) => ("test" === input.op || $guard(_exceptionable, {
1880
+ path: _path + ".op",
1881
+ expected: "\"test\"",
1882
+ value: input.op
1883
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1884
+ path: _path + ".path",
1885
+ expected: "string",
1886
+ value: input.path
1887
+ }, errorFactory)) && true;
1888
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
1889
+ if ("add" === input.op)
1890
+ return $ao1(input, _path, true && _exceptionable);
1891
+ else if ("remove" === input.op)
1892
+ return $ao2(input, _path, true && _exceptionable);
1893
+ else if ("test" === input.op)
1894
+ return $ao6(input, _path, true && _exceptionable);
1895
+ else if ("replace" === input.op)
1896
+ return $ao3(input, _path, true && _exceptionable);
1897
+ else if ("copy" === input.op)
1898
+ return $ao5(input, _path, true && _exceptionable);
1899
+ else if ("move" === input.op)
1900
+ return $ao4(input, _path, true && _exceptionable);
1901
+ else
1902
+ return $guard(_exceptionable, {
1903
+ path: _path,
1904
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
1905
+ value: input
1906
+ }, errorFactory);
1907
+ })();
1908
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1909
+ path: _path + "",
1910
+ expected: "MediaTranscriptChangesRecordValue",
1911
+ value: input
1912
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1913
+ path: _path + "",
1914
+ expected: "MediaTranscriptChangesRecordValue",
1915
+ value: input
1916
+ }, errorFactory);
1917
+ })(input, "$input", true);
1918
+ return input;
1919
+ };
1920
+ export const randomMediaTranscriptChangesRecordValue = generator => {
1921
+ const $generator = __typia.createRandom.generator;
1922
+ const $pick = __typia.createRandom.pick;
1923
+ const $ro0 = (_recursive = false, _depth = 0) => ({
1924
+ patch: $pick([
1925
+ () => undefined,
1926
+ () => (generator?.array ?? $generator.array)(() => $pick([
1927
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth),
1928
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth),
1929
+ () => $ro6(_recursive, _recursive ? 1 + _depth : _depth),
1930
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth),
1931
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth),
1932
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
1933
+ ])())
1934
+ ])()
1935
+ });
1936
+ const $ro1 = (_recursive = false, _depth = 0) => ({
1937
+ op: "add",
1938
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1939
+ value: "any type used..."
1940
+ });
1941
+ const $ro2 = (_recursive = false, _depth = 0) => ({
1942
+ op: "remove",
1943
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1944
+ });
1945
+ const $ro3 = (_recursive = false, _depth = 0) => ({
1946
+ op: "replace",
1947
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1948
+ value: "any type used..."
1949
+ });
1950
+ const $ro4 = (_recursive = false, _depth = 0) => ({
1951
+ op: "move",
1952
+ from: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1953
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1954
+ });
1955
+ const $ro5 = (_recursive = false, _depth = 0) => ({
1956
+ op: "copy",
1957
+ from: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1958
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1959
+ });
1960
+ const $ro6 = (_recursive = false, _depth = 0) => ({
1961
+ op: "test",
1962
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1963
+ value: "any type used..."
1964
+ });
1965
+ return $ro0();
1966
+ };
1967
+ export const assertGuardMediaTranscriptChangesRecordValue = (input, errorFactory) => {
1968
+ const __is = input => {
1969
+ const $io0 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1970
+ const $io1 = input => "add" === input.op && "string" === typeof input.path && true;
1971
+ const $io2 = input => "remove" === input.op && "string" === typeof input.path;
1972
+ const $io3 = input => "replace" === input.op && "string" === typeof input.path && true;
1973
+ const $io4 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1974
+ const $io5 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
1975
+ const $io6 = input => "test" === input.op && "string" === typeof input.path && true;
1976
+ const $iu0 = input => (() => {
1977
+ if ("add" === input.op)
1978
+ return $io1(input);
1979
+ else if ("remove" === input.op)
1980
+ return $io2(input);
1981
+ else if ("test" === input.op)
1982
+ return $io6(input);
1983
+ else if ("replace" === input.op)
1984
+ return $io3(input);
1985
+ else if ("copy" === input.op)
1986
+ return $io5(input);
1987
+ else if ("move" === input.op)
1988
+ return $io4(input);
1989
+ else
1990
+ return false;
1991
+ })();
1992
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1993
+ };
1994
+ if (false === __is(input))
1995
+ ((input, _path, _exceptionable = true) => {
1996
+ const $guard = __typia.createAssertGuard.guard;
1997
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.patch || (Array.isArray(input.patch) || $guard(_exceptionable, {
1998
+ path: _path + ".patch",
1999
+ expected: "(Array<Operation> | undefined)",
2000
+ value: input.patch
2001
+ }, errorFactory)) && input.patch.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
2002
+ path: _path + ".patch[" + _index1 + "]",
2003
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
2004
+ value: elem
2005
+ }, errorFactory)) && $au0(elem, _path + ".patch[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2006
+ path: _path + ".patch[" + _index1 + "]",
2007
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
2008
+ value: elem
2009
+ }, errorFactory)) || $guard(_exceptionable, {
2010
+ path: _path + ".patch",
2011
+ expected: "(Array<Operation> | undefined)",
2012
+ value: input.patch
2013
+ }, errorFactory);
2014
+ const $ao1 = (input, _path, _exceptionable = true) => ("add" === input.op || $guard(_exceptionable, {
2015
+ path: _path + ".op",
2016
+ expected: "\"add\"",
2017
+ value: input.op
2018
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2019
+ path: _path + ".path",
2020
+ expected: "string",
2021
+ value: input.path
2022
+ }, errorFactory)) && true;
2023
+ const $ao2 = (input, _path, _exceptionable = true) => ("remove" === input.op || $guard(_exceptionable, {
2024
+ path: _path + ".op",
2025
+ expected: "\"remove\"",
2026
+ value: input.op
2027
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2028
+ path: _path + ".path",
2029
+ expected: "string",
2030
+ value: input.path
2031
+ }, errorFactory));
2032
+ const $ao3 = (input, _path, _exceptionable = true) => ("replace" === input.op || $guard(_exceptionable, {
2033
+ path: _path + ".op",
2034
+ expected: "\"replace\"",
2035
+ value: input.op
2036
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2037
+ path: _path + ".path",
2038
+ expected: "string",
2039
+ value: input.path
2040
+ }, errorFactory)) && true;
2041
+ const $ao4 = (input, _path, _exceptionable = true) => ("move" === input.op || $guard(_exceptionable, {
2042
+ path: _path + ".op",
2043
+ expected: "\"move\"",
2044
+ value: input.op
2045
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
2046
+ path: _path + ".from",
2047
+ expected: "string",
2048
+ value: input.from
2049
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2050
+ path: _path + ".path",
2051
+ expected: "string",
2052
+ value: input.path
2053
+ }, errorFactory));
2054
+ const $ao5 = (input, _path, _exceptionable = true) => ("copy" === input.op || $guard(_exceptionable, {
2055
+ path: _path + ".op",
2056
+ expected: "\"copy\"",
2057
+ value: input.op
2058
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
2059
+ path: _path + ".from",
2060
+ expected: "string",
2061
+ value: input.from
2062
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2063
+ path: _path + ".path",
2064
+ expected: "string",
2065
+ value: input.path
2066
+ }, errorFactory));
2067
+ const $ao6 = (input, _path, _exceptionable = true) => ("test" === input.op || $guard(_exceptionable, {
2068
+ path: _path + ".op",
2069
+ expected: "\"test\"",
2070
+ value: input.op
2071
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2072
+ path: _path + ".path",
2073
+ expected: "string",
2074
+ value: input.path
2075
+ }, errorFactory)) && true;
2076
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
2077
+ if ("add" === input.op)
2078
+ return $ao1(input, _path, true && _exceptionable);
2079
+ else if ("remove" === input.op)
2080
+ return $ao2(input, _path, true && _exceptionable);
2081
+ else if ("test" === input.op)
2082
+ return $ao6(input, _path, true && _exceptionable);
2083
+ else if ("replace" === input.op)
2084
+ return $ao3(input, _path, true && _exceptionable);
2085
+ else if ("copy" === input.op)
2086
+ return $ao5(input, _path, true && _exceptionable);
2087
+ else if ("move" === input.op)
2088
+ return $ao4(input, _path, true && _exceptionable);
2089
+ else
2090
+ return $guard(_exceptionable, {
2091
+ path: _path,
2092
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
2093
+ value: input
2094
+ }, errorFactory);
2095
+ })();
2096
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
2097
+ path: _path + "",
2098
+ expected: "MediaTranscriptChangesRecordValue",
2099
+ value: input
2100
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2101
+ path: _path + "",
2102
+ expected: "MediaTranscriptChangesRecordValue",
2103
+ value: input
2104
+ }, errorFactory);
2105
+ })(input, "$input", true);
2106
+ };
2107
+ export const stringifyMediaTranscriptChangesRecordValue = input => {
2108
+ const $io1 = input => "add" === input.op && "string" === typeof input.path && true;
2109
+ const $io2 = input => "remove" === input.op && "string" === typeof input.path;
2110
+ const $io3 = input => "replace" === input.op && "string" === typeof input.path && true;
2111
+ const $io4 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
2112
+ const $io5 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
2113
+ const $io6 = input => "test" === input.op && "string" === typeof input.path && true;
2114
+ const $iu0 = input => (() => {
2115
+ if ("add" === input.op)
2116
+ return $io1(input);
2117
+ else if ("remove" === input.op)
2118
+ return $io2(input);
2119
+ else if ("test" === input.op)
2120
+ return $io6(input);
2121
+ else if ("replace" === input.op)
2122
+ return $io3(input);
2123
+ else if ("copy" === input.op)
2124
+ return $io5(input);
2125
+ else if ("move" === input.op)
2126
+ return $io4(input);
2127
+ else
2128
+ return false;
2129
+ })();
2130
+ const $tail = __typia.json.createStringify.tail;
2131
+ const $string = __typia.json.createStringify.string;
2132
+ const $throws = __typia.json.createStringify.throws;
2133
+ const $so0 = input => `{${$tail(`${undefined === input.patch ? "" : `"patch":${undefined !== input.patch ? `[${input.patch.map(elem => $su0(elem)).join(",")}]` : undefined}`}`)}}`;
2134
+ const $so1 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
2135
+ if ("string" === typeof input.op)
2136
+ return $string(input.op);
2137
+ if ("string" === typeof input.op)
2138
+ return "\"" + input.op + "\"";
2139
+ $throws({
2140
+ expected: "\"add\"",
2141
+ value: input.op
2142
+ });
2143
+ })()},"path":${$string(input.path)}}`;
2144
+ const $so2 = input => `{"op":${(() => {
2145
+ if ("string" === typeof input.op)
2146
+ return $string(input.op);
2147
+ if ("string" === typeof input.op)
2148
+ return "\"" + input.op + "\"";
2149
+ $throws({
2150
+ expected: "\"remove\"",
2151
+ value: input.op
2152
+ });
2153
+ })()},"path":${$string(input.path)}}`;
2154
+ const $so3 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
2155
+ if ("string" === typeof input.op)
2156
+ return $string(input.op);
2157
+ if ("string" === typeof input.op)
2158
+ return "\"" + input.op + "\"";
2159
+ $throws({
2160
+ expected: "\"replace\"",
2161
+ value: input.op
2162
+ });
2163
+ })()},"path":${$string(input.path)}}`;
2164
+ const $so4 = input => `{"op":${(() => {
2165
+ if ("string" === typeof input.op)
2166
+ return $string(input.op);
2167
+ if ("string" === typeof input.op)
2168
+ return "\"" + input.op + "\"";
2169
+ $throws({
2170
+ expected: "\"move\"",
2171
+ value: input.op
2172
+ });
2173
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
2174
+ const $so5 = input => `{"op":${(() => {
2175
+ if ("string" === typeof input.op)
2176
+ return $string(input.op);
2177
+ if ("string" === typeof input.op)
2178
+ return "\"" + input.op + "\"";
2179
+ $throws({
2180
+ expected: "\"copy\"",
2181
+ value: input.op
2182
+ });
2183
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
2184
+ const $so6 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
2185
+ if ("string" === typeof input.op)
2186
+ return $string(input.op);
2187
+ if ("string" === typeof input.op)
2188
+ return "\"" + input.op + "\"";
2189
+ $throws({
2190
+ expected: "\"test\"",
2191
+ value: input.op
2192
+ });
2193
+ })()},"path":${$string(input.path)}}`;
2194
+ const $su0 = input => (() => {
2195
+ if ("add" === input.op)
2196
+ return $so1(input);
2197
+ else if ("remove" === input.op)
2198
+ return $so2(input);
2199
+ else if ("test" === input.op)
2200
+ return $so6(input);
2201
+ else if ("replace" === input.op)
2202
+ return $so3(input);
2203
+ else if ("copy" === input.op)
2204
+ return $so5(input);
2205
+ else if ("move" === input.op)
2206
+ return $so4(input);
2207
+ else
2208
+ $throws({
2209
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
2210
+ value: input
2211
+ });
2212
+ })();
2213
+ return $so0(input);
2214
+ };
2215
+ export const assertStringifyMediaTranscriptChangesRecordValue = (input, errorFactory) => { const assert = (input, errorFactory) => {
2216
+ const __is = input => {
2217
+ const $io0 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
2218
+ const $io1 = input => "add" === input.op && "string" === typeof input.path && true;
2219
+ const $io2 = input => "remove" === input.op && "string" === typeof input.path;
2220
+ const $io3 = input => "replace" === input.op && "string" === typeof input.path && true;
2221
+ const $io4 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
2222
+ const $io5 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
2223
+ const $io6 = input => "test" === input.op && "string" === typeof input.path && true;
2224
+ const $iu0 = input => (() => {
2225
+ if ("add" === input.op)
2226
+ return $io1(input);
2227
+ else if ("remove" === input.op)
2228
+ return $io2(input);
2229
+ else if ("test" === input.op)
2230
+ return $io6(input);
2231
+ else if ("replace" === input.op)
2232
+ return $io3(input);
2233
+ else if ("copy" === input.op)
2234
+ return $io5(input);
2235
+ else if ("move" === input.op)
2236
+ return $io4(input);
2237
+ else
2238
+ return false;
2239
+ })();
2240
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
2241
+ };
2242
+ if (false === __is(input))
2243
+ ((input, _path, _exceptionable = true) => {
2244
+ const $guard = __typia.json.createAssertStringify.guard;
2245
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.patch || (Array.isArray(input.patch) || $guard(_exceptionable, {
2246
+ path: _path + ".patch",
2247
+ expected: "(Array<Operation> | undefined)",
2248
+ value: input.patch
2249
+ }, errorFactory)) && input.patch.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
2250
+ path: _path + ".patch[" + _index1 + "]",
2251
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
2252
+ value: elem
2253
+ }, errorFactory)) && $au0(elem, _path + ".patch[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2254
+ path: _path + ".patch[" + _index1 + "]",
2255
+ expected: "(AddOperation | CopyOperation | MoveOperation | RemoveOperation | ReplaceOperation | TestOperation)",
2256
+ value: elem
2257
+ }, errorFactory)) || $guard(_exceptionable, {
2258
+ path: _path + ".patch",
2259
+ expected: "(Array<Operation> | undefined)",
2260
+ value: input.patch
2261
+ }, errorFactory);
2262
+ const $ao1 = (input, _path, _exceptionable = true) => ("add" === input.op || $guard(_exceptionable, {
2263
+ path: _path + ".op",
2264
+ expected: "\"add\"",
2265
+ value: input.op
2266
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2267
+ path: _path + ".path",
2268
+ expected: "string",
2269
+ value: input.path
2270
+ }, errorFactory)) && true;
2271
+ const $ao2 = (input, _path, _exceptionable = true) => ("remove" === input.op || $guard(_exceptionable, {
2272
+ path: _path + ".op",
2273
+ expected: "\"remove\"",
2274
+ value: input.op
2275
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2276
+ path: _path + ".path",
2277
+ expected: "string",
2278
+ value: input.path
2279
+ }, errorFactory));
2280
+ const $ao3 = (input, _path, _exceptionable = true) => ("replace" === input.op || $guard(_exceptionable, {
2281
+ path: _path + ".op",
2282
+ expected: "\"replace\"",
2283
+ value: input.op
2284
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2285
+ path: _path + ".path",
2286
+ expected: "string",
2287
+ value: input.path
2288
+ }, errorFactory)) && true;
2289
+ const $ao4 = (input, _path, _exceptionable = true) => ("move" === input.op || $guard(_exceptionable, {
2290
+ path: _path + ".op",
2291
+ expected: "\"move\"",
2292
+ value: input.op
2293
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
2294
+ path: _path + ".from",
2295
+ expected: "string",
2296
+ value: input.from
2297
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2298
+ path: _path + ".path",
2299
+ expected: "string",
2300
+ value: input.path
2301
+ }, errorFactory));
2302
+ const $ao5 = (input, _path, _exceptionable = true) => ("copy" === input.op || $guard(_exceptionable, {
2303
+ path: _path + ".op",
2304
+ expected: "\"copy\"",
2305
+ value: input.op
2306
+ }, errorFactory)) && ("string" === typeof input.from || $guard(_exceptionable, {
2307
+ path: _path + ".from",
2308
+ expected: "string",
2309
+ value: input.from
2310
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2311
+ path: _path + ".path",
2312
+ expected: "string",
2313
+ value: input.path
2314
+ }, errorFactory));
2315
+ const $ao6 = (input, _path, _exceptionable = true) => ("test" === input.op || $guard(_exceptionable, {
2316
+ path: _path + ".op",
2317
+ expected: "\"test\"",
2318
+ value: input.op
2319
+ }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
2320
+ path: _path + ".path",
2321
+ expected: "string",
2322
+ value: input.path
2323
+ }, errorFactory)) && true;
2324
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
2325
+ if ("add" === input.op)
2326
+ return $ao1(input, _path, true && _exceptionable);
2327
+ else if ("remove" === input.op)
2328
+ return $ao2(input, _path, true && _exceptionable);
2329
+ else if ("test" === input.op)
2330
+ return $ao6(input, _path, true && _exceptionable);
2331
+ else if ("replace" === input.op)
2332
+ return $ao3(input, _path, true && _exceptionable);
2333
+ else if ("copy" === input.op)
2334
+ return $ao5(input, _path, true && _exceptionable);
2335
+ else if ("move" === input.op)
2336
+ return $ao4(input, _path, true && _exceptionable);
2337
+ else
2338
+ return $guard(_exceptionable, {
2339
+ path: _path,
2340
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
2341
+ value: input
2342
+ }, errorFactory);
2343
+ })();
2344
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
2345
+ path: _path + "",
2346
+ expected: "MediaTranscriptChangesRecordValue",
2347
+ value: input
2348
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2349
+ path: _path + "",
2350
+ expected: "MediaTranscriptChangesRecordValue",
2351
+ value: input
2352
+ }, errorFactory);
2353
+ })(input, "$input", true);
2354
+ return input;
2355
+ }; const stringify = input => {
2356
+ const $io1 = input => "add" === input.op && "string" === typeof input.path && true;
2357
+ const $io2 = input => "remove" === input.op && "string" === typeof input.path;
2358
+ const $io3 = input => "replace" === input.op && "string" === typeof input.path && true;
2359
+ const $io4 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path;
2360
+ const $io5 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path;
2361
+ const $io6 = input => "test" === input.op && "string" === typeof input.path && true;
2362
+ const $iu0 = input => (() => {
2363
+ if ("add" === input.op)
2364
+ return $io1(input);
2365
+ else if ("remove" === input.op)
2366
+ return $io2(input);
2367
+ else if ("test" === input.op)
2368
+ return $io6(input);
2369
+ else if ("replace" === input.op)
2370
+ return $io3(input);
2371
+ else if ("copy" === input.op)
2372
+ return $io5(input);
2373
+ else if ("move" === input.op)
2374
+ return $io4(input);
2375
+ else
2376
+ return false;
2377
+ })();
2378
+ const $tail = __typia.json.createAssertStringify.tail;
2379
+ const $string = __typia.json.createAssertStringify.string;
2380
+ const $throws = __typia.json.createAssertStringify.throws;
2381
+ const $so0 = input => `{${$tail(`${undefined === input.patch ? "" : `"patch":${undefined !== input.patch ? `[${input.patch.map(elem => $su0(elem)).join(",")}]` : undefined}`}`)}}`;
2382
+ const $so1 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
2383
+ if ("string" === typeof input.op)
2384
+ return $string(input.op);
2385
+ if ("string" === typeof input.op)
2386
+ return "\"" + input.op + "\"";
2387
+ $throws({
2388
+ expected: "\"add\"",
2389
+ value: input.op
2390
+ });
2391
+ })()},"path":${$string(input.path)}}`;
2392
+ const $so2 = input => `{"op":${(() => {
2393
+ if ("string" === typeof input.op)
2394
+ return $string(input.op);
2395
+ if ("string" === typeof input.op)
2396
+ return "\"" + input.op + "\"";
2397
+ $throws({
2398
+ expected: "\"remove\"",
2399
+ value: input.op
2400
+ });
2401
+ })()},"path":${$string(input.path)}}`;
2402
+ const $so3 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
2403
+ if ("string" === typeof input.op)
2404
+ return $string(input.op);
2405
+ if ("string" === typeof input.op)
2406
+ return "\"" + input.op + "\"";
2407
+ $throws({
2408
+ expected: "\"replace\"",
2409
+ value: input.op
2410
+ });
2411
+ })()},"path":${$string(input.path)}}`;
2412
+ const $so4 = input => `{"op":${(() => {
2413
+ if ("string" === typeof input.op)
2414
+ return $string(input.op);
2415
+ if ("string" === typeof input.op)
2416
+ return "\"" + input.op + "\"";
2417
+ $throws({
2418
+ expected: "\"move\"",
2419
+ value: input.op
2420
+ });
2421
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
2422
+ const $so5 = input => `{"op":${(() => {
2423
+ if ("string" === typeof input.op)
2424
+ return $string(input.op);
2425
+ if ("string" === typeof input.op)
2426
+ return "\"" + input.op + "\"";
2427
+ $throws({
2428
+ expected: "\"copy\"",
2429
+ value: input.op
2430
+ });
2431
+ })()},"from":${$string(input.from)},"path":${$string(input.path)}}`;
2432
+ const $so6 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${(() => {
2433
+ if ("string" === typeof input.op)
2434
+ return $string(input.op);
2435
+ if ("string" === typeof input.op)
2436
+ return "\"" + input.op + "\"";
2437
+ $throws({
2438
+ expected: "\"test\"",
2439
+ value: input.op
2440
+ });
2441
+ })()},"path":${$string(input.path)}}`;
2442
+ const $su0 = input => (() => {
2443
+ if ("add" === input.op)
2444
+ return $so1(input);
2445
+ else if ("remove" === input.op)
2446
+ return $so2(input);
2447
+ else if ("test" === input.op)
2448
+ return $so6(input);
2449
+ else if ("replace" === input.op)
2450
+ return $so3(input);
2451
+ else if ("copy" === input.op)
2452
+ return $so5(input);
2453
+ else if ("move" === input.op)
2454
+ return $so4(input);
2455
+ else
2456
+ $throws({
2457
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
2458
+ value: input
2459
+ });
2460
+ })();
2461
+ return $so0(input);
2462
+ }; return stringify(assert(input, errorFactory)); };