@dalmore/api-contracts 0.0.0-dev.43bab61 → 0.0.0-dev.49a18a1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/common/constants.d.ts +10 -0
  2. package/common/constants.js +10 -0
  3. package/common/constants.js.map +1 -1
  4. package/common/types/account.types.js +3 -3
  5. package/common/types/account.types.js.map +1 -1
  6. package/common/types/common.types.d.ts +7 -2
  7. package/common/types/common.types.js +8 -3
  8. package/common/types/common.types.js.map +1 -1
  9. package/common/types/csv.types.d.ts +1844 -149
  10. package/common/types/csv.types.js +107 -33
  11. package/common/types/csv.types.js.map +1 -1
  12. package/common/types/invite.types.d.ts +3 -0
  13. package/common/types/invite.types.js +1 -0
  14. package/common/types/invite.types.js.map +1 -1
  15. package/common/types/issuer-offering.types.js +2 -2
  16. package/common/types/issuer-offering.types.js.map +1 -1
  17. package/common/types/notification.types.d.ts +1 -0
  18. package/common/types/notification.types.js +3 -0
  19. package/common/types/notification.types.js.map +1 -1
  20. package/common/types/offering-submission.types.js +1 -1
  21. package/common/types/offering.types.js +4 -1
  22. package/common/types/offering.types.js.map +1 -1
  23. package/common/types/task.types.d.ts +8 -0
  24. package/common/types/task.types.js +3 -0
  25. package/common/types/task.types.js.map +1 -1
  26. package/common/types/trade.types.d.ts +10 -14
  27. package/common/types/trade.types.js +2 -7
  28. package/common/types/trade.types.js.map +1 -1
  29. package/common/types/user.types.d.ts +3 -0
  30. package/common/types/user.types.js +4 -0
  31. package/common/types/user.types.js.map +1 -1
  32. package/common/types/zapier.types.d.ts +126 -0
  33. package/common/types/zapier.types.js +247 -0
  34. package/common/types/zapier.types.js.map +1 -0
  35. package/contracts/clients/csv/index.d.ts +0 -7
  36. package/contracts/clients/csv/index.js +1 -2
  37. package/contracts/clients/csv/index.js.map +1 -1
  38. package/contracts/clients/index.d.ts +1098 -680
  39. package/contracts/clients/index.js +4 -2
  40. package/contracts/clients/index.js.map +1 -1
  41. package/contracts/clients/webhooks/index.d.ts +506 -0
  42. package/contracts/clients/webhooks/index.js +118 -0
  43. package/contracts/clients/webhooks/index.js.map +1 -0
  44. package/package.json +1 -1
@@ -585,244 +585,8 @@ export declare const clientsContract: {
585
585
  };
586
586
  };
587
587
  };
588
- auth: {
589
- registerInvestor: {
590
- method: "POST";
591
- metadata: {
592
- auth: boolean;
593
- };
594
- body: import("zod").ZodEffects<import("zod").ZodObject<{
595
- firstName: import("zod").ZodString;
596
- lastName: import("zod").ZodString;
597
- email: import("zod").ZodEffects<import("zod").ZodString, string, string>;
598
- password: import("zod").ZodString;
599
- } & {
600
- confirmPassword: import("zod").ZodString;
601
- phoneNumber: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, {
602
- isOk: () => boolean;
603
- isErr: () => boolean;
604
- value?: any;
605
- error?: any;
606
- } | import("neverthrow").Ok<null, never>, string | null>, {
607
- isOk: () => boolean;
608
- isErr: () => boolean;
609
- value?: any;
610
- error?: any;
611
- } | import("neverthrow").Ok<null, never>, string | null>, any, string | null>>;
612
- site: import("zod").ZodString;
613
- }, "strip", import("zod").ZodTypeAny, {
614
- firstName: string;
615
- lastName: string;
616
- email: string;
617
- site: string;
618
- password: string;
619
- confirmPassword: string;
620
- phoneNumber?: any;
621
- }, {
622
- firstName: string;
623
- lastName: string;
624
- email: string;
625
- site: string;
626
- password: string;
627
- confirmPassword: string;
628
- phoneNumber?: string | null | undefined;
629
- }>, {
630
- firstName: string;
631
- lastName: string;
632
- email: string;
633
- site: string;
634
- password: string;
635
- confirmPassword: string;
636
- phoneNumber?: any;
637
- }, {
638
- firstName: string;
639
- lastName: string;
640
- email: string;
641
- site: string;
642
- password: string;
643
- confirmPassword: string;
644
- phoneNumber?: string | null | undefined;
645
- }>;
646
- summary: "Register investor with email (API Key Auth)";
647
- path: "/clients/api/v1/auth/register/investor";
648
- responses: {
649
- 201: import("zod").ZodObject<{
650
- userId: import("zod").ZodString;
651
- }, "strip", import("zod").ZodTypeAny, {
652
- userId: string;
653
- }, {
654
- userId: string;
655
- }>;
656
- 400: import("zod").ZodObject<{
657
- status: import("zod").ZodNumber;
658
- message: import("zod").ZodString;
659
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
660
- }, "strip", import("zod").ZodTypeAny, {
661
- message: string;
662
- status: number;
663
- errors: string[];
664
- }, {
665
- message: string;
666
- status: number;
667
- errors: string[];
668
- }>;
669
- 401: import("zod").ZodObject<{
670
- status: import("zod").ZodNumber;
671
- message: import("zod").ZodString;
672
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
673
- }, "strip", import("zod").ZodTypeAny, {
674
- message: string;
675
- status: number;
676
- errors: string[];
677
- }, {
678
- message: string;
679
- status: number;
680
- errors: string[];
681
- }>;
682
- 500: import("zod").ZodObject<{
683
- status: import("zod").ZodNumber;
684
- message: import("zod").ZodString;
685
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
686
- }, "strip", import("zod").ZodTypeAny, {
687
- message: string;
688
- status: number;
689
- errors: string[];
690
- }, {
691
- message: string;
692
- status: number;
693
- errors: string[];
694
- }>;
695
- };
696
- };
697
- registerIssuer: {
698
- method: "POST";
699
- metadata: {
700
- auth: boolean;
701
- };
702
- body: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
703
- firstName: import("zod").ZodString;
704
- lastName: import("zod").ZodString;
705
- email: import("zod").ZodEffects<import("zod").ZodString, string, string>;
706
- password: import("zod").ZodString;
707
- } & {
708
- confirmPassword: import("zod").ZodString;
709
- accountName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
710
- accountType: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").ManagedByType>>>;
711
- }, "strip", import("zod").ZodTypeAny, {
712
- firstName: string;
713
- lastName: string;
714
- email: string;
715
- password: string;
716
- confirmPassword: string;
717
- accountType: import("../..").ManagedByType;
718
- accountName?: string | null | undefined;
719
- }, {
720
- firstName: string;
721
- lastName: string;
722
- email: string;
723
- password: string;
724
- confirmPassword: string;
725
- accountName?: string | null | undefined;
726
- accountType?: import("../..").ManagedByType | undefined;
727
- }>, {
728
- firstName: string;
729
- lastName: string;
730
- email: string;
731
- password: string;
732
- confirmPassword: string;
733
- accountType: import("../..").ManagedByType;
734
- accountName?: string | null | undefined;
735
- }, {
736
- firstName: string;
737
- lastName: string;
738
- email: string;
739
- password: string;
740
- confirmPassword: string;
741
- accountName?: string | null | undefined;
742
- accountType?: import("../..").ManagedByType | undefined;
743
- }>, {
744
- firstName: string;
745
- lastName: string;
746
- email: string;
747
- password: string;
748
- confirmPassword: string;
749
- accountType: import("../..").ManagedByType;
750
- accountName?: string | null | undefined;
751
- }, {
752
- firstName: string;
753
- lastName: string;
754
- email: string;
755
- password: string;
756
- confirmPassword: string;
757
- accountName?: string | null | undefined;
758
- accountType?: import("../..").ManagedByType | undefined;
759
- }>;
760
- summary: "Register issuer with email (API Key Auth)";
761
- path: "/clients/api/v1/auth/register/issuer";
762
- responses: {
763
- 201: import("zod").ZodObject<{
764
- accessToken: import("zod").ZodOptional<import("zod").ZodString>;
765
- requiresTwoFactor: import("zod").ZodOptional<import("zod").ZodBoolean>;
766
- temporaryToken: import("zod").ZodOptional<import("zod").ZodString>;
767
- requiresTwoFactorSetup: import("zod").ZodOptional<import("zod").ZodBoolean>;
768
- twoFactorMethod: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").TwoFactorMethod>>;
769
- }, "strip", import("zod").ZodTypeAny, {
770
- requiresTwoFactorSetup?: boolean | undefined;
771
- twoFactorMethod?: import("../..").TwoFactorMethod | undefined;
772
- temporaryToken?: string | undefined;
773
- accessToken?: string | undefined;
774
- requiresTwoFactor?: boolean | undefined;
775
- }, {
776
- requiresTwoFactorSetup?: boolean | undefined;
777
- twoFactorMethod?: import("../..").TwoFactorMethod | undefined;
778
- temporaryToken?: string | undefined;
779
- accessToken?: string | undefined;
780
- requiresTwoFactor?: boolean | undefined;
781
- }>;
782
- 400: import("zod").ZodObject<{
783
- status: import("zod").ZodNumber;
784
- message: import("zod").ZodString;
785
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
786
- }, "strip", import("zod").ZodTypeAny, {
787
- message: string;
788
- status: number;
789
- errors: string[];
790
- }, {
791
- message: string;
792
- status: number;
793
- errors: string[];
794
- }>;
795
- 401: import("zod").ZodObject<{
796
- status: import("zod").ZodNumber;
797
- message: import("zod").ZodString;
798
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
799
- }, "strip", import("zod").ZodTypeAny, {
800
- message: string;
801
- status: number;
802
- errors: string[];
803
- }, {
804
- message: string;
805
- status: number;
806
- errors: string[];
807
- }>;
808
- 500: import("zod").ZodObject<{
809
- status: import("zod").ZodNumber;
810
- message: import("zod").ZodString;
811
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
812
- }, "strip", import("zod").ZodTypeAny, {
813
- message: string;
814
- status: number;
815
- errors: string[];
816
- }, {
817
- message: string;
818
- status: number;
819
- errors: string[];
820
- }>;
821
- };
822
- };
823
- };
824
- apiKeys: {
825
- getApiKeys: {
588
+ apiKeyLogs: {
589
+ getApiKeyLogs: {
826
590
  method: "GET";
827
591
  metadata: {
828
592
  auth: boolean;
@@ -830,15 +594,34 @@ export declare const clientsContract: {
830
594
  query: import("zod").ZodObject<{
831
595
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
832
596
  limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
597
+ } & {
598
+ endpoint: import("zod").ZodOptional<import("zod").ZodString>;
599
+ apiKeyId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
600
+ method: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").HttpMethod>>;
601
+ status: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNativeEnum<typeof import("@nestjs/common").HttpStatus>, import("@nestjs/common").HttpStatus, unknown>>;
602
+ from: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
603
+ to: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
833
604
  }, "strip", import("zod").ZodTypeAny, {
834
605
  page: number;
835
606
  limit: number;
607
+ status?: import("@nestjs/common").HttpStatus | undefined;
608
+ from?: Date | null | undefined;
609
+ to?: Date | null | undefined;
610
+ endpoint?: string | undefined;
611
+ apiKeyId?: string | undefined;
612
+ method?: import("../..").HttpMethod | undefined;
836
613
  }, {
614
+ status?: unknown;
837
615
  page?: number | undefined;
838
616
  limit?: number | undefined;
617
+ from?: string | null | undefined;
618
+ to?: string | null | undefined;
619
+ endpoint?: string | undefined;
620
+ apiKeyId?: string | undefined;
621
+ method?: import("../..").HttpMethod | undefined;
839
622
  }>;
840
- summary: "Get API Keys";
841
- path: "/clients/api/v1/api-keys";
623
+ summary: "Get API key logs";
624
+ path: "/clients/api/v1/api-key-logs";
842
625
  responses: {
843
626
  200: import("zod").ZodObject<{
844
627
  items: import("zod").ZodArray<import("zod").ZodObject<{
@@ -848,41 +631,38 @@ export declare const clientsContract: {
848
631
  deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
849
632
  } & {
850
633
  id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
851
- name: import("zod").ZodString;
852
- description: import("zod").ZodNullable<import("zod").ZodString>;
853
- key: import("zod").ZodString;
854
- keyHash: import("zod").ZodString;
855
- active: import("zod").ZodBoolean;
856
- lastUsedAt: import("zod").ZodNullable<import("zod").ZodDate>;
857
- accountId: import("zod").ZodString;
858
- roleId: import("zod").ZodNullable<import("zod").ZodString>;
634
+ apiKeyId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
635
+ method: import("zod").ZodNativeEnum<typeof import("../..").HttpMethod>;
636
+ path: import("zod").ZodString;
637
+ status: import("zod").ZodNativeEnum<typeof import("@nestjs/common").HttpStatus>;
638
+ durationMs: import("zod").ZodNumber;
639
+ requestBody: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
640
+ responseBody: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
859
641
  }, "strip", import("zod").ZodTypeAny, {
642
+ path: string;
643
+ status: import("@nestjs/common").HttpStatus;
860
644
  id: string;
861
645
  createdAt: string | Date;
862
646
  updatedAt: string | Date;
863
647
  deletedAt: string | Date | null;
864
- key: string;
865
- active: boolean;
866
- accountId: string;
867
- name: string;
868
- roleId: string | null;
869
- description: string | null;
870
- lastUsedAt: Date | null;
871
- keyHash: string;
648
+ apiKeyId: string;
649
+ method: import("../..").HttpMethod;
650
+ durationMs: number;
651
+ requestBody: Record<string, any> | null;
652
+ responseBody: Record<string, any> | null;
872
653
  __entity?: string | undefined;
873
654
  }, {
655
+ path: string;
656
+ status: import("@nestjs/common").HttpStatus;
874
657
  id: string;
875
658
  createdAt: string | Date;
876
659
  updatedAt: string | Date;
877
660
  deletedAt: string | Date | null;
878
- key: string;
879
- active: boolean;
880
- accountId: string;
881
- name: string;
882
- roleId: string | null;
883
- description: string | null;
884
- lastUsedAt: Date | null;
885
- keyHash: string;
661
+ apiKeyId: string;
662
+ method: import("../..").HttpMethod;
663
+ durationMs: number;
664
+ requestBody: Record<string, any> | null;
665
+ responseBody: Record<string, any> | null;
886
666
  __entity?: string | undefined;
887
667
  }>, "many">;
888
668
  meta: import("zod").ZodObject<{
@@ -906,18 +686,17 @@ export declare const clientsContract: {
906
686
  }>;
907
687
  }, "strip", import("zod").ZodTypeAny, {
908
688
  items: {
689
+ path: string;
690
+ status: import("@nestjs/common").HttpStatus;
909
691
  id: string;
910
692
  createdAt: string | Date;
911
693
  updatedAt: string | Date;
912
694
  deletedAt: string | Date | null;
913
- key: string;
914
- active: boolean;
915
- accountId: string;
916
- name: string;
917
- roleId: string | null;
918
- description: string | null;
919
- lastUsedAt: Date | null;
920
- keyHash: string;
695
+ apiKeyId: string;
696
+ method: import("../..").HttpMethod;
697
+ durationMs: number;
698
+ requestBody: Record<string, any> | null;
699
+ responseBody: Record<string, any> | null;
921
700
  __entity?: string | undefined;
922
701
  }[];
923
702
  meta: {
@@ -929,18 +708,17 @@ export declare const clientsContract: {
929
708
  };
930
709
  }, {
931
710
  items: {
711
+ path: string;
712
+ status: import("@nestjs/common").HttpStatus;
932
713
  id: string;
933
714
  createdAt: string | Date;
934
715
  updatedAt: string | Date;
935
716
  deletedAt: string | Date | null;
936
- key: string;
937
- active: boolean;
938
- accountId: string;
939
- name: string;
940
- roleId: string | null;
941
- description: string | null;
942
- lastUsedAt: Date | null;
943
- keyHash: string;
717
+ apiKeyId: string;
718
+ method: import("../..").HttpMethod;
719
+ durationMs: number;
720
+ requestBody: Record<string, any> | null;
721
+ responseBody: Record<string, any> | null;
944
722
  __entity?: string | undefined;
945
723
  }[];
946
724
  meta: {
@@ -948,95 +726,21 @@ export declare const clientsContract: {
948
726
  itemsPerPage: number;
949
727
  currentPage: number;
950
728
  totalItems?: number | undefined;
951
- totalPages?: number | undefined;
952
- };
953
- }>;
954
- 401: import("zod").ZodObject<{
955
- status: import("zod").ZodNumber;
956
- message: import("zod").ZodString;
957
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
958
- }, "strip", import("zod").ZodTypeAny, {
959
- message: string;
960
- status: number;
961
- errors: string[];
962
- }, {
963
- message: string;
964
- status: number;
965
- errors: string[];
966
- }>;
967
- 403: import("zod").ZodObject<{
968
- status: import("zod").ZodNumber;
969
- message: import("zod").ZodString;
970
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
971
- }, "strip", import("zod").ZodTypeAny, {
972
- message: string;
973
- status: number;
974
- errors: string[];
975
- }, {
976
- message: string;
977
- status: number;
978
- errors: string[];
979
- }>;
980
- };
981
- };
982
- getApiKey: {
983
- method: "GET";
984
- metadata: {
985
- auth: boolean;
986
- };
987
- pathParams: import("zod").ZodObject<{
988
- id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
989
- }, "strip", import("zod").ZodTypeAny, {
990
- id: string;
991
- }, {
992
- id: string;
993
- }>;
994
- summary: "Get API Key";
995
- path: "/clients/api/v1/api-keys/:id";
996
- responses: {
997
- 200: import("zod").ZodObject<{
998
- __entity: import("zod").ZodOptional<import("zod").ZodString>;
999
- createdAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1000
- updatedAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1001
- deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
1002
- } & {
1003
- id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1004
- name: import("zod").ZodString;
1005
- description: import("zod").ZodNullable<import("zod").ZodString>;
1006
- key: import("zod").ZodString;
1007
- keyHash: import("zod").ZodString;
1008
- active: import("zod").ZodBoolean;
1009
- lastUsedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1010
- accountId: import("zod").ZodString;
1011
- roleId: import("zod").ZodNullable<import("zod").ZodString>;
729
+ totalPages?: number | undefined;
730
+ };
731
+ }>;
732
+ 400: import("zod").ZodObject<{
733
+ status: import("zod").ZodNumber;
734
+ message: import("zod").ZodString;
735
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
1012
736
  }, "strip", import("zod").ZodTypeAny, {
1013
- id: string;
1014
- createdAt: string | Date;
1015
- updatedAt: string | Date;
1016
- deletedAt: string | Date | null;
1017
- key: string;
1018
- active: boolean;
1019
- accountId: string;
1020
- name: string;
1021
- roleId: string | null;
1022
- description: string | null;
1023
- lastUsedAt: Date | null;
1024
- keyHash: string;
1025
- __entity?: string | undefined;
737
+ message: string;
738
+ status: number;
739
+ errors: string[];
1026
740
  }, {
1027
- id: string;
1028
- createdAt: string | Date;
1029
- updatedAt: string | Date;
1030
- deletedAt: string | Date | null;
1031
- key: string;
1032
- active: boolean;
1033
- accountId: string;
1034
- name: string;
1035
- roleId: string | null;
1036
- description: string | null;
1037
- lastUsedAt: Date | null;
1038
- keyHash: string;
1039
- __entity?: string | undefined;
741
+ message: string;
742
+ status: number;
743
+ errors: string[];
1040
744
  }>;
1041
745
  401: import("zod").ZodObject<{
1042
746
  status: import("zod").ZodNumber;
@@ -1064,7 +768,7 @@ export declare const clientsContract: {
1064
768
  status: number;
1065
769
  errors: string[];
1066
770
  }>;
1067
- 404: import("zod").ZodObject<{
771
+ 500: import("zod").ZodObject<{
1068
772
  status: import("zod").ZodNumber;
1069
773
  message: import("zod").ZodString;
1070
774
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -1079,65 +783,39 @@ export declare const clientsContract: {
1079
783
  }>;
1080
784
  };
1081
785
  };
1082
- deactivateApiKey: {
1083
- method: "PATCH";
786
+ getApiKeyLogsTotals: {
787
+ method: "GET";
1084
788
  metadata: {
1085
789
  auth: boolean;
1086
790
  };
1087
- body: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1088
- pathParams: import("zod").ZodObject<{
1089
- id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
791
+ query: import("zod").ZodObject<{
792
+ apiKeyId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
793
+ from: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
794
+ to: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
1090
795
  }, "strip", import("zod").ZodTypeAny, {
1091
- id: string;
796
+ from?: Date | null | undefined;
797
+ to?: Date | null | undefined;
798
+ apiKeyId?: string | undefined;
1092
799
  }, {
1093
- id: string;
800
+ from?: string | null | undefined;
801
+ to?: string | null | undefined;
802
+ apiKeyId?: string | undefined;
1094
803
  }>;
1095
- summary: "Deactivate API Key by id";
1096
- path: "/clients/api/v1/api-keys/:id/deactivate";
804
+ summary: "Get totals of API key logs";
805
+ path: "/clients/api/v1/api-key-logs/totals";
1097
806
  responses: {
1098
- 202: import("zod").ZodObject<{
1099
- __entity: import("zod").ZodOptional<import("zod").ZodString>;
1100
- createdAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1101
- updatedAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1102
- deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
1103
- } & {
1104
- id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1105
- name: import("zod").ZodString;
1106
- description: import("zod").ZodNullable<import("zod").ZodString>;
1107
- key: import("zod").ZodString;
1108
- keyHash: import("zod").ZodString;
1109
- active: import("zod").ZodBoolean;
1110
- lastUsedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1111
- accountId: import("zod").ZodString;
1112
- roleId: import("zod").ZodNullable<import("zod").ZodString>;
807
+ 200: import("zod").ZodObject<{
808
+ success: import("zod").ZodNumber;
809
+ failed: import("zod").ZodNumber;
810
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
1113
811
  }, "strip", import("zod").ZodTypeAny, {
1114
- id: string;
1115
- createdAt: string | Date;
1116
- updatedAt: string | Date;
1117
- deletedAt: string | Date | null;
1118
- key: string;
1119
- active: boolean;
1120
- accountId: string;
1121
- name: string;
1122
- roleId: string | null;
1123
- description: string | null;
1124
- lastUsedAt: Date | null;
1125
- keyHash: string;
1126
- __entity?: string | undefined;
812
+ failed: number;
813
+ success: number;
814
+ total?: number | undefined;
1127
815
  }, {
1128
- id: string;
1129
- createdAt: string | Date;
1130
- updatedAt: string | Date;
1131
- deletedAt: string | Date | null;
1132
- key: string;
1133
- active: boolean;
1134
- accountId: string;
1135
- name: string;
1136
- roleId: string | null;
1137
- description: string | null;
1138
- lastUsedAt: Date | null;
1139
- keyHash: string;
1140
- __entity?: string | undefined;
816
+ failed: number;
817
+ success: number;
818
+ total?: number | undefined;
1141
819
  }>;
1142
820
  400: import("zod").ZodObject<{
1143
821
  status: import("zod").ZodNumber;
@@ -1165,7 +843,7 @@ export declare const clientsContract: {
1165
843
  status: number;
1166
844
  errors: string[];
1167
845
  }>;
1168
- 404: import("zod").ZodObject<{
846
+ 403: import("zod").ZodObject<{
1169
847
  status: import("zod").ZodNumber;
1170
848
  message: import("zod").ZodString;
1171
849
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -1194,8 +872,8 @@ export declare const clientsContract: {
1194
872
  };
1195
873
  };
1196
874
  };
1197
- apiKeyLogs: {
1198
- getApiKeyLogs: {
875
+ apiKeys: {
876
+ getApiKeys: {
1199
877
  method: "GET";
1200
878
  metadata: {
1201
879
  auth: boolean;
@@ -1203,34 +881,15 @@ export declare const clientsContract: {
1203
881
  query: import("zod").ZodObject<{
1204
882
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
1205
883
  limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
1206
- } & {
1207
- endpoint: import("zod").ZodOptional<import("zod").ZodString>;
1208
- apiKeyId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
1209
- method: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").HttpMethod>>;
1210
- status: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNativeEnum<typeof import("@nestjs/common").HttpStatus>, import("@nestjs/common").HttpStatus, unknown>>;
1211
- from: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
1212
- to: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
1213
884
  }, "strip", import("zod").ZodTypeAny, {
1214
885
  page: number;
1215
886
  limit: number;
1216
- status?: import("@nestjs/common").HttpStatus | undefined;
1217
- from?: Date | null | undefined;
1218
- to?: Date | null | undefined;
1219
- endpoint?: string | undefined;
1220
- apiKeyId?: string | undefined;
1221
- method?: import("../..").HttpMethod | undefined;
1222
887
  }, {
1223
- status?: unknown;
1224
888
  page?: number | undefined;
1225
889
  limit?: number | undefined;
1226
- from?: string | null | undefined;
1227
- to?: string | null | undefined;
1228
- endpoint?: string | undefined;
1229
- apiKeyId?: string | undefined;
1230
- method?: import("../..").HttpMethod | undefined;
1231
890
  }>;
1232
- summary: "Get API key logs";
1233
- path: "/clients/api/v1/api-key-logs";
891
+ summary: "Get API Keys";
892
+ path: "/clients/api/v1/api-keys";
1234
893
  responses: {
1235
894
  200: import("zod").ZodObject<{
1236
895
  items: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1240,38 +899,41 @@ export declare const clientsContract: {
1240
899
  deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
1241
900
  } & {
1242
901
  id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1243
- apiKeyId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1244
- method: import("zod").ZodNativeEnum<typeof import("../..").HttpMethod>;
1245
- path: import("zod").ZodString;
1246
- status: import("zod").ZodNativeEnum<typeof import("@nestjs/common").HttpStatus>;
1247
- durationMs: import("zod").ZodNumber;
1248
- requestBody: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
1249
- responseBody: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
902
+ name: import("zod").ZodString;
903
+ description: import("zod").ZodNullable<import("zod").ZodString>;
904
+ key: import("zod").ZodString;
905
+ keyHash: import("zod").ZodString;
906
+ active: import("zod").ZodBoolean;
907
+ lastUsedAt: import("zod").ZodNullable<import("zod").ZodDate>;
908
+ accountId: import("zod").ZodString;
909
+ roleId: import("zod").ZodNullable<import("zod").ZodString>;
1250
910
  }, "strip", import("zod").ZodTypeAny, {
1251
- path: string;
1252
- status: import("@nestjs/common").HttpStatus;
1253
911
  id: string;
1254
912
  createdAt: string | Date;
1255
913
  updatedAt: string | Date;
1256
914
  deletedAt: string | Date | null;
1257
- apiKeyId: string;
1258
- method: import("../..").HttpMethod;
1259
- durationMs: number;
1260
- requestBody: Record<string, any> | null;
1261
- responseBody: Record<string, any> | null;
915
+ key: string;
916
+ active: boolean;
917
+ accountId: string;
918
+ name: string;
919
+ roleId: string | null;
920
+ description: string | null;
921
+ lastUsedAt: Date | null;
922
+ keyHash: string;
1262
923
  __entity?: string | undefined;
1263
924
  }, {
1264
- path: string;
1265
- status: import("@nestjs/common").HttpStatus;
1266
925
  id: string;
1267
926
  createdAt: string | Date;
1268
927
  updatedAt: string | Date;
1269
928
  deletedAt: string | Date | null;
1270
- apiKeyId: string;
1271
- method: import("../..").HttpMethod;
1272
- durationMs: number;
1273
- requestBody: Record<string, any> | null;
1274
- responseBody: Record<string, any> | null;
929
+ key: string;
930
+ active: boolean;
931
+ accountId: string;
932
+ name: string;
933
+ roleId: string | null;
934
+ description: string | null;
935
+ lastUsedAt: Date | null;
936
+ keyHash: string;
1275
937
  __entity?: string | undefined;
1276
938
  }>, "many">;
1277
939
  meta: import("zod").ZodObject<{
@@ -1295,17 +957,18 @@ export declare const clientsContract: {
1295
957
  }>;
1296
958
  }, "strip", import("zod").ZodTypeAny, {
1297
959
  items: {
1298
- path: string;
1299
- status: import("@nestjs/common").HttpStatus;
1300
960
  id: string;
1301
961
  createdAt: string | Date;
1302
962
  updatedAt: string | Date;
1303
963
  deletedAt: string | Date | null;
1304
- apiKeyId: string;
1305
- method: import("../..").HttpMethod;
1306
- durationMs: number;
1307
- requestBody: Record<string, any> | null;
1308
- responseBody: Record<string, any> | null;
964
+ key: string;
965
+ active: boolean;
966
+ accountId: string;
967
+ name: string;
968
+ roleId: string | null;
969
+ description: string | null;
970
+ lastUsedAt: Date | null;
971
+ keyHash: string;
1309
972
  __entity?: string | undefined;
1310
973
  }[];
1311
974
  meta: {
@@ -1317,17 +980,18 @@ export declare const clientsContract: {
1317
980
  };
1318
981
  }, {
1319
982
  items: {
1320
- path: string;
1321
- status: import("@nestjs/common").HttpStatus;
1322
983
  id: string;
1323
984
  createdAt: string | Date;
1324
985
  updatedAt: string | Date;
1325
986
  deletedAt: string | Date | null;
1326
- apiKeyId: string;
1327
- method: import("../..").HttpMethod;
1328
- durationMs: number;
1329
- requestBody: Record<string, any> | null;
1330
- responseBody: Record<string, any> | null;
987
+ key: string;
988
+ active: boolean;
989
+ accountId: string;
990
+ name: string;
991
+ roleId: string | null;
992
+ description: string | null;
993
+ lastUsedAt: Date | null;
994
+ keyHash: string;
1331
995
  __entity?: string | undefined;
1332
996
  }[];
1333
997
  meta: {
@@ -1338,18 +1002,92 @@ export declare const clientsContract: {
1338
1002
  totalPages?: number | undefined;
1339
1003
  };
1340
1004
  }>;
1341
- 400: import("zod").ZodObject<{
1005
+ 401: import("zod").ZodObject<{
1006
+ status: import("zod").ZodNumber;
1007
+ message: import("zod").ZodString;
1008
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
1009
+ }, "strip", import("zod").ZodTypeAny, {
1010
+ message: string;
1011
+ status: number;
1012
+ errors: string[];
1013
+ }, {
1014
+ message: string;
1015
+ status: number;
1016
+ errors: string[];
1017
+ }>;
1018
+ 403: import("zod").ZodObject<{
1342
1019
  status: import("zod").ZodNumber;
1343
1020
  message: import("zod").ZodString;
1344
1021
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
1345
1022
  }, "strip", import("zod").ZodTypeAny, {
1346
- message: string;
1347
- status: number;
1348
- errors: string[];
1023
+ message: string;
1024
+ status: number;
1025
+ errors: string[];
1026
+ }, {
1027
+ message: string;
1028
+ status: number;
1029
+ errors: string[];
1030
+ }>;
1031
+ };
1032
+ };
1033
+ getApiKey: {
1034
+ method: "GET";
1035
+ metadata: {
1036
+ auth: boolean;
1037
+ };
1038
+ pathParams: import("zod").ZodObject<{
1039
+ id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1040
+ }, "strip", import("zod").ZodTypeAny, {
1041
+ id: string;
1042
+ }, {
1043
+ id: string;
1044
+ }>;
1045
+ summary: "Get API Key";
1046
+ path: "/clients/api/v1/api-keys/:id";
1047
+ responses: {
1048
+ 200: import("zod").ZodObject<{
1049
+ __entity: import("zod").ZodOptional<import("zod").ZodString>;
1050
+ createdAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1051
+ updatedAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1052
+ deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
1053
+ } & {
1054
+ id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1055
+ name: import("zod").ZodString;
1056
+ description: import("zod").ZodNullable<import("zod").ZodString>;
1057
+ key: import("zod").ZodString;
1058
+ keyHash: import("zod").ZodString;
1059
+ active: import("zod").ZodBoolean;
1060
+ lastUsedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1061
+ accountId: import("zod").ZodString;
1062
+ roleId: import("zod").ZodNullable<import("zod").ZodString>;
1063
+ }, "strip", import("zod").ZodTypeAny, {
1064
+ id: string;
1065
+ createdAt: string | Date;
1066
+ updatedAt: string | Date;
1067
+ deletedAt: string | Date | null;
1068
+ key: string;
1069
+ active: boolean;
1070
+ accountId: string;
1071
+ name: string;
1072
+ roleId: string | null;
1073
+ description: string | null;
1074
+ lastUsedAt: Date | null;
1075
+ keyHash: string;
1076
+ __entity?: string | undefined;
1349
1077
  }, {
1350
- message: string;
1351
- status: number;
1352
- errors: string[];
1078
+ id: string;
1079
+ createdAt: string | Date;
1080
+ updatedAt: string | Date;
1081
+ deletedAt: string | Date | null;
1082
+ key: string;
1083
+ active: boolean;
1084
+ accountId: string;
1085
+ name: string;
1086
+ roleId: string | null;
1087
+ description: string | null;
1088
+ lastUsedAt: Date | null;
1089
+ keyHash: string;
1090
+ __entity?: string | undefined;
1353
1091
  }>;
1354
1092
  401: import("zod").ZodObject<{
1355
1093
  status: import("zod").ZodNumber;
@@ -1377,7 +1115,7 @@ export declare const clientsContract: {
1377
1115
  status: number;
1378
1116
  errors: string[];
1379
1117
  }>;
1380
- 500: import("zod").ZodObject<{
1118
+ 404: import("zod").ZodObject<{
1381
1119
  status: import("zod").ZodNumber;
1382
1120
  message: import("zod").ZodString;
1383
1121
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -1392,39 +1130,65 @@ export declare const clientsContract: {
1392
1130
  }>;
1393
1131
  };
1394
1132
  };
1395
- getApiKeyLogsTotals: {
1396
- method: "GET";
1133
+ deactivateApiKey: {
1134
+ method: "PATCH";
1397
1135
  metadata: {
1398
1136
  auth: boolean;
1399
1137
  };
1400
- query: import("zod").ZodObject<{
1401
- apiKeyId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
1402
- from: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
1403
- to: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
1138
+ body: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1139
+ pathParams: import("zod").ZodObject<{
1140
+ id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1404
1141
  }, "strip", import("zod").ZodTypeAny, {
1405
- from?: Date | null | undefined;
1406
- to?: Date | null | undefined;
1407
- apiKeyId?: string | undefined;
1142
+ id: string;
1408
1143
  }, {
1409
- from?: string | null | undefined;
1410
- to?: string | null | undefined;
1411
- apiKeyId?: string | undefined;
1144
+ id: string;
1412
1145
  }>;
1413
- summary: "Get totals of API key logs";
1414
- path: "/clients/api/v1/api-key-logs/totals";
1146
+ summary: "Deactivate API Key by id";
1147
+ path: "/clients/api/v1/api-keys/:id/deactivate";
1415
1148
  responses: {
1416
- 200: import("zod").ZodObject<{
1417
- success: import("zod").ZodNumber;
1418
- failed: import("zod").ZodNumber;
1419
- total: import("zod").ZodOptional<import("zod").ZodNumber>;
1149
+ 202: import("zod").ZodObject<{
1150
+ __entity: import("zod").ZodOptional<import("zod").ZodString>;
1151
+ createdAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1152
+ updatedAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
1153
+ deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
1154
+ } & {
1155
+ id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1156
+ name: import("zod").ZodString;
1157
+ description: import("zod").ZodNullable<import("zod").ZodString>;
1158
+ key: import("zod").ZodString;
1159
+ keyHash: import("zod").ZodString;
1160
+ active: import("zod").ZodBoolean;
1161
+ lastUsedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1162
+ accountId: import("zod").ZodString;
1163
+ roleId: import("zod").ZodNullable<import("zod").ZodString>;
1420
1164
  }, "strip", import("zod").ZodTypeAny, {
1421
- failed: number;
1422
- success: number;
1423
- total?: number | undefined;
1165
+ id: string;
1166
+ createdAt: string | Date;
1167
+ updatedAt: string | Date;
1168
+ deletedAt: string | Date | null;
1169
+ key: string;
1170
+ active: boolean;
1171
+ accountId: string;
1172
+ name: string;
1173
+ roleId: string | null;
1174
+ description: string | null;
1175
+ lastUsedAt: Date | null;
1176
+ keyHash: string;
1177
+ __entity?: string | undefined;
1424
1178
  }, {
1425
- failed: number;
1426
- success: number;
1427
- total?: number | undefined;
1179
+ id: string;
1180
+ createdAt: string | Date;
1181
+ updatedAt: string | Date;
1182
+ deletedAt: string | Date | null;
1183
+ key: string;
1184
+ active: boolean;
1185
+ accountId: string;
1186
+ name: string;
1187
+ roleId: string | null;
1188
+ description: string | null;
1189
+ lastUsedAt: Date | null;
1190
+ keyHash: string;
1191
+ __entity?: string | undefined;
1428
1192
  }>;
1429
1193
  400: import("zod").ZodObject<{
1430
1194
  status: import("zod").ZodNumber;
@@ -1452,7 +1216,7 @@ export declare const clientsContract: {
1452
1216
  status: number;
1453
1217
  errors: string[];
1454
1218
  }>;
1455
- 403: import("zod").ZodObject<{
1219
+ 404: import("zod").ZodObject<{
1456
1220
  status: import("zod").ZodNumber;
1457
1221
  message: import("zod").ZodString;
1458
1222
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -2488,7 +2252,143 @@ export declare const clientsContract: {
2488
2252
  status: number;
2489
2253
  errors: string[];
2490
2254
  }>;
2491
- 403: import("zod").ZodObject<{
2255
+ 403: import("zod").ZodObject<{
2256
+ status: import("zod").ZodNumber;
2257
+ message: import("zod").ZodString;
2258
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2259
+ }, "strip", import("zod").ZodTypeAny, {
2260
+ message: string;
2261
+ status: number;
2262
+ errors: string[];
2263
+ }, {
2264
+ message: string;
2265
+ status: number;
2266
+ errors: string[];
2267
+ }>;
2268
+ 404: import("zod").ZodObject<{
2269
+ status: import("zod").ZodNumber;
2270
+ message: import("zod").ZodString;
2271
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2272
+ }, "strip", import("zod").ZodTypeAny, {
2273
+ message: string;
2274
+ status: number;
2275
+ errors: string[];
2276
+ }, {
2277
+ message: string;
2278
+ status: number;
2279
+ errors: string[];
2280
+ }>;
2281
+ 500: import("zod").ZodObject<{
2282
+ status: import("zod").ZodNumber;
2283
+ message: import("zod").ZodString;
2284
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2285
+ }, "strip", import("zod").ZodTypeAny, {
2286
+ message: string;
2287
+ status: number;
2288
+ errors: string[];
2289
+ }, {
2290
+ message: string;
2291
+ status: number;
2292
+ errors: string[];
2293
+ }>;
2294
+ };
2295
+ };
2296
+ };
2297
+ auth: {
2298
+ registerInvestor: {
2299
+ method: "POST";
2300
+ metadata: {
2301
+ auth: boolean;
2302
+ };
2303
+ body: import("zod").ZodEffects<import("zod").ZodObject<{
2304
+ firstName: import("zod").ZodString;
2305
+ lastName: import("zod").ZodString;
2306
+ email: import("zod").ZodEffects<import("zod").ZodString, string, string>;
2307
+ password: import("zod").ZodString;
2308
+ } & {
2309
+ confirmPassword: import("zod").ZodString;
2310
+ phoneNumber: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, {
2311
+ isOk: () => boolean;
2312
+ isErr: () => boolean;
2313
+ value?: any;
2314
+ error?: any;
2315
+ } | import("neverthrow").Ok<null, never>, string | null>, {
2316
+ isOk: () => boolean;
2317
+ isErr: () => boolean;
2318
+ value?: any;
2319
+ error?: any;
2320
+ } | import("neverthrow").Ok<null, never>, string | null>, any, string | null>>;
2321
+ site: import("zod").ZodString;
2322
+ }, "strip", import("zod").ZodTypeAny, {
2323
+ firstName: string;
2324
+ lastName: string;
2325
+ email: string;
2326
+ site: string;
2327
+ password: string;
2328
+ confirmPassword: string;
2329
+ phoneNumber?: any;
2330
+ }, {
2331
+ firstName: string;
2332
+ lastName: string;
2333
+ email: string;
2334
+ site: string;
2335
+ password: string;
2336
+ confirmPassword: string;
2337
+ phoneNumber?: string | null | undefined;
2338
+ }>, {
2339
+ firstName: string;
2340
+ lastName: string;
2341
+ email: string;
2342
+ site: string;
2343
+ password: string;
2344
+ confirmPassword: string;
2345
+ phoneNumber?: any;
2346
+ }, {
2347
+ firstName: string;
2348
+ lastName: string;
2349
+ email: string;
2350
+ site: string;
2351
+ password: string;
2352
+ confirmPassword: string;
2353
+ phoneNumber?: string | null | undefined;
2354
+ }>;
2355
+ summary: "Register investor with email (API Key Auth)";
2356
+ path: "/clients/api/v1/auth/register/investor";
2357
+ responses: {
2358
+ 201: import("zod").ZodObject<{
2359
+ userId: import("zod").ZodString;
2360
+ }, "strip", import("zod").ZodTypeAny, {
2361
+ userId: string;
2362
+ }, {
2363
+ userId: string;
2364
+ }>;
2365
+ 400: import("zod").ZodObject<{
2366
+ status: import("zod").ZodNumber;
2367
+ message: import("zod").ZodString;
2368
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2369
+ }, "strip", import("zod").ZodTypeAny, {
2370
+ message: string;
2371
+ status: number;
2372
+ errors: string[];
2373
+ }, {
2374
+ message: string;
2375
+ status: number;
2376
+ errors: string[];
2377
+ }>;
2378
+ 401: import("zod").ZodObject<{
2379
+ status: import("zod").ZodNumber;
2380
+ message: import("zod").ZodString;
2381
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2382
+ }, "strip", import("zod").ZodTypeAny, {
2383
+ message: string;
2384
+ status: number;
2385
+ errors: string[];
2386
+ }, {
2387
+ message: string;
2388
+ status: number;
2389
+ errors: string[];
2390
+ }>;
2391
+ 500: import("zod").ZodObject<{
2492
2392
  status: import("zod").ZodNumber;
2493
2393
  message: import("zod").ZodString;
2494
2394
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -2501,7 +2401,107 @@ export declare const clientsContract: {
2501
2401
  status: number;
2502
2402
  errors: string[];
2503
2403
  }>;
2504
- 404: import("zod").ZodObject<{
2404
+ };
2405
+ };
2406
+ registerIssuer: {
2407
+ method: "POST";
2408
+ metadata: {
2409
+ auth: boolean;
2410
+ };
2411
+ body: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
2412
+ firstName: import("zod").ZodString;
2413
+ lastName: import("zod").ZodString;
2414
+ email: import("zod").ZodEffects<import("zod").ZodString, string, string>;
2415
+ password: import("zod").ZodString;
2416
+ } & {
2417
+ confirmPassword: import("zod").ZodString;
2418
+ accountName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2419
+ accountType: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").ManagedByType>>>;
2420
+ }, "strip", import("zod").ZodTypeAny, {
2421
+ firstName: string;
2422
+ lastName: string;
2423
+ email: string;
2424
+ password: string;
2425
+ confirmPassword: string;
2426
+ accountType: import("../..").ManagedByType;
2427
+ accountName?: string | null | undefined;
2428
+ }, {
2429
+ firstName: string;
2430
+ lastName: string;
2431
+ email: string;
2432
+ password: string;
2433
+ confirmPassword: string;
2434
+ accountName?: string | null | undefined;
2435
+ accountType?: import("../..").ManagedByType | undefined;
2436
+ }>, {
2437
+ firstName: string;
2438
+ lastName: string;
2439
+ email: string;
2440
+ password: string;
2441
+ confirmPassword: string;
2442
+ accountType: import("../..").ManagedByType;
2443
+ accountName?: string | null | undefined;
2444
+ }, {
2445
+ firstName: string;
2446
+ lastName: string;
2447
+ email: string;
2448
+ password: string;
2449
+ confirmPassword: string;
2450
+ accountName?: string | null | undefined;
2451
+ accountType?: import("../..").ManagedByType | undefined;
2452
+ }>, {
2453
+ firstName: string;
2454
+ lastName: string;
2455
+ email: string;
2456
+ password: string;
2457
+ confirmPassword: string;
2458
+ accountType: import("../..").ManagedByType;
2459
+ accountName?: string | null | undefined;
2460
+ }, {
2461
+ firstName: string;
2462
+ lastName: string;
2463
+ email: string;
2464
+ password: string;
2465
+ confirmPassword: string;
2466
+ accountName?: string | null | undefined;
2467
+ accountType?: import("../..").ManagedByType | undefined;
2468
+ }>;
2469
+ summary: "Register issuer with email (API Key Auth)";
2470
+ path: "/clients/api/v1/auth/register/issuer";
2471
+ responses: {
2472
+ 201: import("zod").ZodObject<{
2473
+ accessToken: import("zod").ZodOptional<import("zod").ZodString>;
2474
+ requiresTwoFactor: import("zod").ZodOptional<import("zod").ZodBoolean>;
2475
+ temporaryToken: import("zod").ZodOptional<import("zod").ZodString>;
2476
+ requiresTwoFactorSetup: import("zod").ZodOptional<import("zod").ZodBoolean>;
2477
+ twoFactorMethod: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").TwoFactorMethod>>;
2478
+ }, "strip", import("zod").ZodTypeAny, {
2479
+ requiresTwoFactorSetup?: boolean | undefined;
2480
+ twoFactorMethod?: import("../..").TwoFactorMethod | undefined;
2481
+ temporaryToken?: string | undefined;
2482
+ accessToken?: string | undefined;
2483
+ requiresTwoFactor?: boolean | undefined;
2484
+ }, {
2485
+ requiresTwoFactorSetup?: boolean | undefined;
2486
+ twoFactorMethod?: import("../..").TwoFactorMethod | undefined;
2487
+ temporaryToken?: string | undefined;
2488
+ accessToken?: string | undefined;
2489
+ requiresTwoFactor?: boolean | undefined;
2490
+ }>;
2491
+ 400: import("zod").ZodObject<{
2492
+ status: import("zod").ZodNumber;
2493
+ message: import("zod").ZodString;
2494
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2495
+ }, "strip", import("zod").ZodTypeAny, {
2496
+ message: string;
2497
+ status: number;
2498
+ errors: string[];
2499
+ }, {
2500
+ message: string;
2501
+ status: number;
2502
+ errors: string[];
2503
+ }>;
2504
+ 401: import("zod").ZodObject<{
2505
2505
  status: import("zod").ZodNumber;
2506
2506
  message: import("zod").ZodString;
2507
2507
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -2767,13 +2767,6 @@ export declare const clientsContract: {
2767
2767
  body: import("@ts-rest/core").ContractPlainType<{
2768
2768
  file: File;
2769
2769
  }>;
2770
- query: import("zod").ZodObject<{
2771
- type: import("zod").ZodNativeEnum<typeof import("../..").InvestorAccountType>;
2772
- }, "strip", import("zod").ZodTypeAny, {
2773
- type: import("../..").InvestorAccountType;
2774
- }, {
2775
- type: import("../..").InvestorAccountType;
2776
- }>;
2777
2770
  summary: "Upload and process CSV file for investor account creation";
2778
2771
  contentType: "multipart/form-data";
2779
2772
  path: "/clients/api/v1/csv/investors";
@@ -14108,49 +14101,234 @@ export declare const clientsContract: {
14108
14101
  }>;
14109
14102
  };
14110
14103
  };
14111
- postLineItem: {
14104
+ postLineItem: {
14105
+ method: "POST";
14106
+ metadata: {
14107
+ auth: boolean;
14108
+ };
14109
+ body: import("zod").ZodObject<{
14110
+ assetId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14111
+ quantity: import("zod").ZodNumber;
14112
+ }, "strip", import("zod").ZodTypeAny, {
14113
+ quantity: number;
14114
+ assetId: string;
14115
+ }, {
14116
+ quantity: number;
14117
+ assetId: string;
14118
+ }>;
14119
+ query: import("zod").ZodObject<{
14120
+ reset: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "true" | "false", string | undefined>, boolean, string | undefined>;
14121
+ }, "strip", import("zod").ZodTypeAny, {
14122
+ reset: boolean;
14123
+ }, {
14124
+ reset?: string | undefined;
14125
+ }>;
14126
+ summary: "Create a Line Item";
14127
+ path: "/clients/api/v1/trades/line-items";
14128
+ responses: {
14129
+ 201: import("zod").ZodObject<{
14130
+ assetName: import("zod").ZodNullable<import("zod").ZodString>;
14131
+ total: import("zod").ZodNumber;
14132
+ pricePerShare: import("zod").ZodNumber;
14133
+ id: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14134
+ quantity: import("zod").ZodNumber;
14135
+ }, "strip", import("zod").ZodTypeAny, {
14136
+ id: string;
14137
+ total: number;
14138
+ pricePerShare: number;
14139
+ quantity: number;
14140
+ assetName: string | null;
14141
+ }, {
14142
+ id: string;
14143
+ total: number;
14144
+ pricePerShare: number;
14145
+ quantity: number;
14146
+ assetName: string | null;
14147
+ }>;
14148
+ 401: import("zod").ZodObject<{
14149
+ status: import("zod").ZodNumber;
14150
+ message: import("zod").ZodString;
14151
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14152
+ }, "strip", import("zod").ZodTypeAny, {
14153
+ message: string;
14154
+ status: number;
14155
+ errors: string[];
14156
+ }, {
14157
+ message: string;
14158
+ status: number;
14159
+ errors: string[];
14160
+ }>;
14161
+ 403: import("zod").ZodObject<{
14162
+ status: import("zod").ZodNumber;
14163
+ message: import("zod").ZodString;
14164
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14165
+ }, "strip", import("zod").ZodTypeAny, {
14166
+ message: string;
14167
+ status: number;
14168
+ errors: string[];
14169
+ }, {
14170
+ message: string;
14171
+ status: number;
14172
+ errors: string[];
14173
+ }>;
14174
+ 400: import("zod").ZodObject<{
14175
+ status: import("zod").ZodNumber;
14176
+ message: import("zod").ZodString;
14177
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14178
+ }, "strip", import("zod").ZodTypeAny, {
14179
+ message: string;
14180
+ status: number;
14181
+ errors: string[];
14182
+ }, {
14183
+ message: string;
14184
+ status: number;
14185
+ errors: string[];
14186
+ }>;
14187
+ 500: import("zod").ZodObject<{
14188
+ status: import("zod").ZodNumber;
14189
+ message: import("zod").ZodString;
14190
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14191
+ }, "strip", import("zod").ZodTypeAny, {
14192
+ message: string;
14193
+ status: number;
14194
+ errors: string[];
14195
+ }, {
14196
+ message: string;
14197
+ status: number;
14198
+ errors: string[];
14199
+ }>;
14200
+ };
14201
+ };
14202
+ patchTradeStatus: {
14203
+ method: "PATCH";
14204
+ metadata: {
14205
+ auth: boolean;
14206
+ };
14207
+ body: import("zod").ZodObject<{
14208
+ tradeStatus: import("zod").ZodNativeEnum<typeof import("../..").TradeStatus>;
14209
+ }, "strip", import("zod").ZodTypeAny, {
14210
+ tradeStatus: import("../..").TradeStatus;
14211
+ }, {
14212
+ tradeStatus: import("../..").TradeStatus;
14213
+ }>;
14214
+ pathParams: import("zod").ZodObject<{
14215
+ id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
14216
+ }, "strip", import("zod").ZodTypeAny, {
14217
+ id: string;
14218
+ }, {
14219
+ id: string;
14220
+ }>;
14221
+ summary: "Patch a trade status";
14222
+ path: "/clients/api/v1/trades/:id";
14223
+ responses: {
14224
+ 201: any;
14225
+ 401: import("zod").ZodObject<{
14226
+ status: import("zod").ZodNumber;
14227
+ message: import("zod").ZodString;
14228
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14229
+ }, "strip", import("zod").ZodTypeAny, {
14230
+ message: string;
14231
+ status: number;
14232
+ errors: string[];
14233
+ }, {
14234
+ message: string;
14235
+ status: number;
14236
+ errors: string[];
14237
+ }>;
14238
+ 403: import("zod").ZodObject<{
14239
+ status: import("zod").ZodNumber;
14240
+ message: import("zod").ZodString;
14241
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14242
+ }, "strip", import("zod").ZodTypeAny, {
14243
+ message: string;
14244
+ status: number;
14245
+ errors: string[];
14246
+ }, {
14247
+ message: string;
14248
+ status: number;
14249
+ errors: string[];
14250
+ }>;
14251
+ 400: import("zod").ZodObject<{
14252
+ status: import("zod").ZodNumber;
14253
+ message: import("zod").ZodString;
14254
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14255
+ }, "strip", import("zod").ZodTypeAny, {
14256
+ message: string;
14257
+ status: number;
14258
+ errors: string[];
14259
+ }, {
14260
+ message: string;
14261
+ status: number;
14262
+ errors: string[];
14263
+ }>;
14264
+ 500: import("zod").ZodObject<{
14265
+ status: import("zod").ZodNumber;
14266
+ message: import("zod").ZodString;
14267
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14268
+ }, "strip", import("zod").ZodTypeAny, {
14269
+ message: string;
14270
+ status: number;
14271
+ errors: string[];
14272
+ }, {
14273
+ message: string;
14274
+ status: number;
14275
+ errors: string[];
14276
+ }>;
14277
+ };
14278
+ };
14279
+ postAttachSubdoc: {
14112
14280
  method: "POST";
14113
14281
  metadata: {
14114
14282
  auth: boolean;
14115
14283
  };
14116
14284
  body: import("zod").ZodObject<{
14117
- assetId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14118
- quantity: import("zod").ZodNumber;
14285
+ lineItemId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
14286
+ fileId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14287
+ primarySignatureStatus: import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>;
14288
+ secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14119
14289
  }, "strip", import("zod").ZodTypeAny, {
14120
- quantity: number;
14121
- assetId: string;
14290
+ fileId: string;
14291
+ lineItemId: string;
14292
+ primarySignatureStatus: import("../..").SignatureStatus;
14293
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14122
14294
  }, {
14123
- quantity: number;
14124
- assetId: string;
14295
+ fileId: string;
14296
+ lineItemId: string;
14297
+ primarySignatureStatus: import("../..").SignatureStatus;
14298
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14125
14299
  }>;
14126
- query: import("zod").ZodObject<{
14127
- reset: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "true" | "false", string | undefined>, boolean, string | undefined>;
14300
+ pathParams: import("zod").ZodObject<{
14301
+ id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
14128
14302
  }, "strip", import("zod").ZodTypeAny, {
14129
- reset: boolean;
14303
+ id: string;
14130
14304
  }, {
14131
- reset?: string | undefined;
14305
+ id: string;
14132
14306
  }>;
14133
- summary: "Create a Line Item";
14134
- path: "/clients/api/v1/trades/line-items";
14307
+ summary: "Attach subdoc to trade";
14308
+ path: "/clients/api/v1/trades/:id/attach-subdoc";
14135
14309
  responses: {
14136
- 201: import("zod").ZodObject<{
14137
- assetName: import("zod").ZodNullable<import("zod").ZodString>;
14138
- total: import("zod").ZodNumber;
14139
- pricePerShare: import("zod").ZodNumber;
14140
- id: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14141
- quantity: import("zod").ZodNumber;
14310
+ 200: import("zod").ZodObject<{
14311
+ success: import("zod").ZodBoolean;
14312
+ message: import("zod").ZodString;
14142
14313
  }, "strip", import("zod").ZodTypeAny, {
14143
- id: string;
14144
- total: number;
14145
- pricePerShare: number;
14146
- quantity: number;
14147
- assetName: string | null;
14314
+ message: string;
14315
+ success: boolean;
14148
14316
  }, {
14149
- id: string;
14150
- total: number;
14151
- pricePerShare: number;
14152
- quantity: number;
14153
- assetName: string | null;
14317
+ message: string;
14318
+ success: boolean;
14319
+ }>;
14320
+ 400: import("zod").ZodObject<{
14321
+ status: import("zod").ZodNumber;
14322
+ message: import("zod").ZodString;
14323
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14324
+ }, "strip", import("zod").ZodTypeAny, {
14325
+ message: string;
14326
+ status: number;
14327
+ errors: string[];
14328
+ }, {
14329
+ message: string;
14330
+ status: number;
14331
+ errors: string[];
14154
14332
  }>;
14155
14333
  401: import("zod").ZodObject<{
14156
14334
  status: import("zod").ZodNumber;
@@ -14178,7 +14356,7 @@ export declare const clientsContract: {
14178
14356
  status: number;
14179
14357
  errors: string[];
14180
14358
  }>;
14181
- 400: import("zod").ZodObject<{
14359
+ 404: import("zod").ZodObject<{
14182
14360
  status: import("zod").ZodNumber;
14183
14361
  message: import("zod").ZodString;
14184
14362
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14206,17 +14384,26 @@ export declare const clientsContract: {
14206
14384
  }>;
14207
14385
  };
14208
14386
  };
14209
- patchTradeStatus: {
14210
- method: "PATCH";
14387
+ putAttachSubdoc: {
14388
+ method: "PUT";
14211
14389
  metadata: {
14212
14390
  auth: boolean;
14213
14391
  };
14214
14392
  body: import("zod").ZodObject<{
14215
- tradeStatus: import("zod").ZodNativeEnum<typeof import("../..").TradeStatus>;
14393
+ lineItemId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14394
+ fileId: import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>>;
14395
+ primarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14396
+ secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14216
14397
  }, "strip", import("zod").ZodTypeAny, {
14217
- tradeStatus: import("../..").TradeStatus;
14398
+ fileId?: string | undefined;
14399
+ lineItemId?: string | undefined;
14400
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14401
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14218
14402
  }, {
14219
- tradeStatus: import("../..").TradeStatus;
14403
+ fileId?: string | undefined;
14404
+ lineItemId?: string | undefined;
14405
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14406
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14220
14407
  }>;
14221
14408
  pathParams: import("zod").ZodObject<{
14222
14409
  id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
@@ -14225,10 +14412,32 @@ export declare const clientsContract: {
14225
14412
  }, {
14226
14413
  id: string;
14227
14414
  }>;
14228
- summary: "Patch a trade status";
14229
- path: "/clients/api/v1/trades/:id";
14415
+ summary: "Update attached subdoc for trade";
14416
+ path: "/clients/api/v1/trades/:id/attach-subdoc";
14230
14417
  responses: {
14231
- 201: any;
14418
+ 200: import("zod").ZodObject<{
14419
+ success: import("zod").ZodBoolean;
14420
+ message: import("zod").ZodString;
14421
+ }, "strip", import("zod").ZodTypeAny, {
14422
+ message: string;
14423
+ success: boolean;
14424
+ }, {
14425
+ message: string;
14426
+ success: boolean;
14427
+ }>;
14428
+ 400: import("zod").ZodObject<{
14429
+ status: import("zod").ZodNumber;
14430
+ message: import("zod").ZodString;
14431
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14432
+ }, "strip", import("zod").ZodTypeAny, {
14433
+ message: string;
14434
+ status: number;
14435
+ errors: string[];
14436
+ }, {
14437
+ message: string;
14438
+ status: number;
14439
+ errors: string[];
14440
+ }>;
14232
14441
  401: import("zod").ZodObject<{
14233
14442
  status: import("zod").ZodNumber;
14234
14443
  message: import("zod").ZodString;
@@ -14255,7 +14464,7 @@ export declare const clientsContract: {
14255
14464
  status: number;
14256
14465
  errors: string[];
14257
14466
  }>;
14258
- 400: import("zod").ZodObject<{
14467
+ 404: import("zod").ZodObject<{
14259
14468
  status: import("zod").ZodNumber;
14260
14469
  message: import("zod").ZodString;
14261
14470
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14283,25 +14492,22 @@ export declare const clientsContract: {
14283
14492
  }>;
14284
14493
  };
14285
14494
  };
14286
- postAttachSubdoc: {
14287
- method: "POST";
14495
+ patchSubdocSign: {
14496
+ method: "PATCH";
14288
14497
  metadata: {
14289
14498
  auth: boolean;
14290
14499
  };
14291
14500
  body: import("zod").ZodObject<{
14292
- lineItemId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
14293
- fileId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14294
- primarySignatureStatus: import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>;
14501
+ lineItemId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14502
+ primarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14295
14503
  secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14296
14504
  }, "strip", import("zod").ZodTypeAny, {
14297
- fileId: string;
14298
- lineItemId: string;
14299
- primarySignatureStatus: import("../..").SignatureStatus;
14505
+ lineItemId?: string | undefined;
14506
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14300
14507
  secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14301
14508
  }, {
14302
- fileId: string;
14303
- lineItemId: string;
14304
- primarySignatureStatus: import("../..").SignatureStatus;
14509
+ lineItemId?: string | undefined;
14510
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14305
14511
  secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14306
14512
  }>;
14307
14513
  pathParams: import("zod").ZodObject<{
@@ -14311,8 +14517,8 @@ export declare const clientsContract: {
14311
14517
  }, {
14312
14518
  id: string;
14313
14519
  }>;
14314
- summary: "Attach subdoc to trade";
14315
- path: "/clients/api/v1/trades/:id/attach-subdoc";
14520
+ summary: "Update subdoc signature statuses for trade";
14521
+ path: "/clients/api/v1/trades/:id/sign";
14316
14522
  responses: {
14317
14523
  200: import("zod").ZodObject<{
14318
14524
  success: import("zod").ZodBoolean;
@@ -14350,7 +14556,95 @@ export declare const clientsContract: {
14350
14556
  status: number;
14351
14557
  errors: string[];
14352
14558
  }>;
14353
- 403: import("zod").ZodObject<{
14559
+ 403: import("zod").ZodObject<{
14560
+ status: import("zod").ZodNumber;
14561
+ message: import("zod").ZodString;
14562
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14563
+ }, "strip", import("zod").ZodTypeAny, {
14564
+ message: string;
14565
+ status: number;
14566
+ errors: string[];
14567
+ }, {
14568
+ message: string;
14569
+ status: number;
14570
+ errors: string[];
14571
+ }>;
14572
+ 404: import("zod").ZodObject<{
14573
+ status: import("zod").ZodNumber;
14574
+ message: import("zod").ZodString;
14575
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14576
+ }, "strip", import("zod").ZodTypeAny, {
14577
+ message: string;
14578
+ status: number;
14579
+ errors: string[];
14580
+ }, {
14581
+ message: string;
14582
+ status: number;
14583
+ errors: string[];
14584
+ }>;
14585
+ 500: import("zod").ZodObject<{
14586
+ status: import("zod").ZodNumber;
14587
+ message: import("zod").ZodString;
14588
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14589
+ }, "strip", import("zod").ZodTypeAny, {
14590
+ message: string;
14591
+ status: number;
14592
+ errors: string[];
14593
+ }, {
14594
+ message: string;
14595
+ status: number;
14596
+ errors: string[];
14597
+ }>;
14598
+ };
14599
+ };
14600
+ };
14601
+ transactions: {
14602
+ postTransaction: {
14603
+ method: "POST";
14604
+ metadata: {
14605
+ auth: boolean;
14606
+ };
14607
+ body: import("zod").ZodObject<{
14608
+ tid: import("zod").ZodString;
14609
+ tradeId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14610
+ name: import("zod").ZodString;
14611
+ chargedAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>;
14612
+ amount: import("zod").ZodEffects<import("zod").ZodNumber, number, number>;
14613
+ } & {
14614
+ userId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14615
+ }, "strip", import("zod").ZodTypeAny, {
14616
+ name: string;
14617
+ tid: string;
14618
+ userId: string;
14619
+ amount: number;
14620
+ tradeId: string;
14621
+ chargedAt: Date | null;
14622
+ }, {
14623
+ name: string;
14624
+ tid: string;
14625
+ userId: string;
14626
+ amount: number;
14627
+ tradeId: string;
14628
+ chargedAt: string | null;
14629
+ }>;
14630
+ summary: "Create a transaction";
14631
+ path: "/clients/api/v1/transactions";
14632
+ responses: {
14633
+ 201: any;
14634
+ 400: import("zod").ZodObject<{
14635
+ status: import("zod").ZodNumber;
14636
+ message: import("zod").ZodString;
14637
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14638
+ }, "strip", import("zod").ZodTypeAny, {
14639
+ message: string;
14640
+ status: number;
14641
+ errors: string[];
14642
+ }, {
14643
+ message: string;
14644
+ status: number;
14645
+ errors: string[];
14646
+ }>;
14647
+ 401: import("zod").ZodObject<{
14354
14648
  status: import("zod").ZodNumber;
14355
14649
  message: import("zod").ZodString;
14356
14650
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14391,46 +14685,39 @@ export declare const clientsContract: {
14391
14685
  }>;
14392
14686
  };
14393
14687
  };
14394
- putAttachSubdoc: {
14395
- method: "PUT";
14688
+ };
14689
+ webhooks: {
14690
+ subscribe: {
14691
+ description: "Creates a new webhook subscription for the specified event types. Used by Zapier REST Hook.";
14692
+ method: "POST";
14396
14693
  metadata: {
14397
14694
  auth: boolean;
14398
14695
  };
14399
14696
  body: import("zod").ZodObject<{
14400
- lineItemId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14401
- fileId: import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>>;
14402
- primarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14403
- secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14404
- }, "strip", import("zod").ZodTypeAny, {
14405
- fileId?: string | undefined;
14406
- lineItemId?: string | undefined;
14407
- primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14408
- secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14409
- }, {
14410
- fileId?: string | undefined;
14411
- lineItemId?: string | undefined;
14412
- primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14413
- secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14414
- }>;
14415
- pathParams: import("zod").ZodObject<{
14416
- id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
14697
+ targetUrl: import("zod").ZodString;
14698
+ eventTypes: import("zod").ZodArray<import("zod").ZodString, "many">;
14699
+ name: import("zod").ZodOptional<import("zod").ZodString>;
14417
14700
  }, "strip", import("zod").ZodTypeAny, {
14418
- id: string;
14701
+ targetUrl: string;
14702
+ eventTypes: string[];
14703
+ name?: string | undefined;
14419
14704
  }, {
14420
- id: string;
14705
+ targetUrl: string;
14706
+ eventTypes: string[];
14707
+ name?: string | undefined;
14421
14708
  }>;
14422
- summary: "Update attached subdoc for trade";
14423
- path: "/clients/api/v1/trades/:id/attach-subdoc";
14709
+ summary: "Subscribe to webhook events";
14710
+ path: "/clients/api/v1/webhooks/subscribe";
14424
14711
  responses: {
14425
- 200: import("zod").ZodObject<{
14426
- success: import("zod").ZodBoolean;
14427
- message: import("zod").ZodString;
14712
+ 201: import("zod").ZodObject<{
14713
+ id: import("zod").ZodString;
14714
+ hook0SubscriptionId: import("zod").ZodNullable<import("zod").ZodString>;
14428
14715
  }, "strip", import("zod").ZodTypeAny, {
14429
- message: string;
14430
- success: boolean;
14716
+ id: string;
14717
+ hook0SubscriptionId: string | null;
14431
14718
  }, {
14432
- message: string;
14433
- success: boolean;
14719
+ id: string;
14720
+ hook0SubscriptionId: string | null;
14434
14721
  }>;
14435
14722
  400: import("zod").ZodObject<{
14436
14723
  status: import("zod").ZodNumber;
@@ -14471,7 +14758,27 @@ export declare const clientsContract: {
14471
14758
  status: number;
14472
14759
  errors: string[];
14473
14760
  }>;
14474
- 404: import("zod").ZodObject<{
14761
+ };
14762
+ };
14763
+ unsubscribe: {
14764
+ description: "Deletes a webhook subscription by ID. Used by Zapier REST Hook.";
14765
+ method: "DELETE";
14766
+ metadata: {
14767
+ auth: boolean;
14768
+ };
14769
+ body: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
14770
+ pathParams: import("zod").ZodObject<{
14771
+ id: import("zod").ZodString;
14772
+ }, "strip", import("zod").ZodTypeAny, {
14773
+ id: string;
14774
+ }, {
14775
+ id: string;
14776
+ }>;
14777
+ summary: "Unsubscribe from webhook";
14778
+ path: "/clients/api/v1/webhooks/:id";
14779
+ responses: {
14780
+ 204: import("zod").ZodUndefined;
14781
+ 401: import("zod").ZodObject<{
14475
14782
  status: import("zod").ZodNumber;
14476
14783
  message: import("zod").ZodString;
14477
14784
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14484,7 +14791,20 @@ export declare const clientsContract: {
14484
14791
  status: number;
14485
14792
  errors: string[];
14486
14793
  }>;
14487
- 500: import("zod").ZodObject<{
14794
+ 403: import("zod").ZodObject<{
14795
+ status: import("zod").ZodNumber;
14796
+ message: import("zod").ZodString;
14797
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14798
+ }, "strip", import("zod").ZodTypeAny, {
14799
+ message: string;
14800
+ status: number;
14801
+ errors: string[];
14802
+ }, {
14803
+ message: string;
14804
+ status: number;
14805
+ errors: string[];
14806
+ }>;
14807
+ 404: import("zod").ZodObject<{
14488
14808
  status: import("zod").ZodNumber;
14489
14809
  message: import("zod").ZodString;
14490
14810
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14499,56 +14819,104 @@ export declare const clientsContract: {
14499
14819
  }>;
14500
14820
  };
14501
14821
  };
14502
- patchSubdocSign: {
14503
- method: "PATCH";
14822
+ list: {
14823
+ description: "Returns a paginated list of webhook subscriptions.";
14824
+ method: "GET";
14504
14825
  metadata: {
14505
14826
  auth: boolean;
14506
14827
  };
14507
- body: import("zod").ZodObject<{
14508
- lineItemId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14509
- primarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14510
- secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14511
- }, "strip", import("zod").ZodTypeAny, {
14512
- lineItemId?: string | undefined;
14513
- primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14514
- secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14515
- }, {
14516
- lineItemId?: string | undefined;
14517
- primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14518
- secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14519
- }>;
14520
- pathParams: import("zod").ZodObject<{
14521
- id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
14828
+ query: import("zod").ZodObject<{
14829
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
14830
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
14522
14831
  }, "strip", import("zod").ZodTypeAny, {
14523
- id: string;
14832
+ page: number;
14833
+ limit: number;
14524
14834
  }, {
14525
- id: string;
14835
+ page?: number | undefined;
14836
+ limit?: number | undefined;
14526
14837
  }>;
14527
- summary: "Update subdoc signature statuses for trade";
14528
- path: "/clients/api/v1/trades/:id/sign";
14838
+ summary: "List webhook subscriptions";
14839
+ path: "/clients/api/v1/webhooks";
14529
14840
  responses: {
14530
14841
  200: import("zod").ZodObject<{
14531
- success: import("zod").ZodBoolean;
14532
- message: import("zod").ZodString;
14533
- }, "strip", import("zod").ZodTypeAny, {
14534
- message: string;
14535
- success: boolean;
14536
- }, {
14537
- message: string;
14538
- success: boolean;
14539
- }>;
14540
- 400: import("zod").ZodObject<{
14541
- status: import("zod").ZodNumber;
14542
- message: import("zod").ZodString;
14543
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14842
+ items: import("zod").ZodArray<import("zod").ZodObject<{
14843
+ id: import("zod").ZodString;
14844
+ targetUrl: import("zod").ZodString;
14845
+ eventTypes: import("zod").ZodArray<import("zod").ZodString, "many">;
14846
+ name: import("zod").ZodNullable<import("zod").ZodString>;
14847
+ enabled: import("zod").ZodBoolean;
14848
+ createdAt: import("zod").ZodString;
14849
+ updatedAt: import("zod").ZodString;
14850
+ }, "strip", import("zod").ZodTypeAny, {
14851
+ id: string;
14852
+ createdAt: string;
14853
+ updatedAt: string;
14854
+ name: string | null;
14855
+ enabled: boolean;
14856
+ targetUrl: string;
14857
+ eventTypes: string[];
14858
+ }, {
14859
+ id: string;
14860
+ createdAt: string;
14861
+ updatedAt: string;
14862
+ name: string | null;
14863
+ enabled: boolean;
14864
+ targetUrl: string;
14865
+ eventTypes: string[];
14866
+ }>, "many">;
14867
+ meta: import("zod").ZodObject<{
14868
+ itemCount: import("zod").ZodNumber;
14869
+ totalItems: import("zod").ZodOptional<import("zod").ZodNumber>;
14870
+ itemsPerPage: import("zod").ZodNumber;
14871
+ totalPages: import("zod").ZodOptional<import("zod").ZodNumber>;
14872
+ currentPage: import("zod").ZodNumber;
14873
+ }, "strip", import("zod").ZodTypeAny, {
14874
+ itemCount: number;
14875
+ itemsPerPage: number;
14876
+ currentPage: number;
14877
+ totalItems?: number | undefined;
14878
+ totalPages?: number | undefined;
14879
+ }, {
14880
+ itemCount: number;
14881
+ itemsPerPage: number;
14882
+ currentPage: number;
14883
+ totalItems?: number | undefined;
14884
+ totalPages?: number | undefined;
14885
+ }>;
14544
14886
  }, "strip", import("zod").ZodTypeAny, {
14545
- message: string;
14546
- status: number;
14547
- errors: string[];
14887
+ items: {
14888
+ id: string;
14889
+ createdAt: string;
14890
+ updatedAt: string;
14891
+ name: string | null;
14892
+ enabled: boolean;
14893
+ targetUrl: string;
14894
+ eventTypes: string[];
14895
+ }[];
14896
+ meta: {
14897
+ itemCount: number;
14898
+ itemsPerPage: number;
14899
+ currentPage: number;
14900
+ totalItems?: number | undefined;
14901
+ totalPages?: number | undefined;
14902
+ };
14548
14903
  }, {
14549
- message: string;
14550
- status: number;
14551
- errors: string[];
14904
+ items: {
14905
+ id: string;
14906
+ createdAt: string;
14907
+ updatedAt: string;
14908
+ name: string | null;
14909
+ enabled: boolean;
14910
+ targetUrl: string;
14911
+ eventTypes: string[];
14912
+ }[];
14913
+ meta: {
14914
+ itemCount: number;
14915
+ itemsPerPage: number;
14916
+ currentPage: number;
14917
+ totalItems?: number | undefined;
14918
+ totalPages?: number | undefined;
14919
+ };
14552
14920
  }>;
14553
14921
  401: import("zod").ZodObject<{
14554
14922
  status: import("zod").ZodNumber;
@@ -14576,7 +14944,34 @@ export declare const clientsContract: {
14576
14944
  status: number;
14577
14945
  errors: string[];
14578
14946
  }>;
14579
- 404: import("zod").ZodObject<{
14947
+ };
14948
+ };
14949
+ triggerTypes: {
14950
+ description: "Returns a list of event types that can be subscribed to for triggers.";
14951
+ method: "GET";
14952
+ metadata: {
14953
+ auth: boolean;
14954
+ };
14955
+ summary: "Get available trigger types";
14956
+ path: "/clients/api/v1/webhooks/trigger-types";
14957
+ responses: {
14958
+ 200: import("zod").ZodArray<import("zod").ZodObject<{
14959
+ eventType: import("zod").ZodString;
14960
+ displayName: import("zod").ZodString;
14961
+ description: import("zod").ZodString;
14962
+ source: import("zod").ZodEnum<["api", "external", "both"]>;
14963
+ }, "strip", import("zod").ZodTypeAny, {
14964
+ description: string;
14965
+ source: "api" | "external" | "both";
14966
+ eventType: string;
14967
+ displayName: string;
14968
+ }, {
14969
+ description: string;
14970
+ source: "api" | "external" | "both";
14971
+ eventType: string;
14972
+ displayName: string;
14973
+ }>, "many">;
14974
+ 401: import("zod").ZodObject<{
14580
14975
  status: import("zod").ZodNumber;
14581
14976
  message: import("zod").ZodString;
14582
14977
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14589,7 +14984,7 @@ export declare const clientsContract: {
14589
14984
  status: number;
14590
14985
  errors: string[];
14591
14986
  }>;
14592
- 500: import("zod").ZodObject<{
14987
+ 403: import("zod").ZodObject<{
14593
14988
  status: import("zod").ZodNumber;
14594
14989
  message: import("zod").ZodString;
14595
14990
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14604,41 +14999,38 @@ export declare const clientsContract: {
14604
14999
  }>;
14605
15000
  };
14606
15001
  };
14607
- };
14608
- transactions: {
14609
- postTransaction: {
14610
- method: "POST";
15002
+ actionTypes: {
15003
+ description: "Returns a list of API endpoints available as Zapier actions.";
15004
+ method: "GET";
14611
15005
  metadata: {
14612
15006
  auth: boolean;
14613
15007
  };
14614
- body: import("zod").ZodObject<{
14615
- tid: import("zod").ZodString;
14616
- tradeId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14617
- name: import("zod").ZodString;
14618
- chargedAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>;
14619
- amount: import("zod").ZodEffects<import("zod").ZodNumber, number, number>;
14620
- } & {
14621
- userId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14622
- }, "strip", import("zod").ZodTypeAny, {
14623
- name: string;
14624
- tid: string;
14625
- userId: string;
14626
- amount: number;
14627
- tradeId: string;
14628
- chargedAt: Date | null;
14629
- }, {
14630
- name: string;
14631
- tid: string;
14632
- userId: string;
14633
- amount: number;
14634
- tradeId: string;
14635
- chargedAt: string | null;
14636
- }>;
14637
- summary: "Create a transaction";
14638
- path: "/clients/api/v1/transactions";
15008
+ summary: "Get available action types";
15009
+ path: "/clients/api/v1/webhooks/action-types";
14639
15010
  responses: {
14640
- 201: any;
14641
- 400: import("zod").ZodObject<{
15011
+ 200: import("zod").ZodArray<import("zod").ZodObject<{
15012
+ key: import("zod").ZodString;
15013
+ displayName: import("zod").ZodString;
15014
+ description: import("zod").ZodString;
15015
+ method: import("zod").ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
15016
+ endpoint: import("zod").ZodString;
15017
+ noun: import("zod").ZodString;
15018
+ }, "strip", import("zod").ZodTypeAny, {
15019
+ key: string;
15020
+ description: string;
15021
+ endpoint: string;
15022
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
15023
+ displayName: string;
15024
+ noun: string;
15025
+ }, {
15026
+ key: string;
15027
+ description: string;
15028
+ endpoint: string;
15029
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
15030
+ displayName: string;
15031
+ noun: string;
15032
+ }>, "many">;
15033
+ 401: import("zod").ZodObject<{
14642
15034
  status: import("zod").ZodNumber;
14643
15035
  message: import("zod").ZodString;
14644
15036
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14651,7 +15043,7 @@ export declare const clientsContract: {
14651
15043
  status: number;
14652
15044
  errors: string[];
14653
15045
  }>;
14654
- 401: import("zod").ZodObject<{
15046
+ 403: import("zod").ZodObject<{
14655
15047
  status: import("zod").ZodNumber;
14656
15048
  message: import("zod").ZodString;
14657
15049
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14664,7 +15056,33 @@ export declare const clientsContract: {
14664
15056
  status: number;
14665
15057
  errors: string[];
14666
15058
  }>;
14667
- 404: import("zod").ZodObject<{
15059
+ };
15060
+ };
15061
+ performList: {
15062
+ description: "Returns recent events for a specific event type. Used as a polling fallback by Zapier.";
15063
+ method: "GET";
15064
+ metadata: {
15065
+ auth: boolean;
15066
+ };
15067
+ pathParams: import("zod").ZodObject<{
15068
+ eventType: import("zod").ZodString;
15069
+ }, "strip", import("zod").ZodTypeAny, {
15070
+ eventType: string;
15071
+ }, {
15072
+ eventType: string;
15073
+ }>;
15074
+ query: import("zod").ZodObject<{
15075
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
15076
+ }, "strip", import("zod").ZodTypeAny, {
15077
+ limit: number;
15078
+ }, {
15079
+ limit?: number | undefined;
15080
+ }>;
15081
+ summary: "Perform list for event type";
15082
+ path: "/clients/api/v1/webhooks/perform/:eventType";
15083
+ responses: {
15084
+ 200: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">;
15085
+ 401: import("zod").ZodObject<{
14668
15086
  status: import("zod").ZodNumber;
14669
15087
  message: import("zod").ZodString;
14670
15088
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14677,7 +15095,7 @@ export declare const clientsContract: {
14677
15095
  status: number;
14678
15096
  errors: string[];
14679
15097
  }>;
14680
- 500: import("zod").ZodObject<{
15098
+ 403: import("zod").ZodObject<{
14681
15099
  status: import("zod").ZodNumber;
14682
15100
  message: import("zod").ZodString;
14683
15101
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;