@layer-drone/protocol 0.0.15 → 0.0.17
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 +354 -73
- package/dist/index.d.ts +354 -73
- package/dist/index.js +83 -15
- package/dist/index.mjs +82 -14
- package/package.json +1 -1
- package/src/client/sdk.gen.ts +13 -9
- package/src/client/transformers.gen.ts +27 -0
- package/src/client/types.gen.ts +25 -20
- package/src/event/types.gen.ts +56 -8
package/dist/index.d.ts
CHANGED
|
@@ -92,7 +92,8 @@ type ClaimRewardsResponseDto = {
|
|
|
92
92
|
} | string;
|
|
93
93
|
};
|
|
94
94
|
type FlightDto = {
|
|
95
|
-
token_id:
|
|
95
|
+
token_id: bigint;
|
|
96
|
+
mission_id: bigint;
|
|
96
97
|
owner: string;
|
|
97
98
|
validator: string;
|
|
98
99
|
is_approved: boolean;
|
|
@@ -104,16 +105,17 @@ type FlightDto = {
|
|
|
104
105
|
};
|
|
105
106
|
type CreateFileRequestDto = {
|
|
106
107
|
filenames: Array<string>;
|
|
108
|
+
storageKey: string;
|
|
107
109
|
};
|
|
108
110
|
type CreateFileResponseDto = {
|
|
109
111
|
presignedUrls: {
|
|
110
112
|
[key: string]: string;
|
|
111
113
|
};
|
|
112
114
|
};
|
|
113
|
-
type
|
|
114
|
-
|
|
115
|
+
type ValidateFlightRequestDto = {
|
|
116
|
+
storageKey: string;
|
|
115
117
|
pilotAddress: string;
|
|
116
|
-
missionId:
|
|
118
|
+
missionId: bigint;
|
|
117
119
|
flightTimestamp: string;
|
|
118
120
|
flightRequestInfo: {
|
|
119
121
|
filePaths: Array<string>;
|
|
@@ -123,7 +125,7 @@ type ValidateFlightDto = {
|
|
|
123
125
|
};
|
|
124
126
|
};
|
|
125
127
|
type ValidateFlightResponseDto = {
|
|
126
|
-
flightId:
|
|
128
|
+
flightId: bigint;
|
|
127
129
|
flightManifestUri: string;
|
|
128
130
|
};
|
|
129
131
|
type GetTimeLimitsForSunAltitudeResponse = {
|
|
@@ -142,7 +144,7 @@ type GetTimeLimitsForSunAltitudeResponse = {
|
|
|
142
144
|
type CreateWebhookBody = {
|
|
143
145
|
name: string;
|
|
144
146
|
url: string;
|
|
145
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
147
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "internal.flight.reviewed" | "*">;
|
|
146
148
|
active: boolean;
|
|
147
149
|
};
|
|
148
150
|
type CreateWebhookResponse = {
|
|
@@ -153,7 +155,7 @@ type GetWebhooksResponse = Array<{
|
|
|
153
155
|
id: number;
|
|
154
156
|
name: string;
|
|
155
157
|
url: string;
|
|
156
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
158
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "internal.flight.reviewed" | "*">;
|
|
157
159
|
active: boolean;
|
|
158
160
|
failure_count: number;
|
|
159
161
|
last_failure_reason: string;
|
|
@@ -164,7 +166,7 @@ type GetWebhookResponse = {
|
|
|
164
166
|
id: number;
|
|
165
167
|
name: string;
|
|
166
168
|
url: string;
|
|
167
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
169
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "internal.flight.reviewed" | "*">;
|
|
168
170
|
active: boolean;
|
|
169
171
|
failure_count: number;
|
|
170
172
|
last_failure_reason: string;
|
|
@@ -174,14 +176,14 @@ type GetWebhookResponse = {
|
|
|
174
176
|
type UpdateWebhookBody = {
|
|
175
177
|
name?: string;
|
|
176
178
|
url?: string;
|
|
177
|
-
event_types?: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
179
|
+
event_types?: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "internal.flight.reviewed" | "*">;
|
|
178
180
|
active?: boolean;
|
|
179
181
|
};
|
|
180
182
|
type UpdateWebhookResponse = {
|
|
181
183
|
id: number;
|
|
182
184
|
name: string;
|
|
183
185
|
url: string;
|
|
184
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
186
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "internal.flight.reviewed" | "*">;
|
|
185
187
|
active: boolean;
|
|
186
188
|
failure_count: number;
|
|
187
189
|
last_failure_reason: string;
|
|
@@ -351,28 +353,28 @@ type MissionsControllerClaimRewardsResponses = {
|
|
|
351
353
|
200: ClaimRewardsResponseDto;
|
|
352
354
|
};
|
|
353
355
|
type MissionsControllerClaimRewardsResponse = MissionsControllerClaimRewardsResponses[keyof MissionsControllerClaimRewardsResponses];
|
|
354
|
-
type
|
|
356
|
+
type FlightsControllerGenerateStorageKeyData = {
|
|
355
357
|
body?: never;
|
|
356
358
|
path?: never;
|
|
357
359
|
query: {
|
|
358
|
-
missionId:
|
|
360
|
+
missionId: bigint;
|
|
359
361
|
pilotAddress: string;
|
|
360
362
|
flightTimestamp?: string;
|
|
361
363
|
};
|
|
362
|
-
url: "/flights/
|
|
364
|
+
url: "/flights/storage-key";
|
|
363
365
|
};
|
|
364
|
-
type
|
|
366
|
+
type FlightsControllerGenerateStorageKeyErrors = {
|
|
365
367
|
401: unknown;
|
|
366
368
|
403: unknown;
|
|
367
369
|
};
|
|
368
|
-
type
|
|
369
|
-
200:
|
|
370
|
+
type FlightsControllerGenerateStorageKeyResponses = {
|
|
371
|
+
200: string;
|
|
370
372
|
};
|
|
371
|
-
type
|
|
373
|
+
type FlightsControllerGenerateStorageKeyResponse = FlightsControllerGenerateStorageKeyResponses[keyof FlightsControllerGenerateStorageKeyResponses];
|
|
372
374
|
type FlightsControllerGetFlightData = {
|
|
373
375
|
body?: never;
|
|
374
376
|
path: {
|
|
375
|
-
flightId:
|
|
377
|
+
flightId: bigint;
|
|
376
378
|
};
|
|
377
379
|
query?: never;
|
|
378
380
|
url: "/flights/{flightId}";
|
|
@@ -387,11 +389,9 @@ type FlightsControllerGetFlightResponses = {
|
|
|
387
389
|
type FlightsControllerGetFlightResponse = FlightsControllerGetFlightResponses[keyof FlightsControllerGetFlightResponses];
|
|
388
390
|
type FlightsControllerCreatePresignedUrlsData = {
|
|
389
391
|
body: CreateFileRequestDto;
|
|
390
|
-
path
|
|
391
|
-
flightId: number;
|
|
392
|
-
};
|
|
392
|
+
path?: never;
|
|
393
393
|
query?: never;
|
|
394
|
-
url: "/flights/
|
|
394
|
+
url: "/flights/files";
|
|
395
395
|
};
|
|
396
396
|
type FlightsControllerCreatePresignedUrlsErrors = {
|
|
397
397
|
401: unknown;
|
|
@@ -402,7 +402,7 @@ type FlightsControllerCreatePresignedUrlsResponses = {
|
|
|
402
402
|
};
|
|
403
403
|
type FlightsControllerCreatePresignedUrlsResponse = FlightsControllerCreatePresignedUrlsResponses[keyof FlightsControllerCreatePresignedUrlsResponses];
|
|
404
404
|
type FlightsControllerValidateFlightData = {
|
|
405
|
-
body:
|
|
405
|
+
body: ValidateFlightRequestDto;
|
|
406
406
|
path?: never;
|
|
407
407
|
query?: never;
|
|
408
408
|
url: "/flights";
|
|
@@ -761,7 +761,7 @@ declare const apiTokenControllerUpdateToken: <ThrowOnError extends boolean = fal
|
|
|
761
761
|
declare const missionsControllerCreateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerCreateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerCreateMissionsResponses, MissionsControllerCreateMissionsErrors, ThrowOnError, "fields">;
|
|
762
762
|
declare const missionsControllerUpdateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerUpdateMissionsResponses, unknown, ThrowOnError, "fields">;
|
|
763
763
|
declare const missionsControllerClaimRewards: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerClaimRewardsData, ThrowOnError>) => RequestResult<MissionsControllerClaimRewardsResponses, MissionsControllerClaimRewardsErrors, ThrowOnError, "fields">;
|
|
764
|
-
declare const
|
|
764
|
+
declare const flightsControllerGenerateStorageKey: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGenerateStorageKeyData, ThrowOnError>) => RequestResult<FlightsControllerGenerateStorageKeyResponses, FlightsControllerGenerateStorageKeyErrors, ThrowOnError, "fields">;
|
|
765
765
|
declare const flightsControllerGetFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGetFlightData, ThrowOnError>) => RequestResult<FlightsControllerGetFlightResponses, FlightsControllerGetFlightErrors, ThrowOnError, "fields">;
|
|
766
766
|
declare const flightsControllerCreatePresignedUrls: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerCreatePresignedUrlsData, ThrowOnError>) => RequestResult<FlightsControllerCreatePresignedUrlsResponses, FlightsControllerCreatePresignedUrlsErrors, ThrowOnError, "fields">;
|
|
767
767
|
declare const flightsControllerValidateFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerValidateFlightData, ThrowOnError>) => RequestResult<FlightsControllerValidateFlightResponses, FlightsControllerValidateFlightErrors, ThrowOnError, "fields">;
|
|
@@ -806,26 +806,41 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
806
806
|
event_type: z.ZodLiteral<"protocol.flight.submitted">;
|
|
807
807
|
timestamp: z.ZodAny;
|
|
808
808
|
data: z.ZodObject<{
|
|
809
|
-
|
|
809
|
+
storageKey: z.ZodString;
|
|
810
810
|
pilotAddress: z.ZodString;
|
|
811
811
|
flightManifestUri: z.ZodString;
|
|
812
|
-
missionId: z.
|
|
812
|
+
missionId: z.ZodEffects<z.ZodObject<{
|
|
813
|
+
__type: z.ZodLiteral<"bigint">;
|
|
814
|
+
value: z.ZodString;
|
|
815
|
+
}, "strip", z.ZodTypeAny, {
|
|
816
|
+
value: string;
|
|
817
|
+
__type: "bigint";
|
|
818
|
+
}, {
|
|
819
|
+
value: string;
|
|
820
|
+
__type: "bigint";
|
|
821
|
+
}>, bigint, {
|
|
822
|
+
value: string;
|
|
823
|
+
__type: "bigint";
|
|
824
|
+
}>;
|
|
813
825
|
}, "strict", z.ZodTypeAny, {
|
|
814
|
-
missionId:
|
|
826
|
+
missionId: bigint;
|
|
815
827
|
pilotAddress: string;
|
|
816
|
-
|
|
828
|
+
storageKey: string;
|
|
817
829
|
flightManifestUri: string;
|
|
818
830
|
}, {
|
|
819
|
-
missionId:
|
|
831
|
+
missionId: {
|
|
832
|
+
value: string;
|
|
833
|
+
__type: "bigint";
|
|
834
|
+
};
|
|
820
835
|
pilotAddress: string;
|
|
821
|
-
|
|
836
|
+
storageKey: string;
|
|
822
837
|
flightManifestUri: string;
|
|
823
838
|
}>;
|
|
824
839
|
}, "strict", z.ZodTypeAny, {
|
|
825
840
|
data: {
|
|
826
|
-
missionId:
|
|
841
|
+
missionId: bigint;
|
|
827
842
|
pilotAddress: string;
|
|
828
|
-
|
|
843
|
+
storageKey: string;
|
|
829
844
|
flightManifestUri: string;
|
|
830
845
|
};
|
|
831
846
|
event_type: "protocol.flight.submitted";
|
|
@@ -833,9 +848,12 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
833
848
|
timestamp?: any;
|
|
834
849
|
}, {
|
|
835
850
|
data: {
|
|
836
|
-
missionId:
|
|
851
|
+
missionId: {
|
|
852
|
+
value: string;
|
|
853
|
+
__type: "bigint";
|
|
854
|
+
};
|
|
837
855
|
pilotAddress: string;
|
|
838
|
-
|
|
856
|
+
storageKey: string;
|
|
839
857
|
flightManifestUri: string;
|
|
840
858
|
};
|
|
841
859
|
event_type: "protocol.flight.submitted";
|
|
@@ -846,9 +864,45 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
846
864
|
event_type: z.ZodLiteral<"protocol.mission.created">;
|
|
847
865
|
timestamp: z.ZodAny;
|
|
848
866
|
data: z.ZodObject<{
|
|
849
|
-
id: z.
|
|
850
|
-
|
|
851
|
-
|
|
867
|
+
id: z.ZodEffects<z.ZodObject<{
|
|
868
|
+
__type: z.ZodLiteral<"bigint">;
|
|
869
|
+
value: z.ZodString;
|
|
870
|
+
}, "strip", z.ZodTypeAny, {
|
|
871
|
+
value: string;
|
|
872
|
+
__type: "bigint";
|
|
873
|
+
}, {
|
|
874
|
+
value: string;
|
|
875
|
+
__type: "bigint";
|
|
876
|
+
}>, bigint, {
|
|
877
|
+
value: string;
|
|
878
|
+
__type: "bigint";
|
|
879
|
+
}>;
|
|
880
|
+
vaultId: z.ZodEffects<z.ZodObject<{
|
|
881
|
+
__type: z.ZodLiteral<"bigint">;
|
|
882
|
+
value: z.ZodString;
|
|
883
|
+
}, "strip", z.ZodTypeAny, {
|
|
884
|
+
value: string;
|
|
885
|
+
__type: "bigint";
|
|
886
|
+
}, {
|
|
887
|
+
value: string;
|
|
888
|
+
__type: "bigint";
|
|
889
|
+
}>, bigint, {
|
|
890
|
+
value: string;
|
|
891
|
+
__type: "bigint";
|
|
892
|
+
}>;
|
|
893
|
+
amount: z.ZodEffects<z.ZodObject<{
|
|
894
|
+
__type: z.ZodLiteral<"bigint">;
|
|
895
|
+
value: z.ZodString;
|
|
896
|
+
}, "strip", z.ZodTypeAny, {
|
|
897
|
+
value: string;
|
|
898
|
+
__type: "bigint";
|
|
899
|
+
}, {
|
|
900
|
+
value: string;
|
|
901
|
+
__type: "bigint";
|
|
902
|
+
}>, bigint, {
|
|
903
|
+
value: string;
|
|
904
|
+
__type: "bigint";
|
|
905
|
+
}>;
|
|
852
906
|
zoneId: z.ZodString;
|
|
853
907
|
flightPlanId: z.ZodNumber;
|
|
854
908
|
captureStartTime: z.ZodString;
|
|
@@ -856,9 +910,9 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
856
910
|
detailsHash: z.ZodString;
|
|
857
911
|
requestor: z.ZodString;
|
|
858
912
|
}, "strict", z.ZodTypeAny, {
|
|
859
|
-
id:
|
|
860
|
-
vaultId:
|
|
861
|
-
amount:
|
|
913
|
+
id: bigint;
|
|
914
|
+
vaultId: bigint;
|
|
915
|
+
amount: bigint;
|
|
862
916
|
zoneId: string;
|
|
863
917
|
flightPlanId: number;
|
|
864
918
|
captureStartTime: string;
|
|
@@ -866,9 +920,18 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
866
920
|
detailsHash: string;
|
|
867
921
|
requestor: string;
|
|
868
922
|
}, {
|
|
869
|
-
id:
|
|
870
|
-
|
|
871
|
-
|
|
923
|
+
id: {
|
|
924
|
+
value: string;
|
|
925
|
+
__type: "bigint";
|
|
926
|
+
};
|
|
927
|
+
vaultId: {
|
|
928
|
+
value: string;
|
|
929
|
+
__type: "bigint";
|
|
930
|
+
};
|
|
931
|
+
amount: {
|
|
932
|
+
value: string;
|
|
933
|
+
__type: "bigint";
|
|
934
|
+
};
|
|
872
935
|
zoneId: string;
|
|
873
936
|
flightPlanId: number;
|
|
874
937
|
captureStartTime: string;
|
|
@@ -878,9 +941,9 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
878
941
|
}>;
|
|
879
942
|
}, "strict", z.ZodTypeAny, {
|
|
880
943
|
data: {
|
|
881
|
-
id:
|
|
882
|
-
vaultId:
|
|
883
|
-
amount:
|
|
944
|
+
id: bigint;
|
|
945
|
+
vaultId: bigint;
|
|
946
|
+
amount: bigint;
|
|
884
947
|
zoneId: string;
|
|
885
948
|
flightPlanId: number;
|
|
886
949
|
captureStartTime: string;
|
|
@@ -893,9 +956,18 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
893
956
|
timestamp?: any;
|
|
894
957
|
}, {
|
|
895
958
|
data: {
|
|
896
|
-
id:
|
|
897
|
-
|
|
898
|
-
|
|
959
|
+
id: {
|
|
960
|
+
value: string;
|
|
961
|
+
__type: "bigint";
|
|
962
|
+
};
|
|
963
|
+
vaultId: {
|
|
964
|
+
value: string;
|
|
965
|
+
__type: "bigint";
|
|
966
|
+
};
|
|
967
|
+
amount: {
|
|
968
|
+
value: string;
|
|
969
|
+
__type: "bigint";
|
|
970
|
+
};
|
|
899
971
|
zoneId: string;
|
|
900
972
|
flightPlanId: number;
|
|
901
973
|
captureStartTime: string;
|
|
@@ -911,22 +983,52 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
911
983
|
event_type: z.ZodLiteral<"protocol.mission.updated">;
|
|
912
984
|
timestamp: z.ZodAny;
|
|
913
985
|
data: z.ZodObject<{
|
|
914
|
-
id: z.
|
|
915
|
-
|
|
986
|
+
id: z.ZodEffects<z.ZodObject<{
|
|
987
|
+
__type: z.ZodLiteral<"bigint">;
|
|
988
|
+
value: z.ZodString;
|
|
989
|
+
}, "strip", z.ZodTypeAny, {
|
|
990
|
+
value: string;
|
|
991
|
+
__type: "bigint";
|
|
992
|
+
}, {
|
|
993
|
+
value: string;
|
|
994
|
+
__type: "bigint";
|
|
995
|
+
}>, bigint, {
|
|
996
|
+
value: string;
|
|
997
|
+
__type: "bigint";
|
|
998
|
+
}>;
|
|
999
|
+
amount: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1000
|
+
__type: z.ZodLiteral<"bigint">;
|
|
1001
|
+
value: z.ZodString;
|
|
1002
|
+
}, "strip", z.ZodTypeAny, {
|
|
1003
|
+
value: string;
|
|
1004
|
+
__type: "bigint";
|
|
1005
|
+
}, {
|
|
1006
|
+
value: string;
|
|
1007
|
+
__type: "bigint";
|
|
1008
|
+
}>, bigint, {
|
|
1009
|
+
value: string;
|
|
1010
|
+
__type: "bigint";
|
|
1011
|
+
}>>;
|
|
916
1012
|
isOpen: z.ZodOptional<z.ZodBoolean>;
|
|
917
1013
|
}, "strict", z.ZodTypeAny, {
|
|
918
|
-
id:
|
|
919
|
-
amount?:
|
|
1014
|
+
id: bigint;
|
|
1015
|
+
amount?: bigint | undefined;
|
|
920
1016
|
isOpen?: boolean | undefined;
|
|
921
1017
|
}, {
|
|
922
|
-
id:
|
|
923
|
-
|
|
1018
|
+
id: {
|
|
1019
|
+
value: string;
|
|
1020
|
+
__type: "bigint";
|
|
1021
|
+
};
|
|
1022
|
+
amount?: {
|
|
1023
|
+
value: string;
|
|
1024
|
+
__type: "bigint";
|
|
1025
|
+
} | undefined;
|
|
924
1026
|
isOpen?: boolean | undefined;
|
|
925
1027
|
}>;
|
|
926
1028
|
}, "strict", z.ZodTypeAny, {
|
|
927
1029
|
data: {
|
|
928
|
-
id:
|
|
929
|
-
amount?:
|
|
1030
|
+
id: bigint;
|
|
1031
|
+
amount?: bigint | undefined;
|
|
930
1032
|
isOpen?: boolean | undefined;
|
|
931
1033
|
};
|
|
932
1034
|
event_type: "protocol.mission.updated";
|
|
@@ -934,8 +1036,14 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
934
1036
|
timestamp?: any;
|
|
935
1037
|
}, {
|
|
936
1038
|
data: {
|
|
937
|
-
id:
|
|
938
|
-
|
|
1039
|
+
id: {
|
|
1040
|
+
value: string;
|
|
1041
|
+
__type: "bigint";
|
|
1042
|
+
};
|
|
1043
|
+
amount?: {
|
|
1044
|
+
value: string;
|
|
1045
|
+
__type: "bigint";
|
|
1046
|
+
} | undefined;
|
|
939
1047
|
isOpen?: boolean | undefined;
|
|
940
1048
|
};
|
|
941
1049
|
event_type: "protocol.mission.updated";
|
|
@@ -946,19 +1054,55 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
946
1054
|
event_type: z.ZodLiteral<"protocol.flight.reviewed">;
|
|
947
1055
|
timestamp: z.ZodAny;
|
|
948
1056
|
data: z.ZodObject<{
|
|
949
|
-
flightId: z.
|
|
1057
|
+
flightId: z.ZodEffects<z.ZodObject<{
|
|
1058
|
+
__type: z.ZodLiteral<"bigint">;
|
|
1059
|
+
value: z.ZodString;
|
|
1060
|
+
}, "strip", z.ZodTypeAny, {
|
|
1061
|
+
value: string;
|
|
1062
|
+
__type: "bigint";
|
|
1063
|
+
}, {
|
|
1064
|
+
value: string;
|
|
1065
|
+
__type: "bigint";
|
|
1066
|
+
}>, bigint, {
|
|
1067
|
+
value: string;
|
|
1068
|
+
__type: "bigint";
|
|
1069
|
+
}>;
|
|
950
1070
|
isApproved: z.ZodBoolean;
|
|
951
1071
|
validationLogUri: z.ZodString;
|
|
952
1072
|
validator: z.ZodString;
|
|
953
1073
|
filesHash: z.ZodString;
|
|
1074
|
+
storageKey: z.ZodString;
|
|
1075
|
+
missionId: z.ZodEffects<z.ZodObject<{
|
|
1076
|
+
__type: z.ZodLiteral<"bigint">;
|
|
1077
|
+
value: z.ZodString;
|
|
1078
|
+
}, "strip", z.ZodTypeAny, {
|
|
1079
|
+
value: string;
|
|
1080
|
+
__type: "bigint";
|
|
1081
|
+
}, {
|
|
1082
|
+
value: string;
|
|
1083
|
+
__type: "bigint";
|
|
1084
|
+
}>, bigint, {
|
|
1085
|
+
value: string;
|
|
1086
|
+
__type: "bigint";
|
|
1087
|
+
}>;
|
|
954
1088
|
}, "strict", z.ZodTypeAny, {
|
|
955
|
-
|
|
1089
|
+
missionId: bigint;
|
|
1090
|
+
flightId: bigint;
|
|
1091
|
+
storageKey: string;
|
|
956
1092
|
isApproved: boolean;
|
|
957
1093
|
validationLogUri: string;
|
|
958
1094
|
validator: string;
|
|
959
1095
|
filesHash: string;
|
|
960
1096
|
}, {
|
|
961
|
-
|
|
1097
|
+
missionId: {
|
|
1098
|
+
value: string;
|
|
1099
|
+
__type: "bigint";
|
|
1100
|
+
};
|
|
1101
|
+
flightId: {
|
|
1102
|
+
value: string;
|
|
1103
|
+
__type: "bigint";
|
|
1104
|
+
};
|
|
1105
|
+
storageKey: string;
|
|
962
1106
|
isApproved: boolean;
|
|
963
1107
|
validationLogUri: string;
|
|
964
1108
|
validator: string;
|
|
@@ -966,7 +1110,9 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
966
1110
|
}>;
|
|
967
1111
|
}, "strict", z.ZodTypeAny, {
|
|
968
1112
|
data: {
|
|
969
|
-
|
|
1113
|
+
missionId: bigint;
|
|
1114
|
+
flightId: bigint;
|
|
1115
|
+
storageKey: string;
|
|
970
1116
|
isApproved: boolean;
|
|
971
1117
|
validationLogUri: string;
|
|
972
1118
|
validator: string;
|
|
@@ -977,7 +1123,15 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
977
1123
|
timestamp?: any;
|
|
978
1124
|
}, {
|
|
979
1125
|
data: {
|
|
980
|
-
|
|
1126
|
+
missionId: {
|
|
1127
|
+
value: string;
|
|
1128
|
+
__type: "bigint";
|
|
1129
|
+
};
|
|
1130
|
+
flightId: {
|
|
1131
|
+
value: string;
|
|
1132
|
+
__type: "bigint";
|
|
1133
|
+
};
|
|
1134
|
+
storageKey: string;
|
|
981
1135
|
isApproved: boolean;
|
|
982
1136
|
validationLogUri: string;
|
|
983
1137
|
validator: string;
|
|
@@ -986,6 +1140,112 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
986
1140
|
event_type: "protocol.flight.reviewed";
|
|
987
1141
|
id?: any;
|
|
988
1142
|
timestamp?: any;
|
|
1143
|
+
}>, z.ZodObject<{
|
|
1144
|
+
id: z.ZodAny;
|
|
1145
|
+
event_type: z.ZodLiteral<"internal.flight.reviewed">;
|
|
1146
|
+
timestamp: z.ZodAny;
|
|
1147
|
+
data: z.ZodObject<{
|
|
1148
|
+
isApproved: z.ZodBoolean;
|
|
1149
|
+
storageKey: z.ZodString;
|
|
1150
|
+
provenanceDataVersion: z.ZodString;
|
|
1151
|
+
validationLogUri: z.ZodString;
|
|
1152
|
+
provenanceDataUri: z.ZodString;
|
|
1153
|
+
tokenId: 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
|
+
missionId: 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
|
+
validator: z.ZodAny;
|
|
1180
|
+
filesHash: z.ZodString;
|
|
1181
|
+
to: z.ZodAny;
|
|
1182
|
+
}, "strict", z.ZodTypeAny, {
|
|
1183
|
+
missionId: bigint;
|
|
1184
|
+
storageKey: string;
|
|
1185
|
+
isApproved: boolean;
|
|
1186
|
+
validationLogUri: string;
|
|
1187
|
+
filesHash: string;
|
|
1188
|
+
provenanceDataVersion: string;
|
|
1189
|
+
provenanceDataUri: string;
|
|
1190
|
+
tokenId: bigint;
|
|
1191
|
+
validator?: any;
|
|
1192
|
+
to?: any;
|
|
1193
|
+
}, {
|
|
1194
|
+
missionId: {
|
|
1195
|
+
value: string;
|
|
1196
|
+
__type: "bigint";
|
|
1197
|
+
};
|
|
1198
|
+
storageKey: string;
|
|
1199
|
+
isApproved: boolean;
|
|
1200
|
+
validationLogUri: string;
|
|
1201
|
+
filesHash: string;
|
|
1202
|
+
provenanceDataVersion: string;
|
|
1203
|
+
provenanceDataUri: string;
|
|
1204
|
+
tokenId: {
|
|
1205
|
+
value: string;
|
|
1206
|
+
__type: "bigint";
|
|
1207
|
+
};
|
|
1208
|
+
validator?: any;
|
|
1209
|
+
to?: any;
|
|
1210
|
+
}>;
|
|
1211
|
+
}, "strict", z.ZodTypeAny, {
|
|
1212
|
+
data: {
|
|
1213
|
+
missionId: bigint;
|
|
1214
|
+
storageKey: string;
|
|
1215
|
+
isApproved: boolean;
|
|
1216
|
+
validationLogUri: string;
|
|
1217
|
+
filesHash: string;
|
|
1218
|
+
provenanceDataVersion: string;
|
|
1219
|
+
provenanceDataUri: string;
|
|
1220
|
+
tokenId: bigint;
|
|
1221
|
+
validator?: any;
|
|
1222
|
+
to?: any;
|
|
1223
|
+
};
|
|
1224
|
+
event_type: "internal.flight.reviewed";
|
|
1225
|
+
id?: any;
|
|
1226
|
+
timestamp?: any;
|
|
1227
|
+
}, {
|
|
1228
|
+
data: {
|
|
1229
|
+
missionId: {
|
|
1230
|
+
value: string;
|
|
1231
|
+
__type: "bigint";
|
|
1232
|
+
};
|
|
1233
|
+
storageKey: string;
|
|
1234
|
+
isApproved: boolean;
|
|
1235
|
+
validationLogUri: string;
|
|
1236
|
+
filesHash: string;
|
|
1237
|
+
provenanceDataVersion: string;
|
|
1238
|
+
provenanceDataUri: string;
|
|
1239
|
+
tokenId: {
|
|
1240
|
+
value: string;
|
|
1241
|
+
__type: "bigint";
|
|
1242
|
+
};
|
|
1243
|
+
validator?: any;
|
|
1244
|
+
to?: any;
|
|
1245
|
+
};
|
|
1246
|
+
event_type: "internal.flight.reviewed";
|
|
1247
|
+
id?: any;
|
|
1248
|
+
timestamp?: any;
|
|
989
1249
|
}>]>;
|
|
990
1250
|
type Event = z.infer<typeof Event>;
|
|
991
1251
|
type TestEvent = Extract<Event, {
|
|
@@ -1003,6 +1263,9 @@ type MissionUpdatedEvent = Extract<Event, {
|
|
|
1003
1263
|
type FlightReviewedEvent = Extract<Event, {
|
|
1004
1264
|
event_type: "protocol.flight.reviewed";
|
|
1005
1265
|
}>;
|
|
1266
|
+
type InternalFlightReviewedEvent = Extract<Event, {
|
|
1267
|
+
event_type: "internal.flight.reviewed";
|
|
1268
|
+
}>;
|
|
1006
1269
|
|
|
1007
1270
|
declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
1008
1271
|
data: {
|
|
@@ -1013,9 +1276,9 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1013
1276
|
timestamp: string;
|
|
1014
1277
|
} | {
|
|
1015
1278
|
data: {
|
|
1016
|
-
missionId:
|
|
1279
|
+
missionId: bigint;
|
|
1017
1280
|
pilotAddress: string;
|
|
1018
|
-
|
|
1281
|
+
storageKey: string;
|
|
1019
1282
|
flightManifestUri: string;
|
|
1020
1283
|
};
|
|
1021
1284
|
event_type: "protocol.flight.submitted";
|
|
@@ -1023,9 +1286,9 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1023
1286
|
timestamp?: any;
|
|
1024
1287
|
} | {
|
|
1025
1288
|
data: {
|
|
1026
|
-
id:
|
|
1027
|
-
vaultId:
|
|
1028
|
-
amount:
|
|
1289
|
+
id: bigint;
|
|
1290
|
+
vaultId: bigint;
|
|
1291
|
+
amount: bigint;
|
|
1029
1292
|
zoneId: string;
|
|
1030
1293
|
flightPlanId: number;
|
|
1031
1294
|
captureStartTime: string;
|
|
@@ -1038,8 +1301,8 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1038
1301
|
timestamp?: any;
|
|
1039
1302
|
} | {
|
|
1040
1303
|
data: {
|
|
1041
|
-
id:
|
|
1042
|
-
amount?:
|
|
1304
|
+
id: bigint;
|
|
1305
|
+
amount?: bigint | undefined;
|
|
1043
1306
|
isOpen?: boolean | undefined;
|
|
1044
1307
|
};
|
|
1045
1308
|
event_type: "protocol.mission.updated";
|
|
@@ -1047,7 +1310,9 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1047
1310
|
timestamp?: any;
|
|
1048
1311
|
} | {
|
|
1049
1312
|
data: {
|
|
1050
|
-
|
|
1313
|
+
missionId: bigint;
|
|
1314
|
+
flightId: bigint;
|
|
1315
|
+
storageKey: string;
|
|
1051
1316
|
isApproved: boolean;
|
|
1052
1317
|
validationLogUri: string;
|
|
1053
1318
|
validator: string;
|
|
@@ -1056,6 +1321,22 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1056
1321
|
event_type: "protocol.flight.reviewed";
|
|
1057
1322
|
id?: any;
|
|
1058
1323
|
timestamp?: any;
|
|
1324
|
+
} | {
|
|
1325
|
+
data: {
|
|
1326
|
+
missionId: bigint;
|
|
1327
|
+
storageKey: string;
|
|
1328
|
+
isApproved: boolean;
|
|
1329
|
+
validationLogUri: string;
|
|
1330
|
+
filesHash: string;
|
|
1331
|
+
provenanceDataVersion: string;
|
|
1332
|
+
provenanceDataUri: string;
|
|
1333
|
+
tokenId: bigint;
|
|
1334
|
+
validator?: any;
|
|
1335
|
+
to?: any;
|
|
1336
|
+
};
|
|
1337
|
+
event_type: "internal.flight.reviewed";
|
|
1338
|
+
id?: any;
|
|
1339
|
+
timestamp?: any;
|
|
1059
1340
|
};
|
|
1060
1341
|
|
|
1061
|
-
export { 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 AppControllerGetHelloData, type AppControllerGetHelloResponses, type Auth, type ClaimRewardsRequestDto, type ClaimRewardsResponseDto, 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
|
|
1342
|
+
export { 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 AppControllerGetHelloData, type AppControllerGetHelloResponses, type Auth, type ClaimRewardsRequestDto, type ClaimRewardsResponseDto, 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 InternalFlightReviewedEvent, type KeysControllerGetProvenanceCryptoKeyData, type KeysControllerGetProvenanceCryptoKeyResponse, type KeysControllerGetProvenanceCryptoKeyResponses, type MissionCreatedEvent, type MissionUpdatedEvent, type MissionsControllerClaimRewardsData, type MissionsControllerClaimRewardsErrors, type MissionsControllerClaimRewardsResponse, type MissionsControllerClaimRewardsResponses, 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, apiTokenControllerCreateToken, apiTokenControllerDeleteToken, apiTokenControllerGetToken, apiTokenControllerUpdateToken, appControllerGetHello, buildClientParams, conditionsControllerGetSunAltitudeTimeLimits, createClient, createConfig, flightsControllerCreatePresignedUrls, flightsControllerGenerateStorageKey, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, missionsControllerClaimRewards, missionsControllerCreateMissions, missionsControllerUpdateMissions, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
|