@layer-drone/protocol 0.1.0 → 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,29 +773,37 @@ 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<{
780
- id: z.ZodAny;
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<{
804
+ id: z.ZodString;
781
805
  event_type: z.ZodLiteral<"protocol.mission.created">;
782
- timestamp: z.ZodAny;
806
+ timestamp: z.ZodString;
783
807
  data: z.ZodObject<{
784
808
  id: z.ZodEffects<z.ZodObject<{
785
809
  __type: z.ZodLiteral<"bigint">;
@@ -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
- event_type: "protocol.mission.created";
868
- id?: any;
869
- timestamp?: any;
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
- event_type: "protocol.mission.created";
891
- id?: any;
892
- timestamp?: any;
893
- }>, z.ZodObject<{
894
- id: z.ZodAny;
895
- event_type: z.ZodLiteral<"protocol.mission.updated">;
896
- timestamp: z.ZodAny;
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
- event_type: "protocol.mission.updated";
947
- id?: any;
948
- timestamp?: any;
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
- event_type: "protocol.mission.updated";
962
- id?: any;
963
- timestamp?: any;
964
- }>, z.ZodObject<{
965
- id: z.ZodAny;
966
- event_type: z.ZodLiteral<"protocol.mission.paid">;
967
- timestamp: z.ZodAny;
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<{
947
+ id: z.ZodString;
948
+ event_type: z.ZodLiteral<"protocol.mission.created">;
949
+ timestamp: z.ZodString;
968
950
  data: z.ZodObject<{
969
- recipient: z.ZodAny;
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,40 @@ 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<{
965
+ __type: z.ZodLiteral<"bigint">;
966
+ value: z.ZodString;
967
+ }, "strip", z.ZodTypeAny, {
968
+ value: string;
969
+ __type: "bigint";
970
+ }, {
971
+ value: string;
972
+ __type: "bigint";
973
+ }>, bigint, {
974
+ value: string;
975
+ __type: "bigint";
976
+ }>;
977
+ amount: z.ZodEffects<z.ZodObject<{
978
+ __type: z.ZodLiteral<"bigint">;
979
+ value: z.ZodString;
980
+ }, "strip", z.ZodTypeAny, {
981
+ value: string;
982
+ __type: "bigint";
983
+ }, {
984
+ value: string;
985
+ __type: "bigint";
986
+ }>, bigint, {
987
+ value: string;
988
+ __type: "bigint";
989
+ }>;
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<{
984
998
  __type: z.ZodLiteral<"bigint">;
985
999
  value: z.ZodString;
986
1000
  }, "strip", z.ZodTypeAny, {
@@ -1019,74 +1033,65 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1019
1033
  value: string;
1020
1034
  __type: "bigint";
1021
1035
  }>;
1022
- }, "strict", z.ZodTypeAny, {
1023
- missionId: bigint;
1024
- flightId: bigint;
1025
- vaultId: bigint;
1026
- amount: bigint;
1027
- recipient?: any;
1028
- }, {
1029
- missionId: {
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, {
1047
+ value: string;
1048
+ __type: "bigint";
1049
+ }, {
1030
1050
  value: string;
1031
1051
  __type: "bigint";
1032
- };
1033
- flightId: {
1052
+ }>, bigint, {
1034
1053
  value: string;
1035
1054
  __type: "bigint";
1036
- };
1037
- vaultId: {
1055
+ }>;
1056
+ vaultId: z.ZodEffects<z.ZodObject<{
1057
+ __type: z.ZodLiteral<"bigint">;
1058
+ value: z.ZodString;
1059
+ }, "strip", z.ZodTypeAny, {
1038
1060
  value: string;
1039
1061
  __type: "bigint";
1040
- };
1041
- amount: {
1062
+ }, {
1042
1063
  value: string;
1043
1064
  __type: "bigint";
1044
- };
1045
- recipient?: any;
1046
- }>;
1047
- }, "strict", z.ZodTypeAny, {
1048
- data: {
1049
- missionId: bigint;
1050
- flightId: bigint;
1051
- vaultId: bigint;
1052
- amount: bigint;
1053
- recipient?: any;
1054
- };
1055
- event_type: "protocol.mission.paid";
1056
- id?: any;
1057
- timestamp?: any;
1058
- }, {
1059
- data: {
1060
- missionId: {
1065
+ }>, bigint, {
1061
1066
  value: string;
1062
1067
  __type: "bigint";
1063
- };
1064
- flightId: {
1068
+ }>;
1069
+ amount: z.ZodEffects<z.ZodObject<{
1070
+ __type: z.ZodLiteral<"bigint">;
1071
+ value: z.ZodString;
1072
+ }, "strip", z.ZodTypeAny, {
1065
1073
  value: string;
1066
1074
  __type: "bigint";
1067
- };
1068
- vaultId: {
1075
+ }, {
1069
1076
  value: string;
1070
1077
  __type: "bigint";
1071
- };
1072
- amount: {
1078
+ }>, bigint, {
1073
1079
  value: string;
1074
1080
  __type: "bigint";
1075
- };
1076
- recipient?: any;
1077
- };
1078
- event_type: "protocol.mission.paid";
1079
- id?: any;
1080
- timestamp?: any;
1081
- }>, z.ZodObject<{
1082
- id: z.ZodAny;
1083
- event_type: z.ZodLiteral<"protocol.flight.submitted">;
1084
- timestamp: z.ZodAny;
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<{
1090
+ id: z.ZodString;
1091
+ event_type: z.ZodLiteral<"protocol.mission.created">;
1092
+ timestamp: z.ZodString;
1085
1093
  data: z.ZodObject<{
1086
- storageKey: z.ZodString;
1087
- pilotAddress: z.ZodString;
1088
- flightManifestUri: z.ZodString;
1089
- missionId: z.ZodEffects<z.ZodObject<{
1094
+ id: z.ZodEffects<z.ZodObject<{
1090
1095
  __type: z.ZodLiteral<"bigint">;
1091
1096
  value: z.ZodString;
1092
1097
  }, "strip", z.ZodTypeAny, {
@@ -1099,49 +1104,20 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1099
1104
  value: string;
1100
1105
  __type: "bigint";
1101
1106
  }>;
1102
- }, "strict", z.ZodTypeAny, {
1103
- missionId: bigint;
1104
- pilotAddress: string;
1105
- storageKey: string;
1106
- flightManifestUri: string;
1107
- }, {
1108
- missionId: {
1107
+ vaultId: z.ZodEffects<z.ZodObject<{
1108
+ __type: z.ZodLiteral<"bigint">;
1109
+ value: z.ZodString;
1110
+ }, "strip", z.ZodTypeAny, {
1109
1111
  value: string;
1110
1112
  __type: "bigint";
1111
- };
1112
- pilotAddress: string;
1113
- storageKey: string;
1114
- flightManifestUri: string;
1115
- }>;
1116
- }, "strict", z.ZodTypeAny, {
1117
- data: {
1118
- missionId: bigint;
1119
- pilotAddress: string;
1120
- storageKey: string;
1121
- flightManifestUri: string;
1122
- };
1123
- event_type: "protocol.flight.submitted";
1124
- id?: any;
1125
- timestamp?: any;
1126
- }, {
1127
- data: {
1128
- missionId: {
1113
+ }, {
1129
1114
  value: string;
1130
1115
  __type: "bigint";
1131
- };
1132
- pilotAddress: string;
1133
- storageKey: string;
1134
- flightManifestUri: string;
1135
- };
1136
- event_type: "protocol.flight.submitted";
1137
- id?: any;
1138
- timestamp?: any;
1139
- }>, z.ZodObject<{
1140
- id: z.ZodAny;
1141
- event_type: z.ZodLiteral<"protocol.flight.reviewed">;
1142
- timestamp: z.ZodAny;
1143
- data: z.ZodObject<{
1144
- flightId: z.ZodEffects<z.ZodObject<{
1116
+ }>, bigint, {
1117
+ value: string;
1118
+ __type: "bigint";
1119
+ }>;
1120
+ amount: z.ZodEffects<z.ZodObject<{
1145
1121
  __type: z.ZodLiteral<"bigint">;
1146
1122
  value: z.ZodString;
1147
1123
  }, "strip", z.ZodTypeAny, {
@@ -1154,13 +1130,14 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1154
1130
  value: string;
1155
1131
  __type: "bigint";
1156
1132
  }>;
1157
- owner: z.ZodAny;
1158
- isApproved: z.ZodBoolean;
1159
- validationLogUri: z.ZodString;
1160
- validator: z.ZodString;
1161
- filesHash: z.ZodString;
1162
- storageKey: z.ZodString;
1163
- missionId: z.ZodEffects<z.ZodObject<{
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<{
1164
1141
  __type: z.ZodLiteral<"bigint">;
1165
1142
  value: z.ZodString;
1166
1143
  }, "strip", z.ZodTypeAny, {
@@ -1173,72 +1150,1358 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
1173
1150
  value: string;
1174
1151
  __type: "bigint";
1175
1152
  }>;
1176
- }, "strict", z.ZodTypeAny, {
1177
- missionId: bigint;
1178
- flightId: bigint;
1179
- storageKey: string;
1180
- isApproved: boolean;
1181
- validationLogUri: string;
1182
- validator: string;
1183
- filesHash: string;
1184
- owner?: any;
1185
- }, {
1186
- missionId: {
1187
- value: string;
1188
- __type: "bigint";
1189
- };
1190
- flightId: {
1191
- value: string;
1192
- __type: "bigint";
1193
- };
1194
- storageKey: string;
1195
- isApproved: boolean;
1196
- validationLogUri: string;
1197
- validator: string;
1198
- filesHash: string;
1199
- owner?: any;
1200
- }>;
1201
- }, "strict", z.ZodTypeAny, {
1202
- data: {
1203
- missionId: bigint;
1204
- flightId: bigint;
1205
- storageKey: string;
1206
- isApproved: boolean;
1207
- validationLogUri: string;
1208
- validator: string;
1209
- filesHash: string;
1210
- owner?: any;
1211
- };
1212
- event_type: "protocol.flight.reviewed";
1213
- id?: any;
1214
- timestamp?: any;
1215
- }, {
1216
- data: {
1217
- missionId: {
1153
+ vaultId: z.ZodEffects<z.ZodObject<{
1154
+ __type: z.ZodLiteral<"bigint">;
1155
+ value: z.ZodString;
1156
+ }, "strip", z.ZodTypeAny, {
1218
1157
  value: string;
1219
1158
  __type: "bigint";
1220
- };
1221
- flightId: {
1159
+ }, {
1222
1160
  value: string;
1223
1161
  __type: "bigint";
1224
- };
1225
- storageKey: string;
1226
- isApproved: boolean;
1227
- validationLogUri: string;
1228
- validator: string;
1229
- filesHash: string;
1230
- owner?: any;
1231
- };
1232
- event_type: "protocol.flight.reviewed";
1233
- id?: any;
1234
- timestamp?: any;
1235
- }>]>;
1236
- type Event = z.infer<typeof Event>;
1237
- type TestEvent = Extract<Event, {
1238
- event_type: "test";
1239
- }>;
1240
- type MissionCreatedEvent = Extract<Event, {
1241
- event_type: "protocol.mission.created";
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, {
2501
+ event_type: "test";
2502
+ }>;
2503
+ type MissionCreatedEvent = Extract<Event, {
2504
+ event_type: "protocol.mission.created";
1242
2505
  }>;
1243
2506
  type MissionUpdatedEvent = Extract<Event, {
1244
2507
  event_type: "protocol.mission.updated";
@@ -1253,71 +2516,582 @@ type FlightReviewedEvent = Extract<Event, {
1253
2516
  event_type: "protocol.flight.reviewed";
1254
2517
  }>;
1255
2518
 
1256
- declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
1257
- data: {
1258
- message: string;
1259
- };
1260
- id: string;
1261
- event_type: "test";
1262
- timestamp: string;
1263
- } | {
1264
- data: {
1265
- id: bigint;
1266
- vaultId: bigint;
1267
- amount: bigint;
1268
- zoneId: string;
1269
- flightPlanId: number;
1270
- captureStartTime: string;
1271
- captureEndTime: string;
1272
- requestor: string;
1273
- };
1274
- event_type: "protocol.mission.created";
1275
- id?: any;
1276
- timestamp?: any;
1277
- } | {
1278
- data: {
1279
- id: bigint;
1280
- amount?: bigint | undefined;
1281
- isOpen?: boolean | undefined;
1282
- };
1283
- event_type: "protocol.mission.updated";
1284
- id?: any;
1285
- timestamp?: any;
1286
- } | {
1287
- data: {
1288
- missionId: bigint;
1289
- flightId: bigint;
1290
- vaultId: bigint;
1291
- amount: bigint;
1292
- recipient?: any;
1293
- };
1294
- event_type: "protocol.mission.paid";
1295
- id?: any;
1296
- timestamp?: any;
1297
- } | {
1298
- data: {
1299
- missionId: bigint;
1300
- pilotAddress: string;
1301
- storageKey: string;
1302
- flightManifestUri: string;
1303
- };
1304
- event_type: "protocol.flight.submitted";
1305
- id?: any;
1306
- timestamp?: any;
1307
- } | {
1308
- data: {
1309
- missionId: bigint;
1310
- flightId: bigint;
1311
- storageKey: string;
1312
- isApproved: boolean;
1313
- validationLogUri: string;
1314
- validator: string;
1315
- filesHash: string;
1316
- owner?: any;
1317
- };
1318
- event_type: "protocol.flight.reviewed";
1319
- id?: any;
1320
- timestamp?: any;
1321
- };
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">;
1322
3096
 
1323
- 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 };