@cosmotech/api-ts 2.4.5-private → 3.0.10-private

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 2.4.5-private
8
+ * The version of the OpenAPI document: 3.0.10-private
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,7 +73,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
73
73
  }
74
74
  };
75
75
  Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.SourceInfoTypeEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateHandlerId = exports.ConnectorIoTypesEnum = void 0;
76
+ exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunresultApi = exports.ScenariorunresultApiFactory = exports.ScenariorunresultApiFp = exports.ScenariorunresultApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateOrchestrator = exports.RunTemplateHandlerId = exports.DatasetSourceType = exports.DatasetStatusEnum = exports.ConnectorIoTypesEnum = void 0;
77
77
  var axios_1 = require("axios");
78
78
  // Some imports not used depending on template conditions
79
79
  // @ts-ignore
@@ -84,6 +84,24 @@ exports.ConnectorIoTypesEnum = {
84
84
  Read: 'read',
85
85
  Write: 'write'
86
86
  };
87
+ exports.DatasetStatusEnum = {
88
+ Draft: 'DRAFT',
89
+ Pending: 'PENDING',
90
+ Error: 'ERROR',
91
+ Ready: 'READY'
92
+ };
93
+ /**
94
+ * the Dataset Source Type
95
+ * @export
96
+ * @enum {string}
97
+ */
98
+ exports.DatasetSourceType = {
99
+ Adt: 'ADT',
100
+ AzureStorage: 'AzureStorage',
101
+ File: 'File',
102
+ None: 'None',
103
+ Twincache: 'Twincache'
104
+ };
87
105
  /**
88
106
  * the Run Template step handler identifier
89
107
  * @export
@@ -97,6 +115,15 @@ exports.RunTemplateHandlerId = {
97
115
  Postrun: 'postrun',
98
116
  ScenariodataTransform: 'scenariodata_transform'
99
117
  };
118
+ /**
119
+ * the Orchestrator to use for the Run Template
120
+ * @export
121
+ * @enum {string}
122
+ */
123
+ exports.RunTemplateOrchestrator = {
124
+ ArgoWorkflow: 'argoWorkflow',
125
+ CsmOrc: 'csmOrc'
126
+ };
100
127
  /**
101
128
  * the source local, cloud or git repository
102
129
  * @export
@@ -157,10 +184,6 @@ exports.ScenarioValidationStatus = {
157
184
  Unknown: 'Unknown',
158
185
  Validated: 'Validated'
159
186
  };
160
- exports.SourceInfoTypeEnum = {
161
- Adt: 'ADT',
162
- Storage: 'Storage'
163
- };
164
187
  exports.ValidatorRunStateEnum = {
165
188
  Running: 'Running',
166
189
  Finished: 'Finished',
@@ -265,26 +288,27 @@ exports.ConnectorApiAxiosParamCreator = function (configuration) {
265
288
  },
266
289
  /**
267
290
  *
268
- * @summary Import existing connector
269
- * @param {Connector} connector the Connector to import
291
+ * @summary Get the details of a connector
292
+ * @param {string} connectorName the Connector name
270
293
  * @param {*} [options] Override http request option.
271
294
  * @throws {RequiredError}
272
295
  */
273
- importConnector: function (connector, options) {
296
+ findConnectorByName: function (connectorName, options) {
274
297
  if (options === void 0) { options = {}; }
275
298
  return __awaiter(_this, void 0, void 0, function () {
276
299
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
277
300
  return __generator(this, function (_a) {
278
301
  switch (_a.label) {
279
302
  case 0:
280
- // verify required parameter 'connector' is not null or undefined
281
- common_1.assertParamExists('importConnector', 'connector', connector);
282
- localVarPath = "/connectors/import";
303
+ // verify required parameter 'connectorName' is not null or undefined
304
+ common_1.assertParamExists('findConnectorByName', 'connectorName', connectorName);
305
+ localVarPath = "/connectors/name/{connector_name}"
306
+ .replace("{" + "connector_name" + "}", encodeURIComponent(String(connectorName)));
283
307
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
284
308
  if (configuration) {
285
309
  baseOptions = configuration.baseOptions;
286
310
  }
287
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
311
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
288
312
  localVarHeaderParameter = {};
289
313
  localVarQueryParameter = {};
290
314
  // authentication oAuth2AuthCode required
@@ -294,11 +318,9 @@ exports.ConnectorApiAxiosParamCreator = function (configuration) {
294
318
  // authentication oAuth2AuthCode required
295
319
  // oauth required
296
320
  _a.sent();
297
- localVarHeaderParameter['Content-Type'] = 'application/json';
298
321
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
299
322
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
323
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
301
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(connector, localVarRequestOptions, configuration);
302
324
  return [2 /*return*/, {
303
325
  url: common_1.toPathString(localVarUrlObj),
304
326
  options: localVarRequestOptions,
@@ -446,17 +468,17 @@ exports.ConnectorApiFp = function (configuration) {
446
468
  },
447
469
  /**
448
470
  *
449
- * @summary Import existing connector
450
- * @param {Connector} connector the Connector to import
471
+ * @summary Get the details of a connector
472
+ * @param {string} connectorName the Connector name
451
473
  * @param {*} [options] Override http request option.
452
474
  * @throws {RequiredError}
453
475
  */
454
- importConnector: function (connector, options) {
476
+ findConnectorByName: function (connectorName, options) {
455
477
  return __awaiter(this, void 0, void 0, function () {
456
478
  var localVarAxiosArgs;
457
479
  return __generator(this, function (_a) {
458
480
  switch (_a.label) {
459
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importConnector(connector, options)];
481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findConnectorByName(connectorName, options)];
460
482
  case 1:
461
483
  localVarAxiosArgs = _a.sent();
462
484
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -536,13 +558,13 @@ exports.ConnectorApiFactory = function (configuration, basePath, axios) {
536
558
  },
537
559
  /**
538
560
  *
539
- * @summary Import existing connector
540
- * @param {Connector} connector the Connector to import
561
+ * @summary Get the details of a connector
562
+ * @param {string} connectorName the Connector name
541
563
  * @param {*} [options] Override http request option.
542
564
  * @throws {RequiredError}
543
565
  */
544
- importConnector: function (connector, options) {
545
- return localVarFp.importConnector(connector, options).then(function (request) { return request(axios, basePath); });
566
+ findConnectorByName: function (connectorName, options) {
567
+ return localVarFp.findConnectorByName(connectorName, options).then(function (request) { return request(axios, basePath); });
546
568
  },
547
569
  /**
548
570
  *
@@ -604,15 +626,15 @@ var ConnectorApi = /** @class */ (function (_super) {
604
626
  };
605
627
  /**
606
628
  *
607
- * @summary Import existing connector
608
- * @param {Connector} connector the Connector to import
629
+ * @summary Get the details of a connector
630
+ * @param {string} connectorName the Connector name
609
631
  * @param {*} [options] Override http request option.
610
632
  * @throws {RequiredError}
611
633
  * @memberof ConnectorApi
612
634
  */
613
- ConnectorApi.prototype.importConnector = function (connector, options) {
635
+ ConnectorApi.prototype.findConnectorByName = function (connectorName, options) {
614
636
  var _this = this;
615
- return exports.ConnectorApiFp(this.configuration).importConnector(connector, options).then(function (request) { return request(_this.axios, _this.basePath); });
637
+ return exports.ConnectorApiFp(this.configuration).findConnectorByName(connectorName, options).then(function (request) { return request(_this.axios, _this.basePath); });
616
638
  };
617
639
  /**
618
640
  *
@@ -648,6 +670,58 @@ exports.ConnectorApi = ConnectorApi;
648
670
  exports.DatasetApiAxiosParamCreator = function (configuration) {
649
671
  var _this = this;
650
672
  return {
673
+ /**
674
+ *
675
+ * @summary Add a control access to the Dataset
676
+ * @param {string} organizationId the Organization identifier
677
+ * @param {string} datasetId the Dataset identifier
678
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ addDatasetAccessControl: function (organizationId, datasetId, datasetAccessControl, options) {
683
+ if (options === void 0) { options = {}; }
684
+ return __awaiter(_this, void 0, void 0, function () {
685
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
686
+ return __generator(this, function (_a) {
687
+ switch (_a.label) {
688
+ case 0:
689
+ // verify required parameter 'organizationId' is not null or undefined
690
+ common_1.assertParamExists('addDatasetAccessControl', 'organizationId', organizationId);
691
+ // verify required parameter 'datasetId' is not null or undefined
692
+ common_1.assertParamExists('addDatasetAccessControl', 'datasetId', datasetId);
693
+ // verify required parameter 'datasetAccessControl' is not null or undefined
694
+ common_1.assertParamExists('addDatasetAccessControl', 'datasetAccessControl', datasetAccessControl);
695
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/security/access"
696
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
697
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
698
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
699
+ if (configuration) {
700
+ baseOptions = configuration.baseOptions;
701
+ }
702
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
703
+ localVarHeaderParameter = {};
704
+ localVarQueryParameter = {};
705
+ // authentication oAuth2AuthCode required
706
+ // oauth required
707
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
708
+ case 1:
709
+ // authentication oAuth2AuthCode required
710
+ // oauth required
711
+ _a.sent();
712
+ localVarHeaderParameter['Content-Type'] = 'application/json';
713
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
714
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
715
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
716
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(datasetAccessControl, localVarRequestOptions, configuration);
717
+ return [2 /*return*/, {
718
+ url: common_1.toPathString(localVarUrlObj),
719
+ options: localVarRequestOptions,
720
+ }];
721
+ }
722
+ });
723
+ });
724
+ },
651
725
  /**
652
726
  *
653
727
  * @summary Add Dataset Compatibility elements.
@@ -797,14 +871,15 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
797
871
  });
798
872
  },
799
873
  /**
800
- *
801
- * @summary Delete a dataset
874
+ * Run a query on a dataset
875
+ * @summary Run a query on a dataset
802
876
  * @param {string} organizationId the Organization identifier
803
877
  * @param {string} datasetId the Dataset identifier
878
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
804
879
  * @param {*} [options] Override http request option.
805
880
  * @throws {RequiredError}
806
881
  */
807
- deleteDataset: function (organizationId, datasetId, options) {
882
+ createSubDataset: function (organizationId, datasetId, subDatasetGraphQuery, options) {
808
883
  if (options === void 0) { options = {}; }
809
884
  return __awaiter(_this, void 0, void 0, function () {
810
885
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -812,17 +887,19 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
812
887
  switch (_a.label) {
813
888
  case 0:
814
889
  // verify required parameter 'organizationId' is not null or undefined
815
- common_1.assertParamExists('deleteDataset', 'organizationId', organizationId);
890
+ common_1.assertParamExists('createSubDataset', 'organizationId', organizationId);
816
891
  // verify required parameter 'datasetId' is not null or undefined
817
- common_1.assertParamExists('deleteDataset', 'datasetId', datasetId);
818
- localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}"
892
+ common_1.assertParamExists('createSubDataset', 'datasetId', datasetId);
893
+ // verify required parameter 'subDatasetGraphQuery' is not null or undefined
894
+ common_1.assertParamExists('createSubDataset', 'subDatasetGraphQuery', subDatasetGraphQuery);
895
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/subdataset"
819
896
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
820
897
  .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
821
898
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
822
899
  if (configuration) {
823
900
  baseOptions = configuration.baseOptions;
824
901
  }
825
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
902
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
826
903
  localVarHeaderParameter = {};
827
904
  localVarQueryParameter = {};
828
905
  // authentication oAuth2AuthCode required
@@ -832,9 +909,11 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
832
909
  // authentication oAuth2AuthCode required
833
910
  // oauth required
834
911
  _a.sent();
912
+ localVarHeaderParameter['Content-Type'] = 'application/json';
835
913
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
836
914
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
837
915
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
916
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(subDatasetGraphQuery, localVarRequestOptions, configuration);
838
917
  return [2 /*return*/, {
839
918
  url: common_1.toPathString(localVarUrlObj),
840
919
  options: localVarRequestOptions,
@@ -844,15 +923,16 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
844
923
  });
845
924
  },
846
925
  /**
847
- *
848
- * @summary List all Datasets
926
+ * create new entities in a graph instance
927
+ * @summary Create new entities in a graph instance
849
928
  * @param {string} organizationId the Organization identifier
850
- * @param {number} [page] page number to query
851
- * @param {number} [size] amount of result by page
929
+ * @param {string} datasetId the Dataset Identifier
930
+ * @param {'node' | 'relationship'} type the entity model type
931
+ * @param {Array<GraphProperties>} graphProperties the entities to create
852
932
  * @param {*} [options] Override http request option.
853
933
  * @throws {RequiredError}
854
934
  */
855
- findAllDatasets: function (organizationId, page, size, options) {
935
+ createTwingraphEntities: function (organizationId, datasetId, type, graphProperties, options) {
856
936
  if (options === void 0) { options = {}; }
857
937
  return __awaiter(_this, void 0, void 0, function () {
858
938
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -860,14 +940,22 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
860
940
  switch (_a.label) {
861
941
  case 0:
862
942
  // verify required parameter 'organizationId' is not null or undefined
863
- common_1.assertParamExists('findAllDatasets', 'organizationId', organizationId);
864
- localVarPath = "/organizations/{organization_id}/datasets"
865
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
943
+ common_1.assertParamExists('createTwingraphEntities', 'organizationId', organizationId);
944
+ // verify required parameter 'datasetId' is not null or undefined
945
+ common_1.assertParamExists('createTwingraphEntities', 'datasetId', datasetId);
946
+ // verify required parameter 'type' is not null or undefined
947
+ common_1.assertParamExists('createTwingraphEntities', 'type', type);
948
+ // verify required parameter 'graphProperties' is not null or undefined
949
+ common_1.assertParamExists('createTwingraphEntities', 'graphProperties', graphProperties);
950
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}"
951
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
952
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
953
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
866
954
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
867
955
  if (configuration) {
868
956
  baseOptions = configuration.baseOptions;
869
957
  }
870
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
958
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
871
959
  localVarHeaderParameter = {};
872
960
  localVarQueryParameter = {};
873
961
  // authentication oAuth2AuthCode required
@@ -877,15 +965,11 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
877
965
  // authentication oAuth2AuthCode required
878
966
  // oauth required
879
967
  _a.sent();
880
- if (page !== undefined) {
881
- localVarQueryParameter['page'] = page;
882
- }
883
- if (size !== undefined) {
884
- localVarQueryParameter['size'] = size;
885
- }
968
+ localVarHeaderParameter['Content-Type'] = 'application/json';
886
969
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
887
970
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
888
971
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
972
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration);
889
973
  return [2 /*return*/, {
890
974
  url: common_1.toPathString(localVarUrlObj),
891
975
  options: localVarRequestOptions,
@@ -896,13 +980,13 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
896
980
  },
897
981
  /**
898
982
  *
899
- * @summary Get the details of a Dataset
983
+ * @summary Delete a dataset
900
984
  * @param {string} organizationId the Organization identifier
901
985
  * @param {string} datasetId the Dataset identifier
902
986
  * @param {*} [options] Override http request option.
903
987
  * @throws {RequiredError}
904
988
  */
905
- findDatasetById: function (organizationId, datasetId, options) {
989
+ deleteDataset: function (organizationId, datasetId, options) {
906
990
  if (options === void 0) { options = {}; }
907
991
  return __awaiter(_this, void 0, void 0, function () {
908
992
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -910,9 +994,9 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
910
994
  switch (_a.label) {
911
995
  case 0:
912
996
  // verify required parameter 'organizationId' is not null or undefined
913
- common_1.assertParamExists('findDatasetById', 'organizationId', organizationId);
997
+ common_1.assertParamExists('deleteDataset', 'organizationId', organizationId);
914
998
  // verify required parameter 'datasetId' is not null or undefined
915
- common_1.assertParamExists('findDatasetById', 'datasetId', datasetId);
999
+ common_1.assertParamExists('deleteDataset', 'datasetId', datasetId);
916
1000
  localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}"
917
1001
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
918
1002
  .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
@@ -920,7 +1004,7 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
920
1004
  if (configuration) {
921
1005
  baseOptions = configuration.baseOptions;
922
1006
  }
923
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1007
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
924
1008
  localVarHeaderParameter = {};
925
1009
  localVarQueryParameter = {};
926
1010
  // authentication oAuth2AuthCode required
@@ -942,14 +1026,16 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
942
1026
  });
943
1027
  },
944
1028
  /**
945
- *
946
- * @summary Import a new Dataset
1029
+ * delete entities in a graph instance
1030
+ * @summary Delete entities in a graph instance
947
1031
  * @param {string} organizationId the Organization identifier
948
- * @param {Dataset} dataset the Dataset to import
1032
+ * @param {string} datasetId the Dataset Identifier
1033
+ * @param {'node' | 'relationship'} type the entity model type
1034
+ * @param {Array<string>} ids the entities to delete
949
1035
  * @param {*} [options] Override http request option.
950
1036
  * @throws {RequiredError}
951
1037
  */
952
- importDataset: function (organizationId, dataset, options) {
1038
+ deleteTwingraphEntities: function (organizationId, datasetId, type, ids, options) {
953
1039
  if (options === void 0) { options = {}; }
954
1040
  return __awaiter(_this, void 0, void 0, function () {
955
1041
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -957,16 +1043,22 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
957
1043
  switch (_a.label) {
958
1044
  case 0:
959
1045
  // verify required parameter 'organizationId' is not null or undefined
960
- common_1.assertParamExists('importDataset', 'organizationId', organizationId);
961
- // verify required parameter 'dataset' is not null or undefined
962
- common_1.assertParamExists('importDataset', 'dataset', dataset);
963
- localVarPath = "/organizations/{organization_id}/datasets/import"
964
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1046
+ common_1.assertParamExists('deleteTwingraphEntities', 'organizationId', organizationId);
1047
+ // verify required parameter 'datasetId' is not null or undefined
1048
+ common_1.assertParamExists('deleteTwingraphEntities', 'datasetId', datasetId);
1049
+ // verify required parameter 'type' is not null or undefined
1050
+ common_1.assertParamExists('deleteTwingraphEntities', 'type', type);
1051
+ // verify required parameter 'ids' is not null or undefined
1052
+ common_1.assertParamExists('deleteTwingraphEntities', 'ids', ids);
1053
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}"
1054
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1055
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
1056
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
965
1057
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
966
1058
  if (configuration) {
967
1059
  baseOptions = configuration.baseOptions;
968
1060
  }
969
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1061
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
970
1062
  localVarHeaderParameter = {};
971
1063
  localVarQueryParameter = {};
972
1064
  // authentication oAuth2AuthCode required
@@ -976,11 +1068,12 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
976
1068
  // authentication oAuth2AuthCode required
977
1069
  // oauth required
978
1070
  _a.sent();
979
- localVarHeaderParameter['Content-Type'] = 'application/json';
1071
+ if (ids) {
1072
+ localVarQueryParameter['ids'] = ids;
1073
+ }
980
1074
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
981
1075
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
982
1076
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
983
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(dataset, localVarRequestOptions, configuration);
984
1077
  return [2 /*return*/, {
985
1078
  url: common_1.toPathString(localVarUrlObj),
986
1079
  options: localVarRequestOptions,
@@ -990,14 +1083,14 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
990
1083
  });
991
1084
  },
992
1085
  /**
993
- *
994
- * @summary Remove all Dataset Compatibility elements from the Dataset specified
1086
+ * Download a graph compressed in a zip file
1087
+ * @summary Download a graph compressed in a zip file
995
1088
  * @param {string} organizationId the Organization identifier
996
- * @param {string} datasetId the Dataset identifier
1089
+ * @param {string} hash the Graph download identifier
997
1090
  * @param {*} [options] Override http request option.
998
1091
  * @throws {RequiredError}
999
1092
  */
1000
- removeAllDatasetCompatibilityElements: function (organizationId, datasetId, options) {
1093
+ downloadTwingraph: function (organizationId, hash, options) {
1001
1094
  if (options === void 0) { options = {}; }
1002
1095
  return __awaiter(_this, void 0, void 0, function () {
1003
1096
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1005,17 +1098,17 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1005
1098
  switch (_a.label) {
1006
1099
  case 0:
1007
1100
  // verify required parameter 'organizationId' is not null or undefined
1008
- common_1.assertParamExists('removeAllDatasetCompatibilityElements', 'organizationId', organizationId);
1009
- // verify required parameter 'datasetId' is not null or undefined
1010
- common_1.assertParamExists('removeAllDatasetCompatibilityElements', 'datasetId', datasetId);
1011
- localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/compatibility"
1101
+ common_1.assertParamExists('downloadTwingraph', 'organizationId', organizationId);
1102
+ // verify required parameter 'hash' is not null or undefined
1103
+ common_1.assertParamExists('downloadTwingraph', 'hash', hash);
1104
+ localVarPath = "/organizations/{organization_id}/datasets/twingraph/download/{hash}"
1012
1105
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1013
- .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1106
+ .replace("{" + "hash" + "}", encodeURIComponent(String(hash)));
1014
1107
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1015
1108
  if (configuration) {
1016
1109
  baseOptions = configuration.baseOptions;
1017
1110
  }
1018
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1111
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1019
1112
  localVarHeaderParameter = {};
1020
1113
  localVarQueryParameter = {};
1021
1114
  // authentication oAuth2AuthCode required
@@ -1038,15 +1131,14 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1038
1131
  },
1039
1132
  /**
1040
1133
  *
1041
- * @summary Search Datasets
1134
+ * @summary List all Datasets
1042
1135
  * @param {string} organizationId the Organization identifier
1043
- * @param {DatasetSearch} datasetSearch the Dataset search parameters
1044
1136
  * @param {number} [page] page number to query
1045
1137
  * @param {number} [size] amount of result by page
1046
1138
  * @param {*} [options] Override http request option.
1047
1139
  * @throws {RequiredError}
1048
1140
  */
1049
- searchDatasets: function (organizationId, datasetSearch, page, size, options) {
1141
+ findAllDatasets: function (organizationId, page, size, options) {
1050
1142
  if (options === void 0) { options = {}; }
1051
1143
  return __awaiter(_this, void 0, void 0, function () {
1052
1144
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1054,16 +1146,14 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1054
1146
  switch (_a.label) {
1055
1147
  case 0:
1056
1148
  // verify required parameter 'organizationId' is not null or undefined
1057
- common_1.assertParamExists('searchDatasets', 'organizationId', organizationId);
1058
- // verify required parameter 'datasetSearch' is not null or undefined
1059
- common_1.assertParamExists('searchDatasets', 'datasetSearch', datasetSearch);
1060
- localVarPath = "/organizations/{organization_id}/datasets/search"
1149
+ common_1.assertParamExists('findAllDatasets', 'organizationId', organizationId);
1150
+ localVarPath = "/organizations/{organization_id}/datasets"
1061
1151
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1062
1152
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1063
1153
  if (configuration) {
1064
1154
  baseOptions = configuration.baseOptions;
1065
1155
  }
1066
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1156
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1067
1157
  localVarHeaderParameter = {};
1068
1158
  localVarQueryParameter = {};
1069
1159
  // authentication oAuth2AuthCode required
@@ -1079,11 +1169,9 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1079
1169
  if (size !== undefined) {
1080
1170
  localVarQueryParameter['size'] = size;
1081
1171
  }
1082
- localVarHeaderParameter['Content-Type'] = 'application/json';
1083
1172
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1084
1173
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1085
1174
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1086
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(datasetSearch, localVarRequestOptions, configuration);
1087
1175
  return [2 /*return*/, {
1088
1176
  url: common_1.toPathString(localVarUrlObj),
1089
1177
  options: localVarRequestOptions,
@@ -1094,14 +1182,13 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1094
1182
  },
1095
1183
  /**
1096
1184
  *
1097
- * @summary Update a dataset
1185
+ * @summary Get the details of a Dataset
1098
1186
  * @param {string} organizationId the Organization identifier
1099
1187
  * @param {string} datasetId the Dataset identifier
1100
- * @param {Dataset} dataset the new Dataset details.
1101
1188
  * @param {*} [options] Override http request option.
1102
1189
  * @throws {RequiredError}
1103
1190
  */
1104
- updateDataset: function (organizationId, datasetId, dataset, options) {
1191
+ findDatasetById: function (organizationId, datasetId, options) {
1105
1192
  if (options === void 0) { options = {}; }
1106
1193
  return __awaiter(_this, void 0, void 0, function () {
1107
1194
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1109,11 +1196,9 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1109
1196
  switch (_a.label) {
1110
1197
  case 0:
1111
1198
  // verify required parameter 'organizationId' is not null or undefined
1112
- common_1.assertParamExists('updateDataset', 'organizationId', organizationId);
1199
+ common_1.assertParamExists('findDatasetById', 'organizationId', organizationId);
1113
1200
  // verify required parameter 'datasetId' is not null or undefined
1114
- common_1.assertParamExists('updateDataset', 'datasetId', datasetId);
1115
- // verify required parameter 'dataset' is not null or undefined
1116
- common_1.assertParamExists('updateDataset', 'dataset', dataset);
1201
+ common_1.assertParamExists('findDatasetById', 'datasetId', datasetId);
1117
1202
  localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}"
1118
1203
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1119
1204
  .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
@@ -1121,7 +1206,7 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1121
1206
  if (configuration) {
1122
1207
  baseOptions = configuration.baseOptions;
1123
1208
  }
1124
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1209
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1125
1210
  localVarHeaderParameter = {};
1126
1211
  localVarQueryParameter = {};
1127
1212
  // authentication oAuth2AuthCode required
@@ -1131,11 +1216,9 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1131
1216
  // authentication oAuth2AuthCode required
1132
1217
  // oauth required
1133
1218
  _a.sent();
1134
- localVarHeaderParameter['Content-Type'] = 'application/json';
1135
1219
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1136
1220
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1137
1221
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1138
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(dataset, localVarRequestOptions, configuration);
1139
1222
  return [2 /*return*/, {
1140
1223
  url: common_1.toPathString(localVarUrlObj),
1141
1224
  options: localVarRequestOptions,
@@ -1144,72 +1227,1120 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
1144
1227
  });
1145
1228
  });
1146
1229
  },
1147
- };
1148
- };
1149
- /**
1150
- * DatasetApi - functional programming interface
1151
- * @export
1152
- */
1153
- exports.DatasetApiFp = function (configuration) {
1154
- var localVarAxiosParamCreator = exports.DatasetApiAxiosParamCreator(configuration);
1155
- return {
1156
1230
  /**
1157
1231
  *
1158
- * @summary Add Dataset Compatibility elements.
1232
+ * @summary Get a control access for the Dataset
1159
1233
  * @param {string} organizationId the Organization identifier
1160
1234
  * @param {string} datasetId the Dataset identifier
1161
- * @param {Array<DatasetCompatibility>} datasetCompatibility the Dataset Compatibility elements
1235
+ * @param {string} identityId the User identifier
1162
1236
  * @param {*} [options] Override http request option.
1163
1237
  * @throws {RequiredError}
1164
1238
  */
1165
- addOrReplaceDatasetCompatibilityElements: function (organizationId, datasetId, datasetCompatibility, options) {
1166
- return __awaiter(this, void 0, void 0, function () {
1167
- var localVarAxiosArgs;
1239
+ getDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
1240
+ if (options === void 0) { options = {}; }
1241
+ return __awaiter(_this, void 0, void 0, function () {
1242
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1168
1243
  return __generator(this, function (_a) {
1169
1244
  switch (_a.label) {
1170
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options)];
1245
+ case 0:
1246
+ // verify required parameter 'organizationId' is not null or undefined
1247
+ common_1.assertParamExists('getDatasetAccessControl', 'organizationId', organizationId);
1248
+ // verify required parameter 'datasetId' is not null or undefined
1249
+ common_1.assertParamExists('getDatasetAccessControl', 'datasetId', datasetId);
1250
+ // verify required parameter 'identityId' is not null or undefined
1251
+ common_1.assertParamExists('getDatasetAccessControl', 'identityId', identityId);
1252
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}"
1253
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1254
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
1255
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
1256
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1257
+ if (configuration) {
1258
+ baseOptions = configuration.baseOptions;
1259
+ }
1260
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1261
+ localVarHeaderParameter = {};
1262
+ localVarQueryParameter = {};
1263
+ // authentication oAuth2AuthCode required
1264
+ // oauth required
1265
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1171
1266
  case 1:
1172
- localVarAxiosArgs = _a.sent();
1173
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1267
+ // authentication oAuth2AuthCode required
1268
+ // oauth required
1269
+ _a.sent();
1270
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1271
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1272
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1273
+ return [2 /*return*/, {
1274
+ url: common_1.toPathString(localVarUrlObj),
1275
+ options: localVarRequestOptions,
1276
+ }];
1174
1277
  }
1175
1278
  });
1176
1279
  });
1177
1280
  },
1178
1281
  /**
1179
1282
  *
1180
- * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
1283
+ * @summary Get the Dataset security users list
1181
1284
  * @param {string} organizationId the Organization identifier
1182
- * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
1285
+ * @param {string} datasetId the Dataset identifier
1183
1286
  * @param {*} [options] Override http request option.
1184
1287
  * @throws {RequiredError}
1185
1288
  */
1186
- copyDataset: function (organizationId, datasetCopyParameters, options) {
1187
- return __awaiter(this, void 0, void 0, function () {
1188
- var localVarAxiosArgs;
1289
+ getDatasetSecurityUsers: function (organizationId, datasetId, options) {
1290
+ if (options === void 0) { options = {}; }
1291
+ return __awaiter(_this, void 0, void 0, function () {
1292
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1189
1293
  return __generator(this, function (_a) {
1190
1294
  switch (_a.label) {
1191
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.copyDataset(organizationId, datasetCopyParameters, options)];
1295
+ case 0:
1296
+ // verify required parameter 'organizationId' is not null or undefined
1297
+ common_1.assertParamExists('getDatasetSecurityUsers', 'organizationId', organizationId);
1298
+ // verify required parameter 'datasetId' is not null or undefined
1299
+ common_1.assertParamExists('getDatasetSecurityUsers', 'datasetId', datasetId);
1300
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/security/users"
1301
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1302
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1303
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1304
+ if (configuration) {
1305
+ baseOptions = configuration.baseOptions;
1306
+ }
1307
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1308
+ localVarHeaderParameter = {};
1309
+ localVarQueryParameter = {};
1310
+ // authentication oAuth2AuthCode required
1311
+ // oauth required
1312
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1192
1313
  case 1:
1193
- localVarAxiosArgs = _a.sent();
1194
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1195
- }
1196
- });
1197
- });
1198
- },
1199
- /**
1314
+ // authentication oAuth2AuthCode required
1315
+ // oauth required
1316
+ _a.sent();
1317
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1318
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1319
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1320
+ return [2 /*return*/, {
1321
+ url: common_1.toPathString(localVarUrlObj),
1322
+ options: localVarRequestOptions,
1323
+ }];
1324
+ }
1325
+ });
1326
+ });
1327
+ },
1328
+ /**
1329
+ * Get the status of a twingraph import
1330
+ * @summary Get the status of twingraph import
1331
+ * @param {string} organizationId the Organization identifier
1332
+ * @param {string} datasetId the dataset identifier
1333
+ * @param {string} jobId the job identifier
1334
+ * @param {*} [options] Override http request option.
1335
+ * @throws {RequiredError}
1336
+ */
1337
+ getDatasetTwingraphStatus: function (organizationId, datasetId, jobId, options) {
1338
+ if (options === void 0) { options = {}; }
1339
+ return __awaiter(_this, void 0, void 0, function () {
1340
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1341
+ return __generator(this, function (_a) {
1342
+ switch (_a.label) {
1343
+ case 0:
1344
+ // verify required parameter 'organizationId' is not null or undefined
1345
+ common_1.assertParamExists('getDatasetTwingraphStatus', 'organizationId', organizationId);
1346
+ // verify required parameter 'datasetId' is not null or undefined
1347
+ common_1.assertParamExists('getDatasetTwingraphStatus', 'datasetId', datasetId);
1348
+ // verify required parameter 'jobId' is not null or undefined
1349
+ common_1.assertParamExists('getDatasetTwingraphStatus', 'jobId', jobId);
1350
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/job/{job_id}/status"
1351
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1352
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
1353
+ .replace("{" + "job_id" + "}", encodeURIComponent(String(jobId)));
1354
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1355
+ if (configuration) {
1356
+ baseOptions = configuration.baseOptions;
1357
+ }
1358
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1359
+ localVarHeaderParameter = {};
1360
+ localVarQueryParameter = {};
1361
+ // authentication oAuth2AuthCode required
1362
+ // oauth required
1363
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1364
+ case 1:
1365
+ // authentication oAuth2AuthCode required
1366
+ // oauth required
1367
+ _a.sent();
1368
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1369
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1370
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1371
+ return [2 /*return*/, {
1372
+ url: common_1.toPathString(localVarUrlObj),
1373
+ options: localVarRequestOptions,
1374
+ }];
1375
+ }
1376
+ });
1377
+ });
1378
+ },
1379
+ /**
1380
+ * get entities in a graph instance
1381
+ * @summary Get entities in a graph instance
1382
+ * @param {string} organizationId the Organization identifier
1383
+ * @param {string} datasetId the Dataset Identifier
1384
+ * @param {'node' | 'relationship'} type the entity model type
1385
+ * @param {Array<string>} ids the entities to get
1386
+ * @param {*} [options] Override http request option.
1387
+ * @throws {RequiredError}
1388
+ */
1389
+ getTwingraphEntities: function (organizationId, datasetId, type, ids, options) {
1390
+ if (options === void 0) { options = {}; }
1391
+ return __awaiter(_this, void 0, void 0, function () {
1392
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1393
+ return __generator(this, function (_a) {
1394
+ switch (_a.label) {
1395
+ case 0:
1396
+ // verify required parameter 'organizationId' is not null or undefined
1397
+ common_1.assertParamExists('getTwingraphEntities', 'organizationId', organizationId);
1398
+ // verify required parameter 'datasetId' is not null or undefined
1399
+ common_1.assertParamExists('getTwingraphEntities', 'datasetId', datasetId);
1400
+ // verify required parameter 'type' is not null or undefined
1401
+ common_1.assertParamExists('getTwingraphEntities', 'type', type);
1402
+ // verify required parameter 'ids' is not null or undefined
1403
+ common_1.assertParamExists('getTwingraphEntities', 'ids', ids);
1404
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}"
1405
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1406
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
1407
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
1408
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1409
+ if (configuration) {
1410
+ baseOptions = configuration.baseOptions;
1411
+ }
1412
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1413
+ localVarHeaderParameter = {};
1414
+ localVarQueryParameter = {};
1415
+ // authentication oAuth2AuthCode required
1416
+ // oauth required
1417
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1418
+ case 1:
1419
+ // authentication oAuth2AuthCode required
1420
+ // oauth required
1421
+ _a.sent();
1422
+ if (ids) {
1423
+ localVarQueryParameter['ids'] = ids;
1424
+ }
1425
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1426
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1427
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1428
+ return [2 /*return*/, {
1429
+ url: common_1.toPathString(localVarUrlObj),
1430
+ options: localVarRequestOptions,
1431
+ }];
1432
+ }
1433
+ });
1434
+ });
1435
+ },
1436
+ /**
1437
+ * Refresh ADT, Storage dataset
1438
+ * @summary Refresh dataset
1439
+ * @param {string} organizationId the Organization identifier
1440
+ * @param {string} datasetId the Dataset identifier
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ refreshDataset: function (organizationId, datasetId, options) {
1445
+ if (options === void 0) { options = {}; }
1446
+ return __awaiter(_this, void 0, void 0, function () {
1447
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1448
+ return __generator(this, function (_a) {
1449
+ switch (_a.label) {
1450
+ case 0:
1451
+ // verify required parameter 'organizationId' is not null or undefined
1452
+ common_1.assertParamExists('refreshDataset', 'organizationId', organizationId);
1453
+ // verify required parameter 'datasetId' is not null or undefined
1454
+ common_1.assertParamExists('refreshDataset', 'datasetId', datasetId);
1455
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/refresh"
1456
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1457
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1458
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1459
+ if (configuration) {
1460
+ baseOptions = configuration.baseOptions;
1461
+ }
1462
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1463
+ localVarHeaderParameter = {};
1464
+ localVarQueryParameter = {};
1465
+ // authentication oAuth2AuthCode required
1466
+ // oauth required
1467
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1468
+ case 1:
1469
+ // authentication oAuth2AuthCode required
1470
+ // oauth required
1471
+ _a.sent();
1472
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1473
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1474
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1475
+ return [2 /*return*/, {
1476
+ url: common_1.toPathString(localVarUrlObj),
1477
+ options: localVarRequestOptions,
1478
+ }];
1479
+ }
1480
+ });
1481
+ });
1482
+ },
1483
+ /**
1484
+ *
1485
+ * @summary Remove all Dataset Compatibility elements from the Dataset specified
1486
+ * @param {string} organizationId the Organization identifier
1487
+ * @param {string} datasetId the Dataset identifier
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ */
1491
+ removeAllDatasetCompatibilityElements: function (organizationId, datasetId, options) {
1492
+ if (options === void 0) { options = {}; }
1493
+ return __awaiter(_this, void 0, void 0, function () {
1494
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1495
+ return __generator(this, function (_a) {
1496
+ switch (_a.label) {
1497
+ case 0:
1498
+ // verify required parameter 'organizationId' is not null or undefined
1499
+ common_1.assertParamExists('removeAllDatasetCompatibilityElements', 'organizationId', organizationId);
1500
+ // verify required parameter 'datasetId' is not null or undefined
1501
+ common_1.assertParamExists('removeAllDatasetCompatibilityElements', 'datasetId', datasetId);
1502
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/compatibility"
1503
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1504
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1505
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1506
+ if (configuration) {
1507
+ baseOptions = configuration.baseOptions;
1508
+ }
1509
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1510
+ localVarHeaderParameter = {};
1511
+ localVarQueryParameter = {};
1512
+ // authentication oAuth2AuthCode required
1513
+ // oauth required
1514
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1515
+ case 1:
1516
+ // authentication oAuth2AuthCode required
1517
+ // oauth required
1518
+ _a.sent();
1519
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1520
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1521
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1522
+ return [2 /*return*/, {
1523
+ url: common_1.toPathString(localVarUrlObj),
1524
+ options: localVarRequestOptions,
1525
+ }];
1526
+ }
1527
+ });
1528
+ });
1529
+ },
1530
+ /**
1531
+ *
1532
+ * @summary Remove the specified access from the given Dataset
1533
+ * @param {string} organizationId the Organization identifier
1534
+ * @param {string} datasetId the Dataset identifier
1535
+ * @param {string} identityId the User identifier
1536
+ * @param {*} [options] Override http request option.
1537
+ * @throws {RequiredError}
1538
+ */
1539
+ removeDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
1540
+ if (options === void 0) { options = {}; }
1541
+ return __awaiter(_this, void 0, void 0, function () {
1542
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1543
+ return __generator(this, function (_a) {
1544
+ switch (_a.label) {
1545
+ case 0:
1546
+ // verify required parameter 'organizationId' is not null or undefined
1547
+ common_1.assertParamExists('removeDatasetAccessControl', 'organizationId', organizationId);
1548
+ // verify required parameter 'datasetId' is not null or undefined
1549
+ common_1.assertParamExists('removeDatasetAccessControl', 'datasetId', datasetId);
1550
+ // verify required parameter 'identityId' is not null or undefined
1551
+ common_1.assertParamExists('removeDatasetAccessControl', 'identityId', identityId);
1552
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}"
1553
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1554
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
1555
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
1556
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1557
+ if (configuration) {
1558
+ baseOptions = configuration.baseOptions;
1559
+ }
1560
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1561
+ localVarHeaderParameter = {};
1562
+ localVarQueryParameter = {};
1563
+ // authentication oAuth2AuthCode required
1564
+ // oauth required
1565
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1566
+ case 1:
1567
+ // authentication oAuth2AuthCode required
1568
+ // oauth required
1569
+ _a.sent();
1570
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1571
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1572
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1573
+ return [2 /*return*/, {
1574
+ url: common_1.toPathString(localVarUrlObj),
1575
+ options: localVarRequestOptions,
1576
+ }];
1577
+ }
1578
+ });
1579
+ });
1580
+ },
1581
+ /**
1582
+ *
1583
+ * @summary Search Datasets
1584
+ * @param {string} organizationId the Organization identifier
1585
+ * @param {DatasetSearch} datasetSearch the Dataset search parameters
1586
+ * @param {number} [page] page number to query
1587
+ * @param {number} [size] amount of result by page
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ */
1591
+ searchDatasets: function (organizationId, datasetSearch, page, size, options) {
1592
+ if (options === void 0) { options = {}; }
1593
+ return __awaiter(_this, void 0, void 0, function () {
1594
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1595
+ return __generator(this, function (_a) {
1596
+ switch (_a.label) {
1597
+ case 0:
1598
+ // verify required parameter 'organizationId' is not null or undefined
1599
+ common_1.assertParamExists('searchDatasets', 'organizationId', organizationId);
1600
+ // verify required parameter 'datasetSearch' is not null or undefined
1601
+ common_1.assertParamExists('searchDatasets', 'datasetSearch', datasetSearch);
1602
+ localVarPath = "/organizations/{organization_id}/datasets/search"
1603
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1604
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1605
+ if (configuration) {
1606
+ baseOptions = configuration.baseOptions;
1607
+ }
1608
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1609
+ localVarHeaderParameter = {};
1610
+ localVarQueryParameter = {};
1611
+ // authentication oAuth2AuthCode required
1612
+ // oauth required
1613
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1614
+ case 1:
1615
+ // authentication oAuth2AuthCode required
1616
+ // oauth required
1617
+ _a.sent();
1618
+ if (page !== undefined) {
1619
+ localVarQueryParameter['page'] = page;
1620
+ }
1621
+ if (size !== undefined) {
1622
+ localVarQueryParameter['size'] = size;
1623
+ }
1624
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1625
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1626
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1627
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1628
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(datasetSearch, localVarRequestOptions, configuration);
1629
+ return [2 /*return*/, {
1630
+ url: common_1.toPathString(localVarUrlObj),
1631
+ options: localVarRequestOptions,
1632
+ }];
1633
+ }
1634
+ });
1635
+ });
1636
+ },
1637
+ /**
1638
+ * Run a query on a graph instance and return the result as a zip file in async mode
1639
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
1640
+ * @param {string} organizationId the Organization identifier
1641
+ * @param {string} datasetId the Graph Identifier
1642
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
1643
+ * @param {*} [options] Override http request option.
1644
+ * @throws {RequiredError}
1645
+ */
1646
+ twingraphBatchQuery: function (organizationId, datasetId, datasetTwinGraphQuery, options) {
1647
+ if (options === void 0) { options = {}; }
1648
+ return __awaiter(_this, void 0, void 0, function () {
1649
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1650
+ return __generator(this, function (_a) {
1651
+ switch (_a.label) {
1652
+ case 0:
1653
+ // verify required parameter 'organizationId' is not null or undefined
1654
+ common_1.assertParamExists('twingraphBatchQuery', 'organizationId', organizationId);
1655
+ // verify required parameter 'datasetId' is not null or undefined
1656
+ common_1.assertParamExists('twingraphBatchQuery', 'datasetId', datasetId);
1657
+ // verify required parameter 'datasetTwinGraphQuery' is not null or undefined
1658
+ common_1.assertParamExists('twingraphBatchQuery', 'datasetTwinGraphQuery', datasetTwinGraphQuery);
1659
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/batch-query"
1660
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1661
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1662
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1663
+ if (configuration) {
1664
+ baseOptions = configuration.baseOptions;
1665
+ }
1666
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1667
+ localVarHeaderParameter = {};
1668
+ localVarQueryParameter = {};
1669
+ // authentication oAuth2AuthCode required
1670
+ // oauth required
1671
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1672
+ case 1:
1673
+ // authentication oAuth2AuthCode required
1674
+ // oauth required
1675
+ _a.sent();
1676
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1677
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1678
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1679
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1680
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(datasetTwinGraphQuery, localVarRequestOptions, configuration);
1681
+ return [2 /*return*/, {
1682
+ url: common_1.toPathString(localVarUrlObj),
1683
+ options: localVarRequestOptions,
1684
+ }];
1685
+ }
1686
+ });
1687
+ });
1688
+ },
1689
+ /**
1690
+ * Async batch update by loading a CSV file on a graph instance
1691
+ * @summary Async batch update by loading a CSV file on a graph instance
1692
+ * @param {string} organizationId the Organization identifier
1693
+ * @param {string} datasetId the Dataset Identifier
1694
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
1695
+ * @param {any} body
1696
+ * @param {*} [options] Override http request option.
1697
+ * @throws {RequiredError}
1698
+ */
1699
+ twingraphBatchUpdate: function (organizationId, datasetId, twinGraphQuery, body, options) {
1700
+ if (options === void 0) { options = {}; }
1701
+ return __awaiter(_this, void 0, void 0, function () {
1702
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1703
+ return __generator(this, function (_a) {
1704
+ switch (_a.label) {
1705
+ case 0:
1706
+ // verify required parameter 'organizationId' is not null or undefined
1707
+ common_1.assertParamExists('twingraphBatchUpdate', 'organizationId', organizationId);
1708
+ // verify required parameter 'datasetId' is not null or undefined
1709
+ common_1.assertParamExists('twingraphBatchUpdate', 'datasetId', datasetId);
1710
+ // verify required parameter 'twinGraphQuery' is not null or undefined
1711
+ common_1.assertParamExists('twingraphBatchUpdate', 'twinGraphQuery', twinGraphQuery);
1712
+ // verify required parameter 'body' is not null or undefined
1713
+ common_1.assertParamExists('twingraphBatchUpdate', 'body', body);
1714
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/batch"
1715
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1716
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1717
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1718
+ if (configuration) {
1719
+ baseOptions = configuration.baseOptions;
1720
+ }
1721
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1722
+ localVarHeaderParameter = {};
1723
+ localVarQueryParameter = {};
1724
+ // authentication oAuth2AuthCode required
1725
+ // oauth required
1726
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1727
+ case 1:
1728
+ // authentication oAuth2AuthCode required
1729
+ // oauth required
1730
+ _a.sent();
1731
+ if (twinGraphQuery !== undefined) {
1732
+ localVarQueryParameter['twinGraphQuery'] = twinGraphQuery;
1733
+ }
1734
+ localVarHeaderParameter['Content-Type'] = 'text/csv';
1735
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1736
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1737
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1738
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1739
+ return [2 /*return*/, {
1740
+ url: common_1.toPathString(localVarUrlObj),
1741
+ options: localVarRequestOptions,
1742
+ }];
1743
+ }
1744
+ });
1745
+ });
1746
+ },
1747
+ /**
1748
+ * Run a query on a graph instance and return the result as a json
1749
+ * @summary Run a query on a graph instance and return the result as a json
1750
+ * @param {string} organizationId the Organization identifier
1751
+ * @param {string} datasetId the Dataset identifier
1752
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
1753
+ * @param {*} [options] Override http request option.
1754
+ * @throws {RequiredError}
1755
+ */
1756
+ twingraphQuery: function (organizationId, datasetId, datasetTwinGraphQuery, options) {
1757
+ if (options === void 0) { options = {}; }
1758
+ return __awaiter(_this, void 0, void 0, function () {
1759
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1760
+ return __generator(this, function (_a) {
1761
+ switch (_a.label) {
1762
+ case 0:
1763
+ // verify required parameter 'organizationId' is not null or undefined
1764
+ common_1.assertParamExists('twingraphQuery', 'organizationId', organizationId);
1765
+ // verify required parameter 'datasetId' is not null or undefined
1766
+ common_1.assertParamExists('twingraphQuery', 'datasetId', datasetId);
1767
+ // verify required parameter 'datasetTwinGraphQuery' is not null or undefined
1768
+ common_1.assertParamExists('twingraphQuery', 'datasetTwinGraphQuery', datasetTwinGraphQuery);
1769
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/twingraph"
1770
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1771
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1772
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1773
+ if (configuration) {
1774
+ baseOptions = configuration.baseOptions;
1775
+ }
1776
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1777
+ localVarHeaderParameter = {};
1778
+ localVarQueryParameter = {};
1779
+ // authentication oAuth2AuthCode required
1780
+ // oauth required
1781
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1782
+ case 1:
1783
+ // authentication oAuth2AuthCode required
1784
+ // oauth required
1785
+ _a.sent();
1786
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1787
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1788
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1789
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1790
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(datasetTwinGraphQuery, localVarRequestOptions, configuration);
1791
+ return [2 /*return*/, {
1792
+ url: common_1.toPathString(localVarUrlObj),
1793
+ options: localVarRequestOptions,
1794
+ }];
1795
+ }
1796
+ });
1797
+ });
1798
+ },
1799
+ /**
1800
+ *
1801
+ * @summary Update a dataset
1802
+ * @param {string} organizationId the Organization identifier
1803
+ * @param {string} datasetId the Dataset identifier
1804
+ * @param {Dataset} dataset the new Dataset details.
1805
+ * @param {*} [options] Override http request option.
1806
+ * @throws {RequiredError}
1807
+ */
1808
+ updateDataset: function (organizationId, datasetId, dataset, options) {
1809
+ if (options === void 0) { options = {}; }
1810
+ return __awaiter(_this, void 0, void 0, function () {
1811
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1812
+ return __generator(this, function (_a) {
1813
+ switch (_a.label) {
1814
+ case 0:
1815
+ // verify required parameter 'organizationId' is not null or undefined
1816
+ common_1.assertParamExists('updateDataset', 'organizationId', organizationId);
1817
+ // verify required parameter 'datasetId' is not null or undefined
1818
+ common_1.assertParamExists('updateDataset', 'datasetId', datasetId);
1819
+ // verify required parameter 'dataset' is not null or undefined
1820
+ common_1.assertParamExists('updateDataset', 'dataset', dataset);
1821
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}"
1822
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1823
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1824
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1825
+ if (configuration) {
1826
+ baseOptions = configuration.baseOptions;
1827
+ }
1828
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1829
+ localVarHeaderParameter = {};
1830
+ localVarQueryParameter = {};
1831
+ // authentication oAuth2AuthCode required
1832
+ // oauth required
1833
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1834
+ case 1:
1835
+ // authentication oAuth2AuthCode required
1836
+ // oauth required
1837
+ _a.sent();
1838
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1839
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1840
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1841
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1842
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(dataset, localVarRequestOptions, configuration);
1843
+ return [2 /*return*/, {
1844
+ url: common_1.toPathString(localVarUrlObj),
1845
+ options: localVarRequestOptions,
1846
+ }];
1847
+ }
1848
+ });
1849
+ });
1850
+ },
1851
+ /**
1852
+ *
1853
+ * @summary Update the specified access to User for a Dataset
1854
+ * @param {string} organizationId the Organization identifier
1855
+ * @param {string} datasetId the Dataset identifier
1856
+ * @param {string} identityId the User identifier
1857
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ updateDatasetAccessControl: function (organizationId, datasetId, identityId, datasetRole, options) {
1862
+ if (options === void 0) { options = {}; }
1863
+ return __awaiter(_this, void 0, void 0, function () {
1864
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1865
+ return __generator(this, function (_a) {
1866
+ switch (_a.label) {
1867
+ case 0:
1868
+ // verify required parameter 'organizationId' is not null or undefined
1869
+ common_1.assertParamExists('updateDatasetAccessControl', 'organizationId', organizationId);
1870
+ // verify required parameter 'datasetId' is not null or undefined
1871
+ common_1.assertParamExists('updateDatasetAccessControl', 'datasetId', datasetId);
1872
+ // verify required parameter 'identityId' is not null or undefined
1873
+ common_1.assertParamExists('updateDatasetAccessControl', 'identityId', identityId);
1874
+ // verify required parameter 'datasetRole' is not null or undefined
1875
+ common_1.assertParamExists('updateDatasetAccessControl', 'datasetRole', datasetRole);
1876
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id}"
1877
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1878
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
1879
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
1880
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1881
+ if (configuration) {
1882
+ baseOptions = configuration.baseOptions;
1883
+ }
1884
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1885
+ localVarHeaderParameter = {};
1886
+ localVarQueryParameter = {};
1887
+ // authentication oAuth2AuthCode required
1888
+ // oauth required
1889
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1890
+ case 1:
1891
+ // authentication oAuth2AuthCode required
1892
+ // oauth required
1893
+ _a.sent();
1894
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1895
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1896
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1897
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1898
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(datasetRole, localVarRequestOptions, configuration);
1899
+ return [2 /*return*/, {
1900
+ url: common_1.toPathString(localVarUrlObj),
1901
+ options: localVarRequestOptions,
1902
+ }];
1903
+ }
1904
+ });
1905
+ });
1906
+ },
1907
+ /**
1908
+ * update entities in a graph instance
1909
+ * @summary Update entities in a graph instance
1910
+ * @param {string} organizationId the Organization identifier
1911
+ * @param {string} datasetId the Dataset Identifier
1912
+ * @param {'node' | 'relationship'} type the entity model type
1913
+ * @param {Array<GraphProperties>} graphProperties the entities to update
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ updateTwingraphEntities: function (organizationId, datasetId, type, graphProperties, options) {
1918
+ if (options === void 0) { options = {}; }
1919
+ return __awaiter(_this, void 0, void 0, function () {
1920
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1921
+ return __generator(this, function (_a) {
1922
+ switch (_a.label) {
1923
+ case 0:
1924
+ // verify required parameter 'organizationId' is not null or undefined
1925
+ common_1.assertParamExists('updateTwingraphEntities', 'organizationId', organizationId);
1926
+ // verify required parameter 'datasetId' is not null or undefined
1927
+ common_1.assertParamExists('updateTwingraphEntities', 'datasetId', datasetId);
1928
+ // verify required parameter 'type' is not null or undefined
1929
+ common_1.assertParamExists('updateTwingraphEntities', 'type', type);
1930
+ // verify required parameter 'graphProperties' is not null or undefined
1931
+ common_1.assertParamExists('updateTwingraphEntities', 'graphProperties', graphProperties);
1932
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type}"
1933
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1934
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)))
1935
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
1936
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1937
+ if (configuration) {
1938
+ baseOptions = configuration.baseOptions;
1939
+ }
1940
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1941
+ localVarHeaderParameter = {};
1942
+ localVarQueryParameter = {};
1943
+ // authentication oAuth2AuthCode required
1944
+ // oauth required
1945
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1946
+ case 1:
1947
+ // authentication oAuth2AuthCode required
1948
+ // oauth required
1949
+ _a.sent();
1950
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1951
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1952
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1953
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1954
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration);
1955
+ return [2 /*return*/, {
1956
+ url: common_1.toPathString(localVarUrlObj),
1957
+ options: localVarRequestOptions,
1958
+ }];
1959
+ }
1960
+ });
1961
+ });
1962
+ },
1963
+ /**
1964
+ * Upload Twingraph ZIP
1965
+ * @summary Upload Twingraph with ZIP File
1966
+ * @param {string} organizationId the Organization identifier
1967
+ * @param {string} datasetId the Dataset identifier
1968
+ * @param {any} body
1969
+ * @param {*} [options] Override http request option.
1970
+ * @throws {RequiredError}
1971
+ */
1972
+ uploadTwingraph: function (organizationId, datasetId, body, options) {
1973
+ if (options === void 0) { options = {}; }
1974
+ return __awaiter(_this, void 0, void 0, function () {
1975
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1976
+ return __generator(this, function (_a) {
1977
+ switch (_a.label) {
1978
+ case 0:
1979
+ // verify required parameter 'organizationId' is not null or undefined
1980
+ common_1.assertParamExists('uploadTwingraph', 'organizationId', organizationId);
1981
+ // verify required parameter 'datasetId' is not null or undefined
1982
+ common_1.assertParamExists('uploadTwingraph', 'datasetId', datasetId);
1983
+ // verify required parameter 'body' is not null or undefined
1984
+ common_1.assertParamExists('uploadTwingraph', 'body', body);
1985
+ localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}"
1986
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1987
+ .replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
1988
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1989
+ if (configuration) {
1990
+ baseOptions = configuration.baseOptions;
1991
+ }
1992
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1993
+ localVarHeaderParameter = {};
1994
+ localVarQueryParameter = {};
1995
+ // authentication oAuth2AuthCode required
1996
+ // oauth required
1997
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1998
+ case 1:
1999
+ // authentication oAuth2AuthCode required
2000
+ // oauth required
2001
+ _a.sent();
2002
+ localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
2003
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2004
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2005
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2006
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
2007
+ return [2 /*return*/, {
2008
+ url: common_1.toPathString(localVarUrlObj),
2009
+ options: localVarRequestOptions,
2010
+ }];
2011
+ }
2012
+ });
2013
+ });
2014
+ },
2015
+ };
2016
+ };
2017
+ /**
2018
+ * DatasetApi - functional programming interface
2019
+ * @export
2020
+ */
2021
+ exports.DatasetApiFp = function (configuration) {
2022
+ var localVarAxiosParamCreator = exports.DatasetApiAxiosParamCreator(configuration);
2023
+ return {
2024
+ /**
2025
+ *
2026
+ * @summary Add a control access to the Dataset
2027
+ * @param {string} organizationId the Organization identifier
2028
+ * @param {string} datasetId the Dataset identifier
2029
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
2030
+ * @param {*} [options] Override http request option.
2031
+ * @throws {RequiredError}
2032
+ */
2033
+ addDatasetAccessControl: function (organizationId, datasetId, datasetAccessControl, options) {
2034
+ return __awaiter(this, void 0, void 0, function () {
2035
+ var localVarAxiosArgs;
2036
+ return __generator(this, function (_a) {
2037
+ switch (_a.label) {
2038
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options)];
2039
+ case 1:
2040
+ localVarAxiosArgs = _a.sent();
2041
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2042
+ }
2043
+ });
2044
+ });
2045
+ },
2046
+ /**
2047
+ *
2048
+ * @summary Add Dataset Compatibility elements.
2049
+ * @param {string} organizationId the Organization identifier
2050
+ * @param {string} datasetId the Dataset identifier
2051
+ * @param {Array<DatasetCompatibility>} datasetCompatibility the Dataset Compatibility elements
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ */
2055
+ addOrReplaceDatasetCompatibilityElements: function (organizationId, datasetId, datasetCompatibility, options) {
2056
+ return __awaiter(this, void 0, void 0, function () {
2057
+ var localVarAxiosArgs;
2058
+ return __generator(this, function (_a) {
2059
+ switch (_a.label) {
2060
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options)];
2061
+ case 1:
2062
+ localVarAxiosArgs = _a.sent();
2063
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2064
+ }
2065
+ });
2066
+ });
2067
+ },
2068
+ /**
2069
+ *
2070
+ * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
2071
+ * @param {string} organizationId the Organization identifier
2072
+ * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
2073
+ * @param {*} [options] Override http request option.
2074
+ * @throws {RequiredError}
2075
+ */
2076
+ copyDataset: function (organizationId, datasetCopyParameters, options) {
2077
+ return __awaiter(this, void 0, void 0, function () {
2078
+ var localVarAxiosArgs;
2079
+ return __generator(this, function (_a) {
2080
+ switch (_a.label) {
2081
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.copyDataset(organizationId, datasetCopyParameters, options)];
2082
+ case 1:
2083
+ localVarAxiosArgs = _a.sent();
2084
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2085
+ }
2086
+ });
2087
+ });
2088
+ },
2089
+ /**
1200
2090
  *
1201
2091
  * @summary Create a new Dataset
1202
2092
  * @param {string} organizationId the Organization identifier
1203
- * @param {Dataset} dataset the Dataset to create
2093
+ * @param {Dataset} dataset the Dataset to create
2094
+ * @param {*} [options] Override http request option.
2095
+ * @throws {RequiredError}
2096
+ */
2097
+ createDataset: function (organizationId, dataset, options) {
2098
+ return __awaiter(this, void 0, void 0, function () {
2099
+ var localVarAxiosArgs;
2100
+ return __generator(this, function (_a) {
2101
+ switch (_a.label) {
2102
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDataset(organizationId, dataset, options)];
2103
+ case 1:
2104
+ localVarAxiosArgs = _a.sent();
2105
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2106
+ }
2107
+ });
2108
+ });
2109
+ },
2110
+ /**
2111
+ * Run a query on a dataset
2112
+ * @summary Run a query on a dataset
2113
+ * @param {string} organizationId the Organization identifier
2114
+ * @param {string} datasetId the Dataset identifier
2115
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ */
2119
+ createSubDataset: function (organizationId, datasetId, subDatasetGraphQuery, options) {
2120
+ return __awaiter(this, void 0, void 0, function () {
2121
+ var localVarAxiosArgs;
2122
+ return __generator(this, function (_a) {
2123
+ switch (_a.label) {
2124
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options)];
2125
+ case 1:
2126
+ localVarAxiosArgs = _a.sent();
2127
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2128
+ }
2129
+ });
2130
+ });
2131
+ },
2132
+ /**
2133
+ * create new entities in a graph instance
2134
+ * @summary Create new entities in a graph instance
2135
+ * @param {string} organizationId the Organization identifier
2136
+ * @param {string} datasetId the Dataset Identifier
2137
+ * @param {'node' | 'relationship'} type the entity model type
2138
+ * @param {Array<GraphProperties>} graphProperties the entities to create
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ createTwingraphEntities: function (organizationId, datasetId, type, graphProperties, options) {
2143
+ return __awaiter(this, void 0, void 0, function () {
2144
+ var localVarAxiosArgs;
2145
+ return __generator(this, function (_a) {
2146
+ switch (_a.label) {
2147
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTwingraphEntities(organizationId, datasetId, type, graphProperties, options)];
2148
+ case 1:
2149
+ localVarAxiosArgs = _a.sent();
2150
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2151
+ }
2152
+ });
2153
+ });
2154
+ },
2155
+ /**
2156
+ *
2157
+ * @summary Delete a dataset
2158
+ * @param {string} organizationId the Organization identifier
2159
+ * @param {string} datasetId the Dataset identifier
2160
+ * @param {*} [options] Override http request option.
2161
+ * @throws {RequiredError}
2162
+ */
2163
+ deleteDataset: function (organizationId, datasetId, options) {
2164
+ return __awaiter(this, void 0, void 0, function () {
2165
+ var localVarAxiosArgs;
2166
+ return __generator(this, function (_a) {
2167
+ switch (_a.label) {
2168
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDataset(organizationId, datasetId, options)];
2169
+ case 1:
2170
+ localVarAxiosArgs = _a.sent();
2171
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2172
+ }
2173
+ });
2174
+ });
2175
+ },
2176
+ /**
2177
+ * delete entities in a graph instance
2178
+ * @summary Delete entities in a graph instance
2179
+ * @param {string} organizationId the Organization identifier
2180
+ * @param {string} datasetId the Dataset Identifier
2181
+ * @param {'node' | 'relationship'} type the entity model type
2182
+ * @param {Array<string>} ids the entities to delete
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ deleteTwingraphEntities: function (organizationId, datasetId, type, ids, options) {
2187
+ return __awaiter(this, void 0, void 0, function () {
2188
+ var localVarAxiosArgs;
2189
+ return __generator(this, function (_a) {
2190
+ switch (_a.label) {
2191
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteTwingraphEntities(organizationId, datasetId, type, ids, options)];
2192
+ case 1:
2193
+ localVarAxiosArgs = _a.sent();
2194
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2195
+ }
2196
+ });
2197
+ });
2198
+ },
2199
+ /**
2200
+ * Download a graph compressed in a zip file
2201
+ * @summary Download a graph compressed in a zip file
2202
+ * @param {string} organizationId the Organization identifier
2203
+ * @param {string} hash the Graph download identifier
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ */
2207
+ downloadTwingraph: function (organizationId, hash, options) {
2208
+ return __awaiter(this, void 0, void 0, function () {
2209
+ var localVarAxiosArgs;
2210
+ return __generator(this, function (_a) {
2211
+ switch (_a.label) {
2212
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadTwingraph(organizationId, hash, options)];
2213
+ case 1:
2214
+ localVarAxiosArgs = _a.sent();
2215
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2216
+ }
2217
+ });
2218
+ });
2219
+ },
2220
+ /**
2221
+ *
2222
+ * @summary List all Datasets
2223
+ * @param {string} organizationId the Organization identifier
2224
+ * @param {number} [page] page number to query
2225
+ * @param {number} [size] amount of result by page
2226
+ * @param {*} [options] Override http request option.
2227
+ * @throws {RequiredError}
2228
+ */
2229
+ findAllDatasets: function (organizationId, page, size, options) {
2230
+ return __awaiter(this, void 0, void 0, function () {
2231
+ var localVarAxiosArgs;
2232
+ return __generator(this, function (_a) {
2233
+ switch (_a.label) {
2234
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllDatasets(organizationId, page, size, options)];
2235
+ case 1:
2236
+ localVarAxiosArgs = _a.sent();
2237
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2238
+ }
2239
+ });
2240
+ });
2241
+ },
2242
+ /**
2243
+ *
2244
+ * @summary Get the details of a Dataset
2245
+ * @param {string} organizationId the Organization identifier
2246
+ * @param {string} datasetId the Dataset identifier
2247
+ * @param {*} [options] Override http request option.
2248
+ * @throws {RequiredError}
2249
+ */
2250
+ findDatasetById: function (organizationId, datasetId, options) {
2251
+ return __awaiter(this, void 0, void 0, function () {
2252
+ var localVarAxiosArgs;
2253
+ return __generator(this, function (_a) {
2254
+ switch (_a.label) {
2255
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findDatasetById(organizationId, datasetId, options)];
2256
+ case 1:
2257
+ localVarAxiosArgs = _a.sent();
2258
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2259
+ }
2260
+ });
2261
+ });
2262
+ },
2263
+ /**
2264
+ *
2265
+ * @summary Get a control access for the Dataset
2266
+ * @param {string} organizationId the Organization identifier
2267
+ * @param {string} datasetId the Dataset identifier
2268
+ * @param {string} identityId the User identifier
2269
+ * @param {*} [options] Override http request option.
2270
+ * @throws {RequiredError}
2271
+ */
2272
+ getDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
2273
+ return __awaiter(this, void 0, void 0, function () {
2274
+ var localVarAxiosArgs;
2275
+ return __generator(this, function (_a) {
2276
+ switch (_a.label) {
2277
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDatasetAccessControl(organizationId, datasetId, identityId, options)];
2278
+ case 1:
2279
+ localVarAxiosArgs = _a.sent();
2280
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2281
+ }
2282
+ });
2283
+ });
2284
+ },
2285
+ /**
2286
+ *
2287
+ * @summary Get the Dataset security users list
2288
+ * @param {string} organizationId the Organization identifier
2289
+ * @param {string} datasetId the Dataset identifier
2290
+ * @param {*} [options] Override http request option.
2291
+ * @throws {RequiredError}
2292
+ */
2293
+ getDatasetSecurityUsers: function (organizationId, datasetId, options) {
2294
+ return __awaiter(this, void 0, void 0, function () {
2295
+ var localVarAxiosArgs;
2296
+ return __generator(this, function (_a) {
2297
+ switch (_a.label) {
2298
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDatasetSecurityUsers(organizationId, datasetId, options)];
2299
+ case 1:
2300
+ localVarAxiosArgs = _a.sent();
2301
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2302
+ }
2303
+ });
2304
+ });
2305
+ },
2306
+ /**
2307
+ * Get the status of a twingraph import
2308
+ * @summary Get the status of twingraph import
2309
+ * @param {string} organizationId the Organization identifier
2310
+ * @param {string} datasetId the dataset identifier
2311
+ * @param {string} jobId the job identifier
2312
+ * @param {*} [options] Override http request option.
2313
+ * @throws {RequiredError}
2314
+ */
2315
+ getDatasetTwingraphStatus: function (organizationId, datasetId, jobId, options) {
2316
+ return __awaiter(this, void 0, void 0, function () {
2317
+ var localVarAxiosArgs;
2318
+ return __generator(this, function (_a) {
2319
+ switch (_a.label) {
2320
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDatasetTwingraphStatus(organizationId, datasetId, jobId, options)];
2321
+ case 1:
2322
+ localVarAxiosArgs = _a.sent();
2323
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2324
+ }
2325
+ });
2326
+ });
2327
+ },
2328
+ /**
2329
+ * get entities in a graph instance
2330
+ * @summary Get entities in a graph instance
2331
+ * @param {string} organizationId the Organization identifier
2332
+ * @param {string} datasetId the Dataset Identifier
2333
+ * @param {'node' | 'relationship'} type the entity model type
2334
+ * @param {Array<string>} ids the entities to get
1204
2335
  * @param {*} [options] Override http request option.
1205
2336
  * @throws {RequiredError}
1206
2337
  */
1207
- createDataset: function (organizationId, dataset, options) {
2338
+ getTwingraphEntities: function (organizationId, datasetId, type, ids, options) {
1208
2339
  return __awaiter(this, void 0, void 0, function () {
1209
2340
  var localVarAxiosArgs;
1210
2341
  return __generator(this, function (_a) {
1211
2342
  switch (_a.label) {
1212
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDataset(organizationId, dataset, options)];
2343
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTwingraphEntities(organizationId, datasetId, type, ids, options)];
1213
2344
  case 1:
1214
2345
  localVarAxiosArgs = _a.sent();
1215
2346
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1218,19 +2349,19 @@ exports.DatasetApiFp = function (configuration) {
1218
2349
  });
1219
2350
  },
1220
2351
  /**
1221
- *
1222
- * @summary Delete a dataset
2352
+ * Refresh ADT, Storage dataset
2353
+ * @summary Refresh dataset
1223
2354
  * @param {string} organizationId the Organization identifier
1224
2355
  * @param {string} datasetId the Dataset identifier
1225
2356
  * @param {*} [options] Override http request option.
1226
2357
  * @throws {RequiredError}
1227
2358
  */
1228
- deleteDataset: function (organizationId, datasetId, options) {
2359
+ refreshDataset: function (organizationId, datasetId, options) {
1229
2360
  return __awaiter(this, void 0, void 0, function () {
1230
2361
  var localVarAxiosArgs;
1231
2362
  return __generator(this, function (_a) {
1232
2363
  switch (_a.label) {
1233
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDataset(organizationId, datasetId, options)];
2364
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.refreshDataset(organizationId, datasetId, options)];
1234
2365
  case 1:
1235
2366
  localVarAxiosArgs = _a.sent();
1236
2367
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1240,19 +2371,18 @@ exports.DatasetApiFp = function (configuration) {
1240
2371
  },
1241
2372
  /**
1242
2373
  *
1243
- * @summary List all Datasets
2374
+ * @summary Remove all Dataset Compatibility elements from the Dataset specified
1244
2375
  * @param {string} organizationId the Organization identifier
1245
- * @param {number} [page] page number to query
1246
- * @param {number} [size] amount of result by page
2376
+ * @param {string} datasetId the Dataset identifier
1247
2377
  * @param {*} [options] Override http request option.
1248
2378
  * @throws {RequiredError}
1249
2379
  */
1250
- findAllDatasets: function (organizationId, page, size, options) {
2380
+ removeAllDatasetCompatibilityElements: function (organizationId, datasetId, options) {
1251
2381
  return __awaiter(this, void 0, void 0, function () {
1252
2382
  var localVarAxiosArgs;
1253
2383
  return __generator(this, function (_a) {
1254
2384
  switch (_a.label) {
1255
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllDatasets(organizationId, page, size, options)];
2385
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllDatasetCompatibilityElements(organizationId, datasetId, options)];
1256
2386
  case 1:
1257
2387
  localVarAxiosArgs = _a.sent();
1258
2388
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1262,18 +2392,19 @@ exports.DatasetApiFp = function (configuration) {
1262
2392
  },
1263
2393
  /**
1264
2394
  *
1265
- * @summary Get the details of a Dataset
2395
+ * @summary Remove the specified access from the given Dataset
1266
2396
  * @param {string} organizationId the Organization identifier
1267
2397
  * @param {string} datasetId the Dataset identifier
2398
+ * @param {string} identityId the User identifier
1268
2399
  * @param {*} [options] Override http request option.
1269
2400
  * @throws {RequiredError}
1270
2401
  */
1271
- findDatasetById: function (organizationId, datasetId, options) {
2402
+ removeDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
1272
2403
  return __awaiter(this, void 0, void 0, function () {
1273
2404
  var localVarAxiosArgs;
1274
2405
  return __generator(this, function (_a) {
1275
2406
  switch (_a.label) {
1276
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findDatasetById(organizationId, datasetId, options)];
2407
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeDatasetAccessControl(organizationId, datasetId, identityId, options)];
1277
2408
  case 1:
1278
2409
  localVarAxiosArgs = _a.sent();
1279
2410
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1283,18 +2414,20 @@ exports.DatasetApiFp = function (configuration) {
1283
2414
  },
1284
2415
  /**
1285
2416
  *
1286
- * @summary Import a new Dataset
2417
+ * @summary Search Datasets
1287
2418
  * @param {string} organizationId the Organization identifier
1288
- * @param {Dataset} dataset the Dataset to import
2419
+ * @param {DatasetSearch} datasetSearch the Dataset search parameters
2420
+ * @param {number} [page] page number to query
2421
+ * @param {number} [size] amount of result by page
1289
2422
  * @param {*} [options] Override http request option.
1290
2423
  * @throws {RequiredError}
1291
2424
  */
1292
- importDataset: function (organizationId, dataset, options) {
2425
+ searchDatasets: function (organizationId, datasetSearch, page, size, options) {
1293
2426
  return __awaiter(this, void 0, void 0, function () {
1294
2427
  var localVarAxiosArgs;
1295
2428
  return __generator(this, function (_a) {
1296
2429
  switch (_a.label) {
1297
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importDataset(organizationId, dataset, options)];
2430
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, page, size, options)];
1298
2431
  case 1:
1299
2432
  localVarAxiosArgs = _a.sent();
1300
2433
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1303,19 +2436,20 @@ exports.DatasetApiFp = function (configuration) {
1303
2436
  });
1304
2437
  },
1305
2438
  /**
1306
- *
1307
- * @summary Remove all Dataset Compatibility elements from the Dataset specified
2439
+ * Run a query on a graph instance and return the result as a zip file in async mode
2440
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
1308
2441
  * @param {string} organizationId the Organization identifier
1309
- * @param {string} datasetId the Dataset identifier
2442
+ * @param {string} datasetId the Graph Identifier
2443
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
1310
2444
  * @param {*} [options] Override http request option.
1311
2445
  * @throws {RequiredError}
1312
2446
  */
1313
- removeAllDatasetCompatibilityElements: function (organizationId, datasetId, options) {
2447
+ twingraphBatchQuery: function (organizationId, datasetId, datasetTwinGraphQuery, options) {
1314
2448
  return __awaiter(this, void 0, void 0, function () {
1315
2449
  var localVarAxiosArgs;
1316
2450
  return __generator(this, function (_a) {
1317
2451
  switch (_a.label) {
1318
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllDatasetCompatibilityElements(organizationId, datasetId, options)];
2452
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options)];
1319
2453
  case 1:
1320
2454
  localVarAxiosArgs = _a.sent();
1321
2455
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1324,21 +2458,43 @@ exports.DatasetApiFp = function (configuration) {
1324
2458
  });
1325
2459
  },
1326
2460
  /**
1327
- *
1328
- * @summary Search Datasets
2461
+ * Async batch update by loading a CSV file on a graph instance
2462
+ * @summary Async batch update by loading a CSV file on a graph instance
1329
2463
  * @param {string} organizationId the Organization identifier
1330
- * @param {DatasetSearch} datasetSearch the Dataset search parameters
1331
- * @param {number} [page] page number to query
1332
- * @param {number} [size] amount of result by page
2464
+ * @param {string} datasetId the Dataset Identifier
2465
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
2466
+ * @param {any} body
1333
2467
  * @param {*} [options] Override http request option.
1334
2468
  * @throws {RequiredError}
1335
2469
  */
1336
- searchDatasets: function (organizationId, datasetSearch, page, size, options) {
2470
+ twingraphBatchUpdate: function (organizationId, datasetId, twinGraphQuery, body, options) {
1337
2471
  return __awaiter(this, void 0, void 0, function () {
1338
2472
  var localVarAxiosArgs;
1339
2473
  return __generator(this, function (_a) {
1340
2474
  switch (_a.label) {
1341
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, page, size, options)];
2475
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options)];
2476
+ case 1:
2477
+ localVarAxiosArgs = _a.sent();
2478
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2479
+ }
2480
+ });
2481
+ });
2482
+ },
2483
+ /**
2484
+ * Run a query on a graph instance and return the result as a json
2485
+ * @summary Run a query on a graph instance and return the result as a json
2486
+ * @param {string} organizationId the Organization identifier
2487
+ * @param {string} datasetId the Dataset identifier
2488
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
2489
+ * @param {*} [options] Override http request option.
2490
+ * @throws {RequiredError}
2491
+ */
2492
+ twingraphQuery: function (organizationId, datasetId, datasetTwinGraphQuery, options) {
2493
+ return __awaiter(this, void 0, void 0, function () {
2494
+ var localVarAxiosArgs;
2495
+ return __generator(this, function (_a) {
2496
+ switch (_a.label) {
2497
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options)];
1342
2498
  case 1:
1343
2499
  localVarAxiosArgs = _a.sent();
1344
2500
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1368,6 +2524,74 @@ exports.DatasetApiFp = function (configuration) {
1368
2524
  });
1369
2525
  });
1370
2526
  },
2527
+ /**
2528
+ *
2529
+ * @summary Update the specified access to User for a Dataset
2530
+ * @param {string} organizationId the Organization identifier
2531
+ * @param {string} datasetId the Dataset identifier
2532
+ * @param {string} identityId the User identifier
2533
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
2534
+ * @param {*} [options] Override http request option.
2535
+ * @throws {RequiredError}
2536
+ */
2537
+ updateDatasetAccessControl: function (organizationId, datasetId, identityId, datasetRole, options) {
2538
+ return __awaiter(this, void 0, void 0, function () {
2539
+ var localVarAxiosArgs;
2540
+ return __generator(this, function (_a) {
2541
+ switch (_a.label) {
2542
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options)];
2543
+ case 1:
2544
+ localVarAxiosArgs = _a.sent();
2545
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2546
+ }
2547
+ });
2548
+ });
2549
+ },
2550
+ /**
2551
+ * update entities in a graph instance
2552
+ * @summary Update entities in a graph instance
2553
+ * @param {string} organizationId the Organization identifier
2554
+ * @param {string} datasetId the Dataset Identifier
2555
+ * @param {'node' | 'relationship'} type the entity model type
2556
+ * @param {Array<GraphProperties>} graphProperties the entities to update
2557
+ * @param {*} [options] Override http request option.
2558
+ * @throws {RequiredError}
2559
+ */
2560
+ updateTwingraphEntities: function (organizationId, datasetId, type, graphProperties, options) {
2561
+ return __awaiter(this, void 0, void 0, function () {
2562
+ var localVarAxiosArgs;
2563
+ return __generator(this, function (_a) {
2564
+ switch (_a.label) {
2565
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options)];
2566
+ case 1:
2567
+ localVarAxiosArgs = _a.sent();
2568
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2569
+ }
2570
+ });
2571
+ });
2572
+ },
2573
+ /**
2574
+ * Upload Twingraph ZIP
2575
+ * @summary Upload Twingraph with ZIP File
2576
+ * @param {string} organizationId the Organization identifier
2577
+ * @param {string} datasetId the Dataset identifier
2578
+ * @param {any} body
2579
+ * @param {*} [options] Override http request option.
2580
+ * @throws {RequiredError}
2581
+ */
2582
+ uploadTwingraph: function (organizationId, datasetId, body, options) {
2583
+ return __awaiter(this, void 0, void 0, function () {
2584
+ var localVarAxiosArgs;
2585
+ return __generator(this, function (_a) {
2586
+ switch (_a.label) {
2587
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadTwingraph(organizationId, datasetId, body, options)];
2588
+ case 1:
2589
+ localVarAxiosArgs = _a.sent();
2590
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2591
+ }
2592
+ });
2593
+ });
2594
+ },
1371
2595
  };
1372
2596
  };
1373
2597
  /**
@@ -1378,119 +2602,315 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
1378
2602
  var localVarFp = exports.DatasetApiFp(configuration);
1379
2603
  return {
1380
2604
  /**
1381
- *
1382
- * @summary Add Dataset Compatibility elements.
2605
+ *
2606
+ * @summary Add a control access to the Dataset
2607
+ * @param {string} organizationId the Organization identifier
2608
+ * @param {string} datasetId the Dataset identifier
2609
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
2610
+ * @param {*} [options] Override http request option.
2611
+ * @throws {RequiredError}
2612
+ */
2613
+ addDatasetAccessControl: function (organizationId, datasetId, datasetAccessControl, options) {
2614
+ return localVarFp.addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options).then(function (request) { return request(axios, basePath); });
2615
+ },
2616
+ /**
2617
+ *
2618
+ * @summary Add Dataset Compatibility elements.
2619
+ * @param {string} organizationId the Organization identifier
2620
+ * @param {string} datasetId the Dataset identifier
2621
+ * @param {Array<DatasetCompatibility>} datasetCompatibility the Dataset Compatibility elements
2622
+ * @param {*} [options] Override http request option.
2623
+ * @throws {RequiredError}
2624
+ */
2625
+ addOrReplaceDatasetCompatibilityElements: function (organizationId, datasetId, datasetCompatibility, options) {
2626
+ return localVarFp.addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options).then(function (request) { return request(axios, basePath); });
2627
+ },
2628
+ /**
2629
+ *
2630
+ * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
2631
+ * @param {string} organizationId the Organization identifier
2632
+ * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
2633
+ * @param {*} [options] Override http request option.
2634
+ * @throws {RequiredError}
2635
+ */
2636
+ copyDataset: function (organizationId, datasetCopyParameters, options) {
2637
+ return localVarFp.copyDataset(organizationId, datasetCopyParameters, options).then(function (request) { return request(axios, basePath); });
2638
+ },
2639
+ /**
2640
+ *
2641
+ * @summary Create a new Dataset
2642
+ * @param {string} organizationId the Organization identifier
2643
+ * @param {Dataset} dataset the Dataset to create
2644
+ * @param {*} [options] Override http request option.
2645
+ * @throws {RequiredError}
2646
+ */
2647
+ createDataset: function (organizationId, dataset, options) {
2648
+ return localVarFp.createDataset(organizationId, dataset, options).then(function (request) { return request(axios, basePath); });
2649
+ },
2650
+ /**
2651
+ * Run a query on a dataset
2652
+ * @summary Run a query on a dataset
2653
+ * @param {string} organizationId the Organization identifier
2654
+ * @param {string} datasetId the Dataset identifier
2655
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
2656
+ * @param {*} [options] Override http request option.
2657
+ * @throws {RequiredError}
2658
+ */
2659
+ createSubDataset: function (organizationId, datasetId, subDatasetGraphQuery, options) {
2660
+ return localVarFp.createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options).then(function (request) { return request(axios, basePath); });
2661
+ },
2662
+ /**
2663
+ * create new entities in a graph instance
2664
+ * @summary Create new entities in a graph instance
2665
+ * @param {string} organizationId the Organization identifier
2666
+ * @param {string} datasetId the Dataset Identifier
2667
+ * @param {'node' | 'relationship'} type the entity model type
2668
+ * @param {Array<GraphProperties>} graphProperties the entities to create
2669
+ * @param {*} [options] Override http request option.
2670
+ * @throws {RequiredError}
2671
+ */
2672
+ createTwingraphEntities: function (organizationId, datasetId, type, graphProperties, options) {
2673
+ return localVarFp.createTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then(function (request) { return request(axios, basePath); });
2674
+ },
2675
+ /**
2676
+ *
2677
+ * @summary Delete a dataset
2678
+ * @param {string} organizationId the Organization identifier
2679
+ * @param {string} datasetId the Dataset identifier
2680
+ * @param {*} [options] Override http request option.
2681
+ * @throws {RequiredError}
2682
+ */
2683
+ deleteDataset: function (organizationId, datasetId, options) {
2684
+ return localVarFp.deleteDataset(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
2685
+ },
2686
+ /**
2687
+ * delete entities in a graph instance
2688
+ * @summary Delete entities in a graph instance
2689
+ * @param {string} organizationId the Organization identifier
2690
+ * @param {string} datasetId the Dataset Identifier
2691
+ * @param {'node' | 'relationship'} type the entity model type
2692
+ * @param {Array<string>} ids the entities to delete
2693
+ * @param {*} [options] Override http request option.
2694
+ * @throws {RequiredError}
2695
+ */
2696
+ deleteTwingraphEntities: function (organizationId, datasetId, type, ids, options) {
2697
+ return localVarFp.deleteTwingraphEntities(organizationId, datasetId, type, ids, options).then(function (request) { return request(axios, basePath); });
2698
+ },
2699
+ /**
2700
+ * Download a graph compressed in a zip file
2701
+ * @summary Download a graph compressed in a zip file
2702
+ * @param {string} organizationId the Organization identifier
2703
+ * @param {string} hash the Graph download identifier
2704
+ * @param {*} [options] Override http request option.
2705
+ * @throws {RequiredError}
2706
+ */
2707
+ downloadTwingraph: function (organizationId, hash, options) {
2708
+ return localVarFp.downloadTwingraph(organizationId, hash, options).then(function (request) { return request(axios, basePath); });
2709
+ },
2710
+ /**
2711
+ *
2712
+ * @summary List all Datasets
2713
+ * @param {string} organizationId the Organization identifier
2714
+ * @param {number} [page] page number to query
2715
+ * @param {number} [size] amount of result by page
2716
+ * @param {*} [options] Override http request option.
2717
+ * @throws {RequiredError}
2718
+ */
2719
+ findAllDatasets: function (organizationId, page, size, options) {
2720
+ return localVarFp.findAllDatasets(organizationId, page, size, options).then(function (request) { return request(axios, basePath); });
2721
+ },
2722
+ /**
2723
+ *
2724
+ * @summary Get the details of a Dataset
2725
+ * @param {string} organizationId the Organization identifier
2726
+ * @param {string} datasetId the Dataset identifier
2727
+ * @param {*} [options] Override http request option.
2728
+ * @throws {RequiredError}
2729
+ */
2730
+ findDatasetById: function (organizationId, datasetId, options) {
2731
+ return localVarFp.findDatasetById(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
2732
+ },
2733
+ /**
2734
+ *
2735
+ * @summary Get a control access for the Dataset
2736
+ * @param {string} organizationId the Organization identifier
2737
+ * @param {string} datasetId the Dataset identifier
2738
+ * @param {string} identityId the User identifier
2739
+ * @param {*} [options] Override http request option.
2740
+ * @throws {RequiredError}
2741
+ */
2742
+ getDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
2743
+ return localVarFp.getDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(axios, basePath); });
2744
+ },
2745
+ /**
2746
+ *
2747
+ * @summary Get the Dataset security users list
2748
+ * @param {string} organizationId the Organization identifier
2749
+ * @param {string} datasetId the Dataset identifier
2750
+ * @param {*} [options] Override http request option.
2751
+ * @throws {RequiredError}
2752
+ */
2753
+ getDatasetSecurityUsers: function (organizationId, datasetId, options) {
2754
+ return localVarFp.getDatasetSecurityUsers(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
2755
+ },
2756
+ /**
2757
+ * Get the status of a twingraph import
2758
+ * @summary Get the status of twingraph import
2759
+ * @param {string} organizationId the Organization identifier
2760
+ * @param {string} datasetId the dataset identifier
2761
+ * @param {string} jobId the job identifier
2762
+ * @param {*} [options] Override http request option.
2763
+ * @throws {RequiredError}
2764
+ */
2765
+ getDatasetTwingraphStatus: function (organizationId, datasetId, jobId, options) {
2766
+ return localVarFp.getDatasetTwingraphStatus(organizationId, datasetId, jobId, options).then(function (request) { return request(axios, basePath); });
2767
+ },
2768
+ /**
2769
+ * get entities in a graph instance
2770
+ * @summary Get entities in a graph instance
1383
2771
  * @param {string} organizationId the Organization identifier
1384
- * @param {string} datasetId the Dataset identifier
1385
- * @param {Array<DatasetCompatibility>} datasetCompatibility the Dataset Compatibility elements
2772
+ * @param {string} datasetId the Dataset Identifier
2773
+ * @param {'node' | 'relationship'} type the entity model type
2774
+ * @param {Array<string>} ids the entities to get
1386
2775
  * @param {*} [options] Override http request option.
1387
2776
  * @throws {RequiredError}
1388
2777
  */
1389
- addOrReplaceDatasetCompatibilityElements: function (organizationId, datasetId, datasetCompatibility, options) {
1390
- return localVarFp.addOrReplaceDatasetCompatibilityElements(organizationId, datasetId, datasetCompatibility, options).then(function (request) { return request(axios, basePath); });
2778
+ getTwingraphEntities: function (organizationId, datasetId, type, ids, options) {
2779
+ return localVarFp.getTwingraphEntities(organizationId, datasetId, type, ids, options).then(function (request) { return request(axios, basePath); });
1391
2780
  },
1392
2781
  /**
1393
- *
1394
- * @summary Copy a Dataset to another Dataset. Source must have a read capable connector and Target a write capable connector.
2782
+ * Refresh ADT, Storage dataset
2783
+ * @summary Refresh dataset
1395
2784
  * @param {string} organizationId the Organization identifier
1396
- * @param {DatasetCopyParameters} datasetCopyParameters the Dataset copy parameters
2785
+ * @param {string} datasetId the Dataset identifier
1397
2786
  * @param {*} [options] Override http request option.
1398
2787
  * @throws {RequiredError}
1399
2788
  */
1400
- copyDataset: function (organizationId, datasetCopyParameters, options) {
1401
- return localVarFp.copyDataset(organizationId, datasetCopyParameters, options).then(function (request) { return request(axios, basePath); });
2789
+ refreshDataset: function (organizationId, datasetId, options) {
2790
+ return localVarFp.refreshDataset(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
1402
2791
  },
1403
2792
  /**
1404
2793
  *
1405
- * @summary Create a new Dataset
2794
+ * @summary Remove all Dataset Compatibility elements from the Dataset specified
1406
2795
  * @param {string} organizationId the Organization identifier
1407
- * @param {Dataset} dataset the Dataset to create
2796
+ * @param {string} datasetId the Dataset identifier
1408
2797
  * @param {*} [options] Override http request option.
1409
2798
  * @throws {RequiredError}
1410
2799
  */
1411
- createDataset: function (organizationId, dataset, options) {
1412
- return localVarFp.createDataset(organizationId, dataset, options).then(function (request) { return request(axios, basePath); });
2800
+ removeAllDatasetCompatibilityElements: function (organizationId, datasetId, options) {
2801
+ return localVarFp.removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
1413
2802
  },
1414
2803
  /**
1415
2804
  *
1416
- * @summary Delete a dataset
2805
+ * @summary Remove the specified access from the given Dataset
1417
2806
  * @param {string} organizationId the Organization identifier
1418
2807
  * @param {string} datasetId the Dataset identifier
2808
+ * @param {string} identityId the User identifier
1419
2809
  * @param {*} [options] Override http request option.
1420
2810
  * @throws {RequiredError}
1421
2811
  */
1422
- deleteDataset: function (organizationId, datasetId, options) {
1423
- return localVarFp.deleteDataset(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
2812
+ removeDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
2813
+ return localVarFp.removeDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(axios, basePath); });
1424
2814
  },
1425
2815
  /**
1426
2816
  *
1427
- * @summary List all Datasets
2817
+ * @summary Search Datasets
1428
2818
  * @param {string} organizationId the Organization identifier
2819
+ * @param {DatasetSearch} datasetSearch the Dataset search parameters
1429
2820
  * @param {number} [page] page number to query
1430
2821
  * @param {number} [size] amount of result by page
1431
2822
  * @param {*} [options] Override http request option.
1432
2823
  * @throws {RequiredError}
1433
2824
  */
1434
- findAllDatasets: function (organizationId, page, size, options) {
1435
- return localVarFp.findAllDatasets(organizationId, page, size, options).then(function (request) { return request(axios, basePath); });
2825
+ searchDatasets: function (organizationId, datasetSearch, page, size, options) {
2826
+ return localVarFp.searchDatasets(organizationId, datasetSearch, page, size, options).then(function (request) { return request(axios, basePath); });
1436
2827
  },
1437
2828
  /**
1438
- *
1439
- * @summary Get the details of a Dataset
2829
+ * Run a query on a graph instance and return the result as a zip file in async mode
2830
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
2831
+ * @param {string} organizationId the Organization identifier
2832
+ * @param {string} datasetId the Graph Identifier
2833
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
2834
+ * @param {*} [options] Override http request option.
2835
+ * @throws {RequiredError}
2836
+ */
2837
+ twingraphBatchQuery: function (organizationId, datasetId, datasetTwinGraphQuery, options) {
2838
+ return localVarFp.twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then(function (request) { return request(axios, basePath); });
2839
+ },
2840
+ /**
2841
+ * Async batch update by loading a CSV file on a graph instance
2842
+ * @summary Async batch update by loading a CSV file on a graph instance
2843
+ * @param {string} organizationId the Organization identifier
2844
+ * @param {string} datasetId the Dataset Identifier
2845
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
2846
+ * @param {any} body
2847
+ * @param {*} [options] Override http request option.
2848
+ * @throws {RequiredError}
2849
+ */
2850
+ twingraphBatchUpdate: function (organizationId, datasetId, twinGraphQuery, body, options) {
2851
+ return localVarFp.twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options).then(function (request) { return request(axios, basePath); });
2852
+ },
2853
+ /**
2854
+ * Run a query on a graph instance and return the result as a json
2855
+ * @summary Run a query on a graph instance and return the result as a json
1440
2856
  * @param {string} organizationId the Organization identifier
1441
2857
  * @param {string} datasetId the Dataset identifier
2858
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
1442
2859
  * @param {*} [options] Override http request option.
1443
2860
  * @throws {RequiredError}
1444
2861
  */
1445
- findDatasetById: function (organizationId, datasetId, options) {
1446
- return localVarFp.findDatasetById(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
2862
+ twingraphQuery: function (organizationId, datasetId, datasetTwinGraphQuery, options) {
2863
+ return localVarFp.twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then(function (request) { return request(axios, basePath); });
1447
2864
  },
1448
2865
  /**
1449
2866
  *
1450
- * @summary Import a new Dataset
2867
+ * @summary Update a dataset
1451
2868
  * @param {string} organizationId the Organization identifier
1452
- * @param {Dataset} dataset the Dataset to import
2869
+ * @param {string} datasetId the Dataset identifier
2870
+ * @param {Dataset} dataset the new Dataset details.
1453
2871
  * @param {*} [options] Override http request option.
1454
2872
  * @throws {RequiredError}
1455
2873
  */
1456
- importDataset: function (organizationId, dataset, options) {
1457
- return localVarFp.importDataset(organizationId, dataset, options).then(function (request) { return request(axios, basePath); });
2874
+ updateDataset: function (organizationId, datasetId, dataset, options) {
2875
+ return localVarFp.updateDataset(organizationId, datasetId, dataset, options).then(function (request) { return request(axios, basePath); });
1458
2876
  },
1459
2877
  /**
1460
2878
  *
1461
- * @summary Remove all Dataset Compatibility elements from the Dataset specified
2879
+ * @summary Update the specified access to User for a Dataset
1462
2880
  * @param {string} organizationId the Organization identifier
1463
2881
  * @param {string} datasetId the Dataset identifier
2882
+ * @param {string} identityId the User identifier
2883
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
1464
2884
  * @param {*} [options] Override http request option.
1465
2885
  * @throws {RequiredError}
1466
2886
  */
1467
- removeAllDatasetCompatibilityElements: function (organizationId, datasetId, options) {
1468
- return localVarFp.removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
2887
+ updateDatasetAccessControl: function (organizationId, datasetId, identityId, datasetRole, options) {
2888
+ return localVarFp.updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options).then(function (request) { return request(axios, basePath); });
1469
2889
  },
1470
2890
  /**
1471
- *
1472
- * @summary Search Datasets
2891
+ * update entities in a graph instance
2892
+ * @summary Update entities in a graph instance
1473
2893
  * @param {string} organizationId the Organization identifier
1474
- * @param {DatasetSearch} datasetSearch the Dataset search parameters
1475
- * @param {number} [page] page number to query
1476
- * @param {number} [size] amount of result by page
2894
+ * @param {string} datasetId the Dataset Identifier
2895
+ * @param {'node' | 'relationship'} type the entity model type
2896
+ * @param {Array<GraphProperties>} graphProperties the entities to update
1477
2897
  * @param {*} [options] Override http request option.
1478
2898
  * @throws {RequiredError}
1479
2899
  */
1480
- searchDatasets: function (organizationId, datasetSearch, page, size, options) {
1481
- return localVarFp.searchDatasets(organizationId, datasetSearch, page, size, options).then(function (request) { return request(axios, basePath); });
2900
+ updateTwingraphEntities: function (organizationId, datasetId, type, graphProperties, options) {
2901
+ return localVarFp.updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then(function (request) { return request(axios, basePath); });
1482
2902
  },
1483
2903
  /**
1484
- *
1485
- * @summary Update a dataset
2904
+ * Upload Twingraph ZIP
2905
+ * @summary Upload Twingraph with ZIP File
1486
2906
  * @param {string} organizationId the Organization identifier
1487
2907
  * @param {string} datasetId the Dataset identifier
1488
- * @param {Dataset} dataset the new Dataset details.
2908
+ * @param {any} body
1489
2909
  * @param {*} [options] Override http request option.
1490
2910
  * @throws {RequiredError}
1491
2911
  */
1492
- updateDataset: function (organizationId, datasetId, dataset, options) {
1493
- return localVarFp.updateDataset(organizationId, datasetId, dataset, options).then(function (request) { return request(axios, basePath); });
2912
+ uploadTwingraph: function (organizationId, datasetId, body, options) {
2913
+ return localVarFp.uploadTwingraph(organizationId, datasetId, body, options).then(function (request) { return request(axios, basePath); });
1494
2914
  },
1495
2915
  };
1496
2916
  };
@@ -1505,6 +2925,20 @@ var DatasetApi = /** @class */ (function (_super) {
1505
2925
  function DatasetApi() {
1506
2926
  return _super !== null && _super.apply(this, arguments) || this;
1507
2927
  }
2928
+ /**
2929
+ *
2930
+ * @summary Add a control access to the Dataset
2931
+ * @param {string} organizationId the Organization identifier
2932
+ * @param {string} datasetId the Dataset identifier
2933
+ * @param {DatasetAccessControl} datasetAccessControl the new Dataset security access to add.
2934
+ * @param {*} [options] Override http request option.
2935
+ * @throws {RequiredError}
2936
+ * @memberof DatasetApi
2937
+ */
2938
+ DatasetApi.prototype.addDatasetAccessControl = function (organizationId, datasetId, datasetAccessControl, options) {
2939
+ var _this = this;
2940
+ return exports.DatasetApiFp(this.configuration).addDatasetAccessControl(organizationId, datasetId, datasetAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
2941
+ };
1508
2942
  /**
1509
2943
  *
1510
2944
  * @summary Add Dataset Compatibility elements.
@@ -1545,6 +2979,35 @@ var DatasetApi = /** @class */ (function (_super) {
1545
2979
  var _this = this;
1546
2980
  return exports.DatasetApiFp(this.configuration).createDataset(organizationId, dataset, options).then(function (request) { return request(_this.axios, _this.basePath); });
1547
2981
  };
2982
+ /**
2983
+ * Run a query on a dataset
2984
+ * @summary Run a query on a dataset
2985
+ * @param {string} organizationId the Organization identifier
2986
+ * @param {string} datasetId the Dataset identifier
2987
+ * @param {SubDatasetGraphQuery} subDatasetGraphQuery the query to run
2988
+ * @param {*} [options] Override http request option.
2989
+ * @throws {RequiredError}
2990
+ * @memberof DatasetApi
2991
+ */
2992
+ DatasetApi.prototype.createSubDataset = function (organizationId, datasetId, subDatasetGraphQuery, options) {
2993
+ var _this = this;
2994
+ return exports.DatasetApiFp(this.configuration).createSubDataset(organizationId, datasetId, subDatasetGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
2995
+ };
2996
+ /**
2997
+ * create new entities in a graph instance
2998
+ * @summary Create new entities in a graph instance
2999
+ * @param {string} organizationId the Organization identifier
3000
+ * @param {string} datasetId the Dataset Identifier
3001
+ * @param {'node' | 'relationship'} type the entity model type
3002
+ * @param {Array<GraphProperties>} graphProperties the entities to create
3003
+ * @param {*} [options] Override http request option.
3004
+ * @throws {RequiredError}
3005
+ * @memberof DatasetApi
3006
+ */
3007
+ DatasetApi.prototype.createTwingraphEntities = function (organizationId, datasetId, type, graphProperties, options) {
3008
+ var _this = this;
3009
+ return exports.DatasetApiFp(this.configuration).createTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then(function (request) { return request(_this.axios, _this.basePath); });
3010
+ };
1548
3011
  /**
1549
3012
  *
1550
3013
  * @summary Delete a dataset
@@ -1558,6 +3021,34 @@ var DatasetApi = /** @class */ (function (_super) {
1558
3021
  var _this = this;
1559
3022
  return exports.DatasetApiFp(this.configuration).deleteDataset(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1560
3023
  };
3024
+ /**
3025
+ * delete entities in a graph instance
3026
+ * @summary Delete entities in a graph instance
3027
+ * @param {string} organizationId the Organization identifier
3028
+ * @param {string} datasetId the Dataset Identifier
3029
+ * @param {'node' | 'relationship'} type the entity model type
3030
+ * @param {Array<string>} ids the entities to delete
3031
+ * @param {*} [options] Override http request option.
3032
+ * @throws {RequiredError}
3033
+ * @memberof DatasetApi
3034
+ */
3035
+ DatasetApi.prototype.deleteTwingraphEntities = function (organizationId, datasetId, type, ids, options) {
3036
+ var _this = this;
3037
+ return exports.DatasetApiFp(this.configuration).deleteTwingraphEntities(organizationId, datasetId, type, ids, options).then(function (request) { return request(_this.axios, _this.basePath); });
3038
+ };
3039
+ /**
3040
+ * Download a graph compressed in a zip file
3041
+ * @summary Download a graph compressed in a zip file
3042
+ * @param {string} organizationId the Organization identifier
3043
+ * @param {string} hash the Graph download identifier
3044
+ * @param {*} [options] Override http request option.
3045
+ * @throws {RequiredError}
3046
+ * @memberof DatasetApi
3047
+ */
3048
+ DatasetApi.prototype.downloadTwingraph = function (organizationId, hash, options) {
3049
+ var _this = this;
3050
+ return exports.DatasetApiFp(this.configuration).downloadTwingraph(organizationId, hash, options).then(function (request) { return request(_this.axios, _this.basePath); });
3051
+ };
1561
3052
  /**
1562
3053
  *
1563
3054
  * @summary List all Datasets
@@ -1587,16 +3078,72 @@ var DatasetApi = /** @class */ (function (_super) {
1587
3078
  };
1588
3079
  /**
1589
3080
  *
1590
- * @summary Import a new Dataset
3081
+ * @summary Get a control access for the Dataset
3082
+ * @param {string} organizationId the Organization identifier
3083
+ * @param {string} datasetId the Dataset identifier
3084
+ * @param {string} identityId the User identifier
3085
+ * @param {*} [options] Override http request option.
3086
+ * @throws {RequiredError}
3087
+ * @memberof DatasetApi
3088
+ */
3089
+ DatasetApi.prototype.getDatasetAccessControl = function (organizationId, datasetId, identityId, options) {
3090
+ var _this = this;
3091
+ return exports.DatasetApiFp(this.configuration).getDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3092
+ };
3093
+ /**
3094
+ *
3095
+ * @summary Get the Dataset security users list
3096
+ * @param {string} organizationId the Organization identifier
3097
+ * @param {string} datasetId the Dataset identifier
3098
+ * @param {*} [options] Override http request option.
3099
+ * @throws {RequiredError}
3100
+ * @memberof DatasetApi
3101
+ */
3102
+ DatasetApi.prototype.getDatasetSecurityUsers = function (organizationId, datasetId, options) {
3103
+ var _this = this;
3104
+ return exports.DatasetApiFp(this.configuration).getDatasetSecurityUsers(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3105
+ };
3106
+ /**
3107
+ * Get the status of a twingraph import
3108
+ * @summary Get the status of twingraph import
3109
+ * @param {string} organizationId the Organization identifier
3110
+ * @param {string} datasetId the dataset identifier
3111
+ * @param {string} jobId the job identifier
3112
+ * @param {*} [options] Override http request option.
3113
+ * @throws {RequiredError}
3114
+ * @memberof DatasetApi
3115
+ */
3116
+ DatasetApi.prototype.getDatasetTwingraphStatus = function (organizationId, datasetId, jobId, options) {
3117
+ var _this = this;
3118
+ return exports.DatasetApiFp(this.configuration).getDatasetTwingraphStatus(organizationId, datasetId, jobId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3119
+ };
3120
+ /**
3121
+ * get entities in a graph instance
3122
+ * @summary Get entities in a graph instance
3123
+ * @param {string} organizationId the Organization identifier
3124
+ * @param {string} datasetId the Dataset Identifier
3125
+ * @param {'node' | 'relationship'} type the entity model type
3126
+ * @param {Array<string>} ids the entities to get
3127
+ * @param {*} [options] Override http request option.
3128
+ * @throws {RequiredError}
3129
+ * @memberof DatasetApi
3130
+ */
3131
+ DatasetApi.prototype.getTwingraphEntities = function (organizationId, datasetId, type, ids, options) {
3132
+ var _this = this;
3133
+ return exports.DatasetApiFp(this.configuration).getTwingraphEntities(organizationId, datasetId, type, ids, options).then(function (request) { return request(_this.axios, _this.basePath); });
3134
+ };
3135
+ /**
3136
+ * Refresh ADT, Storage dataset
3137
+ * @summary Refresh dataset
1591
3138
  * @param {string} organizationId the Organization identifier
1592
- * @param {Dataset} dataset the Dataset to import
3139
+ * @param {string} datasetId the Dataset identifier
1593
3140
  * @param {*} [options] Override http request option.
1594
3141
  * @throws {RequiredError}
1595
3142
  * @memberof DatasetApi
1596
3143
  */
1597
- DatasetApi.prototype.importDataset = function (organizationId, dataset, options) {
3144
+ DatasetApi.prototype.refreshDataset = function (organizationId, datasetId, options) {
1598
3145
  var _this = this;
1599
- return exports.DatasetApiFp(this.configuration).importDataset(organizationId, dataset, options).then(function (request) { return request(_this.axios, _this.basePath); });
3146
+ return exports.DatasetApiFp(this.configuration).refreshDataset(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1600
3147
  };
1601
3148
  /**
1602
3149
  *
@@ -1611,6 +3158,20 @@ var DatasetApi = /** @class */ (function (_super) {
1611
3158
  var _this = this;
1612
3159
  return exports.DatasetApiFp(this.configuration).removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1613
3160
  };
3161
+ /**
3162
+ *
3163
+ * @summary Remove the specified access from the given Dataset
3164
+ * @param {string} organizationId the Organization identifier
3165
+ * @param {string} datasetId the Dataset identifier
3166
+ * @param {string} identityId the User identifier
3167
+ * @param {*} [options] Override http request option.
3168
+ * @throws {RequiredError}
3169
+ * @memberof DatasetApi
3170
+ */
3171
+ DatasetApi.prototype.removeDatasetAccessControl = function (organizationId, datasetId, identityId, options) {
3172
+ var _this = this;
3173
+ return exports.DatasetApiFp(this.configuration).removeDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3174
+ };
1614
3175
  /**
1615
3176
  *
1616
3177
  * @summary Search Datasets
@@ -1622,23 +3183,110 @@ var DatasetApi = /** @class */ (function (_super) {
1622
3183
  * @throws {RequiredError}
1623
3184
  * @memberof DatasetApi
1624
3185
  */
1625
- DatasetApi.prototype.searchDatasets = function (organizationId, datasetSearch, page, size, options) {
3186
+ DatasetApi.prototype.searchDatasets = function (organizationId, datasetSearch, page, size, options) {
3187
+ var _this = this;
3188
+ return exports.DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
3189
+ };
3190
+ /**
3191
+ * Run a query on a graph instance and return the result as a zip file in async mode
3192
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
3193
+ * @param {string} organizationId the Organization identifier
3194
+ * @param {string} datasetId the Graph Identifier
3195
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
3196
+ * @param {*} [options] Override http request option.
3197
+ * @throws {RequiredError}
3198
+ * @memberof DatasetApi
3199
+ */
3200
+ DatasetApi.prototype.twingraphBatchQuery = function (organizationId, datasetId, datasetTwinGraphQuery, options) {
3201
+ var _this = this;
3202
+ return exports.DatasetApiFp(this.configuration).twingraphBatchQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
3203
+ };
3204
+ /**
3205
+ * Async batch update by loading a CSV file on a graph instance
3206
+ * @summary Async batch update by loading a CSV file on a graph instance
3207
+ * @param {string} organizationId the Organization identifier
3208
+ * @param {string} datasetId the Dataset Identifier
3209
+ * @param {DatasetTwinGraphQuery} twinGraphQuery
3210
+ * @param {any} body
3211
+ * @param {*} [options] Override http request option.
3212
+ * @throws {RequiredError}
3213
+ * @memberof DatasetApi
3214
+ */
3215
+ DatasetApi.prototype.twingraphBatchUpdate = function (organizationId, datasetId, twinGraphQuery, body, options) {
3216
+ var _this = this;
3217
+ return exports.DatasetApiFp(this.configuration).twingraphBatchUpdate(organizationId, datasetId, twinGraphQuery, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
3218
+ };
3219
+ /**
3220
+ * Run a query on a graph instance and return the result as a json
3221
+ * @summary Run a query on a graph instance and return the result as a json
3222
+ * @param {string} organizationId the Organization identifier
3223
+ * @param {string} datasetId the Dataset identifier
3224
+ * @param {DatasetTwinGraphQuery} datasetTwinGraphQuery the query to run
3225
+ * @param {*} [options] Override http request option.
3226
+ * @throws {RequiredError}
3227
+ * @memberof DatasetApi
3228
+ */
3229
+ DatasetApi.prototype.twingraphQuery = function (organizationId, datasetId, datasetTwinGraphQuery, options) {
3230
+ var _this = this;
3231
+ return exports.DatasetApiFp(this.configuration).twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
3232
+ };
3233
+ /**
3234
+ *
3235
+ * @summary Update a dataset
3236
+ * @param {string} organizationId the Organization identifier
3237
+ * @param {string} datasetId the Dataset identifier
3238
+ * @param {Dataset} dataset the new Dataset details.
3239
+ * @param {*} [options] Override http request option.
3240
+ * @throws {RequiredError}
3241
+ * @memberof DatasetApi
3242
+ */
3243
+ DatasetApi.prototype.updateDataset = function (organizationId, datasetId, dataset, options) {
3244
+ var _this = this;
3245
+ return exports.DatasetApiFp(this.configuration).updateDataset(organizationId, datasetId, dataset, options).then(function (request) { return request(_this.axios, _this.basePath); });
3246
+ };
3247
+ /**
3248
+ *
3249
+ * @summary Update the specified access to User for a Dataset
3250
+ * @param {string} organizationId the Organization identifier
3251
+ * @param {string} datasetId the Dataset identifier
3252
+ * @param {string} identityId the User identifier
3253
+ * @param {DatasetRole} datasetRole The new Dataset Access Control
3254
+ * @param {*} [options] Override http request option.
3255
+ * @throws {RequiredError}
3256
+ * @memberof DatasetApi
3257
+ */
3258
+ DatasetApi.prototype.updateDatasetAccessControl = function (organizationId, datasetId, identityId, datasetRole, options) {
3259
+ var _this = this;
3260
+ return exports.DatasetApiFp(this.configuration).updateDatasetAccessControl(organizationId, datasetId, identityId, datasetRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
3261
+ };
3262
+ /**
3263
+ * update entities in a graph instance
3264
+ * @summary Update entities in a graph instance
3265
+ * @param {string} organizationId the Organization identifier
3266
+ * @param {string} datasetId the Dataset Identifier
3267
+ * @param {'node' | 'relationship'} type the entity model type
3268
+ * @param {Array<GraphProperties>} graphProperties the entities to update
3269
+ * @param {*} [options] Override http request option.
3270
+ * @throws {RequiredError}
3271
+ * @memberof DatasetApi
3272
+ */
3273
+ DatasetApi.prototype.updateTwingraphEntities = function (organizationId, datasetId, type, graphProperties, options) {
1626
3274
  var _this = this;
1627
- return exports.DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
3275
+ return exports.DatasetApiFp(this.configuration).updateTwingraphEntities(organizationId, datasetId, type, graphProperties, options).then(function (request) { return request(_this.axios, _this.basePath); });
1628
3276
  };
1629
3277
  /**
1630
- *
1631
- * @summary Update a dataset
3278
+ * Upload Twingraph ZIP
3279
+ * @summary Upload Twingraph with ZIP File
1632
3280
  * @param {string} organizationId the Organization identifier
1633
3281
  * @param {string} datasetId the Dataset identifier
1634
- * @param {Dataset} dataset the new Dataset details.
3282
+ * @param {any} body
1635
3283
  * @param {*} [options] Override http request option.
1636
3284
  * @throws {RequiredError}
1637
3285
  * @memberof DatasetApi
1638
3286
  */
1639
- DatasetApi.prototype.updateDataset = function (organizationId, datasetId, dataset, options) {
3287
+ DatasetApi.prototype.uploadTwingraph = function (organizationId, datasetId, body, options) {
1640
3288
  var _this = this;
1641
- return exports.DatasetApiFp(this.configuration).updateDataset(organizationId, datasetId, dataset, options).then(function (request) { return request(_this.axios, _this.basePath); });
3289
+ return exports.DatasetApiFp(this.configuration).uploadTwingraph(organizationId, datasetId, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
1642
3290
  };
1643
3291
  return DatasetApi;
1644
3292
  }(base_1.BaseAPI));
@@ -2007,50 +3655,6 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
2007
3655
  });
2008
3656
  });
2009
3657
  },
2010
- /**
2011
- *
2012
- * @summary Import an organization
2013
- * @param {Organization} organization the Organization to import
2014
- * @param {*} [options] Override http request option.
2015
- * @throws {RequiredError}
2016
- */
2017
- importOrganization: function (organization, options) {
2018
- if (options === void 0) { options = {}; }
2019
- return __awaiter(_this, void 0, void 0, function () {
2020
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2021
- return __generator(this, function (_a) {
2022
- switch (_a.label) {
2023
- case 0:
2024
- // verify required parameter 'organization' is not null or undefined
2025
- common_1.assertParamExists('importOrganization', 'organization', organization);
2026
- localVarPath = "/organizations/import";
2027
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2028
- if (configuration) {
2029
- baseOptions = configuration.baseOptions;
2030
- }
2031
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2032
- localVarHeaderParameter = {};
2033
- localVarQueryParameter = {};
2034
- // authentication oAuth2AuthCode required
2035
- // oauth required
2036
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
2037
- case 1:
2038
- // authentication oAuth2AuthCode required
2039
- // oauth required
2040
- _a.sent();
2041
- localVarHeaderParameter['Content-Type'] = 'application/json';
2042
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2043
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2044
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2045
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(organization, localVarRequestOptions, configuration);
2046
- return [2 /*return*/, {
2047
- url: common_1.toPathString(localVarUrlObj),
2048
- options: localVarRequestOptions,
2049
- }];
2050
- }
2051
- });
2052
- });
2053
- },
2054
3658
  /**
2055
3659
  *
2056
3660
  * @summary Register a new organization
@@ -2649,26 +4253,6 @@ exports.OrganizationApiFp = function (configuration) {
2649
4253
  });
2650
4254
  });
2651
4255
  },
2652
- /**
2653
- *
2654
- * @summary Import an organization
2655
- * @param {Organization} organization the Organization to import
2656
- * @param {*} [options] Override http request option.
2657
- * @throws {RequiredError}
2658
- */
2659
- importOrganization: function (organization, options) {
2660
- return __awaiter(this, void 0, void 0, function () {
2661
- var localVarAxiosArgs;
2662
- return __generator(this, function (_a) {
2663
- switch (_a.label) {
2664
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importOrganization(organization, options)];
2665
- case 1:
2666
- localVarAxiosArgs = _a.sent();
2667
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2668
- }
2669
- });
2670
- });
2671
- },
2672
4256
  /**
2673
4257
  *
2674
4258
  * @summary Register a new organization
@@ -2949,16 +4533,6 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2949
4533
  getOrganizationSecurityUsers: function (organizationId, options) {
2950
4534
  return localVarFp.getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(axios, basePath); });
2951
4535
  },
2952
- /**
2953
- *
2954
- * @summary Import an organization
2955
- * @param {Organization} organization the Organization to import
2956
- * @param {*} [options] Override http request option.
2957
- * @throws {RequiredError}
2958
- */
2959
- importOrganization: function (organization, options) {
2960
- return localVarFp.importOrganization(organization, options).then(function (request) { return request(axios, basePath); });
2961
- },
2962
4536
  /**
2963
4537
  *
2964
4538
  * @summary Register a new organization
@@ -3169,18 +4743,6 @@ var OrganizationApi = /** @class */ (function (_super) {
3169
4743
  var _this = this;
3170
4744
  return exports.OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3171
4745
  };
3172
- /**
3173
- *
3174
- * @summary Import an organization
3175
- * @param {Organization} organization the Organization to import
3176
- * @param {*} [options] Override http request option.
3177
- * @throws {RequiredError}
3178
- * @memberof OrganizationApi
3179
- */
3180
- OrganizationApi.prototype.importOrganization = function (organization, options) {
3181
- var _this = this;
3182
- return exports.OrganizationApiFp(this.configuration).importOrganization(organization, options).then(function (request) { return request(_this.axios, _this.basePath); });
3183
- };
3184
4746
  /**
3185
4747
  *
3186
4748
  * @summary Register a new organization
@@ -3579,11 +5141,10 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3579
5141
  * @param {string} organizationId the Organization identifier
3580
5142
  * @param {string} workspaceId the Workspace identifier
3581
5143
  * @param {string} scenarioId the Scenario identifier
3582
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
3583
5144
  * @param {*} [options] Override http request option.
3584
5145
  * @throws {RequiredError}
3585
5146
  */
3586
- deleteScenario: function (organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options) {
5147
+ deleteScenario: function (organizationId, workspaceId, scenarioId, options) {
3587
5148
  if (options === void 0) { options = {}; }
3588
5149
  return __awaiter(_this, void 0, void 0, function () {
3589
5150
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3614,9 +5175,6 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3614
5175
  // authentication oAuth2AuthCode required
3615
5176
  // oauth required
3616
5177
  _a.sent();
3617
- if (waitRelationshipPropagation !== undefined) {
3618
- localVarQueryParameter['wait_relationship_propagation'] = waitRelationshipPropagation;
3619
- }
3620
5178
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3621
5179
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3622
5180
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3959,11 +5517,12 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3959
5517
  * @summary Get the Scenario permission by given role
3960
5518
  * @param {string} organizationId the Organization identifier
3961
5519
  * @param {string} workspaceId the Workspace identifier
5520
+ * @param {string} scenarioId the Scenario identifier
3962
5521
  * @param {string} role the Role
3963
5522
  * @param {*} [options] Override http request option.
3964
5523
  * @throws {RequiredError}
3965
5524
  */
3966
- getScenarioPermissions: function (organizationId, workspaceId, role, options) {
5525
+ getScenarioPermissions: function (organizationId, workspaceId, scenarioId, role, options) {
3967
5526
  if (options === void 0) { options = {}; }
3968
5527
  return __awaiter(_this, void 0, void 0, function () {
3969
5528
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3974,11 +5533,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3974
5533
  common_1.assertParamExists('getScenarioPermissions', 'organizationId', organizationId);
3975
5534
  // verify required parameter 'workspaceId' is not null or undefined
3976
5535
  common_1.assertParamExists('getScenarioPermissions', 'workspaceId', workspaceId);
5536
+ // verify required parameter 'scenarioId' is not null or undefined
5537
+ common_1.assertParamExists('getScenarioPermissions', 'scenarioId', scenarioId);
3977
5538
  // verify required parameter 'role' is not null or undefined
3978
5539
  common_1.assertParamExists('getScenarioPermissions', 'role', role);
3979
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}"
5540
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/permissions/{role}"
3980
5541
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3981
5542
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
5543
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3982
5544
  .replace("{" + "role" + "}", encodeURIComponent(String(role)));
3983
5545
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3984
5546
  if (configuration) {
@@ -4205,58 +5767,6 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
4205
5767
  });
4206
5768
  });
4207
5769
  },
4208
- /**
4209
- *
4210
- * @summary Import Scenario
4211
- * @param {string} organizationId the Organization identifier
4212
- * @param {string} workspaceId the Workspace identifier
4213
- * @param {Scenario} scenario the Scenario to import
4214
- * @param {*} [options] Override http request option.
4215
- * @throws {RequiredError}
4216
- */
4217
- importScenario: function (organizationId, workspaceId, scenario, options) {
4218
- if (options === void 0) { options = {}; }
4219
- return __awaiter(_this, void 0, void 0, function () {
4220
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4221
- return __generator(this, function (_a) {
4222
- switch (_a.label) {
4223
- case 0:
4224
- // verify required parameter 'organizationId' is not null or undefined
4225
- common_1.assertParamExists('importScenario', 'organizationId', organizationId);
4226
- // verify required parameter 'workspaceId' is not null or undefined
4227
- common_1.assertParamExists('importScenario', 'workspaceId', workspaceId);
4228
- // verify required parameter 'scenario' is not null or undefined
4229
- common_1.assertParamExists('importScenario', 'scenario', scenario);
4230
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/import"
4231
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
4232
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
4233
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4234
- if (configuration) {
4235
- baseOptions = configuration.baseOptions;
4236
- }
4237
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
4238
- localVarHeaderParameter = {};
4239
- localVarQueryParameter = {};
4240
- // authentication oAuth2AuthCode required
4241
- // oauth required
4242
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
4243
- case 1:
4244
- // authentication oAuth2AuthCode required
4245
- // oauth required
4246
- _a.sent();
4247
- localVarHeaderParameter['Content-Type'] = 'application/json';
4248
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4249
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4250
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4251
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenario, localVarRequestOptions, configuration);
4252
- return [2 /*return*/, {
4253
- url: common_1.toPathString(localVarUrlObj),
4254
- options: localVarRequestOptions,
4255
- }];
4256
- }
4257
- });
4258
- });
4259
- },
4260
5770
  /**
4261
5771
  *
4262
5772
  * @summary Remove all Parameter Values from the Scenario specified
@@ -4662,16 +6172,15 @@ exports.ScenarioApiFp = function (configuration) {
4662
6172
  * @param {string} organizationId the Organization identifier
4663
6173
  * @param {string} workspaceId the Workspace identifier
4664
6174
  * @param {string} scenarioId the Scenario identifier
4665
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
4666
6175
  * @param {*} [options] Override http request option.
4667
6176
  * @throws {RequiredError}
4668
6177
  */
4669
- deleteScenario: function (organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options) {
6178
+ deleteScenario: function (organizationId, workspaceId, scenarioId, options) {
4670
6179
  return __awaiter(this, void 0, void 0, function () {
4671
6180
  var localVarAxiosArgs;
4672
6181
  return __generator(this, function (_a) {
4673
6182
  switch (_a.label) {
4674
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options)];
6183
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, options)];
4675
6184
  case 1:
4676
6185
  localVarAxiosArgs = _a.sent();
4677
6186
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -4821,16 +6330,17 @@ exports.ScenarioApiFp = function (configuration) {
4821
6330
  * @summary Get the Scenario permission by given role
4822
6331
  * @param {string} organizationId the Organization identifier
4823
6332
  * @param {string} workspaceId the Workspace identifier
6333
+ * @param {string} scenarioId the Scenario identifier
4824
6334
  * @param {string} role the Role
4825
6335
  * @param {*} [options] Override http request option.
4826
6336
  * @throws {RequiredError}
4827
6337
  */
4828
- getScenarioPermissions: function (organizationId, workspaceId, role, options) {
6338
+ getScenarioPermissions: function (organizationId, workspaceId, scenarioId, role, options) {
4829
6339
  return __awaiter(this, void 0, void 0, function () {
4830
6340
  var localVarAxiosArgs;
4831
6341
  return __generator(this, function (_a) {
4832
6342
  switch (_a.label) {
4833
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, role, options)];
6343
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options)];
4834
6344
  case 1:
4835
6345
  localVarAxiosArgs = _a.sent();
4836
6346
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -4925,28 +6435,6 @@ exports.ScenarioApiFp = function (configuration) {
4925
6435
  });
4926
6436
  });
4927
6437
  },
4928
- /**
4929
- *
4930
- * @summary Import Scenario
4931
- * @param {string} organizationId the Organization identifier
4932
- * @param {string} workspaceId the Workspace identifier
4933
- * @param {Scenario} scenario the Scenario to import
4934
- * @param {*} [options] Override http request option.
4935
- * @throws {RequiredError}
4936
- */
4937
- importScenario: function (organizationId, workspaceId, scenario, options) {
4938
- return __awaiter(this, void 0, void 0, function () {
4939
- var localVarAxiosArgs;
4940
- return __generator(this, function (_a) {
4941
- switch (_a.label) {
4942
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importScenario(organizationId, workspaceId, scenario, options)];
4943
- case 1:
4944
- localVarAxiosArgs = _a.sent();
4945
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4946
- }
4947
- });
4948
- });
4949
- },
4950
6438
  /**
4951
6439
  *
4952
6440
  * @summary Remove all Parameter Values from the Scenario specified
@@ -5139,12 +6627,11 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
5139
6627
  * @param {string} organizationId the Organization identifier
5140
6628
  * @param {string} workspaceId the Workspace identifier
5141
6629
  * @param {string} scenarioId the Scenario identifier
5142
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
5143
6630
  * @param {*} [options] Override http request option.
5144
6631
  * @throws {RequiredError}
5145
6632
  */
5146
- deleteScenario: function (organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options) {
5147
- return localVarFp.deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options).then(function (request) { return request(axios, basePath); });
6633
+ deleteScenario: function (organizationId, workspaceId, scenarioId, options) {
6634
+ return localVarFp.deleteScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
5148
6635
  },
5149
6636
  /**
5150
6637
  *
@@ -5228,12 +6715,13 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
5228
6715
  * @summary Get the Scenario permission by given role
5229
6716
  * @param {string} organizationId the Organization identifier
5230
6717
  * @param {string} workspaceId the Workspace identifier
6718
+ * @param {string} scenarioId the Scenario identifier
5231
6719
  * @param {string} role the Role
5232
6720
  * @param {*} [options] Override http request option.
5233
6721
  * @throws {RequiredError}
5234
6722
  */
5235
- getScenarioPermissions: function (organizationId, workspaceId, role, options) {
5236
- return localVarFp.getScenarioPermissions(organizationId, workspaceId, role, options).then(function (request) { return request(axios, basePath); });
6723
+ getScenarioPermissions: function (organizationId, workspaceId, scenarioId, role, options) {
6724
+ return localVarFp.getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options).then(function (request) { return request(axios, basePath); });
5237
6725
  },
5238
6726
  /**
5239
6727
  *
@@ -5282,18 +6770,6 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
5282
6770
  getScenariosTree: function (organizationId, workspaceId, options) {
5283
6771
  return localVarFp.getScenariosTree(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
5284
6772
  },
5285
- /**
5286
- *
5287
- * @summary Import Scenario
5288
- * @param {string} organizationId the Organization identifier
5289
- * @param {string} workspaceId the Workspace identifier
5290
- * @param {Scenario} scenario the Scenario to import
5291
- * @param {*} [options] Override http request option.
5292
- * @throws {RequiredError}
5293
- */
5294
- importScenario: function (organizationId, workspaceId, scenario, options) {
5295
- return localVarFp.importScenario(organizationId, workspaceId, scenario, options).then(function (request) { return request(axios, basePath); });
5296
- },
5297
6773
  /**
5298
6774
  *
5299
6775
  * @summary Remove all Parameter Values from the Scenario specified
@@ -5450,14 +6926,13 @@ var ScenarioApi = /** @class */ (function (_super) {
5450
6926
  * @param {string} organizationId the Organization identifier
5451
6927
  * @param {string} workspaceId the Workspace identifier
5452
6928
  * @param {string} scenarioId the Scenario identifier
5453
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
5454
6929
  * @param {*} [options] Override http request option.
5455
6930
  * @throws {RequiredError}
5456
6931
  * @memberof ScenarioApi
5457
6932
  */
5458
- ScenarioApi.prototype.deleteScenario = function (organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options) {
6933
+ ScenarioApi.prototype.deleteScenario = function (organizationId, workspaceId, scenarioId, options) {
5459
6934
  var _this = this;
5460
- return exports.ScenarioApiFp(this.configuration).deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options).then(function (request) { return request(_this.axios, _this.basePath); });
6935
+ return exports.ScenarioApiFp(this.configuration).deleteScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5461
6936
  };
5462
6937
  /**
5463
6938
  *
@@ -5553,14 +7028,15 @@ var ScenarioApi = /** @class */ (function (_super) {
5553
7028
  * @summary Get the Scenario permission by given role
5554
7029
  * @param {string} organizationId the Organization identifier
5555
7030
  * @param {string} workspaceId the Workspace identifier
7031
+ * @param {string} scenarioId the Scenario identifier
5556
7032
  * @param {string} role the Role
5557
7033
  * @param {*} [options] Override http request option.
5558
7034
  * @throws {RequiredError}
5559
7035
  * @memberof ScenarioApi
5560
7036
  */
5561
- ScenarioApi.prototype.getScenarioPermissions = function (organizationId, workspaceId, role, options) {
7037
+ ScenarioApi.prototype.getScenarioPermissions = function (organizationId, workspaceId, scenarioId, role, options) {
5562
7038
  var _this = this;
5563
- return exports.ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
7039
+ return exports.ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, scenarioId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
5564
7040
  };
5565
7041
  /**
5566
7042
  *
@@ -5617,20 +7093,6 @@ var ScenarioApi = /** @class */ (function (_super) {
5617
7093
  var _this = this;
5618
7094
  return exports.ScenarioApiFp(this.configuration).getScenariosTree(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5619
7095
  };
5620
- /**
5621
- *
5622
- * @summary Import Scenario
5623
- * @param {string} organizationId the Organization identifier
5624
- * @param {string} workspaceId the Workspace identifier
5625
- * @param {Scenario} scenario the Scenario to import
5626
- * @param {*} [options] Override http request option.
5627
- * @throws {RequiredError}
5628
- * @memberof ScenarioApi
5629
- */
5630
- ScenarioApi.prototype.importScenario = function (organizationId, workspaceId, scenario, options) {
5631
- var _this = this;
5632
- return exports.ScenarioApiFp(this.configuration).importScenario(organizationId, workspaceId, scenario, options).then(function (request) { return request(_this.axios, _this.basePath); });
5633
- };
5634
7096
  /**
5635
7097
  *
5636
7098
  * @summary Remove all Parameter Values from the Scenario specified
@@ -6218,62 +7680,6 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
6218
7680
  });
6219
7681
  });
6220
7682
  },
6221
- /**
6222
- *
6223
- * @summary import a ScenarioRun for the Scenario
6224
- * @param {string} organizationId the Organization identifier
6225
- * @param {string} workspaceId the Workspace identifier
6226
- * @param {string} scenarioId the Scenario identifier
6227
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
6228
- * @param {*} [options] Override http request option.
6229
- * @throws {RequiredError}
6230
- */
6231
- importScenarioRun: function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
6232
- if (options === void 0) { options = {}; }
6233
- return __awaiter(_this, void 0, void 0, function () {
6234
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6235
- return __generator(this, function (_a) {
6236
- switch (_a.label) {
6237
- case 0:
6238
- // verify required parameter 'organizationId' is not null or undefined
6239
- common_1.assertParamExists('importScenarioRun', 'organizationId', organizationId);
6240
- // verify required parameter 'workspaceId' is not null or undefined
6241
- common_1.assertParamExists('importScenarioRun', 'workspaceId', workspaceId);
6242
- // verify required parameter 'scenarioId' is not null or undefined
6243
- common_1.assertParamExists('importScenarioRun', 'scenarioId', scenarioId);
6244
- // verify required parameter 'scenarioRun' is not null or undefined
6245
- common_1.assertParamExists('importScenarioRun', 'scenarioRun', scenarioRun);
6246
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/run/import"
6247
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
6248
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
6249
- .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
6250
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6251
- if (configuration) {
6252
- baseOptions = configuration.baseOptions;
6253
- }
6254
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
6255
- localVarHeaderParameter = {};
6256
- localVarQueryParameter = {};
6257
- // authentication oAuth2AuthCode required
6258
- // oauth required
6259
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
6260
- case 1:
6261
- // authentication oAuth2AuthCode required
6262
- // oauth required
6263
- _a.sent();
6264
- localVarHeaderParameter['Content-Type'] = 'application/json';
6265
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
6266
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6267
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6268
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioRun, localVarRequestOptions, configuration);
6269
- return [2 /*return*/, {
6270
- url: common_1.toPathString(localVarUrlObj),
6271
- options: localVarRequestOptions,
6272
- }];
6273
- }
6274
- });
6275
- });
6276
- },
6277
7683
  /**
6278
7684
  *
6279
7685
  * @summary run a ScenarioRun for the Scenario
@@ -6703,29 +8109,6 @@ exports.ScenariorunApiFp = function (configuration) {
6703
8109
  });
6704
8110
  });
6705
8111
  },
6706
- /**
6707
- *
6708
- * @summary import a ScenarioRun for the Scenario
6709
- * @param {string} organizationId the Organization identifier
6710
- * @param {string} workspaceId the Workspace identifier
6711
- * @param {string} scenarioId the Scenario identifier
6712
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
6713
- * @param {*} [options] Override http request option.
6714
- * @throws {RequiredError}
6715
- */
6716
- importScenarioRun: function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
6717
- return __awaiter(this, void 0, void 0, function () {
6718
- var localVarAxiosArgs;
6719
- return __generator(this, function (_a) {
6720
- switch (_a.label) {
6721
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options)];
6722
- case 1:
6723
- localVarAxiosArgs = _a.sent();
6724
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
6725
- }
6726
- });
6727
- });
6728
- },
6729
8112
  /**
6730
8113
  *
6731
8114
  * @summary run a ScenarioRun for the Scenario
@@ -6940,19 +8323,6 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
6940
8323
  getWorkspaceScenarioRuns: function (organizationId, workspaceId, page, size, options) {
6941
8324
  return localVarFp.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then(function (request) { return request(axios, basePath); });
6942
8325
  },
6943
- /**
6944
- *
6945
- * @summary import a ScenarioRun for the Scenario
6946
- * @param {string} organizationId the Organization identifier
6947
- * @param {string} workspaceId the Workspace identifier
6948
- * @param {string} scenarioId the Scenario identifier
6949
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
6950
- * @param {*} [options] Override http request option.
6951
- * @throws {RequiredError}
6952
- */
6953
- importScenarioRun: function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
6954
- return localVarFp.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then(function (request) { return request(axios, basePath); });
6955
- },
6956
8326
  /**
6957
8327
  *
6958
8328
  * @summary run a ScenarioRun for the Scenario
@@ -7141,30 +8511,15 @@ var ScenariorunApi = /** @class */ (function (_super) {
7141
8511
  * @summary get the list of ScenarioRuns for the Workspace
7142
8512
  * @param {string} organizationId the Organization identifier
7143
8513
  * @param {string} workspaceId the Workspace identifier
7144
- * @param {number} [page] page number to query
7145
- * @param {number} [size] amount of result by page
7146
- * @param {*} [options] Override http request option.
7147
- * @throws {RequiredError}
7148
- * @memberof ScenariorunApi
7149
- */
7150
- ScenariorunApi.prototype.getWorkspaceScenarioRuns = function (organizationId, workspaceId, page, size, options) {
7151
- var _this = this;
7152
- return exports.ScenariorunApiFp(this.configuration).getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
7153
- };
7154
- /**
7155
- *
7156
- * @summary import a ScenarioRun for the Scenario
7157
- * @param {string} organizationId the Organization identifier
7158
- * @param {string} workspaceId the Workspace identifier
7159
- * @param {string} scenarioId the Scenario identifier
7160
- * @param {ScenarioRun} scenarioRun the ScenarioRun to import
8514
+ * @param {number} [page] page number to query
8515
+ * @param {number} [size] amount of result by page
7161
8516
  * @param {*} [options] Override http request option.
7162
8517
  * @throws {RequiredError}
7163
8518
  * @memberof ScenariorunApi
7164
8519
  */
7165
- ScenariorunApi.prototype.importScenarioRun = function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
8520
+ ScenariorunApi.prototype.getWorkspaceScenarioRuns = function (organizationId, workspaceId, page, size, options) {
7166
8521
  var _this = this;
7167
- return exports.ScenariorunApiFp(this.configuration).importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then(function (request) { return request(_this.axios, _this.basePath); });
8522
+ return exports.ScenariorunApiFp(this.configuration).getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
7168
8523
  };
7169
8524
  /**
7170
8525
  *
@@ -7224,6 +8579,281 @@ var ScenariorunApi = /** @class */ (function (_super) {
7224
8579
  return ScenariorunApi;
7225
8580
  }(base_1.BaseAPI));
7226
8581
  exports.ScenariorunApi = ScenariorunApi;
8582
+ /**
8583
+ * ScenariorunresultApi - axios parameter creator
8584
+ * @export
8585
+ */
8586
+ exports.ScenariorunresultApiAxiosParamCreator = function (configuration) {
8587
+ var _this = this;
8588
+ return {
8589
+ /**
8590
+ *
8591
+ * @summary Get a ScenarioRunResult in the Organization
8592
+ * @param {string} organizationId the Organization identifier
8593
+ * @param {string} workspaceId the Workspace identifier
8594
+ * @param {string} scenarioId the Scenario identifier
8595
+ * @param {string} scenariorunId the ScenarioRun identifier
8596
+ * @param {string} probeId the Probe identifier
8597
+ * @param {*} [options] Override http request option.
8598
+ * @throws {RequiredError}
8599
+ */
8600
+ getScenarioRunResult: function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, options) {
8601
+ if (options === void 0) { options = {}; }
8602
+ return __awaiter(_this, void 0, void 0, function () {
8603
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8604
+ return __generator(this, function (_a) {
8605
+ switch (_a.label) {
8606
+ case 0:
8607
+ // verify required parameter 'organizationId' is not null or undefined
8608
+ common_1.assertParamExists('getScenarioRunResult', 'organizationId', organizationId);
8609
+ // verify required parameter 'workspaceId' is not null or undefined
8610
+ common_1.assertParamExists('getScenarioRunResult', 'workspaceId', workspaceId);
8611
+ // verify required parameter 'scenarioId' is not null or undefined
8612
+ common_1.assertParamExists('getScenarioRunResult', 'scenarioId', scenarioId);
8613
+ // verify required parameter 'scenariorunId' is not null or undefined
8614
+ common_1.assertParamExists('getScenarioRunResult', 'scenariorunId', scenariorunId);
8615
+ // verify required parameter 'probeId' is not null or undefined
8616
+ common_1.assertParamExists('getScenarioRunResult', 'probeId', probeId);
8617
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}"
8618
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8619
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
8620
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
8621
+ .replace("{" + "scenariorun_id" + "}", encodeURIComponent(String(scenariorunId)))
8622
+ .replace("{" + "probe_id" + "}", encodeURIComponent(String(probeId)));
8623
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8624
+ if (configuration) {
8625
+ baseOptions = configuration.baseOptions;
8626
+ }
8627
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8628
+ localVarHeaderParameter = {};
8629
+ localVarQueryParameter = {};
8630
+ // authentication oAuth2AuthCode required
8631
+ // oauth required
8632
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8633
+ case 1:
8634
+ // authentication oAuth2AuthCode required
8635
+ // oauth required
8636
+ _a.sent();
8637
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8638
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8639
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8640
+ return [2 /*return*/, {
8641
+ url: common_1.toPathString(localVarUrlObj),
8642
+ options: localVarRequestOptions,
8643
+ }];
8644
+ }
8645
+ });
8646
+ });
8647
+ },
8648
+ /**
8649
+ *
8650
+ * @summary Create a new ScenarioRunResult in the Organization
8651
+ * @param {string} organizationId the Organization identifier
8652
+ * @param {string} workspaceId the Workspace identifier
8653
+ * @param {string} scenarioId the Scenario identifier
8654
+ * @param {string} scenariorunId the ScenarioRun identifier
8655
+ * @param {string} probeId the Probe identifier
8656
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
8657
+ * @param {*} [options] Override http request option.
8658
+ * @throws {RequiredError}
8659
+ */
8660
+ sendScenarioRunResult: function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options) {
8661
+ if (options === void 0) { options = {}; }
8662
+ return __awaiter(_this, void 0, void 0, function () {
8663
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8664
+ return __generator(this, function (_a) {
8665
+ switch (_a.label) {
8666
+ case 0:
8667
+ // verify required parameter 'organizationId' is not null or undefined
8668
+ common_1.assertParamExists('sendScenarioRunResult', 'organizationId', organizationId);
8669
+ // verify required parameter 'workspaceId' is not null or undefined
8670
+ common_1.assertParamExists('sendScenarioRunResult', 'workspaceId', workspaceId);
8671
+ // verify required parameter 'scenarioId' is not null or undefined
8672
+ common_1.assertParamExists('sendScenarioRunResult', 'scenarioId', scenarioId);
8673
+ // verify required parameter 'scenariorunId' is not null or undefined
8674
+ common_1.assertParamExists('sendScenarioRunResult', 'scenariorunId', scenariorunId);
8675
+ // verify required parameter 'probeId' is not null or undefined
8676
+ common_1.assertParamExists('sendScenarioRunResult', 'probeId', probeId);
8677
+ // verify required parameter 'requestBody' is not null or undefined
8678
+ common_1.assertParamExists('sendScenarioRunResult', 'requestBody', requestBody);
8679
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/{scenariorun_id}/probes/{probe_id}"
8680
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8681
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
8682
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
8683
+ .replace("{" + "scenariorun_id" + "}", encodeURIComponent(String(scenariorunId)))
8684
+ .replace("{" + "probe_id" + "}", encodeURIComponent(String(probeId)));
8685
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8686
+ if (configuration) {
8687
+ baseOptions = configuration.baseOptions;
8688
+ }
8689
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8690
+ localVarHeaderParameter = {};
8691
+ localVarQueryParameter = {};
8692
+ // authentication oAuth2AuthCode required
8693
+ // oauth required
8694
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8695
+ case 1:
8696
+ // authentication oAuth2AuthCode required
8697
+ // oauth required
8698
+ _a.sent();
8699
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8700
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8701
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8702
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8703
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
8704
+ return [2 /*return*/, {
8705
+ url: common_1.toPathString(localVarUrlObj),
8706
+ options: localVarRequestOptions,
8707
+ }];
8708
+ }
8709
+ });
8710
+ });
8711
+ },
8712
+ };
8713
+ };
8714
+ /**
8715
+ * ScenariorunresultApi - functional programming interface
8716
+ * @export
8717
+ */
8718
+ exports.ScenariorunresultApiFp = function (configuration) {
8719
+ var localVarAxiosParamCreator = exports.ScenariorunresultApiAxiosParamCreator(configuration);
8720
+ return {
8721
+ /**
8722
+ *
8723
+ * @summary Get a ScenarioRunResult in the Organization
8724
+ * @param {string} organizationId the Organization identifier
8725
+ * @param {string} workspaceId the Workspace identifier
8726
+ * @param {string} scenarioId the Scenario identifier
8727
+ * @param {string} scenariorunId the ScenarioRun identifier
8728
+ * @param {string} probeId the Probe identifier
8729
+ * @param {*} [options] Override http request option.
8730
+ * @throws {RequiredError}
8731
+ */
8732
+ getScenarioRunResult: function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, options) {
8733
+ return __awaiter(this, void 0, void 0, function () {
8734
+ var localVarAxiosArgs;
8735
+ return __generator(this, function (_a) {
8736
+ switch (_a.label) {
8737
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options)];
8738
+ case 1:
8739
+ localVarAxiosArgs = _a.sent();
8740
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8741
+ }
8742
+ });
8743
+ });
8744
+ },
8745
+ /**
8746
+ *
8747
+ * @summary Create a new ScenarioRunResult in the Organization
8748
+ * @param {string} organizationId the Organization identifier
8749
+ * @param {string} workspaceId the Workspace identifier
8750
+ * @param {string} scenarioId the Scenario identifier
8751
+ * @param {string} scenariorunId the ScenarioRun identifier
8752
+ * @param {string} probeId the Probe identifier
8753
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
8754
+ * @param {*} [options] Override http request option.
8755
+ * @throws {RequiredError}
8756
+ */
8757
+ sendScenarioRunResult: function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options) {
8758
+ return __awaiter(this, void 0, void 0, function () {
8759
+ var localVarAxiosArgs;
8760
+ return __generator(this, function (_a) {
8761
+ switch (_a.label) {
8762
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options)];
8763
+ case 1:
8764
+ localVarAxiosArgs = _a.sent();
8765
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8766
+ }
8767
+ });
8768
+ });
8769
+ },
8770
+ };
8771
+ };
8772
+ /**
8773
+ * ScenariorunresultApi - factory interface
8774
+ * @export
8775
+ */
8776
+ exports.ScenariorunresultApiFactory = function (configuration, basePath, axios) {
8777
+ var localVarFp = exports.ScenariorunresultApiFp(configuration);
8778
+ return {
8779
+ /**
8780
+ *
8781
+ * @summary Get a ScenarioRunResult in the Organization
8782
+ * @param {string} organizationId the Organization identifier
8783
+ * @param {string} workspaceId the Workspace identifier
8784
+ * @param {string} scenarioId the Scenario identifier
8785
+ * @param {string} scenariorunId the ScenarioRun identifier
8786
+ * @param {string} probeId the Probe identifier
8787
+ * @param {*} [options] Override http request option.
8788
+ * @throws {RequiredError}
8789
+ */
8790
+ getScenarioRunResult: function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, options) {
8791
+ return localVarFp.getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options).then(function (request) { return request(axios, basePath); });
8792
+ },
8793
+ /**
8794
+ *
8795
+ * @summary Create a new ScenarioRunResult in the Organization
8796
+ * @param {string} organizationId the Organization identifier
8797
+ * @param {string} workspaceId the Workspace identifier
8798
+ * @param {string} scenarioId the Scenario identifier
8799
+ * @param {string} scenariorunId the ScenarioRun identifier
8800
+ * @param {string} probeId the Probe identifier
8801
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
8802
+ * @param {*} [options] Override http request option.
8803
+ * @throws {RequiredError}
8804
+ */
8805
+ sendScenarioRunResult: function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options) {
8806
+ return localVarFp.sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options).then(function (request) { return request(axios, basePath); });
8807
+ },
8808
+ };
8809
+ };
8810
+ /**
8811
+ * ScenariorunresultApi - object-oriented interface
8812
+ * @export
8813
+ * @class ScenariorunresultApi
8814
+ * @extends {BaseAPI}
8815
+ */
8816
+ var ScenariorunresultApi = /** @class */ (function (_super) {
8817
+ __extends(ScenariorunresultApi, _super);
8818
+ function ScenariorunresultApi() {
8819
+ return _super !== null && _super.apply(this, arguments) || this;
8820
+ }
8821
+ /**
8822
+ *
8823
+ * @summary Get a ScenarioRunResult in the Organization
8824
+ * @param {string} organizationId the Organization identifier
8825
+ * @param {string} workspaceId the Workspace identifier
8826
+ * @param {string} scenarioId the Scenario identifier
8827
+ * @param {string} scenariorunId the ScenarioRun identifier
8828
+ * @param {string} probeId the Probe identifier
8829
+ * @param {*} [options] Override http request option.
8830
+ * @throws {RequiredError}
8831
+ * @memberof ScenariorunresultApi
8832
+ */
8833
+ ScenariorunresultApi.prototype.getScenarioRunResult = function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, options) {
8834
+ var _this = this;
8835
+ return exports.ScenariorunresultApiFp(this.configuration).getScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8836
+ };
8837
+ /**
8838
+ *
8839
+ * @summary Create a new ScenarioRunResult in the Organization
8840
+ * @param {string} organizationId the Organization identifier
8841
+ * @param {string} workspaceId the Workspace identifier
8842
+ * @param {string} scenarioId the Scenario identifier
8843
+ * @param {string} scenariorunId the ScenarioRun identifier
8844
+ * @param {string} probeId the Probe identifier
8845
+ * @param {{ [key: string]: string; }} requestBody the ScenarioRunResult to register
8846
+ * @param {*} [options] Override http request option.
8847
+ * @throws {RequiredError}
8848
+ * @memberof ScenariorunresultApi
8849
+ */
8850
+ ScenariorunresultApi.prototype.sendScenarioRunResult = function (organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options) {
8851
+ var _this = this;
8852
+ return exports.ScenariorunresultApiFp(this.configuration).sendScenarioRunResult(organizationId, workspaceId, scenarioId, scenariorunId, probeId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
8853
+ };
8854
+ return ScenariorunresultApi;
8855
+ }(base_1.BaseAPI));
8856
+ exports.ScenariorunresultApi = ScenariorunresultApi;
7227
8857
  /**
7228
8858
  * SolutionApi - axios parameter creator
7229
8859
  * @export
@@ -7274,7 +8904,59 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7274
8904
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
7275
8905
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7276
8906
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7277
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(runTemplateParameterGroup, localVarRequestOptions, configuration);
8907
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(runTemplateParameterGroup, localVarRequestOptions, configuration);
8908
+ return [2 /*return*/, {
8909
+ url: common_1.toPathString(localVarUrlObj),
8910
+ options: localVarRequestOptions,
8911
+ }];
8912
+ }
8913
+ });
8914
+ });
8915
+ },
8916
+ /**
8917
+ *
8918
+ * @summary Add Parameters. Any item with the same ID will be overwritten
8919
+ * @param {string} organizationId the Organization identifier
8920
+ * @param {string} solutionId the Solution identifier
8921
+ * @param {Array<RunTemplateParameter>} runTemplateParameter the Parameters
8922
+ * @param {*} [options] Override http request option.
8923
+ * @throws {RequiredError}
8924
+ */
8925
+ addOrReplaceParameters: function (organizationId, solutionId, runTemplateParameter, options) {
8926
+ if (options === void 0) { options = {}; }
8927
+ return __awaiter(_this, void 0, void 0, function () {
8928
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8929
+ return __generator(this, function (_a) {
8930
+ switch (_a.label) {
8931
+ case 0:
8932
+ // verify required parameter 'organizationId' is not null or undefined
8933
+ common_1.assertParamExists('addOrReplaceParameters', 'organizationId', organizationId);
8934
+ // verify required parameter 'solutionId' is not null or undefined
8935
+ common_1.assertParamExists('addOrReplaceParameters', 'solutionId', solutionId);
8936
+ // verify required parameter 'runTemplateParameter' is not null or undefined
8937
+ common_1.assertParamExists('addOrReplaceParameters', 'runTemplateParameter', runTemplateParameter);
8938
+ localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/parameters"
8939
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8940
+ .replace("{" + "solution_id" + "}", encodeURIComponent(String(solutionId)));
8941
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8942
+ if (configuration) {
8943
+ baseOptions = configuration.baseOptions;
8944
+ }
8945
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8946
+ localVarHeaderParameter = {};
8947
+ localVarQueryParameter = {};
8948
+ // authentication oAuth2AuthCode required
8949
+ // oauth required
8950
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8951
+ case 1:
8952
+ // authentication oAuth2AuthCode required
8953
+ // oauth required
8954
+ _a.sent();
8955
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8956
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8957
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8958
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8959
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(runTemplateParameter, localVarRequestOptions, configuration);
7278
8960
  return [2 /*return*/, {
7279
8961
  url: common_1.toPathString(localVarUrlObj),
7280
8962
  options: localVarRequestOptions,
@@ -7285,14 +8967,14 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7285
8967
  },
7286
8968
  /**
7287
8969
  *
7288
- * @summary Add Parameters. Any item with the same ID will be overwritten
8970
+ * @summary Add Run Templates. Any item with the same ID will be overwritten
7289
8971
  * @param {string} organizationId the Organization identifier
7290
8972
  * @param {string} solutionId the Solution identifier
7291
- * @param {Array<RunTemplateParameter>} runTemplateParameter the Parameters
8973
+ * @param {Array<RunTemplate>} runTemplate the Run Templates
7292
8974
  * @param {*} [options] Override http request option.
7293
8975
  * @throws {RequiredError}
7294
8976
  */
7295
- addOrReplaceParameters: function (organizationId, solutionId, runTemplateParameter, options) {
8977
+ addOrReplaceRunTemplates: function (organizationId, solutionId, runTemplate, options) {
7296
8978
  if (options === void 0) { options = {}; }
7297
8979
  return __awaiter(_this, void 0, void 0, function () {
7298
8980
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -7300,12 +8982,12 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7300
8982
  switch (_a.label) {
7301
8983
  case 0:
7302
8984
  // verify required parameter 'organizationId' is not null or undefined
7303
- common_1.assertParamExists('addOrReplaceParameters', 'organizationId', organizationId);
8985
+ common_1.assertParamExists('addOrReplaceRunTemplates', 'organizationId', organizationId);
7304
8986
  // verify required parameter 'solutionId' is not null or undefined
7305
- common_1.assertParamExists('addOrReplaceParameters', 'solutionId', solutionId);
7306
- // verify required parameter 'runTemplateParameter' is not null or undefined
7307
- common_1.assertParamExists('addOrReplaceParameters', 'runTemplateParameter', runTemplateParameter);
7308
- localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/parameters"
8987
+ common_1.assertParamExists('addOrReplaceRunTemplates', 'solutionId', solutionId);
8988
+ // verify required parameter 'runTemplate' is not null or undefined
8989
+ common_1.assertParamExists('addOrReplaceRunTemplates', 'runTemplate', runTemplate);
8990
+ localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/runTemplates"
7309
8991
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
7310
8992
  .replace("{" + "solution_id" + "}", encodeURIComponent(String(solutionId)));
7311
8993
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7326,7 +9008,7 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7326
9008
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
7327
9009
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7328
9010
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7329
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(runTemplateParameter, localVarRequestOptions, configuration);
9011
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(runTemplate, localVarRequestOptions, configuration);
7330
9012
  return [2 /*return*/, {
7331
9013
  url: common_1.toPathString(localVarUrlObj),
7332
9014
  options: localVarRequestOptions,
@@ -7337,14 +9019,14 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7337
9019
  },
7338
9020
  /**
7339
9021
  *
7340
- * @summary Add Run Templates. Any item with the same ID will be overwritten
9022
+ * @summary Add a control access to the Solution
7341
9023
  * @param {string} organizationId the Organization identifier
7342
9024
  * @param {string} solutionId the Solution identifier
7343
- * @param {Array<RunTemplate>} runTemplate the Run Templates
9025
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
7344
9026
  * @param {*} [options] Override http request option.
7345
9027
  * @throws {RequiredError}
7346
9028
  */
7347
- addOrReplaceRunTemplates: function (organizationId, solutionId, runTemplate, options) {
9029
+ addSolutionAccessControl: function (organizationId, solutionId, solutionAccessControl, options) {
7348
9030
  if (options === void 0) { options = {}; }
7349
9031
  return __awaiter(_this, void 0, void 0, function () {
7350
9032
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -7352,12 +9034,12 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7352
9034
  switch (_a.label) {
7353
9035
  case 0:
7354
9036
  // verify required parameter 'organizationId' is not null or undefined
7355
- common_1.assertParamExists('addOrReplaceRunTemplates', 'organizationId', organizationId);
9037
+ common_1.assertParamExists('addSolutionAccessControl', 'organizationId', organizationId);
7356
9038
  // verify required parameter 'solutionId' is not null or undefined
7357
- common_1.assertParamExists('addOrReplaceRunTemplates', 'solutionId', solutionId);
7358
- // verify required parameter 'runTemplate' is not null or undefined
7359
- common_1.assertParamExists('addOrReplaceRunTemplates', 'runTemplate', runTemplate);
7360
- localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/runTemplates"
9039
+ common_1.assertParamExists('addSolutionAccessControl', 'solutionId', solutionId);
9040
+ // verify required parameter 'solutionAccessControl' is not null or undefined
9041
+ common_1.assertParamExists('addSolutionAccessControl', 'solutionAccessControl', solutionAccessControl);
9042
+ localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/security/access"
7361
9043
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
7362
9044
  .replace("{" + "solution_id" + "}", encodeURIComponent(String(solutionId)));
7363
9045
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7378,7 +9060,7 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7378
9060
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
7379
9061
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7380
9062
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7381
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(runTemplate, localVarRequestOptions, configuration);
9063
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(solutionAccessControl, localVarRequestOptions, configuration);
7382
9064
  return [2 /*return*/, {
7383
9065
  url: common_1.toPathString(localVarUrlObj),
7384
9066
  options: localVarRequestOptions,
@@ -7688,13 +9370,14 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7688
9370
  },
7689
9371
  /**
7690
9372
  *
7691
- * @summary Import a solution
9373
+ * @summary Get a control access for the Solution
7692
9374
  * @param {string} organizationId the Organization identifier
7693
- * @param {Solution} solution the Solution to import
9375
+ * @param {string} solutionId the Solution identifier
9376
+ * @param {string} identityId the User identifier
7694
9377
  * @param {*} [options] Override http request option.
7695
9378
  * @throws {RequiredError}
7696
9379
  */
7697
- importSolution: function (organizationId, solution, options) {
9380
+ getSolutionAccessControl: function (organizationId, solutionId, identityId, options) {
7698
9381
  if (options === void 0) { options = {}; }
7699
9382
  return __awaiter(_this, void 0, void 0, function () {
7700
9383
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -7702,16 +9385,67 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7702
9385
  switch (_a.label) {
7703
9386
  case 0:
7704
9387
  // verify required parameter 'organizationId' is not null or undefined
7705
- common_1.assertParamExists('importSolution', 'organizationId', organizationId);
7706
- // verify required parameter 'solution' is not null or undefined
7707
- common_1.assertParamExists('importSolution', 'solution', solution);
7708
- localVarPath = "/organizations/{organization_id}/solutions/import"
7709
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
9388
+ common_1.assertParamExists('getSolutionAccessControl', 'organizationId', organizationId);
9389
+ // verify required parameter 'solutionId' is not null or undefined
9390
+ common_1.assertParamExists('getSolutionAccessControl', 'solutionId', solutionId);
9391
+ // verify required parameter 'identityId' is not null or undefined
9392
+ common_1.assertParamExists('getSolutionAccessControl', 'identityId', identityId);
9393
+ localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}"
9394
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9395
+ .replace("{" + "solution_id" + "}", encodeURIComponent(String(solutionId)))
9396
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
7710
9397
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7711
9398
  if (configuration) {
7712
9399
  baseOptions = configuration.baseOptions;
7713
9400
  }
7714
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9401
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9402
+ localVarHeaderParameter = {};
9403
+ localVarQueryParameter = {};
9404
+ // authentication oAuth2AuthCode required
9405
+ // oauth required
9406
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9407
+ case 1:
9408
+ // authentication oAuth2AuthCode required
9409
+ // oauth required
9410
+ _a.sent();
9411
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9412
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9413
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9414
+ return [2 /*return*/, {
9415
+ url: common_1.toPathString(localVarUrlObj),
9416
+ options: localVarRequestOptions,
9417
+ }];
9418
+ }
9419
+ });
9420
+ });
9421
+ },
9422
+ /**
9423
+ *
9424
+ * @summary Get the Solution security users list
9425
+ * @param {string} organizationId the Organization identifier
9426
+ * @param {string} solutionId the Solution identifier
9427
+ * @param {*} [options] Override http request option.
9428
+ * @throws {RequiredError}
9429
+ */
9430
+ getSolutionSecurityUsers: function (organizationId, solutionId, options) {
9431
+ if (options === void 0) { options = {}; }
9432
+ return __awaiter(_this, void 0, void 0, function () {
9433
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9434
+ return __generator(this, function (_a) {
9435
+ switch (_a.label) {
9436
+ case 0:
9437
+ // verify required parameter 'organizationId' is not null or undefined
9438
+ common_1.assertParamExists('getSolutionSecurityUsers', 'organizationId', organizationId);
9439
+ // verify required parameter 'solutionId' is not null or undefined
9440
+ common_1.assertParamExists('getSolutionSecurityUsers', 'solutionId', solutionId);
9441
+ localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/security/users"
9442
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9443
+ .replace("{" + "solution_id" + "}", encodeURIComponent(String(solutionId)));
9444
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9445
+ if (configuration) {
9446
+ baseOptions = configuration.baseOptions;
9447
+ }
9448
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
7715
9449
  localVarHeaderParameter = {};
7716
9450
  localVarQueryParameter = {};
7717
9451
  // authentication oAuth2AuthCode required
@@ -7721,11 +9455,9 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7721
9455
  // authentication oAuth2AuthCode required
7722
9456
  // oauth required
7723
9457
  _a.sent();
7724
- localVarHeaderParameter['Content-Type'] = 'application/json';
7725
9458
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
7726
9459
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7727
9460
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7728
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(solution, localVarRequestOptions, configuration);
7729
9461
  return [2 /*return*/, {
7730
9462
  url: common_1.toPathString(localVarUrlObj),
7731
9463
  options: localVarRequestOptions,
@@ -7875,6 +9607,57 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7875
9607
  });
7876
9608
  });
7877
9609
  },
9610
+ /**
9611
+ *
9612
+ * @summary Remove the specified access from the given Organization Solution
9613
+ * @param {string} organizationId the Organization identifier
9614
+ * @param {string} solutionId the Solution identifier
9615
+ * @param {string} identityId the User identifier
9616
+ * @param {*} [options] Override http request option.
9617
+ * @throws {RequiredError}
9618
+ */
9619
+ removeSolutionAccessControl: function (organizationId, solutionId, identityId, options) {
9620
+ if (options === void 0) { options = {}; }
9621
+ return __awaiter(_this, void 0, void 0, function () {
9622
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9623
+ return __generator(this, function (_a) {
9624
+ switch (_a.label) {
9625
+ case 0:
9626
+ // verify required parameter 'organizationId' is not null or undefined
9627
+ common_1.assertParamExists('removeSolutionAccessControl', 'organizationId', organizationId);
9628
+ // verify required parameter 'solutionId' is not null or undefined
9629
+ common_1.assertParamExists('removeSolutionAccessControl', 'solutionId', solutionId);
9630
+ // verify required parameter 'identityId' is not null or undefined
9631
+ common_1.assertParamExists('removeSolutionAccessControl', 'identityId', identityId);
9632
+ localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}"
9633
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9634
+ .replace("{" + "solution_id" + "}", encodeURIComponent(String(solutionId)))
9635
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
9636
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9637
+ if (configuration) {
9638
+ baseOptions = configuration.baseOptions;
9639
+ }
9640
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9641
+ localVarHeaderParameter = {};
9642
+ localVarQueryParameter = {};
9643
+ // authentication oAuth2AuthCode required
9644
+ // oauth required
9645
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9646
+ case 1:
9647
+ // authentication oAuth2AuthCode required
9648
+ // oauth required
9649
+ _a.sent();
9650
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9651
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9652
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9653
+ return [2 /*return*/, {
9654
+ url: common_1.toPathString(localVarUrlObj),
9655
+ options: localVarRequestOptions,
9656
+ }];
9657
+ }
9658
+ });
9659
+ });
9660
+ },
7878
9661
  /**
7879
9662
  *
7880
9663
  * @summary Update a solution
@@ -7927,6 +9710,62 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7927
9710
  });
7928
9711
  });
7929
9712
  },
9713
+ /**
9714
+ *
9715
+ * @summary Update the specified access to User for a Solution
9716
+ * @param {string} organizationId the Organization identifier
9717
+ * @param {string} solutionId the Solution identifier
9718
+ * @param {string} identityId the User identifier
9719
+ * @param {SolutionRole} solutionRole The new Solution Access Control
9720
+ * @param {*} [options] Override http request option.
9721
+ * @throws {RequiredError}
9722
+ */
9723
+ updateSolutionAccessControl: function (organizationId, solutionId, identityId, solutionRole, options) {
9724
+ if (options === void 0) { options = {}; }
9725
+ return __awaiter(_this, void 0, void 0, function () {
9726
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9727
+ return __generator(this, function (_a) {
9728
+ switch (_a.label) {
9729
+ case 0:
9730
+ // verify required parameter 'organizationId' is not null or undefined
9731
+ common_1.assertParamExists('updateSolutionAccessControl', 'organizationId', organizationId);
9732
+ // verify required parameter 'solutionId' is not null or undefined
9733
+ common_1.assertParamExists('updateSolutionAccessControl', 'solutionId', solutionId);
9734
+ // verify required parameter 'identityId' is not null or undefined
9735
+ common_1.assertParamExists('updateSolutionAccessControl', 'identityId', identityId);
9736
+ // verify required parameter 'solutionRole' is not null or undefined
9737
+ common_1.assertParamExists('updateSolutionAccessControl', 'solutionRole', solutionRole);
9738
+ localVarPath = "/organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id}"
9739
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9740
+ .replace("{" + "solution_id" + "}", encodeURIComponent(String(solutionId)))
9741
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
9742
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9743
+ if (configuration) {
9744
+ baseOptions = configuration.baseOptions;
9745
+ }
9746
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
9747
+ localVarHeaderParameter = {};
9748
+ localVarQueryParameter = {};
9749
+ // authentication oAuth2AuthCode required
9750
+ // oauth required
9751
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9752
+ case 1:
9753
+ // authentication oAuth2AuthCode required
9754
+ // oauth required
9755
+ _a.sent();
9756
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9757
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9758
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9759
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9760
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(solutionRole, localVarRequestOptions, configuration);
9761
+ return [2 /*return*/, {
9762
+ url: common_1.toPathString(localVarUrlObj),
9763
+ options: localVarRequestOptions,
9764
+ }];
9765
+ }
9766
+ });
9767
+ });
9768
+ },
7930
9769
  /**
7931
9770
  *
7932
9771
  * @summary Update the specified Solution Run Template
@@ -8122,6 +9961,28 @@ exports.SolutionApiFp = function (configuration) {
8122
9961
  });
8123
9962
  });
8124
9963
  },
9964
+ /**
9965
+ *
9966
+ * @summary Add a control access to the Solution
9967
+ * @param {string} organizationId the Organization identifier
9968
+ * @param {string} solutionId the Solution identifier
9969
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
9970
+ * @param {*} [options] Override http request option.
9971
+ * @throws {RequiredError}
9972
+ */
9973
+ addSolutionAccessControl: function (organizationId, solutionId, solutionAccessControl, options) {
9974
+ return __awaiter(this, void 0, void 0, function () {
9975
+ var localVarAxiosArgs;
9976
+ return __generator(this, function (_a) {
9977
+ switch (_a.label) {
9978
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options)];
9979
+ case 1:
9980
+ localVarAxiosArgs = _a.sent();
9981
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9982
+ }
9983
+ });
9984
+ });
9985
+ },
8125
9986
  /**
8126
9987
  *
8127
9988
  * @summary Register a new solution
@@ -8233,18 +10094,82 @@ exports.SolutionApiFp = function (configuration) {
8233
10094
  },
8234
10095
  /**
8235
10096
  *
8236
- * @summary Get the details of a solution
10097
+ * @summary Get the details of a solution
10098
+ * @param {string} organizationId the Organization identifier
10099
+ * @param {string} solutionId the Solution identifier
10100
+ * @param {*} [options] Override http request option.
10101
+ * @throws {RequiredError}
10102
+ */
10103
+ findSolutionById: function (organizationId, solutionId, options) {
10104
+ return __awaiter(this, void 0, void 0, function () {
10105
+ var localVarAxiosArgs;
10106
+ return __generator(this, function (_a) {
10107
+ switch (_a.label) {
10108
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findSolutionById(organizationId, solutionId, options)];
10109
+ case 1:
10110
+ localVarAxiosArgs = _a.sent();
10111
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10112
+ }
10113
+ });
10114
+ });
10115
+ },
10116
+ /**
10117
+ *
10118
+ * @summary Get a control access for the Solution
10119
+ * @param {string} organizationId the Organization identifier
10120
+ * @param {string} solutionId the Solution identifier
10121
+ * @param {string} identityId the User identifier
10122
+ * @param {*} [options] Override http request option.
10123
+ * @throws {RequiredError}
10124
+ */
10125
+ getSolutionAccessControl: function (organizationId, solutionId, identityId, options) {
10126
+ return __awaiter(this, void 0, void 0, function () {
10127
+ var localVarAxiosArgs;
10128
+ return __generator(this, function (_a) {
10129
+ switch (_a.label) {
10130
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSolutionAccessControl(organizationId, solutionId, identityId, options)];
10131
+ case 1:
10132
+ localVarAxiosArgs = _a.sent();
10133
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10134
+ }
10135
+ });
10136
+ });
10137
+ },
10138
+ /**
10139
+ *
10140
+ * @summary Get the Solution security users list
10141
+ * @param {string} organizationId the Organization identifier
10142
+ * @param {string} solutionId the Solution identifier
10143
+ * @param {*} [options] Override http request option.
10144
+ * @throws {RequiredError}
10145
+ */
10146
+ getSolutionSecurityUsers: function (organizationId, solutionId, options) {
10147
+ return __awaiter(this, void 0, void 0, function () {
10148
+ var localVarAxiosArgs;
10149
+ return __generator(this, function (_a) {
10150
+ switch (_a.label) {
10151
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSolutionSecurityUsers(organizationId, solutionId, options)];
10152
+ case 1:
10153
+ localVarAxiosArgs = _a.sent();
10154
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10155
+ }
10156
+ });
10157
+ });
10158
+ },
10159
+ /**
10160
+ *
10161
+ * @summary Remove all Run Templates from the Solution specified
8237
10162
  * @param {string} organizationId the Organization identifier
8238
10163
  * @param {string} solutionId the Solution identifier
8239
10164
  * @param {*} [options] Override http request option.
8240
10165
  * @throws {RequiredError}
8241
10166
  */
8242
- findSolutionById: function (organizationId, solutionId, options) {
10167
+ removeAllRunTemplates: function (organizationId, solutionId, options) {
8243
10168
  return __awaiter(this, void 0, void 0, function () {
8244
10169
  var localVarAxiosArgs;
8245
10170
  return __generator(this, function (_a) {
8246
10171
  switch (_a.label) {
8247
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findSolutionById(organizationId, solutionId, options)];
10172
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllRunTemplates(organizationId, solutionId, options)];
8248
10173
  case 1:
8249
10174
  localVarAxiosArgs = _a.sent();
8250
10175
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8254,18 +10179,18 @@ exports.SolutionApiFp = function (configuration) {
8254
10179
  },
8255
10180
  /**
8256
10181
  *
8257
- * @summary Import a solution
10182
+ * @summary Remove all Parameter Groups from the Solution specified
8258
10183
  * @param {string} organizationId the Organization identifier
8259
- * @param {Solution} solution the Solution to import
10184
+ * @param {string} solutionId the Solution identifier
8260
10185
  * @param {*} [options] Override http request option.
8261
10186
  * @throws {RequiredError}
8262
10187
  */
8263
- importSolution: function (organizationId, solution, options) {
10188
+ removeAllSolutionParameterGroups: function (organizationId, solutionId, options) {
8264
10189
  return __awaiter(this, void 0, void 0, function () {
8265
10190
  var localVarAxiosArgs;
8266
10191
  return __generator(this, function (_a) {
8267
10192
  switch (_a.label) {
8268
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importSolution(organizationId, solution, options)];
10193
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllSolutionParameterGroups(organizationId, solutionId, options)];
8269
10194
  case 1:
8270
10195
  localVarAxiosArgs = _a.sent();
8271
10196
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8275,18 +10200,18 @@ exports.SolutionApiFp = function (configuration) {
8275
10200
  },
8276
10201
  /**
8277
10202
  *
8278
- * @summary Remove all Run Templates from the Solution specified
10203
+ * @summary Remove all Parameters from the Solution specified
8279
10204
  * @param {string} organizationId the Organization identifier
8280
10205
  * @param {string} solutionId the Solution identifier
8281
10206
  * @param {*} [options] Override http request option.
8282
10207
  * @throws {RequiredError}
8283
10208
  */
8284
- removeAllRunTemplates: function (organizationId, solutionId, options) {
10209
+ removeAllSolutionParameters: function (organizationId, solutionId, options) {
8285
10210
  return __awaiter(this, void 0, void 0, function () {
8286
10211
  var localVarAxiosArgs;
8287
10212
  return __generator(this, function (_a) {
8288
10213
  switch (_a.label) {
8289
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllRunTemplates(organizationId, solutionId, options)];
10214
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllSolutionParameters(organizationId, solutionId, options)];
8290
10215
  case 1:
8291
10216
  localVarAxiosArgs = _a.sent();
8292
10217
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8296,18 +10221,19 @@ exports.SolutionApiFp = function (configuration) {
8296
10221
  },
8297
10222
  /**
8298
10223
  *
8299
- * @summary Remove all Parameter Groups from the Solution specified
10224
+ * @summary Remove the specified access from the given Organization Solution
8300
10225
  * @param {string} organizationId the Organization identifier
8301
10226
  * @param {string} solutionId the Solution identifier
10227
+ * @param {string} identityId the User identifier
8302
10228
  * @param {*} [options] Override http request option.
8303
10229
  * @throws {RequiredError}
8304
10230
  */
8305
- removeAllSolutionParameterGroups: function (organizationId, solutionId, options) {
10231
+ removeSolutionAccessControl: function (organizationId, solutionId, identityId, options) {
8306
10232
  return __awaiter(this, void 0, void 0, function () {
8307
10233
  var localVarAxiosArgs;
8308
10234
  return __generator(this, function (_a) {
8309
10235
  switch (_a.label) {
8310
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllSolutionParameterGroups(organizationId, solutionId, options)];
10236
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeSolutionAccessControl(organizationId, solutionId, identityId, options)];
8311
10237
  case 1:
8312
10238
  localVarAxiosArgs = _a.sent();
8313
10239
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8317,18 +10243,19 @@ exports.SolutionApiFp = function (configuration) {
8317
10243
  },
8318
10244
  /**
8319
10245
  *
8320
- * @summary Remove all Parameters from the Solution specified
10246
+ * @summary Update a solution
8321
10247
  * @param {string} organizationId the Organization identifier
8322
10248
  * @param {string} solutionId the Solution identifier
10249
+ * @param {Solution} solution the new Solution details.
8323
10250
  * @param {*} [options] Override http request option.
8324
10251
  * @throws {RequiredError}
8325
10252
  */
8326
- removeAllSolutionParameters: function (organizationId, solutionId, options) {
10253
+ updateSolution: function (organizationId, solutionId, solution, options) {
8327
10254
  return __awaiter(this, void 0, void 0, function () {
8328
10255
  var localVarAxiosArgs;
8329
10256
  return __generator(this, function (_a) {
8330
10257
  switch (_a.label) {
8331
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllSolutionParameters(organizationId, solutionId, options)];
10258
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSolution(organizationId, solutionId, solution, options)];
8332
10259
  case 1:
8333
10260
  localVarAxiosArgs = _a.sent();
8334
10261
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8338,19 +10265,20 @@ exports.SolutionApiFp = function (configuration) {
8338
10265
  },
8339
10266
  /**
8340
10267
  *
8341
- * @summary Update a solution
10268
+ * @summary Update the specified access to User for a Solution
8342
10269
  * @param {string} organizationId the Organization identifier
8343
10270
  * @param {string} solutionId the Solution identifier
8344
- * @param {Solution} solution the new Solution details.
10271
+ * @param {string} identityId the User identifier
10272
+ * @param {SolutionRole} solutionRole The new Solution Access Control
8345
10273
  * @param {*} [options] Override http request option.
8346
10274
  * @throws {RequiredError}
8347
10275
  */
8348
- updateSolution: function (organizationId, solutionId, solution, options) {
10276
+ updateSolutionAccessControl: function (organizationId, solutionId, identityId, solutionRole, options) {
8349
10277
  return __awaiter(this, void 0, void 0, function () {
8350
10278
  var localVarAxiosArgs;
8351
10279
  return __generator(this, function (_a) {
8352
10280
  switch (_a.label) {
8353
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSolution(organizationId, solutionId, solution, options)];
10281
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options)];
8354
10282
  case 1:
8355
10283
  localVarAxiosArgs = _a.sent();
8356
10284
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8451,6 +10379,18 @@ exports.SolutionApiFactory = function (configuration, basePath, axios) {
8451
10379
  addOrReplaceRunTemplates: function (organizationId, solutionId, runTemplate, options) {
8452
10380
  return localVarFp.addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options).then(function (request) { return request(axios, basePath); });
8453
10381
  },
10382
+ /**
10383
+ *
10384
+ * @summary Add a control access to the Solution
10385
+ * @param {string} organizationId the Organization identifier
10386
+ * @param {string} solutionId the Solution identifier
10387
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
10388
+ * @param {*} [options] Override http request option.
10389
+ * @throws {RequiredError}
10390
+ */
10391
+ addSolutionAccessControl: function (organizationId, solutionId, solutionAccessControl, options) {
10392
+ return localVarFp.addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options).then(function (request) { return request(axios, basePath); });
10393
+ },
8454
10394
  /**
8455
10395
  *
8456
10396
  * @summary Register a new solution
@@ -8523,14 +10463,26 @@ exports.SolutionApiFactory = function (configuration, basePath, axios) {
8523
10463
  },
8524
10464
  /**
8525
10465
  *
8526
- * @summary Import a solution
10466
+ * @summary Get a control access for the Solution
10467
+ * @param {string} organizationId the Organization identifier
10468
+ * @param {string} solutionId the Solution identifier
10469
+ * @param {string} identityId the User identifier
10470
+ * @param {*} [options] Override http request option.
10471
+ * @throws {RequiredError}
10472
+ */
10473
+ getSolutionAccessControl: function (organizationId, solutionId, identityId, options) {
10474
+ return localVarFp.getSolutionAccessControl(organizationId, solutionId, identityId, options).then(function (request) { return request(axios, basePath); });
10475
+ },
10476
+ /**
10477
+ *
10478
+ * @summary Get the Solution security users list
8527
10479
  * @param {string} organizationId the Organization identifier
8528
- * @param {Solution} solution the Solution to import
10480
+ * @param {string} solutionId the Solution identifier
8529
10481
  * @param {*} [options] Override http request option.
8530
10482
  * @throws {RequiredError}
8531
10483
  */
8532
- importSolution: function (organizationId, solution, options) {
8533
- return localVarFp.importSolution(organizationId, solution, options).then(function (request) { return request(axios, basePath); });
10484
+ getSolutionSecurityUsers: function (organizationId, solutionId, options) {
10485
+ return localVarFp.getSolutionSecurityUsers(organizationId, solutionId, options).then(function (request) { return request(axios, basePath); });
8534
10486
  },
8535
10487
  /**
8536
10488
  *
@@ -8565,6 +10517,18 @@ exports.SolutionApiFactory = function (configuration, basePath, axios) {
8565
10517
  removeAllSolutionParameters: function (organizationId, solutionId, options) {
8566
10518
  return localVarFp.removeAllSolutionParameters(organizationId, solutionId, options).then(function (request) { return request(axios, basePath); });
8567
10519
  },
10520
+ /**
10521
+ *
10522
+ * @summary Remove the specified access from the given Organization Solution
10523
+ * @param {string} organizationId the Organization identifier
10524
+ * @param {string} solutionId the Solution identifier
10525
+ * @param {string} identityId the User identifier
10526
+ * @param {*} [options] Override http request option.
10527
+ * @throws {RequiredError}
10528
+ */
10529
+ removeSolutionAccessControl: function (organizationId, solutionId, identityId, options) {
10530
+ return localVarFp.removeSolutionAccessControl(organizationId, solutionId, identityId, options).then(function (request) { return request(axios, basePath); });
10531
+ },
8568
10532
  /**
8569
10533
  *
8570
10534
  * @summary Update a solution
@@ -8577,6 +10541,19 @@ exports.SolutionApiFactory = function (configuration, basePath, axios) {
8577
10541
  updateSolution: function (organizationId, solutionId, solution, options) {
8578
10542
  return localVarFp.updateSolution(organizationId, solutionId, solution, options).then(function (request) { return request(axios, basePath); });
8579
10543
  },
10544
+ /**
10545
+ *
10546
+ * @summary Update the specified access to User for a Solution
10547
+ * @param {string} organizationId the Organization identifier
10548
+ * @param {string} solutionId the Solution identifier
10549
+ * @param {string} identityId the User identifier
10550
+ * @param {SolutionRole} solutionRole The new Solution Access Control
10551
+ * @param {*} [options] Override http request option.
10552
+ * @throws {RequiredError}
10553
+ */
10554
+ updateSolutionAccessControl: function (organizationId, solutionId, identityId, solutionRole, options) {
10555
+ return localVarFp.updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options).then(function (request) { return request(axios, basePath); });
10556
+ },
8580
10557
  /**
8581
10558
  *
8582
10559
  * @summary Update the specified Solution Run Template
@@ -8660,6 +10637,20 @@ var SolutionApi = /** @class */ (function (_super) {
8660
10637
  var _this = this;
8661
10638
  return exports.SolutionApiFp(this.configuration).addOrReplaceRunTemplates(organizationId, solutionId, runTemplate, options).then(function (request) { return request(_this.axios, _this.basePath); });
8662
10639
  };
10640
+ /**
10641
+ *
10642
+ * @summary Add a control access to the Solution
10643
+ * @param {string} organizationId the Organization identifier
10644
+ * @param {string} solutionId the Solution identifier
10645
+ * @param {SolutionAccessControl} solutionAccessControl the new Solution security access to add.
10646
+ * @param {*} [options] Override http request option.
10647
+ * @throws {RequiredError}
10648
+ * @memberof SolutionApi
10649
+ */
10650
+ SolutionApi.prototype.addSolutionAccessControl = function (organizationId, solutionId, solutionAccessControl, options) {
10651
+ var _this = this;
10652
+ return exports.SolutionApiFp(this.configuration).addSolutionAccessControl(organizationId, solutionId, solutionAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
10653
+ };
8663
10654
  /**
8664
10655
  *
8665
10656
  * @summary Register a new solution
@@ -8744,16 +10735,30 @@ var SolutionApi = /** @class */ (function (_super) {
8744
10735
  };
8745
10736
  /**
8746
10737
  *
8747
- * @summary Import a solution
10738
+ * @summary Get a control access for the Solution
10739
+ * @param {string} organizationId the Organization identifier
10740
+ * @param {string} solutionId the Solution identifier
10741
+ * @param {string} identityId the User identifier
10742
+ * @param {*} [options] Override http request option.
10743
+ * @throws {RequiredError}
10744
+ * @memberof SolutionApi
10745
+ */
10746
+ SolutionApi.prototype.getSolutionAccessControl = function (organizationId, solutionId, identityId, options) {
10747
+ var _this = this;
10748
+ return exports.SolutionApiFp(this.configuration).getSolutionAccessControl(organizationId, solutionId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10749
+ };
10750
+ /**
10751
+ *
10752
+ * @summary Get the Solution security users list
8748
10753
  * @param {string} organizationId the Organization identifier
8749
- * @param {Solution} solution the Solution to import
10754
+ * @param {string} solutionId the Solution identifier
8750
10755
  * @param {*} [options] Override http request option.
8751
10756
  * @throws {RequiredError}
8752
10757
  * @memberof SolutionApi
8753
10758
  */
8754
- SolutionApi.prototype.importSolution = function (organizationId, solution, options) {
10759
+ SolutionApi.prototype.getSolutionSecurityUsers = function (organizationId, solutionId, options) {
8755
10760
  var _this = this;
8756
- return exports.SolutionApiFp(this.configuration).importSolution(organizationId, solution, options).then(function (request) { return request(_this.axios, _this.basePath); });
10761
+ return exports.SolutionApiFp(this.configuration).getSolutionSecurityUsers(organizationId, solutionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8757
10762
  };
8758
10763
  /**
8759
10764
  *
@@ -8794,6 +10799,20 @@ var SolutionApi = /** @class */ (function (_super) {
8794
10799
  var _this = this;
8795
10800
  return exports.SolutionApiFp(this.configuration).removeAllSolutionParameters(organizationId, solutionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8796
10801
  };
10802
+ /**
10803
+ *
10804
+ * @summary Remove the specified access from the given Organization Solution
10805
+ * @param {string} organizationId the Organization identifier
10806
+ * @param {string} solutionId the Solution identifier
10807
+ * @param {string} identityId the User identifier
10808
+ * @param {*} [options] Override http request option.
10809
+ * @throws {RequiredError}
10810
+ * @memberof SolutionApi
10811
+ */
10812
+ SolutionApi.prototype.removeSolutionAccessControl = function (organizationId, solutionId, identityId, options) {
10813
+ var _this = this;
10814
+ return exports.SolutionApiFp(this.configuration).removeSolutionAccessControl(organizationId, solutionId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10815
+ };
8797
10816
  /**
8798
10817
  *
8799
10818
  * @summary Update a solution
@@ -8808,6 +10827,21 @@ var SolutionApi = /** @class */ (function (_super) {
8808
10827
  var _this = this;
8809
10828
  return exports.SolutionApiFp(this.configuration).updateSolution(organizationId, solutionId, solution, options).then(function (request) { return request(_this.axios, _this.basePath); });
8810
10829
  };
10830
+ /**
10831
+ *
10832
+ * @summary Update the specified access to User for a Solution
10833
+ * @param {string} organizationId the Organization identifier
10834
+ * @param {string} solutionId the Solution identifier
10835
+ * @param {string} identityId the User identifier
10836
+ * @param {SolutionRole} solutionRole The new Solution Access Control
10837
+ * @param {*} [options] Override http request option.
10838
+ * @throws {RequiredError}
10839
+ * @memberof SolutionApi
10840
+ */
10841
+ SolutionApi.prototype.updateSolutionAccessControl = function (organizationId, solutionId, identityId, solutionRole, options) {
10842
+ var _this = this;
10843
+ return exports.SolutionApiFp(this.configuration).updateSolutionAccessControl(organizationId, solutionId, identityId, solutionRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
10844
+ };
8811
10845
  /**
8812
10846
  *
8813
10847
  * @summary Update the specified Solution Run Template
@@ -9064,7 +11098,7 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
9064
11098
  });
9065
11099
  },
9066
11100
  /**
9067
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
11101
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
9068
11102
  * @summary Create a new graph
9069
11103
  * @param {string} organizationId the Organization identifier
9070
11104
  * @param {string} graphId the Graph Identifier
@@ -9364,54 +11398,6 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
9364
11398
  });
9365
11399
  });
9366
11400
  },
9367
- /**
9368
- * Import a new version of a twin graph
9369
- * @summary Import a new version of a twin graph
9370
- * @param {string} organizationId the Organization identifier
9371
- * @param {TwinGraphImport} twinGraphImport the graph to import
9372
- * @param {*} [options] Override http request option.
9373
- * @throws {RequiredError}
9374
- */
9375
- importGraph: function (organizationId, twinGraphImport, options) {
9376
- if (options === void 0) { options = {}; }
9377
- return __awaiter(_this, void 0, void 0, function () {
9378
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9379
- return __generator(this, function (_a) {
9380
- switch (_a.label) {
9381
- case 0:
9382
- // verify required parameter 'organizationId' is not null or undefined
9383
- common_1.assertParamExists('importGraph', 'organizationId', organizationId);
9384
- // verify required parameter 'twinGraphImport' is not null or undefined
9385
- common_1.assertParamExists('importGraph', 'twinGraphImport', twinGraphImport);
9386
- localVarPath = "/organizations/{organization_id}/twingraph/import"
9387
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
9388
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9389
- if (configuration) {
9390
- baseOptions = configuration.baseOptions;
9391
- }
9392
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9393
- localVarHeaderParameter = {};
9394
- localVarQueryParameter = {};
9395
- // authentication oAuth2AuthCode required
9396
- // oauth required
9397
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9398
- case 1:
9399
- // authentication oAuth2AuthCode required
9400
- // oauth required
9401
- _a.sent();
9402
- localVarHeaderParameter['Content-Type'] = 'application/json';
9403
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9404
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9405
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9406
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(twinGraphImport, localVarRequestOptions, configuration);
9407
- return [2 /*return*/, {
9408
- url: common_1.toPathString(localVarUrlObj),
9409
- options: localVarRequestOptions,
9410
- }];
9411
- }
9412
- });
9413
- });
9414
- },
9415
11401
  /**
9416
11402
  * Get the status of a job
9417
11403
  * @summary Get the status of a job
@@ -9718,7 +11704,7 @@ exports.TwingraphApiFp = function (configuration) {
9718
11704
  });
9719
11705
  },
9720
11706
  /**
9721
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
11707
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
9722
11708
  * @summary Create a new graph
9723
11709
  * @param {string} organizationId the Organization identifier
9724
11710
  * @param {string} graphId the Graph Identifier
@@ -9847,27 +11833,6 @@ exports.TwingraphApiFp = function (configuration) {
9847
11833
  });
9848
11834
  });
9849
11835
  },
9850
- /**
9851
- * Import a new version of a twin graph
9852
- * @summary Import a new version of a twin graph
9853
- * @param {string} organizationId the Organization identifier
9854
- * @param {TwinGraphImport} twinGraphImport the graph to import
9855
- * @param {*} [options] Override http request option.
9856
- * @throws {RequiredError}
9857
- */
9858
- importGraph: function (organizationId, twinGraphImport, options) {
9859
- return __awaiter(this, void 0, void 0, function () {
9860
- var localVarAxiosArgs;
9861
- return __generator(this, function (_a) {
9862
- switch (_a.label) {
9863
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options)];
9864
- case 1:
9865
- localVarAxiosArgs = _a.sent();
9866
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9867
- }
9868
- });
9869
- });
9870
- },
9871
11836
  /**
9872
11837
  * Get the status of a job
9873
11838
  * @summary Get the status of a job
@@ -10015,7 +11980,7 @@ exports.TwingraphApiFactory = function (configuration, basePath, axios) {
10015
11980
  return localVarFp.createEntities(organizationId, graphId, type, graphProperties, options).then(function (request) { return request(axios, basePath); });
10016
11981
  },
10017
11982
  /**
10018
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
11983
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
10019
11984
  * @summary Create a new graph
10020
11985
  * @param {string} organizationId the Organization identifier
10021
11986
  * @param {string} graphId the Graph Identifier
@@ -10084,17 +12049,6 @@ exports.TwingraphApiFactory = function (configuration, basePath, axios) {
10084
12049
  getGraphMetaData: function (organizationId, graphId, options) {
10085
12050
  return localVarFp.getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(axios, basePath); });
10086
12051
  },
10087
- /**
10088
- * Import a new version of a twin graph
10089
- * @summary Import a new version of a twin graph
10090
- * @param {string} organizationId the Organization identifier
10091
- * @param {TwinGraphImport} twinGraphImport the graph to import
10092
- * @param {*} [options] Override http request option.
10093
- * @throws {RequiredError}
10094
- */
10095
- importGraph: function (organizationId, twinGraphImport, options) {
10096
- return localVarFp.importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(axios, basePath); });
10097
- },
10098
12052
  /**
10099
12053
  * Get the status of a job
10100
12054
  * @summary Get the status of a job
@@ -10214,7 +12168,7 @@ var TwingraphApi = /** @class */ (function (_super) {
10214
12168
  return exports.TwingraphApiFp(this.configuration).createEntities(organizationId, graphId, type, graphProperties, options).then(function (request) { return request(_this.axios, _this.basePath); });
10215
12169
  };
10216
12170
  /**
10217
- * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
12171
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you.
10218
12172
  * @summary Create a new graph
10219
12173
  * @param {string} organizationId the Organization identifier
10220
12174
  * @param {string} graphId the Graph Identifier
@@ -10295,19 +12249,6 @@ var TwingraphApi = /** @class */ (function (_super) {
10295
12249
  var _this = this;
10296
12250
  return exports.TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10297
12251
  };
10298
- /**
10299
- * Import a new version of a twin graph
10300
- * @summary Import a new version of a twin graph
10301
- * @param {string} organizationId the Organization identifier
10302
- * @param {TwinGraphImport} twinGraphImport the graph to import
10303
- * @param {*} [options] Override http request option.
10304
- * @throws {RequiredError}
10305
- * @memberof TwingraphApi
10306
- */
10307
- TwingraphApi.prototype.importGraph = function (organizationId, twinGraphImport, options) {
10308
- var _this = this;
10309
- return exports.TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(_this.axios, _this.basePath); });
10310
- };
10311
12252
  /**
10312
12253
  * Get the status of a job
10313
12254
  * @summary Get the status of a job
@@ -11960,54 +13901,6 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
11960
13901
  });
11961
13902
  });
11962
13903
  },
11963
- /**
11964
- *
11965
- * @summary Import a workspace
11966
- * @param {string} organizationId the Organization identifier
11967
- * @param {Workspace} workspace the Workspace to import
11968
- * @param {*} [options] Override http request option.
11969
- * @throws {RequiredError}
11970
- */
11971
- importWorkspace: function (organizationId, workspace, options) {
11972
- if (options === void 0) { options = {}; }
11973
- return __awaiter(_this, void 0, void 0, function () {
11974
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11975
- return __generator(this, function (_a) {
11976
- switch (_a.label) {
11977
- case 0:
11978
- // verify required parameter 'organizationId' is not null or undefined
11979
- common_1.assertParamExists('importWorkspace', 'organizationId', organizationId);
11980
- // verify required parameter 'workspace' is not null or undefined
11981
- common_1.assertParamExists('importWorkspace', 'workspace', workspace);
11982
- localVarPath = "/organizations/{organization_id}/workspaces/import"
11983
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
11984
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11985
- if (configuration) {
11986
- baseOptions = configuration.baseOptions;
11987
- }
11988
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11989
- localVarHeaderParameter = {};
11990
- localVarQueryParameter = {};
11991
- // authentication oAuth2AuthCode required
11992
- // oauth required
11993
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
11994
- case 1:
11995
- // authentication oAuth2AuthCode required
11996
- // oauth required
11997
- _a.sent();
11998
- localVarHeaderParameter['Content-Type'] = 'application/json';
11999
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
12000
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12001
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12002
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspace, localVarRequestOptions, configuration);
12003
- return [2 /*return*/, {
12004
- url: common_1.toPathString(localVarUrlObj),
12005
- options: localVarRequestOptions,
12006
- }];
12007
- }
12008
- });
12009
- });
12010
- },
12011
13904
  /**
12012
13905
  *
12013
13906
  * @summary Remove the specified access from the given Organization Workspace
@@ -12593,27 +14486,6 @@ exports.WorkspaceApiFp = function (configuration) {
12593
14486
  });
12594
14487
  });
12595
14488
  },
12596
- /**
12597
- *
12598
- * @summary Import a workspace
12599
- * @param {string} organizationId the Organization identifier
12600
- * @param {Workspace} workspace the Workspace to import
12601
- * @param {*} [options] Override http request option.
12602
- * @throws {RequiredError}
12603
- */
12604
- importWorkspace: function (organizationId, workspace, options) {
12605
- return __awaiter(this, void 0, void 0, function () {
12606
- var localVarAxiosArgs;
12607
- return __generator(this, function (_a) {
12608
- switch (_a.label) {
12609
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importWorkspace(organizationId, workspace, options)];
12610
- case 1:
12611
- localVarAxiosArgs = _a.sent();
12612
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12613
- }
12614
- });
12615
- });
12616
- },
12617
14489
  /**
12618
14490
  *
12619
14491
  * @summary Remove the specified access from the given Organization Workspace
@@ -12897,17 +14769,6 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
12897
14769
  getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
12898
14770
  return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
12899
14771
  },
12900
- /**
12901
- *
12902
- * @summary Import a workspace
12903
- * @param {string} organizationId the Organization identifier
12904
- * @param {Workspace} workspace the Workspace to import
12905
- * @param {*} [options] Override http request option.
12906
- * @throws {RequiredError}
12907
- */
12908
- importWorkspace: function (organizationId, workspace, options) {
12909
- return localVarFp.importWorkspace(organizationId, workspace, options).then(function (request) { return request(axios, basePath); });
12910
- },
12911
14772
  /**
12912
14773
  *
12913
14774
  * @summary Remove the specified access from the given Organization Workspace
@@ -13173,19 +15034,6 @@ var WorkspaceApi = /** @class */ (function (_super) {
13173
15034
  var _this = this;
13174
15035
  return exports.WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13175
15036
  };
13176
- /**
13177
- *
13178
- * @summary Import a workspace
13179
- * @param {string} organizationId the Organization identifier
13180
- * @param {Workspace} workspace the Workspace to import
13181
- * @param {*} [options] Override http request option.
13182
- * @throws {RequiredError}
13183
- * @memberof WorkspaceApi
13184
- */
13185
- WorkspaceApi.prototype.importWorkspace = function (organizationId, workspace, options) {
13186
- var _this = this;
13187
- return exports.WorkspaceApiFp(this.configuration).importWorkspace(organizationId, workspace, options).then(function (request) { return request(_this.axios, _this.basePath); });
13188
- };
13189
15037
  /**
13190
15038
  *
13191
15039
  * @summary Remove the specified access from the given Organization Workspace