@wandelbots/nova-api 25.3.0-rc.4 → 25.4.0-dev.10

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/v2/api.ts CHANGED
@@ -242,6 +242,12 @@ export interface App {
242
242
  * @memberof App
243
243
  */
244
244
  'storage'?: ContainerStorage;
245
+ /**
246
+ * Defines the URL path suffix used to check the application\'s health status. The complete health check URL is constructed as `/$cell/$name/$health_path`. When the application is working as expected, the endpoint returns an HTTP 200 status code. If not specified, the system will default to using the application icon path suffix (the value of `app_icon`) as the health check endpoint, resulting in `/$cell/$name/$app_icon`. If the health check fails (no response or non-200 status code), the system will automatically restart the application container to restore service.
247
+ * @type {string}
248
+ * @memberof App
249
+ */
250
+ 'health_path'?: string;
245
251
  }
246
252
  /**
247
253
  *
@@ -875,6 +881,31 @@ export interface Compound {
875
881
  */
876
882
  'child_geometries': Array<Geometry>;
877
883
  }
884
+ /**
885
+ * Configuration resource object.
886
+ * @export
887
+ * @interface ConfigurationResource
888
+ */
889
+ export interface ConfigurationResource {
890
+ /**
891
+ * Identifier of a configuration resource.
892
+ * @type {string}
893
+ * @memberof ConfigurationResource
894
+ */
895
+ 'id': string;
896
+ /**
897
+ * Human-readable name of the configuration resource.
898
+ * @type {string}
899
+ * @memberof ConfigurationResource
900
+ */
901
+ 'name': string;
902
+ /**
903
+ * Array of configuration resources.
904
+ * @type {Array<ConfigurationResource>}
905
+ * @memberof ConfigurationResource
906
+ */
907
+ 'children'?: Array<ConfigurationResource>;
908
+ }
878
909
  /**
879
910
  *
880
911
  * @export
@@ -1347,6 +1378,19 @@ export const Direction = {
1347
1378
  export type Direction = typeof Direction[keyof typeof Direction];
1348
1379
 
1349
1380
 
1381
+ /**
1382
+ *
1383
+ * @export
1384
+ * @interface Error2
1385
+ */
1386
+ export interface Error2 {
1387
+ /**
1388
+ *
1389
+ * @type {string}
1390
+ * @memberof Error2
1391
+ */
1392
+ 'message': string;
1393
+ }
1350
1394
  /**
1351
1395
  * @type ExecuteJoggingRequest
1352
1396
  * @export
@@ -5769,25 +5813,6 @@ export interface StartOnIO {
5769
5813
  }
5770
5814
 
5771
5815
 
5772
- /**
5773
- * The `Status` type defines a logical error model that is suitable for different programming environments including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `status` message contains two pieces of data: error code and error message. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
5774
- * @export
5775
- * @interface Status
5776
- */
5777
- export interface Status {
5778
- /**
5779
- * The status code, which should be an enum value of [google.rpc.Code](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto).
5780
- * @type {number}
5781
- * @memberof Status
5782
- */
5783
- 'code'?: number;
5784
- /**
5785
- * An error message in English.
5786
- * @type {string}
5787
- * @memberof Status
5788
- */
5789
- 'message'?: string;
5790
- }
5791
5816
  /**
5792
5817
  *
5793
5818
  * @export
@@ -16472,6 +16497,56 @@ export class StoreObjectApi extends BaseAPI {
16472
16497
  */
16473
16498
  export const SystemApiAxiosParamCreator = function (configuration?: Configuration) {
16474
16499
  return {
16500
+ /**
16501
+ * Retrieves a configuration backup based on provided resource identifiers.
16502
+ * @summary Retrieve Configuration Backup
16503
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
16504
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
16505
+ * @param {*} [options] Override http request option.
16506
+ * @throws {RequiredError}
16507
+ */
16508
+ backupConfiguration: async (resources: Array<string>, metadata?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16509
+ // verify required parameter 'resources' is not null or undefined
16510
+ assertParamExists('backupConfiguration', 'resources', resources)
16511
+ const localVarPath = `/system/configuration`;
16512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16513
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16514
+ let baseOptions;
16515
+ if (configuration) {
16516
+ baseOptions = configuration.baseOptions;
16517
+ }
16518
+
16519
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16520
+ const localVarHeaderParameter = {} as any;
16521
+ const localVarQueryParameter = {} as any;
16522
+
16523
+ // authentication BasicAuth required
16524
+ // http basic authentication required
16525
+ setBasicAuthToObject(localVarRequestOptions, configuration)
16526
+
16527
+ // authentication BearerAuth required
16528
+ // http bearer authentication required
16529
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16530
+
16531
+ if (resources) {
16532
+ localVarQueryParameter['resources'] = resources.join(COLLECTION_FORMATS.csv);
16533
+ }
16534
+
16535
+ if (metadata !== undefined) {
16536
+ localVarQueryParameter['metadata'] = metadata;
16537
+ }
16538
+
16539
+
16540
+
16541
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16543
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16544
+
16545
+ return {
16546
+ url: toPathString(localVarUrlObj),
16547
+ options: localVarRequestOptions,
16548
+ };
16549
+ },
16475
16550
  /**
16476
16551
  * Check if a more recent Wandelbots NOVA Version is available.
16477
16552
  * @summary Check update
@@ -16631,6 +16706,95 @@ export const SystemApiAxiosParamCreator = function (configuration?: Configuratio
16631
16706
  options: localVarRequestOptions,
16632
16707
  };
16633
16708
  },
16709
+ /**
16710
+ * Retrieves a list of all available configuration resources for backup purposes.
16711
+ * @summary List Configuration Resources
16712
+ * @param {*} [options] Override http request option.
16713
+ * @throws {RequiredError}
16714
+ */
16715
+ listConfigurationResources: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16716
+ const localVarPath = `/system/configuration/resources`;
16717
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16718
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16719
+ let baseOptions;
16720
+ if (configuration) {
16721
+ baseOptions = configuration.baseOptions;
16722
+ }
16723
+
16724
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16725
+ const localVarHeaderParameter = {} as any;
16726
+ const localVarQueryParameter = {} as any;
16727
+
16728
+ // authentication BasicAuth required
16729
+ // http basic authentication required
16730
+ setBasicAuthToObject(localVarRequestOptions, configuration)
16731
+
16732
+ // authentication BearerAuth required
16733
+ // http bearer authentication required
16734
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16735
+
16736
+
16737
+
16738
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16739
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16740
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16741
+
16742
+ return {
16743
+ url: toPathString(localVarUrlObj),
16744
+ options: localVarRequestOptions,
16745
+ };
16746
+ },
16747
+ /**
16748
+ * Restores a previously backed up configuration.
16749
+ * @summary Restore Configuration Backup
16750
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
16751
+ * @param {File} body Backup file stream containing the configuration to restore.
16752
+ * @param {*} [options] Override http request option.
16753
+ * @throws {RequiredError}
16754
+ */
16755
+ restoreConfiguration: async (resources: Array<string>, body: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16756
+ // verify required parameter 'resources' is not null or undefined
16757
+ assertParamExists('restoreConfiguration', 'resources', resources)
16758
+ // verify required parameter 'body' is not null or undefined
16759
+ assertParamExists('restoreConfiguration', 'body', body)
16760
+ const localVarPath = `/system/configuration`;
16761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16763
+ let baseOptions;
16764
+ if (configuration) {
16765
+ baseOptions = configuration.baseOptions;
16766
+ }
16767
+
16768
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16769
+ const localVarHeaderParameter = {} as any;
16770
+ const localVarQueryParameter = {} as any;
16771
+
16772
+ // authentication BasicAuth required
16773
+ // http basic authentication required
16774
+ setBasicAuthToObject(localVarRequestOptions, configuration)
16775
+
16776
+ // authentication BearerAuth required
16777
+ // http bearer authentication required
16778
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16779
+
16780
+ if (resources) {
16781
+ localVarQueryParameter['resources'] = resources.join(COLLECTION_FORMATS.csv);
16782
+ }
16783
+
16784
+
16785
+
16786
+ localVarHeaderParameter['Content-Type'] = 'application/gzip';
16787
+
16788
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16789
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16790
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16791
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
16792
+
16793
+ return {
16794
+ url: toPathString(localVarUrlObj),
16795
+ options: localVarRequestOptions,
16796
+ };
16797
+ },
16634
16798
  /**
16635
16799
  * Update the Wandelbots NOVA version and all attached services. Sending this API Request will trigger an update of all NOVA services that are part of a cell. Previous cells and cell configurations will remain on the instance. If the update fails, the previous Wandelbots NOVA version is restored.
16636
16800
  * @summary Update Wandelbots NOVA version
@@ -16685,6 +16849,20 @@ export const SystemApiAxiosParamCreator = function (configuration?: Configuratio
16685
16849
  export const SystemApiFp = function(configuration?: Configuration) {
16686
16850
  const localVarAxiosParamCreator = SystemApiAxiosParamCreator(configuration)
16687
16851
  return {
16852
+ /**
16853
+ * Retrieves a configuration backup based on provided resource identifiers.
16854
+ * @summary Retrieve Configuration Backup
16855
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
16856
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
16857
+ * @param {*} [options] Override http request option.
16858
+ * @throws {RequiredError}
16859
+ */
16860
+ async backupConfiguration(resources: Array<string>, metadata?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
16861
+ const localVarAxiosArgs = await localVarAxiosParamCreator.backupConfiguration(resources, metadata, options);
16862
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16863
+ const localVarOperationServerBasePath = operationServerMap['SystemApi.backupConfiguration']?.[localVarOperationServerIndex]?.url;
16864
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16865
+ },
16688
16866
  /**
16689
16867
  * Check if a more recent Wandelbots NOVA Version is available.
16690
16868
  * @summary Check update
@@ -16734,6 +16912,32 @@ export const SystemApiFp = function(configuration?: Configuration) {
16734
16912
  const localVarOperationServerBasePath = operationServerMap['SystemApi.getSystemVersion']?.[localVarOperationServerIndex]?.url;
16735
16913
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16736
16914
  },
16915
+ /**
16916
+ * Retrieves a list of all available configuration resources for backup purposes.
16917
+ * @summary List Configuration Resources
16918
+ * @param {*} [options] Override http request option.
16919
+ * @throws {RequiredError}
16920
+ */
16921
+ async listConfigurationResources(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConfigurationResource>>> {
16922
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listConfigurationResources(options);
16923
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16924
+ const localVarOperationServerBasePath = operationServerMap['SystemApi.listConfigurationResources']?.[localVarOperationServerIndex]?.url;
16925
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16926
+ },
16927
+ /**
16928
+ * Restores a previously backed up configuration.
16929
+ * @summary Restore Configuration Backup
16930
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
16931
+ * @param {File} body Backup file stream containing the configuration to restore.
16932
+ * @param {*} [options] Override http request option.
16933
+ * @throws {RequiredError}
16934
+ */
16935
+ async restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16936
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreConfiguration(resources, body, options);
16937
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16938
+ const localVarOperationServerBasePath = operationServerMap['SystemApi.restoreConfiguration']?.[localVarOperationServerIndex]?.url;
16939
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16940
+ },
16737
16941
  /**
16738
16942
  * Update the Wandelbots NOVA version and all attached services. Sending this API Request will trigger an update of all NOVA services that are part of a cell. Previous cells and cell configurations will remain on the instance. If the update fails, the previous Wandelbots NOVA version is restored.
16739
16943
  * @summary Update Wandelbots NOVA version
@@ -16757,6 +16961,17 @@ export const SystemApiFp = function(configuration?: Configuration) {
16757
16961
  export const SystemApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16758
16962
  const localVarFp = SystemApiFp(configuration)
16759
16963
  return {
16964
+ /**
16965
+ * Retrieves a configuration backup based on provided resource identifiers.
16966
+ * @summary Retrieve Configuration Backup
16967
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
16968
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
16969
+ * @param {*} [options] Override http request option.
16970
+ * @throws {RequiredError}
16971
+ */
16972
+ backupConfiguration(resources: Array<string>, metadata?: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise<File> {
16973
+ return localVarFp.backupConfiguration(resources, metadata, options).then((request) => request(axios, basePath));
16974
+ },
16760
16975
  /**
16761
16976
  * Check if a more recent Wandelbots NOVA Version is available.
16762
16977
  * @summary Check update
@@ -16794,6 +17009,26 @@ export const SystemApiFactory = function (configuration?: Configuration, basePat
16794
17009
  getSystemVersion(options?: RawAxiosRequestConfig): AxiosPromise<string> {
16795
17010
  return localVarFp.getSystemVersion(options).then((request) => request(axios, basePath));
16796
17011
  },
17012
+ /**
17013
+ * Retrieves a list of all available configuration resources for backup purposes.
17014
+ * @summary List Configuration Resources
17015
+ * @param {*} [options] Override http request option.
17016
+ * @throws {RequiredError}
17017
+ */
17018
+ listConfigurationResources(options?: RawAxiosRequestConfig): AxiosPromise<Array<ConfigurationResource>> {
17019
+ return localVarFp.listConfigurationResources(options).then((request) => request(axios, basePath));
17020
+ },
17021
+ /**
17022
+ * Restores a previously backed up configuration.
17023
+ * @summary Restore Configuration Backup
17024
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
17025
+ * @param {File} body Backup file stream containing the configuration to restore.
17026
+ * @param {*} [options] Override http request option.
17027
+ * @throws {RequiredError}
17028
+ */
17029
+ restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig): AxiosPromise<void> {
17030
+ return localVarFp.restoreConfiguration(resources, body, options).then((request) => request(axios, basePath));
17031
+ },
16797
17032
  /**
16798
17033
  * Update the Wandelbots NOVA version and all attached services. Sending this API Request will trigger an update of all NOVA services that are part of a cell. Previous cells and cell configurations will remain on the instance. If the update fails, the previous Wandelbots NOVA version is restored.
16799
17034
  * @summary Update Wandelbots NOVA version
@@ -16814,6 +17049,19 @@ export const SystemApiFactory = function (configuration?: Configuration, basePat
16814
17049
  * @extends {BaseAPI}
16815
17050
  */
16816
17051
  export class SystemApi extends BaseAPI {
17052
+ /**
17053
+ * Retrieves a configuration backup based on provided resource identifiers.
17054
+ * @summary Retrieve Configuration Backup
17055
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
17056
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
17057
+ * @param {*} [options] Override http request option.
17058
+ * @throws {RequiredError}
17059
+ * @memberof SystemApi
17060
+ */
17061
+ public backupConfiguration(resources: Array<string>, metadata?: { [key: string]: string; }, options?: RawAxiosRequestConfig) {
17062
+ return SystemApiFp(this.configuration).backupConfiguration(resources, metadata, options).then((request) => request(this.axios, this.basePath));
17063
+ }
17064
+
16817
17065
  /**
16818
17066
  * Check if a more recent Wandelbots NOVA Version is available.
16819
17067
  * @summary Check update
@@ -16859,6 +17107,30 @@ export class SystemApi extends BaseAPI {
16859
17107
  return SystemApiFp(this.configuration).getSystemVersion(options).then((request) => request(this.axios, this.basePath));
16860
17108
  }
16861
17109
 
17110
+ /**
17111
+ * Retrieves a list of all available configuration resources for backup purposes.
17112
+ * @summary List Configuration Resources
17113
+ * @param {*} [options] Override http request option.
17114
+ * @throws {RequiredError}
17115
+ * @memberof SystemApi
17116
+ */
17117
+ public listConfigurationResources(options?: RawAxiosRequestConfig) {
17118
+ return SystemApiFp(this.configuration).listConfigurationResources(options).then((request) => request(this.axios, this.basePath));
17119
+ }
17120
+
17121
+ /**
17122
+ * Restores a previously backed up configuration.
17123
+ * @summary Restore Configuration Backup
17124
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
17125
+ * @param {File} body Backup file stream containing the configuration to restore.
17126
+ * @param {*} [options] Override http request option.
17127
+ * @throws {RequiredError}
17128
+ * @memberof SystemApi
17129
+ */
17130
+ public restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig) {
17131
+ return SystemApiFp(this.configuration).restoreConfiguration(resources, body, options).then((request) => request(this.axios, this.basePath));
17132
+ }
17133
+
16862
17134
  /**
16863
17135
  * Update the Wandelbots NOVA version and all attached services. Sending this API Request will trigger an update of all NOVA services that are part of a cell. Previous cells and cell configurations will remain on the instance. If the update fails, the previous Wandelbots NOVA version is restored.
16864
17136
  * @summary Update Wandelbots NOVA version