@knowledge-stack/ksapi 1.9.0 → 1.10.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.
Files changed (63) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ThreadMessagesApi.d.ts +123 -0
  4. package/dist/apis/ThreadMessagesApi.js +147 -0
  5. package/dist/apis/ThreadsApi.d.ts +177 -0
  6. package/dist/apis/ThreadsApi.js +203 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/esm/apis/ThreadMessagesApi.d.ts +123 -0
  10. package/dist/esm/apis/ThreadMessagesApi.js +143 -0
  11. package/dist/esm/apis/ThreadsApi.d.ts +177 -0
  12. package/dist/esm/apis/ThreadsApi.js +199 -0
  13. package/dist/esm/apis/index.d.ts +2 -0
  14. package/dist/esm/apis/index.js +2 -0
  15. package/dist/esm/models/CreateThreadMessageRequest.d.ts +58 -0
  16. package/dist/esm/models/CreateThreadMessageRequest.js +50 -0
  17. package/dist/esm/models/CreateThreadRequest.d.ts +53 -0
  18. package/dist/esm/models/CreateThreadRequest.js +49 -0
  19. package/dist/esm/models/MessageRole.d.ts +26 -0
  20. package/dist/esm/models/MessageRole.js +44 -0
  21. package/dist/esm/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
  22. package/dist/esm/models/PaginatedResponseThreadMessageResponse.js +70 -0
  23. package/dist/esm/models/PaginatedResponseThreadResponse.d.ts +66 -0
  24. package/dist/esm/models/PaginatedResponseThreadResponse.js +70 -0
  25. package/dist/esm/models/ThreadMessageResponse.d.ts +100 -0
  26. package/dist/esm/models/ThreadMessageResponse.js +78 -0
  27. package/dist/esm/models/ThreadResponse.d.ts +83 -0
  28. package/dist/esm/models/ThreadResponse.js +66 -0
  29. package/dist/esm/models/UpdateThreadRequest.d.ts +53 -0
  30. package/dist/esm/models/UpdateThreadRequest.js +49 -0
  31. package/dist/esm/models/index.d.ts +8 -0
  32. package/dist/esm/models/index.js +8 -0
  33. package/dist/models/CreateThreadMessageRequest.d.ts +58 -0
  34. package/dist/models/CreateThreadMessageRequest.js +58 -0
  35. package/dist/models/CreateThreadRequest.d.ts +53 -0
  36. package/dist/models/CreateThreadRequest.js +57 -0
  37. package/dist/models/MessageRole.d.ts +26 -0
  38. package/dist/models/MessageRole.js +52 -0
  39. package/dist/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
  40. package/dist/models/PaginatedResponseThreadMessageResponse.js +78 -0
  41. package/dist/models/PaginatedResponseThreadResponse.d.ts +66 -0
  42. package/dist/models/PaginatedResponseThreadResponse.js +78 -0
  43. package/dist/models/ThreadMessageResponse.d.ts +100 -0
  44. package/dist/models/ThreadMessageResponse.js +86 -0
  45. package/dist/models/ThreadResponse.d.ts +83 -0
  46. package/dist/models/ThreadResponse.js +74 -0
  47. package/dist/models/UpdateThreadRequest.d.ts +53 -0
  48. package/dist/models/UpdateThreadRequest.js +57 -0
  49. package/dist/models/index.d.ts +8 -0
  50. package/dist/models/index.js +8 -0
  51. package/package.json +1 -1
  52. package/src/apis/ThreadMessagesApi.ts +271 -0
  53. package/src/apis/ThreadsApi.ts +377 -0
  54. package/src/apis/index.ts +2 -0
  55. package/src/models/CreateThreadMessageRequest.ts +105 -0
  56. package/src/models/CreateThreadRequest.ts +94 -0
  57. package/src/models/MessageRole.ts +54 -0
  58. package/src/models/PaginatedResponseThreadMessageResponse.ts +130 -0
  59. package/src/models/PaginatedResponseThreadResponse.ts +130 -0
  60. package/src/models/ThreadMessageResponse.ts +168 -0
  61. package/src/models/ThreadResponse.ts +136 -0
  62. package/src/models/UpdateThreadRequest.ts +94 -0
  63. package/src/models/index.ts +8 -0
@@ -0,0 +1,58 @@
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 { MessageRole } from './MessageRole';
13
+ /**
14
+ * Request to create a new thread message.
15
+ * @export
16
+ * @interface CreateThreadMessageRequest
17
+ */
18
+ export interface CreateThreadMessageRequest {
19
+ /**
20
+ * Role of the message author (USER, ASSISTANT, SYSTEM)
21
+ * @type {MessageRole}
22
+ * @memberof CreateThreadMessageRequest
23
+ */
24
+ role: MessageRole;
25
+ /**
26
+ * Structured message content (JSONB)
27
+ * @type {object}
28
+ * @memberof CreateThreadMessageRequest
29
+ */
30
+ content: object;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CreateThreadMessageRequest interface.
34
+ */
35
+ export declare function instanceOfCreateThreadMessageRequest(value: object): value is CreateThreadMessageRequest;
36
+ export declare function CreateThreadMessageRequestFromJSON(json: any): CreateThreadMessageRequest;
37
+ export declare function CreateThreadMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateThreadMessageRequest;
38
+ export declare function CreateThreadMessageRequestToJSON(json: any): CreateThreadMessageRequest;
39
+ export declare function CreateThreadMessageRequestToJSONTyped(value?: CreateThreadMessageRequest | null, ignoreDiscriminator?: boolean): any;
40
+ export declare const CreateThreadMessageRequestPropertyValidationAttributesMap: {
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
+ };
55
+ export declare const CreateThreadMessageRequestAdditionalPropertiesValidationAttributes: {
56
+ maxProperties?: number;
57
+ minProperties?: number;
58
+ };
@@ -0,0 +1,58 @@
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.CreateThreadMessageRequestAdditionalPropertiesValidationAttributes = exports.CreateThreadMessageRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateThreadMessageRequest = instanceOfCreateThreadMessageRequest;
18
+ exports.CreateThreadMessageRequestFromJSON = CreateThreadMessageRequestFromJSON;
19
+ exports.CreateThreadMessageRequestFromJSONTyped = CreateThreadMessageRequestFromJSONTyped;
20
+ exports.CreateThreadMessageRequestToJSON = CreateThreadMessageRequestToJSON;
21
+ exports.CreateThreadMessageRequestToJSONTyped = CreateThreadMessageRequestToJSONTyped;
22
+ const MessageRole_1 = require("./MessageRole");
23
+ /**
24
+ * Check if a given object implements the CreateThreadMessageRequest interface.
25
+ */
26
+ function instanceOfCreateThreadMessageRequest(value) {
27
+ if (!('role' in value) || value['role'] === undefined)
28
+ return false;
29
+ if (!('content' in value) || value['content'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function CreateThreadMessageRequestFromJSON(json) {
34
+ return CreateThreadMessageRequestFromJSONTyped(json, false);
35
+ }
36
+ function CreateThreadMessageRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
42
+ 'content': json['content'],
43
+ };
44
+ }
45
+ function CreateThreadMessageRequestToJSON(json) {
46
+ return CreateThreadMessageRequestToJSONTyped(json, false);
47
+ }
48
+ function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
54
+ 'content': value['content'],
55
+ };
56
+ }
57
+ exports.CreateThreadMessageRequestPropertyValidationAttributesMap = {};
58
+ exports.CreateThreadMessageRequestAdditionalPropertiesValidationAttributes = {};
@@ -0,0 +1,53 @@
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 create a new thread.
14
+ * @export
15
+ * @interface CreateThreadRequest
16
+ */
17
+ export interface CreateThreadRequest {
18
+ /**
19
+ * Parent PathPart ID. When omitted, auto-provisions and uses the user's /users/{user_id}/threads/ folder.
20
+ * @type {string}
21
+ * @memberof CreateThreadRequest
22
+ */
23
+ parentPathPartId?: string;
24
+ /**
25
+ * Thread title
26
+ * @type {string}
27
+ * @memberof CreateThreadRequest
28
+ */
29
+ title?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateThreadRequest interface.
33
+ */
34
+ export declare function instanceOfCreateThreadRequest(value: object): value is CreateThreadRequest;
35
+ export declare function CreateThreadRequestFromJSON(json: any): CreateThreadRequest;
36
+ export declare function CreateThreadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateThreadRequest;
37
+ export declare function CreateThreadRequestToJSON(json: any): CreateThreadRequest;
38
+ export declare function CreateThreadRequestToJSONTyped(value?: CreateThreadRequest | null, ignoreDiscriminator?: boolean): any;
39
+ export declare const CreateThreadRequestPropertyValidationAttributesMap: {
40
+ [property: string]: {
41
+ maxLength?: number;
42
+ minLength?: number;
43
+ pattern?: string;
44
+ maximum?: number;
45
+ exclusiveMaximum?: boolean;
46
+ minimum?: number;
47
+ exclusiveMinimum?: boolean;
48
+ multipleOf?: number;
49
+ maxItems?: number;
50
+ minItems?: number;
51
+ uniqueItems?: boolean;
52
+ };
53
+ };
@@ -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.CreateThreadRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateThreadRequest = instanceOfCreateThreadRequest;
18
+ exports.CreateThreadRequestFromJSON = CreateThreadRequestFromJSON;
19
+ exports.CreateThreadRequestFromJSONTyped = CreateThreadRequestFromJSONTyped;
20
+ exports.CreateThreadRequestToJSON = CreateThreadRequestToJSON;
21
+ exports.CreateThreadRequestToJSONTyped = CreateThreadRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the CreateThreadRequest interface.
24
+ */
25
+ function instanceOfCreateThreadRequest(value) {
26
+ return true;
27
+ }
28
+ function CreateThreadRequestFromJSON(json) {
29
+ return CreateThreadRequestFromJSONTyped(json, false);
30
+ }
31
+ function CreateThreadRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
37
+ 'title': json['title'] == null ? undefined : json['title'],
38
+ };
39
+ }
40
+ function CreateThreadRequestToJSON(json) {
41
+ return CreateThreadRequestToJSONTyped(json, false);
42
+ }
43
+ function CreateThreadRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'parent_path_part_id': value['parentPathPartId'],
49
+ 'title': value['title'],
50
+ };
51
+ }
52
+ exports.CreateThreadRequestPropertyValidationAttributesMap = {
53
+ title: {
54
+ maxLength: 255,
55
+ minLength: 1,
56
+ },
57
+ };
@@ -0,0 +1,26 @@
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
+ * Role of message author in thread.
14
+ * @export
15
+ */
16
+ export declare const MessageRole: {
17
+ readonly User: "USER";
18
+ readonly Assistant: "ASSISTANT";
19
+ readonly System: "SYSTEM";
20
+ };
21
+ export type MessageRole = typeof MessageRole[keyof typeof MessageRole];
22
+ export declare function instanceOfMessageRole(value: any): boolean;
23
+ export declare function MessageRoleFromJSON(json: any): MessageRole;
24
+ export declare function MessageRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageRole;
25
+ export declare function MessageRoleToJSON(value?: MessageRole | null): any;
26
+ export declare function MessageRoleToJSONTyped(value: any, ignoreDiscriminator: boolean): MessageRole;
@@ -0,0 +1,52 @@
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.MessageRole = void 0;
17
+ exports.instanceOfMessageRole = instanceOfMessageRole;
18
+ exports.MessageRoleFromJSON = MessageRoleFromJSON;
19
+ exports.MessageRoleFromJSONTyped = MessageRoleFromJSONTyped;
20
+ exports.MessageRoleToJSON = MessageRoleToJSON;
21
+ exports.MessageRoleToJSONTyped = MessageRoleToJSONTyped;
22
+ /**
23
+ * Role of message author in thread.
24
+ * @export
25
+ */
26
+ exports.MessageRole = {
27
+ User: 'USER',
28
+ Assistant: 'ASSISTANT',
29
+ System: 'SYSTEM'
30
+ };
31
+ function instanceOfMessageRole(value) {
32
+ for (const key in exports.MessageRole) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.MessageRole, key)) {
34
+ if (exports.MessageRole[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function MessageRoleFromJSON(json) {
42
+ return MessageRoleFromJSONTyped(json, false);
43
+ }
44
+ function MessageRoleFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function MessageRoleToJSON(value) {
48
+ return value;
49
+ }
50
+ function MessageRoleToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,66 @@
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 { ThreadMessageResponse } from './ThreadMessageResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseThreadMessageResponse
17
+ */
18
+ export interface PaginatedResponseThreadMessageResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<ThreadMessageResponse>}
22
+ * @memberof PaginatedResponseThreadMessageResponse
23
+ */
24
+ items: Array<ThreadMessageResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseThreadMessageResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseThreadMessageResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseThreadMessageResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseThreadMessageResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseThreadMessageResponse(value: object): value is PaginatedResponseThreadMessageResponse;
48
+ export declare function PaginatedResponseThreadMessageResponseFromJSON(json: any): PaginatedResponseThreadMessageResponse;
49
+ export declare function PaginatedResponseThreadMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseThreadMessageResponse;
50
+ export declare function PaginatedResponseThreadMessageResponseToJSON(json: any): PaginatedResponseThreadMessageResponse;
51
+ export declare function PaginatedResponseThreadMessageResponseToJSONTyped(value?: PaginatedResponseThreadMessageResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseThreadMessageResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -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.PaginatedResponseThreadMessageResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponseThreadMessageResponse = instanceOfPaginatedResponseThreadMessageResponse;
18
+ exports.PaginatedResponseThreadMessageResponseFromJSON = PaginatedResponseThreadMessageResponseFromJSON;
19
+ exports.PaginatedResponseThreadMessageResponseFromJSONTyped = PaginatedResponseThreadMessageResponseFromJSONTyped;
20
+ exports.PaginatedResponseThreadMessageResponseToJSON = PaginatedResponseThreadMessageResponseToJSON;
21
+ exports.PaginatedResponseThreadMessageResponseToJSONTyped = PaginatedResponseThreadMessageResponseToJSONTyped;
22
+ const ThreadMessageResponse_1 = require("./ThreadMessageResponse");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponseThreadMessageResponse interface.
25
+ */
26
+ function instanceOfPaginatedResponseThreadMessageResponse(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 PaginatedResponseThreadMessageResponseFromJSON(json) {
38
+ return PaginatedResponseThreadMessageResponseFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponseThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(ThreadMessageResponse_1.ThreadMessageResponseFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponseThreadMessageResponseToJSON(json) {
52
+ return PaginatedResponseThreadMessageResponseToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponseThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(ThreadMessageResponse_1.ThreadMessageResponseToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponseThreadMessageResponsePropertyValidationAttributesMap = {
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,66 @@
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 { ThreadResponse } from './ThreadResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseThreadResponse
17
+ */
18
+ export interface PaginatedResponseThreadResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<ThreadResponse>}
22
+ * @memberof PaginatedResponseThreadResponse
23
+ */
24
+ items: Array<ThreadResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseThreadResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseThreadResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseThreadResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseThreadResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseThreadResponse(value: object): value is PaginatedResponseThreadResponse;
48
+ export declare function PaginatedResponseThreadResponseFromJSON(json: any): PaginatedResponseThreadResponse;
49
+ export declare function PaginatedResponseThreadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseThreadResponse;
50
+ export declare function PaginatedResponseThreadResponseToJSON(json: any): PaginatedResponseThreadResponse;
51
+ export declare function PaginatedResponseThreadResponseToJSONTyped(value?: PaginatedResponseThreadResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseThreadResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -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.PaginatedResponseThreadResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponseThreadResponse = instanceOfPaginatedResponseThreadResponse;
18
+ exports.PaginatedResponseThreadResponseFromJSON = PaginatedResponseThreadResponseFromJSON;
19
+ exports.PaginatedResponseThreadResponseFromJSONTyped = PaginatedResponseThreadResponseFromJSONTyped;
20
+ exports.PaginatedResponseThreadResponseToJSON = PaginatedResponseThreadResponseToJSON;
21
+ exports.PaginatedResponseThreadResponseToJSONTyped = PaginatedResponseThreadResponseToJSONTyped;
22
+ const ThreadResponse_1 = require("./ThreadResponse");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponseThreadResponse interface.
25
+ */
26
+ function instanceOfPaginatedResponseThreadResponse(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 PaginatedResponseThreadResponseFromJSON(json) {
38
+ return PaginatedResponseThreadResponseFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponseThreadResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(ThreadResponse_1.ThreadResponseFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponseThreadResponseToJSON(json) {
52
+ return PaginatedResponseThreadResponseToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponseThreadResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(ThreadResponse_1.ThreadResponseToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponseThreadResponsePropertyValidationAttributesMap = {
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
+ };