@seekora-ai/admin-api 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @seekora-ai/admin-api@1.0.15
1
+ ## @seekora-ai/admin-api@1.0.16
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @seekora-ai/admin-api@1.0.15 --save
39
+ npm install @seekora-ai/admin-api@1.0.16 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -63,6 +63,7 @@ Class | Method | HTTP request | Description
63
63
  *ArticlesApi* | [**adminArticlesPost**](docs/ArticlesApi.md#adminarticlespost) | **POST** /admin/Articles | Creates a new article
64
64
  *AuthApi* | [**authLoginPost**](docs/AuthApi.md#authloginpost) | **POST** /Auth/login | Login a user
65
65
  *AuthApi* | [**authLogoutPost**](docs/AuthApi.md#authlogoutpost) | **POST** /Auth/logout | Logout a user
66
+ *AuthApi* | [**authSessionGet**](docs/AuthApi.md#authsessionget) | **GET** /Auth/session | Get current auth session
66
67
  *ConnectorsApi* | [**v1ConnectorsSearchIndexGet**](docs/ConnectorsApi.md#v1connectorssearchindexget) | **GET** /v1/connectors/search/{index} | Test search
67
68
  *ConnectorsApi* | [**v1ConnectorsSourcesGet**](docs/ConnectorsApi.md#v1connectorssourcesget) | **GET** /v1/connectors/sources | Get all sources
68
69
  *ConnectorsApi* | [**v1ConnectorsSourcesPost**](docs/ConnectorsApi.md#v1connectorssourcespost) | **POST** /v1/connectors/sources | Create source
package/api.ts CHANGED
@@ -5975,6 +5975,39 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
5975
5975
 
5976
5976
 
5977
5977
 
5978
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5979
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5980
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5981
+
5982
+ return {
5983
+ url: toPathString(localVarUrlObj),
5984
+ options: localVarRequestOptions,
5985
+ };
5986
+ },
5987
+ /**
5988
+ * Returns refreshed session data for authenticated user
5989
+ * @summary Get current auth session
5990
+ * @param {*} [options] Override http request option.
5991
+ * @throws {RequiredError}
5992
+ */
5993
+ authSessionGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5994
+ const localVarPath = `/Auth/session`;
5995
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5996
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5997
+ let baseOptions;
5998
+ if (configuration) {
5999
+ baseOptions = configuration.baseOptions;
6000
+ }
6001
+
6002
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6003
+ const localVarHeaderParameter = {} as any;
6004
+ const localVarQueryParameter = {} as any;
6005
+
6006
+ // authentication BearerAuth required
6007
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6008
+
6009
+
6010
+
5978
6011
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5979
6012
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5980
6013
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6019,6 +6052,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
6019
6052
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authLogoutPost']?.[localVarOperationServerIndex]?.url;
6020
6053
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6021
6054
  },
6055
+ /**
6056
+ * Returns refreshed session data for authenticated user
6057
+ * @summary Get current auth session
6058
+ * @param {*} [options] Override http request option.
6059
+ * @throws {RequiredError}
6060
+ */
6061
+ async authSessionGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>> {
6062
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authSessionGet(options);
6063
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6064
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authSessionGet']?.[localVarOperationServerIndex]?.url;
6065
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6066
+ },
6022
6067
  }
6023
6068
  };
6024
6069
 
@@ -6048,6 +6093,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
6048
6093
  authLogoutPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
6049
6094
  return localVarFp.authLogoutPost(options).then((request) => request(axios, basePath));
6050
6095
  },
6096
+ /**
6097
+ * Returns refreshed session data for authenticated user
6098
+ * @summary Get current auth session
6099
+ * @param {*} [options] Override http request option.
6100
+ * @throws {RequiredError}
6101
+ */
6102
+ authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper> {
6103
+ return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
6104
+ },
6051
6105
  };
6052
6106
  };
6053
6107
 
@@ -6080,6 +6134,17 @@ export class AuthApi extends BaseAPI {
6080
6134
  public authLogoutPost(options?: RawAxiosRequestConfig) {
6081
6135
  return AuthApiFp(this.configuration).authLogoutPost(options).then((request) => request(this.axios, this.basePath));
6082
6136
  }
6137
+
6138
+ /**
6139
+ * Returns refreshed session data for authenticated user
6140
+ * @summary Get current auth session
6141
+ * @param {*} [options] Override http request option.
6142
+ * @throws {RequiredError}
6143
+ * @memberof AuthApi
6144
+ */
6145
+ public authSessionGet(options?: RawAxiosRequestConfig) {
6146
+ return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
6147
+ }
6083
6148
  }
6084
6149
 
6085
6150
 
package/dist/api.d.ts CHANGED
@@ -5514,6 +5514,13 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
5514
5514
  * @throws {RequiredError}
5515
5515
  */
5516
5516
  authLogoutPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5517
+ /**
5518
+ * Returns refreshed session data for authenticated user
5519
+ * @summary Get current auth session
5520
+ * @param {*} [options] Override http request option.
5521
+ * @throws {RequiredError}
5522
+ */
5523
+ authSessionGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5517
5524
  };
5518
5525
  /**
5519
5526
  * AuthApi - functional programming interface
@@ -5535,6 +5542,13 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
5535
5542
  * @throws {RequiredError}
5536
5543
  */
5537
5544
  authLogoutPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
5545
+ /**
5546
+ * Returns refreshed session data for authenticated user
5547
+ * @summary Get current auth session
5548
+ * @param {*} [options] Override http request option.
5549
+ * @throws {RequiredError}
5550
+ */
5551
+ authSessionGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>>;
5538
5552
  };
5539
5553
  /**
5540
5554
  * AuthApi - factory interface
@@ -5556,6 +5570,13 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
5556
5570
  * @throws {RequiredError}
5557
5571
  */
5558
5572
  authLogoutPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
5573
+ /**
5574
+ * Returns refreshed session data for authenticated user
5575
+ * @summary Get current auth session
5576
+ * @param {*} [options] Override http request option.
5577
+ * @throws {RequiredError}
5578
+ */
5579
+ authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper>;
5559
5580
  };
5560
5581
  /**
5561
5582
  * AuthApi - object-oriented interface
@@ -5581,6 +5602,14 @@ export declare class AuthApi extends BaseAPI {
5581
5602
  * @memberof AuthApi
5582
5603
  */
5583
5604
  authLogoutPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
5605
+ /**
5606
+ * Returns refreshed session data for authenticated user
5607
+ * @summary Get current auth session
5608
+ * @param {*} [options] Override http request option.
5609
+ * @throws {RequiredError}
5610
+ * @memberof AuthApi
5611
+ */
5612
+ authSessionGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesLoginResponseWrapper, any>>;
5584
5613
  }
5585
5614
  /**
5586
5615
  * ConnectorsApi - axios parameter creator
package/dist/api.js CHANGED
@@ -869,6 +869,33 @@ const AuthApiAxiosParamCreator = function (configuration) {
869
869
  options: localVarRequestOptions,
870
870
  };
871
871
  }),
872
+ /**
873
+ * Returns refreshed session data for authenticated user
874
+ * @summary Get current auth session
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ */
878
+ authSessionGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
879
+ const localVarPath = `/Auth/session`;
880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
881
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
882
+ let baseOptions;
883
+ if (configuration) {
884
+ baseOptions = configuration.baseOptions;
885
+ }
886
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
887
+ const localVarHeaderParameter = {};
888
+ const localVarQueryParameter = {};
889
+ // authentication BearerAuth required
890
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
891
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
893
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
894
+ return {
895
+ url: (0, common_1.toPathString)(localVarUrlObj),
896
+ options: localVarRequestOptions,
897
+ };
898
+ }),
872
899
  };
873
900
  };
874
901
  exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
@@ -910,6 +937,21 @@ const AuthApiFp = function (configuration) {
910
937
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
911
938
  });
912
939
  },
940
+ /**
941
+ * Returns refreshed session data for authenticated user
942
+ * @summary Get current auth session
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ */
946
+ authSessionGet(options) {
947
+ return __awaiter(this, void 0, void 0, function* () {
948
+ var _a, _b, _c;
949
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authSessionGet(options);
950
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
951
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authSessionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
952
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
953
+ });
954
+ },
913
955
  };
914
956
  };
915
957
  exports.AuthApiFp = AuthApiFp;
@@ -939,6 +981,15 @@ const AuthApiFactory = function (configuration, basePath, axios) {
939
981
  authLogoutPost(options) {
940
982
  return localVarFp.authLogoutPost(options).then((request) => request(axios, basePath));
941
983
  },
984
+ /**
985
+ * Returns refreshed session data for authenticated user
986
+ * @summary Get current auth session
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ authSessionGet(options) {
991
+ return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
992
+ },
942
993
  };
943
994
  };
944
995
  exports.AuthApiFactory = AuthApiFactory;
@@ -970,6 +1021,16 @@ class AuthApi extends base_1.BaseAPI {
970
1021
  authLogoutPost(options) {
971
1022
  return (0, exports.AuthApiFp)(this.configuration).authLogoutPost(options).then((request) => request(this.axios, this.basePath));
972
1023
  }
1024
+ /**
1025
+ * Returns refreshed session data for authenticated user
1026
+ * @summary Get current auth session
1027
+ * @param {*} [options] Override http request option.
1028
+ * @throws {RequiredError}
1029
+ * @memberof AuthApi
1030
+ */
1031
+ authSessionGet(options) {
1032
+ return (0, exports.AuthApiFp)(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
1033
+ }
973
1034
  }
974
1035
  exports.AuthApi = AuthApi;
975
1036
  /**
package/dist/esm/api.d.ts CHANGED
@@ -5514,6 +5514,13 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
5514
5514
  * @throws {RequiredError}
5515
5515
  */
5516
5516
  authLogoutPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5517
+ /**
5518
+ * Returns refreshed session data for authenticated user
5519
+ * @summary Get current auth session
5520
+ * @param {*} [options] Override http request option.
5521
+ * @throws {RequiredError}
5522
+ */
5523
+ authSessionGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5517
5524
  };
5518
5525
  /**
5519
5526
  * AuthApi - functional programming interface
@@ -5535,6 +5542,13 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
5535
5542
  * @throws {RequiredError}
5536
5543
  */
5537
5544
  authLogoutPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
5545
+ /**
5546
+ * Returns refreshed session data for authenticated user
5547
+ * @summary Get current auth session
5548
+ * @param {*} [options] Override http request option.
5549
+ * @throws {RequiredError}
5550
+ */
5551
+ authSessionGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>>;
5538
5552
  };
5539
5553
  /**
5540
5554
  * AuthApi - factory interface
@@ -5556,6 +5570,13 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
5556
5570
  * @throws {RequiredError}
5557
5571
  */
5558
5572
  authLogoutPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
5573
+ /**
5574
+ * Returns refreshed session data for authenticated user
5575
+ * @summary Get current auth session
5576
+ * @param {*} [options] Override http request option.
5577
+ * @throws {RequiredError}
5578
+ */
5579
+ authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper>;
5559
5580
  };
5560
5581
  /**
5561
5582
  * AuthApi - object-oriented interface
@@ -5581,6 +5602,14 @@ export declare class AuthApi extends BaseAPI {
5581
5602
  * @memberof AuthApi
5582
5603
  */
5583
5604
  authLogoutPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
5605
+ /**
5606
+ * Returns refreshed session data for authenticated user
5607
+ * @summary Get current auth session
5608
+ * @param {*} [options] Override http request option.
5609
+ * @throws {RequiredError}
5610
+ * @memberof AuthApi
5611
+ */
5612
+ authSessionGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesLoginResponseWrapper, any>>;
5584
5613
  }
5585
5614
  /**
5586
5615
  * ConnectorsApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -857,6 +857,33 @@ export const AuthApiAxiosParamCreator = function (configuration) {
857
857
  options: localVarRequestOptions,
858
858
  };
859
859
  }),
860
+ /**
861
+ * Returns refreshed session data for authenticated user
862
+ * @summary Get current auth session
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ authSessionGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
867
+ const localVarPath = `/Auth/session`;
868
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
869
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
870
+ let baseOptions;
871
+ if (configuration) {
872
+ baseOptions = configuration.baseOptions;
873
+ }
874
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
875
+ const localVarHeaderParameter = {};
876
+ const localVarQueryParameter = {};
877
+ // authentication BearerAuth required
878
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
879
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
880
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
881
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
882
+ return {
883
+ url: toPathString(localVarUrlObj),
884
+ options: localVarRequestOptions,
885
+ };
886
+ }),
860
887
  };
861
888
  };
862
889
  /**
@@ -897,6 +924,21 @@ export const AuthApiFp = function (configuration) {
897
924
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
898
925
  });
899
926
  },
927
+ /**
928
+ * Returns refreshed session data for authenticated user
929
+ * @summary Get current auth session
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ */
933
+ authSessionGet(options) {
934
+ return __awaiter(this, void 0, void 0, function* () {
935
+ var _a, _b, _c;
936
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authSessionGet(options);
937
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
938
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authSessionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
939
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
940
+ });
941
+ },
900
942
  };
901
943
  };
902
944
  /**
@@ -925,6 +967,15 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
925
967
  authLogoutPost(options) {
926
968
  return localVarFp.authLogoutPost(options).then((request) => request(axios, basePath));
927
969
  },
970
+ /**
971
+ * Returns refreshed session data for authenticated user
972
+ * @summary Get current auth session
973
+ * @param {*} [options] Override http request option.
974
+ * @throws {RequiredError}
975
+ */
976
+ authSessionGet(options) {
977
+ return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
978
+ },
928
979
  };
929
980
  };
930
981
  /**
@@ -955,6 +1006,16 @@ export class AuthApi extends BaseAPI {
955
1006
  authLogoutPost(options) {
956
1007
  return AuthApiFp(this.configuration).authLogoutPost(options).then((request) => request(this.axios, this.basePath));
957
1008
  }
1009
+ /**
1010
+ * Returns refreshed session data for authenticated user
1011
+ * @summary Get current auth session
1012
+ * @param {*} [options] Override http request option.
1013
+ * @throws {RequiredError}
1014
+ * @memberof AuthApi
1015
+ */
1016
+ authSessionGet(options) {
1017
+ return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
1018
+ }
958
1019
  }
959
1020
  /**
960
1021
  * ConnectorsApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file