@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/src/client/types.gen.ts
CHANGED
|
@@ -1,39 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export type GetProvenanceCryptoKeyResponse = {
|
|
4
|
-
KeyId: string;
|
|
5
|
-
PublicKey: string;
|
|
6
|
-
KeySpec?:
|
|
7
|
-
| "ECC_NIST_P256"
|
|
8
|
-
| "ECC_NIST_P384"
|
|
9
|
-
| "ECC_NIST_P521"
|
|
10
|
-
| "ECC_SECG_P256K1"
|
|
11
|
-
| "HMAC_224"
|
|
12
|
-
| "HMAC_256"
|
|
13
|
-
| "HMAC_384"
|
|
14
|
-
| "HMAC_512"
|
|
15
|
-
| "RSA_2048"
|
|
16
|
-
| "RSA_3072"
|
|
17
|
-
| "RSA_4096"
|
|
18
|
-
| "SM2"
|
|
19
|
-
| "SYMMETRIC_DEFAULT";
|
|
20
|
-
KeyUsage?:
|
|
21
|
-
| "ENCRYPT_DECRYPT"
|
|
22
|
-
| "GENERATE_VERIFY_MAC"
|
|
23
|
-
| "KEY_AGREEMENT"
|
|
24
|
-
| "SIGN_VERIFY";
|
|
25
|
-
EncryptionAlgorithms?: Array<
|
|
26
|
-
"RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE" | "SYMMETRIC_DEFAULT"
|
|
27
|
-
>;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type CreateQuoteRequestDto = {
|
|
31
|
-
missionIds: Array<number>;
|
|
32
|
-
entitlementType: string;
|
|
33
|
-
buyer: string;
|
|
34
|
-
mintOnChain: boolean;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
3
|
export type CreateApiTokenResponseDto = {
|
|
38
4
|
id: string;
|
|
39
5
|
name: string;
|
|
@@ -63,11 +29,94 @@ export type UpdateApiTokenResponseDto = {
|
|
|
63
29
|
scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
|
|
64
30
|
};
|
|
65
31
|
|
|
32
|
+
export type GetTimeLimitsForSunAltitudeResponse = {
|
|
33
|
+
OptimalSunAltitudePeriod: {
|
|
34
|
+
StartTime: Date;
|
|
35
|
+
EndTime: Date;
|
|
36
|
+
SunAltitudeAtLimits: number;
|
|
37
|
+
};
|
|
38
|
+
DaylightPeriod: {
|
|
39
|
+
StartTime: Date;
|
|
40
|
+
EndTime: Date;
|
|
41
|
+
SunAltitudeAtLimits: number;
|
|
42
|
+
};
|
|
43
|
+
SunAltitudeInDegrees: number;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type FlightDto = {
|
|
47
|
+
token_id: string;
|
|
48
|
+
mission_id: string;
|
|
49
|
+
owner: string;
|
|
50
|
+
validator: string;
|
|
51
|
+
is_approved: boolean;
|
|
52
|
+
storage_key: string;
|
|
53
|
+
files_hash: string;
|
|
54
|
+
block_number: number;
|
|
55
|
+
block_timestamp: number;
|
|
56
|
+
transaction_hash: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type CreateFileRequestDto = {
|
|
60
|
+
filenames: Array<string>;
|
|
61
|
+
storageKey: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type CreateFileResponseDto = {
|
|
65
|
+
presignedUrls: {
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type ValidateFlightRequestDto = {
|
|
71
|
+
storageKey: string;
|
|
72
|
+
pilotAddress: string;
|
|
73
|
+
missionId: string | number | bigint;
|
|
74
|
+
flightTimestamp: string;
|
|
75
|
+
flightRequestInfo: {
|
|
76
|
+
filePaths: Array<string>;
|
|
77
|
+
flightPlanId: number;
|
|
78
|
+
zoneHash: string;
|
|
79
|
+
provenancePath: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type ValidateFlightResponseDto = {
|
|
84
|
+
flightId: bigint;
|
|
85
|
+
flightManifestUri: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type GetProvenanceCryptoKeyResponse = {
|
|
89
|
+
KeyId: string;
|
|
90
|
+
PublicKey: string;
|
|
91
|
+
KeySpec?:
|
|
92
|
+
| "ECC_NIST_P256"
|
|
93
|
+
| "ECC_NIST_P384"
|
|
94
|
+
| "ECC_NIST_P521"
|
|
95
|
+
| "ECC_SECG_P256K1"
|
|
96
|
+
| "HMAC_224"
|
|
97
|
+
| "HMAC_256"
|
|
98
|
+
| "HMAC_384"
|
|
99
|
+
| "HMAC_512"
|
|
100
|
+
| "RSA_2048"
|
|
101
|
+
| "RSA_3072"
|
|
102
|
+
| "RSA_4096"
|
|
103
|
+
| "SM2"
|
|
104
|
+
| "SYMMETRIC_DEFAULT";
|
|
105
|
+
KeyUsage?:
|
|
106
|
+
| "ENCRYPT_DECRYPT"
|
|
107
|
+
| "GENERATE_VERIFY_MAC"
|
|
108
|
+
| "KEY_AGREEMENT"
|
|
109
|
+
| "SIGN_VERIFY";
|
|
110
|
+
EncryptionAlgorithms?: Array<
|
|
111
|
+
"RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE" | "SYMMETRIC_DEFAULT"
|
|
112
|
+
>;
|
|
113
|
+
};
|
|
114
|
+
|
|
66
115
|
export type CreateMissionRequestDto = {
|
|
67
116
|
missions: Array<{
|
|
68
117
|
zoneId: string;
|
|
69
118
|
flightPlanId: number;
|
|
70
|
-
amount: bigint;
|
|
119
|
+
amount: string | number | bigint;
|
|
71
120
|
startTime: Date;
|
|
72
121
|
endTime: Date;
|
|
73
122
|
}>;
|
|
@@ -97,89 +146,33 @@ export type CreateMissionResponseDto = {
|
|
|
97
146
|
export type UpdateMissionsRequestDto = {
|
|
98
147
|
missions: Array<
|
|
99
148
|
| {
|
|
100
|
-
id: bigint;
|
|
101
|
-
amount: bigint;
|
|
149
|
+
id: string | number | bigint;
|
|
150
|
+
amount: string | number | bigint;
|
|
102
151
|
}
|
|
103
152
|
| {
|
|
104
|
-
id: bigint;
|
|
153
|
+
id: string | number | bigint;
|
|
105
154
|
isOpen: false;
|
|
106
155
|
}
|
|
107
156
|
>;
|
|
157
|
+
treasuryAddress: string;
|
|
108
158
|
};
|
|
109
159
|
|
|
110
160
|
export type UpdateMissionsResponseDto = {
|
|
111
|
-
success: boolean;
|
|
112
|
-
data: {
|
|
113
|
-
rewardUpdatesQueued: Array<string>;
|
|
114
|
-
cancelUpdatesQueued: Array<string>;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export type ClaimRewardsRequestDto = {
|
|
119
|
-
flightIds: Array<number>;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export type ClaimRewardsResponseDto = {
|
|
123
161
|
success: boolean;
|
|
124
162
|
data:
|
|
125
163
|
| {
|
|
126
|
-
|
|
164
|
+
escrowRequestsQueued: Array<string>;
|
|
165
|
+
withdrawalRequestsQueued: Array<string>;
|
|
166
|
+
cancelRequestsQueued: Array<string>;
|
|
127
167
|
}
|
|
128
168
|
| string;
|
|
129
169
|
};
|
|
130
170
|
|
|
131
|
-
export type
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
storage_key: string;
|
|
137
|
-
files_hash: string;
|
|
138
|
-
block_number: number;
|
|
139
|
-
block_timestamp: number;
|
|
140
|
-
transaction_hash: string;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export type CreateFileRequestDto = {
|
|
144
|
-
filenames: Array<string>;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
export type CreateFileResponseDto = {
|
|
148
|
-
presignedUrls: {
|
|
149
|
-
[key: string]: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export type ValidateFlightDto = {
|
|
154
|
-
flightId?: number;
|
|
155
|
-
pilotAddress: string;
|
|
156
|
-
missionId: number;
|
|
157
|
-
flightTimestamp: string;
|
|
158
|
-
flightRequestInfo: {
|
|
159
|
-
filePaths: Array<string>;
|
|
160
|
-
flightPlanId: number;
|
|
161
|
-
zoneHash: string;
|
|
162
|
-
provenancePath: string;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
export type ValidateFlightResponseDto = {
|
|
167
|
-
flightId: number;
|
|
168
|
-
flightManifestUri: string;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
export type GetTimeLimitsForSunAltitudeResponse = {
|
|
172
|
-
OptimalSunAltitudePeriod: {
|
|
173
|
-
StartTime: Date;
|
|
174
|
-
EndTime: Date;
|
|
175
|
-
SunAltitudeAtLimits: number;
|
|
176
|
-
};
|
|
177
|
-
DaylightPeriod: {
|
|
178
|
-
StartTime: Date;
|
|
179
|
-
EndTime: Date;
|
|
180
|
-
SunAltitudeAtLimits: number;
|
|
181
|
-
};
|
|
182
|
-
SunAltitudeInDegrees: number;
|
|
171
|
+
export type CreateQuoteRequestDto = {
|
|
172
|
+
missionIds: Array<number>;
|
|
173
|
+
entitlementType: string;
|
|
174
|
+
buyer: string;
|
|
175
|
+
mintOnChain: boolean;
|
|
183
176
|
};
|
|
184
177
|
|
|
185
178
|
export type CreateWebhookBody = {
|
|
@@ -187,9 +180,10 @@ export type CreateWebhookBody = {
|
|
|
187
180
|
url: string;
|
|
188
181
|
event_types: Array<
|
|
189
182
|
| "test"
|
|
190
|
-
| "protocol.flight.submitted"
|
|
191
183
|
| "protocol.mission.created"
|
|
192
184
|
| "protocol.mission.updated"
|
|
185
|
+
| "protocol.mission.paid"
|
|
186
|
+
| "protocol.flight.submitted"
|
|
193
187
|
| "protocol.flight.reviewed"
|
|
194
188
|
| "*"
|
|
195
189
|
>;
|
|
@@ -207,9 +201,10 @@ export type GetWebhooksResponse = Array<{
|
|
|
207
201
|
url: string;
|
|
208
202
|
event_types: Array<
|
|
209
203
|
| "test"
|
|
210
|
-
| "protocol.flight.submitted"
|
|
211
204
|
| "protocol.mission.created"
|
|
212
205
|
| "protocol.mission.updated"
|
|
206
|
+
| "protocol.mission.paid"
|
|
207
|
+
| "protocol.flight.submitted"
|
|
213
208
|
| "protocol.flight.reviewed"
|
|
214
209
|
| "*"
|
|
215
210
|
>;
|
|
@@ -226,9 +221,10 @@ export type GetWebhookResponse = {
|
|
|
226
221
|
url: string;
|
|
227
222
|
event_types: Array<
|
|
228
223
|
| "test"
|
|
229
|
-
| "protocol.flight.submitted"
|
|
230
224
|
| "protocol.mission.created"
|
|
231
225
|
| "protocol.mission.updated"
|
|
226
|
+
| "protocol.mission.paid"
|
|
227
|
+
| "protocol.flight.submitted"
|
|
232
228
|
| "protocol.flight.reviewed"
|
|
233
229
|
| "*"
|
|
234
230
|
>;
|
|
@@ -244,9 +240,10 @@ export type UpdateWebhookBody = {
|
|
|
244
240
|
url?: string;
|
|
245
241
|
event_types?: Array<
|
|
246
242
|
| "test"
|
|
247
|
-
| "protocol.flight.submitted"
|
|
248
243
|
| "protocol.mission.created"
|
|
249
244
|
| "protocol.mission.updated"
|
|
245
|
+
| "protocol.mission.paid"
|
|
246
|
+
| "protocol.flight.submitted"
|
|
250
247
|
| "protocol.flight.reviewed"
|
|
251
248
|
| "*"
|
|
252
249
|
>;
|
|
@@ -259,9 +256,10 @@ export type UpdateWebhookResponse = {
|
|
|
259
256
|
url: string;
|
|
260
257
|
event_types: Array<
|
|
261
258
|
| "test"
|
|
262
|
-
| "protocol.flight.submitted"
|
|
263
259
|
| "protocol.mission.created"
|
|
264
260
|
| "protocol.mission.updated"
|
|
261
|
+
| "protocol.mission.paid"
|
|
262
|
+
| "protocol.flight.submitted"
|
|
265
263
|
| "protocol.flight.reviewed"
|
|
266
264
|
| "*"
|
|
267
265
|
>;
|
|
@@ -289,62 +287,14 @@ export type GetWebhookStatusResponse = {
|
|
|
289
287
|
error?: string;
|
|
290
288
|
};
|
|
291
289
|
|
|
292
|
-
export type
|
|
290
|
+
export type ApiControllerGetHelloData = {
|
|
293
291
|
body?: never;
|
|
294
292
|
path?: never;
|
|
295
293
|
query?: never;
|
|
296
294
|
url: "/";
|
|
297
295
|
};
|
|
298
296
|
|
|
299
|
-
export type
|
|
300
|
-
200: unknown;
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
export type KeysControllerGetProvenanceCryptoKeyData = {
|
|
304
|
-
body?: never;
|
|
305
|
-
path?: never;
|
|
306
|
-
query?: never;
|
|
307
|
-
url: "/keys";
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
export type KeysControllerGetProvenanceCryptoKeyResponses = {
|
|
311
|
-
200: GetProvenanceCryptoKeyResponse;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
export type KeysControllerGetProvenanceCryptoKeyResponse =
|
|
315
|
-
KeysControllerGetProvenanceCryptoKeyResponses[keyof KeysControllerGetProvenanceCryptoKeyResponses];
|
|
316
|
-
|
|
317
|
-
export type QuotesControllerCreateQuoteData = {
|
|
318
|
-
body: CreateQuoteRequestDto;
|
|
319
|
-
path?: never;
|
|
320
|
-
query?: never;
|
|
321
|
-
url: "/quotes";
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
export type QuotesControllerCreateQuoteErrors = {
|
|
325
|
-
401: unknown;
|
|
326
|
-
403: unknown;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
export type QuotesControllerCreateQuoteResponses = {
|
|
330
|
-
201: unknown;
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
export type QuotesControllerGetQuoteData = {
|
|
334
|
-
body?: never;
|
|
335
|
-
path: {
|
|
336
|
-
id: string;
|
|
337
|
-
};
|
|
338
|
-
query?: never;
|
|
339
|
-
url: "/quotes/{id}";
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
export type QuotesControllerGetQuoteErrors = {
|
|
343
|
-
401: unknown;
|
|
344
|
-
403: unknown;
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
export type QuotesControllerGetQuoteResponses = {
|
|
297
|
+
export type ApiControllerGetHelloResponses = {
|
|
348
298
|
200: unknown;
|
|
349
299
|
};
|
|
350
300
|
|
|
@@ -425,119 +375,66 @@ export type ApiTokenControllerUpdateTokenResponses = {
|
|
|
425
375
|
export type ApiTokenControllerUpdateTokenResponse =
|
|
426
376
|
ApiTokenControllerUpdateTokenResponses[keyof ApiTokenControllerUpdateTokenResponses];
|
|
427
377
|
|
|
428
|
-
export type
|
|
429
|
-
body
|
|
430
|
-
path?: never;
|
|
431
|
-
query?: never;
|
|
432
|
-
url: "/missions";
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
export type MissionsControllerCreateMissionsErrors = {
|
|
436
|
-
/**
|
|
437
|
-
* Validation failed - invalid Zones, mission types, or times
|
|
438
|
-
*/
|
|
439
|
-
400: unknown;
|
|
440
|
-
/**
|
|
441
|
-
* Insufficient treasury spending limit
|
|
442
|
-
*/
|
|
443
|
-
403: unknown;
|
|
444
|
-
/**
|
|
445
|
-
* Internal server error during mission creation
|
|
446
|
-
*/
|
|
447
|
-
500: unknown;
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
export type MissionsControllerCreateMissionsResponses = {
|
|
451
|
-
/**
|
|
452
|
-
* Mission creation transaction queued successfully
|
|
453
|
-
*/
|
|
454
|
-
201: CreateMissionResponseDto;
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
export type MissionsControllerCreateMissionsResponse =
|
|
458
|
-
MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
459
|
-
|
|
460
|
-
export type MissionsControllerUpdateMissionsData = {
|
|
461
|
-
body: UpdateMissionsRequestDto;
|
|
378
|
+
export type ConditionsControllerGetSunAltitudeTimeLimitsData = {
|
|
379
|
+
body?: never;
|
|
462
380
|
path?: never;
|
|
463
|
-
query
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
export type MissionsControllerClaimRewardsData = {
|
|
478
|
-
body: ClaimRewardsRequestDto;
|
|
479
|
-
path: {
|
|
480
|
-
id: bigint;
|
|
381
|
+
query: {
|
|
382
|
+
/**
|
|
383
|
+
* Latitude in degress (decimal number)
|
|
384
|
+
*/
|
|
385
|
+
lat: number;
|
|
386
|
+
/**
|
|
387
|
+
* Longitude in degress (decimal number)
|
|
388
|
+
*/
|
|
389
|
+
lon: number;
|
|
390
|
+
/**
|
|
391
|
+
* Local time in ISO time format with correct timezone YYYY-MM-DDTHH:MM:SS+hh:mm
|
|
392
|
+
*/
|
|
393
|
+
time: Date;
|
|
481
394
|
};
|
|
482
|
-
|
|
483
|
-
url: "/missions/{id}/rewards";
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
export type MissionsControllerClaimRewardsErrors = {
|
|
487
|
-
/**
|
|
488
|
-
* Flight not approved or validation failed
|
|
489
|
-
*/
|
|
490
|
-
400: unknown;
|
|
491
|
-
/**
|
|
492
|
-
* Mission or Flight not found
|
|
493
|
-
*/
|
|
494
|
-
404: unknown;
|
|
495
|
-
/**
|
|
496
|
-
* Internal server error during reward claiming
|
|
497
|
-
*/
|
|
498
|
-
500: unknown;
|
|
395
|
+
url: "/conditions/sun-altitude";
|
|
499
396
|
};
|
|
500
397
|
|
|
501
|
-
export type
|
|
398
|
+
export type ConditionsControllerGetSunAltitudeTimeLimitsResponses = {
|
|
502
399
|
/**
|
|
503
|
-
*
|
|
400
|
+
* Returns sun altitude time limits for given coordinates and time
|
|
504
401
|
*/
|
|
505
|
-
200:
|
|
402
|
+
200: GetTimeLimitsForSunAltitudeResponse;
|
|
506
403
|
};
|
|
507
404
|
|
|
508
|
-
export type
|
|
509
|
-
|
|
405
|
+
export type ConditionsControllerGetSunAltitudeTimeLimitsResponse =
|
|
406
|
+
ConditionsControllerGetSunAltitudeTimeLimitsResponses[keyof ConditionsControllerGetSunAltitudeTimeLimitsResponses];
|
|
510
407
|
|
|
511
|
-
export type
|
|
408
|
+
export type FlightsControllerGenerateStorageKeyData = {
|
|
512
409
|
body?: never;
|
|
513
410
|
path?: never;
|
|
514
411
|
query: {
|
|
515
|
-
missionId: number;
|
|
412
|
+
missionId: string | number | bigint;
|
|
516
413
|
pilotAddress: string;
|
|
517
414
|
flightTimestamp?: string;
|
|
518
415
|
};
|
|
519
|
-
url: "/flights/
|
|
416
|
+
url: "/flights/storage-key";
|
|
520
417
|
};
|
|
521
418
|
|
|
522
|
-
export type
|
|
419
|
+
export type FlightsControllerGenerateStorageKeyErrors = {
|
|
523
420
|
401: unknown;
|
|
524
421
|
403: unknown;
|
|
525
422
|
};
|
|
526
423
|
|
|
527
|
-
export type
|
|
424
|
+
export type FlightsControllerGenerateStorageKeyResponses = {
|
|
528
425
|
/**
|
|
529
|
-
* Returns the generated
|
|
426
|
+
* Returns the generated storage key
|
|
530
427
|
*/
|
|
531
|
-
200:
|
|
428
|
+
200: string;
|
|
532
429
|
};
|
|
533
430
|
|
|
534
|
-
export type
|
|
535
|
-
|
|
431
|
+
export type FlightsControllerGenerateStorageKeyResponse =
|
|
432
|
+
FlightsControllerGenerateStorageKeyResponses[keyof FlightsControllerGenerateStorageKeyResponses];
|
|
536
433
|
|
|
537
434
|
export type FlightsControllerGetFlightData = {
|
|
538
435
|
body?: never;
|
|
539
436
|
path: {
|
|
540
|
-
flightId:
|
|
437
|
+
flightId: bigint;
|
|
541
438
|
};
|
|
542
439
|
query?: never;
|
|
543
440
|
url: "/flights/{flightId}";
|
|
@@ -560,11 +457,9 @@ export type FlightsControllerGetFlightResponse =
|
|
|
560
457
|
|
|
561
458
|
export type FlightsControllerCreatePresignedUrlsData = {
|
|
562
459
|
body: CreateFileRequestDto;
|
|
563
|
-
path
|
|
564
|
-
flightId: number;
|
|
565
|
-
};
|
|
460
|
+
path?: never;
|
|
566
461
|
query?: never;
|
|
567
|
-
url: "/flights/
|
|
462
|
+
url: "/flights/files";
|
|
568
463
|
};
|
|
569
464
|
|
|
570
465
|
export type FlightsControllerCreatePresignedUrlsErrors = {
|
|
@@ -583,7 +478,7 @@ export type FlightsControllerCreatePresignedUrlsResponse =
|
|
|
583
478
|
FlightsControllerCreatePresignedUrlsResponses[keyof FlightsControllerCreatePresignedUrlsResponses];
|
|
584
479
|
|
|
585
480
|
export type FlightsControllerValidateFlightData = {
|
|
586
|
-
body:
|
|
481
|
+
body: ValidateFlightRequestDto;
|
|
587
482
|
path?: never;
|
|
588
483
|
query?: never;
|
|
589
484
|
url: "/flights";
|
|
@@ -596,7 +491,7 @@ export type FlightsControllerValidateFlightErrors = {
|
|
|
596
491
|
|
|
597
492
|
export type FlightsControllerValidateFlightResponses = {
|
|
598
493
|
/**
|
|
599
|
-
*
|
|
494
|
+
* Result to track queued flight through its validation
|
|
600
495
|
*/
|
|
601
496
|
200: ValidateFlightResponseDto;
|
|
602
497
|
};
|
|
@@ -604,35 +499,102 @@ export type FlightsControllerValidateFlightResponses = {
|
|
|
604
499
|
export type FlightsControllerValidateFlightResponse =
|
|
605
500
|
FlightsControllerValidateFlightResponses[keyof FlightsControllerValidateFlightResponses];
|
|
606
501
|
|
|
607
|
-
export type
|
|
502
|
+
export type KeysControllerGetProvenanceCryptoKeyData = {
|
|
608
503
|
body?: never;
|
|
609
504
|
path?: never;
|
|
610
|
-
query
|
|
611
|
-
|
|
612
|
-
* Latitude in degress (decimal number)
|
|
613
|
-
*/
|
|
614
|
-
lat: number;
|
|
615
|
-
/**
|
|
616
|
-
* Longitude in degress (decimal number)
|
|
617
|
-
*/
|
|
618
|
-
lon: number;
|
|
619
|
-
/**
|
|
620
|
-
* Local time in ISO time format with correct timezone YYYY-MM-DDTHH:MM:SS+hh:mm
|
|
621
|
-
*/
|
|
622
|
-
time: Date;
|
|
623
|
-
};
|
|
624
|
-
url: "/conditions/sun-altitude";
|
|
505
|
+
query?: never;
|
|
506
|
+
url: "/keys";
|
|
625
507
|
};
|
|
626
508
|
|
|
627
|
-
export type
|
|
509
|
+
export type KeysControllerGetProvenanceCryptoKeyResponses = {
|
|
510
|
+
200: GetProvenanceCryptoKeyResponse;
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
export type KeysControllerGetProvenanceCryptoKeyResponse =
|
|
514
|
+
KeysControllerGetProvenanceCryptoKeyResponses[keyof KeysControllerGetProvenanceCryptoKeyResponses];
|
|
515
|
+
|
|
516
|
+
export type MissionsControllerCreateMissionsData = {
|
|
517
|
+
body: CreateMissionRequestDto;
|
|
518
|
+
path?: never;
|
|
519
|
+
query?: never;
|
|
520
|
+
url: "/missions";
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export type MissionsControllerCreateMissionsErrors = {
|
|
628
524
|
/**
|
|
629
|
-
*
|
|
525
|
+
* Validation failed - invalid Zones, mission types, or times
|
|
630
526
|
*/
|
|
631
|
-
|
|
527
|
+
400: unknown;
|
|
528
|
+
/**
|
|
529
|
+
* Insufficient treasury spending limit
|
|
530
|
+
*/
|
|
531
|
+
403: unknown;
|
|
532
|
+
/**
|
|
533
|
+
* Internal server error during mission creation
|
|
534
|
+
*/
|
|
535
|
+
500: unknown;
|
|
632
536
|
};
|
|
633
537
|
|
|
634
|
-
export type
|
|
635
|
-
|
|
538
|
+
export type MissionsControllerCreateMissionsResponses = {
|
|
539
|
+
/**
|
|
540
|
+
* Transaction to create mission, queued successfully
|
|
541
|
+
*/
|
|
542
|
+
201: CreateMissionResponseDto;
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
export type MissionsControllerCreateMissionsResponse =
|
|
546
|
+
MissionsControllerCreateMissionsResponses[keyof MissionsControllerCreateMissionsResponses];
|
|
547
|
+
|
|
548
|
+
export type MissionsControllerUpdateMissionsData = {
|
|
549
|
+
body: UpdateMissionsRequestDto;
|
|
550
|
+
path?: never;
|
|
551
|
+
query?: never;
|
|
552
|
+
url: "/missions";
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
export type MissionsControllerUpdateMissionsResponses = {
|
|
556
|
+
/**
|
|
557
|
+
* Missions update transaction queued successfully
|
|
558
|
+
*/
|
|
559
|
+
200: UpdateMissionsResponseDto;
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
export type MissionsControllerUpdateMissionsResponse =
|
|
563
|
+
MissionsControllerUpdateMissionsResponses[keyof MissionsControllerUpdateMissionsResponses];
|
|
564
|
+
|
|
565
|
+
export type QuotesControllerCreateQuoteData = {
|
|
566
|
+
body: CreateQuoteRequestDto;
|
|
567
|
+
path?: never;
|
|
568
|
+
query?: never;
|
|
569
|
+
url: "/quotes";
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
export type QuotesControllerCreateQuoteErrors = {
|
|
573
|
+
401: unknown;
|
|
574
|
+
403: unknown;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
export type QuotesControllerCreateQuoteResponses = {
|
|
578
|
+
201: unknown;
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
export type QuotesControllerGetQuoteData = {
|
|
582
|
+
body?: never;
|
|
583
|
+
path: {
|
|
584
|
+
id: string;
|
|
585
|
+
};
|
|
586
|
+
query?: never;
|
|
587
|
+
url: "/quotes/{id}";
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
export type QuotesControllerGetQuoteErrors = {
|
|
591
|
+
401: unknown;
|
|
592
|
+
403: unknown;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
export type QuotesControllerGetQuoteResponses = {
|
|
596
|
+
200: unknown;
|
|
597
|
+
};
|
|
636
598
|
|
|
637
599
|
export type SchemaControllerGetEventSchemaData = {
|
|
638
600
|
body?: never;
|