@knowledge-stack/ksapi 1.23.4 → 1.24.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 +125 -6
- package/.openapi-generator/VERSION +1 -1
- package/README.md +274 -28
- package/dist/apis/AuthApi.d.ts +117 -0
- package/dist/apis/AuthApi.js +137 -47
- package/dist/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/apis/ChunkLineagesApi.js +42 -15
- package/dist/apis/ChunksApi.d.ts +78 -4
- package/dist/apis/ChunksApi.js +85 -31
- package/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +28 -10
- package/dist/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/apis/DocumentVersionsApi.js +100 -37
- package/dist/apis/DocumentsApi.d.ts +80 -0
- package/dist/apis/DocumentsApi.js +84 -30
- package/dist/apis/FoldersApi.d.ts +92 -9
- package/dist/apis/FoldersApi.js +86 -32
- package/dist/apis/InvitesApi.d.ts +51 -0
- package/dist/apis/InvitesApi.js +56 -20
- package/dist/apis/PathPartsApi.d.ts +54 -0
- package/dist/apis/PathPartsApi.js +56 -20
- package/dist/apis/SectionsApi.d.ts +49 -0
- package/dist/apis/SectionsApi.js +56 -20
- package/dist/apis/TagsApi.d.ts +62 -0
- package/dist/apis/TagsApi.js +70 -25
- package/dist/apis/TenantsApi.d.ts +172 -5
- package/dist/apis/TenantsApi.js +179 -31
- package/dist/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/apis/ThreadMessagesApi.js +42 -15
- package/dist/apis/ThreadsApi.d.ts +77 -0
- package/dist/apis/ThreadsApi.js +84 -30
- package/dist/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/apis/UserPermissionsApi.js +56 -20
- package/dist/apis/UsersApi.d.ts +23 -0
- package/dist/apis/UsersApi.js +28 -10
- package/dist/apis/WorkflowsApi.d.ts +38 -0
- package/dist/apis/WorkflowsApi.js +42 -15
- package/dist/esm/apis/AuthApi.d.ts +117 -0
- package/dist/esm/apis/AuthApi.js +137 -47
- package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/esm/apis/ChunkLineagesApi.js +42 -15
- package/dist/esm/apis/ChunksApi.d.ts +78 -4
- package/dist/esm/apis/ChunksApi.js +85 -31
- package/dist/esm/apis/DefaultApi.d.ts +20 -0
- package/dist/esm/apis/DefaultApi.js +28 -10
- package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/esm/apis/DocumentVersionsApi.js +101 -38
- package/dist/esm/apis/DocumentsApi.d.ts +80 -0
- package/dist/esm/apis/DocumentsApi.js +84 -30
- package/dist/esm/apis/FoldersApi.d.ts +92 -9
- package/dist/esm/apis/FoldersApi.js +87 -33
- package/dist/esm/apis/InvitesApi.d.ts +51 -0
- package/dist/esm/apis/InvitesApi.js +56 -20
- package/dist/esm/apis/PathPartsApi.d.ts +54 -0
- package/dist/esm/apis/PathPartsApi.js +56 -20
- package/dist/esm/apis/SectionsApi.d.ts +49 -0
- package/dist/esm/apis/SectionsApi.js +56 -20
- package/dist/esm/apis/TagsApi.d.ts +62 -0
- package/dist/esm/apis/TagsApi.js +70 -25
- package/dist/esm/apis/TenantsApi.d.ts +172 -5
- package/dist/esm/apis/TenantsApi.js +180 -32
- package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/esm/apis/ThreadMessagesApi.js +42 -15
- package/dist/esm/apis/ThreadsApi.d.ts +77 -0
- package/dist/esm/apis/ThreadsApi.js +84 -30
- package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/esm/apis/UserPermissionsApi.js +56 -20
- package/dist/esm/apis/UsersApi.d.ts +23 -0
- package/dist/esm/apis/UsersApi.js +28 -10
- package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
- package/dist/esm/apis/WorkflowsApi.js +42 -15
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
- package/dist/esm/models/ChunkResponse.d.ts +6 -0
- package/dist/esm/models/ChunkResponse.js +2 -0
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +8 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +8 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
- package/dist/esm/models/InviteResponse.d.ts +7 -0
- package/dist/esm/models/InviteResponse.js +5 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseTenantUserInTenantResponse.js → PaginatedResponseTenantUserResponse.js} +12 -12
- package/dist/esm/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/esm/models/ScoredChunkResponse.js +2 -0
- package/dist/esm/models/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +86 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/TenantUserEditRequest.d.ts +48 -0
- package/dist/esm/models/TenantUserEditRequest.js +45 -0
- package/dist/esm/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/esm/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +13 -9
- package/dist/esm/models/index.d.ts +9 -6
- package/dist/esm/models/index.js +9 -6
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- package/dist/models/ChunkResponse.d.ts +6 -0
- package/dist/models/ChunkResponse.js +2 -0
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +9 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +9 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
- package/dist/models/InviteResponse.d.ts +7 -0
- package/dist/models/InviteResponse.js +5 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTenantUserResponse.js +78 -0
- package/dist/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/models/ScoredChunkResponse.js +2 -0
- package/dist/models/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +94 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/TenantUserEditRequest.d.ts +48 -0
- package/dist/models/TenantUserEditRequest.js +53 -0
- package/dist/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +19 -15
- package/dist/models/index.d.ts +9 -6
- package/dist/models/index.js +9 -6
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkContentItem.md +59 -0
- package/docs/ChunkLineageResponse.md +41 -0
- package/docs/ChunkLineagesApi.md +230 -0
- package/docs/ChunkMetadataInput.md +37 -0
- package/docs/ChunkMetadataOutput.md +37 -0
- package/docs/ChunkResponse.md +63 -0
- package/docs/ChunkSearchRequest.md +47 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +446 -0
- package/docs/ClearVersionContentsResponse.md +35 -0
- package/docs/CreateChunkLineageRequest.md +37 -0
- package/docs/CreateChunkRequest.md +43 -0
- package/docs/CreateDocumentRequest.md +41 -0
- package/docs/CreateFolderRequest.md +37 -0
- package/docs/CreatePasswordUserRequest.md +36 -0
- package/docs/CreatePermissionRequest.md +40 -0
- package/docs/CreateSectionRequest.md +41 -0
- package/docs/CreateTagRequest.md +39 -0
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateThreadMessageRequest.md +37 -0
- package/docs/CreateThreadRequest.md +37 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/DocumentOrigin.md +33 -0
- package/docs/DocumentResponse.md +63 -0
- package/docs/DocumentType.md +33 -0
- package/docs/DocumentVersionMetadata.md +47 -0
- package/docs/DocumentVersionMetadataUpdate.md +47 -0
- package/docs/DocumentVersionResponse.md +57 -0
- package/docs/DocumentVersionsApi.md +530 -0
- package/docs/DocumentsApi.md +464 -0
- package/docs/EmailSentResponse.md +34 -0
- package/docs/EmailVerificationRequest.md +34 -0
- package/docs/EmbeddingModel.md +33 -0
- package/docs/FolderResponse.md +55 -0
- package/docs/FolderResponseOrDocumentResponse.md +62 -0
- package/docs/FoldersApi.md +473 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/HealthCheckResponse.md +36 -0
- package/docs/IdpType.md +33 -0
- package/docs/IngestDocumentResponse.md +39 -0
- package/docs/InviteResponse.md +53 -0
- package/docs/InviteStatus.md +32 -0
- package/docs/InviteUserRequest.md +38 -0
- package/docs/InvitesApi.md +305 -0
- package/docs/LineageEdgeResponse.md +37 -0
- package/docs/LineageGraphResponse.md +37 -0
- package/docs/LineageNodeResponse.md +47 -0
- package/docs/LocationInner.md +32 -0
- package/docs/MessageRole.md +33 -0
- package/docs/OAuth2Config.md +41 -0
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
- package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
- package/docs/PaginatedResponseDocumentResponse.md +40 -0
- package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
- package/docs/PaginatedResponseFolderResponse.md +40 -0
- package/docs/PaginatedResponseInviteResponse.md +40 -0
- package/docs/PaginatedResponsePathPartResponse.md +40 -0
- package/docs/PaginatedResponsePermissionResponse.md +40 -0
- package/docs/PaginatedResponseTagResponse.md +40 -0
- package/docs/PaginatedResponseTenantResponse.md +40 -0
- package/docs/PaginatedResponseTenantUserResponse.md +40 -0
- package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
- package/docs/PaginatedResponseThreadResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
- package/docs/PartType.md +33 -0
- package/docs/PasswordResetRequest.md +36 -0
- package/docs/PasswordResetWithTokenRequest.md +36 -0
- package/docs/PathOrder.md +33 -0
- package/docs/PathPartResponse.md +53 -0
- package/docs/PathPartTagsResponse.md +35 -0
- package/docs/PathPartsApi.md +314 -0
- package/docs/PermissionCapability.md +33 -0
- package/docs/PermissionResponse.md +48 -0
- package/docs/PipelineState.md +45 -0
- package/docs/PipelineStatus.md +33 -0
- package/docs/Polygon.md +41 -0
- package/docs/PolygonReference.md +37 -0
- package/docs/RootResponse.md +36 -0
- package/docs/ScoredChunkResponse.md +65 -0
- package/docs/SectionContentItem.md +55 -0
- package/docs/SectionContentItemOrChunkContentItem.md +60 -0
- package/docs/SectionResponse.md +57 -0
- package/docs/SectionsApi.md +299 -0
- package/docs/SignInRequest.md +38 -0
- package/docs/TagResponse.md +47 -0
- package/docs/TagsApi.md +374 -0
- package/docs/TenantResponse.md +39 -0
- package/docs/TenantUserEditRequest.md +35 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/TenantUserRole.md +33 -0
- package/docs/TenantsApi.md +605 -0
- package/docs/ThreadMessageResponse.md +53 -0
- package/docs/ThreadMessagesApi.md +239 -0
- package/docs/ThreadResponse.md +49 -0
- package/docs/ThreadsApi.md +455 -0
- package/docs/UpdateChunkContentRequest.md +37 -0
- package/docs/UpdateChunkMetadataRequest.md +35 -0
- package/docs/UpdateDocumentRequest.md +39 -0
- package/docs/UpdateFolderRequest.md +37 -0
- package/docs/UpdatePermissionRequest.md +36 -0
- package/docs/UpdateSectionRequest.md +41 -0
- package/docs/UpdateTagRequest.md +39 -0
- package/docs/UpdateTenantRequest.md +37 -0
- package/docs/UpdateThreadRequest.md +37 -0
- package/docs/UpdateUserRequest.md +34 -0
- package/docs/UserPermissionsApi.md +314 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +149 -0
- package/docs/ValidationError.md +42 -0
- package/docs/WorkflowAction.md +33 -0
- package/docs/WorkflowActionResponse.md +39 -0
- package/docs/WorkflowDetailResponse.md +63 -0
- package/docs/WorkflowSummaryResponse.md +49 -0
- package/docs/WorkflowsApi.md +230 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +214 -47
- package/src/apis/ChunkLineagesApi.ts +68 -15
- package/src/apis/ChunksApi.ts +137 -33
- package/src/apis/DefaultApi.ts +40 -10
- package/src/apis/DocumentVersionsApi.ts +170 -45
- package/src/apis/DocumentsApi.ts +140 -30
- package/src/apis/FoldersApi.ts +153 -40
- package/src/apis/InvitesApi.ts +91 -20
- package/src/apis/PathPartsApi.ts +94 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +339 -37
- package/src/apis/ThreadMessagesApi.ts +71 -15
- package/src/apis/ThreadsApi.ts +137 -30
- package/src/apis/UserPermissionsApi.ts +94 -20
- package/src/apis/UsersApi.ts +43 -10
- package/src/apis/WorkflowsApi.ts +68 -15
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
- package/src/models/ChunkResponse.ts +8 -0
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/InviteResponse.ts +19 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/{PaginatedResponseFolderDocumentResponse.ts → PaginatedResponseTenantUserResponse.ts} +25 -25
- package/src/models/ScoredChunkResponse.ts +8 -0
- package/src/models/SectionContentItem.ts +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/TenantUserEditRequest.ts +93 -0
- package/src/models/{TenantUserInTenantResponse.ts → TenantUserResponse.ts} +24 -15
- package/src/models/index.ts +9 -6
- package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/esm/models/FolderDocumentResponse.js +0 -99
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
- package/dist/esm/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- package/dist/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/models/FolderDocumentResponse.js +0 -107
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseTenantUserInTenantResponse.ts +0 -130
|
@@ -25,6 +25,13 @@ export interface UpdateMeRequest {
|
|
|
25
25
|
* @interface UsersApiInterface
|
|
26
26
|
*/
|
|
27
27
|
export interface UsersApiInterface {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for getMe without sending the request
|
|
30
|
+
* @param {string} [ksUat]
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof UsersApiInterface
|
|
33
|
+
*/
|
|
34
|
+
getMeRequestOpts(requestParameters: GetMeRequest): Promise<runtime.RequestOpts>;
|
|
28
35
|
/**
|
|
29
36
|
* Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
|
|
30
37
|
* @summary Get Me Handler
|
|
@@ -39,6 +46,14 @@ export interface UsersApiInterface {
|
|
|
39
46
|
* Get Me Handler
|
|
40
47
|
*/
|
|
41
48
|
getMe(requestParameters: GetMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for updateMe without sending the request
|
|
51
|
+
* @param {UpdateUserRequest} updateUserRequest
|
|
52
|
+
* @param {string} [ksUat]
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
* @memberof UsersApiInterface
|
|
55
|
+
*/
|
|
56
|
+
updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
|
|
42
57
|
/**
|
|
43
58
|
* Update the user\'s default tenant. The user must belong to the specified tenant.
|
|
44
59
|
* @summary Update Me Handler
|
|
@@ -59,6 +74,10 @@ export interface UsersApiInterface {
|
|
|
59
74
|
*
|
|
60
75
|
*/
|
|
61
76
|
export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterface {
|
|
77
|
+
/**
|
|
78
|
+
* Creates request options for getMe without sending the request
|
|
79
|
+
*/
|
|
80
|
+
getMeRequestOpts(requestParameters: GetMeRequest): Promise<runtime.RequestOpts>;
|
|
62
81
|
/**
|
|
63
82
|
* Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
|
|
64
83
|
* Get Me Handler
|
|
@@ -69,6 +88,10 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
|
|
|
69
88
|
* Get Me Handler
|
|
70
89
|
*/
|
|
71
90
|
getMe(requestParameters?: GetMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Creates request options for updateMe without sending the request
|
|
93
|
+
*/
|
|
94
|
+
updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
|
|
72
95
|
/**
|
|
73
96
|
* Update the user\'s default tenant. The user must belong to the specified tenant.
|
|
74
97
|
* Update Me Handler
|
|
@@ -27,20 +27,29 @@ import { UpdateUserRequestToJSON, UserResponseFromJSON, } from '../models/index'
|
|
|
27
27
|
*/
|
|
28
28
|
export class UsersApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* Get Me Handler
|
|
30
|
+
* Creates request options for getMe without sending the request
|
|
32
31
|
*/
|
|
33
|
-
|
|
32
|
+
getMeRequestOpts(requestParameters) {
|
|
34
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
34
|
const queryParameters = {};
|
|
36
35
|
const headerParameters = {};
|
|
37
36
|
let urlPath = `/v1/users/me`;
|
|
38
|
-
|
|
37
|
+
return {
|
|
39
38
|
path: urlPath,
|
|
40
39
|
method: 'GET',
|
|
41
40
|
headers: headerParameters,
|
|
42
41
|
query: queryParameters,
|
|
43
|
-
}
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
|
|
47
|
+
* Get Me Handler
|
|
48
|
+
*/
|
|
49
|
+
getMeRaw(requestParameters, initOverrides) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const requestOptions = yield this.getMeRequestOpts(requestParameters);
|
|
52
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
44
53
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
45
54
|
});
|
|
46
55
|
}
|
|
@@ -55,10 +64,9 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
55
64
|
});
|
|
56
65
|
}
|
|
57
66
|
/**
|
|
58
|
-
*
|
|
59
|
-
* Update Me Handler
|
|
67
|
+
* Creates request options for updateMe without sending the request
|
|
60
68
|
*/
|
|
61
|
-
|
|
69
|
+
updateMeRequestOpts(requestParameters) {
|
|
62
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
71
|
if (requestParameters['updateUserRequest'] == null) {
|
|
64
72
|
throw new runtime.RequiredError('updateUserRequest', 'Required parameter "updateUserRequest" was null or undefined when calling updateMe().');
|
|
@@ -67,13 +75,23 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
67
75
|
const headerParameters = {};
|
|
68
76
|
headerParameters['Content-Type'] = 'application/json';
|
|
69
77
|
let urlPath = `/v1/users`;
|
|
70
|
-
|
|
78
|
+
return {
|
|
71
79
|
path: urlPath,
|
|
72
80
|
method: 'PATCH',
|
|
73
81
|
headers: headerParameters,
|
|
74
82
|
query: queryParameters,
|
|
75
83
|
body: UpdateUserRequestToJSON(requestParameters['updateUserRequest']),
|
|
76
|
-
}
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Update the user\'s default tenant. The user must belong to the specified tenant.
|
|
89
|
+
* Update Me Handler
|
|
90
|
+
*/
|
|
91
|
+
updateMeRaw(requestParameters, initOverrides) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const requestOptions = yield this.updateMeRequestOpts(requestParameters);
|
|
94
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
77
95
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
78
96
|
});
|
|
79
97
|
}
|
|
@@ -32,6 +32,14 @@ export interface WorkflowActionRequest {
|
|
|
32
32
|
* @interface WorkflowsApiInterface
|
|
33
33
|
*/
|
|
34
34
|
export interface WorkflowsApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for getWorkflow without sending the request
|
|
37
|
+
* @param {string} workflowId
|
|
38
|
+
* @param {string} [ksUat]
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof WorkflowsApiInterface
|
|
41
|
+
*/
|
|
42
|
+
getWorkflowRequestOpts(requestParameters: GetWorkflowRequest): Promise<runtime.RequestOpts>;
|
|
35
43
|
/**
|
|
36
44
|
* Get single workflow detail with live Temporal status.
|
|
37
45
|
* @summary Get Workflow Handler
|
|
@@ -47,6 +55,15 @@ export interface WorkflowsApiInterface {
|
|
|
47
55
|
* Get Workflow Handler
|
|
48
56
|
*/
|
|
49
57
|
getWorkflow(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for listWorkflows without sending the request
|
|
60
|
+
* @param {number} [limit] Number of items per page
|
|
61
|
+
* @param {number} [offset] Number of items to skip
|
|
62
|
+
* @param {string} [ksUat]
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof WorkflowsApiInterface
|
|
65
|
+
*/
|
|
66
|
+
listWorkflowsRequestOpts(requestParameters: ListWorkflowsRequest): Promise<runtime.RequestOpts>;
|
|
50
67
|
/**
|
|
51
68
|
* List all workflows for the current tenant (paginated, DB-backed).
|
|
52
69
|
* @summary List Workflows Handler
|
|
@@ -63,6 +80,15 @@ export interface WorkflowsApiInterface {
|
|
|
63
80
|
* List Workflows Handler
|
|
64
81
|
*/
|
|
65
82
|
listWorkflows(requestParameters: ListWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWorkflowSummaryResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Creates request options for workflowAction without sending the request
|
|
85
|
+
* @param {string} workflowId
|
|
86
|
+
* @param {WorkflowAction} action Action to perform
|
|
87
|
+
* @param {string} [ksUat]
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof WorkflowsApiInterface
|
|
90
|
+
*/
|
|
91
|
+
workflowActionRequestOpts(requestParameters: WorkflowActionRequest): Promise<runtime.RequestOpts>;
|
|
66
92
|
/**
|
|
67
93
|
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
68
94
|
* @summary Workflow Action Handler
|
|
@@ -84,6 +110,10 @@ export interface WorkflowsApiInterface {
|
|
|
84
110
|
*
|
|
85
111
|
*/
|
|
86
112
|
export declare class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterface {
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for getWorkflow without sending the request
|
|
115
|
+
*/
|
|
116
|
+
getWorkflowRequestOpts(requestParameters: GetWorkflowRequest): Promise<runtime.RequestOpts>;
|
|
87
117
|
/**
|
|
88
118
|
* Get single workflow detail with live Temporal status.
|
|
89
119
|
* Get Workflow Handler
|
|
@@ -94,6 +124,10 @@ export declare class WorkflowsApi extends runtime.BaseAPI implements WorkflowsAp
|
|
|
94
124
|
* Get Workflow Handler
|
|
95
125
|
*/
|
|
96
126
|
getWorkflow(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for listWorkflows without sending the request
|
|
129
|
+
*/
|
|
130
|
+
listWorkflowsRequestOpts(requestParameters: ListWorkflowsRequest): Promise<runtime.RequestOpts>;
|
|
97
131
|
/**
|
|
98
132
|
* List all workflows for the current tenant (paginated, DB-backed).
|
|
99
133
|
* List Workflows Handler
|
|
@@ -104,6 +138,10 @@ export declare class WorkflowsApi extends runtime.BaseAPI implements WorkflowsAp
|
|
|
104
138
|
* List Workflows Handler
|
|
105
139
|
*/
|
|
106
140
|
listWorkflows(requestParameters?: ListWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWorkflowSummaryResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* Creates request options for workflowAction without sending the request
|
|
143
|
+
*/
|
|
144
|
+
workflowActionRequestOpts(requestParameters: WorkflowActionRequest): Promise<runtime.RequestOpts>;
|
|
107
145
|
/**
|
|
108
146
|
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
109
147
|
* Workflow Action Handler
|
|
@@ -27,10 +27,9 @@ import { PaginatedResponseWorkflowSummaryResponseFromJSON, WorkflowActionRespons
|
|
|
27
27
|
*/
|
|
28
28
|
export class WorkflowsApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* Get Workflow Handler
|
|
30
|
+
* Creates request options for getWorkflow without sending the request
|
|
32
31
|
*/
|
|
33
|
-
|
|
32
|
+
getWorkflowRequestOpts(requestParameters) {
|
|
34
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
34
|
if (requestParameters['workflowId'] == null) {
|
|
36
35
|
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getWorkflow().');
|
|
@@ -39,12 +38,22 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
39
38
|
const headerParameters = {};
|
|
40
39
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
41
40
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
42
|
-
|
|
41
|
+
return {
|
|
43
42
|
path: urlPath,
|
|
44
43
|
method: 'GET',
|
|
45
44
|
headers: headerParameters,
|
|
46
45
|
query: queryParameters,
|
|
47
|
-
}
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get single workflow detail with live Temporal status.
|
|
51
|
+
* Get Workflow Handler
|
|
52
|
+
*/
|
|
53
|
+
getWorkflowRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.getWorkflowRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
48
57
|
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
|
|
49
58
|
});
|
|
50
59
|
}
|
|
@@ -59,10 +68,9 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
59
68
|
});
|
|
60
69
|
}
|
|
61
70
|
/**
|
|
62
|
-
*
|
|
63
|
-
* List Workflows Handler
|
|
71
|
+
* Creates request options for listWorkflows without sending the request
|
|
64
72
|
*/
|
|
65
|
-
|
|
73
|
+
listWorkflowsRequestOpts(requestParameters) {
|
|
66
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
75
|
const queryParameters = {};
|
|
68
76
|
if (requestParameters['limit'] != null) {
|
|
@@ -73,12 +81,22 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
73
81
|
}
|
|
74
82
|
const headerParameters = {};
|
|
75
83
|
let urlPath = `/v1/workflows`;
|
|
76
|
-
|
|
84
|
+
return {
|
|
77
85
|
path: urlPath,
|
|
78
86
|
method: 'GET',
|
|
79
87
|
headers: headerParameters,
|
|
80
88
|
query: queryParameters,
|
|
81
|
-
}
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* List all workflows for the current tenant (paginated, DB-backed).
|
|
94
|
+
* List Workflows Handler
|
|
95
|
+
*/
|
|
96
|
+
listWorkflowsRaw(requestParameters, initOverrides) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const requestOptions = yield this.listWorkflowsRequestOpts(requestParameters);
|
|
99
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
82
100
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseWorkflowSummaryResponseFromJSON(jsonValue));
|
|
83
101
|
});
|
|
84
102
|
}
|
|
@@ -93,10 +111,9 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
93
111
|
});
|
|
94
112
|
}
|
|
95
113
|
/**
|
|
96
|
-
*
|
|
97
|
-
* Workflow Action Handler
|
|
114
|
+
* Creates request options for workflowAction without sending the request
|
|
98
115
|
*/
|
|
99
|
-
|
|
116
|
+
workflowActionRequestOpts(requestParameters) {
|
|
100
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
118
|
if (requestParameters['workflowId'] == null) {
|
|
102
119
|
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling workflowAction().');
|
|
@@ -111,12 +128,22 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
111
128
|
const headerParameters = {};
|
|
112
129
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
113
130
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
114
|
-
|
|
131
|
+
return {
|
|
115
132
|
path: urlPath,
|
|
116
133
|
method: 'POST',
|
|
117
134
|
headers: headerParameters,
|
|
118
135
|
query: queryParameters,
|
|
119
|
-
}
|
|
136
|
+
};
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
141
|
+
* Workflow Action Handler
|
|
142
|
+
*/
|
|
143
|
+
workflowActionRaw(requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const requestOptions = yield this.workflowActionRequestOpts(requestParameters);
|
|
146
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
120
147
|
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowActionResponseFromJSON(jsonValue));
|
|
121
148
|
});
|
|
122
149
|
}
|
|
@@ -9,112 +9,109 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { PartType } from './PartType';
|
|
13
12
|
import type { ChunkMetadataOutput } from './ChunkMetadataOutput';
|
|
14
13
|
import type { ChunkType } from './ChunkType';
|
|
15
14
|
/**
|
|
16
|
-
* Response model for a
|
|
17
|
-
*
|
|
18
|
-
* Represents a section or chunk with enriched data (content, metadata)
|
|
19
|
-
* returned in depth-first logical order.
|
|
15
|
+
* Response model for a chunk item in document version contents.
|
|
20
16
|
* @export
|
|
21
|
-
* @interface
|
|
17
|
+
* @interface ChunkContentItem
|
|
22
18
|
*/
|
|
23
|
-
export interface
|
|
19
|
+
export interface ChunkContentItem {
|
|
20
|
+
/**
|
|
21
|
+
* Path part type
|
|
22
|
+
* @type {ChunkContentItemPartTypeEnum}
|
|
23
|
+
* @memberof ChunkContentItem
|
|
24
|
+
*/
|
|
25
|
+
partType?: ChunkContentItemPartTypeEnum;
|
|
24
26
|
/**
|
|
25
27
|
* PathPart ID
|
|
26
28
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
29
|
+
* @memberof ChunkContentItem
|
|
28
30
|
*/
|
|
29
31
|
pathPartId: string;
|
|
30
32
|
/**
|
|
31
33
|
* PathPart name
|
|
32
34
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
35
|
+
* @memberof ChunkContentItem
|
|
34
36
|
*/
|
|
35
37
|
name: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {PartType}
|
|
39
|
-
* @memberof DocumentContentPathPart
|
|
40
|
-
*/
|
|
41
|
-
partType: PartType;
|
|
42
38
|
/**
|
|
43
39
|
* Parent PathPart ID
|
|
44
40
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
41
|
+
* @memberof ChunkContentItem
|
|
46
42
|
*/
|
|
47
43
|
parentPathId: string;
|
|
48
44
|
/**
|
|
49
|
-
*
|
|
45
|
+
* Chunk ID
|
|
50
46
|
* @type {string}
|
|
51
|
-
* @memberof
|
|
47
|
+
* @memberof ChunkContentItem
|
|
52
48
|
*/
|
|
53
49
|
metadataObjId: string;
|
|
54
50
|
/**
|
|
55
51
|
* Depth relative to document version root
|
|
56
52
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
53
|
+
* @memberof ChunkContentItem
|
|
58
54
|
*/
|
|
59
55
|
depth: number;
|
|
60
56
|
/**
|
|
61
|
-
* Chunk content
|
|
57
|
+
* Chunk content
|
|
62
58
|
* @type {string}
|
|
63
|
-
* @memberof
|
|
59
|
+
* @memberof ChunkContentItem
|
|
64
60
|
*/
|
|
65
61
|
content?: string | null;
|
|
66
62
|
/**
|
|
67
63
|
*
|
|
68
64
|
* @type {ChunkType}
|
|
69
|
-
* @memberof
|
|
65
|
+
* @memberof ChunkContentItem
|
|
70
66
|
*/
|
|
71
67
|
chunkType?: ChunkType;
|
|
72
68
|
/**
|
|
73
69
|
*
|
|
74
70
|
* @type {ChunkMetadataOutput}
|
|
75
|
-
* @memberof
|
|
71
|
+
* @memberof ChunkContentItem
|
|
76
72
|
*/
|
|
77
73
|
chunkMetadata?: ChunkMetadataOutput;
|
|
78
|
-
/**
|
|
79
|
-
* Section page number (None for chunks)
|
|
80
|
-
* @type {number}
|
|
81
|
-
* @memberof DocumentContentPathPart
|
|
82
|
-
*/
|
|
83
|
-
pageNumber?: number | null;
|
|
84
74
|
/**
|
|
85
75
|
* Full materialized path from root
|
|
86
76
|
* @type {string}
|
|
87
|
-
* @memberof
|
|
77
|
+
* @memberof ChunkContentItem
|
|
88
78
|
*/
|
|
89
79
|
materializedPath: string;
|
|
90
80
|
/**
|
|
91
81
|
* Whether this item is system-managed
|
|
92
82
|
* @type {boolean}
|
|
93
|
-
* @memberof
|
|
83
|
+
* @memberof ChunkContentItem
|
|
94
84
|
*/
|
|
95
85
|
systemManaged: boolean;
|
|
96
86
|
/**
|
|
97
87
|
* Creation timestamp
|
|
98
88
|
* @type {Date}
|
|
99
|
-
* @memberof
|
|
89
|
+
* @memberof ChunkContentItem
|
|
100
90
|
*/
|
|
101
91
|
createdAt: Date;
|
|
102
92
|
/**
|
|
103
93
|
* Last update timestamp
|
|
104
94
|
* @type {Date}
|
|
105
|
-
* @memberof
|
|
95
|
+
* @memberof ChunkContentItem
|
|
106
96
|
*/
|
|
107
97
|
updatedAt: Date;
|
|
108
98
|
}
|
|
109
99
|
/**
|
|
110
|
-
*
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const ChunkContentItemPartTypeEnum: {
|
|
103
|
+
readonly Chunk: "CHUNK";
|
|
104
|
+
};
|
|
105
|
+
export type ChunkContentItemPartTypeEnum = typeof ChunkContentItemPartTypeEnum[keyof typeof ChunkContentItemPartTypeEnum];
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the ChunkContentItem interface.
|
|
111
108
|
*/
|
|
112
|
-
export declare function
|
|
113
|
-
export declare function
|
|
114
|
-
export declare function
|
|
115
|
-
export declare function
|
|
116
|
-
export declare function
|
|
117
|
-
export declare const
|
|
109
|
+
export declare function instanceOfChunkContentItem(value: object): value is ChunkContentItem;
|
|
110
|
+
export declare function ChunkContentItemFromJSON(json: any): ChunkContentItem;
|
|
111
|
+
export declare function ChunkContentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkContentItem;
|
|
112
|
+
export declare function ChunkContentItemToJSON(json: any): ChunkContentItem;
|
|
113
|
+
export declare function ChunkContentItemToJSONTyped(value?: ChunkContentItem | null, ignoreDiscriminator?: boolean): any;
|
|
114
|
+
export declare const ChunkContentItemPropertyValidationAttributesMap: {
|
|
118
115
|
[property: string]: {
|
|
119
116
|
maxLength?: number;
|
|
120
117
|
minLength?: number;
|
|
@@ -11,19 +11,22 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { PartTypeFromJSON, PartTypeToJSON, } from './PartType';
|
|
15
14
|
import { ChunkMetadataOutputFromJSON, ChunkMetadataOutputToJSON, } from './ChunkMetadataOutput';
|
|
16
15
|
import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
17
|
+
* @export
|
|
19
18
|
*/
|
|
20
|
-
export
|
|
19
|
+
export const ChunkContentItemPartTypeEnum = {
|
|
20
|
+
Chunk: 'CHUNK'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ChunkContentItem interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfChunkContentItem(value) {
|
|
21
26
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
22
27
|
return false;
|
|
23
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
24
29
|
return false;
|
|
25
|
-
if (!('partType' in value) || value['partType'] === undefined)
|
|
26
|
-
return false;
|
|
27
30
|
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
28
31
|
return false;
|
|
29
32
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
@@ -40,52 +43,50 @@ export function instanceOfDocumentContentPathPart(value) {
|
|
|
40
43
|
return false;
|
|
41
44
|
return true;
|
|
42
45
|
}
|
|
43
|
-
export function
|
|
44
|
-
return
|
|
46
|
+
export function ChunkContentItemFromJSON(json) {
|
|
47
|
+
return ChunkContentItemFromJSONTyped(json, false);
|
|
45
48
|
}
|
|
46
|
-
export function
|
|
49
|
+
export function ChunkContentItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
50
|
if (json == null) {
|
|
48
51
|
return json;
|
|
49
52
|
}
|
|
50
53
|
return {
|
|
54
|
+
'partType': json['part_type'] == null ? undefined : json['part_type'],
|
|
51
55
|
'pathPartId': json['path_part_id'],
|
|
52
56
|
'name': json['name'],
|
|
53
|
-
'partType': PartTypeFromJSON(json['part_type']),
|
|
54
57
|
'parentPathId': json['parent_path_id'],
|
|
55
58
|
'metadataObjId': json['metadata_obj_id'],
|
|
56
59
|
'depth': json['depth'],
|
|
57
60
|
'content': json['content'] == null ? undefined : json['content'],
|
|
58
61
|
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
59
62
|
'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataOutputFromJSON(json['chunk_metadata']),
|
|
60
|
-
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
61
63
|
'materializedPath': json['materialized_path'],
|
|
62
64
|
'systemManaged': json['system_managed'],
|
|
63
65
|
'createdAt': (new Date(json['created_at'])),
|
|
64
66
|
'updatedAt': (new Date(json['updated_at'])),
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
|
-
export function
|
|
68
|
-
return
|
|
69
|
+
export function ChunkContentItemToJSON(json) {
|
|
70
|
+
return ChunkContentItemToJSONTyped(json, false);
|
|
69
71
|
}
|
|
70
|
-
export function
|
|
72
|
+
export function ChunkContentItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
73
|
if (value == null) {
|
|
72
74
|
return value;
|
|
73
75
|
}
|
|
74
76
|
return {
|
|
77
|
+
'part_type': value['partType'],
|
|
75
78
|
'path_part_id': value['pathPartId'],
|
|
76
79
|
'name': value['name'],
|
|
77
|
-
'part_type': PartTypeToJSON(value['partType']),
|
|
78
80
|
'parent_path_id': value['parentPathId'],
|
|
79
81
|
'metadata_obj_id': value['metadataObjId'],
|
|
80
82
|
'depth': value['depth'],
|
|
81
83
|
'content': value['content'],
|
|
82
84
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
83
85
|
'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
|
|
84
|
-
'page_number': value['pageNumber'],
|
|
85
86
|
'materialized_path': value['materializedPath'],
|
|
86
87
|
'system_managed': value['systemManaged'],
|
|
87
88
|
'created_at': value['createdAt'].toISOString(),
|
|
88
89
|
'updated_at': value['updatedAt'].toISOString(),
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
|
-
export const
|
|
92
|
+
export const ChunkContentItemPropertyValidationAttributesMap = {};
|
|
@@ -101,6 +101,12 @@ export interface ChunkResponse {
|
|
|
101
101
|
* @memberof ChunkResponse
|
|
102
102
|
*/
|
|
103
103
|
updatedAt: Date;
|
|
104
|
+
/**
|
|
105
|
+
* Presigned URL to download the chunk's visual asset (6-hour validity)
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof ChunkResponse
|
|
108
|
+
*/
|
|
109
|
+
assetS3Url?: string | null;
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
112
|
* Check if a given object implements the ChunkResponse interface.
|
|
@@ -65,6 +65,7 @@ export function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'tenantId': json['tenant_id'],
|
|
66
66
|
'createdAt': (new Date(json['created_at'])),
|
|
67
67
|
'updatedAt': (new Date(json['updated_at'])),
|
|
68
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
export function ChunkResponseToJSON(json) {
|
|
@@ -89,6 +90,7 @@ export function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
90
|
'tenant_id': value['tenantId'],
|
|
90
91
|
'created_at': value['createdAt'].toISOString(),
|
|
91
92
|
'updated_at': value['updatedAt'].toISOString(),
|
|
93
|
+
'asset_s3_url': value['assetS3Url'],
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
96
|
export const ChunkResponsePropertyValidationAttributesMap = {};
|
|
@@ -19,6 +19,12 @@ import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
|
19
19
|
* @interface DocumentResponse
|
|
20
20
|
*/
|
|
21
21
|
export interface DocumentResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Path part type
|
|
24
|
+
* @type {DocumentResponsePartTypeEnum}
|
|
25
|
+
* @memberof DocumentResponse
|
|
26
|
+
*/
|
|
27
|
+
partType?: DocumentResponsePartTypeEnum;
|
|
22
28
|
/**
|
|
23
29
|
* Document ID
|
|
24
30
|
* @type {string}
|
|
@@ -104,6 +110,13 @@ export interface DocumentResponse {
|
|
|
104
110
|
*/
|
|
105
111
|
tags?: Array<TagResponse> | null;
|
|
106
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const DocumentResponsePartTypeEnum: {
|
|
117
|
+
readonly Document: "DOCUMENT";
|
|
118
|
+
};
|
|
119
|
+
export type DocumentResponsePartTypeEnum = typeof DocumentResponsePartTypeEnum[keyof typeof DocumentResponsePartTypeEnum];
|
|
107
120
|
/**
|
|
108
121
|
* Check if a given object implements the DocumentResponse interface.
|
|
109
122
|
*/
|
|
@@ -15,6 +15,12 @@ import { DocumentOriginFromJSON, DocumentOriginToJSON, } from './DocumentOrigin'
|
|
|
15
15
|
import { TagResponseFromJSON, TagResponseToJSON, } from './TagResponse';
|
|
16
16
|
import { DocumentTypeFromJSON, DocumentTypeToJSON, } from './DocumentType';
|
|
17
17
|
import { DocumentVersionResponseFromJSON, DocumentVersionResponseToJSON, } from './DocumentVersionResponse';
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const DocumentResponsePartTypeEnum = {
|
|
22
|
+
Document: 'DOCUMENT'
|
|
23
|
+
};
|
|
18
24
|
/**
|
|
19
25
|
* Check if a given object implements the DocumentResponse interface.
|
|
20
26
|
*/
|
|
@@ -55,6 +61,7 @@ export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
61
|
return json;
|
|
56
62
|
}
|
|
57
63
|
return {
|
|
64
|
+
'partType': json['part_type'] == null ? undefined : json['part_type'],
|
|
58
65
|
'id': json['id'],
|
|
59
66
|
'pathPartId': json['path_part_id'],
|
|
60
67
|
'name': json['name'],
|
|
@@ -79,6 +86,7 @@ export function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
79
86
|
return value;
|
|
80
87
|
}
|
|
81
88
|
return {
|
|
89
|
+
'part_type': value['partType'],
|
|
82
90
|
'id': value['id'],
|
|
83
91
|
'path_part_id': value['pathPartId'],
|
|
84
92
|
'name': value['name'],
|
|
@@ -16,6 +16,12 @@ import type { TagResponse } from './TagResponse';
|
|
|
16
16
|
* @interface FolderResponse
|
|
17
17
|
*/
|
|
18
18
|
export interface FolderResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Path part type
|
|
21
|
+
* @type {FolderResponsePartTypeEnum}
|
|
22
|
+
* @memberof FolderResponse
|
|
23
|
+
*/
|
|
24
|
+
partType?: FolderResponsePartTypeEnum;
|
|
19
25
|
/**
|
|
20
26
|
* Folder ID
|
|
21
27
|
* @type {string}
|
|
@@ -77,6 +83,13 @@ export interface FolderResponse {
|
|
|
77
83
|
*/
|
|
78
84
|
tags?: Array<TagResponse> | null;
|
|
79
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const FolderResponsePartTypeEnum: {
|
|
90
|
+
readonly Folder: "FOLDER";
|
|
91
|
+
};
|
|
92
|
+
export type FolderResponsePartTypeEnum = typeof FolderResponsePartTypeEnum[keyof typeof FolderResponsePartTypeEnum];
|
|
80
93
|
/**
|
|
81
94
|
* Check if a given object implements the FolderResponse interface.
|
|
82
95
|
*/
|