@ourskyai/platform-api 1.3.5020 → 1.3.5055

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.5020
1
+ ## @ourskyai/platform-api@1.3.5055
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.5020 --save
39
+ npm install @ourskyai/platform-api@1.3.5055 --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.5020
7
+ * The version of the OpenAPI document: 1.3.5055
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -987,6 +987,19 @@ export interface V1GetInstructionRequestUploadHealth {
987
987
  */
988
988
  'averageUploadDurationSeconds'?: number;
989
989
  }
990
+ /**
991
+ *
992
+ * @export
993
+ * @interface V1GetNodeCommandsResponse
994
+ */
995
+ export interface V1GetNodeCommandsResponse {
996
+ /**
997
+ *
998
+ * @type {Array<V1NodeCommand>}
999
+ * @memberof V1GetNodeCommandsResponse
1000
+ */
1001
+ 'nodeCommands': Array<V1NodeCommand>;
1002
+ }
990
1003
  /**
991
1004
  *
992
1005
  * @export
@@ -1283,6 +1296,19 @@ export interface V1GroundStationParticipant {
1283
1296
  }
1284
1297
 
1285
1298
 
1299
+ /**
1300
+ *
1301
+ * @export
1302
+ * @interface V1Halt
1303
+ */
1304
+ export interface V1Halt {
1305
+ /**
1306
+ *
1307
+ * @type {boolean}
1308
+ * @memberof V1Halt
1309
+ */
1310
+ 'placeholder'?: boolean;
1311
+ }
1286
1312
  /**
1287
1313
  * An image set represents a contiguous set of observations of the same target captured by the same node.
1288
1314
  * @export
@@ -1780,6 +1806,60 @@ export interface V1Node {
1780
1806
  }
1781
1807
 
1782
1808
 
1809
+ /**
1810
+ *
1811
+ * @export
1812
+ * @interface V1NodeCommand
1813
+ */
1814
+ export interface V1NodeCommand {
1815
+ /**
1816
+ *
1817
+ * @type {string}
1818
+ * @memberof V1NodeCommand
1819
+ */
1820
+ 'id': string;
1821
+ /**
1822
+ *
1823
+ * @type {V1NodeCommandType}
1824
+ * @memberof V1NodeCommand
1825
+ */
1826
+ 'type': V1NodeCommandType;
1827
+ /**
1828
+ *
1829
+ * @type {V1NodeCommandBody}
1830
+ * @memberof V1NodeCommand
1831
+ */
1832
+ 'body': V1NodeCommandBody;
1833
+ /**
1834
+ *
1835
+ * @type {string}
1836
+ * @memberof V1NodeCommand
1837
+ */
1838
+ 'executableAt'?: string;
1839
+ }
1840
+
1841
+
1842
+ /**
1843
+ * @type V1NodeCommandBody
1844
+ * @export
1845
+ */
1846
+ export type V1NodeCommandBody = V1Halt | V1StartPerpetualInstructionLoop | V1StopPerpetualInstructionLoop;
1847
+
1848
+ /**
1849
+ *
1850
+ * @export
1851
+ * @enum {string}
1852
+ */
1853
+
1854
+ export const V1NodeCommandType = {
1855
+ V1_START_PERPETUAL_INSTRUCTION_LOOP: 'V1_START_PERPETUAL_INSTRUCTION_LOOP',
1856
+ V1_STOP_PERPETUAL_INSTRUCTION_LOOP: 'V1_STOP_PERPETUAL_INSTRUCTION_LOOP',
1857
+ V1_HALT: 'V1_HALT'
1858
+ } as const;
1859
+
1860
+ export type V1NodeCommandType = typeof V1NodeCommandType[keyof typeof V1NodeCommandType];
1861
+
1862
+
1783
1863
  /**
1784
1864
  *
1785
1865
  * @export
@@ -2445,6 +2525,32 @@ export interface V1SlewTimingInterval {
2445
2525
  */
2446
2526
  'durationMs': number;
2447
2527
  }
2528
+ /**
2529
+ *
2530
+ * @export
2531
+ * @interface V1StartPerpetualInstructionLoop
2532
+ */
2533
+ export interface V1StartPerpetualInstructionLoop {
2534
+ /**
2535
+ *
2536
+ * @type {boolean}
2537
+ * @memberof V1StartPerpetualInstructionLoop
2538
+ */
2539
+ 'placeholder'?: boolean;
2540
+ }
2541
+ /**
2542
+ *
2543
+ * @export
2544
+ * @interface V1StopPerpetualInstructionLoop
2545
+ */
2546
+ export interface V1StopPerpetualInstructionLoop {
2547
+ /**
2548
+ *
2549
+ * @type {boolean}
2550
+ * @memberof V1StopPerpetualInstructionLoop
2551
+ */
2552
+ 'placeholder'?: boolean;
2553
+ }
2448
2554
  /**
2449
2555
  *
2450
2556
  * @export
@@ -3451,6 +3557,48 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3451
3557
 
3452
3558
 
3453
3559
 
3560
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3561
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3562
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3563
+
3564
+ return {
3565
+ url: toPathString(localVarUrlObj),
3566
+ options: localVarRequestOptions,
3567
+ };
3568
+ },
3569
+ /**
3570
+ * Delete a node command
3571
+ * @param {string} id
3572
+ * @param {*} [options] Override http request option.
3573
+ * @throws {RequiredError}
3574
+ */
3575
+ v1DeleteNodeCommand: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3576
+ // verify required parameter 'id' is not null or undefined
3577
+ assertParamExists('v1DeleteNodeCommand', 'id', id)
3578
+ const localVarPath = `/v1/node-commands`;
3579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3581
+ let baseOptions;
3582
+ if (configuration) {
3583
+ baseOptions = configuration.baseOptions;
3584
+ }
3585
+
3586
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3587
+ const localVarHeaderParameter = {} as any;
3588
+ const localVarQueryParameter = {} as any;
3589
+
3590
+ // authentication Roles required
3591
+
3592
+ // authentication BearerToken required
3593
+ // http bearer authentication required
3594
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3595
+
3596
+ if (id !== undefined) {
3597
+ localVarQueryParameter['id'] = id;
3598
+ }
3599
+
3600
+
3601
+
3454
3602
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3455
3603
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3456
3604
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3779,6 +3927,57 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3779
3927
 
3780
3928
 
3781
3929
 
3930
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3932
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3933
+
3934
+ return {
3935
+ url: toPathString(localVarUrlObj),
3936
+ options: localVarRequestOptions,
3937
+ };
3938
+ },
3939
+ /**
3940
+ * Get node commands
3941
+ * @param {string} nodeId
3942
+ * @param {string} executableAt
3943
+ * @param {*} [options] Override http request option.
3944
+ * @throws {RequiredError}
3945
+ */
3946
+ v1GetNodeCommands: async (nodeId: string, executableAt: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3947
+ // verify required parameter 'nodeId' is not null or undefined
3948
+ assertParamExists('v1GetNodeCommands', 'nodeId', nodeId)
3949
+ // verify required parameter 'executableAt' is not null or undefined
3950
+ assertParamExists('v1GetNodeCommands', 'executableAt', executableAt)
3951
+ const localVarPath = `/v1/node-commands`;
3952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3953
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3954
+ let baseOptions;
3955
+ if (configuration) {
3956
+ baseOptions = configuration.baseOptions;
3957
+ }
3958
+
3959
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3960
+ const localVarHeaderParameter = {} as any;
3961
+ const localVarQueryParameter = {} as any;
3962
+
3963
+ // authentication Roles required
3964
+
3965
+ // authentication BearerToken required
3966
+ // http bearer authentication required
3967
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3968
+
3969
+ if (nodeId !== undefined) {
3970
+ localVarQueryParameter['nodeId'] = nodeId;
3971
+ }
3972
+
3973
+ if (executableAt !== undefined) {
3974
+ localVarQueryParameter['executableAt'] = (executableAt as any instanceof Date) ?
3975
+ (executableAt as any).toISOString() :
3976
+ executableAt;
3977
+ }
3978
+
3979
+
3980
+
3782
3981
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3783
3982
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3784
3983
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4539,6 +4738,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4539
4738
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1DeleteImageSetImage(imageId, options);
4540
4739
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4541
4740
  },
4741
+ /**
4742
+ * Delete a node command
4743
+ * @param {string} id
4744
+ * @param {*} [options] Override http request option.
4745
+ * @throws {RequiredError}
4746
+ */
4747
+ async v1DeleteNodeCommand(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
4748
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1DeleteNodeCommand(id, options);
4749
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4750
+ },
4542
4751
  /**
4543
4752
  * Get cameras.
4544
4753
  * @param {*} [options] Override http request option.
@@ -4618,6 +4827,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4618
4827
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetNode(lineageId, options);
4619
4828
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4620
4829
  },
4830
+ /**
4831
+ * Get node commands
4832
+ * @param {string} nodeId
4833
+ * @param {string} executableAt
4834
+ * @param {*} [options] Override http request option.
4835
+ * @throws {RequiredError}
4836
+ */
4837
+ async v1GetNodeCommands(nodeId: string, executableAt: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1GetNodeCommandsResponse>> {
4838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetNodeCommands(nodeId, executableAt, options);
4839
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4840
+ },
4621
4841
  /**
4622
4842
  * returns the current release for the node
4623
4843
  * @param {string} lineageId lineage id
@@ -4904,6 +5124,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4904
5124
  v1DeleteImageSetImage(requestParameters: DefaultApiV1DeleteImageSetImageRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
4905
5125
  return localVarFp.v1DeleteImageSetImage(requestParameters.imageId, options).then((request) => request(axios, basePath));
4906
5126
  },
5127
+ /**
5128
+ * Delete a node command
5129
+ * @param {DefaultApiV1DeleteNodeCommandRequest} requestParameters Request parameters.
5130
+ * @param {*} [options] Override http request option.
5131
+ * @throws {RequiredError}
5132
+ */
5133
+ v1DeleteNodeCommand(requestParameters: DefaultApiV1DeleteNodeCommandRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
5134
+ return localVarFp.v1DeleteNodeCommand(requestParameters.id, options).then((request) => request(axios, basePath));
5135
+ },
4907
5136
  /**
4908
5137
  * Get cameras.
4909
5138
  * @param {*} [options] Override http request option.
@@ -4975,6 +5204,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4975
5204
  v1GetNode(requestParameters: DefaultApiV1GetNodeRequest, options?: AxiosRequestConfig): AxiosPromise<V1Node> {
4976
5205
  return localVarFp.v1GetNode(requestParameters.lineageId, options).then((request) => request(axios, basePath));
4977
5206
  },
5207
+ /**
5208
+ * Get node commands
5209
+ * @param {DefaultApiV1GetNodeCommandsRequest} requestParameters Request parameters.
5210
+ * @param {*} [options] Override http request option.
5211
+ * @throws {RequiredError}
5212
+ */
5213
+ v1GetNodeCommands(requestParameters: DefaultApiV1GetNodeCommandsRequest, options?: AxiosRequestConfig): AxiosPromise<V1GetNodeCommandsResponse> {
5214
+ return localVarFp.v1GetNodeCommands(requestParameters.nodeId, requestParameters.executableAt, options).then((request) => request(axios, basePath));
5215
+ },
4978
5216
  /**
4979
5217
  * returns the current release for the node
4980
5218
  * @param {DefaultApiV1GetNodeControllerReleaseRequest} requestParameters Request parameters.
@@ -5348,6 +5586,20 @@ export interface DefaultApiV1DeleteImageSetImageRequest {
5348
5586
  readonly imageId: string
5349
5587
  }
5350
5588
 
5589
+ /**
5590
+ * Request parameters for v1DeleteNodeCommand operation in DefaultApi.
5591
+ * @export
5592
+ * @interface DefaultApiV1DeleteNodeCommandRequest
5593
+ */
5594
+ export interface DefaultApiV1DeleteNodeCommandRequest {
5595
+ /**
5596
+ *
5597
+ * @type {string}
5598
+ * @memberof DefaultApiV1DeleteNodeCommand
5599
+ */
5600
+ readonly id: string
5601
+ }
5602
+
5351
5603
  /**
5352
5604
  * Request parameters for v1GetImageSet operation in DefaultApi.
5353
5605
  * @export
@@ -5446,6 +5698,27 @@ export interface DefaultApiV1GetNodeRequest {
5446
5698
  readonly lineageId: string
5447
5699
  }
5448
5700
 
5701
+ /**
5702
+ * Request parameters for v1GetNodeCommands operation in DefaultApi.
5703
+ * @export
5704
+ * @interface DefaultApiV1GetNodeCommandsRequest
5705
+ */
5706
+ export interface DefaultApiV1GetNodeCommandsRequest {
5707
+ /**
5708
+ *
5709
+ * @type {string}
5710
+ * @memberof DefaultApiV1GetNodeCommands
5711
+ */
5712
+ readonly nodeId: string
5713
+
5714
+ /**
5715
+ *
5716
+ * @type {string}
5717
+ * @memberof DefaultApiV1GetNodeCommands
5718
+ */
5719
+ readonly executableAt: string
5720
+ }
5721
+
5449
5722
  /**
5450
5723
  * Request parameters for v1GetNodeControllerRelease operation in DefaultApi.
5451
5724
  * @export
@@ -5820,6 +6093,17 @@ export class DefaultApi extends BaseAPI {
5820
6093
  return DefaultApiFp(this.configuration).v1DeleteImageSetImage(requestParameters.imageId, options).then((request) => request(this.axios, this.basePath));
5821
6094
  }
5822
6095
 
6096
+ /**
6097
+ * Delete a node command
6098
+ * @param {DefaultApiV1DeleteNodeCommandRequest} requestParameters Request parameters.
6099
+ * @param {*} [options] Override http request option.
6100
+ * @throws {RequiredError}
6101
+ * @memberof DefaultApi
6102
+ */
6103
+ public v1DeleteNodeCommand(requestParameters: DefaultApiV1DeleteNodeCommandRequest, options?: AxiosRequestConfig) {
6104
+ return DefaultApiFp(this.configuration).v1DeleteNodeCommand(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6105
+ }
6106
+
5823
6107
  /**
5824
6108
  * Get cameras.
5825
6109
  * @param {*} [options] Override http request option.
@@ -5907,6 +6191,17 @@ export class DefaultApi extends BaseAPI {
5907
6191
  return DefaultApiFp(this.configuration).v1GetNode(requestParameters.lineageId, options).then((request) => request(this.axios, this.basePath));
5908
6192
  }
5909
6193
 
6194
+ /**
6195
+ * Get node commands
6196
+ * @param {DefaultApiV1GetNodeCommandsRequest} requestParameters Request parameters.
6197
+ * @param {*} [options] Override http request option.
6198
+ * @throws {RequiredError}
6199
+ * @memberof DefaultApi
6200
+ */
6201
+ public v1GetNodeCommands(requestParameters: DefaultApiV1GetNodeCommandsRequest, options?: AxiosRequestConfig) {
6202
+ return DefaultApiFp(this.configuration).v1GetNodeCommands(requestParameters.nodeId, requestParameters.executableAt, options).then((request) => request(this.axios, this.basePath));
6203
+ }
6204
+
5910
6205
  /**
5911
6206
  * returns the current release for the node
5912
6207
  * @param {DefaultApiV1GetNodeControllerReleaseRequest} 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.5020
7
+ * The version of the OpenAPI document: 1.3.5055
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.5020
7
+ * The version of the OpenAPI document: 1.3.5055
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.5020
7
+ * The version of the OpenAPI document: 1.3.5055
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).