@layer-drone/protocol 0.1.1 → 0.1.2

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 CHANGED
@@ -1,3 +1,4 @@
1
+ import * as zod from 'zod';
1
2
  import { z } from 'zod';
2
3
  import { Request as Request$1 } from 'express';
3
4
 
@@ -7,16 +8,16 @@ type CreateApiTokenResponseDto = {
7
8
  deleted_at: Date;
8
9
  last_used: Date;
9
10
  org: number;
10
- scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
11
+ scopes: Array<"manageTokens" | "manageFlights" | "manageMissions" | "manageWebhooks" | "all">;
11
12
  };
12
13
  type CreateApiTokenRequestDto = {
13
14
  name: string;
14
- scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
15
+ scopes: Array<"manageTokens" | "manageFlights" | "manageMissions" | "manageWebhooks" | "all">;
15
16
  orgId: number;
16
17
  };
17
18
  type UpdateApiTokenRequestDto = {
18
19
  name?: string;
19
- scopes?: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
20
+ scopes?: Array<"manageTokens" | "manageFlights" | "manageMissions" | "manageWebhooks" | "all">;
20
21
  };
21
22
  type UpdateApiTokenResponseDto = {
22
23
  id: string;
@@ -24,7 +25,7 @@ type UpdateApiTokenResponseDto = {
24
25
  deleted_at: Date;
25
26
  last_used: Date;
26
27
  org: number;
27
- scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
28
+ scopes: Array<"manageTokens" | "manageFlights" | "manageMissions" | "manageWebhooks" | "all">;
28
29
  };
29
30
  type GetTimeLimitsForSunAltitudeResponse = {
30
31
  OptimalSunAltitudePeriod: {
@@ -205,6 +206,15 @@ type ApiControllerGetHelloData = {
205
206
  type ApiControllerGetHelloResponses = {
206
207
  200: unknown;
207
208
  };
209
+ type ApiControllerGetErrorData = {
210
+ body?: never;
211
+ path?: never;
212
+ query?: never;
213
+ url: "/debug-sentry";
214
+ };
215
+ type ApiControllerGetErrorResponses = {
216
+ 200: unknown;
217
+ };
208
218
  type ApiTokenControllerCreateTokenData = {
209
219
  body: CreateApiTokenRequestDto;
210
220
  path?: never;
@@ -360,6 +370,7 @@ type MissionsControllerCreateMissionsData = {
360
370
  };
361
371
  type MissionsControllerCreateMissionsErrors = {
362
372
  400: unknown;
373
+ 401: unknown;
363
374
  403: unknown;
364
375
  500: unknown;
365
376
  };
@@ -373,6 +384,10 @@ type MissionsControllerUpdateMissionsData = {
373
384
  query?: never;
374
385
  url: "/missions";
375
386
  };
387
+ type MissionsControllerUpdateMissionsErrors = {
388
+ 401: unknown;
389
+ 403: unknown;
390
+ };
376
391
  type MissionsControllerUpdateMissionsResponses = {
377
392
  200: UpdateMissionsResponseDto;
378
393
  };
@@ -727,6 +742,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
727
742
  meta?: Record<string, unknown>;
728
743
  };
729
744
  declare const apiControllerGetHello: <ThrowOnError extends boolean = false>(options?: Options<ApiControllerGetHelloData, ThrowOnError>) => RequestResult<ApiControllerGetHelloResponses, unknown, ThrowOnError, "fields">;
745
+ declare const apiControllerGetError: <ThrowOnError extends boolean = false>(options?: Options<ApiControllerGetErrorData, ThrowOnError>) => RequestResult<ApiControllerGetErrorResponses, unknown, ThrowOnError, "fields">;
730
746
  declare const apiTokenControllerCreateToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerCreateTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerCreateTokenResponses, ApiTokenControllerCreateTokenErrors, ThrowOnError, "fields">;
731
747
  declare const apiTokenControllerDeleteToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerDeleteTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerDeleteTokenResponses, ApiTokenControllerDeleteTokenErrors, ThrowOnError, "fields">;
732
748
  declare const apiTokenControllerGetToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerGetTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerGetTokenResponses, ApiTokenControllerGetTokenErrors, ThrowOnError, "fields">;
@@ -738,7 +754,7 @@ declare const flightsControllerCreatePresignedUrls: <ThrowOnError extends boolea
738
754
  declare const flightsControllerValidateFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerValidateFlightData, ThrowOnError>) => RequestResult<FlightsControllerValidateFlightResponses, FlightsControllerValidateFlightErrors, ThrowOnError, "fields">;
739
755
  declare const keysControllerGetProvenanceCryptoKey: <ThrowOnError extends boolean = false>(options?: Options<KeysControllerGetProvenanceCryptoKeyData, ThrowOnError>) => RequestResult<KeysControllerGetProvenanceCryptoKeyResponses, unknown, ThrowOnError, "fields">;
740
756
  declare const missionsControllerCreateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerCreateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerCreateMissionsResponses, MissionsControllerCreateMissionsErrors, ThrowOnError, "fields">;
741
- declare const missionsControllerUpdateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerUpdateMissionsResponses, unknown, ThrowOnError, "fields">;
757
+ declare const missionsControllerUpdateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerUpdateMissionsResponses, MissionsControllerUpdateMissionsErrors, ThrowOnError, "fields">;
742
758
  declare const quotesControllerCreateQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerCreateQuoteData, ThrowOnError>) => RequestResult<QuotesControllerCreateQuoteResponses, QuotesControllerCreateQuoteErrors, ThrowOnError, "fields">;
743
759
  declare const quotesControllerGetQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerGetQuoteData, ThrowOnError>) => RequestResult<QuotesControllerGetQuoteResponses, QuotesControllerGetQuoteErrors, ThrowOnError, "fields">;
744
760
  declare const schemaControllerGetEventSchema: <ThrowOnError extends boolean = false>(options?: Options<SchemaControllerGetEventSchemaData, ThrowOnError>) => RequestResult<SchemaControllerGetEventSchemaResponses, unknown, ThrowOnError, "fields">;
@@ -757,26 +773,34 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
757
773
  timestamp: z.ZodString;
758
774
  data: z.ZodObject<{
759
775
  message: z.ZodString;
760
- }, "strict", z.ZodTypeAny, {
761
- message: string;
762
- }, {
763
- message: string;
764
- }>;
765
- }, "strict", z.ZodTypeAny, {
766
- data: {
767
- message: string;
768
- };
769
- id: string;
770
- event_type: "test";
771
- timestamp: string;
772
- }, {
773
- data: {
774
- message: string;
775
- };
776
- id: string;
777
- event_type: "test";
778
- timestamp: string;
779
- }>, z.ZodObject<{
776
+ }, "strip", z.ZodAny, z.objectOutputType<{
777
+ message: z.ZodString;
778
+ }, z.ZodAny, "strip">, z.objectInputType<{
779
+ message: z.ZodString;
780
+ }, z.ZodAny, "strip">>;
781
+ }, "strip", z.ZodAny, z.objectOutputType<{
782
+ id: z.ZodString;
783
+ event_type: z.ZodLiteral<"test">;
784
+ timestamp: z.ZodString;
785
+ data: z.ZodObject<{
786
+ message: z.ZodString;
787
+ }, "strip", z.ZodAny, z.objectOutputType<{
788
+ message: z.ZodString;
789
+ }, z.ZodAny, "strip">, z.objectInputType<{
790
+ message: z.ZodString;
791
+ }, z.ZodAny, "strip">>;
792
+ }, z.ZodAny, "strip">, z.objectInputType<{
793
+ id: z.ZodString;
794
+ event_type: z.ZodLiteral<"test">;
795
+ timestamp: z.ZodString;
796
+ data: z.ZodObject<{
797
+ message: z.ZodString;
798
+ }, "strip", z.ZodAny, z.objectOutputType<{
799
+ message: z.ZodString;
800
+ }, z.ZodAny, "strip">, z.objectInputType<{
801
+ message: z.ZodString;
802
+ }, z.ZodAny, "strip">>;
803
+ }, z.ZodAny, "strip">>, z.ZodObject<{
780
804
  id: z.ZodString;
781
805
  event_type: z.ZodLiteral<"protocol.mission.created">;
782
806
  timestamp: z.ZodString;
@@ -822,80 +846,38 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
822
846
  }>;
823
847
  zoneId: z.ZodString;
824
848
  flightPlanId: z.ZodNumber;
849
+ campaigns: z.ZodArray<z.ZodString, "many">;
825
850
  captureStartTime: z.ZodString;
826
851
  captureEndTime: z.ZodString;
827
852
  requestor: z.ZodString;
828
- }, "strict", z.ZodTypeAny, {
829
- id: bigint;
830
- vaultId: bigint;
831
- amount: bigint;
832
- zoneId: string;
833
- flightPlanId: number;
834
- captureStartTime: string;
835
- captureEndTime: string;
836
- requestor: string;
837
- }, {
838
- id: {
853
+ }, "strip", z.ZodAny, z.objectOutputType<{
854
+ id: z.ZodEffects<z.ZodObject<{
855
+ __type: z.ZodLiteral<"bigint">;
856
+ value: z.ZodString;
857
+ }, "strip", z.ZodTypeAny, {
839
858
  value: string;
840
859
  __type: "bigint";
841
- };
842
- vaultId: {
860
+ }, {
843
861
  value: string;
844
862
  __type: "bigint";
845
- };
846
- amount: {
863
+ }>, bigint, {
847
864
  value: string;
848
865
  __type: "bigint";
849
- };
850
- zoneId: string;
851
- flightPlanId: number;
852
- captureStartTime: string;
853
- captureEndTime: string;
854
- requestor: string;
855
- }>;
856
- }, "strict", z.ZodTypeAny, {
857
- data: {
858
- id: bigint;
859
- vaultId: bigint;
860
- amount: bigint;
861
- zoneId: string;
862
- flightPlanId: number;
863
- captureStartTime: string;
864
- captureEndTime: string;
865
- requestor: string;
866
- };
867
- id: string;
868
- event_type: "protocol.mission.created";
869
- timestamp: string;
870
- }, {
871
- data: {
872
- id: {
866
+ }>;
867
+ vaultId: z.ZodEffects<z.ZodObject<{
868
+ __type: z.ZodLiteral<"bigint">;
869
+ value: z.ZodString;
870
+ }, "strip", z.ZodTypeAny, {
873
871
  value: string;
874
872
  __type: "bigint";
875
- };
876
- vaultId: {
873
+ }, {
877
874
  value: string;
878
875
  __type: "bigint";
879
- };
880
- amount: {
876
+ }>, bigint, {
881
877
  value: string;
882
878
  __type: "bigint";
883
- };
884
- zoneId: string;
885
- flightPlanId: number;
886
- captureStartTime: string;
887
- captureEndTime: string;
888
- requestor: string;
889
- };
890
- id: string;
891
- event_type: "protocol.mission.created";
892
- timestamp: string;
893
- }>, z.ZodObject<{
894
- id: z.ZodString;
895
- event_type: z.ZodLiteral<"protocol.mission.updated">;
896
- timestamp: z.ZodString;
897
- data: z.ZodObject<{
898
- id: z.ZodEffects<z.ZodObject<{
879
+ }>;
880
+ amount: z.ZodEffects<z.ZodObject<{
899
881
  __type: z.ZodLiteral<"bigint">;
900
882
  value: z.ZodString;
901
883
  }, "strip", z.ZodTypeAny, {
@@ -908,7 +890,14 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
908
890
  value: string;
909
891
  __type: "bigint";
910
892
  }>;
911
- amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
893
+ zoneId: z.ZodString;
894
+ flightPlanId: z.ZodNumber;
895
+ campaigns: z.ZodArray<z.ZodString, "many">;
896
+ captureStartTime: z.ZodString;
897
+ captureEndTime: z.ZodString;
898
+ requestor: z.ZodString;
899
+ }, z.ZodAny, "strip">, z.objectInputType<{
900
+ id: z.ZodEffects<z.ZodObject<{
912
901
  __type: z.ZodLiteral<"bigint">;
913
902
  value: z.ZodString;
914
903
  }, "strip", z.ZodTypeAny, {
@@ -920,54 +909,46 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
920
909
  }>, bigint, {
921
910
  value: string;
922
911
  __type: "bigint";
923
- }>>;
924
- isOpen: z.ZodOptional<z.ZodBoolean>;
925
- }, "strict", z.ZodTypeAny, {
926
- id: bigint;
927
- amount?: bigint | undefined;
928
- isOpen?: boolean | undefined;
929
- }, {
930
- id: {
912
+ }>;
913
+ vaultId: z.ZodEffects<z.ZodObject<{
914
+ __type: z.ZodLiteral<"bigint">;
915
+ value: z.ZodString;
916
+ }, "strip", z.ZodTypeAny, {
931
917
  value: string;
932
918
  __type: "bigint";
933
- };
934
- amount?: {
919
+ }, {
935
920
  value: string;
936
921
  __type: "bigint";
937
- } | undefined;
938
- isOpen?: boolean | undefined;
939
- }>;
940
- }, "strict", z.ZodTypeAny, {
941
- data: {
942
- id: bigint;
943
- amount?: bigint | undefined;
944
- isOpen?: boolean | undefined;
945
- };
946
- id: string;
947
- event_type: "protocol.mission.updated";
948
- timestamp: string;
949
- }, {
950
- data: {
951
- id: {
922
+ }>, bigint, {
923
+ value: string;
924
+ __type: "bigint";
925
+ }>;
926
+ amount: z.ZodEffects<z.ZodObject<{
927
+ __type: z.ZodLiteral<"bigint">;
928
+ value: z.ZodString;
929
+ }, "strip", z.ZodTypeAny, {
952
930
  value: string;
953
931
  __type: "bigint";
954
- };
955
- amount?: {
932
+ }, {
956
933
  value: string;
957
934
  __type: "bigint";
958
- } | undefined;
959
- isOpen?: boolean | undefined;
960
- };
961
- id: string;
962
- event_type: "protocol.mission.updated";
963
- timestamp: string;
964
- }>, z.ZodObject<{
935
+ }>, bigint, {
936
+ value: string;
937
+ __type: "bigint";
938
+ }>;
939
+ zoneId: z.ZodString;
940
+ flightPlanId: z.ZodNumber;
941
+ campaigns: z.ZodArray<z.ZodString, "many">;
942
+ captureStartTime: z.ZodString;
943
+ captureEndTime: z.ZodString;
944
+ requestor: z.ZodString;
945
+ }, z.ZodAny, "strip">>;
946
+ }, "strip", z.ZodAny, z.objectOutputType<{
965
947
  id: z.ZodString;
966
- event_type: z.ZodLiteral<"protocol.mission.paid">;
948
+ event_type: z.ZodLiteral<"protocol.mission.created">;
967
949
  timestamp: z.ZodString;
968
950
  data: z.ZodObject<{
969
- recipient: z.ZodString;
970
- flightId: z.ZodEffects<z.ZodObject<{
951
+ id: z.ZodEffects<z.ZodObject<{
971
952
  __type: z.ZodLiteral<"bigint">;
972
953
  value: z.ZodString;
973
954
  }, "strip", z.ZodTypeAny, {
@@ -980,7 +961,7 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
980
961
  value: string;
981
962
  __type: "bigint";
982
963
  }>;
983
- missionId: z.ZodEffects<z.ZodObject<{
964
+ vaultId: z.ZodEffects<z.ZodObject<{
984
965
  __type: z.ZodLiteral<"bigint">;
985
966
  value: z.ZodString;
986
967
  }, "strip", z.ZodTypeAny, {
@@ -993,7 +974,7 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
993
974
  value: string;
994
975
  __type: "bigint";
995
976
  }>;
996
- vaultId: z.ZodEffects<z.ZodObject<{
977
+ amount: z.ZodEffects<z.ZodObject<{
997
978
  __type: z.ZodLiteral<"bigint">;
998
979
  value: z.ZodString;
999
980
  }, "strip", z.ZodTypeAny, {
@@ -1006,7 +987,14 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1006
987
  value: string;
1007
988
  __type: "bigint";
1008
989
  }>;
1009
- amount: z.ZodEffects<z.ZodObject<{
990
+ zoneId: z.ZodString;
991
+ flightPlanId: z.ZodNumber;
992
+ campaigns: z.ZodArray<z.ZodString, "many">;
993
+ captureStartTime: z.ZodString;
994
+ captureEndTime: z.ZodString;
995
+ requestor: z.ZodString;
996
+ }, "strip", z.ZodAny, z.objectOutputType<{
997
+ id: z.ZodEffects<z.ZodObject<{
1010
998
  __type: z.ZodLiteral<"bigint">;
1011
999
  value: z.ZodString;
1012
1000
  }, "strip", z.ZodTypeAny, {
@@ -1019,79 +1007,53 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1019
1007
  value: string;
1020
1008
  __type: "bigint";
1021
1009
  }>;
1022
- storageKey: z.ZodString;
1023
- }, "strict", z.ZodTypeAny, {
1024
- missionId: bigint;
1025
- flightId: bigint;
1026
- vaultId: bigint;
1027
- amount: bigint;
1028
- recipient: string;
1029
- storageKey: string;
1030
- }, {
1031
- missionId: {
1010
+ vaultId: z.ZodEffects<z.ZodObject<{
1011
+ __type: z.ZodLiteral<"bigint">;
1012
+ value: z.ZodString;
1013
+ }, "strip", z.ZodTypeAny, {
1032
1014
  value: string;
1033
1015
  __type: "bigint";
1034
- };
1035
- flightId: {
1016
+ }, {
1036
1017
  value: string;
1037
1018
  __type: "bigint";
1038
- };
1039
- vaultId: {
1019
+ }>, bigint, {
1040
1020
  value: string;
1041
1021
  __type: "bigint";
1042
- };
1043
- amount: {
1022
+ }>;
1023
+ amount: z.ZodEffects<z.ZodObject<{
1024
+ __type: z.ZodLiteral<"bigint">;
1025
+ value: z.ZodString;
1026
+ }, "strip", z.ZodTypeAny, {
1044
1027
  value: string;
1045
1028
  __type: "bigint";
1046
- };
1047
- recipient: string;
1048
- storageKey: string;
1049
- }>;
1050
- }, "strict", z.ZodTypeAny, {
1051
- data: {
1052
- missionId: bigint;
1053
- flightId: bigint;
1054
- vaultId: bigint;
1055
- amount: bigint;
1056
- recipient: string;
1057
- storageKey: string;
1058
- };
1059
- id: string;
1060
- event_type: "protocol.mission.paid";
1061
- timestamp: string;
1062
- }, {
1063
- data: {
1064
- missionId: {
1029
+ }, {
1030
+ value: string;
1031
+ __type: "bigint";
1032
+ }>, bigint, {
1065
1033
  value: string;
1066
1034
  __type: "bigint";
1067
- };
1068
- flightId: {
1035
+ }>;
1036
+ zoneId: z.ZodString;
1037
+ flightPlanId: z.ZodNumber;
1038
+ campaigns: z.ZodArray<z.ZodString, "many">;
1039
+ captureStartTime: z.ZodString;
1040
+ captureEndTime: z.ZodString;
1041
+ requestor: z.ZodString;
1042
+ }, z.ZodAny, "strip">, z.objectInputType<{
1043
+ id: z.ZodEffects<z.ZodObject<{
1044
+ __type: z.ZodLiteral<"bigint">;
1045
+ value: z.ZodString;
1046
+ }, "strip", z.ZodTypeAny, {
1069
1047
  value: string;
1070
1048
  __type: "bigint";
1071
- };
1072
- vaultId: {
1049
+ }, {
1073
1050
  value: string;
1074
1051
  __type: "bigint";
1075
- };
1076
- amount: {
1052
+ }>, bigint, {
1077
1053
  value: string;
1078
1054
  __type: "bigint";
1079
- };
1080
- recipient: string;
1081
- storageKey: string;
1082
- };
1083
- id: string;
1084
- event_type: "protocol.mission.paid";
1085
- timestamp: string;
1086
- }>, z.ZodObject<{
1087
- id: z.ZodString;
1088
- event_type: z.ZodLiteral<"protocol.flight.submitted">;
1089
- timestamp: z.ZodString;
1090
- data: z.ZodObject<{
1091
- storageKey: z.ZodString;
1092
- pilotAddress: z.ZodString;
1093
- flightManifestUri: z.ZodString;
1094
- missionId: z.ZodEffects<z.ZodObject<{
1055
+ }>;
1056
+ vaultId: z.ZodEffects<z.ZodObject<{
1095
1057
  __type: z.ZodLiteral<"bigint">;
1096
1058
  value: z.ZodString;
1097
1059
  }, "strip", z.ZodTypeAny, {
@@ -1104,49 +1066,32 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1104
1066
  value: string;
1105
1067
  __type: "bigint";
1106
1068
  }>;
1107
- }, "strict", z.ZodTypeAny, {
1108
- missionId: bigint;
1109
- pilotAddress: string;
1110
- storageKey: string;
1111
- flightManifestUri: string;
1112
- }, {
1113
- missionId: {
1069
+ amount: z.ZodEffects<z.ZodObject<{
1070
+ __type: z.ZodLiteral<"bigint">;
1071
+ value: z.ZodString;
1072
+ }, "strip", z.ZodTypeAny, {
1114
1073
  value: string;
1115
1074
  __type: "bigint";
1116
- };
1117
- pilotAddress: string;
1118
- storageKey: string;
1119
- flightManifestUri: string;
1120
- }>;
1121
- }, "strict", z.ZodTypeAny, {
1122
- data: {
1123
- missionId: bigint;
1124
- pilotAddress: string;
1125
- storageKey: string;
1126
- flightManifestUri: string;
1127
- };
1128
- id: string;
1129
- event_type: "protocol.flight.submitted";
1130
- timestamp: string;
1131
- }, {
1132
- data: {
1133
- missionId: {
1075
+ }, {
1134
1076
  value: string;
1135
1077
  __type: "bigint";
1136
- };
1137
- pilotAddress: string;
1138
- storageKey: string;
1139
- flightManifestUri: string;
1140
- };
1141
- id: string;
1142
- event_type: "protocol.flight.submitted";
1143
- timestamp: string;
1144
- }>, z.ZodObject<{
1078
+ }>, bigint, {
1079
+ value: string;
1080
+ __type: "bigint";
1081
+ }>;
1082
+ zoneId: z.ZodString;
1083
+ flightPlanId: z.ZodNumber;
1084
+ campaigns: z.ZodArray<z.ZodString, "many">;
1085
+ captureStartTime: z.ZodString;
1086
+ captureEndTime: z.ZodString;
1087
+ requestor: z.ZodString;
1088
+ }, z.ZodAny, "strip">>;
1089
+ }, z.ZodAny, "strip">, z.objectInputType<{
1145
1090
  id: z.ZodString;
1146
- event_type: z.ZodLiteral<"protocol.flight.reviewed">;
1091
+ event_type: z.ZodLiteral<"protocol.mission.created">;
1147
1092
  timestamp: z.ZodString;
1148
1093
  data: z.ZodObject<{
1149
- flightId: z.ZodEffects<z.ZodObject<{
1094
+ id: z.ZodEffects<z.ZodObject<{
1150
1095
  __type: z.ZodLiteral<"bigint">;
1151
1096
  value: z.ZodString;
1152
1097
  }, "strip", z.ZodTypeAny, {
@@ -1159,13 +1104,7 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1159
1104
  value: string;
1160
1105
  __type: "bigint";
1161
1106
  }>;
1162
- owner: z.ZodString;
1163
- isApproved: z.ZodBoolean;
1164
- validationLogUri: z.ZodString;
1165
- validator: z.ZodString;
1166
- filesHash: z.ZodString;
1167
- storageKey: z.ZodString;
1168
- missionId: z.ZodEffects<z.ZodObject<{
1107
+ vaultId: z.ZodEffects<z.ZodObject<{
1169
1108
  __type: z.ZodLiteral<"bigint">;
1170
1109
  value: z.ZodString;
1171
1110
  }, "strip", z.ZodTypeAny, {
@@ -1178,152 +1117,1981 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1178
1117
  value: string;
1179
1118
  __type: "bigint";
1180
1119
  }>;
1181
- }, "strict", z.ZodTypeAny, {
1182
- missionId: bigint;
1183
- flightId: bigint;
1184
- storageKey: string;
1185
- owner: string;
1186
- isApproved: boolean;
1187
- validationLogUri: string;
1188
- validator: string;
1189
- filesHash: string;
1190
- }, {
1191
- missionId: {
1192
- value: string;
1193
- __type: "bigint";
1194
- };
1195
- flightId: {
1196
- value: string;
1197
- __type: "bigint";
1198
- };
1199
- storageKey: string;
1200
- owner: string;
1201
- isApproved: boolean;
1202
- validationLogUri: string;
1203
- validator: string;
1204
- filesHash: string;
1205
- }>;
1206
- }, "strict", z.ZodTypeAny, {
1207
- data: {
1208
- missionId: bigint;
1209
- flightId: bigint;
1210
- storageKey: string;
1211
- owner: string;
1212
- isApproved: boolean;
1213
- validationLogUri: string;
1214
- validator: string;
1215
- filesHash: string;
1216
- };
1217
- id: string;
1218
- event_type: "protocol.flight.reviewed";
1219
- timestamp: string;
1220
- }, {
1221
- data: {
1222
- missionId: {
1120
+ amount: z.ZodEffects<z.ZodObject<{
1121
+ __type: z.ZodLiteral<"bigint">;
1122
+ value: z.ZodString;
1123
+ }, "strip", z.ZodTypeAny, {
1223
1124
  value: string;
1224
1125
  __type: "bigint";
1225
- };
1226
- flightId: {
1126
+ }, {
1227
1127
  value: string;
1228
1128
  __type: "bigint";
1229
- };
1230
- storageKey: string;
1231
- owner: string;
1232
- isApproved: boolean;
1233
- validationLogUri: string;
1234
- validator: string;
1235
- filesHash: string;
1236
- };
1237
- id: string;
1238
- event_type: "protocol.flight.reviewed";
1239
- timestamp: string;
1240
- }>]>;
1241
- type Event = z.infer<typeof Event>;
1242
- type TestEvent = Extract<Event, {
1243
- event_type: "test";
1244
- }>;
1245
- type MissionCreatedEvent = Extract<Event, {
1246
- event_type: "protocol.mission.created";
1247
- }>;
1248
- type MissionUpdatedEvent = Extract<Event, {
1249
- event_type: "protocol.mission.updated";
1250
- }>;
1251
- type MissionPaidEvent = Extract<Event, {
1252
- event_type: "protocol.mission.paid";
1253
- }>;
1254
- type FlightSubmittedEvent = Extract<Event, {
1255
- event_type: "protocol.flight.submitted";
1256
- }>;
1257
- type FlightReviewedEvent = Extract<Event, {
1258
- event_type: "protocol.flight.reviewed";
1259
- }>;
1260
-
1261
- declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
1262
- data: {
1263
- message: string;
1264
- };
1265
- id: string;
1129
+ }>, bigint, {
1130
+ value: string;
1131
+ __type: "bigint";
1132
+ }>;
1133
+ zoneId: z.ZodString;
1134
+ flightPlanId: z.ZodNumber;
1135
+ campaigns: z.ZodArray<z.ZodString, "many">;
1136
+ captureStartTime: z.ZodString;
1137
+ captureEndTime: z.ZodString;
1138
+ requestor: z.ZodString;
1139
+ }, "strip", z.ZodAny, z.objectOutputType<{
1140
+ id: z.ZodEffects<z.ZodObject<{
1141
+ __type: z.ZodLiteral<"bigint">;
1142
+ value: z.ZodString;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ value: string;
1145
+ __type: "bigint";
1146
+ }, {
1147
+ value: string;
1148
+ __type: "bigint";
1149
+ }>, bigint, {
1150
+ value: string;
1151
+ __type: "bigint";
1152
+ }>;
1153
+ vaultId: z.ZodEffects<z.ZodObject<{
1154
+ __type: z.ZodLiteral<"bigint">;
1155
+ value: z.ZodString;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ value: string;
1158
+ __type: "bigint";
1159
+ }, {
1160
+ value: string;
1161
+ __type: "bigint";
1162
+ }>, bigint, {
1163
+ value: string;
1164
+ __type: "bigint";
1165
+ }>;
1166
+ amount: z.ZodEffects<z.ZodObject<{
1167
+ __type: z.ZodLiteral<"bigint">;
1168
+ value: z.ZodString;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ value: string;
1171
+ __type: "bigint";
1172
+ }, {
1173
+ value: string;
1174
+ __type: "bigint";
1175
+ }>, bigint, {
1176
+ value: string;
1177
+ __type: "bigint";
1178
+ }>;
1179
+ zoneId: z.ZodString;
1180
+ flightPlanId: z.ZodNumber;
1181
+ campaigns: z.ZodArray<z.ZodString, "many">;
1182
+ captureStartTime: z.ZodString;
1183
+ captureEndTime: z.ZodString;
1184
+ requestor: z.ZodString;
1185
+ }, z.ZodAny, "strip">, z.objectInputType<{
1186
+ id: z.ZodEffects<z.ZodObject<{
1187
+ __type: z.ZodLiteral<"bigint">;
1188
+ value: z.ZodString;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ value: string;
1191
+ __type: "bigint";
1192
+ }, {
1193
+ value: string;
1194
+ __type: "bigint";
1195
+ }>, bigint, {
1196
+ value: string;
1197
+ __type: "bigint";
1198
+ }>;
1199
+ vaultId: z.ZodEffects<z.ZodObject<{
1200
+ __type: z.ZodLiteral<"bigint">;
1201
+ value: z.ZodString;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ value: string;
1204
+ __type: "bigint";
1205
+ }, {
1206
+ value: string;
1207
+ __type: "bigint";
1208
+ }>, bigint, {
1209
+ value: string;
1210
+ __type: "bigint";
1211
+ }>;
1212
+ amount: z.ZodEffects<z.ZodObject<{
1213
+ __type: z.ZodLiteral<"bigint">;
1214
+ value: z.ZodString;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ value: string;
1217
+ __type: "bigint";
1218
+ }, {
1219
+ value: string;
1220
+ __type: "bigint";
1221
+ }>, bigint, {
1222
+ value: string;
1223
+ __type: "bigint";
1224
+ }>;
1225
+ zoneId: z.ZodString;
1226
+ flightPlanId: z.ZodNumber;
1227
+ campaigns: z.ZodArray<z.ZodString, "many">;
1228
+ captureStartTime: z.ZodString;
1229
+ captureEndTime: z.ZodString;
1230
+ requestor: z.ZodString;
1231
+ }, z.ZodAny, "strip">>;
1232
+ }, z.ZodAny, "strip">>, z.ZodObject<{
1233
+ id: z.ZodString;
1234
+ event_type: z.ZodLiteral<"protocol.mission.updated">;
1235
+ timestamp: z.ZodString;
1236
+ data: z.ZodObject<{
1237
+ id: z.ZodEffects<z.ZodObject<{
1238
+ __type: z.ZodLiteral<"bigint">;
1239
+ value: z.ZodString;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ value: string;
1242
+ __type: "bigint";
1243
+ }, {
1244
+ value: string;
1245
+ __type: "bigint";
1246
+ }>, bigint, {
1247
+ value: string;
1248
+ __type: "bigint";
1249
+ }>;
1250
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1251
+ __type: z.ZodLiteral<"bigint">;
1252
+ value: z.ZodString;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ value: string;
1255
+ __type: "bigint";
1256
+ }, {
1257
+ value: string;
1258
+ __type: "bigint";
1259
+ }>, bigint, {
1260
+ value: string;
1261
+ __type: "bigint";
1262
+ }>>;
1263
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1264
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1265
+ }, "strip", z.ZodAny, z.objectOutputType<{
1266
+ id: z.ZodEffects<z.ZodObject<{
1267
+ __type: z.ZodLiteral<"bigint">;
1268
+ value: z.ZodString;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ value: string;
1271
+ __type: "bigint";
1272
+ }, {
1273
+ value: string;
1274
+ __type: "bigint";
1275
+ }>, bigint, {
1276
+ value: string;
1277
+ __type: "bigint";
1278
+ }>;
1279
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1280
+ __type: z.ZodLiteral<"bigint">;
1281
+ value: z.ZodString;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ value: string;
1284
+ __type: "bigint";
1285
+ }, {
1286
+ value: string;
1287
+ __type: "bigint";
1288
+ }>, bigint, {
1289
+ value: string;
1290
+ __type: "bigint";
1291
+ }>>;
1292
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1293
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1294
+ }, z.ZodAny, "strip">, z.objectInputType<{
1295
+ id: z.ZodEffects<z.ZodObject<{
1296
+ __type: z.ZodLiteral<"bigint">;
1297
+ value: z.ZodString;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ value: string;
1300
+ __type: "bigint";
1301
+ }, {
1302
+ value: string;
1303
+ __type: "bigint";
1304
+ }>, bigint, {
1305
+ value: string;
1306
+ __type: "bigint";
1307
+ }>;
1308
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1309
+ __type: z.ZodLiteral<"bigint">;
1310
+ value: z.ZodString;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ value: string;
1313
+ __type: "bigint";
1314
+ }, {
1315
+ value: string;
1316
+ __type: "bigint";
1317
+ }>, bigint, {
1318
+ value: string;
1319
+ __type: "bigint";
1320
+ }>>;
1321
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1322
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1323
+ }, z.ZodAny, "strip">>;
1324
+ }, "strip", z.ZodAny, z.objectOutputType<{
1325
+ id: z.ZodString;
1326
+ event_type: z.ZodLiteral<"protocol.mission.updated">;
1327
+ timestamp: z.ZodString;
1328
+ data: z.ZodObject<{
1329
+ id: z.ZodEffects<z.ZodObject<{
1330
+ __type: z.ZodLiteral<"bigint">;
1331
+ value: z.ZodString;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ value: string;
1334
+ __type: "bigint";
1335
+ }, {
1336
+ value: string;
1337
+ __type: "bigint";
1338
+ }>, bigint, {
1339
+ value: string;
1340
+ __type: "bigint";
1341
+ }>;
1342
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1343
+ __type: z.ZodLiteral<"bigint">;
1344
+ value: z.ZodString;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ value: string;
1347
+ __type: "bigint";
1348
+ }, {
1349
+ value: string;
1350
+ __type: "bigint";
1351
+ }>, bigint, {
1352
+ value: string;
1353
+ __type: "bigint";
1354
+ }>>;
1355
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1356
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1357
+ }, "strip", z.ZodAny, z.objectOutputType<{
1358
+ id: z.ZodEffects<z.ZodObject<{
1359
+ __type: z.ZodLiteral<"bigint">;
1360
+ value: z.ZodString;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ value: string;
1363
+ __type: "bigint";
1364
+ }, {
1365
+ value: string;
1366
+ __type: "bigint";
1367
+ }>, bigint, {
1368
+ value: string;
1369
+ __type: "bigint";
1370
+ }>;
1371
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1372
+ __type: z.ZodLiteral<"bigint">;
1373
+ value: z.ZodString;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ value: string;
1376
+ __type: "bigint";
1377
+ }, {
1378
+ value: string;
1379
+ __type: "bigint";
1380
+ }>, bigint, {
1381
+ value: string;
1382
+ __type: "bigint";
1383
+ }>>;
1384
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1385
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1386
+ }, z.ZodAny, "strip">, z.objectInputType<{
1387
+ id: z.ZodEffects<z.ZodObject<{
1388
+ __type: z.ZodLiteral<"bigint">;
1389
+ value: z.ZodString;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ value: string;
1392
+ __type: "bigint";
1393
+ }, {
1394
+ value: string;
1395
+ __type: "bigint";
1396
+ }>, bigint, {
1397
+ value: string;
1398
+ __type: "bigint";
1399
+ }>;
1400
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1401
+ __type: z.ZodLiteral<"bigint">;
1402
+ value: z.ZodString;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ value: string;
1405
+ __type: "bigint";
1406
+ }, {
1407
+ value: string;
1408
+ __type: "bigint";
1409
+ }>, bigint, {
1410
+ value: string;
1411
+ __type: "bigint";
1412
+ }>>;
1413
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1414
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1415
+ }, z.ZodAny, "strip">>;
1416
+ }, z.ZodAny, "strip">, z.objectInputType<{
1417
+ id: z.ZodString;
1418
+ event_type: z.ZodLiteral<"protocol.mission.updated">;
1419
+ timestamp: z.ZodString;
1420
+ data: z.ZodObject<{
1421
+ id: z.ZodEffects<z.ZodObject<{
1422
+ __type: z.ZodLiteral<"bigint">;
1423
+ value: z.ZodString;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ value: string;
1426
+ __type: "bigint";
1427
+ }, {
1428
+ value: string;
1429
+ __type: "bigint";
1430
+ }>, bigint, {
1431
+ value: string;
1432
+ __type: "bigint";
1433
+ }>;
1434
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1435
+ __type: z.ZodLiteral<"bigint">;
1436
+ value: z.ZodString;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ value: string;
1439
+ __type: "bigint";
1440
+ }, {
1441
+ value: string;
1442
+ __type: "bigint";
1443
+ }>, bigint, {
1444
+ value: string;
1445
+ __type: "bigint";
1446
+ }>>;
1447
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1448
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1449
+ }, "strip", z.ZodAny, z.objectOutputType<{
1450
+ id: z.ZodEffects<z.ZodObject<{
1451
+ __type: z.ZodLiteral<"bigint">;
1452
+ value: z.ZodString;
1453
+ }, "strip", z.ZodTypeAny, {
1454
+ value: string;
1455
+ __type: "bigint";
1456
+ }, {
1457
+ value: string;
1458
+ __type: "bigint";
1459
+ }>, bigint, {
1460
+ value: string;
1461
+ __type: "bigint";
1462
+ }>;
1463
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1464
+ __type: z.ZodLiteral<"bigint">;
1465
+ value: z.ZodString;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ value: string;
1468
+ __type: "bigint";
1469
+ }, {
1470
+ value: string;
1471
+ __type: "bigint";
1472
+ }>, bigint, {
1473
+ value: string;
1474
+ __type: "bigint";
1475
+ }>>;
1476
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1477
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1478
+ }, z.ZodAny, "strip">, z.objectInputType<{
1479
+ id: z.ZodEffects<z.ZodObject<{
1480
+ __type: z.ZodLiteral<"bigint">;
1481
+ value: z.ZodString;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ value: string;
1484
+ __type: "bigint";
1485
+ }, {
1486
+ value: string;
1487
+ __type: "bigint";
1488
+ }>, bigint, {
1489
+ value: string;
1490
+ __type: "bigint";
1491
+ }>;
1492
+ amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1493
+ __type: z.ZodLiteral<"bigint">;
1494
+ value: z.ZodString;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ value: string;
1497
+ __type: "bigint";
1498
+ }, {
1499
+ value: string;
1500
+ __type: "bigint";
1501
+ }>, bigint, {
1502
+ value: string;
1503
+ __type: "bigint";
1504
+ }>>;
1505
+ isOpen: z.ZodOptional<z.ZodBoolean>;
1506
+ campaigns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1507
+ }, z.ZodAny, "strip">>;
1508
+ }, z.ZodAny, "strip">>, z.ZodObject<{
1509
+ id: z.ZodString;
1510
+ event_type: z.ZodLiteral<"protocol.mission.paid">;
1511
+ timestamp: z.ZodString;
1512
+ data: z.ZodObject<{
1513
+ recipient: z.ZodString;
1514
+ flightId: z.ZodEffects<z.ZodObject<{
1515
+ __type: z.ZodLiteral<"bigint">;
1516
+ value: z.ZodString;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ value: string;
1519
+ __type: "bigint";
1520
+ }, {
1521
+ value: string;
1522
+ __type: "bigint";
1523
+ }>, bigint, {
1524
+ value: string;
1525
+ __type: "bigint";
1526
+ }>;
1527
+ missionId: z.ZodEffects<z.ZodObject<{
1528
+ __type: z.ZodLiteral<"bigint">;
1529
+ value: z.ZodString;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ value: string;
1532
+ __type: "bigint";
1533
+ }, {
1534
+ value: string;
1535
+ __type: "bigint";
1536
+ }>, bigint, {
1537
+ value: string;
1538
+ __type: "bigint";
1539
+ }>;
1540
+ vaultId: z.ZodEffects<z.ZodObject<{
1541
+ __type: z.ZodLiteral<"bigint">;
1542
+ value: z.ZodString;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ value: string;
1545
+ __type: "bigint";
1546
+ }, {
1547
+ value: string;
1548
+ __type: "bigint";
1549
+ }>, bigint, {
1550
+ value: string;
1551
+ __type: "bigint";
1552
+ }>;
1553
+ amount: z.ZodEffects<z.ZodObject<{
1554
+ __type: z.ZodLiteral<"bigint">;
1555
+ value: z.ZodString;
1556
+ }, "strip", z.ZodTypeAny, {
1557
+ value: string;
1558
+ __type: "bigint";
1559
+ }, {
1560
+ value: string;
1561
+ __type: "bigint";
1562
+ }>, bigint, {
1563
+ value: string;
1564
+ __type: "bigint";
1565
+ }>;
1566
+ storageKey: z.ZodString;
1567
+ }, "strip", z.ZodAny, z.objectOutputType<{
1568
+ recipient: z.ZodString;
1569
+ flightId: z.ZodEffects<z.ZodObject<{
1570
+ __type: z.ZodLiteral<"bigint">;
1571
+ value: z.ZodString;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ value: string;
1574
+ __type: "bigint";
1575
+ }, {
1576
+ value: string;
1577
+ __type: "bigint";
1578
+ }>, bigint, {
1579
+ value: string;
1580
+ __type: "bigint";
1581
+ }>;
1582
+ missionId: z.ZodEffects<z.ZodObject<{
1583
+ __type: z.ZodLiteral<"bigint">;
1584
+ value: z.ZodString;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ value: string;
1587
+ __type: "bigint";
1588
+ }, {
1589
+ value: string;
1590
+ __type: "bigint";
1591
+ }>, bigint, {
1592
+ value: string;
1593
+ __type: "bigint";
1594
+ }>;
1595
+ vaultId: z.ZodEffects<z.ZodObject<{
1596
+ __type: z.ZodLiteral<"bigint">;
1597
+ value: z.ZodString;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ value: string;
1600
+ __type: "bigint";
1601
+ }, {
1602
+ value: string;
1603
+ __type: "bigint";
1604
+ }>, bigint, {
1605
+ value: string;
1606
+ __type: "bigint";
1607
+ }>;
1608
+ amount: z.ZodEffects<z.ZodObject<{
1609
+ __type: z.ZodLiteral<"bigint">;
1610
+ value: z.ZodString;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ value: string;
1613
+ __type: "bigint";
1614
+ }, {
1615
+ value: string;
1616
+ __type: "bigint";
1617
+ }>, bigint, {
1618
+ value: string;
1619
+ __type: "bigint";
1620
+ }>;
1621
+ storageKey: z.ZodString;
1622
+ }, z.ZodAny, "strip">, z.objectInputType<{
1623
+ recipient: z.ZodString;
1624
+ flightId: z.ZodEffects<z.ZodObject<{
1625
+ __type: z.ZodLiteral<"bigint">;
1626
+ value: z.ZodString;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ value: string;
1629
+ __type: "bigint";
1630
+ }, {
1631
+ value: string;
1632
+ __type: "bigint";
1633
+ }>, bigint, {
1634
+ value: string;
1635
+ __type: "bigint";
1636
+ }>;
1637
+ missionId: z.ZodEffects<z.ZodObject<{
1638
+ __type: z.ZodLiteral<"bigint">;
1639
+ value: z.ZodString;
1640
+ }, "strip", z.ZodTypeAny, {
1641
+ value: string;
1642
+ __type: "bigint";
1643
+ }, {
1644
+ value: string;
1645
+ __type: "bigint";
1646
+ }>, bigint, {
1647
+ value: string;
1648
+ __type: "bigint";
1649
+ }>;
1650
+ vaultId: z.ZodEffects<z.ZodObject<{
1651
+ __type: z.ZodLiteral<"bigint">;
1652
+ value: z.ZodString;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ value: string;
1655
+ __type: "bigint";
1656
+ }, {
1657
+ value: string;
1658
+ __type: "bigint";
1659
+ }>, bigint, {
1660
+ value: string;
1661
+ __type: "bigint";
1662
+ }>;
1663
+ amount: z.ZodEffects<z.ZodObject<{
1664
+ __type: z.ZodLiteral<"bigint">;
1665
+ value: z.ZodString;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ value: string;
1668
+ __type: "bigint";
1669
+ }, {
1670
+ value: string;
1671
+ __type: "bigint";
1672
+ }>, bigint, {
1673
+ value: string;
1674
+ __type: "bigint";
1675
+ }>;
1676
+ storageKey: z.ZodString;
1677
+ }, z.ZodAny, "strip">>;
1678
+ }, "strip", z.ZodAny, z.objectOutputType<{
1679
+ id: z.ZodString;
1680
+ event_type: z.ZodLiteral<"protocol.mission.paid">;
1681
+ timestamp: z.ZodString;
1682
+ data: z.ZodObject<{
1683
+ recipient: z.ZodString;
1684
+ flightId: z.ZodEffects<z.ZodObject<{
1685
+ __type: z.ZodLiteral<"bigint">;
1686
+ value: z.ZodString;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ value: string;
1689
+ __type: "bigint";
1690
+ }, {
1691
+ value: string;
1692
+ __type: "bigint";
1693
+ }>, bigint, {
1694
+ value: string;
1695
+ __type: "bigint";
1696
+ }>;
1697
+ missionId: z.ZodEffects<z.ZodObject<{
1698
+ __type: z.ZodLiteral<"bigint">;
1699
+ value: z.ZodString;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ value: string;
1702
+ __type: "bigint";
1703
+ }, {
1704
+ value: string;
1705
+ __type: "bigint";
1706
+ }>, bigint, {
1707
+ value: string;
1708
+ __type: "bigint";
1709
+ }>;
1710
+ vaultId: z.ZodEffects<z.ZodObject<{
1711
+ __type: z.ZodLiteral<"bigint">;
1712
+ value: z.ZodString;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ value: string;
1715
+ __type: "bigint";
1716
+ }, {
1717
+ value: string;
1718
+ __type: "bigint";
1719
+ }>, bigint, {
1720
+ value: string;
1721
+ __type: "bigint";
1722
+ }>;
1723
+ amount: z.ZodEffects<z.ZodObject<{
1724
+ __type: z.ZodLiteral<"bigint">;
1725
+ value: z.ZodString;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ value: string;
1728
+ __type: "bigint";
1729
+ }, {
1730
+ value: string;
1731
+ __type: "bigint";
1732
+ }>, bigint, {
1733
+ value: string;
1734
+ __type: "bigint";
1735
+ }>;
1736
+ storageKey: z.ZodString;
1737
+ }, "strip", z.ZodAny, z.objectOutputType<{
1738
+ recipient: z.ZodString;
1739
+ flightId: z.ZodEffects<z.ZodObject<{
1740
+ __type: z.ZodLiteral<"bigint">;
1741
+ value: z.ZodString;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ value: string;
1744
+ __type: "bigint";
1745
+ }, {
1746
+ value: string;
1747
+ __type: "bigint";
1748
+ }>, bigint, {
1749
+ value: string;
1750
+ __type: "bigint";
1751
+ }>;
1752
+ missionId: z.ZodEffects<z.ZodObject<{
1753
+ __type: z.ZodLiteral<"bigint">;
1754
+ value: z.ZodString;
1755
+ }, "strip", z.ZodTypeAny, {
1756
+ value: string;
1757
+ __type: "bigint";
1758
+ }, {
1759
+ value: string;
1760
+ __type: "bigint";
1761
+ }>, bigint, {
1762
+ value: string;
1763
+ __type: "bigint";
1764
+ }>;
1765
+ vaultId: z.ZodEffects<z.ZodObject<{
1766
+ __type: z.ZodLiteral<"bigint">;
1767
+ value: z.ZodString;
1768
+ }, "strip", z.ZodTypeAny, {
1769
+ value: string;
1770
+ __type: "bigint";
1771
+ }, {
1772
+ value: string;
1773
+ __type: "bigint";
1774
+ }>, bigint, {
1775
+ value: string;
1776
+ __type: "bigint";
1777
+ }>;
1778
+ amount: z.ZodEffects<z.ZodObject<{
1779
+ __type: z.ZodLiteral<"bigint">;
1780
+ value: z.ZodString;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ value: string;
1783
+ __type: "bigint";
1784
+ }, {
1785
+ value: string;
1786
+ __type: "bigint";
1787
+ }>, bigint, {
1788
+ value: string;
1789
+ __type: "bigint";
1790
+ }>;
1791
+ storageKey: z.ZodString;
1792
+ }, z.ZodAny, "strip">, z.objectInputType<{
1793
+ recipient: z.ZodString;
1794
+ flightId: z.ZodEffects<z.ZodObject<{
1795
+ __type: z.ZodLiteral<"bigint">;
1796
+ value: z.ZodString;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ value: string;
1799
+ __type: "bigint";
1800
+ }, {
1801
+ value: string;
1802
+ __type: "bigint";
1803
+ }>, bigint, {
1804
+ value: string;
1805
+ __type: "bigint";
1806
+ }>;
1807
+ missionId: z.ZodEffects<z.ZodObject<{
1808
+ __type: z.ZodLiteral<"bigint">;
1809
+ value: z.ZodString;
1810
+ }, "strip", z.ZodTypeAny, {
1811
+ value: string;
1812
+ __type: "bigint";
1813
+ }, {
1814
+ value: string;
1815
+ __type: "bigint";
1816
+ }>, bigint, {
1817
+ value: string;
1818
+ __type: "bigint";
1819
+ }>;
1820
+ vaultId: z.ZodEffects<z.ZodObject<{
1821
+ __type: z.ZodLiteral<"bigint">;
1822
+ value: z.ZodString;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ value: string;
1825
+ __type: "bigint";
1826
+ }, {
1827
+ value: string;
1828
+ __type: "bigint";
1829
+ }>, bigint, {
1830
+ value: string;
1831
+ __type: "bigint";
1832
+ }>;
1833
+ amount: z.ZodEffects<z.ZodObject<{
1834
+ __type: z.ZodLiteral<"bigint">;
1835
+ value: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ value: string;
1838
+ __type: "bigint";
1839
+ }, {
1840
+ value: string;
1841
+ __type: "bigint";
1842
+ }>, bigint, {
1843
+ value: string;
1844
+ __type: "bigint";
1845
+ }>;
1846
+ storageKey: z.ZodString;
1847
+ }, z.ZodAny, "strip">>;
1848
+ }, z.ZodAny, "strip">, z.objectInputType<{
1849
+ id: z.ZodString;
1850
+ event_type: z.ZodLiteral<"protocol.mission.paid">;
1851
+ timestamp: z.ZodString;
1852
+ data: z.ZodObject<{
1853
+ recipient: z.ZodString;
1854
+ flightId: z.ZodEffects<z.ZodObject<{
1855
+ __type: z.ZodLiteral<"bigint">;
1856
+ value: z.ZodString;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ value: string;
1859
+ __type: "bigint";
1860
+ }, {
1861
+ value: string;
1862
+ __type: "bigint";
1863
+ }>, bigint, {
1864
+ value: string;
1865
+ __type: "bigint";
1866
+ }>;
1867
+ missionId: z.ZodEffects<z.ZodObject<{
1868
+ __type: z.ZodLiteral<"bigint">;
1869
+ value: z.ZodString;
1870
+ }, "strip", z.ZodTypeAny, {
1871
+ value: string;
1872
+ __type: "bigint";
1873
+ }, {
1874
+ value: string;
1875
+ __type: "bigint";
1876
+ }>, bigint, {
1877
+ value: string;
1878
+ __type: "bigint";
1879
+ }>;
1880
+ vaultId: z.ZodEffects<z.ZodObject<{
1881
+ __type: z.ZodLiteral<"bigint">;
1882
+ value: z.ZodString;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ value: string;
1885
+ __type: "bigint";
1886
+ }, {
1887
+ value: string;
1888
+ __type: "bigint";
1889
+ }>, bigint, {
1890
+ value: string;
1891
+ __type: "bigint";
1892
+ }>;
1893
+ amount: z.ZodEffects<z.ZodObject<{
1894
+ __type: z.ZodLiteral<"bigint">;
1895
+ value: z.ZodString;
1896
+ }, "strip", z.ZodTypeAny, {
1897
+ value: string;
1898
+ __type: "bigint";
1899
+ }, {
1900
+ value: string;
1901
+ __type: "bigint";
1902
+ }>, bigint, {
1903
+ value: string;
1904
+ __type: "bigint";
1905
+ }>;
1906
+ storageKey: z.ZodString;
1907
+ }, "strip", z.ZodAny, z.objectOutputType<{
1908
+ recipient: z.ZodString;
1909
+ flightId: z.ZodEffects<z.ZodObject<{
1910
+ __type: z.ZodLiteral<"bigint">;
1911
+ value: z.ZodString;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ value: string;
1914
+ __type: "bigint";
1915
+ }, {
1916
+ value: string;
1917
+ __type: "bigint";
1918
+ }>, bigint, {
1919
+ value: string;
1920
+ __type: "bigint";
1921
+ }>;
1922
+ missionId: z.ZodEffects<z.ZodObject<{
1923
+ __type: z.ZodLiteral<"bigint">;
1924
+ value: z.ZodString;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ value: string;
1927
+ __type: "bigint";
1928
+ }, {
1929
+ value: string;
1930
+ __type: "bigint";
1931
+ }>, bigint, {
1932
+ value: string;
1933
+ __type: "bigint";
1934
+ }>;
1935
+ vaultId: z.ZodEffects<z.ZodObject<{
1936
+ __type: z.ZodLiteral<"bigint">;
1937
+ value: z.ZodString;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ value: string;
1940
+ __type: "bigint";
1941
+ }, {
1942
+ value: string;
1943
+ __type: "bigint";
1944
+ }>, bigint, {
1945
+ value: string;
1946
+ __type: "bigint";
1947
+ }>;
1948
+ amount: z.ZodEffects<z.ZodObject<{
1949
+ __type: z.ZodLiteral<"bigint">;
1950
+ value: z.ZodString;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ value: string;
1953
+ __type: "bigint";
1954
+ }, {
1955
+ value: string;
1956
+ __type: "bigint";
1957
+ }>, bigint, {
1958
+ value: string;
1959
+ __type: "bigint";
1960
+ }>;
1961
+ storageKey: z.ZodString;
1962
+ }, z.ZodAny, "strip">, z.objectInputType<{
1963
+ recipient: z.ZodString;
1964
+ flightId: z.ZodEffects<z.ZodObject<{
1965
+ __type: z.ZodLiteral<"bigint">;
1966
+ value: z.ZodString;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ value: string;
1969
+ __type: "bigint";
1970
+ }, {
1971
+ value: string;
1972
+ __type: "bigint";
1973
+ }>, bigint, {
1974
+ value: string;
1975
+ __type: "bigint";
1976
+ }>;
1977
+ missionId: z.ZodEffects<z.ZodObject<{
1978
+ __type: z.ZodLiteral<"bigint">;
1979
+ value: z.ZodString;
1980
+ }, "strip", z.ZodTypeAny, {
1981
+ value: string;
1982
+ __type: "bigint";
1983
+ }, {
1984
+ value: string;
1985
+ __type: "bigint";
1986
+ }>, bigint, {
1987
+ value: string;
1988
+ __type: "bigint";
1989
+ }>;
1990
+ vaultId: z.ZodEffects<z.ZodObject<{
1991
+ __type: z.ZodLiteral<"bigint">;
1992
+ value: z.ZodString;
1993
+ }, "strip", z.ZodTypeAny, {
1994
+ value: string;
1995
+ __type: "bigint";
1996
+ }, {
1997
+ value: string;
1998
+ __type: "bigint";
1999
+ }>, bigint, {
2000
+ value: string;
2001
+ __type: "bigint";
2002
+ }>;
2003
+ amount: z.ZodEffects<z.ZodObject<{
2004
+ __type: z.ZodLiteral<"bigint">;
2005
+ value: z.ZodString;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ value: string;
2008
+ __type: "bigint";
2009
+ }, {
2010
+ value: string;
2011
+ __type: "bigint";
2012
+ }>, bigint, {
2013
+ value: string;
2014
+ __type: "bigint";
2015
+ }>;
2016
+ storageKey: z.ZodString;
2017
+ }, z.ZodAny, "strip">>;
2018
+ }, z.ZodAny, "strip">>, z.ZodObject<{
2019
+ id: z.ZodString;
2020
+ event_type: z.ZodLiteral<"protocol.flight.submitted">;
2021
+ timestamp: z.ZodString;
2022
+ data: z.ZodObject<{
2023
+ storageKey: z.ZodString;
2024
+ pilotAddress: z.ZodString;
2025
+ flightManifestUri: z.ZodString;
2026
+ missionId: z.ZodEffects<z.ZodObject<{
2027
+ __type: z.ZodLiteral<"bigint">;
2028
+ value: z.ZodString;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ value: string;
2031
+ __type: "bigint";
2032
+ }, {
2033
+ value: string;
2034
+ __type: "bigint";
2035
+ }>, bigint, {
2036
+ value: string;
2037
+ __type: "bigint";
2038
+ }>;
2039
+ }, "strip", z.ZodAny, z.objectOutputType<{
2040
+ storageKey: z.ZodString;
2041
+ pilotAddress: z.ZodString;
2042
+ flightManifestUri: z.ZodString;
2043
+ missionId: z.ZodEffects<z.ZodObject<{
2044
+ __type: z.ZodLiteral<"bigint">;
2045
+ value: z.ZodString;
2046
+ }, "strip", z.ZodTypeAny, {
2047
+ value: string;
2048
+ __type: "bigint";
2049
+ }, {
2050
+ value: string;
2051
+ __type: "bigint";
2052
+ }>, bigint, {
2053
+ value: string;
2054
+ __type: "bigint";
2055
+ }>;
2056
+ }, z.ZodAny, "strip">, z.objectInputType<{
2057
+ storageKey: z.ZodString;
2058
+ pilotAddress: z.ZodString;
2059
+ flightManifestUri: z.ZodString;
2060
+ missionId: z.ZodEffects<z.ZodObject<{
2061
+ __type: z.ZodLiteral<"bigint">;
2062
+ value: z.ZodString;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ value: string;
2065
+ __type: "bigint";
2066
+ }, {
2067
+ value: string;
2068
+ __type: "bigint";
2069
+ }>, bigint, {
2070
+ value: string;
2071
+ __type: "bigint";
2072
+ }>;
2073
+ }, z.ZodAny, "strip">>;
2074
+ }, "strip", z.ZodAny, z.objectOutputType<{
2075
+ id: z.ZodString;
2076
+ event_type: z.ZodLiteral<"protocol.flight.submitted">;
2077
+ timestamp: z.ZodString;
2078
+ data: z.ZodObject<{
2079
+ storageKey: z.ZodString;
2080
+ pilotAddress: z.ZodString;
2081
+ flightManifestUri: z.ZodString;
2082
+ missionId: z.ZodEffects<z.ZodObject<{
2083
+ __type: z.ZodLiteral<"bigint">;
2084
+ value: z.ZodString;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ value: string;
2087
+ __type: "bigint";
2088
+ }, {
2089
+ value: string;
2090
+ __type: "bigint";
2091
+ }>, bigint, {
2092
+ value: string;
2093
+ __type: "bigint";
2094
+ }>;
2095
+ }, "strip", z.ZodAny, z.objectOutputType<{
2096
+ storageKey: z.ZodString;
2097
+ pilotAddress: z.ZodString;
2098
+ flightManifestUri: z.ZodString;
2099
+ missionId: z.ZodEffects<z.ZodObject<{
2100
+ __type: z.ZodLiteral<"bigint">;
2101
+ value: z.ZodString;
2102
+ }, "strip", z.ZodTypeAny, {
2103
+ value: string;
2104
+ __type: "bigint";
2105
+ }, {
2106
+ value: string;
2107
+ __type: "bigint";
2108
+ }>, bigint, {
2109
+ value: string;
2110
+ __type: "bigint";
2111
+ }>;
2112
+ }, z.ZodAny, "strip">, z.objectInputType<{
2113
+ storageKey: z.ZodString;
2114
+ pilotAddress: z.ZodString;
2115
+ flightManifestUri: z.ZodString;
2116
+ missionId: z.ZodEffects<z.ZodObject<{
2117
+ __type: z.ZodLiteral<"bigint">;
2118
+ value: z.ZodString;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ value: string;
2121
+ __type: "bigint";
2122
+ }, {
2123
+ value: string;
2124
+ __type: "bigint";
2125
+ }>, bigint, {
2126
+ value: string;
2127
+ __type: "bigint";
2128
+ }>;
2129
+ }, z.ZodAny, "strip">>;
2130
+ }, z.ZodAny, "strip">, z.objectInputType<{
2131
+ id: z.ZodString;
2132
+ event_type: z.ZodLiteral<"protocol.flight.submitted">;
2133
+ timestamp: z.ZodString;
2134
+ data: z.ZodObject<{
2135
+ storageKey: z.ZodString;
2136
+ pilotAddress: z.ZodString;
2137
+ flightManifestUri: z.ZodString;
2138
+ missionId: z.ZodEffects<z.ZodObject<{
2139
+ __type: z.ZodLiteral<"bigint">;
2140
+ value: z.ZodString;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ value: string;
2143
+ __type: "bigint";
2144
+ }, {
2145
+ value: string;
2146
+ __type: "bigint";
2147
+ }>, bigint, {
2148
+ value: string;
2149
+ __type: "bigint";
2150
+ }>;
2151
+ }, "strip", z.ZodAny, z.objectOutputType<{
2152
+ storageKey: z.ZodString;
2153
+ pilotAddress: z.ZodString;
2154
+ flightManifestUri: z.ZodString;
2155
+ missionId: z.ZodEffects<z.ZodObject<{
2156
+ __type: z.ZodLiteral<"bigint">;
2157
+ value: z.ZodString;
2158
+ }, "strip", z.ZodTypeAny, {
2159
+ value: string;
2160
+ __type: "bigint";
2161
+ }, {
2162
+ value: string;
2163
+ __type: "bigint";
2164
+ }>, bigint, {
2165
+ value: string;
2166
+ __type: "bigint";
2167
+ }>;
2168
+ }, z.ZodAny, "strip">, z.objectInputType<{
2169
+ storageKey: z.ZodString;
2170
+ pilotAddress: z.ZodString;
2171
+ flightManifestUri: z.ZodString;
2172
+ missionId: z.ZodEffects<z.ZodObject<{
2173
+ __type: z.ZodLiteral<"bigint">;
2174
+ value: z.ZodString;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ value: string;
2177
+ __type: "bigint";
2178
+ }, {
2179
+ value: string;
2180
+ __type: "bigint";
2181
+ }>, bigint, {
2182
+ value: string;
2183
+ __type: "bigint";
2184
+ }>;
2185
+ }, z.ZodAny, "strip">>;
2186
+ }, z.ZodAny, "strip">>, z.ZodObject<{
2187
+ id: z.ZodString;
2188
+ event_type: z.ZodLiteral<"protocol.flight.reviewed">;
2189
+ timestamp: z.ZodString;
2190
+ data: z.ZodObject<{
2191
+ flightId: z.ZodEffects<z.ZodObject<{
2192
+ __type: z.ZodLiteral<"bigint">;
2193
+ value: z.ZodString;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ value: string;
2196
+ __type: "bigint";
2197
+ }, {
2198
+ value: string;
2199
+ __type: "bigint";
2200
+ }>, bigint, {
2201
+ value: string;
2202
+ __type: "bigint";
2203
+ }>;
2204
+ owner: z.ZodString;
2205
+ isApproved: z.ZodBoolean;
2206
+ validationLogUri: z.ZodString;
2207
+ validator: z.ZodString;
2208
+ filesHash: z.ZodString;
2209
+ storageKey: z.ZodString;
2210
+ missionId: z.ZodEffects<z.ZodObject<{
2211
+ __type: z.ZodLiteral<"bigint">;
2212
+ value: z.ZodString;
2213
+ }, "strip", z.ZodTypeAny, {
2214
+ value: string;
2215
+ __type: "bigint";
2216
+ }, {
2217
+ value: string;
2218
+ __type: "bigint";
2219
+ }>, bigint, {
2220
+ value: string;
2221
+ __type: "bigint";
2222
+ }>;
2223
+ }, "strip", z.ZodAny, z.objectOutputType<{
2224
+ flightId: z.ZodEffects<z.ZodObject<{
2225
+ __type: z.ZodLiteral<"bigint">;
2226
+ value: z.ZodString;
2227
+ }, "strip", z.ZodTypeAny, {
2228
+ value: string;
2229
+ __type: "bigint";
2230
+ }, {
2231
+ value: string;
2232
+ __type: "bigint";
2233
+ }>, bigint, {
2234
+ value: string;
2235
+ __type: "bigint";
2236
+ }>;
2237
+ owner: z.ZodString;
2238
+ isApproved: z.ZodBoolean;
2239
+ validationLogUri: z.ZodString;
2240
+ validator: z.ZodString;
2241
+ filesHash: z.ZodString;
2242
+ storageKey: z.ZodString;
2243
+ missionId: z.ZodEffects<z.ZodObject<{
2244
+ __type: z.ZodLiteral<"bigint">;
2245
+ value: z.ZodString;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ value: string;
2248
+ __type: "bigint";
2249
+ }, {
2250
+ value: string;
2251
+ __type: "bigint";
2252
+ }>, bigint, {
2253
+ value: string;
2254
+ __type: "bigint";
2255
+ }>;
2256
+ }, z.ZodAny, "strip">, z.objectInputType<{
2257
+ flightId: z.ZodEffects<z.ZodObject<{
2258
+ __type: z.ZodLiteral<"bigint">;
2259
+ value: z.ZodString;
2260
+ }, "strip", z.ZodTypeAny, {
2261
+ value: string;
2262
+ __type: "bigint";
2263
+ }, {
2264
+ value: string;
2265
+ __type: "bigint";
2266
+ }>, bigint, {
2267
+ value: string;
2268
+ __type: "bigint";
2269
+ }>;
2270
+ owner: z.ZodString;
2271
+ isApproved: z.ZodBoolean;
2272
+ validationLogUri: z.ZodString;
2273
+ validator: z.ZodString;
2274
+ filesHash: z.ZodString;
2275
+ storageKey: z.ZodString;
2276
+ missionId: z.ZodEffects<z.ZodObject<{
2277
+ __type: z.ZodLiteral<"bigint">;
2278
+ value: z.ZodString;
2279
+ }, "strip", z.ZodTypeAny, {
2280
+ value: string;
2281
+ __type: "bigint";
2282
+ }, {
2283
+ value: string;
2284
+ __type: "bigint";
2285
+ }>, bigint, {
2286
+ value: string;
2287
+ __type: "bigint";
2288
+ }>;
2289
+ }, z.ZodAny, "strip">>;
2290
+ }, "strip", z.ZodAny, z.objectOutputType<{
2291
+ id: z.ZodString;
2292
+ event_type: z.ZodLiteral<"protocol.flight.reviewed">;
2293
+ timestamp: z.ZodString;
2294
+ data: z.ZodObject<{
2295
+ flightId: z.ZodEffects<z.ZodObject<{
2296
+ __type: z.ZodLiteral<"bigint">;
2297
+ value: z.ZodString;
2298
+ }, "strip", z.ZodTypeAny, {
2299
+ value: string;
2300
+ __type: "bigint";
2301
+ }, {
2302
+ value: string;
2303
+ __type: "bigint";
2304
+ }>, bigint, {
2305
+ value: string;
2306
+ __type: "bigint";
2307
+ }>;
2308
+ owner: z.ZodString;
2309
+ isApproved: z.ZodBoolean;
2310
+ validationLogUri: z.ZodString;
2311
+ validator: z.ZodString;
2312
+ filesHash: z.ZodString;
2313
+ storageKey: z.ZodString;
2314
+ missionId: z.ZodEffects<z.ZodObject<{
2315
+ __type: z.ZodLiteral<"bigint">;
2316
+ value: z.ZodString;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ value: string;
2319
+ __type: "bigint";
2320
+ }, {
2321
+ value: string;
2322
+ __type: "bigint";
2323
+ }>, bigint, {
2324
+ value: string;
2325
+ __type: "bigint";
2326
+ }>;
2327
+ }, "strip", z.ZodAny, z.objectOutputType<{
2328
+ flightId: z.ZodEffects<z.ZodObject<{
2329
+ __type: z.ZodLiteral<"bigint">;
2330
+ value: z.ZodString;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ value: string;
2333
+ __type: "bigint";
2334
+ }, {
2335
+ value: string;
2336
+ __type: "bigint";
2337
+ }>, bigint, {
2338
+ value: string;
2339
+ __type: "bigint";
2340
+ }>;
2341
+ owner: z.ZodString;
2342
+ isApproved: z.ZodBoolean;
2343
+ validationLogUri: z.ZodString;
2344
+ validator: z.ZodString;
2345
+ filesHash: z.ZodString;
2346
+ storageKey: z.ZodString;
2347
+ missionId: z.ZodEffects<z.ZodObject<{
2348
+ __type: z.ZodLiteral<"bigint">;
2349
+ value: z.ZodString;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ value: string;
2352
+ __type: "bigint";
2353
+ }, {
2354
+ value: string;
2355
+ __type: "bigint";
2356
+ }>, bigint, {
2357
+ value: string;
2358
+ __type: "bigint";
2359
+ }>;
2360
+ }, z.ZodAny, "strip">, z.objectInputType<{
2361
+ flightId: z.ZodEffects<z.ZodObject<{
2362
+ __type: z.ZodLiteral<"bigint">;
2363
+ value: z.ZodString;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ value: string;
2366
+ __type: "bigint";
2367
+ }, {
2368
+ value: string;
2369
+ __type: "bigint";
2370
+ }>, bigint, {
2371
+ value: string;
2372
+ __type: "bigint";
2373
+ }>;
2374
+ owner: z.ZodString;
2375
+ isApproved: z.ZodBoolean;
2376
+ validationLogUri: z.ZodString;
2377
+ validator: z.ZodString;
2378
+ filesHash: z.ZodString;
2379
+ storageKey: z.ZodString;
2380
+ missionId: z.ZodEffects<z.ZodObject<{
2381
+ __type: z.ZodLiteral<"bigint">;
2382
+ value: z.ZodString;
2383
+ }, "strip", z.ZodTypeAny, {
2384
+ value: string;
2385
+ __type: "bigint";
2386
+ }, {
2387
+ value: string;
2388
+ __type: "bigint";
2389
+ }>, bigint, {
2390
+ value: string;
2391
+ __type: "bigint";
2392
+ }>;
2393
+ }, z.ZodAny, "strip">>;
2394
+ }, z.ZodAny, "strip">, z.objectInputType<{
2395
+ id: z.ZodString;
2396
+ event_type: z.ZodLiteral<"protocol.flight.reviewed">;
2397
+ timestamp: z.ZodString;
2398
+ data: z.ZodObject<{
2399
+ flightId: z.ZodEffects<z.ZodObject<{
2400
+ __type: z.ZodLiteral<"bigint">;
2401
+ value: z.ZodString;
2402
+ }, "strip", z.ZodTypeAny, {
2403
+ value: string;
2404
+ __type: "bigint";
2405
+ }, {
2406
+ value: string;
2407
+ __type: "bigint";
2408
+ }>, bigint, {
2409
+ value: string;
2410
+ __type: "bigint";
2411
+ }>;
2412
+ owner: z.ZodString;
2413
+ isApproved: z.ZodBoolean;
2414
+ validationLogUri: z.ZodString;
2415
+ validator: z.ZodString;
2416
+ filesHash: z.ZodString;
2417
+ storageKey: z.ZodString;
2418
+ missionId: z.ZodEffects<z.ZodObject<{
2419
+ __type: z.ZodLiteral<"bigint">;
2420
+ value: z.ZodString;
2421
+ }, "strip", z.ZodTypeAny, {
2422
+ value: string;
2423
+ __type: "bigint";
2424
+ }, {
2425
+ value: string;
2426
+ __type: "bigint";
2427
+ }>, bigint, {
2428
+ value: string;
2429
+ __type: "bigint";
2430
+ }>;
2431
+ }, "strip", z.ZodAny, z.objectOutputType<{
2432
+ flightId: z.ZodEffects<z.ZodObject<{
2433
+ __type: z.ZodLiteral<"bigint">;
2434
+ value: z.ZodString;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ value: string;
2437
+ __type: "bigint";
2438
+ }, {
2439
+ value: string;
2440
+ __type: "bigint";
2441
+ }>, bigint, {
2442
+ value: string;
2443
+ __type: "bigint";
2444
+ }>;
2445
+ owner: z.ZodString;
2446
+ isApproved: z.ZodBoolean;
2447
+ validationLogUri: z.ZodString;
2448
+ validator: z.ZodString;
2449
+ filesHash: z.ZodString;
2450
+ storageKey: z.ZodString;
2451
+ missionId: z.ZodEffects<z.ZodObject<{
2452
+ __type: z.ZodLiteral<"bigint">;
2453
+ value: z.ZodString;
2454
+ }, "strip", z.ZodTypeAny, {
2455
+ value: string;
2456
+ __type: "bigint";
2457
+ }, {
2458
+ value: string;
2459
+ __type: "bigint";
2460
+ }>, bigint, {
2461
+ value: string;
2462
+ __type: "bigint";
2463
+ }>;
2464
+ }, z.ZodAny, "strip">, z.objectInputType<{
2465
+ flightId: z.ZodEffects<z.ZodObject<{
2466
+ __type: z.ZodLiteral<"bigint">;
2467
+ value: z.ZodString;
2468
+ }, "strip", z.ZodTypeAny, {
2469
+ value: string;
2470
+ __type: "bigint";
2471
+ }, {
2472
+ value: string;
2473
+ __type: "bigint";
2474
+ }>, bigint, {
2475
+ value: string;
2476
+ __type: "bigint";
2477
+ }>;
2478
+ owner: z.ZodString;
2479
+ isApproved: z.ZodBoolean;
2480
+ validationLogUri: z.ZodString;
2481
+ validator: z.ZodString;
2482
+ filesHash: z.ZodString;
2483
+ storageKey: z.ZodString;
2484
+ missionId: z.ZodEffects<z.ZodObject<{
2485
+ __type: z.ZodLiteral<"bigint">;
2486
+ value: z.ZodString;
2487
+ }, "strip", z.ZodTypeAny, {
2488
+ value: string;
2489
+ __type: "bigint";
2490
+ }, {
2491
+ value: string;
2492
+ __type: "bigint";
2493
+ }>, bigint, {
2494
+ value: string;
2495
+ __type: "bigint";
2496
+ }>;
2497
+ }, z.ZodAny, "strip">>;
2498
+ }, z.ZodAny, "strip">>]>;
2499
+ type Event = z.infer<typeof Event>;
2500
+ type TestEvent = Extract<Event, {
1266
2501
  event_type: "test";
1267
- timestamp: string;
1268
- } | {
1269
- data: {
1270
- id: bigint;
1271
- vaultId: bigint;
1272
- amount: bigint;
1273
- zoneId: string;
1274
- flightPlanId: number;
1275
- captureStartTime: string;
1276
- captureEndTime: string;
1277
- requestor: string;
1278
- };
1279
- id: string;
2502
+ }>;
2503
+ type MissionCreatedEvent = Extract<Event, {
1280
2504
  event_type: "protocol.mission.created";
1281
- timestamp: string;
1282
- } | {
1283
- data: {
1284
- id: bigint;
1285
- amount?: bigint | undefined;
1286
- isOpen?: boolean | undefined;
1287
- };
1288
- id: string;
2505
+ }>;
2506
+ type MissionUpdatedEvent = Extract<Event, {
1289
2507
  event_type: "protocol.mission.updated";
1290
- timestamp: string;
1291
- } | {
1292
- data: {
1293
- missionId: bigint;
1294
- flightId: bigint;
1295
- vaultId: bigint;
1296
- amount: bigint;
1297
- recipient: string;
1298
- storageKey: string;
1299
- };
1300
- id: string;
2508
+ }>;
2509
+ type MissionPaidEvent = Extract<Event, {
1301
2510
  event_type: "protocol.mission.paid";
1302
- timestamp: string;
1303
- } | {
1304
- data: {
1305
- missionId: bigint;
1306
- pilotAddress: string;
1307
- storageKey: string;
1308
- flightManifestUri: string;
1309
- };
1310
- id: string;
2511
+ }>;
2512
+ type FlightSubmittedEvent = Extract<Event, {
1311
2513
  event_type: "protocol.flight.submitted";
1312
- timestamp: string;
1313
- } | {
1314
- data: {
1315
- missionId: bigint;
1316
- flightId: bigint;
1317
- storageKey: string;
1318
- owner: string;
1319
- isApproved: boolean;
1320
- validationLogUri: string;
1321
- validator: string;
1322
- filesHash: string;
1323
- };
1324
- id: string;
2514
+ }>;
2515
+ type FlightReviewedEvent = Extract<Event, {
1325
2516
  event_type: "protocol.flight.reviewed";
1326
- timestamp: string;
1327
- };
2517
+ }>;
2518
+
2519
+ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): zod.objectOutputType<{
2520
+ id: zod.ZodString;
2521
+ event_type: zod.ZodLiteral<"test">;
2522
+ timestamp: zod.ZodString;
2523
+ data: zod.ZodObject<{
2524
+ message: zod.ZodString;
2525
+ }, "strip", zod.ZodAny, zod.objectOutputType<{
2526
+ message: zod.ZodString;
2527
+ }, zod.ZodAny, "strip">, zod.objectInputType<{
2528
+ message: zod.ZodString;
2529
+ }, zod.ZodAny, "strip">>;
2530
+ }, zod.ZodAny, "strip"> | zod.objectOutputType<{
2531
+ id: zod.ZodString;
2532
+ event_type: zod.ZodLiteral<"protocol.mission.created">;
2533
+ timestamp: zod.ZodString;
2534
+ data: zod.ZodObject<{
2535
+ id: zod.ZodEffects<zod.ZodObject<{
2536
+ __type: zod.ZodLiteral<"bigint">;
2537
+ value: zod.ZodString;
2538
+ }, "strip", zod.ZodTypeAny, {
2539
+ value: string;
2540
+ __type: "bigint";
2541
+ }, {
2542
+ value: string;
2543
+ __type: "bigint";
2544
+ }>, bigint, {
2545
+ value: string;
2546
+ __type: "bigint";
2547
+ }>;
2548
+ vaultId: zod.ZodEffects<zod.ZodObject<{
2549
+ __type: zod.ZodLiteral<"bigint">;
2550
+ value: zod.ZodString;
2551
+ }, "strip", zod.ZodTypeAny, {
2552
+ value: string;
2553
+ __type: "bigint";
2554
+ }, {
2555
+ value: string;
2556
+ __type: "bigint";
2557
+ }>, bigint, {
2558
+ value: string;
2559
+ __type: "bigint";
2560
+ }>;
2561
+ amount: zod.ZodEffects<zod.ZodObject<{
2562
+ __type: zod.ZodLiteral<"bigint">;
2563
+ value: zod.ZodString;
2564
+ }, "strip", zod.ZodTypeAny, {
2565
+ value: string;
2566
+ __type: "bigint";
2567
+ }, {
2568
+ value: string;
2569
+ __type: "bigint";
2570
+ }>, bigint, {
2571
+ value: string;
2572
+ __type: "bigint";
2573
+ }>;
2574
+ zoneId: zod.ZodString;
2575
+ flightPlanId: zod.ZodNumber;
2576
+ campaigns: zod.ZodArray<zod.ZodString, "many">;
2577
+ captureStartTime: zod.ZodString;
2578
+ captureEndTime: zod.ZodString;
2579
+ requestor: zod.ZodString;
2580
+ }, "strip", zod.ZodAny, zod.objectOutputType<{
2581
+ id: zod.ZodEffects<zod.ZodObject<{
2582
+ __type: zod.ZodLiteral<"bigint">;
2583
+ value: zod.ZodString;
2584
+ }, "strip", zod.ZodTypeAny, {
2585
+ value: string;
2586
+ __type: "bigint";
2587
+ }, {
2588
+ value: string;
2589
+ __type: "bigint";
2590
+ }>, bigint, {
2591
+ value: string;
2592
+ __type: "bigint";
2593
+ }>;
2594
+ vaultId: zod.ZodEffects<zod.ZodObject<{
2595
+ __type: zod.ZodLiteral<"bigint">;
2596
+ value: zod.ZodString;
2597
+ }, "strip", zod.ZodTypeAny, {
2598
+ value: string;
2599
+ __type: "bigint";
2600
+ }, {
2601
+ value: string;
2602
+ __type: "bigint";
2603
+ }>, bigint, {
2604
+ value: string;
2605
+ __type: "bigint";
2606
+ }>;
2607
+ amount: zod.ZodEffects<zod.ZodObject<{
2608
+ __type: zod.ZodLiteral<"bigint">;
2609
+ value: zod.ZodString;
2610
+ }, "strip", zod.ZodTypeAny, {
2611
+ value: string;
2612
+ __type: "bigint";
2613
+ }, {
2614
+ value: string;
2615
+ __type: "bigint";
2616
+ }>, bigint, {
2617
+ value: string;
2618
+ __type: "bigint";
2619
+ }>;
2620
+ zoneId: zod.ZodString;
2621
+ flightPlanId: zod.ZodNumber;
2622
+ campaigns: zod.ZodArray<zod.ZodString, "many">;
2623
+ captureStartTime: zod.ZodString;
2624
+ captureEndTime: zod.ZodString;
2625
+ requestor: zod.ZodString;
2626
+ }, zod.ZodAny, "strip">, zod.objectInputType<{
2627
+ id: zod.ZodEffects<zod.ZodObject<{
2628
+ __type: zod.ZodLiteral<"bigint">;
2629
+ value: zod.ZodString;
2630
+ }, "strip", zod.ZodTypeAny, {
2631
+ value: string;
2632
+ __type: "bigint";
2633
+ }, {
2634
+ value: string;
2635
+ __type: "bigint";
2636
+ }>, bigint, {
2637
+ value: string;
2638
+ __type: "bigint";
2639
+ }>;
2640
+ vaultId: zod.ZodEffects<zod.ZodObject<{
2641
+ __type: zod.ZodLiteral<"bigint">;
2642
+ value: zod.ZodString;
2643
+ }, "strip", zod.ZodTypeAny, {
2644
+ value: string;
2645
+ __type: "bigint";
2646
+ }, {
2647
+ value: string;
2648
+ __type: "bigint";
2649
+ }>, bigint, {
2650
+ value: string;
2651
+ __type: "bigint";
2652
+ }>;
2653
+ amount: zod.ZodEffects<zod.ZodObject<{
2654
+ __type: zod.ZodLiteral<"bigint">;
2655
+ value: zod.ZodString;
2656
+ }, "strip", zod.ZodTypeAny, {
2657
+ value: string;
2658
+ __type: "bigint";
2659
+ }, {
2660
+ value: string;
2661
+ __type: "bigint";
2662
+ }>, bigint, {
2663
+ value: string;
2664
+ __type: "bigint";
2665
+ }>;
2666
+ zoneId: zod.ZodString;
2667
+ flightPlanId: zod.ZodNumber;
2668
+ campaigns: zod.ZodArray<zod.ZodString, "many">;
2669
+ captureStartTime: zod.ZodString;
2670
+ captureEndTime: zod.ZodString;
2671
+ requestor: zod.ZodString;
2672
+ }, zod.ZodAny, "strip">>;
2673
+ }, zod.ZodAny, "strip"> | zod.objectOutputType<{
2674
+ id: zod.ZodString;
2675
+ event_type: zod.ZodLiteral<"protocol.mission.updated">;
2676
+ timestamp: zod.ZodString;
2677
+ data: zod.ZodObject<{
2678
+ id: zod.ZodEffects<zod.ZodObject<{
2679
+ __type: zod.ZodLiteral<"bigint">;
2680
+ value: zod.ZodString;
2681
+ }, "strip", zod.ZodTypeAny, {
2682
+ value: string;
2683
+ __type: "bigint";
2684
+ }, {
2685
+ value: string;
2686
+ __type: "bigint";
2687
+ }>, bigint, {
2688
+ value: string;
2689
+ __type: "bigint";
2690
+ }>;
2691
+ amount: zod.ZodOptional<zod.ZodEffects<zod.ZodObject<{
2692
+ __type: zod.ZodLiteral<"bigint">;
2693
+ value: zod.ZodString;
2694
+ }, "strip", zod.ZodTypeAny, {
2695
+ value: string;
2696
+ __type: "bigint";
2697
+ }, {
2698
+ value: string;
2699
+ __type: "bigint";
2700
+ }>, bigint, {
2701
+ value: string;
2702
+ __type: "bigint";
2703
+ }>>;
2704
+ isOpen: zod.ZodOptional<zod.ZodBoolean>;
2705
+ campaigns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2706
+ }, "strip", zod.ZodAny, zod.objectOutputType<{
2707
+ id: zod.ZodEffects<zod.ZodObject<{
2708
+ __type: zod.ZodLiteral<"bigint">;
2709
+ value: zod.ZodString;
2710
+ }, "strip", zod.ZodTypeAny, {
2711
+ value: string;
2712
+ __type: "bigint";
2713
+ }, {
2714
+ value: string;
2715
+ __type: "bigint";
2716
+ }>, bigint, {
2717
+ value: string;
2718
+ __type: "bigint";
2719
+ }>;
2720
+ amount: zod.ZodOptional<zod.ZodEffects<zod.ZodObject<{
2721
+ __type: zod.ZodLiteral<"bigint">;
2722
+ value: zod.ZodString;
2723
+ }, "strip", zod.ZodTypeAny, {
2724
+ value: string;
2725
+ __type: "bigint";
2726
+ }, {
2727
+ value: string;
2728
+ __type: "bigint";
2729
+ }>, bigint, {
2730
+ value: string;
2731
+ __type: "bigint";
2732
+ }>>;
2733
+ isOpen: zod.ZodOptional<zod.ZodBoolean>;
2734
+ campaigns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2735
+ }, zod.ZodAny, "strip">, zod.objectInputType<{
2736
+ id: zod.ZodEffects<zod.ZodObject<{
2737
+ __type: zod.ZodLiteral<"bigint">;
2738
+ value: zod.ZodString;
2739
+ }, "strip", zod.ZodTypeAny, {
2740
+ value: string;
2741
+ __type: "bigint";
2742
+ }, {
2743
+ value: string;
2744
+ __type: "bigint";
2745
+ }>, bigint, {
2746
+ value: string;
2747
+ __type: "bigint";
2748
+ }>;
2749
+ amount: zod.ZodOptional<zod.ZodEffects<zod.ZodObject<{
2750
+ __type: zod.ZodLiteral<"bigint">;
2751
+ value: zod.ZodString;
2752
+ }, "strip", zod.ZodTypeAny, {
2753
+ value: string;
2754
+ __type: "bigint";
2755
+ }, {
2756
+ value: string;
2757
+ __type: "bigint";
2758
+ }>, bigint, {
2759
+ value: string;
2760
+ __type: "bigint";
2761
+ }>>;
2762
+ isOpen: zod.ZodOptional<zod.ZodBoolean>;
2763
+ campaigns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2764
+ }, zod.ZodAny, "strip">>;
2765
+ }, zod.ZodAny, "strip"> | zod.objectOutputType<{
2766
+ id: zod.ZodString;
2767
+ event_type: zod.ZodLiteral<"protocol.mission.paid">;
2768
+ timestamp: zod.ZodString;
2769
+ data: zod.ZodObject<{
2770
+ recipient: zod.ZodString;
2771
+ flightId: zod.ZodEffects<zod.ZodObject<{
2772
+ __type: zod.ZodLiteral<"bigint">;
2773
+ value: zod.ZodString;
2774
+ }, "strip", zod.ZodTypeAny, {
2775
+ value: string;
2776
+ __type: "bigint";
2777
+ }, {
2778
+ value: string;
2779
+ __type: "bigint";
2780
+ }>, bigint, {
2781
+ value: string;
2782
+ __type: "bigint";
2783
+ }>;
2784
+ missionId: zod.ZodEffects<zod.ZodObject<{
2785
+ __type: zod.ZodLiteral<"bigint">;
2786
+ value: zod.ZodString;
2787
+ }, "strip", zod.ZodTypeAny, {
2788
+ value: string;
2789
+ __type: "bigint";
2790
+ }, {
2791
+ value: string;
2792
+ __type: "bigint";
2793
+ }>, bigint, {
2794
+ value: string;
2795
+ __type: "bigint";
2796
+ }>;
2797
+ vaultId: zod.ZodEffects<zod.ZodObject<{
2798
+ __type: zod.ZodLiteral<"bigint">;
2799
+ value: zod.ZodString;
2800
+ }, "strip", zod.ZodTypeAny, {
2801
+ value: string;
2802
+ __type: "bigint";
2803
+ }, {
2804
+ value: string;
2805
+ __type: "bigint";
2806
+ }>, bigint, {
2807
+ value: string;
2808
+ __type: "bigint";
2809
+ }>;
2810
+ amount: zod.ZodEffects<zod.ZodObject<{
2811
+ __type: zod.ZodLiteral<"bigint">;
2812
+ value: zod.ZodString;
2813
+ }, "strip", zod.ZodTypeAny, {
2814
+ value: string;
2815
+ __type: "bigint";
2816
+ }, {
2817
+ value: string;
2818
+ __type: "bigint";
2819
+ }>, bigint, {
2820
+ value: string;
2821
+ __type: "bigint";
2822
+ }>;
2823
+ storageKey: zod.ZodString;
2824
+ }, "strip", zod.ZodAny, zod.objectOutputType<{
2825
+ recipient: zod.ZodString;
2826
+ flightId: zod.ZodEffects<zod.ZodObject<{
2827
+ __type: zod.ZodLiteral<"bigint">;
2828
+ value: zod.ZodString;
2829
+ }, "strip", zod.ZodTypeAny, {
2830
+ value: string;
2831
+ __type: "bigint";
2832
+ }, {
2833
+ value: string;
2834
+ __type: "bigint";
2835
+ }>, bigint, {
2836
+ value: string;
2837
+ __type: "bigint";
2838
+ }>;
2839
+ missionId: zod.ZodEffects<zod.ZodObject<{
2840
+ __type: zod.ZodLiteral<"bigint">;
2841
+ value: zod.ZodString;
2842
+ }, "strip", zod.ZodTypeAny, {
2843
+ value: string;
2844
+ __type: "bigint";
2845
+ }, {
2846
+ value: string;
2847
+ __type: "bigint";
2848
+ }>, bigint, {
2849
+ value: string;
2850
+ __type: "bigint";
2851
+ }>;
2852
+ vaultId: zod.ZodEffects<zod.ZodObject<{
2853
+ __type: zod.ZodLiteral<"bigint">;
2854
+ value: zod.ZodString;
2855
+ }, "strip", zod.ZodTypeAny, {
2856
+ value: string;
2857
+ __type: "bigint";
2858
+ }, {
2859
+ value: string;
2860
+ __type: "bigint";
2861
+ }>, bigint, {
2862
+ value: string;
2863
+ __type: "bigint";
2864
+ }>;
2865
+ amount: zod.ZodEffects<zod.ZodObject<{
2866
+ __type: zod.ZodLiteral<"bigint">;
2867
+ value: zod.ZodString;
2868
+ }, "strip", zod.ZodTypeAny, {
2869
+ value: string;
2870
+ __type: "bigint";
2871
+ }, {
2872
+ value: string;
2873
+ __type: "bigint";
2874
+ }>, bigint, {
2875
+ value: string;
2876
+ __type: "bigint";
2877
+ }>;
2878
+ storageKey: zod.ZodString;
2879
+ }, zod.ZodAny, "strip">, zod.objectInputType<{
2880
+ recipient: zod.ZodString;
2881
+ flightId: zod.ZodEffects<zod.ZodObject<{
2882
+ __type: zod.ZodLiteral<"bigint">;
2883
+ value: zod.ZodString;
2884
+ }, "strip", zod.ZodTypeAny, {
2885
+ value: string;
2886
+ __type: "bigint";
2887
+ }, {
2888
+ value: string;
2889
+ __type: "bigint";
2890
+ }>, bigint, {
2891
+ value: string;
2892
+ __type: "bigint";
2893
+ }>;
2894
+ missionId: zod.ZodEffects<zod.ZodObject<{
2895
+ __type: zod.ZodLiteral<"bigint">;
2896
+ value: zod.ZodString;
2897
+ }, "strip", zod.ZodTypeAny, {
2898
+ value: string;
2899
+ __type: "bigint";
2900
+ }, {
2901
+ value: string;
2902
+ __type: "bigint";
2903
+ }>, bigint, {
2904
+ value: string;
2905
+ __type: "bigint";
2906
+ }>;
2907
+ vaultId: zod.ZodEffects<zod.ZodObject<{
2908
+ __type: zod.ZodLiteral<"bigint">;
2909
+ value: zod.ZodString;
2910
+ }, "strip", zod.ZodTypeAny, {
2911
+ value: string;
2912
+ __type: "bigint";
2913
+ }, {
2914
+ value: string;
2915
+ __type: "bigint";
2916
+ }>, bigint, {
2917
+ value: string;
2918
+ __type: "bigint";
2919
+ }>;
2920
+ amount: zod.ZodEffects<zod.ZodObject<{
2921
+ __type: zod.ZodLiteral<"bigint">;
2922
+ value: zod.ZodString;
2923
+ }, "strip", zod.ZodTypeAny, {
2924
+ value: string;
2925
+ __type: "bigint";
2926
+ }, {
2927
+ value: string;
2928
+ __type: "bigint";
2929
+ }>, bigint, {
2930
+ value: string;
2931
+ __type: "bigint";
2932
+ }>;
2933
+ storageKey: zod.ZodString;
2934
+ }, zod.ZodAny, "strip">>;
2935
+ }, zod.ZodAny, "strip"> | zod.objectOutputType<{
2936
+ id: zod.ZodString;
2937
+ event_type: zod.ZodLiteral<"protocol.flight.submitted">;
2938
+ timestamp: zod.ZodString;
2939
+ data: zod.ZodObject<{
2940
+ storageKey: zod.ZodString;
2941
+ pilotAddress: zod.ZodString;
2942
+ flightManifestUri: zod.ZodString;
2943
+ missionId: zod.ZodEffects<zod.ZodObject<{
2944
+ __type: zod.ZodLiteral<"bigint">;
2945
+ value: zod.ZodString;
2946
+ }, "strip", zod.ZodTypeAny, {
2947
+ value: string;
2948
+ __type: "bigint";
2949
+ }, {
2950
+ value: string;
2951
+ __type: "bigint";
2952
+ }>, bigint, {
2953
+ value: string;
2954
+ __type: "bigint";
2955
+ }>;
2956
+ }, "strip", zod.ZodAny, zod.objectOutputType<{
2957
+ storageKey: zod.ZodString;
2958
+ pilotAddress: zod.ZodString;
2959
+ flightManifestUri: zod.ZodString;
2960
+ missionId: zod.ZodEffects<zod.ZodObject<{
2961
+ __type: zod.ZodLiteral<"bigint">;
2962
+ value: zod.ZodString;
2963
+ }, "strip", zod.ZodTypeAny, {
2964
+ value: string;
2965
+ __type: "bigint";
2966
+ }, {
2967
+ value: string;
2968
+ __type: "bigint";
2969
+ }>, bigint, {
2970
+ value: string;
2971
+ __type: "bigint";
2972
+ }>;
2973
+ }, zod.ZodAny, "strip">, zod.objectInputType<{
2974
+ storageKey: zod.ZodString;
2975
+ pilotAddress: zod.ZodString;
2976
+ flightManifestUri: zod.ZodString;
2977
+ missionId: zod.ZodEffects<zod.ZodObject<{
2978
+ __type: zod.ZodLiteral<"bigint">;
2979
+ value: zod.ZodString;
2980
+ }, "strip", zod.ZodTypeAny, {
2981
+ value: string;
2982
+ __type: "bigint";
2983
+ }, {
2984
+ value: string;
2985
+ __type: "bigint";
2986
+ }>, bigint, {
2987
+ value: string;
2988
+ __type: "bigint";
2989
+ }>;
2990
+ }, zod.ZodAny, "strip">>;
2991
+ }, zod.ZodAny, "strip"> | zod.objectOutputType<{
2992
+ id: zod.ZodString;
2993
+ event_type: zod.ZodLiteral<"protocol.flight.reviewed">;
2994
+ timestamp: zod.ZodString;
2995
+ data: zod.ZodObject<{
2996
+ flightId: zod.ZodEffects<zod.ZodObject<{
2997
+ __type: zod.ZodLiteral<"bigint">;
2998
+ value: zod.ZodString;
2999
+ }, "strip", zod.ZodTypeAny, {
3000
+ value: string;
3001
+ __type: "bigint";
3002
+ }, {
3003
+ value: string;
3004
+ __type: "bigint";
3005
+ }>, bigint, {
3006
+ value: string;
3007
+ __type: "bigint";
3008
+ }>;
3009
+ owner: zod.ZodString;
3010
+ isApproved: zod.ZodBoolean;
3011
+ validationLogUri: zod.ZodString;
3012
+ validator: zod.ZodString;
3013
+ filesHash: zod.ZodString;
3014
+ storageKey: zod.ZodString;
3015
+ missionId: zod.ZodEffects<zod.ZodObject<{
3016
+ __type: zod.ZodLiteral<"bigint">;
3017
+ value: zod.ZodString;
3018
+ }, "strip", zod.ZodTypeAny, {
3019
+ value: string;
3020
+ __type: "bigint";
3021
+ }, {
3022
+ value: string;
3023
+ __type: "bigint";
3024
+ }>, bigint, {
3025
+ value: string;
3026
+ __type: "bigint";
3027
+ }>;
3028
+ }, "strip", zod.ZodAny, zod.objectOutputType<{
3029
+ flightId: zod.ZodEffects<zod.ZodObject<{
3030
+ __type: zod.ZodLiteral<"bigint">;
3031
+ value: zod.ZodString;
3032
+ }, "strip", zod.ZodTypeAny, {
3033
+ value: string;
3034
+ __type: "bigint";
3035
+ }, {
3036
+ value: string;
3037
+ __type: "bigint";
3038
+ }>, bigint, {
3039
+ value: string;
3040
+ __type: "bigint";
3041
+ }>;
3042
+ owner: zod.ZodString;
3043
+ isApproved: zod.ZodBoolean;
3044
+ validationLogUri: zod.ZodString;
3045
+ validator: zod.ZodString;
3046
+ filesHash: zod.ZodString;
3047
+ storageKey: zod.ZodString;
3048
+ missionId: zod.ZodEffects<zod.ZodObject<{
3049
+ __type: zod.ZodLiteral<"bigint">;
3050
+ value: zod.ZodString;
3051
+ }, "strip", zod.ZodTypeAny, {
3052
+ value: string;
3053
+ __type: "bigint";
3054
+ }, {
3055
+ value: string;
3056
+ __type: "bigint";
3057
+ }>, bigint, {
3058
+ value: string;
3059
+ __type: "bigint";
3060
+ }>;
3061
+ }, zod.ZodAny, "strip">, zod.objectInputType<{
3062
+ flightId: zod.ZodEffects<zod.ZodObject<{
3063
+ __type: zod.ZodLiteral<"bigint">;
3064
+ value: zod.ZodString;
3065
+ }, "strip", zod.ZodTypeAny, {
3066
+ value: string;
3067
+ __type: "bigint";
3068
+ }, {
3069
+ value: string;
3070
+ __type: "bigint";
3071
+ }>, bigint, {
3072
+ value: string;
3073
+ __type: "bigint";
3074
+ }>;
3075
+ owner: zod.ZodString;
3076
+ isApproved: zod.ZodBoolean;
3077
+ validationLogUri: zod.ZodString;
3078
+ validator: zod.ZodString;
3079
+ filesHash: zod.ZodString;
3080
+ storageKey: zod.ZodString;
3081
+ missionId: zod.ZodEffects<zod.ZodObject<{
3082
+ __type: zod.ZodLiteral<"bigint">;
3083
+ value: zod.ZodString;
3084
+ }, "strip", zod.ZodTypeAny, {
3085
+ value: string;
3086
+ __type: "bigint";
3087
+ }, {
3088
+ value: string;
3089
+ __type: "bigint";
3090
+ }>, bigint, {
3091
+ value: string;
3092
+ __type: "bigint";
3093
+ }>;
3094
+ }, zod.ZodAny, "strip">>;
3095
+ }, zod.ZodAny, "strip">;
1328
3096
 
1329
- export { type ApiControllerGetHelloData, type ApiControllerGetHelloResponses, type ApiTokenControllerCreateTokenData, type ApiTokenControllerCreateTokenErrors, type ApiTokenControllerCreateTokenResponse, type ApiTokenControllerCreateTokenResponses, type ApiTokenControllerDeleteTokenData, type ApiTokenControllerDeleteTokenErrors, type ApiTokenControllerDeleteTokenResponses, type ApiTokenControllerGetTokenData, type ApiTokenControllerGetTokenErrors, type ApiTokenControllerGetTokenResponses, type ApiTokenControllerUpdateTokenData, type ApiTokenControllerUpdateTokenErrors, type ApiTokenControllerUpdateTokenResponse, type ApiTokenControllerUpdateTokenResponses, type Auth, type Client, type ClientOptions$1 as ClientOptions, type ConditionsControllerGetSunAltitudeTimeLimitsData, type ConditionsControllerGetSunAltitudeTimeLimitsResponse, type ConditionsControllerGetSunAltitudeTimeLimitsResponses, type Config, type CreateApiTokenRequestDto, type CreateApiTokenResponseDto, type CreateClientConfig, type CreateFileRequestDto, type CreateFileResponseDto, type CreateMissionRequestDto, type CreateMissionResponseDto, type CreateQuoteRequestDto, type CreateWebhookBody, type CreateWebhookResponse, type DeleteWebhookResponse, Event, type FlightDto, type FlightReviewedEvent, type FlightSubmittedEvent, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponse, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateStorageKeyData, type FlightsControllerGenerateStorageKeyErrors, type FlightsControllerGenerateStorageKeyResponse, type FlightsControllerGenerateStorageKeyResponses, type FlightsControllerGetFlightData, type FlightsControllerGetFlightErrors, type FlightsControllerGetFlightResponse, type FlightsControllerGetFlightResponses, type FlightsControllerValidateFlightData, type FlightsControllerValidateFlightErrors, type FlightsControllerValidateFlightResponse, type FlightsControllerValidateFlightResponses, type GetProvenanceCryptoKeyResponse, type GetTimeLimitsForSunAltitudeResponse, type GetWebhookResponse, type GetWebhookStatusResponse, type GetWebhooksResponse, type KeysControllerGetProvenanceCryptoKeyData, type KeysControllerGetProvenanceCryptoKeyResponse, type KeysControllerGetProvenanceCryptoKeyResponses, type MissionCreatedEvent, type MissionPaidEvent, type MissionUpdatedEvent, type MissionsControllerCreateMissionsData, type MissionsControllerCreateMissionsErrors, type MissionsControllerCreateMissionsResponse, type MissionsControllerCreateMissionsResponses, type MissionsControllerUpdateMissionsData, type MissionsControllerUpdateMissionsResponse, type MissionsControllerUpdateMissionsResponses, type Options, type OptionsLegacyParser, type QuerySerializerOptions, type QuotesControllerCreateQuoteData, type QuotesControllerCreateQuoteErrors, type QuotesControllerCreateQuoteResponses, type QuotesControllerGetQuoteData, type QuotesControllerGetQuoteErrors, type QuotesControllerGetQuoteResponses, type RegenerateWebhookSecretResponseDto, type RequestOptions, type RequestResult, type ResponseStyle, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TDataShape, type TestEvent, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateMissionsRequestDto, type UpdateMissionsResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightRequestDto, type ValidateFlightResponseDto, type WebhooksControllerCreateData, type WebhooksControllerCreateErrors, type WebhooksControllerCreateResponse, type WebhooksControllerCreateResponses, type WebhooksControllerDeleteData, type WebhooksControllerDeleteErrors, type WebhooksControllerDeleteResponse, type WebhooksControllerDeleteResponses, type WebhooksControllerGetData, type WebhooksControllerGetErrors, type WebhooksControllerGetManyData, type WebhooksControllerGetManyErrors, type WebhooksControllerGetManyResponse, type WebhooksControllerGetManyResponses, type WebhooksControllerGetResponse, type WebhooksControllerGetResponses, type WebhooksControllerGetStatusData, type WebhooksControllerGetStatusErrors, type WebhooksControllerGetStatusResponse, type WebhooksControllerGetStatusResponses, type WebhooksControllerRegenerateSecretData, type WebhooksControllerRegenerateSecretErrors, type WebhooksControllerRegenerateSecretResponse, type WebhooksControllerRegenerateSecretResponses, type WebhooksControllerTestData, type WebhooksControllerTestErrors, type WebhooksControllerTestResponse, type WebhooksControllerTestResponses, type WebhooksControllerUpdateData, type WebhooksControllerUpdateErrors, type WebhooksControllerUpdateResponse, type WebhooksControllerUpdateResponses, apiControllerGetHello, apiTokenControllerCreateToken, apiTokenControllerDeleteToken, apiTokenControllerGetToken, apiTokenControllerUpdateToken, buildClientParams, conditionsControllerGetSunAltitudeTimeLimits, createClient, createConfig, flightsControllerCreatePresignedUrls, flightsControllerGenerateStorageKey, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, missionsControllerCreateMissions, missionsControllerUpdateMissions, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
3097
+ export { type ApiControllerGetErrorData, type ApiControllerGetErrorResponses, type ApiControllerGetHelloData, type ApiControllerGetHelloResponses, type ApiTokenControllerCreateTokenData, type ApiTokenControllerCreateTokenErrors, type ApiTokenControllerCreateTokenResponse, type ApiTokenControllerCreateTokenResponses, type ApiTokenControllerDeleteTokenData, type ApiTokenControllerDeleteTokenErrors, type ApiTokenControllerDeleteTokenResponses, type ApiTokenControllerGetTokenData, type ApiTokenControllerGetTokenErrors, type ApiTokenControllerGetTokenResponses, type ApiTokenControllerUpdateTokenData, type ApiTokenControllerUpdateTokenErrors, type ApiTokenControllerUpdateTokenResponse, type ApiTokenControllerUpdateTokenResponses, type Auth, type Client, type ClientOptions$1 as ClientOptions, type ConditionsControllerGetSunAltitudeTimeLimitsData, type ConditionsControllerGetSunAltitudeTimeLimitsResponse, type ConditionsControllerGetSunAltitudeTimeLimitsResponses, type Config, type CreateApiTokenRequestDto, type CreateApiTokenResponseDto, type CreateClientConfig, type CreateFileRequestDto, type CreateFileResponseDto, type CreateMissionRequestDto, type CreateMissionResponseDto, type CreateQuoteRequestDto, type CreateWebhookBody, type CreateWebhookResponse, type DeleteWebhookResponse, Event, type FlightDto, type FlightReviewedEvent, type FlightSubmittedEvent, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponse, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateStorageKeyData, type FlightsControllerGenerateStorageKeyErrors, type FlightsControllerGenerateStorageKeyResponse, type FlightsControllerGenerateStorageKeyResponses, type FlightsControllerGetFlightData, type FlightsControllerGetFlightErrors, type FlightsControllerGetFlightResponse, type FlightsControllerGetFlightResponses, type FlightsControllerValidateFlightData, type FlightsControllerValidateFlightErrors, type FlightsControllerValidateFlightResponse, type FlightsControllerValidateFlightResponses, type GetProvenanceCryptoKeyResponse, type GetTimeLimitsForSunAltitudeResponse, type GetWebhookResponse, type GetWebhookStatusResponse, type GetWebhooksResponse, type KeysControllerGetProvenanceCryptoKeyData, type KeysControllerGetProvenanceCryptoKeyResponse, type KeysControllerGetProvenanceCryptoKeyResponses, type MissionCreatedEvent, type MissionPaidEvent, type MissionUpdatedEvent, type MissionsControllerCreateMissionsData, type MissionsControllerCreateMissionsErrors, type MissionsControllerCreateMissionsResponse, type MissionsControllerCreateMissionsResponses, type MissionsControllerUpdateMissionsData, type MissionsControllerUpdateMissionsErrors, type MissionsControllerUpdateMissionsResponse, type MissionsControllerUpdateMissionsResponses, type Options, type OptionsLegacyParser, type QuerySerializerOptions, type QuotesControllerCreateQuoteData, type QuotesControllerCreateQuoteErrors, type QuotesControllerCreateQuoteResponses, type QuotesControllerGetQuoteData, type QuotesControllerGetQuoteErrors, type QuotesControllerGetQuoteResponses, type RegenerateWebhookSecretResponseDto, type RequestOptions, type RequestResult, type ResponseStyle, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TDataShape, type TestEvent, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateMissionsRequestDto, type UpdateMissionsResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightRequestDto, type ValidateFlightResponseDto, type WebhooksControllerCreateData, type WebhooksControllerCreateErrors, type WebhooksControllerCreateResponse, type WebhooksControllerCreateResponses, type WebhooksControllerDeleteData, type WebhooksControllerDeleteErrors, type WebhooksControllerDeleteResponse, type WebhooksControllerDeleteResponses, type WebhooksControllerGetData, type WebhooksControllerGetErrors, type WebhooksControllerGetManyData, type WebhooksControllerGetManyErrors, type WebhooksControllerGetManyResponse, type WebhooksControllerGetManyResponses, type WebhooksControllerGetResponse, type WebhooksControllerGetResponses, type WebhooksControllerGetStatusData, type WebhooksControllerGetStatusErrors, type WebhooksControllerGetStatusResponse, type WebhooksControllerGetStatusResponses, type WebhooksControllerRegenerateSecretData, type WebhooksControllerRegenerateSecretErrors, type WebhooksControllerRegenerateSecretResponse, type WebhooksControllerRegenerateSecretResponses, type WebhooksControllerTestData, type WebhooksControllerTestErrors, type WebhooksControllerTestResponse, type WebhooksControllerTestResponses, type WebhooksControllerUpdateData, type WebhooksControllerUpdateErrors, type WebhooksControllerUpdateResponse, type WebhooksControllerUpdateResponses, apiControllerGetError, apiControllerGetHello, apiTokenControllerCreateToken, apiTokenControllerDeleteToken, apiTokenControllerGetToken, apiTokenControllerUpdateToken, buildClientParams, conditionsControllerGetSunAltitudeTimeLimits, createClient, createConfig, flightsControllerCreatePresignedUrls, flightsControllerGenerateStorageKey, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, missionsControllerCreateMissions, missionsControllerUpdateMissions, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };