hella-types 0.0.9 → 0.0.10

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.
Files changed (4) hide show
  1. package/dist/index.d.ts +38144 -14187
  2. package/dist/index.js +360 -360
  3. package/package.json +1 -1
  4. package/src/index.ts +402 -416
package/dist/index.js CHANGED
@@ -2,21 +2,26 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OperatorZod = exports.StageZod = exports.SkinZod = exports.SkillZod = exports.SandboxActZod = exports.RogueThemeZod = exports.ParadoxZod = exports.ModuleZod = exports.ItemZod = exports.GridRangeZod = exports.GameEventZod = exports.EnemyZod = exports.DefinitionZod = exports.CCStageZod = exports.BaseZod = void 0;
4
4
  var z = require("zod");
5
+ var BlackboardZod = z.strictObject({
6
+ key: z.string(),
7
+ value: z.number().nullable(),
8
+ valueStr: z.string().nullable().optional(),
9
+ });
5
10
  var DefinedStringZod = z.strictObject({
6
11
  m_defined: z.boolean(),
7
- m_value: z.union([z.string(), z.null()]),
12
+ m_value: z.string().nullable(),
8
13
  });
9
14
  var DefinedStringArrayZod = z.strictObject({
10
15
  m_defined: z.boolean(),
11
- m_value: z.union([z.array(z.string()), z.null()]),
16
+ m_value: z.array(z.string()).nullable(),
12
17
  });
13
18
  var DefinedNumberZod = z.strictObject({
14
19
  m_defined: z.boolean(),
15
- m_value: z.union([z.number(), z.null()]),
20
+ m_value: z.number().nullable(),
16
21
  });
17
22
  var DefinedBooleanZod = z.strictObject({
18
23
  m_defined: z.boolean(),
19
- m_value: z.boolean(),
24
+ m_value: z.boolean().nullable(),
20
25
  });
21
26
  var AttributesKeyFrameZod = z.strictObject({
22
27
  level: z.number(),
@@ -45,11 +50,6 @@ var AttributesKeyFrameZod = z.strictObject({
45
50
  levitateImmune: z.boolean(),
46
51
  }),
47
52
  });
48
- var BlackboardZod = z.strictObject({
49
- key: z.string(),
50
- value: z.union([z.number(), z.null()]),
51
- valueStr: z.union([z.string(), z.null(), z.undefined()]),
52
- });
53
53
  var EnemyAttributesZod = z.strictObject({
54
54
  maxHp: DefinedNumberZod,
55
55
  atk: DefinedNumberZod,
@@ -66,14 +66,14 @@ var EnemyAttributesZod = z.strictObject({
66
66
  maxDeployCount: DefinedNumberZod,
67
67
  massLevel: DefinedNumberZod,
68
68
  baseForceLevel: DefinedNumberZod,
69
- tauntLevel: z.union([DefinedNumberZod, z.undefined()]), // legacy
70
- epDamageResistance: z.union([DefinedNumberZod, z.undefined()]), // legacy
71
- epResistance: z.union([DefinedNumberZod, z.undefined()]), // ~
69
+ tauntLevel: DefinedNumberZod.optional(),
70
+ epDamageResistance: DefinedNumberZod.optional(),
71
+ epResistance: DefinedNumberZod.optional(),
72
72
  stunImmune: DefinedBooleanZod,
73
73
  silenceImmune: DefinedBooleanZod,
74
- sleepImmune: z.union([DefinedBooleanZod, z.undefined()]),
75
- frozenImmune: z.union([DefinedBooleanZod, z.undefined()]), // legacy
76
- levitateImmune: z.union([DefinedBooleanZod, z.undefined()]), // legacy
74
+ sleepImmune: DefinedBooleanZod.optional(),
75
+ frozenImmune: DefinedBooleanZod.optional(),
76
+ levitateImmune: DefinedBooleanZod.optional(),
77
77
  });
78
78
  var EnemySkillsZod = z.strictObject({
79
79
  prefabKey: z.string(),
@@ -81,7 +81,7 @@ var EnemySkillsZod = z.strictObject({
81
81
  cooldown: z.number(),
82
82
  initCooldown: z.number(),
83
83
  spCost: z.number(),
84
- blackboard: z.union([z.array(BlackboardZod), z.null()]),
84
+ blackboard: z.array(BlackboardZod).nullable(),
85
85
  });
86
86
  var EnemySpDataZod = z.strictObject({
87
87
  spType: z.string(),
@@ -94,18 +94,18 @@ var EnemyDataZod = z.strictObject({
94
94
  description: DefinedStringZod,
95
95
  prefabKey: DefinedStringZod,
96
96
  attributes: EnemyAttributesZod,
97
- applyWay: z.union([DefinedStringZod, z.undefined()]), // legacy
98
- motion: z.union([DefinedStringZod, z.undefined()]), // legacy
99
- enemyTags: z.union([DefinedStringArrayZod, z.undefined()]), // legacy
97
+ applyWay: DefinedStringZod.optional(),
98
+ motion: DefinedStringZod.optional(),
99
+ enemyTags: DefinedStringArrayZod.optional(),
100
100
  lifePointReduce: DefinedNumberZod,
101
- levelType: z.union([DefinedStringZod, DefinedNumberZod, z.undefined()]), // legacy
101
+ levelType: z.union([DefinedStringZod, DefinedNumberZod]).optional(),
102
102
  rangeRadius: DefinedNumberZod,
103
- numOfExtraDrops: z.union([DefinedNumberZod, z.undefined()]), // legacy
104
- viewRadius: z.union([DefinedNumberZod, z.undefined()]), // legacy
105
- notCountInTotal: z.union([DefinedBooleanZod, z.undefined()]), // legacy
106
- talentBlackboard: z.union([z.array(BlackboardZod), z.null()]),
107
- skills: z.union([z.array(EnemySkillsZod), z.null()]),
108
- spData: z.union([EnemySpDataZod, z.null()]),
103
+ numOfExtraDrops: DefinedNumberZod.optional(),
104
+ viewRadius: DefinedNumberZod.optional(),
105
+ notCountInTotal: DefinedBooleanZod.optional(),
106
+ talentBlackboard: z.array(BlackboardZod).nullable(),
107
+ skills: z.array(EnemySkillsZod).nullable(),
108
+ spData: EnemySpDataZod.nullable(),
109
109
  });
110
110
  var LevelUpCostZod = z.strictObject({
111
111
  id: z.string(),
@@ -165,41 +165,41 @@ var OperatorUnlockCondZod = z.strictObject({
165
165
  var LevelUpCostCondZod = z.strictObject({
166
166
  unlockCond: OperatorUnlockCondZod,
167
167
  lvlUpTime: z.number(),
168
- levelUpCost: z.union([z.array(LevelUpCostZod), z.null()]),
168
+ levelUpCost: z.array(LevelUpCostZod).nullable(),
169
+ });
170
+ var StageCardZod = z.strictObject({
171
+ initialCnt: z.number().optional(),
172
+ hidden: z.boolean(),
173
+ alias: z.string().nullable(),
174
+ uniEquipIds: z.array(z.strictObject({
175
+ key: z.string(),
176
+ level: z.number(),
177
+ })).nullable().optional(),
178
+ inst: z.strictObject({
179
+ characterKey: z.string(),
180
+ level: z.number(),
181
+ phase: z.union([z.string(), z.number()]).optional(),
182
+ favorPoint: z.number(),
183
+ potentialRank: z.number(),
184
+ }),
185
+ skillIndex: z.number(),
186
+ mainSkillLvl: z.number(),
187
+ skinId: z.string().nullable(),
188
+ tmplId: z.string().nullable().optional(),
189
+ overrideSkillBlackboard: z.array(BlackboardZod).nullable().optional(),
190
+ });
191
+ var StageInstZod = StageCardZod.extend({
192
+ position: z.strictObject({
193
+ row: z.number(),
194
+ col: z.number(),
195
+ }),
196
+ direction: z.union([z.string(), z.number()]).optional(),
169
197
  });
170
198
  var StageDefinesZod = z.strictObject({
171
- characterInsts: z.array(z.any()),
172
- tokenInsts: z.array(z.strictObject({
173
- position: z.strictObject({
174
- row: z.number(),
175
- col: z.number(),
176
- }),
177
- direction: z.union([z.string(), z.number()]), // legacy
178
- hidden: z.boolean(),
179
- alias: z.union([z.string(), z.null()]),
180
- uniEquipIds: z.union([
181
- z.array(z.strictObject({
182
- key: z.string(),
183
- level: z.number(),
184
- })),
185
- z.null(), z.undefined()
186
- ] // legacy
187
- ),
188
- inst: z.strictObject({
189
- characterKey: z.string(),
190
- level: z.number(),
191
- phase: z.union([z.string(), z.number()]), // legacy
192
- favorPoint: z.number(),
193
- potentialRank: z.number(),
194
- }),
195
- skillIndex: z.number(),
196
- mainSkillLvl: z.number(),
197
- skinId: z.union([z.string(), z.null()]),
198
- tmplId: z.union([z.string(), z.null(), z.undefined()]),
199
- overrideSkillBlackboard: z.union([z.array(BlackboardZod), z.null(), z.undefined()]),
200
- })),
201
- characterCards: z.array(z.any()),
202
- tokenCards: z.array(z.any()),
199
+ characterInsts: z.array(StageInstZod),
200
+ tokenInsts: z.array(StageInstZod),
201
+ characterCards: z.array(StageCardZod),
202
+ tokenCards: z.array(StageCardZod),
203
203
  });
204
204
  var StageEffectZod = z.strictObject({
205
205
  key: z.string(),
@@ -208,10 +208,10 @@ var StageEffectZod = z.strictObject({
208
208
  y: z.number(),
209
209
  z: z.number(),
210
210
  }),
211
- direction: z.union([z.string(), z.number()]), // legacy
211
+ direction: z.union([z.string(), z.number()]),
212
212
  });
213
213
  var StageActionZod = z.strictObject({
214
- actionType: z.union([z.string(), z.number()]), // legacy
214
+ actionType: z.union([z.string(), z.number()]),
215
215
  managedByScheduler: z.boolean(),
216
216
  key: z.string(),
217
217
  count: z.number(),
@@ -220,16 +220,53 @@ var StageActionZod = z.strictObject({
220
220
  routeIndex: z.number(),
221
221
  blockFragment: z.boolean(),
222
222
  autoPreviewRoute: z.boolean(),
223
- autoDisplayEnemyInfo: z.union([z.boolean(), z.undefined()]), // legacy
223
+ autoDisplayEnemyInfo: z.boolean().optional(),
224
224
  isUnharmfulAndAlwaysCountAsKilled: z.boolean(),
225
- hiddenGroup: z.union([z.string(), z.null()]),
226
- randomSpawnGroupKey: z.union([z.string(), z.null(), z.undefined()]), // legacy
227
- randomSpawnGroupPackKey: z.union([z.string(), z.null(), z.undefined()]), // ~
228
- randomType: z.union([z.string(), z.number(), z.undefined()]), // ~
229
- weight: z.union([z.number(), z.undefined()]), // ~
230
- dontBlockWave: z.union([z.boolean(), z.undefined()]), // ~
231
- isValid: z.union([z.boolean(), z.undefined()]), // ~
232
- extraMeta: z.union([z.null(), z.undefined()]), // ~
225
+ hiddenGroup: z.string().nullable(),
226
+ randomSpawnGroupKey: z.string().nullable().optional(),
227
+ randomSpawnGroupPackKey: z.string().nullable().optional(),
228
+ randomType: z.union([z.string(), z.number()]).optional(),
229
+ weight: z.number().optional(),
230
+ dontBlockWave: z.boolean().optional(),
231
+ isValid: z.boolean().optional(),
232
+ extraMeta: z.null().optional(),
233
+ });
234
+ var StageRouteZod = z.strictObject({
235
+ motionMode: z.union([z.string(), z.number()]),
236
+ startPosition: z.strictObject({
237
+ row: z.number(),
238
+ col: z.number(),
239
+ }),
240
+ endPosition: z.strictObject({
241
+ row: z.number(),
242
+ col: z.number(),
243
+ }),
244
+ spawnRandomRange: z.strictObject({
245
+ x: z.number(),
246
+ y: z.number(),
247
+ }),
248
+ spawnOffset: z.strictObject({
249
+ x: z.number(),
250
+ y: z.number(),
251
+ }),
252
+ checkpoints: z.array(z.strictObject({
253
+ type: z.union([z.string(), z.number()]),
254
+ time: z.number(),
255
+ position: z.strictObject({
256
+ row: z.number(),
257
+ col: z.number(),
258
+ }),
259
+ reachOffset: z.strictObject({
260
+ x: z.number(),
261
+ y: z.number(),
262
+ }),
263
+ randomizeReachOffset: z.boolean(),
264
+ reachDistance: z.number(),
265
+ })).nullable(),
266
+ allowDiagonalMove: z.boolean(),
267
+ visitEveryTileCenter: z.boolean(),
268
+ visitEveryNodeCenter: z.boolean(),
269
+ visitEveryCheckPoint: z.boolean().optional(),
233
270
  });
234
271
  var StageDataZod = z.strictObject({
235
272
  options: z.strictObject({
@@ -241,106 +278,102 @@ var StageDataZod = z.strictObject({
241
278
  moveMultiplier: z.number(),
242
279
  steeringEnabled: z.boolean(),
243
280
  isTrainingLevel: z.boolean(),
244
- isHardTrainingLevel: z.union([z.boolean(), z.undefined()]), // legacy
245
- isPredefinedCardsSelectable: z.union([z.boolean(), z.undefined()]), // legacy
246
- maxPlayTime: z.union([z.number(), z.undefined()]), // legacy
281
+ isHardTrainingLevel: z.boolean().optional(),
282
+ isPredefinedCardsSelectable: z.boolean().optional(),
283
+ maxPlayTime: z.number().optional(),
247
284
  functionDisableMask: z.union([z.string(), z.number()]),
248
- configBlackBoard: z.union([z.array(BlackboardZod), z.null(), z.undefined()]), // legacy
285
+ configBlackBoard: z.array(BlackboardZod).nullable().optional(),
249
286
  }),
250
- levelId: z.union([z.string(), z.null()]),
251
- mapId: z.union([z.string(), z.null()]),
252
- bgmEvent: z.union([z.string(), z.null()]),
253
- environmentSe: z.union([z.string(), z.null()]),
287
+ levelId: z.string().nullable(),
288
+ mapId: z.string().nullable(),
289
+ bgmEvent: z.string().nullable(),
290
+ environmentSe: z.string().nullable(),
254
291
  mapData: z.strictObject({
255
292
  map: z.array(z.array(z.number())),
256
293
  tiles: z.array(z.strictObject({
257
294
  tileKey: z.string(),
258
- heightType: z.union([z.string(), z.number()]), // keep number for legacy stages (monster hunter, vignettes, etc.)
259
- buildableType: z.union([z.string(), z.number()]), // ~
260
- passableMask: z.union([z.string(), z.number()]), // ~
261
- playerSideMask: z.union([z.string(), z.number(), z.undefined()]), // ~
262
- blackboard: z.union([z.array(BlackboardZod), z.null()]),
263
- effects: z.union([z.array(StageEffectZod), z.null()]),
295
+ heightType: z.union([z.string(), z.number()]),
296
+ buildableType: z.union([z.string(), z.number()]),
297
+ passableMask: z.union([z.string(), z.number()]),
298
+ playerSideMask: z.union([z.string(), z.number()]).optional(),
299
+ blackboard: z.array(BlackboardZod).nullable(),
300
+ effects: z.array(StageEffectZod).nullable(),
264
301
  })),
265
- blockEdges: z.union([z.array(z.any()), z.null()]),
266
- tags: z.union([z.array(z.string()), z.null()]),
267
- effects: z.union([z.array(StageEffectZod), z.null()]),
268
- layerRects: z.union([z.null(), z.undefined()]),
269
- width: z.number().optional(),
270
- height: z.number().optional(),
271
- }),
272
- tilesDisallowToLocate: z.array(z.any()),
273
- runes: z.union([
274
- z.array(z.strictObject({
275
- difficultyMask: z.union([z.string(), z.number()]), // legacy
276
- key: z.string(),
277
- professionMask: z.union([z.string(), z.number(), z.undefined()]), // legacy
278
- buildableMask: z.union([z.string(), z.number()]), // legacy
279
- blackboard: z.array(BlackboardZod),
280
- })),
281
- z.null()
282
- ]),
283
- globalBuffs: z.union([
284
- z.array(z.strictObject({
285
- prefabKey: z.string(),
286
- blackboard: z.union([z.array(BlackboardZod), z.null()]),
287
- overrideCameraEffect: z.null(),
288
- passProfessionMaskFlag: z.union([z.boolean(), z.undefined()]),
289
- professionMask: z.union([z.string(), z.number(), z.undefined()]),
290
- useExtraData: z.boolean().optional(),
291
- })),
292
- z.null()
293
- ]),
294
- routes: z.array(z.union([
295
- z.strictObject({
296
- motionMode: z.union([z.string(), z.number()]), // keep number for legacy
297
- startPosition: z.strictObject({
298
- row: z.number(),
299
- col: z.number(),
300
- }),
301
- endPosition: z.strictObject({
302
+ blockEdges: z.array(z.strictObject({
303
+ pos: z.strictObject({
302
304
  row: z.number(),
303
305
  col: z.number(),
304
306
  }),
305
- spawnRandomRange: z.strictObject({
306
- x: z.number(),
307
- y: z.number(),
308
- }),
309
- spawnOffset: z.strictObject({
310
- x: z.number(),
311
- y: z.number(),
312
- }),
313
- checkpoints: z.union([
314
- z.array(z.strictObject({
315
- type: z.union([z.string(), z.number()]), // keep number for legacy
316
- time: z.number(),
317
- position: z.strictObject({
318
- row: z.number(),
319
- col: z.number(),
320
- }),
321
- reachOffset: z.strictObject({
322
- x: z.number(),
323
- y: z.number(),
324
- }),
325
- randomizeReachOffset: z.boolean(),
326
- reachDistance: z.number(),
327
- })),
328
- z.null()
329
- ]),
330
- allowDiagonalMove: z.boolean(),
331
- visitEveryTileCenter: z.boolean(),
332
- visitEveryNodeCenter: z.boolean(),
333
- visitEveryCheckPoint: z.union([z.boolean(), z.undefined()]), // legacy
307
+ direction: z.union([z.string(), z.number()]),
308
+ blockMask: z.union([z.string(), z.number()]),
309
+ })).nullable(),
310
+ tags: z.array(z.string()).nullable(),
311
+ effects: z.array(StageEffectZod).nullable(),
312
+ layerRects: z.null().optional(),
313
+ width: z.number().optional(),
314
+ height: z.number().optional(),
315
+ }),
316
+ tilesDisallowToLocate: z.tuple([]),
317
+ runes: z.array(z.strictObject({
318
+ difficultyMask: z.union([z.string(), z.number()]),
319
+ key: z.string(),
320
+ professionMask: z.union([z.string(), z.number()]).optional(),
321
+ buildableMask: z.union([z.string(), z.number()]),
322
+ blackboard: z.array(BlackboardZod),
323
+ })).nullable(),
324
+ globalBuffs: z.array(z.strictObject({
325
+ prefabKey: z.string(),
326
+ blackboard: z.array(BlackboardZod).nullable(),
327
+ overrideCameraEffect: z.null(),
328
+ passProfessionMaskFlag: z.boolean().optional(),
329
+ professionMask: z.union([z.string(), z.number()]).optional(),
330
+ useExtraData: z.boolean().optional(),
331
+ })).nullable(),
332
+ routes: z.array(StageRouteZod.nullable()),
333
+ extraRoutes: z.array(StageRouteZod.nullable()).optional(),
334
+ enemies: z.array(z.strictObject({
335
+ name: z.null(),
336
+ description: z.null(),
337
+ key: z.string(),
338
+ attributes: z.strictObject({
339
+ maxHp: z.number(),
340
+ atk: z.number(),
341
+ def: z.number(),
342
+ magicResistance: z.number(),
343
+ cost: z.number(),
344
+ blockCnt: z.number(),
345
+ moveSpeed: z.number(),
346
+ attackSpeed: z.number(),
347
+ baseAttackTime: z.number(),
348
+ respawnTime: z.number(),
349
+ hpRecoveryPerSec: z.number(),
350
+ spRecoveryPerSec: z.number(),
351
+ maxDeployCount: z.number(),
352
+ maxDeckStackCnt: z.number(),
353
+ tauntLevel: z.number(),
354
+ massLevel: z.number(),
355
+ baseForceLevel: z.number(),
356
+ stunImmune: z.boolean(),
357
+ silenceImmune: z.boolean(),
358
+ sleepImmune: z.boolean(),
359
+ frozenImmune: z.boolean(),
360
+ levitateImmune: z.boolean(),
334
361
  }),
335
- z.null() // legacy
336
- ])),
337
- extraRoutes: z.union([z.array(z.any()), z.undefined()]),
338
- enemies: z.array(z.any()),
362
+ alias: z.null(),
363
+ lifePointReduce: z.number(),
364
+ rangeRadius: z.number(),
365
+ numOfExtraDrops: z.number(),
366
+ viewRadius: z.number(),
367
+ levelType: z.number(),
368
+ talentBlackboard: z.array(BlackboardZod).nullable(),
369
+ skills: z.array(EnemySkillsZod).nullable(),
370
+ spData: EnemySpDataZod.nullable(),
371
+ })),
339
372
  enemyDbRefs: z.array(z.strictObject({
340
373
  useDb: z.boolean(),
341
374
  id: z.string(),
342
375
  level: z.number(),
343
- overwrittenData: z.union([EnemyDataZod, z.null()]),
376
+ overwrittenData: EnemyDataZod.nullable(),
344
377
  })),
345
378
  waves: z.array(z.strictObject({
346
379
  preDelay: z.number(),
@@ -351,32 +384,29 @@ var StageDataZod = z.strictObject({
351
384
  actions: z.array(StageActionZod),
352
385
  name: z.string().nullable().optional(),
353
386
  })),
354
- advancedWaveTag: z.union([z.string(), z.null(), z.undefined()]), // legacy
387
+ advancedWaveTag: z.string().nullable().optional(),
355
388
  name: z.string().nullable().optional(),
356
389
  })),
357
- branches: z.union([
358
- z.record(z.string(), z.strictObject({
359
- phases: z.array(z.strictObject({
360
- preDelay: z.number(),
361
- actions: z.array(StageActionZod),
362
- m_randomActionGroups: z.null().optional(),
363
- m_actionWithRandomSpawn: z.null().optional(),
364
- m_validActionPackKeys: z.null().optional(),
365
- })),
390
+ branches: z.record(z.string(), z.strictObject({
391
+ phases: z.array(z.strictObject({
392
+ preDelay: z.number(),
393
+ actions: z.array(StageActionZod),
394
+ m_randomActionGroups: z.null().optional(),
395
+ m_actionWithRandomSpawn: z.null().optional(),
396
+ m_validActionPackKeys: z.null().optional(),
366
397
  })),
367
- z.null()
368
- ]),
369
- predefines: z.union([StageDefinesZod, z.null()]),
370
- hardPredefines: z.union([StageDefinesZod, z.null(), z.undefined()]),
398
+ })).nullable(),
399
+ predefines: StageDefinesZod.nullable(),
400
+ hardPredefines: StageDefinesZod.nullable().optional(),
371
401
  excludeCharIdList: z.null(),
372
402
  randomSeed: z.number(),
373
- operaConfig: z.union([z.string(), z.null(), z.undefined()]),
374
- runtimeData: z.union([z.null(), z.undefined()]), // legacy
403
+ operaConfig: z.string().nullable().optional(),
404
+ runtimeData: z.null().optional(),
375
405
  });
376
406
  var RogueRelicZod = z.strictObject({
377
407
  id: z.string(),
378
408
  name: z.string(),
379
- description: z.union([z.string(), z.null()]),
409
+ description: z.string().nullable(),
380
410
  usage: z.string(),
381
411
  obtainApproach: z.string(),
382
412
  iconId: z.string(),
@@ -386,7 +416,7 @@ var RogueRelicZod = z.strictObject({
386
416
  value: z.number(),
387
417
  sortId: z.number(),
388
418
  canSacrifice: z.boolean(),
389
- unlockCondDesc: z.union([z.string(), z.null()]),
419
+ unlockCondDesc: z.string().nullable(),
390
420
  });
391
421
  var RogueStageZod = z.strictObject({
392
422
  excel: z.strictObject({
@@ -397,11 +427,11 @@ var RogueStageZod = z.strictObject({
397
427
  name: z.string(),
398
428
  loadingPicId: z.string(),
399
429
  description: z.string(),
400
- eliteDesc: z.union([z.string(), z.null()]),
430
+ eliteDesc: z.string().nullable(),
401
431
  isBoss: z.number(),
402
432
  isElite: z.number(),
403
433
  difficulty: z.string(),
404
- capsulePool: z.union([z.string(), z.null()]),
434
+ capsulePool: z.string().nullable(),
405
435
  capsuleProb: z.number(),
406
436
  vutresProb: z.array(z.number()),
407
437
  boxProb: z.array(z.number()),
@@ -416,8 +446,8 @@ var RogueVariationZod = z.strictObject({
416
446
  innerName: z.string(),
417
447
  functionDesc: z.string(),
418
448
  desc: z.string(),
419
- iconId: z.union([z.string(), z.null()]),
420
- sound: z.union([z.string(), z.null()]),
449
+ iconId: z.string().nullable(),
450
+ sound: z.string().nullable(),
421
451
  });
422
452
  var SandboxStageZod = z.strictObject({
423
453
  excel: z.strictObject({
@@ -462,7 +492,7 @@ exports.EnemyZod = z.strictObject({
462
492
  excel: z.strictObject({
463
493
  enemyId: z.string(),
464
494
  enemyIndex: z.string(),
465
- enemyTags: z.union([z.array(z.string()), z.null()]),
495
+ enemyTags: z.array(z.string()).nullable(),
466
496
  sortId: z.number(),
467
497
  name: z.string(),
468
498
  enemyLevel: z.enum(['NORMAL', 'ELITE', 'BOSS']),
@@ -470,7 +500,7 @@ exports.EnemyZod = z.strictObject({
470
500
  attackType: z.null(),
471
501
  ability: z.null(),
472
502
  isInvalidKilled: z.boolean(),
473
- overrideKillCntInfos: z.record(z.string(), z.any()),
503
+ overrideKillCntInfos: z.record(z.string(), z.number()),
474
504
  hideInHandbook: z.boolean(),
475
505
  abilityList: z.array(z.strictObject({
476
506
  text: z.string(),
@@ -498,8 +528,8 @@ exports.GameEventZod = z.strictObject({
498
528
  rewardEndTime: z.number(),
499
529
  displayOnHome: z.boolean(),
500
530
  hasStage: z.boolean(),
501
- templateShopId: z.union([z.string(), z.null()]),
502
- medalGroupId: z.union([z.string(), z.null()]),
531
+ templateShopId: z.string().nullable(),
532
+ medalGroupId: z.string().nullable(),
503
533
  ungroupedMedalIds: z.array(z.string()).nullable(),
504
534
  isReplicate: z.boolean(),
505
535
  needFixedSync: z.boolean(),
@@ -516,14 +546,14 @@ exports.ItemZod = z.strictObject({
516
546
  data: z.strictObject({
517
547
  itemId: z.string(),
518
548
  name: z.string(),
519
- description: z.union([z.string(), z.null()]),
549
+ description: z.string().nullable(),
520
550
  rarity: z.string(),
521
551
  iconId: z.string(),
522
552
  overrideBkg: z.null(),
523
- stackIconId: z.union([z.string(), z.null()]),
553
+ stackIconId: z.string().nullable(),
524
554
  sortId: z.number(),
525
- usage: z.union([z.string(), z.null()]),
526
- obtainApproach: z.union([z.string(), z.null()]),
555
+ usage: z.string().nullable(),
556
+ obtainApproach: z.string().nullable(),
527
557
  hideInItemGet: z.boolean(),
528
558
  classifyType: z.string(),
529
559
  itemType: z.string(),
@@ -536,7 +566,7 @@ exports.ItemZod = z.strictObject({
536
566
  formulaId: z.string(),
537
567
  })),
538
568
  }),
539
- formula: z.union([ManufactFormulaZod, WorkshopFormulaZod, z.null()]),
569
+ formula: z.union([ManufactFormulaZod, WorkshopFormulaZod]).nullable(),
540
570
  });
541
571
  exports.ModuleZod = z.strictObject({
542
572
  info: z.strictObject({
@@ -546,68 +576,59 @@ exports.ModuleZod = z.strictObject({
546
576
  uniEquipDesc: z.string(),
547
577
  typeIcon: z.string(),
548
578
  typeName1: z.string(),
549
- typeName2: z.union([z.string(), z.null()]),
579
+ typeName2: z.string().nullable(),
550
580
  equipShiningColor: z.string(),
551
581
  showEvolvePhase: z.string(),
552
582
  unlockEvolvePhase: z.string(),
553
583
  charId: z.string(),
554
- tmplId: z.union([z.string(), z.null()]),
584
+ tmplId: z.string().nullable(),
555
585
  showLevel: z.number(),
556
586
  unlockLevel: z.number(),
557
587
  unlockFavorPoint: z.number(),
558
588
  missionList: z.array(z.string()),
559
- itemCost: z.union([z.record(z.string(), z.array(LevelUpCostZod)), z.null()]),
589
+ itemCost: z.record(z.string(), z.array(LevelUpCostZod)).nullable(),
560
590
  type: z.string(),
561
591
  uniEquipGetTime: z.number(),
562
592
  charEquipOrder: z.number(),
563
593
  }),
564
- data: z.union([
565
- z.strictObject({
566
- phases: z.array(z.strictObject({
567
- equipLevel: z.number(),
568
- parts: z.array(z.strictObject({
569
- resKey: z.union([z.string(), z.null()]),
570
- target: z.string(),
571
- isToken: z.boolean(),
572
- addOrOverrideTalentDataBundle: z.strictObject({
573
- candidates: z.union([
574
- z.array(z.strictObject({
575
- displayRangeId: z.boolean(),
576
- upgradeDescription: z.string(),
577
- talentIndex: z.number(),
578
- unlockCondition: OperatorUnlockCondZod,
579
- requiredPotentialRank: z.number(),
580
- prefabKey: z.string(),
581
- name: z.union([z.string(), z.null()]),
582
- description: z.union([z.string(), z.null()]),
583
- rangeId: z.union([z.string(), z.null()]),
584
- blackboard: z.array(BlackboardZod),
585
- tokenKey: z.string().optional(),
586
- })),
587
- z.null()
588
- ]),
589
- }),
590
- overrideTraitDataBundle: z.strictObject({
591
- candidates: z.union([
592
- z.array(z.strictObject({
593
- additionalDescription: z.union([z.string(), z.null()]),
594
- unlockCondition: OperatorUnlockCondZod,
595
- requiredPotentialRank: z.number(),
596
- blackboard: z.array(BlackboardZod),
597
- overrideDescripton: z.union([z.string(), z.null()]),
598
- prefabKey: z.union([z.string(), z.null()]),
599
- rangeId: z.union([z.string(), z.null()]),
600
- })),
601
- z.null()
602
- ]),
603
- }),
604
- })),
605
- attributeBlackboard: z.array(BlackboardZod),
606
- tokenAttributeBlackboard: z.record(z.string(), z.array(BlackboardZod)),
594
+ data: z.strictObject({
595
+ phases: z.array(z.strictObject({
596
+ equipLevel: z.number(),
597
+ parts: z.array(z.strictObject({
598
+ resKey: z.string().nullable(),
599
+ target: z.string(),
600
+ isToken: z.boolean(),
601
+ addOrOverrideTalentDataBundle: z.strictObject({
602
+ candidates: z.array(z.strictObject({
603
+ displayRangeId: z.boolean(),
604
+ upgradeDescription: z.string(),
605
+ talentIndex: z.number(),
606
+ unlockCondition: OperatorUnlockCondZod,
607
+ requiredPotentialRank: z.number(),
608
+ prefabKey: z.string(),
609
+ name: z.string().nullable(),
610
+ description: z.string().nullable(),
611
+ rangeId: z.string().nullable(),
612
+ blackboard: z.array(BlackboardZod),
613
+ tokenKey: z.string().optional(),
614
+ })).nullable(),
615
+ }),
616
+ overrideTraitDataBundle: z.strictObject({
617
+ candidates: z.array(z.strictObject({
618
+ additionalDescription: z.string().nullable(),
619
+ unlockCondition: OperatorUnlockCondZod,
620
+ requiredPotentialRank: z.number(),
621
+ blackboard: z.array(BlackboardZod),
622
+ overrideDescripton: z.string().nullable(),
623
+ prefabKey: z.string().nullable(),
624
+ rangeId: z.string().nullable(),
625
+ })).nullable(),
626
+ }),
607
627
  })),
608
- }),
609
- z.null()
610
- ]),
628
+ attributeBlackboard: z.array(BlackboardZod),
629
+ tokenAttributeBlackboard: z.record(z.string(), z.array(BlackboardZod)),
630
+ })),
631
+ }).nullable(),
611
632
  });
612
633
  exports.ParadoxZod = z.strictObject({
613
634
  excel: z.strictObject({
@@ -649,12 +670,12 @@ exports.SandboxActZod = z.strictObject({
649
670
  });
650
671
  exports.SkillZod = z.strictObject({
651
672
  skillId: z.string(),
652
- iconId: z.union([z.string(), z.null()]),
673
+ iconId: z.string().nullable(),
653
674
  hidden: z.boolean(),
654
675
  levels: z.array(z.strictObject({
655
676
  name: z.string(),
656
- rangeId: z.union([z.string(), z.null()]),
657
- description: z.union([z.string(), z.null()]),
677
+ rangeId: z.string().nullable(),
678
+ description: z.string().nullable(),
658
679
  skillType: z.string(),
659
680
  durationType: z.string(),
660
681
  spData: z.strictObject({
@@ -665,7 +686,7 @@ exports.SkillZod = z.strictObject({
665
686
  initSp: z.number(),
666
687
  increment: z.number(),
667
688
  }),
668
- prefabId: z.union([z.string(), z.null()]),
689
+ prefabId: z.string().nullable(),
669
690
  duration: z.number(),
670
691
  blackboard: z.array(BlackboardZod),
671
692
  })),
@@ -673,45 +694,42 @@ exports.SkillZod = z.strictObject({
673
694
  exports.SkinZod = z.strictObject({
674
695
  skinId: z.string(),
675
696
  charId: z.string(),
676
- tokenSkinMap: z.union([
677
- z.array(z.strictObject({
678
- tokenId: z.string(),
679
- tokenSkinId: z.string(),
680
- })),
681
- z.null()
682
- ]),
683
- illustId: z.union([z.string(), z.null()]),
684
- dynIllustId: z.union([z.string(), z.null()]),
697
+ tokenSkinMap: z.array(z.strictObject({
698
+ tokenId: z.string(),
699
+ tokenSkinId: z.string(),
700
+ })).nullable(),
701
+ illustId: z.string().nullable(),
702
+ dynIllustId: z.string().nullable(),
685
703
  avatarId: z.string(),
686
- portraitId: z.union([z.string(), z.null()]),
687
- dynPortraitId: z.union([z.string(), z.null()]),
688
- dynEntranceId: z.union([z.string(), z.null()]),
689
- buildingId: z.union([z.string(), z.null()]),
704
+ portraitId: z.string().nullable(),
705
+ dynPortraitId: z.string().nullable(),
706
+ dynEntranceId: z.string().nullable(),
707
+ buildingId: z.string().nullable(),
690
708
  battleSkin: z.strictObject({
691
709
  overwritePrefab: z.boolean(),
692
- skinOrPrefabId: z.union([z.string(), z.null()]),
710
+ skinOrPrefabId: z.string().nullable(),
693
711
  }),
694
712
  isBuySkin: z.boolean(),
695
- tmplId: z.union([z.string(), z.null()]),
696
- voiceId: z.union([z.string(), z.null()]),
713
+ tmplId: z.string().nullable(),
714
+ voiceId: z.string().nullable(),
697
715
  voiceType: z.string(),
698
716
  displaySkin: z.strictObject({
699
- skinName: z.union([z.string(), z.null()]),
700
- colorList: z.union([z.array(z.string()), z.null()]),
717
+ skinName: z.string().nullable(),
718
+ colorList: z.array(z.string()).nullable(),
701
719
  titleList: z.array(z.string()).nullable(),
702
- modelName: z.union([z.string(), z.null()]),
703
- drawerList: z.union([z.array(z.string()), z.null()]),
720
+ modelName: z.string().nullable(),
721
+ drawerList: z.array(z.string()).nullable(),
704
722
  designerList: z.array(z.string()).nullable(),
705
- skinGroupId: z.union([z.string(), z.null()]),
706
- skinGroupName: z.union([z.string(), z.null()]),
723
+ skinGroupId: z.string().nullable(),
724
+ skinGroupName: z.string().nullable(),
707
725
  skinGroupSortIndex: z.number(),
708
- content: z.union([z.string(), z.null()]),
709
- dialog: z.union([z.string(), z.null()]),
710
- usage: z.union([z.string(), z.null()]),
711
- description: z.union([z.string(), z.null()]),
712
- obtainApproach: z.union([z.string(), z.null()]),
726
+ content: z.string().nullable(),
727
+ dialog: z.string().nullable(),
728
+ usage: z.string().nullable(),
729
+ description: z.string().nullable(),
730
+ obtainApproach: z.string().nullable(),
713
731
  sortId: z.number(),
714
- displayTagId: z.union([z.string(), z.null()]),
732
+ displayTagId: z.string().nullable(),
715
733
  getTime: z.number(),
716
734
  onYear: z.number(),
717
735
  onPeriod: z.number(),
@@ -723,31 +741,28 @@ exports.StageZod = z.strictObject({
723
741
  difficulty: z.string(),
724
742
  performanceStageFlag: z.string(),
725
743
  diffGroup: z.string(),
726
- unlockCondition: z.array(z.union([
727
- z.strictObject({
728
- stageId: z.string(),
729
- completeState: z.string(),
730
- }),
731
- z.null()
732
- ])),
744
+ unlockCondition: z.strictObject({
745
+ stageId: z.string(),
746
+ completeState: z.string(),
747
+ }).nullable(),
733
748
  stageId: z.string(),
734
749
  levelId: z.string(),
735
750
  zoneId: z.string(),
736
751
  code: z.string(),
737
752
  name: z.string(),
738
753
  description: z.string(),
739
- hardStagedId: z.union([z.string(), z.null()]),
740
- dangerLevel: z.union([z.string(), z.null()]),
754
+ hardStagedId: z.string().nullable(),
755
+ dangerLevel: z.string().nullable(),
741
756
  dangerPoint: z.number(),
742
757
  loadingPicId: z.string(),
743
758
  canPractice: z.boolean(),
744
759
  canBattleReplay: z.boolean(),
745
760
  apCost: z.number(),
746
761
  apFailReturn: z.number(),
747
- etItemId: z.union([z.string(), z.null()]),
762
+ etItemId: z.string().nullable(),
748
763
  etCost: z.number(),
749
764
  etFailReturn: z.number(),
750
- etButtonStyle: z.union([z.string(), z.null()]),
765
+ etButtonStyle: z.string().nullable(),
751
766
  apProtectTimes: z.number(),
752
767
  diamondOnceDrop: z.number(),
753
768
  practiceTicketCost: z.number(),
@@ -759,7 +774,7 @@ exports.StageZod = z.strictObject({
759
774
  passFavor: z.number(),
760
775
  completeFavor: z.number(),
761
776
  slProgress: z.number(),
762
- displayMainItem: z.union([z.string(), z.null()]),
777
+ displayMainItem: z.string().nullable(),
763
778
  hilightMark: z.boolean(),
764
779
  bossMark: z.boolean(),
765
780
  isPredefined: z.boolean(),
@@ -788,32 +803,26 @@ exports.StageZod = z.strictObject({
788
803
  canUseTech: z.boolean(),
789
804
  canUseTrapTool: z.boolean(),
790
805
  canUseBattlePerformance: z.boolean(),
791
- startButtonOverrideId: z.union([z.string(), z.null()]),
806
+ startButtonOverrideId: z.string().nullable(),
792
807
  isStagePatch: z.boolean(),
793
- mainStageId: z.union([z.string(), z.null()]),
794
- extraCondition: z.union([
795
- z.array(z.strictObject({
796
- index: z.number(),
797
- template: z.string(),
798
- unlockParam: z.array(z.string()),
799
- })),
800
- z.null()
801
- ]),
802
- extraInfo: z.union([
803
- z.array(z.strictObject({
804
- stageId: z.string(),
805
- rewards: z.array(z.strictObject({
806
- id: z.string(),
807
- count: z.number(),
808
- type: z.string(),
809
- })),
810
- progressInfo: z.strictObject({
811
- progressType: z.string(),
812
- descList: z.record(z.string(), z.string()),
813
- })
808
+ mainStageId: z.string().nullable(),
809
+ extraCondition: z.strictObject({
810
+ index: z.number(),
811
+ template: z.string(),
812
+ unlockParam: z.array(z.string()),
813
+ }).nullable(),
814
+ extraInfo: z.array(z.strictObject({
815
+ stageId: z.string(),
816
+ rewards: z.array(z.strictObject({
817
+ id: z.string(),
818
+ count: z.number(),
819
+ type: z.string(),
814
820
  })),
815
- z.null()
816
- ])
821
+ progressInfo: z.strictObject({
822
+ progressType: z.string(),
823
+ descList: z.record(z.string(), z.string()),
824
+ })
825
+ })).nullable(),
817
826
  }),
818
827
  levels: StageDataZod,
819
828
  });
@@ -832,44 +841,41 @@ exports.OperatorZod = z.strictObject({
832
841
  }),
833
842
  skill: exports.BaseZod,
834
843
  })),
835
- paradox: z.union([exports.ParadoxZod, z.null()]),
844
+ paradox: exports.ParadoxZod.nullable(),
836
845
  data: z.strictObject({
837
846
  name: z.string(),
838
847
  description: z.string(),
839
848
  canUseGeneralPotentialItem: z.boolean(),
840
849
  canUseActivityPotentialItem: z.boolean(),
841
- potentialItemId: z.union([z.string(), z.null()]),
850
+ potentialItemId: z.string().nullable(),
842
851
  activityPotentialItemId: z.string().nullable(),
843
852
  classicPotentialItemId: z.string().nullable(),
844
- nationId: z.union([z.string(), z.null()]),
845
- groupId: z.union([z.string(), z.null()]),
846
- teamId: z.union([z.string(), z.null()]),
847
- displayNumber: z.union([z.string(), z.null()]),
853
+ nationId: z.string().nullable(),
854
+ groupId: z.string().nullable(),
855
+ teamId: z.string().nullable(),
856
+ displayNumber: z.string().nullable(),
848
857
  appellation: z.string(),
849
858
  position: z.string(),
850
859
  tagList: z.array(z.string()),
851
- itemUsage: z.union([z.string(), z.null()]),
852
- itemDesc: z.union([z.string(), z.null()]),
853
- itemObtainApproach: z.union([z.string(), z.null()]),
860
+ itemUsage: z.string().nullable(),
861
+ itemDesc: z.string().nullable(),
862
+ itemObtainApproach: z.string().nullable(),
854
863
  isNotObtainable: z.boolean(),
855
864
  isSpChar: z.boolean(),
856
865
  maxPotentialLevel: z.number(),
857
866
  rarity: z.string(),
858
867
  profession: z.string(),
859
868
  subProfessionId: z.string(),
860
- trait: z.union([
861
- z.strictObject({
862
- candidates: z.array(z.strictObject({
863
- unlockCondition: OperatorUnlockCondZod,
864
- requiredPotentialRank: z.number(),
865
- blackboard: z.array(BlackboardZod),
866
- overrideDescripton: z.union([z.string(), z.null()]),
867
- prefabKey: z.union([z.string(), z.null()]),
868
- rangeId: z.union([z.string(), z.null()]),
869
- })),
870
- }),
871
- z.null()
872
- ]),
869
+ trait: z.strictObject({
870
+ candidates: z.array(z.strictObject({
871
+ unlockCondition: OperatorUnlockCondZod,
872
+ requiredPotentialRank: z.number(),
873
+ blackboard: z.array(BlackboardZod),
874
+ overrideDescripton: z.string().nullable(),
875
+ prefabKey: z.string().nullable(),
876
+ rangeId: z.string().nullable(),
877
+ })),
878
+ }).nullable(),
873
879
  phases: z.array(z.strictObject({
874
880
  characterPrefabKey: z.string(),
875
881
  rangeId: z.string(),
@@ -879,55 +885,49 @@ exports.OperatorZod = z.strictObject({
879
885
  })),
880
886
  skills: z.array(z.strictObject({
881
887
  skillId: z.string(),
882
- overridePrefabKey: z.union([z.string(), z.null()]),
883
- overrideTokenKey: z.union([z.string(), z.null()]),
888
+ overridePrefabKey: z.string().nullable(),
889
+ overrideTokenKey: z.string().nullable(),
884
890
  levelUpCostCond: z.array(LevelUpCostCondZod),
885
891
  unlockCond: OperatorUnlockCondZod,
886
892
  })),
887
893
  displayTokenDict: z.record(z.boolean()).nullable(),
888
- talents: z.union([
889
- z.array(z.strictObject({
890
- candidates: z.array(z.strictObject({
891
- unlockCondition: OperatorUnlockCondZod,
892
- requiredPotentialRank: z.number(),
893
- prefabKey: z.string(),
894
- name: z.string(),
895
- description: z.string(),
896
- rangeId: z.union([z.string(), z.null()]),
897
- blackboard: z.array(BlackboardZod),
898
- tokenKey: z.string().nullable(),
899
- })),
894
+ talents: z.array(z.strictObject({
895
+ candidates: z.array(z.strictObject({
896
+ unlockCondition: OperatorUnlockCondZod,
897
+ requiredPotentialRank: z.number(),
898
+ prefabKey: z.string(),
899
+ name: z.string(),
900
+ description: z.string(),
901
+ rangeId: z.string().nullable(),
902
+ blackboard: z.array(BlackboardZod),
903
+ tokenKey: z.string().nullable(),
900
904
  })),
901
- z.null()
902
- ]),
905
+ })).nullable(),
903
906
  potentialRanks: z.array(z.strictObject({
904
907
  type: z.string(),
905
908
  description: z.string(),
906
- buff: z.union([
907
- z.strictObject({
908
- attributes: z.strictObject({
909
- abnormalFlags: z.null(),
910
- abnormalImmunes: z.null(),
911
- abnormalAntis: z.null(),
912
- abnormalCombos: z.null(),
913
- abnormalComboImmunes: z.null(),
914
- attributeModifiers: z.array(z.strictObject({
915
- attributeType: z.string(),
916
- formulaItem: z.string(),
917
- value: z.number(),
918
- loadFromBlackboard: z.boolean(),
919
- fetchBaseValueFromSourceEntity: z.boolean(),
920
- })),
921
- }),
909
+ buff: z.strictObject({
910
+ attributes: z.strictObject({
911
+ abnormalFlags: z.null(),
912
+ abnormalImmunes: z.null(),
913
+ abnormalAntis: z.null(),
914
+ abnormalCombos: z.null(),
915
+ abnormalComboImmunes: z.null(),
916
+ attributeModifiers: z.array(z.strictObject({
917
+ attributeType: z.string(),
918
+ formulaItem: z.string(),
919
+ value: z.number(),
920
+ loadFromBlackboard: z.boolean(),
921
+ fetchBaseValueFromSourceEntity: z.boolean(),
922
+ })),
922
923
  }),
923
- z.null()
924
- ]),
924
+ }).nullable(),
925
925
  equivalentCost: z.null(),
926
926
  })),
927
927
  favorKeyFrames: z.array(AttributesKeyFrameZod),
928
928
  allSkillLvlup: z.array(z.strictObject({
929
929
  unlockCond: OperatorUnlockCondZod,
930
- lvlUpCost: z.union([z.array(LevelUpCostZod), z.null()]),
930
+ lvlUpCost: z.array(LevelUpCostZod).nullable(),
931
931
  })),
932
932
  }),
933
933
  });