@layer-drone/protocol 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +120 -30
- package/dist/index.d.ts +120 -30
- package/dist/index.js +20 -5
- package/dist/index.mjs +20 -5
- package/package.json +1 -1
- package/src/event/types.gen.ts +16 -5
package/dist/index.d.mts
CHANGED
|
@@ -846,9 +846,45 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
846
846
|
event_type: z.ZodLiteral<"protocol.mission.created">;
|
|
847
847
|
timestamp: z.ZodAny;
|
|
848
848
|
data: z.ZodObject<{
|
|
849
|
-
id: z.
|
|
850
|
-
|
|
851
|
-
|
|
849
|
+
id: z.ZodEffects<z.ZodObject<{
|
|
850
|
+
__type: z.ZodLiteral<"bigint">;
|
|
851
|
+
value: z.ZodString;
|
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
value: string;
|
|
854
|
+
__type: "bigint";
|
|
855
|
+
}, {
|
|
856
|
+
value: string;
|
|
857
|
+
__type: "bigint";
|
|
858
|
+
}>, bigint, {
|
|
859
|
+
value: string;
|
|
860
|
+
__type: "bigint";
|
|
861
|
+
}>;
|
|
862
|
+
vaultId: z.ZodEffects<z.ZodObject<{
|
|
863
|
+
__type: z.ZodLiteral<"bigint">;
|
|
864
|
+
value: z.ZodString;
|
|
865
|
+
}, "strip", z.ZodTypeAny, {
|
|
866
|
+
value: string;
|
|
867
|
+
__type: "bigint";
|
|
868
|
+
}, {
|
|
869
|
+
value: string;
|
|
870
|
+
__type: "bigint";
|
|
871
|
+
}>, bigint, {
|
|
872
|
+
value: string;
|
|
873
|
+
__type: "bigint";
|
|
874
|
+
}>;
|
|
875
|
+
amount: z.ZodEffects<z.ZodObject<{
|
|
876
|
+
__type: z.ZodLiteral<"bigint">;
|
|
877
|
+
value: z.ZodString;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
value: string;
|
|
880
|
+
__type: "bigint";
|
|
881
|
+
}, {
|
|
882
|
+
value: string;
|
|
883
|
+
__type: "bigint";
|
|
884
|
+
}>, bigint, {
|
|
885
|
+
value: string;
|
|
886
|
+
__type: "bigint";
|
|
887
|
+
}>;
|
|
852
888
|
zoneId: z.ZodString;
|
|
853
889
|
flightPlanId: z.ZodNumber;
|
|
854
890
|
captureStartTime: z.ZodString;
|
|
@@ -856,9 +892,9 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
856
892
|
detailsHash: z.ZodString;
|
|
857
893
|
requestor: z.ZodString;
|
|
858
894
|
}, "strict", z.ZodTypeAny, {
|
|
859
|
-
id:
|
|
860
|
-
vaultId:
|
|
861
|
-
amount:
|
|
895
|
+
id: bigint;
|
|
896
|
+
vaultId: bigint;
|
|
897
|
+
amount: bigint;
|
|
862
898
|
zoneId: string;
|
|
863
899
|
flightPlanId: number;
|
|
864
900
|
captureStartTime: string;
|
|
@@ -866,9 +902,18 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
866
902
|
detailsHash: string;
|
|
867
903
|
requestor: string;
|
|
868
904
|
}, {
|
|
869
|
-
id:
|
|
870
|
-
|
|
871
|
-
|
|
905
|
+
id: {
|
|
906
|
+
value: string;
|
|
907
|
+
__type: "bigint";
|
|
908
|
+
};
|
|
909
|
+
vaultId: {
|
|
910
|
+
value: string;
|
|
911
|
+
__type: "bigint";
|
|
912
|
+
};
|
|
913
|
+
amount: {
|
|
914
|
+
value: string;
|
|
915
|
+
__type: "bigint";
|
|
916
|
+
};
|
|
872
917
|
zoneId: string;
|
|
873
918
|
flightPlanId: number;
|
|
874
919
|
captureStartTime: string;
|
|
@@ -878,9 +923,9 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
878
923
|
}>;
|
|
879
924
|
}, "strict", z.ZodTypeAny, {
|
|
880
925
|
data: {
|
|
881
|
-
id:
|
|
882
|
-
vaultId:
|
|
883
|
-
amount:
|
|
926
|
+
id: bigint;
|
|
927
|
+
vaultId: bigint;
|
|
928
|
+
amount: bigint;
|
|
884
929
|
zoneId: string;
|
|
885
930
|
flightPlanId: number;
|
|
886
931
|
captureStartTime: string;
|
|
@@ -893,9 +938,18 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
893
938
|
timestamp?: any;
|
|
894
939
|
}, {
|
|
895
940
|
data: {
|
|
896
|
-
id:
|
|
897
|
-
|
|
898
|
-
|
|
941
|
+
id: {
|
|
942
|
+
value: string;
|
|
943
|
+
__type: "bigint";
|
|
944
|
+
};
|
|
945
|
+
vaultId: {
|
|
946
|
+
value: string;
|
|
947
|
+
__type: "bigint";
|
|
948
|
+
};
|
|
949
|
+
amount: {
|
|
950
|
+
value: string;
|
|
951
|
+
__type: "bigint";
|
|
952
|
+
};
|
|
899
953
|
zoneId: string;
|
|
900
954
|
flightPlanId: number;
|
|
901
955
|
captureStartTime: string;
|
|
@@ -911,22 +965,52 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
911
965
|
event_type: z.ZodLiteral<"protocol.mission.updated">;
|
|
912
966
|
timestamp: z.ZodAny;
|
|
913
967
|
data: z.ZodObject<{
|
|
914
|
-
id: z.
|
|
915
|
-
|
|
968
|
+
id: z.ZodEffects<z.ZodObject<{
|
|
969
|
+
__type: z.ZodLiteral<"bigint">;
|
|
970
|
+
value: z.ZodString;
|
|
971
|
+
}, "strip", z.ZodTypeAny, {
|
|
972
|
+
value: string;
|
|
973
|
+
__type: "bigint";
|
|
974
|
+
}, {
|
|
975
|
+
value: string;
|
|
976
|
+
__type: "bigint";
|
|
977
|
+
}>, bigint, {
|
|
978
|
+
value: string;
|
|
979
|
+
__type: "bigint";
|
|
980
|
+
}>;
|
|
981
|
+
amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
982
|
+
__type: z.ZodLiteral<"bigint">;
|
|
983
|
+
value: z.ZodString;
|
|
984
|
+
}, "strip", z.ZodTypeAny, {
|
|
985
|
+
value: string;
|
|
986
|
+
__type: "bigint";
|
|
987
|
+
}, {
|
|
988
|
+
value: string;
|
|
989
|
+
__type: "bigint";
|
|
990
|
+
}>, bigint, {
|
|
991
|
+
value: string;
|
|
992
|
+
__type: "bigint";
|
|
993
|
+
}>>;
|
|
916
994
|
isOpen: z.ZodOptional<z.ZodBoolean>;
|
|
917
995
|
}, "strict", z.ZodTypeAny, {
|
|
918
|
-
id:
|
|
919
|
-
amount?:
|
|
996
|
+
id: bigint;
|
|
997
|
+
amount?: bigint | undefined;
|
|
920
998
|
isOpen?: boolean | undefined;
|
|
921
999
|
}, {
|
|
922
|
-
id:
|
|
923
|
-
|
|
1000
|
+
id: {
|
|
1001
|
+
value: string;
|
|
1002
|
+
__type: "bigint";
|
|
1003
|
+
};
|
|
1004
|
+
amount?: {
|
|
1005
|
+
value: string;
|
|
1006
|
+
__type: "bigint";
|
|
1007
|
+
} | undefined;
|
|
924
1008
|
isOpen?: boolean | undefined;
|
|
925
1009
|
}>;
|
|
926
1010
|
}, "strict", z.ZodTypeAny, {
|
|
927
1011
|
data: {
|
|
928
|
-
id:
|
|
929
|
-
amount?:
|
|
1012
|
+
id: bigint;
|
|
1013
|
+
amount?: bigint | undefined;
|
|
930
1014
|
isOpen?: boolean | undefined;
|
|
931
1015
|
};
|
|
932
1016
|
event_type: "protocol.mission.updated";
|
|
@@ -934,8 +1018,14 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
934
1018
|
timestamp?: any;
|
|
935
1019
|
}, {
|
|
936
1020
|
data: {
|
|
937
|
-
id:
|
|
938
|
-
|
|
1021
|
+
id: {
|
|
1022
|
+
value: string;
|
|
1023
|
+
__type: "bigint";
|
|
1024
|
+
};
|
|
1025
|
+
amount?: {
|
|
1026
|
+
value: string;
|
|
1027
|
+
__type: "bigint";
|
|
1028
|
+
} | undefined;
|
|
939
1029
|
isOpen?: boolean | undefined;
|
|
940
1030
|
};
|
|
941
1031
|
event_type: "protocol.mission.updated";
|
|
@@ -1023,9 +1113,9 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1023
1113
|
timestamp?: any;
|
|
1024
1114
|
} | {
|
|
1025
1115
|
data: {
|
|
1026
|
-
id:
|
|
1027
|
-
vaultId:
|
|
1028
|
-
amount:
|
|
1116
|
+
id: bigint;
|
|
1117
|
+
vaultId: bigint;
|
|
1118
|
+
amount: bigint;
|
|
1029
1119
|
zoneId: string;
|
|
1030
1120
|
flightPlanId: number;
|
|
1031
1121
|
captureStartTime: string;
|
|
@@ -1038,8 +1128,8 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1038
1128
|
timestamp?: any;
|
|
1039
1129
|
} | {
|
|
1040
1130
|
data: {
|
|
1041
|
-
id:
|
|
1042
|
-
amount?:
|
|
1131
|
+
id: bigint;
|
|
1132
|
+
amount?: bigint | undefined;
|
|
1043
1133
|
isOpen?: boolean | undefined;
|
|
1044
1134
|
};
|
|
1045
1135
|
event_type: "protocol.mission.updated";
|
package/dist/index.d.ts
CHANGED
|
@@ -846,9 +846,45 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
846
846
|
event_type: z.ZodLiteral<"protocol.mission.created">;
|
|
847
847
|
timestamp: z.ZodAny;
|
|
848
848
|
data: z.ZodObject<{
|
|
849
|
-
id: z.
|
|
850
|
-
|
|
851
|
-
|
|
849
|
+
id: z.ZodEffects<z.ZodObject<{
|
|
850
|
+
__type: z.ZodLiteral<"bigint">;
|
|
851
|
+
value: z.ZodString;
|
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
value: string;
|
|
854
|
+
__type: "bigint";
|
|
855
|
+
}, {
|
|
856
|
+
value: string;
|
|
857
|
+
__type: "bigint";
|
|
858
|
+
}>, bigint, {
|
|
859
|
+
value: string;
|
|
860
|
+
__type: "bigint";
|
|
861
|
+
}>;
|
|
862
|
+
vaultId: z.ZodEffects<z.ZodObject<{
|
|
863
|
+
__type: z.ZodLiteral<"bigint">;
|
|
864
|
+
value: z.ZodString;
|
|
865
|
+
}, "strip", z.ZodTypeAny, {
|
|
866
|
+
value: string;
|
|
867
|
+
__type: "bigint";
|
|
868
|
+
}, {
|
|
869
|
+
value: string;
|
|
870
|
+
__type: "bigint";
|
|
871
|
+
}>, bigint, {
|
|
872
|
+
value: string;
|
|
873
|
+
__type: "bigint";
|
|
874
|
+
}>;
|
|
875
|
+
amount: z.ZodEffects<z.ZodObject<{
|
|
876
|
+
__type: z.ZodLiteral<"bigint">;
|
|
877
|
+
value: z.ZodString;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
value: string;
|
|
880
|
+
__type: "bigint";
|
|
881
|
+
}, {
|
|
882
|
+
value: string;
|
|
883
|
+
__type: "bigint";
|
|
884
|
+
}>, bigint, {
|
|
885
|
+
value: string;
|
|
886
|
+
__type: "bigint";
|
|
887
|
+
}>;
|
|
852
888
|
zoneId: z.ZodString;
|
|
853
889
|
flightPlanId: z.ZodNumber;
|
|
854
890
|
captureStartTime: z.ZodString;
|
|
@@ -856,9 +892,9 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
856
892
|
detailsHash: z.ZodString;
|
|
857
893
|
requestor: z.ZodString;
|
|
858
894
|
}, "strict", z.ZodTypeAny, {
|
|
859
|
-
id:
|
|
860
|
-
vaultId:
|
|
861
|
-
amount:
|
|
895
|
+
id: bigint;
|
|
896
|
+
vaultId: bigint;
|
|
897
|
+
amount: bigint;
|
|
862
898
|
zoneId: string;
|
|
863
899
|
flightPlanId: number;
|
|
864
900
|
captureStartTime: string;
|
|
@@ -866,9 +902,18 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
866
902
|
detailsHash: string;
|
|
867
903
|
requestor: string;
|
|
868
904
|
}, {
|
|
869
|
-
id:
|
|
870
|
-
|
|
871
|
-
|
|
905
|
+
id: {
|
|
906
|
+
value: string;
|
|
907
|
+
__type: "bigint";
|
|
908
|
+
};
|
|
909
|
+
vaultId: {
|
|
910
|
+
value: string;
|
|
911
|
+
__type: "bigint";
|
|
912
|
+
};
|
|
913
|
+
amount: {
|
|
914
|
+
value: string;
|
|
915
|
+
__type: "bigint";
|
|
916
|
+
};
|
|
872
917
|
zoneId: string;
|
|
873
918
|
flightPlanId: number;
|
|
874
919
|
captureStartTime: string;
|
|
@@ -878,9 +923,9 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
878
923
|
}>;
|
|
879
924
|
}, "strict", z.ZodTypeAny, {
|
|
880
925
|
data: {
|
|
881
|
-
id:
|
|
882
|
-
vaultId:
|
|
883
|
-
amount:
|
|
926
|
+
id: bigint;
|
|
927
|
+
vaultId: bigint;
|
|
928
|
+
amount: bigint;
|
|
884
929
|
zoneId: string;
|
|
885
930
|
flightPlanId: number;
|
|
886
931
|
captureStartTime: string;
|
|
@@ -893,9 +938,18 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
893
938
|
timestamp?: any;
|
|
894
939
|
}, {
|
|
895
940
|
data: {
|
|
896
|
-
id:
|
|
897
|
-
|
|
898
|
-
|
|
941
|
+
id: {
|
|
942
|
+
value: string;
|
|
943
|
+
__type: "bigint";
|
|
944
|
+
};
|
|
945
|
+
vaultId: {
|
|
946
|
+
value: string;
|
|
947
|
+
__type: "bigint";
|
|
948
|
+
};
|
|
949
|
+
amount: {
|
|
950
|
+
value: string;
|
|
951
|
+
__type: "bigint";
|
|
952
|
+
};
|
|
899
953
|
zoneId: string;
|
|
900
954
|
flightPlanId: number;
|
|
901
955
|
captureStartTime: string;
|
|
@@ -911,22 +965,52 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
911
965
|
event_type: z.ZodLiteral<"protocol.mission.updated">;
|
|
912
966
|
timestamp: z.ZodAny;
|
|
913
967
|
data: z.ZodObject<{
|
|
914
|
-
id: z.
|
|
915
|
-
|
|
968
|
+
id: z.ZodEffects<z.ZodObject<{
|
|
969
|
+
__type: z.ZodLiteral<"bigint">;
|
|
970
|
+
value: z.ZodString;
|
|
971
|
+
}, "strip", z.ZodTypeAny, {
|
|
972
|
+
value: string;
|
|
973
|
+
__type: "bigint";
|
|
974
|
+
}, {
|
|
975
|
+
value: string;
|
|
976
|
+
__type: "bigint";
|
|
977
|
+
}>, bigint, {
|
|
978
|
+
value: string;
|
|
979
|
+
__type: "bigint";
|
|
980
|
+
}>;
|
|
981
|
+
amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
982
|
+
__type: z.ZodLiteral<"bigint">;
|
|
983
|
+
value: z.ZodString;
|
|
984
|
+
}, "strip", z.ZodTypeAny, {
|
|
985
|
+
value: string;
|
|
986
|
+
__type: "bigint";
|
|
987
|
+
}, {
|
|
988
|
+
value: string;
|
|
989
|
+
__type: "bigint";
|
|
990
|
+
}>, bigint, {
|
|
991
|
+
value: string;
|
|
992
|
+
__type: "bigint";
|
|
993
|
+
}>>;
|
|
916
994
|
isOpen: z.ZodOptional<z.ZodBoolean>;
|
|
917
995
|
}, "strict", z.ZodTypeAny, {
|
|
918
|
-
id:
|
|
919
|
-
amount?:
|
|
996
|
+
id: bigint;
|
|
997
|
+
amount?: bigint | undefined;
|
|
920
998
|
isOpen?: boolean | undefined;
|
|
921
999
|
}, {
|
|
922
|
-
id:
|
|
923
|
-
|
|
1000
|
+
id: {
|
|
1001
|
+
value: string;
|
|
1002
|
+
__type: "bigint";
|
|
1003
|
+
};
|
|
1004
|
+
amount?: {
|
|
1005
|
+
value: string;
|
|
1006
|
+
__type: "bigint";
|
|
1007
|
+
} | undefined;
|
|
924
1008
|
isOpen?: boolean | undefined;
|
|
925
1009
|
}>;
|
|
926
1010
|
}, "strict", z.ZodTypeAny, {
|
|
927
1011
|
data: {
|
|
928
|
-
id:
|
|
929
|
-
amount?:
|
|
1012
|
+
id: bigint;
|
|
1013
|
+
amount?: bigint | undefined;
|
|
930
1014
|
isOpen?: boolean | undefined;
|
|
931
1015
|
};
|
|
932
1016
|
event_type: "protocol.mission.updated";
|
|
@@ -934,8 +1018,14 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
934
1018
|
timestamp?: any;
|
|
935
1019
|
}, {
|
|
936
1020
|
data: {
|
|
937
|
-
id:
|
|
938
|
-
|
|
1021
|
+
id: {
|
|
1022
|
+
value: string;
|
|
1023
|
+
__type: "bigint";
|
|
1024
|
+
};
|
|
1025
|
+
amount?: {
|
|
1026
|
+
value: string;
|
|
1027
|
+
__type: "bigint";
|
|
1028
|
+
} | undefined;
|
|
939
1029
|
isOpen?: boolean | undefined;
|
|
940
1030
|
};
|
|
941
1031
|
event_type: "protocol.mission.updated";
|
|
@@ -1023,9 +1113,9 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1023
1113
|
timestamp?: any;
|
|
1024
1114
|
} | {
|
|
1025
1115
|
data: {
|
|
1026
|
-
id:
|
|
1027
|
-
vaultId:
|
|
1028
|
-
amount:
|
|
1116
|
+
id: bigint;
|
|
1117
|
+
vaultId: bigint;
|
|
1118
|
+
amount: bigint;
|
|
1029
1119
|
zoneId: string;
|
|
1030
1120
|
flightPlanId: number;
|
|
1031
1121
|
captureStartTime: string;
|
|
@@ -1038,8 +1128,8 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1038
1128
|
timestamp?: any;
|
|
1039
1129
|
} | {
|
|
1040
1130
|
data: {
|
|
1041
|
-
id:
|
|
1042
|
-
amount?:
|
|
1131
|
+
id: bigint;
|
|
1132
|
+
amount?: bigint | undefined;
|
|
1043
1133
|
isOpen?: boolean | undefined;
|
|
1044
1134
|
};
|
|
1045
1135
|
event_type: "protocol.mission.updated";
|
package/dist/index.js
CHANGED
|
@@ -1097,9 +1097,18 @@ var Event = import_zod.z.union([
|
|
|
1097
1097
|
event_type: import_zod.z.literal("protocol.mission.created"),
|
|
1098
1098
|
timestamp: import_zod.z.any(),
|
|
1099
1099
|
data: import_zod.z.object({
|
|
1100
|
-
id: import_zod.z.
|
|
1101
|
-
|
|
1102
|
-
|
|
1100
|
+
id: import_zod.z.object({
|
|
1101
|
+
__type: import_zod.z.literal("bigint"),
|
|
1102
|
+
value: import_zod.z.string()
|
|
1103
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1104
|
+
vaultId: import_zod.z.object({
|
|
1105
|
+
__type: import_zod.z.literal("bigint"),
|
|
1106
|
+
value: import_zod.z.string()
|
|
1107
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1108
|
+
amount: import_zod.z.object({
|
|
1109
|
+
__type: import_zod.z.literal("bigint"),
|
|
1110
|
+
value: import_zod.z.string()
|
|
1111
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1103
1112
|
zoneId: import_zod.z.string(),
|
|
1104
1113
|
flightPlanId: import_zod.z.number(),
|
|
1105
1114
|
captureStartTime: import_zod.z.string().datetime({
|
|
@@ -1117,8 +1126,14 @@ var Event = import_zod.z.union([
|
|
|
1117
1126
|
event_type: import_zod.z.literal("protocol.mission.updated"),
|
|
1118
1127
|
timestamp: import_zod.z.any(),
|
|
1119
1128
|
data: import_zod.z.object({
|
|
1120
|
-
id: import_zod.z.
|
|
1121
|
-
|
|
1129
|
+
id: import_zod.z.object({
|
|
1130
|
+
__type: import_zod.z.literal("bigint"),
|
|
1131
|
+
value: import_zod.z.string()
|
|
1132
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1133
|
+
amount: import_zod.z.object({
|
|
1134
|
+
__type: import_zod.z.literal("bigint"),
|
|
1135
|
+
value: import_zod.z.string()
|
|
1136
|
+
}).transform((wire) => BigInt(wire.value)).optional(),
|
|
1122
1137
|
isOpen: import_zod.z.boolean().optional()
|
|
1123
1138
|
}).strict()
|
|
1124
1139
|
}).strict(),
|
package/dist/index.mjs
CHANGED
|
@@ -1040,9 +1040,18 @@ var Event = z.union([
|
|
|
1040
1040
|
event_type: z.literal("protocol.mission.created"),
|
|
1041
1041
|
timestamp: z.any(),
|
|
1042
1042
|
data: z.object({
|
|
1043
|
-
id: z.
|
|
1044
|
-
|
|
1045
|
-
|
|
1043
|
+
id: z.object({
|
|
1044
|
+
__type: z.literal("bigint"),
|
|
1045
|
+
value: z.string()
|
|
1046
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1047
|
+
vaultId: z.object({
|
|
1048
|
+
__type: z.literal("bigint"),
|
|
1049
|
+
value: z.string()
|
|
1050
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1051
|
+
amount: z.object({
|
|
1052
|
+
__type: z.literal("bigint"),
|
|
1053
|
+
value: z.string()
|
|
1054
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1046
1055
|
zoneId: z.string(),
|
|
1047
1056
|
flightPlanId: z.number(),
|
|
1048
1057
|
captureStartTime: z.string().datetime({
|
|
@@ -1060,8 +1069,14 @@ var Event = z.union([
|
|
|
1060
1069
|
event_type: z.literal("protocol.mission.updated"),
|
|
1061
1070
|
timestamp: z.any(),
|
|
1062
1071
|
data: z.object({
|
|
1063
|
-
id: z.
|
|
1064
|
-
|
|
1072
|
+
id: z.object({
|
|
1073
|
+
__type: z.literal("bigint"),
|
|
1074
|
+
value: z.string()
|
|
1075
|
+
}).transform((wire) => BigInt(wire.value)),
|
|
1076
|
+
amount: z.object({
|
|
1077
|
+
__type: z.literal("bigint"),
|
|
1078
|
+
value: z.string()
|
|
1079
|
+
}).transform((wire) => BigInt(wire.value)).optional(),
|
|
1065
1080
|
isOpen: z.boolean().optional()
|
|
1066
1081
|
}).strict()
|
|
1067
1082
|
}).strict(),
|
package/package.json
CHANGED
package/src/event/types.gen.ts
CHANGED
|
@@ -32,9 +32,15 @@ export const Event = z.union([
|
|
|
32
32
|
timestamp: z.any(),
|
|
33
33
|
data: z
|
|
34
34
|
.object({
|
|
35
|
-
id: z
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
id: z
|
|
36
|
+
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
37
|
+
.transform((wire) => BigInt(wire.value)),
|
|
38
|
+
vaultId: z
|
|
39
|
+
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
40
|
+
.transform((wire) => BigInt(wire.value)),
|
|
41
|
+
amount: z
|
|
42
|
+
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
43
|
+
.transform((wire) => BigInt(wire.value)),
|
|
38
44
|
zoneId: z.string(),
|
|
39
45
|
flightPlanId: z.number(),
|
|
40
46
|
captureStartTime: z.string().datetime({ offset: true }),
|
|
@@ -52,8 +58,13 @@ export const Event = z.union([
|
|
|
52
58
|
timestamp: z.any(),
|
|
53
59
|
data: z
|
|
54
60
|
.object({
|
|
55
|
-
id: z
|
|
56
|
-
|
|
61
|
+
id: z
|
|
62
|
+
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
63
|
+
.transform((wire) => BigInt(wire.value)),
|
|
64
|
+
amount: z
|
|
65
|
+
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
66
|
+
.transform((wire) => BigInt(wire.value))
|
|
67
|
+
.optional(),
|
|
57
68
|
isOpen: z.boolean().optional(),
|
|
58
69
|
})
|
|
59
70
|
.strict(),
|