@cosmotech/api-ts 2.4.2-dev → 2.4.5-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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Cosmo Tech Platform API
5
5
  * Cosmo Tech Platform API
6
6
  *
7
- * The version of the OpenAPI document: 2.3.9-rc
7
+ * The version of the OpenAPI document: 2.4.5-private
8
8
  * Contact: platform@cosmotech.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -269,6 +269,12 @@ export interface Dataset {
269
269
  * @memberof Dataset
270
270
  */
271
271
  'ownerId'?: string;
272
+ /**
273
+ * the Organization Id related to this Dataset
274
+ * @type {string}
275
+ * @memberof Dataset
276
+ */
277
+ 'organizationId'?: string;
272
278
  /**
273
279
  * the list of tags
274
280
  * @type {Array<string>}
@@ -326,7 +332,7 @@ export interface DatasetCompatibility {
326
332
  'maximumVersion'?: string;
327
333
  }
328
334
  /**
329
- * a Connector setup
335
+ * the Connector setup bound to a Dataset
330
336
  * @export
331
337
  * @interface DatasetConnector
332
338
  */
@@ -419,6 +425,43 @@ export interface DeleteHistoricalData {
419
425
  */
420
426
  'timeOut'?: number;
421
427
  }
428
+ /**
429
+ *
430
+ * @export
431
+ * @interface GraphProperties
432
+ */
433
+ export interface GraphProperties {
434
+ /**
435
+ * the type of the relationship
436
+ * @type {string}
437
+ * @memberof GraphProperties
438
+ */
439
+ 'type'?: string;
440
+ /**
441
+ * the source node of the relationship
442
+ * @type {string}
443
+ * @memberof GraphProperties
444
+ */
445
+ 'source'?: string;
446
+ /**
447
+ * the target node of the relationship
448
+ * @type {string}
449
+ * @memberof GraphProperties
450
+ */
451
+ 'target'?: string;
452
+ /**
453
+ * the name of the graph data object
454
+ * @type {string}
455
+ * @memberof GraphProperties
456
+ */
457
+ 'name'?: string;
458
+ /**
459
+ * the parameters of the graph data object
460
+ * @type {string}
461
+ * @memberof GraphProperties
462
+ */
463
+ 'params'?: string;
464
+ }
422
465
  /**
423
466
  * an Organization
424
467
  * @export
@@ -1023,6 +1066,12 @@ export interface Scenario {
1023
1066
  * @memberof Scenario
1024
1067
  */
1025
1068
  'runTemplateId'?: string;
1069
+ /**
1070
+ * the associated Organization Id
1071
+ * @type {string}
1072
+ * @memberof Scenario
1073
+ */
1074
+ 'organizationId'?: string;
1026
1075
  /**
1027
1076
  * the associated Workspace Id
1028
1077
  * @type {string}
@@ -1037,16 +1086,16 @@ export interface Scenario {
1037
1086
  'state'?: ScenarioJobState;
1038
1087
  /**
1039
1088
  * the Scenario creation date
1040
- * @type {string}
1089
+ * @type {number}
1041
1090
  * @memberof Scenario
1042
1091
  */
1043
- 'creationDate'?: string;
1092
+ 'creationDate'?: number;
1044
1093
  /**
1045
1094
  * the last time a Scenario was updated
1046
- * @type {string}
1095
+ * @type {number}
1047
1096
  * @memberof Scenario
1048
1097
  */
1049
- 'lastUpdate'?: string;
1098
+ 'lastUpdate'?: number;
1050
1099
  /**
1051
1100
  * the name of the owner
1052
1101
  * @type {string}
@@ -1939,6 +1988,12 @@ export interface Solution {
1939
1988
  * @memberof Solution
1940
1989
  */
1941
1990
  'id'?: string;
1991
+ /**
1992
+ * the Organization unique identifier
1993
+ * @type {string}
1994
+ * @memberof Solution
1995
+ */
1996
+ 'organizationId'?: string;
1942
1997
  /**
1943
1998
  * the Solution key which group Solution versions
1944
1999
  * @type {string}
@@ -2057,6 +2112,44 @@ export const SourceInfoTypeEnum = {
2057
2112
 
2058
2113
  export type SourceInfoTypeEnum = typeof SourceInfoTypeEnum[keyof typeof SourceInfoTypeEnum];
2059
2114
 
2115
+ /**
2116
+ * Processing result
2117
+ * @export
2118
+ * @interface TwinGraphBatchResult
2119
+ */
2120
+ export interface TwinGraphBatchResult {
2121
+ /**
2122
+ *
2123
+ * @type {number}
2124
+ * @memberof TwinGraphBatchResult
2125
+ */
2126
+ 'totalLines': number;
2127
+ /**
2128
+ *
2129
+ * @type {number}
2130
+ * @memberof TwinGraphBatchResult
2131
+ */
2132
+ 'processedLines': number;
2133
+ /**
2134
+ *
2135
+ * @type {Array<string>}
2136
+ * @memberof TwinGraphBatchResult
2137
+ */
2138
+ 'errors': Array<string>;
2139
+ }
2140
+ /**
2141
+ * a twin graph hash
2142
+ * @export
2143
+ * @interface TwinGraphHash
2144
+ */
2145
+ export interface TwinGraphHash {
2146
+ /**
2147
+ * the hash of the graph
2148
+ * @type {string}
2149
+ * @memberof TwinGraphHash
2150
+ */
2151
+ 'hash'?: string;
2152
+ }
2060
2153
  /**
2061
2154
  * a twin graph import info
2062
2155
  * @export
@@ -2120,102 +2213,6 @@ export interface TwinGraphQuery {
2120
2213
  */
2121
2214
  'query': string;
2122
2215
  }
2123
- /**
2124
- * a User
2125
- * @export
2126
- * @interface User
2127
- */
2128
- export interface User {
2129
- /**
2130
- * the User unique identifier
2131
- * @type {string}
2132
- * @memberof User
2133
- */
2134
- 'id'?: string;
2135
- /**
2136
- * the User name
2137
- * @type {string}
2138
- * @memberof User
2139
- */
2140
- 'name'?: string;
2141
- /**
2142
- * the list of Platform roles
2143
- * @type {Array<string>}
2144
- * @memberof User
2145
- */
2146
- 'platformRoles'?: Array<UserPlatformRolesEnum>;
2147
- /**
2148
- *
2149
- * @type {Array<UserOrganization>}
2150
- * @memberof User
2151
- */
2152
- 'organizations'?: Array<UserOrganization>;
2153
- }
2154
-
2155
- export const UserPlatformRolesEnum = {
2156
- Admin: 'Admin',
2157
- User: 'User',
2158
- ConnectorDeveloper: 'ConnectorDeveloper'
2159
- } as const;
2160
-
2161
- export type UserPlatformRolesEnum = typeof UserPlatformRolesEnum[keyof typeof UserPlatformRolesEnum];
2162
-
2163
- /**
2164
- * The organization of the user
2165
- * @export
2166
- * @interface UserOrganization
2167
- */
2168
- export interface UserOrganization {
2169
- /**
2170
- * the Organization id
2171
- * @type {string}
2172
- * @memberof UserOrganization
2173
- */
2174
- 'id'?: string;
2175
- /**
2176
- * the Organization name
2177
- * @type {string}
2178
- * @memberof UserOrganization
2179
- */
2180
- 'name'?: string;
2181
- /**
2182
- * the roles of the User in the Organization
2183
- * @type {Array<string>}
2184
- * @memberof UserOrganization
2185
- */
2186
- 'roles'?: Array<string>;
2187
- /**
2188
- * the list of Workspaces roles
2189
- * @type {Array<UserWorkspace>}
2190
- * @memberof UserOrganization
2191
- */
2192
- 'workspaces'?: Array<UserWorkspace>;
2193
- }
2194
- /**
2195
- * the list of User roles for a Workspace
2196
- * @export
2197
- * @interface UserWorkspace
2198
- */
2199
- export interface UserWorkspace {
2200
- /**
2201
- * the Workspace Id
2202
- * @type {string}
2203
- * @memberof UserWorkspace
2204
- */
2205
- 'id'?: string;
2206
- /**
2207
- * the Workspace name
2208
- * @type {string}
2209
- * @memberof UserWorkspace
2210
- */
2211
- 'name'?: string;
2212
- /**
2213
- * the roles of the User in the Workspace
2214
- * @type {Array<string>}
2215
- * @memberof UserWorkspace
2216
- */
2217
- 'roles'?: Array<string>;
2218
- }
2219
2216
  /**
2220
2217
  * a Validator to validate a Dataset
2221
2218
  * @export
@@ -2347,6 +2344,12 @@ export interface Workspace {
2347
2344
  * @memberof Workspace
2348
2345
  */
2349
2346
  'id'?: string;
2347
+ /**
2348
+ * the Organization unique identifier
2349
+ * @type {string}
2350
+ * @memberof Workspace
2351
+ */
2352
+ 'organizationId'?: string;
2350
2353
  /**
2351
2354
  * technical key for resource name convention and version grouping. Must be unique
2352
2355
  * @type {string}
@@ -2575,10 +2578,12 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
2575
2578
  /**
2576
2579
  *
2577
2580
  * @summary List all Connectors
2581
+ * @param {number} [page] page number to query
2582
+ * @param {number} [size] amount of result by page
2578
2583
  * @param {*} [options] Override http request option.
2579
2584
  * @throws {RequiredError}
2580
2585
  */
2581
- findAllConnectors: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2586
+ findAllConnectors: async (page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2582
2587
  const localVarPath = `/connectors`;
2583
2588
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2584
2589
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2595,6 +2600,14 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
2595
2600
  // oauth required
2596
2601
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
2597
2602
 
2603
+ if (page !== undefined) {
2604
+ localVarQueryParameter['page'] = page;
2605
+ }
2606
+
2607
+ if (size !== undefined) {
2608
+ localVarQueryParameter['size'] = size;
2609
+ }
2610
+
2598
2611
 
2599
2612
 
2600
2613
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2644,6 +2657,46 @@ export const ConnectorApiAxiosParamCreator = function (configuration?: Configura
2644
2657
  options: localVarRequestOptions,
2645
2658
  };
2646
2659
  },
2660
+ /**
2661
+ *
2662
+ * @summary Import existing connector
2663
+ * @param {Connector} connector the Connector to import
2664
+ * @param {*} [options] Override http request option.
2665
+ * @throws {RequiredError}
2666
+ */
2667
+ importConnector: async (connector: Connector, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2668
+ // verify required parameter 'connector' is not null or undefined
2669
+ assertParamExists('importConnector', 'connector', connector)
2670
+ const localVarPath = `/connectors/import`;
2671
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2672
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2673
+ let baseOptions;
2674
+ if (configuration) {
2675
+ baseOptions = configuration.baseOptions;
2676
+ }
2677
+
2678
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2679
+ const localVarHeaderParameter = {} as any;
2680
+ const localVarQueryParameter = {} as any;
2681
+
2682
+ // authentication oAuth2AuthCode required
2683
+ // oauth required
2684
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
2685
+
2686
+
2687
+
2688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2689
+
2690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2692
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2693
+ localVarRequestOptions.data = serializeDataIfNeeded(connector, localVarRequestOptions, configuration)
2694
+
2695
+ return {
2696
+ url: toPathString(localVarUrlObj),
2697
+ options: localVarRequestOptions,
2698
+ };
2699
+ },
2647
2700
  /**
2648
2701
  *
2649
2702
  * @summary Register a new connector
@@ -2735,11 +2788,13 @@ export const ConnectorApiFp = function(configuration?: Configuration) {
2735
2788
  /**
2736
2789
  *
2737
2790
  * @summary List all Connectors
2791
+ * @param {number} [page] page number to query
2792
+ * @param {number} [size] amount of result by page
2738
2793
  * @param {*} [options] Override http request option.
2739
2794
  * @throws {RequiredError}
2740
2795
  */
2741
- async findAllConnectors(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Connector>>> {
2742
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllConnectors(options);
2796
+ async findAllConnectors(page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Connector>>> {
2797
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllConnectors(page, size, options);
2743
2798
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2744
2799
  },
2745
2800
  /**
@@ -2753,6 +2808,17 @@ export const ConnectorApiFp = function(configuration?: Configuration) {
2753
2808
  const localVarAxiosArgs = await localVarAxiosParamCreator.findConnectorById(connectorId, options);
2754
2809
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2755
2810
  },
2811
+ /**
2812
+ *
2813
+ * @summary Import existing connector
2814
+ * @param {Connector} connector the Connector to import
2815
+ * @param {*} [options] Override http request option.
2816
+ * @throws {RequiredError}
2817
+ */
2818
+ async importConnector(connector: Connector, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Connector>> {
2819
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importConnector(connector, options);
2820
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2821
+ },
2756
2822
  /**
2757
2823
  *
2758
2824
  * @summary Register a new connector
@@ -2788,11 +2854,13 @@ export const ConnectorApiFactory = function (configuration?: Configuration, base
2788
2854
  /**
2789
2855
  *
2790
2856
  * @summary List all Connectors
2857
+ * @param {number} [page] page number to query
2858
+ * @param {number} [size] amount of result by page
2791
2859
  * @param {*} [options] Override http request option.
2792
2860
  * @throws {RequiredError}
2793
2861
  */
2794
- findAllConnectors(options?: any): AxiosPromise<Array<Connector>> {
2795
- return localVarFp.findAllConnectors(options).then((request) => request(axios, basePath));
2862
+ findAllConnectors(page?: number, size?: number, options?: any): AxiosPromise<Array<Connector>> {
2863
+ return localVarFp.findAllConnectors(page, size, options).then((request) => request(axios, basePath));
2796
2864
  },
2797
2865
  /**
2798
2866
  *
@@ -2804,6 +2872,16 @@ export const ConnectorApiFactory = function (configuration?: Configuration, base
2804
2872
  findConnectorById(connectorId: string, options?: any): AxiosPromise<Connector> {
2805
2873
  return localVarFp.findConnectorById(connectorId, options).then((request) => request(axios, basePath));
2806
2874
  },
2875
+ /**
2876
+ *
2877
+ * @summary Import existing connector
2878
+ * @param {Connector} connector the Connector to import
2879
+ * @param {*} [options] Override http request option.
2880
+ * @throws {RequiredError}
2881
+ */
2882
+ importConnector(connector: Connector, options?: any): AxiosPromise<Connector> {
2883
+ return localVarFp.importConnector(connector, options).then((request) => request(axios, basePath));
2884
+ },
2807
2885
  /**
2808
2886
  *
2809
2887
  * @summary Register a new connector
@@ -2837,12 +2915,14 @@ export class ConnectorApi extends BaseAPI {
2837
2915
  /**
2838
2916
  *
2839
2917
  * @summary List all Connectors
2918
+ * @param {number} [page] page number to query
2919
+ * @param {number} [size] amount of result by page
2840
2920
  * @param {*} [options] Override http request option.
2841
2921
  * @throws {RequiredError}
2842
2922
  * @memberof ConnectorApi
2843
2923
  */
2844
- public findAllConnectors(options?: AxiosRequestConfig) {
2845
- return ConnectorApiFp(this.configuration).findAllConnectors(options).then((request) => request(this.axios, this.basePath));
2924
+ public findAllConnectors(page?: number, size?: number, options?: AxiosRequestConfig) {
2925
+ return ConnectorApiFp(this.configuration).findAllConnectors(page, size, options).then((request) => request(this.axios, this.basePath));
2846
2926
  }
2847
2927
 
2848
2928
  /**
@@ -2857,6 +2937,18 @@ export class ConnectorApi extends BaseAPI {
2857
2937
  return ConnectorApiFp(this.configuration).findConnectorById(connectorId, options).then((request) => request(this.axios, this.basePath));
2858
2938
  }
2859
2939
 
2940
+ /**
2941
+ *
2942
+ * @summary Import existing connector
2943
+ * @param {Connector} connector the Connector to import
2944
+ * @param {*} [options] Override http request option.
2945
+ * @throws {RequiredError}
2946
+ * @memberof ConnectorApi
2947
+ */
2948
+ public importConnector(connector: Connector, options?: AxiosRequestConfig) {
2949
+ return ConnectorApiFp(this.configuration).importConnector(connector, options).then((request) => request(this.axios, this.basePath));
2950
+ }
2951
+
2860
2952
  /**
2861
2953
  *
2862
2954
  * @summary Register a new connector
@@ -3071,10 +3163,12 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3071
3163
  *
3072
3164
  * @summary List all Datasets
3073
3165
  * @param {string} organizationId the Organization identifier
3166
+ * @param {number} [page] page number to query
3167
+ * @param {number} [size] amount of result by page
3074
3168
  * @param {*} [options] Override http request option.
3075
3169
  * @throws {RequiredError}
3076
3170
  */
3077
- findAllDatasets: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3171
+ findAllDatasets: async (organizationId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3078
3172
  // verify required parameter 'organizationId' is not null or undefined
3079
3173
  assertParamExists('findAllDatasets', 'organizationId', organizationId)
3080
3174
  const localVarPath = `/organizations/{organization_id}/datasets`
@@ -3094,6 +3188,14 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3094
3188
  // oauth required
3095
3189
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3096
3190
 
3191
+ if (page !== undefined) {
3192
+ localVarQueryParameter['page'] = page;
3193
+ }
3194
+
3195
+ if (size !== undefined) {
3196
+ localVarQueryParameter['size'] = size;
3197
+ }
3198
+
3097
3199
 
3098
3200
 
3099
3201
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3147,6 +3249,50 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3147
3249
  options: localVarRequestOptions,
3148
3250
  };
3149
3251
  },
3252
+ /**
3253
+ *
3254
+ * @summary Import a new Dataset
3255
+ * @param {string} organizationId the Organization identifier
3256
+ * @param {Dataset} dataset the Dataset to import
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ */
3260
+ importDataset: async (organizationId: string, dataset: Dataset, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3261
+ // verify required parameter 'organizationId' is not null or undefined
3262
+ assertParamExists('importDataset', 'organizationId', organizationId)
3263
+ // verify required parameter 'dataset' is not null or undefined
3264
+ assertParamExists('importDataset', 'dataset', dataset)
3265
+ const localVarPath = `/organizations/{organization_id}/datasets/import`
3266
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
3267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3269
+ let baseOptions;
3270
+ if (configuration) {
3271
+ baseOptions = configuration.baseOptions;
3272
+ }
3273
+
3274
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3275
+ const localVarHeaderParameter = {} as any;
3276
+ const localVarQueryParameter = {} as any;
3277
+
3278
+ // authentication oAuth2AuthCode required
3279
+ // oauth required
3280
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3281
+
3282
+
3283
+
3284
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3285
+
3286
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3288
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3289
+ localVarRequestOptions.data = serializeDataIfNeeded(dataset, localVarRequestOptions, configuration)
3290
+
3291
+ return {
3292
+ url: toPathString(localVarUrlObj),
3293
+ options: localVarRequestOptions,
3294
+ };
3295
+ },
3150
3296
  /**
3151
3297
  *
3152
3298
  * @summary Remove all Dataset Compatibility elements from the Dataset specified
@@ -3194,10 +3340,12 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3194
3340
  * @summary Search Datasets
3195
3341
  * @param {string} organizationId the Organization identifier
3196
3342
  * @param {DatasetSearch} datasetSearch the Dataset search parameters
3343
+ * @param {number} [page] page number to query
3344
+ * @param {number} [size] amount of result by page
3197
3345
  * @param {*} [options] Override http request option.
3198
3346
  * @throws {RequiredError}
3199
3347
  */
3200
- searchDatasets: async (organizationId: string, datasetSearch: DatasetSearch, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3348
+ searchDatasets: async (organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3201
3349
  // verify required parameter 'organizationId' is not null or undefined
3202
3350
  assertParamExists('searchDatasets', 'organizationId', organizationId)
3203
3351
  // verify required parameter 'datasetSearch' is not null or undefined
@@ -3219,6 +3367,14 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3219
3367
  // oauth required
3220
3368
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3221
3369
 
3370
+ if (page !== undefined) {
3371
+ localVarQueryParameter['page'] = page;
3372
+ }
3373
+
3374
+ if (size !== undefined) {
3375
+ localVarQueryParameter['size'] = size;
3376
+ }
3377
+
3222
3378
 
3223
3379
 
3224
3380
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -3344,11 +3500,13 @@ export const DatasetApiFp = function(configuration?: Configuration) {
3344
3500
  *
3345
3501
  * @summary List all Datasets
3346
3502
  * @param {string} organizationId the Organization identifier
3503
+ * @param {number} [page] page number to query
3504
+ * @param {number} [size] amount of result by page
3347
3505
  * @param {*} [options] Override http request option.
3348
3506
  * @throws {RequiredError}
3349
3507
  */
3350
- async findAllDatasets(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
3351
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllDatasets(organizationId, options);
3508
+ async findAllDatasets(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
3509
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllDatasets(organizationId, page, size, options);
3352
3510
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3353
3511
  },
3354
3512
  /**
@@ -3363,6 +3521,18 @@ export const DatasetApiFp = function(configuration?: Configuration) {
3363
3521
  const localVarAxiosArgs = await localVarAxiosParamCreator.findDatasetById(organizationId, datasetId, options);
3364
3522
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3365
3523
  },
3524
+ /**
3525
+ *
3526
+ * @summary Import a new Dataset
3527
+ * @param {string} organizationId the Organization identifier
3528
+ * @param {Dataset} dataset the Dataset to import
3529
+ * @param {*} [options] Override http request option.
3530
+ * @throws {RequiredError}
3531
+ */
3532
+ async importDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dataset>> {
3533
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importDataset(organizationId, dataset, options);
3534
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3535
+ },
3366
3536
  /**
3367
3537
  *
3368
3538
  * @summary Remove all Dataset Compatibility elements from the Dataset specified
@@ -3380,11 +3550,13 @@ export const DatasetApiFp = function(configuration?: Configuration) {
3380
3550
  * @summary Search Datasets
3381
3551
  * @param {string} organizationId the Organization identifier
3382
3552
  * @param {DatasetSearch} datasetSearch the Dataset search parameters
3553
+ * @param {number} [page] page number to query
3554
+ * @param {number} [size] amount of result by page
3383
3555
  * @param {*} [options] Override http request option.
3384
3556
  * @throws {RequiredError}
3385
3557
  */
3386
- async searchDatasets(organizationId: string, datasetSearch: DatasetSearch, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
3387
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, options);
3558
+ async searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dataset>>> {
3559
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, page, size, options);
3388
3560
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3389
3561
  },
3390
3562
  /**
@@ -3459,11 +3631,13 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3459
3631
  *
3460
3632
  * @summary List all Datasets
3461
3633
  * @param {string} organizationId the Organization identifier
3634
+ * @param {number} [page] page number to query
3635
+ * @param {number} [size] amount of result by page
3462
3636
  * @param {*} [options] Override http request option.
3463
3637
  * @throws {RequiredError}
3464
3638
  */
3465
- findAllDatasets(organizationId: string, options?: any): AxiosPromise<Array<Dataset>> {
3466
- return localVarFp.findAllDatasets(organizationId, options).then((request) => request(axios, basePath));
3639
+ findAllDatasets(organizationId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<Dataset>> {
3640
+ return localVarFp.findAllDatasets(organizationId, page, size, options).then((request) => request(axios, basePath));
3467
3641
  },
3468
3642
  /**
3469
3643
  *
@@ -3476,6 +3650,17 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3476
3650
  findDatasetById(organizationId: string, datasetId: string, options?: any): AxiosPromise<Dataset> {
3477
3651
  return localVarFp.findDatasetById(organizationId, datasetId, options).then((request) => request(axios, basePath));
3478
3652
  },
3653
+ /**
3654
+ *
3655
+ * @summary Import a new Dataset
3656
+ * @param {string} organizationId the Organization identifier
3657
+ * @param {Dataset} dataset the Dataset to import
3658
+ * @param {*} [options] Override http request option.
3659
+ * @throws {RequiredError}
3660
+ */
3661
+ importDataset(organizationId: string, dataset: Dataset, options?: any): AxiosPromise<Dataset> {
3662
+ return localVarFp.importDataset(organizationId, dataset, options).then((request) => request(axios, basePath));
3663
+ },
3479
3664
  /**
3480
3665
  *
3481
3666
  * @summary Remove all Dataset Compatibility elements from the Dataset specified
@@ -3492,11 +3677,13 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
3492
3677
  * @summary Search Datasets
3493
3678
  * @param {string} organizationId the Organization identifier
3494
3679
  * @param {DatasetSearch} datasetSearch the Dataset search parameters
3680
+ * @param {number} [page] page number to query
3681
+ * @param {number} [size] amount of result by page
3495
3682
  * @param {*} [options] Override http request option.
3496
3683
  * @throws {RequiredError}
3497
3684
  */
3498
- searchDatasets(organizationId: string, datasetSearch: DatasetSearch, options?: any): AxiosPromise<Array<Dataset>> {
3499
- return localVarFp.searchDatasets(organizationId, datasetSearch, options).then((request) => request(axios, basePath));
3685
+ searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: any): AxiosPromise<Array<Dataset>> {
3686
+ return localVarFp.searchDatasets(organizationId, datasetSearch, page, size, options).then((request) => request(axios, basePath));
3500
3687
  },
3501
3688
  /**
3502
3689
  *
@@ -3577,12 +3764,14 @@ export class DatasetApi extends BaseAPI {
3577
3764
  *
3578
3765
  * @summary List all Datasets
3579
3766
  * @param {string} organizationId the Organization identifier
3767
+ * @param {number} [page] page number to query
3768
+ * @param {number} [size] amount of result by page
3580
3769
  * @param {*} [options] Override http request option.
3581
3770
  * @throws {RequiredError}
3582
3771
  * @memberof DatasetApi
3583
3772
  */
3584
- public findAllDatasets(organizationId: string, options?: AxiosRequestConfig) {
3585
- return DatasetApiFp(this.configuration).findAllDatasets(organizationId, options).then((request) => request(this.axios, this.basePath));
3773
+ public findAllDatasets(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig) {
3774
+ return DatasetApiFp(this.configuration).findAllDatasets(organizationId, page, size, options).then((request) => request(this.axios, this.basePath));
3586
3775
  }
3587
3776
 
3588
3777
  /**
@@ -3600,28 +3789,43 @@ export class DatasetApi extends BaseAPI {
3600
3789
 
3601
3790
  /**
3602
3791
  *
3603
- * @summary Remove all Dataset Compatibility elements from the Dataset specified
3792
+ * @summary Import a new Dataset
3604
3793
  * @param {string} organizationId the Organization identifier
3605
- * @param {string} datasetId the Dataset identifier
3794
+ * @param {Dataset} dataset the Dataset to import
3606
3795
  * @param {*} [options] Override http request option.
3607
3796
  * @throws {RequiredError}
3608
3797
  * @memberof DatasetApi
3609
3798
  */
3610
- public removeAllDatasetCompatibilityElements(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
3611
- return DatasetApiFp(this.configuration).removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
3799
+ public importDataset(organizationId: string, dataset: Dataset, options?: AxiosRequestConfig) {
3800
+ return DatasetApiFp(this.configuration).importDataset(organizationId, dataset, options).then((request) => request(this.axios, this.basePath));
3612
3801
  }
3613
3802
 
3614
3803
  /**
3615
3804
  *
3616
- * @summary Search Datasets
3805
+ * @summary Remove all Dataset Compatibility elements from the Dataset specified
3617
3806
  * @param {string} organizationId the Organization identifier
3618
- * @param {DatasetSearch} datasetSearch the Dataset search parameters
3807
+ * @param {string} datasetId the Dataset identifier
3808
+ * @param {*} [options] Override http request option.
3809
+ * @throws {RequiredError}
3810
+ * @memberof DatasetApi
3811
+ */
3812
+ public removeAllDatasetCompatibilityElements(organizationId: string, datasetId: string, options?: AxiosRequestConfig) {
3813
+ return DatasetApiFp(this.configuration).removeAllDatasetCompatibilityElements(organizationId, datasetId, options).then((request) => request(this.axios, this.basePath));
3814
+ }
3815
+
3816
+ /**
3817
+ *
3818
+ * @summary Search Datasets
3819
+ * @param {string} organizationId the Organization identifier
3820
+ * @param {DatasetSearch} datasetSearch the Dataset search parameters
3821
+ * @param {number} [page] page number to query
3822
+ * @param {number} [size] amount of result by page
3619
3823
  * @param {*} [options] Override http request option.
3620
3824
  * @throws {RequiredError}
3621
3825
  * @memberof DatasetApi
3622
3826
  */
3623
- public searchDatasets(organizationId: string, datasetSearch: DatasetSearch, options?: AxiosRequestConfig) {
3624
- return DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, options).then((request) => request(this.axios, this.basePath));
3827
+ public searchDatasets(organizationId: string, datasetSearch: DatasetSearch, page?: number, size?: number, options?: AxiosRequestConfig) {
3828
+ return DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, page, size, options).then((request) => request(this.axios, this.basePath));
3625
3829
  }
3626
3830
 
3627
3831
  /**
@@ -3693,10 +3897,12 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3693
3897
  /**
3694
3898
  *
3695
3899
  * @summary List all Organizations
3900
+ * @param {number} [page] page number to query
3901
+ * @param {number} [size] amount of result by page
3696
3902
  * @param {*} [options] Override http request option.
3697
3903
  * @throws {RequiredError}
3698
3904
  */
3699
- findAllOrganizations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3905
+ findAllOrganizations: async (page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3700
3906
  const localVarPath = `/organizations`;
3701
3907
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3702
3908
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3713,6 +3919,14 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3713
3919
  // oauth required
3714
3920
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3715
3921
 
3922
+ if (page !== undefined) {
3923
+ localVarQueryParameter['page'] = page;
3924
+ }
3925
+
3926
+ if (size !== undefined) {
3927
+ localVarQueryParameter['size'] = size;
3928
+ }
3929
+
3716
3930
 
3717
3931
 
3718
3932
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3956,6 +4170,46 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3956
4170
  options: localVarRequestOptions,
3957
4171
  };
3958
4172
  },
4173
+ /**
4174
+ *
4175
+ * @summary Import an organization
4176
+ * @param {Organization} organization the Organization to import
4177
+ * @param {*} [options] Override http request option.
4178
+ * @throws {RequiredError}
4179
+ */
4180
+ importOrganization: async (organization: Organization, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4181
+ // verify required parameter 'organization' is not null or undefined
4182
+ assertParamExists('importOrganization', 'organization', organization)
4183
+ const localVarPath = `/organizations/import`;
4184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4185
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4186
+ let baseOptions;
4187
+ if (configuration) {
4188
+ baseOptions = configuration.baseOptions;
4189
+ }
4190
+
4191
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4192
+ const localVarHeaderParameter = {} as any;
4193
+ const localVarQueryParameter = {} as any;
4194
+
4195
+ // authentication oAuth2AuthCode required
4196
+ // oauth required
4197
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
4198
+
4199
+
4200
+
4201
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4202
+
4203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4205
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4206
+ localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration)
4207
+
4208
+ return {
4209
+ url: toPathString(localVarUrlObj),
4210
+ options: localVarRequestOptions,
4211
+ };
4212
+ },
3959
4213
  /**
3960
4214
  *
3961
4215
  * @summary Register a new organization
@@ -4369,11 +4623,13 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
4369
4623
  /**
4370
4624
  *
4371
4625
  * @summary List all Organizations
4626
+ * @param {number} [page] page number to query
4627
+ * @param {number} [size] amount of result by page
4372
4628
  * @param {*} [options] Override http request option.
4373
4629
  * @throws {RequiredError}
4374
4630
  */
4375
- async findAllOrganizations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Organization>>> {
4376
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllOrganizations(options);
4631
+ async findAllOrganizations(page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Organization>>> {
4632
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllOrganizations(page, size, options);
4377
4633
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4378
4634
  },
4379
4635
  /**
@@ -4443,6 +4699,17 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
4443
4699
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationSecurityUsers(organizationId, options);
4444
4700
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4445
4701
  },
4702
+ /**
4703
+ *
4704
+ * @summary Import an organization
4705
+ * @param {Organization} organization the Organization to import
4706
+ * @param {*} [options] Override http request option.
4707
+ * @throws {RequiredError}
4708
+ */
4709
+ async importOrganization(organization: Organization, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
4710
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importOrganization(organization, options);
4711
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4712
+ },
4446
4713
  /**
4447
4714
  *
4448
4715
  * @summary Register a new organization
@@ -4574,11 +4841,13 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4574
4841
  /**
4575
4842
  *
4576
4843
  * @summary List all Organizations
4844
+ * @param {number} [page] page number to query
4845
+ * @param {number} [size] amount of result by page
4577
4846
  * @param {*} [options] Override http request option.
4578
4847
  * @throws {RequiredError}
4579
4848
  */
4580
- findAllOrganizations(options?: any): AxiosPromise<Array<Organization>> {
4581
- return localVarFp.findAllOrganizations(options).then((request) => request(axios, basePath));
4849
+ findAllOrganizations(page?: number, size?: number, options?: any): AxiosPromise<Array<Organization>> {
4850
+ return localVarFp.findAllOrganizations(page, size, options).then((request) => request(axios, basePath));
4582
4851
  },
4583
4852
  /**
4584
4853
  *
@@ -4641,6 +4910,16 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4641
4910
  getOrganizationSecurityUsers(organizationId: string, options?: any): AxiosPromise<Array<string>> {
4642
4911
  return localVarFp.getOrganizationSecurityUsers(organizationId, options).then((request) => request(axios, basePath));
4643
4912
  },
4913
+ /**
4914
+ *
4915
+ * @summary Import an organization
4916
+ * @param {Organization} organization the Organization to import
4917
+ * @param {*} [options] Override http request option.
4918
+ * @throws {RequiredError}
4919
+ */
4920
+ importOrganization(organization: Organization, options?: any): AxiosPromise<Organization> {
4921
+ return localVarFp.importOrganization(organization, options).then((request) => request(axios, basePath));
4922
+ },
4644
4923
  /**
4645
4924
  *
4646
4925
  * @summary Register a new organization
@@ -4765,12 +5044,14 @@ export class OrganizationApi extends BaseAPI {
4765
5044
  /**
4766
5045
  *
4767
5046
  * @summary List all Organizations
5047
+ * @param {number} [page] page number to query
5048
+ * @param {number} [size] amount of result by page
4768
5049
  * @param {*} [options] Override http request option.
4769
5050
  * @throws {RequiredError}
4770
5051
  * @memberof OrganizationApi
4771
5052
  */
4772
- public findAllOrganizations(options?: AxiosRequestConfig) {
4773
- return OrganizationApiFp(this.configuration).findAllOrganizations(options).then((request) => request(this.axios, this.basePath));
5053
+ public findAllOrganizations(page?: number, size?: number, options?: AxiosRequestConfig) {
5054
+ return OrganizationApiFp(this.configuration).findAllOrganizations(page, size, options).then((request) => request(this.axios, this.basePath));
4774
5055
  }
4775
5056
 
4776
5057
  /**
@@ -4846,6 +5127,18 @@ export class OrganizationApi extends BaseAPI {
4846
5127
  return OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then((request) => request(this.axios, this.basePath));
4847
5128
  }
4848
5129
 
5130
+ /**
5131
+ *
5132
+ * @summary Import an organization
5133
+ * @param {Organization} organization the Organization to import
5134
+ * @param {*} [options] Override http request option.
5135
+ * @throws {RequiredError}
5136
+ * @memberof OrganizationApi
5137
+ */
5138
+ public importOrganization(organization: Organization, options?: AxiosRequestConfig) {
5139
+ return OrganizationApiFp(this.configuration).importOrganization(organization, options).then((request) => request(this.axios, this.basePath));
5140
+ }
5141
+
4849
5142
  /**
4850
5143
  *
4851
5144
  * @summary Register a new organization
@@ -5316,10 +5609,12 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5316
5609
  * @summary List all Scenarios
5317
5610
  * @param {string} organizationId the Organization identifier
5318
5611
  * @param {string} workspaceId the Workspace identifier
5612
+ * @param {number} [page] page number to query
5613
+ * @param {number} [size] amount of result by page
5319
5614
  * @param {*} [options] Override http request option.
5320
5615
  * @throws {RequiredError}
5321
5616
  */
5322
- findAllScenarios: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5617
+ findAllScenarios: async (organizationId: string, workspaceId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5323
5618
  // verify required parameter 'organizationId' is not null or undefined
5324
5619
  assertParamExists('findAllScenarios', 'organizationId', organizationId)
5325
5620
  // verify required parameter 'workspaceId' is not null or undefined
@@ -5342,6 +5637,14 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5342
5637
  // oauth required
5343
5638
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
5344
5639
 
5640
+ if (page !== undefined) {
5641
+ localVarQueryParameter['page'] = page;
5642
+ }
5643
+
5644
+ if (size !== undefined) {
5645
+ localVarQueryParameter['size'] = size;
5646
+ }
5647
+
5345
5648
 
5346
5649
 
5347
5650
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5359,10 +5662,12 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5359
5662
  * @param {string} organizationId the Organization identifier
5360
5663
  * @param {string} workspaceId the Workspace identifier
5361
5664
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
5665
+ * @param {number} [page] page number to query
5666
+ * @param {number} [size] amount of result by page
5362
5667
  * @param {*} [options] Override http request option.
5363
5668
  * @throws {RequiredError}
5364
5669
  */
5365
- findAllScenariosByValidationStatus: async (organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5670
+ findAllScenariosByValidationStatus: async (organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5366
5671
  // verify required parameter 'organizationId' is not null or undefined
5367
5672
  assertParamExists('findAllScenariosByValidationStatus', 'organizationId', organizationId)
5368
5673
  // verify required parameter 'workspaceId' is not null or undefined
@@ -5388,6 +5693,14 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5388
5693
  // oauth required
5389
5694
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
5390
5695
 
5696
+ if (page !== undefined) {
5697
+ localVarQueryParameter['page'] = page;
5698
+ }
5699
+
5700
+ if (size !== undefined) {
5701
+ localVarQueryParameter['size'] = size;
5702
+ }
5703
+
5391
5704
 
5392
5705
 
5393
5706
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5771,6 +6084,54 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5771
6084
  options: localVarRequestOptions,
5772
6085
  };
5773
6086
  },
6087
+ /**
6088
+ *
6089
+ * @summary Import Scenario
6090
+ * @param {string} organizationId the Organization identifier
6091
+ * @param {string} workspaceId the Workspace identifier
6092
+ * @param {Scenario} scenario the Scenario to import
6093
+ * @param {*} [options] Override http request option.
6094
+ * @throws {RequiredError}
6095
+ */
6096
+ importScenario: async (organizationId: string, workspaceId: string, scenario: Scenario, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6097
+ // verify required parameter 'organizationId' is not null or undefined
6098
+ assertParamExists('importScenario', 'organizationId', organizationId)
6099
+ // verify required parameter 'workspaceId' is not null or undefined
6100
+ assertParamExists('importScenario', 'workspaceId', workspaceId)
6101
+ // verify required parameter 'scenario' is not null or undefined
6102
+ assertParamExists('importScenario', 'scenario', scenario)
6103
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/import`
6104
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
6105
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
6106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6108
+ let baseOptions;
6109
+ if (configuration) {
6110
+ baseOptions = configuration.baseOptions;
6111
+ }
6112
+
6113
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6114
+ const localVarHeaderParameter = {} as any;
6115
+ const localVarQueryParameter = {} as any;
6116
+
6117
+ // authentication oAuth2AuthCode required
6118
+ // oauth required
6119
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
6120
+
6121
+
6122
+
6123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6124
+
6125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6128
+ localVarRequestOptions.data = serializeDataIfNeeded(scenario, localVarRequestOptions, configuration)
6129
+
6130
+ return {
6131
+ url: toPathString(localVarUrlObj),
6132
+ options: localVarRequestOptions,
6133
+ };
6134
+ },
5774
6135
  /**
5775
6136
  *
5776
6137
  * @summary Remove all Parameter Values from the Scenario specified
@@ -6136,11 +6497,13 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
6136
6497
  * @summary List all Scenarios
6137
6498
  * @param {string} organizationId the Organization identifier
6138
6499
  * @param {string} workspaceId the Workspace identifier
6500
+ * @param {number} [page] page number to query
6501
+ * @param {number} [size] amount of result by page
6139
6502
  * @param {*} [options] Override http request option.
6140
6503
  * @throws {RequiredError}
6141
6504
  */
6142
- async findAllScenarios(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>> {
6143
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllScenarios(organizationId, workspaceId, options);
6505
+ async findAllScenarios(organizationId: string, workspaceId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>> {
6506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllScenarios(organizationId, workspaceId, page, size, options);
6144
6507
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6145
6508
  },
6146
6509
  /**
@@ -6149,11 +6512,13 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
6149
6512
  * @param {string} organizationId the Organization identifier
6150
6513
  * @param {string} workspaceId the Workspace identifier
6151
6514
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
6515
+ * @param {number} [page] page number to query
6516
+ * @param {number} [size] amount of result by page
6152
6517
  * @param {*} [options] Override http request option.
6153
6518
  * @throws {RequiredError}
6154
6519
  */
6155
- async findAllScenariosByValidationStatus(organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>> {
6156
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options);
6520
+ async findAllScenariosByValidationStatus(organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>> {
6521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, page, size, options);
6157
6522
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6158
6523
  },
6159
6524
  /**
@@ -6261,6 +6626,19 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
6261
6626
  const localVarAxiosArgs = await localVarAxiosParamCreator.getScenariosTree(organizationId, workspaceId, options);
6262
6627
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6263
6628
  },
6629
+ /**
6630
+ *
6631
+ * @summary Import Scenario
6632
+ * @param {string} organizationId the Organization identifier
6633
+ * @param {string} workspaceId the Workspace identifier
6634
+ * @param {Scenario} scenario the Scenario to import
6635
+ * @param {*} [options] Override http request option.
6636
+ * @throws {RequiredError}
6637
+ */
6638
+ async importScenario(organizationId: string, workspaceId: string, scenario: Scenario, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Scenario>> {
6639
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importScenario(organizationId, workspaceId, scenario, options);
6640
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6641
+ },
6264
6642
  /**
6265
6643
  *
6266
6644
  * @summary Remove all Parameter Values from the Scenario specified
@@ -6433,11 +6811,13 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6433
6811
  * @summary List all Scenarios
6434
6812
  * @param {string} organizationId the Organization identifier
6435
6813
  * @param {string} workspaceId the Workspace identifier
6814
+ * @param {number} [page] page number to query
6815
+ * @param {number} [size] amount of result by page
6436
6816
  * @param {*} [options] Override http request option.
6437
6817
  * @throws {RequiredError}
6438
6818
  */
6439
- findAllScenarios(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<Scenario>> {
6440
- return localVarFp.findAllScenarios(organizationId, workspaceId, options).then((request) => request(axios, basePath));
6819
+ findAllScenarios(organizationId: string, workspaceId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<Scenario>> {
6820
+ return localVarFp.findAllScenarios(organizationId, workspaceId, page, size, options).then((request) => request(axios, basePath));
6441
6821
  },
6442
6822
  /**
6443
6823
  *
@@ -6445,11 +6825,13 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6445
6825
  * @param {string} organizationId the Organization identifier
6446
6826
  * @param {string} workspaceId the Workspace identifier
6447
6827
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
6828
+ * @param {number} [page] page number to query
6829
+ * @param {number} [size] amount of result by page
6448
6830
  * @param {*} [options] Override http request option.
6449
6831
  * @throws {RequiredError}
6450
6832
  */
6451
- findAllScenariosByValidationStatus(organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, options?: any): AxiosPromise<Array<Scenario>> {
6452
- return localVarFp.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options).then((request) => request(axios, basePath));
6833
+ findAllScenariosByValidationStatus(organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, page?: number, size?: number, options?: any): AxiosPromise<Array<Scenario>> {
6834
+ return localVarFp.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, page, size, options).then((request) => request(axios, basePath));
6453
6835
  },
6454
6836
  /**
6455
6837
  *
@@ -6548,6 +6930,18 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6548
6930
  getScenariosTree(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<Scenario>> {
6549
6931
  return localVarFp.getScenariosTree(organizationId, workspaceId, options).then((request) => request(axios, basePath));
6550
6932
  },
6933
+ /**
6934
+ *
6935
+ * @summary Import Scenario
6936
+ * @param {string} organizationId the Organization identifier
6937
+ * @param {string} workspaceId the Workspace identifier
6938
+ * @param {Scenario} scenario the Scenario to import
6939
+ * @param {*} [options] Override http request option.
6940
+ * @throws {RequiredError}
6941
+ */
6942
+ importScenario(organizationId: string, workspaceId: string, scenario: Scenario, options?: any): AxiosPromise<Scenario> {
6943
+ return localVarFp.importScenario(organizationId, workspaceId, scenario, options).then((request) => request(axios, basePath));
6944
+ },
6551
6945
  /**
6552
6946
  *
6553
6947
  * @summary Remove all Parameter Values from the Scenario specified
@@ -6729,12 +7123,14 @@ export class ScenarioApi extends BaseAPI {
6729
7123
  * @summary List all Scenarios
6730
7124
  * @param {string} organizationId the Organization identifier
6731
7125
  * @param {string} workspaceId the Workspace identifier
7126
+ * @param {number} [page] page number to query
7127
+ * @param {number} [size] amount of result by page
6732
7128
  * @param {*} [options] Override http request option.
6733
7129
  * @throws {RequiredError}
6734
7130
  * @memberof ScenarioApi
6735
7131
  */
6736
- public findAllScenarios(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
6737
- return ScenarioApiFp(this.configuration).findAllScenarios(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
7132
+ public findAllScenarios(organizationId: string, workspaceId: string, page?: number, size?: number, options?: AxiosRequestConfig) {
7133
+ return ScenarioApiFp(this.configuration).findAllScenarios(organizationId, workspaceId, page, size, options).then((request) => request(this.axios, this.basePath));
6738
7134
  }
6739
7135
 
6740
7136
  /**
@@ -6743,12 +7139,14 @@ export class ScenarioApi extends BaseAPI {
6743
7139
  * @param {string} organizationId the Organization identifier
6744
7140
  * @param {string} workspaceId the Workspace identifier
6745
7141
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
7142
+ * @param {number} [page] page number to query
7143
+ * @param {number} [size] amount of result by page
6746
7144
  * @param {*} [options] Override http request option.
6747
7145
  * @throws {RequiredError}
6748
7146
  * @memberof ScenarioApi
6749
7147
  */
6750
- public findAllScenariosByValidationStatus(organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, options?: AxiosRequestConfig) {
6751
- return ScenarioApiFp(this.configuration).findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options).then((request) => request(this.axios, this.basePath));
7148
+ public findAllScenariosByValidationStatus(organizationId: string, workspaceId: string, validationStatus: ScenarioValidationStatus, page?: number, size?: number, options?: AxiosRequestConfig) {
7149
+ return ScenarioApiFp(this.configuration).findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, page, size, options).then((request) => request(this.axios, this.basePath));
6752
7150
  }
6753
7151
 
6754
7152
  /**
@@ -6864,6 +7262,20 @@ export class ScenarioApi extends BaseAPI {
6864
7262
  return ScenarioApiFp(this.configuration).getScenariosTree(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
6865
7263
  }
6866
7264
 
7265
+ /**
7266
+ *
7267
+ * @summary Import Scenario
7268
+ * @param {string} organizationId the Organization identifier
7269
+ * @param {string} workspaceId the Workspace identifier
7270
+ * @param {Scenario} scenario the Scenario to import
7271
+ * @param {*} [options] Override http request option.
7272
+ * @throws {RequiredError}
7273
+ * @memberof ScenarioApi
7274
+ */
7275
+ public importScenario(organizationId: string, workspaceId: string, scenario: Scenario, options?: AxiosRequestConfig) {
7276
+ return ScenarioApiFp(this.configuration).importScenario(organizationId, workspaceId, scenario, options).then((request) => request(this.axios, this.basePath));
7277
+ }
7278
+
6867
7279
  /**
6868
7280
  *
6869
7281
  * @summary Remove all Parameter Values from the Scenario specified
@@ -7304,10 +7716,12 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
7304
7716
  * @param {string} organizationId the Organization identifier
7305
7717
  * @param {string} workspaceId the Workspace identifier
7306
7718
  * @param {string} scenarioId the Scenario identifier
7719
+ * @param {number} [page] page number to query
7720
+ * @param {number} [size] amount of result by page
7307
7721
  * @param {*} [options] Override http request option.
7308
7722
  * @throws {RequiredError}
7309
7723
  */
7310
- getScenarioRuns: async (organizationId: string, workspaceId: string, scenarioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7724
+ getScenarioRuns: async (organizationId: string, workspaceId: string, scenarioId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7311
7725
  // verify required parameter 'organizationId' is not null or undefined
7312
7726
  assertParamExists('getScenarioRuns', 'organizationId', organizationId)
7313
7727
  // verify required parameter 'workspaceId' is not null or undefined
@@ -7333,6 +7747,14 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
7333
7747
  // oauth required
7334
7748
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
7335
7749
 
7750
+ if (page !== undefined) {
7751
+ localVarQueryParameter['page'] = page;
7752
+ }
7753
+
7754
+ if (size !== undefined) {
7755
+ localVarQueryParameter['size'] = size;
7756
+ }
7757
+
7336
7758
 
7337
7759
 
7338
7760
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7349,10 +7771,12 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
7349
7771
  * @summary get the list of ScenarioRuns for the Workspace
7350
7772
  * @param {string} organizationId the Organization identifier
7351
7773
  * @param {string} workspaceId the Workspace identifier
7774
+ * @param {number} [page] page number to query
7775
+ * @param {number} [size] amount of result by page
7352
7776
  * @param {*} [options] Override http request option.
7353
7777
  * @throws {RequiredError}
7354
7778
  */
7355
- getWorkspaceScenarioRuns: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7779
+ getWorkspaceScenarioRuns: async (organizationId: string, workspaceId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7356
7780
  // verify required parameter 'organizationId' is not null or undefined
7357
7781
  assertParamExists('getWorkspaceScenarioRuns', 'organizationId', organizationId)
7358
7782
  // verify required parameter 'workspaceId' is not null or undefined
@@ -7375,11 +7799,71 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
7375
7799
  // oauth required
7376
7800
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
7377
7801
 
7802
+ if (page !== undefined) {
7803
+ localVarQueryParameter['page'] = page;
7804
+ }
7805
+
7806
+ if (size !== undefined) {
7807
+ localVarQueryParameter['size'] = size;
7808
+ }
7809
+
7810
+
7811
+
7812
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7814
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7815
+
7816
+ return {
7817
+ url: toPathString(localVarUrlObj),
7818
+ options: localVarRequestOptions,
7819
+ };
7820
+ },
7821
+ /**
7822
+ *
7823
+ * @summary import a ScenarioRun for the Scenario
7824
+ * @param {string} organizationId the Organization identifier
7825
+ * @param {string} workspaceId the Workspace identifier
7826
+ * @param {string} scenarioId the Scenario identifier
7827
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
7828
+ * @param {*} [options] Override http request option.
7829
+ * @throws {RequiredError}
7830
+ */
7831
+ importScenarioRun: async (organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7832
+ // verify required parameter 'organizationId' is not null or undefined
7833
+ assertParamExists('importScenarioRun', 'organizationId', organizationId)
7834
+ // verify required parameter 'workspaceId' is not null or undefined
7835
+ assertParamExists('importScenarioRun', 'workspaceId', workspaceId)
7836
+ // verify required parameter 'scenarioId' is not null or undefined
7837
+ assertParamExists('importScenarioRun', 'scenarioId', scenarioId)
7838
+ // verify required parameter 'scenarioRun' is not null or undefined
7839
+ assertParamExists('importScenarioRun', 'scenarioRun', scenarioRun)
7840
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/run/import`
7841
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
7842
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
7843
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
7844
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7845
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7846
+ let baseOptions;
7847
+ if (configuration) {
7848
+ baseOptions = configuration.baseOptions;
7849
+ }
7850
+
7851
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7852
+ const localVarHeaderParameter = {} as any;
7853
+ const localVarQueryParameter = {} as any;
7854
+
7855
+ // authentication oAuth2AuthCode required
7856
+ // oauth required
7857
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
7858
+
7378
7859
 
7379
7860
 
7861
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7862
+
7380
7863
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7381
7864
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7382
7865
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7866
+ localVarRequestOptions.data = serializeDataIfNeeded(scenarioRun, localVarRequestOptions, configuration)
7383
7867
 
7384
7868
  return {
7385
7869
  url: toPathString(localVarUrlObj),
@@ -7437,10 +7921,12 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
7437
7921
  * @summary Search ScenarioRuns
7438
7922
  * @param {string} organizationId the Organization identifier
7439
7923
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
7924
+ * @param {number} [page] page number to query
7925
+ * @param {number} [size] amount of result by page
7440
7926
  * @param {*} [options] Override http request option.
7441
7927
  * @throws {RequiredError}
7442
7928
  */
7443
- searchScenarioRuns: async (organizationId: string, scenarioRunSearch: ScenarioRunSearch, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7929
+ searchScenarioRuns: async (organizationId: string, scenarioRunSearch: ScenarioRunSearch, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7444
7930
  // verify required parameter 'organizationId' is not null or undefined
7445
7931
  assertParamExists('searchScenarioRuns', 'organizationId', organizationId)
7446
7932
  // verify required parameter 'scenarioRunSearch' is not null or undefined
@@ -7462,6 +7948,14 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
7462
7948
  // oauth required
7463
7949
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
7464
7950
 
7951
+ if (page !== undefined) {
7952
+ localVarQueryParameter['page'] = page;
7953
+ }
7954
+
7955
+ if (size !== undefined) {
7956
+ localVarQueryParameter['size'] = size;
7957
+ }
7958
+
7465
7959
 
7466
7960
 
7467
7961
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -7677,11 +8171,13 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
7677
8171
  * @param {string} organizationId the Organization identifier
7678
8172
  * @param {string} workspaceId the Workspace identifier
7679
8173
  * @param {string} scenarioId the Scenario identifier
8174
+ * @param {number} [page] page number to query
8175
+ * @param {number} [size] amount of result by page
7680
8176
  * @param {*} [options] Override http request option.
7681
8177
  * @throws {RequiredError}
7682
8178
  */
7683
- async getScenarioRuns(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioRun>>> {
7684
- const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioRuns(organizationId, workspaceId, scenarioId, options);
8179
+ async getScenarioRuns(organizationId: string, workspaceId: string, scenarioId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioRun>>> {
8180
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioRuns(organizationId, workspaceId, scenarioId, page, size, options);
7685
8181
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7686
8182
  },
7687
8183
  /**
@@ -7689,11 +8185,27 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
7689
8185
  * @summary get the list of ScenarioRuns for the Workspace
7690
8186
  * @param {string} organizationId the Organization identifier
7691
8187
  * @param {string} workspaceId the Workspace identifier
8188
+ * @param {number} [page] page number to query
8189
+ * @param {number} [size] amount of result by page
8190
+ * @param {*} [options] Override http request option.
8191
+ * @throws {RequiredError}
8192
+ */
8193
+ async getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioRun>>> {
8194
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options);
8195
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8196
+ },
8197
+ /**
8198
+ *
8199
+ * @summary import a ScenarioRun for the Scenario
8200
+ * @param {string} organizationId the Organization identifier
8201
+ * @param {string} workspaceId the Workspace identifier
8202
+ * @param {string} scenarioId the Scenario identifier
8203
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
7692
8204
  * @param {*} [options] Override http request option.
7693
8205
  * @throws {RequiredError}
7694
8206
  */
7695
- async getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioRun>>> {
7696
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceScenarioRuns(organizationId, workspaceId, options);
8207
+ async importScenarioRun(organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioRun>> {
8208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options);
7697
8209
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7698
8210
  },
7699
8211
  /**
@@ -7714,11 +8226,13 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
7714
8226
  * @summary Search ScenarioRuns
7715
8227
  * @param {string} organizationId the Organization identifier
7716
8228
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
8229
+ * @param {number} [page] page number to query
8230
+ * @param {number} [size] amount of result by page
7717
8231
  * @param {*} [options] Override http request option.
7718
8232
  * @throws {RequiredError}
7719
8233
  */
7720
- async searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioRun>>> {
7721
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchScenarioRuns(organizationId, scenarioRunSearch, options);
8234
+ async searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioRun>>> {
8235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options);
7722
8236
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7723
8237
  },
7724
8238
  /**
@@ -7852,22 +8366,39 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
7852
8366
  * @param {string} organizationId the Organization identifier
7853
8367
  * @param {string} workspaceId the Workspace identifier
7854
8368
  * @param {string} scenarioId the Scenario identifier
8369
+ * @param {number} [page] page number to query
8370
+ * @param {number} [size] amount of result by page
7855
8371
  * @param {*} [options] Override http request option.
7856
8372
  * @throws {RequiredError}
7857
8373
  */
7858
- getScenarioRuns(organizationId: string, workspaceId: string, scenarioId: string, options?: any): AxiosPromise<Array<ScenarioRun>> {
7859
- return localVarFp.getScenarioRuns(organizationId, workspaceId, scenarioId, options).then((request) => request(axios, basePath));
8374
+ getScenarioRuns(organizationId: string, workspaceId: string, scenarioId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<ScenarioRun>> {
8375
+ return localVarFp.getScenarioRuns(organizationId, workspaceId, scenarioId, page, size, options).then((request) => request(axios, basePath));
7860
8376
  },
7861
8377
  /**
7862
8378
  *
7863
8379
  * @summary get the list of ScenarioRuns for the Workspace
7864
8380
  * @param {string} organizationId the Organization identifier
7865
8381
  * @param {string} workspaceId the Workspace identifier
8382
+ * @param {number} [page] page number to query
8383
+ * @param {number} [size] amount of result by page
8384
+ * @param {*} [options] Override http request option.
8385
+ * @throws {RequiredError}
8386
+ */
8387
+ getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<ScenarioRun>> {
8388
+ return localVarFp.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then((request) => request(axios, basePath));
8389
+ },
8390
+ /**
8391
+ *
8392
+ * @summary import a ScenarioRun for the Scenario
8393
+ * @param {string} organizationId the Organization identifier
8394
+ * @param {string} workspaceId the Workspace identifier
8395
+ * @param {string} scenarioId the Scenario identifier
8396
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
7866
8397
  * @param {*} [options] Override http request option.
7867
8398
  * @throws {RequiredError}
7868
8399
  */
7869
- getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<ScenarioRun>> {
7870
- return localVarFp.getWorkspaceScenarioRuns(organizationId, workspaceId, options).then((request) => request(axios, basePath));
8400
+ importScenarioRun(organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options?: any): AxiosPromise<ScenarioRun> {
8401
+ return localVarFp.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then((request) => request(axios, basePath));
7871
8402
  },
7872
8403
  /**
7873
8404
  *
@@ -7886,11 +8417,13 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
7886
8417
  * @summary Search ScenarioRuns
7887
8418
  * @param {string} organizationId the Organization identifier
7888
8419
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
8420
+ * @param {number} [page] page number to query
8421
+ * @param {number} [size] amount of result by page
7889
8422
  * @param {*} [options] Override http request option.
7890
8423
  * @throws {RequiredError}
7891
8424
  */
7892
- searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, options?: any): AxiosPromise<Array<ScenarioRun>> {
7893
- return localVarFp.searchScenarioRuns(organizationId, scenarioRunSearch, options).then((request) => request(axios, basePath));
8425
+ searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, page?: number, size?: number, options?: any): AxiosPromise<Array<ScenarioRun>> {
8426
+ return localVarFp.searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options).then((request) => request(axios, basePath));
7894
8427
  },
7895
8428
  /**
7896
8429
  *
@@ -8037,12 +8570,14 @@ export class ScenariorunApi extends BaseAPI {
8037
8570
  * @param {string} organizationId the Organization identifier
8038
8571
  * @param {string} workspaceId the Workspace identifier
8039
8572
  * @param {string} scenarioId the Scenario identifier
8573
+ * @param {number} [page] page number to query
8574
+ * @param {number} [size] amount of result by page
8040
8575
  * @param {*} [options] Override http request option.
8041
8576
  * @throws {RequiredError}
8042
8577
  * @memberof ScenariorunApi
8043
8578
  */
8044
- public getScenarioRuns(organizationId: string, workspaceId: string, scenarioId: string, options?: AxiosRequestConfig) {
8045
- return ScenariorunApiFp(this.configuration).getScenarioRuns(organizationId, workspaceId, scenarioId, options).then((request) => request(this.axios, this.basePath));
8579
+ public getScenarioRuns(organizationId: string, workspaceId: string, scenarioId: string, page?: number, size?: number, options?: AxiosRequestConfig) {
8580
+ return ScenariorunApiFp(this.configuration).getScenarioRuns(organizationId, workspaceId, scenarioId, page, size, options).then((request) => request(this.axios, this.basePath));
8046
8581
  }
8047
8582
 
8048
8583
  /**
@@ -8050,12 +8585,29 @@ export class ScenariorunApi extends BaseAPI {
8050
8585
  * @summary get the list of ScenarioRuns for the Workspace
8051
8586
  * @param {string} organizationId the Organization identifier
8052
8587
  * @param {string} workspaceId the Workspace identifier
8588
+ * @param {number} [page] page number to query
8589
+ * @param {number} [size] amount of result by page
8590
+ * @param {*} [options] Override http request option.
8591
+ * @throws {RequiredError}
8592
+ * @memberof ScenariorunApi
8593
+ */
8594
+ public getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, page?: number, size?: number, options?: AxiosRequestConfig) {
8595
+ return ScenariorunApiFp(this.configuration).getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then((request) => request(this.axios, this.basePath));
8596
+ }
8597
+
8598
+ /**
8599
+ *
8600
+ * @summary import a ScenarioRun for the Scenario
8601
+ * @param {string} organizationId the Organization identifier
8602
+ * @param {string} workspaceId the Workspace identifier
8603
+ * @param {string} scenarioId the Scenario identifier
8604
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
8053
8605
  * @param {*} [options] Override http request option.
8054
8606
  * @throws {RequiredError}
8055
8607
  * @memberof ScenariorunApi
8056
8608
  */
8057
- public getWorkspaceScenarioRuns(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
8058
- return ScenariorunApiFp(this.configuration).getWorkspaceScenarioRuns(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
8609
+ public importScenarioRun(organizationId: string, workspaceId: string, scenarioId: string, scenarioRun: ScenarioRun, options?: AxiosRequestConfig) {
8610
+ return ScenariorunApiFp(this.configuration).importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then((request) => request(this.axios, this.basePath));
8059
8611
  }
8060
8612
 
8061
8613
  /**
@@ -8077,12 +8629,14 @@ export class ScenariorunApi extends BaseAPI {
8077
8629
  * @summary Search ScenarioRuns
8078
8630
  * @param {string} organizationId the Organization identifier
8079
8631
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
8632
+ * @param {number} [page] page number to query
8633
+ * @param {number} [size] amount of result by page
8080
8634
  * @param {*} [options] Override http request option.
8081
8635
  * @throws {RequiredError}
8082
8636
  * @memberof ScenariorunApi
8083
8637
  */
8084
- public searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, options?: AxiosRequestConfig) {
8085
- return ScenariorunApiFp(this.configuration).searchScenarioRuns(organizationId, scenarioRunSearch, options).then((request) => request(this.axios, this.basePath));
8638
+ public searchScenarioRuns(organizationId: string, scenarioRunSearch: ScenarioRunSearch, page?: number, size?: number, options?: AxiosRequestConfig) {
8639
+ return ScenariorunApiFp(this.configuration).searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options).then((request) => request(this.axios, this.basePath));
8086
8640
  }
8087
8641
 
8088
8642
  /**
@@ -8449,10 +9003,12 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
8449
9003
  *
8450
9004
  * @summary List all Solutions
8451
9005
  * @param {string} organizationId the Organization identifier
9006
+ * @param {number} [page] page number to query
9007
+ * @param {number} [size] amount of result by page
8452
9008
  * @param {*} [options] Override http request option.
8453
9009
  * @throws {RequiredError}
8454
9010
  */
8455
- findAllSolutions: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9011
+ findAllSolutions: async (organizationId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8456
9012
  // verify required parameter 'organizationId' is not null or undefined
8457
9013
  assertParamExists('findAllSolutions', 'organizationId', organizationId)
8458
9014
  const localVarPath = `/organizations/{organization_id}/solutions`
@@ -8472,6 +9028,14 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
8472
9028
  // oauth required
8473
9029
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
8474
9030
 
9031
+ if (page !== undefined) {
9032
+ localVarQueryParameter['page'] = page;
9033
+ }
9034
+
9035
+ if (size !== undefined) {
9036
+ localVarQueryParameter['size'] = size;
9037
+ }
9038
+
8475
9039
 
8476
9040
 
8477
9041
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -8527,20 +9091,19 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
8527
9091
  },
8528
9092
  /**
8529
9093
  *
8530
- * @summary Remove all Run Templates from the Solution specified
9094
+ * @summary Import a solution
8531
9095
  * @param {string} organizationId the Organization identifier
8532
- * @param {string} solutionId the Solution identifier
9096
+ * @param {Solution} solution the Solution to import
8533
9097
  * @param {*} [options] Override http request option.
8534
9098
  * @throws {RequiredError}
8535
9099
  */
8536
- removeAllRunTemplates: async (organizationId: string, solutionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9100
+ importSolution: async (organizationId: string, solution: Solution, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8537
9101
  // verify required parameter 'organizationId' is not null or undefined
8538
- assertParamExists('removeAllRunTemplates', 'organizationId', organizationId)
8539
- // verify required parameter 'solutionId' is not null or undefined
8540
- assertParamExists('removeAllRunTemplates', 'solutionId', solutionId)
8541
- const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/runTemplates`
8542
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
8543
- .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
9102
+ assertParamExists('importSolution', 'organizationId', organizationId)
9103
+ // verify required parameter 'solution' is not null or undefined
9104
+ assertParamExists('importSolution', 'solution', solution)
9105
+ const localVarPath = `/organizations/{organization_id}/solutions/import`
9106
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
8544
9107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8545
9108
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8546
9109
  let baseOptions;
@@ -8548,7 +9111,7 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
8548
9111
  baseOptions = configuration.baseOptions;
8549
9112
  }
8550
9113
 
8551
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
9114
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8552
9115
  const localVarHeaderParameter = {} as any;
8553
9116
  const localVarQueryParameter = {} as any;
8554
9117
 
@@ -8558,9 +9121,12 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
8558
9121
 
8559
9122
 
8560
9123
 
9124
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9125
+
8561
9126
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8562
9127
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8563
9128
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9129
+ localVarRequestOptions.data = serializeDataIfNeeded(solution, localVarRequestOptions, configuration)
8564
9130
 
8565
9131
  return {
8566
9132
  url: toPathString(localVarUrlObj),
@@ -8569,7 +9135,49 @@ export const SolutionApiAxiosParamCreator = function (configuration?: Configurat
8569
9135
  },
8570
9136
  /**
8571
9137
  *
8572
- * @summary Remove all Parameter Groups from the Solution specified
9138
+ * @summary Remove all Run Templates from the Solution specified
9139
+ * @param {string} organizationId the Organization identifier
9140
+ * @param {string} solutionId the Solution identifier
9141
+ * @param {*} [options] Override http request option.
9142
+ * @throws {RequiredError}
9143
+ */
9144
+ removeAllRunTemplates: async (organizationId: string, solutionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9145
+ // verify required parameter 'organizationId' is not null or undefined
9146
+ assertParamExists('removeAllRunTemplates', 'organizationId', organizationId)
9147
+ // verify required parameter 'solutionId' is not null or undefined
9148
+ assertParamExists('removeAllRunTemplates', 'solutionId', solutionId)
9149
+ const localVarPath = `/organizations/{organization_id}/solutions/{solution_id}/runTemplates`
9150
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9151
+ .replace(`{${"solution_id"}}`, encodeURIComponent(String(solutionId)));
9152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9154
+ let baseOptions;
9155
+ if (configuration) {
9156
+ baseOptions = configuration.baseOptions;
9157
+ }
9158
+
9159
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
9160
+ const localVarHeaderParameter = {} as any;
9161
+ const localVarQueryParameter = {} as any;
9162
+
9163
+ // authentication oAuth2AuthCode required
9164
+ // oauth required
9165
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
9166
+
9167
+
9168
+
9169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9172
+
9173
+ return {
9174
+ url: toPathString(localVarUrlObj),
9175
+ options: localVarRequestOptions,
9176
+ };
9177
+ },
9178
+ /**
9179
+ *
9180
+ * @summary Remove all Parameter Groups from the Solution specified
8573
9181
  * @param {string} organizationId the Organization identifier
8574
9182
  * @param {string} solutionId the Solution identifier
8575
9183
  * @param {*} [options] Override http request option.
@@ -8916,11 +9524,13 @@ export const SolutionApiFp = function(configuration?: Configuration) {
8916
9524
  *
8917
9525
  * @summary List all Solutions
8918
9526
  * @param {string} organizationId the Organization identifier
9527
+ * @param {number} [page] page number to query
9528
+ * @param {number} [size] amount of result by page
8919
9529
  * @param {*} [options] Override http request option.
8920
9530
  * @throws {RequiredError}
8921
9531
  */
8922
- async findAllSolutions(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Solution>>> {
8923
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllSolutions(organizationId, options);
9532
+ async findAllSolutions(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Solution>>> {
9533
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllSolutions(organizationId, page, size, options);
8924
9534
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8925
9535
  },
8926
9536
  /**
@@ -8935,6 +9545,18 @@ export const SolutionApiFp = function(configuration?: Configuration) {
8935
9545
  const localVarAxiosArgs = await localVarAxiosParamCreator.findSolutionById(organizationId, solutionId, options);
8936
9546
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8937
9547
  },
9548
+ /**
9549
+ *
9550
+ * @summary Import a solution
9551
+ * @param {string} organizationId the Organization identifier
9552
+ * @param {Solution} solution the Solution to import
9553
+ * @param {*} [options] Override http request option.
9554
+ * @throws {RequiredError}
9555
+ */
9556
+ async importSolution(organizationId: string, solution: Solution, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Solution>> {
9557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importSolution(organizationId, solution, options);
9558
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9559
+ },
8938
9560
  /**
8939
9561
  *
8940
9562
  * @summary Remove all Run Templates from the Solution specified
@@ -9111,11 +9733,13 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
9111
9733
  *
9112
9734
  * @summary List all Solutions
9113
9735
  * @param {string} organizationId the Organization identifier
9736
+ * @param {number} [page] page number to query
9737
+ * @param {number} [size] amount of result by page
9114
9738
  * @param {*} [options] Override http request option.
9115
9739
  * @throws {RequiredError}
9116
9740
  */
9117
- findAllSolutions(organizationId: string, options?: any): AxiosPromise<Array<Solution>> {
9118
- return localVarFp.findAllSolutions(organizationId, options).then((request) => request(axios, basePath));
9741
+ findAllSolutions(organizationId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<Solution>> {
9742
+ return localVarFp.findAllSolutions(organizationId, page, size, options).then((request) => request(axios, basePath));
9119
9743
  },
9120
9744
  /**
9121
9745
  *
@@ -9128,6 +9752,17 @@ export const SolutionApiFactory = function (configuration?: Configuration, baseP
9128
9752
  findSolutionById(organizationId: string, solutionId: string, options?: any): AxiosPromise<Solution> {
9129
9753
  return localVarFp.findSolutionById(organizationId, solutionId, options).then((request) => request(axios, basePath));
9130
9754
  },
9755
+ /**
9756
+ *
9757
+ * @summary Import a solution
9758
+ * @param {string} organizationId the Organization identifier
9759
+ * @param {Solution} solution the Solution to import
9760
+ * @param {*} [options] Override http request option.
9761
+ * @throws {RequiredError}
9762
+ */
9763
+ importSolution(organizationId: string, solution: Solution, options?: any): AxiosPromise<Solution> {
9764
+ return localVarFp.importSolution(organizationId, solution, options).then((request) => request(axios, basePath));
9765
+ },
9131
9766
  /**
9132
9767
  *
9133
9768
  * @summary Remove all Run Templates from the Solution specified
@@ -9312,12 +9947,14 @@ export class SolutionApi extends BaseAPI {
9312
9947
  *
9313
9948
  * @summary List all Solutions
9314
9949
  * @param {string} organizationId the Organization identifier
9950
+ * @param {number} [page] page number to query
9951
+ * @param {number} [size] amount of result by page
9315
9952
  * @param {*} [options] Override http request option.
9316
9953
  * @throws {RequiredError}
9317
9954
  * @memberof SolutionApi
9318
9955
  */
9319
- public findAllSolutions(organizationId: string, options?: AxiosRequestConfig) {
9320
- return SolutionApiFp(this.configuration).findAllSolutions(organizationId, options).then((request) => request(this.axios, this.basePath));
9956
+ public findAllSolutions(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig) {
9957
+ return SolutionApiFp(this.configuration).findAllSolutions(organizationId, page, size, options).then((request) => request(this.axios, this.basePath));
9321
9958
  }
9322
9959
 
9323
9960
  /**
@@ -9333,6 +9970,19 @@ export class SolutionApi extends BaseAPI {
9333
9970
  return SolutionApiFp(this.configuration).findSolutionById(organizationId, solutionId, options).then((request) => request(this.axios, this.basePath));
9334
9971
  }
9335
9972
 
9973
+ /**
9974
+ *
9975
+ * @summary Import a solution
9976
+ * @param {string} organizationId the Organization identifier
9977
+ * @param {Solution} solution the Solution to import
9978
+ * @param {*} [options] Override http request option.
9979
+ * @throws {RequiredError}
9980
+ * @memberof SolutionApi
9981
+ */
9982
+ public importSolution(organizationId: string, solution: Solution, options?: AxiosRequestConfig) {
9983
+ return SolutionApiFp(this.configuration).importSolution(organizationId, solution, options).then((request) => request(this.axios, this.basePath));
9984
+ }
9985
+
9336
9986
  /**
9337
9987
  *
9338
9988
  * @summary Remove all Run Templates from the Solution specified
@@ -9427,7 +10077,8 @@ export class SolutionApi extends BaseAPI {
9427
10077
  export const TwingraphApiAxiosParamCreator = function (configuration?: Configuration) {
9428
10078
  return {
9429
10079
  /**
9430
- * Launch a mass delete job
10080
+ * Delete all versions of a graph and his metadatas
10081
+ * @summary Delete all versions of a graph and his metadatas
9431
10082
  * @param {string} organizationId the Organization identifier
9432
10083
  * @param {string} graphId the Graph Identifier
9433
10084
  * @param {*} [options] Override http request option.
@@ -9468,16 +10119,24 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9468
10119
  };
9469
10120
  },
9470
10121
  /**
9471
- * Return the list of all graphs stored in the organization
10122
+ * Run a query on a graph instance and return the result as a zip file in async mode
10123
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
9472
10124
  * @param {string} organizationId the Organization identifier
10125
+ * @param {string} graphId the Graph Identifier
10126
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
9473
10127
  * @param {*} [options] Override http request option.
9474
10128
  * @throws {RequiredError}
9475
10129
  */
9476
- findAllTwingraphs: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10130
+ batchQuery: async (organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9477
10131
  // verify required parameter 'organizationId' is not null or undefined
9478
- assertParamExists('findAllTwingraphs', 'organizationId', organizationId)
9479
- const localVarPath = `/organizations/{organization_id}/twingraphs`
9480
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
10132
+ assertParamExists('batchQuery', 'organizationId', organizationId)
10133
+ // verify required parameter 'graphId' is not null or undefined
10134
+ assertParamExists('batchQuery', 'graphId', graphId)
10135
+ // verify required parameter 'twinGraphQuery' is not null or undefined
10136
+ assertParamExists('batchQuery', 'twinGraphQuery', twinGraphQuery)
10137
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/batch-query`
10138
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10139
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
9481
10140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9482
10141
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9483
10142
  let baseOptions;
@@ -9485,7 +10144,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9485
10144
  baseOptions = configuration.baseOptions;
9486
10145
  }
9487
10146
 
9488
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10147
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9489
10148
  const localVarHeaderParameter = {} as any;
9490
10149
  const localVarQueryParameter = {} as any;
9491
10150
 
@@ -9495,9 +10154,12 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9495
10154
 
9496
10155
 
9497
10156
 
10157
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10158
+
9498
10159
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9499
10160
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9500
10161
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10162
+ localVarRequestOptions.data = serializeDataIfNeeded(twinGraphQuery, localVarRequestOptions, configuration)
9501
10163
 
9502
10164
  return {
9503
10165
  url: toPathString(localVarUrlObj),
@@ -9505,18 +10167,25 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9505
10167
  };
9506
10168
  },
9507
10169
  /**
9508
- * Return the metaData of the specified graph
10170
+ * Async batch update by loading a CSV file on a graph instance
10171
+ * @summary Async batch update by loading a CSV file on a graph instance
9509
10172
  * @param {string} organizationId the Organization identifier
9510
10173
  * @param {string} graphId the Graph Identifier
10174
+ * @param {TwinGraphQuery} twinGraphQuery
10175
+ * @param {any} body
9511
10176
  * @param {*} [options] Override http request option.
9512
10177
  * @throws {RequiredError}
9513
10178
  */
9514
- getGraphMetaData: async (organizationId: string, graphId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10179
+ batchUploadUpdate: async (organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9515
10180
  // verify required parameter 'organizationId' is not null or undefined
9516
- assertParamExists('getGraphMetaData', 'organizationId', organizationId)
10181
+ assertParamExists('batchUploadUpdate', 'organizationId', organizationId)
9517
10182
  // verify required parameter 'graphId' is not null or undefined
9518
- assertParamExists('getGraphMetaData', 'graphId', graphId)
9519
- const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/metadata`
10183
+ assertParamExists('batchUploadUpdate', 'graphId', graphId)
10184
+ // verify required parameter 'twinGraphQuery' is not null or undefined
10185
+ assertParamExists('batchUploadUpdate', 'twinGraphQuery', twinGraphQuery)
10186
+ // verify required parameter 'body' is not null or undefined
10187
+ assertParamExists('batchUploadUpdate', 'body', body)
10188
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/batch`
9520
10189
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9521
10190
  .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
9522
10191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -9526,7 +10195,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9526
10195
  baseOptions = configuration.baseOptions;
9527
10196
  }
9528
10197
 
9529
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10198
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9530
10199
  const localVarHeaderParameter = {} as any;
9531
10200
  const localVarQueryParameter = {} as any;
9532
10201
 
@@ -9534,11 +10203,18 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9534
10203
  // oauth required
9535
10204
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
9536
10205
 
10206
+ if (twinGraphQuery !== undefined) {
10207
+ localVarQueryParameter['twinGraphQuery'] = twinGraphQuery;
10208
+ }
10209
+
9537
10210
 
9538
10211
 
10212
+ localVarHeaderParameter['Content-Type'] = 'text/csv';
10213
+
9539
10214
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9540
10215
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9541
10216
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10217
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
9542
10218
 
9543
10219
  return {
9544
10220
  url: toPathString(localVarUrlObj),
@@ -9546,19 +10222,28 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9546
10222
  };
9547
10223
  },
9548
10224
  /**
9549
- * Import a new version of a twin graph
10225
+ * create new entities in a graph instance
10226
+ * @summary Create new entities in a graph instance
9550
10227
  * @param {string} organizationId the Organization identifier
9551
- * @param {TwinGraphImport} twinGraphImport the graph to import
10228
+ * @param {string} graphId the Graph Identifier
10229
+ * @param {'node' | 'relationship'} type the entity model type
10230
+ * @param {Array<GraphProperties>} graphProperties the entities to create
9552
10231
  * @param {*} [options] Override http request option.
9553
10232
  * @throws {RequiredError}
9554
10233
  */
9555
- importGraph: async (organizationId: string, twinGraphImport: TwinGraphImport, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10234
+ createEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9556
10235
  // verify required parameter 'organizationId' is not null or undefined
9557
- assertParamExists('importGraph', 'organizationId', organizationId)
9558
- // verify required parameter 'twinGraphImport' is not null or undefined
9559
- assertParamExists('importGraph', 'twinGraphImport', twinGraphImport)
9560
- const localVarPath = `/organizations/{organization_id}/twingraph/import`
9561
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
10236
+ assertParamExists('createEntities', 'organizationId', organizationId)
10237
+ // verify required parameter 'graphId' is not null or undefined
10238
+ assertParamExists('createEntities', 'graphId', graphId)
10239
+ // verify required parameter 'type' is not null or undefined
10240
+ assertParamExists('createEntities', 'type', type)
10241
+ // verify required parameter 'graphProperties' is not null or undefined
10242
+ assertParamExists('createEntities', 'graphProperties', graphProperties)
10243
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
10244
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10245
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
10246
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
9562
10247
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9563
10248
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9564
10249
  let baseOptions;
@@ -9581,7 +10266,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9581
10266
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9582
10267
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9583
10268
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9584
- localVarRequestOptions.data = serializeDataIfNeeded(twinGraphImport, localVarRequestOptions, configuration)
10269
+ localVarRequestOptions.data = serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration)
9585
10270
 
9586
10271
  return {
9587
10272
  url: toPathString(localVarUrlObj),
@@ -9589,20 +10274,22 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9589
10274
  };
9590
10275
  },
9591
10276
  /**
9592
- * Get the status of a job
10277
+ * 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.
10278
+ * @summary Create a new graph
9593
10279
  * @param {string} organizationId the Organization identifier
9594
- * @param {string} jobId the job identifier
10280
+ * @param {string} graphId the Graph Identifier
10281
+ * @param {any} [body]
9595
10282
  * @param {*} [options] Override http request option.
9596
10283
  * @throws {RequiredError}
9597
10284
  */
9598
- jobStatus: async (organizationId: string, jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10285
+ createGraph: async (organizationId: string, graphId: string, body?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9599
10286
  // verify required parameter 'organizationId' is not null or undefined
9600
- assertParamExists('jobStatus', 'organizationId', organizationId)
9601
- // verify required parameter 'jobId' is not null or undefined
9602
- assertParamExists('jobStatus', 'jobId', jobId)
9603
- const localVarPath = `/organizations/{organization_id}/job/{job_id}/status`
10287
+ assertParamExists('createGraph', 'organizationId', organizationId)
10288
+ // verify required parameter 'graphId' is not null or undefined
10289
+ assertParamExists('createGraph', 'graphId', graphId)
10290
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}`
9604
10291
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9605
- .replace(`{${"job_id"}}`, encodeURIComponent(String(jobId)));
10292
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
9606
10293
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9607
10294
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9608
10295
  let baseOptions;
@@ -9610,7 +10297,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9610
10297
  baseOptions = configuration.baseOptions;
9611
10298
  }
9612
10299
 
9613
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10300
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9614
10301
  const localVarHeaderParameter = {} as any;
9615
10302
  const localVarQueryParameter = {} as any;
9616
10303
 
@@ -9620,9 +10307,12 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9620
10307
 
9621
10308
 
9622
10309
 
10310
+ localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
10311
+
9623
10312
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9624
10313
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9625
10314
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10315
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
9626
10316
 
9627
10317
  return {
9628
10318
  url: toPathString(localVarUrlObj),
@@ -9630,23 +10320,28 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9630
10320
  };
9631
10321
  },
9632
10322
  /**
9633
- * Run a query on a graph instance
10323
+ * delete entities in a graph instance
10324
+ * @summary Delete entities in a graph instance
9634
10325
  * @param {string} organizationId the Organization identifier
9635
10326
  * @param {string} graphId the Graph Identifier
9636
- * @param {TwinGraphQuery} twinGraphQuery the query to run
10327
+ * @param {'node' | 'relationship'} type the entity model type
10328
+ * @param {Array<string>} ids the entities to delete
9637
10329
  * @param {*} [options] Override http request option.
9638
10330
  * @throws {RequiredError}
9639
10331
  */
9640
- query: async (organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10332
+ deleteEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9641
10333
  // verify required parameter 'organizationId' is not null or undefined
9642
- assertParamExists('query', 'organizationId', organizationId)
10334
+ assertParamExists('deleteEntities', 'organizationId', organizationId)
9643
10335
  // verify required parameter 'graphId' is not null or undefined
9644
- assertParamExists('query', 'graphId', graphId)
9645
- // verify required parameter 'twinGraphQuery' is not null or undefined
9646
- assertParamExists('query', 'twinGraphQuery', twinGraphQuery)
9647
- const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/query`
10336
+ assertParamExists('deleteEntities', 'graphId', graphId)
10337
+ // verify required parameter 'type' is not null or undefined
10338
+ assertParamExists('deleteEntities', 'type', type)
10339
+ // verify required parameter 'ids' is not null or undefined
10340
+ assertParamExists('deleteEntities', 'ids', ids)
10341
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
9648
10342
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
9649
- .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
10343
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
10344
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
9650
10345
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9651
10346
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9652
10347
  let baseOptions;
@@ -9654,7 +10349,7 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9654
10349
  baseOptions = configuration.baseOptions;
9655
10350
  }
9656
10351
 
9657
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10352
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
9658
10353
  const localVarHeaderParameter = {} as any;
9659
10354
  const localVarQueryParameter = {} as any;
9660
10355
 
@@ -9662,264 +10357,170 @@ export const TwingraphApiAxiosParamCreator = function (configuration?: Configura
9662
10357
  // oauth required
9663
10358
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
9664
10359
 
10360
+ if (ids) {
10361
+ localVarQueryParameter['ids'] = ids;
10362
+ }
9665
10363
 
9666
-
9667
- localVarHeaderParameter['Content-Type'] = 'application/json';
9668
10364
 
10365
+
9669
10366
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9670
10367
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9671
10368
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9672
- localVarRequestOptions.data = serializeDataIfNeeded(twinGraphQuery, localVarRequestOptions, configuration)
9673
10369
 
9674
10370
  return {
9675
10371
  url: toPathString(localVarUrlObj),
9676
10372
  options: localVarRequestOptions,
9677
10373
  };
9678
10374
  },
9679
- }
9680
- };
9681
-
9682
- /**
9683
- * TwingraphApi - functional programming interface
9684
- * @export
9685
- */
9686
- export const TwingraphApiFp = function(configuration?: Configuration) {
9687
- const localVarAxiosParamCreator = TwingraphApiAxiosParamCreator(configuration)
9688
- return {
9689
10375
  /**
9690
- * Launch a mass delete job
10376
+ * Download a graph compressed in a zip file
10377
+ * @summary Download a graph compressed in a zip file
9691
10378
  * @param {string} organizationId the Organization identifier
9692
- * @param {string} graphId the Graph Identifier
10379
+ * @param {string} hash the Graph download identifier
9693
10380
  * @param {*} [options] Override http request option.
9694
10381
  * @throws {RequiredError}
9695
10382
  */
9696
- async _delete(organizationId: string, graphId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9697
- const localVarAxiosArgs = await localVarAxiosParamCreator._delete(organizationId, graphId, options);
9698
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10383
+ downloadGraph: async (organizationId: string, hash: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10384
+ // verify required parameter 'organizationId' is not null or undefined
10385
+ assertParamExists('downloadGraph', 'organizationId', organizationId)
10386
+ // verify required parameter 'hash' is not null or undefined
10387
+ assertParamExists('downloadGraph', 'hash', hash)
10388
+ const localVarPath = `/organizations/{organization_id}/twingraph/download/{hash}`
10389
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10390
+ .replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
10391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10393
+ let baseOptions;
10394
+ if (configuration) {
10395
+ baseOptions = configuration.baseOptions;
10396
+ }
10397
+
10398
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10399
+ const localVarHeaderParameter = {} as any;
10400
+ const localVarQueryParameter = {} as any;
10401
+
10402
+ // authentication oAuth2AuthCode required
10403
+ // oauth required
10404
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10405
+
10406
+
10407
+
10408
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10410
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10411
+
10412
+ return {
10413
+ url: toPathString(localVarUrlObj),
10414
+ options: localVarRequestOptions,
10415
+ };
9699
10416
  },
9700
10417
  /**
9701
10418
  * Return the list of all graphs stored in the organization
10419
+ * @summary Return the list of all graphs stored in the organization
9702
10420
  * @param {string} organizationId the Organization identifier
9703
10421
  * @param {*} [options] Override http request option.
9704
10422
  * @throws {RequiredError}
9705
10423
  */
9706
- async findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
9707
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllTwingraphs(organizationId, options);
9708
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10424
+ findAllTwingraphs: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10425
+ // verify required parameter 'organizationId' is not null or undefined
10426
+ assertParamExists('findAllTwingraphs', 'organizationId', organizationId)
10427
+ const localVarPath = `/organizations/{organization_id}/twingraphs`
10428
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
10429
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10430
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10431
+ let baseOptions;
10432
+ if (configuration) {
10433
+ baseOptions = configuration.baseOptions;
10434
+ }
10435
+
10436
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10437
+ const localVarHeaderParameter = {} as any;
10438
+ const localVarQueryParameter = {} as any;
10439
+
10440
+ // authentication oAuth2AuthCode required
10441
+ // oauth required
10442
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10443
+
10444
+
10445
+
10446
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10447
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10448
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10449
+
10450
+ return {
10451
+ url: toPathString(localVarUrlObj),
10452
+ options: localVarRequestOptions,
10453
+ };
9709
10454
  },
9710
10455
  /**
9711
- * Return the metaData of the specified graph
10456
+ * get entities in a graph instance
10457
+ * @summary Get entities in a graph instance
9712
10458
  * @param {string} organizationId the Organization identifier
9713
10459
  * @param {string} graphId the Graph Identifier
10460
+ * @param {'node' | 'relationship'} type the entity model type
10461
+ * @param {Array<string>} ids the entities to get
9714
10462
  * @param {*} [options] Override http request option.
9715
10463
  * @throws {RequiredError}
9716
10464
  */
9717
- async getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
9718
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options);
9719
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10465
+ getEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10466
+ // verify required parameter 'organizationId' is not null or undefined
10467
+ assertParamExists('getEntities', 'organizationId', organizationId)
10468
+ // verify required parameter 'graphId' is not null or undefined
10469
+ assertParamExists('getEntities', 'graphId', graphId)
10470
+ // verify required parameter 'type' is not null or undefined
10471
+ assertParamExists('getEntities', 'type', type)
10472
+ // verify required parameter 'ids' is not null or undefined
10473
+ assertParamExists('getEntities', 'ids', ids)
10474
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
10475
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10476
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
10477
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
10478
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10479
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10480
+ let baseOptions;
10481
+ if (configuration) {
10482
+ baseOptions = configuration.baseOptions;
10483
+ }
10484
+
10485
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10486
+ const localVarHeaderParameter = {} as any;
10487
+ const localVarQueryParameter = {} as any;
10488
+
10489
+ // authentication oAuth2AuthCode required
10490
+ // oauth required
10491
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10492
+
10493
+ if (ids) {
10494
+ localVarQueryParameter['ids'] = ids;
10495
+ }
10496
+
10497
+
10498
+
10499
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10501
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10502
+
10503
+ return {
10504
+ url: toPathString(localVarUrlObj),
10505
+ options: localVarRequestOptions,
10506
+ };
9720
10507
  },
9721
10508
  /**
9722
- * Import a new version of a twin graph
10509
+ * Return the metaData of the specified graph
10510
+ * @summary Return the metaData of the specified graph
9723
10511
  * @param {string} organizationId the Organization identifier
9724
- * @param {TwinGraphImport} twinGraphImport the graph to import
10512
+ * @param {string} graphId the Graph Identifier
9725
10513
  * @param {*} [options] Override http request option.
9726
10514
  * @throws {RequiredError}
9727
10515
  */
9728
- async importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphImportInfo>> {
9729
- const localVarAxiosArgs = await localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options);
9730
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9731
- },
9732
- /**
9733
- * Get the status of a job
9734
- * @param {string} organizationId the Organization identifier
9735
- * @param {string} jobId the job identifier
9736
- * @param {*} [options] Override http request option.
9737
- * @throws {RequiredError}
9738
- */
9739
- async jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
9740
- const localVarAxiosArgs = await localVarAxiosParamCreator.jobStatus(organizationId, jobId, options);
9741
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9742
- },
9743
- /**
9744
- * Run a query on a graph instance
9745
- * @param {string} organizationId the Organization identifier
9746
- * @param {string} graphId the Graph Identifier
9747
- * @param {TwinGraphQuery} twinGraphQuery the query to run
9748
- * @param {*} [options] Override http request option.
9749
- * @throws {RequiredError}
9750
- */
9751
- async query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
9752
- const localVarAxiosArgs = await localVarAxiosParamCreator.query(organizationId, graphId, twinGraphQuery, options);
9753
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9754
- },
9755
- }
9756
- };
9757
-
9758
- /**
9759
- * TwingraphApi - factory interface
9760
- * @export
9761
- */
9762
- export const TwingraphApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9763
- const localVarFp = TwingraphApiFp(configuration)
9764
- return {
9765
- /**
9766
- * Launch a mass delete job
9767
- * @param {string} organizationId the Organization identifier
9768
- * @param {string} graphId the Graph Identifier
9769
- * @param {*} [options] Override http request option.
9770
- * @throws {RequiredError}
9771
- */
9772
- _delete(organizationId: string, graphId: string, options?: any): AxiosPromise<void> {
9773
- return localVarFp._delete(organizationId, graphId, options).then((request) => request(axios, basePath));
9774
- },
9775
- /**
9776
- * Return the list of all graphs stored in the organization
9777
- * @param {string} organizationId the Organization identifier
9778
- * @param {*} [options] Override http request option.
9779
- * @throws {RequiredError}
9780
- */
9781
- findAllTwingraphs(organizationId: string, options?: any): AxiosPromise<Array<string>> {
9782
- return localVarFp.findAllTwingraphs(organizationId, options).then((request) => request(axios, basePath));
9783
- },
9784
- /**
9785
- * Return the metaData of the specified graph
9786
- * @param {string} organizationId the Organization identifier
9787
- * @param {string} graphId the Graph Identifier
9788
- * @param {*} [options] Override http request option.
9789
- * @throws {RequiredError}
9790
- */
9791
- getGraphMetaData(organizationId: string, graphId: string, options?: any): AxiosPromise<object> {
9792
- return localVarFp.getGraphMetaData(organizationId, graphId, options).then((request) => request(axios, basePath));
9793
- },
9794
- /**
9795
- * Import a new version of a twin graph
9796
- * @param {string} organizationId the Organization identifier
9797
- * @param {TwinGraphImport} twinGraphImport the graph to import
9798
- * @param {*} [options] Override http request option.
9799
- * @throws {RequiredError}
9800
- */
9801
- importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: any): AxiosPromise<TwinGraphImportInfo> {
9802
- return localVarFp.importGraph(organizationId, twinGraphImport, options).then((request) => request(axios, basePath));
9803
- },
9804
- /**
9805
- * Get the status of a job
9806
- * @param {string} organizationId the Organization identifier
9807
- * @param {string} jobId the job identifier
9808
- * @param {*} [options] Override http request option.
9809
- * @throws {RequiredError}
9810
- */
9811
- jobStatus(organizationId: string, jobId: string, options?: any): AxiosPromise<string> {
9812
- return localVarFp.jobStatus(organizationId, jobId, options).then((request) => request(axios, basePath));
9813
- },
9814
- /**
9815
- * Run a query on a graph instance
9816
- * @param {string} organizationId the Organization identifier
9817
- * @param {string} graphId the Graph Identifier
9818
- * @param {TwinGraphQuery} twinGraphQuery the query to run
9819
- * @param {*} [options] Override http request option.
9820
- * @throws {RequiredError}
9821
- */
9822
- query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: any): AxiosPromise<string> {
9823
- return localVarFp.query(organizationId, graphId, twinGraphQuery, options).then((request) => request(axios, basePath));
9824
- },
9825
- };
9826
- };
9827
-
9828
- /**
9829
- * TwingraphApi - object-oriented interface
9830
- * @export
9831
- * @class TwingraphApi
9832
- * @extends {BaseAPI}
9833
- */
9834
- export class TwingraphApi extends BaseAPI {
9835
- /**
9836
- * Launch a mass delete job
9837
- * @param {string} organizationId the Organization identifier
9838
- * @param {string} graphId the Graph Identifier
9839
- * @param {*} [options] Override http request option.
9840
- * @throws {RequiredError}
9841
- * @memberof TwingraphApi
9842
- */
9843
- public _delete(organizationId: string, graphId: string, options?: AxiosRequestConfig) {
9844
- return TwingraphApiFp(this.configuration)._delete(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
9845
- }
9846
-
9847
- /**
9848
- * Return the list of all graphs stored in the organization
9849
- * @param {string} organizationId the Organization identifier
9850
- * @param {*} [options] Override http request option.
9851
- * @throws {RequiredError}
9852
- * @memberof TwingraphApi
9853
- */
9854
- public findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig) {
9855
- return TwingraphApiFp(this.configuration).findAllTwingraphs(organizationId, options).then((request) => request(this.axios, this.basePath));
9856
- }
9857
-
9858
- /**
9859
- * Return the metaData of the specified graph
9860
- * @param {string} organizationId the Organization identifier
9861
- * @param {string} graphId the Graph Identifier
9862
- * @param {*} [options] Override http request option.
9863
- * @throws {RequiredError}
9864
- * @memberof TwingraphApi
9865
- */
9866
- public getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig) {
9867
- return TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
9868
- }
9869
-
9870
- /**
9871
- * Import a new version of a twin graph
9872
- * @param {string} organizationId the Organization identifier
9873
- * @param {TwinGraphImport} twinGraphImport the graph to import
9874
- * @param {*} [options] Override http request option.
9875
- * @throws {RequiredError}
9876
- * @memberof TwingraphApi
9877
- */
9878
- public importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig) {
9879
- return TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then((request) => request(this.axios, this.basePath));
9880
- }
9881
-
9882
- /**
9883
- * Get the status of a job
9884
- * @param {string} organizationId the Organization identifier
9885
- * @param {string} jobId the job identifier
9886
- * @param {*} [options] Override http request option.
9887
- * @throws {RequiredError}
9888
- * @memberof TwingraphApi
9889
- */
9890
- public jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig) {
9891
- return TwingraphApiFp(this.configuration).jobStatus(organizationId, jobId, options).then((request) => request(this.axios, this.basePath));
9892
- }
9893
-
9894
- /**
9895
- * Run a query on a graph instance
9896
- * @param {string} organizationId the Organization identifier
9897
- * @param {string} graphId the Graph Identifier
9898
- * @param {TwinGraphQuery} twinGraphQuery the query to run
9899
- * @param {*} [options] Override http request option.
9900
- * @throws {RequiredError}
9901
- * @memberof TwingraphApi
9902
- */
9903
- public query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig) {
9904
- return TwingraphApiFp(this.configuration).query(organizationId, graphId, twinGraphQuery, options).then((request) => request(this.axios, this.basePath));
9905
- }
9906
- }
9907
-
9908
-
9909
- /**
9910
- * UserApi - axios parameter creator
9911
- * @export
9912
- */
9913
- export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
9914
- return {
9915
- /**
9916
- *
9917
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
9918
- * @param {*} [options] Override http request option.
9919
- * @throws {RequiredError}
9920
- */
9921
- authorizeUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9922
- const localVarPath = `/oauth2/authorize`;
10516
+ getGraphMetaData: async (organizationId: string, graphId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10517
+ // verify required parameter 'organizationId' is not null or undefined
10518
+ assertParamExists('getGraphMetaData', 'organizationId', organizationId)
10519
+ // verify required parameter 'graphId' is not null or undefined
10520
+ assertParamExists('getGraphMetaData', 'graphId', graphId)
10521
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/metadata`
10522
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10523
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
9923
10524
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9924
10525
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9925
10526
  let baseOptions;
@@ -9947,13 +10548,20 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
9947
10548
  };
9948
10549
  },
9949
10550
  /**
9950
- *
9951
- * @summary List all Users
10551
+ * Import a new version of a twin graph
10552
+ * @summary Import a new version of a twin graph
10553
+ * @param {string} organizationId the Organization identifier
10554
+ * @param {TwinGraphImport} twinGraphImport the graph to import
9952
10555
  * @param {*} [options] Override http request option.
9953
10556
  * @throws {RequiredError}
9954
10557
  */
9955
- findAllUsers: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9956
- const localVarPath = `/users`;
10558
+ importGraph: async (organizationId: string, twinGraphImport: TwinGraphImport, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10559
+ // verify required parameter 'organizationId' is not null or undefined
10560
+ assertParamExists('importGraph', 'organizationId', organizationId)
10561
+ // verify required parameter 'twinGraphImport' is not null or undefined
10562
+ assertParamExists('importGraph', 'twinGraphImport', twinGraphImport)
10563
+ const localVarPath = `/organizations/{organization_id}/twingraph/import`
10564
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
9957
10565
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9958
10566
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9959
10567
  let baseOptions;
@@ -9961,7 +10569,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
9961
10569
  baseOptions = configuration.baseOptions;
9962
10570
  }
9963
10571
 
9964
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10572
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9965
10573
  const localVarHeaderParameter = {} as any;
9966
10574
  const localVarQueryParameter = {} as any;
9967
10575
 
@@ -9971,9 +10579,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
9971
10579
 
9972
10580
 
9973
10581
 
10582
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10583
+
9974
10584
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9975
10585
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9976
10586
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10587
+ localVarRequestOptions.data = serializeDataIfNeeded(twinGraphImport, localVarRequestOptions, configuration)
9977
10588
 
9978
10589
  return {
9979
10590
  url: toPathString(localVarUrlObj),
@@ -9981,17 +10592,21 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
9981
10592
  };
9982
10593
  },
9983
10594
  /**
9984
- *
9985
- * @summary Get the details of an user
9986
- * @param {string} userId the User identifier
10595
+ * Get the status of a job
10596
+ * @summary Get the status of a job
10597
+ * @param {string} organizationId the Organization identifier
10598
+ * @param {string} jobId the job identifier
9987
10599
  * @param {*} [options] Override http request option.
9988
10600
  * @throws {RequiredError}
9989
10601
  */
9990
- findUserById: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9991
- // verify required parameter 'userId' is not null or undefined
9992
- assertParamExists('findUserById', 'userId', userId)
9993
- const localVarPath = `/users/{user_id}`
9994
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
10602
+ jobStatus: async (organizationId: string, jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10603
+ // verify required parameter 'organizationId' is not null or undefined
10604
+ assertParamExists('jobStatus', 'organizationId', organizationId)
10605
+ // verify required parameter 'jobId' is not null or undefined
10606
+ assertParamExists('jobStatus', 'jobId', jobId)
10607
+ const localVarPath = `/organizations/{organization_id}/job/{job_id}/status`
10608
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10609
+ .replace(`{${"job_id"}}`, encodeURIComponent(String(jobId)));
9995
10610
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9996
10611
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9997
10612
  let baseOptions;
@@ -10019,13 +10634,24 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10019
10634
  };
10020
10635
  },
10021
10636
  /**
10022
- *
10023
- * @summary Get the details of the logged-in User
10637
+ * Run a query on a graph instance
10638
+ * @summary Run a query on a graph instance
10639
+ * @param {string} organizationId the Organization identifier
10640
+ * @param {string} graphId the Graph Identifier
10641
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
10024
10642
  * @param {*} [options] Override http request option.
10025
10643
  * @throws {RequiredError}
10026
10644
  */
10027
- getCurrentUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10028
- const localVarPath = `/users/me`;
10645
+ query: async (organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10646
+ // verify required parameter 'organizationId' is not null or undefined
10647
+ assertParamExists('query', 'organizationId', organizationId)
10648
+ // verify required parameter 'graphId' is not null or undefined
10649
+ assertParamExists('query', 'graphId', graphId)
10650
+ // verify required parameter 'twinGraphQuery' is not null or undefined
10651
+ assertParamExists('query', 'twinGraphQuery', twinGraphQuery)
10652
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/query`
10653
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10654
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
10029
10655
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10030
10656
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10031
10657
  let baseOptions;
@@ -10033,7 +10659,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10033
10659
  baseOptions = configuration.baseOptions;
10034
10660
  }
10035
10661
 
10036
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10662
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10037
10663
  const localVarHeaderParameter = {} as any;
10038
10664
  const localVarQueryParameter = {} as any;
10039
10665
 
@@ -10043,9 +10669,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10043
10669
 
10044
10670
 
10045
10671
 
10672
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10673
+
10046
10674
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10047
10675
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10048
10676
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10677
+ localVarRequestOptions.data = serializeDataIfNeeded(twinGraphQuery, localVarRequestOptions, configuration)
10049
10678
 
10050
10679
  return {
10051
10680
  url: toPathString(localVarUrlObj),
@@ -10053,17 +10682,28 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10053
10682
  };
10054
10683
  },
10055
10684
  /**
10056
- *
10057
- * @summary Get the details of a logged-in User with roles for an Organization
10685
+ * update entities in a graph instance
10686
+ * @summary Update entities in a graph instance
10058
10687
  * @param {string} organizationId the Organization identifier
10688
+ * @param {string} graphId the Graph Identifier
10689
+ * @param {'node' | 'relationship'} type the entity model type
10690
+ * @param {Array<GraphProperties>} graphProperties the entities to update
10059
10691
  * @param {*} [options] Override http request option.
10060
10692
  * @throws {RequiredError}
10061
10693
  */
10062
- getOrganizationCurrentUser: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10694
+ updateEntities: async (organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10063
10695
  // verify required parameter 'organizationId' is not null or undefined
10064
- assertParamExists('getOrganizationCurrentUser', 'organizationId', organizationId)
10065
- const localVarPath = `/organizations/{organization_id}/me`
10066
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
10696
+ assertParamExists('updateEntities', 'organizationId', organizationId)
10697
+ // verify required parameter 'graphId' is not null or undefined
10698
+ assertParamExists('updateEntities', 'graphId', graphId)
10699
+ // verify required parameter 'type' is not null or undefined
10700
+ assertParamExists('updateEntities', 'type', type)
10701
+ // verify required parameter 'graphProperties' is not null or undefined
10702
+ assertParamExists('updateEntities', 'graphProperties', graphProperties)
10703
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}`
10704
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10705
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)))
10706
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
10067
10707
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10068
10708
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10069
10709
  let baseOptions;
@@ -10071,7 +10711,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10071
10711
  baseOptions = configuration.baseOptions;
10072
10712
  }
10073
10713
 
10074
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10714
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10075
10715
  const localVarHeaderParameter = {} as any;
10076
10716
  const localVarQueryParameter = {} as any;
10077
10717
 
@@ -10081,9 +10721,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10081
10721
 
10082
10722
 
10083
10723
 
10724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10725
+
10084
10726
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10085
10727
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10086
10728
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10729
+ localVarRequestOptions.data = serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration)
10087
10730
 
10088
10731
  return {
10089
10732
  url: toPathString(localVarUrlObj),
@@ -10091,21 +10734,24 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10091
10734
  };
10092
10735
  },
10093
10736
  /**
10094
- *
10095
- * @summary Get the details of the logged-in user with roles for a Workspace
10737
+ * Update the metaData of the specified graph
10738
+ * @summary Update the metaData of the specified graph
10096
10739
  * @param {string} organizationId the Organization identifier
10097
- * @param {string} workspaceId the Workspace identifier
10740
+ * @param {string} graphId the Graph Identifier
10741
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
10098
10742
  * @param {*} [options] Override http request option.
10099
10743
  * @throws {RequiredError}
10100
10744
  */
10101
- getWorkspaceCurrentUser: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10745
+ updateGraphMetaData: async (organizationId: string, graphId: string, requestBody: { [key: string]: string; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10102
10746
  // verify required parameter 'organizationId' is not null or undefined
10103
- assertParamExists('getWorkspaceCurrentUser', 'organizationId', organizationId)
10104
- // verify required parameter 'workspaceId' is not null or undefined
10105
- assertParamExists('getWorkspaceCurrentUser', 'workspaceId', workspaceId)
10106
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/me`
10747
+ assertParamExists('updateGraphMetaData', 'organizationId', organizationId)
10748
+ // verify required parameter 'graphId' is not null or undefined
10749
+ assertParamExists('updateGraphMetaData', 'graphId', graphId)
10750
+ // verify required parameter 'requestBody' is not null or undefined
10751
+ assertParamExists('updateGraphMetaData', 'requestBody', requestBody)
10752
+ const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/metadata`
10107
10753
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10108
- .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
10754
+ .replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
10109
10755
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10110
10756
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10111
10757
  let baseOptions;
@@ -10113,7 +10759,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10113
10759
  baseOptions = configuration.baseOptions;
10114
10760
  }
10115
10761
 
10116
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10762
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10117
10763
  const localVarHeaderParameter = {} as any;
10118
10764
  const localVarQueryParameter = {} as any;
10119
10765
 
@@ -10123,523 +10769,625 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
10123
10769
 
10124
10770
 
10125
10771
 
10772
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10773
+
10126
10774
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10127
10775
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10128
10776
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10777
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
10129
10778
 
10130
10779
  return {
10131
10780
  url: toPathString(localVarUrlObj),
10132
10781
  options: localVarRequestOptions,
10133
10782
  };
10134
10783
  },
10784
+ }
10785
+ };
10786
+
10787
+ /**
10788
+ * TwingraphApi - functional programming interface
10789
+ * @export
10790
+ */
10791
+ export const TwingraphApiFp = function(configuration?: Configuration) {
10792
+ const localVarAxiosParamCreator = TwingraphApiAxiosParamCreator(configuration)
10793
+ return {
10135
10794
  /**
10136
- *
10137
- * @summary Register a new user
10138
- * @param {User} user the User to register
10795
+ * Delete all versions of a graph and his metadatas
10796
+ * @summary Delete all versions of a graph and his metadatas
10797
+ * @param {string} organizationId the Organization identifier
10798
+ * @param {string} graphId the Graph Identifier
10139
10799
  * @param {*} [options] Override http request option.
10140
10800
  * @throws {RequiredError}
10141
10801
  */
10142
- registerUser: async (user: User, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10143
- // verify required parameter 'user' is not null or undefined
10144
- assertParamExists('registerUser', 'user', user)
10145
- const localVarPath = `/users`;
10146
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10147
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10148
- let baseOptions;
10149
- if (configuration) {
10150
- baseOptions = configuration.baseOptions;
10151
- }
10152
-
10153
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10154
- const localVarHeaderParameter = {} as any;
10155
- const localVarQueryParameter = {} as any;
10156
-
10157
- // authentication oAuth2AuthCode required
10158
- // oauth required
10159
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10160
-
10161
-
10162
-
10163
- localVarHeaderParameter['Content-Type'] = 'application/json';
10164
-
10165
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10166
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10167
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10168
- localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration)
10169
-
10170
- return {
10171
- url: toPathString(localVarUrlObj),
10172
- options: localVarRequestOptions,
10173
- };
10802
+ async _delete(organizationId: string, graphId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10803
+ const localVarAxiosArgs = await localVarAxiosParamCreator._delete(organizationId, graphId, options);
10804
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10174
10805
  },
10175
10806
  /**
10176
- *
10177
- * @summary test platform API call
10807
+ * Run a query on a graph instance and return the result as a zip file in async mode
10808
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
10809
+ * @param {string} organizationId the Organization identifier
10810
+ * @param {string} graphId the Graph Identifier
10811
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
10178
10812
  * @param {*} [options] Override http request option.
10179
10813
  * @throws {RequiredError}
10180
10814
  */
10181
- testPlatform: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10182
- const localVarPath = `/test`;
10183
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10184
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10185
- let baseOptions;
10186
- if (configuration) {
10187
- baseOptions = configuration.baseOptions;
10188
- }
10189
-
10190
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10191
- const localVarHeaderParameter = {} as any;
10192
- const localVarQueryParameter = {} as any;
10193
-
10194
- // authentication oAuth2AuthCode required
10195
- // oauth required
10196
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10197
-
10198
-
10199
-
10200
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10201
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10202
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10203
-
10204
- return {
10205
- url: toPathString(localVarUrlObj),
10206
- options: localVarRequestOptions,
10207
- };
10815
+ async batchQuery(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphHash>> {
10816
+ const localVarAxiosArgs = await localVarAxiosParamCreator.batchQuery(organizationId, graphId, twinGraphQuery, options);
10817
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10208
10818
  },
10209
10819
  /**
10210
- *
10211
- * @summary Unregister an user
10212
- * @param {string} userId the User identifier
10820
+ * Async batch update by loading a CSV file on a graph instance
10821
+ * @summary Async batch update by loading a CSV file on a graph instance
10822
+ * @param {string} organizationId the Organization identifier
10823
+ * @param {string} graphId the Graph Identifier
10824
+ * @param {TwinGraphQuery} twinGraphQuery
10825
+ * @param {any} body
10213
10826
  * @param {*} [options] Override http request option.
10214
10827
  * @throws {RequiredError}
10215
10828
  */
10216
- unregisterUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10217
- // verify required parameter 'userId' is not null or undefined
10218
- assertParamExists('unregisterUser', 'userId', userId)
10219
- const localVarPath = `/users/{user_id}`
10220
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
10221
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10222
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10223
- let baseOptions;
10224
- if (configuration) {
10225
- baseOptions = configuration.baseOptions;
10226
- }
10227
-
10228
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
10229
- const localVarHeaderParameter = {} as any;
10230
- const localVarQueryParameter = {} as any;
10231
-
10232
- // authentication oAuth2AuthCode required
10233
- // oauth required
10234
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10235
-
10236
-
10237
-
10238
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10239
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10240
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10241
-
10242
- return {
10243
- url: toPathString(localVarUrlObj),
10244
- options: localVarRequestOptions,
10245
- };
10829
+ async batchUploadUpdate(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphBatchResult>> {
10830
+ const localVarAxiosArgs = await localVarAxiosParamCreator.batchUploadUpdate(organizationId, graphId, twinGraphQuery, body, options);
10831
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10246
10832
  },
10247
10833
  /**
10248
- *
10249
- * @summary Update a User
10250
- * @param {string} userId the User identifier
10251
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
10834
+ * create new entities in a graph instance
10835
+ * @summary Create new entities in a graph instance
10836
+ * @param {string} organizationId the Organization identifier
10837
+ * @param {string} graphId the Graph Identifier
10838
+ * @param {'node' | 'relationship'} type the entity model type
10839
+ * @param {Array<GraphProperties>} graphProperties the entities to create
10252
10840
  * @param {*} [options] Override http request option.
10253
10841
  * @throws {RequiredError}
10254
10842
  */
10255
- updateUser: async (userId: string, user: User, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10256
- // verify required parameter 'userId' is not null or undefined
10257
- assertParamExists('updateUser', 'userId', userId)
10258
- // verify required parameter 'user' is not null or undefined
10259
- assertParamExists('updateUser', 'user', user)
10260
- const localVarPath = `/users/{user_id}`
10261
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
10262
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10263
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10264
- let baseOptions;
10265
- if (configuration) {
10266
- baseOptions = configuration.baseOptions;
10267
- }
10268
-
10269
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10270
- const localVarHeaderParameter = {} as any;
10271
- const localVarQueryParameter = {} as any;
10272
-
10273
- // authentication oAuth2AuthCode required
10274
- // oauth required
10275
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
10276
-
10277
-
10278
-
10279
- localVarHeaderParameter['Content-Type'] = 'application/json';
10280
-
10281
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10282
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10283
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10284
- localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration)
10285
-
10286
- return {
10287
- url: toPathString(localVarUrlObj),
10288
- options: localVarRequestOptions,
10289
- };
10843
+ async createEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10844
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEntities(organizationId, graphId, type, graphProperties, options);
10845
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10290
10846
  },
10291
- }
10292
- };
10293
-
10294
- /**
10295
- * UserApi - functional programming interface
10296
- * @export
10297
- */
10298
- export const UserApiFp = function(configuration?: Configuration) {
10299
- const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
10300
- return {
10301
10847
  /**
10302
- *
10303
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
10848
+ * 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.
10849
+ * @summary Create a new graph
10850
+ * @param {string} organizationId the Organization identifier
10851
+ * @param {string} graphId the Graph Identifier
10852
+ * @param {any} [body]
10304
10853
  * @param {*} [options] Override http request option.
10305
10854
  * @throws {RequiredError}
10306
10855
  */
10307
- async authorizeUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10308
- const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeUser(options);
10856
+ async createGraph(organizationId: string, graphId: string, body?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createGraph(organizationId, graphId, body, options);
10309
10858
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10310
10859
  },
10311
10860
  /**
10312
- *
10313
- * @summary List all Users
10861
+ * delete entities in a graph instance
10862
+ * @summary Delete entities in a graph instance
10863
+ * @param {string} organizationId the Organization identifier
10864
+ * @param {string} graphId the Graph Identifier
10865
+ * @param {'node' | 'relationship'} type the entity model type
10866
+ * @param {Array<string>} ids the entities to delete
10314
10867
  * @param {*} [options] Override http request option.
10315
10868
  * @throws {RequiredError}
10316
10869
  */
10317
- async findAllUsers(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>> {
10318
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllUsers(options);
10870
+ async deleteEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEntities(organizationId, graphId, type, ids, options);
10319
10872
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10320
10873
  },
10321
10874
  /**
10322
- *
10323
- * @summary Get the details of an user
10324
- * @param {string} userId the User identifier
10875
+ * Download a graph compressed in a zip file
10876
+ * @summary Download a graph compressed in a zip file
10877
+ * @param {string} organizationId the Organization identifier
10878
+ * @param {string} hash the Graph download identifier
10325
10879
  * @param {*} [options] Override http request option.
10326
10880
  * @throws {RequiredError}
10327
10881
  */
10328
- async findUserById(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
10329
- const localVarAxiosArgs = await localVarAxiosParamCreator.findUserById(userId, options);
10882
+ async downloadGraph(organizationId: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
10883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadGraph(organizationId, hash, options);
10330
10884
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10331
10885
  },
10332
10886
  /**
10333
- *
10334
- * @summary Get the details of the logged-in User
10887
+ * Return the list of all graphs stored in the organization
10888
+ * @summary Return the list of all graphs stored in the organization
10889
+ * @param {string} organizationId the Organization identifier
10335
10890
  * @param {*} [options] Override http request option.
10336
10891
  * @throws {RequiredError}
10337
10892
  */
10338
- async getCurrentUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
10339
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUser(options);
10893
+ async findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
10894
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllTwingraphs(organizationId, options);
10340
10895
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10341
10896
  },
10342
10897
  /**
10343
- *
10344
- * @summary Get the details of a logged-in User with roles for an Organization
10898
+ * get entities in a graph instance
10899
+ * @summary Get entities in a graph instance
10900
+ * @param {string} organizationId the Organization identifier
10901
+ * @param {string} graphId the Graph Identifier
10902
+ * @param {'node' | 'relationship'} type the entity model type
10903
+ * @param {Array<string>} ids the entities to get
10904
+ * @param {*} [options] Override http request option.
10905
+ * @throws {RequiredError}
10906
+ */
10907
+ async getEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10908
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEntities(organizationId, graphId, type, ids, options);
10909
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10910
+ },
10911
+ /**
10912
+ * Return the metaData of the specified graph
10913
+ * @summary Return the metaData of the specified graph
10914
+ * @param {string} organizationId the Organization identifier
10915
+ * @param {string} graphId the Graph Identifier
10916
+ * @param {*} [options] Override http request option.
10917
+ * @throws {RequiredError}
10918
+ */
10919
+ async getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
10920
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options);
10921
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10922
+ },
10923
+ /**
10924
+ * Import a new version of a twin graph
10925
+ * @summary Import a new version of a twin graph
10926
+ * @param {string} organizationId the Organization identifier
10927
+ * @param {TwinGraphImport} twinGraphImport the graph to import
10928
+ * @param {*} [options] Override http request option.
10929
+ * @throws {RequiredError}
10930
+ */
10931
+ async importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphImportInfo>> {
10932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options);
10933
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10934
+ },
10935
+ /**
10936
+ * Get the status of a job
10937
+ * @summary Get the status of a job
10938
+ * @param {string} organizationId the Organization identifier
10939
+ * @param {string} jobId the job identifier
10940
+ * @param {*} [options] Override http request option.
10941
+ * @throws {RequiredError}
10942
+ */
10943
+ async jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.jobStatus(organizationId, jobId, options);
10945
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10946
+ },
10947
+ /**
10948
+ * Run a query on a graph instance
10949
+ * @summary Run a query on a graph instance
10950
+ * @param {string} organizationId the Organization identifier
10951
+ * @param {string} graphId the Graph Identifier
10952
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
10953
+ * @param {*} [options] Override http request option.
10954
+ * @throws {RequiredError}
10955
+ */
10956
+ async query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.query(organizationId, graphId, twinGraphQuery, options);
10958
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10959
+ },
10960
+ /**
10961
+ * update entities in a graph instance
10962
+ * @summary Update entities in a graph instance
10963
+ * @param {string} organizationId the Organization identifier
10964
+ * @param {string} graphId the Graph Identifier
10965
+ * @param {'node' | 'relationship'} type the entity model type
10966
+ * @param {Array<GraphProperties>} graphProperties the entities to update
10967
+ * @param {*} [options] Override http request option.
10968
+ * @throws {RequiredError}
10969
+ */
10970
+ async updateEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10971
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEntities(organizationId, graphId, type, graphProperties, options);
10972
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10973
+ },
10974
+ /**
10975
+ * Update the metaData of the specified graph
10976
+ * @summary Update the metaData of the specified graph
10345
10977
  * @param {string} organizationId the Organization identifier
10978
+ * @param {string} graphId the Graph Identifier
10979
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
10346
10980
  * @param {*} [options] Override http request option.
10347
10981
  * @throws {RequiredError}
10348
10982
  */
10349
- async getOrganizationCurrentUser(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
10350
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationCurrentUser(organizationId, options);
10983
+ async updateGraphMetaData(organizationId: string, graphId: string, requestBody: { [key: string]: string; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
10984
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateGraphMetaData(organizationId, graphId, requestBody, options);
10351
10985
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10352
10986
  },
10987
+ }
10988
+ };
10989
+
10990
+ /**
10991
+ * TwingraphApi - factory interface
10992
+ * @export
10993
+ */
10994
+ export const TwingraphApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10995
+ const localVarFp = TwingraphApiFp(configuration)
10996
+ return {
10353
10997
  /**
10354
- *
10355
- * @summary Get the details of the logged-in user with roles for a Workspace
10998
+ * Delete all versions of a graph and his metadatas
10999
+ * @summary Delete all versions of a graph and his metadatas
10356
11000
  * @param {string} organizationId the Organization identifier
10357
- * @param {string} workspaceId the Workspace identifier
11001
+ * @param {string} graphId the Graph Identifier
10358
11002
  * @param {*} [options] Override http request option.
10359
11003
  * @throws {RequiredError}
10360
11004
  */
10361
- async getWorkspaceCurrentUser(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
10362
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceCurrentUser(organizationId, workspaceId, options);
10363
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11005
+ _delete(organizationId: string, graphId: string, options?: any): AxiosPromise<void> {
11006
+ return localVarFp._delete(organizationId, graphId, options).then((request) => request(axios, basePath));
10364
11007
  },
10365
11008
  /**
10366
- *
10367
- * @summary Register a new user
10368
- * @param {User} user the User to register
11009
+ * Run a query on a graph instance and return the result as a zip file in async mode
11010
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
11011
+ * @param {string} organizationId the Organization identifier
11012
+ * @param {string} graphId the Graph Identifier
11013
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
10369
11014
  * @param {*} [options] Override http request option.
10370
11015
  * @throws {RequiredError}
10371
11016
  */
10372
- async registerUser(user: User, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
10373
- const localVarAxiosArgs = await localVarAxiosParamCreator.registerUser(user, options);
10374
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11017
+ batchQuery(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: any): AxiosPromise<TwinGraphHash> {
11018
+ return localVarFp.batchQuery(organizationId, graphId, twinGraphQuery, options).then((request) => request(axios, basePath));
10375
11019
  },
10376
11020
  /**
10377
- *
10378
- * @summary test platform API call
11021
+ * Async batch update by loading a CSV file on a graph instance
11022
+ * @summary Async batch update by loading a CSV file on a graph instance
11023
+ * @param {string} organizationId the Organization identifier
11024
+ * @param {string} graphId the Graph Identifier
11025
+ * @param {TwinGraphQuery} twinGraphQuery
11026
+ * @param {any} body
10379
11027
  * @param {*} [options] Override http request option.
10380
11028
  * @throws {RequiredError}
10381
11029
  */
10382
- async testPlatform(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10383
- const localVarAxiosArgs = await localVarAxiosParamCreator.testPlatform(options);
10384
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11030
+ batchUploadUpdate(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, body: any, options?: any): AxiosPromise<TwinGraphBatchResult> {
11031
+ return localVarFp.batchUploadUpdate(organizationId, graphId, twinGraphQuery, body, options).then((request) => request(axios, basePath));
10385
11032
  },
10386
11033
  /**
10387
- *
10388
- * @summary Unregister an user
10389
- * @param {string} userId the User identifier
11034
+ * create new entities in a graph instance
11035
+ * @summary Create new entities in a graph instance
11036
+ * @param {string} organizationId the Organization identifier
11037
+ * @param {string} graphId the Graph Identifier
11038
+ * @param {'node' | 'relationship'} type the entity model type
11039
+ * @param {Array<GraphProperties>} graphProperties the entities to create
10390
11040
  * @param {*} [options] Override http request option.
10391
11041
  * @throws {RequiredError}
10392
11042
  */
10393
- async unregisterUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10394
- const localVarAxiosArgs = await localVarAxiosParamCreator.unregisterUser(userId, options);
10395
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11043
+ createEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
11044
+ return localVarFp.createEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(axios, basePath));
10396
11045
  },
10397
11046
  /**
10398
- *
10399
- * @summary Update a User
10400
- * @param {string} userId the User identifier
10401
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
11047
+ * 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.
11048
+ * @summary Create a new graph
11049
+ * @param {string} organizationId the Organization identifier
11050
+ * @param {string} graphId the Graph Identifier
11051
+ * @param {any} [body]
10402
11052
  * @param {*} [options] Override http request option.
10403
11053
  * @throws {RequiredError}
10404
11054
  */
10405
- async updateUser(userId: string, user: User, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
10406
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(userId, user, options);
10407
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11055
+ createGraph(organizationId: string, graphId: string, body?: any, options?: any): AxiosPromise<void> {
11056
+ return localVarFp.createGraph(organizationId, graphId, body, options).then((request) => request(axios, basePath));
10408
11057
  },
10409
- }
10410
- };
10411
-
10412
- /**
10413
- * UserApi - factory interface
10414
- * @export
10415
- */
10416
- export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10417
- const localVarFp = UserApiFp(configuration)
10418
- return {
10419
11058
  /**
10420
- *
10421
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
11059
+ * delete entities in a graph instance
11060
+ * @summary Delete entities in a graph instance
11061
+ * @param {string} organizationId the Organization identifier
11062
+ * @param {string} graphId the Graph Identifier
11063
+ * @param {'node' | 'relationship'} type the entity model type
11064
+ * @param {Array<string>} ids the entities to delete
10422
11065
  * @param {*} [options] Override http request option.
10423
11066
  * @throws {RequiredError}
10424
11067
  */
10425
- authorizeUser(options?: any): AxiosPromise<void> {
10426
- return localVarFp.authorizeUser(options).then((request) => request(axios, basePath));
11068
+ deleteEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<void> {
11069
+ return localVarFp.deleteEntities(organizationId, graphId, type, ids, options).then((request) => request(axios, basePath));
10427
11070
  },
10428
11071
  /**
10429
- *
10430
- * @summary List all Users
11072
+ * Download a graph compressed in a zip file
11073
+ * @summary Download a graph compressed in a zip file
11074
+ * @param {string} organizationId the Organization identifier
11075
+ * @param {string} hash the Graph download identifier
10431
11076
  * @param {*} [options] Override http request option.
10432
11077
  * @throws {RequiredError}
10433
11078
  */
10434
- findAllUsers(options?: any): AxiosPromise<Array<User>> {
10435
- return localVarFp.findAllUsers(options).then((request) => request(axios, basePath));
11079
+ downloadGraph(organizationId: string, hash: string, options?: any): AxiosPromise<any> {
11080
+ return localVarFp.downloadGraph(organizationId, hash, options).then((request) => request(axios, basePath));
10436
11081
  },
10437
11082
  /**
10438
- *
10439
- * @summary Get the details of an user
10440
- * @param {string} userId the User identifier
11083
+ * Return the list of all graphs stored in the organization
11084
+ * @summary Return the list of all graphs stored in the organization
11085
+ * @param {string} organizationId the Organization identifier
10441
11086
  * @param {*} [options] Override http request option.
10442
11087
  * @throws {RequiredError}
10443
11088
  */
10444
- findUserById(userId: string, options?: any): AxiosPromise<User> {
10445
- return localVarFp.findUserById(userId, options).then((request) => request(axios, basePath));
11089
+ findAllTwingraphs(organizationId: string, options?: any): AxiosPromise<Array<string>> {
11090
+ return localVarFp.findAllTwingraphs(organizationId, options).then((request) => request(axios, basePath));
10446
11091
  },
10447
11092
  /**
10448
- *
10449
- * @summary Get the details of the logged-in User
11093
+ * get entities in a graph instance
11094
+ * @summary Get entities in a graph instance
11095
+ * @param {string} organizationId the Organization identifier
11096
+ * @param {string} graphId the Graph Identifier
11097
+ * @param {'node' | 'relationship'} type the entity model type
11098
+ * @param {Array<string>} ids the entities to get
10450
11099
  * @param {*} [options] Override http request option.
10451
11100
  * @throws {RequiredError}
10452
11101
  */
10453
- getCurrentUser(options?: any): AxiosPromise<User> {
10454
- return localVarFp.getCurrentUser(options).then((request) => request(axios, basePath));
11102
+ getEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: any): AxiosPromise<string> {
11103
+ return localVarFp.getEntities(organizationId, graphId, type, ids, options).then((request) => request(axios, basePath));
10455
11104
  },
10456
11105
  /**
10457
- *
10458
- * @summary Get the details of a logged-in User with roles for an Organization
11106
+ * Return the metaData of the specified graph
11107
+ * @summary Return the metaData of the specified graph
10459
11108
  * @param {string} organizationId the Organization identifier
11109
+ * @param {string} graphId the Graph Identifier
10460
11110
  * @param {*} [options] Override http request option.
10461
11111
  * @throws {RequiredError}
10462
11112
  */
10463
- getOrganizationCurrentUser(organizationId: string, options?: any): AxiosPromise<User> {
10464
- return localVarFp.getOrganizationCurrentUser(organizationId, options).then((request) => request(axios, basePath));
11113
+ getGraphMetaData(organizationId: string, graphId: string, options?: any): AxiosPromise<object> {
11114
+ return localVarFp.getGraphMetaData(organizationId, graphId, options).then((request) => request(axios, basePath));
10465
11115
  },
10466
11116
  /**
10467
- *
10468
- * @summary Get the details of the logged-in user with roles for a Workspace
11117
+ * Import a new version of a twin graph
11118
+ * @summary Import a new version of a twin graph
10469
11119
  * @param {string} organizationId the Organization identifier
10470
- * @param {string} workspaceId the Workspace identifier
11120
+ * @param {TwinGraphImport} twinGraphImport the graph to import
10471
11121
  * @param {*} [options] Override http request option.
10472
11122
  * @throws {RequiredError}
10473
11123
  */
10474
- getWorkspaceCurrentUser(organizationId: string, workspaceId: string, options?: any): AxiosPromise<User> {
10475
- return localVarFp.getWorkspaceCurrentUser(organizationId, workspaceId, options).then((request) => request(axios, basePath));
11124
+ importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: any): AxiosPromise<TwinGraphImportInfo> {
11125
+ return localVarFp.importGraph(organizationId, twinGraphImport, options).then((request) => request(axios, basePath));
10476
11126
  },
10477
11127
  /**
10478
- *
10479
- * @summary Register a new user
10480
- * @param {User} user the User to register
11128
+ * Get the status of a job
11129
+ * @summary Get the status of a job
11130
+ * @param {string} organizationId the Organization identifier
11131
+ * @param {string} jobId the job identifier
10481
11132
  * @param {*} [options] Override http request option.
10482
11133
  * @throws {RequiredError}
10483
11134
  */
10484
- registerUser(user: User, options?: any): AxiosPromise<User> {
10485
- return localVarFp.registerUser(user, options).then((request) => request(axios, basePath));
11135
+ jobStatus(organizationId: string, jobId: string, options?: any): AxiosPromise<string> {
11136
+ return localVarFp.jobStatus(organizationId, jobId, options).then((request) => request(axios, basePath));
10486
11137
  },
10487
11138
  /**
10488
- *
10489
- * @summary test platform API call
11139
+ * Run a query on a graph instance
11140
+ * @summary Run a query on a graph instance
11141
+ * @param {string} organizationId the Organization identifier
11142
+ * @param {string} graphId the Graph Identifier
11143
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
10490
11144
  * @param {*} [options] Override http request option.
10491
11145
  * @throws {RequiredError}
10492
11146
  */
10493
- testPlatform(options?: any): AxiosPromise<string> {
10494
- return localVarFp.testPlatform(options).then((request) => request(axios, basePath));
11147
+ query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: any): AxiosPromise<string> {
11148
+ return localVarFp.query(organizationId, graphId, twinGraphQuery, options).then((request) => request(axios, basePath));
10495
11149
  },
10496
11150
  /**
10497
- *
10498
- * @summary Unregister an user
10499
- * @param {string} userId the User identifier
11151
+ * update entities in a graph instance
11152
+ * @summary Update entities in a graph instance
11153
+ * @param {string} organizationId the Organization identifier
11154
+ * @param {string} graphId the Graph Identifier
11155
+ * @param {'node' | 'relationship'} type the entity model type
11156
+ * @param {Array<GraphProperties>} graphProperties the entities to update
10500
11157
  * @param {*} [options] Override http request option.
10501
11158
  * @throws {RequiredError}
10502
11159
  */
10503
- unregisterUser(userId: string, options?: any): AxiosPromise<void> {
10504
- return localVarFp.unregisterUser(userId, options).then((request) => request(axios, basePath));
11160
+ updateEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: any): AxiosPromise<string> {
11161
+ return localVarFp.updateEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(axios, basePath));
10505
11162
  },
10506
11163
  /**
10507
- *
10508
- * @summary Update a User
10509
- * @param {string} userId the User identifier
10510
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
11164
+ * Update the metaData of the specified graph
11165
+ * @summary Update the metaData of the specified graph
11166
+ * @param {string} organizationId the Organization identifier
11167
+ * @param {string} graphId the Graph Identifier
11168
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
10511
11169
  * @param {*} [options] Override http request option.
10512
11170
  * @throws {RequiredError}
10513
11171
  */
10514
- updateUser(userId: string, user: User, options?: any): AxiosPromise<User> {
10515
- return localVarFp.updateUser(userId, user, options).then((request) => request(axios, basePath));
11172
+ updateGraphMetaData(organizationId: string, graphId: string, requestBody: { [key: string]: string; }, options?: any): AxiosPromise<object> {
11173
+ return localVarFp.updateGraphMetaData(organizationId, graphId, requestBody, options).then((request) => request(axios, basePath));
10516
11174
  },
10517
11175
  };
10518
11176
  };
10519
11177
 
10520
11178
  /**
10521
- * UserApi - object-oriented interface
11179
+ * TwingraphApi - object-oriented interface
10522
11180
  * @export
10523
- * @class UserApi
11181
+ * @class TwingraphApi
10524
11182
  * @extends {BaseAPI}
10525
11183
  */
10526
- export class UserApi extends BaseAPI {
11184
+ export class TwingraphApi extends BaseAPI {
10527
11185
  /**
10528
- *
10529
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
11186
+ * Delete all versions of a graph and his metadatas
11187
+ * @summary Delete all versions of a graph and his metadatas
11188
+ * @param {string} organizationId the Organization identifier
11189
+ * @param {string} graphId the Graph Identifier
10530
11190
  * @param {*} [options] Override http request option.
10531
11191
  * @throws {RequiredError}
10532
- * @memberof UserApi
11192
+ * @memberof TwingraphApi
10533
11193
  */
10534
- public authorizeUser(options?: AxiosRequestConfig) {
10535
- return UserApiFp(this.configuration).authorizeUser(options).then((request) => request(this.axios, this.basePath));
11194
+ public _delete(organizationId: string, graphId: string, options?: AxiosRequestConfig) {
11195
+ return TwingraphApiFp(this.configuration)._delete(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
10536
11196
  }
10537
11197
 
10538
11198
  /**
10539
- *
10540
- * @summary List all Users
11199
+ * Run a query on a graph instance and return the result as a zip file in async mode
11200
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
11201
+ * @param {string} organizationId the Organization identifier
11202
+ * @param {string} graphId the Graph Identifier
11203
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
10541
11204
  * @param {*} [options] Override http request option.
10542
11205
  * @throws {RequiredError}
10543
- * @memberof UserApi
11206
+ * @memberof TwingraphApi
10544
11207
  */
10545
- public findAllUsers(options?: AxiosRequestConfig) {
10546
- return UserApiFp(this.configuration).findAllUsers(options).then((request) => request(this.axios, this.basePath));
11208
+ public batchQuery(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig) {
11209
+ return TwingraphApiFp(this.configuration).batchQuery(organizationId, graphId, twinGraphQuery, options).then((request) => request(this.axios, this.basePath));
10547
11210
  }
10548
11211
 
10549
11212
  /**
10550
- *
10551
- * @summary Get the details of an user
10552
- * @param {string} userId the User identifier
11213
+ * Async batch update by loading a CSV file on a graph instance
11214
+ * @summary Async batch update by loading a CSV file on a graph instance
11215
+ * @param {string} organizationId the Organization identifier
11216
+ * @param {string} graphId the Graph Identifier
11217
+ * @param {TwinGraphQuery} twinGraphQuery
11218
+ * @param {any} body
10553
11219
  * @param {*} [options] Override http request option.
10554
11220
  * @throws {RequiredError}
10555
- * @memberof UserApi
11221
+ * @memberof TwingraphApi
10556
11222
  */
10557
- public findUserById(userId: string, options?: AxiosRequestConfig) {
10558
- return UserApiFp(this.configuration).findUserById(userId, options).then((request) => request(this.axios, this.basePath));
11223
+ public batchUploadUpdate(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, body: any, options?: AxiosRequestConfig) {
11224
+ return TwingraphApiFp(this.configuration).batchUploadUpdate(organizationId, graphId, twinGraphQuery, body, options).then((request) => request(this.axios, this.basePath));
10559
11225
  }
10560
11226
 
10561
11227
  /**
10562
- *
10563
- * @summary Get the details of the logged-in User
11228
+ * create new entities in a graph instance
11229
+ * @summary Create new entities in a graph instance
11230
+ * @param {string} organizationId the Organization identifier
11231
+ * @param {string} graphId the Graph Identifier
11232
+ * @param {'node' | 'relationship'} type the entity model type
11233
+ * @param {Array<GraphProperties>} graphProperties the entities to create
10564
11234
  * @param {*} [options] Override http request option.
10565
11235
  * @throws {RequiredError}
10566
- * @memberof UserApi
11236
+ * @memberof TwingraphApi
10567
11237
  */
10568
- public getCurrentUser(options?: AxiosRequestConfig) {
10569
- return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
11238
+ public createEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
11239
+ return TwingraphApiFp(this.configuration).createEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
10570
11240
  }
10571
11241
 
10572
11242
  /**
10573
- *
10574
- * @summary Get the details of a logged-in User with roles for an Organization
11243
+ * 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.
11244
+ * @summary Create a new graph
10575
11245
  * @param {string} organizationId the Organization identifier
11246
+ * @param {string} graphId the Graph Identifier
11247
+ * @param {any} [body]
10576
11248
  * @param {*} [options] Override http request option.
10577
11249
  * @throws {RequiredError}
10578
- * @memberof UserApi
11250
+ * @memberof TwingraphApi
10579
11251
  */
10580
- public getOrganizationCurrentUser(organizationId: string, options?: AxiosRequestConfig) {
10581
- return UserApiFp(this.configuration).getOrganizationCurrentUser(organizationId, options).then((request) => request(this.axios, this.basePath));
11252
+ public createGraph(organizationId: string, graphId: string, body?: any, options?: AxiosRequestConfig) {
11253
+ return TwingraphApiFp(this.configuration).createGraph(organizationId, graphId, body, options).then((request) => request(this.axios, this.basePath));
10582
11254
  }
10583
11255
 
10584
11256
  /**
10585
- *
10586
- * @summary Get the details of the logged-in user with roles for a Workspace
11257
+ * delete entities in a graph instance
11258
+ * @summary Delete entities in a graph instance
10587
11259
  * @param {string} organizationId the Organization identifier
10588
- * @param {string} workspaceId the Workspace identifier
11260
+ * @param {string} graphId the Graph Identifier
11261
+ * @param {'node' | 'relationship'} type the entity model type
11262
+ * @param {Array<string>} ids the entities to delete
10589
11263
  * @param {*} [options] Override http request option.
10590
11264
  * @throws {RequiredError}
10591
- * @memberof UserApi
11265
+ * @memberof TwingraphApi
10592
11266
  */
10593
- public getWorkspaceCurrentUser(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
10594
- return UserApiFp(this.configuration).getWorkspaceCurrentUser(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
11267
+ public deleteEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
11268
+ return TwingraphApiFp(this.configuration).deleteEntities(organizationId, graphId, type, ids, options).then((request) => request(this.axios, this.basePath));
10595
11269
  }
10596
11270
 
10597
11271
  /**
10598
- *
10599
- * @summary Register a new user
10600
- * @param {User} user the User to register
11272
+ * Download a graph compressed in a zip file
11273
+ * @summary Download a graph compressed in a zip file
11274
+ * @param {string} organizationId the Organization identifier
11275
+ * @param {string} hash the Graph download identifier
10601
11276
  * @param {*} [options] Override http request option.
10602
11277
  * @throws {RequiredError}
10603
- * @memberof UserApi
11278
+ * @memberof TwingraphApi
10604
11279
  */
10605
- public registerUser(user: User, options?: AxiosRequestConfig) {
10606
- return UserApiFp(this.configuration).registerUser(user, options).then((request) => request(this.axios, this.basePath));
11280
+ public downloadGraph(organizationId: string, hash: string, options?: AxiosRequestConfig) {
11281
+ return TwingraphApiFp(this.configuration).downloadGraph(organizationId, hash, options).then((request) => request(this.axios, this.basePath));
10607
11282
  }
10608
11283
 
10609
11284
  /**
10610
- *
10611
- * @summary test platform API call
11285
+ * Return the list of all graphs stored in the organization
11286
+ * @summary Return the list of all graphs stored in the organization
11287
+ * @param {string} organizationId the Organization identifier
10612
11288
  * @param {*} [options] Override http request option.
10613
11289
  * @throws {RequiredError}
10614
- * @memberof UserApi
11290
+ * @memberof TwingraphApi
10615
11291
  */
10616
- public testPlatform(options?: AxiosRequestConfig) {
10617
- return UserApiFp(this.configuration).testPlatform(options).then((request) => request(this.axios, this.basePath));
11292
+ public findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig) {
11293
+ return TwingraphApiFp(this.configuration).findAllTwingraphs(organizationId, options).then((request) => request(this.axios, this.basePath));
10618
11294
  }
10619
11295
 
10620
11296
  /**
10621
- *
10622
- * @summary Unregister an user
10623
- * @param {string} userId the User identifier
11297
+ * get entities in a graph instance
11298
+ * @summary Get entities in a graph instance
11299
+ * @param {string} organizationId the Organization identifier
11300
+ * @param {string} graphId the Graph Identifier
11301
+ * @param {'node' | 'relationship'} type the entity model type
11302
+ * @param {Array<string>} ids the entities to get
11303
+ * @param {*} [options] Override http request option.
11304
+ * @throws {RequiredError}
11305
+ * @memberof TwingraphApi
11306
+ */
11307
+ public getEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', ids: Array<string>, options?: AxiosRequestConfig) {
11308
+ return TwingraphApiFp(this.configuration).getEntities(organizationId, graphId, type, ids, options).then((request) => request(this.axios, this.basePath));
11309
+ }
11310
+
11311
+ /**
11312
+ * Return the metaData of the specified graph
11313
+ * @summary Return the metaData of the specified graph
11314
+ * @param {string} organizationId the Organization identifier
11315
+ * @param {string} graphId the Graph Identifier
10624
11316
  * @param {*} [options] Override http request option.
10625
11317
  * @throws {RequiredError}
10626
- * @memberof UserApi
11318
+ * @memberof TwingraphApi
10627
11319
  */
10628
- public unregisterUser(userId: string, options?: AxiosRequestConfig) {
10629
- return UserApiFp(this.configuration).unregisterUser(userId, options).then((request) => request(this.axios, this.basePath));
11320
+ public getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig) {
11321
+ return TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
10630
11322
  }
10631
11323
 
10632
11324
  /**
10633
- *
10634
- * @summary Update a User
10635
- * @param {string} userId the User identifier
10636
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
11325
+ * Import a new version of a twin graph
11326
+ * @summary Import a new version of a twin graph
11327
+ * @param {string} organizationId the Organization identifier
11328
+ * @param {TwinGraphImport} twinGraphImport the graph to import
11329
+ * @param {*} [options] Override http request option.
11330
+ * @throws {RequiredError}
11331
+ * @memberof TwingraphApi
11332
+ */
11333
+ public importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig) {
11334
+ return TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then((request) => request(this.axios, this.basePath));
11335
+ }
11336
+
11337
+ /**
11338
+ * Get the status of a job
11339
+ * @summary Get the status of a job
11340
+ * @param {string} organizationId the Organization identifier
11341
+ * @param {string} jobId the job identifier
11342
+ * @param {*} [options] Override http request option.
11343
+ * @throws {RequiredError}
11344
+ * @memberof TwingraphApi
11345
+ */
11346
+ public jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig) {
11347
+ return TwingraphApiFp(this.configuration).jobStatus(organizationId, jobId, options).then((request) => request(this.axios, this.basePath));
11348
+ }
11349
+
11350
+ /**
11351
+ * Run a query on a graph instance
11352
+ * @summary Run a query on a graph instance
11353
+ * @param {string} organizationId the Organization identifier
11354
+ * @param {string} graphId the Graph Identifier
11355
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
11356
+ * @param {*} [options] Override http request option.
11357
+ * @throws {RequiredError}
11358
+ * @memberof TwingraphApi
11359
+ */
11360
+ public query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig) {
11361
+ return TwingraphApiFp(this.configuration).query(organizationId, graphId, twinGraphQuery, options).then((request) => request(this.axios, this.basePath));
11362
+ }
11363
+
11364
+ /**
11365
+ * update entities in a graph instance
11366
+ * @summary Update entities in a graph instance
11367
+ * @param {string} organizationId the Organization identifier
11368
+ * @param {string} graphId the Graph Identifier
11369
+ * @param {'node' | 'relationship'} type the entity model type
11370
+ * @param {Array<GraphProperties>} graphProperties the entities to update
11371
+ * @param {*} [options] Override http request option.
11372
+ * @throws {RequiredError}
11373
+ * @memberof TwingraphApi
11374
+ */
11375
+ public updateEntities(organizationId: string, graphId: string, type: 'node' | 'relationship', graphProperties: Array<GraphProperties>, options?: AxiosRequestConfig) {
11376
+ return TwingraphApiFp(this.configuration).updateEntities(organizationId, graphId, type, graphProperties, options).then((request) => request(this.axios, this.basePath));
11377
+ }
11378
+
11379
+ /**
11380
+ * Update the metaData of the specified graph
11381
+ * @summary Update the metaData of the specified graph
11382
+ * @param {string} organizationId the Organization identifier
11383
+ * @param {string} graphId the Graph Identifier
11384
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
10637
11385
  * @param {*} [options] Override http request option.
10638
11386
  * @throws {RequiredError}
10639
- * @memberof UserApi
11387
+ * @memberof TwingraphApi
10640
11388
  */
10641
- public updateUser(userId: string, user: User, options?: AxiosRequestConfig) {
10642
- return UserApiFp(this.configuration).updateUser(userId, user, options).then((request) => request(this.axios, this.basePath));
11389
+ public updateGraphMetaData(organizationId: string, graphId: string, requestBody: { [key: string]: string; }, options?: AxiosRequestConfig) {
11390
+ return TwingraphApiFp(this.configuration).updateGraphMetaData(organizationId, graphId, requestBody, options).then((request) => request(this.axios, this.basePath));
10643
11391
  }
10644
11392
  }
10645
11393
 
@@ -11785,10 +12533,12 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
11785
12533
  *
11786
12534
  * @summary List all Workspaces
11787
12535
  * @param {string} organizationId the Organization identifier
12536
+ * @param {number} [page] page number to query
12537
+ * @param {number} [size] amount of result by page
11788
12538
  * @param {*} [options] Override http request option.
11789
12539
  * @throws {RequiredError}
11790
12540
  */
11791
- findAllWorkspaces: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12541
+ findAllWorkspaces: async (organizationId: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11792
12542
  // verify required parameter 'organizationId' is not null or undefined
11793
12543
  assertParamExists('findAllWorkspaces', 'organizationId', organizationId)
11794
12544
  const localVarPath = `/organizations/{organization_id}/workspaces`
@@ -11808,6 +12558,14 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
11808
12558
  // oauth required
11809
12559
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
11810
12560
 
12561
+ if (page !== undefined) {
12562
+ localVarQueryParameter['page'] = page;
12563
+ }
12564
+
12565
+ if (size !== undefined) {
12566
+ localVarQueryParameter['size'] = size;
12567
+ }
12568
+
11811
12569
 
11812
12570
 
11813
12571
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -12037,6 +12795,50 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
12037
12795
  options: localVarRequestOptions,
12038
12796
  };
12039
12797
  },
12798
+ /**
12799
+ *
12800
+ * @summary Import a workspace
12801
+ * @param {string} organizationId the Organization identifier
12802
+ * @param {Workspace} workspace the Workspace to import
12803
+ * @param {*} [options] Override http request option.
12804
+ * @throws {RequiredError}
12805
+ */
12806
+ importWorkspace: async (organizationId: string, workspace: Workspace, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12807
+ // verify required parameter 'organizationId' is not null or undefined
12808
+ assertParamExists('importWorkspace', 'organizationId', organizationId)
12809
+ // verify required parameter 'workspace' is not null or undefined
12810
+ assertParamExists('importWorkspace', 'workspace', workspace)
12811
+ const localVarPath = `/organizations/{organization_id}/workspaces/import`
12812
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
12813
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12814
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12815
+ let baseOptions;
12816
+ if (configuration) {
12817
+ baseOptions = configuration.baseOptions;
12818
+ }
12819
+
12820
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12821
+ const localVarHeaderParameter = {} as any;
12822
+ const localVarQueryParameter = {} as any;
12823
+
12824
+ // authentication oAuth2AuthCode required
12825
+ // oauth required
12826
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
12827
+
12828
+
12829
+
12830
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12831
+
12832
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12834
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12835
+ localVarRequestOptions.data = serializeDataIfNeeded(workspace, localVarRequestOptions, configuration)
12836
+
12837
+ return {
12838
+ url: toPathString(localVarUrlObj),
12839
+ options: localVarRequestOptions,
12840
+ };
12841
+ },
12040
12842
  /**
12041
12843
  *
12042
12844
  * @summary Remove the specified access from the given Organization Workspace
@@ -12408,11 +13210,13 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
12408
13210
  *
12409
13211
  * @summary List all Workspaces
12410
13212
  * @param {string} organizationId the Organization identifier
13213
+ * @param {number} [page] page number to query
13214
+ * @param {number} [size] amount of result by page
12411
13215
  * @param {*} [options] Override http request option.
12412
13216
  * @throws {RequiredError}
12413
13217
  */
12414
- async findAllWorkspaces(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>> {
12415
- const localVarAxiosArgs = await localVarAxiosParamCreator.findAllWorkspaces(organizationId, options);
13218
+ async findAllWorkspaces(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>> {
13219
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAllWorkspaces(organizationId, page, size, options);
12416
13220
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12417
13221
  },
12418
13222
  /**
@@ -12477,6 +13281,18 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
12477
13281
  const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceSecurityUsers(organizationId, workspaceId, options);
12478
13282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12479
13283
  },
13284
+ /**
13285
+ *
13286
+ * @summary Import a workspace
13287
+ * @param {string} organizationId the Organization identifier
13288
+ * @param {Workspace} workspace the Workspace to import
13289
+ * @param {*} [options] Override http request option.
13290
+ * @throws {RequiredError}
13291
+ */
13292
+ async importWorkspace(organizationId: string, workspace: Workspace, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
13293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importWorkspace(organizationId, workspace, options);
13294
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13295
+ },
12480
13296
  /**
12481
13297
  *
12482
13298
  * @summary Remove the specified access from the given Organization Workspace
@@ -12651,11 +13467,13 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
12651
13467
  *
12652
13468
  * @summary List all Workspaces
12653
13469
  * @param {string} organizationId the Organization identifier
13470
+ * @param {number} [page] page number to query
13471
+ * @param {number} [size] amount of result by page
12654
13472
  * @param {*} [options] Override http request option.
12655
13473
  * @throws {RequiredError}
12656
13474
  */
12657
- findAllWorkspaces(organizationId: string, options?: any): AxiosPromise<Array<Workspace>> {
12658
- return localVarFp.findAllWorkspaces(organizationId, options).then((request) => request(axios, basePath));
13475
+ findAllWorkspaces(organizationId: string, page?: number, size?: number, options?: any): AxiosPromise<Array<Workspace>> {
13476
+ return localVarFp.findAllWorkspaces(organizationId, page, size, options).then((request) => request(axios, basePath));
12659
13477
  },
12660
13478
  /**
12661
13479
  *
@@ -12714,6 +13532,17 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
12714
13532
  getWorkspaceSecurityUsers(organizationId: string, workspaceId: string, options?: any): AxiosPromise<Array<string>> {
12715
13533
  return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(axios, basePath));
12716
13534
  },
13535
+ /**
13536
+ *
13537
+ * @summary Import a workspace
13538
+ * @param {string} organizationId the Organization identifier
13539
+ * @param {Workspace} workspace the Workspace to import
13540
+ * @param {*} [options] Override http request option.
13541
+ * @throws {RequiredError}
13542
+ */
13543
+ importWorkspace(organizationId: string, workspace: Workspace, options?: any): AxiosPromise<Workspace> {
13544
+ return localVarFp.importWorkspace(organizationId, workspace, options).then((request) => request(axios, basePath));
13545
+ },
12717
13546
  /**
12718
13547
  *
12719
13548
  * @summary Remove the specified access from the given Organization Workspace
@@ -12899,12 +13728,14 @@ export class WorkspaceApi extends BaseAPI {
12899
13728
  *
12900
13729
  * @summary List all Workspaces
12901
13730
  * @param {string} organizationId the Organization identifier
13731
+ * @param {number} [page] page number to query
13732
+ * @param {number} [size] amount of result by page
12902
13733
  * @param {*} [options] Override http request option.
12903
13734
  * @throws {RequiredError}
12904
13735
  * @memberof WorkspaceApi
12905
13736
  */
12906
- public findAllWorkspaces(organizationId: string, options?: AxiosRequestConfig) {
12907
- return WorkspaceApiFp(this.configuration).findAllWorkspaces(organizationId, options).then((request) => request(this.axios, this.basePath));
13737
+ public findAllWorkspaces(organizationId: string, page?: number, size?: number, options?: AxiosRequestConfig) {
13738
+ return WorkspaceApiFp(this.configuration).findAllWorkspaces(organizationId, page, size, options).then((request) => request(this.axios, this.basePath));
12908
13739
  }
12909
13740
 
12910
13741
  /**
@@ -12974,6 +13805,19 @@ export class WorkspaceApi extends BaseAPI {
12974
13805
  return WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
12975
13806
  }
12976
13807
 
13808
+ /**
13809
+ *
13810
+ * @summary Import a workspace
13811
+ * @param {string} organizationId the Organization identifier
13812
+ * @param {Workspace} workspace the Workspace to import
13813
+ * @param {*} [options] Override http request option.
13814
+ * @throws {RequiredError}
13815
+ * @memberof WorkspaceApi
13816
+ */
13817
+ public importWorkspace(organizationId: string, workspace: Workspace, options?: AxiosRequestConfig) {
13818
+ return WorkspaceApiFp(this.configuration).importWorkspace(organizationId, workspace, options).then((request) => request(this.axios, this.basePath));
13819
+ }
13820
+
12977
13821
  /**
12978
13822
  *
12979
13823
  * @summary Remove the specified access from the given Organization Workspace