@layer-drone/protocol 2.1.0 → 2.2.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.js CHANGED
@@ -3726,7 +3726,17 @@ var Event = import_zod.z.union([
3726
3726
  requestor: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
3727
3727
  collateralTokenAddress: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
3728
3728
  chainId: import_zod.z.number(),
3729
- tags: import_zod.z.record(import_zod.z.string())
3729
+ tags: import_zod.z.record(import_zod.z.string()),
3730
+ isOpen: import_zod.z.boolean().optional(),
3731
+ closedAt: import_zod.z.string().datetime({
3732
+ offset: true
3733
+ }).optional(),
3734
+ createdAt: import_zod.z.string().datetime({
3735
+ offset: true
3736
+ }).optional(),
3737
+ vaultCreatedAt: import_zod.z.string().datetime({
3738
+ offset: true
3739
+ }).optional()
3730
3740
  }).catchall(import_zod.z.any())
3731
3741
  }).catchall(import_zod.z.any()),
3732
3742
  import_zod.z.object({
@@ -3807,7 +3817,10 @@ var Event = import_zod.z.union([
3807
3817
  missionId: import_zod.z.object({
3808
3818
  __type: import_zod.z.literal("bigint"),
3809
3819
  value: import_zod.z.string()
3810
- }).transform((wire) => BigInt(wire.value))
3820
+ }).transform((wire) => BigInt(wire.value)),
3821
+ createdAt: import_zod.z.string().datetime({
3822
+ offset: true
3823
+ }).optional()
3811
3824
  }).catchall(import_zod.z.any())
3812
3825
  }).catchall(import_zod.z.any()),
3813
3826
  import_zod.z.object({
@@ -3822,6 +3835,9 @@ var Event = import_zod.z.union([
3822
3835
  is_flyable: import_zod.z.boolean(),
3823
3836
  deleted_at: import_zod.z.string().datetime({
3824
3837
  offset: true
3838
+ }).optional(),
3839
+ created_at: import_zod.z.string().datetime({
3840
+ offset: true
3825
3841
  }).optional()
3826
3842
  }).catchall(import_zod.z.any()),
3827
3843
  changes: import_zod.z.object({
@@ -3829,6 +3845,9 @@ var Event = import_zod.z.union([
3829
3845
  is_flyable: import_zod.z.boolean().optional(),
3830
3846
  deleted_at: import_zod.z.string().datetime({
3831
3847
  offset: true
3848
+ }).optional(),
3849
+ created_at: import_zod.z.string().datetime({
3850
+ offset: true
3832
3851
  }).optional()
3833
3852
  }).catchall(import_zod.z.any()).optional()
3834
3853
  }).catchall(import_zod.z.any())
package/dist/index.mjs CHANGED
@@ -3539,7 +3539,17 @@ var Event = z.union([
3539
3539
  requestor: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
3540
3540
  collateralTokenAddress: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
3541
3541
  chainId: z.number(),
3542
- tags: z.record(z.string())
3542
+ tags: z.record(z.string()),
3543
+ isOpen: z.boolean().optional(),
3544
+ closedAt: z.string().datetime({
3545
+ offset: true
3546
+ }).optional(),
3547
+ createdAt: z.string().datetime({
3548
+ offset: true
3549
+ }).optional(),
3550
+ vaultCreatedAt: z.string().datetime({
3551
+ offset: true
3552
+ }).optional()
3543
3553
  }).catchall(z.any())
3544
3554
  }).catchall(z.any()),
3545
3555
  z.object({
@@ -3620,7 +3630,10 @@ var Event = z.union([
3620
3630
  missionId: z.object({
3621
3631
  __type: z.literal("bigint"),
3622
3632
  value: z.string()
3623
- }).transform((wire) => BigInt(wire.value))
3633
+ }).transform((wire) => BigInt(wire.value)),
3634
+ createdAt: z.string().datetime({
3635
+ offset: true
3636
+ }).optional()
3624
3637
  }).catchall(z.any())
3625
3638
  }).catchall(z.any()),
3626
3639
  z.object({
@@ -3635,6 +3648,9 @@ var Event = z.union([
3635
3648
  is_flyable: z.boolean(),
3636
3649
  deleted_at: z.string().datetime({
3637
3650
  offset: true
3651
+ }).optional(),
3652
+ created_at: z.string().datetime({
3653
+ offset: true
3638
3654
  }).optional()
3639
3655
  }).catchall(z.any()),
3640
3656
  changes: z.object({
@@ -3642,6 +3658,9 @@ var Event = z.union([
3642
3658
  is_flyable: z.boolean().optional(),
3643
3659
  deleted_at: z.string().datetime({
3644
3660
  offset: true
3661
+ }).optional(),
3662
+ created_at: z.string().datetime({
3663
+ offset: true
3645
3664
  }).optional()
3646
3665
  }).catchall(z.any()).optional()
3647
3666
  }).catchall(z.any())
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@layer-drone/protocol",
3
3
  "description": "Layer Drone protocol SDK with typed API client and event parsing",
4
- "version": "2.1.0",
4
+ "version": "2.2.0",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist",
@@ -34,8 +34,8 @@
34
34
  "zod": "^3.24.2",
35
35
  "zod-to-json-schema": "^3.24.5",
36
36
  "@layer-drone/eslint-config": "0.0.0",
37
- "@layer-drone/typescript-config": "0.0.0",
38
- "@layer-drone/event-schema": "0.0.0"
37
+ "@layer-drone/event-schema": "0.0.0",
38
+ "@layer-drone/typescript-config": "0.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "zod": "^3.x.x"
@@ -1293,6 +1293,7 @@ export type MissionFulfillmentGetFlightPlansResponse = {
1293
1293
  data: Array<{
1294
1294
  id: string;
1295
1295
  name: string;
1296
+ slug: string | null;
1296
1297
  description: string | null;
1297
1298
  base_energy_usage: number;
1298
1299
  base_duration: number;
@@ -1340,6 +1341,7 @@ export type MissionFulfillmentGetFlightPlansResponse = {
1340
1341
  export type FlightPlanResponse = {
1341
1342
  id: string;
1342
1343
  name: string;
1344
+ slug: string | null;
1343
1345
  description: string | null;
1344
1346
  base_energy_usage: number;
1345
1347
  base_duration: number;
@@ -1385,6 +1387,7 @@ export type FlightPlanResponse = {
1385
1387
 
1386
1388
  export type MissionFulfillmentCreateFlightPlanBody = {
1387
1389
  name: string;
1390
+ slug: string;
1388
1391
  description?: string | null;
1389
1392
  base_energy_usage: number;
1390
1393
  base_duration: number;
@@ -1453,6 +1456,7 @@ export type FlightPathIntendedResponse = {
1453
1456
 
1454
1457
  export type UpdateFlightPlanBody = {
1455
1458
  name: string;
1459
+ slug: string;
1456
1460
  description?: string | null;
1457
1461
  base_energy_usage: number;
1458
1462
  base_duration: number;
@@ -1546,6 +1550,7 @@ export type CreateMissionsBody = {
1546
1550
  capture_start_time: Date;
1547
1551
  capture_end_time: Date;
1548
1552
  holding_period_seconds?: number | null;
1553
+ reservable?: boolean;
1549
1554
  tags?: {
1550
1555
  [key: string]: string;
1551
1556
  };
@@ -1586,6 +1591,7 @@ export type CreateMissionsResponse = {
1586
1591
  capture_start_time: Date;
1587
1592
  capture_end_time: Date;
1588
1593
  holding_period_seconds: number;
1594
+ reservable: boolean;
1589
1595
  tags: {
1590
1596
  [key: string]: string;
1591
1597
  };
@@ -1657,6 +1663,7 @@ export type ListMissionsResponse = {
1657
1663
  capture_start_time: Date;
1658
1664
  capture_end_time: Date;
1659
1665
  holding_period_seconds: number;
1666
+ reservable: boolean;
1660
1667
  tags: {
1661
1668
  [key: string]: string;
1662
1669
  };
@@ -1713,6 +1720,7 @@ export type MissionResponse = {
1713
1720
  capture_start_time: Date;
1714
1721
  capture_end_time: Date;
1715
1722
  holding_period_seconds: number;
1723
+ reservable: boolean;
1716
1724
  tags: {
1717
1725
  [key: string]: string;
1718
1726
  };
@@ -1750,6 +1758,7 @@ export type UpdateMissionBody = {
1750
1758
  }>;
1751
1759
  flight_plan_id?: string;
1752
1760
  campaign_ids?: Array<string>;
1761
+ reservable?: boolean;
1753
1762
  };
1754
1763
 
1755
1764
  export type CreateFlightBody = {
@@ -1864,7 +1873,10 @@ export type FlightReviewResponse = {
1864
1873
  };
1865
1874
 
1866
1875
  export type ImageUploadUrlsBody = {
1867
- filenames: Array<string>;
1876
+ files: Array<{
1877
+ filename: string;
1878
+ checksum: string;
1879
+ }>;
1868
1880
  };
1869
1881
 
1870
1882
  export type ImageUploadUrlsResponse = {
@@ -4865,6 +4877,7 @@ export type FlightPlansControllerGetManyV2V2Data = {
4865
4877
  query?: {
4866
4878
  include_inactive?: "true" | "false";
4867
4879
  legacy_id?: number;
4880
+ slug?: string;
4868
4881
  };
4869
4882
  url: "/v2/flight-plans";
4870
4883
  };
@@ -39,6 +39,10 @@ export const Event = z.union([
39
39
  .regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
40
40
  chainId: z.number(),
41
41
  tags: z.record(z.string()),
42
+ isOpen: z.boolean().optional(),
43
+ closedAt: z.string().datetime({ offset: true }).optional(),
44
+ createdAt: z.string().datetime({ offset: true }).optional(),
45
+ vaultCreatedAt: z.string().datetime({ offset: true }).optional(),
42
46
  })
43
47
  .catchall(z.any()),
44
48
  })
@@ -128,6 +132,7 @@ export const Event = z.union([
128
132
  missionId: z
129
133
  .object({ __type: z.literal("bigint"), value: z.string() })
130
134
  .transform((wire) => BigInt(wire.value)),
135
+ createdAt: z.string().datetime({ offset: true }).optional(),
131
136
  })
132
137
  .catchall(z.any()),
133
138
  })
@@ -146,6 +151,7 @@ export const Event = z.union([
146
151
  region_id: z.number(),
147
152
  is_flyable: z.boolean(),
148
153
  deleted_at: z.string().datetime({ offset: true }).optional(),
154
+ created_at: z.string().datetime({ offset: true }).optional(),
149
155
  })
150
156
  .catchall(z.any()),
151
157
  changes: z
@@ -153,6 +159,7 @@ export const Event = z.union([
153
159
  region_id: z.number().optional(),
154
160
  is_flyable: z.boolean().optional(),
155
161
  deleted_at: z.string().datetime({ offset: true }).optional(),
162
+ created_at: z.string().datetime({ offset: true }).optional(),
156
163
  })
157
164
  .catchall(z.any())
158
165
  .optional(),