@layer-drone/protocol 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +185 -17
- package/dist/index.d.ts +185 -17
- package/dist/index.js +114 -8
- package/dist/index.mjs +110 -7
- package/package.json +1 -1
- package/src/client/client/types.ts +4 -5
- package/src/client/core/pathSerializer.ts +1 -2
- package/src/client/sdk.gen.ts +119 -17
- package/src/client/transformers.gen.ts +75 -0
- package/src/client/types.gen.ts +213 -15
package/src/client/types.gen.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type CreateApiTokenResponseDto = {
|
|
|
9
9
|
scopes: Array<
|
|
10
10
|
| "manageTokens"
|
|
11
11
|
| "manageFlights"
|
|
12
|
+
| "manageFlightReviews"
|
|
12
13
|
| "manageFlightPlans"
|
|
13
14
|
| "manageMissions"
|
|
14
15
|
| "manageVaults"
|
|
@@ -25,6 +26,7 @@ export type CreateApiTokenRequestDto = {
|
|
|
25
26
|
scopes: Array<
|
|
26
27
|
| "manageTokens"
|
|
27
28
|
| "manageFlights"
|
|
29
|
+
| "manageFlightReviews"
|
|
28
30
|
| "manageFlightPlans"
|
|
29
31
|
| "manageMissions"
|
|
30
32
|
| "manageVaults"
|
|
@@ -42,6 +44,7 @@ export type UpdateApiTokenRequestDto = {
|
|
|
42
44
|
scopes?: Array<
|
|
43
45
|
| "manageTokens"
|
|
44
46
|
| "manageFlights"
|
|
47
|
+
| "manageFlightReviews"
|
|
45
48
|
| "manageFlightPlans"
|
|
46
49
|
| "manageMissions"
|
|
47
50
|
| "manageVaults"
|
|
@@ -62,6 +65,7 @@ export type UpdateApiTokenResponseDto = {
|
|
|
62
65
|
scopes: Array<
|
|
63
66
|
| "manageTokens"
|
|
64
67
|
| "manageFlights"
|
|
68
|
+
| "manageFlightReviews"
|
|
65
69
|
| "manageFlightPlans"
|
|
66
70
|
| "manageMissions"
|
|
67
71
|
| "manageVaults"
|
|
@@ -502,10 +506,43 @@ export type CreateFlightPlanResponse = {
|
|
|
502
506
|
updated_at: Date;
|
|
503
507
|
};
|
|
504
508
|
|
|
509
|
+
export type GetFlightReviewResponseDto = {
|
|
510
|
+
flightId: string;
|
|
511
|
+
owner: string;
|
|
512
|
+
validator: string;
|
|
513
|
+
isApproved: boolean;
|
|
514
|
+
storageKey: string;
|
|
515
|
+
filesHash: string;
|
|
516
|
+
missionId: string;
|
|
517
|
+
validationLogUri: string;
|
|
518
|
+
contractAddress: string;
|
|
519
|
+
chainId: number;
|
|
520
|
+
createdAt: Date;
|
|
521
|
+
updatedAt: Date;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
export type GetFlightReviewsResponseDto = {
|
|
525
|
+
flightReviews: Array<{
|
|
526
|
+
flightId: string;
|
|
527
|
+
owner: string;
|
|
528
|
+
validator: string;
|
|
529
|
+
isApproved: boolean;
|
|
530
|
+
storageKey: string;
|
|
531
|
+
filesHash: string;
|
|
532
|
+
missionId: string;
|
|
533
|
+
validationLogUri: string;
|
|
534
|
+
contractAddress: string;
|
|
535
|
+
chainId: number;
|
|
536
|
+
createdAt: Date;
|
|
537
|
+
updatedAt: Date;
|
|
538
|
+
}>;
|
|
539
|
+
};
|
|
540
|
+
|
|
505
541
|
export type GetProvenanceCryptoKeyResponse = {
|
|
506
542
|
KeyId: string;
|
|
507
543
|
PublicKey: string;
|
|
508
544
|
KeySpec?:
|
|
545
|
+
| "ECC_NIST_EDWARDS25519"
|
|
509
546
|
| "ECC_NIST_P256"
|
|
510
547
|
| "ECC_NIST_P384"
|
|
511
548
|
| "ECC_NIST_P521"
|
|
@@ -514,6 +551,9 @@ export type GetProvenanceCryptoKeyResponse = {
|
|
|
514
551
|
| "HMAC_256"
|
|
515
552
|
| "HMAC_384"
|
|
516
553
|
| "HMAC_512"
|
|
554
|
+
| "ML_DSA_44"
|
|
555
|
+
| "ML_DSA_65"
|
|
556
|
+
| "ML_DSA_87"
|
|
517
557
|
| "RSA_2048"
|
|
518
558
|
| "RSA_3072"
|
|
519
559
|
| "RSA_4096"
|
|
@@ -529,6 +569,77 @@ export type GetProvenanceCryptoKeyResponse = {
|
|
|
529
569
|
>;
|
|
530
570
|
};
|
|
531
571
|
|
|
572
|
+
export type GetMissionResponseDto = {
|
|
573
|
+
id: string;
|
|
574
|
+
mission: {
|
|
575
|
+
id: string;
|
|
576
|
+
vaultId: string;
|
|
577
|
+
requestor: string;
|
|
578
|
+
zoneId: string;
|
|
579
|
+
isOpen: boolean;
|
|
580
|
+
flightPlanId: number;
|
|
581
|
+
isReservable: boolean;
|
|
582
|
+
tags: {
|
|
583
|
+
[key: string]: string;
|
|
584
|
+
};
|
|
585
|
+
captureStartTime: Date;
|
|
586
|
+
captureEndTime: Date;
|
|
587
|
+
campaigns: Array<string>;
|
|
588
|
+
contractAddress: string;
|
|
589
|
+
chainId: number;
|
|
590
|
+
createdAt: Date;
|
|
591
|
+
updatedAt: Date;
|
|
592
|
+
};
|
|
593
|
+
vault?: {
|
|
594
|
+
id: string;
|
|
595
|
+
amount: string;
|
|
596
|
+
collateralTokenAddress: string;
|
|
597
|
+
funder: string;
|
|
598
|
+
contractAddress: string;
|
|
599
|
+
chainId: number;
|
|
600
|
+
createdAt: Date;
|
|
601
|
+
updatedAt: Date;
|
|
602
|
+
};
|
|
603
|
+
payout?: null;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
export type GetMissionsResponseDto = {
|
|
607
|
+
missions: Array<{
|
|
608
|
+
id: string;
|
|
609
|
+
mission: {
|
|
610
|
+
id: string;
|
|
611
|
+
vaultId: string;
|
|
612
|
+
requestor: string;
|
|
613
|
+
zoneId: string;
|
|
614
|
+
isOpen: boolean;
|
|
615
|
+
flightPlanId: number;
|
|
616
|
+
isReservable: boolean;
|
|
617
|
+
tags: {
|
|
618
|
+
[key: string]: string;
|
|
619
|
+
};
|
|
620
|
+
captureStartTime: Date;
|
|
621
|
+
captureEndTime: Date;
|
|
622
|
+
campaigns: Array<string>;
|
|
623
|
+
contractAddress: string;
|
|
624
|
+
chainId: number;
|
|
625
|
+
createdAt: Date;
|
|
626
|
+
updatedAt: Date;
|
|
627
|
+
};
|
|
628
|
+
vault?: {
|
|
629
|
+
id: string;
|
|
630
|
+
amount: string;
|
|
631
|
+
collateralTokenAddress: string;
|
|
632
|
+
funder: string;
|
|
633
|
+
contractAddress: string;
|
|
634
|
+
chainId: number;
|
|
635
|
+
createdAt: Date;
|
|
636
|
+
updatedAt: Date;
|
|
637
|
+
};
|
|
638
|
+
payout?: null;
|
|
639
|
+
}>;
|
|
640
|
+
hasNextPage: boolean;
|
|
641
|
+
};
|
|
642
|
+
|
|
532
643
|
export type CreateMissionRequestDto = {
|
|
533
644
|
missions: Array<{
|
|
534
645
|
zoneId: string;
|
|
@@ -539,7 +650,7 @@ export type CreateMissionRequestDto = {
|
|
|
539
650
|
endTime: Date;
|
|
540
651
|
collateralToken: string;
|
|
541
652
|
decimals: number;
|
|
542
|
-
isReservable
|
|
653
|
+
isReservable?: boolean;
|
|
543
654
|
tags?: {
|
|
544
655
|
[key: string]: string;
|
|
545
656
|
};
|
|
@@ -555,6 +666,7 @@ export type CreateMissionResponseDto = {
|
|
|
555
666
|
id: string;
|
|
556
667
|
vaultId: string;
|
|
557
668
|
amount: string;
|
|
669
|
+
collateralToken: string;
|
|
558
670
|
zoneId: string;
|
|
559
671
|
flightPlanId: number;
|
|
560
672
|
campaigns: Array<string>;
|
|
@@ -1323,6 +1435,53 @@ export type FlightPlansControllerGetResponses = {
|
|
|
1323
1435
|
export type FlightPlansControllerGetResponse =
|
|
1324
1436
|
FlightPlansControllerGetResponses[keyof FlightPlansControllerGetResponses];
|
|
1325
1437
|
|
|
1438
|
+
export type FlightReviewsControllerGetFlightReviewData = {
|
|
1439
|
+
body?: never;
|
|
1440
|
+
path: {
|
|
1441
|
+
id: bigint;
|
|
1442
|
+
};
|
|
1443
|
+
query?: never;
|
|
1444
|
+
url: "/flight-reviews/{id}";
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
export type FlightReviewsControllerGetFlightReviewErrors = {
|
|
1448
|
+
401: unknown;
|
|
1449
|
+
403: unknown;
|
|
1450
|
+
/**
|
|
1451
|
+
* Flight review not found
|
|
1452
|
+
*/
|
|
1453
|
+
404: unknown;
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
export type FlightReviewsControllerGetFlightReviewResponses = {
|
|
1457
|
+
200: GetFlightReviewResponseDto;
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
export type FlightReviewsControllerGetFlightReviewResponse =
|
|
1461
|
+
FlightReviewsControllerGetFlightReviewResponses[keyof FlightReviewsControllerGetFlightReviewResponses];
|
|
1462
|
+
|
|
1463
|
+
export type FlightReviewsControllerGetFlightReviewsData = {
|
|
1464
|
+
body?: never;
|
|
1465
|
+
path?: never;
|
|
1466
|
+
query: {
|
|
1467
|
+
updated_at_gt: Date;
|
|
1468
|
+
updated_at_lt: Date;
|
|
1469
|
+
};
|
|
1470
|
+
url: "/flight-reviews";
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
export type FlightReviewsControllerGetFlightReviewsErrors = {
|
|
1474
|
+
401: unknown;
|
|
1475
|
+
403: unknown;
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
export type FlightReviewsControllerGetFlightReviewsResponses = {
|
|
1479
|
+
200: GetFlightReviewsResponseDto;
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
export type FlightReviewsControllerGetFlightReviewsResponse =
|
|
1483
|
+
FlightReviewsControllerGetFlightReviewsResponses[keyof FlightReviewsControllerGetFlightReviewsResponses];
|
|
1484
|
+
|
|
1326
1485
|
export type KeysControllerGetProvenanceCryptoKeyData = {
|
|
1327
1486
|
body?: never;
|
|
1328
1487
|
path?: never;
|
|
@@ -1337,6 +1496,59 @@ export type KeysControllerGetProvenanceCryptoKeyResponses = {
|
|
|
1337
1496
|
export type KeysControllerGetProvenanceCryptoKeyResponse =
|
|
1338
1497
|
KeysControllerGetProvenanceCryptoKeyResponses[keyof KeysControllerGetProvenanceCryptoKeyResponses];
|
|
1339
1498
|
|
|
1499
|
+
export type MissionsControllerGetMissionData = {
|
|
1500
|
+
body?: never;
|
|
1501
|
+
path: {
|
|
1502
|
+
id: string;
|
|
1503
|
+
};
|
|
1504
|
+
query?: never;
|
|
1505
|
+
url: "/missions/{id}";
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
export type MissionsControllerGetMissionErrors = {
|
|
1509
|
+
401: unknown;
|
|
1510
|
+
403: unknown;
|
|
1511
|
+
/**
|
|
1512
|
+
* Mission not found
|
|
1513
|
+
*/
|
|
1514
|
+
404: unknown;
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
export type MissionsControllerGetMissionResponses = {
|
|
1518
|
+
200: GetMissionResponseDto;
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
export type MissionsControllerGetMissionResponse =
|
|
1522
|
+
MissionsControllerGetMissionResponses[keyof MissionsControllerGetMissionResponses];
|
|
1523
|
+
|
|
1524
|
+
export type MissionsControllerGetMissionsData = {
|
|
1525
|
+
body?: never;
|
|
1526
|
+
path?: never;
|
|
1527
|
+
query?: {
|
|
1528
|
+
updatedAt_gt?: Date;
|
|
1529
|
+
updatedAt_lt?: Date;
|
|
1530
|
+
createdAt_gt?: Date;
|
|
1531
|
+
createdAt_lt?: Date;
|
|
1532
|
+
isOpen?: string;
|
|
1533
|
+
zoneIds?: string | Array<string>;
|
|
1534
|
+
flightPlanId?: number;
|
|
1535
|
+
page?: number;
|
|
1536
|
+
};
|
|
1537
|
+
url: "/missions";
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
export type MissionsControllerGetMissionsErrors = {
|
|
1541
|
+
401: unknown;
|
|
1542
|
+
403: unknown;
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
export type MissionsControllerGetMissionsResponses = {
|
|
1546
|
+
200: GetMissionsResponseDto;
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
export type MissionsControllerGetMissionsResponse =
|
|
1550
|
+
MissionsControllerGetMissionsResponses[keyof MissionsControllerGetMissionsResponses];
|
|
1551
|
+
|
|
1340
1552
|
export type MissionsControllerCreateMissionsData = {
|
|
1341
1553
|
body: CreateMissionRequestDto;
|
|
1342
1554
|
path?: never;
|
|
@@ -1494,20 +1706,6 @@ export type SchemaControllerGetEventSchemaResponses = {
|
|
|
1494
1706
|
200: unknown;
|
|
1495
1707
|
};
|
|
1496
1708
|
|
|
1497
|
-
export type SchemaControllerGetFlightPlanSchemaData = {
|
|
1498
|
-
body?: never;
|
|
1499
|
-
path?: never;
|
|
1500
|
-
query?: never;
|
|
1501
|
-
url: "/schema/flight-plan";
|
|
1502
|
-
};
|
|
1503
|
-
|
|
1504
|
-
export type SchemaControllerGetFlightPlanSchemaResponses = {
|
|
1505
|
-
/**
|
|
1506
|
-
* Get flight plan schema
|
|
1507
|
-
*/
|
|
1508
|
-
200: unknown;
|
|
1509
|
-
};
|
|
1510
|
-
|
|
1511
1709
|
export type VaultsControllerCreateVaultsData = {
|
|
1512
1710
|
body: CreateVaultsRequestDto;
|
|
1513
1711
|
path?: never;
|