@knowledge-stack/ksapi 1.79.0 → 1.80.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/README.md +2 -2
- package/dist/esm/models/DocumentResponse.d.ts +6 -0
- package/dist/esm/models/DocumentResponse.js +4 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +2 -2
- package/dist/esm/models/DocumentVersionResponse.js +4 -2
- package/dist/esm/models/UpdateDocumentRequest.d.ts +6 -0
- package/dist/esm/models/UpdateDocumentRequest.js +2 -0
- package/dist/models/DocumentResponse.d.ts +6 -0
- package/dist/models/DocumentResponse.js +4 -0
- package/dist/models/DocumentVersionResponse.d.ts +2 -2
- package/dist/models/DocumentVersionResponse.js +4 -2
- package/dist/models/UpdateDocumentRequest.d.ts +6 -0
- package/dist/models/UpdateDocumentRequest.js +2 -0
- package/docs/DocumentResponse.md +2 -0
- package/docs/DocumentVersionResponse.md +2 -2
- package/docs/FolderResponseOrDocumentResponse.md +2 -0
- package/docs/UpdateDocumentRequest.md +2 -0
- package/package.json +1 -1
- package/src/models/DocumentResponse.ts +9 -0
- package/src/models/DocumentVersionResponse.ts +5 -4
- package/src/models/UpdateDocumentRequest.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.80.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -408,7 +408,7 @@ and is automatically generated by the
|
|
|
408
408
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
409
409
|
|
|
410
410
|
- API version: `0.1.0`
|
|
411
|
-
- Package version: `1.
|
|
411
|
+
- Package version: `1.80.0`
|
|
412
412
|
- Generator version: `7.21.0`
|
|
413
413
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
414
414
|
|
|
@@ -97,6 +97,12 @@ export interface DocumentResponse {
|
|
|
97
97
|
* @memberof DocumentResponse
|
|
98
98
|
*/
|
|
99
99
|
tenantId: string;
|
|
100
|
+
/**
|
|
101
|
+
* Current owner of the document. Transferable via PATCH by the current owner or an ADMIN/OWNER.
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof DocumentResponse
|
|
104
|
+
*/
|
|
105
|
+
ownerTenantUserId: string;
|
|
100
106
|
/**
|
|
101
107
|
* Creation timestamp
|
|
102
108
|
* @type {Date}
|
|
@@ -52,6 +52,8 @@ export function instanceOfDocumentResponse(value) {
|
|
|
52
52
|
return false;
|
|
53
53
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
54
54
|
return false;
|
|
55
|
+
if (!('ownerTenantUserId' in value) || value['ownerTenantUserId'] === undefined)
|
|
56
|
+
return false;
|
|
55
57
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
56
58
|
return false;
|
|
57
59
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -79,6 +81,7 @@ export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
81
|
'systemManaged': json['system_managed'],
|
|
80
82
|
'excludeFromQdrant': json['exclude_from_qdrant'],
|
|
81
83
|
'tenantId': json['tenant_id'],
|
|
84
|
+
'ownerTenantUserId': json['owner_tenant_user_id'],
|
|
82
85
|
'createdAt': (new Date(json['created_at'])),
|
|
83
86
|
'updatedAt': (new Date(json['updated_at'])),
|
|
84
87
|
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponseFromJSON)),
|
|
@@ -105,6 +108,7 @@ export function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
105
108
|
'system_managed': value['systemManaged'],
|
|
106
109
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
107
110
|
'tenant_id': value['tenantId'],
|
|
111
|
+
'owner_tenant_user_id': value['ownerTenantUserId'],
|
|
108
112
|
'created_at': value['createdAt'].toISOString(),
|
|
109
113
|
'updated_at': value['updatedAt'].toISOString(),
|
|
110
114
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponseToJSON)),
|
|
@@ -68,11 +68,11 @@ export interface DocumentVersionResponse {
|
|
|
68
68
|
*/
|
|
69
69
|
tenantId: string;
|
|
70
70
|
/**
|
|
71
|
-
* User who
|
|
71
|
+
* User who uploaded this version. Immutable — set on creation and never editable.
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof DocumentVersionResponse
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
uploaderTenantUserId: string;
|
|
76
76
|
/**
|
|
77
77
|
* Creation timestamp
|
|
78
78
|
* @type {Date}
|
|
@@ -33,6 +33,8 @@ export function instanceOfDocumentVersionResponse(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('uploaderTenantUserId' in value) || value['uploaderTenantUserId'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -55,7 +57,7 @@ export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
55
57
|
'materializedPath': json['materialized_path'],
|
|
56
58
|
'systemManaged': json['system_managed'],
|
|
57
59
|
'tenantId': json['tenant_id'],
|
|
58
|
-
'
|
|
60
|
+
'uploaderTenantUserId': json['uploader_tenant_user_id'],
|
|
59
61
|
'createdAt': (new Date(json['created_at'])),
|
|
60
62
|
'updatedAt': (new Date(json['updated_at'])),
|
|
61
63
|
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
@@ -79,7 +81,7 @@ export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
79
81
|
'materialized_path': value['materializedPath'],
|
|
80
82
|
'system_managed': value['systemManaged'],
|
|
81
83
|
'tenant_id': value['tenantId'],
|
|
82
|
-
'
|
|
84
|
+
'uploader_tenant_user_id': value['uploaderTenantUserId'],
|
|
83
85
|
'created_at': value['createdAt'].toISOString(),
|
|
84
86
|
'updated_at': value['updatedAt'].toISOString(),
|
|
85
87
|
'asset_s3_url': value['assetS3Url'],
|
|
@@ -39,6 +39,12 @@ export interface UpdateDocumentRequest {
|
|
|
39
39
|
* @memberof UpdateDocumentRequest
|
|
40
40
|
*/
|
|
41
41
|
excludeFromQdrant?: boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
* Transfer ownership to another active tenant_user. Allowed only when the caller is the current owner or has ADMIN/OWNER role.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateDocumentRequest
|
|
46
|
+
*/
|
|
47
|
+
ownerTenantUserId?: string | null;
|
|
42
48
|
}
|
|
43
49
|
export declare const UpdateDocumentRequestPropertyValidationAttributesMap: {
|
|
44
50
|
[property: string]: {
|
|
@@ -35,6 +35,7 @@ export function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
36
36
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
37
37
|
'excludeFromQdrant': json['exclude_from_qdrant'] == null ? undefined : json['exclude_from_qdrant'],
|
|
38
|
+
'ownerTenantUserId': json['owner_tenant_user_id'] == null ? undefined : json['owner_tenant_user_id'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
export function UpdateDocumentRequestToJSON(json) {
|
|
@@ -49,5 +50,6 @@ export function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
50
|
'parent_path_part_id': value['parentPathPartId'],
|
|
50
51
|
'active_version_id': value['activeVersionId'],
|
|
51
52
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
53
|
+
'owner_tenant_user_id': value['ownerTenantUserId'],
|
|
52
54
|
};
|
|
53
55
|
}
|
|
@@ -97,6 +97,12 @@ export interface DocumentResponse {
|
|
|
97
97
|
* @memberof DocumentResponse
|
|
98
98
|
*/
|
|
99
99
|
tenantId: string;
|
|
100
|
+
/**
|
|
101
|
+
* Current owner of the document. Transferable via PATCH by the current owner or an ADMIN/OWNER.
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof DocumentResponse
|
|
104
|
+
*/
|
|
105
|
+
ownerTenantUserId: string;
|
|
100
106
|
/**
|
|
101
107
|
* Creation timestamp
|
|
102
108
|
* @type {Date}
|
|
@@ -60,6 +60,8 @@ function instanceOfDocumentResponse(value) {
|
|
|
60
60
|
return false;
|
|
61
61
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
62
62
|
return false;
|
|
63
|
+
if (!('ownerTenantUserId' in value) || value['ownerTenantUserId'] === undefined)
|
|
64
|
+
return false;
|
|
63
65
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
64
66
|
return false;
|
|
65
67
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -87,6 +89,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
89
|
'systemManaged': json['system_managed'],
|
|
88
90
|
'excludeFromQdrant': json['exclude_from_qdrant'],
|
|
89
91
|
'tenantId': json['tenant_id'],
|
|
92
|
+
'ownerTenantUserId': json['owner_tenant_user_id'],
|
|
90
93
|
'createdAt': (new Date(json['created_at'])),
|
|
91
94
|
'updatedAt': (new Date(json['updated_at'])),
|
|
92
95
|
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
@@ -113,6 +116,7 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
113
116
|
'system_managed': value['systemManaged'],
|
|
114
117
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
115
118
|
'tenant_id': value['tenantId'],
|
|
119
|
+
'owner_tenant_user_id': value['ownerTenantUserId'],
|
|
116
120
|
'created_at': value['createdAt'].toISOString(),
|
|
117
121
|
'updated_at': value['updatedAt'].toISOString(),
|
|
118
122
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
@@ -68,11 +68,11 @@ export interface DocumentVersionResponse {
|
|
|
68
68
|
*/
|
|
69
69
|
tenantId: string;
|
|
70
70
|
/**
|
|
71
|
-
* User who
|
|
71
|
+
* User who uploaded this version. Immutable — set on creation and never editable.
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof DocumentVersionResponse
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
uploaderTenantUserId: string;
|
|
76
76
|
/**
|
|
77
77
|
* Creation timestamp
|
|
78
78
|
* @type {Date}
|
|
@@ -41,6 +41,8 @@ function instanceOfDocumentVersionResponse(value) {
|
|
|
41
41
|
return false;
|
|
42
42
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
43
43
|
return false;
|
|
44
|
+
if (!('uploaderTenantUserId' in value) || value['uploaderTenantUserId'] === undefined)
|
|
45
|
+
return false;
|
|
44
46
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
45
47
|
return false;
|
|
46
48
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -63,7 +65,7 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
65
|
'materializedPath': json['materialized_path'],
|
|
64
66
|
'systemManaged': json['system_managed'],
|
|
65
67
|
'tenantId': json['tenant_id'],
|
|
66
|
-
'
|
|
68
|
+
'uploaderTenantUserId': json['uploader_tenant_user_id'],
|
|
67
69
|
'createdAt': (new Date(json['created_at'])),
|
|
68
70
|
'updatedAt': (new Date(json['updated_at'])),
|
|
69
71
|
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
@@ -87,7 +89,7 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
87
89
|
'materialized_path': value['materializedPath'],
|
|
88
90
|
'system_managed': value['systemManaged'],
|
|
89
91
|
'tenant_id': value['tenantId'],
|
|
90
|
-
'
|
|
92
|
+
'uploader_tenant_user_id': value['uploaderTenantUserId'],
|
|
91
93
|
'created_at': value['createdAt'].toISOString(),
|
|
92
94
|
'updated_at': value['updatedAt'].toISOString(),
|
|
93
95
|
'asset_s3_url': value['assetS3Url'],
|
|
@@ -39,6 +39,12 @@ export interface UpdateDocumentRequest {
|
|
|
39
39
|
* @memberof UpdateDocumentRequest
|
|
40
40
|
*/
|
|
41
41
|
excludeFromQdrant?: boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
* Transfer ownership to another active tenant_user. Allowed only when the caller is the current owner or has ADMIN/OWNER role.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateDocumentRequest
|
|
46
|
+
*/
|
|
47
|
+
ownerTenantUserId?: string | null;
|
|
42
48
|
}
|
|
43
49
|
export declare const UpdateDocumentRequestPropertyValidationAttributesMap: {
|
|
44
50
|
[property: string]: {
|
|
@@ -43,6 +43,7 @@ function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
44
44
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
45
45
|
'excludeFromQdrant': json['exclude_from_qdrant'] == null ? undefined : json['exclude_from_qdrant'],
|
|
46
|
+
'ownerTenantUserId': json['owner_tenant_user_id'] == null ? undefined : json['owner_tenant_user_id'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function UpdateDocumentRequestToJSON(json) {
|
|
@@ -57,5 +58,6 @@ function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
58
|
'parent_path_part_id': value['parentPathPartId'],
|
|
58
59
|
'active_version_id': value['activeVersionId'],
|
|
59
60
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
61
|
+
'owner_tenant_user_id': value['ownerTenantUserId'],
|
|
60
62
|
};
|
|
61
63
|
}
|
package/docs/DocumentResponse.md
CHANGED
|
@@ -20,6 +20,7 @@ Name | Type
|
|
|
20
20
|
`systemManaged` | boolean
|
|
21
21
|
`excludeFromQdrant` | boolean
|
|
22
22
|
`tenantId` | string
|
|
23
|
+
`ownerTenantUserId` | string
|
|
23
24
|
`createdAt` | Date
|
|
24
25
|
`updatedAt` | Date
|
|
25
26
|
`tags` | [Array<TagResponse>](TagResponse.md)
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"systemManaged": null,
|
|
45
46
|
"excludeFromQdrant": null,
|
|
46
47
|
"tenantId": null,
|
|
48
|
+
"ownerTenantUserId": null,
|
|
47
49
|
"createdAt": null,
|
|
48
50
|
"updatedAt": null,
|
|
49
51
|
"tags": null,
|
|
@@ -15,7 +15,7 @@ Name | Type
|
|
|
15
15
|
`materializedPath` | string
|
|
16
16
|
`systemManaged` | boolean
|
|
17
17
|
`tenantId` | string
|
|
18
|
-
`
|
|
18
|
+
`uploaderTenantUserId` | string
|
|
19
19
|
`createdAt` | Date
|
|
20
20
|
`updatedAt` | Date
|
|
21
21
|
`assetS3Url` | string
|
|
@@ -37,7 +37,7 @@ const example = {
|
|
|
37
37
|
"materializedPath": null,
|
|
38
38
|
"systemManaged": null,
|
|
39
39
|
"tenantId": null,
|
|
40
|
-
"
|
|
40
|
+
"uploaderTenantUserId": null,
|
|
41
41
|
"createdAt": null,
|
|
42
42
|
"updatedAt": null,
|
|
43
43
|
"assetS3Url": null,
|
|
@@ -22,6 +22,7 @@ Name | Type
|
|
|
22
22
|
`documentOrigin` | [DocumentOrigin](DocumentOrigin.md)
|
|
23
23
|
`activeVersionId` | string
|
|
24
24
|
`activeVersion` | [DocumentVersionResponse](DocumentVersionResponse.md)
|
|
25
|
+
`ownerTenantUserId` | string
|
|
25
26
|
|
|
26
27
|
## Example
|
|
27
28
|
|
|
@@ -46,6 +47,7 @@ const example = {
|
|
|
46
47
|
"documentOrigin": null,
|
|
47
48
|
"activeVersionId": null,
|
|
48
49
|
"activeVersion": null,
|
|
50
|
+
"ownerTenantUserId": null,
|
|
49
51
|
} satisfies FolderResponseOrDocumentResponse
|
|
50
52
|
|
|
51
53
|
console.log(example)
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`parentPathPartId` | string
|
|
12
12
|
`activeVersionId` | string
|
|
13
13
|
`excludeFromQdrant` | boolean
|
|
14
|
+
`ownerTenantUserId` | string
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"parentPathPartId": null,
|
|
24
25
|
"activeVersionId": null,
|
|
25
26
|
"excludeFromQdrant": null,
|
|
27
|
+
"ownerTenantUserId": null,
|
|
26
28
|
} satisfies UpdateDocumentRequest
|
|
27
29
|
|
|
28
30
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -126,6 +126,12 @@ export interface DocumentResponse {
|
|
|
126
126
|
* @memberof DocumentResponse
|
|
127
127
|
*/
|
|
128
128
|
tenantId: string;
|
|
129
|
+
/**
|
|
130
|
+
* Current owner of the document. Transferable via PATCH by the current owner or an ADMIN/OWNER.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof DocumentResponse
|
|
133
|
+
*/
|
|
134
|
+
ownerTenantUserId: string;
|
|
129
135
|
/**
|
|
130
136
|
* Creation timestamp
|
|
131
137
|
* @type {Date}
|
|
@@ -190,6 +196,7 @@ export function instanceOfDocumentResponse(value: object): value is DocumentResp
|
|
|
190
196
|
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
191
197
|
if (!('excludeFromQdrant' in value) || value['excludeFromQdrant'] === undefined) return false;
|
|
192
198
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
199
|
+
if (!('ownerTenantUserId' in value) || value['ownerTenantUserId'] === undefined) return false;
|
|
193
200
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
194
201
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
195
202
|
return true;
|
|
@@ -218,6 +225,7 @@ export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
218
225
|
'systemManaged': json['system_managed'],
|
|
219
226
|
'excludeFromQdrant': json['exclude_from_qdrant'],
|
|
220
227
|
'tenantId': json['tenant_id'],
|
|
228
|
+
'ownerTenantUserId': json['owner_tenant_user_id'],
|
|
221
229
|
'createdAt': (new Date(json['created_at'])),
|
|
222
230
|
'updatedAt': (new Date(json['updated_at'])),
|
|
223
231
|
'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
|
|
@@ -248,6 +256,7 @@ export function DocumentResponseToJSONTyped(value?: DocumentResponse | null, ign
|
|
|
248
256
|
'system_managed': value['systemManaged'],
|
|
249
257
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
250
258
|
'tenant_id': value['tenantId'],
|
|
259
|
+
'owner_tenant_user_id': value['ownerTenantUserId'],
|
|
251
260
|
'created_at': value['createdAt'].toISOString(),
|
|
252
261
|
'updated_at': value['updatedAt'].toISOString(),
|
|
253
262
|
'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),
|
|
@@ -79,11 +79,11 @@ export interface DocumentVersionResponse {
|
|
|
79
79
|
*/
|
|
80
80
|
tenantId: string;
|
|
81
81
|
/**
|
|
82
|
-
* User who
|
|
82
|
+
* User who uploaded this version. Immutable — set on creation and never editable.
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof DocumentVersionResponse
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
uploaderTenantUserId: string;
|
|
87
87
|
/**
|
|
88
88
|
* Creation timestamp
|
|
89
89
|
* @type {Date}
|
|
@@ -145,6 +145,7 @@ export function instanceOfDocumentVersionResponse(value: object): value is Docum
|
|
|
145
145
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
146
146
|
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
147
147
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
148
|
+
if (!('uploaderTenantUserId' in value) || value['uploaderTenantUserId'] === undefined) return false;
|
|
148
149
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
149
150
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
150
151
|
return true;
|
|
@@ -168,7 +169,7 @@ export function DocumentVersionResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
168
169
|
'materializedPath': json['materialized_path'],
|
|
169
170
|
'systemManaged': json['system_managed'],
|
|
170
171
|
'tenantId': json['tenant_id'],
|
|
171
|
-
'
|
|
172
|
+
'uploaderTenantUserId': json['uploader_tenant_user_id'],
|
|
172
173
|
'createdAt': (new Date(json['created_at'])),
|
|
173
174
|
'updatedAt': (new Date(json['updated_at'])),
|
|
174
175
|
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
@@ -196,7 +197,7 @@ export function DocumentVersionResponseToJSONTyped(value?: DocumentVersionRespon
|
|
|
196
197
|
'materialized_path': value['materializedPath'],
|
|
197
198
|
'system_managed': value['systemManaged'],
|
|
198
199
|
'tenant_id': value['tenantId'],
|
|
199
|
-
'
|
|
200
|
+
'uploader_tenant_user_id': value['uploaderTenantUserId'],
|
|
200
201
|
'created_at': value['createdAt'].toISOString(),
|
|
201
202
|
'updated_at': value['updatedAt'].toISOString(),
|
|
202
203
|
'asset_s3_url': value['assetS3Url'],
|
|
@@ -43,6 +43,12 @@ export interface UpdateDocumentRequest {
|
|
|
43
43
|
* @memberof UpdateDocumentRequest
|
|
44
44
|
*/
|
|
45
45
|
excludeFromQdrant?: boolean | null;
|
|
46
|
+
/**
|
|
47
|
+
* Transfer ownership to another active tenant_user. Allowed only when the caller is the current owner or has ADMIN/OWNER role.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpdateDocumentRequest
|
|
50
|
+
*/
|
|
51
|
+
ownerTenantUserId?: string | null;
|
|
46
52
|
}
|
|
47
53
|
export const UpdateDocumentRequestPropertyValidationAttributesMap: {
|
|
48
54
|
[property: string]: {
|
|
@@ -87,6 +93,7 @@ export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
87
93
|
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
88
94
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
89
95
|
'excludeFromQdrant': json['exclude_from_qdrant'] == null ? undefined : json['exclude_from_qdrant'],
|
|
96
|
+
'ownerTenantUserId': json['owner_tenant_user_id'] == null ? undefined : json['owner_tenant_user_id'],
|
|
90
97
|
};
|
|
91
98
|
}
|
|
92
99
|
|
|
@@ -105,6 +112,7 @@ export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest |
|
|
|
105
112
|
'parent_path_part_id': value['parentPathPartId'],
|
|
106
113
|
'active_version_id': value['activeVersionId'],
|
|
107
114
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
115
|
+
'owner_tenant_user_id': value['ownerTenantUserId'],
|
|
108
116
|
};
|
|
109
117
|
}
|
|
110
118
|
|