@klappay/types 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/index.d.mts +718 -30
- package/dist/index.d.ts +718 -30
- package/dist/index.js +454 -156
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +430 -156
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -4
- package/CHANGELOG.md +0 -60
package/dist/index.d.mts
CHANGED
|
@@ -55,6 +55,7 @@ declare const PaginationQuerySchema: z.ZodObject<{
|
|
|
55
55
|
cursor?: string | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
type PaginationQuery = z.infer<typeof PaginationQuerySchema>;
|
|
58
|
+
type PaginationQueryRequest = z.input<typeof PaginationQuerySchema>;
|
|
58
59
|
declare function paginatedSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
|
|
59
60
|
data: z.ZodArray<T, "many">;
|
|
60
61
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -174,6 +175,7 @@ declare const CreateChargeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
174
175
|
metadata?: Record<string, unknown> | undefined;
|
|
175
176
|
}>;
|
|
176
177
|
type CreateChargeInput = z.infer<typeof CreateChargeSchema>;
|
|
178
|
+
type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
|
|
177
179
|
declare const ChargeSchema: z.ZodObject<{
|
|
178
180
|
id: z.ZodString;
|
|
179
181
|
mode: z.ZodEnum<["standard", "continuous"]>;
|
|
@@ -308,6 +310,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
308
310
|
since?: string | undefined;
|
|
309
311
|
}>;
|
|
310
312
|
type ListChargesInput = z.infer<typeof ListChargesSchema>;
|
|
313
|
+
type ListChargesRequest = z.input<typeof ListChargesSchema>;
|
|
311
314
|
declare const PaginatedChargesSchema: z.ZodObject<{
|
|
312
315
|
data: z.ZodArray<z.ZodObject<{
|
|
313
316
|
id: z.ZodString;
|
|
@@ -523,6 +526,8 @@ declare const ChargeStatusEventSchema: z.ZodObject<{
|
|
|
523
526
|
}>;
|
|
524
527
|
type ChargeStatusEvent = z.infer<typeof ChargeStatusEventSchema>;
|
|
525
528
|
|
|
529
|
+
declare const SplitDistributionStatusSchema: z.ZodEnum<["pending", "processing", "completed", "failed"]>;
|
|
530
|
+
type SplitDistributionStatus = z.infer<typeof SplitDistributionStatusSchema>;
|
|
526
531
|
declare const PendingDistributionRecipientSchema: z.ZodObject<{
|
|
527
532
|
address: z.ZodString;
|
|
528
533
|
percentAllocation: z.ZodNumber;
|
|
@@ -664,6 +669,684 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
664
669
|
}>]>;
|
|
665
670
|
type PendingDistributionEvent = z.infer<typeof PendingDistributionEventSchema>;
|
|
666
671
|
|
|
672
|
+
declare const MetricsResourceSchema: z.ZodEnum<["charges", "transactions", "distributions"]>;
|
|
673
|
+
type MetricsResource = z.infer<typeof MetricsResourceSchema>;
|
|
674
|
+
declare const MetricsAggregationSchema: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
675
|
+
type MetricsAggregation = z.infer<typeof MetricsAggregationSchema>;
|
|
676
|
+
declare const MetricsFilterOperatorSchema: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
677
|
+
type MetricsFilterOperator = z.infer<typeof MetricsFilterOperatorSchema>;
|
|
678
|
+
declare const MetricsDateGranularitySchema: z.ZodEnum<["day", "week", "month"]>;
|
|
679
|
+
type MetricsDateGranularity = z.infer<typeof MetricsDateGranularitySchema>;
|
|
680
|
+
declare const MAX_METRICS_QUERY_DATE_RANGE_DAYS = 366;
|
|
681
|
+
declare const METRICS_QUERY_MAX_ROW_LIMIT = 1000;
|
|
682
|
+
declare const METRICS_QUERY_DEFAULT_ROW_LIMIT = 100;
|
|
683
|
+
declare const METRICS_QUERY_MAX_GROUP_BY = 3;
|
|
684
|
+
declare const METRICS_QUERY_MAX_FILTERS = 20;
|
|
685
|
+
declare const METRICS_QUERY_MAX_METRICS = 10;
|
|
686
|
+
declare const ChargesQueryFieldSchema: z.ZodEnum<["status", "mode", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
687
|
+
type ChargesQueryField = z.infer<typeof ChargesQueryFieldSchema>;
|
|
688
|
+
declare const ChargesMetricFieldSchema: z.ZodEnum<["amount", "amountReceived", "feePercent"]>;
|
|
689
|
+
type ChargesMetricField = z.infer<typeof ChargesMetricFieldSchema>;
|
|
690
|
+
declare const ChargesDateFieldSchema: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
691
|
+
type ChargesDateField = z.infer<typeof ChargesDateFieldSchema>;
|
|
692
|
+
declare const TransactionsQueryFieldSchema: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
693
|
+
type TransactionsQueryField = z.infer<typeof TransactionsQueryFieldSchema>;
|
|
694
|
+
declare const TransactionsMetricFieldSchema: z.ZodEnum<["amount"]>;
|
|
695
|
+
type TransactionsMetricField = z.infer<typeof TransactionsMetricFieldSchema>;
|
|
696
|
+
declare const TransactionsDateFieldSchema: z.ZodEnum<["detectedAt"]>;
|
|
697
|
+
type TransactionsDateField = z.infer<typeof TransactionsDateFieldSchema>;
|
|
698
|
+
declare const DistributionsQueryFieldSchema: z.ZodEnum<["status", "network", "token"]>;
|
|
699
|
+
type DistributionsQueryField = z.infer<typeof DistributionsQueryFieldSchema>;
|
|
700
|
+
declare const DistributionsMetricFieldSchema: z.ZodEnum<["attempts"]>;
|
|
701
|
+
type DistributionsMetricField = z.infer<typeof DistributionsMetricFieldSchema>;
|
|
702
|
+
declare const DistributionsDateFieldSchema: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
703
|
+
type DistributionsDateField = z.infer<typeof DistributionsDateFieldSchema>;
|
|
704
|
+
declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource", [z.ZodObject<{
|
|
705
|
+
resource: z.ZodLiteral<"charges">;
|
|
706
|
+
environment: z.ZodEnum<["live", "test"]>;
|
|
707
|
+
dateRange: z.ZodObject<{
|
|
708
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
709
|
+
from: z.ZodString;
|
|
710
|
+
to: z.ZodString;
|
|
711
|
+
}, "strip", z.ZodTypeAny, {
|
|
712
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
713
|
+
from: string;
|
|
714
|
+
to: string;
|
|
715
|
+
}, {
|
|
716
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
717
|
+
from: string;
|
|
718
|
+
to: string;
|
|
719
|
+
}>;
|
|
720
|
+
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
721
|
+
type: z.ZodLiteral<"field">;
|
|
722
|
+
field: z.ZodEnum<["status", "mode", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
|
724
|
+
type: "field";
|
|
725
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
726
|
+
}, {
|
|
727
|
+
type: "field";
|
|
728
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
729
|
+
}>, z.ZodObject<{
|
|
730
|
+
type: z.ZodLiteral<"date_bucket">;
|
|
731
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
732
|
+
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
733
|
+
}, "strip", z.ZodTypeAny, {
|
|
734
|
+
type: "date_bucket";
|
|
735
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
736
|
+
granularity: "day" | "week" | "month";
|
|
737
|
+
}, {
|
|
738
|
+
type: "date_bucket";
|
|
739
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
740
|
+
granularity: "day" | "week" | "month";
|
|
741
|
+
}>]>, "many">>;
|
|
742
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
743
|
+
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
744
|
+
field: z.ZodOptional<z.ZodEnum<["amount", "amountReceived", "feePercent"]>>;
|
|
745
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
746
|
+
}, "strip", z.ZodTypeAny, {
|
|
747
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
748
|
+
field?: "amount" | "amountReceived" | "feePercent" | undefined;
|
|
749
|
+
alias?: string | undefined;
|
|
750
|
+
}, {
|
|
751
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
752
|
+
field?: "amount" | "amountReceived" | "feePercent" | undefined;
|
|
753
|
+
alias?: string | undefined;
|
|
754
|
+
}>, "many">;
|
|
755
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
756
|
+
field: z.ZodEnum<["status", "mode", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
757
|
+
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
758
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
759
|
+
}, "strip", z.ZodTypeAny, {
|
|
760
|
+
value: string | number | boolean | (string | number)[];
|
|
761
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
762
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
763
|
+
}, {
|
|
764
|
+
value: string | number | boolean | (string | number)[];
|
|
765
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
766
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
767
|
+
}>, "many">>;
|
|
768
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
769
|
+
key: z.ZodString;
|
|
770
|
+
direction: z.ZodEnum<["asc", "desc"]>;
|
|
771
|
+
}, "strip", z.ZodTypeAny, {
|
|
772
|
+
key: string;
|
|
773
|
+
direction: "asc" | "desc";
|
|
774
|
+
}, {
|
|
775
|
+
key: string;
|
|
776
|
+
direction: "asc" | "desc";
|
|
777
|
+
}>>;
|
|
778
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
779
|
+
}, "strip", z.ZodTypeAny, {
|
|
780
|
+
limit: number;
|
|
781
|
+
environment: "live" | "test";
|
|
782
|
+
resource: "charges";
|
|
783
|
+
dateRange: {
|
|
784
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
785
|
+
from: string;
|
|
786
|
+
to: string;
|
|
787
|
+
};
|
|
788
|
+
groupBy: ({
|
|
789
|
+
type: "field";
|
|
790
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
791
|
+
} | {
|
|
792
|
+
type: "date_bucket";
|
|
793
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
794
|
+
granularity: "day" | "week" | "month";
|
|
795
|
+
})[];
|
|
796
|
+
metrics: {
|
|
797
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
798
|
+
field?: "amount" | "amountReceived" | "feePercent" | undefined;
|
|
799
|
+
alias?: string | undefined;
|
|
800
|
+
}[];
|
|
801
|
+
filters: {
|
|
802
|
+
value: string | number | boolean | (string | number)[];
|
|
803
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
804
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
805
|
+
}[];
|
|
806
|
+
orderBy?: {
|
|
807
|
+
key: string;
|
|
808
|
+
direction: "asc" | "desc";
|
|
809
|
+
} | undefined;
|
|
810
|
+
}, {
|
|
811
|
+
environment: "live" | "test";
|
|
812
|
+
resource: "charges";
|
|
813
|
+
dateRange: {
|
|
814
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
815
|
+
from: string;
|
|
816
|
+
to: string;
|
|
817
|
+
};
|
|
818
|
+
metrics: {
|
|
819
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
820
|
+
field?: "amount" | "amountReceived" | "feePercent" | undefined;
|
|
821
|
+
alias?: string | undefined;
|
|
822
|
+
}[];
|
|
823
|
+
limit?: number | undefined;
|
|
824
|
+
groupBy?: ({
|
|
825
|
+
type: "field";
|
|
826
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
827
|
+
} | {
|
|
828
|
+
type: "date_bucket";
|
|
829
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
830
|
+
granularity: "day" | "week" | "month";
|
|
831
|
+
})[] | undefined;
|
|
832
|
+
filters?: {
|
|
833
|
+
value: string | number | boolean | (string | number)[];
|
|
834
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
835
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
836
|
+
}[] | undefined;
|
|
837
|
+
orderBy?: {
|
|
838
|
+
key: string;
|
|
839
|
+
direction: "asc" | "desc";
|
|
840
|
+
} | undefined;
|
|
841
|
+
}>, z.ZodObject<{
|
|
842
|
+
resource: z.ZodLiteral<"transactions">;
|
|
843
|
+
environment: z.ZodEnum<["live", "test"]>;
|
|
844
|
+
dateRange: z.ZodObject<{
|
|
845
|
+
field: z.ZodEnum<["detectedAt"]>;
|
|
846
|
+
from: z.ZodString;
|
|
847
|
+
to: z.ZodString;
|
|
848
|
+
}, "strip", z.ZodTypeAny, {
|
|
849
|
+
field: "detectedAt";
|
|
850
|
+
from: string;
|
|
851
|
+
to: string;
|
|
852
|
+
}, {
|
|
853
|
+
field: "detectedAt";
|
|
854
|
+
from: string;
|
|
855
|
+
to: string;
|
|
856
|
+
}>;
|
|
857
|
+
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
858
|
+
type: z.ZodLiteral<"field">;
|
|
859
|
+
field: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
861
|
+
type: "field";
|
|
862
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
863
|
+
}, {
|
|
864
|
+
type: "field";
|
|
865
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
866
|
+
}>, z.ZodObject<{
|
|
867
|
+
type: z.ZodLiteral<"date_bucket">;
|
|
868
|
+
field: z.ZodEnum<["detectedAt"]>;
|
|
869
|
+
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
870
|
+
}, "strip", z.ZodTypeAny, {
|
|
871
|
+
type: "date_bucket";
|
|
872
|
+
field: "detectedAt";
|
|
873
|
+
granularity: "day" | "week" | "month";
|
|
874
|
+
}, {
|
|
875
|
+
type: "date_bucket";
|
|
876
|
+
field: "detectedAt";
|
|
877
|
+
granularity: "day" | "week" | "month";
|
|
878
|
+
}>]>, "many">>;
|
|
879
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
880
|
+
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
881
|
+
field: z.ZodOptional<z.ZodEnum<["amount"]>>;
|
|
882
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
883
|
+
}, "strip", z.ZodTypeAny, {
|
|
884
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
885
|
+
field?: "amount" | undefined;
|
|
886
|
+
alias?: string | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
889
|
+
field?: "amount" | undefined;
|
|
890
|
+
alias?: string | undefined;
|
|
891
|
+
}>, "many">;
|
|
892
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
893
|
+
field: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
894
|
+
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
895
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
896
|
+
}, "strip", z.ZodTypeAny, {
|
|
897
|
+
value: string | number | boolean | (string | number)[];
|
|
898
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
899
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
900
|
+
}, {
|
|
901
|
+
value: string | number | boolean | (string | number)[];
|
|
902
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
903
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
904
|
+
}>, "many">>;
|
|
905
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
906
|
+
key: z.ZodString;
|
|
907
|
+
direction: z.ZodEnum<["asc", "desc"]>;
|
|
908
|
+
}, "strip", z.ZodTypeAny, {
|
|
909
|
+
key: string;
|
|
910
|
+
direction: "asc" | "desc";
|
|
911
|
+
}, {
|
|
912
|
+
key: string;
|
|
913
|
+
direction: "asc" | "desc";
|
|
914
|
+
}>>;
|
|
915
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
916
|
+
}, "strip", z.ZodTypeAny, {
|
|
917
|
+
limit: number;
|
|
918
|
+
environment: "live" | "test";
|
|
919
|
+
resource: "transactions";
|
|
920
|
+
dateRange: {
|
|
921
|
+
field: "detectedAt";
|
|
922
|
+
from: string;
|
|
923
|
+
to: string;
|
|
924
|
+
};
|
|
925
|
+
groupBy: ({
|
|
926
|
+
type: "field";
|
|
927
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
928
|
+
} | {
|
|
929
|
+
type: "date_bucket";
|
|
930
|
+
field: "detectedAt";
|
|
931
|
+
granularity: "day" | "week" | "month";
|
|
932
|
+
})[];
|
|
933
|
+
metrics: {
|
|
934
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
935
|
+
field?: "amount" | undefined;
|
|
936
|
+
alias?: string | undefined;
|
|
937
|
+
}[];
|
|
938
|
+
filters: {
|
|
939
|
+
value: string | number | boolean | (string | number)[];
|
|
940
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
941
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
942
|
+
}[];
|
|
943
|
+
orderBy?: {
|
|
944
|
+
key: string;
|
|
945
|
+
direction: "asc" | "desc";
|
|
946
|
+
} | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
environment: "live" | "test";
|
|
949
|
+
resource: "transactions";
|
|
950
|
+
dateRange: {
|
|
951
|
+
field: "detectedAt";
|
|
952
|
+
from: string;
|
|
953
|
+
to: string;
|
|
954
|
+
};
|
|
955
|
+
metrics: {
|
|
956
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
957
|
+
field?: "amount" | undefined;
|
|
958
|
+
alias?: string | undefined;
|
|
959
|
+
}[];
|
|
960
|
+
limit?: number | undefined;
|
|
961
|
+
groupBy?: ({
|
|
962
|
+
type: "field";
|
|
963
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
964
|
+
} | {
|
|
965
|
+
type: "date_bucket";
|
|
966
|
+
field: "detectedAt";
|
|
967
|
+
granularity: "day" | "week" | "month";
|
|
968
|
+
})[] | undefined;
|
|
969
|
+
filters?: {
|
|
970
|
+
value: string | number | boolean | (string | number)[];
|
|
971
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
972
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
973
|
+
}[] | undefined;
|
|
974
|
+
orderBy?: {
|
|
975
|
+
key: string;
|
|
976
|
+
direction: "asc" | "desc";
|
|
977
|
+
} | undefined;
|
|
978
|
+
}>, z.ZodObject<{
|
|
979
|
+
resource: z.ZodLiteral<"distributions">;
|
|
980
|
+
environment: z.ZodEnum<["live", "test"]>;
|
|
981
|
+
dateRange: z.ZodObject<{
|
|
982
|
+
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
983
|
+
from: z.ZodString;
|
|
984
|
+
to: z.ZodString;
|
|
985
|
+
}, "strip", z.ZodTypeAny, {
|
|
986
|
+
field: "createdAt" | "completedAt";
|
|
987
|
+
from: string;
|
|
988
|
+
to: string;
|
|
989
|
+
}, {
|
|
990
|
+
field: "createdAt" | "completedAt";
|
|
991
|
+
from: string;
|
|
992
|
+
to: string;
|
|
993
|
+
}>;
|
|
994
|
+
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
995
|
+
type: z.ZodLiteral<"field">;
|
|
996
|
+
field: z.ZodEnum<["status", "network", "token"]>;
|
|
997
|
+
}, "strip", z.ZodTypeAny, {
|
|
998
|
+
type: "field";
|
|
999
|
+
field: "status" | "token" | "network";
|
|
1000
|
+
}, {
|
|
1001
|
+
type: "field";
|
|
1002
|
+
field: "status" | "token" | "network";
|
|
1003
|
+
}>, z.ZodObject<{
|
|
1004
|
+
type: z.ZodLiteral<"date_bucket">;
|
|
1005
|
+
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
1006
|
+
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
1007
|
+
}, "strip", z.ZodTypeAny, {
|
|
1008
|
+
type: "date_bucket";
|
|
1009
|
+
field: "createdAt" | "completedAt";
|
|
1010
|
+
granularity: "day" | "week" | "month";
|
|
1011
|
+
}, {
|
|
1012
|
+
type: "date_bucket";
|
|
1013
|
+
field: "createdAt" | "completedAt";
|
|
1014
|
+
granularity: "day" | "week" | "month";
|
|
1015
|
+
}>]>, "many">>;
|
|
1016
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
1017
|
+
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
1018
|
+
field: z.ZodOptional<z.ZodEnum<["attempts"]>>;
|
|
1019
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
|
1021
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1022
|
+
field?: "attempts" | undefined;
|
|
1023
|
+
alias?: string | undefined;
|
|
1024
|
+
}, {
|
|
1025
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1026
|
+
field?: "attempts" | undefined;
|
|
1027
|
+
alias?: string | undefined;
|
|
1028
|
+
}>, "many">;
|
|
1029
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1030
|
+
field: z.ZodEnum<["status", "network", "token"]>;
|
|
1031
|
+
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
1032
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
1033
|
+
}, "strip", z.ZodTypeAny, {
|
|
1034
|
+
value: string | number | boolean | (string | number)[];
|
|
1035
|
+
field: "status" | "token" | "network";
|
|
1036
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1037
|
+
}, {
|
|
1038
|
+
value: string | number | boolean | (string | number)[];
|
|
1039
|
+
field: "status" | "token" | "network";
|
|
1040
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1041
|
+
}>, "many">>;
|
|
1042
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
1043
|
+
key: z.ZodString;
|
|
1044
|
+
direction: z.ZodEnum<["asc", "desc"]>;
|
|
1045
|
+
}, "strip", z.ZodTypeAny, {
|
|
1046
|
+
key: string;
|
|
1047
|
+
direction: "asc" | "desc";
|
|
1048
|
+
}, {
|
|
1049
|
+
key: string;
|
|
1050
|
+
direction: "asc" | "desc";
|
|
1051
|
+
}>>;
|
|
1052
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
limit: number;
|
|
1055
|
+
environment: "live" | "test";
|
|
1056
|
+
resource: "distributions";
|
|
1057
|
+
dateRange: {
|
|
1058
|
+
field: "createdAt" | "completedAt";
|
|
1059
|
+
from: string;
|
|
1060
|
+
to: string;
|
|
1061
|
+
};
|
|
1062
|
+
groupBy: ({
|
|
1063
|
+
type: "field";
|
|
1064
|
+
field: "status" | "token" | "network";
|
|
1065
|
+
} | {
|
|
1066
|
+
type: "date_bucket";
|
|
1067
|
+
field: "createdAt" | "completedAt";
|
|
1068
|
+
granularity: "day" | "week" | "month";
|
|
1069
|
+
})[];
|
|
1070
|
+
metrics: {
|
|
1071
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1072
|
+
field?: "attempts" | undefined;
|
|
1073
|
+
alias?: string | undefined;
|
|
1074
|
+
}[];
|
|
1075
|
+
filters: {
|
|
1076
|
+
value: string | number | boolean | (string | number)[];
|
|
1077
|
+
field: "status" | "token" | "network";
|
|
1078
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1079
|
+
}[];
|
|
1080
|
+
orderBy?: {
|
|
1081
|
+
key: string;
|
|
1082
|
+
direction: "asc" | "desc";
|
|
1083
|
+
} | undefined;
|
|
1084
|
+
}, {
|
|
1085
|
+
environment: "live" | "test";
|
|
1086
|
+
resource: "distributions";
|
|
1087
|
+
dateRange: {
|
|
1088
|
+
field: "createdAt" | "completedAt";
|
|
1089
|
+
from: string;
|
|
1090
|
+
to: string;
|
|
1091
|
+
};
|
|
1092
|
+
metrics: {
|
|
1093
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1094
|
+
field?: "attempts" | undefined;
|
|
1095
|
+
alias?: string | undefined;
|
|
1096
|
+
}[];
|
|
1097
|
+
limit?: number | undefined;
|
|
1098
|
+
groupBy?: ({
|
|
1099
|
+
type: "field";
|
|
1100
|
+
field: "status" | "token" | "network";
|
|
1101
|
+
} | {
|
|
1102
|
+
type: "date_bucket";
|
|
1103
|
+
field: "createdAt" | "completedAt";
|
|
1104
|
+
granularity: "day" | "week" | "month";
|
|
1105
|
+
})[] | undefined;
|
|
1106
|
+
filters?: {
|
|
1107
|
+
value: string | number | boolean | (string | number)[];
|
|
1108
|
+
field: "status" | "token" | "network";
|
|
1109
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1110
|
+
}[] | undefined;
|
|
1111
|
+
orderBy?: {
|
|
1112
|
+
key: string;
|
|
1113
|
+
direction: "asc" | "desc";
|
|
1114
|
+
} | undefined;
|
|
1115
|
+
}>]>, {
|
|
1116
|
+
limit: number;
|
|
1117
|
+
environment: "live" | "test";
|
|
1118
|
+
resource: "charges";
|
|
1119
|
+
dateRange: {
|
|
1120
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1121
|
+
from: string;
|
|
1122
|
+
to: string;
|
|
1123
|
+
};
|
|
1124
|
+
groupBy: ({
|
|
1125
|
+
type: "field";
|
|
1126
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1127
|
+
} | {
|
|
1128
|
+
type: "date_bucket";
|
|
1129
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1130
|
+
granularity: "day" | "week" | "month";
|
|
1131
|
+
})[];
|
|
1132
|
+
metrics: {
|
|
1133
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1134
|
+
field?: "amount" | "amountReceived" | "feePercent" | undefined;
|
|
1135
|
+
alias?: string | undefined;
|
|
1136
|
+
}[];
|
|
1137
|
+
filters: {
|
|
1138
|
+
value: string | number | boolean | (string | number)[];
|
|
1139
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1140
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1141
|
+
}[];
|
|
1142
|
+
orderBy?: {
|
|
1143
|
+
key: string;
|
|
1144
|
+
direction: "asc" | "desc";
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
} | {
|
|
1147
|
+
limit: number;
|
|
1148
|
+
environment: "live" | "test";
|
|
1149
|
+
resource: "transactions";
|
|
1150
|
+
dateRange: {
|
|
1151
|
+
field: "detectedAt";
|
|
1152
|
+
from: string;
|
|
1153
|
+
to: string;
|
|
1154
|
+
};
|
|
1155
|
+
groupBy: ({
|
|
1156
|
+
type: "field";
|
|
1157
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
1158
|
+
} | {
|
|
1159
|
+
type: "date_bucket";
|
|
1160
|
+
field: "detectedAt";
|
|
1161
|
+
granularity: "day" | "week" | "month";
|
|
1162
|
+
})[];
|
|
1163
|
+
metrics: {
|
|
1164
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1165
|
+
field?: "amount" | undefined;
|
|
1166
|
+
alias?: string | undefined;
|
|
1167
|
+
}[];
|
|
1168
|
+
filters: {
|
|
1169
|
+
value: string | number | boolean | (string | number)[];
|
|
1170
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
1171
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1172
|
+
}[];
|
|
1173
|
+
orderBy?: {
|
|
1174
|
+
key: string;
|
|
1175
|
+
direction: "asc" | "desc";
|
|
1176
|
+
} | undefined;
|
|
1177
|
+
} | {
|
|
1178
|
+
limit: number;
|
|
1179
|
+
environment: "live" | "test";
|
|
1180
|
+
resource: "distributions";
|
|
1181
|
+
dateRange: {
|
|
1182
|
+
field: "createdAt" | "completedAt";
|
|
1183
|
+
from: string;
|
|
1184
|
+
to: string;
|
|
1185
|
+
};
|
|
1186
|
+
groupBy: ({
|
|
1187
|
+
type: "field";
|
|
1188
|
+
field: "status" | "token" | "network";
|
|
1189
|
+
} | {
|
|
1190
|
+
type: "date_bucket";
|
|
1191
|
+
field: "createdAt" | "completedAt";
|
|
1192
|
+
granularity: "day" | "week" | "month";
|
|
1193
|
+
})[];
|
|
1194
|
+
metrics: {
|
|
1195
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1196
|
+
field?: "attempts" | undefined;
|
|
1197
|
+
alias?: string | undefined;
|
|
1198
|
+
}[];
|
|
1199
|
+
filters: {
|
|
1200
|
+
value: string | number | boolean | (string | number)[];
|
|
1201
|
+
field: "status" | "token" | "network";
|
|
1202
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1203
|
+
}[];
|
|
1204
|
+
orderBy?: {
|
|
1205
|
+
key: string;
|
|
1206
|
+
direction: "asc" | "desc";
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
}, {
|
|
1209
|
+
environment: "live" | "test";
|
|
1210
|
+
resource: "charges";
|
|
1211
|
+
dateRange: {
|
|
1212
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1213
|
+
from: string;
|
|
1214
|
+
to: string;
|
|
1215
|
+
};
|
|
1216
|
+
metrics: {
|
|
1217
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1218
|
+
field?: "amount" | "amountReceived" | "feePercent" | undefined;
|
|
1219
|
+
alias?: string | undefined;
|
|
1220
|
+
}[];
|
|
1221
|
+
limit?: number | undefined;
|
|
1222
|
+
groupBy?: ({
|
|
1223
|
+
type: "field";
|
|
1224
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1225
|
+
} | {
|
|
1226
|
+
type: "date_bucket";
|
|
1227
|
+
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1228
|
+
granularity: "day" | "week" | "month";
|
|
1229
|
+
})[] | undefined;
|
|
1230
|
+
filters?: {
|
|
1231
|
+
value: string | number | boolean | (string | number)[];
|
|
1232
|
+
field: "status" | "mode" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1233
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1234
|
+
}[] | undefined;
|
|
1235
|
+
orderBy?: {
|
|
1236
|
+
key: string;
|
|
1237
|
+
direction: "asc" | "desc";
|
|
1238
|
+
} | undefined;
|
|
1239
|
+
} | {
|
|
1240
|
+
environment: "live" | "test";
|
|
1241
|
+
resource: "transactions";
|
|
1242
|
+
dateRange: {
|
|
1243
|
+
field: "detectedAt";
|
|
1244
|
+
from: string;
|
|
1245
|
+
to: string;
|
|
1246
|
+
};
|
|
1247
|
+
metrics: {
|
|
1248
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1249
|
+
field?: "amount" | undefined;
|
|
1250
|
+
alias?: string | undefined;
|
|
1251
|
+
}[];
|
|
1252
|
+
limit?: number | undefined;
|
|
1253
|
+
groupBy?: ({
|
|
1254
|
+
type: "field";
|
|
1255
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
1256
|
+
} | {
|
|
1257
|
+
type: "date_bucket";
|
|
1258
|
+
field: "detectedAt";
|
|
1259
|
+
granularity: "day" | "week" | "month";
|
|
1260
|
+
})[] | undefined;
|
|
1261
|
+
filters?: {
|
|
1262
|
+
value: string | number | boolean | (string | number)[];
|
|
1263
|
+
field: "token" | "network" | "source" | "causedTransition";
|
|
1264
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1265
|
+
}[] | undefined;
|
|
1266
|
+
orderBy?: {
|
|
1267
|
+
key: string;
|
|
1268
|
+
direction: "asc" | "desc";
|
|
1269
|
+
} | undefined;
|
|
1270
|
+
} | {
|
|
1271
|
+
environment: "live" | "test";
|
|
1272
|
+
resource: "distributions";
|
|
1273
|
+
dateRange: {
|
|
1274
|
+
field: "createdAt" | "completedAt";
|
|
1275
|
+
from: string;
|
|
1276
|
+
to: string;
|
|
1277
|
+
};
|
|
1278
|
+
metrics: {
|
|
1279
|
+
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1280
|
+
field?: "attempts" | undefined;
|
|
1281
|
+
alias?: string | undefined;
|
|
1282
|
+
}[];
|
|
1283
|
+
limit?: number | undefined;
|
|
1284
|
+
groupBy?: ({
|
|
1285
|
+
type: "field";
|
|
1286
|
+
field: "status" | "token" | "network";
|
|
1287
|
+
} | {
|
|
1288
|
+
type: "date_bucket";
|
|
1289
|
+
field: "createdAt" | "completedAt";
|
|
1290
|
+
granularity: "day" | "week" | "month";
|
|
1291
|
+
})[] | undefined;
|
|
1292
|
+
filters?: {
|
|
1293
|
+
value: string | number | boolean | (string | number)[];
|
|
1294
|
+
field: "status" | "token" | "network";
|
|
1295
|
+
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1296
|
+
}[] | undefined;
|
|
1297
|
+
orderBy?: {
|
|
1298
|
+
key: string;
|
|
1299
|
+
direction: "asc" | "desc";
|
|
1300
|
+
} | undefined;
|
|
1301
|
+
}>;
|
|
1302
|
+
type MetricsQuery = z.infer<typeof MetricsQuerySchema>;
|
|
1303
|
+
type MetricsQueryRequest = z.input<typeof MetricsQuerySchema>;
|
|
1304
|
+
declare const MetricsQueryResultRowSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1305
|
+
type MetricsQueryResultRow = z.infer<typeof MetricsQueryResultRowSchema>;
|
|
1306
|
+
declare const MetricsQueryScopeSchema: z.ZodEnum<["owner_admin", "member"]>;
|
|
1307
|
+
type MetricsQueryScope = z.infer<typeof MetricsQueryScopeSchema>;
|
|
1308
|
+
declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
1309
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">;
|
|
1310
|
+
meta: z.ZodObject<{
|
|
1311
|
+
resource: z.ZodEnum<["charges", "transactions", "distributions"]>;
|
|
1312
|
+
environment: z.ZodEnum<["live", "test"]>;
|
|
1313
|
+
scope: z.ZodEnum<["owner_admin", "member"]>;
|
|
1314
|
+
rowCount: z.ZodNumber;
|
|
1315
|
+
truncated: z.ZodBoolean;
|
|
1316
|
+
}, "strip", z.ZodTypeAny, {
|
|
1317
|
+
environment: "live" | "test";
|
|
1318
|
+
resource: "charges" | "transactions" | "distributions";
|
|
1319
|
+
scope: "owner_admin" | "member";
|
|
1320
|
+
rowCount: number;
|
|
1321
|
+
truncated: boolean;
|
|
1322
|
+
}, {
|
|
1323
|
+
environment: "live" | "test";
|
|
1324
|
+
resource: "charges" | "transactions" | "distributions";
|
|
1325
|
+
scope: "owner_admin" | "member";
|
|
1326
|
+
rowCount: number;
|
|
1327
|
+
truncated: boolean;
|
|
1328
|
+
}>;
|
|
1329
|
+
}, "strip", z.ZodTypeAny, {
|
|
1330
|
+
data: Record<string, string | number | boolean | null>[];
|
|
1331
|
+
meta: {
|
|
1332
|
+
environment: "live" | "test";
|
|
1333
|
+
resource: "charges" | "transactions" | "distributions";
|
|
1334
|
+
scope: "owner_admin" | "member";
|
|
1335
|
+
rowCount: number;
|
|
1336
|
+
truncated: boolean;
|
|
1337
|
+
};
|
|
1338
|
+
}, {
|
|
1339
|
+
data: Record<string, string | number | boolean | null>[];
|
|
1340
|
+
meta: {
|
|
1341
|
+
environment: "live" | "test";
|
|
1342
|
+
resource: "charges" | "transactions" | "distributions";
|
|
1343
|
+
scope: "owner_admin" | "member";
|
|
1344
|
+
rowCount: number;
|
|
1345
|
+
truncated: boolean;
|
|
1346
|
+
};
|
|
1347
|
+
}>;
|
|
1348
|
+
type MetricsQueryResult = z.infer<typeof MetricsQueryResultSchema>;
|
|
1349
|
+
|
|
667
1350
|
declare const ChargeWebhookEventTypeSchema: z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid", "charge.paused", "charge.reactivated", "charge.contribution_received", "charge.contribution_settled"]>;
|
|
668
1351
|
declare const AccountWebhookEventTypeSchema: z.ZodEnum<["payout_address.changed", "api_key.created", "api_key.revoked", "webhook.created", "webhook.deleted", "webhook.secret_rotated", "fee_tier.updated", "member.removed", "member.role_changed", "member.invited"]>;
|
|
669
1352
|
declare const WebhookDeliveryEventTypeSchema: z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>;
|
|
@@ -672,7 +1355,6 @@ declare const WebhookEventTypeSchema: z.ZodUnion<[z.ZodEnum<["charge.created", "
|
|
|
672
1355
|
type WebhookEventType = z.infer<typeof WebhookEventTypeSchema>;
|
|
673
1356
|
declare const WebhookCategorySchema: z.ZodEnum<["payments", "account", "webhooks", "security"]>;
|
|
674
1357
|
type WebhookCategory = z.infer<typeof WebhookCategorySchema>;
|
|
675
|
-
/** Single source of truth for which category each event belongs to — see `webhook-events.test.ts` for the completeness check. */
|
|
676
1358
|
declare const EVENT_CATEGORY_MAP: Record<"charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed", "payments" | "account" | "webhooks" | "security">;
|
|
677
1359
|
declare const WEBHOOK_EVENT_CATEGORIES: Record<WebhookCategory, readonly WebhookEventType[]>;
|
|
678
1360
|
declare const TriggerableChargeEventSchema: z.ZodEnum<["charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>;
|
|
@@ -685,9 +1367,9 @@ type UserRole = z.infer<typeof UserRoleSchema>;
|
|
|
685
1367
|
declare const UpdateUserRoleSchema: z.ZodObject<{
|
|
686
1368
|
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
687
1369
|
}, "strip", z.ZodTypeAny, {
|
|
688
|
-
role: "
|
|
1370
|
+
role: "member" | "owner" | "admin";
|
|
689
1371
|
}, {
|
|
690
|
-
role: "
|
|
1372
|
+
role: "member" | "owner" | "admin";
|
|
691
1373
|
}>;
|
|
692
1374
|
type UpdateUserRoleInput = z.infer<typeof UpdateUserRoleSchema>;
|
|
693
1375
|
declare const UserSchema: z.ZodObject<{
|
|
@@ -700,14 +1382,14 @@ declare const UserSchema: z.ZodObject<{
|
|
|
700
1382
|
}, "strip", z.ZodTypeAny, {
|
|
701
1383
|
id: string;
|
|
702
1384
|
createdAt: string;
|
|
703
|
-
role: "
|
|
1385
|
+
role: "member" | "owner" | "admin";
|
|
704
1386
|
email: string;
|
|
705
1387
|
name: string | null;
|
|
706
1388
|
emailVerifiedAt: string | null;
|
|
707
1389
|
}, {
|
|
708
1390
|
id: string;
|
|
709
1391
|
createdAt: string;
|
|
710
|
-
role: "
|
|
1392
|
+
role: "member" | "owner" | "admin";
|
|
711
1393
|
email: string;
|
|
712
1394
|
name: string | null;
|
|
713
1395
|
emailVerifiedAt: string | null;
|
|
@@ -724,6 +1406,7 @@ declare const ListUsersSchema: z.ZodObject<{
|
|
|
724
1406
|
cursor?: string | undefined;
|
|
725
1407
|
}>;
|
|
726
1408
|
type ListUsersInput = z.infer<typeof ListUsersSchema>;
|
|
1409
|
+
type ListUsersRequest = z.input<typeof ListUsersSchema>;
|
|
727
1410
|
declare const PaginatedUsersSchema: z.ZodObject<{
|
|
728
1411
|
data: z.ZodArray<z.ZodObject<{
|
|
729
1412
|
id: z.ZodString;
|
|
@@ -735,14 +1418,14 @@ declare const PaginatedUsersSchema: z.ZodObject<{
|
|
|
735
1418
|
}, "strip", z.ZodTypeAny, {
|
|
736
1419
|
id: string;
|
|
737
1420
|
createdAt: string;
|
|
738
|
-
role: "
|
|
1421
|
+
role: "member" | "owner" | "admin";
|
|
739
1422
|
email: string;
|
|
740
1423
|
name: string | null;
|
|
741
1424
|
emailVerifiedAt: string | null;
|
|
742
1425
|
}, {
|
|
743
1426
|
id: string;
|
|
744
1427
|
createdAt: string;
|
|
745
|
-
role: "
|
|
1428
|
+
role: "member" | "owner" | "admin";
|
|
746
1429
|
email: string;
|
|
747
1430
|
name: string | null;
|
|
748
1431
|
emailVerifiedAt: string | null;
|
|
@@ -753,7 +1436,7 @@ declare const PaginatedUsersSchema: z.ZodObject<{
|
|
|
753
1436
|
data: {
|
|
754
1437
|
id: string;
|
|
755
1438
|
createdAt: string;
|
|
756
|
-
role: "
|
|
1439
|
+
role: "member" | "owner" | "admin";
|
|
757
1440
|
email: string;
|
|
758
1441
|
name: string | null;
|
|
759
1442
|
emailVerifiedAt: string | null;
|
|
@@ -764,7 +1447,7 @@ declare const PaginatedUsersSchema: z.ZodObject<{
|
|
|
764
1447
|
data: {
|
|
765
1448
|
id: string;
|
|
766
1449
|
createdAt: string;
|
|
767
|
-
role: "
|
|
1450
|
+
role: "member" | "owner" | "admin";
|
|
768
1451
|
email: string;
|
|
769
1452
|
name: string | null;
|
|
770
1453
|
emailVerifiedAt: string | null;
|
|
@@ -931,6 +1614,7 @@ declare const CreateWebhookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
931
1614
|
excludeEvents?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed")[] | undefined;
|
|
932
1615
|
}>;
|
|
933
1616
|
type CreateWebhookInput = z.infer<typeof CreateWebhookSchema>;
|
|
1617
|
+
type CreateWebhookRequest = z.input<typeof CreateWebhookSchema>;
|
|
934
1618
|
declare const WebhookSchema: z.ZodObject<{
|
|
935
1619
|
id: z.ZodString;
|
|
936
1620
|
url: z.ZodString;
|
|
@@ -1024,9 +1708,9 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1024
1708
|
status: "pending" | "failed" | "delivered";
|
|
1025
1709
|
id: string;
|
|
1026
1710
|
createdAt: string;
|
|
1711
|
+
attempts: number;
|
|
1027
1712
|
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed";
|
|
1028
1713
|
webhookId: string;
|
|
1029
|
-
attempts: number;
|
|
1030
1714
|
responseCode: number | null;
|
|
1031
1715
|
nextRetryAt: string | null;
|
|
1032
1716
|
deliveredAt: string | null;
|
|
@@ -1034,9 +1718,9 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1034
1718
|
status: "pending" | "failed" | "delivered";
|
|
1035
1719
|
id: string;
|
|
1036
1720
|
createdAt: string;
|
|
1721
|
+
attempts: number;
|
|
1037
1722
|
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed";
|
|
1038
1723
|
webhookId: string;
|
|
1039
|
-
attempts: number;
|
|
1040
1724
|
responseCode: number | null;
|
|
1041
1725
|
nextRetryAt: string | null;
|
|
1042
1726
|
deliveredAt: string | null;
|
|
@@ -1053,6 +1737,7 @@ declare const ListWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1053
1737
|
cursor?: string | undefined;
|
|
1054
1738
|
}>;
|
|
1055
1739
|
type ListWebhookDeliveriesInput = z.infer<typeof ListWebhookDeliveriesSchema>;
|
|
1740
|
+
type ListWebhookDeliveriesRequest = z.input<typeof ListWebhookDeliveriesSchema>;
|
|
1056
1741
|
declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
1057
1742
|
data: z.ZodArray<z.ZodObject<{
|
|
1058
1743
|
id: z.ZodString;
|
|
@@ -1068,9 +1753,9 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1068
1753
|
status: "pending" | "failed" | "delivered";
|
|
1069
1754
|
id: string;
|
|
1070
1755
|
createdAt: string;
|
|
1756
|
+
attempts: number;
|
|
1071
1757
|
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed";
|
|
1072
1758
|
webhookId: string;
|
|
1073
|
-
attempts: number;
|
|
1074
1759
|
responseCode: number | null;
|
|
1075
1760
|
nextRetryAt: string | null;
|
|
1076
1761
|
deliveredAt: string | null;
|
|
@@ -1078,9 +1763,9 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1078
1763
|
status: "pending" | "failed" | "delivered";
|
|
1079
1764
|
id: string;
|
|
1080
1765
|
createdAt: string;
|
|
1766
|
+
attempts: number;
|
|
1081
1767
|
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed";
|
|
1082
1768
|
webhookId: string;
|
|
1083
|
-
attempts: number;
|
|
1084
1769
|
responseCode: number | null;
|
|
1085
1770
|
nextRetryAt: string | null;
|
|
1086
1771
|
deliveredAt: string | null;
|
|
@@ -1092,9 +1777,9 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1092
1777
|
status: "pending" | "failed" | "delivered";
|
|
1093
1778
|
id: string;
|
|
1094
1779
|
createdAt: string;
|
|
1780
|
+
attempts: number;
|
|
1095
1781
|
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed";
|
|
1096
1782
|
webhookId: string;
|
|
1097
|
-
attempts: number;
|
|
1098
1783
|
responseCode: number | null;
|
|
1099
1784
|
nextRetryAt: string | null;
|
|
1100
1785
|
deliveredAt: string | null;
|
|
@@ -1106,9 +1791,9 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1106
1791
|
status: "pending" | "failed" | "delivered";
|
|
1107
1792
|
id: string;
|
|
1108
1793
|
createdAt: string;
|
|
1794
|
+
attempts: number;
|
|
1109
1795
|
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed";
|
|
1110
1796
|
webhookId: string;
|
|
1111
|
-
attempts: number;
|
|
1112
1797
|
responseCode: number | null;
|
|
1113
1798
|
nextRetryAt: string | null;
|
|
1114
1799
|
deliveredAt: string | null;
|
|
@@ -1169,6 +1854,7 @@ declare const ListApiKeysSchema: z.ZodObject<{
|
|
|
1169
1854
|
cursor?: string | undefined;
|
|
1170
1855
|
}>;
|
|
1171
1856
|
type ListApiKeysInput = z.infer<typeof ListApiKeysSchema>;
|
|
1857
|
+
type ListApiKeysRequest = z.input<typeof ListApiKeysSchema>;
|
|
1172
1858
|
declare const PaginatedApiKeysSchema: z.ZodObject<{
|
|
1173
1859
|
data: z.ZodArray<z.ZodObject<{
|
|
1174
1860
|
id: z.ZodString;
|
|
@@ -1372,7 +2058,7 @@ declare const OrganizationWithRoleSchema: z.ZodObject<{
|
|
|
1372
2058
|
}, "strip", z.ZodTypeAny, {
|
|
1373
2059
|
id: string;
|
|
1374
2060
|
createdAt: string;
|
|
1375
|
-
role: "
|
|
2061
|
+
role: "member" | "owner" | "admin";
|
|
1376
2062
|
name: string;
|
|
1377
2063
|
payoutAddress: string | null;
|
|
1378
2064
|
currentFeePercent: number;
|
|
@@ -1380,7 +2066,7 @@ declare const OrganizationWithRoleSchema: z.ZodObject<{
|
|
|
1380
2066
|
}, {
|
|
1381
2067
|
id: string;
|
|
1382
2068
|
createdAt: string;
|
|
1383
|
-
role: "
|
|
2069
|
+
role: "member" | "owner" | "admin";
|
|
1384
2070
|
name: string;
|
|
1385
2071
|
payoutAddress: string | null;
|
|
1386
2072
|
currentFeePercent: number;
|
|
@@ -1400,7 +2086,7 @@ declare const PaginatedOrganizationsSchema: z.ZodObject<{
|
|
|
1400
2086
|
}, "strip", z.ZodTypeAny, {
|
|
1401
2087
|
id: string;
|
|
1402
2088
|
createdAt: string;
|
|
1403
|
-
role: "
|
|
2089
|
+
role: "member" | "owner" | "admin";
|
|
1404
2090
|
name: string;
|
|
1405
2091
|
payoutAddress: string | null;
|
|
1406
2092
|
currentFeePercent: number;
|
|
@@ -1408,7 +2094,7 @@ declare const PaginatedOrganizationsSchema: z.ZodObject<{
|
|
|
1408
2094
|
}, {
|
|
1409
2095
|
id: string;
|
|
1410
2096
|
createdAt: string;
|
|
1411
|
-
role: "
|
|
2097
|
+
role: "member" | "owner" | "admin";
|
|
1412
2098
|
name: string;
|
|
1413
2099
|
payoutAddress: string | null;
|
|
1414
2100
|
currentFeePercent: number;
|
|
@@ -1420,7 +2106,7 @@ declare const PaginatedOrganizationsSchema: z.ZodObject<{
|
|
|
1420
2106
|
data: {
|
|
1421
2107
|
id: string;
|
|
1422
2108
|
createdAt: string;
|
|
1423
|
-
role: "
|
|
2109
|
+
role: "member" | "owner" | "admin";
|
|
1424
2110
|
name: string;
|
|
1425
2111
|
payoutAddress: string | null;
|
|
1426
2112
|
currentFeePercent: number;
|
|
@@ -1432,7 +2118,7 @@ declare const PaginatedOrganizationsSchema: z.ZodObject<{
|
|
|
1432
2118
|
data: {
|
|
1433
2119
|
id: string;
|
|
1434
2120
|
createdAt: string;
|
|
1435
|
-
role: "
|
|
2121
|
+
role: "member" | "owner" | "admin";
|
|
1436
2122
|
name: string;
|
|
1437
2123
|
payoutAddress: string | null;
|
|
1438
2124
|
currentFeePercent: number;
|
|
@@ -1453,18 +2139,20 @@ declare const ListOrganizationsSchema: z.ZodObject<{
|
|
|
1453
2139
|
cursor?: string | undefined;
|
|
1454
2140
|
}>;
|
|
1455
2141
|
type ListOrganizationsInput = z.infer<typeof ListOrganizationsSchema>;
|
|
2142
|
+
type ListOrganizationsRequest = z.input<typeof ListOrganizationsSchema>;
|
|
1456
2143
|
|
|
1457
2144
|
declare const InviteUserSchema: z.ZodObject<{
|
|
1458
2145
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
1459
2146
|
role: z.ZodDefault<z.ZodEnum<["owner", "admin", "member"]>>;
|
|
1460
2147
|
}, "strip", z.ZodTypeAny, {
|
|
1461
|
-
role: "
|
|
2148
|
+
role: "member" | "owner" | "admin";
|
|
1462
2149
|
email: string;
|
|
1463
2150
|
}, {
|
|
1464
2151
|
email: string;
|
|
1465
|
-
role?: "
|
|
2152
|
+
role?: "member" | "owner" | "admin" | undefined;
|
|
1466
2153
|
}>;
|
|
1467
2154
|
type InviteUserInput = z.infer<typeof InviteUserSchema>;
|
|
2155
|
+
type InviteUserRequest = z.input<typeof InviteUserSchema>;
|
|
1468
2156
|
declare const AcceptInvitationSchema: z.ZodObject<{
|
|
1469
2157
|
token: z.ZodString;
|
|
1470
2158
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -1488,7 +2176,7 @@ declare const InvitationSchema: z.ZodObject<{
|
|
|
1488
2176
|
id: string;
|
|
1489
2177
|
createdAt: string;
|
|
1490
2178
|
expiresAt: string;
|
|
1491
|
-
role: "
|
|
2179
|
+
role: "member" | "owner" | "admin";
|
|
1492
2180
|
email: string;
|
|
1493
2181
|
organizationId: string;
|
|
1494
2182
|
invitedByUserId: string;
|
|
@@ -1496,7 +2184,7 @@ declare const InvitationSchema: z.ZodObject<{
|
|
|
1496
2184
|
id: string;
|
|
1497
2185
|
createdAt: string;
|
|
1498
2186
|
expiresAt: string;
|
|
1499
|
-
role: "
|
|
2187
|
+
role: "member" | "owner" | "admin";
|
|
1500
2188
|
email: string;
|
|
1501
2189
|
organizationId: string;
|
|
1502
2190
|
invitedByUserId: string;
|
|
@@ -1527,10 +2215,10 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
1527
2215
|
amount?: number | undefined;
|
|
1528
2216
|
source?: "moralis_webhook" | "reconciliation_job" | "sandbox" | undefined;
|
|
1529
2217
|
txHash?: string | undefined;
|
|
1530
|
-
|
|
2218
|
+
causedTransition?: boolean | undefined;
|
|
1531
2219
|
attempts?: number | undefined;
|
|
2220
|
+
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed" | undefined;
|
|
1532
2221
|
responseCode?: number | null | undefined;
|
|
1533
|
-
causedTransition?: boolean | undefined;
|
|
1534
2222
|
}, {
|
|
1535
2223
|
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
1536
2224
|
at: string;
|
|
@@ -1539,10 +2227,10 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
1539
2227
|
amount?: number | undefined;
|
|
1540
2228
|
source?: "moralis_webhook" | "reconciliation_job" | "sandbox" | undefined;
|
|
1541
2229
|
txHash?: string | undefined;
|
|
1542
|
-
|
|
2230
|
+
causedTransition?: boolean | undefined;
|
|
1543
2231
|
attempts?: number | undefined;
|
|
2232
|
+
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.paused" | "charge.reactivated" | "charge.contribution_received" | "charge.contribution_settled" | "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed" | undefined;
|
|
1544
2233
|
responseCode?: number | null | undefined;
|
|
1545
|
-
causedTransition?: boolean | undefined;
|
|
1546
2234
|
}>;
|
|
1547
2235
|
type TimelineEvent = z.infer<typeof TimelineEventSchema>;
|
|
1548
2236
|
|
|
@@ -1793,4 +2481,4 @@ declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
1793
2481
|
}>;
|
|
1794
2482
|
type Capabilities = z.infer<typeof CapabilitiesSchema>;
|
|
1795
2483
|
|
|
1796
|
-
export { type AcceptInvitationInput, AcceptInvitationSchema, type AcceptedPayment, AcceptedPaymentSchema, AccountWebhookEventTypeSchema, type ApiKey, type ApiKeyEventData, ApiKeySchema, type AuthEmailVerifiedData, type AuthLoginData, type AuthLoginFailedData, type AuthPasswordResetCompletedData, type AuthPasswordResetRequestedData, type AuthResponse, AuthResponseSchema, type AuthSuspiciousActivityData, CHARGE_ACCEPTED_PAYMENTS_MAX, CHARGE_AMOUNT_MAX, CHARGE_EXPIRES_IN_MAX_SECONDS, CHARGE_EXPIRES_IN_MIN_SECONDS, type Capabilities, CapabilitiesSchema, type Charge, type ChargeContributionReceivedData, type ChargeContributionSettledData, type ChargeMode, ChargeModeSchema, type ChargePausedData, type ChargeReactivatedData, ChargeSchema, type ChargeStatus, type ChargeStatusEvent, ChargeStatusEventSchema, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type CreateApiKeyInput, CreateApiKeySchema, type CreateChargeInput, CreateChargeSchema, type CreateWebhookInput, CreateWebhookSchema, EVENT_CATEGORY_MAP, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, type FeeTierUpdatedData, type ForgotPasswordInput, ForgotPasswordSchema, type Health, HealthSchema, type Invitation, InvitationSchema, type InviteUserInput, InviteUserSchema, type ListApiKeysInput, ListApiKeysSchema, type ListChargesInput, ListChargesSchema, type ListOrganizationsInput, ListOrganizationsSchema, type ListUsersInput, ListUsersSchema, type ListWebhookDeliveriesInput, ListWebhookDeliveriesSchema, type LoginInput, LoginSchema, type MemberEventData, type MemberInvitedData, type MemberRoleChangedData, type MessageResponse, MessageResponseSchema, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, type NonChargeTriggerableEvent, NonChargeTriggerableEventSchema, NormalizedEmailSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, type Organization, OrganizationSchema, type OrganizationWithRole, OrganizationWithRoleSchema, PAGINATION_LIMIT_DEFAULT, PAGINATION_LIMIT_MAX, PAGINATION_LIMIT_MIN, type PaginatedApiKeys, PaginatedApiKeysSchema, type PaginatedCharges, PaginatedChargesSchema, type PaginatedOrganizations, PaginatedOrganizationsSchema, type PaginatedUsers, PaginatedUsersSchema, type PaginatedWebhookDeliveries, PaginatedWebhookDeliveriesSchema, type PaginationQuery, PaginationQuerySchema, type PayoutAddressChangedData, type PendingDistribution, type PendingDistributionEvent, PendingDistributionEventSchema, PendingDistributionRecipientSchema, PendingDistributionSchema, type ResetPasswordInput, ResetPasswordSchema, type SandboxEventTriggerInput, SandboxEventTriggerSchema, type SandboxTriggerInput, SandboxTriggerSchema, SecurityWebhookEventTypeSchema, type SettlementStatus, SettlementStatusSchema, type SignupInput, SignupSchema, type SplitRecipientRole, SplitRecipientRoleSchema, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, type TransactionSource, TransactionSourceSchema, type TriggerableChargeEvent, TriggerableChargeEventSchema, type TypedWebhookPayload, type UpdateOrganizationInput, UpdateOrganizationSchema, type UpdateUserRoleInput, UpdateUserRoleSchema, type User, type UserRole, UserRoleSchema, UserSchema, type VerifyCharge, VerifyChargeSchema, type VerifyEmailInput, VerifyEmailSchema, type VerifyPayment, VerifyPaymentSchema, VerifySplitEntrySchema, WEBHOOK_EVENTS_WILDCARD, WEBHOOK_EVENT_CATEGORIES, type Webhook, type WebhookCategory, WebhookCategorySchema, type WebhookConfigEventData, type WebhookDelivery, WebhookDeliveryEventTypeSchema, WebhookDeliverySchema, type WebhookDeliveryStatus, WebhookDeliveryStatusSchema, type WebhookEventDataMap, type WebhookEventType, WebhookEventTypeSchema, type WebhookHealthEventData, type WebhookListItem, WebhookListItemSchema, type WebhookPayload, WebhookPayloadSchema, WebhookSchema, paginatedSchema };
|
|
2484
|
+
export { type AcceptInvitationInput, AcceptInvitationSchema, type AcceptedPayment, AcceptedPaymentSchema, AccountWebhookEventTypeSchema, type ApiKey, type ApiKeyEventData, ApiKeySchema, type AuthEmailVerifiedData, type AuthLoginData, type AuthLoginFailedData, type AuthPasswordResetCompletedData, type AuthPasswordResetRequestedData, type AuthResponse, AuthResponseSchema, type AuthSuspiciousActivityData, CHARGE_ACCEPTED_PAYMENTS_MAX, CHARGE_AMOUNT_MAX, CHARGE_EXPIRES_IN_MAX_SECONDS, CHARGE_EXPIRES_IN_MIN_SECONDS, type Capabilities, CapabilitiesSchema, type Charge, type ChargeContributionReceivedData, type ChargeContributionSettledData, type ChargeMode, ChargeModeSchema, type ChargePausedData, type ChargeReactivatedData, ChargeSchema, type ChargeStatus, type ChargeStatusEvent, ChargeStatusEventSchema, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CreateApiKeyInput, CreateApiKeySchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, type CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, type FeeTierUpdatedData, type ForgotPasswordInput, ForgotPasswordSchema, type Health, HealthSchema, type Invitation, InvitationSchema, type InviteUserInput, type InviteUserRequest, InviteUserSchema, type ListApiKeysInput, type ListApiKeysRequest, ListApiKeysSchema, type ListChargesInput, type ListChargesRequest, ListChargesSchema, type ListOrganizationsInput, type ListOrganizationsRequest, ListOrganizationsSchema, type ListUsersInput, type ListUsersRequest, ListUsersSchema, type ListWebhookDeliveriesInput, type ListWebhookDeliveriesRequest, ListWebhookDeliveriesSchema, type LoginInput, LoginSchema, MAX_METRICS_QUERY_DATE_RANGE_DAYS, METRICS_QUERY_DEFAULT_ROW_LIMIT, METRICS_QUERY_MAX_FILTERS, METRICS_QUERY_MAX_GROUP_BY, METRICS_QUERY_MAX_METRICS, METRICS_QUERY_MAX_ROW_LIMIT, type MemberEventData, type MemberInvitedData, type MemberRoleChangedData, type MessageResponse, MessageResponseSchema, type MetricsAggregation, MetricsAggregationSchema, type MetricsDateGranularity, MetricsDateGranularitySchema, type MetricsFilterOperator, MetricsFilterOperatorSchema, type MetricsQuery, type MetricsQueryRequest, type MetricsQueryResult, type MetricsQueryResultRow, MetricsQueryResultRowSchema, MetricsQueryResultSchema, MetricsQuerySchema, type MetricsQueryScope, MetricsQueryScopeSchema, type MetricsResource, MetricsResourceSchema, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, type NonChargeTriggerableEvent, NonChargeTriggerableEventSchema, NormalizedEmailSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, type Organization, OrganizationSchema, type OrganizationWithRole, OrganizationWithRoleSchema, PAGINATION_LIMIT_DEFAULT, PAGINATION_LIMIT_MAX, PAGINATION_LIMIT_MIN, type PaginatedApiKeys, PaginatedApiKeysSchema, type PaginatedCharges, PaginatedChargesSchema, type PaginatedOrganizations, PaginatedOrganizationsSchema, type PaginatedUsers, PaginatedUsersSchema, type PaginatedWebhookDeliveries, PaginatedWebhookDeliveriesSchema, type PaginationQuery, type PaginationQueryRequest, PaginationQuerySchema, type PayoutAddressChangedData, type PendingDistribution, type PendingDistributionEvent, PendingDistributionEventSchema, PendingDistributionRecipientSchema, PendingDistributionSchema, type ResetPasswordInput, ResetPasswordSchema, type SandboxEventTriggerInput, SandboxEventTriggerSchema, type SandboxTriggerInput, SandboxTriggerSchema, SecurityWebhookEventTypeSchema, type SettlementStatus, SettlementStatusSchema, type SignupInput, SignupSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, type SplitRecipientRole, SplitRecipientRoleSchema, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, type TransactionSource, TransactionSourceSchema, type TransactionsDateField, TransactionsDateFieldSchema, type TransactionsMetricField, TransactionsMetricFieldSchema, type TransactionsQueryField, TransactionsQueryFieldSchema, type TriggerableChargeEvent, TriggerableChargeEventSchema, type TypedWebhookPayload, type UpdateOrganizationInput, UpdateOrganizationSchema, type UpdateUserRoleInput, UpdateUserRoleSchema, type User, type UserRole, UserRoleSchema, UserSchema, type VerifyCharge, VerifyChargeSchema, type VerifyEmailInput, VerifyEmailSchema, type VerifyPayment, VerifyPaymentSchema, VerifySplitEntrySchema, WEBHOOK_EVENTS_WILDCARD, WEBHOOK_EVENT_CATEGORIES, type Webhook, type WebhookCategory, WebhookCategorySchema, type WebhookConfigEventData, type WebhookDelivery, WebhookDeliveryEventTypeSchema, WebhookDeliverySchema, type WebhookDeliveryStatus, WebhookDeliveryStatusSchema, type WebhookEventDataMap, type WebhookEventType, WebhookEventTypeSchema, type WebhookHealthEventData, type WebhookListItem, WebhookListItemSchema, type WebhookPayload, WebhookPayloadSchema, WebhookSchema, paginatedSchema };
|