@volant-autonomy/via-sdk 1.3109.1 → 1.3153.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
@@ -26,13 +26,14 @@ export type getAllAircraft = paths['/aircraft/']['get'];
26
26
  export type getAircraft = paths['/aircraft/{aircraft_id}']['get'];
27
27
  export type getAllCharts = paths['/charts/']['get'];
28
28
  export type getChart = paths['/charts/{chart_id}']['get'];
29
- export type calculateSailV2_5 = paths['/risk_assessment/sora/v2.5/sail']['get'];
29
+ export type getSailV2_5 = paths['/risk_assessment/sora/v2.5/sail']['get'];
30
30
  export type getAllArcsV2_5 = paths['/risk_assessment/sora/v2.5/air_risk_classifications']['get'];
31
31
  export type getArcV2_5 = paths['/risk_assessment/sora/v2.5/air_risk_classifications/{arc_id}']['get'];
32
32
  export type createSoraReportV2_5 = paths['/risk_assessment/sora/v2.5/report']['post'];
33
33
  export type createSoraSemanticModelVolumesV2_5 = paths['/risk_assessment/sora/v2.5/semantic_model_volumes']['post'];
34
34
  export type getAllArcsUk = paths['/risk_assessment/sora/uk/air_risk_classifications']['get'];
35
35
  export type getArcUk = paths['/risk_assessment/sora/uk/air_risk_classifications/{arc_id}']['get'];
36
+ export type getSailUk = paths['/risk_assessment/sora/uk/sail']['get'];
36
37
  export type createSoraSemanticModelVolumesUk = paths['/risk_assessment/sora/uk/semantic_model_volumes']['post'];
37
38
  export type createSoraClassification = paths['/risk_assessment/sora/classifications']['post'];
38
39
  export type updateSoraClassification = paths['/risk_assessment/sora/classifications/{classification_id}']['put'];
@@ -709,7 +710,7 @@ export declare class Direct {
709
710
  * Calculate SAIL
710
711
  * @description Calculate Specific Assurance Integrity Level (SAIL).
711
712
  */
712
- calculateSailV2_5<Opts extends requestOptions = {}>(args: queryOf<calculateSailV2_5>, opts?: Opts | requestOptions): Promise<{
713
+ getSailV2_5<Opts extends requestOptions = {}>(args: queryOf<getSailV2_5>, opts?: Opts | requestOptions): Promise<{
713
714
  data?: never;
714
715
  error: {
715
716
  errors: {
@@ -727,7 +728,7 @@ export declare class Direct {
727
728
  aborted: true;
728
729
  } : never) | {
729
730
  data: {
730
- id: number;
731
+ id: 0 | 1 | 2 | 3 | 4 | 5 | 6;
731
732
  attributes: import("./volant-schema").components["schemas"]["SailAttributes"];
732
733
  };
733
734
  error?: never;
@@ -918,6 +919,35 @@ export declare class Direct {
918
919
  response: Response;
919
920
  aborted: false;
920
921
  }>;
922
+ /**
923
+ * Calculate SAIL
924
+ * @description Calculate Specific Assurance Integrity Level (SAIL).
925
+ */
926
+ getSailUk<Opts extends requestOptions = {}>(args: queryOf<getSailUk>, opts?: Opts | requestOptions): Promise<{
927
+ data?: never;
928
+ error: {
929
+ errors: {
930
+ detail: string;
931
+ status: "401" | "400" | "422";
932
+ }[];
933
+ status: "401" | "400" | "422";
934
+ };
935
+ response: Response;
936
+ aborted: false;
937
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
938
+ data?: never;
939
+ error?: never;
940
+ response?: never;
941
+ aborted: true;
942
+ } : never) | {
943
+ data: {
944
+ id: 0 | 1 | 2 | 3 | 4 | 5 | 6;
945
+ attributes: import("./volant-schema").components["schemas"]["UkSailAttributes"];
946
+ };
947
+ error?: never;
948
+ response: Response;
949
+ aborted: false;
950
+ }>;
921
951
  /**
922
952
  * Generate volumes that correspond to the SORA Semantic Model
923
953
  * @description Generate volumes that correspond to the SORA Semantic Model
package/dist/direct.js CHANGED
@@ -214,8 +214,7 @@ class Direct {
214
214
  });
215
215
  }
216
216
  /// risk assessment
217
- // TODO rename to get
218
- calculateSailV2_5(args, opts) {
217
+ getSailV2_5(args, opts) {
219
218
  return __awaiter(this, void 0, void 0, function* () {
220
219
  const resp = yield this.fetcher.GET('/risk_assessment/sora/v2.5/sail', { query: args }, opts);
221
220
  if (resp.error === undefined && !resp.aborted) {
@@ -278,6 +277,15 @@ class Direct {
278
277
  return resp;
279
278
  });
280
279
  }
280
+ getSailUk(args, opts) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ const resp = yield this.fetcher.GET('/risk_assessment/sora/uk/sail', { query: args }, opts);
283
+ if (resp.error === undefined && !resp.aborted) {
284
+ return Object.assign(Object.assign({}, resp), { data: resp.data.data });
285
+ }
286
+ return resp;
287
+ });
288
+ }
281
289
  createSoraSemanticModelVolumesUk(args, opts) {
282
290
  return __awaiter(this, void 0, void 0, function* () {
283
291
  const resp = yield this.fetcher.POST('/risk_assessment/sora/uk/semantic_model_volumes', { body: args }, opts);
@@ -612,6 +612,26 @@ export interface paths {
612
612
  patch?: never;
613
613
  trace?: never;
614
614
  };
615
+ "/risk_assessment/sora/uk/sail": {
616
+ parameters: {
617
+ query?: never;
618
+ header?: never;
619
+ path?: never;
620
+ cookie?: never;
621
+ };
622
+ /**
623
+ * Calculate SAIL
624
+ * @description Calculate Specific Assurance Integrity Level (SAIL).
625
+ */
626
+ get: operations["uk_sail_v1_risk_assessment_sora_uk_sail_get"];
627
+ put?: never;
628
+ post?: never;
629
+ delete?: never;
630
+ options?: never;
631
+ head?: never;
632
+ patch?: never;
633
+ trace?: never;
634
+ };
615
635
  "/risk_assessment/sora/uk/air_risk_classifications": {
616
636
  parameters: {
617
637
  query?: never;
@@ -1688,6 +1708,11 @@ export interface components {
1688
1708
  data: components["schemas"]["UkArcResponse"];
1689
1709
  links: components["schemas"]["Links"];
1690
1710
  };
1711
+ /** JsonApiResponse[UkSailResponse] */
1712
+ JsonApiResponse_UkSailResponse_: {
1713
+ data: components["schemas"]["UkSailResponse"];
1714
+ links: components["schemas"]["Links"];
1715
+ };
1691
1716
  /** JsonApiResponse[VolumeResponse] */
1692
1717
  JsonApiResponse_VolumeResponse_: {
1693
1718
  data: components["schemas"]["VolumeResponse"];
@@ -1995,8 +2020,12 @@ export interface components {
1995
2020
  };
1996
2021
  /** SailResponse */
1997
2022
  SailResponse: {
1998
- /** Id */
1999
- id: number;
2023
+ /**
2024
+ * Id
2025
+ * @description Unique integer representation of the SAIL
2026
+ * @enum {integer}
2027
+ */
2028
+ id: 0 | 1 | 2 | 3 | 4 | 5 | 6;
2000
2029
  attributes: components["schemas"]["SailAttributes"];
2001
2030
  };
2002
2031
  /** SemanticModelProperties */
@@ -2411,6 +2440,25 @@ export interface components {
2411
2440
  type?: "air_risk_classification";
2412
2441
  attributes: components["schemas"]["UkArcAttributes"];
2413
2442
  };
2443
+ /** UkSailAttributes */
2444
+ UkSailAttributes: {
2445
+ /**
2446
+ * SAIL
2447
+ * @description The SAIL represents the level of confidence that the UAS operation will stay under control.
2448
+ * @enum {string}
2449
+ */
2450
+ sail: "NA" | "I" | "II" | "III" | "IV" | "V" | "VI" | "VII";
2451
+ };
2452
+ /** UkSailResponse */
2453
+ UkSailResponse: {
2454
+ /**
2455
+ * Id
2456
+ * @description Unique integer representation of the SAIL
2457
+ * @enum {integer}
2458
+ */
2459
+ id: 0 | 1 | 2 | 3 | 4 | 5 | 6;
2460
+ attributes: components["schemas"]["UkSailAttributes"];
2461
+ };
2414
2462
  /** UkSemanticModelVolumesRequest */
2415
2463
  UkSemanticModelVolumesRequest: {
2416
2464
  /**
@@ -4812,6 +4860,89 @@ export interface operations {
4812
4860
  };
4813
4861
  };
4814
4862
  };
4863
+ uk_sail_v1_risk_assessment_sora_uk_sail_get: {
4864
+ parameters: {
4865
+ query: {
4866
+ /** @description The Final GRC determination, based on the availability and correct application of mitigations to the operation after determination of the intrinsic GRC. */
4867
+ final_grc: number;
4868
+ /**
4869
+ * @description Qualitative classification of the air environment.
4870
+ *
4871
+ * - 'arc-a1' - ARC-a (NMAC Encounter Rate)
4872
+ *
4873
+ * - 'arc-a2' - ARC-a (Linear Infrastructure)
4874
+ *
4875
+ * - 'arc-a3' - ARC-a (Restricted Airspace)
4876
+ *
4877
+ * - 'arc-a4' - ARC-a (Danger Area)
4878
+ *
4879
+ * - 'arc-a5' - ARC-a (Self Declared)
4880
+ *
4881
+ * - 'arc-b1' - ARC-b (Class C or D Airspace <500ft AGL)
4882
+ *
4883
+ * - 'arc-c1' - ARC-c (Class E or G Airspace)
4884
+ *
4885
+ * - 'arc-c2' - ARC-c (Class C or D Airspace in area with Visual Flight Rules)
4886
+ *
4887
+ * - 'arc-c3' - ARC-c (Class C or D Airspace in area with Low-Level Helicopter Route)
4888
+ *
4889
+ * - 'arc-c4' - ARC-c (Class C or D Airspace >500ft AGL)
4890
+ *
4891
+ * - 'arc-d1' - ARC-d (Class A Airspace)
4892
+ *
4893
+ * - 'arc-d2' - ARC-d (Class C or D Airspace in area with known Instrument Flight Procedures)
4894
+ *
4895
+ * @example [
4896
+ * "arc-b1",
4897
+ * "arc-c4"
4898
+ * ]
4899
+ */
4900
+ arc: ("arc-a1" | "arc-a2" | "arc-a3" | "arc-a4" | "arc-a5" | "arc-b1" | "arc-c1" | "arc-c2" | "arc-c3" | "arc-c4" | "arc-d1" | "arc-d2")[];
4901
+ };
4902
+ header?: never;
4903
+ path?: never;
4904
+ cookie?: never;
4905
+ };
4906
+ requestBody?: never;
4907
+ responses: {
4908
+ /** @description Successful Response */
4909
+ 200: {
4910
+ headers: {
4911
+ [name: string]: unknown;
4912
+ };
4913
+ content: {
4914
+ "application/json": components["schemas"]["JsonApiResponse_UkSailResponse_"];
4915
+ };
4916
+ };
4917
+ /** @description One or more input parameters were missing or invalid. */
4918
+ 400: {
4919
+ headers: {
4920
+ [name: string]: unknown;
4921
+ };
4922
+ content: {
4923
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
4924
+ };
4925
+ };
4926
+ /** @description Bearer access token was not provided in Authorization header, token could not be decoded, or token was invalid. */
4927
+ 401: {
4928
+ headers: {
4929
+ [name: string]: unknown;
4930
+ };
4931
+ content: {
4932
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
4933
+ };
4934
+ };
4935
+ /** @description Validation Error */
4936
+ 422: {
4937
+ headers: {
4938
+ [name: string]: unknown;
4939
+ };
4940
+ content: {
4941
+ "application/json": components["schemas"]["HTTPValidationError"];
4942
+ };
4943
+ };
4944
+ };
4945
+ };
4815
4946
  uk_ARCs_list_v1_risk_assessment_sora_uk_air_risk_classifications_get: {
4816
4947
  parameters: {
4817
4948
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volant-autonomy/via-sdk",
3
- "version": "1.3109.1",
3
+ "version": "1.3153.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "types": "dist/index.d.ts",