@ourskyai/platform-api 1.3.1945 → 1.3.2078

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @ourskyai/platform-api@1.3.1945
1
+ ## @ourskyai/platform-api@1.3.2078
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @ourskyai/platform-api@1.3.1945 --save
39
+ npm install @ourskyai/platform-api@1.3.2078 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky Platform
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.1945
7
+ * The version of the OpenAPI document: 1.3.2078
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -293,6 +293,12 @@ export interface V1Camera {
293
293
  * @memberof V1Camera
294
294
  */
295
295
  'isColor': boolean;
296
+ /**
297
+ *
298
+ * @type {Array<V1VideoModeFramerateProperty>}
299
+ * @memberof V1Camera
300
+ */
301
+ 'videoModeFramerateProperties'?: Array<V1VideoModeFramerateProperty>;
296
302
  }
297
303
 
298
304
 
@@ -410,48 +416,61 @@ export interface V1CreateMountRequest {
410
416
  /**
411
417
  *
412
418
  * @export
413
- * @interface V1CreateNodeDiagnosticRequest
419
+ * @interface V1CreateNodeDiagnostic
414
420
  */
415
- export interface V1CreateNodeDiagnosticRequest {
416
- /**
417
- *
418
- * @type {string}
419
- * @memberof V1CreateNodeDiagnosticRequest
420
- */
421
- 'nodeId': string;
421
+ export interface V1CreateNodeDiagnostic {
422
422
  /**
423
423
  *
424
424
  * @type {V1NodeComponentType}
425
- * @memberof V1CreateNodeDiagnosticRequest
425
+ * @memberof V1CreateNodeDiagnostic
426
426
  */
427
427
  'componentType': V1NodeComponentType;
428
428
  /**
429
429
  *
430
430
  * @type {string}
431
- * @memberof V1CreateNodeDiagnosticRequest
431
+ * @memberof V1CreateNodeDiagnostic
432
432
  */
433
433
  'componentId': string;
434
434
  /**
435
435
  *
436
436
  * @type {V1NodeDiagnosticType}
437
- * @memberof V1CreateNodeDiagnosticRequest
437
+ * @memberof V1CreateNodeDiagnostic
438
438
  */
439
439
  'diagnosticType': V1NodeDiagnosticType;
440
440
  /**
441
441
  *
442
442
  * @type {string}
443
- * @memberof V1CreateNodeDiagnosticRequest
443
+ * @memberof V1CreateNodeDiagnostic
444
444
  */
445
445
  'value': string;
446
446
  /**
447
447
  *
448
448
  * @type {string}
449
- * @memberof V1CreateNodeDiagnosticRequest
449
+ * @memberof V1CreateNodeDiagnostic
450
450
  */
451
451
  'measuredAt': string;
452
452
  }
453
453
 
454
454
 
455
+ /**
456
+ *
457
+ * @export
458
+ * @interface V1CreateNodeDiagnosticsRequest
459
+ */
460
+ export interface V1CreateNodeDiagnosticsRequest {
461
+ /**
462
+ *
463
+ * @type {string}
464
+ * @memberof V1CreateNodeDiagnosticsRequest
465
+ */
466
+ 'nodeId': string;
467
+ /**
468
+ *
469
+ * @type {Array<V1CreateNodeDiagnostic>}
470
+ * @memberof V1CreateNodeDiagnosticsRequest
471
+ */
472
+ 'diagnostics': Array<V1CreateNodeDiagnostic>;
473
+ }
455
474
  /**
456
475
  *
457
476
  * @export
@@ -674,6 +693,12 @@ export interface V1GetOrCreateCameraRequest {
674
693
  * @memberof V1GetOrCreateCameraRequest
675
694
  */
676
695
  'isColor'?: boolean;
696
+ /**
697
+ *
698
+ * @type {Array<V1VideoModeFramerateProperty>}
699
+ * @memberof V1GetOrCreateCameraRequest
700
+ */
701
+ 'videoModeFramerateProperties'?: Array<V1VideoModeFramerateProperty>;
677
702
  }
678
703
 
679
704
 
@@ -1204,7 +1229,13 @@ export const V1NodeDiagnosticType = {
1204
1229
  MIN_SLEW_AND_CENTER_SPEED_MS: 'MIN_SLEW_AND_CENTER_SPEED_MS',
1205
1230
  MAX_SLEW_AND_CENTER_SPEED_MS: 'MAX_SLEW_AND_CENTER_SPEED_MS',
1206
1231
  MIN_SLEW_ACCURACY_ARCSECONDS: 'MIN_SLEW_ACCURACY_ARCSECONDS',
1207
- MAX_SLEW_ACCURACY_ARCSECONDS: 'MAX_SLEW_ACCURACY_ARCSECONDS'
1232
+ MAX_SLEW_ACCURACY_ARCSECONDS: 'MAX_SLEW_ACCURACY_ARCSECONDS',
1233
+ SLEW_SPEED_DEGREES_PER_SECOND: 'SLEW_SPEED_DEGREES_PER_SECOND',
1234
+ CENTERING_TIME_MS: 'CENTERING_TIME_MS',
1235
+ POINTING_ERROR_DEGREES: 'POINTING_ERROR_DEGREES',
1236
+ CAMERA_CHECKED: 'CAMERA_CHECKED',
1237
+ MOUNT_CHECKED: 'MOUNT_CHECKED',
1238
+ OPTICAL_TUBE_CHECKED: 'OPTICAL_TUBE_CHECKED'
1208
1239
  } as const;
1209
1240
 
1210
1241
  export type V1NodeDiagnosticType = typeof V1NodeDiagnosticType[keyof typeof V1NodeDiagnosticType];
@@ -1597,6 +1628,62 @@ export interface V1UpdateNodeMetricsRequest {
1597
1628
  */
1598
1629
  'measuredAt': string;
1599
1630
  }
1631
+ /**
1632
+ *
1633
+ * @export
1634
+ * @interface V1VideoModeFramerateProperty
1635
+ */
1636
+ export interface V1VideoModeFramerateProperty {
1637
+ /**
1638
+ *
1639
+ * @type {number}
1640
+ * @memberof V1VideoModeFramerateProperty
1641
+ */
1642
+ 'roiXPixels': number;
1643
+ /**
1644
+ *
1645
+ * @type {number}
1646
+ * @memberof V1VideoModeFramerateProperty
1647
+ */
1648
+ 'roiYPixels': number;
1649
+ /**
1650
+ *
1651
+ * @type {number}
1652
+ * @memberof V1VideoModeFramerateProperty
1653
+ */
1654
+ 'adcBitDepth': number;
1655
+ /**
1656
+ *
1657
+ * @type {number}
1658
+ * @memberof V1VideoModeFramerateProperty
1659
+ */
1660
+ 'fps': number;
1661
+ /**
1662
+ *
1663
+ * @type {number}
1664
+ * @memberof V1VideoModeFramerateProperty
1665
+ */
1666
+ 'binning': number;
1667
+ }
1668
+ /**
1669
+ *
1670
+ * @export
1671
+ * @interface V2CompleteObservationRequest
1672
+ */
1673
+ export interface V2CompleteObservationRequest {
1674
+ /**
1675
+ *
1676
+ * @type {string}
1677
+ * @memberof V2CompleteObservationRequest
1678
+ */
1679
+ 'imageSetId': string;
1680
+ /**
1681
+ *
1682
+ * @type {number}
1683
+ * @memberof V2CompleteObservationRequest
1684
+ */
1685
+ 'expectedImageCount': number;
1686
+ }
1600
1687
  /**
1601
1688
  *
1602
1689
  * @export
@@ -1997,13 +2084,13 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1997
2084
  },
1998
2085
  /**
1999
2086
  * Create node diagnostics.
2000
- * @param {Array<V1CreateNodeDiagnosticRequest>} v1CreateNodeDiagnosticRequest
2087
+ * @param {V1CreateNodeDiagnosticsRequest} v1CreateNodeDiagnosticsRequest
2001
2088
  * @param {*} [options] Override http request option.
2002
2089
  * @throws {RequiredError}
2003
2090
  */
2004
- v1CreateNodeDiagnostics: async (v1CreateNodeDiagnosticRequest: Array<V1CreateNodeDiagnosticRequest>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2005
- // verify required parameter 'v1CreateNodeDiagnosticRequest' is not null or undefined
2006
- assertParamExists('v1CreateNodeDiagnostics', 'v1CreateNodeDiagnosticRequest', v1CreateNodeDiagnosticRequest)
2091
+ v1CreateNodeDiagnostics: async (v1CreateNodeDiagnosticsRequest: V1CreateNodeDiagnosticsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2092
+ // verify required parameter 'v1CreateNodeDiagnosticsRequest' is not null or undefined
2093
+ assertParamExists('v1CreateNodeDiagnostics', 'v1CreateNodeDiagnosticsRequest', v1CreateNodeDiagnosticsRequest)
2007
2094
  const localVarPath = `/v1/node-diagnostics`;
2008
2095
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2009
2096
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2029,7 +2116,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2029
2116
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2030
2117
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2031
2118
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2032
- localVarRequestOptions.data = serializeDataIfNeeded(v1CreateNodeDiagnosticRequest, localVarRequestOptions, configuration)
2119
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateNodeDiagnosticsRequest, localVarRequestOptions, configuration)
2033
2120
 
2034
2121
  return {
2035
2122
  url: toPathString(localVarUrlObj),
@@ -2694,6 +2781,47 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2694
2781
  options: localVarRequestOptions,
2695
2782
  };
2696
2783
  },
2784
+ /**
2785
+ * Complete an observation utilizing the async pipeline.
2786
+ * @param {V2CompleteObservationRequest} v2CompleteObservationRequest
2787
+ * @param {*} [options] Override http request option.
2788
+ * @throws {RequiredError}
2789
+ */
2790
+ v2CompleteObservation: async (v2CompleteObservationRequest: V2CompleteObservationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2791
+ // verify required parameter 'v2CompleteObservationRequest' is not null or undefined
2792
+ assertParamExists('v2CompleteObservation', 'v2CompleteObservationRequest', v2CompleteObservationRequest)
2793
+ const localVarPath = `/v2/observation-complete`;
2794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2796
+ let baseOptions;
2797
+ if (configuration) {
2798
+ baseOptions = configuration.baseOptions;
2799
+ }
2800
+
2801
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2802
+ const localVarHeaderParameter = {} as any;
2803
+ const localVarQueryParameter = {} as any;
2804
+
2805
+ // authentication Roles required
2806
+
2807
+ // authentication BearerToken required
2808
+ // http bearer authentication required
2809
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2810
+
2811
+
2812
+
2813
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2814
+
2815
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2816
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2817
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2818
+ localVarRequestOptions.data = serializeDataIfNeeded(v2CompleteObservationRequest, localVarRequestOptions, configuration)
2819
+
2820
+ return {
2821
+ url: toPathString(localVarUrlObj),
2822
+ options: localVarRequestOptions,
2823
+ };
2824
+ },
2697
2825
  /**
2698
2826
  * Get next observation.
2699
2827
  * @param {string} nodeId
@@ -2815,12 +2943,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2815
2943
  },
2816
2944
  /**
2817
2945
  * Create node diagnostics.
2818
- * @param {Array<V1CreateNodeDiagnosticRequest>} v1CreateNodeDiagnosticRequest
2946
+ * @param {V1CreateNodeDiagnosticsRequest} v1CreateNodeDiagnosticsRequest
2819
2947
  * @param {*} [options] Override http request option.
2820
2948
  * @throws {RequiredError}
2821
2949
  */
2822
- async v1CreateNodeDiagnostics(v1CreateNodeDiagnosticRequest: Array<V1CreateNodeDiagnosticRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
2823
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateNodeDiagnostics(v1CreateNodeDiagnosticRequest, options);
2950
+ async v1CreateNodeDiagnostics(v1CreateNodeDiagnosticsRequest: V1CreateNodeDiagnosticsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
2951
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateNodeDiagnostics(v1CreateNodeDiagnosticsRequest, options);
2824
2952
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2825
2953
  },
2826
2954
  /**
@@ -2983,6 +3111,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2983
3111
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1UpdateNodeMetrics(v1UpdateNodeMetricsRequest, options);
2984
3112
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2985
3113
  },
3114
+ /**
3115
+ * Complete an observation utilizing the async pipeline.
3116
+ * @param {V2CompleteObservationRequest} v2CompleteObservationRequest
3117
+ * @param {*} [options] Override http request option.
3118
+ * @throws {RequiredError}
3119
+ */
3120
+ async v2CompleteObservation(v2CompleteObservationRequest: V2CompleteObservationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
3121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v2CompleteObservation(v2CompleteObservationRequest, options);
3122
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3123
+ },
2986
3124
  /**
2987
3125
  * Get next observation.
2988
3126
  * @param {string} nodeId
@@ -3064,7 +3202,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3064
3202
  * @throws {RequiredError}
3065
3203
  */
3066
3204
  v1CreateNodeDiagnostics(requestParameters: DefaultApiV1CreateNodeDiagnosticsRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
3067
- return localVarFp.v1CreateNodeDiagnostics(requestParameters.v1CreateNodeDiagnosticRequest, options).then((request) => request(axios, basePath));
3205
+ return localVarFp.v1CreateNodeDiagnostics(requestParameters.v1CreateNodeDiagnosticsRequest, options).then((request) => request(axios, basePath));
3068
3206
  },
3069
3207
  /**
3070
3208
  * Create an optical tube.
@@ -3208,6 +3346,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3208
3346
  v1UpdateNodeMetrics(requestParameters: DefaultApiV1UpdateNodeMetricsRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
3209
3347
  return localVarFp.v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetricsRequest, options).then((request) => request(axios, basePath));
3210
3348
  },
3349
+ /**
3350
+ * Complete an observation utilizing the async pipeline.
3351
+ * @param {DefaultApiV2CompleteObservationRequest} requestParameters Request parameters.
3352
+ * @param {*} [options] Override http request option.
3353
+ * @throws {RequiredError}
3354
+ */
3355
+ v2CompleteObservation(requestParameters: DefaultApiV2CompleteObservationRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
3356
+ return localVarFp.v2CompleteObservation(requestParameters.v2CompleteObservationRequest, options).then((request) => request(axios, basePath));
3357
+ },
3211
3358
  /**
3212
3359
  * Get next observation.
3213
3360
  * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
@@ -3361,10 +3508,10 @@ export interface DefaultApiV1CreateMountRequest {
3361
3508
  export interface DefaultApiV1CreateNodeDiagnosticsRequest {
3362
3509
  /**
3363
3510
  *
3364
- * @type {Array<V1CreateNodeDiagnosticRequest>}
3511
+ * @type {V1CreateNodeDiagnosticsRequest}
3365
3512
  * @memberof DefaultApiV1CreateNodeDiagnostics
3366
3513
  */
3367
- readonly v1CreateNodeDiagnosticRequest: Array<V1CreateNodeDiagnosticRequest>
3514
+ readonly v1CreateNodeDiagnosticsRequest: V1CreateNodeDiagnosticsRequest
3368
3515
  }
3369
3516
 
3370
3517
  /**
@@ -3577,6 +3724,20 @@ export interface DefaultApiV1UpdateNodeMetricsRequest {
3577
3724
  readonly v1UpdateNodeMetricsRequest: V1UpdateNodeMetricsRequest
3578
3725
  }
3579
3726
 
3727
+ /**
3728
+ * Request parameters for v2CompleteObservation operation in DefaultApi.
3729
+ * @export
3730
+ * @interface DefaultApiV2CompleteObservationRequest
3731
+ */
3732
+ export interface DefaultApiV2CompleteObservationRequest {
3733
+ /**
3734
+ *
3735
+ * @type {V2CompleteObservationRequest}
3736
+ * @memberof DefaultApiV2CompleteObservation
3737
+ */
3738
+ readonly v2CompleteObservationRequest: V2CompleteObservationRequest
3739
+ }
3740
+
3580
3741
  /**
3581
3742
  * Request parameters for v2GetObservation operation in DefaultApi.
3582
3743
  * @export
@@ -3672,7 +3833,7 @@ export class DefaultApi extends BaseAPI {
3672
3833
  * @memberof DefaultApi
3673
3834
  */
3674
3835
  public v1CreateNodeDiagnostics(requestParameters: DefaultApiV1CreateNodeDiagnosticsRequest, options?: AxiosRequestConfig) {
3675
- return DefaultApiFp(this.configuration).v1CreateNodeDiagnostics(requestParameters.v1CreateNodeDiagnosticRequest, options).then((request) => request(this.axios, this.basePath));
3836
+ return DefaultApiFp(this.configuration).v1CreateNodeDiagnostics(requestParameters.v1CreateNodeDiagnosticsRequest, options).then((request) => request(this.axios, this.basePath));
3676
3837
  }
3677
3838
 
3678
3839
  /**
@@ -3849,6 +4010,17 @@ export class DefaultApi extends BaseAPI {
3849
4010
  return DefaultApiFp(this.configuration).v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetricsRequest, options).then((request) => request(this.axios, this.basePath));
3850
4011
  }
3851
4012
 
4013
+ /**
4014
+ * Complete an observation utilizing the async pipeline.
4015
+ * @param {DefaultApiV2CompleteObservationRequest} requestParameters Request parameters.
4016
+ * @param {*} [options] Override http request option.
4017
+ * @throws {RequiredError}
4018
+ * @memberof DefaultApi
4019
+ */
4020
+ public v2CompleteObservation(requestParameters: DefaultApiV2CompleteObservationRequest, options?: AxiosRequestConfig) {
4021
+ return DefaultApiFp(this.configuration).v2CompleteObservation(requestParameters.v2CompleteObservationRequest, options).then((request) => request(this.axios, this.basePath));
4022
+ }
4023
+
3852
4024
  /**
3853
4025
  * Get next observation.
3854
4026
  * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky Platform
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.1945
7
+ * The version of the OpenAPI document: 1.3.2078
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky Platform
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.1945
7
+ * The version of the OpenAPI document: 1.3.2078
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky Platform
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.1945
7
+ * The version of the OpenAPI document: 1.3.2078
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).