@databolsa/credit-sdk 3.7.0

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.
@@ -0,0 +1,2218 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/v1/desk/me": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** Identidade do chamador e mesas acessíveis */
14
+ get: operations["deskGetMe"];
15
+ put?: never;
16
+ post?: never;
17
+ delete?: never;
18
+ options?: never;
19
+ head?: never;
20
+ patch?: never;
21
+ trace?: never;
22
+ };
23
+ "/v1/desk/invitations/accept": {
24
+ parameters: {
25
+ query?: never;
26
+ header?: never;
27
+ path?: never;
28
+ cookie?: never;
29
+ };
30
+ get?: never;
31
+ put?: never;
32
+ /**
33
+ * Aceitar convite de mesa
34
+ * @description O assento é vinculado à conta logada. O e-mail da sessão precisa ser o mesmo do convite; divergência responde 403 com `code: invite_email_mismatch`.
35
+ */
36
+ post: operations["deskAcceptInvitation"];
37
+ delete?: never;
38
+ options?: never;
39
+ head?: never;
40
+ patch?: never;
41
+ trace?: never;
42
+ };
43
+ "/v1/desk/orgs/{org}": {
44
+ parameters: {
45
+ query?: never;
46
+ header?: never;
47
+ path?: never;
48
+ cookie?: never;
49
+ };
50
+ /** Perfil da mesa */
51
+ get: operations["deskGetOrganization"];
52
+ put?: never;
53
+ post?: never;
54
+ delete?: never;
55
+ options?: never;
56
+ head?: never;
57
+ /** Atualizar a mesa */
58
+ patch: operations["deskUpdateOrganization"];
59
+ trace?: never;
60
+ };
61
+ "/v1/desk/orgs/{org}/license": {
62
+ parameters: {
63
+ query?: never;
64
+ header?: never;
65
+ path?: never;
66
+ cookie?: never;
67
+ };
68
+ /** Licença da mesa */
69
+ get: operations["deskGetLicense"];
70
+ put?: never;
71
+ post?: never;
72
+ delete?: never;
73
+ options?: never;
74
+ head?: never;
75
+ patch?: never;
76
+ trace?: never;
77
+ };
78
+ "/v1/desk/orgs/{org}/members": {
79
+ parameters: {
80
+ query?: never;
81
+ header?: never;
82
+ path?: never;
83
+ cookie?: never;
84
+ };
85
+ /** Membros da mesa */
86
+ get: operations["deskListMembers"];
87
+ put?: never;
88
+ /**
89
+ * Atribuir assento a um membro da organização
90
+ * @description Cria (ou reativa) o assento da mesa para uma pessoa que já é membro da organização na plataforma, com o papel dado. É o caminho de entrada quando `settings.seatAssignment` é `manual`; em `automatic` serve para fixar o papel antes da primeira visita. Respeita o limite de assentos do contrato (402 `license_required`).
91
+ */
92
+ post: operations["deskAssignSeat"];
93
+ delete?: never;
94
+ options?: never;
95
+ head?: never;
96
+ patch?: never;
97
+ trace?: never;
98
+ };
99
+ "/v1/desk/orgs/{org}/members/{memberId}": {
100
+ parameters: {
101
+ query?: never;
102
+ header?: never;
103
+ path?: never;
104
+ cookie?: never;
105
+ };
106
+ get?: never;
107
+ put?: never;
108
+ post?: never;
109
+ delete?: never;
110
+ options?: never;
111
+ head?: never;
112
+ /** Alterar papel ou status de um membro */
113
+ patch: operations["deskUpdateMember"];
114
+ trace?: never;
115
+ };
116
+ "/v1/desk/orgs/{org}/invitations": {
117
+ parameters: {
118
+ query?: never;
119
+ header?: never;
120
+ path?: never;
121
+ cookie?: never;
122
+ };
123
+ /** Convites da mesa */
124
+ get: operations["deskListInvitations"];
125
+ put?: never;
126
+ /** Convidar alguém para a mesa */
127
+ post: operations["deskCreateInvitation"];
128
+ delete?: never;
129
+ options?: never;
130
+ head?: never;
131
+ patch?: never;
132
+ trace?: never;
133
+ };
134
+ "/v1/desk/orgs/{org}/invitations/{invitationId}": {
135
+ parameters: {
136
+ query?: never;
137
+ header?: never;
138
+ path?: never;
139
+ cookie?: never;
140
+ };
141
+ get?: never;
142
+ put?: never;
143
+ post?: never;
144
+ /** Revogar convite pendente */
145
+ delete: operations["deskRevokeInvitation"];
146
+ options?: never;
147
+ head?: never;
148
+ patch?: never;
149
+ trace?: never;
150
+ };
151
+ "/v1/desk/orgs/{org}/audit": {
152
+ parameters: {
153
+ query?: never;
154
+ header?: never;
155
+ path?: never;
156
+ cookie?: never;
157
+ };
158
+ /** Trilha de auditoria da mesa */
159
+ get: operations["deskListAudit"];
160
+ put?: never;
161
+ post?: never;
162
+ delete?: never;
163
+ options?: never;
164
+ head?: never;
165
+ patch?: never;
166
+ trace?: never;
167
+ };
168
+ "/v1/desk/orgs/{org}/watchlists": {
169
+ parameters: {
170
+ query?: never;
171
+ header?: never;
172
+ path?: never;
173
+ cookie?: never;
174
+ };
175
+ /** Watchlists da mesa */
176
+ get: operations["deskListWatchlists"];
177
+ put?: never;
178
+ /** Criar watchlist */
179
+ post: operations["deskCreateWatchlist"];
180
+ delete?: never;
181
+ options?: never;
182
+ head?: never;
183
+ patch?: never;
184
+ trace?: never;
185
+ };
186
+ "/v1/desk/orgs/{org}/watchlists/{list}": {
187
+ parameters: {
188
+ query?: never;
189
+ header?: never;
190
+ path?: never;
191
+ cookie?: never;
192
+ };
193
+ get?: never;
194
+ put?: never;
195
+ post?: never;
196
+ /** Remover watchlist */
197
+ delete: operations["deskDeleteWatchlist"];
198
+ options?: never;
199
+ head?: never;
200
+ patch?: never;
201
+ trace?: never;
202
+ };
203
+ "/v1/desk/orgs/{org}/watchlists/{list}/items": {
204
+ parameters: {
205
+ query?: never;
206
+ header?: never;
207
+ path?: never;
208
+ cookie?: never;
209
+ };
210
+ /** Posições acompanhadas na watchlist */
211
+ get: operations["deskListWatchlistItems"];
212
+ put?: never;
213
+ /**
214
+ * Incluir posições na watchlist
215
+ * @description Inclusão em lote e idempotente: CNPJs já acompanhados são contados em `skipped` em vez de derrubar o lote. Aceita CNPJ com ou sem pontuação.
216
+ */
217
+ post: operations["deskAddWatchlistItems"];
218
+ delete?: never;
219
+ options?: never;
220
+ head?: never;
221
+ patch?: never;
222
+ trace?: never;
223
+ };
224
+ "/v1/desk/orgs/{org}/watchlists/{list}/items/{cnpj}": {
225
+ parameters: {
226
+ query?: never;
227
+ header?: never;
228
+ path?: never;
229
+ cookie?: never;
230
+ };
231
+ get?: never;
232
+ put?: never;
233
+ post?: never;
234
+ /** Remover posição da watchlist */
235
+ delete: operations["deskRemoveWatchlistItem"];
236
+ options?: never;
237
+ head?: never;
238
+ patch?: never;
239
+ trace?: never;
240
+ };
241
+ "/v1/desk/orgs/{org}/watchlists/{list}/board": {
242
+ parameters: {
243
+ query?: never;
244
+ header?: never;
245
+ path?: never;
246
+ cookie?: never;
247
+ };
248
+ /**
249
+ * Quadro da watchlist com os números do informe
250
+ * @description Cruza as posições acompanhadas com o informe mensal da CVM na competência mais recente. Nenhum número é armazenado pela mesa: tudo vem do informe a cada leitura.
251
+ */
252
+ get: operations["deskGetWatchlistBoard"];
253
+ put?: never;
254
+ post?: never;
255
+ delete?: never;
256
+ options?: never;
257
+ head?: never;
258
+ patch?: never;
259
+ trace?: never;
260
+ };
261
+ "/v1/desk/orgs/{org}/grid": {
262
+ parameters: {
263
+ query?: never;
264
+ header?: never;
265
+ path?: never;
266
+ cookie?: never;
267
+ };
268
+ /** Colunas da grade e catálogo de métricas disponíveis */
269
+ get: operations["deskGetGrid"];
270
+ /** Definir as colunas da grade */
271
+ put: operations["deskSetGrid"];
272
+ post?: never;
273
+ delete?: never;
274
+ options?: never;
275
+ head?: never;
276
+ patch?: never;
277
+ trace?: never;
278
+ };
279
+ "/v1/desk/orgs/{org}/watchlists/{list}/alerts": {
280
+ parameters: {
281
+ query?: never;
282
+ header?: never;
283
+ path?: never;
284
+ cookie?: never;
285
+ };
286
+ /**
287
+ * Alertas da watchlist na competência mais recente
288
+ * @description Derivados na leitura a partir de três origens: limiar do regulamento da classe (`covenant`), regra configurada pela mesa (`rule`) e classe que parou de reportar (`reporting`). A leitura também REGISTRA no ledger append-only o que ainda não tinha sido observado, e devolve `first_detected_at` — é o que permite dizer 'desde quando' sem reconstruir o passado com as regras de hoje.
289
+ */
290
+ get: operations["deskListAlerts"];
291
+ put?: never;
292
+ post?: never;
293
+ delete?: never;
294
+ options?: never;
295
+ head?: never;
296
+ patch?: never;
297
+ trace?: never;
298
+ };
299
+ "/v1/desk/orgs/{org}/alert-history": {
300
+ parameters: {
301
+ query?: never;
302
+ header?: never;
303
+ path?: never;
304
+ cookie?: never;
305
+ };
306
+ /**
307
+ * Ledger de alertas já observados
308
+ * @description Append-only: cada linha é o registro imutável de um alerta que disparou, com o valor e o LIMIAR vigentes naquele instante. Editar uma regra depois não reescreve o passado. É o insumo do backtest de um sinal (lift, falso positivo, antecedência) e do 'o que mudou desde a última vez'.
309
+ */
310
+ get: operations["deskListAlertHistory"];
311
+ put?: never;
312
+ post?: never;
313
+ delete?: never;
314
+ options?: never;
315
+ head?: never;
316
+ patch?: never;
317
+ trace?: never;
318
+ };
319
+ "/v1/desk/orgs/{org}/alerts/{key}/ack": {
320
+ parameters: {
321
+ query?: never;
322
+ header?: never;
323
+ path?: never;
324
+ cookie?: never;
325
+ };
326
+ get?: never;
327
+ put?: never;
328
+ /**
329
+ * Dar baixa (ou silenciar) um alerta
330
+ * @description A baixa vale para a COMPETÊNCIA do alerta. O mesmo sinal na competência seguinte volta como novo.
331
+ */
332
+ post: operations["deskAcknowledgeAlert"];
333
+ delete?: never;
334
+ options?: never;
335
+ head?: never;
336
+ patch?: never;
337
+ trace?: never;
338
+ };
339
+ "/v1/desk/orgs/{org}/alert-rules": {
340
+ parameters: {
341
+ query?: never;
342
+ header?: never;
343
+ path?: never;
344
+ cookie?: never;
345
+ };
346
+ /** Regras de alerta da mesa */
347
+ get: operations["deskListAlertRules"];
348
+ /**
349
+ * Criar ou atualizar uma regra de alerta
350
+ * @description O limiar é informado na UNIDADE DA MÉTRICA: inadimplência de 5% entra como 0.05 (fração), concentração de 60% entra como 60 (percentual). O catálogo em `GET /grid` diz a unidade de cada uma.
351
+ */
352
+ put: operations["deskUpsertAlertRule"];
353
+ post?: never;
354
+ delete?: never;
355
+ options?: never;
356
+ head?: never;
357
+ patch?: never;
358
+ trace?: never;
359
+ };
360
+ "/v1/desk/orgs/{org}/alert-rules/{ruleId}": {
361
+ parameters: {
362
+ query?: never;
363
+ header?: never;
364
+ path?: never;
365
+ cookie?: never;
366
+ };
367
+ get?: never;
368
+ put?: never;
369
+ post?: never;
370
+ /** Remover regra de alerta */
371
+ delete: operations["deskDeleteAlertRule"];
372
+ options?: never;
373
+ head?: never;
374
+ patch?: never;
375
+ trace?: never;
376
+ };
377
+ "/v1/desk/orgs/{org}/notes": {
378
+ parameters: {
379
+ query?: never;
380
+ header?: never;
381
+ path?: never;
382
+ cookie?: never;
383
+ };
384
+ /** Notas da mesa */
385
+ get: operations["deskListNotes"];
386
+ put?: never;
387
+ /** Escrever nota sobre uma classe ou cedente */
388
+ post: operations["deskCreateNote"];
389
+ delete?: never;
390
+ options?: never;
391
+ head?: never;
392
+ patch?: never;
393
+ trace?: never;
394
+ };
395
+ "/v1/desk/orgs/{org}/notes/{noteId}": {
396
+ parameters: {
397
+ query?: never;
398
+ header?: never;
399
+ path?: never;
400
+ cookie?: never;
401
+ };
402
+ get?: never;
403
+ put?: never;
404
+ post?: never;
405
+ /** Remover nota */
406
+ delete: operations["deskDeleteNote"];
407
+ options?: never;
408
+ head?: never;
409
+ patch?: never;
410
+ trace?: never;
411
+ };
412
+ "/v1/desk/orgs/{org}/classes/{cnpj}/terms": {
413
+ parameters: {
414
+ query?: never;
415
+ header?: never;
416
+ path?: never;
417
+ cookie?: never;
418
+ };
419
+ /**
420
+ * Limiares do regulamento de uma classe
421
+ * @description Point-in-time: por padrão devolve só as linhas VIGENTES. Toda linha carrega a procedência (documento, página e trecho) e só `confirmed` alimenta os alertas de covenant.
422
+ */
423
+ get: operations["deskListRegulationTerms"];
424
+ put?: never;
425
+ /**
426
+ * Propor um limiar extraído do regulamento
427
+ * @description O termo nasce SEMPRE como `pending`, mesmo com confiança alta: só a revisão humana (`deskReviewRegulationTerm`) liga o alerta. Valores numéricos seguem a unidade do dado.
428
+ */
429
+ post: operations["deskProposeRegulationTerm"];
430
+ delete?: never;
431
+ options?: never;
432
+ head?: never;
433
+ patch?: never;
434
+ trace?: never;
435
+ };
436
+ "/v1/desk/orgs/{org}/terms": {
437
+ parameters: {
438
+ query?: never;
439
+ header?: never;
440
+ path?: never;
441
+ cookie?: never;
442
+ };
443
+ /**
444
+ * Limiares da mesa inteira
445
+ * @description Fila de revisão cross-classe: todo limiar da mesa, mais novo primeiro, com a classe (`cnpj`) em cada linha. `status=pending` é o que ainda espera revisão humana.
446
+ */
447
+ get: operations["deskListOrgRegulationTerms"];
448
+ put?: never;
449
+ post?: never;
450
+ delete?: never;
451
+ options?: never;
452
+ head?: never;
453
+ patch?: never;
454
+ trace?: never;
455
+ };
456
+ "/v1/desk/orgs/{org}/terms/{termId}/review": {
457
+ parameters: {
458
+ query?: never;
459
+ header?: never;
460
+ path?: never;
461
+ cookie?: never;
462
+ };
463
+ get?: never;
464
+ put?: never;
465
+ /**
466
+ * Confirmar ou rejeitar um limiar proposto
467
+ * @description Confirmar FECHA a linha vigente do mesmo (classe, termo) e abre a nova — nada é sobrescrito, para continuar auditável qual limiar valia quando cada alerta disparou.
468
+ */
469
+ post: operations["deskReviewRegulationTerm"];
470
+ delete?: never;
471
+ options?: never;
472
+ head?: never;
473
+ patch?: never;
474
+ trace?: never;
475
+ };
476
+ }
477
+ export type webhooks = Record<string, never>;
478
+ export interface components {
479
+ schemas: never;
480
+ responses: never;
481
+ parameters: never;
482
+ requestBodies: never;
483
+ headers: never;
484
+ pathItems: never;
485
+ }
486
+ export type $defs = Record<string, never>;
487
+ export interface operations {
488
+ deskGetMe: {
489
+ parameters: {
490
+ query?: never;
491
+ header?: never;
492
+ path?: never;
493
+ cookie?: never;
494
+ };
495
+ requestBody?: never;
496
+ responses: {
497
+ /** @description OK */
498
+ 200: {
499
+ headers: {
500
+ [name: string]: unknown;
501
+ };
502
+ content: {
503
+ "application/json": {
504
+ user_id: string | null;
505
+ email: string | null;
506
+ name: string | null;
507
+ organizations: {
508
+ org_id: string;
509
+ org_slug: string;
510
+ org_name: string;
511
+ /** @enum {string} */
512
+ role: "owner" | "admin" | "analyst" | "viewer";
513
+ member_id: string;
514
+ }[];
515
+ };
516
+ };
517
+ };
518
+ /** @description Erro (RFC 9457 application/problem+json) */
519
+ default: {
520
+ headers: {
521
+ [name: string]: unknown;
522
+ };
523
+ content: {
524
+ "application/problem+json": {
525
+ type?: string;
526
+ title: string;
527
+ status: number;
528
+ detail?: string;
529
+ code?: string;
530
+ };
531
+ };
532
+ };
533
+ };
534
+ };
535
+ deskAcceptInvitation: {
536
+ parameters: {
537
+ query?: never;
538
+ header?: never;
539
+ path?: never;
540
+ cookie?: never;
541
+ };
542
+ requestBody?: {
543
+ content: {
544
+ "application/json": {
545
+ token: string;
546
+ };
547
+ };
548
+ };
549
+ responses: {
550
+ /** @description Assento criado ou reativado */
551
+ 200: {
552
+ headers: {
553
+ [name: string]: unknown;
554
+ };
555
+ content: {
556
+ "application/json": {
557
+ org_id: string;
558
+ org_slug: string;
559
+ member_id: string;
560
+ role: string;
561
+ };
562
+ };
563
+ };
564
+ /** @description Erro (RFC 9457 application/problem+json) */
565
+ default: {
566
+ headers: {
567
+ [name: string]: unknown;
568
+ };
569
+ content: {
570
+ "application/problem+json": {
571
+ type?: string;
572
+ title: string;
573
+ status: number;
574
+ detail?: string;
575
+ code?: string;
576
+ };
577
+ };
578
+ };
579
+ };
580
+ };
581
+ deskGetOrganization: {
582
+ parameters: {
583
+ query?: never;
584
+ header?: never;
585
+ path: {
586
+ org: string;
587
+ };
588
+ cookie?: never;
589
+ };
590
+ requestBody?: never;
591
+ responses: {
592
+ /** @description OK */
593
+ 200: {
594
+ headers: {
595
+ [name: string]: unknown;
596
+ };
597
+ content: {
598
+ "application/json": {
599
+ id: string;
600
+ slug: string;
601
+ name: string;
602
+ cnpj: string | null;
603
+ cvm_registration: string | null;
604
+ status: string;
605
+ };
606
+ };
607
+ };
608
+ /** @description Erro (RFC 9457 application/problem+json) */
609
+ default: {
610
+ headers: {
611
+ [name: string]: unknown;
612
+ };
613
+ content: {
614
+ "application/problem+json": {
615
+ type?: string;
616
+ title: string;
617
+ status: number;
618
+ detail?: string;
619
+ code?: string;
620
+ };
621
+ };
622
+ };
623
+ };
624
+ };
625
+ deskUpdateOrganization: {
626
+ parameters: {
627
+ query?: never;
628
+ header?: never;
629
+ path: {
630
+ org: string;
631
+ };
632
+ cookie?: never;
633
+ };
634
+ requestBody?: {
635
+ content: {
636
+ "application/json": {
637
+ name?: string;
638
+ settings?: {
639
+ [key: string]: unknown;
640
+ };
641
+ };
642
+ };
643
+ };
644
+ responses: {
645
+ /** @description OK */
646
+ 200: {
647
+ headers: {
648
+ [name: string]: unknown;
649
+ };
650
+ content: {
651
+ "application/json": {
652
+ id: string;
653
+ slug: string;
654
+ name: string;
655
+ cnpj: string | null;
656
+ cvm_registration: string | null;
657
+ status: string;
658
+ };
659
+ };
660
+ };
661
+ /** @description Erro (RFC 9457 application/problem+json) */
662
+ default: {
663
+ headers: {
664
+ [name: string]: unknown;
665
+ };
666
+ content: {
667
+ "application/problem+json": {
668
+ type?: string;
669
+ title: string;
670
+ status: number;
671
+ detail?: string;
672
+ code?: string;
673
+ };
674
+ };
675
+ };
676
+ };
677
+ };
678
+ deskGetLicense: {
679
+ parameters: {
680
+ query?: never;
681
+ header?: never;
682
+ path: {
683
+ org: string;
684
+ };
685
+ cookie?: never;
686
+ };
687
+ requestBody?: never;
688
+ responses: {
689
+ /** @description OK */
690
+ 200: {
691
+ headers: {
692
+ [name: string]: unknown;
693
+ };
694
+ content: {
695
+ "application/json": {
696
+ plan: string | null;
697
+ seats_limit: number;
698
+ watched_limit: number | null;
699
+ expires_at: string | null;
700
+ expired: boolean;
701
+ };
702
+ };
703
+ };
704
+ /** @description Erro (RFC 9457 application/problem+json) */
705
+ default: {
706
+ headers: {
707
+ [name: string]: unknown;
708
+ };
709
+ content: {
710
+ "application/problem+json": {
711
+ type?: string;
712
+ title: string;
713
+ status: number;
714
+ detail?: string;
715
+ code?: string;
716
+ };
717
+ };
718
+ };
719
+ };
720
+ };
721
+ deskListMembers: {
722
+ parameters: {
723
+ query?: never;
724
+ header?: never;
725
+ path: {
726
+ org: string;
727
+ };
728
+ cookie?: never;
729
+ };
730
+ requestBody?: never;
731
+ responses: {
732
+ /** @description OK */
733
+ 200: {
734
+ headers: {
735
+ [name: string]: unknown;
736
+ };
737
+ content: {
738
+ "application/json": {
739
+ data: {
740
+ id: string;
741
+ role: string;
742
+ display_name: string | null;
743
+ status: string;
744
+ created_at: string;
745
+ }[];
746
+ };
747
+ };
748
+ };
749
+ /** @description Erro (RFC 9457 application/problem+json) */
750
+ default: {
751
+ headers: {
752
+ [name: string]: unknown;
753
+ };
754
+ content: {
755
+ "application/problem+json": {
756
+ type?: string;
757
+ title: string;
758
+ status: number;
759
+ detail?: string;
760
+ code?: string;
761
+ };
762
+ };
763
+ };
764
+ };
765
+ };
766
+ deskAssignSeat: {
767
+ parameters: {
768
+ query?: never;
769
+ header?: never;
770
+ path: {
771
+ org: string;
772
+ };
773
+ cookie?: never;
774
+ };
775
+ requestBody?: {
776
+ content: {
777
+ "application/json": {
778
+ user_id: string;
779
+ /** @enum {string} */
780
+ role: "owner" | "admin" | "analyst";
781
+ display_name?: string;
782
+ };
783
+ };
784
+ };
785
+ responses: {
786
+ /** @description Assento criado ou reativado */
787
+ 200: {
788
+ headers: {
789
+ [name: string]: unknown;
790
+ };
791
+ content: {
792
+ "application/json": {
793
+ id: string;
794
+ role: string;
795
+ display_name: string | null;
796
+ status: string;
797
+ created_at: string;
798
+ };
799
+ };
800
+ };
801
+ /** @description Erro (RFC 9457 application/problem+json) */
802
+ default: {
803
+ headers: {
804
+ [name: string]: unknown;
805
+ };
806
+ content: {
807
+ "application/problem+json": {
808
+ type?: string;
809
+ title: string;
810
+ status: number;
811
+ detail?: string;
812
+ code?: string;
813
+ };
814
+ };
815
+ };
816
+ };
817
+ };
818
+ deskUpdateMember: {
819
+ parameters: {
820
+ query?: never;
821
+ header?: never;
822
+ path: {
823
+ org: string;
824
+ memberId: string;
825
+ };
826
+ cookie?: never;
827
+ };
828
+ requestBody?: {
829
+ content: {
830
+ "application/json": {
831
+ /** @enum {string} */
832
+ role?: "owner" | "admin" | "analyst";
833
+ /** @enum {string} */
834
+ status?: "active" | "suspended";
835
+ display_name?: string;
836
+ };
837
+ };
838
+ };
839
+ responses: {
840
+ /** @description OK */
841
+ 200: {
842
+ headers: {
843
+ [name: string]: unknown;
844
+ };
845
+ content: {
846
+ "application/json": {
847
+ id: string;
848
+ role: string;
849
+ display_name: string | null;
850
+ status: string;
851
+ created_at: string;
852
+ };
853
+ };
854
+ };
855
+ /** @description Erro (RFC 9457 application/problem+json) */
856
+ default: {
857
+ headers: {
858
+ [name: string]: unknown;
859
+ };
860
+ content: {
861
+ "application/problem+json": {
862
+ type?: string;
863
+ title: string;
864
+ status: number;
865
+ detail?: string;
866
+ code?: string;
867
+ };
868
+ };
869
+ };
870
+ };
871
+ };
872
+ deskListInvitations: {
873
+ parameters: {
874
+ query?: never;
875
+ header?: never;
876
+ path: {
877
+ org: string;
878
+ };
879
+ cookie?: never;
880
+ };
881
+ requestBody?: never;
882
+ responses: {
883
+ /** @description OK */
884
+ 200: {
885
+ headers: {
886
+ [name: string]: unknown;
887
+ };
888
+ content: {
889
+ "application/json": {
890
+ data: {
891
+ id: string;
892
+ email: string;
893
+ role: string;
894
+ status: string;
895
+ expires_at: string;
896
+ }[];
897
+ };
898
+ };
899
+ };
900
+ /** @description Erro (RFC 9457 application/problem+json) */
901
+ default: {
902
+ headers: {
903
+ [name: string]: unknown;
904
+ };
905
+ content: {
906
+ "application/problem+json": {
907
+ type?: string;
908
+ title: string;
909
+ status: number;
910
+ detail?: string;
911
+ code?: string;
912
+ };
913
+ };
914
+ };
915
+ };
916
+ };
917
+ deskCreateInvitation: {
918
+ parameters: {
919
+ query?: never;
920
+ header?: never;
921
+ path: {
922
+ org: string;
923
+ };
924
+ cookie?: never;
925
+ };
926
+ requestBody?: {
927
+ content: {
928
+ "application/json": {
929
+ /** Format: email */
930
+ email: string;
931
+ /** @enum {string} */
932
+ role: "owner" | "admin" | "analyst";
933
+ };
934
+ };
935
+ };
936
+ responses: {
937
+ /** @description Criado */
938
+ 201: {
939
+ headers: {
940
+ [name: string]: unknown;
941
+ };
942
+ content: {
943
+ "application/json": {
944
+ invitation_id: string;
945
+ invite_url: string;
946
+ };
947
+ };
948
+ };
949
+ /** @description Erro (RFC 9457 application/problem+json) */
950
+ default: {
951
+ headers: {
952
+ [name: string]: unknown;
953
+ };
954
+ content: {
955
+ "application/problem+json": {
956
+ type?: string;
957
+ title: string;
958
+ status: number;
959
+ detail?: string;
960
+ code?: string;
961
+ };
962
+ };
963
+ };
964
+ };
965
+ };
966
+ deskRevokeInvitation: {
967
+ parameters: {
968
+ query?: never;
969
+ header?: never;
970
+ path: {
971
+ org: string;
972
+ invitationId: string;
973
+ };
974
+ cookie?: never;
975
+ };
976
+ requestBody?: never;
977
+ responses: {
978
+ /** @description OK */
979
+ 200: {
980
+ headers: {
981
+ [name: string]: unknown;
982
+ };
983
+ content: {
984
+ "application/json": {
985
+ revoked: boolean;
986
+ };
987
+ };
988
+ };
989
+ /** @description Erro (RFC 9457 application/problem+json) */
990
+ default: {
991
+ headers: {
992
+ [name: string]: unknown;
993
+ };
994
+ content: {
995
+ "application/problem+json": {
996
+ type?: string;
997
+ title: string;
998
+ status: number;
999
+ detail?: string;
1000
+ code?: string;
1001
+ };
1002
+ };
1003
+ };
1004
+ };
1005
+ };
1006
+ deskListAudit: {
1007
+ parameters: {
1008
+ query?: {
1009
+ entity_id?: string;
1010
+ cursor?: string;
1011
+ limit?: number;
1012
+ };
1013
+ header?: never;
1014
+ path: {
1015
+ org: string;
1016
+ };
1017
+ cookie?: never;
1018
+ };
1019
+ requestBody?: never;
1020
+ responses: {
1021
+ /** @description OK */
1022
+ 200: {
1023
+ headers: {
1024
+ [name: string]: unknown;
1025
+ };
1026
+ content: {
1027
+ "application/json": {
1028
+ data: {
1029
+ id: string;
1030
+ action: string;
1031
+ summary: string | null;
1032
+ via: string;
1033
+ actor_member_id: string | null;
1034
+ actor_display_name: string | null;
1035
+ entity_type: string | null;
1036
+ entity_id: string | null;
1037
+ created_at: string;
1038
+ }[];
1039
+ meta: {
1040
+ next_cursor: string | null;
1041
+ count: number;
1042
+ };
1043
+ };
1044
+ };
1045
+ };
1046
+ /** @description Erro (RFC 9457 application/problem+json) */
1047
+ default: {
1048
+ headers: {
1049
+ [name: string]: unknown;
1050
+ };
1051
+ content: {
1052
+ "application/problem+json": {
1053
+ type?: string;
1054
+ title: string;
1055
+ status: number;
1056
+ detail?: string;
1057
+ code?: string;
1058
+ };
1059
+ };
1060
+ };
1061
+ };
1062
+ };
1063
+ deskListWatchlists: {
1064
+ parameters: {
1065
+ query?: never;
1066
+ header?: never;
1067
+ path: {
1068
+ org: string;
1069
+ };
1070
+ cookie?: never;
1071
+ };
1072
+ requestBody?: never;
1073
+ responses: {
1074
+ /** @description OK */
1075
+ 200: {
1076
+ headers: {
1077
+ [name: string]: unknown;
1078
+ };
1079
+ content: {
1080
+ "application/json": {
1081
+ data: {
1082
+ id: string;
1083
+ slug: string;
1084
+ name: string;
1085
+ description: string | null;
1086
+ kind: string;
1087
+ item_count: number;
1088
+ }[];
1089
+ };
1090
+ };
1091
+ };
1092
+ /** @description Erro (RFC 9457 application/problem+json) */
1093
+ default: {
1094
+ headers: {
1095
+ [name: string]: unknown;
1096
+ };
1097
+ content: {
1098
+ "application/problem+json": {
1099
+ type?: string;
1100
+ title: string;
1101
+ status: number;
1102
+ detail?: string;
1103
+ code?: string;
1104
+ };
1105
+ };
1106
+ };
1107
+ };
1108
+ };
1109
+ deskCreateWatchlist: {
1110
+ parameters: {
1111
+ query?: never;
1112
+ header?: never;
1113
+ path: {
1114
+ org: string;
1115
+ };
1116
+ cookie?: never;
1117
+ };
1118
+ requestBody?: {
1119
+ content: {
1120
+ "application/json": {
1121
+ name: string;
1122
+ slug?: string;
1123
+ description?: string | null;
1124
+ /** @enum {string} */
1125
+ kind?: "book" | "market";
1126
+ };
1127
+ };
1128
+ };
1129
+ responses: {
1130
+ /** @description Criado */
1131
+ 201: {
1132
+ headers: {
1133
+ [name: string]: unknown;
1134
+ };
1135
+ content: {
1136
+ "application/json": {
1137
+ id: string;
1138
+ slug: string;
1139
+ name: string;
1140
+ description: string | null;
1141
+ kind: string;
1142
+ item_count: number;
1143
+ };
1144
+ };
1145
+ };
1146
+ /** @description Erro (RFC 9457 application/problem+json) */
1147
+ default: {
1148
+ headers: {
1149
+ [name: string]: unknown;
1150
+ };
1151
+ content: {
1152
+ "application/problem+json": {
1153
+ type?: string;
1154
+ title: string;
1155
+ status: number;
1156
+ detail?: string;
1157
+ code?: string;
1158
+ };
1159
+ };
1160
+ };
1161
+ };
1162
+ };
1163
+ deskDeleteWatchlist: {
1164
+ parameters: {
1165
+ query?: never;
1166
+ header?: never;
1167
+ path: {
1168
+ org: string;
1169
+ list: string;
1170
+ };
1171
+ cookie?: never;
1172
+ };
1173
+ requestBody?: never;
1174
+ responses: {
1175
+ /** @description OK */
1176
+ 200: {
1177
+ headers: {
1178
+ [name: string]: unknown;
1179
+ };
1180
+ content: {
1181
+ "application/json": {
1182
+ deleted: boolean;
1183
+ };
1184
+ };
1185
+ };
1186
+ /** @description Erro (RFC 9457 application/problem+json) */
1187
+ default: {
1188
+ headers: {
1189
+ [name: string]: unknown;
1190
+ };
1191
+ content: {
1192
+ "application/problem+json": {
1193
+ type?: string;
1194
+ title: string;
1195
+ status: number;
1196
+ detail?: string;
1197
+ code?: string;
1198
+ };
1199
+ };
1200
+ };
1201
+ };
1202
+ };
1203
+ deskListWatchlistItems: {
1204
+ parameters: {
1205
+ query?: never;
1206
+ header?: never;
1207
+ path: {
1208
+ org: string;
1209
+ list: string;
1210
+ };
1211
+ cookie?: never;
1212
+ };
1213
+ requestBody?: never;
1214
+ responses: {
1215
+ /** @description OK */
1216
+ 200: {
1217
+ headers: {
1218
+ [name: string]: unknown;
1219
+ };
1220
+ content: {
1221
+ "application/json": {
1222
+ data: {
1223
+ cnpj: string;
1224
+ entity_kind: string;
1225
+ label: string | null;
1226
+ relation: string;
1227
+ position: number;
1228
+ }[];
1229
+ };
1230
+ };
1231
+ };
1232
+ /** @description Erro (RFC 9457 application/problem+json) */
1233
+ default: {
1234
+ headers: {
1235
+ [name: string]: unknown;
1236
+ };
1237
+ content: {
1238
+ "application/problem+json": {
1239
+ type?: string;
1240
+ title: string;
1241
+ status: number;
1242
+ detail?: string;
1243
+ code?: string;
1244
+ };
1245
+ };
1246
+ };
1247
+ };
1248
+ };
1249
+ deskAddWatchlistItems: {
1250
+ parameters: {
1251
+ query?: never;
1252
+ header?: never;
1253
+ path: {
1254
+ org: string;
1255
+ list: string;
1256
+ };
1257
+ cookie?: never;
1258
+ };
1259
+ requestBody?: {
1260
+ content: {
1261
+ "application/json": {
1262
+ items: {
1263
+ cnpj: string;
1264
+ label?: string | null;
1265
+ /** @enum {string} */
1266
+ entity_kind?: "fidc_class" | "originator";
1267
+ /**
1268
+ * @description O que a classe é PARA A MESA. `own`: a casa gere ou originou — quebra de limite aqui é operacional. `tracked` (default): exposição, avaliação ou comparação.
1269
+ * @enum {string}
1270
+ */
1271
+ relation?: "own" | "tracked";
1272
+ }[];
1273
+ };
1274
+ };
1275
+ };
1276
+ responses: {
1277
+ /** @description OK */
1278
+ 200: {
1279
+ headers: {
1280
+ [name: string]: unknown;
1281
+ };
1282
+ content: {
1283
+ "application/json": {
1284
+ added: number;
1285
+ skipped: number;
1286
+ };
1287
+ };
1288
+ };
1289
+ /** @description Erro (RFC 9457 application/problem+json) */
1290
+ default: {
1291
+ headers: {
1292
+ [name: string]: unknown;
1293
+ };
1294
+ content: {
1295
+ "application/problem+json": {
1296
+ type?: string;
1297
+ title: string;
1298
+ status: number;
1299
+ detail?: string;
1300
+ code?: string;
1301
+ };
1302
+ };
1303
+ };
1304
+ };
1305
+ };
1306
+ deskRemoveWatchlistItem: {
1307
+ parameters: {
1308
+ query?: never;
1309
+ header?: never;
1310
+ path: {
1311
+ org: string;
1312
+ list: string;
1313
+ cnpj: string;
1314
+ };
1315
+ cookie?: never;
1316
+ };
1317
+ requestBody?: never;
1318
+ responses: {
1319
+ /** @description OK */
1320
+ 200: {
1321
+ headers: {
1322
+ [name: string]: unknown;
1323
+ };
1324
+ content: {
1325
+ "application/json": {
1326
+ removed: boolean;
1327
+ };
1328
+ };
1329
+ };
1330
+ /** @description Erro (RFC 9457 application/problem+json) */
1331
+ default: {
1332
+ headers: {
1333
+ [name: string]: unknown;
1334
+ };
1335
+ content: {
1336
+ "application/problem+json": {
1337
+ type?: string;
1338
+ title: string;
1339
+ status: number;
1340
+ detail?: string;
1341
+ code?: string;
1342
+ };
1343
+ };
1344
+ };
1345
+ };
1346
+ };
1347
+ deskGetWatchlistBoard: {
1348
+ parameters: {
1349
+ query?: never;
1350
+ header?: never;
1351
+ path: {
1352
+ org: string;
1353
+ list: string;
1354
+ };
1355
+ cookie?: never;
1356
+ };
1357
+ requestBody?: never;
1358
+ responses: {
1359
+ /** @description OK */
1360
+ 200: {
1361
+ headers: {
1362
+ [name: string]: unknown;
1363
+ };
1364
+ content: {
1365
+ "application/json": {
1366
+ watchlist: {
1367
+ id: string;
1368
+ slug: string;
1369
+ name: string;
1370
+ kind: string;
1371
+ };
1372
+ /** @description Competência mais recente do informe no mercado (YYYY-MM-DD). */
1373
+ latest_competence: string | null;
1374
+ columns: {
1375
+ metric: string;
1376
+ label: string;
1377
+ unit: string;
1378
+ help: string;
1379
+ }[];
1380
+ rows: {
1381
+ cnpj: string;
1382
+ entity_kind: string;
1383
+ /** @description `own` (a casa gere/originou) ou `tracked`. */
1384
+ relation: string;
1385
+ label: string | null;
1386
+ name: string | null;
1387
+ reference_date: string | null;
1388
+ /** @description True quando o informe não conhece este CNPJ — diferente de conhecer e estar atrasado. */
1389
+ unknown: boolean;
1390
+ cells: {
1391
+ metric: string;
1392
+ value: number | null;
1393
+ unit: string;
1394
+ }[];
1395
+ }[];
1396
+ };
1397
+ };
1398
+ };
1399
+ /** @description Erro (RFC 9457 application/problem+json) */
1400
+ default: {
1401
+ headers: {
1402
+ [name: string]: unknown;
1403
+ };
1404
+ content: {
1405
+ "application/problem+json": {
1406
+ type?: string;
1407
+ title: string;
1408
+ status: number;
1409
+ detail?: string;
1410
+ code?: string;
1411
+ };
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ deskGetGrid: {
1417
+ parameters: {
1418
+ query?: never;
1419
+ header?: never;
1420
+ path: {
1421
+ org: string;
1422
+ };
1423
+ cookie?: never;
1424
+ };
1425
+ requestBody?: never;
1426
+ responses: {
1427
+ /** @description OK */
1428
+ 200: {
1429
+ headers: {
1430
+ [name: string]: unknown;
1431
+ };
1432
+ content: {
1433
+ "application/json": {
1434
+ columns: {
1435
+ metric: string;
1436
+ position: number;
1437
+ }[];
1438
+ catalog: {
1439
+ metric: string;
1440
+ label: string;
1441
+ unit: string;
1442
+ help: string;
1443
+ }[];
1444
+ };
1445
+ };
1446
+ };
1447
+ /** @description Erro (RFC 9457 application/problem+json) */
1448
+ default: {
1449
+ headers: {
1450
+ [name: string]: unknown;
1451
+ };
1452
+ content: {
1453
+ "application/problem+json": {
1454
+ type?: string;
1455
+ title: string;
1456
+ status: number;
1457
+ detail?: string;
1458
+ code?: string;
1459
+ };
1460
+ };
1461
+ };
1462
+ };
1463
+ };
1464
+ deskSetGrid: {
1465
+ parameters: {
1466
+ query?: never;
1467
+ header?: never;
1468
+ path: {
1469
+ org: string;
1470
+ };
1471
+ cookie?: never;
1472
+ };
1473
+ requestBody?: {
1474
+ content: {
1475
+ "application/json": {
1476
+ metrics: string[];
1477
+ };
1478
+ };
1479
+ };
1480
+ responses: {
1481
+ /** @description OK */
1482
+ 200: {
1483
+ headers: {
1484
+ [name: string]: unknown;
1485
+ };
1486
+ content: {
1487
+ "application/json": {
1488
+ columns: string[];
1489
+ };
1490
+ };
1491
+ };
1492
+ /** @description Erro (RFC 9457 application/problem+json) */
1493
+ default: {
1494
+ headers: {
1495
+ [name: string]: unknown;
1496
+ };
1497
+ content: {
1498
+ "application/problem+json": {
1499
+ type?: string;
1500
+ title: string;
1501
+ status: number;
1502
+ detail?: string;
1503
+ code?: string;
1504
+ };
1505
+ };
1506
+ };
1507
+ };
1508
+ };
1509
+ deskListAlerts: {
1510
+ parameters: {
1511
+ query?: never;
1512
+ header?: never;
1513
+ path: {
1514
+ org: string;
1515
+ list: string;
1516
+ };
1517
+ cookie?: never;
1518
+ };
1519
+ requestBody?: never;
1520
+ responses: {
1521
+ /** @description OK */
1522
+ 200: {
1523
+ headers: {
1524
+ [name: string]: unknown;
1525
+ };
1526
+ content: {
1527
+ "application/json": {
1528
+ data: {
1529
+ key: string;
1530
+ cnpj: string;
1531
+ name: string | null;
1532
+ /** @enum {string} */
1533
+ source: "covenant" | "rule" | "reporting";
1534
+ /** @enum {string} */
1535
+ severity: "info" | "attention" | "critical";
1536
+ metric: string;
1537
+ value: number | null;
1538
+ threshold: number | null;
1539
+ distance: number | null;
1540
+ reference_date: string | null;
1541
+ title: string;
1542
+ evidence: {
1543
+ doc_id: string | null;
1544
+ page: number | null;
1545
+ quote: string | null;
1546
+ } | null;
1547
+ /** @enum {string} */
1548
+ status: "open" | "acknowledged" | "muted";
1549
+ first_detected_at?: string | null;
1550
+ }[];
1551
+ meta: {
1552
+ count: number;
1553
+ };
1554
+ };
1555
+ };
1556
+ };
1557
+ /** @description Erro (RFC 9457 application/problem+json) */
1558
+ default: {
1559
+ headers: {
1560
+ [name: string]: unknown;
1561
+ };
1562
+ content: {
1563
+ "application/problem+json": {
1564
+ type?: string;
1565
+ title: string;
1566
+ status: number;
1567
+ detail?: string;
1568
+ code?: string;
1569
+ };
1570
+ };
1571
+ };
1572
+ };
1573
+ };
1574
+ deskListAlertHistory: {
1575
+ parameters: {
1576
+ query?: {
1577
+ cnpj?: string;
1578
+ source?: "covenant" | "rule" | "reporting";
1579
+ since?: string;
1580
+ limit?: number;
1581
+ };
1582
+ header?: never;
1583
+ path: {
1584
+ org: string;
1585
+ };
1586
+ cookie?: never;
1587
+ };
1588
+ requestBody?: never;
1589
+ responses: {
1590
+ /** @description OK */
1591
+ 200: {
1592
+ headers: {
1593
+ [name: string]: unknown;
1594
+ };
1595
+ content: {
1596
+ "application/json": {
1597
+ data: {
1598
+ alert_key: string;
1599
+ cnpj: string;
1600
+ source: string;
1601
+ severity: string;
1602
+ metric: string;
1603
+ value: number | null;
1604
+ threshold: number | null;
1605
+ distance: number | null;
1606
+ reference_date: string | null;
1607
+ title: string;
1608
+ detected_at: string;
1609
+ }[];
1610
+ meta: {
1611
+ count: number;
1612
+ };
1613
+ };
1614
+ };
1615
+ };
1616
+ /** @description Erro (RFC 9457 application/problem+json) */
1617
+ default: {
1618
+ headers: {
1619
+ [name: string]: unknown;
1620
+ };
1621
+ content: {
1622
+ "application/problem+json": {
1623
+ type?: string;
1624
+ title: string;
1625
+ status: number;
1626
+ detail?: string;
1627
+ code?: string;
1628
+ };
1629
+ };
1630
+ };
1631
+ };
1632
+ };
1633
+ deskAcknowledgeAlert: {
1634
+ parameters: {
1635
+ query?: never;
1636
+ header?: never;
1637
+ path: {
1638
+ org: string;
1639
+ key: string;
1640
+ };
1641
+ cookie?: never;
1642
+ };
1643
+ requestBody?: {
1644
+ content: {
1645
+ "application/json": {
1646
+ /**
1647
+ * @default acknowledged
1648
+ * @enum {string}
1649
+ */
1650
+ status?: "acknowledged" | "muted";
1651
+ };
1652
+ };
1653
+ };
1654
+ responses: {
1655
+ /** @description OK */
1656
+ 200: {
1657
+ headers: {
1658
+ [name: string]: unknown;
1659
+ };
1660
+ content: {
1661
+ "application/json": {
1662
+ key: string;
1663
+ status: string;
1664
+ };
1665
+ };
1666
+ };
1667
+ /** @description Erro (RFC 9457 application/problem+json) */
1668
+ default: {
1669
+ headers: {
1670
+ [name: string]: unknown;
1671
+ };
1672
+ content: {
1673
+ "application/problem+json": {
1674
+ type?: string;
1675
+ title: string;
1676
+ status: number;
1677
+ detail?: string;
1678
+ code?: string;
1679
+ };
1680
+ };
1681
+ };
1682
+ };
1683
+ };
1684
+ deskListAlertRules: {
1685
+ parameters: {
1686
+ query?: never;
1687
+ header?: never;
1688
+ path: {
1689
+ org: string;
1690
+ };
1691
+ cookie?: never;
1692
+ };
1693
+ requestBody?: never;
1694
+ responses: {
1695
+ /** @description OK */
1696
+ 200: {
1697
+ headers: {
1698
+ [name: string]: unknown;
1699
+ };
1700
+ content: {
1701
+ "application/json": {
1702
+ data: {
1703
+ id: string;
1704
+ metric: string;
1705
+ comparator: string;
1706
+ threshold: number;
1707
+ severity: string;
1708
+ enabled: boolean;
1709
+ }[];
1710
+ };
1711
+ };
1712
+ };
1713
+ /** @description Erro (RFC 9457 application/problem+json) */
1714
+ default: {
1715
+ headers: {
1716
+ [name: string]: unknown;
1717
+ };
1718
+ content: {
1719
+ "application/problem+json": {
1720
+ type?: string;
1721
+ title: string;
1722
+ status: number;
1723
+ detail?: string;
1724
+ code?: string;
1725
+ };
1726
+ };
1727
+ };
1728
+ };
1729
+ };
1730
+ deskUpsertAlertRule: {
1731
+ parameters: {
1732
+ query?: never;
1733
+ header?: never;
1734
+ path: {
1735
+ org: string;
1736
+ };
1737
+ cookie?: never;
1738
+ };
1739
+ requestBody?: {
1740
+ content: {
1741
+ "application/json": {
1742
+ metric: string;
1743
+ /** @enum {string} */
1744
+ comparator: "gt" | "lt";
1745
+ threshold: number;
1746
+ /** @enum {string} */
1747
+ severity?: "info" | "attention" | "critical";
1748
+ enabled?: boolean;
1749
+ };
1750
+ };
1751
+ };
1752
+ responses: {
1753
+ /** @description Criado */
1754
+ 201: {
1755
+ headers: {
1756
+ [name: string]: unknown;
1757
+ };
1758
+ content: {
1759
+ "application/json": {
1760
+ id: string;
1761
+ metric: string;
1762
+ comparator: string;
1763
+ threshold: number;
1764
+ severity: string;
1765
+ enabled: boolean;
1766
+ };
1767
+ };
1768
+ };
1769
+ /** @description Erro (RFC 9457 application/problem+json) */
1770
+ default: {
1771
+ headers: {
1772
+ [name: string]: unknown;
1773
+ };
1774
+ content: {
1775
+ "application/problem+json": {
1776
+ type?: string;
1777
+ title: string;
1778
+ status: number;
1779
+ detail?: string;
1780
+ code?: string;
1781
+ };
1782
+ };
1783
+ };
1784
+ };
1785
+ };
1786
+ deskDeleteAlertRule: {
1787
+ parameters: {
1788
+ query?: never;
1789
+ header?: never;
1790
+ path: {
1791
+ org: string;
1792
+ ruleId: string;
1793
+ };
1794
+ cookie?: never;
1795
+ };
1796
+ requestBody?: never;
1797
+ responses: {
1798
+ /** @description OK */
1799
+ 200: {
1800
+ headers: {
1801
+ [name: string]: unknown;
1802
+ };
1803
+ content: {
1804
+ "application/json": {
1805
+ deleted: boolean;
1806
+ };
1807
+ };
1808
+ };
1809
+ /** @description Erro (RFC 9457 application/problem+json) */
1810
+ default: {
1811
+ headers: {
1812
+ [name: string]: unknown;
1813
+ };
1814
+ content: {
1815
+ "application/problem+json": {
1816
+ type?: string;
1817
+ title: string;
1818
+ status: number;
1819
+ detail?: string;
1820
+ code?: string;
1821
+ };
1822
+ };
1823
+ };
1824
+ };
1825
+ };
1826
+ deskListNotes: {
1827
+ parameters: {
1828
+ query?: {
1829
+ entity_id?: string;
1830
+ limit?: number;
1831
+ };
1832
+ header?: never;
1833
+ path: {
1834
+ org: string;
1835
+ };
1836
+ cookie?: never;
1837
+ };
1838
+ requestBody?: never;
1839
+ responses: {
1840
+ /** @description OK */
1841
+ 200: {
1842
+ headers: {
1843
+ [name: string]: unknown;
1844
+ };
1845
+ content: {
1846
+ "application/json": {
1847
+ data: {
1848
+ id: string;
1849
+ entity_kind: string;
1850
+ entity_id: string;
1851
+ body: string;
1852
+ author_member_id: string | null;
1853
+ author_name: string | null;
1854
+ created_at: string;
1855
+ updated_at: string;
1856
+ }[];
1857
+ };
1858
+ };
1859
+ };
1860
+ /** @description Erro (RFC 9457 application/problem+json) */
1861
+ default: {
1862
+ headers: {
1863
+ [name: string]: unknown;
1864
+ };
1865
+ content: {
1866
+ "application/problem+json": {
1867
+ type?: string;
1868
+ title: string;
1869
+ status: number;
1870
+ detail?: string;
1871
+ code?: string;
1872
+ };
1873
+ };
1874
+ };
1875
+ };
1876
+ };
1877
+ deskCreateNote: {
1878
+ parameters: {
1879
+ query?: never;
1880
+ header?: never;
1881
+ path: {
1882
+ org: string;
1883
+ };
1884
+ cookie?: never;
1885
+ };
1886
+ requestBody?: {
1887
+ content: {
1888
+ "application/json": {
1889
+ entity_id: string;
1890
+ /** @enum {string} */
1891
+ entity_kind?: "fidc_class" | "originator";
1892
+ body: string;
1893
+ };
1894
+ };
1895
+ };
1896
+ responses: {
1897
+ /** @description Criado */
1898
+ 201: {
1899
+ headers: {
1900
+ [name: string]: unknown;
1901
+ };
1902
+ content: {
1903
+ "application/json": {
1904
+ id: string;
1905
+ };
1906
+ };
1907
+ };
1908
+ /** @description Erro (RFC 9457 application/problem+json) */
1909
+ default: {
1910
+ headers: {
1911
+ [name: string]: unknown;
1912
+ };
1913
+ content: {
1914
+ "application/problem+json": {
1915
+ type?: string;
1916
+ title: string;
1917
+ status: number;
1918
+ detail?: string;
1919
+ code?: string;
1920
+ };
1921
+ };
1922
+ };
1923
+ };
1924
+ };
1925
+ deskDeleteNote: {
1926
+ parameters: {
1927
+ query?: never;
1928
+ header?: never;
1929
+ path: {
1930
+ org: string;
1931
+ noteId: string;
1932
+ };
1933
+ cookie?: never;
1934
+ };
1935
+ requestBody?: never;
1936
+ responses: {
1937
+ /** @description OK */
1938
+ 200: {
1939
+ headers: {
1940
+ [name: string]: unknown;
1941
+ };
1942
+ content: {
1943
+ "application/json": {
1944
+ deleted: boolean;
1945
+ };
1946
+ };
1947
+ };
1948
+ /** @description Erro (RFC 9457 application/problem+json) */
1949
+ default: {
1950
+ headers: {
1951
+ [name: string]: unknown;
1952
+ };
1953
+ content: {
1954
+ "application/problem+json": {
1955
+ type?: string;
1956
+ title: string;
1957
+ status: number;
1958
+ detail?: string;
1959
+ code?: string;
1960
+ };
1961
+ };
1962
+ };
1963
+ };
1964
+ };
1965
+ deskListRegulationTerms: {
1966
+ parameters: {
1967
+ query?: {
1968
+ include_history?: boolean;
1969
+ status?: "pending" | "confirmed" | "rejected";
1970
+ };
1971
+ header?: never;
1972
+ path: {
1973
+ org: string;
1974
+ cnpj: string;
1975
+ };
1976
+ cookie?: never;
1977
+ };
1978
+ requestBody?: never;
1979
+ responses: {
1980
+ /** @description OK */
1981
+ 200: {
1982
+ headers: {
1983
+ [name: string]: unknown;
1984
+ };
1985
+ content: {
1986
+ "application/json": {
1987
+ data: {
1988
+ id: string;
1989
+ cnpj: string;
1990
+ term: string;
1991
+ label: string;
1992
+ value_num: number | null;
1993
+ value_text: string | null;
1994
+ unit: string | null;
1995
+ doc_id: string | null;
1996
+ doc_page: number | null;
1997
+ quote: string | null;
1998
+ confidence: number | null;
1999
+ /** @enum {string} */
2000
+ status: "pending" | "confirmed" | "rejected";
2001
+ valid_from: string;
2002
+ valid_to: string | null;
2003
+ }[];
2004
+ meta: {
2005
+ terms: string[];
2006
+ };
2007
+ };
2008
+ };
2009
+ };
2010
+ /** @description Erro (RFC 9457 application/problem+json) */
2011
+ default: {
2012
+ headers: {
2013
+ [name: string]: unknown;
2014
+ };
2015
+ content: {
2016
+ "application/problem+json": {
2017
+ type?: string;
2018
+ title: string;
2019
+ status: number;
2020
+ detail?: string;
2021
+ code?: string;
2022
+ };
2023
+ };
2024
+ };
2025
+ };
2026
+ };
2027
+ deskProposeRegulationTerm: {
2028
+ parameters: {
2029
+ query?: never;
2030
+ header?: never;
2031
+ path: {
2032
+ org: string;
2033
+ cnpj: string;
2034
+ };
2035
+ cookie?: never;
2036
+ };
2037
+ requestBody?: {
2038
+ content: {
2039
+ "application/json": {
2040
+ /** @enum {string} */
2041
+ term: "subordinacao_minima" | "inadimplencia_max" | "concentracao_cedente_max" | "revolvente" | "coobrigacao_cedente" | "taxa_administracao" | "taxa_performance" | "benchmark_alvo";
2042
+ value_num?: number | null;
2043
+ value_text?: string | null;
2044
+ /** @enum {string|null} */
2045
+ unit?: "ratio" | "brl" | "percent_year" | "text" | null;
2046
+ doc_id?: string | null;
2047
+ doc_page?: number | null;
2048
+ quote?: string | null;
2049
+ confidence?: number | null;
2050
+ };
2051
+ };
2052
+ };
2053
+ responses: {
2054
+ /** @description Criado */
2055
+ 201: {
2056
+ headers: {
2057
+ [name: string]: unknown;
2058
+ };
2059
+ content: {
2060
+ "application/json": {
2061
+ id: string;
2062
+ cnpj: string;
2063
+ term: string;
2064
+ label: string;
2065
+ value_num: number | null;
2066
+ value_text: string | null;
2067
+ unit: string | null;
2068
+ doc_id: string | null;
2069
+ doc_page: number | null;
2070
+ quote: string | null;
2071
+ confidence: number | null;
2072
+ /** @enum {string} */
2073
+ status: "pending" | "confirmed" | "rejected";
2074
+ valid_from: string;
2075
+ valid_to: string | null;
2076
+ };
2077
+ };
2078
+ };
2079
+ /** @description Erro (RFC 9457 application/problem+json) */
2080
+ default: {
2081
+ headers: {
2082
+ [name: string]: unknown;
2083
+ };
2084
+ content: {
2085
+ "application/problem+json": {
2086
+ type?: string;
2087
+ title: string;
2088
+ status: number;
2089
+ detail?: string;
2090
+ code?: string;
2091
+ };
2092
+ };
2093
+ };
2094
+ };
2095
+ };
2096
+ deskListOrgRegulationTerms: {
2097
+ parameters: {
2098
+ query?: {
2099
+ status?: "pending" | "confirmed" | "rejected";
2100
+ limit?: number;
2101
+ };
2102
+ header?: never;
2103
+ path: {
2104
+ org: string;
2105
+ };
2106
+ cookie?: never;
2107
+ };
2108
+ requestBody?: never;
2109
+ responses: {
2110
+ /** @description OK */
2111
+ 200: {
2112
+ headers: {
2113
+ [name: string]: unknown;
2114
+ };
2115
+ content: {
2116
+ "application/json": {
2117
+ data: {
2118
+ id: string;
2119
+ cnpj: string;
2120
+ term: string;
2121
+ label: string;
2122
+ value_num: number | null;
2123
+ value_text: string | null;
2124
+ unit: string | null;
2125
+ doc_id: string | null;
2126
+ doc_page: number | null;
2127
+ quote: string | null;
2128
+ confidence: number | null;
2129
+ /** @enum {string} */
2130
+ status: "pending" | "confirmed" | "rejected";
2131
+ valid_from: string;
2132
+ valid_to: string | null;
2133
+ }[];
2134
+ meta: {
2135
+ count: number;
2136
+ };
2137
+ };
2138
+ };
2139
+ };
2140
+ /** @description Erro (RFC 9457 application/problem+json) */
2141
+ default: {
2142
+ headers: {
2143
+ [name: string]: unknown;
2144
+ };
2145
+ content: {
2146
+ "application/problem+json": {
2147
+ type?: string;
2148
+ title: string;
2149
+ status: number;
2150
+ detail?: string;
2151
+ code?: string;
2152
+ };
2153
+ };
2154
+ };
2155
+ };
2156
+ };
2157
+ deskReviewRegulationTerm: {
2158
+ parameters: {
2159
+ query?: never;
2160
+ header?: never;
2161
+ path: {
2162
+ org: string;
2163
+ termId: string;
2164
+ };
2165
+ cookie?: never;
2166
+ };
2167
+ requestBody?: {
2168
+ content: {
2169
+ "application/json": {
2170
+ /** @enum {string} */
2171
+ decision: "confirmed" | "rejected";
2172
+ };
2173
+ };
2174
+ };
2175
+ responses: {
2176
+ /** @description OK */
2177
+ 200: {
2178
+ headers: {
2179
+ [name: string]: unknown;
2180
+ };
2181
+ content: {
2182
+ "application/json": {
2183
+ id: string;
2184
+ cnpj: string;
2185
+ term: string;
2186
+ label: string;
2187
+ value_num: number | null;
2188
+ value_text: string | null;
2189
+ unit: string | null;
2190
+ doc_id: string | null;
2191
+ doc_page: number | null;
2192
+ quote: string | null;
2193
+ confidence: number | null;
2194
+ /** @enum {string} */
2195
+ status: "pending" | "confirmed" | "rejected";
2196
+ valid_from: string;
2197
+ valid_to: string | null;
2198
+ };
2199
+ };
2200
+ };
2201
+ /** @description Erro (RFC 9457 application/problem+json) */
2202
+ default: {
2203
+ headers: {
2204
+ [name: string]: unknown;
2205
+ };
2206
+ content: {
2207
+ "application/problem+json": {
2208
+ type?: string;
2209
+ title: string;
2210
+ status: number;
2211
+ detail?: string;
2212
+ code?: string;
2213
+ };
2214
+ };
2215
+ };
2216
+ };
2217
+ };
2218
+ }