@volant-autonomy/via-sdk 1.4982.1 → 1.5008.1

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/direct.d.ts CHANGED
@@ -65,6 +65,7 @@ export type getCostDataset = paths['/cost_datasets/{cost_dataset_id}']['get'];
65
65
  export type getAllCostDatasets = paths['/cost_datasets/']['get'];
66
66
  export type createCostDataset = paths['/cost_datasets/']['post'];
67
67
  export type deleteCostDataset = paths['/cost_datasets/{cost_dataset_id}']['delete'];
68
+ export type createCostDatasetShare = paths['/cost_datasets/{cost_dataset_id}/shares']['post'];
68
69
  export declare class Direct {
69
70
  private fetcher;
70
71
  constructor(fetcher: ReturnType<typeof createFetcher<paths>>);
@@ -1076,7 +1077,7 @@ export declare class Direct {
1076
1077
  data: {
1077
1078
  id: string;
1078
1079
  type?: "sora_classification";
1079
- attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification-Output"] | import("./volant-schema").components["schemas"]["UkSoraClassification-Output"];
1080
+ attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification"] | import("./volant-schema").components["schemas"]["UkSoraClassification"];
1080
1081
  };
1081
1082
  error?: never;
1082
1083
  response: Response;
@@ -1106,7 +1107,7 @@ export declare class Direct {
1106
1107
  data: {
1107
1108
  id: string;
1108
1109
  type?: "sora_classification";
1109
- attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification-Output"] | import("./volant-schema").components["schemas"]["UkSoraClassification-Output"];
1110
+ attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification"] | import("./volant-schema").components["schemas"]["UkSoraClassification"];
1110
1111
  };
1111
1112
  error?: never;
1112
1113
  response: Response;
@@ -1136,7 +1137,7 @@ export declare class Direct {
1136
1137
  data: {
1137
1138
  id: string;
1138
1139
  type?: "sora_classification";
1139
- attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification-Output"] | import("./volant-schema").components["schemas"]["UkSoraClassification-Output"];
1140
+ attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification"] | import("./volant-schema").components["schemas"]["UkSoraClassification"];
1140
1141
  };
1141
1142
  error?: never;
1142
1143
  response: Response;
@@ -1166,7 +1167,7 @@ export declare class Direct {
1166
1167
  data: {
1167
1168
  id: string;
1168
1169
  type?: "controlled_ground_area";
1169
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1170
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1170
1171
  }[];
1171
1172
  error?: never;
1172
1173
  response: Response;
@@ -1196,7 +1197,7 @@ export declare class Direct {
1196
1197
  data: {
1197
1198
  id: string;
1198
1199
  type?: "controlled_ground_area";
1199
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1200
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1200
1201
  };
1201
1202
  error?: never;
1202
1203
  response: Response;
@@ -1226,7 +1227,7 @@ export declare class Direct {
1226
1227
  data: {
1227
1228
  id: string;
1228
1229
  type?: "controlled_ground_area";
1229
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1230
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1230
1231
  };
1231
1232
  error?: never;
1232
1233
  response: Response;
@@ -1258,7 +1259,7 @@ export declare class Direct {
1258
1259
  data: {
1259
1260
  id: string;
1260
1261
  type?: "controlled_ground_area";
1261
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1262
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1262
1263
  };
1263
1264
  error?: never;
1264
1265
  response: Response;
@@ -1466,7 +1467,7 @@ export declare class Direct {
1466
1467
  data: {
1467
1468
  id: string;
1468
1469
  type?: "geocage";
1469
- attributes: import("./volant-schema").components["schemas"]["Geocage-Output"];
1470
+ attributes: import("./volant-schema").components["schemas"]["Geocage"];
1470
1471
  };
1471
1472
  error?: never;
1472
1473
  response: Response;
@@ -1496,7 +1497,7 @@ export declare class Direct {
1496
1497
  data: {
1497
1498
  id: string;
1498
1499
  type?: "geocage";
1499
- attributes: import("./volant-schema").components["schemas"]["Geocage-Output"];
1500
+ attributes: import("./volant-schema").components["schemas"]["Geocage"];
1500
1501
  };
1501
1502
  error?: never;
1502
1503
  response: Response;
@@ -1555,7 +1556,7 @@ export declare class Direct {
1555
1556
  data: {
1556
1557
  id: string;
1557
1558
  type?: "geocage";
1558
- attributes: import("./volant-schema").components["schemas"]["Geocage-Output"];
1559
+ attributes: import("./volant-schema").components["schemas"]["Geocage"];
1559
1560
  };
1560
1561
  error?: never;
1561
1562
  response: Response;
@@ -1715,6 +1716,36 @@ export declare class Direct {
1715
1716
  response: Response;
1716
1717
  aborted: false;
1717
1718
  }>;
1719
+ /**
1720
+ * Share a Cost Dataset
1721
+ * @description Share a Cost Dataset.
1722
+ */
1723
+ createCostDatasetShare<Opts extends requestOptions = {}>(id: pathOf<createCostDatasetShare>['cost_dataset_id'], args: bodyOf<createCostDatasetShare>, opts?: Opts | requestOptions): Promise<{
1724
+ data?: never;
1725
+ error: {
1726
+ errors: {
1727
+ detail: string;
1728
+ status: "401" | "400" | "422" | "403" | "404";
1729
+ }[];
1730
+ status: "401" | "400" | "422" | "403" | "404";
1731
+ };
1732
+ response: Response;
1733
+ aborted: false;
1734
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
1735
+ data?: never;
1736
+ error?: never;
1737
+ response?: never;
1738
+ aborted: true;
1739
+ } : never) | {
1740
+ data: {
1741
+ id: string;
1742
+ type?: "share";
1743
+ attributes: import("./volant-schema").components["schemas"]["ShareAttributes"];
1744
+ };
1745
+ error?: never;
1746
+ response: Response;
1747
+ aborted: false;
1748
+ }>;
1718
1749
  /**
1719
1750
  * Generate a raster pattern
1720
1751
  * @description Generate a raster pattern that covers a specified search polygon.
package/dist/index.cjs.js CHANGED
@@ -586,6 +586,13 @@ class Direct {
586
586
  }
587
587
  return resp;
588
588
  }
589
+ async createCostDatasetShare(id, args, opts) {
590
+ const resp = await this.fetcher.POST('/cost_datasets/{cost_dataset_id}/shares', { body: args, path: { cost_dataset_id: id } }, opts);
591
+ if (resp.error === undefined && !resp.aborted) {
592
+ return { ...resp, data: resp.data.data };
593
+ }
594
+ return resp;
595
+ }
589
596
  /// flight patterns
590
597
  async createRasterPattern(args, opts) {
591
598
  const resp = await this.fetcher.POST('/flight_patterns/raster', { body: args }, opts);
@@ -758,7 +765,7 @@ function defaultPathSerializer(pathname, pathParams) {
758
765
  return nextURL;
759
766
  }
760
767
 
761
- var version = "1.4982.1";
768
+ var version = "1.5008.1";
762
769
 
763
770
  const querySerializer = createQuerySerializer();
764
771
  class Fetcher {