types-nora-api 0.0.235 → 0.0.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/classes.d.ts CHANGED
@@ -4,4 +4,1543 @@ declare const CAPACIDADES: {
4
4
  readonly ADMINISTRADOR__SUDO__BURLAR_MODO_MANUTENÇÃO: "ADMINISTRADOR.SUDO.BURLAR_MODO_MANUTENÇÃO";
5
5
  readonly ARTISTA__CRIACAO__UPLOAD_IMAGEM: "ARTISTA.CRIACAO.UPLOAD_IMAGEM";
6
6
  };
7
- export { CAPACIDADES };
7
+ declare const TIPOS_IMAGEM: {
8
+ readonly AVATAR_PERSONAGEM: {
9
+ readonly id: 2;
10
+ readonly nome: "avatar_personagem";
11
+ };
12
+ readonly IMAGEM_ESPECIAL_ARTISTA: {
13
+ readonly id: 3;
14
+ readonly nome: "imagem_especial_artista";
15
+ };
16
+ readonly RECURSOS_INTERNOS: {
17
+ readonly id: 1;
18
+ readonly nome: "recursos_internos";
19
+ };
20
+ };
21
+ type CtxAcesso = {
22
+ estaAutenticado: boolean;
23
+ verificarCapacidade: (capacidade: Capacidade) => boolean;
24
+ };
25
+ declare function temSudoBurlarCapacidades(ctx: CtxAcesso): boolean;
26
+ interface IPermissoesEstado {
27
+ id: number;
28
+ chave: string;
29
+ descricao: string;
30
+ temPermissao: boolean;
31
+ }
32
+ type PermissoesEstadoDto = IPermissoesEstado;
33
+ interface IPermissoesItem {
34
+ id: number;
35
+ codigo: string;
36
+ descricao: string;
37
+ itemPai: PermissoesItemDto | null;
38
+ itensFilhos: PermissoesItemDto[];
39
+ }
40
+ type PermissoesItemDto = IPermissoesItem;
41
+ interface IPermissoesUsuario {
42
+ fkPermissoesItemId: number;
43
+ fkUsuarioId: number;
44
+ fkPermissoesEstadoId: number;
45
+ permissoesItem: PermissoesItemDto;
46
+ usuario: UsuarioDto;
47
+ permissoesEstado: PermissoesEstadoDto;
48
+ }
49
+ type PermissoesUsuarioDto = IPermissoesUsuario;
50
+ interface IPermissoesUsuariosHistorico {
51
+ id: number;
52
+ usuario: UsuarioDto;
53
+ permissaoItem: PermissoesItemDto;
54
+ permissaoEstadoAnterior: PermissoesEstadoDto | null;
55
+ permissaoEstadoAtual: PermissoesEstadoDto;
56
+ usuarioAlterou: UsuarioDto | null;
57
+ dataCriacao: Date;
58
+ mensagem: string | null;
59
+ }
60
+ type PermissoesUsuariosHistoricoDto = IPermissoesUsuariosHistorico;
61
+ interface IArcoAventura {
62
+ id: number;
63
+ nome: string;
64
+ aplicaNomeArcoAventura: boolean;
65
+ }
66
+ type ArcoAventuraDto = IArcoAventura;
67
+ interface IAventura {
68
+ id: number;
69
+ geracao: GeracaoDto;
70
+ imagemCapa: ImagemDto | null;
71
+ detalheRascunhoAventura: DetalheRascunhoAventuraDto;
72
+ arco: ArcoAventuraDto | null;
73
+ gruposAventura: GrupoAventuraDto[] | null;
74
+ titulo: string;
75
+ dataCriacao: Date;
76
+ nomeCompletoAventura: string;
77
+ temApenasUmGrupo: boolean;
78
+ estadoAtual: AventuraEstado;
79
+ dataInicioAventura: Date | null;
80
+ dataFimAventura: Date | null;
81
+ }
82
+ type AventuraDto = IAventura;
83
+ interface IConviteGrupoAventuraPersonagem {
84
+ id: number;
85
+ grupoAventura: GrupoAventuraDto;
86
+ usuario: UsuarioDto;
87
+ respostaConvite: RespostaConviteDto;
88
+ dataCriacao: Date;
89
+ }
90
+ type ConviteGrupoAventuraPersonagemDto = IConviteGrupoAventuraPersonagem;
91
+ interface IGrupoAventura {
92
+ id: number;
93
+ nome: string;
94
+ aventura: AventuraDto;
95
+ usuarioMestre: UsuarioDto;
96
+ linkTrailerYoutube: LinkDto;
97
+ linkPlaylistYoutube: LinkDto;
98
+ linkSerieSpotify: LinkDto;
99
+ detalhesSessoesAventuras: DetalheSessaoAventuraDto[];
100
+ personagensDaAventura: GrupoAventuraPersonagemDto[];
101
+ sessaoFinal: SessaoDto | null;
102
+ dataPrevisaoInicio: Date | null;
103
+ ddsPadrao: number | null;
104
+ recorrencia: string | null;
105
+ horaInicio: string | null;
106
+ nomeUnicoGrupoAventura: string;
107
+ dataQueIniciou: Date | null;
108
+ dataQueEncerrou: Date | null;
109
+ estadoAtual: AventuraEstado;
110
+ obtemTextoInformacionalOcorrencia: string | null;
111
+ sessaoMaisRecente: SessaoDto | null;
112
+ numeroSessoesFinalizadasGrupoAventura: number;
113
+ duracaoGrupoAventuraEmSegundos: number | null;
114
+ tempoProximaSessao: string | null;
115
+ }
116
+ type GrupoAventuraDto = IGrupoAventura;
117
+ interface IGrupoAventuraPersonagem {
118
+ fkGruposAventurasId: number;
119
+ fkPersonagensId: number;
120
+ grupoAventura: GrupoAventuraDto;
121
+ personagem: PersonagemDto;
122
+ }
123
+ type GrupoAventuraPersonagemDto = IGrupoAventuraPersonagem;
124
+ interface IRespostaConvite {
125
+ fkConviteGrupoAventuraPersonagemId: number;
126
+ fkPersonagensId: number;
127
+ convite: ConviteGrupoAventuraPersonagemDto;
128
+ personagemVinculado: PersonagemDto;
129
+ dataResposta: Date;
130
+ criouNovoPersonagem: boolean;
131
+ }
132
+ type RespostaConviteDto = IRespostaConvite;
133
+ interface IVariavelAmbiente {
134
+ id: number;
135
+ chave: string;
136
+ tipo: TipoVariavelAmbiente;
137
+ valor: boolean | string | number;
138
+ descricao: string | null;
139
+ dataCriacao: Date;
140
+ dataAtualizacao: Date;
141
+ }
142
+ type VariavelAmbienteDto = IVariavelAmbiente;
143
+ interface IConquista {
144
+ id: number;
145
+ tipoConquista: TipoConquistaDto;
146
+ nome: string;
147
+ descricao: string;
148
+ }
149
+ type ConquistaDto = IConquista;
150
+ interface ITipoConquista {
151
+ id: number;
152
+ nome: string;
153
+ }
154
+ type TipoConquistaDto = ITipoConquista;
155
+ interface IDetalheSessaoAventura {
156
+ fkSessaoId: number;
157
+ sessao: SessaoDto;
158
+ grupoAventura: GrupoAventuraDto;
159
+ episodio: number;
160
+ episodioPorExtenso: string;
161
+ nomeUnico: string;
162
+ }
163
+ type DetalheSessaoAventuraDto = IDetalheSessaoAventura;
164
+ interface IDetalheSessaoCanonica {
165
+ fkSessaoId: number;
166
+ sessao: SessaoDto;
167
+ linkSessaoYoutube: LinkDto;
168
+ linkSessaoSpotify: LinkDto;
169
+ capitulos: CapituloSessaoCanonica[];
170
+ detalhes: string;
171
+ }
172
+ type DetalheSessaoCanonicaDto = IDetalheSessaoCanonica;
173
+ type CapituloSessaoCanonica = {
174
+ descricao: string;
175
+ momentoInicioEmSegundos: number;
176
+ };
177
+ interface IDetalheSessaoUnica {
178
+ fkSessaoId: number;
179
+ sessao: SessaoDto;
180
+ rascunho?: RascunhoDto;
181
+ usuarioMestre: UsuarioDto;
182
+ participantesSessaoUnica: ParticipanteSessaoUnicaDto[];
183
+ }
184
+ type DetalheSessaoUnicaDto = IDetalheSessaoUnica;
185
+ interface IParticipanteSessaoUnica {
186
+ id: number;
187
+ detalheSessaoUnica: DetalheSessaoUnicaDto;
188
+ usuario: UsuarioDto;
189
+ personagem: PersonagemDto | null;
190
+ valido: boolean;
191
+ }
192
+ type ParticipanteSessaoUnicaDto = IParticipanteSessaoUnica;
193
+ interface ICoeficienteGanhoEstatisticaClasse {
194
+ id: number;
195
+ classe: ClasseDto;
196
+ estatisticaDanificavel: EstatisticaDanificavelDto;
197
+ ganhosRelativos: GanhoRelativoCoeficienteAtributoDto[];
198
+ coeficiente: number;
199
+ }
200
+ type CoeficienteGanhoEstatisticaClasseDto = ICoeficienteGanhoEstatisticaClasse;
201
+ interface IGanhoNivelClasse {
202
+ fkNivelId: number;
203
+ fkTipoGanhoNivelId: number;
204
+ fkClassesId: number;
205
+ nivel: NivelDto;
206
+ tipoGanhoNivel: TipoGanhoNivelDto;
207
+ classe: ClasseDto;
208
+ dados: DadosDoTipoGanho;
209
+ }
210
+ type GanhoNivelClasseDto = IGanhoNivelClasse;
211
+ type DadosDoTipoGanho = DadosGanho_Atributos | DadosGanho_Pericias | DadosGanho_Estatisticas | DadosGanho_Classes | DadosGanho_ValorMaximoAtributo | DadosGanho_PontosHabilidadesEspeciais | DadosGanho_PontosHabilidadesParanormais | DadosGanho_PontosHabilidadeElemental;
212
+ type DadosGanho_Atributos = {
213
+ ganhos: number;
214
+ trocas: number;
215
+ };
216
+ type DadosGanho_Pericias = {
217
+ comum?: {
218
+ idPatente: number;
219
+ ganhos: number;
220
+ trocas: number;
221
+ }[];
222
+ livre?: {
223
+ ganhos: number;
224
+ trocas: number;
225
+ };
226
+ };
227
+ type DadosGanho_Estatisticas = {
228
+ idEstatistica: number;
229
+ valorAumento: number;
230
+ }[];
231
+ type DadosGanho_Classes = {
232
+ selecao: boolean;
233
+ };
234
+ type DadosGanho_ValorMaximoAtributo = {
235
+ aumento: boolean;
236
+ };
237
+ type DadosGanho_PontosHabilidadesEspeciais = {
238
+ valorAumento: number;
239
+ };
240
+ type DadosGanho_PontosHabilidadesParanormais = {
241
+ valorAumento: number;
242
+ };
243
+ type DadosGanho_PontosHabilidadeElemental = {
244
+ valorAumento: number;
245
+ };
246
+ interface IGanhoRelativoCoeficienteAtributo {
247
+ fkCoeficientesGanhoEstatisticaClasseId: number;
248
+ fkAtributosId: number;
249
+ coeficiente: CoeficienteGanhoEstatisticaClasseDto;
250
+ atributo: AtributoDto;
251
+ valorPorcentagem: number;
252
+ }
253
+ type GanhoRelativoCoeficienteAtributoDto = IGanhoRelativoCoeficienteAtributo;
254
+ interface ITipoGanhoNivel {
255
+ id: number;
256
+ nome: string;
257
+ ordem: number;
258
+ }
259
+ type TipoGanhoNivelDto = ITipoGanhoNivel;
260
+ interface IGeracao {
261
+ id: number;
262
+ aventuras: AventuraDto[] | null;
263
+ nome: string | null;
264
+ anoInicio: number | null;
265
+ }
266
+ type GeracaoDto = IGeracao;
267
+ interface IImagem {
268
+ id: number;
269
+ uuid: string;
270
+ validatedBy: UsuarioDto | null;
271
+ usuario: UsuarioDto | null;
272
+ uploader: UsuarioDto | null;
273
+ tipoImagem: TipoImagemDto;
274
+ filename: string;
275
+ status: string;
276
+ resolution: string;
277
+ quality: string;
278
+ folder: string;
279
+ originalName: string;
280
+ mimeType: string;
281
+ size: number;
282
+ isPublic: boolean;
283
+ rejectionReason: string | null;
284
+ createdAt: Date;
285
+ updatedAt: Date;
286
+ fullPath: string;
287
+ }
288
+ type ImagemDto = IImagem;
289
+ interface ITipoImagem {
290
+ id: number;
291
+ nome: string;
292
+ }
293
+ type TipoImagemDto = ITipoImagem;
294
+ interface IAlcance {
295
+ id: number;
296
+ nome: string;
297
+ numeroMetros: number;
298
+ descricao: string | null;
299
+ }
300
+ type AlcanceDto = IAlcance;
301
+ interface IAtributo {
302
+ id: number;
303
+ linhaEfeito: LinhaEfeitoDto;
304
+ pericias: PericiaDto[];
305
+ nome: string;
306
+ descricao: string;
307
+ nomeAbreviado: string;
308
+ }
309
+ type AtributoDto = IAtributo;
310
+ interface ICategoriaRitual {
311
+ id: number;
312
+ circuloRitual: CirculoRitualDto;
313
+ nivelRitual: NivelRitualDto;
314
+ valorPsSacrificado: number;
315
+ nome: string;
316
+ }
317
+ type CategoriaRitualDto = ICategoriaRitual;
318
+ interface ICirculoRitual {
319
+ id: number;
320
+ nome: string;
321
+ nomeCompleto: string;
322
+ }
323
+ type CirculoRitualDto = ICirculoRitual;
324
+ interface IClasse {
325
+ id: number;
326
+ nome: string;
327
+ descricao: string;
328
+ }
329
+ type ClasseDto = IClasse;
330
+ interface IDuracao {
331
+ id: number;
332
+ nome: string;
333
+ }
334
+ type DuracaoDto = IDuracao;
335
+ interface IElemento {
336
+ id: number;
337
+ nome: string;
338
+ cores: PaletaCores;
339
+ }
340
+ type ElementoDto = IElemento;
341
+ interface IEstatisticaDanificavel {
342
+ id: number;
343
+ nome: string;
344
+ cor: string;
345
+ descricao: string;
346
+ nomeAbreviado: string;
347
+ }
348
+ type EstatisticaDanificavelDto = IEstatisticaDanificavel;
349
+ interface IExecucao {
350
+ id: number;
351
+ linhaEfeito: LinhaEfeitoDto;
352
+ nome: string;
353
+ }
354
+ type ExecucaoDto = IExecucao;
355
+ interface IFormatoAlcance {
356
+ id: number;
357
+ nome: string;
358
+ }
359
+ type FormatoAlcanceDto = IFormatoAlcance;
360
+ interface ILinhaEfeito {
361
+ id: number;
362
+ nome: string;
363
+ }
364
+ type LinhaEfeitoDto = ILinhaEfeito;
365
+ interface INivel {
366
+ id: number;
367
+ valorNivel: number;
368
+ nomeVisualizacao: string;
369
+ }
370
+ type NivelDto = INivel;
371
+ interface INivelComponente {
372
+ id: number;
373
+ nome: string;
374
+ }
375
+ type NivelComponenteDto = INivelComponente;
376
+ interface INivelProficiencia {
377
+ id: number;
378
+ nivel: number;
379
+ }
380
+ type NivelProficienciaDto = INivelProficiencia;
381
+ interface INivelRitual {
382
+ id: number;
383
+ nome: string;
384
+ }
385
+ type NivelRitualDto = INivelRitual;
386
+ interface IPatentePericia {
387
+ id: number;
388
+ nome: string;
389
+ varianciaQualidadeAcao: number;
390
+ bonusPatente: number;
391
+ descricao: string;
392
+ cor: string;
393
+ nomeAbreviado: string;
394
+ }
395
+ type PatentePericiaDto = IPatentePericia;
396
+ interface IPericia {
397
+ id: number;
398
+ atributo: AtributoDto;
399
+ linhaEfeito: LinhaEfeitoDto;
400
+ nome: string;
401
+ descricao: string;
402
+ nomeAbreviado: string;
403
+ }
404
+ type PericiaDto = IPericia;
405
+ interface IProficiencia {
406
+ id: number;
407
+ tipoProficiencia: TipoProficienciaDto;
408
+ nivelProficiencia: NivelProficienciaDto;
409
+ nome: string;
410
+ }
411
+ type ProficienciaDto = IProficiencia;
412
+ interface ITipoAlvo {
413
+ id: number;
414
+ nome: string;
415
+ }
416
+ type TipoAlvoDto = ITipoAlvo;
417
+ interface ITipoCategoria {
418
+ id: number;
419
+ valor: number;
420
+ nome: string;
421
+ }
422
+ type TipoCategoriaDto = ITipoCategoria;
423
+ interface ITipoDano {
424
+ id: number;
425
+ linhaEfeito: LinhaEfeitoDto;
426
+ tipoDanoPertencente: TipoDanoDto | null;
427
+ nome: string;
428
+ }
429
+ type TipoDanoDto = ITipoDano;
430
+ interface ITipoEfeito {
431
+ id: number;
432
+ nome: string;
433
+ nomeVisualizacao: string;
434
+ }
435
+ type TipoEfeitoDto = ITipoEfeito;
436
+ interface ITipoItem {
437
+ id: number;
438
+ nome: string;
439
+ }
440
+ type TipoItemDto = ITipoItem;
441
+ interface ITipoProficiencia {
442
+ id: number;
443
+ nome: string;
444
+ }
445
+ type TipoProficienciaDto = ITipoProficiencia;
446
+ interface ILink {
447
+ id: number;
448
+ tipoLink: TipoLinkDto;
449
+ sufixo: string;
450
+ descricao: string;
451
+ dataCriacao: Date;
452
+ urlCompleta: string | null;
453
+ }
454
+ type LinkDto = ILink;
455
+ interface ITipoLink {
456
+ id: number;
457
+ nome: string;
458
+ prefixo: string;
459
+ }
460
+ type TipoLinkDto = ITipoLink;
461
+ interface IDificuldadeSessao {
462
+ id: number;
463
+ descricao: string;
464
+ }
465
+ type DificuldadeSessaoDto = IDificuldadeSessao;
466
+ interface IEstiloSessaoMestrada {
467
+ id: number;
468
+ descricao: string;
469
+ ehSessaoUnica: boolean;
470
+ }
471
+ type EstiloSessaoMestradaDto = IEstiloSessaoMestrada;
472
+ interface ITipoSessao {
473
+ id: number;
474
+ descricao: string;
475
+ }
476
+ type TipoSessaoDto = ITipoSessao;
477
+ interface IPerfilAdmin {
478
+ id: number;
479
+ nome: string;
480
+ descricao: string;
481
+ }
482
+ type PerfilAdminDto = IPerfilAdmin;
483
+ interface IPerfilJogador {
484
+ id: number;
485
+ nome: string;
486
+ descricao: string;
487
+ }
488
+ type PerfilJogadorDto = IPerfilJogador;
489
+ interface IPerfilMestre {
490
+ id: number;
491
+ nome: string;
492
+ descricao: string;
493
+ }
494
+ type PerfilMestreDto = IPerfilMestre;
495
+ interface IFichaPersonagem {
496
+ fkPersonagensId: number;
497
+ fkNiveisId: number;
498
+ personagem: PersonagemDto;
499
+ nivel: NivelDto;
500
+ dataCriacao: Date;
501
+ ficha: ObjetoFicha;
502
+ detalhesEvolucao: DetalheEvolucao[];
503
+ readonly fichaDeJogo: FichaDeJogo | null;
504
+ }
505
+ type FichaPersonagemDto = IFichaPersonagem;
506
+ type ObjetoFicha = {
507
+ atributos: {
508
+ id: number;
509
+ valor: number;
510
+ }[];
511
+ pericias: {
512
+ id: number;
513
+ idPatente: number;
514
+ }[];
515
+ estatisticasDanificaveis: {
516
+ id: number;
517
+ valorMaximo: number;
518
+ }[];
519
+ classe: {
520
+ id: number;
521
+ };
522
+ detalhe: DetalheFicha;
523
+ detalhesUsoEvolucaoPericiasLivres: RegistroPericiaLivre[];
524
+ };
525
+ type DetalheEvolucao = {
526
+ etapa: string;
527
+ detalhes: string[];
528
+ };
529
+ type DetalhesExtras = {};
530
+ type FichaDeJogo = {
531
+ atributos: AtributoFicha[];
532
+ pericias: PericiaFicha[];
533
+ estatisticasDanificaveis: EstatisticaDanificavelFicha[];
534
+ detalhe: DetalheFicha;
535
+ classe: ClasseDto;
536
+ detalhesUsoEvolucaoPericiasLivres: RegistroPericiaLivre[];
537
+ };
538
+ type AtributoFicha = {
539
+ atributo: AtributoDto;
540
+ valor: number;
541
+ valorTotal: number;
542
+ detalhesValor: string[];
543
+ };
544
+ type PericiaFicha = {
545
+ pericia: PericiaDto;
546
+ patentePericia: PatentePericiaDto;
547
+ valorEfeito: number;
548
+ valorTotal: number;
549
+ detalhesValor: string[];
550
+ };
551
+ type EstatisticaDanificavelFicha = {
552
+ estatisticaDanificavel: EstatisticaDanificavelDto;
553
+ valorMaximo: number;
554
+ };
555
+ type DetalheFicha = {
556
+ valorMaxAtributo: number;
557
+ pontosDeHabilidadeEspecial: number;
558
+ pontosDeHabilidadeParanormal: number;
559
+ pontosDeHabilidadeElemental: number;
560
+ };
561
+ type RegistroPericiaLivre = {
562
+ idPericia: number;
563
+ idPatente: number;
564
+ };
565
+ interface IInformacaoPersonagem {
566
+ fkPersonagensId: number;
567
+ personagem: PersonagemDto;
568
+ nome: string;
569
+ anoNascimento: number;
570
+ }
571
+ type InformacaoPersonagemDto = IInformacaoPersonagem;
572
+ interface IPersonagem {
573
+ id: number;
574
+ tipoPersonagem: TipoPersonagemDto;
575
+ nivelVigente: NivelDto;
576
+ usuario: UsuarioDto;
577
+ imagemAvatar: ImagemDto | null;
578
+ informacao: InformacaoPersonagemDto;
579
+ gruposAventuraPersonagem: GrupoAventuraPersonagemDto[] | null;
580
+ resumosPersonagemAventura: ResumoPersonagemAventuraDto[] | null;
581
+ fichas: FichaPersonagemDto[] | null;
582
+ caminhoAvatar: string;
583
+ fichaVigente: FichaPersonagemDto | null;
584
+ temCriacaoPendente: boolean;
585
+ temEvolucaoPendente: boolean;
586
+ pendencias: ObjetoPendeciaPersonagem;
587
+ ultimoGrupoParticipado: GrupoAventuraPersonagemDto | null;
588
+ indexEstadoOcupacaoAtual: EstadoOcupacaoPersonagem;
589
+ mensagemEstadoOcupacao: string;
590
+ tempoProximaSessaoPersonagem: string;
591
+ }
592
+ type PersonagemDto = IPersonagem;
593
+ type PersonagemSalaJogoDto = Pick<PersonagemDto, 'id' | 'usuario' | 'imagemAvatar' | 'informacao' | 'caminhoAvatar'>;
594
+ interface IResumoPersonagemAventura {
595
+ fkPersonagensId: number;
596
+ fkAventurasId: number;
597
+ personagem: PersonagemDto;
598
+ aventura: AventuraDto;
599
+ texto: string;
600
+ }
601
+ type ResumoPersonagemAventuraDto = IResumoPersonagemAventura;
602
+ interface ITipoPersonagem {
603
+ id: number;
604
+ nome: string;
605
+ descricao: string;
606
+ }
607
+ type TipoPersonagemDto = ITipoPersonagem;
608
+ interface IDetalheRascunhoAventura {
609
+ fkRascunhoId: number;
610
+ rascunho: RascunhoDto;
611
+ aventura: AventuraDto | null;
612
+ descricao: Record<string, any>;
613
+ dataAtualizacao: Date;
614
+ }
615
+ type DetalheRascunhoAventuraDto = IDetalheRascunhoAventura;
616
+ interface IDetalheRascunhoSessaoUnicaCanonica {
617
+ fkRascunhoId: number;
618
+ rascunho: RascunhoDto;
619
+ tipoSessao: TipoSessaoDto;
620
+ dificuldadeSessao: DificuldadeSessaoDto;
621
+ sessaoUnica: DetalheSessaoUnicaDto;
622
+ descricao: Record<string, any>;
623
+ dataAtualizacao: Date;
624
+ }
625
+ type DetalheRascunhoSessaoUnicaCanonicaDto = IDetalheRascunhoSessaoUnicaCanonica;
626
+ interface IDetalheRascunhoSessaoUnicaNaoCanonica {
627
+ fkRascunhoId: number;
628
+ rascunho: RascunhoDto;
629
+ tipoSessao: TipoSessaoDto;
630
+ dificuldadeSessao: DificuldadeSessaoDto;
631
+ sessoesUnicas: DetalheSessaoUnicaDto[];
632
+ nivelPersonagem: NivelDto;
633
+ numeroMinimoJogadores: number;
634
+ numeroMaximoJogadores: number | null;
635
+ descricao: Record<string, any>;
636
+ dataAtualizacao: Date;
637
+ }
638
+ type DetalheRascunhoSessaoUnicaNaoCanonicaDto = IDetalheRascunhoSessaoUnicaNaoCanonica;
639
+ interface IRascunho {
640
+ id: number;
641
+ estiloSessaoMestrada: EstiloSessaoMestradaDto;
642
+ usuario: UsuarioDto;
643
+ detalheRascunhoAventura: DetalheRascunhoAventuraDto | null;
644
+ detalheRascunhoSessaoUnicaCanonica: DetalheRascunhoSessaoUnicaCanonicaDto | null;
645
+ detalheRascunhoSessaoUnicaNaoCanonica: DetalheRascunhoSessaoUnicaNaoCanonicaDto | null;
646
+ titulo: string;
647
+ dataCriacao: Date;
648
+ possuiDetalhesConfigurados: boolean;
649
+ detalheUtilizacaoRascunho: DetalheUtilizacaoRascunho;
650
+ }
651
+ type RascunhoDto = IRascunho;
652
+ interface IEstudo {
653
+ id: number;
654
+ nome: string;
655
+ }
656
+ type EstudoDto = IEstudo;
657
+ interface IRegistroSessao {
658
+ id: number;
659
+ sessao: SessaoDto;
660
+ tempoDoInicio: string;
661
+ tempoDeDuracao: string;
662
+ descricao: string;
663
+ }
664
+ type RegistroSessaoDto = IRegistroSessao;
665
+ interface ISessao {
666
+ id: number;
667
+ detalheSessaoAventura: DetalheSessaoAventuraDto;
668
+ detalheSessaoUnica: DetalheSessaoUnicaDto;
669
+ detalheSessaoCanonica: DetalheSessaoCanonicaDto;
670
+ dataCriacao: Date;
671
+ dataPrevisaoInicio: Date;
672
+ dataInicio: Date | null;
673
+ duracaoEmSegundos: number | null;
674
+ estiloSessao: EstiloSessao;
675
+ dataQueEncerrou: Date | null;
676
+ estadoAtual: EstadoSessao;
677
+ tituloInteligente: TituloSessaoInteligente;
678
+ pathCapaInteligente: string;
679
+ detalheData: string;
680
+ dadosGerais: SessaoDadosGerais | null;
681
+ }
682
+ type SessaoDto = ISessao;
683
+ type SessaoDadosGerais = {
684
+ mestre: UsuarioDto;
685
+ participantes: ParticipanteSessao[];
686
+ };
687
+ type ParticipanteSessao = {
688
+ jogador: UsuarioDto;
689
+ personagem: PersonagemDto | null;
690
+ };
691
+ declare class AuthSession {
692
+ expiredAt: number;
693
+ id: string;
694
+ destroyedAt?: Date | undefined;
695
+ json: string;
696
+ constructor(expiredAt: number, id: string, json: string, destroyedAt?: Date | undefined);
697
+ }
698
+ interface ICustomizacaoUsuario {
699
+ fkUsuariosId: number;
700
+ usuario: UsuarioDto;
701
+ personagemAvatarPrincipal: PersonagemDto | null;
702
+ conquistaExibirPerfil1: ConquistaDto | null;
703
+ conquistaExibirPerfil2: ConquistaDto | null;
704
+ conquistaExibirPerfil3: ConquistaDto | null;
705
+ caminhoAvatar: string;
706
+ }
707
+ type CustomizacaoUsuarioDto = ICustomizacaoUsuario;
708
+ interface IDisponibilidadeUsuario {
709
+ fkUsuariosId: number;
710
+ usuario: UsuarioDto;
711
+ disponibilidades: ListaDisponibilidadesUsuario;
712
+ dataAtualizacao: Date;
713
+ estaConfigurado: boolean;
714
+ }
715
+ type DisponibilidadeUsuarioDto = IDisponibilidadeUsuario;
716
+ type ListaDisponibilidadesUsuario = DisponibilidadesDDS[];
717
+ interface DisponibilidadesDDS {
718
+ dds: DiaDaSemana;
719
+ disponibilidades: JanelaDisponibilidade[];
720
+ }
721
+ interface JanelaDisponibilidade {
722
+ horaInicio: MomentoFormatado24;
723
+ horaFim: MomentoFormatado24;
724
+ }
725
+ interface IUsuario {
726
+ id: number;
727
+ perfilJogador: PerfilJogadorDto;
728
+ perfilMestre: PerfilMestreDto;
729
+ perfilAdmin: PerfilAdminDto;
730
+ customizacao: CustomizacaoUsuarioDto;
731
+ personagens: PersonagemDto[] | null;
732
+ username: string;
733
+ email: string | null;
734
+ discordId: string;
735
+ dataCriacao: Date;
736
+ listaCargos: CargosUsuario;
737
+ }
738
+ type UsuarioDto = IUsuario;
739
+ type SalaDeJogo_Codigo = `${number}_${string}`;
740
+ type SalaDeJogoParams = {
741
+ tipo: "sessao";
742
+ sessao: SessaoDto;
743
+ } | {
744
+ tipo: "solo";
745
+ jogadorSolo: UsuarioDto;
746
+ };
747
+ declare enum SalaDeJogo_Tipo {
748
+ SALA__SOLO = "Sess\u00E3o Solo",
749
+ SALA__SESSAO_UNICA = "Sess\u00E3o \u00DAnica",
750
+ SALA__SESSAO_AVENTURA = "Sess\u00E3o Aventura"
751
+ }
752
+ declare enum SalaDeJogo_Estado {
753
+ SALA__EM_ESPERA = "Em Espera",
754
+ SALA__EM_ANDAMENTO = "Em Andamento"
755
+ }
756
+ declare enum SalaDeJogo_TipoMestre {
757
+ SALA__MESTRADA = "SALA__MESTRADA",
758
+ SALA__INTELIGENTE = "SALA__INTELIGENTE"
759
+ }
760
+ type SalaDeJogo_Mestre = SalaDeJogo_Mestre_Mestrada | SalaDeJogo_Mestre_Inteligente;
761
+ type SalaDeJogo_Mestre_Mestrada = {
762
+ tipoMestre: SalaDeJogo_TipoMestre.SALA__MESTRADA;
763
+ idUsuario: number;
764
+ };
765
+ type SalaDeJogo_Mestre_Inteligente = {
766
+ tipoMestre: SalaDeJogo_TipoMestre.SALA__INTELIGENTE;
767
+ };
768
+ declare enum SalaDeJogo_TipoParticipante {
769
+ SALA__NARRADOR = "Narrador",
770
+ SALA__JOGADOR = "Jogador"
771
+ }
772
+ type SalaDeJogo_Participante = SalaDeJogo_Participante_Narrador | SalaDeJogo_Participante_Jogador;
773
+ type SalaDeJogo_Participante_Narrador = {
774
+ tipo: SalaDeJogo_TipoParticipante.SALA__NARRADOR;
775
+ idUsuario: number;
776
+ };
777
+ type SalaDeJogo_Participante_Jogador = {
778
+ tipo: SalaDeJogo_TipoParticipante.SALA__JOGADOR;
779
+ idUsuario: number;
780
+ personagem: PersonagemSalaJogoDto;
781
+ };
782
+ type SalaDeJogo_FUNC_AtualizaParticipanteParams = {
783
+ acao: "adicionar";
784
+ tipo: SalaDeJogo_TipoParticipante;
785
+ idUsuario: number;
786
+ } | {
787
+ acao: "remover";
788
+ tipo: SalaDeJogo_TipoParticipante;
789
+ idUsuario: number;
790
+ };
791
+ type SalaDeJogoDto = {
792
+ codigo: SalaDeJogo_Codigo;
793
+ idSessao: number | null;
794
+ tipo: SalaDeJogo_Tipo;
795
+ mestre: SalaDeJogo_Mestre;
796
+ participantes: readonly SalaDeJogo_Participante[];
797
+ };
798
+ type MenuItemNode = {
799
+ readonly tipo: 'item';
800
+ readonly titulo: string;
801
+ readonly destino: PaginaDestino;
802
+ };
803
+ type MenuGrupoNode = {
804
+ readonly tipo: 'grupo';
805
+ readonly titulo: string;
806
+ readonly itens: readonly MenuNode[];
807
+ };
808
+ type MenuNode = MenuItemNode | MenuGrupoNode;
809
+ declare function menuItem(titulo: string, destino: PaginaDestino): MenuItemNode;
810
+ declare function menuGrupo(titulo: string, itens: readonly MenuNode[]): MenuGrupoNode;
811
+ type PaginaLike = {
812
+ readonly template: unknown;
813
+ readonly hrefTemplate: string;
814
+ };
815
+ type MenuInternoTree<P> = P extends PaginaLike ? readonly MenuNode[] : P extends Record<string, unknown> ? {
816
+ readonly [K in keyof P]?: MenuInternoTree<P[K]>;
817
+ } : never;
818
+ type MenusInternos<P> = {
819
+ readonly PAGINAS: MenuInternoTree<P>;
820
+ };
821
+ type Brand<T, B extends string> = T & {
822
+ readonly __brand: B;
823
+ };
824
+ type ExtrairParamsDoTemplate<S extends string, Acc extends Record<string, unknown> = {}> = S extends `${infer _A}[[...${infer P}]]${infer Rest}` ? ExtrairParamsDoTemplate<Rest, Acc & {
825
+ [K in P]?: string[];
826
+ }> : S extends `${infer _A}[...${infer P}]${infer Rest}` ? ExtrairParamsDoTemplate<Rest, Acc & {
827
+ [K in P]: string[];
828
+ }> : S extends `${infer _A}[${infer P}]${infer Rest}` ? ExtrairParamsDoTemplate<Rest, Acc & {
829
+ [K in P]: string;
830
+ }> : Acc;
831
+ type PaginaParamsDoTemplate<T extends string> = ExtrairParamsDoTemplate<T>;
832
+ type PaginaInfo = {
833
+ readonly label: string;
834
+ readonly comCabecalho?: true;
835
+ readonly acesso?: AcessoPagina;
836
+ readonly acessoPorMenuInterno?: true;
837
+ };
838
+ type PaginaTemplate<T extends string = string> = Brand<T, 'PaginaTemplate'>;
839
+ type PaginaDef<T extends string> = PaginaInfo & {
840
+ readonly template: PaginaTemplate<T>;
841
+ readonly hrefTemplate: T;
842
+ readonly href: T;
843
+ };
844
+ type PaginaParams<P extends {
845
+ hrefTemplate: string;
846
+ }> = PaginaParamsDoTemplate<P['hrefTemplate']>;
847
+ declare function montarHref(template: string, params: Record<string, unknown>): string;
848
+ declare function pagina<const T extends string>(hrefTemplate: T, info: PaginaInfo): PaginaDef<T>;
849
+ type RequiredKeys<T> = {
850
+ [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
851
+ }[keyof T];
852
+ type ParamsProps<P extends {
853
+ hrefTemplate: string;
854
+ }> = RequiredKeys<PaginaParams<P>> extends never ? {
855
+ params?: PaginaParams<P>;
856
+ } : {
857
+ params: PaginaParams<P>;
858
+ };
859
+ interface MensagemChatRecebida {
860
+ salaId: string;
861
+ idUsuario: number;
862
+ conteudo: string;
863
+ timestamp: number;
864
+ }
865
+ interface SalaChat {
866
+ id: string;
867
+ leituraPublica: boolean;
868
+ idUsuariosLeitoresEspecificos?: number[];
869
+ escritaPublica: boolean;
870
+ idUsuariosEscritoresEspecificos?: number[];
871
+ }
872
+ interface SalaChatFront {
873
+ id: string;
874
+ podeEscrever: boolean;
875
+ mensagensIniciais: MensagemChatRecebida[];
876
+ }
877
+ interface MensagemChatPayload {
878
+ salaId: string;
879
+ conteudo: string;
880
+ }
881
+ type SOCKET_AcessoUsuario = {
882
+ usuario: UsuarioDto;
883
+ paginaAtual?: PaginaTemplate | null;
884
+ dataAtualizacao: Date;
885
+ };
886
+ type SOCKET_UsuarioExistente = {
887
+ id: number;
888
+ username: string;
889
+ avatar: string;
890
+ };
891
+ type TelemetryConnectionInfo = {
892
+ socketId: string;
893
+ username?: string;
894
+ ip: string;
895
+ userAgent?: string;
896
+ connectedAt: number;
897
+ };
898
+ type WsEventAudienceUnico<TSocket> = {
899
+ escopo: 'unico';
900
+ socket: TSocket;
901
+ username?: string;
902
+ };
903
+ type WsEventAudienceMultiplo = {
904
+ escopo: 'multiplo';
905
+ socketsCount: number;
906
+ };
907
+ type WsEventAudience<TSocket> = WsEventAudienceUnico<TSocket> | WsEventAudienceMultiplo;
908
+ type TelemetryEventLog<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
909
+ direction: 'in' | 'out';
910
+ event: string;
911
+ audiencia: WsEventAudience<string>;
912
+ payload: TPayload;
913
+ timestamp: number;
914
+ };
915
+ type TelemetrySnapshot = {
916
+ totalConnections: number;
917
+ totalEvents: number;
918
+ connections: TelemetryConnectionInfo[];
919
+ lastEvents: TelemetryEventLog[];
920
+ serverTime: number;
921
+ };
922
+ type WsErrorResponse = {
923
+ _wsErro: true;
924
+ mensagem: string;
925
+ code?: string;
926
+ detalhes?: unknown;
927
+ };
928
+ type WsUnauthorizedErrorResponse = WsErrorResponse & {
929
+ code: 'UNAUTHORIZED';
930
+ };
931
+ type WsResult<T> = T | WsErrorResponse;
932
+ declare function isWsErrorResponse(payload: unknown): payload is WsErrorResponse;
933
+ declare function isWsUnauthorizedErrorResponse(payload: unknown): payload is WsUnauthorizedErrorResponse;
934
+ declare function wsErro(mensagem: string, extra?: {
935
+ code?: string;
936
+ detalhes?: unknown;
937
+ }): WsErrorResponse;
938
+ declare function wsUnauthorized(mensagem?: string, detalhes?: unknown): WsUnauthorizedErrorResponse;
939
+ declare function wsMap<T, R>(value: WsResult<T>, mapper: (value: T) => R): WsResult<R>;
940
+ declare function wsChain<T, R>(value: WsResult<T>, next: (value: T) => WsResult<R>): WsResult<R>;
941
+ type EventoTipo = 'envia' | 'emite' | 'envia-e-recebe';
942
+ type EmitDelivery = 'broadcast' | 'perRecipient';
943
+ type EventoAuthDefault = {
944
+ autenticacao_necessaria?: false;
945
+ };
946
+ type EventoEnvia<P = unknown> = EventoAuthDefault & {
947
+ tipo: 'envia';
948
+ payload: P;
949
+ response?: never;
950
+ };
951
+ type EventoEmite<P = unknown, R = unknown> = EventoAuthDefault & {
952
+ tipo: 'emite';
953
+ payload: P;
954
+ response: R;
955
+ delivery?: EmitDelivery;
956
+ };
957
+ type EventoEnviaERecebe<P = unknown, R = unknown> = EventoAuthDefault & {
958
+ tipo: 'envia-e-recebe';
959
+ payload: P;
960
+ response: R;
961
+ };
962
+ type EventoSchema = EventoEnvia<unknown> | EventoEmite<unknown, unknown> | EventoEnviaERecebe<unknown, unknown>;
963
+ type GatewayDef = Record<string, EventoSchema>;
964
+ declare function createGateway<T extends {
965
+ [K in keyof T]: EventoSchema;
966
+ }>(def: T): T;
967
+ declare namespace EventosWebSocket {
968
+ const gateways: {
969
+ readonly Chat: {
970
+ enviaMensagem: {
971
+ tipo: "envia";
972
+ payload: {
973
+ salaId: string;
974
+ conteudoMensagem: string;
975
+ };
976
+ };
977
+ emitirSalas: {
978
+ tipo: "envia-e-recebe";
979
+ payload: {};
980
+ response: {
981
+ salas: SalaChatFront[];
982
+ };
983
+ };
984
+ emitirMensagem: {
985
+ tipo: "emite";
986
+ payload: {
987
+ mensagemId: number;
988
+ };
989
+ response: WsResult<{
990
+ conteudoMensagem: MensagemChatRecebida;
991
+ }>;
992
+ delivery: "broadcast";
993
+ };
994
+ };
995
+ readonly Jogo: {
996
+ requisicaoDeAberturaDeSala: {
997
+ tipo: "envia-e-recebe";
998
+ payload: {
999
+ idSessao: number;
1000
+ };
1001
+ response: {
1002
+ codigoSala: SalaDeJogo_Codigo;
1003
+ };
1004
+ };
1005
+ emitirEstouEmJogo: {
1006
+ tipo: "emite";
1007
+ payload: {};
1008
+ response: {
1009
+ estouEmJogo: boolean;
1010
+ };
1011
+ delivery: "perRecipient";
1012
+ };
1013
+ emitirSessaoEmAndamento: {
1014
+ tipo: "emite";
1015
+ payload: {};
1016
+ response: {
1017
+ sessaoEmAndamento: SessaoDto | null;
1018
+ };
1019
+ delivery: "perRecipient";
1020
+ };
1021
+ emitirTodasSalas: {
1022
+ tipo: "emite";
1023
+ payload: {};
1024
+ response: {
1025
+ salas: SalaDeJogoDto[];
1026
+ };
1027
+ delivery: "broadcast";
1028
+ };
1029
+ };
1030
+ readonly UsuariosConectados: {
1031
+ emitirUsuariosConectadosAgora: {
1032
+ tipo: "emite";
1033
+ payload: {};
1034
+ response: {
1035
+ usuariosConectados: SOCKET_AcessoUsuario[];
1036
+ };
1037
+ delivery: "broadcast";
1038
+ };
1039
+ };
1040
+ readonly UsuariosExistentes: {
1041
+ obterTodos: {
1042
+ tipo: "envia-e-recebe";
1043
+ payload: {};
1044
+ response: {
1045
+ usuariosExistentes: SOCKET_UsuarioExistente[];
1046
+ };
1047
+ };
1048
+ };
1049
+ };
1050
+ }
1051
+ declare function isRecord(value: unknown): value is Record<string, unknown>;
1052
+ declare function getEmitDelivery(gatewayName: string, eventName: string): EmitDelivery | undefined;
1053
+ type WsEmitTarget = {
1054
+ room: string;
1055
+ } | {
1056
+ userIds: number[];
1057
+ } | {
1058
+ scope: 'authenticated';
1059
+ } | {
1060
+ scope: 'all';
1061
+ };
1062
+ type WsEmitParams<E extends EventoEmiteAny> = {
1063
+ payload?: E['payload'];
1064
+ target?: WsEmitTarget;
1065
+ };
1066
+ type EventosEmiteMap = typeof Eventos_Emite;
1067
+ type EventoEmiteAny = {
1068
+ [G in keyof EventosEmiteMap]: EventosEmiteMap[G]['eventos'][keyof EventosEmiteMap[G]['eventos']];
1069
+ }[keyof EventosEmiteMap];
1070
+ interface PaletaCores {
1071
+ corPrimaria: string;
1072
+ corSecundaria?: string;
1073
+ corTerciaria?: string;
1074
+ }
1075
+ type EstruturaPaginaDefinicao = {
1076
+ titulo: string;
1077
+ subtitulo?: string;
1078
+ listaConteudo: {
1079
+ itens: ConteudoItem[];
1080
+ };
1081
+ listaItensDefinicoesConectadas?: {
1082
+ etiqueta: string;
1083
+ subPaginaDefinicao: string;
1084
+ }[];
1085
+ };
1086
+ type ConteudoItem = {
1087
+ tipo: 'Definicao';
1088
+ elementos: DefinicaoElemento[];
1089
+ } | {
1090
+ tipo: 'Lista';
1091
+ itensLista: ListaItem[];
1092
+ };
1093
+ type DefinicaoElemento = {
1094
+ tipo: 'Paragrafo';
1095
+ conteudo: string;
1096
+ } | {
1097
+ tipo: 'ParagrafoSecreto';
1098
+ };
1099
+ type ListaItem = {
1100
+ tipo: 'ItemLista';
1101
+ etiqueta: string;
1102
+ subPaginaDefinicao: string;
1103
+ } | {
1104
+ tipo: 'ItemListaSecreto';
1105
+ };
1106
+ declare enum AventuraEstado {
1107
+ EM_PREPARO = "Em Preparo",
1108
+ EM_ANDAMENTO = "Em Andamento",
1109
+ FINALIZADA = "Finalizada"
1110
+ }
1111
+ declare enum EstadoPendenciaPersonagem {
1112
+ RESUMO_AVENTURA_PENDENTE = "Informa\u00E7\u00F5es sobre Aventura Pendentes",
1113
+ FICHA_NAO_CRIADA = "Cria\u00E7\u00E3o da Ficha Pendente",
1114
+ FICHA_PENDENTE = "Atualiza\u00E7\u00E3o de Ficha Pendente",
1115
+ SEM_PENDENCIAS = ""
1116
+ }
1117
+ declare enum EstadoPendenciaAdministrativaPersonagem {
1118
+ SEM_AVATAR = "O Administrador ainda n\u00E3o vinculou o avatar do personagem",
1119
+ SEM_PENDENCIAS = ""
1120
+ }
1121
+ declare enum EstadoOcupacaoPersonagem {
1122
+ SE_PREPARANDO_AVENTURA = 0,
1123
+ EM_AVENTURA = 1,
1124
+ EM_ESPERA = 2
1125
+ }
1126
+ declare enum EstadoSessao {
1127
+ MARCADA = "A Sess\u00E3o est\u00E1 marcada",
1128
+ EM_ANDAMENTO = "A Sess\u00E3o est\u00E1 em andamento nesse momento",
1129
+ FINALIZADA = "A Sess\u00E3o j\u00E1 foi realizada"
1130
+ }
1131
+ declare enum DiaDaSemana {
1132
+ DOMINGO = 0,
1133
+ SEGUNDA = 1,
1134
+ TERCA = 2,
1135
+ QUARTA = 3,
1136
+ QUINTA = 4,
1137
+ SEXTA = 5,
1138
+ SABADO = 6
1139
+ }
1140
+ declare function obtemDiaDaSemanaPorExtensoPorDDS(dds: DiaDaSemana, plural?: boolean): string;
1141
+ type NumeroHora24 = `0${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}` | `1${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}` | `2${0 | 1 | 2 | 3}`;
1142
+ type NumeroMomento = `0${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}` | `${1 | 2 | 3 | 4 | 5}${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}`;
1143
+ type MomentoFormatado24 = `${NumeroHora24}:${NumeroMomento}`;
1144
+ type MomentoFormatado = `${NumeroMomento}:${NumeroMomento}`;
1145
+ declare enum CargoExibicaoUsuario {
1146
+ ADMIN = 0,
1147
+ MESTRE = 1,
1148
+ JOGADOR = 2,
1149
+ ESPECTADOR = 3
1150
+ }
1151
+ type CargosUsuario = {
1152
+ cargoExibicaoUsuario: CargoExibicaoUsuario;
1153
+ hierarquiaNoCargo: number;
1154
+ hierarquiaTotal: number;
1155
+ cargos: string[];
1156
+ };
1157
+ type ObjetoAutenticacao = {
1158
+ usuarioLogado: UsuarioDto | null;
1159
+ variaveisAmbiente: VariavelAmbienteDto[];
1160
+ pendenciasDePersonagem: number;
1161
+ capacidadesConcedidas: Record<string, true>;
1162
+ };
1163
+ type ObjetoCache = {
1164
+ atributos: AtributoDto[];
1165
+ pericias: PericiaDto[];
1166
+ patentesPericia: PatentePericiaDto[];
1167
+ estatisticasDanificaveis: EstatisticaDanificavelDto[];
1168
+ classes: ClasseDto[];
1169
+ tiposGanho: TipoGanhoNivelDto[];
1170
+ niveis: NivelDto[];
1171
+ dificuldadesSessao: DificuldadeSessaoDto[];
1172
+ tiposSessao: TipoSessaoDto[];
1173
+ };
1174
+ type ObjetoPendeciaPersonagem = {
1175
+ pendeciaUsuario: EstadoPendenciaPersonagem;
1176
+ pendenciaAdmin: EstadoPendenciaAdministrativaPersonagem;
1177
+ };
1178
+ type TipoVariavelAmbiente = 'boolean' | 'string' | 'number';
1179
+ type ObjetoEvolucaoCompleto = ObjetoEvolucao & ObjetoGanhosEvolucao;
1180
+ type ObjetoEvolucao = {
1181
+ personagem: PersonagemDto;
1182
+ fichaDeJogoVigente: FichaDeJogo;
1183
+ nivelDoProcedimento: NivelDto;
1184
+ listaReferenciaTodosAtributos: AtributoDto[];
1185
+ listaReferenciaPericiasDisponiveis: PericiaDto[];
1186
+ listaReferenciaTodasPatentes: PatentePericiaDto[];
1187
+ listaReferenciaTodasEstatisticasDanificaveis: EstatisticaDanificavelDto[];
1188
+ listaReferenciaTodasClasses: ClasseDto[];
1189
+ listaReferenciaTodosTiposGanho: TipoGanhoNivelDto[];
1190
+ };
1191
+ type ObjetoGanhosEvolucao = {
1192
+ listaGanhos: GanhoNivelClasseDto[];
1193
+ listaGanhosEstatisticasPorAtributos: GanhoEstatistica[];
1194
+ };
1195
+ type GanhoEstatistica = {
1196
+ estatisticaDanificavel: EstatisticaDanificavelDto;
1197
+ ganhosPorAtributo: {
1198
+ atributo: AtributoDto;
1199
+ valorPorUnidade: number;
1200
+ }[];
1201
+ };
1202
+ declare enum FormatoMomento {
1203
+ HMS = 0,
1204
+ EXTENSO = 1,
1205
+ EXTENSO_APROXIMADO = 2
1206
+ }
1207
+ type DetalheUtilizacaoRascunho = {
1208
+ disponivel: boolean;
1209
+ detalhe: string;
1210
+ };
1211
+ declare enum EstiloSessao {
1212
+ SESSAO_DE_AVENTURA = "Sess\u00E3o de Aventura",
1213
+ SESSAO_UNICA_CANONICA = "Sess\u00E3o \u00DAnica Can\u00F4nica",
1214
+ SESSAO_UNICA_NAO_CANONICA = "Sess\u00E3o \u00DAnica n\u00E3o Can\u00F4nica",
1215
+ ERRO = "ERRO!"
1216
+ }
1217
+ declare const PathTokenPadrao: string;
1218
+ type TituloSessaoInteligente = {
1219
+ tituloCompleto: string;
1220
+ titulo: string;
1221
+ subtitulo?: string;
1222
+ };
1223
+ type Capacidade = typeof CAPACIDADES[keyof typeof CAPACIDADES];
1224
+ declare const LISTA_CAPACIDADES: Capacidade[];
1225
+ type PermissaoItemMinimo = {
1226
+ id: number;
1227
+ codigo: string;
1228
+ itemPai?: {
1229
+ id: number;
1230
+ } | null;
1231
+ };
1232
+ type ListaCapacidadesNecessarias = readonly [Capacidade, ...Capacidade[]];
1233
+ type AcessoPagina = {
1234
+ autenticado: true;
1235
+ listaDeCapacidadesNecessarias?: never;
1236
+ } | {
1237
+ autenticado?: never;
1238
+ listaDeCapacidadesNecessarias: ListaCapacidadesNecessarias;
1239
+ };
1240
+ type Gateways = typeof EventosWebSocket.gateways;
1241
+ type EventoTipoLiteral = EventoTipo;
1242
+ type FiltraEventosPorTipo<G extends GatewayDef, Tipo extends EventoTipoLiteral> = {
1243
+ [K in keyof G as G[K] extends {
1244
+ tipo: Tipo;
1245
+ } ? K : never]: G[K];
1246
+ };
1247
+ declare function criarEventosFiltrados<Tipo extends EventoTipoLiteral>(tipo: Tipo): { [G in keyof Gateways]: {
1248
+ eventos: { [E in keyof FiltraEventosPorTipo<Gateways[G], Tipo>]: FiltraEventosPorTipo<Gateways[G], Tipo>[E] & {
1249
+ readonly nome: E;
1250
+ readonly gateway: G;
1251
+ readonly fullName: `${Extract<G, string>}:${Extract<E, string>}`;
1252
+ }; };
1253
+ }; };
1254
+ declare const Eventos_Envia: {
1255
+ readonly Chat: {
1256
+ eventos: {
1257
+ enviaMensagem: {
1258
+ tipo: "envia";
1259
+ payload: {
1260
+ salaId: string;
1261
+ conteudoMensagem: string;
1262
+ };
1263
+ } & {
1264
+ readonly nome: "enviaMensagem";
1265
+ readonly gateway: "Chat";
1266
+ readonly fullName: "Chat:enviaMensagem";
1267
+ };
1268
+ };
1269
+ };
1270
+ readonly Jogo: {
1271
+ eventos: {};
1272
+ };
1273
+ readonly UsuariosConectados: {
1274
+ eventos: {};
1275
+ };
1276
+ readonly UsuariosExistentes: {
1277
+ eventos: {};
1278
+ };
1279
+ };
1280
+ declare const Eventos_Emite: {
1281
+ readonly Chat: {
1282
+ eventos: {
1283
+ emitirMensagem: {
1284
+ tipo: "emite";
1285
+ payload: {
1286
+ mensagemId: number;
1287
+ };
1288
+ response: WsResult<{
1289
+ conteudoMensagem: MensagemChatRecebida;
1290
+ }>;
1291
+ delivery: "broadcast";
1292
+ } & {
1293
+ readonly nome: "emitirMensagem";
1294
+ readonly gateway: "Chat";
1295
+ readonly fullName: "Chat:emitirMensagem";
1296
+ };
1297
+ };
1298
+ };
1299
+ readonly Jogo: {
1300
+ eventos: {
1301
+ emitirEstouEmJogo: {
1302
+ tipo: "emite";
1303
+ payload: {};
1304
+ response: {
1305
+ estouEmJogo: boolean;
1306
+ };
1307
+ delivery: "perRecipient";
1308
+ } & {
1309
+ readonly nome: "emitirEstouEmJogo";
1310
+ readonly gateway: "Jogo";
1311
+ readonly fullName: "Jogo:emitirEstouEmJogo";
1312
+ };
1313
+ emitirSessaoEmAndamento: {
1314
+ tipo: "emite";
1315
+ payload: {};
1316
+ response: {
1317
+ sessaoEmAndamento: SessaoDto | null;
1318
+ };
1319
+ delivery: "perRecipient";
1320
+ } & {
1321
+ readonly nome: "emitirSessaoEmAndamento";
1322
+ readonly gateway: "Jogo";
1323
+ readonly fullName: "Jogo:emitirSessaoEmAndamento";
1324
+ };
1325
+ emitirTodasSalas: {
1326
+ tipo: "emite";
1327
+ payload: {};
1328
+ response: {
1329
+ salas: SalaDeJogoDto[];
1330
+ };
1331
+ delivery: "broadcast";
1332
+ } & {
1333
+ readonly nome: "emitirTodasSalas";
1334
+ readonly gateway: "Jogo";
1335
+ readonly fullName: "Jogo:emitirTodasSalas";
1336
+ };
1337
+ };
1338
+ };
1339
+ readonly UsuariosConectados: {
1340
+ eventos: {
1341
+ emitirUsuariosConectadosAgora: {
1342
+ tipo: "emite";
1343
+ payload: {};
1344
+ response: {
1345
+ usuariosConectados: SOCKET_AcessoUsuario[];
1346
+ };
1347
+ delivery: "broadcast";
1348
+ } & {
1349
+ readonly nome: "emitirUsuariosConectadosAgora";
1350
+ readonly gateway: "UsuariosConectados";
1351
+ readonly fullName: "UsuariosConectados:emitirUsuariosConectadosAgora";
1352
+ };
1353
+ };
1354
+ };
1355
+ readonly UsuariosExistentes: {
1356
+ eventos: {};
1357
+ };
1358
+ };
1359
+ declare const Eventos_EnviaERecebe: {
1360
+ readonly Chat: {
1361
+ eventos: {
1362
+ emitirSalas: {
1363
+ tipo: "envia-e-recebe";
1364
+ payload: {};
1365
+ response: {
1366
+ salas: SalaChatFront[];
1367
+ };
1368
+ } & {
1369
+ readonly nome: "emitirSalas";
1370
+ readonly gateway: "Chat";
1371
+ readonly fullName: "Chat:emitirSalas";
1372
+ };
1373
+ };
1374
+ };
1375
+ readonly Jogo: {
1376
+ eventos: {
1377
+ requisicaoDeAberturaDeSala: {
1378
+ tipo: "envia-e-recebe";
1379
+ payload: {
1380
+ idSessao: number;
1381
+ };
1382
+ response: {
1383
+ codigoSala: SalaDeJogo_Codigo;
1384
+ };
1385
+ } & {
1386
+ readonly nome: "requisicaoDeAberturaDeSala";
1387
+ readonly gateway: "Jogo";
1388
+ readonly fullName: "Jogo:requisicaoDeAberturaDeSala";
1389
+ };
1390
+ };
1391
+ };
1392
+ readonly UsuariosConectados: {
1393
+ eventos: {};
1394
+ };
1395
+ readonly UsuariosExistentes: {
1396
+ eventos: {
1397
+ obterTodos: {
1398
+ tipo: "envia-e-recebe";
1399
+ payload: {};
1400
+ response: {
1401
+ usuariosExistentes: SOCKET_UsuarioExistente[];
1402
+ };
1403
+ } & {
1404
+ readonly nome: "obterTodos";
1405
+ readonly gateway: "UsuariosExistentes";
1406
+ readonly fullName: "UsuariosExistentes:obterTodos";
1407
+ };
1408
+ };
1409
+ };
1410
+ };
1411
+ type DecisaoAcessoPagina = {
1412
+ permitido: true;
1413
+ } | {
1414
+ permitido: false;
1415
+ motivo: 'NAO_AUTENTICADO';
1416
+ redirecionarPara: PaginaFolha;
1417
+ } | {
1418
+ permitido: false;
1419
+ motivo: 'SEM_CAPACIDADE';
1420
+ redirecionarPara: PaginaFolha;
1421
+ };
1422
+ type ResolverMenuInterno = (pagina: PaginaFolha) => readonly PaginaFolha[] | undefined;
1423
+ type Opts = {
1424
+ resolverMenuInterno?: ResolverMenuInterno;
1425
+ redirectNaoAutenticado: PaginaFolha;
1426
+ redirectSemCapacidade: PaginaFolha;
1427
+ };
1428
+ declare function decidirAcessoPagina(pagina: PaginaFolha, ctx: CtxAcesso, opts: Opts): DecisaoAcessoPagina;
1429
+ declare function decidirAcessoPagina_Rec(pagina: PaginaFolha, ctx: CtxAcesso, opts: Opts, visitados: Set<string>): DecisaoAcessoPagina;
1430
+ declare const PAGINAS: {
1431
+ readonly home: PaginaDef<"/">;
1432
+ readonly acessar: PaginaDef<"/acessar">;
1433
+ readonly cadastrar: PaginaDef<"/cadastrar">;
1434
+ readonly aventura: PaginaDef<"/aventura/[id]">;
1435
+ readonly aventuras: PaginaDef<"/aventuras">;
1436
+ readonly definicoes: PaginaDef<"/definicoes/[[...slug]]">;
1437
+ readonly dicas: PaginaDef<"/dicas/[[...slug]]">;
1438
+ readonly jogo: {
1439
+ readonly jogador: PaginaDef<"/jogo/jogador">;
1440
+ readonly mestre: {
1441
+ readonly sessoesMestre: PaginaDef<"/jogo/mestre/sessoes-mestre">;
1442
+ };
1443
+ readonly admin: {
1444
+ readonly gerenciarSalas: PaginaDef<"/jogo/admin/gerenciar-salas">;
1445
+ };
1446
+ readonly emJogo: PaginaDef<"/jogo/em-jogo">;
1447
+ readonly label: string;
1448
+ readonly comCabecalho?: true;
1449
+ readonly acesso?: AcessoPagina;
1450
+ readonly acessoPorMenuInterno?: true;
1451
+ readonly template: PaginaTemplate<"/jogo">;
1452
+ readonly hrefTemplate: "/jogo";
1453
+ readonly href: "/jogo";
1454
+ };
1455
+ readonly linhaDoTempo: PaginaDef<"/linha-do-tempo">;
1456
+ readonly minhaPagina: PaginaDef<"/minha-pagina">;
1457
+ readonly minhasPaginas: {
1458
+ readonly admin: {
1459
+ readonly aventura: PaginaDef<"/minhas-paginas/admin/aventura/[id]">;
1460
+ readonly aventuras: PaginaDef<"/minhas-paginas/admin/aventuras">;
1461
+ readonly dashboardWs: PaginaDef<"/minhas-paginas/admin/dashboard-ws">;
1462
+ readonly sessao: PaginaDef<"/minhas-paginas/admin/sessao/[id]">;
1463
+ readonly uploads: PaginaDef<"/minhas-paginas/admin/uploads">;
1464
+ readonly variaveisAmbiente: PaginaDef<"/minhas-paginas/admin/variaveis-ambiente">;
1465
+ readonly label: string;
1466
+ readonly comCabecalho?: true;
1467
+ readonly acesso?: AcessoPagina;
1468
+ readonly acessoPorMenuInterno?: true;
1469
+ readonly template: PaginaTemplate<"/minhas-paginas/admin">;
1470
+ readonly hrefTemplate: "/minhas-paginas/admin";
1471
+ readonly href: "/minhas-paginas/admin";
1472
+ };
1473
+ readonly jogador: {
1474
+ readonly meusPersonagens: PaginaDef<"/minhas-paginas/jogador/meus-personagens">;
1475
+ readonly label: string;
1476
+ readonly comCabecalho?: true;
1477
+ readonly acesso?: AcessoPagina;
1478
+ readonly acessoPorMenuInterno?: true;
1479
+ readonly template: PaginaTemplate<"/minhas-paginas/jogador">;
1480
+ readonly hrefTemplate: "/minhas-paginas/jogador";
1481
+ readonly href: "/minhas-paginas/jogador";
1482
+ };
1483
+ readonly mestre: {
1484
+ readonly aventura: PaginaDef<"/minhas-paginas/mestre/aventura/[id]">;
1485
+ readonly aventuras: PaginaDef<"/minhas-paginas/mestre/aventuras">;
1486
+ readonly personagens: PaginaDef<"/minhas-paginas/mestre/personagens">;
1487
+ readonly rascunhos: {
1488
+ readonly aventuras: PaginaDef<"/minhas-paginas/mestre/rascunhos/aventuras">;
1489
+ readonly sessoesUnicas: PaginaDef<"/minhas-paginas/mestre/rascunhos/sessoes-unicas">;
1490
+ };
1491
+ readonly sessao: PaginaDef<"/minhas-paginas/mestre/sessao/[id]">;
1492
+ readonly label: string;
1493
+ readonly comCabecalho?: true;
1494
+ readonly acesso?: AcessoPagina;
1495
+ readonly acessoPorMenuInterno?: true;
1496
+ readonly template: PaginaTemplate<"/minhas-paginas/mestre">;
1497
+ readonly hrefTemplate: "/minhas-paginas/mestre";
1498
+ readonly href: "/minhas-paginas/mestre";
1499
+ };
1500
+ readonly artista: {
1501
+ readonly minhasImagens: PaginaDef<"/minhas-paginas/artista/minhas_imagens">;
1502
+ readonly adicionarImagem: PaginaDef<"/minhas-paginas/artista/adicionar_imagem">;
1503
+ readonly label: string;
1504
+ readonly comCabecalho?: true;
1505
+ readonly acesso?: AcessoPagina;
1506
+ readonly acessoPorMenuInterno?: true;
1507
+ readonly template: PaginaTemplate<"minhas-paginas/artista">;
1508
+ readonly hrefTemplate: "minhas-paginas/artista";
1509
+ readonly href: "minhas-paginas/artista";
1510
+ };
1511
+ readonly minhasDisponibilidades: PaginaDef<"/minhas-paginas/minhas-disponibilidades">;
1512
+ };
1513
+ readonly personagens: PaginaDef<"/personagens">;
1514
+ readonly sessoes: PaginaDef<"/sessoes">;
1515
+ readonly sessaoAovivo: PaginaDef<"/sessao-aovivo">;
1516
+ readonly sessao: PaginaDef<"/sessao/[id]">;
1517
+ };
1518
+ type Folhas<T> = T extends PaginaDef<any> ? T | Folhas<Omit<T, keyof PaginaDef<any>>> : T extends readonly (infer U)[] ? Folhas<U> : T extends object ? {
1519
+ [K in keyof T]-?: Folhas<NonNullable<T[K]>>;
1520
+ }[keyof T] : never;
1521
+ type PaginaFolha = Folhas<typeof PAGINAS>;
1522
+ type PaginaTemplateFolha = PaginaFolha['template'];
1523
+ type PaginaDestino = PaginaFolha extends infer P ? P extends PaginaFolha ? {
1524
+ pagina: P;
1525
+ } & ParamsProps<P> : never : never;
1526
+ type PaginaDestinoPagina<P extends PaginaFolha> = {
1527
+ pagina: P;
1528
+ } & ParamsProps<P>;
1529
+ type PaginaHrefTemplate = PaginaFolha['hrefTemplate'];
1530
+ type PaginaHref = PaginaFolha['href'];
1531
+ type PaginaDefAny = PaginaDef<string>;
1532
+ type PaginaTemplateAny = PaginaTemplate<string>;
1533
+ declare function filtrarMenuPorAcesso(nodes: readonly MenuNode[], ctx: CtxAcesso): MenuNode[];
1534
+ declare const MENU_PRINCIPAL: readonly MenuNode[];
1535
+ declare const MENUS_INTERNOS: {
1536
+ readonly PAGINAS: {
1537
+ readonly minhasPaginas: {
1538
+ readonly admin: readonly [MenuItemNode, MenuItemNode, MenuItemNode, MenuItemNode];
1539
+ readonly artista: readonly [MenuItemNode, MenuItemNode];
1540
+ };
1541
+ };
1542
+ };
1543
+ declare const MENUS_INTERNOS_POR_PAGINA: ReadonlyMap<PaginaFolha, readonly MenuNode[]>;
1544
+ declare function obterMenuInterno(pagina: PaginaFolha): readonly MenuNode[] | undefined;
1545
+ declare function resolverMenuInterno(pagina: PaginaFolha): readonly PaginaFolha[] | undefined;
1546
+ export { CAPACIDADES, TIPOS_IMAGEM, CtxAcesso, temSudoBurlarCapacidades, IPermissoesEstado, PermissoesEstadoDto, IPermissoesItem, PermissoesItemDto, IPermissoesUsuario, PermissoesUsuarioDto, IPermissoesUsuariosHistorico, PermissoesUsuariosHistoricoDto, IArcoAventura, ArcoAventuraDto, IAventura, AventuraDto, IConviteGrupoAventuraPersonagem, ConviteGrupoAventuraPersonagemDto, IGrupoAventura, GrupoAventuraDto, IGrupoAventuraPersonagem, GrupoAventuraPersonagemDto, IRespostaConvite, RespostaConviteDto, IVariavelAmbiente, VariavelAmbienteDto, IConquista, ConquistaDto, ITipoConquista, TipoConquistaDto, IDetalheSessaoAventura, DetalheSessaoAventuraDto, IDetalheSessaoCanonica, DetalheSessaoCanonicaDto, CapituloSessaoCanonica, IDetalheSessaoUnica, DetalheSessaoUnicaDto, IParticipanteSessaoUnica, ParticipanteSessaoUnicaDto, ICoeficienteGanhoEstatisticaClasse, CoeficienteGanhoEstatisticaClasseDto, IGanhoNivelClasse, GanhoNivelClasseDto, DadosDoTipoGanho, DadosGanho_Atributos, DadosGanho_Pericias, DadosGanho_Estatisticas, DadosGanho_Classes, DadosGanho_ValorMaximoAtributo, DadosGanho_PontosHabilidadesEspeciais, DadosGanho_PontosHabilidadesParanormais, DadosGanho_PontosHabilidadeElemental, IGanhoRelativoCoeficienteAtributo, GanhoRelativoCoeficienteAtributoDto, ITipoGanhoNivel, TipoGanhoNivelDto, IGeracao, GeracaoDto, IImagem, ImagemDto, ITipoImagem, TipoImagemDto, IAlcance, AlcanceDto, IAtributo, AtributoDto, ICategoriaRitual, CategoriaRitualDto, ICirculoRitual, CirculoRitualDto, IClasse, ClasseDto, IDuracao, DuracaoDto, IElemento, ElementoDto, IEstatisticaDanificavel, EstatisticaDanificavelDto, IExecucao, ExecucaoDto, IFormatoAlcance, FormatoAlcanceDto, ILinhaEfeito, LinhaEfeitoDto, INivel, NivelDto, INivelComponente, NivelComponenteDto, INivelProficiencia, NivelProficienciaDto, INivelRitual, NivelRitualDto, IPatentePericia, PatentePericiaDto, IPericia, PericiaDto, IProficiencia, ProficienciaDto, ITipoAlvo, TipoAlvoDto, ITipoCategoria, TipoCategoriaDto, ITipoDano, TipoDanoDto, ITipoEfeito, TipoEfeitoDto, ITipoItem, TipoItemDto, ITipoProficiencia, TipoProficienciaDto, ILink, LinkDto, ITipoLink, TipoLinkDto, IDificuldadeSessao, DificuldadeSessaoDto, IEstiloSessaoMestrada, EstiloSessaoMestradaDto, ITipoSessao, TipoSessaoDto, IPerfilAdmin, PerfilAdminDto, IPerfilJogador, PerfilJogadorDto, IPerfilMestre, PerfilMestreDto, IFichaPersonagem, FichaPersonagemDto, ObjetoFicha, DetalheEvolucao, DetalhesExtras, FichaDeJogo, AtributoFicha, PericiaFicha, EstatisticaDanificavelFicha, DetalheFicha, RegistroPericiaLivre, IInformacaoPersonagem, InformacaoPersonagemDto, IPersonagem, PersonagemDto, PersonagemSalaJogoDto, IResumoPersonagemAventura, ResumoPersonagemAventuraDto, ITipoPersonagem, TipoPersonagemDto, IDetalheRascunhoAventura, DetalheRascunhoAventuraDto, IDetalheRascunhoSessaoUnicaCanonica, DetalheRascunhoSessaoUnicaCanonicaDto, IDetalheRascunhoSessaoUnicaNaoCanonica, DetalheRascunhoSessaoUnicaNaoCanonicaDto, IRascunho, RascunhoDto, IEstudo, EstudoDto, IRegistroSessao, RegistroSessaoDto, ISessao, SessaoDto, SessaoDadosGerais, ParticipanteSessao, AuthSession, ICustomizacaoUsuario, CustomizacaoUsuarioDto, IDisponibilidadeUsuario, DisponibilidadeUsuarioDto, ListaDisponibilidadesUsuario, DisponibilidadesDDS, JanelaDisponibilidade, IUsuario, UsuarioDto, SalaDeJogo_Codigo, SalaDeJogoParams, SalaDeJogo_Tipo, SalaDeJogo_Estado, SalaDeJogo_TipoMestre, SalaDeJogo_Mestre, SalaDeJogo_Mestre_Mestrada, SalaDeJogo_Mestre_Inteligente, SalaDeJogo_TipoParticipante, SalaDeJogo_Participante, SalaDeJogo_Participante_Narrador, SalaDeJogo_Participante_Jogador, SalaDeJogo_FUNC_AtualizaParticipanteParams, SalaDeJogoDto, MenuItemNode, MenuGrupoNode, MenuNode, menuItem, menuGrupo, PaginaLike, MenuInternoTree, MenusInternos, Brand, ExtrairParamsDoTemplate, PaginaParamsDoTemplate, PaginaInfo, PaginaTemplate, PaginaDef, PaginaParams, montarHref, pagina, RequiredKeys, ParamsProps, MensagemChatRecebida, SalaChat, SalaChatFront, MensagemChatPayload, SOCKET_AcessoUsuario, SOCKET_UsuarioExistente, TelemetryConnectionInfo, WsEventAudienceUnico, WsEventAudienceMultiplo, WsEventAudience, TelemetryEventLog, TelemetrySnapshot, WsErrorResponse, WsUnauthorizedErrorResponse, WsResult, isWsErrorResponse, isWsUnauthorizedErrorResponse, wsErro, wsUnauthorized, wsMap, wsChain, EventoTipo, EmitDelivery, EventoAuthDefault, EventoEnvia, EventoEmite, EventoEnviaERecebe, EventoSchema, GatewayDef, createGateway, EventosWebSocket, isRecord, getEmitDelivery, WsEmitTarget, WsEmitParams, EventosEmiteMap, EventoEmiteAny, PaletaCores, EstruturaPaginaDefinicao, ConteudoItem, DefinicaoElemento, ListaItem, AventuraEstado, EstadoPendenciaPersonagem, EstadoPendenciaAdministrativaPersonagem, EstadoOcupacaoPersonagem, EstadoSessao, DiaDaSemana, obtemDiaDaSemanaPorExtensoPorDDS, NumeroHora24, NumeroMomento, MomentoFormatado24, MomentoFormatado, CargoExibicaoUsuario, CargosUsuario, ObjetoAutenticacao, ObjetoCache, ObjetoPendeciaPersonagem, TipoVariavelAmbiente, ObjetoEvolucaoCompleto, ObjetoEvolucao, ObjetoGanhosEvolucao, GanhoEstatistica, FormatoMomento, DetalheUtilizacaoRascunho, EstiloSessao, PathTokenPadrao, TituloSessaoInteligente, Capacidade, LISTA_CAPACIDADES, PermissaoItemMinimo, ListaCapacidadesNecessarias, AcessoPagina, Gateways, EventoTipoLiteral, FiltraEventosPorTipo, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe, DecisaoAcessoPagina, ResolverMenuInterno, Opts, decidirAcessoPagina, decidirAcessoPagina_Rec, PAGINAS, Folhas, PaginaFolha, PaginaTemplateFolha, PaginaDestino, PaginaDestinoPagina, PaginaHrefTemplate, PaginaHref, PaginaDefAny, PaginaTemplateAny, filtrarMenuPorAcesso, MENU_PRINCIPAL, MENUS_INTERNOS, MENUS_INTERNOS_POR_PAGINA, obterMenuInterno, resolverMenuInterno };