weave-typescript 0.27.0 → 0.28.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.
@@ -0,0 +1,134 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "weaveapi.consolidation.v1";
3
+ export declare enum ConsolidationRunStatus {
4
+ CONSOLIDATION_RUN_STATUS_UNSPECIFIED = 0,
5
+ CONSOLIDATION_RUN_STATUS_STARTED = 1,
6
+ CONSOLIDATION_RUN_STATUS_CLUSTERING = 2,
7
+ CONSOLIDATION_RUN_STATUS_LABELING = 3,
8
+ CONSOLIDATION_RUN_STATUS_HIERARCHIZING = 4,
9
+ CONSOLIDATION_RUN_STATUS_COMPLETE = 5,
10
+ CONSOLIDATION_RUN_STATUS_FAILED = 6,
11
+ UNRECOGNIZED = -1
12
+ }
13
+ export declare function consolidationRunStatusFromJSON(object: any): ConsolidationRunStatus;
14
+ export declare function consolidationRunStatusToJSON(object: ConsolidationRunStatus): string;
15
+ export declare enum KnowledgeRealmKind {
16
+ KNOWLEDGE_REALM_KIND_UNSPECIFIED = 0,
17
+ KNOWLEDGE_REALM_KIND_ORG = 1,
18
+ KNOWLEDGE_REALM_KIND_TAG = 2,
19
+ KNOWLEDGE_REALM_KIND_USER = 3,
20
+ UNRECOGNIZED = -1
21
+ }
22
+ export declare function knowledgeRealmKindFromJSON(object: any): KnowledgeRealmKind;
23
+ export declare function knowledgeRealmKindToJSON(object: KnowledgeRealmKind): string;
24
+ export interface KnowledgeRealm {
25
+ kind: KnowledgeRealmKind;
26
+ key: string;
27
+ }
28
+ export interface ConsolidationRun {
29
+ id: string;
30
+ organizationId: string;
31
+ status: ConsolidationRunStatus;
32
+ threadCount: number;
33
+ clusterCount: number;
34
+ hierarchyDepth: number;
35
+ error: string;
36
+ startedAt: Date | undefined;
37
+ completedAt: Date | undefined;
38
+ }
39
+ export interface ConceptCluster {
40
+ id: string;
41
+ organizationId: string;
42
+ name: string;
43
+ description: string;
44
+ knowledgeType: string;
45
+ level: number;
46
+ parentId: string;
47
+ threadCount: number;
48
+ consolidationRunId: string;
49
+ createdAt: Date | undefined;
50
+ updatedAt: Date | undefined;
51
+ childClusterIds: string[];
52
+ threadIds: string[];
53
+ realm: KnowledgeRealm | undefined;
54
+ }
55
+ export interface ConceptHierarchy {
56
+ clusters: ConceptCluster[];
57
+ }
58
+ export interface TriggerConsolidationRequest {
59
+ organizationId: string;
60
+ fullRebuild: boolean;
61
+ topLevelTarget: number;
62
+ neighborhoodSize: number;
63
+ }
64
+ export interface GetConsolidationRunRequest {
65
+ organizationId: string;
66
+ consolidationRunId: string;
67
+ }
68
+ export interface ListConsolidationHistoryRequest {
69
+ organizationId: string;
70
+ pageSize: number;
71
+ pageToken: string;
72
+ }
73
+ export interface ListConsolidationHistoryResponse {
74
+ runs: ConsolidationRun[];
75
+ nextPageToken: string;
76
+ }
77
+ export interface GetConceptHierarchyRequest {
78
+ organizationId: string;
79
+ knowledgeType: string;
80
+ maxDepth: number;
81
+ actingUserId: string;
82
+ realm: KnowledgeRealm | undefined;
83
+ }
84
+ export interface GetConceptClusterRequest {
85
+ organizationId: string;
86
+ conceptClusterId: string;
87
+ actingUserId: string;
88
+ realm: KnowledgeRealm | undefined;
89
+ }
90
+ export interface TriggerConsolidationResponse {
91
+ consolidationRun: ConsolidationRun | undefined;
92
+ }
93
+ export interface GetConsolidationRunResponse {
94
+ consolidationRun: ConsolidationRun | undefined;
95
+ }
96
+ export interface GetConceptHierarchyResponse {
97
+ hierarchy: ConceptHierarchy | undefined;
98
+ }
99
+ export interface GetConceptClusterResponse {
100
+ conceptCluster: ConceptCluster | undefined;
101
+ }
102
+ export declare const KnowledgeRealm: MessageFns<KnowledgeRealm>;
103
+ export declare const ConsolidationRun: MessageFns<ConsolidationRun>;
104
+ export declare const ConceptCluster: MessageFns<ConceptCluster>;
105
+ export declare const ConceptHierarchy: MessageFns<ConceptHierarchy>;
106
+ export declare const TriggerConsolidationRequest: MessageFns<TriggerConsolidationRequest>;
107
+ export declare const GetConsolidationRunRequest: MessageFns<GetConsolidationRunRequest>;
108
+ export declare const ListConsolidationHistoryRequest: MessageFns<ListConsolidationHistoryRequest>;
109
+ export declare const ListConsolidationHistoryResponse: MessageFns<ListConsolidationHistoryResponse>;
110
+ export declare const GetConceptHierarchyRequest: MessageFns<GetConceptHierarchyRequest>;
111
+ export declare const GetConceptClusterRequest: MessageFns<GetConceptClusterRequest>;
112
+ export declare const TriggerConsolidationResponse: MessageFns<TriggerConsolidationResponse>;
113
+ export declare const GetConsolidationRunResponse: MessageFns<GetConsolidationRunResponse>;
114
+ export declare const GetConceptHierarchyResponse: MessageFns<GetConceptHierarchyResponse>;
115
+ export declare const GetConceptClusterResponse: MessageFns<GetConceptClusterResponse>;
116
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
117
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
118
+ [K in keyof T]?: DeepPartial<T[K]>;
119
+ } : Partial<T>;
120
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
121
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
122
+ [K in keyof P]: Exact<P[K], I[K]>;
123
+ } & {
124
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
125
+ };
126
+ export interface MessageFns<T> {
127
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
128
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
129
+ fromJSON(object: any): T;
130
+ toJSON(message: T): unknown;
131
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
132
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
133
+ }
134
+ export {};