@ourskyai/platform-api 1.3.4675 → 1.3.4784

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/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * OurSky Platform
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4675
8
+ * The version of the OpenAPI document: 1.3.4784
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -179,6 +179,7 @@ exports.V1NodeComponentType = {
179
179
  MOUNT: 'MOUNT',
180
180
  OPTICAL_TUBE: 'OPTICAL_TUBE',
181
181
  COMPUTER: 'COMPUTER',
182
+ SAFETY_MONITOR: 'SAFETY_MONITOR',
182
183
  NODE: 'NODE'
183
184
  };
184
185
  /**
@@ -206,6 +207,8 @@ exports.V1NodeDiagnosticType = {
206
207
  CPU_USAGE_LAST_MINUTE_PCT: 'CPU_USAGE_LAST_MINUTE_PCT',
207
208
  FOCUS_HFR_VALUES: 'FOCUS_HFR_VALUES',
208
209
  HAS_FOCUSER: 'HAS_FOCUSER',
210
+ HAS_SAFETY_MONITOR: 'HAS_SAFETY_MONITOR',
211
+ SAFETY_STATUS: 'SAFETY_STATUS',
209
212
  GNSS_CALIBRATION: 'GNSS_CALIBRATION',
210
213
  SATELLITE_CALIBRATION: 'SATELLITE_CALIBRATION',
211
214
  MOUNT_MODEL_CHECKED: 'MOUNT_MODEL_CHECKED',
@@ -746,17 +749,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
746
749
  };
747
750
  }),
748
751
  /**
749
- * Create an embedding URL for a dashboard or question
750
- * @param {string} questionType
751
- * @param {string} [nodeId]
752
- * @param {number} [lookbackDays]
752
+ * Get an image set.
753
+ * @param {string} id
753
754
  * @param {*} [options] Override http request option.
754
755
  * @throws {RequiredError}
755
756
  */
756
- v1GetEmbeddedQueryUrl: (questionType, nodeId, lookbackDays, options = {}) => __awaiter(this, void 0, void 0, function* () {
757
- // verify required parameter 'questionType' is not null or undefined
758
- (0, common_1.assertParamExists)('v1GetEmbeddedQueryUrl', 'questionType', questionType);
759
- const localVarPath = `/v1/analytics`;
757
+ v1GetImageSet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
758
+ // verify required parameter 'id' is not null or undefined
759
+ (0, common_1.assertParamExists)('v1GetImageSet', 'id', id);
760
+ const localVarPath = `/v1/image-set`;
760
761
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
761
762
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
762
763
  let baseOptions;
@@ -770,14 +771,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
770
771
  // authentication BearerToken required
771
772
  // http bearer authentication required
772
773
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
773
- if (questionType !== undefined) {
774
- localVarQueryParameter['questionType'] = questionType;
775
- }
776
- if (nodeId !== undefined) {
777
- localVarQueryParameter['nodeId'] = nodeId;
778
- }
779
- if (lookbackDays !== undefined) {
780
- localVarQueryParameter['lookbackDays'] = lookbackDays;
774
+ if (id !== undefined) {
775
+ localVarQueryParameter['id'] = id;
781
776
  }
782
777
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
783
778
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -788,15 +783,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
788
783
  };
789
784
  }),
790
785
  /**
791
- * Get an image set.
792
- * @param {string} id
786
+ * Get an image.
787
+ * @param {string} imageId
793
788
  * @param {*} [options] Override http request option.
794
789
  * @throws {RequiredError}
795
790
  */
796
- v1GetImageSet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
797
- // verify required parameter 'id' is not null or undefined
798
- (0, common_1.assertParamExists)('v1GetImageSet', 'id', id);
799
- const localVarPath = `/v1/image-set`;
791
+ v1GetImageSetImage: (imageId, options = {}) => __awaiter(this, void 0, void 0, function* () {
792
+ // verify required parameter 'imageId' is not null or undefined
793
+ (0, common_1.assertParamExists)('v1GetImageSetImage', 'imageId', imageId);
794
+ const localVarPath = `/v1/image-set-image`;
800
795
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
801
796
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
802
797
  let baseOptions;
@@ -810,8 +805,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
810
805
  // authentication BearerToken required
811
806
  // http bearer authentication required
812
807
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
813
- if (id !== undefined) {
814
- localVarQueryParameter['id'] = id;
808
+ if (imageId !== undefined) {
809
+ localVarQueryParameter['imageId'] = imageId;
815
810
  }
816
811
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
817
812
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -822,15 +817,48 @@ const DefaultApiAxiosParamCreator = function (configuration) {
822
817
  };
823
818
  }),
824
819
  /**
825
- * Get an image.
826
- * @param {string} imageId
820
+ * Get instruction.
821
+ * @param {V1GetInstructionRequest} v1GetInstructionRequest
827
822
  * @param {*} [options] Override http request option.
828
823
  * @throws {RequiredError}
829
824
  */
830
- v1GetImageSetImage: (imageId, options = {}) => __awaiter(this, void 0, void 0, function* () {
831
- // verify required parameter 'imageId' is not null or undefined
832
- (0, common_1.assertParamExists)('v1GetImageSetImage', 'imageId', imageId);
833
- const localVarPath = `/v1/image-set-image`;
825
+ v1GetInstruction: (v1GetInstructionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
826
+ // verify required parameter 'v1GetInstructionRequest' is not null or undefined
827
+ (0, common_1.assertParamExists)('v1GetInstruction', 'v1GetInstructionRequest', v1GetInstructionRequest);
828
+ const localVarPath = `/v1/instruction`;
829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
830
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
831
+ let baseOptions;
832
+ if (configuration) {
833
+ baseOptions = configuration.baseOptions;
834
+ }
835
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
836
+ const localVarHeaderParameter = {};
837
+ const localVarQueryParameter = {};
838
+ // authentication Roles required
839
+ // authentication BearerToken required
840
+ // http bearer authentication required
841
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
842
+ localVarHeaderParameter['Content-Type'] = 'application/json';
843
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
845
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
846
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v1GetInstructionRequest, localVarRequestOptions, configuration);
847
+ return {
848
+ url: (0, common_1.toPathString)(localVarUrlObj),
849
+ options: localVarRequestOptions,
850
+ };
851
+ }),
852
+ /**
853
+ * Get the last instruction time and type for a specific node.
854
+ * @param {string} nodeId
855
+ * @param {*} [options] Override http request option.
856
+ * @throws {RequiredError}
857
+ */
858
+ v1GetLastInstructionByNodeId: (nodeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
859
+ // verify required parameter 'nodeId' is not null or undefined
860
+ (0, common_1.assertParamExists)('v1GetLastInstructionByNodeId', 'nodeId', nodeId);
861
+ const localVarPath = `/v1/instruction`;
834
862
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
835
863
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
836
864
  let baseOptions;
@@ -844,8 +872,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
844
872
  // authentication BearerToken required
845
873
  // http bearer authentication required
846
874
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
847
- if (imageId !== undefined) {
848
- localVarQueryParameter['imageId'] = imageId;
875
+ if (nodeId !== undefined) {
876
+ localVarQueryParameter['nodeId'] = nodeId;
849
877
  }
850
878
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
851
879
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -856,33 +884,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
856
884
  };
857
885
  }),
858
886
  /**
859
- * Get instruction.
860
- * @param {V1GetInstructionRequest} v1GetInstructionRequest
887
+ * Get the latest HFR value for a specific node by its ID
888
+ * @param {string} nodeId
861
889
  * @param {*} [options] Override http request option.
862
890
  * @throws {RequiredError}
863
891
  */
864
- v1GetInstruction: (v1GetInstructionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
865
- // verify required parameter 'v1GetInstructionRequest' is not null or undefined
866
- (0, common_1.assertParamExists)('v1GetInstruction', 'v1GetInstructionRequest', v1GetInstructionRequest);
867
- const localVarPath = `/v1/instruction`;
892
+ v1GetLatestHfr: (nodeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
893
+ // verify required parameter 'nodeId' is not null or undefined
894
+ (0, common_1.assertParamExists)('v1GetLatestHfr', 'nodeId', nodeId);
895
+ const localVarPath = `/v1/autofocus`;
868
896
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
869
897
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
870
898
  let baseOptions;
871
899
  if (configuration) {
872
900
  baseOptions = configuration.baseOptions;
873
901
  }
874
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
902
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
875
903
  const localVarHeaderParameter = {};
876
904
  const localVarQueryParameter = {};
877
905
  // authentication Roles required
878
906
  // authentication BearerToken required
879
907
  // http bearer authentication required
880
908
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
881
- localVarHeaderParameter['Content-Type'] = 'application/json';
909
+ if (nodeId !== undefined) {
910
+ localVarQueryParameter['nodeId'] = nodeId;
911
+ }
882
912
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
883
913
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
884
914
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
885
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v1GetInstructionRequest, localVarRequestOptions, configuration);
886
915
  return {
887
916
  url: (0, common_1.toPathString)(localVarUrlObj),
888
917
  options: localVarRequestOptions,
@@ -1622,20 +1651,6 @@ const DefaultApiFp = function (configuration) {
1622
1651
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1623
1652
  });
1624
1653
  },
1625
- /**
1626
- * Create an embedding URL for a dashboard or question
1627
- * @param {string} questionType
1628
- * @param {string} [nodeId]
1629
- * @param {number} [lookbackDays]
1630
- * @param {*} [options] Override http request option.
1631
- * @throws {RequiredError}
1632
- */
1633
- v1GetEmbeddedQueryUrl(questionType, nodeId, lookbackDays, options) {
1634
- return __awaiter(this, void 0, void 0, function* () {
1635
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetEmbeddedQueryUrl(questionType, nodeId, lookbackDays, options);
1636
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1637
- });
1638
- },
1639
1654
  /**
1640
1655
  * Get an image set.
1641
1656
  * @param {string} id
@@ -1672,6 +1687,30 @@ const DefaultApiFp = function (configuration) {
1672
1687
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1673
1688
  });
1674
1689
  },
1690
+ /**
1691
+ * Get the last instruction time and type for a specific node.
1692
+ * @param {string} nodeId
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ v1GetLastInstructionByNodeId(nodeId, options) {
1697
+ return __awaiter(this, void 0, void 0, function* () {
1698
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetLastInstructionByNodeId(nodeId, options);
1699
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1700
+ });
1701
+ },
1702
+ /**
1703
+ * Get the latest HFR value for a specific node by its ID
1704
+ * @param {string} nodeId
1705
+ * @param {*} [options] Override http request option.
1706
+ * @throws {RequiredError}
1707
+ */
1708
+ v1GetLatestHfr(nodeId, options) {
1709
+ return __awaiter(this, void 0, void 0, function* () {
1710
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetLatestHfr(nodeId, options);
1711
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1712
+ });
1713
+ },
1675
1714
  /**
1676
1715
  * Get a mount.
1677
1716
  * @param {string} id
@@ -2009,15 +2048,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2009
2048
  v1GetCameras(options) {
2010
2049
  return localVarFp.v1GetCameras(options).then((request) => request(axios, basePath));
2011
2050
  },
2012
- /**
2013
- * Create an embedding URL for a dashboard or question
2014
- * @param {DefaultApiV1GetEmbeddedQueryUrlRequest} requestParameters Request parameters.
2015
- * @param {*} [options] Override http request option.
2016
- * @throws {RequiredError}
2017
- */
2018
- v1GetEmbeddedQueryUrl(requestParameters, options) {
2019
- return localVarFp.v1GetEmbeddedQueryUrl(requestParameters.questionType, requestParameters.nodeId, requestParameters.lookbackDays, options).then((request) => request(axios, basePath));
2020
- },
2021
2051
  /**
2022
2052
  * Get an image set.
2023
2053
  * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
@@ -2045,6 +2075,24 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2045
2075
  v1GetInstruction(requestParameters, options) {
2046
2076
  return localVarFp.v1GetInstruction(requestParameters.v1GetInstructionRequest, options).then((request) => request(axios, basePath));
2047
2077
  },
2078
+ /**
2079
+ * Get the last instruction time and type for a specific node.
2080
+ * @param {DefaultApiV1GetLastInstructionByNodeIdRequest} requestParameters Request parameters.
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ */
2084
+ v1GetLastInstructionByNodeId(requestParameters, options) {
2085
+ return localVarFp.v1GetLastInstructionByNodeId(requestParameters.nodeId, options).then((request) => request(axios, basePath));
2086
+ },
2087
+ /**
2088
+ * Get the latest HFR value for a specific node by its ID
2089
+ * @param {DefaultApiV1GetLatestHfrRequest} requestParameters Request parameters.
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ */
2093
+ v1GetLatestHfr(requestParameters, options) {
2094
+ return localVarFp.v1GetLatestHfr(requestParameters.nodeId, options).then((request) => request(axios, basePath));
2095
+ },
2048
2096
  /**
2049
2097
  * Get a mount.
2050
2098
  * @param {DefaultApiV1GetMountRequest} requestParameters Request parameters.
@@ -2346,16 +2394,6 @@ class DefaultApi extends base_1.BaseAPI {
2346
2394
  v1GetCameras(options) {
2347
2395
  return (0, exports.DefaultApiFp)(this.configuration).v1GetCameras(options).then((request) => request(this.axios, this.basePath));
2348
2396
  }
2349
- /**
2350
- * Create an embedding URL for a dashboard or question
2351
- * @param {DefaultApiV1GetEmbeddedQueryUrlRequest} requestParameters Request parameters.
2352
- * @param {*} [options] Override http request option.
2353
- * @throws {RequiredError}
2354
- * @memberof DefaultApi
2355
- */
2356
- v1GetEmbeddedQueryUrl(requestParameters, options) {
2357
- return (0, exports.DefaultApiFp)(this.configuration).v1GetEmbeddedQueryUrl(requestParameters.questionType, requestParameters.nodeId, requestParameters.lookbackDays, options).then((request) => request(this.axios, this.basePath));
2358
- }
2359
2397
  /**
2360
2398
  * Get an image set.
2361
2399
  * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
@@ -2386,6 +2424,26 @@ class DefaultApi extends base_1.BaseAPI {
2386
2424
  v1GetInstruction(requestParameters, options) {
2387
2425
  return (0, exports.DefaultApiFp)(this.configuration).v1GetInstruction(requestParameters.v1GetInstructionRequest, options).then((request) => request(this.axios, this.basePath));
2388
2426
  }
2427
+ /**
2428
+ * Get the last instruction time and type for a specific node.
2429
+ * @param {DefaultApiV1GetLastInstructionByNodeIdRequest} requestParameters Request parameters.
2430
+ * @param {*} [options] Override http request option.
2431
+ * @throws {RequiredError}
2432
+ * @memberof DefaultApi
2433
+ */
2434
+ v1GetLastInstructionByNodeId(requestParameters, options) {
2435
+ return (0, exports.DefaultApiFp)(this.configuration).v1GetLastInstructionByNodeId(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
2436
+ }
2437
+ /**
2438
+ * Get the latest HFR value for a specific node by its ID
2439
+ * @param {DefaultApiV1GetLatestHfrRequest} requestParameters Request parameters.
2440
+ * @param {*} [options] Override http request option.
2441
+ * @throws {RequiredError}
2442
+ * @memberof DefaultApi
2443
+ */
2444
+ v1GetLatestHfr(requestParameters, options) {
2445
+ return (0, exports.DefaultApiFp)(this.configuration).v1GetLatestHfr(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
2446
+ }
2389
2447
  /**
2390
2448
  * Get a mount.
2391
2449
  * @param {DefaultApiV1GetMountRequest} requestParameters Request parameters.
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OurSky Platform
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.4675
5
+ * The version of the OpenAPI document: 1.3.4784
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * OurSky Platform
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4675
8
+ * The version of the OpenAPI document: 1.3.4784
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OurSky Platform
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.4675
5
+ * The version of the OpenAPI document: 1.3.4784
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * OurSky Platform
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4675
8
+ * The version of the OpenAPI document: 1.3.4784
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * OurSky Platform
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.4675
5
+ * The version of the OpenAPI document: 1.3.4784
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * OurSky Platform
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4675
8
+ * The version of the OpenAPI document: 1.3.4784
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).