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

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 (80) 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/helpers/index.d.ts +19 -0
  5. package/common/helpers/index.js +28 -0
  6. package/common/helpers/index.js.map +1 -1
  7. package/common/types/account.types.js +3 -3
  8. package/common/types/account.types.js.map +1 -1
  9. package/common/types/attribution.types.d.ts +582 -0
  10. package/common/types/attribution.types.js +126 -0
  11. package/common/types/attribution.types.js.map +1 -0
  12. package/common/types/cap-table.types.d.ts +63 -0
  13. package/common/types/cap-table.types.js +21 -0
  14. package/common/types/cap-table.types.js.map +1 -1
  15. package/common/types/cart.types.d.ts +3 -0
  16. package/common/types/cart.types.js +1 -0
  17. package/common/types/cart.types.js.map +1 -1
  18. package/common/types/common.types.d.ts +12 -3
  19. package/common/types/common.types.js +12 -3
  20. package/common/types/common.types.js.map +1 -1
  21. package/common/types/comply-advantage-api.types.d.ts +12 -12
  22. package/common/types/csv.types.d.ts +1844 -149
  23. package/common/types/csv.types.js +107 -33
  24. package/common/types/csv.types.js.map +1 -1
  25. package/common/types/disbursements.types.d.ts +14 -14
  26. package/common/types/disbursements.types.js +1 -1
  27. package/common/types/disbursements.types.js.map +1 -1
  28. package/common/types/index.d.ts +1 -2
  29. package/common/types/index.js +1 -2
  30. package/common/types/index.js.map +1 -1
  31. package/common/types/individuals.types.d.ts +188 -0
  32. package/common/types/investor-account.types.js +2 -0
  33. package/common/types/investor-account.types.js.map +1 -1
  34. package/common/types/invite.types.d.ts +3 -0
  35. package/common/types/invite.types.js +1 -0
  36. package/common/types/invite.types.js.map +1 -1
  37. package/common/types/issuer-offering.types.js +2 -2
  38. package/common/types/issuer-offering.types.js.map +1 -1
  39. package/common/types/mail-template.types.d.ts +4 -4
  40. package/common/types/notification.types.d.ts +1 -0
  41. package/common/types/notification.types.js +3 -0
  42. package/common/types/notification.types.js.map +1 -1
  43. package/common/types/offering-submission.types.js +1 -1
  44. package/common/types/offering.types.d.ts +6 -6
  45. package/common/types/offering.types.js +4 -1
  46. package/common/types/offering.types.js.map +1 -1
  47. package/common/types/payment-methods.types.d.ts +365 -0
  48. package/common/types/payment-methods.types.js +121 -0
  49. package/common/types/payment-methods.types.js.map +1 -1
  50. package/common/types/reports.types.d.ts +12 -12
  51. package/common/types/state-machine.types.d.ts +3 -3
  52. package/common/types/state-machine.types.js +1 -1
  53. package/common/types/state-machine.types.js.map +1 -1
  54. package/common/types/task.types.d.ts +8 -0
  55. package/common/types/task.types.js +3 -0
  56. package/common/types/task.types.js.map +1 -1
  57. package/common/types/trade.types.d.ts +10 -14
  58. package/common/types/trade.types.js +2 -7
  59. package/common/types/trade.types.js.map +1 -1
  60. package/common/types/transaction.types.d.ts +24 -1
  61. package/common/types/transaction.types.js +26 -0
  62. package/common/types/transaction.types.js.map +1 -1
  63. package/common/types/user.types.d.ts +3 -0
  64. package/common/types/user.types.js +4 -0
  65. package/common/types/user.types.js.map +1 -1
  66. package/common/types/zapier.types.d.ts +126 -0
  67. package/common/types/zapier.types.js +247 -0
  68. package/common/types/zapier.types.js.map +1 -0
  69. package/contracts/clients/cart/index.d.ts +3 -0
  70. package/contracts/clients/csv/index.d.ts +188 -7
  71. package/contracts/clients/csv/index.js +1 -2
  72. package/contracts/clients/csv/index.js.map +1 -1
  73. package/contracts/clients/index.d.ts +1726 -741
  74. package/contracts/clients/index.js +4 -2
  75. package/contracts/clients/index.js.map +1 -1
  76. package/contracts/clients/individuals/index.d.ts +376 -0
  77. package/contracts/clients/webhooks/index.d.ts +506 -0
  78. package/contracts/clients/webhooks/index.js +118 -0
  79. package/contracts/clients/webhooks/index.js.map +1 -0
  80. 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: {
@@ -951,92 +729,18 @@ export declare const clientsContract: {
951
729
  totalPages?: number | undefined;
952
730
  };
953
731
  }>;
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>;
1012
- }, "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;
1026
- }, {
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;
732
+ 400: import("zod").ZodObject<{
733
+ status: import("zod").ZodNumber;
734
+ message: import("zod").ZodString;
735
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
736
+ }, "strip", import("zod").ZodTypeAny, {
737
+ message: string;
738
+ status: number;
739
+ errors: string[];
740
+ }, {
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,7 +1002,20 @@ 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">;
@@ -1351,6 +1028,67 @@ export declare const clientsContract: {
1351
1028
  status: number;
1352
1029
  errors: string[];
1353
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;
1077
+ }, {
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;
1091
+ }>;
1354
1092
  401: import("zod").ZodObject<{
1355
1093
  status: import("zod").ZodNumber;
1356
1094
  message: import("zod").ZodString;
@@ -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">;
@@ -2392,75 +2156,211 @@ export declare const clientsContract: {
2392
2156
  enableBonus: import("zod").ZodBoolean;
2393
2157
  interestRate: import("zod").ZodNullable<import("zod").ZodNumber>;
2394
2158
  }, "strip", import("zod").ZodTypeAny, {
2395
- type: import("../..").AssetType | null;
2396
- id: string;
2397
- createdAt: string | Date;
2398
- updatedAt: string | Date;
2399
- deletedAt: string | Date | null;
2400
- accountId: string;
2401
- name: string;
2402
- offeringId: string;
2403
- template: import("../../common/types/asset.types").AssetTemplateType;
2404
- totalAmount: number | null;
2405
- pricePerUnit: number | null;
2406
- totalUnits: number | null;
2407
- yield: number | null;
2408
- duration: number | null;
2409
- durationType: import("../..").DurationType | null;
2410
- tiers: number[] | null;
2411
- enableBonus: boolean;
2412
- interestRate: number | null;
2413
- __entity?: string | undefined;
2414
- account?: {
2415
- status: import("../..").AccountStatus;
2416
- id: string;
2417
- createdAt: string | Date;
2418
- updatedAt: string | Date;
2419
- deletedAt: string | Date | null;
2420
- name: string;
2421
- managedBy: import("../..").ManagedByType | null;
2422
- platform: import("../..").Platform;
2423
- onboardingReviewerId: string | null;
2424
- onboardingReviewAt: Date | null;
2425
- allowPendingComplianceReview: boolean;
2426
- __entity?: string | undefined;
2427
- } | null | undefined;
2428
- offering?: any;
2159
+ type: import("../..").AssetType | null;
2160
+ id: string;
2161
+ createdAt: string | Date;
2162
+ updatedAt: string | Date;
2163
+ deletedAt: string | Date | null;
2164
+ accountId: string;
2165
+ name: string;
2166
+ offeringId: string;
2167
+ template: import("../../common/types/asset.types").AssetTemplateType;
2168
+ totalAmount: number | null;
2169
+ pricePerUnit: number | null;
2170
+ totalUnits: number | null;
2171
+ yield: number | null;
2172
+ duration: number | null;
2173
+ durationType: import("../..").DurationType | null;
2174
+ tiers: number[] | null;
2175
+ enableBonus: boolean;
2176
+ interestRate: number | null;
2177
+ __entity?: string | undefined;
2178
+ account?: {
2179
+ status: import("../..").AccountStatus;
2180
+ id: string;
2181
+ createdAt: string | Date;
2182
+ updatedAt: string | Date;
2183
+ deletedAt: string | Date | null;
2184
+ name: string;
2185
+ managedBy: import("../..").ManagedByType | null;
2186
+ platform: import("../..").Platform;
2187
+ onboardingReviewerId: string | null;
2188
+ onboardingReviewAt: Date | null;
2189
+ allowPendingComplianceReview: boolean;
2190
+ __entity?: string | undefined;
2191
+ } | null | undefined;
2192
+ offering?: any;
2193
+ }, {
2194
+ type: import("../..").AssetType | null;
2195
+ id: string;
2196
+ createdAt: string | Date;
2197
+ updatedAt: string | Date;
2198
+ deletedAt: string | Date | null;
2199
+ accountId: string;
2200
+ name: string;
2201
+ offeringId: string;
2202
+ template: import("../../common/types/asset.types").AssetTemplateType;
2203
+ totalAmount: number | null;
2204
+ pricePerUnit: number | null;
2205
+ totalUnits: number | null;
2206
+ yield: number | null;
2207
+ duration: number | null;
2208
+ durationType: import("../..").DurationType | null;
2209
+ tiers: number[] | null;
2210
+ enableBonus: boolean;
2211
+ interestRate: number | null;
2212
+ __entity?: string | undefined;
2213
+ account?: {
2214
+ status: import("../..").AccountStatus;
2215
+ id: string;
2216
+ createdAt: string | Date;
2217
+ updatedAt: string | Date;
2218
+ deletedAt: string | Date | null;
2219
+ name: string;
2220
+ managedBy: import("../..").ManagedByType | null;
2221
+ platform: import("../..").Platform;
2222
+ onboardingReviewerId: string | null;
2223
+ onboardingReviewAt: Date | null;
2224
+ allowPendingComplianceReview: boolean;
2225
+ __entity?: string | undefined;
2226
+ } | null | undefined;
2227
+ offering?: any;
2228
+ }>;
2229
+ 400: import("zod").ZodObject<{
2230
+ status: import("zod").ZodNumber;
2231
+ message: import("zod").ZodString;
2232
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2233
+ }, "strip", import("zod").ZodTypeAny, {
2234
+ message: string;
2235
+ status: number;
2236
+ errors: string[];
2237
+ }, {
2238
+ message: string;
2239
+ status: number;
2240
+ errors: string[];
2241
+ }>;
2242
+ 401: import("zod").ZodObject<{
2243
+ status: import("zod").ZodNumber;
2244
+ message: import("zod").ZodString;
2245
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2246
+ }, "strip", import("zod").ZodTypeAny, {
2247
+ message: string;
2248
+ status: number;
2249
+ errors: string[];
2250
+ }, {
2251
+ message: string;
2252
+ status: number;
2253
+ errors: string[];
2254
+ }>;
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;
2429
2362
  }, {
2430
- type: import("../..").AssetType | null;
2431
- id: string;
2432
- createdAt: string | Date;
2433
- updatedAt: string | Date;
2434
- deletedAt: string | Date | null;
2435
- accountId: string;
2436
- name: string;
2437
- offeringId: string;
2438
- template: import("../../common/types/asset.types").AssetTemplateType;
2439
- totalAmount: number | null;
2440
- pricePerUnit: number | null;
2441
- totalUnits: number | null;
2442
- yield: number | null;
2443
- duration: number | null;
2444
- durationType: import("../..").DurationType | null;
2445
- tiers: number[] | null;
2446
- enableBonus: boolean;
2447
- interestRate: number | null;
2448
- __entity?: string | undefined;
2449
- account?: {
2450
- status: import("../..").AccountStatus;
2451
- id: string;
2452
- createdAt: string | Date;
2453
- updatedAt: string | Date;
2454
- deletedAt: string | Date | null;
2455
- name: string;
2456
- managedBy: import("../..").ManagedByType | null;
2457
- platform: import("../..").Platform;
2458
- onboardingReviewerId: string | null;
2459
- onboardingReviewAt: Date | null;
2460
- allowPendingComplianceReview: boolean;
2461
- __entity?: string | undefined;
2462
- } | null | undefined;
2463
- offering?: any;
2363
+ userId: string;
2464
2364
  }>;
2465
2365
  400: import("zod").ZodObject<{
2466
2366
  status: import("zod").ZodNumber;
@@ -2488,7 +2388,7 @@ export declare const clientsContract: {
2488
2388
  status: number;
2489
2389
  errors: string[];
2490
2390
  }>;
2491
- 403: import("zod").ZodObject<{
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">;
@@ -2618,10 +2618,13 @@ export declare const clientsContract: {
2618
2618
  responses: {
2619
2619
  200: import("zod").ZodObject<{
2620
2620
  tradeStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").TradeStatus>>;
2621
+ tradeId: import("zod").ZodOptional<import("zod").ZodString>;
2621
2622
  }, "strip", import("zod").ZodTypeAny, {
2622
2623
  tradeStatus?: import("../..").TradeStatus | undefined;
2624
+ tradeId?: string | undefined;
2623
2625
  }, {
2624
2626
  tradeStatus?: import("../..").TradeStatus | undefined;
2627
+ tradeId?: string | undefined;
2625
2628
  }>;
2626
2629
  400: import("zod").ZodObject<{
2627
2630
  status: import("zod").ZodNumber;
@@ -2767,13 +2770,6 @@ export declare const clientsContract: {
2767
2770
  body: import("@ts-rest/core").ContractPlainType<{
2768
2771
  file: File;
2769
2772
  }>;
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
2773
  summary: "Upload and process CSV file for investor account creation";
2778
2774
  contentType: "multipart/form-data";
2779
2775
  path: "/clients/api/v1/csv/investors";
@@ -3439,6 +3435,94 @@ export declare const clientsContract: {
3439
3435
  financial?: boolean | undefined;
3440
3436
  } | undefined;
3441
3437
  }>>>;
3438
+ trustedContacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodLazy<import("zod").ZodObject<{
3439
+ id: import("zod").ZodString;
3440
+ __entity: import("zod").ZodOptional<import("zod").ZodString>;
3441
+ createdAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
3442
+ updatedAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
3443
+ deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
3444
+ } & {
3445
+ firstName: import("zod").ZodNullable<import("zod").ZodString>;
3446
+ lastName: import("zod").ZodNullable<import("zod").ZodString>;
3447
+ email: import("zod").ZodNullable<import("zod").ZodString>;
3448
+ phone: import("zod").ZodNullable<import("zod").ZodObject<{
3449
+ countryCallingCode: import("zod").ZodString;
3450
+ country: import("zod").ZodString;
3451
+ nationalNumber: import("zod").ZodString;
3452
+ number: import("zod").ZodString;
3453
+ formatNational: import("zod").ZodString;
3454
+ formatInternational: import("zod").ZodString;
3455
+ }, "strip", import("zod").ZodTypeAny, {
3456
+ number: string;
3457
+ countryCallingCode: string;
3458
+ country: string;
3459
+ nationalNumber: string;
3460
+ formatNational: string;
3461
+ formatInternational: string;
3462
+ }, {
3463
+ number: string;
3464
+ countryCallingCode: string;
3465
+ country: string;
3466
+ nationalNumber: string;
3467
+ formatNational: string;
3468
+ formatInternational: string;
3469
+ }>>;
3470
+ address: import("zod").ZodNullable<import("zod").ZodString>;
3471
+ address2: import("zod").ZodNullable<import("zod").ZodString>;
3472
+ city: import("zod").ZodNullable<import("zod").ZodString>;
3473
+ state: import("zod").ZodNullable<import("zod").ZodString>;
3474
+ zip: import("zod").ZodNullable<import("zod").ZodString>;
3475
+ country: import("zod").ZodNullable<import("zod").ZodString>;
3476
+ relationship: import("zod").ZodNativeEnum<typeof import("../..").TrustedContactRelationship>;
3477
+ }, "strip", import("zod").ZodTypeAny, {
3478
+ id: string;
3479
+ createdAt: string | Date;
3480
+ updatedAt: string | Date;
3481
+ deletedAt: string | Date | null;
3482
+ country: string | null;
3483
+ firstName: string | null;
3484
+ lastName: string | null;
3485
+ email: string | null;
3486
+ phone: {
3487
+ number: string;
3488
+ countryCallingCode: string;
3489
+ country: string;
3490
+ nationalNumber: string;
3491
+ formatNational: string;
3492
+ formatInternational: string;
3493
+ } | null;
3494
+ state: string | null;
3495
+ address: string | null;
3496
+ city: string | null;
3497
+ zip: string | null;
3498
+ address2: string | null;
3499
+ relationship: import("../..").TrustedContactRelationship;
3500
+ __entity?: string | undefined;
3501
+ }, {
3502
+ id: string;
3503
+ createdAt: string | Date;
3504
+ updatedAt: string | Date;
3505
+ deletedAt: string | Date | null;
3506
+ country: string | null;
3507
+ firstName: string | null;
3508
+ lastName: string | null;
3509
+ email: string | null;
3510
+ phone: {
3511
+ number: string;
3512
+ countryCallingCode: string;
3513
+ country: string;
3514
+ nationalNumber: string;
3515
+ formatNational: string;
3516
+ formatInternational: string;
3517
+ } | null;
3518
+ state: string | null;
3519
+ address: string | null;
3520
+ city: string | null;
3521
+ zip: string | null;
3522
+ address2: string | null;
3523
+ relationship: import("../..").TrustedContactRelationship;
3524
+ __entity?: string | undefined;
3525
+ }>>, "many">>;
3442
3526
  }, "strip", import("zod").ZodTypeAny, {
3443
3527
  id: string;
3444
3528
  createdAt: string | Date;
@@ -3574,6 +3658,31 @@ export declare const clientsContract: {
3574
3658
  financial: boolean;
3575
3659
  } | undefined;
3576
3660
  } | undefined;
3661
+ trustedContacts?: {
3662
+ id: string;
3663
+ createdAt: string | Date;
3664
+ updatedAt: string | Date;
3665
+ deletedAt: string | Date | null;
3666
+ country: string | null;
3667
+ firstName: string | null;
3668
+ lastName: string | null;
3669
+ email: string | null;
3670
+ phone: {
3671
+ number: string;
3672
+ countryCallingCode: string;
3673
+ country: string;
3674
+ nationalNumber: string;
3675
+ formatNational: string;
3676
+ formatInternational: string;
3677
+ } | null;
3678
+ state: string | null;
3679
+ address: string | null;
3680
+ city: string | null;
3681
+ zip: string | null;
3682
+ address2: string | null;
3683
+ relationship: import("../..").TrustedContactRelationship;
3684
+ __entity?: string | undefined;
3685
+ }[] | undefined;
3577
3686
  }, {
3578
3687
  id: string;
3579
3688
  createdAt: string | Date;
@@ -3709,6 +3818,31 @@ export declare const clientsContract: {
3709
3818
  financial?: boolean | undefined;
3710
3819
  } | undefined;
3711
3820
  } | undefined;
3821
+ trustedContacts?: {
3822
+ id: string;
3823
+ createdAt: string | Date;
3824
+ updatedAt: string | Date;
3825
+ deletedAt: string | Date | null;
3826
+ country: string | null;
3827
+ firstName: string | null;
3828
+ lastName: string | null;
3829
+ email: string | null;
3830
+ phone: {
3831
+ number: string;
3832
+ countryCallingCode: string;
3833
+ country: string;
3834
+ nationalNumber: string;
3835
+ formatNational: string;
3836
+ formatInternational: string;
3837
+ } | null;
3838
+ state: string | null;
3839
+ address: string | null;
3840
+ city: string | null;
3841
+ zip: string | null;
3842
+ address2: string | null;
3843
+ relationship: import("../..").TrustedContactRelationship;
3844
+ __entity?: string | undefined;
3845
+ }[] | undefined;
3712
3846
  }>>>;
3713
3847
  role: import("zod").ZodNativeEnum<typeof import("../..").IndividualRole>;
3714
3848
  firstName: import("zod").ZodString;
@@ -3976,6 +4110,31 @@ export declare const clientsContract: {
3976
4110
  financial: boolean;
3977
4111
  } | undefined;
3978
4112
  } | undefined;
4113
+ trustedContacts?: {
4114
+ id: string;
4115
+ createdAt: string | Date;
4116
+ updatedAt: string | Date;
4117
+ deletedAt: string | Date | null;
4118
+ country: string | null;
4119
+ firstName: string | null;
4120
+ lastName: string | null;
4121
+ email: string | null;
4122
+ phone: {
4123
+ number: string;
4124
+ countryCallingCode: string;
4125
+ country: string;
4126
+ nationalNumber: string;
4127
+ formatNational: string;
4128
+ formatInternational: string;
4129
+ } | null;
4130
+ state: string | null;
4131
+ address: string | null;
4132
+ city: string | null;
4133
+ zip: string | null;
4134
+ address2: string | null;
4135
+ relationship: import("../..").TrustedContactRelationship;
4136
+ __entity?: string | undefined;
4137
+ }[] | undefined;
3979
4138
  } | undefined;
3980
4139
  }, {
3981
4140
  id: string;
@@ -4189,6 +4348,31 @@ export declare const clientsContract: {
4189
4348
  financial?: boolean | undefined;
4190
4349
  } | undefined;
4191
4350
  } | undefined;
4351
+ trustedContacts?: {
4352
+ id: string;
4353
+ createdAt: string | Date;
4354
+ updatedAt: string | Date;
4355
+ deletedAt: string | Date | null;
4356
+ country: string | null;
4357
+ firstName: string | null;
4358
+ lastName: string | null;
4359
+ email: string | null;
4360
+ phone: {
4361
+ number: string;
4362
+ countryCallingCode: string;
4363
+ country: string;
4364
+ nationalNumber: string;
4365
+ formatNational: string;
4366
+ formatInternational: string;
4367
+ } | null;
4368
+ state: string | null;
4369
+ address: string | null;
4370
+ city: string | null;
4371
+ zip: string | null;
4372
+ address2: string | null;
4373
+ relationship: import("../..").TrustedContactRelationship;
4374
+ __entity?: string | undefined;
4375
+ }[] | undefined;
4192
4376
  } | undefined;
4193
4377
  }>;
4194
4378
  400: import("zod").ZodObject<{
@@ -6403,6 +6587,94 @@ export declare const clientsContract: {
6403
6587
  financial?: boolean | undefined;
6404
6588
  } | undefined;
6405
6589
  }>>>;
6590
+ trustedContacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodLazy<import("zod").ZodObject<{
6591
+ id: import("zod").ZodString;
6592
+ __entity: import("zod").ZodOptional<import("zod").ZodString>;
6593
+ createdAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
6594
+ updatedAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
6595
+ deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
6596
+ } & {
6597
+ firstName: import("zod").ZodNullable<import("zod").ZodString>;
6598
+ lastName: import("zod").ZodNullable<import("zod").ZodString>;
6599
+ email: import("zod").ZodNullable<import("zod").ZodString>;
6600
+ phone: import("zod").ZodNullable<import("zod").ZodObject<{
6601
+ countryCallingCode: import("zod").ZodString;
6602
+ country: import("zod").ZodString;
6603
+ nationalNumber: import("zod").ZodString;
6604
+ number: import("zod").ZodString;
6605
+ formatNational: import("zod").ZodString;
6606
+ formatInternational: import("zod").ZodString;
6607
+ }, "strip", import("zod").ZodTypeAny, {
6608
+ number: string;
6609
+ countryCallingCode: string;
6610
+ country: string;
6611
+ nationalNumber: string;
6612
+ formatNational: string;
6613
+ formatInternational: string;
6614
+ }, {
6615
+ number: string;
6616
+ countryCallingCode: string;
6617
+ country: string;
6618
+ nationalNumber: string;
6619
+ formatNational: string;
6620
+ formatInternational: string;
6621
+ }>>;
6622
+ address: import("zod").ZodNullable<import("zod").ZodString>;
6623
+ address2: import("zod").ZodNullable<import("zod").ZodString>;
6624
+ city: import("zod").ZodNullable<import("zod").ZodString>;
6625
+ state: import("zod").ZodNullable<import("zod").ZodString>;
6626
+ zip: import("zod").ZodNullable<import("zod").ZodString>;
6627
+ country: import("zod").ZodNullable<import("zod").ZodString>;
6628
+ relationship: import("zod").ZodNativeEnum<typeof import("../..").TrustedContactRelationship>;
6629
+ }, "strip", import("zod").ZodTypeAny, {
6630
+ id: string;
6631
+ createdAt: string | Date;
6632
+ updatedAt: string | Date;
6633
+ deletedAt: string | Date | null;
6634
+ country: string | null;
6635
+ firstName: string | null;
6636
+ lastName: string | null;
6637
+ email: string | null;
6638
+ phone: {
6639
+ number: string;
6640
+ countryCallingCode: string;
6641
+ country: string;
6642
+ nationalNumber: string;
6643
+ formatNational: string;
6644
+ formatInternational: string;
6645
+ } | null;
6646
+ state: string | null;
6647
+ address: string | null;
6648
+ city: string | null;
6649
+ zip: string | null;
6650
+ address2: string | null;
6651
+ relationship: import("../..").TrustedContactRelationship;
6652
+ __entity?: string | undefined;
6653
+ }, {
6654
+ id: string;
6655
+ createdAt: string | Date;
6656
+ updatedAt: string | Date;
6657
+ deletedAt: string | Date | null;
6658
+ country: string | null;
6659
+ firstName: string | null;
6660
+ lastName: string | null;
6661
+ email: string | null;
6662
+ phone: {
6663
+ number: string;
6664
+ countryCallingCode: string;
6665
+ country: string;
6666
+ nationalNumber: string;
6667
+ formatNational: string;
6668
+ formatInternational: string;
6669
+ } | null;
6670
+ state: string | null;
6671
+ address: string | null;
6672
+ city: string | null;
6673
+ zip: string | null;
6674
+ address2: string | null;
6675
+ relationship: import("../..").TrustedContactRelationship;
6676
+ __entity?: string | undefined;
6677
+ }>>, "many">>;
6406
6678
  }, "strip", import("zod").ZodTypeAny, {
6407
6679
  id: string;
6408
6680
  createdAt: string | Date;
@@ -6538,6 +6810,31 @@ export declare const clientsContract: {
6538
6810
  financial: boolean;
6539
6811
  } | undefined;
6540
6812
  } | undefined;
6813
+ trustedContacts?: {
6814
+ id: string;
6815
+ createdAt: string | Date;
6816
+ updatedAt: string | Date;
6817
+ deletedAt: string | Date | null;
6818
+ country: string | null;
6819
+ firstName: string | null;
6820
+ lastName: string | null;
6821
+ email: string | null;
6822
+ phone: {
6823
+ number: string;
6824
+ countryCallingCode: string;
6825
+ country: string;
6826
+ nationalNumber: string;
6827
+ formatNational: string;
6828
+ formatInternational: string;
6829
+ } | null;
6830
+ state: string | null;
6831
+ address: string | null;
6832
+ city: string | null;
6833
+ zip: string | null;
6834
+ address2: string | null;
6835
+ relationship: import("../..").TrustedContactRelationship;
6836
+ __entity?: string | undefined;
6837
+ }[] | undefined;
6541
6838
  }, {
6542
6839
  id: string;
6543
6840
  createdAt: string | Date;
@@ -6673,6 +6970,31 @@ export declare const clientsContract: {
6673
6970
  financial?: boolean | undefined;
6674
6971
  } | undefined;
6675
6972
  } | undefined;
6973
+ trustedContacts?: {
6974
+ id: string;
6975
+ createdAt: string | Date;
6976
+ updatedAt: string | Date;
6977
+ deletedAt: string | Date | null;
6978
+ country: string | null;
6979
+ firstName: string | null;
6980
+ lastName: string | null;
6981
+ email: string | null;
6982
+ phone: {
6983
+ number: string;
6984
+ countryCallingCode: string;
6985
+ country: string;
6986
+ nationalNumber: string;
6987
+ formatNational: string;
6988
+ formatInternational: string;
6989
+ } | null;
6990
+ state: string | null;
6991
+ address: string | null;
6992
+ city: string | null;
6993
+ zip: string | null;
6994
+ address2: string | null;
6995
+ relationship: import("../..").TrustedContactRelationship;
6996
+ __entity?: string | undefined;
6997
+ }[] | undefined;
6676
6998
  }>>>;
6677
6999
  role: import("zod").ZodNativeEnum<typeof import("../..").IndividualRole>;
6678
7000
  firstName: import("zod").ZodString;
@@ -6940,6 +7262,31 @@ export declare const clientsContract: {
6940
7262
  financial: boolean;
6941
7263
  } | undefined;
6942
7264
  } | undefined;
7265
+ trustedContacts?: {
7266
+ id: string;
7267
+ createdAt: string | Date;
7268
+ updatedAt: string | Date;
7269
+ deletedAt: string | Date | null;
7270
+ country: string | null;
7271
+ firstName: string | null;
7272
+ lastName: string | null;
7273
+ email: string | null;
7274
+ phone: {
7275
+ number: string;
7276
+ countryCallingCode: string;
7277
+ country: string;
7278
+ nationalNumber: string;
7279
+ formatNational: string;
7280
+ formatInternational: string;
7281
+ } | null;
7282
+ state: string | null;
7283
+ address: string | null;
7284
+ city: string | null;
7285
+ zip: string | null;
7286
+ address2: string | null;
7287
+ relationship: import("../..").TrustedContactRelationship;
7288
+ __entity?: string | undefined;
7289
+ }[] | undefined;
6943
7290
  } | undefined;
6944
7291
  }, {
6945
7292
  id: string;
@@ -7153,6 +7500,31 @@ export declare const clientsContract: {
7153
7500
  financial?: boolean | undefined;
7154
7501
  } | undefined;
7155
7502
  } | undefined;
7503
+ trustedContacts?: {
7504
+ id: string;
7505
+ createdAt: string | Date;
7506
+ updatedAt: string | Date;
7507
+ deletedAt: string | Date | null;
7508
+ country: string | null;
7509
+ firstName: string | null;
7510
+ lastName: string | null;
7511
+ email: string | null;
7512
+ phone: {
7513
+ number: string;
7514
+ countryCallingCode: string;
7515
+ country: string;
7516
+ nationalNumber: string;
7517
+ formatNational: string;
7518
+ formatInternational: string;
7519
+ } | null;
7520
+ state: string | null;
7521
+ address: string | null;
7522
+ city: string | null;
7523
+ zip: string | null;
7524
+ address2: string | null;
7525
+ relationship: import("../..").TrustedContactRelationship;
7526
+ __entity?: string | undefined;
7527
+ }[] | undefined;
7156
7528
  } | undefined;
7157
7529
  }>;
7158
7530
  401: import("zod").ZodObject<{
@@ -7898,6 +8270,94 @@ export declare const clientsContract: {
7898
8270
  financial?: boolean | undefined;
7899
8271
  } | undefined;
7900
8272
  }>>>;
8273
+ trustedContacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodLazy<import("zod").ZodObject<{
8274
+ id: import("zod").ZodString;
8275
+ __entity: import("zod").ZodOptional<import("zod").ZodString>;
8276
+ createdAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
8277
+ updatedAt: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>;
8278
+ deletedAt: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>>;
8279
+ } & {
8280
+ firstName: import("zod").ZodNullable<import("zod").ZodString>;
8281
+ lastName: import("zod").ZodNullable<import("zod").ZodString>;
8282
+ email: import("zod").ZodNullable<import("zod").ZodString>;
8283
+ phone: import("zod").ZodNullable<import("zod").ZodObject<{
8284
+ countryCallingCode: import("zod").ZodString;
8285
+ country: import("zod").ZodString;
8286
+ nationalNumber: import("zod").ZodString;
8287
+ number: import("zod").ZodString;
8288
+ formatNational: import("zod").ZodString;
8289
+ formatInternational: import("zod").ZodString;
8290
+ }, "strip", import("zod").ZodTypeAny, {
8291
+ number: string;
8292
+ countryCallingCode: string;
8293
+ country: string;
8294
+ nationalNumber: string;
8295
+ formatNational: string;
8296
+ formatInternational: string;
8297
+ }, {
8298
+ number: string;
8299
+ countryCallingCode: string;
8300
+ country: string;
8301
+ nationalNumber: string;
8302
+ formatNational: string;
8303
+ formatInternational: string;
8304
+ }>>;
8305
+ address: import("zod").ZodNullable<import("zod").ZodString>;
8306
+ address2: import("zod").ZodNullable<import("zod").ZodString>;
8307
+ city: import("zod").ZodNullable<import("zod").ZodString>;
8308
+ state: import("zod").ZodNullable<import("zod").ZodString>;
8309
+ zip: import("zod").ZodNullable<import("zod").ZodString>;
8310
+ country: import("zod").ZodNullable<import("zod").ZodString>;
8311
+ relationship: import("zod").ZodNativeEnum<typeof import("../..").TrustedContactRelationship>;
8312
+ }, "strip", import("zod").ZodTypeAny, {
8313
+ id: string;
8314
+ createdAt: string | Date;
8315
+ updatedAt: string | Date;
8316
+ deletedAt: string | Date | null;
8317
+ country: string | null;
8318
+ firstName: string | null;
8319
+ lastName: string | null;
8320
+ email: string | null;
8321
+ phone: {
8322
+ number: string;
8323
+ countryCallingCode: string;
8324
+ country: string;
8325
+ nationalNumber: string;
8326
+ formatNational: string;
8327
+ formatInternational: string;
8328
+ } | null;
8329
+ state: string | null;
8330
+ address: string | null;
8331
+ city: string | null;
8332
+ zip: string | null;
8333
+ address2: string | null;
8334
+ relationship: import("../..").TrustedContactRelationship;
8335
+ __entity?: string | undefined;
8336
+ }, {
8337
+ id: string;
8338
+ createdAt: string | Date;
8339
+ updatedAt: string | Date;
8340
+ deletedAt: string | Date | null;
8341
+ country: string | null;
8342
+ firstName: string | null;
8343
+ lastName: string | null;
8344
+ email: string | null;
8345
+ phone: {
8346
+ number: string;
8347
+ countryCallingCode: string;
8348
+ country: string;
8349
+ nationalNumber: string;
8350
+ formatNational: string;
8351
+ formatInternational: string;
8352
+ } | null;
8353
+ state: string | null;
8354
+ address: string | null;
8355
+ city: string | null;
8356
+ zip: string | null;
8357
+ address2: string | null;
8358
+ relationship: import("../..").TrustedContactRelationship;
8359
+ __entity?: string | undefined;
8360
+ }>>, "many">>;
7901
8361
  }, "strip", import("zod").ZodTypeAny, {
7902
8362
  id: string;
7903
8363
  createdAt: string | Date;
@@ -8033,6 +8493,31 @@ export declare const clientsContract: {
8033
8493
  financial: boolean;
8034
8494
  } | undefined;
8035
8495
  } | undefined;
8496
+ trustedContacts?: {
8497
+ id: string;
8498
+ createdAt: string | Date;
8499
+ updatedAt: string | Date;
8500
+ deletedAt: string | Date | null;
8501
+ country: string | null;
8502
+ firstName: string | null;
8503
+ lastName: string | null;
8504
+ email: string | null;
8505
+ phone: {
8506
+ number: string;
8507
+ countryCallingCode: string;
8508
+ country: string;
8509
+ nationalNumber: string;
8510
+ formatNational: string;
8511
+ formatInternational: string;
8512
+ } | null;
8513
+ state: string | null;
8514
+ address: string | null;
8515
+ city: string | null;
8516
+ zip: string | null;
8517
+ address2: string | null;
8518
+ relationship: import("../..").TrustedContactRelationship;
8519
+ __entity?: string | undefined;
8520
+ }[] | undefined;
8036
8521
  }, {
8037
8522
  id: string;
8038
8523
  createdAt: string | Date;
@@ -8168,6 +8653,31 @@ export declare const clientsContract: {
8168
8653
  financial?: boolean | undefined;
8169
8654
  } | undefined;
8170
8655
  } | undefined;
8656
+ trustedContacts?: {
8657
+ id: string;
8658
+ createdAt: string | Date;
8659
+ updatedAt: string | Date;
8660
+ deletedAt: string | Date | null;
8661
+ country: string | null;
8662
+ firstName: string | null;
8663
+ lastName: string | null;
8664
+ email: string | null;
8665
+ phone: {
8666
+ number: string;
8667
+ countryCallingCode: string;
8668
+ country: string;
8669
+ nationalNumber: string;
8670
+ formatNational: string;
8671
+ formatInternational: string;
8672
+ } | null;
8673
+ state: string | null;
8674
+ address: string | null;
8675
+ city: string | null;
8676
+ zip: string | null;
8677
+ address2: string | null;
8678
+ relationship: import("../..").TrustedContactRelationship;
8679
+ __entity?: string | undefined;
8680
+ }[] | undefined;
8171
8681
  }>>>;
8172
8682
  role: import("zod").ZodNativeEnum<typeof import("../..").IndividualRole>;
8173
8683
  firstName: import("zod").ZodString;
@@ -8435,6 +8945,31 @@ export declare const clientsContract: {
8435
8945
  financial: boolean;
8436
8946
  } | undefined;
8437
8947
  } | undefined;
8948
+ trustedContacts?: {
8949
+ id: string;
8950
+ createdAt: string | Date;
8951
+ updatedAt: string | Date;
8952
+ deletedAt: string | Date | null;
8953
+ country: string | null;
8954
+ firstName: string | null;
8955
+ lastName: string | null;
8956
+ email: string | null;
8957
+ phone: {
8958
+ number: string;
8959
+ countryCallingCode: string;
8960
+ country: string;
8961
+ nationalNumber: string;
8962
+ formatNational: string;
8963
+ formatInternational: string;
8964
+ } | null;
8965
+ state: string | null;
8966
+ address: string | null;
8967
+ city: string | null;
8968
+ zip: string | null;
8969
+ address2: string | null;
8970
+ relationship: import("../..").TrustedContactRelationship;
8971
+ __entity?: string | undefined;
8972
+ }[] | undefined;
8438
8973
  } | undefined;
8439
8974
  }, {
8440
8975
  id: string;
@@ -8648,6 +9183,31 @@ export declare const clientsContract: {
8648
9183
  financial?: boolean | undefined;
8649
9184
  } | undefined;
8650
9185
  } | undefined;
9186
+ trustedContacts?: {
9187
+ id: string;
9188
+ createdAt: string | Date;
9189
+ updatedAt: string | Date;
9190
+ deletedAt: string | Date | null;
9191
+ country: string | null;
9192
+ firstName: string | null;
9193
+ lastName: string | null;
9194
+ email: string | null;
9195
+ phone: {
9196
+ number: string;
9197
+ countryCallingCode: string;
9198
+ country: string;
9199
+ nationalNumber: string;
9200
+ formatNational: string;
9201
+ formatInternational: string;
9202
+ } | null;
9203
+ state: string | null;
9204
+ address: string | null;
9205
+ city: string | null;
9206
+ zip: string | null;
9207
+ address2: string | null;
9208
+ relationship: import("../..").TrustedContactRelationship;
9209
+ __entity?: string | undefined;
9210
+ }[] | undefined;
8651
9211
  } | undefined;
8652
9212
  }>;
8653
9213
  401: import("zod").ZodObject<{
@@ -14108,49 +14668,234 @@ export declare const clientsContract: {
14108
14668
  }>;
14109
14669
  };
14110
14670
  };
14111
- postLineItem: {
14671
+ postLineItem: {
14672
+ method: "POST";
14673
+ metadata: {
14674
+ auth: boolean;
14675
+ };
14676
+ body: import("zod").ZodObject<{
14677
+ assetId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14678
+ quantity: import("zod").ZodNumber;
14679
+ }, "strip", import("zod").ZodTypeAny, {
14680
+ quantity: number;
14681
+ assetId: string;
14682
+ }, {
14683
+ quantity: number;
14684
+ assetId: string;
14685
+ }>;
14686
+ query: import("zod").ZodObject<{
14687
+ reset: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "true" | "false", string | undefined>, boolean, string | undefined>;
14688
+ }, "strip", import("zod").ZodTypeAny, {
14689
+ reset: boolean;
14690
+ }, {
14691
+ reset?: string | undefined;
14692
+ }>;
14693
+ summary: "Create a Line Item";
14694
+ path: "/clients/api/v1/trades/line-items";
14695
+ responses: {
14696
+ 201: import("zod").ZodObject<{
14697
+ assetName: import("zod").ZodNullable<import("zod").ZodString>;
14698
+ total: import("zod").ZodNumber;
14699
+ pricePerShare: import("zod").ZodNumber;
14700
+ id: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14701
+ quantity: import("zod").ZodNumber;
14702
+ }, "strip", import("zod").ZodTypeAny, {
14703
+ id: string;
14704
+ total: number;
14705
+ pricePerShare: number;
14706
+ quantity: number;
14707
+ assetName: string | null;
14708
+ }, {
14709
+ id: string;
14710
+ total: number;
14711
+ pricePerShare: number;
14712
+ quantity: number;
14713
+ assetName: string | null;
14714
+ }>;
14715
+ 401: import("zod").ZodObject<{
14716
+ status: import("zod").ZodNumber;
14717
+ message: import("zod").ZodString;
14718
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14719
+ }, "strip", import("zod").ZodTypeAny, {
14720
+ message: string;
14721
+ status: number;
14722
+ errors: string[];
14723
+ }, {
14724
+ message: string;
14725
+ status: number;
14726
+ errors: string[];
14727
+ }>;
14728
+ 403: import("zod").ZodObject<{
14729
+ status: import("zod").ZodNumber;
14730
+ message: import("zod").ZodString;
14731
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14732
+ }, "strip", import("zod").ZodTypeAny, {
14733
+ message: string;
14734
+ status: number;
14735
+ errors: string[];
14736
+ }, {
14737
+ message: string;
14738
+ status: number;
14739
+ errors: string[];
14740
+ }>;
14741
+ 400: import("zod").ZodObject<{
14742
+ status: import("zod").ZodNumber;
14743
+ message: import("zod").ZodString;
14744
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14745
+ }, "strip", import("zod").ZodTypeAny, {
14746
+ message: string;
14747
+ status: number;
14748
+ errors: string[];
14749
+ }, {
14750
+ message: string;
14751
+ status: number;
14752
+ errors: string[];
14753
+ }>;
14754
+ 500: import("zod").ZodObject<{
14755
+ status: import("zod").ZodNumber;
14756
+ message: import("zod").ZodString;
14757
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14758
+ }, "strip", import("zod").ZodTypeAny, {
14759
+ message: string;
14760
+ status: number;
14761
+ errors: string[];
14762
+ }, {
14763
+ message: string;
14764
+ status: number;
14765
+ errors: string[];
14766
+ }>;
14767
+ };
14768
+ };
14769
+ patchTradeStatus: {
14770
+ method: "PATCH";
14771
+ metadata: {
14772
+ auth: boolean;
14773
+ };
14774
+ body: import("zod").ZodObject<{
14775
+ tradeStatus: import("zod").ZodNativeEnum<typeof import("../..").TradeStatus>;
14776
+ }, "strip", import("zod").ZodTypeAny, {
14777
+ tradeStatus: import("../..").TradeStatus;
14778
+ }, {
14779
+ tradeStatus: import("../..").TradeStatus;
14780
+ }>;
14781
+ pathParams: import("zod").ZodObject<{
14782
+ id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
14783
+ }, "strip", import("zod").ZodTypeAny, {
14784
+ id: string;
14785
+ }, {
14786
+ id: string;
14787
+ }>;
14788
+ summary: "Patch a trade status";
14789
+ path: "/clients/api/v1/trades/:id";
14790
+ responses: {
14791
+ 201: any;
14792
+ 401: import("zod").ZodObject<{
14793
+ status: import("zod").ZodNumber;
14794
+ message: import("zod").ZodString;
14795
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14796
+ }, "strip", import("zod").ZodTypeAny, {
14797
+ message: string;
14798
+ status: number;
14799
+ errors: string[];
14800
+ }, {
14801
+ message: string;
14802
+ status: number;
14803
+ errors: string[];
14804
+ }>;
14805
+ 403: import("zod").ZodObject<{
14806
+ status: import("zod").ZodNumber;
14807
+ message: import("zod").ZodString;
14808
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14809
+ }, "strip", import("zod").ZodTypeAny, {
14810
+ message: string;
14811
+ status: number;
14812
+ errors: string[];
14813
+ }, {
14814
+ message: string;
14815
+ status: number;
14816
+ errors: string[];
14817
+ }>;
14818
+ 400: import("zod").ZodObject<{
14819
+ status: import("zod").ZodNumber;
14820
+ message: import("zod").ZodString;
14821
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14822
+ }, "strip", import("zod").ZodTypeAny, {
14823
+ message: string;
14824
+ status: number;
14825
+ errors: string[];
14826
+ }, {
14827
+ message: string;
14828
+ status: number;
14829
+ errors: string[];
14830
+ }>;
14831
+ 500: import("zod").ZodObject<{
14832
+ status: import("zod").ZodNumber;
14833
+ message: import("zod").ZodString;
14834
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14835
+ }, "strip", import("zod").ZodTypeAny, {
14836
+ message: string;
14837
+ status: number;
14838
+ errors: string[];
14839
+ }, {
14840
+ message: string;
14841
+ status: number;
14842
+ errors: string[];
14843
+ }>;
14844
+ };
14845
+ };
14846
+ postAttachSubdoc: {
14112
14847
  method: "POST";
14113
14848
  metadata: {
14114
14849
  auth: boolean;
14115
14850
  };
14116
14851
  body: import("zod").ZodObject<{
14117
- assetId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14118
- quantity: import("zod").ZodNumber;
14852
+ lineItemId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
14853
+ fileId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14854
+ primarySignatureStatus: import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>;
14855
+ secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14119
14856
  }, "strip", import("zod").ZodTypeAny, {
14120
- quantity: number;
14121
- assetId: string;
14857
+ fileId: string;
14858
+ lineItemId: string;
14859
+ primarySignatureStatus: import("../..").SignatureStatus;
14860
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14122
14861
  }, {
14123
- quantity: number;
14124
- assetId: string;
14862
+ fileId: string;
14863
+ lineItemId: string;
14864
+ primarySignatureStatus: import("../..").SignatureStatus;
14865
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14125
14866
  }>;
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>;
14867
+ pathParams: import("zod").ZodObject<{
14868
+ id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
14128
14869
  }, "strip", import("zod").ZodTypeAny, {
14129
- reset: boolean;
14870
+ id: string;
14130
14871
  }, {
14131
- reset?: string | undefined;
14872
+ id: string;
14132
14873
  }>;
14133
- summary: "Create a Line Item";
14134
- path: "/clients/api/v1/trades/line-items";
14874
+ summary: "Attach subdoc to trade";
14875
+ path: "/clients/api/v1/trades/:id/attach-subdoc";
14135
14876
  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;
14877
+ 200: import("zod").ZodObject<{
14878
+ success: import("zod").ZodBoolean;
14879
+ message: import("zod").ZodString;
14142
14880
  }, "strip", import("zod").ZodTypeAny, {
14143
- id: string;
14144
- total: number;
14145
- pricePerShare: number;
14146
- quantity: number;
14147
- assetName: string | null;
14881
+ message: string;
14882
+ success: boolean;
14148
14883
  }, {
14149
- id: string;
14150
- total: number;
14151
- pricePerShare: number;
14152
- quantity: number;
14153
- assetName: string | null;
14884
+ message: string;
14885
+ success: boolean;
14886
+ }>;
14887
+ 400: import("zod").ZodObject<{
14888
+ status: import("zod").ZodNumber;
14889
+ message: import("zod").ZodString;
14890
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14891
+ }, "strip", import("zod").ZodTypeAny, {
14892
+ message: string;
14893
+ status: number;
14894
+ errors: string[];
14895
+ }, {
14896
+ message: string;
14897
+ status: number;
14898
+ errors: string[];
14154
14899
  }>;
14155
14900
  401: import("zod").ZodObject<{
14156
14901
  status: import("zod").ZodNumber;
@@ -14178,7 +14923,7 @@ export declare const clientsContract: {
14178
14923
  status: number;
14179
14924
  errors: string[];
14180
14925
  }>;
14181
- 400: import("zod").ZodObject<{
14926
+ 404: import("zod").ZodObject<{
14182
14927
  status: import("zod").ZodNumber;
14183
14928
  message: import("zod").ZodString;
14184
14929
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14206,17 +14951,26 @@ export declare const clientsContract: {
14206
14951
  }>;
14207
14952
  };
14208
14953
  };
14209
- patchTradeStatus: {
14210
- method: "PATCH";
14954
+ putAttachSubdoc: {
14955
+ method: "PUT";
14211
14956
  metadata: {
14212
14957
  auth: boolean;
14213
14958
  };
14214
14959
  body: import("zod").ZodObject<{
14215
- tradeStatus: import("zod").ZodNativeEnum<typeof import("../..").TradeStatus>;
14960
+ lineItemId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
14961
+ fileId: import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>>;
14962
+ primarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14963
+ secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14216
14964
  }, "strip", import("zod").ZodTypeAny, {
14217
- tradeStatus: import("../..").TradeStatus;
14965
+ fileId?: string | undefined;
14966
+ lineItemId?: string | undefined;
14967
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14968
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14218
14969
  }, {
14219
- tradeStatus: import("../..").TradeStatus;
14970
+ fileId?: string | undefined;
14971
+ lineItemId?: string | undefined;
14972
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14973
+ secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14220
14974
  }>;
14221
14975
  pathParams: import("zod").ZodObject<{
14222
14976
  id: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodString]>;
@@ -14225,10 +14979,32 @@ export declare const clientsContract: {
14225
14979
  }, {
14226
14980
  id: string;
14227
14981
  }>;
14228
- summary: "Patch a trade status";
14229
- path: "/clients/api/v1/trades/:id";
14982
+ summary: "Update attached subdoc for trade";
14983
+ path: "/clients/api/v1/trades/:id/attach-subdoc";
14230
14984
  responses: {
14231
- 201: any;
14985
+ 200: import("zod").ZodObject<{
14986
+ success: import("zod").ZodBoolean;
14987
+ message: import("zod").ZodString;
14988
+ }, "strip", import("zod").ZodTypeAny, {
14989
+ message: string;
14990
+ success: boolean;
14991
+ }, {
14992
+ message: string;
14993
+ success: boolean;
14994
+ }>;
14995
+ 400: import("zod").ZodObject<{
14996
+ status: import("zod").ZodNumber;
14997
+ message: import("zod").ZodString;
14998
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
14999
+ }, "strip", import("zod").ZodTypeAny, {
15000
+ message: string;
15001
+ status: number;
15002
+ errors: string[];
15003
+ }, {
15004
+ message: string;
15005
+ status: number;
15006
+ errors: string[];
15007
+ }>;
14232
15008
  401: import("zod").ZodObject<{
14233
15009
  status: import("zod").ZodNumber;
14234
15010
  message: import("zod").ZodString;
@@ -14255,7 +15031,7 @@ export declare const clientsContract: {
14255
15031
  status: number;
14256
15032
  errors: string[];
14257
15033
  }>;
14258
- 400: import("zod").ZodObject<{
15034
+ 404: import("zod").ZodObject<{
14259
15035
  status: import("zod").ZodNumber;
14260
15036
  message: import("zod").ZodString;
14261
15037
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14283,25 +15059,22 @@ export declare const clientsContract: {
14283
15059
  }>;
14284
15060
  };
14285
15061
  };
14286
- postAttachSubdoc: {
14287
- method: "POST";
15062
+ patchSubdocSign: {
15063
+ method: "PATCH";
14288
15064
  metadata: {
14289
15065
  auth: boolean;
14290
15066
  };
14291
15067
  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>;
15068
+ lineItemId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
15069
+ primarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14295
15070
  secondarySignatureStatus: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").SignatureStatus>>;
14296
15071
  }, "strip", import("zod").ZodTypeAny, {
14297
- fileId: string;
14298
- lineItemId: string;
14299
- primarySignatureStatus: import("../..").SignatureStatus;
15072
+ lineItemId?: string | undefined;
15073
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14300
15074
  secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14301
15075
  }, {
14302
- fileId: string;
14303
- lineItemId: string;
14304
- primarySignatureStatus: import("../..").SignatureStatus;
15076
+ lineItemId?: string | undefined;
15077
+ primarySignatureStatus?: import("../..").SignatureStatus | undefined;
14305
15078
  secondarySignatureStatus?: import("../..").SignatureStatus | undefined;
14306
15079
  }>;
14307
15080
  pathParams: import("zod").ZodObject<{
@@ -14311,8 +15084,8 @@ export declare const clientsContract: {
14311
15084
  }, {
14312
15085
  id: string;
14313
15086
  }>;
14314
- summary: "Attach subdoc to trade";
14315
- path: "/clients/api/v1/trades/:id/attach-subdoc";
15087
+ summary: "Update subdoc signature statuses for trade";
15088
+ path: "/clients/api/v1/trades/:id/sign";
14316
15089
  responses: {
14317
15090
  200: import("zod").ZodObject<{
14318
15091
  success: import("zod").ZodBoolean;
@@ -14350,7 +15123,95 @@ export declare const clientsContract: {
14350
15123
  status: number;
14351
15124
  errors: string[];
14352
15125
  }>;
14353
- 403: import("zod").ZodObject<{
15126
+ 403: import("zod").ZodObject<{
15127
+ status: import("zod").ZodNumber;
15128
+ message: import("zod").ZodString;
15129
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
15130
+ }, "strip", import("zod").ZodTypeAny, {
15131
+ message: string;
15132
+ status: number;
15133
+ errors: string[];
15134
+ }, {
15135
+ message: string;
15136
+ status: number;
15137
+ errors: string[];
15138
+ }>;
15139
+ 404: import("zod").ZodObject<{
15140
+ status: import("zod").ZodNumber;
15141
+ message: import("zod").ZodString;
15142
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
15143
+ }, "strip", import("zod").ZodTypeAny, {
15144
+ message: string;
15145
+ status: number;
15146
+ errors: string[];
15147
+ }, {
15148
+ message: string;
15149
+ status: number;
15150
+ errors: string[];
15151
+ }>;
15152
+ 500: import("zod").ZodObject<{
15153
+ status: import("zod").ZodNumber;
15154
+ message: import("zod").ZodString;
15155
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
15156
+ }, "strip", import("zod").ZodTypeAny, {
15157
+ message: string;
15158
+ status: number;
15159
+ errors: string[];
15160
+ }, {
15161
+ message: string;
15162
+ status: number;
15163
+ errors: string[];
15164
+ }>;
15165
+ };
15166
+ };
15167
+ };
15168
+ transactions: {
15169
+ postTransaction: {
15170
+ method: "POST";
15171
+ metadata: {
15172
+ auth: boolean;
15173
+ };
15174
+ body: import("zod").ZodObject<{
15175
+ tid: import("zod").ZodString;
15176
+ tradeId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
15177
+ name: import("zod").ZodString;
15178
+ chargedAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>;
15179
+ amount: import("zod").ZodEffects<import("zod").ZodNumber, number, number>;
15180
+ } & {
15181
+ userId: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
15182
+ }, "strip", import("zod").ZodTypeAny, {
15183
+ name: string;
15184
+ tid: string;
15185
+ userId: string;
15186
+ amount: number;
15187
+ tradeId: string;
15188
+ chargedAt: Date | null;
15189
+ }, {
15190
+ name: string;
15191
+ tid: string;
15192
+ userId: string;
15193
+ amount: number;
15194
+ tradeId: string;
15195
+ chargedAt: string | null;
15196
+ }>;
15197
+ summary: "Create a transaction";
15198
+ path: "/clients/api/v1/transactions";
15199
+ responses: {
15200
+ 201: any;
15201
+ 400: import("zod").ZodObject<{
15202
+ status: import("zod").ZodNumber;
15203
+ message: import("zod").ZodString;
15204
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
15205
+ }, "strip", import("zod").ZodTypeAny, {
15206
+ message: string;
15207
+ status: number;
15208
+ errors: string[];
15209
+ }, {
15210
+ message: string;
15211
+ status: number;
15212
+ errors: string[];
15213
+ }>;
15214
+ 401: import("zod").ZodObject<{
14354
15215
  status: import("zod").ZodNumber;
14355
15216
  message: import("zod").ZodString;
14356
15217
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14391,46 +15252,39 @@ export declare const clientsContract: {
14391
15252
  }>;
14392
15253
  };
14393
15254
  };
14394
- putAttachSubdoc: {
14395
- method: "PUT";
15255
+ };
15256
+ webhooks: {
15257
+ subscribe: {
15258
+ description: "Creates a new webhook subscription for the specified event types. Used by Zapier REST Hook.";
15259
+ method: "POST";
14396
15260
  metadata: {
14397
15261
  auth: boolean;
14398
15262
  };
14399
15263
  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]>;
15264
+ targetUrl: import("zod").ZodString;
15265
+ eventTypes: import("zod").ZodArray<import("zod").ZodString, "many">;
15266
+ name: import("zod").ZodOptional<import("zod").ZodString>;
14417
15267
  }, "strip", import("zod").ZodTypeAny, {
14418
- id: string;
15268
+ targetUrl: string;
15269
+ eventTypes: string[];
15270
+ name?: string | undefined;
14419
15271
  }, {
14420
- id: string;
15272
+ targetUrl: string;
15273
+ eventTypes: string[];
15274
+ name?: string | undefined;
14421
15275
  }>;
14422
- summary: "Update attached subdoc for trade";
14423
- path: "/clients/api/v1/trades/:id/attach-subdoc";
15276
+ summary: "Subscribe to webhook events";
15277
+ path: "/clients/api/v1/webhooks/subscribe";
14424
15278
  responses: {
14425
- 200: import("zod").ZodObject<{
14426
- success: import("zod").ZodBoolean;
14427
- message: import("zod").ZodString;
15279
+ 201: import("zod").ZodObject<{
15280
+ id: import("zod").ZodString;
15281
+ hook0SubscriptionId: import("zod").ZodNullable<import("zod").ZodString>;
14428
15282
  }, "strip", import("zod").ZodTypeAny, {
14429
- message: string;
14430
- success: boolean;
15283
+ id: string;
15284
+ hook0SubscriptionId: string | null;
14431
15285
  }, {
14432
- message: string;
14433
- success: boolean;
15286
+ id: string;
15287
+ hook0SubscriptionId: string | null;
14434
15288
  }>;
14435
15289
  400: import("zod").ZodObject<{
14436
15290
  status: import("zod").ZodNumber;
@@ -14471,7 +15325,27 @@ export declare const clientsContract: {
14471
15325
  status: number;
14472
15326
  errors: string[];
14473
15327
  }>;
14474
- 404: import("zod").ZodObject<{
15328
+ };
15329
+ };
15330
+ unsubscribe: {
15331
+ description: "Deletes a webhook subscription by ID. Used by Zapier REST Hook.";
15332
+ method: "DELETE";
15333
+ metadata: {
15334
+ auth: boolean;
15335
+ };
15336
+ body: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
15337
+ pathParams: import("zod").ZodObject<{
15338
+ id: import("zod").ZodString;
15339
+ }, "strip", import("zod").ZodTypeAny, {
15340
+ id: string;
15341
+ }, {
15342
+ id: string;
15343
+ }>;
15344
+ summary: "Unsubscribe from webhook";
15345
+ path: "/clients/api/v1/webhooks/:id";
15346
+ responses: {
15347
+ 204: import("zod").ZodUndefined;
15348
+ 401: import("zod").ZodObject<{
14475
15349
  status: import("zod").ZodNumber;
14476
15350
  message: import("zod").ZodString;
14477
15351
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14484,7 +15358,20 @@ export declare const clientsContract: {
14484
15358
  status: number;
14485
15359
  errors: string[];
14486
15360
  }>;
14487
- 500: import("zod").ZodObject<{
15361
+ 403: import("zod").ZodObject<{
15362
+ status: import("zod").ZodNumber;
15363
+ message: import("zod").ZodString;
15364
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
15365
+ }, "strip", import("zod").ZodTypeAny, {
15366
+ message: string;
15367
+ status: number;
15368
+ errors: string[];
15369
+ }, {
15370
+ message: string;
15371
+ status: number;
15372
+ errors: string[];
15373
+ }>;
15374
+ 404: import("zod").ZodObject<{
14488
15375
  status: import("zod").ZodNumber;
14489
15376
  message: import("zod").ZodString;
14490
15377
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14499,56 +15386,104 @@ export declare const clientsContract: {
14499
15386
  }>;
14500
15387
  };
14501
15388
  };
14502
- patchSubdocSign: {
14503
- method: "PATCH";
15389
+ list: {
15390
+ description: "Returns a paginated list of webhook subscriptions.";
15391
+ method: "GET";
14504
15392
  metadata: {
14505
15393
  auth: boolean;
14506
15394
  };
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]>;
15395
+ query: import("zod").ZodObject<{
15396
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
15397
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
14522
15398
  }, "strip", import("zod").ZodTypeAny, {
14523
- id: string;
15399
+ page: number;
15400
+ limit: number;
14524
15401
  }, {
14525
- id: string;
15402
+ page?: number | undefined;
15403
+ limit?: number | undefined;
14526
15404
  }>;
14527
- summary: "Update subdoc signature statuses for trade";
14528
- path: "/clients/api/v1/trades/:id/sign";
15405
+ summary: "List webhook subscriptions";
15406
+ path: "/clients/api/v1/webhooks";
14529
15407
  responses: {
14530
15408
  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">;
15409
+ items: import("zod").ZodArray<import("zod").ZodObject<{
15410
+ id: import("zod").ZodString;
15411
+ targetUrl: import("zod").ZodString;
15412
+ eventTypes: import("zod").ZodArray<import("zod").ZodString, "many">;
15413
+ name: import("zod").ZodNullable<import("zod").ZodString>;
15414
+ enabled: import("zod").ZodBoolean;
15415
+ createdAt: import("zod").ZodString;
15416
+ updatedAt: import("zod").ZodString;
15417
+ }, "strip", import("zod").ZodTypeAny, {
15418
+ id: string;
15419
+ createdAt: string;
15420
+ updatedAt: string;
15421
+ name: string | null;
15422
+ enabled: boolean;
15423
+ targetUrl: string;
15424
+ eventTypes: string[];
15425
+ }, {
15426
+ id: string;
15427
+ createdAt: string;
15428
+ updatedAt: string;
15429
+ name: string | null;
15430
+ enabled: boolean;
15431
+ targetUrl: string;
15432
+ eventTypes: string[];
15433
+ }>, "many">;
15434
+ meta: import("zod").ZodObject<{
15435
+ itemCount: import("zod").ZodNumber;
15436
+ totalItems: import("zod").ZodOptional<import("zod").ZodNumber>;
15437
+ itemsPerPage: import("zod").ZodNumber;
15438
+ totalPages: import("zod").ZodOptional<import("zod").ZodNumber>;
15439
+ currentPage: import("zod").ZodNumber;
15440
+ }, "strip", import("zod").ZodTypeAny, {
15441
+ itemCount: number;
15442
+ itemsPerPage: number;
15443
+ currentPage: number;
15444
+ totalItems?: number | undefined;
15445
+ totalPages?: number | undefined;
15446
+ }, {
15447
+ itemCount: number;
15448
+ itemsPerPage: number;
15449
+ currentPage: number;
15450
+ totalItems?: number | undefined;
15451
+ totalPages?: number | undefined;
15452
+ }>;
14544
15453
  }, "strip", import("zod").ZodTypeAny, {
14545
- message: string;
14546
- status: number;
14547
- errors: string[];
15454
+ items: {
15455
+ id: string;
15456
+ createdAt: string;
15457
+ updatedAt: string;
15458
+ name: string | null;
15459
+ enabled: boolean;
15460
+ targetUrl: string;
15461
+ eventTypes: string[];
15462
+ }[];
15463
+ meta: {
15464
+ itemCount: number;
15465
+ itemsPerPage: number;
15466
+ currentPage: number;
15467
+ totalItems?: number | undefined;
15468
+ totalPages?: number | undefined;
15469
+ };
14548
15470
  }, {
14549
- message: string;
14550
- status: number;
14551
- errors: string[];
15471
+ items: {
15472
+ id: string;
15473
+ createdAt: string;
15474
+ updatedAt: string;
15475
+ name: string | null;
15476
+ enabled: boolean;
15477
+ targetUrl: string;
15478
+ eventTypes: string[];
15479
+ }[];
15480
+ meta: {
15481
+ itemCount: number;
15482
+ itemsPerPage: number;
15483
+ currentPage: number;
15484
+ totalItems?: number | undefined;
15485
+ totalPages?: number | undefined;
15486
+ };
14552
15487
  }>;
14553
15488
  401: import("zod").ZodObject<{
14554
15489
  status: import("zod").ZodNumber;
@@ -14576,7 +15511,34 @@ export declare const clientsContract: {
14576
15511
  status: number;
14577
15512
  errors: string[];
14578
15513
  }>;
14579
- 404: import("zod").ZodObject<{
15514
+ };
15515
+ };
15516
+ triggerTypes: {
15517
+ description: "Returns a list of event types that can be subscribed to for triggers.";
15518
+ method: "GET";
15519
+ metadata: {
15520
+ auth: boolean;
15521
+ };
15522
+ summary: "Get available trigger types";
15523
+ path: "/clients/api/v1/webhooks/trigger-types";
15524
+ responses: {
15525
+ 200: import("zod").ZodArray<import("zod").ZodObject<{
15526
+ eventType: import("zod").ZodString;
15527
+ displayName: import("zod").ZodString;
15528
+ description: import("zod").ZodString;
15529
+ source: import("zod").ZodEnum<["api", "external", "both"]>;
15530
+ }, "strip", import("zod").ZodTypeAny, {
15531
+ description: string;
15532
+ source: "api" | "external" | "both";
15533
+ eventType: string;
15534
+ displayName: string;
15535
+ }, {
15536
+ description: string;
15537
+ source: "api" | "external" | "both";
15538
+ eventType: string;
15539
+ displayName: string;
15540
+ }>, "many">;
15541
+ 401: import("zod").ZodObject<{
14580
15542
  status: import("zod").ZodNumber;
14581
15543
  message: import("zod").ZodString;
14582
15544
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14589,7 +15551,7 @@ export declare const clientsContract: {
14589
15551
  status: number;
14590
15552
  errors: string[];
14591
15553
  }>;
14592
- 500: import("zod").ZodObject<{
15554
+ 403: import("zod").ZodObject<{
14593
15555
  status: import("zod").ZodNumber;
14594
15556
  message: import("zod").ZodString;
14595
15557
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14604,41 +15566,38 @@ export declare const clientsContract: {
14604
15566
  }>;
14605
15567
  };
14606
15568
  };
14607
- };
14608
- transactions: {
14609
- postTransaction: {
14610
- method: "POST";
15569
+ actionTypes: {
15570
+ description: "Returns a list of API endpoints available as Zapier actions.";
15571
+ method: "GET";
14611
15572
  metadata: {
14612
15573
  auth: boolean;
14613
15574
  };
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";
15575
+ summary: "Get available action types";
15576
+ path: "/clients/api/v1/webhooks/action-types";
14639
15577
  responses: {
14640
- 201: any;
14641
- 400: import("zod").ZodObject<{
15578
+ 200: import("zod").ZodArray<import("zod").ZodObject<{
15579
+ key: import("zod").ZodString;
15580
+ displayName: import("zod").ZodString;
15581
+ description: import("zod").ZodString;
15582
+ method: import("zod").ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
15583
+ endpoint: import("zod").ZodString;
15584
+ noun: import("zod").ZodString;
15585
+ }, "strip", import("zod").ZodTypeAny, {
15586
+ key: string;
15587
+ description: string;
15588
+ endpoint: string;
15589
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
15590
+ displayName: string;
15591
+ noun: string;
15592
+ }, {
15593
+ key: string;
15594
+ description: string;
15595
+ endpoint: string;
15596
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
15597
+ displayName: string;
15598
+ noun: string;
15599
+ }>, "many">;
15600
+ 401: import("zod").ZodObject<{
14642
15601
  status: import("zod").ZodNumber;
14643
15602
  message: import("zod").ZodString;
14644
15603
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14651,7 +15610,7 @@ export declare const clientsContract: {
14651
15610
  status: number;
14652
15611
  errors: string[];
14653
15612
  }>;
14654
- 401: import("zod").ZodObject<{
15613
+ 403: import("zod").ZodObject<{
14655
15614
  status: import("zod").ZodNumber;
14656
15615
  message: import("zod").ZodString;
14657
15616
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14664,7 +15623,33 @@ export declare const clientsContract: {
14664
15623
  status: number;
14665
15624
  errors: string[];
14666
15625
  }>;
14667
- 404: import("zod").ZodObject<{
15626
+ };
15627
+ };
15628
+ performList: {
15629
+ description: "Returns recent events for a specific event type. Used as a polling fallback by Zapier.";
15630
+ method: "GET";
15631
+ metadata: {
15632
+ auth: boolean;
15633
+ };
15634
+ pathParams: import("zod").ZodObject<{
15635
+ eventType: import("zod").ZodString;
15636
+ }, "strip", import("zod").ZodTypeAny, {
15637
+ eventType: string;
15638
+ }, {
15639
+ eventType: string;
15640
+ }>;
15641
+ query: import("zod").ZodObject<{
15642
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
15643
+ }, "strip", import("zod").ZodTypeAny, {
15644
+ limit: number;
15645
+ }, {
15646
+ limit?: number | undefined;
15647
+ }>;
15648
+ summary: "Perform list for event type";
15649
+ path: "/clients/api/v1/webhooks/perform/:eventType";
15650
+ responses: {
15651
+ 200: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">;
15652
+ 401: import("zod").ZodObject<{
14668
15653
  status: import("zod").ZodNumber;
14669
15654
  message: import("zod").ZodString;
14670
15655
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -14677,7 +15662,7 @@ export declare const clientsContract: {
14677
15662
  status: number;
14678
15663
  errors: string[];
14679
15664
  }>;
14680
- 500: import("zod").ZodObject<{
15665
+ 403: import("zod").ZodObject<{
14681
15666
  status: import("zod").ZodNumber;
14682
15667
  message: import("zod").ZodString;
14683
15668
  errors: import("zod").ZodArray<import("zod").ZodString, "many">;