@dailydotdev/schema 0.2.14 → 0.2.15
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/dist/bragi/pipelines_connect.cjs +1 -1
- package/dist/bragi/pipelines_connect.d.cts +12 -1
- package/dist/bragi/pipelines_connect.d.ts +12 -1
- package/dist/bragi/pipelines_connect.js +1 -1
- package/dist/bragi/pipelines_pb.cjs +1 -1
- package/dist/bragi/pipelines_pb.d.cts +79 -1
- package/dist/bragi/pipelines_pb.d.ts +79 -1
- package/dist/bragi/pipelines_pb.js +1 -1
- package/dist/bragi/proxy_pb.cjs +1 -1
- package/dist/bragi/proxy_pb.d.cts +37 -1
- package/dist/bragi/proxy_pb.d.ts +37 -1
- package/dist/bragi/proxy_pb.js +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/mimir/search/search_pb.cjs +1 -1
- package/dist/mimir/search/search_pb.d.cts +174 -1
- package/dist/mimir/search/search_pb.d.ts +174 -1
- package/dist/mimir/search/search_pb.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum bragi.proxy.CacheControlType
|
|
5
|
+
*/
|
|
6
|
+
declare enum CacheControlType {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: Ephemeral = 0;
|
|
9
|
+
*/
|
|
10
|
+
Ephemeral = 0
|
|
11
|
+
}
|
|
3
12
|
/**
|
|
4
13
|
* @generated from enum bragi.proxy.ModelProvider
|
|
5
14
|
*/
|
|
@@ -25,6 +34,23 @@ declare enum ModelProvider {
|
|
|
25
34
|
*/
|
|
26
35
|
AnthropicVertex = 4
|
|
27
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @generated from message bragi.proxy.CacheControl
|
|
39
|
+
*/
|
|
40
|
+
declare class CacheControl extends Message<CacheControl> {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: bragi.proxy.CacheControlType type = 1;
|
|
43
|
+
*/
|
|
44
|
+
type: CacheControlType;
|
|
45
|
+
constructor(data?: PartialMessage<CacheControl>);
|
|
46
|
+
static readonly runtime: typeof proto3;
|
|
47
|
+
static readonly typeName = "bragi.proxy.CacheControl";
|
|
48
|
+
static readonly fields: FieldList;
|
|
49
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CacheControl;
|
|
50
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CacheControl;
|
|
51
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CacheControl;
|
|
52
|
+
static equals(a: CacheControl | PlainMessage<CacheControl> | undefined, b: CacheControl | PlainMessage<CacheControl> | undefined): boolean;
|
|
53
|
+
}
|
|
28
54
|
/**
|
|
29
55
|
* @generated from message bragi.proxy.ChatMessage
|
|
30
56
|
*/
|
|
@@ -37,6 +63,10 @@ declare class ChatMessage extends Message<ChatMessage> {
|
|
|
37
63
|
* @generated from field: string content = 2;
|
|
38
64
|
*/
|
|
39
65
|
content: string;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: optional bragi.proxy.CacheControl cache_control = 3;
|
|
68
|
+
*/
|
|
69
|
+
cacheControl?: CacheControl;
|
|
40
70
|
constructor(data?: PartialMessage<ChatMessage>);
|
|
41
71
|
static readonly runtime: typeof proto3;
|
|
42
72
|
static readonly typeName = "bragi.proxy.ChatMessage";
|
|
@@ -85,6 +115,12 @@ declare class Usage extends Message<Usage> {
|
|
|
85
115
|
* @generated from field: uint32 total_tokens = 3;
|
|
86
116
|
*/
|
|
87
117
|
totalTokens: number;
|
|
118
|
+
/**
|
|
119
|
+
* Number of prompt tokens that were cached
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: optional uint32 cached_tokens = 4;
|
|
122
|
+
*/
|
|
123
|
+
cachedTokens?: number;
|
|
88
124
|
constructor(data?: PartialMessage<Usage>);
|
|
89
125
|
static readonly runtime: typeof proto3;
|
|
90
126
|
static readonly typeName = "bragi.proxy.Usage";
|
|
@@ -459,4 +495,4 @@ declare class ImageUrl extends Message<ImageUrl> {
|
|
|
459
495
|
static equals(a: ImageUrl | PlainMessage<ImageUrl> | undefined, b: ImageUrl | PlainMessage<ImageUrl> | undefined): boolean;
|
|
460
496
|
}
|
|
461
497
|
|
|
462
|
-
export { ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest };
|
|
498
|
+
export { CacheControl, CacheControlType, ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest };
|
package/dist/bragi/proxy_pb.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum bragi.proxy.CacheControlType
|
|
5
|
+
*/
|
|
6
|
+
declare enum CacheControlType {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: Ephemeral = 0;
|
|
9
|
+
*/
|
|
10
|
+
Ephemeral = 0
|
|
11
|
+
}
|
|
3
12
|
/**
|
|
4
13
|
* @generated from enum bragi.proxy.ModelProvider
|
|
5
14
|
*/
|
|
@@ -25,6 +34,23 @@ declare enum ModelProvider {
|
|
|
25
34
|
*/
|
|
26
35
|
AnthropicVertex = 4
|
|
27
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @generated from message bragi.proxy.CacheControl
|
|
39
|
+
*/
|
|
40
|
+
declare class CacheControl extends Message<CacheControl> {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: bragi.proxy.CacheControlType type = 1;
|
|
43
|
+
*/
|
|
44
|
+
type: CacheControlType;
|
|
45
|
+
constructor(data?: PartialMessage<CacheControl>);
|
|
46
|
+
static readonly runtime: typeof proto3;
|
|
47
|
+
static readonly typeName = "bragi.proxy.CacheControl";
|
|
48
|
+
static readonly fields: FieldList;
|
|
49
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CacheControl;
|
|
50
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CacheControl;
|
|
51
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CacheControl;
|
|
52
|
+
static equals(a: CacheControl | PlainMessage<CacheControl> | undefined, b: CacheControl | PlainMessage<CacheControl> | undefined): boolean;
|
|
53
|
+
}
|
|
28
54
|
/**
|
|
29
55
|
* @generated from message bragi.proxy.ChatMessage
|
|
30
56
|
*/
|
|
@@ -37,6 +63,10 @@ declare class ChatMessage extends Message<ChatMessage> {
|
|
|
37
63
|
* @generated from field: string content = 2;
|
|
38
64
|
*/
|
|
39
65
|
content: string;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: optional bragi.proxy.CacheControl cache_control = 3;
|
|
68
|
+
*/
|
|
69
|
+
cacheControl?: CacheControl;
|
|
40
70
|
constructor(data?: PartialMessage<ChatMessage>);
|
|
41
71
|
static readonly runtime: typeof proto3;
|
|
42
72
|
static readonly typeName = "bragi.proxy.ChatMessage";
|
|
@@ -85,6 +115,12 @@ declare class Usage extends Message<Usage> {
|
|
|
85
115
|
* @generated from field: uint32 total_tokens = 3;
|
|
86
116
|
*/
|
|
87
117
|
totalTokens: number;
|
|
118
|
+
/**
|
|
119
|
+
* Number of prompt tokens that were cached
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: optional uint32 cached_tokens = 4;
|
|
122
|
+
*/
|
|
123
|
+
cachedTokens?: number;
|
|
88
124
|
constructor(data?: PartialMessage<Usage>);
|
|
89
125
|
static readonly runtime: typeof proto3;
|
|
90
126
|
static readonly typeName = "bragi.proxy.Usage";
|
|
@@ -459,4 +495,4 @@ declare class ImageUrl extends Message<ImageUrl> {
|
|
|
459
495
|
static equals(a: ImageUrl | PlainMessage<ImageUrl> | undefined, b: ImageUrl | PlainMessage<ImageUrl> | undefined): boolean;
|
|
460
496
|
}
|
|
461
497
|
|
|
462
|
-
export { ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest };
|
|
498
|
+
export { CacheControl, CacheControlType, ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest };
|
package/dist/bragi/proxy_pb.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FloatValue as t,Message as e,proto3 as n,StringValue as r,UInt32Value as i}from"@bufbuild/protobuf";var s=(t=>(t[t.OpenAI=0]="OpenAI",t[t.Azure=1]="Azure",t[t.Google=2]="Google",t[t.Anthropic=3]="Anthropic",t[t.AnthropicVertex=4]="AnthropicVertex",t))(
|
|
1
|
+
import{FloatValue as t,Message as e,proto3 as n,StringValue as r,UInt32Value as i}from"@bufbuild/protobuf";var s=(t=>(t[t.Ephemeral=0]="Ephemeral",t))(s||{});n.util.setEnumType(s,"bragi.proxy.CacheControlType",[{no:0,name:"Ephemeral"}]);var a=(t=>(t[t.OpenAI=0]="OpenAI",t[t.Azure=1]="Azure",t[t.Google=2]="Google",t[t.Anthropic=3]="Anthropic",t[t.AnthropicVertex=4]="AnthropicVertex",t))(a||{});n.util.setEnumType(a,"bragi.proxy.ModelProvider",[{no:0,name:"OpenAI"},{no:1,name:"Azure"},{no:2,name:"Google"},{no:3,name:"Anthropic"},{no:4,name:"AnthropicVertex"}]);class o extends e{type=0;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.CacheControl";static fields=n.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:n.getEnumType(s)}]));static fromBinary(t,e){return(new o).fromBinary(t,e)}static fromJson(t,e){return(new o).fromJson(t,e)}static fromJsonString(t,e){return(new o).fromJsonString(t,e)}static equals(t,e){return n.util.equals(o,t,e)}}class m extends e{role="";content="";cacheControl;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.ChatMessage";static fields=n.util.newFieldList((()=>[{no:1,name:"role",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"cache_control",kind:"message",T:o,opt:!0}]));static fromBinary(t,e){return(new m).fromBinary(t,e)}static fromJson(t,e){return(new m).fromJson(t,e)}static fromJsonString(t,e){return(new m).fromJsonString(t,e)}static equals(t,e){return n.util.equals(m,t,e)}}class u extends e{role;content;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.ChatDelta";static fields=n.util.newFieldList((()=>[{no:1,name:"role",kind:"message",T:r},{no:2,name:"content",kind:"message",T:r}]));static fromBinary(t,e){return(new u).fromBinary(t,e)}static fromJson(t,e){return(new u).fromJson(t,e)}static fromJsonString(t,e){return(new u).fromJsonString(t,e)}static equals(t,e){return n.util.equals(u,t,e)}}class c extends e{promptTokens=0;completionTokens=0;totalTokens=0;cachedTokens;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.Usage";static fields=n.util.newFieldList((()=>[{no:1,name:"prompt_tokens",kind:"scalar",T:13},{no:2,name:"completion_tokens",kind:"scalar",T:13},{no:3,name:"total_tokens",kind:"scalar",T:13},{no:4,name:"cached_tokens",kind:"scalar",T:13,opt:!0}]));static fromBinary(t,e){return(new c).fromBinary(t,e)}static fromJson(t,e){return(new c).fromJson(t,e)}static fromJsonString(t,e){return(new c).fromJsonString(t,e)}static equals(t,e){return n.util.equals(c,t,e)}}class l extends e{application="";provider=0;model="";prompt="";maxTokens;temperature;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.CompletionRequest";static fields=n.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:n.getEnumType(a)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"prompt",kind:"scalar",T:9},{no:5,name:"max_tokens",kind:"message",T:i,opt:!0},{no:6,name:"temperature",kind:"message",T:t,opt:!0}]));static fromBinary(t,e){return(new l).fromBinary(t,e)}static fromJson(t,e){return(new l).fromJson(t,e)}static fromJsonString(t,e){return(new l).fromJsonString(t,e)}static equals(t,e){return n.util.equals(l,t,e)}}class d extends e{application="";provider=0;model="";messages=[];maxTokens;temperature;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.ChatRequest";static fields=n.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:n.getEnumType(a)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:m,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:i,opt:!0},{no:6,name:"temperature",kind:"message",T:t,opt:!0}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,e){return n.util.equals(d,t,e)}}class p extends e{id="";message;finishReason="";usage;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.ChatResponse";static fields=n.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"message",kind:"message",T:m},{no:3,name:"finish_reason",kind:"scalar",T:9},{no:4,name:"usage",kind:"message",T:c}]));static fromBinary(t,e){return(new p).fromBinary(t,e)}static fromJson(t,e){return(new p).fromJson(t,e)}static fromJsonString(t,e){return(new p).fromJsonString(t,e)}static equals(t,e){return n.util.equals(p,t,e)}}class f extends e{id="";delta;finishReason;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.ChatStreamResponse";static fields=n.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"delta",kind:"message",T:u},{no:3,name:"finish_reason",kind:"message",T:r}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,e){return n.util.equals(f,t,e)}}class g extends e{provider=0;model="";input=[];constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.EmbeddingRequest";static fields=n.util.newFieldList((()=>[{no:1,name:"provider",kind:"enum",T:n.getEnumType(a)},{no:2,name:"model",kind:"scalar",T:9},{no:3,name:"input",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,e){return(new g).fromBinary(t,e)}static fromJson(t,e){return(new g).fromJson(t,e)}static fromJsonString(t,e){return(new g).fromJsonString(t,e)}static equals(t,e){return n.util.equals(g,t,e)}}class y extends e{embedding=[];constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.Embedding";static fields=n.util.newFieldList((()=>[{no:1,name:"embedding",kind:"scalar",T:2,repeated:!0}]));static fromBinary(t,e){return(new y).fromBinary(t,e)}static fromJson(t,e){return(new y).fromJson(t,e)}static fromJsonString(t,e){return(new y).fromJsonString(t,e)}static equals(t,e){return n.util.equals(y,t,e)}}class T extends e{data=[];usage;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.EmbeddingResponse";static fields=n.util.newFieldList((()=>[{no:1,name:"data",kind:"message",T:y,repeated:!0},{no:2,name:"usage",kind:"message",T:c}]));static fromBinary(t,e){return(new T).fromBinary(t,e)}static fromJson(t,e){return(new T).fromJson(t,e)}static fromJsonString(t,e){return(new T).fromJsonString(t,e)}static equals(t,e){return n.util.equals(T,t,e)}}class k extends e{request;response;stream=!1;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.ChatAudit";static fields=n.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:d},{no:2,name:"response",kind:"message",T:p},{no:3,name:"stream",kind:"scalar",T:8}]));static fromBinary(t,e){return(new k).fromBinary(t,e)}static fromJson(t,e){return(new k).fromJson(t,e)}static fromJsonString(t,e){return(new k).fromJsonString(t,e)}static equals(t,e){return n.util.equals(k,t,e)}}class w extends e{application="";provider=0;model="";messages=[];maxTokens;temperature;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.VisionRequest";static fields=n.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:n.getEnumType(a)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:J,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:i,opt:!0},{no:6,name:"temperature",kind:"message",T:t,opt:!0}]));static fromBinary(t,e){return(new w).fromBinary(t,e)}static fromJson(t,e){return(new w).fromJson(t,e)}static fromJsonString(t,e){return(new w).fromJsonString(t,e)}static equals(t,e){return n.util.equals(w,t,e)}}class J extends e{role="";content=[];constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.VisionMessage";static fields=n.util.newFieldList((()=>[{no:1,name:"role",kind:"scalar",T:9},{no:2,name:"content",kind:"message",T:x,repeated:!0}]));static fromBinary(t,e){return(new J).fromBinary(t,e)}static fromJson(t,e){return(new J).fromJson(t,e)}static fromJsonString(t,e){return(new J).fromJsonString(t,e)}static equals(t,e){return n.util.equals(J,t,e)}}class x extends e{type="";text;imageUrl;constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.VisionContent";static fields=n.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9,opt:!0},{no:3,name:"image_url",kind:"message",T:h,opt:!0}]));static fromBinary(t,e){return(new x).fromBinary(t,e)}static fromJson(t,e){return(new x).fromJson(t,e)}static fromJsonString(t,e){return(new x).fromJsonString(t,e)}static equals(t,e){return n.util.equals(x,t,e)}}class h extends e{url="";constructor(t){super(),n.util.initPartial(t,this)}static runtime=n;static typeName="bragi.proxy.ImageUrl";static fields=n.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));static fromBinary(t,e){return(new h).fromBinary(t,e)}static fromJson(t,e){return(new h).fromJson(t,e)}static fromJsonString(t,e){return(new h).fromJsonString(t,e)}static equals(t,e){return n.util.equals(h,t,e)}}export{o as CacheControl,s as CacheControlType,k as ChatAudit,u as ChatDelta,m as ChatMessage,d as ChatRequest,p as ChatResponse,f as ChatStreamResponse,l as CompletionRequest,y as Embedding,g as EmbeddingRequest,T as EmbeddingResponse,h as ImageUrl,a as ModelProvider,c as Usage,x as VisionContent,J as VisionMessage,w as VisionRequest};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Pipelines } from './bragi/pipelines_connect.cjs';
|
|
2
|
-
export { AggregateMemoryRequest, AlternativeTitleRequest, AlternativeTitleResponse, AnalyzeImageRequest, AnalyzeImageResponse, AudienceFitRequest, AudienceFitResponse, BriefResponse, ClickbaitProbabilityRequest, ClickbaitProbabilityResponse, ClusterReconciliationRequest, ClusterReconciliationResponse, CollectionPostInput, ContentFormat, ContextBuildingStrategy, EnrichRequest, EnrichResponse, FilterSearchRequest, FilterSearchResponse, GenerateCollectionRequest, GenerateCollectionResponse, GenerateTagsResponse, IsPageInCacheRequest, IsPageInCacheResponse, MemoryRequest, MemoryResponse, MultipleSearchQueriesResponse, PersonalizedBriefingRequest, PostDimensions, ProcessClusteredRequest, ProcessIsolatedRequest, ProcessStoriesResponse, ScrapedPage, SearchAnswerRequest, SearchPromptRequest, SearchPromptResponse, SearchPromptV2Request, SearchQueryRequest, SearchQueryResponse, SmartPromptRequest, StoryAnalysisRequest, Tag } from './bragi/pipelines_pb.cjs';
|
|
2
|
+
export { AggregateMemoryRequest, AlternativeTitleRequest, AlternativeTitleResponse, AnalyzeImageRequest, AnalyzeImageResponse, AudienceFitRequest, AudienceFitResponse, BriefResponse, ClickbaitProbabilityRequest, ClickbaitProbabilityResponse, ClusterReconciliationRequest, ClusterReconciliationResponse, CollectionPostInput, ContentFormat, ContextBuildingStrategy, EnrichRequest, EnrichResponse, EnrichResponseV2, FilterSearchRequest, FilterSearchResponse, GenerateCollectionRequest, GenerateCollectionResponse, GenerateTagsResponse, IsPageInCacheRequest, IsPageInCacheResponse, MemoryRequest, MemoryResponse, MultipleSearchQueriesResponse, PersonalizedBriefingRequest, PostDimensions, PostDimensionsV2, ProcessClusteredRequest, ProcessIsolatedRequest, ProcessStoriesResponse, ScrapedPage, SearchAnswerRequest, SearchPromptRequest, SearchPromptResponse, SearchPromptV2Request, SearchQueryRequest, SearchQueryResponse, SmartPromptRequest, StoryAnalysisRequest, Tag } from './bragi/pipelines_pb.cjs';
|
|
3
3
|
export { LLMProxy } from './bragi/proxy_connect.cjs';
|
|
4
|
-
export { ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest } from './bragi/proxy_pb.cjs';
|
|
4
|
+
export { CacheControl, CacheControlType, ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest } from './bragi/proxy_pb.cjs';
|
|
5
5
|
export { PostService } from './daily-api/posts_connect.cjs';
|
|
6
6
|
export { AIGCDetect, Cleaned, ContentMeta, ContentQuality, CreatePostRequest, CreatePostResponse, Enriched, Language, PostEmbedding, PostRelation, Scraped } from './daily-api/posts_pb.cjs';
|
|
7
7
|
export { SourceRequestService } from './daily-api/source-requests_connect.cjs';
|
|
@@ -10,7 +10,7 @@ export { Source } from './daily-api/sources_pb.cjs';
|
|
|
10
10
|
export { ContentUpdatedMessage } from './daily-api/pubsub/content-updated_pb.cjs';
|
|
11
11
|
export { Request, Response } from './feed/personalised/personalised_pb.cjs';
|
|
12
12
|
export { EntryMetadata, ServerSideEvent } from './feed/server_side_event/server_side_event_pb.cjs';
|
|
13
|
-
export { SearchRequest, SearchResponse, SearchResult } from './mimir/search/search_pb.cjs';
|
|
13
|
+
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.cjs';
|
|
14
14
|
export { Credits } from './njord/transactions_connect.cjs';
|
|
15
15
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.cjs';
|
|
16
16
|
export { Action, Event, GetUserEventRequest, GetUserEventResponse } from './snotra/engagement/engagement_pb.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Pipelines } from './bragi/pipelines_connect.js';
|
|
2
|
-
export { AggregateMemoryRequest, AlternativeTitleRequest, AlternativeTitleResponse, AnalyzeImageRequest, AnalyzeImageResponse, AudienceFitRequest, AudienceFitResponse, BriefResponse, ClickbaitProbabilityRequest, ClickbaitProbabilityResponse, ClusterReconciliationRequest, ClusterReconciliationResponse, CollectionPostInput, ContentFormat, ContextBuildingStrategy, EnrichRequest, EnrichResponse, FilterSearchRequest, FilterSearchResponse, GenerateCollectionRequest, GenerateCollectionResponse, GenerateTagsResponse, IsPageInCacheRequest, IsPageInCacheResponse, MemoryRequest, MemoryResponse, MultipleSearchQueriesResponse, PersonalizedBriefingRequest, PostDimensions, ProcessClusteredRequest, ProcessIsolatedRequest, ProcessStoriesResponse, ScrapedPage, SearchAnswerRequest, SearchPromptRequest, SearchPromptResponse, SearchPromptV2Request, SearchQueryRequest, SearchQueryResponse, SmartPromptRequest, StoryAnalysisRequest, Tag } from './bragi/pipelines_pb.js';
|
|
2
|
+
export { AggregateMemoryRequest, AlternativeTitleRequest, AlternativeTitleResponse, AnalyzeImageRequest, AnalyzeImageResponse, AudienceFitRequest, AudienceFitResponse, BriefResponse, ClickbaitProbabilityRequest, ClickbaitProbabilityResponse, ClusterReconciliationRequest, ClusterReconciliationResponse, CollectionPostInput, ContentFormat, ContextBuildingStrategy, EnrichRequest, EnrichResponse, EnrichResponseV2, FilterSearchRequest, FilterSearchResponse, GenerateCollectionRequest, GenerateCollectionResponse, GenerateTagsResponse, IsPageInCacheRequest, IsPageInCacheResponse, MemoryRequest, MemoryResponse, MultipleSearchQueriesResponse, PersonalizedBriefingRequest, PostDimensions, PostDimensionsV2, ProcessClusteredRequest, ProcessIsolatedRequest, ProcessStoriesResponse, ScrapedPage, SearchAnswerRequest, SearchPromptRequest, SearchPromptResponse, SearchPromptV2Request, SearchQueryRequest, SearchQueryResponse, SmartPromptRequest, StoryAnalysisRequest, Tag } from './bragi/pipelines_pb.js';
|
|
3
3
|
export { LLMProxy } from './bragi/proxy_connect.js';
|
|
4
|
-
export { ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest } from './bragi/proxy_pb.js';
|
|
4
|
+
export { CacheControl, CacheControlType, ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, Usage, VisionContent, VisionMessage, VisionRequest } from './bragi/proxy_pb.js';
|
|
5
5
|
export { PostService } from './daily-api/posts_connect.js';
|
|
6
6
|
export { AIGCDetect, Cleaned, ContentMeta, ContentQuality, CreatePostRequest, CreatePostResponse, Enriched, Language, PostEmbedding, PostRelation, Scraped } from './daily-api/posts_pb.js';
|
|
7
7
|
export { SourceRequestService } from './daily-api/source-requests_connect.js';
|
|
@@ -10,7 +10,7 @@ export { Source } from './daily-api/sources_pb.js';
|
|
|
10
10
|
export { ContentUpdatedMessage } from './daily-api/pubsub/content-updated_pb.js';
|
|
11
11
|
export { Request, Response } from './feed/personalised/personalised_pb.js';
|
|
12
12
|
export { EntryMetadata, ServerSideEvent } from './feed/server_side_event/server_side_event_pb.js';
|
|
13
|
-
export { SearchRequest, SearchResponse, SearchResult } from './mimir/search/search_pb.js';
|
|
13
|
+
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.js';
|
|
14
14
|
export { Credits } from './njord/transactions_connect.js';
|
|
15
15
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.js';
|
|
16
16
|
export { Action, Event, GetUserEventRequest, GetUserEventResponse } from './snotra/engagement/engagement_pb.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e
|
|
1
|
+
var t,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(o,{BoolFilter:()=>d,Filter:()=>f,Operation:()=>m,Order:()=>u,Quantifier:()=>l,SearchRequest:()=>c,SearchResponse:()=>w,SearchResult:()=>J,Sort:()=>p,StringListFilter:()=>g,TimeRangeFilter:()=>y}),module.exports=(t=o,((t,o,s,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let u of n(o))i.call(t,u)||u===s||e(t,u,{get:()=>o[u],enumerable:!(a=r(o,u))||a.enumerable});return t})(e({},"__esModule",{value:!0}),t));var s=require("@bufbuild/protobuf"),a=require("../../util/error_pb.cjs"),u=(t=>(t[t.ASC=0]="ASC",t[t.DESC=1]="DESC",t))(u||{});s.proto3.util.setEnumType(u,"search.Order",[{no:0,name:"ASC"},{no:1,name:"DESC"}]);var l=(t=>(t[t.ANY=0]="ANY",t[t.ALL=1]="ALL",t))(l||{});s.proto3.util.setEnumType(l,"search.Quantifier",[{no:0,name:"ANY"},{no:1,name:"ALL"}]);var m=(t=>(t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t))(m||{});s.proto3.util.setEnumType(m,"search.Operation",[{no:0,name:"INCLUDE"},{no:1,name:"EXCLUDE"}]);class c extends s.Message{query="";version=0;offset=0;limit=0;filters=[];sort;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.SearchRequest";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5},{no:3,name:"offset",kind:"scalar",T:5},{no:4,name:"limit",kind:"scalar",T:5},{no:5,name:"filters",kind:"message",T:f,repeated:!0},{no:6,name:"sort",kind:"message",T:p}]));static fromBinary(t,e){return(new c).fromBinary(t,e)}static fromJson(t,e){return(new c).fromJson(t,e)}static fromJsonString(t,e){return(new c).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(c,t,e)}}class p extends s.Message{field="";order=0;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.Sort";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"enum",T:s.proto3.getEnumType(u)}]));static fromBinary(t,e){return(new p).fromBinary(t,e)}static fromJson(t,e){return(new p).fromJson(t,e)}static fromJsonString(t,e){return(new p).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(p,t,e)}}class f extends s.Message{field="";condition={case:void 0};constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.Filter";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"bool_filter",kind:"message",T:d,oneof:"condition"},{no:3,name:"time_range_filter",kind:"message",T:y,oneof:"condition"},{no:4,name:"string_list_filter",kind:"message",T:g,oneof:"condition"}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(f,t,e)}}class d extends s.Message{value=!1;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.BoolFilter";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:8}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(d,t,e)}}class g extends s.Message{value=[];quantifier=0;operation=0;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.StringListFilter";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:9,repeated:!0},{no:2,name:"quantifier",kind:"enum",T:s.proto3.getEnumType(l)},{no:3,name:"operation",kind:"enum",T:s.proto3.getEnumType(m)}]));static fromBinary(t,e){return(new g).fromBinary(t,e)}static fromJson(t,e){return(new g).fromJson(t,e)}static fromJsonString(t,e){return(new g).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(g,t,e)}}class y extends s.Message{startTimestamp;endTimestamp;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.TimeRangeFilter";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"start_timestamp",kind:"scalar",T:3,opt:!0},{no:2,name:"end_timestamp",kind:"scalar",T:3,opt:!0}]));static fromBinary(t,e){return(new y).fromBinary(t,e)}static fromJson(t,e){return(new y).fromJson(t,e)}static fromJsonString(t,e){return(new y).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(y,t,e)}}class w extends s.Message{result=[];error=[];constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.SearchResponse";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:J,repeated:!0},{no:2,name:"error",kind:"message",T:a.Error,repeated:!0}]));static fromBinary(t,e){return(new w).fromBinary(t,e)}static fromJson(t,e){return(new w).fromJson(t,e)}static fromJsonString(t,e){return(new w).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(w,t,e)}}class J extends s.Message{postId="";constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="search.SearchResult";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9}]));static fromBinary(t,e){return(new J).fromBinary(t,e)}static fromJson(t,e){return(new J).fromJson(t,e)}static fromJsonString(t,e){return(new J).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(J,t,e)}}
|
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
2
|
import { Error } from '../../util/error_pb.cjs';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum search.Order
|
|
6
|
+
*/
|
|
7
|
+
declare enum Order {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: ASC = 0;
|
|
10
|
+
*/
|
|
11
|
+
ASC = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: DESC = 1;
|
|
14
|
+
*/
|
|
15
|
+
DESC = 1
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum search.Quantifier
|
|
19
|
+
*/
|
|
20
|
+
declare enum Quantifier {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: ANY = 0;
|
|
23
|
+
*/
|
|
24
|
+
ANY = 0,
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: ALL = 1;
|
|
27
|
+
*/
|
|
28
|
+
ALL = 1
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum search.Operation
|
|
32
|
+
*/
|
|
33
|
+
declare enum Operation {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: INCLUDE = 0;
|
|
36
|
+
*/
|
|
37
|
+
INCLUDE = 0,
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: EXCLUDE = 1;
|
|
40
|
+
*/
|
|
41
|
+
EXCLUDE = 1
|
|
42
|
+
}
|
|
4
43
|
/**
|
|
5
44
|
* @generated from message search.SearchRequest
|
|
6
45
|
*/
|
|
@@ -21,6 +60,14 @@ declare class SearchRequest extends Message<SearchRequest> {
|
|
|
21
60
|
* @generated from field: int32 limit = 4;
|
|
22
61
|
*/
|
|
23
62
|
limit: number;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: repeated search.Filter filters = 5;
|
|
65
|
+
*/
|
|
66
|
+
filters: Filter[];
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: search.Sort sort = 6;
|
|
69
|
+
*/
|
|
70
|
+
sort?: Sort;
|
|
24
71
|
constructor(data?: PartialMessage<SearchRequest>);
|
|
25
72
|
static readonly runtime: typeof proto3;
|
|
26
73
|
static readonly typeName = "search.SearchRequest";
|
|
@@ -30,6 +77,132 @@ declare class SearchRequest extends Message<SearchRequest> {
|
|
|
30
77
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
31
78
|
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
32
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message search.Sort
|
|
82
|
+
*/
|
|
83
|
+
declare class Sort extends Message<Sort> {
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string field = 1;
|
|
86
|
+
*/
|
|
87
|
+
field: string;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: search.Order order = 2;
|
|
90
|
+
*/
|
|
91
|
+
order: Order;
|
|
92
|
+
constructor(data?: PartialMessage<Sort>);
|
|
93
|
+
static readonly runtime: typeof proto3;
|
|
94
|
+
static readonly typeName = "search.Sort";
|
|
95
|
+
static readonly fields: FieldList;
|
|
96
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sort;
|
|
97
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sort;
|
|
98
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sort;
|
|
99
|
+
static equals(a: Sort | PlainMessage<Sort> | undefined, b: Sort | PlainMessage<Sort> | undefined): boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated from message search.Filter
|
|
103
|
+
*/
|
|
104
|
+
declare class Filter extends Message<Filter> {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string field = 1;
|
|
107
|
+
*/
|
|
108
|
+
field: string;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from oneof search.Filter.condition
|
|
111
|
+
*/
|
|
112
|
+
condition: {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: search.BoolFilter bool_filter = 2;
|
|
115
|
+
*/
|
|
116
|
+
value: BoolFilter;
|
|
117
|
+
case: "boolFilter";
|
|
118
|
+
} | {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: search.TimeRangeFilter time_range_filter = 3;
|
|
121
|
+
*/
|
|
122
|
+
value: TimeRangeFilter;
|
|
123
|
+
case: "timeRangeFilter";
|
|
124
|
+
} | {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: search.StringListFilter string_list_filter = 4;
|
|
127
|
+
*/
|
|
128
|
+
value: StringListFilter;
|
|
129
|
+
case: "stringListFilter";
|
|
130
|
+
} | {
|
|
131
|
+
case: undefined;
|
|
132
|
+
value?: undefined;
|
|
133
|
+
};
|
|
134
|
+
constructor(data?: PartialMessage<Filter>);
|
|
135
|
+
static readonly runtime: typeof proto3;
|
|
136
|
+
static readonly typeName = "search.Filter";
|
|
137
|
+
static readonly fields: FieldList;
|
|
138
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Filter;
|
|
139
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Filter;
|
|
140
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Filter;
|
|
141
|
+
static equals(a: Filter | PlainMessage<Filter> | undefined, b: Filter | PlainMessage<Filter> | undefined): boolean;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @generated from message search.BoolFilter
|
|
145
|
+
*/
|
|
146
|
+
declare class BoolFilter extends Message<BoolFilter> {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: bool value = 1;
|
|
149
|
+
*/
|
|
150
|
+
value: boolean;
|
|
151
|
+
constructor(data?: PartialMessage<BoolFilter>);
|
|
152
|
+
static readonly runtime: typeof proto3;
|
|
153
|
+
static readonly typeName = "search.BoolFilter";
|
|
154
|
+
static readonly fields: FieldList;
|
|
155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolFilter;
|
|
156
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
157
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
158
|
+
static equals(a: BoolFilter | PlainMessage<BoolFilter> | undefined, b: BoolFilter | PlainMessage<BoolFilter> | undefined): boolean;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @generated from message search.StringListFilter
|
|
162
|
+
*/
|
|
163
|
+
declare class StringListFilter extends Message<StringListFilter> {
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: repeated string value = 1;
|
|
166
|
+
*/
|
|
167
|
+
value: string[];
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: search.Quantifier quantifier = 2;
|
|
170
|
+
*/
|
|
171
|
+
quantifier: Quantifier;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: search.Operation operation = 3;
|
|
174
|
+
*/
|
|
175
|
+
operation: Operation;
|
|
176
|
+
constructor(data?: PartialMessage<StringListFilter>);
|
|
177
|
+
static readonly runtime: typeof proto3;
|
|
178
|
+
static readonly typeName = "search.StringListFilter";
|
|
179
|
+
static readonly fields: FieldList;
|
|
180
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringListFilter;
|
|
181
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
182
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
183
|
+
static equals(a: StringListFilter | PlainMessage<StringListFilter> | undefined, b: StringListFilter | PlainMessage<StringListFilter> | undefined): boolean;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message search.TimeRangeFilter
|
|
187
|
+
*/
|
|
188
|
+
declare class TimeRangeFilter extends Message<TimeRangeFilter> {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: optional int64 start_timestamp = 1;
|
|
191
|
+
*/
|
|
192
|
+
startTimestamp?: bigint;
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: optional int64 end_timestamp = 2;
|
|
195
|
+
*/
|
|
196
|
+
endTimestamp?: bigint;
|
|
197
|
+
constructor(data?: PartialMessage<TimeRangeFilter>);
|
|
198
|
+
static readonly runtime: typeof proto3;
|
|
199
|
+
static readonly typeName = "search.TimeRangeFilter";
|
|
200
|
+
static readonly fields: FieldList;
|
|
201
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeRangeFilter;
|
|
202
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
203
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
204
|
+
static equals(a: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined, b: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined): boolean;
|
|
205
|
+
}
|
|
33
206
|
/**
|
|
34
207
|
* @generated from message search.SearchResponse
|
|
35
208
|
*/
|
|
@@ -69,4 +242,4 @@ declare class SearchResult extends Message<SearchResult> {
|
|
|
69
242
|
static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
|
|
70
243
|
}
|
|
71
244
|
|
|
72
|
-
export { SearchRequest, SearchResponse, SearchResult };
|
|
245
|
+
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter };
|
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
2
|
import { Error } from '../../util/error_pb.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum search.Order
|
|
6
|
+
*/
|
|
7
|
+
declare enum Order {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: ASC = 0;
|
|
10
|
+
*/
|
|
11
|
+
ASC = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: DESC = 1;
|
|
14
|
+
*/
|
|
15
|
+
DESC = 1
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum search.Quantifier
|
|
19
|
+
*/
|
|
20
|
+
declare enum Quantifier {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: ANY = 0;
|
|
23
|
+
*/
|
|
24
|
+
ANY = 0,
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: ALL = 1;
|
|
27
|
+
*/
|
|
28
|
+
ALL = 1
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum search.Operation
|
|
32
|
+
*/
|
|
33
|
+
declare enum Operation {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: INCLUDE = 0;
|
|
36
|
+
*/
|
|
37
|
+
INCLUDE = 0,
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: EXCLUDE = 1;
|
|
40
|
+
*/
|
|
41
|
+
EXCLUDE = 1
|
|
42
|
+
}
|
|
4
43
|
/**
|
|
5
44
|
* @generated from message search.SearchRequest
|
|
6
45
|
*/
|
|
@@ -21,6 +60,14 @@ declare class SearchRequest extends Message<SearchRequest> {
|
|
|
21
60
|
* @generated from field: int32 limit = 4;
|
|
22
61
|
*/
|
|
23
62
|
limit: number;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: repeated search.Filter filters = 5;
|
|
65
|
+
*/
|
|
66
|
+
filters: Filter[];
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: search.Sort sort = 6;
|
|
69
|
+
*/
|
|
70
|
+
sort?: Sort;
|
|
24
71
|
constructor(data?: PartialMessage<SearchRequest>);
|
|
25
72
|
static readonly runtime: typeof proto3;
|
|
26
73
|
static readonly typeName = "search.SearchRequest";
|
|
@@ -30,6 +77,132 @@ declare class SearchRequest extends Message<SearchRequest> {
|
|
|
30
77
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
31
78
|
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
32
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message search.Sort
|
|
82
|
+
*/
|
|
83
|
+
declare class Sort extends Message<Sort> {
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string field = 1;
|
|
86
|
+
*/
|
|
87
|
+
field: string;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: search.Order order = 2;
|
|
90
|
+
*/
|
|
91
|
+
order: Order;
|
|
92
|
+
constructor(data?: PartialMessage<Sort>);
|
|
93
|
+
static readonly runtime: typeof proto3;
|
|
94
|
+
static readonly typeName = "search.Sort";
|
|
95
|
+
static readonly fields: FieldList;
|
|
96
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sort;
|
|
97
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sort;
|
|
98
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sort;
|
|
99
|
+
static equals(a: Sort | PlainMessage<Sort> | undefined, b: Sort | PlainMessage<Sort> | undefined): boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated from message search.Filter
|
|
103
|
+
*/
|
|
104
|
+
declare class Filter extends Message<Filter> {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string field = 1;
|
|
107
|
+
*/
|
|
108
|
+
field: string;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from oneof search.Filter.condition
|
|
111
|
+
*/
|
|
112
|
+
condition: {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: search.BoolFilter bool_filter = 2;
|
|
115
|
+
*/
|
|
116
|
+
value: BoolFilter;
|
|
117
|
+
case: "boolFilter";
|
|
118
|
+
} | {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: search.TimeRangeFilter time_range_filter = 3;
|
|
121
|
+
*/
|
|
122
|
+
value: TimeRangeFilter;
|
|
123
|
+
case: "timeRangeFilter";
|
|
124
|
+
} | {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: search.StringListFilter string_list_filter = 4;
|
|
127
|
+
*/
|
|
128
|
+
value: StringListFilter;
|
|
129
|
+
case: "stringListFilter";
|
|
130
|
+
} | {
|
|
131
|
+
case: undefined;
|
|
132
|
+
value?: undefined;
|
|
133
|
+
};
|
|
134
|
+
constructor(data?: PartialMessage<Filter>);
|
|
135
|
+
static readonly runtime: typeof proto3;
|
|
136
|
+
static readonly typeName = "search.Filter";
|
|
137
|
+
static readonly fields: FieldList;
|
|
138
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Filter;
|
|
139
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Filter;
|
|
140
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Filter;
|
|
141
|
+
static equals(a: Filter | PlainMessage<Filter> | undefined, b: Filter | PlainMessage<Filter> | undefined): boolean;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @generated from message search.BoolFilter
|
|
145
|
+
*/
|
|
146
|
+
declare class BoolFilter extends Message<BoolFilter> {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: bool value = 1;
|
|
149
|
+
*/
|
|
150
|
+
value: boolean;
|
|
151
|
+
constructor(data?: PartialMessage<BoolFilter>);
|
|
152
|
+
static readonly runtime: typeof proto3;
|
|
153
|
+
static readonly typeName = "search.BoolFilter";
|
|
154
|
+
static readonly fields: FieldList;
|
|
155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolFilter;
|
|
156
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
157
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
158
|
+
static equals(a: BoolFilter | PlainMessage<BoolFilter> | undefined, b: BoolFilter | PlainMessage<BoolFilter> | undefined): boolean;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @generated from message search.StringListFilter
|
|
162
|
+
*/
|
|
163
|
+
declare class StringListFilter extends Message<StringListFilter> {
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: repeated string value = 1;
|
|
166
|
+
*/
|
|
167
|
+
value: string[];
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: search.Quantifier quantifier = 2;
|
|
170
|
+
*/
|
|
171
|
+
quantifier: Quantifier;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: search.Operation operation = 3;
|
|
174
|
+
*/
|
|
175
|
+
operation: Operation;
|
|
176
|
+
constructor(data?: PartialMessage<StringListFilter>);
|
|
177
|
+
static readonly runtime: typeof proto3;
|
|
178
|
+
static readonly typeName = "search.StringListFilter";
|
|
179
|
+
static readonly fields: FieldList;
|
|
180
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringListFilter;
|
|
181
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
182
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
183
|
+
static equals(a: StringListFilter | PlainMessage<StringListFilter> | undefined, b: StringListFilter | PlainMessage<StringListFilter> | undefined): boolean;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message search.TimeRangeFilter
|
|
187
|
+
*/
|
|
188
|
+
declare class TimeRangeFilter extends Message<TimeRangeFilter> {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: optional int64 start_timestamp = 1;
|
|
191
|
+
*/
|
|
192
|
+
startTimestamp?: bigint;
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: optional int64 end_timestamp = 2;
|
|
195
|
+
*/
|
|
196
|
+
endTimestamp?: bigint;
|
|
197
|
+
constructor(data?: PartialMessage<TimeRangeFilter>);
|
|
198
|
+
static readonly runtime: typeof proto3;
|
|
199
|
+
static readonly typeName = "search.TimeRangeFilter";
|
|
200
|
+
static readonly fields: FieldList;
|
|
201
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeRangeFilter;
|
|
202
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
203
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
204
|
+
static equals(a: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined, b: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined): boolean;
|
|
205
|
+
}
|
|
33
206
|
/**
|
|
34
207
|
* @generated from message search.SearchResponse
|
|
35
208
|
*/
|
|
@@ -69,4 +242,4 @@ declare class SearchResult extends Message<SearchResult> {
|
|
|
69
242
|
static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
|
|
70
243
|
}
|
|
71
244
|
|
|
72
|
-
export { SearchRequest, SearchResponse, SearchResult };
|
|
245
|
+
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter };
|