@knowledge-stack/ksapi 1.72.4 → 1.77.1
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 +36 -4
- package/README.md +33 -11
- package/dist/apis/AgentApi.d.ts +114 -0
- package/dist/apis/AgentApi.js +156 -0
- package/dist/apis/ChunksApi.d.ts +19 -16
- package/dist/apis/ChunksApi.js +9 -6
- package/dist/apis/DocumentsApi.d.ts +4 -4
- package/dist/apis/DocumentsApi.js +2 -2
- package/dist/apis/FoldersApi.d.ts +4 -4
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/apis/InvitesApi.d.ts +54 -7
- package/dist/apis/InvitesApi.js +51 -2
- package/dist/apis/PublicApi.d.ts +59 -0
- package/dist/apis/PublicApi.js +103 -0
- package/dist/apis/SubscriptionsApi.d.ts +120 -0
- package/dist/apis/SubscriptionsApi.js +162 -0
- package/dist/apis/TenantsApi.d.ts +45 -1
- package/dist/apis/TenantsApi.js +44 -0
- package/dist/apis/ThreadsApi.d.ts +4 -4
- package/dist/apis/ThreadsApi.js +2 -2
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/AgentApi.d.ts +114 -0
- package/dist/esm/apis/AgentApi.js +119 -0
- package/dist/esm/apis/ChunksApi.d.ts +19 -16
- package/dist/esm/apis/ChunksApi.js +9 -6
- package/dist/esm/apis/DocumentsApi.d.ts +4 -4
- package/dist/esm/apis/DocumentsApi.js +2 -2
- package/dist/esm/apis/FoldersApi.d.ts +4 -4
- package/dist/esm/apis/FoldersApi.js +2 -2
- package/dist/esm/apis/InvitesApi.d.ts +54 -7
- package/dist/esm/apis/InvitesApi.js +52 -3
- package/dist/esm/apis/PublicApi.d.ts +59 -0
- package/dist/esm/apis/PublicApi.js +66 -0
- package/dist/esm/apis/SubscriptionsApi.d.ts +120 -0
- package/dist/esm/apis/SubscriptionsApi.js +125 -0
- package/dist/esm/apis/TenantsApi.d.ts +45 -1
- package/dist/esm/apis/TenantsApi.js +45 -1
- package/dist/esm/apis/ThreadsApi.d.ts +4 -4
- package/dist/esm/apis/ThreadsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AcceptInviteResponse.d.ts +6 -0
- package/dist/esm/models/AcceptInviteResponse.js +2 -0
- package/dist/esm/models/AskRequest.d.ts +47 -0
- package/dist/esm/models/AskRequest.js +44 -0
- package/dist/esm/models/AskResponse.d.ts +47 -0
- package/dist/esm/models/AskResponse.js +44 -0
- package/dist/esm/models/ChangeSubscriptionRequest.d.ts +53 -0
- package/dist/esm/models/ChangeSubscriptionRequest.js +53 -0
- package/dist/esm/models/CheckpointDetails.d.ts +96 -0
- package/dist/esm/models/CheckpointDetails.js +91 -0
- package/dist/esm/models/ChunkBulkResponse.d.ts +3 -3
- package/dist/esm/models/ChunkBulkResponse.js +3 -3
- package/dist/esm/models/ChunkContentItem.d.ts +3 -3
- package/dist/esm/models/ChunkContentItem.js +3 -3
- package/dist/esm/models/{ChunkMetadataInput.d.ts → ChunkMetadata.d.ts} +23 -23
- package/dist/esm/models/{ChunkMetadataInput.js → ChunkMetadata.js} +9 -9
- package/dist/esm/models/ChunkNeighborsResponse.d.ts +18 -0
- package/dist/esm/models/ChunkNeighborsResponse.js +10 -0
- package/dist/esm/models/ChunkResponse.d.ts +3 -3
- package/dist/esm/models/ChunkResponse.js +3 -3
- package/dist/esm/models/CreateChunkRequest.d.ts +3 -3
- package/dist/esm/models/CreateChunkRequest.js +3 -3
- package/dist/esm/models/DocumentResponse.d.ts +6 -0
- package/dist/esm/models/DocumentResponse.js +4 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +24 -0
- package/dist/esm/models/DocumentVersionMetadata.js +8 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +24 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +8 -0
- package/dist/esm/models/ExtractRequest.d.ts +61 -0
- package/dist/esm/models/ExtractRequest.js +48 -0
- package/dist/esm/models/ExtractResponse.d.ts +49 -0
- package/dist/esm/models/ExtractResponse.js +44 -0
- package/dist/esm/models/FolderResponse.d.ts +6 -0
- package/dist/esm/models/FolderResponse.js +4 -0
- package/dist/esm/models/InviteLinkSettingsRequest.d.ts +70 -0
- package/dist/esm/models/InviteLinkSettingsRequest.js +58 -0
- package/dist/esm/models/InviteLinkSettingsResponse.d.ts +67 -0
- package/dist/esm/models/InviteLinkSettingsResponse.js +57 -0
- package/dist/esm/models/InviteResponse.d.ts +6 -0
- package/dist/esm/models/InviteResponse.js +2 -0
- package/dist/esm/models/InviteUserRequest.d.ts +6 -0
- package/dist/esm/models/InviteUserRequest.js +8 -1
- package/dist/esm/models/LineageNodeResponse.d.ts +3 -3
- package/dist/esm/models/LineageNodeResponse.js +3 -3
- package/dist/esm/models/MeteredQuotaStatus.d.ts +72 -0
- package/dist/esm/models/MeteredQuotaStatus.js +61 -0
- package/dist/esm/models/PathPartAncestorItem.d.ts +6 -0
- package/dist/esm/models/PathPartAncestorItem.js +4 -0
- package/dist/esm/models/PathPartResponse.d.ts +6 -0
- package/dist/esm/models/PathPartResponse.js +4 -0
- package/dist/esm/models/PipelineStatus.d.ts +1 -0
- package/dist/esm/models/PipelineStatus.js +2 -1
- package/dist/esm/models/ScoredChunkResponse.d.ts +3 -3
- package/dist/esm/models/ScoredChunkResponse.js +3 -3
- package/dist/esm/models/SeatQuotaStatus.d.ts +55 -0
- package/dist/esm/models/SeatQuotaStatus.js +48 -0
- package/dist/esm/models/SubscriptionPlanResponse.d.ts +101 -0
- package/dist/esm/models/SubscriptionPlanResponse.js +76 -0
- package/dist/esm/models/TenantQuotaStateResponse.d.ts +55 -0
- package/dist/esm/models/TenantQuotaStateResponse.js +50 -0
- package/dist/esm/models/TenantResponse.d.ts +12 -0
- package/dist/esm/models/TenantResponse.js +14 -1
- package/dist/esm/models/TenantSettingsResponse.d.ts +7 -0
- package/dist/esm/models/TenantSettingsResponse.js +5 -0
- package/dist/esm/models/TenantSettingsUpdate.d.ts +7 -0
- package/dist/esm/models/TenantSettingsUpdate.js +3 -0
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +7 -0
- package/dist/esm/models/ThreadMessageDetailsInput.js +3 -0
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +7 -0
- package/dist/esm/models/ThreadMessageDetailsOutput.js +3 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +3 -3
- package/dist/esm/models/UpdateChunkMetadataRequest.js +3 -3
- package/dist/esm/models/UpdateDocumentRequest.d.ts +7 -1
- package/dist/esm/models/UpdateDocumentRequest.js +2 -0
- package/dist/esm/models/UpdateFolderRequest.d.ts +7 -1
- package/dist/esm/models/UpdateFolderRequest.js +2 -0
- package/dist/esm/models/UpdateInviteRequest.d.ts +53 -0
- package/dist/esm/models/UpdateInviteRequest.js +49 -0
- package/dist/esm/models/UsageMetric.d.ts +26 -0
- package/dist/esm/models/UsageMetric.js +44 -0
- package/dist/esm/models/index.d.ts +15 -2
- package/dist/esm/models/index.js +15 -2
- package/dist/models/AcceptInviteResponse.d.ts +6 -0
- package/dist/models/AcceptInviteResponse.js +2 -0
- package/dist/models/AskRequest.d.ts +47 -0
- package/dist/models/AskRequest.js +52 -0
- package/dist/models/AskResponse.d.ts +47 -0
- package/dist/models/AskResponse.js +52 -0
- package/dist/models/ChangeSubscriptionRequest.d.ts +53 -0
- package/dist/models/ChangeSubscriptionRequest.js +61 -0
- package/dist/models/CheckpointDetails.d.ts +96 -0
- package/dist/models/CheckpointDetails.js +99 -0
- package/dist/models/ChunkBulkResponse.d.ts +3 -3
- package/dist/models/ChunkBulkResponse.js +3 -3
- package/dist/models/ChunkContentItem.d.ts +3 -3
- package/dist/models/ChunkContentItem.js +3 -3
- package/dist/models/{ChunkMetadataInput.d.ts → ChunkMetadata.d.ts} +23 -23
- package/dist/models/{ChunkMetadataInput.js → ChunkMetadata.js} +15 -15
- package/dist/models/ChunkNeighborsResponse.d.ts +18 -0
- package/dist/models/ChunkNeighborsResponse.js +10 -0
- package/dist/models/ChunkResponse.d.ts +3 -3
- package/dist/models/ChunkResponse.js +3 -3
- package/dist/models/CreateChunkRequest.d.ts +3 -3
- package/dist/models/CreateChunkRequest.js +3 -3
- package/dist/models/DocumentResponse.d.ts +6 -0
- package/dist/models/DocumentResponse.js +4 -0
- package/dist/models/DocumentVersionMetadata.d.ts +24 -0
- package/dist/models/DocumentVersionMetadata.js +8 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +24 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +8 -0
- package/dist/models/ExtractRequest.d.ts +61 -0
- package/dist/models/ExtractRequest.js +56 -0
- package/dist/models/ExtractResponse.d.ts +49 -0
- package/dist/models/ExtractResponse.js +52 -0
- package/dist/models/FolderResponse.d.ts +6 -0
- package/dist/models/FolderResponse.js +4 -0
- package/dist/models/InviteLinkSettingsRequest.d.ts +70 -0
- package/dist/models/InviteLinkSettingsRequest.js +66 -0
- package/dist/models/InviteLinkSettingsResponse.d.ts +67 -0
- package/dist/models/InviteLinkSettingsResponse.js +65 -0
- package/dist/models/InviteResponse.d.ts +6 -0
- package/dist/models/InviteResponse.js +2 -0
- package/dist/models/InviteUserRequest.d.ts +6 -0
- package/dist/models/InviteUserRequest.js +8 -1
- package/dist/models/LineageNodeResponse.d.ts +3 -3
- package/dist/models/LineageNodeResponse.js +3 -3
- package/dist/models/MeteredQuotaStatus.d.ts +72 -0
- package/dist/models/MeteredQuotaStatus.js +69 -0
- package/dist/models/PathPartAncestorItem.d.ts +6 -0
- package/dist/models/PathPartAncestorItem.js +4 -0
- package/dist/models/PathPartResponse.d.ts +6 -0
- package/dist/models/PathPartResponse.js +4 -0
- package/dist/models/PipelineStatus.d.ts +1 -0
- package/dist/models/PipelineStatus.js +2 -1
- package/dist/models/ScoredChunkResponse.d.ts +3 -3
- package/dist/models/ScoredChunkResponse.js +3 -3
- package/dist/models/SeatQuotaStatus.d.ts +55 -0
- package/dist/models/SeatQuotaStatus.js +56 -0
- package/dist/models/SubscriptionPlanResponse.d.ts +101 -0
- package/dist/models/SubscriptionPlanResponse.js +84 -0
- package/dist/models/TenantQuotaStateResponse.d.ts +55 -0
- package/dist/models/TenantQuotaStateResponse.js +58 -0
- package/dist/models/TenantResponse.d.ts +12 -0
- package/dist/models/TenantResponse.js +14 -1
- package/dist/models/TenantSettingsResponse.d.ts +7 -0
- package/dist/models/TenantSettingsResponse.js +5 -0
- package/dist/models/TenantSettingsUpdate.d.ts +7 -0
- package/dist/models/TenantSettingsUpdate.js +3 -0
- package/dist/models/ThreadMessageDetailsInput.d.ts +7 -0
- package/dist/models/ThreadMessageDetailsInput.js +3 -0
- package/dist/models/ThreadMessageDetailsOutput.d.ts +7 -0
- package/dist/models/ThreadMessageDetailsOutput.js +3 -0
- package/dist/models/UpdateChunkMetadataRequest.d.ts +3 -3
- package/dist/models/UpdateChunkMetadataRequest.js +3 -3
- package/dist/models/UpdateDocumentRequest.d.ts +7 -1
- package/dist/models/UpdateDocumentRequest.js +2 -0
- package/dist/models/UpdateFolderRequest.d.ts +7 -1
- package/dist/models/UpdateFolderRequest.js +2 -0
- package/dist/models/UpdateInviteRequest.d.ts +53 -0
- package/dist/models/UpdateInviteRequest.js +57 -0
- package/dist/models/UsageMetric.d.ts +26 -0
- package/dist/models/UsageMetric.js +52 -0
- package/dist/models/index.d.ts +15 -2
- package/dist/models/index.js +15 -2
- package/docs/AcceptInviteResponse.md +2 -0
- package/docs/AgentApi.md +158 -0
- package/docs/AskRequest.md +35 -0
- package/docs/AskResponse.md +35 -0
- package/docs/ChangeSubscriptionRequest.md +37 -0
- package/docs/CheckpointDetails.md +49 -0
- package/docs/ChunkBulkResponse.md +1 -1
- package/docs/ChunkContentItem.md +1 -1
- package/docs/{ChunkMetadataInput.md → ChunkMetadata.md} +4 -4
- package/docs/ChunkNeighborsResponse.md +6 -0
- package/docs/ChunkResponse.md +1 -1
- package/docs/ChunksApi.md +13 -10
- package/docs/CreateChunkRequest.md +1 -1
- package/docs/DocumentResponse.md +2 -0
- package/docs/DocumentVersionMetadata.md +8 -0
- package/docs/DocumentVersionMetadataUpdate.md +8 -0
- package/docs/DocumentsApi.md +1 -1
- package/docs/ExtractRequest.md +39 -0
- package/docs/ExtractResponse.md +35 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/FolderResponseOrDocumentResponse.md +2 -0
- package/docs/FoldersApi.md +1 -1
- package/docs/InviteLinkSettingsRequest.md +39 -0
- package/docs/InviteLinkSettingsResponse.md +39 -0
- package/docs/InviteResponse.md +2 -0
- package/docs/InviteUserRequest.md +2 -0
- package/docs/InvitesApi.md +81 -3
- package/docs/LineageNodeResponse.md +1 -1
- package/docs/MeteredQuotaStatus.md +43 -0
- package/docs/PathPartAncestorItem.md +2 -0
- package/docs/PathPartResponse.md +2 -0
- package/docs/PublicApi.md +68 -0
- package/docs/ScoredChunkResponse.md +1 -1
- package/docs/SeatQuotaStatus.md +37 -0
- package/docs/SectionContentItemOrChunkContentItem.md +1 -1
- package/docs/SubscriptionPlanResponse.md +51 -0
- package/docs/SubscriptionsApi.md +164 -0
- package/docs/TenantQuotaStateResponse.md +37 -0
- package/docs/TenantResponse.md +4 -0
- package/docs/TenantSettingsResponse.md +2 -0
- package/docs/TenantSettingsUpdate.md +2 -0
- package/docs/TenantsApi.md +75 -0
- package/docs/ThreadMessageDetailsInput.md +2 -0
- package/docs/ThreadMessageDetailsOutput.md +2 -0
- package/docs/ThreadsApi.md +1 -1
- package/docs/UpdateChunkMetadataRequest.md +1 -1
- package/docs/UpdateDocumentRequest.md +3 -1
- package/docs/UpdateFolderRequest.md +3 -1
- package/docs/UpdateInviteRequest.md +37 -0
- package/docs/UsageMetric.md +32 -0
- package/package.json +1 -1
- package/src/apis/AgentApi.ts +225 -0
- package/src/apis/ChunksApi.ts +27 -17
- package/src/apis/DocumentsApi.ts +4 -4
- package/src/apis/FoldersApi.ts +4 -4
- package/src/apis/InvitesApi.ts +107 -6
- package/src/apis/PublicApi.ts +100 -0
- package/src/apis/SubscriptionsApi.ts +238 -0
- package/src/apis/TenantsApi.ts +88 -0
- package/src/apis/ThreadsApi.ts +4 -4
- package/src/apis/index.ts +3 -0
- package/src/models/AcceptInviteResponse.ts +8 -0
- package/src/models/AskRequest.ts +83 -0
- package/src/models/AskResponse.ts +83 -0
- package/src/models/ChangeSubscriptionRequest.ts +96 -0
- package/src/models/CheckpointDetails.ts +169 -0
- package/src/models/ChunkBulkResponse.ts +11 -11
- package/src/models/ChunkContentItem.ts +10 -10
- package/src/models/{ChunkMetadataInput.ts → ChunkMetadata.ts} +25 -25
- package/src/models/ChunkNeighborsResponse.ts +26 -0
- package/src/models/ChunkResponse.ts +11 -11
- package/src/models/CreateChunkRequest.ts +10 -10
- package/src/models/DocumentResponse.ts +9 -0
- package/src/models/DocumentVersionMetadata.ts +32 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +32 -0
- package/src/models/ExtractRequest.ts +99 -0
- package/src/models/ExtractResponse.ts +83 -0
- package/src/models/FolderResponse.ts +9 -0
- package/src/models/InviteLinkSettingsRequest.ts +116 -0
- package/src/models/InviteLinkSettingsResponse.ts +111 -0
- package/src/models/InviteResponse.ts +8 -0
- package/src/models/InviteUserRequest.ts +12 -0
- package/src/models/LineageNodeResponse.ts +10 -10
- package/src/models/MeteredQuotaStatus.ts +129 -0
- package/src/models/PathPartAncestorItem.ts +9 -0
- package/src/models/PathPartResponse.ts +9 -0
- package/src/models/PipelineStatus.ts +2 -1
- package/src/models/ScoredChunkResponse.ts +11 -11
- package/src/models/SeatQuotaStatus.ts +94 -0
- package/src/models/SubscriptionPlanResponse.ts +161 -0
- package/src/models/TenantQuotaStateResponse.ts +107 -0
- package/src/models/TenantResponse.ts +22 -0
- package/src/models/TenantSettingsResponse.ts +16 -0
- package/src/models/TenantSettingsUpdate.ts +15 -0
- package/src/models/ThreadMessageDetailsInput.ts +15 -0
- package/src/models/ThreadMessageDetailsOutput.ts +15 -0
- package/src/models/UpdateChunkMetadataRequest.ts +10 -10
- package/src/models/UpdateDocumentRequest.ts +9 -1
- package/src/models/UpdateFolderRequest.ts +9 -1
- package/src/models/UpdateInviteRequest.ts +94 -0
- package/src/models/UsageMetric.ts +54 -0
- package/src/models/index.ts +15 -2
- package/dist/esm/models/ChunkMetadataOutput.d.ts +0 -135
- package/dist/esm/models/ChunkMetadataOutput.js +0 -70
- package/dist/models/ChunkMetadataOutput.d.ts +0 -135
- package/dist/models/ChunkMetadataOutput.js +0 -78
- package/docs/ChunkMetadataOutput.md +0 -61
- package/src/models/ChunkMetadataOutput.ts +0 -203
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Partial update for an invite (admin/owner only).
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateInviteRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateInviteRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof UpdateInviteRequest
|
|
26
|
+
*/
|
|
27
|
+
expiresAt?: Date | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof UpdateInviteRequest
|
|
32
|
+
*/
|
|
33
|
+
groups?: Array<string> | null;
|
|
34
|
+
}
|
|
35
|
+
export const UpdateInviteRequestPropertyValidationAttributesMap: {
|
|
36
|
+
[property: string]: {
|
|
37
|
+
maxLength?: number,
|
|
38
|
+
minLength?: number,
|
|
39
|
+
pattern?: string,
|
|
40
|
+
maximum?: number,
|
|
41
|
+
exclusiveMaximum?: boolean,
|
|
42
|
+
minimum?: number,
|
|
43
|
+
exclusiveMinimum?: boolean,
|
|
44
|
+
multipleOf?: number,
|
|
45
|
+
maxItems?: number,
|
|
46
|
+
minItems?: number,
|
|
47
|
+
uniqueItems?: boolean
|
|
48
|
+
}
|
|
49
|
+
} = {
|
|
50
|
+
groups: {
|
|
51
|
+
maxItems: 10,
|
|
52
|
+
uniqueItems: false,
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the UpdateInviteRequest interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfUpdateInviteRequest(value: object): value is UpdateInviteRequest {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UpdateInviteRequestFromJSON(json: any): UpdateInviteRequest {
|
|
65
|
+
return UpdateInviteRequestFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function UpdateInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInviteRequest {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
75
|
+
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function UpdateInviteRequestToJSON(json: any): UpdateInviteRequest {
|
|
80
|
+
return UpdateInviteRequestToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function UpdateInviteRequestToJSONTyped(value?: UpdateInviteRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
91
|
+
'groups': value['groups'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const UsageMetric = {
|
|
21
|
+
Page: 'PAGE',
|
|
22
|
+
Search: 'SEARCH',
|
|
23
|
+
Message: 'MESSAGE'
|
|
24
|
+
} as const;
|
|
25
|
+
export type UsageMetric = typeof UsageMetric[keyof typeof UsageMetric];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfUsageMetric(value: any): boolean {
|
|
29
|
+
for (const key in UsageMetric) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(UsageMetric, key)) {
|
|
31
|
+
if (UsageMetric[key as keyof typeof UsageMetric] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function UsageMetricFromJSON(json: any): UsageMetric {
|
|
40
|
+
return UsageMetricFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UsageMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageMetric {
|
|
44
|
+
return json as UsageMetric;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UsageMetricToJSON(value?: UsageMetric | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UsageMetricToJSONTyped(value: any, ignoreDiscriminator: boolean): UsageMetric {
|
|
52
|
+
return value as UsageMetric;
|
|
53
|
+
}
|
|
54
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -6,15 +6,18 @@ export * from './AddMemberRequest';
|
|
|
6
6
|
export * from './AncestryResponse';
|
|
7
7
|
export * from './ApiKeyResponse';
|
|
8
8
|
export * from './Args';
|
|
9
|
+
export * from './AskRequest';
|
|
10
|
+
export * from './AskResponse';
|
|
9
11
|
export * from './BrandingLogoType';
|
|
10
12
|
export * from './BulkTagRequest';
|
|
13
|
+
export * from './ChangeSubscriptionRequest';
|
|
14
|
+
export * from './CheckpointDetails';
|
|
11
15
|
export * from './ChunkBulkResponse';
|
|
12
16
|
export * from './ChunkContentItem';
|
|
13
17
|
export * from './ChunkDocumentResponse';
|
|
14
18
|
export * from './ChunkDocumentVersionResponse';
|
|
15
19
|
export * from './ChunkLineageResponse';
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './ChunkMetadataOutput';
|
|
20
|
+
export * from './ChunkMetadata';
|
|
18
21
|
export * from './ChunkNeighborsResponse';
|
|
19
22
|
export * from './ChunkResponse';
|
|
20
23
|
export * from './ChunkSearchRequest';
|
|
@@ -51,6 +54,8 @@ export * from './EmailSentResponse';
|
|
|
51
54
|
export * from './EmailVerificationRequest';
|
|
52
55
|
export * from './EnrichedCitation';
|
|
53
56
|
export * from './EnrichedThreadMessageContent';
|
|
57
|
+
export * from './ExtractRequest';
|
|
58
|
+
export * from './ExtractResponse';
|
|
54
59
|
export * from './FeaturesResponse';
|
|
55
60
|
export * from './FeedbackEventResponse';
|
|
56
61
|
export * from './FeedbackRating';
|
|
@@ -71,6 +76,8 @@ export * from './ImageTaxonomy';
|
|
|
71
76
|
export * from './InformationStatistics';
|
|
72
77
|
export * from './IngestDocumentResponse';
|
|
73
78
|
export * from './IngestionMode';
|
|
79
|
+
export * from './InviteLinkSettingsRequest';
|
|
80
|
+
export * from './InviteLinkSettingsResponse';
|
|
74
81
|
export * from './InviteResponse';
|
|
75
82
|
export * from './InviteStatus';
|
|
76
83
|
export * from './InviteUserRequest';
|
|
@@ -81,6 +88,7 @@ export * from './LineageNodeResponse';
|
|
|
81
88
|
export * from './LocationInner';
|
|
82
89
|
export * from './MembershipResponse';
|
|
83
90
|
export * from './MessageRole';
|
|
91
|
+
export * from './MeteredQuotaStatus';
|
|
84
92
|
export * from './NonFilesystemReferenceType';
|
|
85
93
|
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
|
|
86
94
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
@@ -124,6 +132,7 @@ export * from './ScoredChunkResponse';
|
|
|
124
132
|
export * from './SearchSortOrder';
|
|
125
133
|
export * from './SearchType';
|
|
126
134
|
export * from './SearchablePartType';
|
|
135
|
+
export * from './SeatQuotaStatus';
|
|
127
136
|
export * from './SectionContentItem';
|
|
128
137
|
export * from './SectionContentItemOrChunkContentItem';
|
|
129
138
|
export * from './SectionResponse';
|
|
@@ -135,6 +144,7 @@ export * from './StepInput';
|
|
|
135
144
|
export * from './StepKind';
|
|
136
145
|
export * from './StepOutput';
|
|
137
146
|
export * from './SubmitFeedbackRequest';
|
|
147
|
+
export * from './SubscriptionPlanResponse';
|
|
138
148
|
export * from './SubtreeChunkGroup';
|
|
139
149
|
export * from './SubtreeChunksResponse';
|
|
140
150
|
export * from './SupportedIdP';
|
|
@@ -142,6 +152,7 @@ export * from './SupportedLanguage';
|
|
|
142
152
|
export * from './TagResponse';
|
|
143
153
|
export * from './TemporalWorkflowStatusResponse';
|
|
144
154
|
export * from './TenantBrandingResponse';
|
|
155
|
+
export * from './TenantQuotaStateResponse';
|
|
145
156
|
export * from './TenantResponse';
|
|
146
157
|
export * from './TenantSettingsResponse';
|
|
147
158
|
export * from './TenantSettingsUpdate';
|
|
@@ -159,6 +170,7 @@ export * from './UpdateDocumentRequest';
|
|
|
159
170
|
export * from './UpdateFolderRequest';
|
|
160
171
|
export * from './UpdateGroupPermissionRequest';
|
|
161
172
|
export * from './UpdateGroupRequest';
|
|
173
|
+
export * from './UpdateInviteRequest';
|
|
162
174
|
export * from './UpdatePermissionRequest';
|
|
163
175
|
export * from './UpdateSectionRequest';
|
|
164
176
|
export * from './UpdateTagRequest';
|
|
@@ -166,6 +178,7 @@ export * from './UpdateTenantRequest';
|
|
|
166
178
|
export * from './UpdateThreadRequest';
|
|
167
179
|
export * from './UpdateUserRequest';
|
|
168
180
|
export * from './UpdateWorkflowDefinitionRequest';
|
|
181
|
+
export * from './UsageMetric';
|
|
169
182
|
export * from './UserMessageRequest';
|
|
170
183
|
export * from './UserMessageResponse';
|
|
171
184
|
export * from './UserResponse';
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Knowledge Stack API
|
|
3
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
|
-
import type { PolygonReference } from './PolygonReference';
|
|
14
|
-
/**
|
|
15
|
-
* Metadata for a chunk including source document references.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ChunkMetadataOutput
|
|
18
|
-
*/
|
|
19
|
-
export interface ChunkMetadataOutput {
|
|
20
|
-
/**
|
|
21
|
-
* List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages.
|
|
22
|
-
* @type {Array<PolygonReference>}
|
|
23
|
-
* @memberof ChunkMetadataOutput
|
|
24
|
-
*/
|
|
25
|
-
polygons?: Array<PolygonReference>;
|
|
26
|
-
/**
|
|
27
|
-
* Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion.
|
|
28
|
-
* @type {Array<string>}
|
|
29
|
-
* @memberof ChunkMetadataOutput
|
|
30
|
-
*/
|
|
31
|
-
s3Urls?: Array<string>;
|
|
32
|
-
/**
|
|
33
|
-
* LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ChunkMetadataOutput
|
|
36
|
-
*/
|
|
37
|
-
summary?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof ChunkMetadataOutput
|
|
42
|
-
*/
|
|
43
|
-
extractedTextS3Uri?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {ImageTaxonomy}
|
|
47
|
-
* @memberof ChunkMetadataOutput
|
|
48
|
-
*/
|
|
49
|
-
secondaryTaxonomy?: ImageTaxonomy;
|
|
50
|
-
/**
|
|
51
|
-
* Worksheet name this chunk was extracted from (XLSX only)
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof ChunkMetadataOutput
|
|
54
|
-
*/
|
|
55
|
-
sheetName?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* XLSXParser block type (e.g. table, calculation_block, chart_anchor)
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof ChunkMetadataOutput
|
|
60
|
-
*/
|
|
61
|
-
blockType?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* Cell range URI reference in the source workbook (XLSX only)
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof ChunkMetadataOutput
|
|
66
|
-
*/
|
|
67
|
-
sourceUri?: string | null;
|
|
68
|
-
/**
|
|
69
|
-
* Rendered HTML for non-table XLSX chunks (tables use render_html as content)
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof ChunkMetadataOutput
|
|
72
|
-
*/
|
|
73
|
-
enrichedHtml?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* Cell address range, e.g. 'A1:D10' (XLSX only)
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof ChunkMetadataOutput
|
|
78
|
-
*/
|
|
79
|
-
cellRange?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
* Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
|
|
82
|
-
* @type {{ [key: string]: any; }}
|
|
83
|
-
* @memberof ChunkMetadataOutput
|
|
84
|
-
*/
|
|
85
|
-
dependencySummary?: {
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
} | null;
|
|
88
|
-
/**
|
|
89
|
-
* Formula cells in this chunk as [{address, formula, value}] (XLSX only)
|
|
90
|
-
* @type {Array<{ [key: string]: string; }>}
|
|
91
|
-
* @memberof ChunkMetadataOutput
|
|
92
|
-
*/
|
|
93
|
-
formulas?: Array<{
|
|
94
|
-
[key: string]: string;
|
|
95
|
-
}> | null;
|
|
96
|
-
/**
|
|
97
|
-
* Notable output/header cells for quick identification (XLSX only)
|
|
98
|
-
* @type {Array<{ [key: string]: any; }>}
|
|
99
|
-
* @memberof ChunkMetadataOutput
|
|
100
|
-
*/
|
|
101
|
-
keyCells?: Array<{
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
}> | null;
|
|
104
|
-
/**
|
|
105
|
-
* Named ranges overlapping this chunk (XLSX only)
|
|
106
|
-
* @type {Array<{ [key: string]: any; }>}
|
|
107
|
-
* @memberof ChunkMetadataOutput
|
|
108
|
-
*/
|
|
109
|
-
namedRanges?: Array<{
|
|
110
|
-
[key: string]: any;
|
|
111
|
-
}> | null;
|
|
112
|
-
}
|
|
113
|
-
export declare const ChunkMetadataOutputPropertyValidationAttributesMap: {
|
|
114
|
-
[property: string]: {
|
|
115
|
-
maxLength?: number;
|
|
116
|
-
minLength?: number;
|
|
117
|
-
pattern?: string;
|
|
118
|
-
maximum?: number;
|
|
119
|
-
exclusiveMaximum?: boolean;
|
|
120
|
-
minimum?: number;
|
|
121
|
-
exclusiveMinimum?: boolean;
|
|
122
|
-
multipleOf?: number;
|
|
123
|
-
maxItems?: number;
|
|
124
|
-
minItems?: number;
|
|
125
|
-
uniqueItems?: boolean;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Check if a given object implements the ChunkMetadataOutput interface.
|
|
130
|
-
*/
|
|
131
|
-
export declare function instanceOfChunkMetadataOutput(value: object): value is ChunkMetadataOutput;
|
|
132
|
-
export declare function ChunkMetadataOutputFromJSON(json: any): ChunkMetadataOutput;
|
|
133
|
-
export declare function ChunkMetadataOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkMetadataOutput;
|
|
134
|
-
export declare function ChunkMetadataOutputToJSON(json: any): ChunkMetadataOutput;
|
|
135
|
-
export declare function ChunkMetadataOutputToJSONTyped(value?: ChunkMetadataOutput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
|
|
15
|
-
import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
|
|
16
|
-
export const ChunkMetadataOutputPropertyValidationAttributesMap = {};
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ChunkMetadataOutput interface.
|
|
19
|
-
*/
|
|
20
|
-
export function instanceOfChunkMetadataOutput(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function ChunkMetadataOutputFromJSON(json) {
|
|
24
|
-
return ChunkMetadataOutputFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReferenceFromJSON)),
|
|
32
|
-
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
33
|
-
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
34
|
-
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
35
|
-
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
36
|
-
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
37
|
-
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
38
|
-
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
39
|
-
'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
|
|
40
|
-
'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
|
|
41
|
-
'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
|
|
42
|
-
'formulas': json['formulas'] == null ? undefined : json['formulas'],
|
|
43
|
-
'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
|
|
44
|
-
'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export function ChunkMetadataOutputToJSON(json) {
|
|
48
|
-
return ChunkMetadataOutputToJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
export function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReferenceToJSON)),
|
|
56
|
-
's3_urls': value['s3Urls'],
|
|
57
|
-
'summary': value['summary'],
|
|
58
|
-
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
59
|
-
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
60
|
-
'sheet_name': value['sheetName'],
|
|
61
|
-
'block_type': value['blockType'],
|
|
62
|
-
'source_uri': value['sourceUri'],
|
|
63
|
-
'enriched_html': value['enrichedHtml'],
|
|
64
|
-
'cell_range': value['cellRange'],
|
|
65
|
-
'dependency_summary': value['dependencySummary'],
|
|
66
|
-
'formulas': value['formulas'],
|
|
67
|
-
'key_cells': value['keyCells'],
|
|
68
|
-
'named_ranges': value['namedRanges'],
|
|
69
|
-
};
|
|
70
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Knowledge Stack API
|
|
3
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
|
-
import type { PolygonReference } from './PolygonReference';
|
|
14
|
-
/**
|
|
15
|
-
* Metadata for a chunk including source document references.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ChunkMetadataOutput
|
|
18
|
-
*/
|
|
19
|
-
export interface ChunkMetadataOutput {
|
|
20
|
-
/**
|
|
21
|
-
* List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages.
|
|
22
|
-
* @type {Array<PolygonReference>}
|
|
23
|
-
* @memberof ChunkMetadataOutput
|
|
24
|
-
*/
|
|
25
|
-
polygons?: Array<PolygonReference>;
|
|
26
|
-
/**
|
|
27
|
-
* Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion.
|
|
28
|
-
* @type {Array<string>}
|
|
29
|
-
* @memberof ChunkMetadataOutput
|
|
30
|
-
*/
|
|
31
|
-
s3Urls?: Array<string>;
|
|
32
|
-
/**
|
|
33
|
-
* LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ChunkMetadataOutput
|
|
36
|
-
*/
|
|
37
|
-
summary?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof ChunkMetadataOutput
|
|
42
|
-
*/
|
|
43
|
-
extractedTextS3Uri?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {ImageTaxonomy}
|
|
47
|
-
* @memberof ChunkMetadataOutput
|
|
48
|
-
*/
|
|
49
|
-
secondaryTaxonomy?: ImageTaxonomy;
|
|
50
|
-
/**
|
|
51
|
-
* Worksheet name this chunk was extracted from (XLSX only)
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof ChunkMetadataOutput
|
|
54
|
-
*/
|
|
55
|
-
sheetName?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* XLSXParser block type (e.g. table, calculation_block, chart_anchor)
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof ChunkMetadataOutput
|
|
60
|
-
*/
|
|
61
|
-
blockType?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* Cell range URI reference in the source workbook (XLSX only)
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof ChunkMetadataOutput
|
|
66
|
-
*/
|
|
67
|
-
sourceUri?: string | null;
|
|
68
|
-
/**
|
|
69
|
-
* Rendered HTML for non-table XLSX chunks (tables use render_html as content)
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof ChunkMetadataOutput
|
|
72
|
-
*/
|
|
73
|
-
enrichedHtml?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* Cell address range, e.g. 'A1:D10' (XLSX only)
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof ChunkMetadataOutput
|
|
78
|
-
*/
|
|
79
|
-
cellRange?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
* Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
|
|
82
|
-
* @type {{ [key: string]: any; }}
|
|
83
|
-
* @memberof ChunkMetadataOutput
|
|
84
|
-
*/
|
|
85
|
-
dependencySummary?: {
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
} | null;
|
|
88
|
-
/**
|
|
89
|
-
* Formula cells in this chunk as [{address, formula, value}] (XLSX only)
|
|
90
|
-
* @type {Array<{ [key: string]: string; }>}
|
|
91
|
-
* @memberof ChunkMetadataOutput
|
|
92
|
-
*/
|
|
93
|
-
formulas?: Array<{
|
|
94
|
-
[key: string]: string;
|
|
95
|
-
}> | null;
|
|
96
|
-
/**
|
|
97
|
-
* Notable output/header cells for quick identification (XLSX only)
|
|
98
|
-
* @type {Array<{ [key: string]: any; }>}
|
|
99
|
-
* @memberof ChunkMetadataOutput
|
|
100
|
-
*/
|
|
101
|
-
keyCells?: Array<{
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
}> | null;
|
|
104
|
-
/**
|
|
105
|
-
* Named ranges overlapping this chunk (XLSX only)
|
|
106
|
-
* @type {Array<{ [key: string]: any; }>}
|
|
107
|
-
* @memberof ChunkMetadataOutput
|
|
108
|
-
*/
|
|
109
|
-
namedRanges?: Array<{
|
|
110
|
-
[key: string]: any;
|
|
111
|
-
}> | null;
|
|
112
|
-
}
|
|
113
|
-
export declare const ChunkMetadataOutputPropertyValidationAttributesMap: {
|
|
114
|
-
[property: string]: {
|
|
115
|
-
maxLength?: number;
|
|
116
|
-
minLength?: number;
|
|
117
|
-
pattern?: string;
|
|
118
|
-
maximum?: number;
|
|
119
|
-
exclusiveMaximum?: boolean;
|
|
120
|
-
minimum?: number;
|
|
121
|
-
exclusiveMinimum?: boolean;
|
|
122
|
-
multipleOf?: number;
|
|
123
|
-
maxItems?: number;
|
|
124
|
-
minItems?: number;
|
|
125
|
-
uniqueItems?: boolean;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Check if a given object implements the ChunkMetadataOutput interface.
|
|
130
|
-
*/
|
|
131
|
-
export declare function instanceOfChunkMetadataOutput(value: object): value is ChunkMetadataOutput;
|
|
132
|
-
export declare function ChunkMetadataOutputFromJSON(json: any): ChunkMetadataOutput;
|
|
133
|
-
export declare function ChunkMetadataOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkMetadataOutput;
|
|
134
|
-
export declare function ChunkMetadataOutputToJSON(json: any): ChunkMetadataOutput;
|
|
135
|
-
export declare function ChunkMetadataOutputToJSONTyped(value?: ChunkMetadataOutput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Knowledge Stack API
|
|
6
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ChunkMetadataOutputPropertyValidationAttributesMap = void 0;
|
|
17
|
-
exports.instanceOfChunkMetadataOutput = instanceOfChunkMetadataOutput;
|
|
18
|
-
exports.ChunkMetadataOutputFromJSON = ChunkMetadataOutputFromJSON;
|
|
19
|
-
exports.ChunkMetadataOutputFromJSONTyped = ChunkMetadataOutputFromJSONTyped;
|
|
20
|
-
exports.ChunkMetadataOutputToJSON = ChunkMetadataOutputToJSON;
|
|
21
|
-
exports.ChunkMetadataOutputToJSONTyped = ChunkMetadataOutputToJSONTyped;
|
|
22
|
-
const ImageTaxonomy_1 = require("./ImageTaxonomy");
|
|
23
|
-
const PolygonReference_1 = require("./PolygonReference");
|
|
24
|
-
exports.ChunkMetadataOutputPropertyValidationAttributesMap = {};
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ChunkMetadataOutput interface.
|
|
27
|
-
*/
|
|
28
|
-
function instanceOfChunkMetadataOutput(value) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function ChunkMetadataOutputFromJSON(json) {
|
|
32
|
-
return ChunkMetadataOutputFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
|
|
40
|
-
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
41
|
-
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
42
|
-
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
43
|
-
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
|
|
44
|
-
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
45
|
-
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
46
|
-
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
47
|
-
'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
|
|
48
|
-
'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
|
|
49
|
-
'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
|
|
50
|
-
'formulas': json['formulas'] == null ? undefined : json['formulas'],
|
|
51
|
-
'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
|
|
52
|
-
'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function ChunkMetadataOutputToJSON(json) {
|
|
56
|
-
return ChunkMetadataOutputToJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
|
|
64
|
-
's3_urls': value['s3Urls'],
|
|
65
|
-
'summary': value['summary'],
|
|
66
|
-
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
67
|
-
'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
|
|
68
|
-
'sheet_name': value['sheetName'],
|
|
69
|
-
'block_type': value['blockType'],
|
|
70
|
-
'source_uri': value['sourceUri'],
|
|
71
|
-
'enriched_html': value['enrichedHtml'],
|
|
72
|
-
'cell_range': value['cellRange'],
|
|
73
|
-
'dependency_summary': value['dependencySummary'],
|
|
74
|
-
'formulas': value['formulas'],
|
|
75
|
-
'key_cells': value['keyCells'],
|
|
76
|
-
'named_ranges': value['namedRanges'],
|
|
77
|
-
};
|
|
78
|
-
}
|