@layer-drone/protocol 2.1.0 → 2.3.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/package.json +2 -1
- package/src/client/sdk.gen.ts +229 -0
- package/src/client/transformers.gen.ts +84 -0
- package/src/client/types.gen.ts +330 -15
- package/src/event/types.gen.ts +9 -0
- package/dist/index.d.mts +0 -7086
- package/dist/index.d.ts +0 -7086
- package/dist/index.js +0 -4046
- package/dist/index.mjs +0 -3858
package/src/client/types.gen.ts
CHANGED
|
@@ -863,7 +863,8 @@ export type CreateProposalRequestDto = {
|
|
|
863
863
|
payload: {
|
|
864
864
|
zone_id: string;
|
|
865
865
|
campaigns: Array<string>;
|
|
866
|
-
flight_plan_id
|
|
866
|
+
flight_plan_id?: number;
|
|
867
|
+
flight_plan_slug?: string;
|
|
867
868
|
amount: string | number | bigint;
|
|
868
869
|
decimals: number;
|
|
869
870
|
capture_start_time: Date;
|
|
@@ -1293,6 +1294,8 @@ export type MissionFulfillmentGetFlightPlansResponse = {
|
|
|
1293
1294
|
data: Array<{
|
|
1294
1295
|
id: string;
|
|
1295
1296
|
name: string;
|
|
1297
|
+
family: "Map" | "Multi Panorama" | "Panorama" | "Grid Map" | "Hybrid";
|
|
1298
|
+
slug: string | null;
|
|
1296
1299
|
description: string | null;
|
|
1297
1300
|
base_energy_usage: number;
|
|
1298
1301
|
base_duration: number;
|
|
@@ -1340,6 +1343,8 @@ export type MissionFulfillmentGetFlightPlansResponse = {
|
|
|
1340
1343
|
export type FlightPlanResponse = {
|
|
1341
1344
|
id: string;
|
|
1342
1345
|
name: string;
|
|
1346
|
+
family: "Map" | "Multi Panorama" | "Panorama" | "Grid Map" | "Hybrid";
|
|
1347
|
+
slug: string | null;
|
|
1343
1348
|
description: string | null;
|
|
1344
1349
|
base_energy_usage: number;
|
|
1345
1350
|
base_duration: number;
|
|
@@ -1385,6 +1390,7 @@ export type FlightPlanResponse = {
|
|
|
1385
1390
|
|
|
1386
1391
|
export type MissionFulfillmentCreateFlightPlanBody = {
|
|
1387
1392
|
name: string;
|
|
1393
|
+
slug: string;
|
|
1388
1394
|
description?: string | null;
|
|
1389
1395
|
base_energy_usage: number;
|
|
1390
1396
|
base_duration: number;
|
|
@@ -1439,7 +1445,12 @@ export type FlightPathIntendedResponse = {
|
|
|
1439
1445
|
features: Array<unknown>;
|
|
1440
1446
|
metadata: {
|
|
1441
1447
|
flightPlanType: string;
|
|
1442
|
-
flightPlanId
|
|
1448
|
+
flightPlanId?: number;
|
|
1449
|
+
mfFlightPlan?: {
|
|
1450
|
+
id: string;
|
|
1451
|
+
slug?: string | null;
|
|
1452
|
+
name?: string;
|
|
1453
|
+
};
|
|
1443
1454
|
zoneHash: string;
|
|
1444
1455
|
imageCount: number;
|
|
1445
1456
|
pathVersion: number;
|
|
@@ -1453,6 +1464,7 @@ export type FlightPathIntendedResponse = {
|
|
|
1453
1464
|
|
|
1454
1465
|
export type UpdateFlightPlanBody = {
|
|
1455
1466
|
name: string;
|
|
1467
|
+
slug: string;
|
|
1456
1468
|
description?: string | null;
|
|
1457
1469
|
base_energy_usage: number;
|
|
1458
1470
|
base_duration: number;
|
|
@@ -1546,6 +1558,7 @@ export type CreateMissionsBody = {
|
|
|
1546
1558
|
capture_start_time: Date;
|
|
1547
1559
|
capture_end_time: Date;
|
|
1548
1560
|
holding_period_seconds?: number | null;
|
|
1561
|
+
reservable?: boolean;
|
|
1549
1562
|
tags?: {
|
|
1550
1563
|
[key: string]: string;
|
|
1551
1564
|
};
|
|
@@ -1571,6 +1584,7 @@ export type CreateMissionsResponse = {
|
|
|
1571
1584
|
| "completed";
|
|
1572
1585
|
zone_id: string;
|
|
1573
1586
|
flight_plan_id: string;
|
|
1587
|
+
campaign_ids: Array<string>;
|
|
1574
1588
|
chain_mission_id: string | null;
|
|
1575
1589
|
rewards: Array<{
|
|
1576
1590
|
denomination: "usdc" | "usd" | "cad" | "rp";
|
|
@@ -1586,6 +1600,7 @@ export type CreateMissionsResponse = {
|
|
|
1586
1600
|
capture_start_time: Date;
|
|
1587
1601
|
capture_end_time: Date;
|
|
1588
1602
|
holding_period_seconds: number;
|
|
1603
|
+
reservable: boolean;
|
|
1589
1604
|
tags: {
|
|
1590
1605
|
[key: string]: string;
|
|
1591
1606
|
};
|
|
@@ -1613,7 +1628,17 @@ export type CreateMissionsResponse = {
|
|
|
1613
1628
|
pilot_address: string;
|
|
1614
1629
|
expires_at: Date;
|
|
1615
1630
|
released_at: Date | null;
|
|
1616
|
-
released_reason: "expired" | "completed";
|
|
1631
|
+
released_reason: "expired" | "completed" | "cancelled";
|
|
1632
|
+
created_at: Date;
|
|
1633
|
+
updated_at: Date;
|
|
1634
|
+
} | null;
|
|
1635
|
+
reservation?: {
|
|
1636
|
+
id: string;
|
|
1637
|
+
mission_id: string;
|
|
1638
|
+
mission_hold_id: string;
|
|
1639
|
+
pilot_address: string;
|
|
1640
|
+
status: "active" | "completed" | "cancelled" | "expired";
|
|
1641
|
+
ended_at: Date | null;
|
|
1617
1642
|
created_at: Date;
|
|
1618
1643
|
updated_at: Date;
|
|
1619
1644
|
} | null;
|
|
@@ -1627,8 +1652,20 @@ export type CreateMissionsResponse = {
|
|
|
1627
1652
|
error: {
|
|
1628
1653
|
code: string;
|
|
1629
1654
|
message: string;
|
|
1655
|
+
subject?: string;
|
|
1630
1656
|
};
|
|
1631
1657
|
}
|
|
1658
|
+
| {
|
|
1659
|
+
status: "validated";
|
|
1660
|
+
}
|
|
1661
|
+
| {
|
|
1662
|
+
status: "invalid";
|
|
1663
|
+
errors: Array<{
|
|
1664
|
+
code: string;
|
|
1665
|
+
message: string;
|
|
1666
|
+
subject?: string;
|
|
1667
|
+
}>;
|
|
1668
|
+
}
|
|
1632
1669
|
>;
|
|
1633
1670
|
};
|
|
1634
1671
|
|
|
@@ -1647,6 +1684,7 @@ export type ListMissionsResponse = {
|
|
|
1647
1684
|
| "completed";
|
|
1648
1685
|
zone_id: string;
|
|
1649
1686
|
flight_plan_id: string;
|
|
1687
|
+
campaign_ids: Array<string>;
|
|
1650
1688
|
chain_mission_id: string | null;
|
|
1651
1689
|
rewards: Array<{
|
|
1652
1690
|
denomination: "usdc" | "usd" | "cad" | "rp";
|
|
@@ -1657,6 +1695,7 @@ export type ListMissionsResponse = {
|
|
|
1657
1695
|
capture_start_time: Date;
|
|
1658
1696
|
capture_end_time: Date;
|
|
1659
1697
|
holding_period_seconds: number;
|
|
1698
|
+
reservable: boolean;
|
|
1660
1699
|
tags: {
|
|
1661
1700
|
[key: string]: string;
|
|
1662
1701
|
};
|
|
@@ -1678,7 +1717,17 @@ export type ListMissionsResponse = {
|
|
|
1678
1717
|
pilot_address: string;
|
|
1679
1718
|
expires_at: Date;
|
|
1680
1719
|
released_at: Date | null;
|
|
1681
|
-
released_reason: "expired" | "completed";
|
|
1720
|
+
released_reason: "expired" | "completed" | "cancelled";
|
|
1721
|
+
created_at: Date;
|
|
1722
|
+
updated_at: Date;
|
|
1723
|
+
} | null;
|
|
1724
|
+
reservation?: {
|
|
1725
|
+
id: string;
|
|
1726
|
+
mission_id: string;
|
|
1727
|
+
mission_hold_id: string;
|
|
1728
|
+
pilot_address: string;
|
|
1729
|
+
status: "active" | "completed" | "cancelled" | "expired";
|
|
1730
|
+
ended_at: Date | null;
|
|
1682
1731
|
created_at: Date;
|
|
1683
1732
|
updated_at: Date;
|
|
1684
1733
|
} | null;
|
|
@@ -1703,6 +1752,7 @@ export type MissionResponse = {
|
|
|
1703
1752
|
| "completed";
|
|
1704
1753
|
zone_id: string;
|
|
1705
1754
|
flight_plan_id: string;
|
|
1755
|
+
campaign_ids: Array<string>;
|
|
1706
1756
|
chain_mission_id: string | null;
|
|
1707
1757
|
rewards: Array<{
|
|
1708
1758
|
denomination: "usdc" | "usd" | "cad" | "rp";
|
|
@@ -1713,6 +1763,7 @@ export type MissionResponse = {
|
|
|
1713
1763
|
capture_start_time: Date;
|
|
1714
1764
|
capture_end_time: Date;
|
|
1715
1765
|
holding_period_seconds: number;
|
|
1766
|
+
reservable: boolean;
|
|
1716
1767
|
tags: {
|
|
1717
1768
|
[key: string]: string;
|
|
1718
1769
|
};
|
|
@@ -1734,7 +1785,17 @@ export type MissionResponse = {
|
|
|
1734
1785
|
pilot_address: string;
|
|
1735
1786
|
expires_at: Date;
|
|
1736
1787
|
released_at: Date | null;
|
|
1737
|
-
released_reason: "expired" | "completed";
|
|
1788
|
+
released_reason: "expired" | "completed" | "cancelled";
|
|
1789
|
+
created_at: Date;
|
|
1790
|
+
updated_at: Date;
|
|
1791
|
+
} | null;
|
|
1792
|
+
reservation?: {
|
|
1793
|
+
id: string;
|
|
1794
|
+
mission_id: string;
|
|
1795
|
+
mission_hold_id: string;
|
|
1796
|
+
pilot_address: string;
|
|
1797
|
+
status: "active" | "completed" | "cancelled" | "expired";
|
|
1798
|
+
ended_at: Date | null;
|
|
1738
1799
|
created_at: Date;
|
|
1739
1800
|
updated_at: Date;
|
|
1740
1801
|
} | null;
|
|
@@ -1750,6 +1811,47 @@ export type UpdateMissionBody = {
|
|
|
1750
1811
|
}>;
|
|
1751
1812
|
flight_plan_id?: string;
|
|
1752
1813
|
campaign_ids?: Array<string>;
|
|
1814
|
+
reservable?: boolean;
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
export type CreateReservationBody = {
|
|
1818
|
+
mission_id: string;
|
|
1819
|
+
pilot_address: string;
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
export type ReservationResponse = {
|
|
1823
|
+
id: string;
|
|
1824
|
+
mission_id: string;
|
|
1825
|
+
mission_hold_id: string;
|
|
1826
|
+
pilot_address: string;
|
|
1827
|
+
status: "active" | "completed" | "cancelled" | "expired";
|
|
1828
|
+
ended_at: Date | null;
|
|
1829
|
+
created_at: Date;
|
|
1830
|
+
updated_at: Date;
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
export type ListReservationsResponse = {
|
|
1834
|
+
data: Array<{
|
|
1835
|
+
id: string;
|
|
1836
|
+
mission_id: string;
|
|
1837
|
+
mission_hold_id: string;
|
|
1838
|
+
pilot_address: string;
|
|
1839
|
+
status: "active" | "completed" | "cancelled" | "expired";
|
|
1840
|
+
ended_at: Date | null;
|
|
1841
|
+
created_at: Date;
|
|
1842
|
+
updated_at: Date;
|
|
1843
|
+
}>;
|
|
1844
|
+
has_next_page: boolean;
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
export type CancelReservationBody = {
|
|
1848
|
+
pilot_address: string;
|
|
1849
|
+
};
|
|
1850
|
+
|
|
1851
|
+
export type PilotReputationResponse = {
|
|
1852
|
+
pilot_address: string;
|
|
1853
|
+
points: number;
|
|
1854
|
+
rating: number | null;
|
|
1753
1855
|
};
|
|
1754
1856
|
|
|
1755
1857
|
export type CreateFlightBody = {
|
|
@@ -1864,7 +1966,10 @@ export type FlightReviewResponse = {
|
|
|
1864
1966
|
};
|
|
1865
1967
|
|
|
1866
1968
|
export type ImageUploadUrlsBody = {
|
|
1867
|
-
|
|
1969
|
+
files: Array<{
|
|
1970
|
+
filename: string;
|
|
1971
|
+
checksum: string;
|
|
1972
|
+
}>;
|
|
1868
1973
|
};
|
|
1869
1974
|
|
|
1870
1975
|
export type ImageUploadUrlsResponse = {
|
|
@@ -1921,6 +2026,22 @@ export type ListCampaignsResponseDto = {
|
|
|
1921
2026
|
has_next_page: boolean;
|
|
1922
2027
|
};
|
|
1923
2028
|
|
|
2029
|
+
export type ListCampaignZonesResponseDto = {
|
|
2030
|
+
data: Array<{
|
|
2031
|
+
zone_id: string;
|
|
2032
|
+
distance: number | null;
|
|
2033
|
+
geometry?: {
|
|
2034
|
+
[key: string]: unknown;
|
|
2035
|
+
} | null;
|
|
2036
|
+
rewards: Array<{
|
|
2037
|
+
denomination: "usdc" | "usd" | "cad" | "rp";
|
|
2038
|
+
total: string;
|
|
2039
|
+
remaining: string;
|
|
2040
|
+
}>;
|
|
2041
|
+
}>;
|
|
2042
|
+
has_next_page: boolean;
|
|
2043
|
+
};
|
|
2044
|
+
|
|
1924
2045
|
export type UpdateCampaignRequestDto = {
|
|
1925
2046
|
name: string;
|
|
1926
2047
|
};
|
|
@@ -3593,6 +3714,14 @@ export type SubmitProposalErrors = {
|
|
|
3593
3714
|
400: unknown;
|
|
3594
3715
|
401: unknown;
|
|
3595
3716
|
403: unknown;
|
|
3717
|
+
/**
|
|
3718
|
+
* One or more changes would fail upstream (SN-2851). proposal-service's body is forwarded as-is: every problem, each naming the change by its index in the submitted array. No proposal was created.
|
|
3719
|
+
*/
|
|
3720
|
+
422: unknown;
|
|
3721
|
+
/**
|
|
3722
|
+
* proposal-service could not validate the changes against upstream, so it created nothing rather than accept a proposal it could not check.
|
|
3723
|
+
*/
|
|
3724
|
+
503: unknown;
|
|
3596
3725
|
};
|
|
3597
3726
|
|
|
3598
3727
|
export type SubmitProposalResponses = {
|
|
@@ -4735,6 +4864,7 @@ export type CampaignsControllerGetCampaignsV2V2Data = {
|
|
|
4735
4864
|
path?: never;
|
|
4736
4865
|
query?: {
|
|
4737
4866
|
page?: number;
|
|
4867
|
+
name?: string;
|
|
4738
4868
|
lat?: number;
|
|
4739
4869
|
lng?: number;
|
|
4740
4870
|
max_distance_meters?: number;
|
|
@@ -4758,7 +4888,9 @@ export type CampaignsControllerGetCampaignsV2V2Response =
|
|
|
4758
4888
|
export type CampaignsControllerCreateCampaignV2V2Data = {
|
|
4759
4889
|
body: CreateCampaignRequestDto;
|
|
4760
4890
|
path?: never;
|
|
4761
|
-
query?:
|
|
4891
|
+
query?: {
|
|
4892
|
+
dry_run?: string;
|
|
4893
|
+
};
|
|
4762
4894
|
url: "/v2/campaigns";
|
|
4763
4895
|
};
|
|
4764
4896
|
|
|
@@ -4810,7 +4942,9 @@ export type CampaignsControllerUpdateCampaignV2V2Data = {
|
|
|
4810
4942
|
path: {
|
|
4811
4943
|
id: string;
|
|
4812
4944
|
};
|
|
4813
|
-
query?:
|
|
4945
|
+
query?: {
|
|
4946
|
+
dry_run?: string;
|
|
4947
|
+
};
|
|
4814
4948
|
url: "/v2/campaigns/{id}";
|
|
4815
4949
|
};
|
|
4816
4950
|
|
|
@@ -4839,7 +4973,9 @@ export type CampaignsControllerCancelCampaignV2V2Data = {
|
|
|
4839
4973
|
path: {
|
|
4840
4974
|
id: string;
|
|
4841
4975
|
};
|
|
4842
|
-
query?:
|
|
4976
|
+
query?: {
|
|
4977
|
+
dry_run?: string;
|
|
4978
|
+
};
|
|
4843
4979
|
url: "/v2/campaigns/{id}/cancel";
|
|
4844
4980
|
};
|
|
4845
4981
|
|
|
@@ -4859,12 +4995,44 @@ export type CampaignsControllerCancelCampaignV2V2Responses = {
|
|
|
4859
4995
|
export type CampaignsControllerCancelCampaignV2V2Response =
|
|
4860
4996
|
CampaignsControllerCancelCampaignV2V2Responses[keyof CampaignsControllerCancelCampaignV2V2Responses];
|
|
4861
4997
|
|
|
4998
|
+
export type CampaignsControllerGetCampaignZonesV2V2Data = {
|
|
4999
|
+
body?: never;
|
|
5000
|
+
path: {
|
|
5001
|
+
id: string;
|
|
5002
|
+
};
|
|
5003
|
+
query?: {
|
|
5004
|
+
page?: number;
|
|
5005
|
+
lat?: number;
|
|
5006
|
+
lng?: number;
|
|
5007
|
+
expand?: string;
|
|
5008
|
+
show_unavailable?: "true" | "false";
|
|
5009
|
+
};
|
|
5010
|
+
url: "/v2/campaigns/{id}/zones";
|
|
5011
|
+
};
|
|
5012
|
+
|
|
5013
|
+
export type CampaignsControllerGetCampaignZonesV2V2Errors = {
|
|
5014
|
+
401: unknown;
|
|
5015
|
+
403: unknown;
|
|
5016
|
+
/**
|
|
5017
|
+
* Campaign not found
|
|
5018
|
+
*/
|
|
5019
|
+
404: unknown;
|
|
5020
|
+
};
|
|
5021
|
+
|
|
5022
|
+
export type CampaignsControllerGetCampaignZonesV2V2Responses = {
|
|
5023
|
+
200: ListCampaignZonesResponseDto;
|
|
5024
|
+
};
|
|
5025
|
+
|
|
5026
|
+
export type CampaignsControllerGetCampaignZonesV2V2Response =
|
|
5027
|
+
CampaignsControllerGetCampaignZonesV2V2Responses[keyof CampaignsControllerGetCampaignZonesV2V2Responses];
|
|
5028
|
+
|
|
4862
5029
|
export type FlightPlansControllerGetManyV2V2Data = {
|
|
4863
5030
|
body?: never;
|
|
4864
5031
|
path?: never;
|
|
4865
5032
|
query?: {
|
|
4866
5033
|
include_inactive?: "true" | "false";
|
|
4867
5034
|
legacy_id?: number;
|
|
5035
|
+
slug?: string;
|
|
4868
5036
|
};
|
|
4869
5037
|
url: "/v2/flight-plans";
|
|
4870
5038
|
};
|
|
@@ -4889,8 +5057,16 @@ export type FlightPlansControllerCreateV2V2Data = {
|
|
|
4889
5057
|
};
|
|
4890
5058
|
|
|
4891
5059
|
export type FlightPlansControllerCreateV2V2Errors = {
|
|
5060
|
+
/**
|
|
5061
|
+
* Template is pathify-incompatible (section/strategy mix or panorama count)
|
|
5062
|
+
*/
|
|
5063
|
+
400: unknown;
|
|
4892
5064
|
401: unknown;
|
|
4893
5065
|
403: unknown;
|
|
5066
|
+
/**
|
|
5067
|
+
* An active Flight Plan already uses this slug
|
|
5068
|
+
*/
|
|
5069
|
+
409: unknown;
|
|
4894
5070
|
};
|
|
4895
5071
|
|
|
4896
5072
|
export type FlightPlansControllerCreateV2V2Responses = {
|
|
@@ -4931,8 +5107,16 @@ export type FlightPlansControllerUpdateV2V2Data = {
|
|
|
4931
5107
|
};
|
|
4932
5108
|
|
|
4933
5109
|
export type FlightPlansControllerUpdateV2V2Errors = {
|
|
5110
|
+
/**
|
|
5111
|
+
* Template is pathify-incompatible (section/strategy mix or panorama count)
|
|
5112
|
+
*/
|
|
5113
|
+
400: unknown;
|
|
4934
5114
|
401: unknown;
|
|
4935
5115
|
403: unknown;
|
|
5116
|
+
/**
|
|
5117
|
+
* An active Flight Plan already uses this slug
|
|
5118
|
+
*/
|
|
5119
|
+
409: unknown;
|
|
4936
5120
|
};
|
|
4937
5121
|
|
|
4938
5122
|
export type FlightPlansControllerUpdateV2V2Responses = {
|
|
@@ -5203,7 +5387,14 @@ export type MissionsControllerGetMissionsV2V2Data = {
|
|
|
5203
5387
|
created_at_lt?: Date;
|
|
5204
5388
|
updated_at_gt?: Date;
|
|
5205
5389
|
updated_at_lt?: Date;
|
|
5390
|
+
source?: "chain" | "archived";
|
|
5206
5391
|
include_unconfirmed?: string;
|
|
5392
|
+
held_by?: string;
|
|
5393
|
+
expand?:
|
|
5394
|
+
| Array<"confirmations" | "hold" | "reservation">
|
|
5395
|
+
| "confirmations"
|
|
5396
|
+
| "hold"
|
|
5397
|
+
| "reservation";
|
|
5207
5398
|
};
|
|
5208
5399
|
url: "/v2/missions";
|
|
5209
5400
|
};
|
|
@@ -5223,7 +5414,9 @@ export type MissionsControllerGetMissionsV2V2Response =
|
|
|
5223
5414
|
export type MissionsControllerCreateMissionsV2V2Data = {
|
|
5224
5415
|
body: CreateMissionsBody;
|
|
5225
5416
|
path?: never;
|
|
5226
|
-
query?:
|
|
5417
|
+
query?: {
|
|
5418
|
+
dry_run?: string;
|
|
5419
|
+
};
|
|
5227
5420
|
url: "/v2/missions";
|
|
5228
5421
|
};
|
|
5229
5422
|
|
|
@@ -5233,6 +5426,10 @@ export type MissionsControllerCreateMissionsV2V2Errors = {
|
|
|
5233
5426
|
};
|
|
5234
5427
|
|
|
5235
5428
|
export type MissionsControllerCreateMissionsV2V2Responses = {
|
|
5429
|
+
/**
|
|
5430
|
+
* Dry run: per-item validation results, nothing written
|
|
5431
|
+
*/
|
|
5432
|
+
200: CreateMissionsResponse;
|
|
5236
5433
|
201: CreateMissionsResponse;
|
|
5237
5434
|
};
|
|
5238
5435
|
|
|
@@ -5245,7 +5442,11 @@ export type MissionsControllerGetMissionV2V2Data = {
|
|
|
5245
5442
|
id: string;
|
|
5246
5443
|
};
|
|
5247
5444
|
query?: {
|
|
5248
|
-
expand?:
|
|
5445
|
+
expand?:
|
|
5446
|
+
| Array<"confirmations" | "hold" | "reservation">
|
|
5447
|
+
| "confirmations"
|
|
5448
|
+
| "hold"
|
|
5449
|
+
| "reservation";
|
|
5249
5450
|
};
|
|
5250
5451
|
url: "/v2/missions/{id}";
|
|
5251
5452
|
};
|
|
@@ -5267,7 +5468,9 @@ export type MissionsControllerUpdateMissionV2V2Data = {
|
|
|
5267
5468
|
path: {
|
|
5268
5469
|
id: string;
|
|
5269
5470
|
};
|
|
5270
|
-
query?:
|
|
5471
|
+
query?: {
|
|
5472
|
+
dry_run?: string;
|
|
5473
|
+
};
|
|
5271
5474
|
url: "/v2/missions/{id}";
|
|
5272
5475
|
};
|
|
5273
5476
|
|
|
@@ -5288,7 +5491,9 @@ export type MissionsControllerCancelMissionV2V2Data = {
|
|
|
5288
5491
|
path: {
|
|
5289
5492
|
id: string;
|
|
5290
5493
|
};
|
|
5291
|
-
query?:
|
|
5494
|
+
query?: {
|
|
5495
|
+
dry_run?: string;
|
|
5496
|
+
};
|
|
5292
5497
|
url: "/v2/missions/{id}/cancel";
|
|
5293
5498
|
};
|
|
5294
5499
|
|
|
@@ -5325,6 +5530,112 @@ export type MissionsControllerRetryMissionV2V2Responses = {
|
|
|
5325
5530
|
export type MissionsControllerRetryMissionV2V2Response =
|
|
5326
5531
|
MissionsControllerRetryMissionV2V2Responses[keyof MissionsControllerRetryMissionV2V2Responses];
|
|
5327
5532
|
|
|
5533
|
+
export type PilotsControllerGetPilotReputationV2V2Data = {
|
|
5534
|
+
body?: never;
|
|
5535
|
+
path: {
|
|
5536
|
+
address: string;
|
|
5537
|
+
};
|
|
5538
|
+
query?: never;
|
|
5539
|
+
url: "/v2/pilots/{address}/reputation";
|
|
5540
|
+
};
|
|
5541
|
+
|
|
5542
|
+
export type PilotsControllerGetPilotReputationV2V2Errors = {
|
|
5543
|
+
401: unknown;
|
|
5544
|
+
403: unknown;
|
|
5545
|
+
};
|
|
5546
|
+
|
|
5547
|
+
export type PilotsControllerGetPilotReputationV2V2Responses = {
|
|
5548
|
+
200: PilotReputationResponse;
|
|
5549
|
+
};
|
|
5550
|
+
|
|
5551
|
+
export type PilotsControllerGetPilotReputationV2V2Response =
|
|
5552
|
+
PilotsControllerGetPilotReputationV2V2Responses[keyof PilotsControllerGetPilotReputationV2V2Responses];
|
|
5553
|
+
|
|
5554
|
+
export type ReservationsControllerGetReservationsV2V2Data = {
|
|
5555
|
+
body?: never;
|
|
5556
|
+
path?: never;
|
|
5557
|
+
query?: {
|
|
5558
|
+
page?: number;
|
|
5559
|
+
pilot_address?: string;
|
|
5560
|
+
mission_id?: string;
|
|
5561
|
+
status?: "active" | "completed" | "cancelled" | "expired";
|
|
5562
|
+
};
|
|
5563
|
+
url: "/v2/reservations";
|
|
5564
|
+
};
|
|
5565
|
+
|
|
5566
|
+
export type ReservationsControllerGetReservationsV2V2Errors = {
|
|
5567
|
+
401: unknown;
|
|
5568
|
+
403: unknown;
|
|
5569
|
+
};
|
|
5570
|
+
|
|
5571
|
+
export type ReservationsControllerGetReservationsV2V2Responses = {
|
|
5572
|
+
200: ListReservationsResponse;
|
|
5573
|
+
};
|
|
5574
|
+
|
|
5575
|
+
export type ReservationsControllerGetReservationsV2V2Response =
|
|
5576
|
+
ReservationsControllerGetReservationsV2V2Responses[keyof ReservationsControllerGetReservationsV2V2Responses];
|
|
5577
|
+
|
|
5578
|
+
export type ReservationsControllerCreateReservationV2V2Data = {
|
|
5579
|
+
body: CreateReservationBody;
|
|
5580
|
+
path?: never;
|
|
5581
|
+
query?: never;
|
|
5582
|
+
url: "/v2/reservations";
|
|
5583
|
+
};
|
|
5584
|
+
|
|
5585
|
+
export type ReservationsControllerCreateReservationV2V2Errors = {
|
|
5586
|
+
401: unknown;
|
|
5587
|
+
403: unknown;
|
|
5588
|
+
};
|
|
5589
|
+
|
|
5590
|
+
export type ReservationsControllerCreateReservationV2V2Responses = {
|
|
5591
|
+
201: ReservationResponse;
|
|
5592
|
+
};
|
|
5593
|
+
|
|
5594
|
+
export type ReservationsControllerCreateReservationV2V2Response =
|
|
5595
|
+
ReservationsControllerCreateReservationV2V2Responses[keyof ReservationsControllerCreateReservationV2V2Responses];
|
|
5596
|
+
|
|
5597
|
+
export type ReservationsControllerGetReservationV2V2Data = {
|
|
5598
|
+
body?: never;
|
|
5599
|
+
path: {
|
|
5600
|
+
id: string;
|
|
5601
|
+
};
|
|
5602
|
+
query?: never;
|
|
5603
|
+
url: "/v2/reservations/{id}";
|
|
5604
|
+
};
|
|
5605
|
+
|
|
5606
|
+
export type ReservationsControllerGetReservationV2V2Errors = {
|
|
5607
|
+
401: unknown;
|
|
5608
|
+
403: unknown;
|
|
5609
|
+
};
|
|
5610
|
+
|
|
5611
|
+
export type ReservationsControllerGetReservationV2V2Responses = {
|
|
5612
|
+
200: ReservationResponse;
|
|
5613
|
+
};
|
|
5614
|
+
|
|
5615
|
+
export type ReservationsControllerGetReservationV2V2Response =
|
|
5616
|
+
ReservationsControllerGetReservationV2V2Responses[keyof ReservationsControllerGetReservationV2V2Responses];
|
|
5617
|
+
|
|
5618
|
+
export type ReservationsControllerCancelReservationV2V2Data = {
|
|
5619
|
+
body: CancelReservationBody;
|
|
5620
|
+
path: {
|
|
5621
|
+
id: string;
|
|
5622
|
+
};
|
|
5623
|
+
query?: never;
|
|
5624
|
+
url: "/v2/reservations/{id}/cancel";
|
|
5625
|
+
};
|
|
5626
|
+
|
|
5627
|
+
export type ReservationsControllerCancelReservationV2V2Errors = {
|
|
5628
|
+
401: unknown;
|
|
5629
|
+
403: unknown;
|
|
5630
|
+
};
|
|
5631
|
+
|
|
5632
|
+
export type ReservationsControllerCancelReservationV2V2Responses = {
|
|
5633
|
+
200: ReservationResponse;
|
|
5634
|
+
};
|
|
5635
|
+
|
|
5636
|
+
export type ReservationsControllerCancelReservationV2V2Response =
|
|
5637
|
+
ReservationsControllerCancelReservationV2V2Responses[keyof ReservationsControllerCancelReservationV2V2Responses];
|
|
5638
|
+
|
|
5328
5639
|
export type RewardsControllerListRewardsV2V2Data = {
|
|
5329
5640
|
body?: never;
|
|
5330
5641
|
path?: never;
|
|
@@ -5359,7 +5670,9 @@ export type RewardsControllerListRewardsV2V2Response =
|
|
|
5359
5670
|
export type ZonesControllerCreateZonesV2V2Data = {
|
|
5360
5671
|
body: CreateZonesRequestDto;
|
|
5361
5672
|
path?: never;
|
|
5362
|
-
query?:
|
|
5673
|
+
query?: {
|
|
5674
|
+
dry_run?: string;
|
|
5675
|
+
};
|
|
5363
5676
|
url: "/v2/zones";
|
|
5364
5677
|
};
|
|
5365
5678
|
|
|
@@ -5409,7 +5722,9 @@ export type ZonesControllerUpdateZoneV2V2Data = {
|
|
|
5409
5722
|
path: {
|
|
5410
5723
|
id: string;
|
|
5411
5724
|
};
|
|
5412
|
-
query?:
|
|
5725
|
+
query?: {
|
|
5726
|
+
dry_run?: string;
|
|
5727
|
+
};
|
|
5413
5728
|
url: "/v2/zones/{id}";
|
|
5414
5729
|
};
|
|
5415
5730
|
|
package/src/event/types.gen.ts
CHANGED
|
@@ -29,6 +29,7 @@ export const Event = z.union([
|
|
|
29
29
|
.transform((wire) => BigInt(wire.value)),
|
|
30
30
|
zoneId: z.string(),
|
|
31
31
|
flightPlanId: z.number(),
|
|
32
|
+
mfFlightPlanId: z.string().uuid().optional(),
|
|
32
33
|
campaigns: z.array(z.string()),
|
|
33
34
|
captureStartTime: z.string().datetime({ offset: true }),
|
|
34
35
|
captureEndTime: z.string().datetime({ offset: true }),
|
|
@@ -39,6 +40,10 @@ export const Event = z.union([
|
|
|
39
40
|
.regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
40
41
|
chainId: z.number(),
|
|
41
42
|
tags: z.record(z.string()),
|
|
43
|
+
isOpen: z.boolean().optional(),
|
|
44
|
+
closedAt: z.string().datetime({ offset: true }).optional(),
|
|
45
|
+
createdAt: z.string().datetime({ offset: true }).optional(),
|
|
46
|
+
vaultCreatedAt: z.string().datetime({ offset: true }).optional(),
|
|
42
47
|
})
|
|
43
48
|
.catchall(z.any()),
|
|
44
49
|
})
|
|
@@ -60,6 +65,7 @@ export const Event = z.union([
|
|
|
60
65
|
.optional(),
|
|
61
66
|
isOpen: z.boolean().optional(),
|
|
62
67
|
campaigns: z.array(z.string()).optional(),
|
|
68
|
+
mfFlightPlanId: z.string().uuid().optional(),
|
|
63
69
|
})
|
|
64
70
|
.catchall(z.any()),
|
|
65
71
|
})
|
|
@@ -128,6 +134,7 @@ export const Event = z.union([
|
|
|
128
134
|
missionId: z
|
|
129
135
|
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
130
136
|
.transform((wire) => BigInt(wire.value)),
|
|
137
|
+
createdAt: z.string().datetime({ offset: true }).optional(),
|
|
131
138
|
})
|
|
132
139
|
.catchall(z.any()),
|
|
133
140
|
})
|
|
@@ -146,6 +153,7 @@ export const Event = z.union([
|
|
|
146
153
|
region_id: z.number(),
|
|
147
154
|
is_flyable: z.boolean(),
|
|
148
155
|
deleted_at: z.string().datetime({ offset: true }).optional(),
|
|
156
|
+
created_at: z.string().datetime({ offset: true }).optional(),
|
|
149
157
|
})
|
|
150
158
|
.catchall(z.any()),
|
|
151
159
|
changes: z
|
|
@@ -153,6 +161,7 @@ export const Event = z.union([
|
|
|
153
161
|
region_id: z.number().optional(),
|
|
154
162
|
is_flyable: z.boolean().optional(),
|
|
155
163
|
deleted_at: z.string().datetime({ offset: true }).optional(),
|
|
164
|
+
created_at: z.string().datetime({ offset: true }).optional(),
|
|
156
165
|
})
|
|
157
166
|
.catchall(z.any())
|
|
158
167
|
.optional(),
|