@layer-drone/protocol 0.0.16 → 0.0.18-alpha
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/README.md +43 -0
- package/dist/index.d.mts +427 -255
- package/dist/index.d.ts +427 -255
- package/dist/index.js +125 -93
- package/dist/index.mjs +123 -90
- package/package.json +7 -2
- package/src/client/client/client.ts +5 -1
- package/src/client/sdk.gen.ts +119 -143
- package/src/client/transformers.gen.ts +13 -0
- package/src/client/types.gen.ts +231 -269
- package/src/event/types.gen.ts +57 -21
package/dist/index.d.mts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Request as Request$1 } from 'express';
|
|
3
3
|
|
|
4
|
-
type GetProvenanceCryptoKeyResponse = {
|
|
5
|
-
KeyId: string;
|
|
6
|
-
PublicKey: string;
|
|
7
|
-
KeySpec?: "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "SM2" | "SYMMETRIC_DEFAULT";
|
|
8
|
-
KeyUsage?: "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT" | "SIGN_VERIFY";
|
|
9
|
-
EncryptionAlgorithms?: Array<"RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE" | "SYMMETRIC_DEFAULT">;
|
|
10
|
-
};
|
|
11
|
-
type CreateQuoteRequestDto = {
|
|
12
|
-
missionIds: Array<number>;
|
|
13
|
-
entitlementType: string;
|
|
14
|
-
buyer: string;
|
|
15
|
-
mintOnChain: boolean;
|
|
16
|
-
};
|
|
17
4
|
type CreateApiTokenResponseDto = {
|
|
18
5
|
id: string;
|
|
19
6
|
name: string;
|
|
@@ -39,11 +26,68 @@ type UpdateApiTokenResponseDto = {
|
|
|
39
26
|
org: number;
|
|
40
27
|
scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
|
|
41
28
|
};
|
|
29
|
+
type GetTimeLimitsForSunAltitudeResponse = {
|
|
30
|
+
OptimalSunAltitudePeriod: {
|
|
31
|
+
StartTime: Date;
|
|
32
|
+
EndTime: Date;
|
|
33
|
+
SunAltitudeAtLimits: number;
|
|
34
|
+
};
|
|
35
|
+
DaylightPeriod: {
|
|
36
|
+
StartTime: Date;
|
|
37
|
+
EndTime: Date;
|
|
38
|
+
SunAltitudeAtLimits: number;
|
|
39
|
+
};
|
|
40
|
+
SunAltitudeInDegrees: number;
|
|
41
|
+
};
|
|
42
|
+
type FlightDto = {
|
|
43
|
+
token_id: string;
|
|
44
|
+
mission_id: string;
|
|
45
|
+
owner: string;
|
|
46
|
+
validator: string;
|
|
47
|
+
is_approved: boolean;
|
|
48
|
+
storage_key: string;
|
|
49
|
+
files_hash: string;
|
|
50
|
+
block_number: number;
|
|
51
|
+
block_timestamp: number;
|
|
52
|
+
transaction_hash: string;
|
|
53
|
+
};
|
|
54
|
+
type CreateFileRequestDto = {
|
|
55
|
+
filenames: Array<string>;
|
|
56
|
+
storageKey: string;
|
|
57
|
+
};
|
|
58
|
+
type CreateFileResponseDto = {
|
|
59
|
+
presignedUrls: {
|
|
60
|
+
[key: string]: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type ValidateFlightRequestDto = {
|
|
64
|
+
storageKey: string;
|
|
65
|
+
pilotAddress: string;
|
|
66
|
+
missionId: string | number | bigint;
|
|
67
|
+
flightTimestamp: string;
|
|
68
|
+
flightRequestInfo: {
|
|
69
|
+
filePaths: Array<string>;
|
|
70
|
+
flightPlanId: number;
|
|
71
|
+
zoneHash: string;
|
|
72
|
+
provenancePath: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type ValidateFlightResponseDto = {
|
|
76
|
+
flightId: bigint;
|
|
77
|
+
flightManifestUri: string;
|
|
78
|
+
};
|
|
79
|
+
type GetProvenanceCryptoKeyResponse = {
|
|
80
|
+
KeyId: string;
|
|
81
|
+
PublicKey: string;
|
|
82
|
+
KeySpec?: "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "SM2" | "SYMMETRIC_DEFAULT";
|
|
83
|
+
KeyUsage?: "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT" | "SIGN_VERIFY";
|
|
84
|
+
EncryptionAlgorithms?: Array<"RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE" | "SYMMETRIC_DEFAULT">;
|
|
85
|
+
};
|
|
42
86
|
type CreateMissionRequestDto = {
|
|
43
87
|
missions: Array<{
|
|
44
88
|
zoneId: string;
|
|
45
89
|
flightPlanId: number;
|
|
46
|
-
amount: bigint;
|
|
90
|
+
amount: string | number | bigint;
|
|
47
91
|
startTime: Date;
|
|
48
92
|
endTime: Date;
|
|
49
93
|
}>;
|
|
@@ -68,81 +112,32 @@ type CreateMissionResponseDto = {
|
|
|
68
112
|
};
|
|
69
113
|
type UpdateMissionsRequestDto = {
|
|
70
114
|
missions: Array<{
|
|
71
|
-
id: bigint;
|
|
72
|
-
amount: bigint;
|
|
115
|
+
id: string | number | bigint;
|
|
116
|
+
amount: string | number | bigint;
|
|
73
117
|
} | {
|
|
74
|
-
id: bigint;
|
|
118
|
+
id: string | number | bigint;
|
|
75
119
|
isOpen: false;
|
|
76
120
|
}>;
|
|
121
|
+
treasuryAddress: string;
|
|
77
122
|
};
|
|
78
123
|
type UpdateMissionsResponseDto = {
|
|
79
124
|
success: boolean;
|
|
80
125
|
data: {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
type ClaimRewardsRequestDto = {
|
|
86
|
-
flightIds: Array<number>;
|
|
87
|
-
};
|
|
88
|
-
type ClaimRewardsResponseDto = {
|
|
89
|
-
success: boolean;
|
|
90
|
-
data: {
|
|
91
|
-
cancelUpdatesQueued: Array<string>;
|
|
126
|
+
escrowRequestsQueued: Array<string>;
|
|
127
|
+
withdrawalRequestsQueued: Array<string>;
|
|
128
|
+
cancelRequestsQueued: Array<string>;
|
|
92
129
|
} | string;
|
|
93
130
|
};
|
|
94
|
-
type
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
storage_key: string;
|
|
100
|
-
files_hash: string;
|
|
101
|
-
block_number: number;
|
|
102
|
-
block_timestamp: number;
|
|
103
|
-
transaction_hash: string;
|
|
104
|
-
};
|
|
105
|
-
type CreateFileRequestDto = {
|
|
106
|
-
filenames: Array<string>;
|
|
107
|
-
};
|
|
108
|
-
type CreateFileResponseDto = {
|
|
109
|
-
presignedUrls: {
|
|
110
|
-
[key: string]: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
type ValidateFlightDto = {
|
|
114
|
-
flightId?: number;
|
|
115
|
-
pilotAddress: string;
|
|
116
|
-
missionId: number;
|
|
117
|
-
flightTimestamp: string;
|
|
118
|
-
flightRequestInfo: {
|
|
119
|
-
filePaths: Array<string>;
|
|
120
|
-
flightPlanId: number;
|
|
121
|
-
zoneHash: string;
|
|
122
|
-
provenancePath: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
type ValidateFlightResponseDto = {
|
|
126
|
-
flightId: number;
|
|
127
|
-
flightManifestUri: string;
|
|
128
|
-
};
|
|
129
|
-
type GetTimeLimitsForSunAltitudeResponse = {
|
|
130
|
-
OptimalSunAltitudePeriod: {
|
|
131
|
-
StartTime: Date;
|
|
132
|
-
EndTime: Date;
|
|
133
|
-
SunAltitudeAtLimits: number;
|
|
134
|
-
};
|
|
135
|
-
DaylightPeriod: {
|
|
136
|
-
StartTime: Date;
|
|
137
|
-
EndTime: Date;
|
|
138
|
-
SunAltitudeAtLimits: number;
|
|
139
|
-
};
|
|
140
|
-
SunAltitudeInDegrees: number;
|
|
131
|
+
type CreateQuoteRequestDto = {
|
|
132
|
+
missionIds: Array<number>;
|
|
133
|
+
entitlementType: string;
|
|
134
|
+
buyer: string;
|
|
135
|
+
mintOnChain: boolean;
|
|
141
136
|
};
|
|
142
137
|
type CreateWebhookBody = {
|
|
143
138
|
name: string;
|
|
144
139
|
url: string;
|
|
145
|
-
event_types: Array<"test" | "protocol.
|
|
140
|
+
event_types: Array<"test" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.mission.paid" | "protocol.flight.submitted" | "protocol.flight.reviewed" | "*">;
|
|
146
141
|
active: boolean;
|
|
147
142
|
};
|
|
148
143
|
type CreateWebhookResponse = {
|
|
@@ -153,7 +148,7 @@ type GetWebhooksResponse = Array<{
|
|
|
153
148
|
id: number;
|
|
154
149
|
name: string;
|
|
155
150
|
url: string;
|
|
156
|
-
event_types: Array<"test" | "protocol.
|
|
151
|
+
event_types: Array<"test" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.mission.paid" | "protocol.flight.submitted" | "protocol.flight.reviewed" | "*">;
|
|
157
152
|
active: boolean;
|
|
158
153
|
failure_count: number;
|
|
159
154
|
last_failure_reason: string;
|
|
@@ -164,7 +159,7 @@ type GetWebhookResponse = {
|
|
|
164
159
|
id: number;
|
|
165
160
|
name: string;
|
|
166
161
|
url: string;
|
|
167
|
-
event_types: Array<"test" | "protocol.
|
|
162
|
+
event_types: Array<"test" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.mission.paid" | "protocol.flight.submitted" | "protocol.flight.reviewed" | "*">;
|
|
168
163
|
active: boolean;
|
|
169
164
|
failure_count: number;
|
|
170
165
|
last_failure_reason: string;
|
|
@@ -174,14 +169,14 @@ type GetWebhookResponse = {
|
|
|
174
169
|
type UpdateWebhookBody = {
|
|
175
170
|
name?: string;
|
|
176
171
|
url?: string;
|
|
177
|
-
event_types?: Array<"test" | "protocol.
|
|
172
|
+
event_types?: Array<"test" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.mission.paid" | "protocol.flight.submitted" | "protocol.flight.reviewed" | "*">;
|
|
178
173
|
active?: boolean;
|
|
179
174
|
};
|
|
180
175
|
type UpdateWebhookResponse = {
|
|
181
176
|
id: number;
|
|
182
177
|
name: string;
|
|
183
178
|
url: string;
|
|
184
|
-
event_types: Array<"test" | "protocol.
|
|
179
|
+
event_types: Array<"test" | "protocol.mission.created" | "protocol.mission.updated" | "protocol.mission.paid" | "protocol.flight.submitted" | "protocol.flight.reviewed" | "*">;
|
|
185
180
|
active: boolean;
|
|
186
181
|
failure_count: number;
|
|
187
182
|
last_failure_reason: string;
|
|
@@ -201,51 +196,13 @@ type GetWebhookStatusResponse = {
|
|
|
201
196
|
status: "inactive" | "error" | "connected" | "connecting";
|
|
202
197
|
error?: string;
|
|
203
198
|
};
|
|
204
|
-
type
|
|
199
|
+
type ApiControllerGetHelloData = {
|
|
205
200
|
body?: never;
|
|
206
201
|
path?: never;
|
|
207
202
|
query?: never;
|
|
208
203
|
url: "/";
|
|
209
204
|
};
|
|
210
|
-
type
|
|
211
|
-
200: unknown;
|
|
212
|
-
};
|
|
213
|
-
type KeysControllerGetProvenanceCryptoKeyData = {
|
|
214
|
-
body?: never;
|
|
215
|
-
path?: never;
|
|
216
|
-
query?: never;
|
|
217
|
-
url: "/keys";
|
|
218
|
-
};
|
|
219
|
-
type KeysControllerGetProvenanceCryptoKeyResponses = {
|
|
220
|
-
200: GetProvenanceCryptoKeyResponse;
|
|
221
|
-
};
|
|
222
|
-
type KeysControllerGetProvenanceCryptoKeyResponse = KeysControllerGetProvenanceCryptoKeyResponses[keyof KeysControllerGetProvenanceCryptoKeyResponses];
|
|
223
|
-
type QuotesControllerCreateQuoteData = {
|
|
224
|
-
body: CreateQuoteRequestDto;
|
|
225
|
-
path?: never;
|
|
226
|
-
query?: never;
|
|
227
|
-
url: "/quotes";
|
|
228
|
-
};
|
|
229
|
-
type QuotesControllerCreateQuoteErrors = {
|
|
230
|
-
401: unknown;
|
|
231
|
-
403: unknown;
|
|
232
|
-
};
|
|
233
|
-
type QuotesControllerCreateQuoteResponses = {
|
|
234
|
-
201: unknown;
|
|
235
|
-
};
|
|
236
|
-
type QuotesControllerGetQuoteData = {
|
|
237
|
-
body?: never;
|
|
238
|
-
path: {
|
|
239
|
-
id: string;
|
|
240
|
-
};
|
|
241
|
-
query?: never;
|
|
242
|
-
url: "/quotes/{id}";
|
|
243
|
-
};
|
|
244
|
-
type QuotesControllerGetQuoteErrors = {
|
|
245
|
-
401: unknown;
|
|
246
|
-
403: unknown;
|
|
247
|
-
};
|
|
248
|
-
type QuotesControllerGetQuoteResponses = {
|
|
205
|
+
type ApiControllerGetHelloResponses = {
|
|
249
206
|
200: unknown;
|
|
250
207
|
};
|
|
251
208
|
type ApiTokenControllerCreateTokenData = {
|
|
@@ -309,70 +266,42 @@ type ApiTokenControllerUpdateTokenResponses = {
|
|
|
309
266
|
200: UpdateApiTokenResponseDto;
|
|
310
267
|
};
|
|
311
268
|
type ApiTokenControllerUpdateTokenResponse = ApiTokenControllerUpdateTokenResponses[keyof ApiTokenControllerUpdateTokenResponses];
|
|
312
|
-
type
|
|
313
|
-
body
|
|
314
|
-
path?: never;
|
|
315
|
-
query?: never;
|
|
316
|
-
url: "/missions";
|
|
317
|
-
};
|
|
318
|
-
type MissionsControllerCreateMissionsErrors = {
|
|
319
|
-
400: unknown;
|
|
320
|
-
403: unknown;
|
|
321
|
-
500: unknown;
|
|
322
|
-
};
|
|
323
|
-
type MissionsControllerCreateMissionsResponses = {
|
|
324
|
-
201: CreateMissionResponseDto;
|
|
325
|
-
};
|
|
326
|
-
type MissionsControllerCreateMissionsResponse = MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
327
|
-
type MissionsControllerUpdateMissionsData = {
|
|
328
|
-
body: UpdateMissionsRequestDto;
|
|
269
|
+
type ConditionsControllerGetSunAltitudeTimeLimitsData = {
|
|
270
|
+
body?: never;
|
|
329
271
|
path?: never;
|
|
330
|
-
query
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
200: UpdateMissionsResponseDto;
|
|
335
|
-
};
|
|
336
|
-
type MissionsControllerUpdateMissionsResponse = MissionsControllerUpdateMissionsResponses[keyof MissionsControllerUpdateMissionsResponses];
|
|
337
|
-
type MissionsControllerClaimRewardsData = {
|
|
338
|
-
body: ClaimRewardsRequestDto;
|
|
339
|
-
path: {
|
|
340
|
-
id: bigint;
|
|
272
|
+
query: {
|
|
273
|
+
lat: number;
|
|
274
|
+
lon: number;
|
|
275
|
+
time: Date;
|
|
341
276
|
};
|
|
342
|
-
|
|
343
|
-
url: "/missions/{id}/rewards";
|
|
344
|
-
};
|
|
345
|
-
type MissionsControllerClaimRewardsErrors = {
|
|
346
|
-
400: unknown;
|
|
347
|
-
404: unknown;
|
|
348
|
-
500: unknown;
|
|
277
|
+
url: "/conditions/sun-altitude";
|
|
349
278
|
};
|
|
350
|
-
type
|
|
351
|
-
200:
|
|
279
|
+
type ConditionsControllerGetSunAltitudeTimeLimitsResponses = {
|
|
280
|
+
200: GetTimeLimitsForSunAltitudeResponse;
|
|
352
281
|
};
|
|
353
|
-
type
|
|
354
|
-
type
|
|
282
|
+
type ConditionsControllerGetSunAltitudeTimeLimitsResponse = ConditionsControllerGetSunAltitudeTimeLimitsResponses[keyof ConditionsControllerGetSunAltitudeTimeLimitsResponses];
|
|
283
|
+
type FlightsControllerGenerateStorageKeyData = {
|
|
355
284
|
body?: never;
|
|
356
285
|
path?: never;
|
|
357
286
|
query: {
|
|
358
|
-
missionId: number;
|
|
287
|
+
missionId: string | number | bigint;
|
|
359
288
|
pilotAddress: string;
|
|
360
289
|
flightTimestamp?: string;
|
|
361
290
|
};
|
|
362
|
-
url: "/flights/
|
|
291
|
+
url: "/flights/storage-key";
|
|
363
292
|
};
|
|
364
|
-
type
|
|
293
|
+
type FlightsControllerGenerateStorageKeyErrors = {
|
|
365
294
|
401: unknown;
|
|
366
295
|
403: unknown;
|
|
367
296
|
};
|
|
368
|
-
type
|
|
369
|
-
200:
|
|
297
|
+
type FlightsControllerGenerateStorageKeyResponses = {
|
|
298
|
+
200: string;
|
|
370
299
|
};
|
|
371
|
-
type
|
|
300
|
+
type FlightsControllerGenerateStorageKeyResponse = FlightsControllerGenerateStorageKeyResponses[keyof FlightsControllerGenerateStorageKeyResponses];
|
|
372
301
|
type FlightsControllerGetFlightData = {
|
|
373
302
|
body?: never;
|
|
374
303
|
path: {
|
|
375
|
-
flightId:
|
|
304
|
+
flightId: bigint;
|
|
376
305
|
};
|
|
377
306
|
query?: never;
|
|
378
307
|
url: "/flights/{flightId}";
|
|
@@ -387,11 +316,9 @@ type FlightsControllerGetFlightResponses = {
|
|
|
387
316
|
type FlightsControllerGetFlightResponse = FlightsControllerGetFlightResponses[keyof FlightsControllerGetFlightResponses];
|
|
388
317
|
type FlightsControllerCreatePresignedUrlsData = {
|
|
389
318
|
body: CreateFileRequestDto;
|
|
390
|
-
path
|
|
391
|
-
flightId: number;
|
|
392
|
-
};
|
|
319
|
+
path?: never;
|
|
393
320
|
query?: never;
|
|
394
|
-
url: "/flights/
|
|
321
|
+
url: "/flights/files";
|
|
395
322
|
};
|
|
396
323
|
type FlightsControllerCreatePresignedUrlsErrors = {
|
|
397
324
|
401: unknown;
|
|
@@ -402,7 +329,7 @@ type FlightsControllerCreatePresignedUrlsResponses = {
|
|
|
402
329
|
};
|
|
403
330
|
type FlightsControllerCreatePresignedUrlsResponse = FlightsControllerCreatePresignedUrlsResponses[keyof FlightsControllerCreatePresignedUrlsResponses];
|
|
404
331
|
type FlightsControllerValidateFlightData = {
|
|
405
|
-
body:
|
|
332
|
+
body: ValidateFlightRequestDto;
|
|
406
333
|
path?: never;
|
|
407
334
|
query?: never;
|
|
408
335
|
url: "/flights";
|
|
@@ -415,20 +342,69 @@ type FlightsControllerValidateFlightResponses = {
|
|
|
415
342
|
200: ValidateFlightResponseDto;
|
|
416
343
|
};
|
|
417
344
|
type FlightsControllerValidateFlightResponse = FlightsControllerValidateFlightResponses[keyof FlightsControllerValidateFlightResponses];
|
|
418
|
-
type
|
|
345
|
+
type KeysControllerGetProvenanceCryptoKeyData = {
|
|
419
346
|
body?: never;
|
|
420
347
|
path?: never;
|
|
421
|
-
query
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
348
|
+
query?: never;
|
|
349
|
+
url: "/keys";
|
|
350
|
+
};
|
|
351
|
+
type KeysControllerGetProvenanceCryptoKeyResponses = {
|
|
352
|
+
200: GetProvenanceCryptoKeyResponse;
|
|
353
|
+
};
|
|
354
|
+
type KeysControllerGetProvenanceCryptoKeyResponse = KeysControllerGetProvenanceCryptoKeyResponses[keyof KeysControllerGetProvenanceCryptoKeyResponses];
|
|
355
|
+
type MissionsControllerCreateMissionsData = {
|
|
356
|
+
body: CreateMissionRequestDto;
|
|
357
|
+
path?: never;
|
|
358
|
+
query?: never;
|
|
359
|
+
url: "/missions";
|
|
360
|
+
};
|
|
361
|
+
type MissionsControllerCreateMissionsErrors = {
|
|
362
|
+
400: unknown;
|
|
363
|
+
403: unknown;
|
|
364
|
+
500: unknown;
|
|
365
|
+
};
|
|
366
|
+
type MissionsControllerCreateMissionsResponses = {
|
|
367
|
+
201: CreateMissionResponseDto;
|
|
368
|
+
};
|
|
369
|
+
type MissionsControllerCreateMissionsResponse = MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
370
|
+
type MissionsControllerUpdateMissionsData = {
|
|
371
|
+
body: UpdateMissionsRequestDto;
|
|
372
|
+
path?: never;
|
|
373
|
+
query?: never;
|
|
374
|
+
url: "/missions";
|
|
375
|
+
};
|
|
376
|
+
type MissionsControllerUpdateMissionsResponses = {
|
|
377
|
+
200: UpdateMissionsResponseDto;
|
|
378
|
+
};
|
|
379
|
+
type MissionsControllerUpdateMissionsResponse = MissionsControllerUpdateMissionsResponses[keyof MissionsControllerUpdateMissionsResponses];
|
|
380
|
+
type QuotesControllerCreateQuoteData = {
|
|
381
|
+
body: CreateQuoteRequestDto;
|
|
382
|
+
path?: never;
|
|
383
|
+
query?: never;
|
|
384
|
+
url: "/quotes";
|
|
385
|
+
};
|
|
386
|
+
type QuotesControllerCreateQuoteErrors = {
|
|
387
|
+
401: unknown;
|
|
388
|
+
403: unknown;
|
|
389
|
+
};
|
|
390
|
+
type QuotesControllerCreateQuoteResponses = {
|
|
391
|
+
201: unknown;
|
|
392
|
+
};
|
|
393
|
+
type QuotesControllerGetQuoteData = {
|
|
394
|
+
body?: never;
|
|
395
|
+
path: {
|
|
396
|
+
id: string;
|
|
425
397
|
};
|
|
426
|
-
|
|
398
|
+
query?: never;
|
|
399
|
+
url: "/quotes/{id}";
|
|
427
400
|
};
|
|
428
|
-
type
|
|
429
|
-
|
|
401
|
+
type QuotesControllerGetQuoteErrors = {
|
|
402
|
+
401: unknown;
|
|
403
|
+
403: unknown;
|
|
404
|
+
};
|
|
405
|
+
type QuotesControllerGetQuoteResponses = {
|
|
406
|
+
200: unknown;
|
|
430
407
|
};
|
|
431
|
-
type ConditionsControllerGetSunAltitudeTimeLimitsResponse = ConditionsControllerGetSunAltitudeTimeLimitsResponses[keyof ConditionsControllerGetSunAltitudeTimeLimitsResponses];
|
|
432
408
|
type SchemaControllerGetEventSchemaData = {
|
|
433
409
|
body?: never;
|
|
434
410
|
path?: never;
|
|
@@ -750,22 +726,21 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
750
726
|
client?: Client;
|
|
751
727
|
meta?: Record<string, unknown>;
|
|
752
728
|
};
|
|
753
|
-
declare const
|
|
754
|
-
declare const keysControllerGetProvenanceCryptoKey: <ThrowOnError extends boolean = false>(options?: Options<KeysControllerGetProvenanceCryptoKeyData, ThrowOnError>) => RequestResult<KeysControllerGetProvenanceCryptoKeyResponses, unknown, ThrowOnError, "fields">;
|
|
755
|
-
declare const quotesControllerCreateQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerCreateQuoteData, ThrowOnError>) => RequestResult<QuotesControllerCreateQuoteResponses, QuotesControllerCreateQuoteErrors, ThrowOnError, "fields">;
|
|
756
|
-
declare const quotesControllerGetQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerGetQuoteData, ThrowOnError>) => RequestResult<QuotesControllerGetQuoteResponses, QuotesControllerGetQuoteErrors, ThrowOnError, "fields">;
|
|
729
|
+
declare const apiControllerGetHello: <ThrowOnError extends boolean = false>(options?: Options<ApiControllerGetHelloData, ThrowOnError>) => RequestResult<ApiControllerGetHelloResponses, unknown, ThrowOnError, "fields">;
|
|
757
730
|
declare const apiTokenControllerCreateToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerCreateTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerCreateTokenResponses, ApiTokenControllerCreateTokenErrors, ThrowOnError, "fields">;
|
|
758
731
|
declare const apiTokenControllerDeleteToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerDeleteTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerDeleteTokenResponses, ApiTokenControllerDeleteTokenErrors, ThrowOnError, "fields">;
|
|
759
732
|
declare const apiTokenControllerGetToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerGetTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerGetTokenResponses, ApiTokenControllerGetTokenErrors, ThrowOnError, "fields">;
|
|
760
733
|
declare const apiTokenControllerUpdateToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerUpdateTokenData, ThrowOnError>) => RequestResult<ApiTokenControllerUpdateTokenResponses, ApiTokenControllerUpdateTokenErrors, ThrowOnError, "fields">;
|
|
761
|
-
declare const
|
|
762
|
-
declare const
|
|
763
|
-
declare const missionsControllerClaimRewards: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerClaimRewardsData, ThrowOnError>) => RequestResult<MissionsControllerClaimRewardsResponses, MissionsControllerClaimRewardsErrors, ThrowOnError, "fields">;
|
|
764
|
-
declare const flightsControllerGenerateFlightId: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGenerateFlightIdData, ThrowOnError>) => RequestResult<FlightsControllerGenerateFlightIdResponses, FlightsControllerGenerateFlightIdErrors, ThrowOnError, "fields">;
|
|
734
|
+
declare const conditionsControllerGetSunAltitudeTimeLimits: <ThrowOnError extends boolean = false>(options: Options<ConditionsControllerGetSunAltitudeTimeLimitsData, ThrowOnError>) => RequestResult<ConditionsControllerGetSunAltitudeTimeLimitsResponses, unknown, ThrowOnError, "fields">;
|
|
735
|
+
declare const flightsControllerGenerateStorageKey: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGenerateStorageKeyData, ThrowOnError>) => RequestResult<FlightsControllerGenerateStorageKeyResponses, FlightsControllerGenerateStorageKeyErrors, ThrowOnError, "fields">;
|
|
765
736
|
declare const flightsControllerGetFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGetFlightData, ThrowOnError>) => RequestResult<FlightsControllerGetFlightResponses, FlightsControllerGetFlightErrors, ThrowOnError, "fields">;
|
|
766
737
|
declare const flightsControllerCreatePresignedUrls: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerCreatePresignedUrlsData, ThrowOnError>) => RequestResult<FlightsControllerCreatePresignedUrlsResponses, FlightsControllerCreatePresignedUrlsErrors, ThrowOnError, "fields">;
|
|
767
738
|
declare const flightsControllerValidateFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerValidateFlightData, ThrowOnError>) => RequestResult<FlightsControllerValidateFlightResponses, FlightsControllerValidateFlightErrors, ThrowOnError, "fields">;
|
|
768
|
-
declare const
|
|
739
|
+
declare const keysControllerGetProvenanceCryptoKey: <ThrowOnError extends boolean = false>(options?: Options<KeysControllerGetProvenanceCryptoKeyData, ThrowOnError>) => RequestResult<KeysControllerGetProvenanceCryptoKeyResponses, unknown, ThrowOnError, "fields">;
|
|
740
|
+
declare const missionsControllerCreateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerCreateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerCreateMissionsResponses, MissionsControllerCreateMissionsErrors, ThrowOnError, "fields">;
|
|
741
|
+
declare const missionsControllerUpdateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerUpdateMissionsResponses, unknown, ThrowOnError, "fields">;
|
|
742
|
+
declare const quotesControllerCreateQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerCreateQuoteData, ThrowOnError>) => RequestResult<QuotesControllerCreateQuoteResponses, QuotesControllerCreateQuoteErrors, ThrowOnError, "fields">;
|
|
743
|
+
declare const quotesControllerGetQuote: <ThrowOnError extends boolean = false>(options: Options<QuotesControllerGetQuoteData, ThrowOnError>) => RequestResult<QuotesControllerGetQuoteResponses, QuotesControllerGetQuoteErrors, ThrowOnError, "fields">;
|
|
769
744
|
declare const schemaControllerGetEventSchema: <ThrowOnError extends boolean = false>(options?: Options<SchemaControllerGetEventSchemaData, ThrowOnError>) => RequestResult<SchemaControllerGetEventSchemaResponses, unknown, ThrowOnError, "fields">;
|
|
770
745
|
declare const webhooksControllerGetMany: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerGetManyData, ThrowOnError>) => RequestResult<WebhooksControllerGetManyResponses, WebhooksControllerGetManyErrors, ThrowOnError, "fields">;
|
|
771
746
|
declare const webhooksControllerCreate: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerCreateData, ThrowOnError>) => RequestResult<WebhooksControllerCreateResponses, WebhooksControllerCreateErrors, ThrowOnError, "fields">;
|
|
@@ -801,46 +776,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
801
776
|
id: string;
|
|
802
777
|
event_type: "test";
|
|
803
778
|
timestamp: string;
|
|
804
|
-
}>, z.ZodObject<{
|
|
805
|
-
id: z.ZodAny;
|
|
806
|
-
event_type: z.ZodLiteral<"protocol.flight.submitted">;
|
|
807
|
-
timestamp: z.ZodAny;
|
|
808
|
-
data: z.ZodObject<{
|
|
809
|
-
flightId: z.ZodNumber;
|
|
810
|
-
pilotAddress: z.ZodString;
|
|
811
|
-
flightManifestUri: z.ZodString;
|
|
812
|
-
missionId: z.ZodNumber;
|
|
813
|
-
}, "strict", z.ZodTypeAny, {
|
|
814
|
-
missionId: number;
|
|
815
|
-
pilotAddress: string;
|
|
816
|
-
flightId: number;
|
|
817
|
-
flightManifestUri: string;
|
|
818
|
-
}, {
|
|
819
|
-
missionId: number;
|
|
820
|
-
pilotAddress: string;
|
|
821
|
-
flightId: number;
|
|
822
|
-
flightManifestUri: string;
|
|
823
|
-
}>;
|
|
824
|
-
}, "strict", z.ZodTypeAny, {
|
|
825
|
-
data: {
|
|
826
|
-
missionId: number;
|
|
827
|
-
pilotAddress: string;
|
|
828
|
-
flightId: number;
|
|
829
|
-
flightManifestUri: string;
|
|
830
|
-
};
|
|
831
|
-
event_type: "protocol.flight.submitted";
|
|
832
|
-
id?: any;
|
|
833
|
-
timestamp?: any;
|
|
834
|
-
}, {
|
|
835
|
-
data: {
|
|
836
|
-
missionId: number;
|
|
837
|
-
pilotAddress: string;
|
|
838
|
-
flightId: number;
|
|
839
|
-
flightManifestUri: string;
|
|
840
|
-
};
|
|
841
|
-
event_type: "protocol.flight.submitted";
|
|
842
|
-
id?: any;
|
|
843
|
-
timestamp?: any;
|
|
844
779
|
}>, z.ZodObject<{
|
|
845
780
|
id: z.ZodAny;
|
|
846
781
|
event_type: z.ZodLiteral<"protocol.mission.created">;
|
|
@@ -889,7 +824,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
889
824
|
flightPlanId: z.ZodNumber;
|
|
890
825
|
captureStartTime: z.ZodString;
|
|
891
826
|
captureEndTime: z.ZodString;
|
|
892
|
-
detailsHash: z.ZodString;
|
|
893
827
|
requestor: z.ZodString;
|
|
894
828
|
}, "strict", z.ZodTypeAny, {
|
|
895
829
|
id: bigint;
|
|
@@ -899,7 +833,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
899
833
|
flightPlanId: number;
|
|
900
834
|
captureStartTime: string;
|
|
901
835
|
captureEndTime: string;
|
|
902
|
-
detailsHash: string;
|
|
903
836
|
requestor: string;
|
|
904
837
|
}, {
|
|
905
838
|
id: {
|
|
@@ -918,7 +851,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
918
851
|
flightPlanId: number;
|
|
919
852
|
captureStartTime: string;
|
|
920
853
|
captureEndTime: string;
|
|
921
|
-
detailsHash: string;
|
|
922
854
|
requestor: string;
|
|
923
855
|
}>;
|
|
924
856
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -930,7 +862,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
930
862
|
flightPlanId: number;
|
|
931
863
|
captureStartTime: string;
|
|
932
864
|
captureEndTime: string;
|
|
933
|
-
detailsHash: string;
|
|
934
865
|
requestor: string;
|
|
935
866
|
};
|
|
936
867
|
event_type: "protocol.mission.created";
|
|
@@ -954,7 +885,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
954
885
|
flightPlanId: number;
|
|
955
886
|
captureStartTime: string;
|
|
956
887
|
captureEndTime: string;
|
|
957
|
-
detailsHash: string;
|
|
958
888
|
requestor: string;
|
|
959
889
|
};
|
|
960
890
|
event_type: "protocol.mission.created";
|
|
@@ -1031,47 +961,273 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1031
961
|
event_type: "protocol.mission.updated";
|
|
1032
962
|
id?: any;
|
|
1033
963
|
timestamp?: any;
|
|
964
|
+
}>, z.ZodObject<{
|
|
965
|
+
id: z.ZodAny;
|
|
966
|
+
event_type: z.ZodLiteral<"protocol.mission.paid">;
|
|
967
|
+
timestamp: z.ZodAny;
|
|
968
|
+
data: z.ZodObject<{
|
|
969
|
+
recipient: z.ZodAny;
|
|
970
|
+
flightId: z.ZodEffects<z.ZodObject<{
|
|
971
|
+
__type: z.ZodLiteral<"bigint">;
|
|
972
|
+
value: z.ZodString;
|
|
973
|
+
}, "strip", z.ZodTypeAny, {
|
|
974
|
+
value: string;
|
|
975
|
+
__type: "bigint";
|
|
976
|
+
}, {
|
|
977
|
+
value: string;
|
|
978
|
+
__type: "bigint";
|
|
979
|
+
}>, bigint, {
|
|
980
|
+
value: string;
|
|
981
|
+
__type: "bigint";
|
|
982
|
+
}>;
|
|
983
|
+
missionId: z.ZodEffects<z.ZodObject<{
|
|
984
|
+
__type: z.ZodLiteral<"bigint">;
|
|
985
|
+
value: z.ZodString;
|
|
986
|
+
}, "strip", z.ZodTypeAny, {
|
|
987
|
+
value: string;
|
|
988
|
+
__type: "bigint";
|
|
989
|
+
}, {
|
|
990
|
+
value: string;
|
|
991
|
+
__type: "bigint";
|
|
992
|
+
}>, bigint, {
|
|
993
|
+
value: string;
|
|
994
|
+
__type: "bigint";
|
|
995
|
+
}>;
|
|
996
|
+
vaultId: z.ZodEffects<z.ZodObject<{
|
|
997
|
+
__type: z.ZodLiteral<"bigint">;
|
|
998
|
+
value: z.ZodString;
|
|
999
|
+
}, "strip", z.ZodTypeAny, {
|
|
1000
|
+
value: string;
|
|
1001
|
+
__type: "bigint";
|
|
1002
|
+
}, {
|
|
1003
|
+
value: string;
|
|
1004
|
+
__type: "bigint";
|
|
1005
|
+
}>, bigint, {
|
|
1006
|
+
value: string;
|
|
1007
|
+
__type: "bigint";
|
|
1008
|
+
}>;
|
|
1009
|
+
amount: z.ZodEffects<z.ZodObject<{
|
|
1010
|
+
__type: z.ZodLiteral<"bigint">;
|
|
1011
|
+
value: z.ZodString;
|
|
1012
|
+
}, "strip", z.ZodTypeAny, {
|
|
1013
|
+
value: string;
|
|
1014
|
+
__type: "bigint";
|
|
1015
|
+
}, {
|
|
1016
|
+
value: string;
|
|
1017
|
+
__type: "bigint";
|
|
1018
|
+
}>, bigint, {
|
|
1019
|
+
value: string;
|
|
1020
|
+
__type: "bigint";
|
|
1021
|
+
}>;
|
|
1022
|
+
}, "strict", z.ZodTypeAny, {
|
|
1023
|
+
missionId: bigint;
|
|
1024
|
+
flightId: bigint;
|
|
1025
|
+
vaultId: bigint;
|
|
1026
|
+
amount: bigint;
|
|
1027
|
+
recipient?: any;
|
|
1028
|
+
}, {
|
|
1029
|
+
missionId: {
|
|
1030
|
+
value: string;
|
|
1031
|
+
__type: "bigint";
|
|
1032
|
+
};
|
|
1033
|
+
flightId: {
|
|
1034
|
+
value: string;
|
|
1035
|
+
__type: "bigint";
|
|
1036
|
+
};
|
|
1037
|
+
vaultId: {
|
|
1038
|
+
value: string;
|
|
1039
|
+
__type: "bigint";
|
|
1040
|
+
};
|
|
1041
|
+
amount: {
|
|
1042
|
+
value: string;
|
|
1043
|
+
__type: "bigint";
|
|
1044
|
+
};
|
|
1045
|
+
recipient?: any;
|
|
1046
|
+
}>;
|
|
1047
|
+
}, "strict", z.ZodTypeAny, {
|
|
1048
|
+
data: {
|
|
1049
|
+
missionId: bigint;
|
|
1050
|
+
flightId: bigint;
|
|
1051
|
+
vaultId: bigint;
|
|
1052
|
+
amount: bigint;
|
|
1053
|
+
recipient?: any;
|
|
1054
|
+
};
|
|
1055
|
+
event_type: "protocol.mission.paid";
|
|
1056
|
+
id?: any;
|
|
1057
|
+
timestamp?: any;
|
|
1058
|
+
}, {
|
|
1059
|
+
data: {
|
|
1060
|
+
missionId: {
|
|
1061
|
+
value: string;
|
|
1062
|
+
__type: "bigint";
|
|
1063
|
+
};
|
|
1064
|
+
flightId: {
|
|
1065
|
+
value: string;
|
|
1066
|
+
__type: "bigint";
|
|
1067
|
+
};
|
|
1068
|
+
vaultId: {
|
|
1069
|
+
value: string;
|
|
1070
|
+
__type: "bigint";
|
|
1071
|
+
};
|
|
1072
|
+
amount: {
|
|
1073
|
+
value: string;
|
|
1074
|
+
__type: "bigint";
|
|
1075
|
+
};
|
|
1076
|
+
recipient?: any;
|
|
1077
|
+
};
|
|
1078
|
+
event_type: "protocol.mission.paid";
|
|
1079
|
+
id?: any;
|
|
1080
|
+
timestamp?: any;
|
|
1081
|
+
}>, z.ZodObject<{
|
|
1082
|
+
id: z.ZodAny;
|
|
1083
|
+
event_type: z.ZodLiteral<"protocol.flight.submitted">;
|
|
1084
|
+
timestamp: z.ZodAny;
|
|
1085
|
+
data: z.ZodObject<{
|
|
1086
|
+
storageKey: z.ZodString;
|
|
1087
|
+
pilotAddress: z.ZodString;
|
|
1088
|
+
flightManifestUri: z.ZodString;
|
|
1089
|
+
missionId: z.ZodEffects<z.ZodObject<{
|
|
1090
|
+
__type: z.ZodLiteral<"bigint">;
|
|
1091
|
+
value: z.ZodString;
|
|
1092
|
+
}, "strip", z.ZodTypeAny, {
|
|
1093
|
+
value: string;
|
|
1094
|
+
__type: "bigint";
|
|
1095
|
+
}, {
|
|
1096
|
+
value: string;
|
|
1097
|
+
__type: "bigint";
|
|
1098
|
+
}>, bigint, {
|
|
1099
|
+
value: string;
|
|
1100
|
+
__type: "bigint";
|
|
1101
|
+
}>;
|
|
1102
|
+
}, "strict", z.ZodTypeAny, {
|
|
1103
|
+
missionId: bigint;
|
|
1104
|
+
pilotAddress: string;
|
|
1105
|
+
storageKey: string;
|
|
1106
|
+
flightManifestUri: string;
|
|
1107
|
+
}, {
|
|
1108
|
+
missionId: {
|
|
1109
|
+
value: string;
|
|
1110
|
+
__type: "bigint";
|
|
1111
|
+
};
|
|
1112
|
+
pilotAddress: string;
|
|
1113
|
+
storageKey: string;
|
|
1114
|
+
flightManifestUri: string;
|
|
1115
|
+
}>;
|
|
1116
|
+
}, "strict", z.ZodTypeAny, {
|
|
1117
|
+
data: {
|
|
1118
|
+
missionId: bigint;
|
|
1119
|
+
pilotAddress: string;
|
|
1120
|
+
storageKey: string;
|
|
1121
|
+
flightManifestUri: string;
|
|
1122
|
+
};
|
|
1123
|
+
event_type: "protocol.flight.submitted";
|
|
1124
|
+
id?: any;
|
|
1125
|
+
timestamp?: any;
|
|
1126
|
+
}, {
|
|
1127
|
+
data: {
|
|
1128
|
+
missionId: {
|
|
1129
|
+
value: string;
|
|
1130
|
+
__type: "bigint";
|
|
1131
|
+
};
|
|
1132
|
+
pilotAddress: string;
|
|
1133
|
+
storageKey: string;
|
|
1134
|
+
flightManifestUri: string;
|
|
1135
|
+
};
|
|
1136
|
+
event_type: "protocol.flight.submitted";
|
|
1137
|
+
id?: any;
|
|
1138
|
+
timestamp?: any;
|
|
1034
1139
|
}>, z.ZodObject<{
|
|
1035
1140
|
id: z.ZodAny;
|
|
1036
1141
|
event_type: z.ZodLiteral<"protocol.flight.reviewed">;
|
|
1037
1142
|
timestamp: z.ZodAny;
|
|
1038
1143
|
data: z.ZodObject<{
|
|
1039
|
-
flightId: z.
|
|
1144
|
+
flightId: z.ZodEffects<z.ZodObject<{
|
|
1145
|
+
__type: z.ZodLiteral<"bigint">;
|
|
1146
|
+
value: z.ZodString;
|
|
1147
|
+
}, "strip", z.ZodTypeAny, {
|
|
1148
|
+
value: string;
|
|
1149
|
+
__type: "bigint";
|
|
1150
|
+
}, {
|
|
1151
|
+
value: string;
|
|
1152
|
+
__type: "bigint";
|
|
1153
|
+
}>, bigint, {
|
|
1154
|
+
value: string;
|
|
1155
|
+
__type: "bigint";
|
|
1156
|
+
}>;
|
|
1157
|
+
owner: z.ZodAny;
|
|
1040
1158
|
isApproved: z.ZodBoolean;
|
|
1041
1159
|
validationLogUri: z.ZodString;
|
|
1042
1160
|
validator: z.ZodString;
|
|
1043
1161
|
filesHash: z.ZodString;
|
|
1162
|
+
storageKey: z.ZodString;
|
|
1163
|
+
missionId: z.ZodEffects<z.ZodObject<{
|
|
1164
|
+
__type: z.ZodLiteral<"bigint">;
|
|
1165
|
+
value: z.ZodString;
|
|
1166
|
+
}, "strip", z.ZodTypeAny, {
|
|
1167
|
+
value: string;
|
|
1168
|
+
__type: "bigint";
|
|
1169
|
+
}, {
|
|
1170
|
+
value: string;
|
|
1171
|
+
__type: "bigint";
|
|
1172
|
+
}>, bigint, {
|
|
1173
|
+
value: string;
|
|
1174
|
+
__type: "bigint";
|
|
1175
|
+
}>;
|
|
1044
1176
|
}, "strict", z.ZodTypeAny, {
|
|
1045
|
-
|
|
1177
|
+
missionId: bigint;
|
|
1178
|
+
flightId: bigint;
|
|
1179
|
+
storageKey: string;
|
|
1046
1180
|
isApproved: boolean;
|
|
1047
1181
|
validationLogUri: string;
|
|
1048
1182
|
validator: string;
|
|
1049
1183
|
filesHash: string;
|
|
1184
|
+
owner?: any;
|
|
1050
1185
|
}, {
|
|
1051
|
-
|
|
1186
|
+
missionId: {
|
|
1187
|
+
value: string;
|
|
1188
|
+
__type: "bigint";
|
|
1189
|
+
};
|
|
1190
|
+
flightId: {
|
|
1191
|
+
value: string;
|
|
1192
|
+
__type: "bigint";
|
|
1193
|
+
};
|
|
1194
|
+
storageKey: string;
|
|
1052
1195
|
isApproved: boolean;
|
|
1053
1196
|
validationLogUri: string;
|
|
1054
1197
|
validator: string;
|
|
1055
1198
|
filesHash: string;
|
|
1199
|
+
owner?: any;
|
|
1056
1200
|
}>;
|
|
1057
1201
|
}, "strict", z.ZodTypeAny, {
|
|
1058
1202
|
data: {
|
|
1059
|
-
|
|
1203
|
+
missionId: bigint;
|
|
1204
|
+
flightId: bigint;
|
|
1205
|
+
storageKey: string;
|
|
1060
1206
|
isApproved: boolean;
|
|
1061
1207
|
validationLogUri: string;
|
|
1062
1208
|
validator: string;
|
|
1063
1209
|
filesHash: string;
|
|
1210
|
+
owner?: any;
|
|
1064
1211
|
};
|
|
1065
1212
|
event_type: "protocol.flight.reviewed";
|
|
1066
1213
|
id?: any;
|
|
1067
1214
|
timestamp?: any;
|
|
1068
1215
|
}, {
|
|
1069
1216
|
data: {
|
|
1070
|
-
|
|
1217
|
+
missionId: {
|
|
1218
|
+
value: string;
|
|
1219
|
+
__type: "bigint";
|
|
1220
|
+
};
|
|
1221
|
+
flightId: {
|
|
1222
|
+
value: string;
|
|
1223
|
+
__type: "bigint";
|
|
1224
|
+
};
|
|
1225
|
+
storageKey: string;
|
|
1071
1226
|
isApproved: boolean;
|
|
1072
1227
|
validationLogUri: string;
|
|
1073
1228
|
validator: string;
|
|
1074
1229
|
filesHash: string;
|
|
1230
|
+
owner?: any;
|
|
1075
1231
|
};
|
|
1076
1232
|
event_type: "protocol.flight.reviewed";
|
|
1077
1233
|
id?: any;
|
|
@@ -1081,15 +1237,18 @@ type Event = z.infer<typeof Event>;
|
|
|
1081
1237
|
type TestEvent = Extract<Event, {
|
|
1082
1238
|
event_type: "test";
|
|
1083
1239
|
}>;
|
|
1084
|
-
type FlightSubmittedEvent = Extract<Event, {
|
|
1085
|
-
event_type: "protocol.flight.submitted";
|
|
1086
|
-
}>;
|
|
1087
1240
|
type MissionCreatedEvent = Extract<Event, {
|
|
1088
1241
|
event_type: "protocol.mission.created";
|
|
1089
1242
|
}>;
|
|
1090
1243
|
type MissionUpdatedEvent = Extract<Event, {
|
|
1091
1244
|
event_type: "protocol.mission.updated";
|
|
1092
1245
|
}>;
|
|
1246
|
+
type MissionPaidEvent = Extract<Event, {
|
|
1247
|
+
event_type: "protocol.mission.paid";
|
|
1248
|
+
}>;
|
|
1249
|
+
type FlightSubmittedEvent = Extract<Event, {
|
|
1250
|
+
event_type: "protocol.flight.submitted";
|
|
1251
|
+
}>;
|
|
1093
1252
|
type FlightReviewedEvent = Extract<Event, {
|
|
1094
1253
|
event_type: "protocol.flight.reviewed";
|
|
1095
1254
|
}>;
|
|
@@ -1101,16 +1260,6 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1101
1260
|
id: string;
|
|
1102
1261
|
event_type: "test";
|
|
1103
1262
|
timestamp: string;
|
|
1104
|
-
} | {
|
|
1105
|
-
data: {
|
|
1106
|
-
missionId: number;
|
|
1107
|
-
pilotAddress: string;
|
|
1108
|
-
flightId: number;
|
|
1109
|
-
flightManifestUri: string;
|
|
1110
|
-
};
|
|
1111
|
-
event_type: "protocol.flight.submitted";
|
|
1112
|
-
id?: any;
|
|
1113
|
-
timestamp?: any;
|
|
1114
1263
|
} | {
|
|
1115
1264
|
data: {
|
|
1116
1265
|
id: bigint;
|
|
@@ -1120,7 +1269,6 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1120
1269
|
flightPlanId: number;
|
|
1121
1270
|
captureStartTime: string;
|
|
1122
1271
|
captureEndTime: string;
|
|
1123
|
-
detailsHash: string;
|
|
1124
1272
|
requestor: string;
|
|
1125
1273
|
};
|
|
1126
1274
|
event_type: "protocol.mission.created";
|
|
@@ -1137,15 +1285,39 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1137
1285
|
timestamp?: any;
|
|
1138
1286
|
} | {
|
|
1139
1287
|
data: {
|
|
1140
|
-
|
|
1288
|
+
missionId: bigint;
|
|
1289
|
+
flightId: bigint;
|
|
1290
|
+
vaultId: bigint;
|
|
1291
|
+
amount: bigint;
|
|
1292
|
+
recipient?: any;
|
|
1293
|
+
};
|
|
1294
|
+
event_type: "protocol.mission.paid";
|
|
1295
|
+
id?: any;
|
|
1296
|
+
timestamp?: any;
|
|
1297
|
+
} | {
|
|
1298
|
+
data: {
|
|
1299
|
+
missionId: bigint;
|
|
1300
|
+
pilotAddress: string;
|
|
1301
|
+
storageKey: string;
|
|
1302
|
+
flightManifestUri: string;
|
|
1303
|
+
};
|
|
1304
|
+
event_type: "protocol.flight.submitted";
|
|
1305
|
+
id?: any;
|
|
1306
|
+
timestamp?: any;
|
|
1307
|
+
} | {
|
|
1308
|
+
data: {
|
|
1309
|
+
missionId: bigint;
|
|
1310
|
+
flightId: bigint;
|
|
1311
|
+
storageKey: string;
|
|
1141
1312
|
isApproved: boolean;
|
|
1142
1313
|
validationLogUri: string;
|
|
1143
1314
|
validator: string;
|
|
1144
1315
|
filesHash: string;
|
|
1316
|
+
owner?: any;
|
|
1145
1317
|
};
|
|
1146
1318
|
event_type: "protocol.flight.reviewed";
|
|
1147
1319
|
id?: any;
|
|
1148
1320
|
timestamp?: any;
|
|
1149
1321
|
};
|
|
1150
1322
|
|
|
1151
|
-
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
|
|
1323
|
+
export { type ApiControllerGetHelloData, type ApiControllerGetHelloResponses, type ApiTokenControllerCreateTokenData, type ApiTokenControllerCreateTokenErrors, type ApiTokenControllerCreateTokenResponse, type ApiTokenControllerCreateTokenResponses, type ApiTokenControllerDeleteTokenData, type ApiTokenControllerDeleteTokenErrors, type ApiTokenControllerDeleteTokenResponses, type ApiTokenControllerGetTokenData, type ApiTokenControllerGetTokenErrors, type ApiTokenControllerGetTokenResponses, type ApiTokenControllerUpdateTokenData, type ApiTokenControllerUpdateTokenErrors, type ApiTokenControllerUpdateTokenResponse, type ApiTokenControllerUpdateTokenResponses, type Auth, type Client, type ClientOptions$1 as ClientOptions, type ConditionsControllerGetSunAltitudeTimeLimitsData, type ConditionsControllerGetSunAltitudeTimeLimitsResponse, type ConditionsControllerGetSunAltitudeTimeLimitsResponses, type Config, type CreateApiTokenRequestDto, type CreateApiTokenResponseDto, type CreateClientConfig, type CreateFileRequestDto, type CreateFileResponseDto, type CreateMissionRequestDto, type CreateMissionResponseDto, type CreateQuoteRequestDto, type CreateWebhookBody, type CreateWebhookResponse, type DeleteWebhookResponse, Event, type FlightDto, type FlightReviewedEvent, type FlightSubmittedEvent, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponse, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateStorageKeyData, type FlightsControllerGenerateStorageKeyErrors, type FlightsControllerGenerateStorageKeyResponse, type FlightsControllerGenerateStorageKeyResponses, type FlightsControllerGetFlightData, type FlightsControllerGetFlightErrors, type FlightsControllerGetFlightResponse, type FlightsControllerGetFlightResponses, type FlightsControllerValidateFlightData, type FlightsControllerValidateFlightErrors, type FlightsControllerValidateFlightResponse, type FlightsControllerValidateFlightResponses, type GetProvenanceCryptoKeyResponse, type GetTimeLimitsForSunAltitudeResponse, type GetWebhookResponse, type GetWebhookStatusResponse, type GetWebhooksResponse, type KeysControllerGetProvenanceCryptoKeyData, type KeysControllerGetProvenanceCryptoKeyResponse, type KeysControllerGetProvenanceCryptoKeyResponses, type MissionCreatedEvent, type MissionPaidEvent, type MissionUpdatedEvent, type MissionsControllerCreateMissionsData, type MissionsControllerCreateMissionsErrors, type MissionsControllerCreateMissionsResponse, type MissionsControllerCreateMissionsResponses, type MissionsControllerUpdateMissionsData, type MissionsControllerUpdateMissionsResponse, type MissionsControllerUpdateMissionsResponses, type Options, type OptionsLegacyParser, type QuerySerializerOptions, type QuotesControllerCreateQuoteData, type QuotesControllerCreateQuoteErrors, type QuotesControllerCreateQuoteResponses, type QuotesControllerGetQuoteData, type QuotesControllerGetQuoteErrors, type QuotesControllerGetQuoteResponses, type RegenerateWebhookSecretResponseDto, type RequestOptions, type RequestResult, type ResponseStyle, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TDataShape, type TestEvent, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateMissionsRequestDto, type UpdateMissionsResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightRequestDto, type ValidateFlightResponseDto, type WebhooksControllerCreateData, type WebhooksControllerCreateErrors, type WebhooksControllerCreateResponse, type WebhooksControllerCreateResponses, type WebhooksControllerDeleteData, type WebhooksControllerDeleteErrors, type WebhooksControllerDeleteResponse, type WebhooksControllerDeleteResponses, type WebhooksControllerGetData, type WebhooksControllerGetErrors, type WebhooksControllerGetManyData, type WebhooksControllerGetManyErrors, type WebhooksControllerGetManyResponse, type WebhooksControllerGetManyResponses, type WebhooksControllerGetResponse, type WebhooksControllerGetResponses, type WebhooksControllerGetStatusData, type WebhooksControllerGetStatusErrors, type WebhooksControllerGetStatusResponse, type WebhooksControllerGetStatusResponses, type WebhooksControllerRegenerateSecretData, type WebhooksControllerRegenerateSecretErrors, type WebhooksControllerRegenerateSecretResponse, type WebhooksControllerRegenerateSecretResponses, type WebhooksControllerTestData, type WebhooksControllerTestErrors, type WebhooksControllerTestResponse, type WebhooksControllerTestResponses, type WebhooksControllerUpdateData, type WebhooksControllerUpdateErrors, type WebhooksControllerUpdateResponse, type WebhooksControllerUpdateResponses, apiControllerGetHello, apiTokenControllerCreateToken, apiTokenControllerDeleteToken, apiTokenControllerGetToken, apiTokenControllerUpdateToken, buildClientParams, conditionsControllerGetSunAltitudeTimeLimits, createClient, createConfig, flightsControllerCreatePresignedUrls, flightsControllerGenerateStorageKey, flightsControllerGetFlight, flightsControllerValidateFlight, formDataBodySerializer, jsonBodySerializer, keysControllerGetProvenanceCryptoKey, mergeHeaders, missionsControllerCreateMissions, missionsControllerUpdateMissions, parseWebhookEvent, quotesControllerCreateQuote, quotesControllerGetQuote, schemaControllerGetEventSchema, urlSearchParamsBodySerializer, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
|