intifact 1.5.0 → 2.0.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.
package/dist/types.d.ts CHANGED
@@ -526,6 +526,23 @@ export interface paths {
526
526
  patch?: never;
527
527
  trace?: never;
528
528
  };
529
+ "/api/v1/summaries/{id}": {
530
+ parameters: {
531
+ query?: never;
532
+ header?: never;
533
+ path?: never;
534
+ cookie?: never;
535
+ };
536
+ /** Estado de un Resumen Diario (RC) o Comunicación de Baja (RA) */
537
+ get: operations["getSummary"];
538
+ put?: never;
539
+ post?: never;
540
+ delete?: never;
541
+ options?: never;
542
+ head?: never;
543
+ patch?: never;
544
+ trace?: never;
545
+ };
529
546
  "/api/v1/invoice/cancel": {
530
547
  parameters: {
531
548
  query?: never;
@@ -701,8 +718,7 @@ export interface paths {
701
718
  /** Listar empresas emisoras */
702
719
  get: operations["listCompanies"];
703
720
  put?: never;
704
- /** Crear empresa emisora */
705
- post: operations["createCompany"];
721
+ post?: never;
706
722
  delete?: never;
707
723
  options?: never;
708
724
  head?: never;
@@ -718,29 +734,8 @@ export interface paths {
718
734
  };
719
735
  /** Detalle de empresa */
720
736
  get: operations["getCompany"];
721
- /** Actualizar empresa */
722
- put: operations["updateCompany"];
723
- post?: never;
724
- delete?: never;
725
- options?: never;
726
- head?: never;
727
- patch?: never;
728
- trace?: never;
729
- };
730
- "/api/v1/companies/claim": {
731
- parameters: {
732
- query?: never;
733
- header?: never;
734
- path?: never;
735
- cookie?: never;
736
- };
737
- get?: never;
738
737
  put?: never;
739
- /**
740
- * Reclamar un RUC registrado por otra cuenta, con su certificado
741
- * @description Prueba de titularidad = certificado digital del RUC. Si la cuenta que lo tiene no acreditó titularidad y no emitió documentos, el RUC pasa a tu cuenta.
742
- */
743
- post: operations["claimCompany"];
738
+ post?: never;
744
739
  delete?: never;
745
740
  options?: never;
746
741
  head?: never;
@@ -764,117 +759,6 @@ export interface paths {
764
759
  patch?: never;
765
760
  trace?: never;
766
761
  };
767
- "/api/v1/webhooks": {
768
- parameters: {
769
- query?: never;
770
- header?: never;
771
- path?: never;
772
- cookie?: never;
773
- };
774
- /** Listar webhooks (filtra por RUC opcional) */
775
- get: operations["listWebhooks"];
776
- put?: never;
777
- /**
778
- * Crear endpoint webhook
779
- * @description Registra una URL que recibirá POSTs cuando ocurran los eventos suscritos. Sin `empresaRuc` el webhook cubre TODAS las empresas de tu cuenta (un solo secret; el `empresaRuc` viaja en cada payload). La respuesta incluye el `secret` (mostrado UNA sola vez) — guárdalo para verificar las firmas HMAC-SHA256.
780
- */
781
- post: operations["createWebhook"];
782
- delete?: never;
783
- options?: never;
784
- head?: never;
785
- patch?: never;
786
- trace?: never;
787
- };
788
- "/api/v1/webhooks/{id}": {
789
- parameters: {
790
- query?: never;
791
- header?: never;
792
- path?: never;
793
- cookie?: never;
794
- };
795
- /** Detalle de webhook (sin secret) */
796
- get: operations["getWebhook"];
797
- /** Actualizar webhook (url, eventos, activación) */
798
- put: operations["updateWebhook"];
799
- post?: never;
800
- /** Eliminar webhook (también elimina su historial de deliveries) */
801
- delete: operations["deleteWebhook"];
802
- options?: never;
803
- head?: never;
804
- patch?: never;
805
- trace?: never;
806
- };
807
- "/api/v1/webhooks/{id}/deliveries": {
808
- parameters: {
809
- query?: never;
810
- header?: never;
811
- path?: never;
812
- cookie?: never;
813
- };
814
- /** Log de entregas del webhook */
815
- get: operations["listWebhookDeliveries"];
816
- put?: never;
817
- post?: never;
818
- delete?: never;
819
- options?: never;
820
- head?: never;
821
- patch?: never;
822
- trace?: never;
823
- };
824
- "/api/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver": {
825
- parameters: {
826
- query?: never;
827
- header?: never;
828
- path?: never;
829
- cookie?: never;
830
- };
831
- get?: never;
832
- put?: never;
833
- /** Reintentar manualmente una entrega */
834
- post: operations["redeliverWebhookDelivery"];
835
- delete?: never;
836
- options?: never;
837
- head?: never;
838
- patch?: never;
839
- trace?: never;
840
- };
841
- "/api/v1/webhooks/{id}/test": {
842
- parameters: {
843
- query?: never;
844
- header?: never;
845
- path?: never;
846
- cookie?: never;
847
- };
848
- get?: never;
849
- put?: never;
850
- /** Enviar un evento de prueba (webhook.test) */
851
- post: operations["testWebhook"];
852
- delete?: never;
853
- options?: never;
854
- head?: never;
855
- patch?: never;
856
- trace?: never;
857
- };
858
- "/api/v1/webhooks/{id}/rotate-secret": {
859
- parameters: {
860
- query?: never;
861
- header?: never;
862
- path?: never;
863
- cookie?: never;
864
- };
865
- get?: never;
866
- put?: never;
867
- /**
868
- * Rotar el secret de firma (devuelto UNA sola vez)
869
- * @description Genera un nuevo secret HMAC y lo devuelve una única vez. Las firmas de entregas posteriores usarán el nuevo secret; actualiza tu receptor antes de rotar.
870
- */
871
- post: operations["rotateWebhookSecret"];
872
- delete?: never;
873
- options?: never;
874
- head?: never;
875
- patch?: never;
876
- trace?: never;
877
- };
878
762
  "/api/v1/companies/{id}/branches": {
879
763
  parameters: {
880
764
  query?: never;
@@ -885,33 +769,8 @@ export interface paths {
885
769
  /** Listar establecimientos (sucursales) de una empresa */
886
770
  get: operations["listBranches"];
887
771
  put?: never;
888
- /**
889
- * Crear establecimiento (sucursal)
890
- * @description El código debe coincidir con el que SUNAT asignó a la sucursal al registrarla en el portal SOL (Mis Trámites > Establecimientos Anexos).
891
- */
892
- post: operations["createBranch"];
893
- delete?: never;
894
- options?: never;
895
- head?: never;
896
- patch?: never;
897
- trace?: never;
898
- };
899
- "/api/v1/companies/{id}/branches/{branchId}": {
900
- parameters: {
901
- query?: never;
902
- header?: never;
903
- path?: never;
904
- cookie?: never;
905
- };
906
- get?: never;
907
- /** Actualizar establecimiento */
908
- put: operations["updateBranch"];
909
772
  post?: never;
910
- /**
911
- * Desactivar establecimiento (soft-delete)
912
- * @description No se elimina físicamente porque puede haber documentos emitidos desde ahí. Solo se desactiva (isActive=false).
913
- */
914
- delete: operations["deactivateBranch"];
773
+ delete?: never;
915
774
  options?: never;
916
775
  head?: never;
917
776
  patch?: never;
@@ -3569,6 +3428,122 @@ export interface operations {
3569
3428
  };
3570
3429
  };
3571
3430
  };
3431
+ getSummary: {
3432
+ parameters: {
3433
+ query?: never;
3434
+ header?: never;
3435
+ path: {
3436
+ id: string;
3437
+ };
3438
+ cookie?: never;
3439
+ };
3440
+ requestBody?: never;
3441
+ responses: {
3442
+ /** @description Default Response */
3443
+ 200: {
3444
+ headers: {
3445
+ [name: string]: unknown;
3446
+ };
3447
+ content: {
3448
+ "application/json": {
3449
+ success: boolean;
3450
+ data: {
3451
+ id: string;
3452
+ env: string;
3453
+ tipo: string;
3454
+ correlativo: string;
3455
+ fechaEmision: string;
3456
+ fechaReferencia: string;
3457
+ estado: string;
3458
+ ticket: string | null;
3459
+ codigoRespuesta: string | null;
3460
+ descripcionRespuesta: string | null;
3461
+ ultimoError: string | null;
3462
+ intentos: number;
3463
+ tieneCdr: boolean;
3464
+ items: {
3465
+ tipoDoc: string;
3466
+ serie: string;
3467
+ correlativo: string;
3468
+ documentId: string | null;
3469
+ estadoDocumento: string | null;
3470
+ }[];
3471
+ createdAt: string;
3472
+ };
3473
+ };
3474
+ };
3475
+ };
3476
+ /** @description Default Response */
3477
+ 401: {
3478
+ headers: {
3479
+ [name: string]: unknown;
3480
+ };
3481
+ content: {
3482
+ "application/json": {
3483
+ success: boolean;
3484
+ message: string;
3485
+ code?: string;
3486
+ errors?: {
3487
+ path: string;
3488
+ message: string;
3489
+ }[];
3490
+ };
3491
+ };
3492
+ };
3493
+ /** @description Default Response */
3494
+ 403: {
3495
+ headers: {
3496
+ [name: string]: unknown;
3497
+ };
3498
+ content: {
3499
+ "application/json": {
3500
+ success: boolean;
3501
+ message: string;
3502
+ code?: string;
3503
+ errors?: {
3504
+ path: string;
3505
+ message: string;
3506
+ }[];
3507
+ };
3508
+ };
3509
+ };
3510
+ /** @description Default Response */
3511
+ 404: {
3512
+ headers: {
3513
+ [name: string]: unknown;
3514
+ };
3515
+ content: {
3516
+ "application/json": {
3517
+ success: boolean;
3518
+ message: string;
3519
+ code?: string;
3520
+ errors?: {
3521
+ path: string;
3522
+ message: string;
3523
+ }[];
3524
+ };
3525
+ };
3526
+ };
3527
+ /** @description Default Response */
3528
+ 429: {
3529
+ headers: {
3530
+ [name: string]: unknown;
3531
+ };
3532
+ content: {
3533
+ "application/json": {
3534
+ success: boolean;
3535
+ message: string;
3536
+ code?: string;
3537
+ errors?: {
3538
+ path: string;
3539
+ message: string;
3540
+ }[];
3541
+ retryAfterSeconds?: number;
3542
+ };
3543
+ };
3544
+ };
3545
+ };
3546
+ };
3572
3547
  cancelInvoice: {
3573
3548
  parameters: {
3574
3549
  query?: never;
@@ -3791,8 +3766,10 @@ export interface operations {
3791
3766
  parameters: {
3792
3767
  query?: {
3793
3768
  ruc?: string;
3769
+ tenantId?: string;
3794
3770
  tipoDoc?: string;
3795
3771
  serie?: string;
3772
+ correlativo?: string;
3796
3773
  estado?: string;
3797
3774
  env?: "live" | "test";
3798
3775
  fechaDesde?: string;
@@ -3836,6 +3813,7 @@ export interface operations {
3836
3813
  company: {
3837
3814
  ruc: string;
3838
3815
  razonSocial: string;
3816
+ tenantId?: string | null;
3839
3817
  };
3840
3818
  }[];
3841
3819
  pagination: {
@@ -4550,54 +4528,16 @@ export interface operations {
4550
4528
  };
4551
4529
  };
4552
4530
  };
4553
- createCompany: {
4531
+ getCompany: {
4554
4532
  parameters: {
4555
4533
  query?: never;
4556
4534
  header?: never;
4557
- path?: never;
4558
- cookie?: never;
4559
- };
4560
- requestBody: {
4561
- content: {
4562
- "application/json": {
4563
- ruc: string;
4564
- razonSocial: string;
4565
- nombreComercial?: string;
4566
- ubigeo?: string;
4567
- direccion?: string;
4568
- departamento?: string;
4569
- provincia?: string;
4570
- distrito?: string;
4571
- urbanizacion?: string;
4572
- telefono?: string;
4573
- /** Format: email */
4574
- email?: string;
4575
- web?: string;
4576
- solUser?: string;
4577
- solPassword?: string;
4578
- /** Format: uuid */
4579
- tenantId?: string;
4580
- greClientId?: string;
4581
- greClientSecret?: string;
4582
- sunatProduction?: boolean;
4583
- cuentasBancarias?: {
4584
- nombre: string;
4585
- /** @default [] */
4586
- bancos?: string[];
4587
- tipoLabel: string;
4588
- titularLabel?: string;
4589
- titular?: string;
4590
- titularRuc?: string;
4591
- numero: string;
4592
- cci?: string;
4593
- }[];
4594
- terminosTitulo?: string | null;
4595
- terminos?: string[];
4596
- notaPagoTitulo?: string | null;
4597
- notaPagoTexto?: string | null;
4598
- };
4535
+ path: {
4536
+ id: string;
4599
4537
  };
4538
+ cookie?: never;
4600
4539
  };
4540
+ requestBody?: never;
4601
4541
  responses: {
4602
4542
  /** @description Default Response */
4603
4543
  401: {
@@ -4653,863 +4593,7 @@ export interface operations {
4653
4593
  };
4654
4594
  };
4655
4595
  };
4656
- getCompany: {
4657
- parameters: {
4658
- query?: never;
4659
- header?: never;
4660
- path: {
4661
- id: string;
4662
- };
4663
- cookie?: never;
4664
- };
4665
- requestBody?: never;
4666
- responses: {
4667
- /** @description Default Response */
4668
- 401: {
4669
- headers: {
4670
- [name: string]: unknown;
4671
- };
4672
- content: {
4673
- "application/json": {
4674
- success: boolean;
4675
- message: string;
4676
- code?: string;
4677
- errors?: {
4678
- path: string;
4679
- message: string;
4680
- }[];
4681
- };
4682
- };
4683
- };
4684
- /** @description Default Response */
4685
- 403: {
4686
- headers: {
4687
- [name: string]: unknown;
4688
- };
4689
- content: {
4690
- "application/json": {
4691
- success: boolean;
4692
- message: string;
4693
- code?: string;
4694
- errors?: {
4695
- path: string;
4696
- message: string;
4697
- }[];
4698
- };
4699
- };
4700
- };
4701
- /** @description Default Response */
4702
- 429: {
4703
- headers: {
4704
- [name: string]: unknown;
4705
- };
4706
- content: {
4707
- "application/json": {
4708
- success: boolean;
4709
- message: string;
4710
- code?: string;
4711
- errors?: {
4712
- path: string;
4713
- message: string;
4714
- }[];
4715
- retryAfterSeconds?: number;
4716
- };
4717
- };
4718
- };
4719
- };
4720
- };
4721
- updateCompany: {
4722
- parameters: {
4723
- query?: never;
4724
- header?: never;
4725
- path: {
4726
- id: string;
4727
- };
4728
- cookie?: never;
4729
- };
4730
- requestBody: {
4731
- content: {
4732
- "application/json": {
4733
- ruc?: string;
4734
- razonSocial?: string;
4735
- nombreComercial?: string;
4736
- ubigeo?: string;
4737
- direccion?: string;
4738
- departamento?: string;
4739
- provincia?: string;
4740
- distrito?: string;
4741
- urbanizacion?: string;
4742
- telefono?: string;
4743
- /** Format: email */
4744
- email?: string;
4745
- web?: string;
4746
- solUser?: string;
4747
- solPassword?: string;
4748
- /** Format: uuid */
4749
- tenantId?: string;
4750
- greClientId?: string;
4751
- greClientSecret?: string;
4752
- sunatProduction?: boolean;
4753
- cuentasBancarias?: {
4754
- nombre: string;
4755
- /** @default [] */
4756
- bancos?: string[];
4757
- tipoLabel: string;
4758
- titularLabel?: string;
4759
- titular?: string;
4760
- titularRuc?: string;
4761
- numero: string;
4762
- cci?: string;
4763
- }[];
4764
- terminosTitulo?: string | null;
4765
- terminos?: string[];
4766
- notaPagoTitulo?: string | null;
4767
- notaPagoTexto?: string | null;
4768
- };
4769
- };
4770
- };
4771
- responses: {
4772
- /** @description Default Response */
4773
- 401: {
4774
- headers: {
4775
- [name: string]: unknown;
4776
- };
4777
- content: {
4778
- "application/json": {
4779
- success: boolean;
4780
- message: string;
4781
- code?: string;
4782
- errors?: {
4783
- path: string;
4784
- message: string;
4785
- }[];
4786
- };
4787
- };
4788
- };
4789
- /** @description Default Response */
4790
- 403: {
4791
- headers: {
4792
- [name: string]: unknown;
4793
- };
4794
- content: {
4795
- "application/json": {
4796
- success: boolean;
4797
- message: string;
4798
- code?: string;
4799
- errors?: {
4800
- path: string;
4801
- message: string;
4802
- }[];
4803
- };
4804
- };
4805
- };
4806
- /** @description Default Response */
4807
- 429: {
4808
- headers: {
4809
- [name: string]: unknown;
4810
- };
4811
- content: {
4812
- "application/json": {
4813
- success: boolean;
4814
- message: string;
4815
- code?: string;
4816
- errors?: {
4817
- path: string;
4818
- message: string;
4819
- }[];
4820
- retryAfterSeconds?: number;
4821
- };
4822
- };
4823
- };
4824
- };
4825
- };
4826
- claimCompany: {
4827
- parameters: {
4828
- query?: never;
4829
- header?: never;
4830
- path?: never;
4831
- cookie?: never;
4832
- };
4833
- requestBody: {
4834
- content: {
4835
- "application/json": {
4836
- ruc: string;
4837
- password: string;
4838
- /** @description Base64 del .p12/.pfx */
4839
- content: string;
4840
- name?: string;
4841
- razonSocial?: string;
4842
- /** Format: uuid */
4843
- tenantId?: string;
4844
- };
4845
- };
4846
- };
4847
- responses: {
4848
- /** @description Default Response */
4849
- 401: {
4850
- headers: {
4851
- [name: string]: unknown;
4852
- };
4853
- content: {
4854
- "application/json": {
4855
- success: boolean;
4856
- message: string;
4857
- code?: string;
4858
- errors?: {
4859
- path: string;
4860
- message: string;
4861
- }[];
4862
- };
4863
- };
4864
- };
4865
- /** @description Default Response */
4866
- 403: {
4867
- headers: {
4868
- [name: string]: unknown;
4869
- };
4870
- content: {
4871
- "application/json": {
4872
- success: boolean;
4873
- message: string;
4874
- code?: string;
4875
- errors?: {
4876
- path: string;
4877
- message: string;
4878
- }[];
4879
- };
4880
- };
4881
- };
4882
- /** @description Default Response */
4883
- 429: {
4884
- headers: {
4885
- [name: string]: unknown;
4886
- };
4887
- content: {
4888
- "application/json": {
4889
- success: boolean;
4890
- message: string;
4891
- code?: string;
4892
- errors?: {
4893
- path: string;
4894
- message: string;
4895
- }[];
4896
- retryAfterSeconds?: number;
4897
- };
4898
- };
4899
- };
4900
- };
4901
- };
4902
- getCompanyLogo: {
4903
- parameters: {
4904
- query?: never;
4905
- header?: never;
4906
- path: {
4907
- id: string;
4908
- };
4909
- cookie?: never;
4910
- };
4911
- requestBody?: never;
4912
- responses: {
4913
- /** @description Default Response */
4914
- 401: {
4915
- headers: {
4916
- [name: string]: unknown;
4917
- };
4918
- content: {
4919
- "application/json": {
4920
- success: boolean;
4921
- message: string;
4922
- code?: string;
4923
- errors?: {
4924
- path: string;
4925
- message: string;
4926
- }[];
4927
- };
4928
- };
4929
- };
4930
- /** @description Default Response */
4931
- 403: {
4932
- headers: {
4933
- [name: string]: unknown;
4934
- };
4935
- content: {
4936
- "application/json": {
4937
- success: boolean;
4938
- message: string;
4939
- code?: string;
4940
- errors?: {
4941
- path: string;
4942
- message: string;
4943
- }[];
4944
- };
4945
- };
4946
- };
4947
- /** @description Default Response */
4948
- 429: {
4949
- headers: {
4950
- [name: string]: unknown;
4951
- };
4952
- content: {
4953
- "application/json": {
4954
- success: boolean;
4955
- message: string;
4956
- code?: string;
4957
- errors?: {
4958
- path: string;
4959
- message: string;
4960
- }[];
4961
- retryAfterSeconds?: number;
4962
- };
4963
- };
4964
- };
4965
- };
4966
- };
4967
- listWebhooks: {
4968
- parameters: {
4969
- query?: {
4970
- ruc?: string;
4971
- };
4972
- header?: never;
4973
- path?: never;
4974
- cookie?: never;
4975
- };
4976
- requestBody?: never;
4977
- responses: {
4978
- /** @description Default Response */
4979
- 401: {
4980
- headers: {
4981
- [name: string]: unknown;
4982
- };
4983
- content: {
4984
- "application/json": {
4985
- success: boolean;
4986
- message: string;
4987
- code?: string;
4988
- errors?: {
4989
- path: string;
4990
- message: string;
4991
- }[];
4992
- };
4993
- };
4994
- };
4995
- /** @description Default Response */
4996
- 403: {
4997
- headers: {
4998
- [name: string]: unknown;
4999
- };
5000
- content: {
5001
- "application/json": {
5002
- success: boolean;
5003
- message: string;
5004
- code?: string;
5005
- errors?: {
5006
- path: string;
5007
- message: string;
5008
- }[];
5009
- };
5010
- };
5011
- };
5012
- /** @description Default Response */
5013
- 429: {
5014
- headers: {
5015
- [name: string]: unknown;
5016
- };
5017
- content: {
5018
- "application/json": {
5019
- success: boolean;
5020
- message: string;
5021
- code?: string;
5022
- errors?: {
5023
- path: string;
5024
- message: string;
5025
- }[];
5026
- retryAfterSeconds?: number;
5027
- };
5028
- };
5029
- };
5030
- };
5031
- };
5032
- createWebhook: {
5033
- parameters: {
5034
- query?: never;
5035
- header?: never;
5036
- path?: never;
5037
- cookie?: never;
5038
- };
5039
- requestBody: {
5040
- content: {
5041
- "application/json": {
5042
- empresaRuc?: string;
5043
- /** Format: uuid */
5044
- tenantId?: string;
5045
- /** Format: uri */
5046
- url: string;
5047
- events: ("document.accepted" | "document.rejected" | "document.queue_failed" | "document.retried" | "ticket.resolved")[];
5048
- description?: string;
5049
- secret?: string;
5050
- };
5051
- };
5052
- };
5053
- responses: {
5054
- /** @description Default Response */
5055
- 401: {
5056
- headers: {
5057
- [name: string]: unknown;
5058
- };
5059
- content: {
5060
- "application/json": {
5061
- success: boolean;
5062
- message: string;
5063
- code?: string;
5064
- errors?: {
5065
- path: string;
5066
- message: string;
5067
- }[];
5068
- };
5069
- };
5070
- };
5071
- /** @description Default Response */
5072
- 403: {
5073
- headers: {
5074
- [name: string]: unknown;
5075
- };
5076
- content: {
5077
- "application/json": {
5078
- success: boolean;
5079
- message: string;
5080
- code?: string;
5081
- errors?: {
5082
- path: string;
5083
- message: string;
5084
- }[];
5085
- };
5086
- };
5087
- };
5088
- /** @description Default Response */
5089
- 429: {
5090
- headers: {
5091
- [name: string]: unknown;
5092
- };
5093
- content: {
5094
- "application/json": {
5095
- success: boolean;
5096
- message: string;
5097
- code?: string;
5098
- errors?: {
5099
- path: string;
5100
- message: string;
5101
- }[];
5102
- retryAfterSeconds?: number;
5103
- };
5104
- };
5105
- };
5106
- };
5107
- };
5108
- getWebhook: {
5109
- parameters: {
5110
- query?: never;
5111
- header?: never;
5112
- path: {
5113
- id: string;
5114
- };
5115
- cookie?: never;
5116
- };
5117
- requestBody?: never;
5118
- responses: {
5119
- /** @description Default Response */
5120
- 401: {
5121
- headers: {
5122
- [name: string]: unknown;
5123
- };
5124
- content: {
5125
- "application/json": {
5126
- success: boolean;
5127
- message: string;
5128
- code?: string;
5129
- errors?: {
5130
- path: string;
5131
- message: string;
5132
- }[];
5133
- };
5134
- };
5135
- };
5136
- /** @description Default Response */
5137
- 403: {
5138
- headers: {
5139
- [name: string]: unknown;
5140
- };
5141
- content: {
5142
- "application/json": {
5143
- success: boolean;
5144
- message: string;
5145
- code?: string;
5146
- errors?: {
5147
- path: string;
5148
- message: string;
5149
- }[];
5150
- };
5151
- };
5152
- };
5153
- /** @description Default Response */
5154
- 429: {
5155
- headers: {
5156
- [name: string]: unknown;
5157
- };
5158
- content: {
5159
- "application/json": {
5160
- success: boolean;
5161
- message: string;
5162
- code?: string;
5163
- errors?: {
5164
- path: string;
5165
- message: string;
5166
- }[];
5167
- retryAfterSeconds?: number;
5168
- };
5169
- };
5170
- };
5171
- };
5172
- };
5173
- updateWebhook: {
5174
- parameters: {
5175
- query?: never;
5176
- header?: never;
5177
- path: {
5178
- id: string;
5179
- };
5180
- cookie?: never;
5181
- };
5182
- requestBody: {
5183
- content: {
5184
- "application/json": {
5185
- /** Format: uri */
5186
- url?: string;
5187
- events?: ("document.accepted" | "document.rejected" | "document.queue_failed" | "document.retried" | "ticket.resolved")[];
5188
- description?: string;
5189
- isActive?: boolean;
5190
- };
5191
- };
5192
- };
5193
- responses: {
5194
- /** @description Default Response */
5195
- 401: {
5196
- headers: {
5197
- [name: string]: unknown;
5198
- };
5199
- content: {
5200
- "application/json": {
5201
- success: boolean;
5202
- message: string;
5203
- code?: string;
5204
- errors?: {
5205
- path: string;
5206
- message: string;
5207
- }[];
5208
- };
5209
- };
5210
- };
5211
- /** @description Default Response */
5212
- 403: {
5213
- headers: {
5214
- [name: string]: unknown;
5215
- };
5216
- content: {
5217
- "application/json": {
5218
- success: boolean;
5219
- message: string;
5220
- code?: string;
5221
- errors?: {
5222
- path: string;
5223
- message: string;
5224
- }[];
5225
- };
5226
- };
5227
- };
5228
- /** @description Default Response */
5229
- 429: {
5230
- headers: {
5231
- [name: string]: unknown;
5232
- };
5233
- content: {
5234
- "application/json": {
5235
- success: boolean;
5236
- message: string;
5237
- code?: string;
5238
- errors?: {
5239
- path: string;
5240
- message: string;
5241
- }[];
5242
- retryAfterSeconds?: number;
5243
- };
5244
- };
5245
- };
5246
- };
5247
- };
5248
- deleteWebhook: {
5249
- parameters: {
5250
- query?: never;
5251
- header?: never;
5252
- path: {
5253
- id: string;
5254
- };
5255
- cookie?: never;
5256
- };
5257
- requestBody?: never;
5258
- responses: {
5259
- /** @description Default Response */
5260
- 401: {
5261
- headers: {
5262
- [name: string]: unknown;
5263
- };
5264
- content: {
5265
- "application/json": {
5266
- success: boolean;
5267
- message: string;
5268
- code?: string;
5269
- errors?: {
5270
- path: string;
5271
- message: string;
5272
- }[];
5273
- };
5274
- };
5275
- };
5276
- /** @description Default Response */
5277
- 403: {
5278
- headers: {
5279
- [name: string]: unknown;
5280
- };
5281
- content: {
5282
- "application/json": {
5283
- success: boolean;
5284
- message: string;
5285
- code?: string;
5286
- errors?: {
5287
- path: string;
5288
- message: string;
5289
- }[];
5290
- };
5291
- };
5292
- };
5293
- /** @description Default Response */
5294
- 429: {
5295
- headers: {
5296
- [name: string]: unknown;
5297
- };
5298
- content: {
5299
- "application/json": {
5300
- success: boolean;
5301
- message: string;
5302
- code?: string;
5303
- errors?: {
5304
- path: string;
5305
- message: string;
5306
- }[];
5307
- retryAfterSeconds?: number;
5308
- };
5309
- };
5310
- };
5311
- };
5312
- };
5313
- listWebhookDeliveries: {
5314
- parameters: {
5315
- query?: {
5316
- limit?: number;
5317
- success?: "true" | "false";
5318
- };
5319
- header?: never;
5320
- path: {
5321
- id: string;
5322
- };
5323
- cookie?: never;
5324
- };
5325
- requestBody?: never;
5326
- responses: {
5327
- /** @description Default Response */
5328
- 401: {
5329
- headers: {
5330
- [name: string]: unknown;
5331
- };
5332
- content: {
5333
- "application/json": {
5334
- success: boolean;
5335
- message: string;
5336
- code?: string;
5337
- errors?: {
5338
- path: string;
5339
- message: string;
5340
- }[];
5341
- };
5342
- };
5343
- };
5344
- /** @description Default Response */
5345
- 403: {
5346
- headers: {
5347
- [name: string]: unknown;
5348
- };
5349
- content: {
5350
- "application/json": {
5351
- success: boolean;
5352
- message: string;
5353
- code?: string;
5354
- errors?: {
5355
- path: string;
5356
- message: string;
5357
- }[];
5358
- };
5359
- };
5360
- };
5361
- /** @description Default Response */
5362
- 429: {
5363
- headers: {
5364
- [name: string]: unknown;
5365
- };
5366
- content: {
5367
- "application/json": {
5368
- success: boolean;
5369
- message: string;
5370
- code?: string;
5371
- errors?: {
5372
- path: string;
5373
- message: string;
5374
- }[];
5375
- retryAfterSeconds?: number;
5376
- };
5377
- };
5378
- };
5379
- };
5380
- };
5381
- redeliverWebhookDelivery: {
5382
- parameters: {
5383
- query?: never;
5384
- header?: never;
5385
- path: {
5386
- id: string;
5387
- deliveryId: string;
5388
- };
5389
- cookie?: never;
5390
- };
5391
- requestBody?: never;
5392
- responses: {
5393
- /** @description Default Response */
5394
- 401: {
5395
- headers: {
5396
- [name: string]: unknown;
5397
- };
5398
- content: {
5399
- "application/json": {
5400
- success: boolean;
5401
- message: string;
5402
- code?: string;
5403
- errors?: {
5404
- path: string;
5405
- message: string;
5406
- }[];
5407
- };
5408
- };
5409
- };
5410
- /** @description Default Response */
5411
- 403: {
5412
- headers: {
5413
- [name: string]: unknown;
5414
- };
5415
- content: {
5416
- "application/json": {
5417
- success: boolean;
5418
- message: string;
5419
- code?: string;
5420
- errors?: {
5421
- path: string;
5422
- message: string;
5423
- }[];
5424
- };
5425
- };
5426
- };
5427
- /** @description Default Response */
5428
- 429: {
5429
- headers: {
5430
- [name: string]: unknown;
5431
- };
5432
- content: {
5433
- "application/json": {
5434
- success: boolean;
5435
- message: string;
5436
- code?: string;
5437
- errors?: {
5438
- path: string;
5439
- message: string;
5440
- }[];
5441
- retryAfterSeconds?: number;
5442
- };
5443
- };
5444
- };
5445
- };
5446
- };
5447
- testWebhook: {
5448
- parameters: {
5449
- query?: never;
5450
- header?: never;
5451
- path: {
5452
- id: string;
5453
- };
5454
- cookie?: never;
5455
- };
5456
- requestBody?: never;
5457
- responses: {
5458
- /** @description Default Response */
5459
- 401: {
5460
- headers: {
5461
- [name: string]: unknown;
5462
- };
5463
- content: {
5464
- "application/json": {
5465
- success: boolean;
5466
- message: string;
5467
- code?: string;
5468
- errors?: {
5469
- path: string;
5470
- message: string;
5471
- }[];
5472
- };
5473
- };
5474
- };
5475
- /** @description Default Response */
5476
- 403: {
5477
- headers: {
5478
- [name: string]: unknown;
5479
- };
5480
- content: {
5481
- "application/json": {
5482
- success: boolean;
5483
- message: string;
5484
- code?: string;
5485
- errors?: {
5486
- path: string;
5487
- message: string;
5488
- }[];
5489
- };
5490
- };
5491
- };
5492
- /** @description Default Response */
5493
- 429: {
5494
- headers: {
5495
- [name: string]: unknown;
5496
- };
5497
- content: {
5498
- "application/json": {
5499
- success: boolean;
5500
- message: string;
5501
- code?: string;
5502
- errors?: {
5503
- path: string;
5504
- message: string;
5505
- }[];
5506
- retryAfterSeconds?: number;
5507
- };
5508
- };
5509
- };
5510
- };
5511
- };
5512
- rotateWebhookSecret: {
4596
+ getCompanyLogo: {
5513
4597
  parameters: {
5514
4598
  query?: never;
5515
4599
  header?: never;
@@ -5639,232 +4723,6 @@ export interface operations {
5639
4723
  };
5640
4724
  };
5641
4725
  };
5642
- createBranch: {
5643
- parameters: {
5644
- query?: never;
5645
- header?: never;
5646
- path: {
5647
- id: string;
5648
- };
5649
- cookie?: never;
5650
- };
5651
- requestBody: {
5652
- content: {
5653
- "application/json": {
5654
- codigo: string;
5655
- nombre?: string;
5656
- ubigeo?: string;
5657
- direccion?: string;
5658
- departamento?: string;
5659
- provincia?: string;
5660
- distrito?: string;
5661
- urbanizacion?: string;
5662
- /** @default true */
5663
- isActive?: boolean;
5664
- };
5665
- };
5666
- };
5667
- responses: {
5668
- /** @description Default Response */
5669
- 401: {
5670
- headers: {
5671
- [name: string]: unknown;
5672
- };
5673
- content: {
5674
- "application/json": {
5675
- success: boolean;
5676
- message: string;
5677
- code?: string;
5678
- errors?: {
5679
- path: string;
5680
- message: string;
5681
- }[];
5682
- };
5683
- };
5684
- };
5685
- /** @description Default Response */
5686
- 403: {
5687
- headers: {
5688
- [name: string]: unknown;
5689
- };
5690
- content: {
5691
- "application/json": {
5692
- success: boolean;
5693
- message: string;
5694
- code?: string;
5695
- errors?: {
5696
- path: string;
5697
- message: string;
5698
- }[];
5699
- };
5700
- };
5701
- };
5702
- /** @description Default Response */
5703
- 429: {
5704
- headers: {
5705
- [name: string]: unknown;
5706
- };
5707
- content: {
5708
- "application/json": {
5709
- success: boolean;
5710
- message: string;
5711
- code?: string;
5712
- errors?: {
5713
- path: string;
5714
- message: string;
5715
- }[];
5716
- retryAfterSeconds?: number;
5717
- };
5718
- };
5719
- };
5720
- };
5721
- };
5722
- updateBranch: {
5723
- parameters: {
5724
- query?: never;
5725
- header?: never;
5726
- path: {
5727
- id: string;
5728
- branchId: string;
5729
- };
5730
- cookie?: never;
5731
- };
5732
- requestBody: {
5733
- content: {
5734
- "application/json": {
5735
- nombre?: string;
5736
- ubigeo?: string;
5737
- direccion?: string;
5738
- departamento?: string;
5739
- provincia?: string;
5740
- distrito?: string;
5741
- urbanizacion?: string;
5742
- /** @default true */
5743
- isActive?: boolean;
5744
- };
5745
- };
5746
- };
5747
- responses: {
5748
- /** @description Default Response */
5749
- 401: {
5750
- headers: {
5751
- [name: string]: unknown;
5752
- };
5753
- content: {
5754
- "application/json": {
5755
- success: boolean;
5756
- message: string;
5757
- code?: string;
5758
- errors?: {
5759
- path: string;
5760
- message: string;
5761
- }[];
5762
- };
5763
- };
5764
- };
5765
- /** @description Default Response */
5766
- 403: {
5767
- headers: {
5768
- [name: string]: unknown;
5769
- };
5770
- content: {
5771
- "application/json": {
5772
- success: boolean;
5773
- message: string;
5774
- code?: string;
5775
- errors?: {
5776
- path: string;
5777
- message: string;
5778
- }[];
5779
- };
5780
- };
5781
- };
5782
- /** @description Default Response */
5783
- 429: {
5784
- headers: {
5785
- [name: string]: unknown;
5786
- };
5787
- content: {
5788
- "application/json": {
5789
- success: boolean;
5790
- message: string;
5791
- code?: string;
5792
- errors?: {
5793
- path: string;
5794
- message: string;
5795
- }[];
5796
- retryAfterSeconds?: number;
5797
- };
5798
- };
5799
- };
5800
- };
5801
- };
5802
- deactivateBranch: {
5803
- parameters: {
5804
- query?: never;
5805
- header?: never;
5806
- path: {
5807
- id: string;
5808
- branchId: string;
5809
- };
5810
- cookie?: never;
5811
- };
5812
- requestBody?: never;
5813
- responses: {
5814
- /** @description Default Response */
5815
- 401: {
5816
- headers: {
5817
- [name: string]: unknown;
5818
- };
5819
- content: {
5820
- "application/json": {
5821
- success: boolean;
5822
- message: string;
5823
- code?: string;
5824
- errors?: {
5825
- path: string;
5826
- message: string;
5827
- }[];
5828
- };
5829
- };
5830
- };
5831
- /** @description Default Response */
5832
- 403: {
5833
- headers: {
5834
- [name: string]: unknown;
5835
- };
5836
- content: {
5837
- "application/json": {
5838
- success: boolean;
5839
- message: string;
5840
- code?: string;
5841
- errors?: {
5842
- path: string;
5843
- message: string;
5844
- }[];
5845
- };
5846
- };
5847
- };
5848
- /** @description Default Response */
5849
- 429: {
5850
- headers: {
5851
- [name: string]: unknown;
5852
- };
5853
- content: {
5854
- "application/json": {
5855
- success: boolean;
5856
- message: string;
5857
- code?: string;
5858
- errors?: {
5859
- path: string;
5860
- message: string;
5861
- }[];
5862
- retryAfterSeconds?: number;
5863
- };
5864
- };
5865
- };
5866
- };
5867
- };
5868
4726
  listPlans: {
5869
4727
  parameters: {
5870
4728
  query?: never;