@cosmotech/api-ts 2.1.0 → 2.3.9

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/api.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Cosmo Tech Plaform API
4
+ * Cosmo Tech Platform API
5
5
  * Cosmo Tech Platform API
6
6
  *
7
- * The version of the OpenAPI document: 2.1.0
7
+ * The version of the OpenAPI document: 2.3.9
8
8
  * Contact: platform@cosmotech.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2018,6 +2018,45 @@ export interface Solution {
2018
2018
  */
2019
2019
  'runTemplates'?: Array<RunTemplate>;
2020
2020
  }
2021
+ /**
2022
+ * Source job import information
2023
+ * @export
2024
+ * @interface SourceInfo
2025
+ */
2026
+ export interface SourceInfo {
2027
+ /**
2028
+ * the source name containing the files to import
2029
+ * @type {string}
2030
+ * @memberof SourceInfo
2031
+ */
2032
+ 'name'?: string;
2033
+ /**
2034
+ * the source location containing the files to import
2035
+ * @type {string}
2036
+ * @memberof SourceInfo
2037
+ */
2038
+ 'location': string;
2039
+ /**
2040
+ * the source location containing the files to import
2041
+ * @type {string}
2042
+ * @memberof SourceInfo
2043
+ */
2044
+ 'path'?: string;
2045
+ /**
2046
+ * the source type containing the files to import
2047
+ * @type {string}
2048
+ * @memberof SourceInfo
2049
+ */
2050
+ 'type': SourceInfoTypeEnum;
2051
+ }
2052
+
2053
+ export const SourceInfoTypeEnum = {
2054
+ Adt: 'ADT',
2055
+ Storage: 'Storage'
2056
+ } as const;
2057
+
2058
+ export type SourceInfoTypeEnum = typeof SourceInfoTypeEnum[keyof typeof SourceInfoTypeEnum];
2059
+
2021
2060
  /**
2022
2061
  * a twin graph import info
2023
2062
  * @export
@@ -2025,17 +2064,17 @@ export interface Solution {
2025
2064
  */
2026
2065
  export interface TwinGraphImport {
2027
2066
  /**
2028
- * the storage path containing the files to import
2029
- * @type {string}
2067
+ *
2068
+ * @type {SourceInfo}
2030
2069
  * @memberof TwinGraphImport
2031
2070
  */
2032
- 'storagePath': string;
2071
+ 'source': SourceInfo;
2033
2072
  /**
2034
- * the graph name to import to
2073
+ * the graph id to import to
2035
2074
  * @type {string}
2036
2075
  * @memberof TwinGraphImport
2037
2076
  */
2038
- 'graphName': string;
2077
+ 'graphId': string;
2039
2078
  /**
2040
2079
  * The version of the graph to import to. When not set, the last version before import is upgraded by 1. When set, the targeted graph is replaced
2041
2080
  * @type {string}
@@ -2068,12 +2107,6 @@ export interface TwinGraphImportInfo {
2068
2107
  * @interface TwinGraphQuery
2069
2108
  */
2070
2109
  export interface TwinGraphQuery {
2071
- /**
2072
- * Twin graph name
2073
- * @type {string}
2074
- * @memberof TwinGraphQuery
2075
- */
2076
- 'graphId'?: string;
2077
2110
  /**
2078
2111
  * Twin graph version
2079
2112
  * @type {string}
@@ -2085,7 +2118,7 @@ export interface TwinGraphQuery {
2085
2118
  * @type {string}
2086
2119
  * @memberof TwinGraphQuery
2087
2120
  */
2088
- 'query'?: string;
2121
+ 'query': string;
2089
2122
  }
2090
2123
  /**
2091
2124
  * a User
@@ -2374,6 +2407,24 @@ export interface Workspace {
2374
2407
  * @memberof Workspace
2375
2408
  */
2376
2409
  'useDedicatedEventHubNamespace'?: boolean;
2410
+ /**
2411
+ * the Dedicated Event Hub SAS key name, default to RootManageSharedAccessKey. Use the /secret endpoint to set the key value
2412
+ * @type {string}
2413
+ * @memberof Workspace
2414
+ */
2415
+ 'dedicatedEventHubSasKeyName'?: string;
2416
+ /**
2417
+ * the Event Hub authentication strategy, SHARED_ACCESS_POLICY or TENANT_CLIENT_CREDENTIALS. Default to the one defined for the tenant.
2418
+ * @type {string}
2419
+ * @memberof Workspace
2420
+ */
2421
+ 'dedicatedEventHubAuthenticationStrategy'?: string;
2422
+ /**
2423
+ * default setting for all Scenarios and Run Templates to set whether or not the ScenarioRun is send to the Event Hub
2424
+ * @type {boolean}
2425
+ * @memberof Workspace
2426
+ */
2427
+ 'sendScenarioRunToEventHub'?: boolean;
2377
2428
  /**
2378
2429
  * Set this property to false to not send scenario metada to Azure Event Hub Namespace for this Workspace. The Event Hub Namespace must be named \\\'<organization_id\\>-<workspace_id\\>\\\' (in lower case). This Namespace must also contain two Event Hubs named \\\'scenariometadata\\\' and \\\'scenariorunmetadata\\\'.
2379
2430
  * @type {boolean}
@@ -2432,6 +2483,19 @@ export interface WorkspaceRole {
2432
2483
  */
2433
2484
  'role': string;
2434
2485
  }
2486
+ /**
2487
+ * the secret definition
2488
+ * @export
2489
+ * @interface WorkspaceSecret
2490
+ */
2491
+ export interface WorkspaceSecret {
2492
+ /**
2493
+ * the dedicated event hub shared access key
2494
+ * @type {string}
2495
+ * @memberof WorkspaceSecret
2496
+ */
2497
+ 'dedicatedEventHubKey'?: string;
2498
+ }
2435
2499
  /**
2436
2500
  * the workspace security information
2437
2501
  * @export
@@ -6887,10 +6951,11 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
6887
6951
  *
6888
6952
  * @summary Delete all historical ScenarioRuns in the Organization
6889
6953
  * @param {string} organizationId the Organization identifier
6954
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6890
6955
  * @param {*} [options] Override http request option.
6891
6956
  * @throws {RequiredError}
6892
6957
  */
6893
- deleteHistoricalDataOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6958
+ deleteHistoricalDataOrganization: async (organizationId: string, deleteUnknown?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6894
6959
  // verify required parameter 'organizationId' is not null or undefined
6895
6960
  assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId)
6896
6961
  const localVarPath = `/organizations/{organization_id}/scenarioruns/historicaldata`
@@ -6910,6 +6975,10 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
6910
6975
  // oauth required
6911
6976
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
6912
6977
 
6978
+ if (deleteUnknown !== undefined) {
6979
+ localVarQueryParameter['deleteUnknown'] = deleteUnknown;
6980
+ }
6981
+
6913
6982
 
6914
6983
 
6915
6984
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6923,20 +6992,25 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
6923
6992
  },
6924
6993
  /**
6925
6994
  *
6926
- * @summary Delete all historical ScenarioRuns in the Workspace
6995
+ * @summary Delete all historical ScenarioRuns in the Scenario
6927
6996
  * @param {string} organizationId the Organization identifier
6928
6997
  * @param {string} workspaceId the Workspace identifier
6998
+ * @param {string} scenarioId the Scenario identifier
6999
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6929
7000
  * @param {*} [options] Override http request option.
6930
7001
  * @throws {RequiredError}
6931
7002
  */
6932
- deleteHistoricalDataWorkspace: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7003
+ deleteHistoricalDataScenario: async (organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6933
7004
  // verify required parameter 'organizationId' is not null or undefined
6934
- assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId)
7005
+ assertParamExists('deleteHistoricalDataScenario', 'organizationId', organizationId)
6935
7006
  // verify required parameter 'workspaceId' is not null or undefined
6936
- assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId)
6937
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata`
7007
+ assertParamExists('deleteHistoricalDataScenario', 'workspaceId', workspaceId)
7008
+ // verify required parameter 'scenarioId' is not null or undefined
7009
+ assertParamExists('deleteHistoricalDataScenario', 'scenarioId', scenarioId)
7010
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/historicaldata`
6938
7011
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
6939
- .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
7012
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
7013
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
6940
7014
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6941
7015
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6942
7016
  let baseOptions;
@@ -6952,6 +7026,10 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
6952
7026
  // oauth required
6953
7027
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
6954
7028
 
7029
+ if (deleteUnknown !== undefined) {
7030
+ localVarQueryParameter['deleteUnknown'] = deleteUnknown;
7031
+ }
7032
+
6955
7033
 
6956
7034
 
6957
7035
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6965,24 +7043,21 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
6965
7043
  },
6966
7044
  /**
6967
7045
  *
6968
- * @summary Delete all historical ScenarioRuns for the Scenario
7046
+ * @summary Delete all historical ScenarioRuns in the Workspace
6969
7047
  * @param {string} organizationId the Organization identifier
6970
7048
  * @param {string} workspaceId the Workspace identifier
6971
- * @param {string} scenarioId the Scenario identifier
7049
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6972
7050
  * @param {*} [options] Override http request option.
6973
7051
  * @throws {RequiredError}
6974
7052
  */
6975
- deleteHistoricalScenarioRunsByScenario: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7053
+ deleteHistoricalDataWorkspace: async (organizationId: string, workspaceId: string, deleteUnknown?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6976
7054
  // verify required parameter 'organizationId' is not null or undefined
6977
- assertParamExists('deleteHistoricalScenarioRunsByScenario', 'organizationId', organizationId)
7055
+ assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId)
6978
7056
  // verify required parameter 'workspaceId' is not null or undefined
6979
- assertParamExists('deleteHistoricalScenarioRunsByScenario', 'workspaceId', workspaceId)
6980
- // verify required parameter 'scenarioId' is not null or undefined
6981
- assertParamExists('deleteHistoricalScenarioRunsByScenario', 'scenarioId', scenarioId)
6982
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns`
7057
+ assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId)
7058
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata`
6983
7059
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
6984
- .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
6985
- .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
7060
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
6986
7061
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6987
7062
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6988
7063
  let baseOptions;
@@ -6998,6 +7073,10 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
6998
7073
  // oauth required
6999
7074
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
7000
7075
 
7076
+ if (deleteUnknown !== undefined) {
7077
+ localVarQueryParameter['deleteUnknown'] = deleteUnknown;
7078
+ }
7079
+
7001
7080
 
7002
7081
 
7003
7082
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7497,36 +7576,39 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
7497
7576
  *
7498
7577
  * @summary Delete all historical ScenarioRuns in the Organization
7499
7578
  * @param {string} organizationId the Organization identifier
7579
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7500
7580
  * @param {*} [options] Override http request option.
7501
7581
  * @throws {RequiredError}
7502
7582
  */
7503
- async deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7504
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options);
7583
+ async deleteHistoricalDataOrganization(organizationId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, deleteUnknown, options);
7505
7585
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7506
7586
  },
7507
7587
  /**
7508
7588
  *
7509
- * @summary Delete all historical ScenarioRuns in the Workspace
7589
+ * @summary Delete all historical ScenarioRuns in the Scenario
7510
7590
  * @param {string} organizationId the Organization identifier
7511
7591
  * @param {string} workspaceId the Workspace identifier
7592
+ * @param {string} scenarioId the Scenario identifier
7593
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7512
7594
  * @param {*} [options] Override http request option.
7513
7595
  * @throws {RequiredError}
7514
7596
  */
7515
- async deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7516
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, options);
7597
+ async deleteHistoricalDataScenario(organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7598
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options);
7517
7599
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7518
7600
  },
7519
7601
  /**
7520
7602
  *
7521
- * @summary Delete all historical ScenarioRuns for the Scenario
7603
+ * @summary Delete all historical ScenarioRuns in the Workspace
7522
7604
  * @param {string} organizationId the Organization identifier
7523
7605
  * @param {string} workspaceId the Workspace identifier
7524
- * @param {string} scenarioId the Scenario identifier
7606
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7525
7607
  * @param {*} [options] Override http request option.
7526
7608
  * @throws {RequiredError}
7527
7609
  */
7528
- async deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7529
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options);
7610
+ async deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options);
7530
7612
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7531
7613
  },
7532
7614
  /**
@@ -7677,34 +7759,37 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
7677
7759
  *
7678
7760
  * @summary Delete all historical ScenarioRuns in the Organization
7679
7761
  * @param {string} organizationId the Organization identifier
7762
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7680
7763
  * @param {*} [options] Override http request option.
7681
7764
  * @throws {RequiredError}
7682
7765
  */
7683
- deleteHistoricalDataOrganization(organizationId: string, options?: any): AxiosPromise<void> {
7684
- return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then((request) => request(axios, basePath));
7766
+ deleteHistoricalDataOrganization(organizationId: string, deleteUnknown?: boolean, options?: any): AxiosPromise<void> {
7767
+ return localVarFp.deleteHistoricalDataOrganization(organizationId, deleteUnknown, options).then((request) => request(axios, basePath));
7685
7768
  },
7686
7769
  /**
7687
7770
  *
7688
- * @summary Delete all historical ScenarioRuns in the Workspace
7771
+ * @summary Delete all historical ScenarioRuns in the Scenario
7689
7772
  * @param {string} organizationId the Organization identifier
7690
7773
  * @param {string} workspaceId the Workspace identifier
7774
+ * @param {string} scenarioId the Scenario identifier
7775
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7691
7776
  * @param {*} [options] Override http request option.
7692
7777
  * @throws {RequiredError}
7693
7778
  */
7694
- deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: any): AxiosPromise<void> {
7695
- return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then((request) => request(axios, basePath));
7779
+ deleteHistoricalDataScenario(organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options?: any): AxiosPromise<void> {
7780
+ return localVarFp.deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options).then((request) => request(axios, basePath));
7696
7781
  },
7697
7782
  /**
7698
7783
  *
7699
- * @summary Delete all historical ScenarioRuns for the Scenario
7784
+ * @summary Delete all historical ScenarioRuns in the Workspace
7700
7785
  * @param {string} organizationId the Organization identifier
7701
7786
  * @param {string} workspaceId the Workspace identifier
7702
- * @param {string} scenarioId the Scenario identifier
7787
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7703
7788
  * @param {*} [options] Override http request option.
7704
7789
  * @throws {RequiredError}
7705
7790
  */
7706
- deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<void> {
7707
- return localVarFp.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
7791
+ deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, deleteUnknown?: boolean, options?: any): AxiosPromise<void> {
7792
+ return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options).then((request) => request(axios, basePath));
7708
7793
  },
7709
7794
  /**
7710
7795
  *
@@ -7843,39 +7928,42 @@ export class ScenariorunApi extends BaseAPI {
7843
7928
  *
7844
7929
  * @summary Delete all historical ScenarioRuns in the Organization
7845
7930
  * @param {string} organizationId the Organization identifier
7931
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7846
7932
  * @param {*} [options] Override http request option.
7847
7933
  * @throws {RequiredError}
7848
7934
  * @memberof ScenariorunApi
7849
7935
  */
7850
- public deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig) {
7851
- return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
7936
+ public deleteHistoricalDataOrganization(organizationId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig) {
7937
+ return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, deleteUnknown, options).then((request) => request(this.axios, this.basePath));
7852
7938
  }
7853
7939
 
7854
7940
  /**
7855
7941
  *
7856
- * @summary Delete all historical ScenarioRuns in the Workspace
7942
+ * @summary Delete all historical ScenarioRuns in the Scenario
7857
7943
  * @param {string} organizationId the Organization identifier
7858
7944
  * @param {string} workspaceId the Workspace identifier
7945
+ * @param {string} scenarioId the Scenario identifier
7946
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7859
7947
  * @param {*} [options] Override http request option.
7860
7948
  * @throws {RequiredError}
7861
7949
  * @memberof ScenariorunApi
7862
7950
  */
7863
- public deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
7864
- return ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
7951
+ public deleteHistoricalDataScenario(organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig) {
7952
+ return ScenariorunApiFp(this.configuration).deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options).then((request) => request(this.axios, this.basePath));
7865
7953
  }
7866
7954
 
7867
7955
  /**
7868
7956
  *
7869
- * @summary Delete all historical ScenarioRuns for the Scenario
7957
+ * @summary Delete all historical ScenarioRuns in the Workspace
7870
7958
  * @param {string} organizationId the Organization identifier
7871
7959
  * @param {string} workspaceId the Workspace identifier
7872
- * @param {string} scenarioId the Scenario identifier
7960
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
7873
7961
  * @param {*} [options] Override http request option.
7874
7962
  * @throws {RequiredError}
7875
7963
  * @memberof ScenariorunApi
7876
7964
  */
7877
- public deleteHistoricalScenarioRunsByScenario(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
7878
- return ScenariorunApiFp(this.configuration).deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
7965
+ public deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig) {
7966
+ return ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options).then((request) => request(this.axios, this.basePath));
7879
7967
  }
7880
7968
 
7881
7969
  /**
@@ -9350,9 +9438,9 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9350
9438
  assertParamExists('_delete', 'organizationId', organizationId)
9351
9439
  // verify required parameter 'graphId' is not null or undefined
9352
9440
  assertParamExists('_delete', 'graphId', graphId)
9353
- const localVarPath = `/organizations/{organization_id}/delete/{graphId}`
9441
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}`
9354
9442
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9355
- .replace(`{${"graphId"}}`, encodeURIComponent(String(graphId)));
9443
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
9356
9444
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9357
9445
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9358
9446
  let baseOptions;
@@ -9370,6 +9458,84 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9370
9458
 
9371
9459
 
9372
9460
 
9461
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9463
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9464
+
9465
+ return {
9466
+ url: toPathString(localVarUrlObj),
9467
+ options: localVarRequestOptions,
9468
+ };
9469
+ },
9470
+ /**
9471
+ * Return the list of all graphs stored in the organization
9472
+ * @param {string} organizationId the Organization identifier
9473
+ * @param {*} [options] Override http request option.
9474
+ * @throws {RequiredError}
9475
+ */
9476
+ findAllTwingraphs: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9477
+ // verify required parameter 'organizationId' is not null or undefined
9478
+ assertParamExists('findAllTwingraphs', 'organizationId', organizationId)
9479
+ const localVarPath = `/organizations/{organization_id}/twingraphs`
9480
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
9481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9482
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9483
+ let baseOptions;
9484
+ if (configuration) {
9485
+ baseOptions = configuration.baseOptions;
9486
+ }
9487
+
9488
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9489
+ const localVarHeaderParameter = {} as any;
9490
+ const localVarQueryParameter = {} as any;
9491
+
9492
+ // authentication oAuth2AuthCode required
9493
+ // oauth required
9494
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
9495
+
9496
+
9497
+
9498
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9500
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9501
+
9502
+ return {
9503
+ url: toPathString(localVarUrlObj),
9504
+ options: localVarRequestOptions,
9505
+ };
9506
+ },
9507
+ /**
9508
+ * Return the metaData of the specified graph
9509
+ * @param {string} organizationId the Organization identifier
9510
+ * @param {string} graphId the Graph Identifier
9511
+ * @param {*} [options] Override http request option.
9512
+ * @throws {RequiredError}
9513
+ */
9514
+ getGraphMetaData: async (organizationId: string, graphId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9515
+ // verify required parameter 'organizationId' is not null or undefined
9516
+ assertParamExists('getGraphMetaData', 'organizationId', organizationId)
9517
+ // verify required parameter 'graphId' is not null or undefined
9518
+ assertParamExists('getGraphMetaData', 'graphId', graphId)
9519
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/metadata`
9520
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9521
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
9522
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9523
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9524
+ let baseOptions;
9525
+ if (configuration) {
9526
+ baseOptions = configuration.baseOptions;
9527
+ }
9528
+
9529
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9530
+ const localVarHeaderParameter = {} as any;
9531
+ const localVarQueryParameter = {} as any;
9532
+
9533
+ // authentication oAuth2AuthCode required
9534
+ // oauth required
9535
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
9536
+
9537
+
9538
+
9373
9539
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9374
9540
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9375
9541
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -9391,7 +9557,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9391
9557
  assertParamExists('importGraph', 'organizationId', organizationId)
9392
9558
  // verify required parameter 'twinGraphImport' is not null or undefined
9393
9559
  assertParamExists('importGraph', 'twinGraphImport', twinGraphImport)
9394
- const localVarPath = `/organizations/{organization_id}/import`
9560
+ const localVarPath = `/organizations/{organization_id}/twingraph/import`
9395
9561
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
9396
9562
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9397
9563
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -9422,20 +9588,65 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9422
9588
  options: localVarRequestOptions,
9423
9589
  };
9424
9590
  },
9591
+ /**
9592
+ * Get the status of a job
9593
+ * @param {string} organizationId the Organization identifier
9594
+ * @param {string} jobId the job identifier
9595
+ * @param {*} [options] Override http request option.
9596
+ * @throws {RequiredError}
9597
+ */
9598
+ jobStatus: async (organizationId: string, jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9599
+ // verify required parameter 'organizationId' is not null or undefined
9600
+ assertParamExists('jobStatus', 'organizationId', organizationId)
9601
+ // verify required parameter 'jobId' is not null or undefined
9602
+ assertParamExists('jobStatus', 'jobId', jobId)
9603
+ const localVarPath = `/organizations/{organization_id}/job/{job_id}/status`
9604
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9605
+ .replace(`{${"job_id"}}`, encodeURIComponent(String(jobId)));
9606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9608
+ let baseOptions;
9609
+ if (configuration) {
9610
+ baseOptions = configuration.baseOptions;
9611
+ }
9612
+
9613
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9614
+ const localVarHeaderParameter = {} as any;
9615
+ const localVarQueryParameter = {} as any;
9616
+
9617
+ // authentication oAuth2AuthCode required
9618
+ // oauth required
9619
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
9620
+
9621
+
9622
+
9623
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9624
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9625
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9626
+
9627
+ return {
9628
+ url: toPathString(localVarUrlObj),
9629
+ options: localVarRequestOptions,
9630
+ };
9631
+ },
9425
9632
  /**
9426
9633
  * Run a query on a graph instance
9427
9634
  * @param {string} organizationId the Organization identifier
9635
+ * @param {string} graphId the Graph Identifier
9428
9636
  * @param {TwinGraphQuery} twinGraphQuery the query to run
9429
9637
  * @param {*} [options] Override http request option.
9430
9638
  * @throws {RequiredError}
9431
9639
  */
9432
- query: async (organizationId: string, twinGraphQuery: TwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9640
+ query: async (organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9433
9641
  // verify required parameter 'organizationId' is not null or undefined
9434
9642
  assertParamExists('query', 'organizationId', organizationId)
9643
+ // verify required parameter 'graphId' is not null or undefined
9644
+ assertParamExists('query', 'graphId', graphId)
9435
9645
  // verify required parameter 'twinGraphQuery' is not null or undefined
9436
9646
  assertParamExists('query', 'twinGraphQuery', twinGraphQuery)
9437
- const localVarPath = `/organizations/{organization_id}/query`
9438
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
9647
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/query`
9648
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9649
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
9439
9650
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9440
9651
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9441
9652
  let baseOptions;
@@ -9486,6 +9697,27 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
9486
9697
  const localVarAxiosArgs = await localVarAxiosParamCreator._delete(organizationId, graphId, options);
9487
9698
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9488
9699
  },
9700
+ /**
9701
+ * Return the list of all graphs stored in the organization
9702
+ * @param {string} organizationId the Organization identifier
9703
+ * @param {*} [options] Override http request option.
9704
+ * @throws {RequiredError}
9705
+ */
9706
+ async findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
9707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllTwingraphs(organizationId, options);
9708
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9709
+ },
9710
+ /**
9711
+ * Return the metaData of the specified graph
9712
+ * @param {string} organizationId the Organization identifier
9713
+ * @param {string} graphId the Graph Identifier
9714
+ * @param {*} [options] Override http request option.
9715
+ * @throws {RequiredError}
9716
+ */
9717
+ async getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
9718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options);
9719
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9720
+ },
9489
9721
  /**
9490
9722
  * Import a new version of a twin graph
9491
9723
  * @param {string} organizationId the Organization identifier
@@ -9497,15 +9729,27 @@ export const TwingraphApiFp = function(configuration?: Configuration) {
9497
9729
  const localVarAxiosArgs = await localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options);
9498
9730
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9499
9731
  },
9732
+ /**
9733
+ * Get the status of a job
9734
+ * @param {string} organizationId the Organization identifier
9735
+ * @param {string} jobId the job identifier
9736
+ * @param {*} [options] Override http request option.
9737
+ * @throws {RequiredError}
9738
+ */
9739
+ async jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
9740
+ const localVarAxiosArgs = await localVarAxiosParamCreator.jobStatus(organizationId, jobId, options);
9741
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9742
+ },
9500
9743
  /**
9501
9744
  * Run a query on a graph instance
9502
9745
  * @param {string} organizationId the Organization identifier
9746
+ * @param {string} graphId the Graph Identifier
9503
9747
  * @param {TwinGraphQuery} twinGraphQuery the query to run
9504
9748
  * @param {*} [options] Override http request option.
9505
9749
  * @throws {RequiredError}
9506
9750
  */
9507
- async query(organizationId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
9508
- const localVarAxiosArgs = await localVarAxiosParamCreator.query(organizationId, twinGraphQuery, options);
9751
+ async query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
9752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.query(organizationId, graphId, twinGraphQuery, options);
9509
9753
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9510
9754
  },
9511
9755
  }
@@ -9528,6 +9772,25 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
9528
9772
  _delete(organizationId: string, graphId: string, options?: any): AxiosPromise<void> {
9529
9773
  return localVarFp._delete(organizationId, graphId, options).then((request) => request(axios, basePath));
9530
9774
  },
9775
+ /**
9776
+ * Return the list of all graphs stored in the organization
9777
+ * @param {string} organizationId the Organization identifier
9778
+ * @param {*} [options] Override http request option.
9779
+ * @throws {RequiredError}
9780
+ */
9781
+ findAllTwingraphs(organizationId: string, options?: any): AxiosPromise<Array<string>> {
9782
+ return localVarFp.findAllTwingraphs(organizationId, options).then((request) => request(axios, basePath));
9783
+ },
9784
+ /**
9785
+ * Return the metaData of the specified graph
9786
+ * @param {string} organizationId the Organization identifier
9787
+ * @param {string} graphId the Graph Identifier
9788
+ * @param {*} [options] Override http request option.
9789
+ * @throws {RequiredError}
9790
+ */
9791
+ getGraphMetaData(organizationId: string, graphId: string, options?: any): AxiosPromise<object> {
9792
+ return localVarFp.getGraphMetaData(organizationId, graphId, options).then((request) => request(axios, basePath));
9793
+ },
9531
9794
  /**
9532
9795
  * Import a new version of a twin graph
9533
9796
  * @param {string} organizationId the Organization identifier
@@ -9538,15 +9801,26 @@ export const TwingraphApiFactory = function (configuration?: Configuration, base
9538
9801
  importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: any): AxiosPromise<TwinGraphImportInfo> {
9539
9802
  return localVarFp.importGraph(organizationId, twinGraphImport, options).then((request) => request(axios, basePath));
9540
9803
  },
9804
+ /**
9805
+ * Get the status of a job
9806
+ * @param {string} organizationId the Organization identifier
9807
+ * @param {string} jobId the job identifier
9808
+ * @param {*} [options] Override http request option.
9809
+ * @throws {RequiredError}
9810
+ */
9811
+ jobStatus(organizationId: string, jobId: string, options?: any): AxiosPromise<string> {
9812
+ return localVarFp.jobStatus(organizationId, jobId, options).then((request) => request(axios, basePath));
9813
+ },
9541
9814
  /**
9542
9815
  * Run a query on a graph instance
9543
9816
  * @param {string} organizationId the Organization identifier
9817
+ * @param {string} graphId the Graph Identifier
9544
9818
  * @param {TwinGraphQuery} twinGraphQuery the query to run
9545
9819
  * @param {*} [options] Override http request option.
9546
9820
  * @throws {RequiredError}
9547
9821
  */
9548
- query(organizationId: string, twinGraphQuery: TwinGraphQuery, options?: any): AxiosPromise<string> {
9549
- return localVarFp.query(organizationId, twinGraphQuery, options).then((request) => request(axios, basePath));
9822
+ query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: any): AxiosPromise<string> {
9823
+ return localVarFp.query(organizationId, graphId, twinGraphQuery, options).then((request) => request(axios, basePath));
9550
9824
  },
9551
9825
  };
9552
9826
  };
@@ -9570,6 +9844,29 @@ export class TwingraphApi extends BaseAPI {
9570
9844
  return TwingraphApiFp(this.configuration)._delete(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
9571
9845
  }
9572
9846
 
9847
+ /**
9848
+ * Return the list of all graphs stored in the organization
9849
+ * @param {string} organizationId the Organization identifier
9850
+ * @param {*} [options] Override http request option.
9851
+ * @throws {RequiredError}
9852
+ * @memberof TwingraphApi
9853
+ */
9854
+ public findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig) {
9855
+ return TwingraphApiFp(this.configuration).findAllTwingraphs(organizationId, options).then((request) => request(this.axios, this.basePath));
9856
+ }
9857
+
9858
+ /**
9859
+ * Return the metaData of the specified graph
9860
+ * @param {string} organizationId the Organization identifier
9861
+ * @param {string} graphId the Graph Identifier
9862
+ * @param {*} [options] Override http request option.
9863
+ * @throws {RequiredError}
9864
+ * @memberof TwingraphApi
9865
+ */
9866
+ public getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig) {
9867
+ return TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
9868
+ }
9869
+
9573
9870
  /**
9574
9871
  * Import a new version of a twin graph
9575
9872
  * @param {string} organizationId the Organization identifier
@@ -9582,16 +9879,29 @@ export class TwingraphApi extends BaseAPI {
9582
9879
  return TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then((request) => request(this.axios, this.basePath));
9583
9880
  }
9584
9881
 
9882
+ /**
9883
+ * Get the status of a job
9884
+ * @param {string} organizationId the Organization identifier
9885
+ * @param {string} jobId the job identifier
9886
+ * @param {*} [options] Override http request option.
9887
+ * @throws {RequiredError}
9888
+ * @memberof TwingraphApi
9889
+ */
9890
+ public jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig) {
9891
+ return TwingraphApiFp(this.configuration).jobStatus(organizationId, jobId, options).then((request) => request(this.axios, this.basePath));
9892
+ }
9893
+
9585
9894
  /**
9586
9895
  * Run a query on a graph instance
9587
9896
  * @param {string} organizationId the Organization identifier
9897
+ * @param {string} graphId the Graph Identifier
9588
9898
  * @param {TwinGraphQuery} twinGraphQuery the query to run
9589
9899
  * @param {*} [options] Override http request option.
9590
9900
  * @throws {RequiredError}
9591
9901
  * @memberof TwingraphApi
9592
9902
  */
9593
- public query(organizationId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig) {
9594
- return TwingraphApiFp(this.configuration).query(organizationId, twinGraphQuery, options).then((request) => request(this.axios, this.basePath));
9903
+ public query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig) {
9904
+ return TwingraphApiFp(this.configuration).query(organizationId, graphId, twinGraphQuery, options).then((request) => request(this.axios, this.basePath));
9595
9905
  }
9596
9906
  }
9597
9907
 
@@ -11155,6 +11465,54 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
11155
11465
  options: localVarRequestOptions,
11156
11466
  };
11157
11467
  },
11468
+ /**
11469
+ *
11470
+ * @summary Create a secret for the Workspace
11471
+ * @param {string} organizationId the Organization identifier
11472
+ * @param {string} workspaceId the Workspace identifier
11473
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
11474
+ * @param {*} [options] Override http request option.
11475
+ * @throws {RequiredError}
11476
+ */
11477
+ createSecret: async (organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11478
+ // verify required parameter 'organizationId' is not null or undefined
11479
+ assertParamExists('createSecret', 'organizationId', organizationId)
11480
+ // verify required parameter 'workspaceId' is not null or undefined
11481
+ assertParamExists('createSecret', 'workspaceId', workspaceId)
11482
+ // verify required parameter 'workspaceSecret' is not null or undefined
11483
+ assertParamExists('createSecret', 'workspaceSecret', workspaceSecret)
11484
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/secret`
11485
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
11486
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
11487
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11488
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11489
+ let baseOptions;
11490
+ if (configuration) {
11491
+ baseOptions = configuration.baseOptions;
11492
+ }
11493
+
11494
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11495
+ const localVarHeaderParameter = {} as any;
11496
+ const localVarQueryParameter = {} as any;
11497
+
11498
+ // authentication oAuth2AuthCode required
11499
+ // oauth required
11500
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
11501
+
11502
+
11503
+
11504
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11505
+
11506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11508
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11509
+ localVarRequestOptions.data = serializeDataIfNeeded(workspaceSecret, localVarRequestOptions, configuration)
11510
+
11511
+ return {
11512
+ url: toPathString(localVarUrlObj),
11513
+ options: localVarRequestOptions,
11514
+ };
11515
+ },
11158
11516
  /**
11159
11517
  *
11160
11518
  * @summary Create a new workspace
@@ -11959,6 +12317,19 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
11959
12317
  const localVarAxiosArgs = await localVarAxiosParamCreator.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options);
11960
12318
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11961
12319
  },
12320
+ /**
12321
+ *
12322
+ * @summary Create a secret for the Workspace
12323
+ * @param {string} organizationId the Organization identifier
12324
+ * @param {string} workspaceId the Workspace identifier
12325
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
12326
+ * @param {*} [options] Override http request option.
12327
+ * @throws {RequiredError}
12328
+ */
12329
+ async createSecret(organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
12330
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSecret(organizationId, workspaceId, workspaceSecret, options);
12331
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12332
+ },
11962
12333
  /**
11963
12334
  *
11964
12335
  * @summary Create a new workspace
@@ -12196,6 +12567,18 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
12196
12567
  addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: any): AxiosPromise<WorkspaceAccessControl> {
12197
12568
  return localVarFp.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(axios, basePath));
12198
12569
  },
12570
+ /**
12571
+ *
12572
+ * @summary Create a secret for the Workspace
12573
+ * @param {string} organizationId the Organization identifier
12574
+ * @param {string} workspaceId the Workspace identifier
12575
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
12576
+ * @param {*} [options] Override http request option.
12577
+ * @throws {RequiredError}
12578
+ */
12579
+ createSecret(organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options?: any): AxiosPromise<void> {
12580
+ return localVarFp.createSecret(organizationId, workspaceId, workspaceSecret, options).then((request) => request(axios, basePath));
12581
+ },
12199
12582
  /**
12200
12583
  *
12201
12584
  * @summary Create a new workspace
@@ -12418,6 +12801,20 @@ export class WorkspaceApi extends BaseAPI {
12418
12801
  return WorkspaceApiFp(this.configuration).addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(this.axios, this.basePath));
12419
12802
  }
12420
12803
 
12804
+ /**
12805
+ *
12806
+ * @summary Create a secret for the Workspace
12807
+ * @param {string} organizationId the Organization identifier
12808
+ * @param {string} workspaceId the Workspace identifier
12809
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
12810
+ * @param {*} [options] Override http request option.
12811
+ * @throws {RequiredError}
12812
+ * @memberof WorkspaceApi
12813
+ */
12814
+ public createSecret(organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options?: AxiosRequestConfig) {
12815
+ return WorkspaceApiFp(this.configuration).createSecret(organizationId, workspaceId, workspaceSecret, options).then((request) => request(this.axios, this.basePath));
12816
+ }
12817
+
12421
12818
  /**
12422
12819
  *
12423
12820
  * @summary Create a new workspace