@layer-drone/protocol 0.0.11 → 0.0.12
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 +278 -11
- package/dist/index.d.ts +278 -11
- package/dist/index.js +73 -0
- package/dist/index.mjs +70 -0
- package/package.json +2 -1
- package/src/client/sdk.gen.ts +77 -0
- package/src/client/types.gen.ts +189 -10
- package/src/event/types.gen.ts +49 -0
package/dist/index.d.mts
CHANGED
|
@@ -56,6 +56,59 @@ type CreateQuoteRequestDto = {
|
|
|
56
56
|
buyer: string;
|
|
57
57
|
mintOnChain: boolean;
|
|
58
58
|
};
|
|
59
|
+
type CreateMissionRequestDto = {
|
|
60
|
+
missions: Array<{
|
|
61
|
+
zoneId: string;
|
|
62
|
+
flightPlanId: number;
|
|
63
|
+
amount: number;
|
|
64
|
+
startTime: Date;
|
|
65
|
+
endTime: Date;
|
|
66
|
+
}>;
|
|
67
|
+
campaignId: number;
|
|
68
|
+
requestor: string;
|
|
69
|
+
mintOnChain?: boolean;
|
|
70
|
+
};
|
|
71
|
+
type CreateMissionResponseDto = {
|
|
72
|
+
success: boolean;
|
|
73
|
+
data: {
|
|
74
|
+
missions: Array<{
|
|
75
|
+
missionId: string;
|
|
76
|
+
vaultId: string;
|
|
77
|
+
amount: number;
|
|
78
|
+
zoneId: string;
|
|
79
|
+
flightPlanId: number;
|
|
80
|
+
captureStartTime: Date;
|
|
81
|
+
captureEndTime: Date;
|
|
82
|
+
requestor: string;
|
|
83
|
+
}>;
|
|
84
|
+
totalAmount: number;
|
|
85
|
+
} | string;
|
|
86
|
+
};
|
|
87
|
+
type UpdateMissionsRequestDto = {
|
|
88
|
+
missions: Array<{
|
|
89
|
+
id: string;
|
|
90
|
+
amount: number;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
isOpen: false;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
type UpdateMissionsResponseDto = {
|
|
97
|
+
success: boolean;
|
|
98
|
+
data: {
|
|
99
|
+
rewardUpdatesQueued: Array<string>;
|
|
100
|
+
cancelUpdatesQueued: Array<string>;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type ClaimRewardsRequestDto = {
|
|
104
|
+
flightIds: Array<number>;
|
|
105
|
+
};
|
|
106
|
+
type ClaimRewardsResponseDto = {
|
|
107
|
+
success: boolean;
|
|
108
|
+
data: {
|
|
109
|
+
cancelUpdatesQueued: Array<string>;
|
|
110
|
+
} | string;
|
|
111
|
+
};
|
|
59
112
|
type FlightDto = {
|
|
60
113
|
token_id: number;
|
|
61
114
|
owner: string;
|
|
@@ -80,11 +133,6 @@ type ValidateFlightDto = {
|
|
|
80
133
|
pilotAddress: string;
|
|
81
134
|
missionId: number;
|
|
82
135
|
flightTimestamp: string;
|
|
83
|
-
externalBucketInfo?: {
|
|
84
|
-
prefix: string;
|
|
85
|
-
bucketName: string;
|
|
86
|
-
region: string;
|
|
87
|
-
};
|
|
88
136
|
flightRequestInfo: {
|
|
89
137
|
filePaths: Array<string>;
|
|
90
138
|
flightPlanId: number;
|
|
@@ -112,7 +160,7 @@ type GetTimeLimitsForSunAltitudeResponse = {
|
|
|
112
160
|
type CreateWebhookBody = {
|
|
113
161
|
name: string;
|
|
114
162
|
url: string;
|
|
115
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
163
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
116
164
|
active: boolean;
|
|
117
165
|
};
|
|
118
166
|
type CreateWebhookResponse = {
|
|
@@ -123,7 +171,7 @@ type GetWebhooksResponse = Array<{
|
|
|
123
171
|
id: number;
|
|
124
172
|
name: string;
|
|
125
173
|
url: string;
|
|
126
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
174
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
127
175
|
active: boolean;
|
|
128
176
|
failure_count: number;
|
|
129
177
|
last_failure_reason: string;
|
|
@@ -134,7 +182,7 @@ type GetWebhookResponse = {
|
|
|
134
182
|
id: number;
|
|
135
183
|
name: string;
|
|
136
184
|
url: string;
|
|
137
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
185
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
138
186
|
active: boolean;
|
|
139
187
|
failure_count: number;
|
|
140
188
|
last_failure_reason: string;
|
|
@@ -144,14 +192,14 @@ type GetWebhookResponse = {
|
|
|
144
192
|
type UpdateWebhookBody = {
|
|
145
193
|
name?: string;
|
|
146
194
|
url?: string;
|
|
147
|
-
event_types?: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
195
|
+
event_types?: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
148
196
|
active?: boolean;
|
|
149
197
|
};
|
|
150
198
|
type UpdateWebhookResponse = {
|
|
151
199
|
id: number;
|
|
152
200
|
name: string;
|
|
153
201
|
url: string;
|
|
154
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
202
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
155
203
|
active: boolean;
|
|
156
204
|
failure_count: number;
|
|
157
205
|
last_failure_reason: string;
|
|
@@ -307,6 +355,48 @@ type QuotesControllerGetQuoteErrors = {
|
|
|
307
355
|
type QuotesControllerGetQuoteResponses = {
|
|
308
356
|
200: unknown;
|
|
309
357
|
};
|
|
358
|
+
type MissionsControllerCreateMissionsData = {
|
|
359
|
+
body: CreateMissionRequestDto;
|
|
360
|
+
path?: never;
|
|
361
|
+
query?: never;
|
|
362
|
+
url: "/missions";
|
|
363
|
+
};
|
|
364
|
+
type MissionsControllerCreateMissionsErrors = {
|
|
365
|
+
400: unknown;
|
|
366
|
+
403: unknown;
|
|
367
|
+
500: unknown;
|
|
368
|
+
};
|
|
369
|
+
type MissionsControllerCreateMissionsResponses = {
|
|
370
|
+
201: CreateMissionResponseDto;
|
|
371
|
+
};
|
|
372
|
+
type MissionsControllerCreateMissionsResponse = MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
373
|
+
type MissionsControllerUpdateMissionsData = {
|
|
374
|
+
body: UpdateMissionsRequestDto;
|
|
375
|
+
path?: never;
|
|
376
|
+
query?: never;
|
|
377
|
+
url: "/missions";
|
|
378
|
+
};
|
|
379
|
+
type MissionsControllerUpdateMissionsResponses = {
|
|
380
|
+
200: UpdateMissionsResponseDto;
|
|
381
|
+
};
|
|
382
|
+
type MissionsControllerUpdateMissionsResponse = MissionsControllerUpdateMissionsResponses[keyof MissionsControllerUpdateMissionsResponses];
|
|
383
|
+
type MissionsControllerClaimRewardsData = {
|
|
384
|
+
body: ClaimRewardsRequestDto;
|
|
385
|
+
path: {
|
|
386
|
+
id: bigint;
|
|
387
|
+
};
|
|
388
|
+
query?: never;
|
|
389
|
+
url: "/missions/{id}/rewards";
|
|
390
|
+
};
|
|
391
|
+
type MissionsControllerClaimRewardsErrors = {
|
|
392
|
+
400: unknown;
|
|
393
|
+
404: unknown;
|
|
394
|
+
500: unknown;
|
|
395
|
+
};
|
|
396
|
+
type MissionsControllerClaimRewardsResponses = {
|
|
397
|
+
200: ClaimRewardsResponseDto;
|
|
398
|
+
};
|
|
399
|
+
type MissionsControllerClaimRewardsResponse = MissionsControllerClaimRewardsResponses[keyof MissionsControllerClaimRewardsResponses];
|
|
310
400
|
type FlightsControllerGenerateFlightIdData = {
|
|
311
401
|
body?: never;
|
|
312
402
|
path?: never;
|
|
@@ -716,6 +806,9 @@ declare const apiTokenControllerGetToken: <ThrowOnError extends boolean = false>
|
|
|
716
806
|
declare const apiTokenControllerUpdateToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerUpdateTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerUpdateTokenResponses, ApiTokenControllerUpdateTokenErrors, ThrowOnError, "fields">;
|
|
717
807
|
declare const quotesControllerCreateQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerCreateQuoteData, ThrowOnError>) => RequestResult<QuotesControllerCreateQuoteResponses, QuotesControllerCreateQuoteErrors, ThrowOnError, "fields">;
|
|
718
808
|
declare const quotesControllerGetQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerGetQuoteData, ThrowOnError>) => RequestResult<QuotesControllerGetQuoteResponses, QuotesControllerGetQuoteErrors, ThrowOnError, "fields">;
|
|
809
|
+
declare const missionsControllerCreateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerCreateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerCreateMissionsResponses, MissionsControllerCreateMissionsErrors, ThrowOnError, "fields">;
|
|
810
|
+
declare const missionsControllerUpdateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerUpdateMissionsResponses, unknown, ThrowOnError, "fields">;
|
|
811
|
+
declare const missionsControllerClaimRewards: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerClaimRewardsData, ThrowOnError>) => RequestResult<MissionsControllerClaimRewardsResponses, MissionsControllerClaimRewardsErrors, ThrowOnError, "fields">;
|
|
719
812
|
declare const flightsControllerGenerateFlightId: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGenerateFlightIdData, ThrowOnError>) => RequestResult<FlightsControllerGenerateFlightIdResponses, FlightsControllerGenerateFlightIdErrors, ThrowOnError, "fields">;
|
|
720
813
|
declare const flightsControllerGetFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGetFlightData, ThrowOnError>) => RequestResult<FlightsControllerGetFlightResponses, FlightsControllerGetFlightErrors, ThrowOnError, "fields">;
|
|
721
814
|
declare const flightsControllerCreatePresignedUrls: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerCreatePresignedUrlsData, ThrowOnError>) => RequestResult<FlightsControllerCreatePresignedUrlsResponses, FlightsControllerCreatePresignedUrlsErrors, ThrowOnError, "fields">;
|
|
@@ -791,6 +884,146 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
791
884
|
event_type: "protocol.flight.submitted";
|
|
792
885
|
id?: any;
|
|
793
886
|
timestamp?: any;
|
|
887
|
+
}>, z.ZodObject<{
|
|
888
|
+
id: z.ZodAny;
|
|
889
|
+
event_type: z.ZodLiteral<"protocol.mission.created">;
|
|
890
|
+
timestamp: z.ZodAny;
|
|
891
|
+
data: z.ZodObject<{
|
|
892
|
+
missionId: z.ZodString;
|
|
893
|
+
vaultId: z.ZodString;
|
|
894
|
+
amount: z.ZodString;
|
|
895
|
+
zoneId: z.ZodString;
|
|
896
|
+
flightPlanId: z.ZodNumber;
|
|
897
|
+
captureStartTime: z.ZodString;
|
|
898
|
+
captureEndTime: z.ZodString;
|
|
899
|
+
detailsHash: z.ZodString;
|
|
900
|
+
}, "strict", z.ZodTypeAny, {
|
|
901
|
+
missionId: string;
|
|
902
|
+
vaultId: string;
|
|
903
|
+
amount: string;
|
|
904
|
+
zoneId: string;
|
|
905
|
+
flightPlanId: number;
|
|
906
|
+
captureStartTime: string;
|
|
907
|
+
captureEndTime: string;
|
|
908
|
+
detailsHash: string;
|
|
909
|
+
}, {
|
|
910
|
+
missionId: string;
|
|
911
|
+
vaultId: string;
|
|
912
|
+
amount: string;
|
|
913
|
+
zoneId: string;
|
|
914
|
+
flightPlanId: number;
|
|
915
|
+
captureStartTime: string;
|
|
916
|
+
captureEndTime: string;
|
|
917
|
+
detailsHash: string;
|
|
918
|
+
}>;
|
|
919
|
+
}, "strict", z.ZodTypeAny, {
|
|
920
|
+
data: {
|
|
921
|
+
missionId: string;
|
|
922
|
+
vaultId: string;
|
|
923
|
+
amount: string;
|
|
924
|
+
zoneId: string;
|
|
925
|
+
flightPlanId: number;
|
|
926
|
+
captureStartTime: string;
|
|
927
|
+
captureEndTime: string;
|
|
928
|
+
detailsHash: string;
|
|
929
|
+
};
|
|
930
|
+
event_type: "protocol.mission.created";
|
|
931
|
+
id?: any;
|
|
932
|
+
timestamp?: any;
|
|
933
|
+
}, {
|
|
934
|
+
data: {
|
|
935
|
+
missionId: string;
|
|
936
|
+
vaultId: string;
|
|
937
|
+
amount: string;
|
|
938
|
+
zoneId: string;
|
|
939
|
+
flightPlanId: number;
|
|
940
|
+
captureStartTime: string;
|
|
941
|
+
captureEndTime: string;
|
|
942
|
+
detailsHash: string;
|
|
943
|
+
};
|
|
944
|
+
event_type: "protocol.mission.created";
|
|
945
|
+
id?: any;
|
|
946
|
+
timestamp?: any;
|
|
947
|
+
}>, z.ZodObject<{
|
|
948
|
+
id: z.ZodAny;
|
|
949
|
+
event_type: z.ZodLiteral<"protocol.mission.updated">;
|
|
950
|
+
timestamp: z.ZodAny;
|
|
951
|
+
data: z.ZodObject<{
|
|
952
|
+
id: z.ZodString;
|
|
953
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
954
|
+
isOpen: z.ZodOptional<z.ZodBoolean>;
|
|
955
|
+
}, "strict", z.ZodTypeAny, {
|
|
956
|
+
id: string;
|
|
957
|
+
amount?: number | undefined;
|
|
958
|
+
isOpen?: boolean | undefined;
|
|
959
|
+
}, {
|
|
960
|
+
id: string;
|
|
961
|
+
amount?: number | undefined;
|
|
962
|
+
isOpen?: boolean | undefined;
|
|
963
|
+
}>;
|
|
964
|
+
}, "strict", z.ZodTypeAny, {
|
|
965
|
+
data: {
|
|
966
|
+
id: string;
|
|
967
|
+
amount?: number | undefined;
|
|
968
|
+
isOpen?: boolean | undefined;
|
|
969
|
+
};
|
|
970
|
+
event_type: "protocol.mission.updated";
|
|
971
|
+
id?: any;
|
|
972
|
+
timestamp?: any;
|
|
973
|
+
}, {
|
|
974
|
+
data: {
|
|
975
|
+
id: string;
|
|
976
|
+
amount?: number | undefined;
|
|
977
|
+
isOpen?: boolean | undefined;
|
|
978
|
+
};
|
|
979
|
+
event_type: "protocol.mission.updated";
|
|
980
|
+
id?: any;
|
|
981
|
+
timestamp?: any;
|
|
982
|
+
}>, z.ZodObject<{
|
|
983
|
+
id: z.ZodAny;
|
|
984
|
+
event_type: z.ZodLiteral<"protocol.flight.reviewed">;
|
|
985
|
+
timestamp: z.ZodAny;
|
|
986
|
+
data: z.ZodObject<{
|
|
987
|
+
flightId: z.ZodNumber;
|
|
988
|
+
isApproved: z.ZodBoolean;
|
|
989
|
+
validationLogUri: z.ZodString;
|
|
990
|
+
validator: z.ZodString;
|
|
991
|
+
filesHash: z.ZodString;
|
|
992
|
+
}, "strict", z.ZodTypeAny, {
|
|
993
|
+
flightId: number;
|
|
994
|
+
isApproved: boolean;
|
|
995
|
+
validationLogUri: string;
|
|
996
|
+
validator: string;
|
|
997
|
+
filesHash: string;
|
|
998
|
+
}, {
|
|
999
|
+
flightId: number;
|
|
1000
|
+
isApproved: boolean;
|
|
1001
|
+
validationLogUri: string;
|
|
1002
|
+
validator: string;
|
|
1003
|
+
filesHash: string;
|
|
1004
|
+
}>;
|
|
1005
|
+
}, "strict", z.ZodTypeAny, {
|
|
1006
|
+
data: {
|
|
1007
|
+
flightId: number;
|
|
1008
|
+
isApproved: boolean;
|
|
1009
|
+
validationLogUri: string;
|
|
1010
|
+
validator: string;
|
|
1011
|
+
filesHash: string;
|
|
1012
|
+
};
|
|
1013
|
+
event_type: "protocol.flight.reviewed";
|
|
1014
|
+
id?: any;
|
|
1015
|
+
timestamp?: any;
|
|
1016
|
+
}, {
|
|
1017
|
+
data: {
|
|
1018
|
+
flightId: number;
|
|
1019
|
+
isApproved: boolean;
|
|
1020
|
+
validationLogUri: string;
|
|
1021
|
+
validator: string;
|
|
1022
|
+
filesHash: string;
|
|
1023
|
+
};
|
|
1024
|
+
event_type: "protocol.flight.reviewed";
|
|
1025
|
+
id?: any;
|
|
1026
|
+
timestamp?: any;
|
|
794
1027
|
}>]>;
|
|
795
1028
|
type Event = z.infer<typeof Event>;
|
|
796
1029
|
|
|
@@ -810,6 +1043,40 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
810
1043
|
event_type: "protocol.flight.submitted";
|
|
811
1044
|
id?: any;
|
|
812
1045
|
timestamp?: any;
|
|
1046
|
+
} | {
|
|
1047
|
+
data: {
|
|
1048
|
+
missionId: string;
|
|
1049
|
+
vaultId: string;
|
|
1050
|
+
amount: string;
|
|
1051
|
+
zoneId: string;
|
|
1052
|
+
flightPlanId: number;
|
|
1053
|
+
captureStartTime: string;
|
|
1054
|
+
captureEndTime: string;
|
|
1055
|
+
detailsHash: string;
|
|
1056
|
+
};
|
|
1057
|
+
event_type: "protocol.mission.created";
|
|
1058
|
+
id?: any;
|
|
1059
|
+
timestamp?: any;
|
|
1060
|
+
} | {
|
|
1061
|
+
data: {
|
|
1062
|
+
id: string;
|
|
1063
|
+
amount?: number | undefined;
|
|
1064
|
+
isOpen?: boolean | undefined;
|
|
1065
|
+
};
|
|
1066
|
+
event_type: "protocol.mission.updated";
|
|
1067
|
+
id?: any;
|
|
1068
|
+
timestamp?: any;
|
|
1069
|
+
} | {
|
|
1070
|
+
data: {
|
|
1071
|
+
flightId: number;
|
|
1072
|
+
isApproved: boolean;
|
|
1073
|
+
validationLogUri: string;
|
|
1074
|
+
validator: string;
|
|
1075
|
+
filesHash: string;
|
|
1076
|
+
};
|
|
1077
|
+
event_type: "protocol.flight.reviewed";
|
|
1078
|
+
id?: any;
|
|
1079
|
+
timestamp?: any;
|
|
813
1080
|
};
|
|
814
1081
|
|
|
815
|
-
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 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 CreateQuoteRequestDto, type CreateWebhookBody, type CreateWebhookResponse, type DeleteWebhookResponse, type DepositRewardsRequestDto, type DepositRewardsResponseDto, type DistributeRewardsRequestDto, type DistributeRewardsResponseDto, Event, type FlightDto, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponse, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateFlightIdData, type FlightsControllerGenerateFlightIdErrors, type FlightsControllerGenerateFlightIdResponse, type FlightsControllerGenerateFlightIdResponses, 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 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 RewardsControllerDepositRewardsData, type RewardsControllerDepositRewardsErrors, type RewardsControllerDepositRewardsResponse, type RewardsControllerDepositRewardsResponses, type RewardsControllerDistributeRewardsData, type RewardsControllerDistributeRewardsErrors, type RewardsControllerDistributeRewardsResponse, type RewardsControllerDistributeRewardsResponses, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TDataShape, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightDto, 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, flightsControllerGenerateFlightId, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, rewardsControllerDepositRewards, rewardsControllerDistributeRewards, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
|
|
1082
|
+
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, type DepositRewardsRequestDto, type DepositRewardsResponseDto, type DistributeRewardsRequestDto, type DistributeRewardsResponseDto, Event, type FlightDto, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponse, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateFlightIdData, type FlightsControllerGenerateFlightIdErrors, type FlightsControllerGenerateFlightIdResponse, type FlightsControllerGenerateFlightIdResponses, 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 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 RewardsControllerDepositRewardsData, type RewardsControllerDepositRewardsErrors, type RewardsControllerDepositRewardsResponse, type RewardsControllerDepositRewardsResponses, type RewardsControllerDistributeRewardsData, type RewardsControllerDistributeRewardsErrors, type RewardsControllerDistributeRewardsResponse, type RewardsControllerDistributeRewardsResponses, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TDataShape, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateMissionsRequestDto, type UpdateMissionsResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightDto, 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, flightsControllerGenerateFlightId, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, missionsControllerClaimRewards, missionsControllerCreateMissions, missionsControllerUpdateMissions, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, rewardsControllerDepositRewards, rewardsControllerDistributeRewards, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,59 @@ type CreateQuoteRequestDto = {
|
|
|
56
56
|
buyer: string;
|
|
57
57
|
mintOnChain: boolean;
|
|
58
58
|
};
|
|
59
|
+
type CreateMissionRequestDto = {
|
|
60
|
+
missions: Array<{
|
|
61
|
+
zoneId: string;
|
|
62
|
+
flightPlanId: number;
|
|
63
|
+
amount: number;
|
|
64
|
+
startTime: Date;
|
|
65
|
+
endTime: Date;
|
|
66
|
+
}>;
|
|
67
|
+
campaignId: number;
|
|
68
|
+
requestor: string;
|
|
69
|
+
mintOnChain?: boolean;
|
|
70
|
+
};
|
|
71
|
+
type CreateMissionResponseDto = {
|
|
72
|
+
success: boolean;
|
|
73
|
+
data: {
|
|
74
|
+
missions: Array<{
|
|
75
|
+
missionId: string;
|
|
76
|
+
vaultId: string;
|
|
77
|
+
amount: number;
|
|
78
|
+
zoneId: string;
|
|
79
|
+
flightPlanId: number;
|
|
80
|
+
captureStartTime: Date;
|
|
81
|
+
captureEndTime: Date;
|
|
82
|
+
requestor: string;
|
|
83
|
+
}>;
|
|
84
|
+
totalAmount: number;
|
|
85
|
+
} | string;
|
|
86
|
+
};
|
|
87
|
+
type UpdateMissionsRequestDto = {
|
|
88
|
+
missions: Array<{
|
|
89
|
+
id: string;
|
|
90
|
+
amount: number;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
isOpen: false;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
type UpdateMissionsResponseDto = {
|
|
97
|
+
success: boolean;
|
|
98
|
+
data: {
|
|
99
|
+
rewardUpdatesQueued: Array<string>;
|
|
100
|
+
cancelUpdatesQueued: Array<string>;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type ClaimRewardsRequestDto = {
|
|
104
|
+
flightIds: Array<number>;
|
|
105
|
+
};
|
|
106
|
+
type ClaimRewardsResponseDto = {
|
|
107
|
+
success: boolean;
|
|
108
|
+
data: {
|
|
109
|
+
cancelUpdatesQueued: Array<string>;
|
|
110
|
+
} | string;
|
|
111
|
+
};
|
|
59
112
|
type FlightDto = {
|
|
60
113
|
token_id: number;
|
|
61
114
|
owner: string;
|
|
@@ -80,11 +133,6 @@ type ValidateFlightDto = {
|
|
|
80
133
|
pilotAddress: string;
|
|
81
134
|
missionId: number;
|
|
82
135
|
flightTimestamp: string;
|
|
83
|
-
externalBucketInfo?: {
|
|
84
|
-
prefix: string;
|
|
85
|
-
bucketName: string;
|
|
86
|
-
region: string;
|
|
87
|
-
};
|
|
88
136
|
flightRequestInfo: {
|
|
89
137
|
filePaths: Array<string>;
|
|
90
138
|
flightPlanId: number;
|
|
@@ -112,7 +160,7 @@ type GetTimeLimitsForSunAltitudeResponse = {
|
|
|
112
160
|
type CreateWebhookBody = {
|
|
113
161
|
name: string;
|
|
114
162
|
url: string;
|
|
115
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
163
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
116
164
|
active: boolean;
|
|
117
165
|
};
|
|
118
166
|
type CreateWebhookResponse = {
|
|
@@ -123,7 +171,7 @@ type GetWebhooksResponse = Array<{
|
|
|
123
171
|
id: number;
|
|
124
172
|
name: string;
|
|
125
173
|
url: string;
|
|
126
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
174
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
127
175
|
active: boolean;
|
|
128
176
|
failure_count: number;
|
|
129
177
|
last_failure_reason: string;
|
|
@@ -134,7 +182,7 @@ type GetWebhookResponse = {
|
|
|
134
182
|
id: number;
|
|
135
183
|
name: string;
|
|
136
184
|
url: string;
|
|
137
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
185
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
138
186
|
active: boolean;
|
|
139
187
|
failure_count: number;
|
|
140
188
|
last_failure_reason: string;
|
|
@@ -144,14 +192,14 @@ type GetWebhookResponse = {
|
|
|
144
192
|
type UpdateWebhookBody = {
|
|
145
193
|
name?: string;
|
|
146
194
|
url?: string;
|
|
147
|
-
event_types?: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
195
|
+
event_types?: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
148
196
|
active?: boolean;
|
|
149
197
|
};
|
|
150
198
|
type UpdateWebhookResponse = {
|
|
151
199
|
id: number;
|
|
152
200
|
name: string;
|
|
153
201
|
url: string;
|
|
154
|
-
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
202
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.flight.reviewed" | "*">;
|
|
155
203
|
active: boolean;
|
|
156
204
|
failure_count: number;
|
|
157
205
|
last_failure_reason: string;
|
|
@@ -307,6 +355,48 @@ type QuotesControllerGetQuoteErrors = {
|
|
|
307
355
|
type QuotesControllerGetQuoteResponses = {
|
|
308
356
|
200: unknown;
|
|
309
357
|
};
|
|
358
|
+
type MissionsControllerCreateMissionsData = {
|
|
359
|
+
body: CreateMissionRequestDto;
|
|
360
|
+
path?: never;
|
|
361
|
+
query?: never;
|
|
362
|
+
url: "/missions";
|
|
363
|
+
};
|
|
364
|
+
type MissionsControllerCreateMissionsErrors = {
|
|
365
|
+
400: unknown;
|
|
366
|
+
403: unknown;
|
|
367
|
+
500: unknown;
|
|
368
|
+
};
|
|
369
|
+
type MissionsControllerCreateMissionsResponses = {
|
|
370
|
+
201: CreateMissionResponseDto;
|
|
371
|
+
};
|
|
372
|
+
type MissionsControllerCreateMissionsResponse = MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
373
|
+
type MissionsControllerUpdateMissionsData = {
|
|
374
|
+
body: UpdateMissionsRequestDto;
|
|
375
|
+
path?: never;
|
|
376
|
+
query?: never;
|
|
377
|
+
url: "/missions";
|
|
378
|
+
};
|
|
379
|
+
type MissionsControllerUpdateMissionsResponses = {
|
|
380
|
+
200: UpdateMissionsResponseDto;
|
|
381
|
+
};
|
|
382
|
+
type MissionsControllerUpdateMissionsResponse = MissionsControllerUpdateMissionsResponses[keyof MissionsControllerUpdateMissionsResponses];
|
|
383
|
+
type MissionsControllerClaimRewardsData = {
|
|
384
|
+
body: ClaimRewardsRequestDto;
|
|
385
|
+
path: {
|
|
386
|
+
id: bigint;
|
|
387
|
+
};
|
|
388
|
+
query?: never;
|
|
389
|
+
url: "/missions/{id}/rewards";
|
|
390
|
+
};
|
|
391
|
+
type MissionsControllerClaimRewardsErrors = {
|
|
392
|
+
400: unknown;
|
|
393
|
+
404: unknown;
|
|
394
|
+
500: unknown;
|
|
395
|
+
};
|
|
396
|
+
type MissionsControllerClaimRewardsResponses = {
|
|
397
|
+
200: ClaimRewardsResponseDto;
|
|
398
|
+
};
|
|
399
|
+
type MissionsControllerClaimRewardsResponse = MissionsControllerClaimRewardsResponses[keyof MissionsControllerClaimRewardsResponses];
|
|
310
400
|
type FlightsControllerGenerateFlightIdData = {
|
|
311
401
|
body?: never;
|
|
312
402
|
path?: never;
|
|
@@ -716,6 +806,9 @@ declare const apiTokenControllerGetToken: <ThrowOnError extends boolean = false>
|
|
|
716
806
|
declare const apiTokenControllerUpdateToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerUpdateTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerUpdateTokenResponses, ApiTokenControllerUpdateTokenErrors, ThrowOnError, "fields">;
|
|
717
807
|
declare const quotesControllerCreateQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerCreateQuoteData, ThrowOnError>) => RequestResult<QuotesControllerCreateQuoteResponses, QuotesControllerCreateQuoteErrors, ThrowOnError, "fields">;
|
|
718
808
|
declare const quotesControllerGetQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerGetQuoteData, ThrowOnError>) => RequestResult<QuotesControllerGetQuoteResponses, QuotesControllerGetQuoteErrors, ThrowOnError, "fields">;
|
|
809
|
+
declare const missionsControllerCreateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerCreateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerCreateMissionsResponses, MissionsControllerCreateMissionsErrors, ThrowOnError, "fields">;
|
|
810
|
+
declare const missionsControllerUpdateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerUpdateMissionsResponses, unknown, ThrowOnError, "fields">;
|
|
811
|
+
declare const missionsControllerClaimRewards: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerClaimRewardsData, ThrowOnError>) => RequestResult<MissionsControllerClaimRewardsResponses, MissionsControllerClaimRewardsErrors, ThrowOnError, "fields">;
|
|
719
812
|
declare const flightsControllerGenerateFlightId: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGenerateFlightIdData, ThrowOnError>) => RequestResult<FlightsControllerGenerateFlightIdResponses, FlightsControllerGenerateFlightIdErrors, ThrowOnError, "fields">;
|
|
720
813
|
declare const flightsControllerGetFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGetFlightData, ThrowOnError>) => RequestResult<FlightsControllerGetFlightResponses, FlightsControllerGetFlightErrors, ThrowOnError, "fields">;
|
|
721
814
|
declare const flightsControllerCreatePresignedUrls: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerCreatePresignedUrlsData, ThrowOnError>) => RequestResult<FlightsControllerCreatePresignedUrlsResponses, FlightsControllerCreatePresignedUrlsErrors, ThrowOnError, "fields">;
|
|
@@ -791,6 +884,146 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
791
884
|
event_type: "protocol.flight.submitted";
|
|
792
885
|
id?: any;
|
|
793
886
|
timestamp?: any;
|
|
887
|
+
}>, z.ZodObject<{
|
|
888
|
+
id: z.ZodAny;
|
|
889
|
+
event_type: z.ZodLiteral<"protocol.mission.created">;
|
|
890
|
+
timestamp: z.ZodAny;
|
|
891
|
+
data: z.ZodObject<{
|
|
892
|
+
missionId: z.ZodString;
|
|
893
|
+
vaultId: z.ZodString;
|
|
894
|
+
amount: z.ZodString;
|
|
895
|
+
zoneId: z.ZodString;
|
|
896
|
+
flightPlanId: z.ZodNumber;
|
|
897
|
+
captureStartTime: z.ZodString;
|
|
898
|
+
captureEndTime: z.ZodString;
|
|
899
|
+
detailsHash: z.ZodString;
|
|
900
|
+
}, "strict", z.ZodTypeAny, {
|
|
901
|
+
missionId: string;
|
|
902
|
+
vaultId: string;
|
|
903
|
+
amount: string;
|
|
904
|
+
zoneId: string;
|
|
905
|
+
flightPlanId: number;
|
|
906
|
+
captureStartTime: string;
|
|
907
|
+
captureEndTime: string;
|
|
908
|
+
detailsHash: string;
|
|
909
|
+
}, {
|
|
910
|
+
missionId: string;
|
|
911
|
+
vaultId: string;
|
|
912
|
+
amount: string;
|
|
913
|
+
zoneId: string;
|
|
914
|
+
flightPlanId: number;
|
|
915
|
+
captureStartTime: string;
|
|
916
|
+
captureEndTime: string;
|
|
917
|
+
detailsHash: string;
|
|
918
|
+
}>;
|
|
919
|
+
}, "strict", z.ZodTypeAny, {
|
|
920
|
+
data: {
|
|
921
|
+
missionId: string;
|
|
922
|
+
vaultId: string;
|
|
923
|
+
amount: string;
|
|
924
|
+
zoneId: string;
|
|
925
|
+
flightPlanId: number;
|
|
926
|
+
captureStartTime: string;
|
|
927
|
+
captureEndTime: string;
|
|
928
|
+
detailsHash: string;
|
|
929
|
+
};
|
|
930
|
+
event_type: "protocol.mission.created";
|
|
931
|
+
id?: any;
|
|
932
|
+
timestamp?: any;
|
|
933
|
+
}, {
|
|
934
|
+
data: {
|
|
935
|
+
missionId: string;
|
|
936
|
+
vaultId: string;
|
|
937
|
+
amount: string;
|
|
938
|
+
zoneId: string;
|
|
939
|
+
flightPlanId: number;
|
|
940
|
+
captureStartTime: string;
|
|
941
|
+
captureEndTime: string;
|
|
942
|
+
detailsHash: string;
|
|
943
|
+
};
|
|
944
|
+
event_type: "protocol.mission.created";
|
|
945
|
+
id?: any;
|
|
946
|
+
timestamp?: any;
|
|
947
|
+
}>, z.ZodObject<{
|
|
948
|
+
id: z.ZodAny;
|
|
949
|
+
event_type: z.ZodLiteral<"protocol.mission.updated">;
|
|
950
|
+
timestamp: z.ZodAny;
|
|
951
|
+
data: z.ZodObject<{
|
|
952
|
+
id: z.ZodString;
|
|
953
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
954
|
+
isOpen: z.ZodOptional<z.ZodBoolean>;
|
|
955
|
+
}, "strict", z.ZodTypeAny, {
|
|
956
|
+
id: string;
|
|
957
|
+
amount?: number | undefined;
|
|
958
|
+
isOpen?: boolean | undefined;
|
|
959
|
+
}, {
|
|
960
|
+
id: string;
|
|
961
|
+
amount?: number | undefined;
|
|
962
|
+
isOpen?: boolean | undefined;
|
|
963
|
+
}>;
|
|
964
|
+
}, "strict", z.ZodTypeAny, {
|
|
965
|
+
data: {
|
|
966
|
+
id: string;
|
|
967
|
+
amount?: number | undefined;
|
|
968
|
+
isOpen?: boolean | undefined;
|
|
969
|
+
};
|
|
970
|
+
event_type: "protocol.mission.updated";
|
|
971
|
+
id?: any;
|
|
972
|
+
timestamp?: any;
|
|
973
|
+
}, {
|
|
974
|
+
data: {
|
|
975
|
+
id: string;
|
|
976
|
+
amount?: number | undefined;
|
|
977
|
+
isOpen?: boolean | undefined;
|
|
978
|
+
};
|
|
979
|
+
event_type: "protocol.mission.updated";
|
|
980
|
+
id?: any;
|
|
981
|
+
timestamp?: any;
|
|
982
|
+
}>, z.ZodObject<{
|
|
983
|
+
id: z.ZodAny;
|
|
984
|
+
event_type: z.ZodLiteral<"protocol.flight.reviewed">;
|
|
985
|
+
timestamp: z.ZodAny;
|
|
986
|
+
data: z.ZodObject<{
|
|
987
|
+
flightId: z.ZodNumber;
|
|
988
|
+
isApproved: z.ZodBoolean;
|
|
989
|
+
validationLogUri: z.ZodString;
|
|
990
|
+
validator: z.ZodString;
|
|
991
|
+
filesHash: z.ZodString;
|
|
992
|
+
}, "strict", z.ZodTypeAny, {
|
|
993
|
+
flightId: number;
|
|
994
|
+
isApproved: boolean;
|
|
995
|
+
validationLogUri: string;
|
|
996
|
+
validator: string;
|
|
997
|
+
filesHash: string;
|
|
998
|
+
}, {
|
|
999
|
+
flightId: number;
|
|
1000
|
+
isApproved: boolean;
|
|
1001
|
+
validationLogUri: string;
|
|
1002
|
+
validator: string;
|
|
1003
|
+
filesHash: string;
|
|
1004
|
+
}>;
|
|
1005
|
+
}, "strict", z.ZodTypeAny, {
|
|
1006
|
+
data: {
|
|
1007
|
+
flightId: number;
|
|
1008
|
+
isApproved: boolean;
|
|
1009
|
+
validationLogUri: string;
|
|
1010
|
+
validator: string;
|
|
1011
|
+
filesHash: string;
|
|
1012
|
+
};
|
|
1013
|
+
event_type: "protocol.flight.reviewed";
|
|
1014
|
+
id?: any;
|
|
1015
|
+
timestamp?: any;
|
|
1016
|
+
}, {
|
|
1017
|
+
data: {
|
|
1018
|
+
flightId: number;
|
|
1019
|
+
isApproved: boolean;
|
|
1020
|
+
validationLogUri: string;
|
|
1021
|
+
validator: string;
|
|
1022
|
+
filesHash: string;
|
|
1023
|
+
};
|
|
1024
|
+
event_type: "protocol.flight.reviewed";
|
|
1025
|
+
id?: any;
|
|
1026
|
+
timestamp?: any;
|
|
794
1027
|
}>]>;
|
|
795
1028
|
type Event = z.infer<typeof Event>;
|
|
796
1029
|
|
|
@@ -810,6 +1043,40 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
810
1043
|
event_type: "protocol.flight.submitted";
|
|
811
1044
|
id?: any;
|
|
812
1045
|
timestamp?: any;
|
|
1046
|
+
} | {
|
|
1047
|
+
data: {
|
|
1048
|
+
missionId: string;
|
|
1049
|
+
vaultId: string;
|
|
1050
|
+
amount: string;
|
|
1051
|
+
zoneId: string;
|
|
1052
|
+
flightPlanId: number;
|
|
1053
|
+
captureStartTime: string;
|
|
1054
|
+
captureEndTime: string;
|
|
1055
|
+
detailsHash: string;
|
|
1056
|
+
};
|
|
1057
|
+
event_type: "protocol.mission.created";
|
|
1058
|
+
id?: any;
|
|
1059
|
+
timestamp?: any;
|
|
1060
|
+
} | {
|
|
1061
|
+
data: {
|
|
1062
|
+
id: string;
|
|
1063
|
+
amount?: number | undefined;
|
|
1064
|
+
isOpen?: boolean | undefined;
|
|
1065
|
+
};
|
|
1066
|
+
event_type: "protocol.mission.updated";
|
|
1067
|
+
id?: any;
|
|
1068
|
+
timestamp?: any;
|
|
1069
|
+
} | {
|
|
1070
|
+
data: {
|
|
1071
|
+
flightId: number;
|
|
1072
|
+
isApproved: boolean;
|
|
1073
|
+
validationLogUri: string;
|
|
1074
|
+
validator: string;
|
|
1075
|
+
filesHash: string;
|
|
1076
|
+
};
|
|
1077
|
+
event_type: "protocol.flight.reviewed";
|
|
1078
|
+
id?: any;
|
|
1079
|
+
timestamp?: any;
|
|
813
1080
|
};
|
|
814
1081
|
|
|
815
|
-
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 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 CreateQuoteRequestDto, type CreateWebhookBody, type CreateWebhookResponse, type DeleteWebhookResponse, type DepositRewardsRequestDto, type DepositRewardsResponseDto, type DistributeRewardsRequestDto, type DistributeRewardsResponseDto, Event, type FlightDto, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponse, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateFlightIdData, type FlightsControllerGenerateFlightIdErrors, type FlightsControllerGenerateFlightIdResponse, type FlightsControllerGenerateFlightIdResponses, 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 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 RewardsControllerDepositRewardsData, type RewardsControllerDepositRewardsErrors, type RewardsControllerDepositRewardsResponse, type RewardsControllerDepositRewardsResponses, type RewardsControllerDistributeRewardsData, type RewardsControllerDistributeRewardsErrors, type RewardsControllerDistributeRewardsResponse, type RewardsControllerDistributeRewardsResponses, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TDataShape, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightDto, 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, flightsControllerGenerateFlightId, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, rewardsControllerDepositRewards, rewardsControllerDistributeRewards, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
|
|
1082
|
+
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, type DepositRewardsRequestDto, type DepositRewardsResponseDto, type DistributeRewardsRequestDto, type DistributeRewardsResponseDto, Event, type FlightDto, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponse, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateFlightIdData, type FlightsControllerGenerateFlightIdErrors, type FlightsControllerGenerateFlightIdResponse, type FlightsControllerGenerateFlightIdResponses, 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 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 RewardsControllerDepositRewardsData, type RewardsControllerDepositRewardsErrors, type RewardsControllerDepositRewardsResponse, type RewardsControllerDepositRewardsResponses, type RewardsControllerDistributeRewardsData, type RewardsControllerDistributeRewardsErrors, type RewardsControllerDistributeRewardsResponse, type RewardsControllerDistributeRewardsResponses, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TDataShape, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateMissionsRequestDto, type UpdateMissionsResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightDto, 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, flightsControllerGenerateFlightId, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, missionsControllerClaimRewards, missionsControllerCreateMissions, missionsControllerUpdateMissions, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, rewardsControllerDepositRewards, rewardsControllerDistributeRewards, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,9 @@ __export(index_exports, {
|
|
|
39
39
|
jsonBodySerializer: () => jsonBodySerializer,
|
|
40
40
|
keysControllerGetProvenanceCryptoKey: () => keysControllerGetProvenanceCryptoKey,
|
|
41
41
|
mergeHeaders: () => mergeHeaders,
|
|
42
|
+
missionsControllerClaimRewards: () => missionsControllerClaimRewards,
|
|
43
|
+
missionsControllerCreateMissions: () => missionsControllerCreateMissions,
|
|
44
|
+
missionsControllerUpdateMissions: () => missionsControllerUpdateMissions,
|
|
42
45
|
parseWebhookEvent: () => parseWebhookEvent,
|
|
43
46
|
quotesControllerCreateQuote: () => quotesControllerCreateQuote,
|
|
44
47
|
quotesControllerGetQuote: () => quotesControllerGetQuote,
|
|
@@ -897,6 +900,36 @@ var quotesControllerGetQuote = /* @__PURE__ */ __name((options) => {
|
|
|
897
900
|
...options
|
|
898
901
|
});
|
|
899
902
|
}, "quotesControllerGetQuote");
|
|
903
|
+
var missionsControllerCreateMissions = /* @__PURE__ */ __name((options) => {
|
|
904
|
+
return (options.client ?? client).post({
|
|
905
|
+
url: "/missions",
|
|
906
|
+
...options,
|
|
907
|
+
headers: {
|
|
908
|
+
"Content-Type": "application/json",
|
|
909
|
+
...options.headers
|
|
910
|
+
}
|
|
911
|
+
});
|
|
912
|
+
}, "missionsControllerCreateMissions");
|
|
913
|
+
var missionsControllerUpdateMissions = /* @__PURE__ */ __name((options) => {
|
|
914
|
+
return (options.client ?? client).put({
|
|
915
|
+
url: "/missions",
|
|
916
|
+
...options,
|
|
917
|
+
headers: {
|
|
918
|
+
"Content-Type": "application/json",
|
|
919
|
+
...options.headers
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
}, "missionsControllerUpdateMissions");
|
|
923
|
+
var missionsControllerClaimRewards = /* @__PURE__ */ __name((options) => {
|
|
924
|
+
return (options.client ?? client).post({
|
|
925
|
+
url: "/missions/{id}/rewards",
|
|
926
|
+
...options,
|
|
927
|
+
headers: {
|
|
928
|
+
"Content-Type": "application/json",
|
|
929
|
+
...options.headers
|
|
930
|
+
}
|
|
931
|
+
});
|
|
932
|
+
}, "missionsControllerClaimRewards");
|
|
900
933
|
var flightsControllerGenerateFlightId = /* @__PURE__ */ __name((options) => {
|
|
901
934
|
return (options.client ?? client).get({
|
|
902
935
|
security: [
|
|
@@ -1091,6 +1124,43 @@ var Event = import_zod.z.union([
|
|
|
1091
1124
|
pilotAddress: import_zod.z.string(),
|
|
1092
1125
|
flightManifestUri: import_zod.z.string()
|
|
1093
1126
|
}).strict()
|
|
1127
|
+
}).strict(),
|
|
1128
|
+
import_zod.z.object({
|
|
1129
|
+
id: import_zod.z.any(),
|
|
1130
|
+
event_type: import_zod.z.literal("protocol.mission.created"),
|
|
1131
|
+
timestamp: import_zod.z.any(),
|
|
1132
|
+
data: import_zod.z.object({
|
|
1133
|
+
missionId: import_zod.z.string(),
|
|
1134
|
+
vaultId: import_zod.z.string(),
|
|
1135
|
+
amount: import_zod.z.string(),
|
|
1136
|
+
zoneId: import_zod.z.string(),
|
|
1137
|
+
flightPlanId: import_zod.z.number(),
|
|
1138
|
+
captureStartTime: import_zod.z.string(),
|
|
1139
|
+
captureEndTime: import_zod.z.string(),
|
|
1140
|
+
detailsHash: import_zod.z.string()
|
|
1141
|
+
}).strict()
|
|
1142
|
+
}).strict(),
|
|
1143
|
+
import_zod.z.object({
|
|
1144
|
+
id: import_zod.z.any(),
|
|
1145
|
+
event_type: import_zod.z.literal("protocol.mission.updated"),
|
|
1146
|
+
timestamp: import_zod.z.any(),
|
|
1147
|
+
data: import_zod.z.object({
|
|
1148
|
+
id: import_zod.z.string(),
|
|
1149
|
+
amount: import_zod.z.number().optional(),
|
|
1150
|
+
isOpen: import_zod.z.boolean().optional()
|
|
1151
|
+
}).strict()
|
|
1152
|
+
}).strict(),
|
|
1153
|
+
import_zod.z.object({
|
|
1154
|
+
id: import_zod.z.any(),
|
|
1155
|
+
event_type: import_zod.z.literal("protocol.flight.reviewed"),
|
|
1156
|
+
timestamp: import_zod.z.any(),
|
|
1157
|
+
data: import_zod.z.object({
|
|
1158
|
+
flightId: import_zod.z.number(),
|
|
1159
|
+
isApproved: import_zod.z.boolean(),
|
|
1160
|
+
validationLogUri: import_zod.z.string(),
|
|
1161
|
+
validator: import_zod.z.string(),
|
|
1162
|
+
filesHash: import_zod.z.string()
|
|
1163
|
+
}).strict()
|
|
1094
1164
|
}).strict()
|
|
1095
1165
|
]);
|
|
1096
1166
|
|
|
@@ -1138,6 +1208,9 @@ __name(getSecretHeader, "getSecretHeader");
|
|
|
1138
1208
|
jsonBodySerializer,
|
|
1139
1209
|
keysControllerGetProvenanceCryptoKey,
|
|
1140
1210
|
mergeHeaders,
|
|
1211
|
+
missionsControllerClaimRewards,
|
|
1212
|
+
missionsControllerCreateMissions,
|
|
1213
|
+
missionsControllerUpdateMissions,
|
|
1141
1214
|
parseWebhookEvent,
|
|
1142
1215
|
quotesControllerCreateQuote,
|
|
1143
1216
|
quotesControllerGetQuote,
|
package/dist/index.mjs
CHANGED
|
@@ -841,6 +841,36 @@ var quotesControllerGetQuote = /* @__PURE__ */ __name((options) => {
|
|
|
841
841
|
...options
|
|
842
842
|
});
|
|
843
843
|
}, "quotesControllerGetQuote");
|
|
844
|
+
var missionsControllerCreateMissions = /* @__PURE__ */ __name((options) => {
|
|
845
|
+
return (options.client ?? client).post({
|
|
846
|
+
url: "/missions",
|
|
847
|
+
...options,
|
|
848
|
+
headers: {
|
|
849
|
+
"Content-Type": "application/json",
|
|
850
|
+
...options.headers
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
}, "missionsControllerCreateMissions");
|
|
854
|
+
var missionsControllerUpdateMissions = /* @__PURE__ */ __name((options) => {
|
|
855
|
+
return (options.client ?? client).put({
|
|
856
|
+
url: "/missions",
|
|
857
|
+
...options,
|
|
858
|
+
headers: {
|
|
859
|
+
"Content-Type": "application/json",
|
|
860
|
+
...options.headers
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
}, "missionsControllerUpdateMissions");
|
|
864
|
+
var missionsControllerClaimRewards = /* @__PURE__ */ __name((options) => {
|
|
865
|
+
return (options.client ?? client).post({
|
|
866
|
+
url: "/missions/{id}/rewards",
|
|
867
|
+
...options,
|
|
868
|
+
headers: {
|
|
869
|
+
"Content-Type": "application/json",
|
|
870
|
+
...options.headers
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
}, "missionsControllerClaimRewards");
|
|
844
874
|
var flightsControllerGenerateFlightId = /* @__PURE__ */ __name((options) => {
|
|
845
875
|
return (options.client ?? client).get({
|
|
846
876
|
security: [
|
|
@@ -1035,6 +1065,43 @@ var Event = z.union([
|
|
|
1035
1065
|
pilotAddress: z.string(),
|
|
1036
1066
|
flightManifestUri: z.string()
|
|
1037
1067
|
}).strict()
|
|
1068
|
+
}).strict(),
|
|
1069
|
+
z.object({
|
|
1070
|
+
id: z.any(),
|
|
1071
|
+
event_type: z.literal("protocol.mission.created"),
|
|
1072
|
+
timestamp: z.any(),
|
|
1073
|
+
data: z.object({
|
|
1074
|
+
missionId: z.string(),
|
|
1075
|
+
vaultId: z.string(),
|
|
1076
|
+
amount: z.string(),
|
|
1077
|
+
zoneId: z.string(),
|
|
1078
|
+
flightPlanId: z.number(),
|
|
1079
|
+
captureStartTime: z.string(),
|
|
1080
|
+
captureEndTime: z.string(),
|
|
1081
|
+
detailsHash: z.string()
|
|
1082
|
+
}).strict()
|
|
1083
|
+
}).strict(),
|
|
1084
|
+
z.object({
|
|
1085
|
+
id: z.any(),
|
|
1086
|
+
event_type: z.literal("protocol.mission.updated"),
|
|
1087
|
+
timestamp: z.any(),
|
|
1088
|
+
data: z.object({
|
|
1089
|
+
id: z.string(),
|
|
1090
|
+
amount: z.number().optional(),
|
|
1091
|
+
isOpen: z.boolean().optional()
|
|
1092
|
+
}).strict()
|
|
1093
|
+
}).strict(),
|
|
1094
|
+
z.object({
|
|
1095
|
+
id: z.any(),
|
|
1096
|
+
event_type: z.literal("protocol.flight.reviewed"),
|
|
1097
|
+
timestamp: z.any(),
|
|
1098
|
+
data: z.object({
|
|
1099
|
+
flightId: z.number(),
|
|
1100
|
+
isApproved: z.boolean(),
|
|
1101
|
+
validationLogUri: z.string(),
|
|
1102
|
+
validator: z.string(),
|
|
1103
|
+
filesHash: z.string()
|
|
1104
|
+
}).strict()
|
|
1038
1105
|
}).strict()
|
|
1039
1106
|
]);
|
|
1040
1107
|
|
|
@@ -1081,6 +1148,9 @@ export {
|
|
|
1081
1148
|
jsonBodySerializer,
|
|
1082
1149
|
keysControllerGetProvenanceCryptoKey,
|
|
1083
1150
|
mergeHeaders,
|
|
1151
|
+
missionsControllerClaimRewards,
|
|
1152
|
+
missionsControllerCreateMissions,
|
|
1153
|
+
missionsControllerUpdateMissions,
|
|
1084
1154
|
parseWebhookEvent,
|
|
1085
1155
|
quotesControllerCreateQuote,
|
|
1086
1156
|
quotesControllerGetQuote,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layer-drone/protocol",
|
|
3
3
|
"description": "Layer Drone protocol SDK with typed API client and event parsing",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.12",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"generate-api": "openapi-ts",
|
|
40
40
|
"generate-event": "ts-node ./scripts/generate-event-type.ts",
|
|
41
41
|
"generate": "pnpm generate-api && pnpm generate-event && pnpm lint --fix && pnpm build",
|
|
42
|
+
"type-check": "tsc --noEmit",
|
|
42
43
|
"sonar": "sonar"
|
|
43
44
|
}
|
|
44
45
|
}
|
package/src/client/sdk.gen.ts
CHANGED
|
@@ -40,6 +40,14 @@ import type {
|
|
|
40
40
|
FlightsControllerValidateFlightResponses,
|
|
41
41
|
KeysControllerGetProvenanceCryptoKeyData,
|
|
42
42
|
KeysControllerGetProvenanceCryptoKeyResponses,
|
|
43
|
+
MissionsControllerClaimRewardsData,
|
|
44
|
+
MissionsControllerClaimRewardsErrors,
|
|
45
|
+
MissionsControllerClaimRewardsResponses,
|
|
46
|
+
MissionsControllerCreateMissionsData,
|
|
47
|
+
MissionsControllerCreateMissionsErrors,
|
|
48
|
+
MissionsControllerCreateMissionsResponses,
|
|
49
|
+
MissionsControllerUpdateMissionsData,
|
|
50
|
+
MissionsControllerUpdateMissionsResponses,
|
|
43
51
|
QuotesControllerCreateQuoteData,
|
|
44
52
|
QuotesControllerCreateQuoteErrors,
|
|
45
53
|
QuotesControllerCreateQuoteResponses,
|
|
@@ -312,6 +320,75 @@ export const quotesControllerGetQuote = <ThrowOnError extends boolean = false>(
|
|
|
312
320
|
});
|
|
313
321
|
};
|
|
314
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Create new missions
|
|
325
|
+
* Create missions for specified zones and mission types.
|
|
326
|
+
*/
|
|
327
|
+
export const missionsControllerCreateMissions = <
|
|
328
|
+
ThrowOnError extends boolean = false,
|
|
329
|
+
>(
|
|
330
|
+
options: Options<MissionsControllerCreateMissionsData, ThrowOnError>,
|
|
331
|
+
) => {
|
|
332
|
+
return (options.client ?? _heyApiClient).post<
|
|
333
|
+
MissionsControllerCreateMissionsResponses,
|
|
334
|
+
MissionsControllerCreateMissionsErrors,
|
|
335
|
+
ThrowOnError
|
|
336
|
+
>({
|
|
337
|
+
url: "/missions",
|
|
338
|
+
...options,
|
|
339
|
+
headers: {
|
|
340
|
+
"Content-Type": "application/json",
|
|
341
|
+
...options.headers,
|
|
342
|
+
},
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Update missions
|
|
348
|
+
* Update missions' rewards or cancel them altogether
|
|
349
|
+
*/
|
|
350
|
+
export const missionsControllerUpdateMissions = <
|
|
351
|
+
ThrowOnError extends boolean = false,
|
|
352
|
+
>(
|
|
353
|
+
options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>,
|
|
354
|
+
) => {
|
|
355
|
+
return (options.client ?? _heyApiClient).put<
|
|
356
|
+
MissionsControllerUpdateMissionsResponses,
|
|
357
|
+
unknown,
|
|
358
|
+
ThrowOnError
|
|
359
|
+
>({
|
|
360
|
+
url: "/missions",
|
|
361
|
+
...options,
|
|
362
|
+
headers: {
|
|
363
|
+
"Content-Type": "application/json",
|
|
364
|
+
...options.headers,
|
|
365
|
+
},
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Claim rewards for a mission
|
|
371
|
+
* Claim rewards for a completed flight within a mission
|
|
372
|
+
*/
|
|
373
|
+
export const missionsControllerClaimRewards = <
|
|
374
|
+
ThrowOnError extends boolean = false,
|
|
375
|
+
>(
|
|
376
|
+
options: Options<MissionsControllerClaimRewardsData, ThrowOnError>,
|
|
377
|
+
) => {
|
|
378
|
+
return (options.client ?? _heyApiClient).post<
|
|
379
|
+
MissionsControllerClaimRewardsResponses,
|
|
380
|
+
MissionsControllerClaimRewardsErrors,
|
|
381
|
+
ThrowOnError
|
|
382
|
+
>({
|
|
383
|
+
url: "/missions/{id}/rewards",
|
|
384
|
+
...options,
|
|
385
|
+
headers: {
|
|
386
|
+
"Content-Type": "application/json",
|
|
387
|
+
...options.headers,
|
|
388
|
+
},
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
|
|
315
392
|
export const flightsControllerGenerateFlightId = <
|
|
316
393
|
ThrowOnError extends boolean = false,
|
|
317
394
|
>(
|
package/src/client/types.gen.ts
CHANGED
|
@@ -87,6 +87,72 @@ export type CreateQuoteRequestDto = {
|
|
|
87
87
|
mintOnChain: boolean;
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
+
export type CreateMissionRequestDto = {
|
|
91
|
+
missions: Array<{
|
|
92
|
+
zoneId: string;
|
|
93
|
+
flightPlanId: number;
|
|
94
|
+
amount: number;
|
|
95
|
+
startTime: Date;
|
|
96
|
+
endTime: Date;
|
|
97
|
+
}>;
|
|
98
|
+
campaignId: number;
|
|
99
|
+
requestor: string;
|
|
100
|
+
mintOnChain?: boolean;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export type CreateMissionResponseDto = {
|
|
104
|
+
success: boolean;
|
|
105
|
+
data:
|
|
106
|
+
| {
|
|
107
|
+
missions: Array<{
|
|
108
|
+
missionId: string;
|
|
109
|
+
vaultId: string;
|
|
110
|
+
amount: number;
|
|
111
|
+
zoneId: string;
|
|
112
|
+
flightPlanId: number;
|
|
113
|
+
captureStartTime: Date;
|
|
114
|
+
captureEndTime: Date;
|
|
115
|
+
requestor: string;
|
|
116
|
+
}>;
|
|
117
|
+
totalAmount: number;
|
|
118
|
+
}
|
|
119
|
+
| string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type UpdateMissionsRequestDto = {
|
|
123
|
+
missions: Array<
|
|
124
|
+
| {
|
|
125
|
+
id: string;
|
|
126
|
+
amount: number;
|
|
127
|
+
}
|
|
128
|
+
| {
|
|
129
|
+
id: string;
|
|
130
|
+
isOpen: false;
|
|
131
|
+
}
|
|
132
|
+
>;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type UpdateMissionsResponseDto = {
|
|
136
|
+
success: boolean;
|
|
137
|
+
data: {
|
|
138
|
+
rewardUpdatesQueued: Array<string>;
|
|
139
|
+
cancelUpdatesQueued: Array<string>;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export type ClaimRewardsRequestDto = {
|
|
144
|
+
flightIds: Array<number>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export type ClaimRewardsResponseDto = {
|
|
148
|
+
success: boolean;
|
|
149
|
+
data:
|
|
150
|
+
| {
|
|
151
|
+
cancelUpdatesQueued: Array<string>;
|
|
152
|
+
}
|
|
153
|
+
| string;
|
|
154
|
+
};
|
|
155
|
+
|
|
90
156
|
export type FlightDto = {
|
|
91
157
|
token_id: number;
|
|
92
158
|
owner: string;
|
|
@@ -114,11 +180,6 @@ export type ValidateFlightDto = {
|
|
|
114
180
|
pilotAddress: string;
|
|
115
181
|
missionId: number;
|
|
116
182
|
flightTimestamp: string;
|
|
117
|
-
externalBucketInfo?: {
|
|
118
|
-
prefix: string;
|
|
119
|
-
bucketName: string;
|
|
120
|
-
region: string;
|
|
121
|
-
};
|
|
122
183
|
flightRequestInfo: {
|
|
123
184
|
filePaths: Array<string>;
|
|
124
185
|
flightPlanId: number;
|
|
@@ -149,7 +210,14 @@ export type GetTimeLimitsForSunAltitudeResponse = {
|
|
|
149
210
|
export type CreateWebhookBody = {
|
|
150
211
|
name: string;
|
|
151
212
|
url: string;
|
|
152
|
-
event_types: Array<
|
|
213
|
+
event_types: Array<
|
|
214
|
+
| "test"
|
|
215
|
+
| "protocol.flight.submitted"
|
|
216
|
+
| "protocol.mission.created"
|
|
217
|
+
| "protocol.mission.updated"
|
|
218
|
+
| "protocol.flight.reviewed"
|
|
219
|
+
| "*"
|
|
220
|
+
>;
|
|
153
221
|
active: boolean;
|
|
154
222
|
};
|
|
155
223
|
|
|
@@ -162,7 +230,14 @@ export type GetWebhooksResponse = Array<{
|
|
|
162
230
|
id: number;
|
|
163
231
|
name: string;
|
|
164
232
|
url: string;
|
|
165
|
-
event_types: Array<
|
|
233
|
+
event_types: Array<
|
|
234
|
+
| "test"
|
|
235
|
+
| "protocol.flight.submitted"
|
|
236
|
+
| "protocol.mission.created"
|
|
237
|
+
| "protocol.mission.updated"
|
|
238
|
+
| "protocol.flight.reviewed"
|
|
239
|
+
| "*"
|
|
240
|
+
>;
|
|
166
241
|
active: boolean;
|
|
167
242
|
failure_count: number;
|
|
168
243
|
last_failure_reason: string;
|
|
@@ -174,7 +249,14 @@ export type GetWebhookResponse = {
|
|
|
174
249
|
id: number;
|
|
175
250
|
name: string;
|
|
176
251
|
url: string;
|
|
177
|
-
event_types: Array<
|
|
252
|
+
event_types: Array<
|
|
253
|
+
| "test"
|
|
254
|
+
| "protocol.flight.submitted"
|
|
255
|
+
| "protocol.mission.created"
|
|
256
|
+
| "protocol.mission.updated"
|
|
257
|
+
| "protocol.flight.reviewed"
|
|
258
|
+
| "*"
|
|
259
|
+
>;
|
|
178
260
|
active: boolean;
|
|
179
261
|
failure_count: number;
|
|
180
262
|
last_failure_reason: string;
|
|
@@ -185,7 +267,14 @@ export type GetWebhookResponse = {
|
|
|
185
267
|
export type UpdateWebhookBody = {
|
|
186
268
|
name?: string;
|
|
187
269
|
url?: string;
|
|
188
|
-
event_types?: Array<
|
|
270
|
+
event_types?: Array<
|
|
271
|
+
| "test"
|
|
272
|
+
| "protocol.flight.submitted"
|
|
273
|
+
| "protocol.mission.created"
|
|
274
|
+
| "protocol.mission.updated"
|
|
275
|
+
| "protocol.flight.reviewed"
|
|
276
|
+
| "*"
|
|
277
|
+
>;
|
|
189
278
|
active?: boolean;
|
|
190
279
|
};
|
|
191
280
|
|
|
@@ -193,7 +282,14 @@ export type UpdateWebhookResponse = {
|
|
|
193
282
|
id: number;
|
|
194
283
|
name: string;
|
|
195
284
|
url: string;
|
|
196
|
-
event_types: Array<
|
|
285
|
+
event_types: Array<
|
|
286
|
+
| "test"
|
|
287
|
+
| "protocol.flight.submitted"
|
|
288
|
+
| "protocol.mission.created"
|
|
289
|
+
| "protocol.mission.updated"
|
|
290
|
+
| "protocol.flight.reviewed"
|
|
291
|
+
| "*"
|
|
292
|
+
>;
|
|
197
293
|
active: boolean;
|
|
198
294
|
failure_count: number;
|
|
199
295
|
last_failure_reason: string;
|
|
@@ -392,6 +488,89 @@ export type QuotesControllerGetQuoteResponses = {
|
|
|
392
488
|
200: unknown;
|
|
393
489
|
};
|
|
394
490
|
|
|
491
|
+
export type MissionsControllerCreateMissionsData = {
|
|
492
|
+
body: CreateMissionRequestDto;
|
|
493
|
+
path?: never;
|
|
494
|
+
query?: never;
|
|
495
|
+
url: "/missions";
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
export type MissionsControllerCreateMissionsErrors = {
|
|
499
|
+
/**
|
|
500
|
+
* Validation failed - invalid Zones, mission types, or times
|
|
501
|
+
*/
|
|
502
|
+
400: unknown;
|
|
503
|
+
/**
|
|
504
|
+
* Insufficient treasury spending limit
|
|
505
|
+
*/
|
|
506
|
+
403: unknown;
|
|
507
|
+
/**
|
|
508
|
+
* Internal server error during mission creation
|
|
509
|
+
*/
|
|
510
|
+
500: unknown;
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
export type MissionsControllerCreateMissionsResponses = {
|
|
514
|
+
/**
|
|
515
|
+
* Mission creation transaction queued successfully
|
|
516
|
+
*/
|
|
517
|
+
201: CreateMissionResponseDto;
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
export type MissionsControllerCreateMissionsResponse =
|
|
521
|
+
MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
522
|
+
|
|
523
|
+
export type MissionsControllerUpdateMissionsData = {
|
|
524
|
+
body: UpdateMissionsRequestDto;
|
|
525
|
+
path?: never;
|
|
526
|
+
query?: never;
|
|
527
|
+
url: "/missions";
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
export type MissionsControllerUpdateMissionsResponses = {
|
|
531
|
+
/**
|
|
532
|
+
* Missions update transaction queued successfully
|
|
533
|
+
*/
|
|
534
|
+
200: UpdateMissionsResponseDto;
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
export type MissionsControllerUpdateMissionsResponse =
|
|
538
|
+
MissionsControllerUpdateMissionsResponses[keyof MissionsControllerUpdateMissionsResponses];
|
|
539
|
+
|
|
540
|
+
export type MissionsControllerClaimRewardsData = {
|
|
541
|
+
body: ClaimRewardsRequestDto;
|
|
542
|
+
path: {
|
|
543
|
+
id: bigint;
|
|
544
|
+
};
|
|
545
|
+
query?: never;
|
|
546
|
+
url: "/missions/{id}/rewards";
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
export type MissionsControllerClaimRewardsErrors = {
|
|
550
|
+
/**
|
|
551
|
+
* Flight not approved or validation failed
|
|
552
|
+
*/
|
|
553
|
+
400: unknown;
|
|
554
|
+
/**
|
|
555
|
+
* Mission or Flight not found
|
|
556
|
+
*/
|
|
557
|
+
404: unknown;
|
|
558
|
+
/**
|
|
559
|
+
* Internal server error during reward claiming
|
|
560
|
+
*/
|
|
561
|
+
500: unknown;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
export type MissionsControllerClaimRewardsResponses = {
|
|
565
|
+
/**
|
|
566
|
+
* Rewards claimed successfully
|
|
567
|
+
*/
|
|
568
|
+
200: ClaimRewardsResponseDto;
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
export type MissionsControllerClaimRewardsResponse =
|
|
572
|
+
MissionsControllerClaimRewardsResponses[keyof MissionsControllerClaimRewardsResponses];
|
|
573
|
+
|
|
395
574
|
export type FlightsControllerGenerateFlightIdData = {
|
|
396
575
|
body?: never;
|
|
397
576
|
path?: never;
|
package/src/event/types.gen.ts
CHANGED
|
@@ -24,5 +24,54 @@ export const Event = z.union([
|
|
|
24
24
|
.strict(),
|
|
25
25
|
})
|
|
26
26
|
.strict(),
|
|
27
|
+
z
|
|
28
|
+
.object({
|
|
29
|
+
id: z.any(),
|
|
30
|
+
event_type: z.literal("protocol.mission.created"),
|
|
31
|
+
timestamp: z.any(),
|
|
32
|
+
data: z
|
|
33
|
+
.object({
|
|
34
|
+
missionId: z.string(),
|
|
35
|
+
vaultId: z.string(),
|
|
36
|
+
amount: z.string(),
|
|
37
|
+
zoneId: z.string(),
|
|
38
|
+
flightPlanId: z.number(),
|
|
39
|
+
captureStartTime: z.string(),
|
|
40
|
+
captureEndTime: z.string(),
|
|
41
|
+
detailsHash: z.string(),
|
|
42
|
+
})
|
|
43
|
+
.strict(),
|
|
44
|
+
})
|
|
45
|
+
.strict(),
|
|
46
|
+
z
|
|
47
|
+
.object({
|
|
48
|
+
id: z.any(),
|
|
49
|
+
event_type: z.literal("protocol.mission.updated"),
|
|
50
|
+
timestamp: z.any(),
|
|
51
|
+
data: z
|
|
52
|
+
.object({
|
|
53
|
+
id: z.string(),
|
|
54
|
+
amount: z.number().optional(),
|
|
55
|
+
isOpen: z.boolean().optional(),
|
|
56
|
+
})
|
|
57
|
+
.strict(),
|
|
58
|
+
})
|
|
59
|
+
.strict(),
|
|
60
|
+
z
|
|
61
|
+
.object({
|
|
62
|
+
id: z.any(),
|
|
63
|
+
event_type: z.literal("protocol.flight.reviewed"),
|
|
64
|
+
timestamp: z.any(),
|
|
65
|
+
data: z
|
|
66
|
+
.object({
|
|
67
|
+
flightId: z.number(),
|
|
68
|
+
isApproved: z.boolean(),
|
|
69
|
+
validationLogUri: z.string(),
|
|
70
|
+
validator: z.string(),
|
|
71
|
+
filesHash: z.string(),
|
|
72
|
+
})
|
|
73
|
+
.strict(),
|
|
74
|
+
})
|
|
75
|
+
.strict(),
|
|
27
76
|
]);
|
|
28
77
|
export type Event = z.infer<typeof Event>;
|