@knowledge-stack/ksapi 1.58.0 → 1.59.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 (50) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +9 -2
  3. package/dist/apis/FoldersApi.d.ts +63 -4
  4. package/dist/apis/FoldersApi.js +64 -3
  5. package/dist/apis/PathPartsApi.d.ts +45 -1
  6. package/dist/apis/PathPartsApi.js +44 -0
  7. package/dist/apis/SectionsApi.d.ts +44 -0
  8. package/dist/apis/SectionsApi.js +43 -0
  9. package/dist/esm/apis/FoldersApi.d.ts +63 -4
  10. package/dist/esm/apis/FoldersApi.js +64 -3
  11. package/dist/esm/apis/PathPartsApi.d.ts +45 -1
  12. package/dist/esm/apis/PathPartsApi.js +45 -1
  13. package/dist/esm/apis/SectionsApi.d.ts +44 -0
  14. package/dist/esm/apis/SectionsApi.js +43 -0
  15. package/dist/esm/models/AncestryResponse.d.ts +48 -0
  16. package/dist/esm/models/AncestryResponse.js +45 -0
  17. package/dist/esm/models/PathPartAncestorItem.d.ts +96 -0
  18. package/dist/esm/models/PathPartAncestorItem.js +77 -0
  19. package/dist/esm/models/SearchSortOrder.d.ts +26 -0
  20. package/dist/esm/models/SearchSortOrder.js +44 -0
  21. package/dist/esm/models/SearchablePartType.d.ts +25 -0
  22. package/dist/esm/models/SearchablePartType.js +43 -0
  23. package/dist/esm/models/index.d.ts +4 -0
  24. package/dist/esm/models/index.js +4 -0
  25. package/dist/models/AncestryResponse.d.ts +48 -0
  26. package/dist/models/AncestryResponse.js +53 -0
  27. package/dist/models/PathPartAncestorItem.d.ts +96 -0
  28. package/dist/models/PathPartAncestorItem.js +85 -0
  29. package/dist/models/SearchSortOrder.d.ts +26 -0
  30. package/dist/models/SearchSortOrder.js +52 -0
  31. package/dist/models/SearchablePartType.d.ts +25 -0
  32. package/dist/models/SearchablePartType.js +51 -0
  33. package/dist/models/index.d.ts +4 -0
  34. package/dist/models/index.js +4 -0
  35. package/docs/AncestryResponse.md +35 -0
  36. package/docs/FoldersApi.md +94 -4
  37. package/docs/PathPartAncestorItem.md +51 -0
  38. package/docs/PathPartsApi.md +75 -0
  39. package/docs/SearchSortOrder.md +33 -0
  40. package/docs/SearchablePartType.md +33 -0
  41. package/docs/SectionsApi.md +75 -0
  42. package/package.json +1 -1
  43. package/src/apis/FoldersApi.ts +136 -7
  44. package/src/apis/PathPartsApi.ts +88 -0
  45. package/src/apis/SectionsApi.ts +81 -0
  46. package/src/models/AncestryResponse.ts +91 -0
  47. package/src/models/PathPartAncestorItem.ts +165 -0
  48. package/src/models/SearchSortOrder.ts +54 -0
  49. package/src/models/SearchablePartType.ts +53 -0
  50. package/src/models/index.ts +4 -0
@@ -0,0 +1,54 @@
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
+ /**
17
+ * Sort order options for search results.
18
+ * @export
19
+ */
20
+ export const SearchSortOrder = {
21
+ Name: 'NAME',
22
+ UpdatedAt: 'UPDATED_AT',
23
+ CreatedAt: 'CREATED_AT'
24
+ } as const;
25
+ export type SearchSortOrder = typeof SearchSortOrder[keyof typeof SearchSortOrder];
26
+
27
+
28
+ export function instanceOfSearchSortOrder(value: any): boolean {
29
+ for (const key in SearchSortOrder) {
30
+ if (Object.prototype.hasOwnProperty.call(SearchSortOrder, key)) {
31
+ if (SearchSortOrder[key as keyof typeof SearchSortOrder] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function SearchSortOrderFromJSON(json: any): SearchSortOrder {
40
+ return SearchSortOrderFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function SearchSortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSortOrder {
44
+ return json as SearchSortOrder;
45
+ }
46
+
47
+ export function SearchSortOrderToJSON(value?: SearchSortOrder | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function SearchSortOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchSortOrder {
52
+ return value as SearchSortOrder;
53
+ }
54
+
@@ -0,0 +1,53 @@
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
+ /**
17
+ * Part types that can be searched.
18
+ * @export
19
+ */
20
+ export const SearchablePartType = {
21
+ Folder: 'FOLDER',
22
+ Document: 'DOCUMENT'
23
+ } as const;
24
+ export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
25
+
26
+
27
+ export function instanceOfSearchablePartType(value: any): boolean {
28
+ for (const key in SearchablePartType) {
29
+ if (Object.prototype.hasOwnProperty.call(SearchablePartType, key)) {
30
+ if (SearchablePartType[key as keyof typeof SearchablePartType] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function SearchablePartTypeFromJSON(json: any): SearchablePartType {
39
+ return SearchablePartTypeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SearchablePartTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchablePartType {
43
+ return json as SearchablePartType;
44
+ }
45
+
46
+ export function SearchablePartTypeToJSON(value?: SearchablePartType | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function SearchablePartTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchablePartType {
51
+ return value as SearchablePartType;
52
+ }
53
+
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AcceptInviteResponse';
4
+ export * from './AncestryResponse';
4
5
  export * from './ApiKeyResponse';
5
6
  export * from './Args';
6
7
  export * from './BrandingLogoType';
@@ -83,6 +84,7 @@ export * from './PartType';
83
84
  export * from './PasswordResetRequest';
84
85
  export * from './PasswordResetWithTokenRequest';
85
86
  export * from './PathOrder';
87
+ export * from './PathPartAncestorItem';
86
88
  export * from './PathPartResponse';
87
89
  export * from './PathPartTagsResponse';
88
90
  export * from './PermissionCapability';
@@ -97,7 +99,9 @@ export * from './ResolvedReferenceOutput';
97
99
  export * from './RootResponse';
98
100
  export * from './SSOInitiateResponse';
99
101
  export * from './ScoredChunkResponse';
102
+ export * from './SearchSortOrder';
100
103
  export * from './SearchType';
104
+ export * from './SearchablePartType';
101
105
  export * from './SectionContentItem';
102
106
  export * from './SectionContentItemOrChunkContentItem';
103
107
  export * from './SectionResponse';