@volant-autonomy/via-sdk 1.2984.1 → 1.3025.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
@@ -28,9 +28,11 @@ export type getAllCharts = paths['/charts/']['get'];
28
28
  export type getChart = paths['/charts/{chart_id}']['get'];
29
29
  export type calculateSailV2_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
- export type getArcInfoV2_5 = paths['/risk_assessment/sora/v2.5/air_risk_classifications/{arc_id}']['get'];
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
+ export type getAllArcsUk = paths['/risk_assessment/sora/uk/air_risk_classifications']['get'];
35
+ export type getArcUk = paths['/risk_assessment/sora/uk/air_risk_classifications/{arc_id}']['get'];
34
36
  export type createSoraClassification = paths['/risk_assessment/sora/classifications']['post'];
35
37
  export type getSoraClassification = paths['/risk_assessment/sora/classifications/{classification_id}']['get'];
36
38
  export type getAllControlledGroundAreas = paths['/risk_assessment/sora/controlled_ground_areas/']['get'];
@@ -764,7 +766,7 @@ export declare class Direct {
764
766
  * Retrieve the specified Air Risk Classification
765
767
  * @description Retrieve the specified Air Risk Classification.
766
768
  */
767
- getArcInfoV2_5<Opts extends requestOptions = {}>(args: pathOf<getArcInfoV2_5>, opts?: Opts | requestOptions): Promise<{
769
+ getArcV2_5<Opts extends requestOptions = {}>(args: pathOf<getArcV2_5>, opts?: Opts | requestOptions): Promise<{
768
770
  data?: never;
769
771
  error: {
770
772
  errors: {
@@ -854,6 +856,66 @@ export declare class Direct {
854
856
  response: Response;
855
857
  aborted: false;
856
858
  }>;
859
+ /**
860
+ * List available ARCs
861
+ * @description List available ARCs.
862
+ */
863
+ getAllArcsUk<Opts extends requestOptions = {}>(opts?: Opts | requestOptions): Promise<{
864
+ data?: never;
865
+ error: {
866
+ errors: {
867
+ detail: string;
868
+ status: "401" | "400";
869
+ }[];
870
+ status: "401" | "400";
871
+ };
872
+ response: Response;
873
+ aborted: false;
874
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
875
+ data?: never;
876
+ error?: never;
877
+ response?: never;
878
+ aborted: true;
879
+ } : never) | {
880
+ data: {
881
+ id: "arc-a1" | "arc-a2" | "arc-a3" | "arc-a4" | "arc-a5" | "arc-b1" | "arc-c1" | "arc-c2" | "arc-c3" | "arc-c4" | "arc-d1" | "arc-d2";
882
+ type?: "air_risk_classification";
883
+ attributes: import("./volant-schema").components["schemas"]["UkArcAttributes"];
884
+ }[];
885
+ error?: never;
886
+ response: Response;
887
+ aborted: false;
888
+ }>;
889
+ /**
890
+ * Retrieve the specified Air Risk Classification
891
+ * @description Retrieve the specified Air Risk Classification.
892
+ */
893
+ getArcUk<Opts extends requestOptions = {}>(args: pathOf<getArcUk>, opts?: Opts | requestOptions): Promise<{
894
+ data?: never;
895
+ error: {
896
+ errors: {
897
+ detail: string;
898
+ status: "401" | "400" | "422" | "404";
899
+ }[];
900
+ status: "401" | "400" | "422" | "404";
901
+ };
902
+ response: Response;
903
+ aborted: false;
904
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
905
+ data?: never;
906
+ error?: never;
907
+ response?: never;
908
+ aborted: true;
909
+ } : never) | {
910
+ data: {
911
+ id: "arc-a1" | "arc-a2" | "arc-a3" | "arc-a4" | "arc-a5" | "arc-b1" | "arc-c1" | "arc-c2" | "arc-c3" | "arc-c4" | "arc-d1" | "arc-d2";
912
+ type?: "air_risk_classification";
913
+ attributes: import("./volant-schema").components["schemas"]["UkArcAttributes"];
914
+ };
915
+ error?: never;
916
+ response: Response;
917
+ aborted: false;
918
+ }>;
857
919
  /**
858
920
  * Create a SORA Classification
859
921
  * @description Create a SORA Classification
package/dist/direct.js CHANGED
@@ -233,7 +233,7 @@ class Direct {
233
233
  return resp;
234
234
  });
235
235
  }
236
- getArcInfoV2_5(args, opts) {
236
+ getArcV2_5(args, opts) {
237
237
  return __awaiter(this, void 0, void 0, function* () {
238
238
  const resp = yield this.fetcher.GET('/risk_assessment/sora/v2.5/air_risk_classifications/{arc_id}', { path: args }, opts);
239
239
  if (resp.error === undefined && !resp.aborted) {
@@ -260,6 +260,24 @@ class Direct {
260
260
  return resp;
261
261
  });
262
262
  }
263
+ getAllArcsUk(opts) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ const resp = yield this.fetcher.GET('/risk_assessment/sora/uk/air_risk_classifications', {}, opts);
266
+ if (resp.error === undefined && !resp.aborted) {
267
+ return Object.assign(Object.assign({}, resp), { data: resp.data.data.map((arc) => arc.data) });
268
+ }
269
+ return resp;
270
+ });
271
+ }
272
+ getArcUk(args, opts) {
273
+ return __awaiter(this, void 0, void 0, function* () {
274
+ const resp = yield this.fetcher.GET('/risk_assessment/sora/uk/air_risk_classifications/{arc_id}', { path: args }, opts);
275
+ if (resp.error === undefined && !resp.aborted) {
276
+ return Object.assign(Object.assign({}, resp), { data: resp.data.data });
277
+ }
278
+ return resp;
279
+ });
280
+ }
263
281
  createSoraClassification(args, opts) {
264
282
  return __awaiter(this, void 0, void 0, function* () {
265
283
  const resp = yield this.fetcher.POST('/risk_assessment/sora/classifications', { body: args }, opts);
@@ -612,6 +612,46 @@ export interface paths {
612
612
  patch?: never;
613
613
  trace?: never;
614
614
  };
615
+ "/risk_assessment/sora/uk/air_risk_classifications": {
616
+ parameters: {
617
+ query?: never;
618
+ header?: never;
619
+ path?: never;
620
+ cookie?: never;
621
+ };
622
+ /**
623
+ * List available ARCs
624
+ * @description List available ARCs.
625
+ */
626
+ get: operations["uk_ARCs_list_v1_risk_assessment_sora_uk_air_risk_classifications_get"];
627
+ put?: never;
628
+ post?: never;
629
+ delete?: never;
630
+ options?: never;
631
+ head?: never;
632
+ patch?: never;
633
+ trace?: never;
634
+ };
635
+ "/risk_assessment/sora/uk/air_risk_classifications/{arc_id}": {
636
+ parameters: {
637
+ query?: never;
638
+ header?: never;
639
+ path?: never;
640
+ cookie?: never;
641
+ };
642
+ /**
643
+ * Retrieve the specified Air Risk Classification
644
+ * @description Retrieve the specified Air Risk Classification.
645
+ */
646
+ get: operations["uk_arc_single_v1_risk_assessment_sora_uk_air_risk_classifications__arc_id__get"];
647
+ put?: never;
648
+ post?: never;
649
+ delete?: never;
650
+ options?: never;
651
+ head?: never;
652
+ patch?: never;
653
+ trace?: never;
654
+ };
615
655
  "/risk_assessment/sora/classifications": {
616
656
  parameters: {
617
657
  query?: never;
@@ -855,7 +895,7 @@ export interface components {
855
895
  /** ArcAttributes */
856
896
  ArcAttributes: {
857
897
  /**
858
- * ARC display name
898
+ * ARC Display Name
859
899
  * @description ARC sub-category display name
860
900
  */
861
901
  name: string;
@@ -1539,6 +1579,12 @@ export interface components {
1539
1579
  data: components["schemas"]["JsonApiResponse_FlightplanResponse_"][];
1540
1580
  links: components["schemas"]["Links"];
1541
1581
  };
1582
+ /** JsonApiListResponse[JsonApiResponse[UkArcResponse]] */
1583
+ JsonApiListResponse_JsonApiResponse_UkArcResponse__: {
1584
+ /** Data */
1585
+ data: components["schemas"]["JsonApiResponse_UkArcResponse_"][];
1586
+ links: components["schemas"]["Links"];
1587
+ };
1542
1588
  /** JsonApiListResponse[JsonApiResponse[VolumeResponse]] */
1543
1589
  JsonApiListResponse_JsonApiResponse_VolumeResponse__: {
1544
1590
  /** Data */
@@ -1615,6 +1661,11 @@ export interface components {
1615
1661
  data: components["schemas"]["StatisticsResponse"];
1616
1662
  links: components["schemas"]["Links"];
1617
1663
  };
1664
+ /** JsonApiResponse[UkArcResponse] */
1665
+ JsonApiResponse_UkArcResponse_: {
1666
+ data: components["schemas"]["UkArcResponse"];
1667
+ links: components["schemas"]["Links"];
1668
+ };
1618
1669
  /** JsonApiResponse[VolumeResponse] */
1619
1670
  JsonApiResponse_VolumeResponse_: {
1620
1671
  data: components["schemas"]["VolumeResponse"];
@@ -2277,6 +2328,58 @@ export interface components {
2277
2328
  * @enum {string}
2278
2329
  */
2279
2330
  TokenType: "Bearer";
2331
+ /** UkArcAttributes */
2332
+ UkArcAttributes: {
2333
+ /**
2334
+ * ARC Display Name
2335
+ * @description ARC sub-category display name
2336
+ */
2337
+ name: string;
2338
+ /** Implemented */
2339
+ implemented: boolean;
2340
+ };
2341
+ /** UkArcResponse */
2342
+ UkArcResponse: {
2343
+ /**
2344
+ * Air Risk Classification (ARC)
2345
+ * @description Qualitative classification of the air environment.
2346
+ *
2347
+ * - 'arc-a1' - ARC-a (NMAC Encounter Rate)
2348
+ *
2349
+ * - 'arc-a2' - ARC-a (Linear Infrastructure)
2350
+ *
2351
+ * - 'arc-a3' - ARC-a (Restricted Airspace)
2352
+ *
2353
+ * - 'arc-a4' - ARC-a (Danger Area)
2354
+ *
2355
+ * - 'arc-a5' - ARC-a (Self Declared)
2356
+ *
2357
+ * - 'arc-b1' - ARC-b (Class C or D Airspace <500ft AGL)
2358
+ *
2359
+ * - 'arc-c1' - ARC-c (Class E or G Airspace)
2360
+ *
2361
+ * - 'arc-c2' - ARC-c (Class C or D Airspace in area with Visual Flight Rules)
2362
+ *
2363
+ * - 'arc-c3' - ARC-c (Class C or D Airspace in area with Low-Level Helicopter Route)
2364
+ *
2365
+ * - 'arc-c4' - ARC-c (Class C or D Airspace >500ft AGL)
2366
+ *
2367
+ * - 'arc-d1' - ARC-d (Class A Airspace)
2368
+ *
2369
+ * - 'arc-d2' - ARC-d (Class C or D Airspace in area with known Instrument Flight Procedures)
2370
+ *
2371
+ * @enum {string}
2372
+ */
2373
+ id: "arc-a1" | "arc-a2" | "arc-a3" | "arc-a4" | "arc-a5" | "arc-b1" | "arc-c1" | "arc-c2" | "arc-c3" | "arc-c4" | "arc-d1" | "arc-d2";
2374
+ /**
2375
+ * Type
2376
+ * @default air_risk_classification
2377
+ * @constant
2378
+ * @enum {string}
2379
+ */
2380
+ type?: "air_risk_classification";
2381
+ attributes: components["schemas"]["UkArcAttributes"];
2382
+ };
2280
2383
  /** ValidationError */
2281
2384
  ValidationError: {
2282
2385
  /** Location */
@@ -4650,6 +4753,128 @@ export interface operations {
4650
4753
  };
4651
4754
  };
4652
4755
  };
4756
+ uk_ARCs_list_v1_risk_assessment_sora_uk_air_risk_classifications_get: {
4757
+ parameters: {
4758
+ query?: never;
4759
+ header?: never;
4760
+ path?: never;
4761
+ cookie?: never;
4762
+ };
4763
+ requestBody?: never;
4764
+ responses: {
4765
+ /** @description Successful Response */
4766
+ 200: {
4767
+ headers: {
4768
+ [name: string]: unknown;
4769
+ };
4770
+ content: {
4771
+ "application/json": components["schemas"]["JsonApiListResponse_JsonApiResponse_UkArcResponse__"];
4772
+ };
4773
+ };
4774
+ /** @description One or more input parameters were missing or invalid. */
4775
+ 400: {
4776
+ headers: {
4777
+ [name: string]: unknown;
4778
+ };
4779
+ content: {
4780
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
4781
+ };
4782
+ };
4783
+ /** @description Bearer access token was not provided in Authorization header, token could not be decoded, or token was invalid. */
4784
+ 401: {
4785
+ headers: {
4786
+ [name: string]: unknown;
4787
+ };
4788
+ content: {
4789
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
4790
+ };
4791
+ };
4792
+ };
4793
+ };
4794
+ uk_arc_single_v1_risk_assessment_sora_uk_air_risk_classifications__arc_id__get: {
4795
+ parameters: {
4796
+ query?: never;
4797
+ header?: never;
4798
+ path: {
4799
+ /** @description Qualitative classification of the air environment.
4800
+ *
4801
+ * - 'arc-a1' - ARC-a (NMAC Encounter Rate)
4802
+ *
4803
+ * - 'arc-a2' - ARC-a (Linear Infrastructure)
4804
+ *
4805
+ * - 'arc-a3' - ARC-a (Restricted Airspace)
4806
+ *
4807
+ * - 'arc-a4' - ARC-a (Danger Area)
4808
+ *
4809
+ * - 'arc-a5' - ARC-a (Self Declared)
4810
+ *
4811
+ * - 'arc-b1' - ARC-b (Class C or D Airspace <500ft AGL)
4812
+ *
4813
+ * - 'arc-c1' - ARC-c (Class E or G Airspace)
4814
+ *
4815
+ * - 'arc-c2' - ARC-c (Class C or D Airspace in area with Visual Flight Rules)
4816
+ *
4817
+ * - 'arc-c3' - ARC-c (Class C or D Airspace in area with Low-Level Helicopter Route)
4818
+ *
4819
+ * - 'arc-c4' - ARC-c (Class C or D Airspace >500ft AGL)
4820
+ *
4821
+ * - 'arc-d1' - ARC-d (Class A Airspace)
4822
+ *
4823
+ * - 'arc-d2' - ARC-d (Class C or D Airspace in area with known Instrument Flight Procedures)
4824
+ * */
4825
+ arc_id: "arc-a1" | "arc-a2" | "arc-a3" | "arc-a4" | "arc-a5" | "arc-b1" | "arc-c1" | "arc-c2" | "arc-c3" | "arc-c4" | "arc-d1" | "arc-d2";
4826
+ };
4827
+ cookie?: never;
4828
+ };
4829
+ requestBody?: never;
4830
+ responses: {
4831
+ /** @description Successful Response */
4832
+ 200: {
4833
+ headers: {
4834
+ [name: string]: unknown;
4835
+ };
4836
+ content: {
4837
+ "application/json": components["schemas"]["JsonApiResponse_UkArcResponse_"];
4838
+ };
4839
+ };
4840
+ /** @description One or more input parameters were missing or invalid. */
4841
+ 400: {
4842
+ headers: {
4843
+ [name: string]: unknown;
4844
+ };
4845
+ content: {
4846
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
4847
+ };
4848
+ };
4849
+ /** @description Bearer access token was not provided in Authorization header, token could not be decoded, or token was invalid. */
4850
+ 401: {
4851
+ headers: {
4852
+ [name: string]: unknown;
4853
+ };
4854
+ content: {
4855
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
4856
+ };
4857
+ };
4858
+ /** @description The requested resource could not be found */
4859
+ 404: {
4860
+ headers: {
4861
+ [name: string]: unknown;
4862
+ };
4863
+ content: {
4864
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
4865
+ };
4866
+ };
4867
+ /** @description Validation Error */
4868
+ 422: {
4869
+ headers: {
4870
+ [name: string]: unknown;
4871
+ };
4872
+ content: {
4873
+ "application/json": components["schemas"]["HTTPValidationError"];
4874
+ };
4875
+ };
4876
+ };
4877
+ };
4653
4878
  create_sora_classification_v1_risk_assessment_sora_classifications_post: {
4654
4879
  parameters: {
4655
4880
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volant-autonomy/via-sdk",
3
- "version": "1.2984.1",
3
+ "version": "1.3025.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "types": "dist/index.d.ts",