@ourskyai/platform-api 1.3.2765 → 1.3.3181

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.2765
8
+ * The version of the OpenAPI document: 1.3.3181
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -166,6 +166,34 @@ exports.V1NodeDiagnosticType = {
166
166
  */
167
167
  const DefaultApiAxiosParamCreator = function (configuration) {
168
168
  return {
169
+ /**
170
+ * Get the various tokens used in client applications
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ getClientToken: (options = {}) => __awaiter(this, void 0, void 0, function* () {
175
+ const localVarPath = `/v1/client-tokens`;
176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ if (configuration) {
180
+ baseOptions = configuration.baseOptions;
181
+ }
182
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
183
+ const localVarHeaderParameter = {};
184
+ const localVarQueryParameter = {};
185
+ // authentication Roles required
186
+ // authentication BearerToken required
187
+ // http bearer authentication required
188
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ return {
193
+ url: (0, common_1.toPathString)(localVarUrlObj),
194
+ options: localVarRequestOptions,
195
+ };
196
+ }),
169
197
  /**
170
198
  * Match camera.
171
199
  * @param {string} [model]
@@ -457,39 +485,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
457
485
  options: localVarRequestOptions,
458
486
  };
459
487
  }),
460
- /**
461
- * Create an observation instruction.
462
- * @param {V1CreateObservationInstructionRequest} v1CreateObservationInstructionRequest
463
- * @param {*} [options] Override http request option.
464
- * @throws {RequiredError}
465
- */
466
- v1CreateObservationInstruction: (v1CreateObservationInstructionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
467
- // verify required parameter 'v1CreateObservationInstructionRequest' is not null or undefined
468
- (0, common_1.assertParamExists)('v1CreateObservationInstruction', 'v1CreateObservationInstructionRequest', v1CreateObservationInstructionRequest);
469
- const localVarPath = `/v1/observation-instruction`;
470
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
471
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
472
- let baseOptions;
473
- if (configuration) {
474
- baseOptions = configuration.baseOptions;
475
- }
476
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
477
- const localVarHeaderParameter = {};
478
- const localVarQueryParameter = {};
479
- // authentication Roles required
480
- // authentication BearerToken required
481
- // http bearer authentication required
482
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
483
- localVarHeaderParameter['Content-Type'] = 'application/json';
484
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
485
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v1CreateObservationInstructionRequest, localVarRequestOptions, configuration);
488
- return {
489
- url: (0, common_1.toPathString)(localVarUrlObj),
490
- options: localVarRequestOptions,
491
- };
492
- }),
493
488
  /**
494
489
  * Create an optical tube.
495
490
  * @param {V1CreateOpticalTubeRequest} v1CreateOpticalTubeRequest
@@ -1125,39 +1120,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1125
1120
  options: localVarRequestOptions,
1126
1121
  };
1127
1122
  }),
1128
- /**
1129
- * Update node metrics.
1130
- * @param {V1UpdateNodeMetricsRequest} v1UpdateNodeMetricsRequest
1131
- * @param {*} [options] Override http request option.
1132
- * @throws {RequiredError}
1133
- */
1134
- v1UpdateNodeMetrics: (v1UpdateNodeMetricsRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1135
- // verify required parameter 'v1UpdateNodeMetricsRequest' is not null or undefined
1136
- (0, common_1.assertParamExists)('v1UpdateNodeMetrics', 'v1UpdateNodeMetricsRequest', v1UpdateNodeMetricsRequest);
1137
- const localVarPath = `/v1/node-metrics`;
1138
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1139
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1140
- let baseOptions;
1141
- if (configuration) {
1142
- baseOptions = configuration.baseOptions;
1143
- }
1144
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1145
- const localVarHeaderParameter = {};
1146
- const localVarQueryParameter = {};
1147
- // authentication Roles required
1148
- // authentication BearerToken required
1149
- // http bearer authentication required
1150
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1151
- localVarHeaderParameter['Content-Type'] = 'application/json';
1152
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1153
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1154
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1155
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v1UpdateNodeMetricsRequest, localVarRequestOptions, configuration);
1156
- return {
1157
- url: (0, common_1.toPathString)(localVarUrlObj),
1158
- options: localVarRequestOptions,
1159
- };
1160
- }),
1161
1123
  /**
1162
1124
  * Complete an observation utilizing the async pipeline.
1163
1125
  * @param {V2CompleteObservationRequest} v2CompleteObservationRequest
@@ -1191,40 +1153,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1191
1153
  options: localVarRequestOptions,
1192
1154
  };
1193
1155
  }),
1194
- /**
1195
- * Get next observation.
1196
- * @param {string} nodeId
1197
- * @param {*} [options] Override http request option.
1198
- * @throws {RequiredError}
1199
- */
1200
- v2GetObservation: (nodeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1201
- // verify required parameter 'nodeId' is not null or undefined
1202
- (0, common_1.assertParamExists)('v2GetObservation', 'nodeId', nodeId);
1203
- const localVarPath = `/v2/observation`;
1204
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1205
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1206
- let baseOptions;
1207
- if (configuration) {
1208
- baseOptions = configuration.baseOptions;
1209
- }
1210
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1211
- const localVarHeaderParameter = {};
1212
- const localVarQueryParameter = {};
1213
- // authentication Roles required
1214
- // authentication BearerToken required
1215
- // http bearer authentication required
1216
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1217
- if (nodeId !== undefined) {
1218
- localVarQueryParameter['nodeId'] = nodeId;
1219
- }
1220
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1221
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1222
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1223
- return {
1224
- url: (0, common_1.toPathString)(localVarUrlObj),
1225
- options: localVarRequestOptions,
1226
- };
1227
- }),
1228
1156
  };
1229
1157
  };
1230
1158
  exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
@@ -1235,6 +1163,17 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
1235
1163
  const DefaultApiFp = function (configuration) {
1236
1164
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
1237
1165
  return {
1166
+ /**
1167
+ * Get the various tokens used in client applications
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ */
1171
+ getClientToken(options) {
1172
+ return __awaiter(this, void 0, void 0, function* () {
1173
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientToken(options);
1174
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1175
+ });
1176
+ },
1238
1177
  /**
1239
1178
  * Match camera.
1240
1179
  * @param {string} [model]
@@ -1338,18 +1277,6 @@ const DefaultApiFp = function (configuration) {
1338
1277
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1339
1278
  });
1340
1279
  },
1341
- /**
1342
- * Create an observation instruction.
1343
- * @param {V1CreateObservationInstructionRequest} v1CreateObservationInstructionRequest
1344
- * @param {*} [options] Override http request option.
1345
- * @throws {RequiredError}
1346
- */
1347
- v1CreateObservationInstruction(v1CreateObservationInstructionRequest, options) {
1348
- return __awaiter(this, void 0, void 0, function* () {
1349
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateObservationInstruction(v1CreateObservationInstructionRequest, options);
1350
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1351
- });
1352
- },
1353
1280
  /**
1354
1281
  * Create an optical tube.
1355
1282
  * @param {V1CreateOpticalTubeRequest} v1CreateOpticalTubeRequest
@@ -1579,18 +1506,6 @@ const DefaultApiFp = function (configuration) {
1579
1506
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1580
1507
  });
1581
1508
  },
1582
- /**
1583
- * Update node metrics.
1584
- * @param {V1UpdateNodeMetricsRequest} v1UpdateNodeMetricsRequest
1585
- * @param {*} [options] Override http request option.
1586
- * @throws {RequiredError}
1587
- */
1588
- v1UpdateNodeMetrics(v1UpdateNodeMetricsRequest, options) {
1589
- return __awaiter(this, void 0, void 0, function* () {
1590
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1UpdateNodeMetrics(v1UpdateNodeMetricsRequest, options);
1591
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1592
- });
1593
- },
1594
1509
  /**
1595
1510
  * Complete an observation utilizing the async pipeline.
1596
1511
  * @param {V2CompleteObservationRequest} v2CompleteObservationRequest
@@ -1603,18 +1518,6 @@ const DefaultApiFp = function (configuration) {
1603
1518
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1604
1519
  });
1605
1520
  },
1606
- /**
1607
- * Get next observation.
1608
- * @param {string} nodeId
1609
- * @param {*} [options] Override http request option.
1610
- * @throws {RequiredError}
1611
- */
1612
- v2GetObservation(nodeId, options) {
1613
- return __awaiter(this, void 0, void 0, function* () {
1614
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v2GetObservation(nodeId, options);
1615
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1616
- });
1617
- },
1618
1521
  };
1619
1522
  };
1620
1523
  exports.DefaultApiFp = DefaultApiFp;
@@ -1625,6 +1528,14 @@ exports.DefaultApiFp = DefaultApiFp;
1625
1528
  const DefaultApiFactory = function (configuration, basePath, axios) {
1626
1529
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
1627
1530
  return {
1531
+ /**
1532
+ * Get the various tokens used in client applications
1533
+ * @param {*} [options] Override http request option.
1534
+ * @throws {RequiredError}
1535
+ */
1536
+ getClientToken(options) {
1537
+ return localVarFp.getClientToken(options).then((request) => request(axios, basePath));
1538
+ },
1628
1539
  /**
1629
1540
  * Match camera.
1630
1541
  * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
@@ -1697,15 +1608,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1697
1608
  v1CreateNodeDiagnostics(requestParameters, options) {
1698
1609
  return localVarFp.v1CreateNodeDiagnostics(requestParameters.v1CreateNodeDiagnosticsRequest, options).then((request) => request(axios, basePath));
1699
1610
  },
1700
- /**
1701
- * Create an observation instruction.
1702
- * @param {DefaultApiV1CreateObservationInstructionRequest} requestParameters Request parameters.
1703
- * @param {*} [options] Override http request option.
1704
- * @throws {RequiredError}
1705
- */
1706
- v1CreateObservationInstruction(requestParameters, options) {
1707
- return localVarFp.v1CreateObservationInstruction(requestParameters.v1CreateObservationInstructionRequest, options).then((request) => request(axios, basePath));
1708
- },
1709
1611
  /**
1710
1612
  * Create an optical tube.
1711
1613
  * @param {DefaultApiV1CreateOpticalTubeRequest} requestParameters Request parameters.
@@ -1875,15 +1777,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1875
1777
  v1UpdateNodeComponents(requestParameters, options) {
1876
1778
  return localVarFp.v1UpdateNodeComponents(requestParameters.v1UpdateNodeComponentsRequest, options).then((request) => request(axios, basePath));
1877
1779
  },
1878
- /**
1879
- * Update node metrics.
1880
- * @param {DefaultApiV1UpdateNodeMetricsRequest} requestParameters Request parameters.
1881
- * @param {*} [options] Override http request option.
1882
- * @throws {RequiredError}
1883
- */
1884
- v1UpdateNodeMetrics(requestParameters, options) {
1885
- return localVarFp.v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetricsRequest, options).then((request) => request(axios, basePath));
1886
- },
1887
1780
  /**
1888
1781
  * Complete an observation utilizing the async pipeline.
1889
1782
  * @param {DefaultApiV2CompleteObservationRequest} requestParameters Request parameters.
@@ -1893,15 +1786,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1893
1786
  v2CompleteObservation(requestParameters, options) {
1894
1787
  return localVarFp.v2CompleteObservation(requestParameters.v2CompleteObservationRequest, options).then((request) => request(axios, basePath));
1895
1788
  },
1896
- /**
1897
- * Get next observation.
1898
- * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
1899
- * @param {*} [options] Override http request option.
1900
- * @throws {RequiredError}
1901
- */
1902
- v2GetObservation(requestParameters, options) {
1903
- return localVarFp.v2GetObservation(requestParameters.nodeId, options).then((request) => request(axios, basePath));
1904
- },
1905
1789
  };
1906
1790
  };
1907
1791
  exports.DefaultApiFactory = DefaultApiFactory;
@@ -1912,6 +1796,15 @@ exports.DefaultApiFactory = DefaultApiFactory;
1912
1796
  * @extends {BaseAPI}
1913
1797
  */
1914
1798
  class DefaultApi extends base_1.BaseAPI {
1799
+ /**
1800
+ * Get the various tokens used in client applications
1801
+ * @param {*} [options] Override http request option.
1802
+ * @throws {RequiredError}
1803
+ * @memberof DefaultApi
1804
+ */
1805
+ getClientToken(options) {
1806
+ return (0, exports.DefaultApiFp)(this.configuration).getClientToken(options).then((request) => request(this.axios, this.basePath));
1807
+ }
1915
1808
  /**
1916
1809
  * Match camera.
1917
1810
  * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
@@ -1992,16 +1885,6 @@ class DefaultApi extends base_1.BaseAPI {
1992
1885
  v1CreateNodeDiagnostics(requestParameters, options) {
1993
1886
  return (0, exports.DefaultApiFp)(this.configuration).v1CreateNodeDiagnostics(requestParameters.v1CreateNodeDiagnosticsRequest, options).then((request) => request(this.axios, this.basePath));
1994
1887
  }
1995
- /**
1996
- * Create an observation instruction.
1997
- * @param {DefaultApiV1CreateObservationInstructionRequest} requestParameters Request parameters.
1998
- * @param {*} [options] Override http request option.
1999
- * @throws {RequiredError}
2000
- * @memberof DefaultApi
2001
- */
2002
- v1CreateObservationInstruction(requestParameters, options) {
2003
- return (0, exports.DefaultApiFp)(this.configuration).v1CreateObservationInstruction(requestParameters.v1CreateObservationInstructionRequest, options).then((request) => request(this.axios, this.basePath));
2004
- }
2005
1888
  /**
2006
1889
  * Create an optical tube.
2007
1890
  * @param {DefaultApiV1CreateOpticalTubeRequest} requestParameters Request parameters.
@@ -2190,16 +2073,6 @@ class DefaultApi extends base_1.BaseAPI {
2190
2073
  v1UpdateNodeComponents(requestParameters, options) {
2191
2074
  return (0, exports.DefaultApiFp)(this.configuration).v1UpdateNodeComponents(requestParameters.v1UpdateNodeComponentsRequest, options).then((request) => request(this.axios, this.basePath));
2192
2075
  }
2193
- /**
2194
- * Update node metrics.
2195
- * @param {DefaultApiV1UpdateNodeMetricsRequest} requestParameters Request parameters.
2196
- * @param {*} [options] Override http request option.
2197
- * @throws {RequiredError}
2198
- * @memberof DefaultApi
2199
- */
2200
- v1UpdateNodeMetrics(requestParameters, options) {
2201
- return (0, exports.DefaultApiFp)(this.configuration).v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetricsRequest, options).then((request) => request(this.axios, this.basePath));
2202
- }
2203
2076
  /**
2204
2077
  * Complete an observation utilizing the async pipeline.
2205
2078
  * @param {DefaultApiV2CompleteObservationRequest} requestParameters Request parameters.
@@ -2210,15 +2083,5 @@ class DefaultApi extends base_1.BaseAPI {
2210
2083
  v2CompleteObservation(requestParameters, options) {
2211
2084
  return (0, exports.DefaultApiFp)(this.configuration).v2CompleteObservation(requestParameters.v2CompleteObservationRequest, options).then((request) => request(this.axios, this.basePath));
2212
2085
  }
2213
- /**
2214
- * Get next observation.
2215
- * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
2216
- * @param {*} [options] Override http request option.
2217
- * @throws {RequiredError}
2218
- * @memberof DefaultApi
2219
- */
2220
- v2GetObservation(requestParameters, options) {
2221
- return (0, exports.DefaultApiFp)(this.configuration).v2GetObservation(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
2222
- }
2223
2086
  }
2224
2087
  exports.DefaultApi = DefaultApi;
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.2765
5
+ * The version of the OpenAPI document: 1.3.3181
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.2765
8
+ * The version of the OpenAPI document: 1.3.3181
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.2765
5
+ * The version of the OpenAPI document: 1.3.3181
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.2765
8
+ * The version of the OpenAPI document: 1.3.3181
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.2765
5
+ * The version of the OpenAPI document: 1.3.3181
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.2765
8
+ * The version of the OpenAPI document: 1.3.3181
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).