@knowledge-stack/ksapi 1.3.0 → 1.5.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 +8 -0
- package/README.md +2 -2
- package/dist/apis/DocumentsApi.d.ts +179 -0
- package/dist/apis/DocumentsApi.js +206 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DocumentsApi.d.ts +179 -0
- package/dist/esm/apis/DocumentsApi.js +202 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreateDocumentRequest.d.ts +67 -0
- package/dist/esm/models/CreateDocumentRequest.js +63 -0
- package/dist/esm/models/DocumentOrigin.d.ts +25 -0
- package/dist/esm/models/DocumentOrigin.js +43 -0
- package/dist/esm/models/DocumentResponse.d.ts +110 -0
- package/dist/esm/models/DocumentResponse.js +87 -0
- package/dist/esm/models/DocumentType.d.ts +25 -0
- package/dist/esm/models/DocumentType.js +43 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +92 -0
- package/dist/esm/models/DocumentVersionResponse.js +72 -0
- package/dist/esm/models/PaginatedResponseDocumentResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseDocumentResponse.js +70 -0
- package/dist/esm/models/UpdateDocumentRequest.d.ts +59 -0
- package/dist/esm/models/UpdateDocumentRequest.js +51 -0
- package/dist/esm/models/ValidationError.d.ts +12 -0
- package/dist/esm/models/ValidationError.js +4 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/CreateDocumentRequest.d.ts +67 -0
- package/dist/models/CreateDocumentRequest.js +71 -0
- package/dist/models/DocumentOrigin.d.ts +25 -0
- package/dist/models/DocumentOrigin.js +51 -0
- package/dist/models/DocumentResponse.d.ts +110 -0
- package/dist/models/DocumentResponse.js +95 -0
- package/dist/models/DocumentType.d.ts +25 -0
- package/dist/models/DocumentType.js +51 -0
- package/dist/models/DocumentVersionResponse.d.ts +92 -0
- package/dist/models/DocumentVersionResponse.js +80 -0
- package/dist/models/PaginatedResponseDocumentResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseDocumentResponse.js +78 -0
- package/dist/models/UpdateDocumentRequest.d.ts +59 -0
- package/dist/models/UpdateDocumentRequest.js +59 -0
- package/dist/models/ValidationError.d.ts +12 -0
- package/dist/models/ValidationError.js +4 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/DocumentsApi.ts +386 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateDocumentRequest.ts +131 -0
- package/src/models/DocumentOrigin.ts +53 -0
- package/src/models/DocumentResponse.ts +197 -0
- package/src/models/DocumentType.ts +53 -0
- package/src/models/DocumentVersionResponse.ts +149 -0
- package/src/models/PaginatedResponseDocumentResponse.ts +130 -0
- package/src/models/UpdateDocumentRequest.ts +102 -0
- package/src/models/ValidationError.ts +16 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,78 @@
|
|
|
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.PaginatedResponseDocumentResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseDocumentResponse = instanceOfPaginatedResponseDocumentResponse;
|
|
18
|
+
exports.PaginatedResponseDocumentResponseFromJSON = PaginatedResponseDocumentResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseDocumentResponseFromJSONTyped = PaginatedResponseDocumentResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseDocumentResponseToJSON = PaginatedResponseDocumentResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseDocumentResponseToJSONTyped = PaginatedResponseDocumentResponseToJSONTyped;
|
|
22
|
+
const DocumentResponse_1 = require("./DocumentResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseDocumentResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseDocumentResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseDocumentResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseDocumentResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(DocumentResponse_1.DocumentResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseDocumentResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseDocumentResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(DocumentResponse_1.DocumentResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseDocumentResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -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
|
+
/**
|
|
13
|
+
* Request to update a document (rename, move, and/or change active version).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateDocumentRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateDocumentRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New document name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateDocumentRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* New parent folder PathPart ID (for move)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateDocumentRequest
|
|
28
|
+
*/
|
|
29
|
+
parentId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* New active version ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateDocumentRequest
|
|
34
|
+
*/
|
|
35
|
+
activeVersionId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest;
|
|
41
|
+
export declare function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest;
|
|
42
|
+
export declare function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest;
|
|
43
|
+
export declare function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest;
|
|
44
|
+
export declare function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
export declare const UpdateDocumentRequestPropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
minLength?: number;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
maximum?: number;
|
|
51
|
+
exclusiveMaximum?: boolean;
|
|
52
|
+
minimum?: number;
|
|
53
|
+
exclusiveMinimum?: boolean;
|
|
54
|
+
multipleOf?: number;
|
|
55
|
+
maxItems?: number;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
uniqueItems?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
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.UpdateDocumentRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateDocumentRequest = instanceOfUpdateDocumentRequest;
|
|
18
|
+
exports.UpdateDocumentRequestFromJSON = UpdateDocumentRequestFromJSON;
|
|
19
|
+
exports.UpdateDocumentRequestFromJSONTyped = UpdateDocumentRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateDocumentRequestToJSON = UpdateDocumentRequestToJSON;
|
|
21
|
+
exports.UpdateDocumentRequestToJSONTyped = UpdateDocumentRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateDocumentRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UpdateDocumentRequestFromJSON(json) {
|
|
29
|
+
return UpdateDocumentRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
38
|
+
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateDocumentRequestToJSON(json) {
|
|
42
|
+
return UpdateDocumentRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'parent_id': value['parentId'],
|
|
51
|
+
'active_version_id': value['activeVersionId'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateDocumentRequestPropertyValidationAttributesMap = {
|
|
55
|
+
name: {
|
|
56
|
+
maxLength: 255,
|
|
57
|
+
minLength: 1,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -34,6 +34,18 @@ export interface ValidationError {
|
|
|
34
34
|
* @memberof ValidationError
|
|
35
35
|
*/
|
|
36
36
|
type: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {any}
|
|
40
|
+
* @memberof ValidationError
|
|
41
|
+
*/
|
|
42
|
+
input?: any | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {object}
|
|
46
|
+
* @memberof ValidationError
|
|
47
|
+
*/
|
|
48
|
+
ctx?: object;
|
|
37
49
|
}
|
|
38
50
|
/**
|
|
39
51
|
* Check if a given object implements the ValidationError interface.
|
|
@@ -43,6 +43,8 @@ function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'loc': (json['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerFromJSON)),
|
|
44
44
|
'msg': json['msg'],
|
|
45
45
|
'type': json['type'],
|
|
46
|
+
'input': json['input'] == null ? undefined : json['input'],
|
|
47
|
+
'ctx': json['ctx'] == null ? undefined : json['ctx'],
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
function ValidationErrorToJSON(json) {
|
|
@@ -56,6 +58,8 @@ function ValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
58
|
'loc': (value['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerToJSON)),
|
|
57
59
|
'msg': value['msg'],
|
|
58
60
|
'type': value['type'],
|
|
61
|
+
'input': value['input'],
|
|
62
|
+
'ctx': value['ctx'],
|
|
59
63
|
};
|
|
60
64
|
}
|
|
61
65
|
exports.ValidationErrorPropertyValidationAttributesMap = {};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
export * from './CreateDocumentRequest';
|
|
1
2
|
export * from './CreateFolderRequest';
|
|
2
3
|
export * from './CreatePasswordUserRequest';
|
|
3
4
|
export * from './CreateTenantRequest';
|
|
5
|
+
export * from './DocumentOrigin';
|
|
6
|
+
export * from './DocumentResponse';
|
|
7
|
+
export * from './DocumentType';
|
|
8
|
+
export * from './DocumentVersionResponse';
|
|
4
9
|
export * from './EmailSentResponse';
|
|
5
10
|
export * from './EmailVerificationRequest';
|
|
6
11
|
export * from './FolderResponse';
|
|
@@ -11,6 +16,7 @@ export * from './InviteResponse';
|
|
|
11
16
|
export * from './InviteStatus';
|
|
12
17
|
export * from './InviteUserRequest';
|
|
13
18
|
export * from './OAuth2Config';
|
|
19
|
+
export * from './PaginatedResponseDocumentResponse';
|
|
14
20
|
export * from './PaginatedResponseFolderResponse';
|
|
15
21
|
export * from './PaginatedResponseInviteResponse';
|
|
16
22
|
export * from './PaginatedResponsePathPartResponse';
|
|
@@ -26,6 +32,7 @@ export * from './SignInRequest';
|
|
|
26
32
|
export * from './TenantResponse';
|
|
27
33
|
export * from './TenantUserInTenantResponse';
|
|
28
34
|
export * from './TenantUserRole';
|
|
35
|
+
export * from './UpdateDocumentRequest';
|
|
29
36
|
export * from './UpdateFolderRequest';
|
|
30
37
|
export * from './UpdateTenantRequest';
|
|
31
38
|
export * from './UpdateUserRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -16,9 +16,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./CreateDocumentRequest"), exports);
|
|
19
20
|
__exportStar(require("./CreateFolderRequest"), exports);
|
|
20
21
|
__exportStar(require("./CreatePasswordUserRequest"), exports);
|
|
21
22
|
__exportStar(require("./CreateTenantRequest"), exports);
|
|
23
|
+
__exportStar(require("./DocumentOrigin"), exports);
|
|
24
|
+
__exportStar(require("./DocumentResponse"), exports);
|
|
25
|
+
__exportStar(require("./DocumentType"), exports);
|
|
26
|
+
__exportStar(require("./DocumentVersionResponse"), exports);
|
|
22
27
|
__exportStar(require("./EmailSentResponse"), exports);
|
|
23
28
|
__exportStar(require("./EmailVerificationRequest"), exports);
|
|
24
29
|
__exportStar(require("./FolderResponse"), exports);
|
|
@@ -29,6 +34,7 @@ __exportStar(require("./InviteResponse"), exports);
|
|
|
29
34
|
__exportStar(require("./InviteStatus"), exports);
|
|
30
35
|
__exportStar(require("./InviteUserRequest"), exports);
|
|
31
36
|
__exportStar(require("./OAuth2Config"), exports);
|
|
37
|
+
__exportStar(require("./PaginatedResponseDocumentResponse"), exports);
|
|
32
38
|
__exportStar(require("./PaginatedResponseFolderResponse"), exports);
|
|
33
39
|
__exportStar(require("./PaginatedResponseInviteResponse"), exports);
|
|
34
40
|
__exportStar(require("./PaginatedResponsePathPartResponse"), exports);
|
|
@@ -44,6 +50,7 @@ __exportStar(require("./SignInRequest"), exports);
|
|
|
44
50
|
__exportStar(require("./TenantResponse"), exports);
|
|
45
51
|
__exportStar(require("./TenantUserInTenantResponse"), exports);
|
|
46
52
|
__exportStar(require("./TenantUserRole"), exports);
|
|
53
|
+
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
47
54
|
__exportStar(require("./UpdateFolderRequest"), exports);
|
|
48
55
|
__exportStar(require("./UpdateTenantRequest"), exports);
|
|
49
56
|
__exportStar(require("./UpdateUserRequest"), exports);
|