@knowledge-stack/ksapi 1.51.0 → 1.52.0
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/.openapi-generator/FILES +4 -0
- package/README.md +4 -2
- package/dist/apis/FeaturesApi.d.ts +59 -0
- package/dist/apis/FeaturesApi.js +70 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/FeaturesApi.d.ts +59 -0
- package/dist/esm/apis/FeaturesApi.js +66 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/FeaturesResponse.d.ts +54 -0
- package/dist/esm/models/FeaturesResponse.js +49 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/FeaturesResponse.d.ts +54 -0
- package/dist/models/FeaturesResponse.js +57 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/FeaturesApi.md +68 -0
- package/docs/FeaturesResponse.md +36 -0
- package/package.json +1 -1
- package/src/apis/FeaturesApi.ts +100 -0
- package/src/apis/index.ts +1 -0
- package/src/models/FeaturesResponse.ts +102 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -49,6 +49,8 @@ docs/EmailSentResponse.md
|
|
|
49
49
|
docs/EmailVerificationRequest.md
|
|
50
50
|
docs/EnrichedCitation.md
|
|
51
51
|
docs/EnrichedThreadMessageContent.md
|
|
52
|
+
docs/FeaturesApi.md
|
|
53
|
+
docs/FeaturesResponse.md
|
|
52
54
|
docs/FolderAction.md
|
|
53
55
|
docs/FolderActionResponse.md
|
|
54
56
|
docs/FolderResponse.md
|
|
@@ -159,6 +161,7 @@ src/apis/ChunksApi.ts
|
|
|
159
161
|
src/apis/DefaultApi.ts
|
|
160
162
|
src/apis/DocumentVersionsApi.ts
|
|
161
163
|
src/apis/DocumentsApi.ts
|
|
164
|
+
src/apis/FeaturesApi.ts
|
|
162
165
|
src/apis/FoldersApi.ts
|
|
163
166
|
src/apis/InvitesApi.ts
|
|
164
167
|
src/apis/PathPartsApi.ts
|
|
@@ -212,6 +215,7 @@ src/models/EmailSentResponse.ts
|
|
|
212
215
|
src/models/EmailVerificationRequest.ts
|
|
213
216
|
src/models/EnrichedCitation.ts
|
|
214
217
|
src/models/EnrichedThreadMessageContent.ts
|
|
218
|
+
src/models/FeaturesResponse.ts
|
|
215
219
|
src/models/FolderAction.ts
|
|
216
220
|
src/models/FolderActionResponse.ts
|
|
217
221
|
src/models/FolderResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.52.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -93,6 +93,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
93
93
|
*DocumentsApi* | [**ingestDocumentVersion**](docs/DocumentsApi.md#ingestdocumentversion) | **POST** /v1/documents/{document_id}/ingest | Ingest Document Version Handler
|
|
94
94
|
*DocumentsApi* | [**listDocuments**](docs/DocumentsApi.md#listdocuments) | **GET** /v1/documents | List Documents Handler
|
|
95
95
|
*DocumentsApi* | [**updateDocument**](docs/DocumentsApi.md#updatedocumentoperation) | **PATCH** /v1/documents/{document_id} | Update Document Handler
|
|
96
|
+
*FeaturesApi* | [**getFeatures**](docs/FeaturesApi.md#getfeatures) | **GET** /v1/features | Get Features Handler
|
|
96
97
|
*FoldersApi* | [**createFolder**](docs/FoldersApi.md#createfolderoperation) | **POST** /v1/folders | Create Folder Handler
|
|
97
98
|
*FoldersApi* | [**deleteFolder**](docs/FoldersApi.md#deletefolder) | **DELETE** /v1/folders/{folder_id} | Delete Folder Handler
|
|
98
99
|
*FoldersApi* | [**folderAction**](docs/FoldersApi.md#folderaction) | **POST** /v1/folders/{folder_id} | Folder Action Handler
|
|
@@ -192,6 +193,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
192
193
|
- [EmailVerificationRequest](docs/EmailVerificationRequest.md)
|
|
193
194
|
- [EnrichedCitation](docs/EnrichedCitation.md)
|
|
194
195
|
- [EnrichedThreadMessageContent](docs/EnrichedThreadMessageContent.md)
|
|
196
|
+
- [FeaturesResponse](docs/FeaturesResponse.md)
|
|
195
197
|
- [FolderAction](docs/FolderAction.md)
|
|
196
198
|
- [FolderActionResponse](docs/FolderActionResponse.md)
|
|
197
199
|
- [FolderResponse](docs/FolderResponse.md)
|
|
@@ -296,7 +298,7 @@ and is automatically generated by the
|
|
|
296
298
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
297
299
|
|
|
298
300
|
- API version: `0.1.0`
|
|
299
|
-
- Package version: `1.
|
|
301
|
+
- Package version: `1.52.0`
|
|
300
302
|
- Generator version: `7.20.0`
|
|
301
303
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
302
304
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { FeaturesResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* FeaturesApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FeaturesApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface FeaturesApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getFeatures without sending the request
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @memberof FeaturesApiInterface
|
|
25
|
+
*/
|
|
26
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
27
|
+
/**
|
|
28
|
+
* Return public feature flags for the frontend.
|
|
29
|
+
* @summary Get Features Handler
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof FeaturesApiInterface
|
|
33
|
+
*/
|
|
34
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
35
|
+
/**
|
|
36
|
+
* Return public feature flags for the frontend.
|
|
37
|
+
* Get Features Handler
|
|
38
|
+
*/
|
|
39
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export declare class FeaturesApi extends runtime.BaseAPI implements FeaturesApiInterface {
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for getFeatures without sending the request
|
|
47
|
+
*/
|
|
48
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
49
|
+
/**
|
|
50
|
+
* Return public feature flags for the frontend.
|
|
51
|
+
* Get Features Handler
|
|
52
|
+
*/
|
|
53
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Return public feature flags for the frontend.
|
|
56
|
+
* Get Features Handler
|
|
57
|
+
*/
|
|
58
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.FeaturesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class FeaturesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for getFeatures without sending the request
|
|
34
|
+
*/
|
|
35
|
+
getFeaturesRequestOpts() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/v1/features`;
|
|
40
|
+
return {
|
|
41
|
+
path: urlPath,
|
|
42
|
+
method: 'GET',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Return public feature flags for the frontend.
|
|
50
|
+
* Get Features Handler
|
|
51
|
+
*/
|
|
52
|
+
getFeaturesRaw(initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.getFeaturesRequestOpts();
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FeaturesResponseFromJSON)(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Return public feature flags for the frontend.
|
|
61
|
+
* Get Features Handler
|
|
62
|
+
*/
|
|
63
|
+
getFeatures(initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const response = yield this.getFeaturesRaw(initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.FeaturesApi = FeaturesApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./ChunksApi"), exports);
|
|
|
23
23
|
__exportStar(require("./DefaultApi"), exports);
|
|
24
24
|
__exportStar(require("./DocumentVersionsApi"), exports);
|
|
25
25
|
__exportStar(require("./DocumentsApi"), exports);
|
|
26
|
+
__exportStar(require("./FeaturesApi"), exports);
|
|
26
27
|
__exportStar(require("./FoldersApi"), exports);
|
|
27
28
|
__exportStar(require("./InvitesApi"), exports);
|
|
28
29
|
__exportStar(require("./PathPartsApi"), exports);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { FeaturesResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* FeaturesApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FeaturesApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface FeaturesApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getFeatures without sending the request
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @memberof FeaturesApiInterface
|
|
25
|
+
*/
|
|
26
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
27
|
+
/**
|
|
28
|
+
* Return public feature flags for the frontend.
|
|
29
|
+
* @summary Get Features Handler
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof FeaturesApiInterface
|
|
33
|
+
*/
|
|
34
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
35
|
+
/**
|
|
36
|
+
* Return public feature flags for the frontend.
|
|
37
|
+
* Get Features Handler
|
|
38
|
+
*/
|
|
39
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export declare class FeaturesApi extends runtime.BaseAPI implements FeaturesApiInterface {
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for getFeatures without sending the request
|
|
47
|
+
*/
|
|
48
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
49
|
+
/**
|
|
50
|
+
* Return public feature flags for the frontend.
|
|
51
|
+
* Get Features Handler
|
|
52
|
+
*/
|
|
53
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Return public feature flags for the frontend.
|
|
56
|
+
* Get Features Handler
|
|
57
|
+
*/
|
|
58
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { FeaturesResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class FeaturesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for getFeatures without sending the request
|
|
31
|
+
*/
|
|
32
|
+
getFeaturesRequestOpts() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
let urlPath = `/v1/features`;
|
|
37
|
+
return {
|
|
38
|
+
path: urlPath,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Return public feature flags for the frontend.
|
|
47
|
+
* Get Features Handler
|
|
48
|
+
*/
|
|
49
|
+
getFeaturesRaw(initOverrides) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const requestOptions = yield this.getFeaturesRequestOpts();
|
|
52
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesResponseFromJSON(jsonValue));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Return public feature flags for the frontend.
|
|
58
|
+
* Get Features Handler
|
|
59
|
+
*/
|
|
60
|
+
getFeatures(initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const response = yield this.getFeaturesRaw(initOverrides);
|
|
63
|
+
return yield response.value();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './ChunksApi';
|
|
|
7
7
|
export * from './DefaultApi';
|
|
8
8
|
export * from './DocumentVersionsApi';
|
|
9
9
|
export * from './DocumentsApi';
|
|
10
|
+
export * from './FeaturesApi';
|
|
10
11
|
export * from './FoldersApi';
|
|
11
12
|
export * from './InvitesApi';
|
|
12
13
|
export * from './PathPartsApi';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SupportedLanguage } from './SupportedLanguage';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FeaturesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FeaturesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof FeaturesResponse
|
|
23
|
+
*/
|
|
24
|
+
googleLoginEnabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SupportedLanguage}
|
|
28
|
+
* @memberof FeaturesResponse
|
|
29
|
+
*/
|
|
30
|
+
defaultFrontendLanguage: SupportedLanguage;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the FeaturesResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfFeaturesResponse(value: object): value is FeaturesResponse;
|
|
36
|
+
export declare function FeaturesResponseFromJSON(json: any): FeaturesResponse;
|
|
37
|
+
export declare function FeaturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesResponse;
|
|
38
|
+
export declare function FeaturesResponseToJSON(json: any): FeaturesResponse;
|
|
39
|
+
export declare function FeaturesResponseToJSONTyped(value?: FeaturesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const FeaturesResponsePropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SupportedLanguageFromJSON, SupportedLanguageToJSON, } from './SupportedLanguage';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the FeaturesResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfFeaturesResponse(value) {
|
|
19
|
+
if (!('googleLoginEnabled' in value) || value['googleLoginEnabled'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('defaultFrontendLanguage' in value) || value['defaultFrontendLanguage'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function FeaturesResponseFromJSON(json) {
|
|
26
|
+
return FeaturesResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function FeaturesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'googleLoginEnabled': json['google_login_enabled'],
|
|
34
|
+
'defaultFrontendLanguage': SupportedLanguageFromJSON(json['default_frontend_language']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function FeaturesResponseToJSON(json) {
|
|
38
|
+
return FeaturesResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function FeaturesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'google_login_enabled': value['googleLoginEnabled'],
|
|
46
|
+
'default_frontend_language': SupportedLanguageToJSON(value['defaultFrontendLanguage']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export const FeaturesResponsePropertyValidationAttributesMap = {};
|
|
@@ -38,6 +38,7 @@ export * from './EmailSentResponse';
|
|
|
38
38
|
export * from './EmailVerificationRequest';
|
|
39
39
|
export * from './EnrichedCitation';
|
|
40
40
|
export * from './EnrichedThreadMessageContent';
|
|
41
|
+
export * from './FeaturesResponse';
|
|
41
42
|
export * from './FolderAction';
|
|
42
43
|
export * from './FolderActionResponse';
|
|
43
44
|
export * from './FolderResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -40,6 +40,7 @@ export * from './EmailSentResponse';
|
|
|
40
40
|
export * from './EmailVerificationRequest';
|
|
41
41
|
export * from './EnrichedCitation';
|
|
42
42
|
export * from './EnrichedThreadMessageContent';
|
|
43
|
+
export * from './FeaturesResponse';
|
|
43
44
|
export * from './FolderAction';
|
|
44
45
|
export * from './FolderActionResponse';
|
|
45
46
|
export * from './FolderResponse';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SupportedLanguage } from './SupportedLanguage';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FeaturesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FeaturesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof FeaturesResponse
|
|
23
|
+
*/
|
|
24
|
+
googleLoginEnabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SupportedLanguage}
|
|
28
|
+
* @memberof FeaturesResponse
|
|
29
|
+
*/
|
|
30
|
+
defaultFrontendLanguage: SupportedLanguage;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the FeaturesResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfFeaturesResponse(value: object): value is FeaturesResponse;
|
|
36
|
+
export declare function FeaturesResponseFromJSON(json: any): FeaturesResponse;
|
|
37
|
+
export declare function FeaturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesResponse;
|
|
38
|
+
export declare function FeaturesResponseToJSON(json: any): FeaturesResponse;
|
|
39
|
+
export declare function FeaturesResponseToJSONTyped(value?: FeaturesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const FeaturesResponsePropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FeaturesResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfFeaturesResponse = instanceOfFeaturesResponse;
|
|
18
|
+
exports.FeaturesResponseFromJSON = FeaturesResponseFromJSON;
|
|
19
|
+
exports.FeaturesResponseFromJSONTyped = FeaturesResponseFromJSONTyped;
|
|
20
|
+
exports.FeaturesResponseToJSON = FeaturesResponseToJSON;
|
|
21
|
+
exports.FeaturesResponseToJSONTyped = FeaturesResponseToJSONTyped;
|
|
22
|
+
const SupportedLanguage_1 = require("./SupportedLanguage");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the FeaturesResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfFeaturesResponse(value) {
|
|
27
|
+
if (!('googleLoginEnabled' in value) || value['googleLoginEnabled'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('defaultFrontendLanguage' in value) || value['defaultFrontendLanguage'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function FeaturesResponseFromJSON(json) {
|
|
34
|
+
return FeaturesResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function FeaturesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'googleLoginEnabled': json['google_login_enabled'],
|
|
42
|
+
'defaultFrontendLanguage': (0, SupportedLanguage_1.SupportedLanguageFromJSON)(json['default_frontend_language']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function FeaturesResponseToJSON(json) {
|
|
46
|
+
return FeaturesResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function FeaturesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'google_login_enabled': value['googleLoginEnabled'],
|
|
54
|
+
'default_frontend_language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['defaultFrontendLanguage']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.FeaturesResponsePropertyValidationAttributesMap = {};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from './EmailSentResponse';
|
|
|
38
38
|
export * from './EmailVerificationRequest';
|
|
39
39
|
export * from './EnrichedCitation';
|
|
40
40
|
export * from './EnrichedThreadMessageContent';
|
|
41
|
+
export * from './FeaturesResponse';
|
|
41
42
|
export * from './FolderAction';
|
|
42
43
|
export * from './FolderActionResponse';
|
|
43
44
|
export * from './FolderResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -56,6 +56,7 @@ __exportStar(require("./EmailSentResponse"), exports);
|
|
|
56
56
|
__exportStar(require("./EmailVerificationRequest"), exports);
|
|
57
57
|
__exportStar(require("./EnrichedCitation"), exports);
|
|
58
58
|
__exportStar(require("./EnrichedThreadMessageContent"), exports);
|
|
59
|
+
__exportStar(require("./FeaturesResponse"), exports);
|
|
59
60
|
__exportStar(require("./FolderAction"), exports);
|
|
60
61
|
__exportStar(require("./FolderActionResponse"), exports);
|
|
61
62
|
__exportStar(require("./FolderResponse"), exports);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# FeaturesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getFeatures**](FeaturesApi.md#getfeatures) | **GET** /v1/features | Get Features Handler |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getFeatures
|
|
12
|
+
|
|
13
|
+
> FeaturesResponse getFeatures()
|
|
14
|
+
|
|
15
|
+
Get Features Handler
|
|
16
|
+
|
|
17
|
+
Return public feature flags for the frontend.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
FeaturesApi,
|
|
25
|
+
} from '@knowledge-stack/ksapi';
|
|
26
|
+
import type { GetFeaturesRequest } from '@knowledge-stack/ksapi';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
30
|
+
const api = new FeaturesApi();
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
const data = await api.getFeatures();
|
|
34
|
+
console.log(data);
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.error(error);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Run the test
|
|
41
|
+
example().catch(console.error);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
This endpoint does not need any parameter.
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
[**FeaturesResponse**](FeaturesResponse.md)
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
No authorization required
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: Not defined
|
|
59
|
+
- **Accept**: `application/json`
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
| **200** | Successful Response | - |
|
|
66
|
+
|
|
67
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
68
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# FeaturesResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`googleLoginEnabled` | boolean
|
|
10
|
+
`defaultFrontendLanguage` | [SupportedLanguage](SupportedLanguage.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { FeaturesResponse } from '@knowledge-stack/ksapi'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"googleLoginEnabled": null,
|
|
20
|
+
"defaultFrontendLanguage": null,
|
|
21
|
+
} satisfies FeaturesResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as FeaturesResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
FeaturesResponse,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
FeaturesResponseFromJSON,
|
|
22
|
+
FeaturesResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* FeaturesApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface FeaturesApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface FeaturesApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for getFeatures without sending the request
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
* @memberof FeaturesApiInterface
|
|
36
|
+
*/
|
|
37
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Return public feature flags for the frontend.
|
|
41
|
+
* @summary Get Features Handler
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof FeaturesApiInterface
|
|
45
|
+
*/
|
|
46
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Return public feature flags for the frontend.
|
|
50
|
+
* Get Features Handler
|
|
51
|
+
*/
|
|
52
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export class FeaturesApi extends runtime.BaseAPI implements FeaturesApiInterface {
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for getFeatures without sending the request
|
|
63
|
+
*/
|
|
64
|
+
async getFeaturesRequestOpts(): Promise<runtime.RequestOpts> {
|
|
65
|
+
const queryParameters: any = {};
|
|
66
|
+
|
|
67
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
let urlPath = `/v1/features`;
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
path: urlPath,
|
|
74
|
+
method: 'GET',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Return public feature flags for the frontend.
|
|
82
|
+
* Get Features Handler
|
|
83
|
+
*/
|
|
84
|
+
async getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>> {
|
|
85
|
+
const requestOptions = await this.getFeaturesRequestOpts();
|
|
86
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
87
|
+
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Return public feature flags for the frontend.
|
|
93
|
+
* Get Features Handler
|
|
94
|
+
*/
|
|
95
|
+
async getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse> {
|
|
96
|
+
const response = await this.getFeaturesRaw(initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './ChunksApi';
|
|
|
7
7
|
export * from './DefaultApi';
|
|
8
8
|
export * from './DocumentVersionsApi';
|
|
9
9
|
export * from './DocumentsApi';
|
|
10
|
+
export * from './FeaturesApi';
|
|
10
11
|
export * from './FoldersApi';
|
|
11
12
|
export * from './InvitesApi';
|
|
12
13
|
export * from './PathPartsApi';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SupportedLanguage } from './SupportedLanguage';
|
|
17
|
+
import {
|
|
18
|
+
SupportedLanguageFromJSON,
|
|
19
|
+
SupportedLanguageFromJSONTyped,
|
|
20
|
+
SupportedLanguageToJSON,
|
|
21
|
+
SupportedLanguageToJSONTyped,
|
|
22
|
+
} from './SupportedLanguage';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FeaturesResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface FeaturesResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof FeaturesResponse
|
|
34
|
+
*/
|
|
35
|
+
googleLoginEnabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {SupportedLanguage}
|
|
39
|
+
* @memberof FeaturesResponse
|
|
40
|
+
*/
|
|
41
|
+
defaultFrontendLanguage: SupportedLanguage;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the FeaturesResponse interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfFeaturesResponse(value: object): value is FeaturesResponse {
|
|
50
|
+
if (!('googleLoginEnabled' in value) || value['googleLoginEnabled'] === undefined) return false;
|
|
51
|
+
if (!('defaultFrontendLanguage' in value) || value['defaultFrontendLanguage'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function FeaturesResponseFromJSON(json: any): FeaturesResponse {
|
|
56
|
+
return FeaturesResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FeaturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesResponse {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'googleLoginEnabled': json['google_login_enabled'],
|
|
66
|
+
'defaultFrontendLanguage': SupportedLanguageFromJSON(json['default_frontend_language']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function FeaturesResponseToJSON(json: any): FeaturesResponse {
|
|
71
|
+
return FeaturesResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function FeaturesResponseToJSONTyped(value?: FeaturesResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'google_login_enabled': value['googleLoginEnabled'],
|
|
82
|
+
'default_frontend_language': SupportedLanguageToJSON(value['defaultFrontendLanguage']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export const FeaturesResponsePropertyValidationAttributesMap: {
|
|
87
|
+
[property: string]: {
|
|
88
|
+
maxLength?: number,
|
|
89
|
+
minLength?: number,
|
|
90
|
+
pattern?: string,
|
|
91
|
+
maximum?: number,
|
|
92
|
+
exclusiveMaximum?: boolean,
|
|
93
|
+
minimum?: number,
|
|
94
|
+
exclusiveMinimum?: boolean,
|
|
95
|
+
multipleOf?: number,
|
|
96
|
+
maxItems?: number,
|
|
97
|
+
minItems?: number,
|
|
98
|
+
uniqueItems?: boolean
|
|
99
|
+
}
|
|
100
|
+
} = {
|
|
101
|
+
}
|
|
102
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './EmailSentResponse';
|
|
|
40
40
|
export * from './EmailVerificationRequest';
|
|
41
41
|
export * from './EnrichedCitation';
|
|
42
42
|
export * from './EnrichedThreadMessageContent';
|
|
43
|
+
export * from './FeaturesResponse';
|
|
43
44
|
export * from './FolderAction';
|
|
44
45
|
export * from './FolderActionResponse';
|
|
45
46
|
export * from './FolderResponse';
|