@layer-drone/protocol 0.0.17 → 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 +328 -347
- package/dist/index.d.ts +328 -347
- package/dist/index.js +101 -122
- package/dist/index.mjs +100 -120
- package/package.json +7 -2
- package/src/client/client/client.ts +5 -1
- package/src/client/sdk.gen.ts +108 -136
- package/src/client/transformers.gen.ts +12 -26
- package/src/client/types.gen.ts +219 -262
- package/src/event/types.gen.ts +40 -41
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,83 +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
|
-
is_approved: boolean;
|
|
100
|
-
storage_key: string;
|
|
101
|
-
files_hash: string;
|
|
102
|
-
block_number: number;
|
|
103
|
-
block_timestamp: number;
|
|
104
|
-
transaction_hash: string;
|
|
105
|
-
};
|
|
106
|
-
type CreateFileRequestDto = {
|
|
107
|
-
filenames: Array<string>;
|
|
108
|
-
storageKey: string;
|
|
109
|
-
};
|
|
110
|
-
type CreateFileResponseDto = {
|
|
111
|
-
presignedUrls: {
|
|
112
|
-
[key: string]: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
type ValidateFlightRequestDto = {
|
|
116
|
-
storageKey: string;
|
|
117
|
-
pilotAddress: string;
|
|
118
|
-
missionId: bigint;
|
|
119
|
-
flightTimestamp: string;
|
|
120
|
-
flightRequestInfo: {
|
|
121
|
-
filePaths: Array<string>;
|
|
122
|
-
flightPlanId: number;
|
|
123
|
-
zoneHash: string;
|
|
124
|
-
provenancePath: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
type ValidateFlightResponseDto = {
|
|
128
|
-
flightId: bigint;
|
|
129
|
-
flightManifestUri: string;
|
|
130
|
-
};
|
|
131
|
-
type GetTimeLimitsForSunAltitudeResponse = {
|
|
132
|
-
OptimalSunAltitudePeriod: {
|
|
133
|
-
StartTime: Date;
|
|
134
|
-
EndTime: Date;
|
|
135
|
-
SunAltitudeAtLimits: number;
|
|
136
|
-
};
|
|
137
|
-
DaylightPeriod: {
|
|
138
|
-
StartTime: Date;
|
|
139
|
-
EndTime: Date;
|
|
140
|
-
SunAltitudeAtLimits: number;
|
|
141
|
-
};
|
|
142
|
-
SunAltitudeInDegrees: number;
|
|
131
|
+
type CreateQuoteRequestDto = {
|
|
132
|
+
missionIds: Array<number>;
|
|
133
|
+
entitlementType: string;
|
|
134
|
+
buyer: string;
|
|
135
|
+
mintOnChain: boolean;
|
|
143
136
|
};
|
|
144
137
|
type CreateWebhookBody = {
|
|
145
138
|
name: string;
|
|
146
139
|
url: string;
|
|
147
|
-
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" | "*">;
|
|
148
141
|
active: boolean;
|
|
149
142
|
};
|
|
150
143
|
type CreateWebhookResponse = {
|
|
@@ -155,7 +148,7 @@ type GetWebhooksResponse = Array<{
|
|
|
155
148
|
id: number;
|
|
156
149
|
name: string;
|
|
157
150
|
url: string;
|
|
158
|
-
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" | "*">;
|
|
159
152
|
active: boolean;
|
|
160
153
|
failure_count: number;
|
|
161
154
|
last_failure_reason: string;
|
|
@@ -166,7 +159,7 @@ type GetWebhookResponse = {
|
|
|
166
159
|
id: number;
|
|
167
160
|
name: string;
|
|
168
161
|
url: string;
|
|
169
|
-
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" | "*">;
|
|
170
163
|
active: boolean;
|
|
171
164
|
failure_count: number;
|
|
172
165
|
last_failure_reason: string;
|
|
@@ -176,14 +169,14 @@ type GetWebhookResponse = {
|
|
|
176
169
|
type UpdateWebhookBody = {
|
|
177
170
|
name?: string;
|
|
178
171
|
url?: string;
|
|
179
|
-
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" | "*">;
|
|
180
173
|
active?: boolean;
|
|
181
174
|
};
|
|
182
175
|
type UpdateWebhookResponse = {
|
|
183
176
|
id: number;
|
|
184
177
|
name: string;
|
|
185
178
|
url: string;
|
|
186
|
-
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" | "*">;
|
|
187
180
|
active: boolean;
|
|
188
181
|
failure_count: number;
|
|
189
182
|
last_failure_reason: string;
|
|
@@ -203,51 +196,13 @@ type GetWebhookStatusResponse = {
|
|
|
203
196
|
status: "inactive" | "error" | "connected" | "connecting";
|
|
204
197
|
error?: string;
|
|
205
198
|
};
|
|
206
|
-
type
|
|
199
|
+
type ApiControllerGetHelloData = {
|
|
207
200
|
body?: never;
|
|
208
201
|
path?: never;
|
|
209
202
|
query?: never;
|
|
210
203
|
url: "/";
|
|
211
204
|
};
|
|
212
|
-
type
|
|
213
|
-
200: unknown;
|
|
214
|
-
};
|
|
215
|
-
type KeysControllerGetProvenanceCryptoKeyData = {
|
|
216
|
-
body?: never;
|
|
217
|
-
path?: never;
|
|
218
|
-
query?: never;
|
|
219
|
-
url: "/keys";
|
|
220
|
-
};
|
|
221
|
-
type KeysControllerGetProvenanceCryptoKeyResponses = {
|
|
222
|
-
200: GetProvenanceCryptoKeyResponse;
|
|
223
|
-
};
|
|
224
|
-
type KeysControllerGetProvenanceCryptoKeyResponse = KeysControllerGetProvenanceCryptoKeyResponses[keyof KeysControllerGetProvenanceCryptoKeyResponses];
|
|
225
|
-
type QuotesControllerCreateQuoteData = {
|
|
226
|
-
body: CreateQuoteRequestDto;
|
|
227
|
-
path?: never;
|
|
228
|
-
query?: never;
|
|
229
|
-
url: "/quotes";
|
|
230
|
-
};
|
|
231
|
-
type QuotesControllerCreateQuoteErrors = {
|
|
232
|
-
401: unknown;
|
|
233
|
-
403: unknown;
|
|
234
|
-
};
|
|
235
|
-
type QuotesControllerCreateQuoteResponses = {
|
|
236
|
-
201: unknown;
|
|
237
|
-
};
|
|
238
|
-
type QuotesControllerGetQuoteData = {
|
|
239
|
-
body?: never;
|
|
240
|
-
path: {
|
|
241
|
-
id: string;
|
|
242
|
-
};
|
|
243
|
-
query?: never;
|
|
244
|
-
url: "/quotes/{id}";
|
|
245
|
-
};
|
|
246
|
-
type QuotesControllerGetQuoteErrors = {
|
|
247
|
-
401: unknown;
|
|
248
|
-
403: unknown;
|
|
249
|
-
};
|
|
250
|
-
type QuotesControllerGetQuoteResponses = {
|
|
205
|
+
type ApiControllerGetHelloResponses = {
|
|
251
206
|
200: unknown;
|
|
252
207
|
};
|
|
253
208
|
type ApiTokenControllerCreateTokenData = {
|
|
@@ -311,53 +266,25 @@ type ApiTokenControllerUpdateTokenResponses = {
|
|
|
311
266
|
200: UpdateApiTokenResponseDto;
|
|
312
267
|
};
|
|
313
268
|
type ApiTokenControllerUpdateTokenResponse = ApiTokenControllerUpdateTokenResponses[keyof ApiTokenControllerUpdateTokenResponses];
|
|
314
|
-
type
|
|
315
|
-
body
|
|
316
|
-
path?: never;
|
|
317
|
-
query?: never;
|
|
318
|
-
url: "/missions";
|
|
319
|
-
};
|
|
320
|
-
type MissionsControllerCreateMissionsErrors = {
|
|
321
|
-
400: unknown;
|
|
322
|
-
403: unknown;
|
|
323
|
-
500: unknown;
|
|
324
|
-
};
|
|
325
|
-
type MissionsControllerCreateMissionsResponses = {
|
|
326
|
-
201: CreateMissionResponseDto;
|
|
327
|
-
};
|
|
328
|
-
type MissionsControllerCreateMissionsResponse = MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
329
|
-
type MissionsControllerUpdateMissionsData = {
|
|
330
|
-
body: UpdateMissionsRequestDto;
|
|
269
|
+
type ConditionsControllerGetSunAltitudeTimeLimitsData = {
|
|
270
|
+
body?: never;
|
|
331
271
|
path?: never;
|
|
332
|
-
query
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
200: UpdateMissionsResponseDto;
|
|
337
|
-
};
|
|
338
|
-
type MissionsControllerUpdateMissionsResponse = MissionsControllerUpdateMissionsResponses[keyof MissionsControllerUpdateMissionsResponses];
|
|
339
|
-
type MissionsControllerClaimRewardsData = {
|
|
340
|
-
body: ClaimRewardsRequestDto;
|
|
341
|
-
path: {
|
|
342
|
-
id: bigint;
|
|
272
|
+
query: {
|
|
273
|
+
lat: number;
|
|
274
|
+
lon: number;
|
|
275
|
+
time: Date;
|
|
343
276
|
};
|
|
344
|
-
|
|
345
|
-
url: "/missions/{id}/rewards";
|
|
346
|
-
};
|
|
347
|
-
type MissionsControllerClaimRewardsErrors = {
|
|
348
|
-
400: unknown;
|
|
349
|
-
404: unknown;
|
|
350
|
-
500: unknown;
|
|
277
|
+
url: "/conditions/sun-altitude";
|
|
351
278
|
};
|
|
352
|
-
type
|
|
353
|
-
200:
|
|
279
|
+
type ConditionsControllerGetSunAltitudeTimeLimitsResponses = {
|
|
280
|
+
200: GetTimeLimitsForSunAltitudeResponse;
|
|
354
281
|
};
|
|
355
|
-
type
|
|
282
|
+
type ConditionsControllerGetSunAltitudeTimeLimitsResponse = ConditionsControllerGetSunAltitudeTimeLimitsResponses[keyof ConditionsControllerGetSunAltitudeTimeLimitsResponses];
|
|
356
283
|
type FlightsControllerGenerateStorageKeyData = {
|
|
357
284
|
body?: never;
|
|
358
285
|
path?: never;
|
|
359
286
|
query: {
|
|
360
|
-
missionId: bigint;
|
|
287
|
+
missionId: string | number | bigint;
|
|
361
288
|
pilotAddress: string;
|
|
362
289
|
flightTimestamp?: string;
|
|
363
290
|
};
|
|
@@ -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 missionsControllerUpdateMissions: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerUpdateMissionsData, ThrowOnError>) => RequestResult<MissionsControllerUpdateMissionsResponses, unknown, ThrowOnError, "fields">;
|
|
763
|
-
declare const missionsControllerClaimRewards: <ThrowOnError extends boolean = false>(options: Options<MissionsControllerClaimRewardsData, ThrowOnError>) => RequestResult<MissionsControllerClaimRewardsResponses, MissionsControllerClaimRewardsErrors, ThrowOnError, "fields">;
|
|
734
|
+
declare const conditionsControllerGetSunAltitudeTimeLimits: <ThrowOnError extends boolean = false>(options: Options<ConditionsControllerGetSunAltitudeTimeLimitsData, ThrowOnError>) => RequestResult<ConditionsControllerGetSunAltitudeTimeLimitsResponses, unknown, ThrowOnError, "fields">;
|
|
764
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">;
|
|
@@ -779,86 +754,28 @@ declare const webhooksControllerGetStatus: <ThrowOnError extends boolean = false
|
|
|
779
754
|
declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
780
755
|
id: z.ZodString;
|
|
781
756
|
event_type: z.ZodLiteral<"test">;
|
|
782
|
-
timestamp: z.ZodString;
|
|
783
|
-
data: z.ZodObject<{
|
|
784
|
-
message: z.ZodString;
|
|
785
|
-
}, "strict", z.ZodTypeAny, {
|
|
786
|
-
message: string;
|
|
787
|
-
}, {
|
|
788
|
-
message: string;
|
|
789
|
-
}>;
|
|
790
|
-
}, "strict", z.ZodTypeAny, {
|
|
791
|
-
data: {
|
|
792
|
-
message: string;
|
|
793
|
-
};
|
|
794
|
-
id: string;
|
|
795
|
-
event_type: "test";
|
|
796
|
-
timestamp: string;
|
|
797
|
-
}, {
|
|
798
|
-
data: {
|
|
799
|
-
message: string;
|
|
800
|
-
};
|
|
801
|
-
id: string;
|
|
802
|
-
event_type: "test";
|
|
803
|
-
timestamp: string;
|
|
804
|
-
}>, z.ZodObject<{
|
|
805
|
-
id: z.ZodAny;
|
|
806
|
-
event_type: z.ZodLiteral<"protocol.flight.submitted">;
|
|
807
|
-
timestamp: z.ZodAny;
|
|
757
|
+
timestamp: z.ZodString;
|
|
808
758
|
data: z.ZodObject<{
|
|
809
|
-
|
|
810
|
-
pilotAddress: z.ZodString;
|
|
811
|
-
flightManifestUri: z.ZodString;
|
|
812
|
-
missionId: z.ZodEffects<z.ZodObject<{
|
|
813
|
-
__type: z.ZodLiteral<"bigint">;
|
|
814
|
-
value: z.ZodString;
|
|
815
|
-
}, "strip", z.ZodTypeAny, {
|
|
816
|
-
value: string;
|
|
817
|
-
__type: "bigint";
|
|
818
|
-
}, {
|
|
819
|
-
value: string;
|
|
820
|
-
__type: "bigint";
|
|
821
|
-
}>, bigint, {
|
|
822
|
-
value: string;
|
|
823
|
-
__type: "bigint";
|
|
824
|
-
}>;
|
|
759
|
+
message: z.ZodString;
|
|
825
760
|
}, "strict", z.ZodTypeAny, {
|
|
826
|
-
|
|
827
|
-
pilotAddress: string;
|
|
828
|
-
storageKey: string;
|
|
829
|
-
flightManifestUri: string;
|
|
761
|
+
message: string;
|
|
830
762
|
}, {
|
|
831
|
-
|
|
832
|
-
value: string;
|
|
833
|
-
__type: "bigint";
|
|
834
|
-
};
|
|
835
|
-
pilotAddress: string;
|
|
836
|
-
storageKey: string;
|
|
837
|
-
flightManifestUri: string;
|
|
763
|
+
message: string;
|
|
838
764
|
}>;
|
|
839
765
|
}, "strict", z.ZodTypeAny, {
|
|
840
766
|
data: {
|
|
841
|
-
|
|
842
|
-
pilotAddress: string;
|
|
843
|
-
storageKey: string;
|
|
844
|
-
flightManifestUri: string;
|
|
767
|
+
message: string;
|
|
845
768
|
};
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
timestamp
|
|
769
|
+
id: string;
|
|
770
|
+
event_type: "test";
|
|
771
|
+
timestamp: string;
|
|
849
772
|
}, {
|
|
850
773
|
data: {
|
|
851
|
-
|
|
852
|
-
value: string;
|
|
853
|
-
__type: "bigint";
|
|
854
|
-
};
|
|
855
|
-
pilotAddress: string;
|
|
856
|
-
storageKey: string;
|
|
857
|
-
flightManifestUri: string;
|
|
774
|
+
message: string;
|
|
858
775
|
};
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
timestamp
|
|
776
|
+
id: string;
|
|
777
|
+
event_type: "test";
|
|
778
|
+
timestamp: string;
|
|
862
779
|
}>, z.ZodObject<{
|
|
863
780
|
id: z.ZodAny;
|
|
864
781
|
event_type: z.ZodLiteral<"protocol.mission.created">;
|
|
@@ -907,7 +824,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
907
824
|
flightPlanId: z.ZodNumber;
|
|
908
825
|
captureStartTime: z.ZodString;
|
|
909
826
|
captureEndTime: z.ZodString;
|
|
910
|
-
detailsHash: z.ZodString;
|
|
911
827
|
requestor: z.ZodString;
|
|
912
828
|
}, "strict", z.ZodTypeAny, {
|
|
913
829
|
id: bigint;
|
|
@@ -917,7 +833,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
917
833
|
flightPlanId: number;
|
|
918
834
|
captureStartTime: string;
|
|
919
835
|
captureEndTime: string;
|
|
920
|
-
detailsHash: string;
|
|
921
836
|
requestor: string;
|
|
922
837
|
}, {
|
|
923
838
|
id: {
|
|
@@ -936,7 +851,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
936
851
|
flightPlanId: number;
|
|
937
852
|
captureStartTime: string;
|
|
938
853
|
captureEndTime: string;
|
|
939
|
-
detailsHash: string;
|
|
940
854
|
requestor: string;
|
|
941
855
|
}>;
|
|
942
856
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -948,7 +862,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
948
862
|
flightPlanId: number;
|
|
949
863
|
captureStartTime: string;
|
|
950
864
|
captureEndTime: string;
|
|
951
|
-
detailsHash: string;
|
|
952
865
|
requestor: string;
|
|
953
866
|
};
|
|
954
867
|
event_type: "protocol.mission.created";
|
|
@@ -972,7 +885,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
972
885
|
flightPlanId: number;
|
|
973
886
|
captureStartTime: string;
|
|
974
887
|
captureEndTime: string;
|
|
975
|
-
detailsHash: string;
|
|
976
888
|
requestor: string;
|
|
977
889
|
};
|
|
978
890
|
event_type: "protocol.mission.created";
|
|
@@ -1051,9 +963,10 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1051
963
|
timestamp?: any;
|
|
1052
964
|
}>, z.ZodObject<{
|
|
1053
965
|
id: z.ZodAny;
|
|
1054
|
-
event_type: z.ZodLiteral<"protocol.
|
|
966
|
+
event_type: z.ZodLiteral<"protocol.mission.paid">;
|
|
1055
967
|
timestamp: z.ZodAny;
|
|
1056
968
|
data: z.ZodObject<{
|
|
969
|
+
recipient: z.ZodAny;
|
|
1057
970
|
flightId: z.ZodEffects<z.ZodObject<{
|
|
1058
971
|
__type: z.ZodLiteral<"bigint">;
|
|
1059
972
|
value: z.ZodString;
|
|
@@ -1067,11 +980,6 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1067
980
|
value: string;
|
|
1068
981
|
__type: "bigint";
|
|
1069
982
|
}>;
|
|
1070
|
-
isApproved: z.ZodBoolean;
|
|
1071
|
-
validationLogUri: z.ZodString;
|
|
1072
|
-
validator: z.ZodString;
|
|
1073
|
-
filesHash: z.ZodString;
|
|
1074
|
-
storageKey: z.ZodString;
|
|
1075
983
|
missionId: z.ZodEffects<z.ZodObject<{
|
|
1076
984
|
__type: z.ZodLiteral<"bigint">;
|
|
1077
985
|
value: z.ZodString;
|
|
@@ -1085,14 +993,38 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1085
993
|
value: string;
|
|
1086
994
|
__type: "bigint";
|
|
1087
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
|
+
}>;
|
|
1088
1022
|
}, "strict", z.ZodTypeAny, {
|
|
1089
1023
|
missionId: bigint;
|
|
1090
1024
|
flightId: bigint;
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
validator: string;
|
|
1095
|
-
filesHash: string;
|
|
1025
|
+
vaultId: bigint;
|
|
1026
|
+
amount: bigint;
|
|
1027
|
+
recipient?: any;
|
|
1096
1028
|
}, {
|
|
1097
1029
|
missionId: {
|
|
1098
1030
|
value: string;
|
|
@@ -1102,23 +1034,25 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1102
1034
|
value: string;
|
|
1103
1035
|
__type: "bigint";
|
|
1104
1036
|
};
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1037
|
+
vaultId: {
|
|
1038
|
+
value: string;
|
|
1039
|
+
__type: "bigint";
|
|
1040
|
+
};
|
|
1041
|
+
amount: {
|
|
1042
|
+
value: string;
|
|
1043
|
+
__type: "bigint";
|
|
1044
|
+
};
|
|
1045
|
+
recipient?: any;
|
|
1110
1046
|
}>;
|
|
1111
1047
|
}, "strict", z.ZodTypeAny, {
|
|
1112
1048
|
data: {
|
|
1113
1049
|
missionId: bigint;
|
|
1114
1050
|
flightId: bigint;
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
validator: string;
|
|
1119
|
-
filesHash: string;
|
|
1051
|
+
vaultId: bigint;
|
|
1052
|
+
amount: bigint;
|
|
1053
|
+
recipient?: any;
|
|
1120
1054
|
};
|
|
1121
|
-
event_type: "protocol.
|
|
1055
|
+
event_type: "protocol.mission.paid";
|
|
1122
1056
|
id?: any;
|
|
1123
1057
|
timestamp?: any;
|
|
1124
1058
|
}, {
|
|
@@ -1131,26 +1065,28 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1131
1065
|
value: string;
|
|
1132
1066
|
__type: "bigint";
|
|
1133
1067
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1068
|
+
vaultId: {
|
|
1069
|
+
value: string;
|
|
1070
|
+
__type: "bigint";
|
|
1071
|
+
};
|
|
1072
|
+
amount: {
|
|
1073
|
+
value: string;
|
|
1074
|
+
__type: "bigint";
|
|
1075
|
+
};
|
|
1076
|
+
recipient?: any;
|
|
1139
1077
|
};
|
|
1140
|
-
event_type: "protocol.
|
|
1078
|
+
event_type: "protocol.mission.paid";
|
|
1141
1079
|
id?: any;
|
|
1142
1080
|
timestamp?: any;
|
|
1143
1081
|
}>, z.ZodObject<{
|
|
1144
1082
|
id: z.ZodAny;
|
|
1145
|
-
event_type: z.ZodLiteral<"
|
|
1083
|
+
event_type: z.ZodLiteral<"protocol.flight.submitted">;
|
|
1146
1084
|
timestamp: z.ZodAny;
|
|
1147
1085
|
data: z.ZodObject<{
|
|
1148
|
-
isApproved: z.ZodBoolean;
|
|
1149
1086
|
storageKey: z.ZodString;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
tokenId: z.ZodEffects<z.ZodObject<{
|
|
1087
|
+
pilotAddress: z.ZodString;
|
|
1088
|
+
flightManifestUri: z.ZodString;
|
|
1089
|
+
missionId: z.ZodEffects<z.ZodObject<{
|
|
1154
1090
|
__type: z.ZodLiteral<"bigint">;
|
|
1155
1091
|
value: z.ZodString;
|
|
1156
1092
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1163,7 +1099,49 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1163
1099
|
value: string;
|
|
1164
1100
|
__type: "bigint";
|
|
1165
1101
|
}>;
|
|
1166
|
-
|
|
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;
|
|
1139
|
+
}>, z.ZodObject<{
|
|
1140
|
+
id: z.ZodAny;
|
|
1141
|
+
event_type: z.ZodLiteral<"protocol.flight.reviewed">;
|
|
1142
|
+
timestamp: z.ZodAny;
|
|
1143
|
+
data: z.ZodObject<{
|
|
1144
|
+
flightId: z.ZodEffects<z.ZodObject<{
|
|
1167
1145
|
__type: z.ZodLiteral<"bigint">;
|
|
1168
1146
|
value: z.ZodString;
|
|
1169
1147
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1176,52 +1154,62 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1176
1154
|
value: string;
|
|
1177
1155
|
__type: "bigint";
|
|
1178
1156
|
}>;
|
|
1179
|
-
|
|
1157
|
+
owner: z.ZodAny;
|
|
1158
|
+
isApproved: z.ZodBoolean;
|
|
1159
|
+
validationLogUri: z.ZodString;
|
|
1160
|
+
validator: z.ZodString;
|
|
1180
1161
|
filesHash: z.ZodString;
|
|
1181
|
-
|
|
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
|
+
}>;
|
|
1182
1176
|
}, "strict", z.ZodTypeAny, {
|
|
1183
1177
|
missionId: bigint;
|
|
1178
|
+
flightId: bigint;
|
|
1184
1179
|
storageKey: string;
|
|
1185
1180
|
isApproved: boolean;
|
|
1186
1181
|
validationLogUri: string;
|
|
1182
|
+
validator: string;
|
|
1187
1183
|
filesHash: string;
|
|
1188
|
-
|
|
1189
|
-
provenanceDataUri: string;
|
|
1190
|
-
tokenId: bigint;
|
|
1191
|
-
validator?: any;
|
|
1192
|
-
to?: any;
|
|
1184
|
+
owner?: any;
|
|
1193
1185
|
}, {
|
|
1194
1186
|
missionId: {
|
|
1195
1187
|
value: string;
|
|
1196
1188
|
__type: "bigint";
|
|
1197
1189
|
};
|
|
1190
|
+
flightId: {
|
|
1191
|
+
value: string;
|
|
1192
|
+
__type: "bigint";
|
|
1193
|
+
};
|
|
1198
1194
|
storageKey: string;
|
|
1199
1195
|
isApproved: boolean;
|
|
1200
1196
|
validationLogUri: string;
|
|
1197
|
+
validator: string;
|
|
1201
1198
|
filesHash: string;
|
|
1202
|
-
|
|
1203
|
-
provenanceDataUri: string;
|
|
1204
|
-
tokenId: {
|
|
1205
|
-
value: string;
|
|
1206
|
-
__type: "bigint";
|
|
1207
|
-
};
|
|
1208
|
-
validator?: any;
|
|
1209
|
-
to?: any;
|
|
1199
|
+
owner?: any;
|
|
1210
1200
|
}>;
|
|
1211
1201
|
}, "strict", z.ZodTypeAny, {
|
|
1212
1202
|
data: {
|
|
1213
1203
|
missionId: bigint;
|
|
1204
|
+
flightId: bigint;
|
|
1214
1205
|
storageKey: string;
|
|
1215
1206
|
isApproved: boolean;
|
|
1216
1207
|
validationLogUri: string;
|
|
1208
|
+
validator: string;
|
|
1217
1209
|
filesHash: string;
|
|
1218
|
-
|
|
1219
|
-
provenanceDataUri: string;
|
|
1220
|
-
tokenId: bigint;
|
|
1221
|
-
validator?: any;
|
|
1222
|
-
to?: any;
|
|
1210
|
+
owner?: any;
|
|
1223
1211
|
};
|
|
1224
|
-
event_type: "
|
|
1212
|
+
event_type: "protocol.flight.reviewed";
|
|
1225
1213
|
id?: any;
|
|
1226
1214
|
timestamp?: any;
|
|
1227
1215
|
}, {
|
|
@@ -1230,20 +1218,18 @@ declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
|
1230
1218
|
value: string;
|
|
1231
1219
|
__type: "bigint";
|
|
1232
1220
|
};
|
|
1221
|
+
flightId: {
|
|
1222
|
+
value: string;
|
|
1223
|
+
__type: "bigint";
|
|
1224
|
+
};
|
|
1233
1225
|
storageKey: string;
|
|
1234
1226
|
isApproved: boolean;
|
|
1235
1227
|
validationLogUri: string;
|
|
1228
|
+
validator: string;
|
|
1236
1229
|
filesHash: string;
|
|
1237
|
-
|
|
1238
|
-
provenanceDataUri: string;
|
|
1239
|
-
tokenId: {
|
|
1240
|
-
value: string;
|
|
1241
|
-
__type: "bigint";
|
|
1242
|
-
};
|
|
1243
|
-
validator?: any;
|
|
1244
|
-
to?: any;
|
|
1230
|
+
owner?: any;
|
|
1245
1231
|
};
|
|
1246
|
-
event_type: "
|
|
1232
|
+
event_type: "protocol.flight.reviewed";
|
|
1247
1233
|
id?: any;
|
|
1248
1234
|
timestamp?: any;
|
|
1249
1235
|
}>]>;
|
|
@@ -1251,21 +1237,21 @@ type Event = z.infer<typeof Event>;
|
|
|
1251
1237
|
type TestEvent = Extract<Event, {
|
|
1252
1238
|
event_type: "test";
|
|
1253
1239
|
}>;
|
|
1254
|
-
type FlightSubmittedEvent = Extract<Event, {
|
|
1255
|
-
event_type: "protocol.flight.submitted";
|
|
1256
|
-
}>;
|
|
1257
1240
|
type MissionCreatedEvent = Extract<Event, {
|
|
1258
1241
|
event_type: "protocol.mission.created";
|
|
1259
1242
|
}>;
|
|
1260
1243
|
type MissionUpdatedEvent = Extract<Event, {
|
|
1261
1244
|
event_type: "protocol.mission.updated";
|
|
1262
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
|
+
}>;
|
|
1263
1252
|
type FlightReviewedEvent = Extract<Event, {
|
|
1264
1253
|
event_type: "protocol.flight.reviewed";
|
|
1265
1254
|
}>;
|
|
1266
|
-
type InternalFlightReviewedEvent = Extract<Event, {
|
|
1267
|
-
event_type: "internal.flight.reviewed";
|
|
1268
|
-
}>;
|
|
1269
1255
|
|
|
1270
1256
|
declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
1271
1257
|
data: {
|
|
@@ -1274,16 +1260,6 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1274
1260
|
id: string;
|
|
1275
1261
|
event_type: "test";
|
|
1276
1262
|
timestamp: string;
|
|
1277
|
-
} | {
|
|
1278
|
-
data: {
|
|
1279
|
-
missionId: bigint;
|
|
1280
|
-
pilotAddress: string;
|
|
1281
|
-
storageKey: string;
|
|
1282
|
-
flightManifestUri: string;
|
|
1283
|
-
};
|
|
1284
|
-
event_type: "protocol.flight.submitted";
|
|
1285
|
-
id?: any;
|
|
1286
|
-
timestamp?: any;
|
|
1287
1263
|
} | {
|
|
1288
1264
|
data: {
|
|
1289
1265
|
id: bigint;
|
|
@@ -1293,7 +1269,6 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1293
1269
|
flightPlanId: number;
|
|
1294
1270
|
captureStartTime: string;
|
|
1295
1271
|
captureEndTime: string;
|
|
1296
|
-
detailsHash: string;
|
|
1297
1272
|
requestor: string;
|
|
1298
1273
|
};
|
|
1299
1274
|
event_type: "protocol.mission.created";
|
|
@@ -1312,31 +1287,37 @@ declare function parseWebhookEvent(req: Request$1, webhookSecret: string): {
|
|
|
1312
1287
|
data: {
|
|
1313
1288
|
missionId: bigint;
|
|
1314
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;
|
|
1315
1301
|
storageKey: string;
|
|
1316
|
-
|
|
1317
|
-
validationLogUri: string;
|
|
1318
|
-
validator: string;
|
|
1319
|
-
filesHash: string;
|
|
1302
|
+
flightManifestUri: string;
|
|
1320
1303
|
};
|
|
1321
|
-
event_type: "protocol.flight.
|
|
1304
|
+
event_type: "protocol.flight.submitted";
|
|
1322
1305
|
id?: any;
|
|
1323
1306
|
timestamp?: any;
|
|
1324
1307
|
} | {
|
|
1325
1308
|
data: {
|
|
1326
1309
|
missionId: bigint;
|
|
1310
|
+
flightId: bigint;
|
|
1327
1311
|
storageKey: string;
|
|
1328
1312
|
isApproved: boolean;
|
|
1329
1313
|
validationLogUri: string;
|
|
1314
|
+
validator: string;
|
|
1330
1315
|
filesHash: string;
|
|
1331
|
-
|
|
1332
|
-
provenanceDataUri: string;
|
|
1333
|
-
tokenId: bigint;
|
|
1334
|
-
validator?: any;
|
|
1335
|
-
to?: any;
|
|
1316
|
+
owner?: any;
|
|
1336
1317
|
};
|
|
1337
|
-
event_type: "
|
|
1318
|
+
event_type: "protocol.flight.reviewed";
|
|
1338
1319
|
id?: any;
|
|
1339
1320
|
timestamp?: any;
|
|
1340
1321
|
};
|
|
1341
1322
|
|
|
1342
|
-
export { type ApiTokenControllerCreateTokenData, type ApiTokenControllerCreateTokenErrors, type ApiTokenControllerCreateTokenResponse, type ApiTokenControllerCreateTokenResponses, type ApiTokenControllerDeleteTokenData, type ApiTokenControllerDeleteTokenErrors, type ApiTokenControllerDeleteTokenResponses, type ApiTokenControllerGetTokenData, type ApiTokenControllerGetTokenErrors, type ApiTokenControllerGetTokenResponses, type ApiTokenControllerUpdateTokenData, type ApiTokenControllerUpdateTokenErrors, type ApiTokenControllerUpdateTokenResponse, type ApiTokenControllerUpdateTokenResponses, type
|
|
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 };
|