@knowledge-stack/ksapi 1.12.0 → 1.14.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 (123) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ChunksApi.d.ts +30 -1
  4. package/dist/apis/ChunksApi.js +34 -1
  5. package/dist/apis/TagsApi.d.ts +20 -20
  6. package/dist/apis/TagsApi.js +10 -10
  7. package/dist/apis/ThreadsApi.d.ts +4 -4
  8. package/dist/apis/ThreadsApi.js +2 -2
  9. package/dist/apis/UserPermissionsApi.d.ts +154 -0
  10. package/dist/apis/UserPermissionsApi.js +192 -0
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/esm/apis/ChunksApi.d.ts +30 -1
  14. package/dist/esm/apis/ChunksApi.js +35 -2
  15. package/dist/esm/apis/TagsApi.d.ts +20 -20
  16. package/dist/esm/apis/TagsApi.js +10 -10
  17. package/dist/esm/apis/ThreadsApi.d.ts +4 -4
  18. package/dist/esm/apis/ThreadsApi.js +2 -2
  19. package/dist/esm/apis/UserPermissionsApi.d.ts +154 -0
  20. package/dist/esm/apis/UserPermissionsApi.js +188 -0
  21. package/dist/esm/apis/index.d.ts +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/models/ChunkResponse.d.ts +6 -0
  24. package/dist/esm/models/ChunkResponse.js +4 -0
  25. package/dist/esm/models/ChunkSearchRequest.d.ts +89 -0
  26. package/dist/esm/models/ChunkSearchRequest.js +69 -0
  27. package/dist/esm/models/CreatePermissionRequest.d.ts +66 -0
  28. package/dist/esm/models/CreatePermissionRequest.js +57 -0
  29. package/dist/esm/models/DocumentContentPathPart.d.ts +6 -0
  30. package/dist/esm/models/DocumentContentPathPart.js +4 -0
  31. package/dist/esm/models/DocumentResponse.d.ts +6 -0
  32. package/dist/esm/models/DocumentResponse.js +4 -0
  33. package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
  34. package/dist/esm/models/DocumentVersionResponse.js +4 -0
  35. package/dist/esm/models/EmbeddingModel.d.ts +24 -0
  36. package/dist/esm/models/EmbeddingModel.js +42 -0
  37. package/dist/esm/models/FolderDocumentResponse.d.ts +6 -0
  38. package/dist/esm/models/FolderDocumentResponse.js +4 -0
  39. package/dist/esm/models/FolderResponse.d.ts +6 -0
  40. package/dist/esm/models/FolderResponse.js +4 -0
  41. package/dist/esm/models/PaginatedResponsePermissionResponse.d.ts +66 -0
  42. package/dist/esm/models/PaginatedResponsePermissionResponse.js +70 -0
  43. package/dist/esm/models/PathPartResponse.d.ts +6 -0
  44. package/dist/esm/models/PathPartResponse.js +4 -0
  45. package/dist/esm/models/PermissionCapability.d.ts +25 -0
  46. package/dist/esm/models/PermissionCapability.js +43 -0
  47. package/dist/esm/models/PermissionResponse.d.ts +84 -0
  48. package/dist/esm/models/PermissionResponse.js +69 -0
  49. package/dist/esm/models/ScoredChunkResponse.d.ts +127 -0
  50. package/dist/esm/models/ScoredChunkResponse.js +94 -0
  51. package/dist/esm/models/SectionResponse.d.ts +6 -0
  52. package/dist/esm/models/SectionResponse.js +4 -0
  53. package/dist/esm/models/ThreadMessageResponse.d.ts +6 -0
  54. package/dist/esm/models/ThreadMessageResponse.js +4 -0
  55. package/dist/esm/models/ThreadResponse.d.ts +6 -0
  56. package/dist/esm/models/ThreadResponse.js +4 -0
  57. package/dist/esm/models/UpdatePermissionRequest.d.ts +54 -0
  58. package/dist/esm/models/UpdatePermissionRequest.js +45 -0
  59. package/dist/esm/models/index.d.ts +8 -0
  60. package/dist/esm/models/index.js +8 -0
  61. package/dist/models/ChunkResponse.d.ts +6 -0
  62. package/dist/models/ChunkResponse.js +4 -0
  63. package/dist/models/ChunkSearchRequest.d.ts +89 -0
  64. package/dist/models/ChunkSearchRequest.js +77 -0
  65. package/dist/models/CreatePermissionRequest.d.ts +66 -0
  66. package/dist/models/CreatePermissionRequest.js +65 -0
  67. package/dist/models/DocumentContentPathPart.d.ts +6 -0
  68. package/dist/models/DocumentContentPathPart.js +4 -0
  69. package/dist/models/DocumentResponse.d.ts +6 -0
  70. package/dist/models/DocumentResponse.js +4 -0
  71. package/dist/models/DocumentVersionResponse.d.ts +6 -0
  72. package/dist/models/DocumentVersionResponse.js +4 -0
  73. package/dist/models/EmbeddingModel.d.ts +24 -0
  74. package/dist/models/EmbeddingModel.js +50 -0
  75. package/dist/models/FolderDocumentResponse.d.ts +6 -0
  76. package/dist/models/FolderDocumentResponse.js +4 -0
  77. package/dist/models/FolderResponse.d.ts +6 -0
  78. package/dist/models/FolderResponse.js +4 -0
  79. package/dist/models/PaginatedResponsePermissionResponse.d.ts +66 -0
  80. package/dist/models/PaginatedResponsePermissionResponse.js +78 -0
  81. package/dist/models/PathPartResponse.d.ts +6 -0
  82. package/dist/models/PathPartResponse.js +4 -0
  83. package/dist/models/PermissionCapability.d.ts +25 -0
  84. package/dist/models/PermissionCapability.js +51 -0
  85. package/dist/models/PermissionResponse.d.ts +84 -0
  86. package/dist/models/PermissionResponse.js +77 -0
  87. package/dist/models/ScoredChunkResponse.d.ts +127 -0
  88. package/dist/models/ScoredChunkResponse.js +102 -0
  89. package/dist/models/SectionResponse.d.ts +6 -0
  90. package/dist/models/SectionResponse.js +4 -0
  91. package/dist/models/ThreadMessageResponse.d.ts +6 -0
  92. package/dist/models/ThreadMessageResponse.js +4 -0
  93. package/dist/models/ThreadResponse.d.ts +6 -0
  94. package/dist/models/ThreadResponse.js +4 -0
  95. package/dist/models/UpdatePermissionRequest.d.ts +54 -0
  96. package/dist/models/UpdatePermissionRequest.js +53 -0
  97. package/dist/models/index.d.ts +8 -0
  98. package/dist/models/index.js +8 -0
  99. package/package.json +1 -1
  100. package/src/apis/ChunksApi.ts +70 -1
  101. package/src/apis/TagsApi.ts +20 -20
  102. package/src/apis/ThreadsApi.ts +4 -4
  103. package/src/apis/UserPermissionsApi.ts +362 -0
  104. package/src/apis/index.ts +1 -0
  105. package/src/models/ChunkResponse.ts +9 -0
  106. package/src/models/ChunkSearchRequest.ts +160 -0
  107. package/src/models/CreatePermissionRequest.ts +120 -0
  108. package/src/models/DocumentContentPathPart.ts +9 -0
  109. package/src/models/DocumentResponse.ts +9 -0
  110. package/src/models/DocumentVersionResponse.ts +9 -0
  111. package/src/models/EmbeddingModel.ts +52 -0
  112. package/src/models/FolderDocumentResponse.ts +9 -0
  113. package/src/models/FolderResponse.ts +9 -0
  114. package/src/models/PaginatedResponsePermissionResponse.ts +130 -0
  115. package/src/models/PathPartResponse.ts +9 -0
  116. package/src/models/PermissionCapability.ts +53 -0
  117. package/src/models/PermissionResponse.ts +147 -0
  118. package/src/models/ScoredChunkResponse.ts +215 -0
  119. package/src/models/SectionResponse.ts +9 -0
  120. package/src/models/ThreadMessageResponse.ts +9 -0
  121. package/src/models/ThreadResponse.ts +9 -0
  122. package/src/models/UpdatePermissionRequest.ts +100 -0
  123. package/src/models/index.ts +8 -0
@@ -0,0 +1,215 @@
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 { ChunkMetadataOutput } from './ChunkMetadataOutput';
17
+ import {
18
+ ChunkMetadataOutputFromJSON,
19
+ ChunkMetadataOutputFromJSONTyped,
20
+ ChunkMetadataOutputToJSON,
21
+ ChunkMetadataOutputToJSONTyped,
22
+ } from './ChunkMetadataOutput';
23
+ import type { ChunkType } from './ChunkType';
24
+ import {
25
+ ChunkTypeFromJSON,
26
+ ChunkTypeFromJSONTyped,
27
+ ChunkTypeToJSON,
28
+ ChunkTypeToJSONTyped,
29
+ } from './ChunkType';
30
+
31
+ /**
32
+ * Chunk response with similarity score.
33
+ * @export
34
+ * @interface ScoredChunkResponse
35
+ */
36
+ export interface ScoredChunkResponse {
37
+ /**
38
+ * Chunk ID
39
+ * @type {string}
40
+ * @memberof ScoredChunkResponse
41
+ */
42
+ id: string;
43
+ /**
44
+ * PathPart ID
45
+ * @type {string}
46
+ * @memberof ScoredChunkResponse
47
+ */
48
+ pathPartId: string;
49
+ /**
50
+ * ChunkContent ID
51
+ * @type {string}
52
+ * @memberof ScoredChunkResponse
53
+ */
54
+ contentId: string;
55
+ /**
56
+ * Chunk text content
57
+ * @type {string}
58
+ * @memberof ScoredChunkResponse
59
+ */
60
+ content: string;
61
+ /**
62
+ * Type of chunk content
63
+ * @type {ChunkType}
64
+ * @memberof ScoredChunkResponse
65
+ */
66
+ chunkType: ChunkType;
67
+ /**
68
+ * Chunk metadata
69
+ * @type {ChunkMetadataOutput}
70
+ * @memberof ScoredChunkResponse
71
+ */
72
+ chunkMetadata: ChunkMetadataOutput;
73
+ /**
74
+ * Parent PathPart ID
75
+ * @type {string}
76
+ * @memberof ScoredChunkResponse
77
+ */
78
+ parentId: string;
79
+ /**
80
+ * Previous sibling PathPart ID
81
+ * @type {string}
82
+ * @memberof ScoredChunkResponse
83
+ */
84
+ prevSiblingPathId?: string;
85
+ /**
86
+ * Next sibling PathPart ID
87
+ * @type {string}
88
+ * @memberof ScoredChunkResponse
89
+ */
90
+ nextSiblingId?: string;
91
+ /**
92
+ * Full materialized path from root
93
+ * @type {string}
94
+ * @memberof ScoredChunkResponse
95
+ */
96
+ materializedPath: string;
97
+ /**
98
+ * Tenant ID
99
+ * @type {string}
100
+ * @memberof ScoredChunkResponse
101
+ */
102
+ tenantId: string;
103
+ /**
104
+ * Creation timestamp
105
+ * @type {Date}
106
+ * @memberof ScoredChunkResponse
107
+ */
108
+ createdAt: Date;
109
+ /**
110
+ * Last update timestamp
111
+ * @type {Date}
112
+ * @memberof ScoredChunkResponse
113
+ */
114
+ updatedAt: Date;
115
+ /**
116
+ * Cosine similarity score (1 - cosine_distance)
117
+ * @type {number}
118
+ * @memberof ScoredChunkResponse
119
+ */
120
+ score: number;
121
+ }
122
+
123
+
124
+
125
+ /**
126
+ * Check if a given object implements the ScoredChunkResponse interface.
127
+ */
128
+ export function instanceOfScoredChunkResponse(value: object): value is ScoredChunkResponse {
129
+ if (!('id' in value) || value['id'] === undefined) return false;
130
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
131
+ if (!('contentId' in value) || value['contentId'] === undefined) return false;
132
+ if (!('content' in value) || value['content'] === undefined) return false;
133
+ if (!('chunkType' in value) || value['chunkType'] === undefined) return false;
134
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
135
+ if (!('parentId' in value) || value['parentId'] === undefined) return false;
136
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
137
+ if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
138
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
139
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
140
+ if (!('score' in value) || value['score'] === undefined) return false;
141
+ return true;
142
+ }
143
+
144
+ export function ScoredChunkResponseFromJSON(json: any): ScoredChunkResponse {
145
+ return ScoredChunkResponseFromJSONTyped(json, false);
146
+ }
147
+
148
+ export function ScoredChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoredChunkResponse {
149
+ if (json == null) {
150
+ return json;
151
+ }
152
+ return {
153
+
154
+ 'id': json['id'],
155
+ 'pathPartId': json['path_part_id'],
156
+ 'contentId': json['content_id'],
157
+ 'content': json['content'],
158
+ 'chunkType': ChunkTypeFromJSON(json['chunk_type']),
159
+ 'chunkMetadata': ChunkMetadataOutputFromJSON(json['chunk_metadata']),
160
+ 'parentId': json['parent_id'],
161
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
162
+ 'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
163
+ 'materializedPath': json['materialized_path'],
164
+ 'tenantId': json['tenant_id'],
165
+ 'createdAt': (new Date(json['created_at'])),
166
+ 'updatedAt': (new Date(json['updated_at'])),
167
+ 'score': json['score'],
168
+ };
169
+ }
170
+
171
+ export function ScoredChunkResponseToJSON(json: any): ScoredChunkResponse {
172
+ return ScoredChunkResponseToJSONTyped(json, false);
173
+ }
174
+
175
+ export function ScoredChunkResponseToJSONTyped(value?: ScoredChunkResponse | null, ignoreDiscriminator: boolean = false): any {
176
+ if (value == null) {
177
+ return value;
178
+ }
179
+
180
+ return {
181
+
182
+ 'id': value['id'],
183
+ 'path_part_id': value['pathPartId'],
184
+ 'content_id': value['contentId'],
185
+ 'content': value['content'],
186
+ 'chunk_type': ChunkTypeToJSON(value['chunkType']),
187
+ 'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
188
+ 'parent_id': value['parentId'],
189
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
190
+ 'next_sibling_id': value['nextSiblingId'],
191
+ 'materialized_path': value['materializedPath'],
192
+ 'tenant_id': value['tenantId'],
193
+ 'created_at': value['createdAt'].toISOString(),
194
+ 'updated_at': value['updatedAt'].toISOString(),
195
+ 'score': value['score'],
196
+ };
197
+ }
198
+
199
+ export const ScoredChunkResponsePropertyValidationAttributesMap: {
200
+ [property: string]: {
201
+ maxLength?: number,
202
+ minLength?: number,
203
+ pattern?: string,
204
+ maximum?: number,
205
+ exclusiveMaximum?: boolean,
206
+ minimum?: number,
207
+ exclusiveMinimum?: boolean,
208
+ multipleOf?: number,
209
+ maxItems?: number,
210
+ minItems?: number,
211
+ uniqueItems?: boolean
212
+ }
213
+ } = {
214
+ }
215
+
@@ -61,6 +61,12 @@ export interface SectionResponse {
61
61
  * @memberof SectionResponse
62
62
  */
63
63
  nextSiblingId?: string;
64
+ /**
65
+ * Full materialized path from root
66
+ * @type {string}
67
+ * @memberof SectionResponse
68
+ */
69
+ materializedPath: string;
64
70
  /**
65
71
  * Tenant ID
66
72
  * @type {string}
@@ -89,6 +95,7 @@ export function instanceOfSectionResponse(value: object): value is SectionRespon
89
95
  if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
90
96
  if (!('name' in value) || value['name'] === undefined) return false;
91
97
  if (!('parentId' in value) || value['parentId'] === undefined) return false;
98
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
92
99
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
93
100
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
94
101
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -112,6 +119,7 @@ export function SectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
112
119
  'parentId': json['parent_id'],
113
120
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
114
121
  'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
122
+ 'materializedPath': json['materialized_path'],
115
123
  'tenantId': json['tenant_id'],
116
124
  'createdAt': (new Date(json['created_at'])),
117
125
  'updatedAt': (new Date(json['updated_at'])),
@@ -136,6 +144,7 @@ export function SectionResponseToJSONTyped(value?: SectionResponse | null, ignor
136
144
  'parent_id': value['parentId'],
137
145
  'prev_sibling_path_id': value['prevSiblingPathId'],
138
146
  'next_sibling_id': value['nextSiblingId'],
147
+ 'materialized_path': value['materializedPath'],
139
148
  'tenant_id': value['tenantId'],
140
149
  'created_at': value['createdAt'].toISOString(),
141
150
  'updated_at': value['updatedAt'].toISOString(),
@@ -63,6 +63,12 @@ export interface ThreadMessageResponse {
63
63
  * @memberof ThreadMessageResponse
64
64
  */
65
65
  parentId: string;
66
+ /**
67
+ * Full materialized path from root
68
+ * @type {string}
69
+ * @memberof ThreadMessageResponse
70
+ */
71
+ materializedPath: string;
66
72
  /**
67
73
  * Tenant ID
68
74
  * @type {string}
@@ -95,6 +101,7 @@ export function instanceOfThreadMessageResponse(value: object): value is ThreadM
95
101
  if (!('role' in value) || value['role'] === undefined) return false;
96
102
  if (!('content' in value) || value['content'] === undefined) return false;
97
103
  if (!('parentId' in value) || value['parentId'] === undefined) return false;
104
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
98
105
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
99
106
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
100
107
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -117,6 +124,7 @@ export function ThreadMessageResponseFromJSONTyped(json: any, ignoreDiscriminato
117
124
  'role': MessageRoleFromJSON(json['role']),
118
125
  'content': json['content'],
119
126
  'parentId': json['parent_id'],
127
+ 'materializedPath': json['materialized_path'],
120
128
  'tenantId': json['tenant_id'],
121
129
  'createdAt': (new Date(json['created_at'])),
122
130
  'updatedAt': (new Date(json['updated_at'])),
@@ -140,6 +148,7 @@ export function ThreadMessageResponseToJSONTyped(value?: ThreadMessageResponse |
140
148
  'role': MessageRoleToJSON(value['role']),
141
149
  'content': value['content'],
142
150
  'parent_id': value['parentId'],
151
+ 'materialized_path': value['materializedPath'],
143
152
  'tenant_id': value['tenantId'],
144
153
  'created_at': value['createdAt'].toISOString(),
145
154
  'updated_at': value['updatedAt'].toISOString(),
@@ -43,6 +43,12 @@ export interface ThreadResponse {
43
43
  * @memberof ThreadResponse
44
44
  */
45
45
  parentThreadId?: string;
46
+ /**
47
+ * Full materialized path from root
48
+ * @type {string}
49
+ * @memberof ThreadResponse
50
+ */
51
+ materializedPath: string;
46
52
  /**
47
53
  * Tenant ID
48
54
  * @type {string}
@@ -70,6 +76,7 @@ export function instanceOfThreadResponse(value: object): value is ThreadResponse
70
76
  if (!('id' in value) || value['id'] === undefined) return false;
71
77
  if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
72
78
  if (!('title' in value) || value['title'] === undefined) return false;
79
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
73
80
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
74
81
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
75
82
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -90,6 +97,7 @@ export function ThreadResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
90
97
  'pathPartId': json['path_part_id'],
91
98
  'title': json['title'],
92
99
  'parentThreadId': json['parent_thread_id'] == null ? undefined : json['parent_thread_id'],
100
+ 'materializedPath': json['materialized_path'],
93
101
  'tenantId': json['tenant_id'],
94
102
  'createdAt': (new Date(json['created_at'])),
95
103
  'updatedAt': (new Date(json['updated_at'])),
@@ -111,6 +119,7 @@ export function ThreadResponseToJSONTyped(value?: ThreadResponse | null, ignoreD
111
119
  'path_part_id': value['pathPartId'],
112
120
  'title': value['title'],
113
121
  'parent_thread_id': value['parentThreadId'],
122
+ 'materialized_path': value['materializedPath'],
114
123
  'tenant_id': value['tenantId'],
115
124
  'created_at': value['createdAt'].toISOString(),
116
125
  'updated_at': value['updatedAt'].toISOString(),
@@ -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
+ import { mapValues } from '../runtime';
16
+ import type { PermissionCapability } from './PermissionCapability';
17
+ import {
18
+ PermissionCapabilityFromJSON,
19
+ PermissionCapabilityFromJSONTyped,
20
+ PermissionCapabilityToJSON,
21
+ PermissionCapabilityToJSONTyped,
22
+ } from './PermissionCapability';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdatePermissionRequest
28
+ */
29
+ export interface UpdatePermissionRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdatePermissionRequest
34
+ */
35
+ path?: string;
36
+ /**
37
+ *
38
+ * @type {PermissionCapability}
39
+ * @memberof UpdatePermissionRequest
40
+ */
41
+ capability?: PermissionCapability;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the UpdatePermissionRequest interface.
48
+ */
49
+ export function instanceOfUpdatePermissionRequest(value: object): value is UpdatePermissionRequest {
50
+ return true;
51
+ }
52
+
53
+ export function UpdatePermissionRequestFromJSON(json: any): UpdatePermissionRequest {
54
+ return UpdatePermissionRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function UpdatePermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePermissionRequest {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'path': json['path'] == null ? undefined : json['path'],
64
+ 'capability': json['capability'] == null ? undefined : PermissionCapabilityFromJSON(json['capability']),
65
+ };
66
+ }
67
+
68
+ export function UpdatePermissionRequestToJSON(json: any): UpdatePermissionRequest {
69
+ return UpdatePermissionRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function UpdatePermissionRequestToJSONTyped(value?: UpdatePermissionRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'path': value['path'],
80
+ 'capability': PermissionCapabilityToJSON(value['capability']),
81
+ };
82
+ }
83
+
84
+ export const UpdatePermissionRequestPropertyValidationAttributesMap: {
85
+ [property: string]: {
86
+ maxLength?: number,
87
+ minLength?: number,
88
+ pattern?: string,
89
+ maximum?: number,
90
+ exclusiveMaximum?: boolean,
91
+ minimum?: number,
92
+ exclusiveMinimum?: boolean,
93
+ multipleOf?: number,
94
+ maxItems?: number,
95
+ minItems?: number,
96
+ uniqueItems?: boolean
97
+ }
98
+ } = {
99
+ }
100
+
@@ -4,12 +4,14 @@ export * from './ChunkLineageResponse';
4
4
  export * from './ChunkMetadataInput';
5
5
  export * from './ChunkMetadataOutput';
6
6
  export * from './ChunkResponse';
7
+ export * from './ChunkSearchRequest';
7
8
  export * from './ChunkType';
8
9
  export * from './CreateChunkLineageRequest';
9
10
  export * from './CreateChunkRequest';
10
11
  export * from './CreateDocumentRequest';
11
12
  export * from './CreateFolderRequest';
12
13
  export * from './CreatePasswordUserRequest';
14
+ export * from './CreatePermissionRequest';
13
15
  export * from './CreateSectionRequest';
14
16
  export * from './CreateTagRequest';
15
17
  export * from './CreateTenantRequest';
@@ -22,6 +24,7 @@ export * from './DocumentType';
22
24
  export * from './DocumentVersionResponse';
23
25
  export * from './EmailSentResponse';
24
26
  export * from './EmailVerificationRequest';
27
+ export * from './EmbeddingModel';
25
28
  export * from './FolderDocumentResponse';
26
29
  export * from './FolderResponse';
27
30
  export * from './HTTPValidationError';
@@ -42,6 +45,7 @@ export * from './PaginatedResponseFolderDocumentResponse';
42
45
  export * from './PaginatedResponseFolderResponse';
43
46
  export * from './PaginatedResponseInviteResponse';
44
47
  export * from './PaginatedResponsePathPartResponse';
48
+ export * from './PaginatedResponsePermissionResponse';
45
49
  export * from './PaginatedResponseTagResponse';
46
50
  export * from './PaginatedResponseTenantResponse';
47
51
  export * from './PaginatedResponseTenantUserInTenantResponse';
@@ -52,9 +56,12 @@ export * from './PasswordResetRequest';
52
56
  export * from './PasswordResetWithTokenRequest';
53
57
  export * from './PathOrder';
54
58
  export * from './PathPartResponse';
59
+ export * from './PermissionCapability';
60
+ export * from './PermissionResponse';
55
61
  export * from './Polygon';
56
62
  export * from './PolygonReference';
57
63
  export * from './RootResponse';
64
+ export * from './ScoredChunkResponse';
58
65
  export * from './SectionResponse';
59
66
  export * from './SignInRequest';
60
67
  export * from './TagPathPartRequest';
@@ -68,6 +75,7 @@ export * from './UpdateChunkContentRequest';
68
75
  export * from './UpdateChunkMetadataRequest';
69
76
  export * from './UpdateDocumentRequest';
70
77
  export * from './UpdateFolderRequest';
78
+ export * from './UpdatePermissionRequest';
71
79
  export * from './UpdateSectionRequest';
72
80
  export * from './UpdateTagRequest';
73
81
  export * from './UpdateTenantRequest';