@dailydotdev/schema 0.3.17 → 0.3.18
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/proxy_pb.cjs +1 -1
- package/dist/bragi/proxy_pb.d.cts +6 -0
- package/dist/bragi/proxy_pb.d.ts +6 -0
- package/dist/bragi/proxy_pb.js +1 -1
- package/dist/daily-api/pubsub/ledger-document-published_pb.cjs +1 -0
- package/dist/daily-api/pubsub/ledger-document-published_pb.d.cts +137 -0
- package/dist/daily-api/pubsub/ledger-document-published_pb.d.ts +137 -0
- package/dist/daily-api/pubsub/ledger-document-published_pb.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/bragi/proxy_pb.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(s,{CacheControl:()=>l,CacheControlType:()=>i,ChatAudit:()=>h,ChatDelta:()=>p,ChatMessage:()=>c,ChatRequest:()=>f,ChatResponse:()=>y,ChatStreamResponse:()=>k,CompletionRequest:()=>g,Embedding:()=>w,EmbeddingRequest:()=>T,EmbeddingResponse:()=>J,ImageUrl:()=>b,ModelProvider:()=>m,ReasoningEffort:()=>u,Usage:()=>d,VisionContent:()=>q,VisionMessage:()=>S,VisionRequest:()=>x}),module.exports=(t=s,((t,s,a,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let m of r(s))o.call(t,m)||m===a||e(t,m,{get:()=>s[m],enumerable:!(i=n(s,m))||i.enumerable});return t})(e({},"__esModule",{value:!0}),t));var a=require("@bufbuild/protobuf"),i=(t=>(t[t.Ephemeral=0]="Ephemeral",t))(i||{});a.proto3.util.setEnumType(i,"bragi.proxy.CacheControlType",[{no:0,name:"Ephemeral"}]);var m=(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))(m||{});a.proto3.util.setEnumType(m,"bragi.proxy.ModelProvider",[{no:0,name:"OpenAI"},{no:1,name:"Azure"},{no:2,name:"Google"},{no:3,name:"Anthropic"},{no:4,name:"AnthropicVertex"}]);var u=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LOW=2]="LOW",t[t.MEDIUM=3]="MEDIUM",t[t.HIGH=4]="HIGH",t))(u||{});a.proto3.util.setEnumType(u,"bragi.proxy.ReasoningEffort",[{no:0,name:"REASONING_EFFORT_UNSPECIFIED"},{no:2,name:"REASONING_EFFORT_LOW"},{no:3,name:"REASONING_EFFORT_MEDIUM"},{no:4,name:"REASONING_EFFORT_HIGH"}]);class l extends a.Message{type=0;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.CacheControl";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:a.proto3.getEnumType(i)}]));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 a.proto3.util.equals(l,t,e)}}class c extends a.Message{role="";content="";cacheControl;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.ChatMessage";static fields=a.proto3.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:l,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 a.proto3.util.equals(c,t,e)}}class p extends a.Message{role;content;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.ChatDelta";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"role",kind:"message",T:a.StringValue},{no:2,name:"content",kind:"message",T:a.StringValue}]));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 a.proto3.util.equals(p,t,e)}}class d extends a.Message{promptTokens=0;completionTokens=0;totalTokens=0;cachedTokens;thinkingTokens;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.Usage";static fields=a.proto3.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},{no:5,name:"thinking_tokens",kind:"scalar",T:13,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 a.proto3.util.equals(d,t,e)}}class g extends a.Message{application="";provider=0;model="";prompt="";maxTokens;temperature;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.CompletionRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:a.proto3.getEnumType(m)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"prompt",kind:"scalar",T:9},{no:5,name:"max_tokens",kind:"message",T:a.UInt32Value,opt:!0},{no:6,name:"temperature",kind:"message",T:a.FloatValue,opt:!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 a.proto3.util.equals(g,t,e)}}class f extends a.Message{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};tools;outputConfig;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.ChatRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:a.proto3.getEnumType(m)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:c,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:a.UInt32Value,opt:!0},{no:6,name:"temperature",kind:"message",T:a.FloatValue,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:a.proto3.getEnumType(u),oneof:"thinking"},{no:9,name:"tools",kind:"scalar",T:9,opt:!0},{no:10,name:"output_config",kind:"scalar",T:9,opt:!0}]));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 a.proto3.util.equals(f,t,e)}}class y extends a.Message{id="";message;finishReason="";usage;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.ChatResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"message",kind:"message",T:c},{no:3,name:"finish_reason",kind:"scalar",T:9},{no:4,name:"usage",kind:"message",T:d}]));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 a.proto3.util.equals(y,t,e)}}class k extends a.Message{id="";delta;finishReason;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.ChatStreamResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"delta",kind:"message",T:p},{no:3,name:"finish_reason",kind:"message",T:a.StringValue}]));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 a.proto3.util.equals(k,t,e)}}class T extends a.Message{provider=0;model="";input=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.EmbeddingRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"provider",kind:"enum",T:a.proto3.getEnumType(m)},{no:2,name:"model",kind:"scalar",T:9},{no:3,name:"input",kind:"scalar",T:9,repeated:!0}]));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 a.proto3.util.equals(T,t,e)}}class w extends a.Message{embedding=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.Embedding";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"embedding",kind:"scalar",T:2,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 a.proto3.util.equals(w,t,e)}}class J extends a.Message{data=[];usage;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.EmbeddingResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"message",T:w,repeated:!0},{no:2,name:"usage",kind:"message",T:d}]));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 a.proto3.util.equals(J,t,e)}}class h extends a.Message{request;response;stream=!1;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.ChatAudit";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:f},{no:2,name:"response",kind:"message",T:y},{no:3,name:"stream",kind:"scalar",T:8}]));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 a.proto3.util.equals(h,t,e)}}class x extends a.Message{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.VisionRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:a.proto3.getEnumType(m)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:S,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:a.UInt32Value,opt:!0},{no:6,name:"temperature",kind:"message",T:a.FloatValue,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:a.proto3.getEnumType(u),oneof:"thinking"}]));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 a.proto3.util.equals(x,t,e)}}class S extends a.Message{role="";content=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.VisionMessage";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"role",kind:"scalar",T:9},{no:2,name:"content",kind:"message",T:q,repeated:!0}]));static fromBinary(t,e){return(new S).fromBinary(t,e)}static fromJson(t,e){return(new S).fromJson(t,e)}static fromJsonString(t,e){return(new S).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(S,t,e)}}class q extends a.Message{type="";text;imageUrl;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.VisionContent";static fields=a.proto3.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:b,opt:!0}]));static fromBinary(t,e){return(new q).fromBinary(t,e)}static fromJson(t,e){return(new q).fromJson(t,e)}static fromJsonString(t,e){return(new q).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(q,t,e)}}class b extends a.Message{url="";constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="bragi.proxy.ImageUrl";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));static fromBinary(t,e){return(new b).fromBinary(t,e)}static fromJson(t,e){return(new b).fromJson(t,e)}static fromJsonString(t,e){return(new b).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(b,t,e)}}
|
|
1
|
+
var t,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(a,{CacheControl:()=>l,CacheControlType:()=>i,ChatAudit:()=>h,ChatDelta:()=>p,ChatMessage:()=>c,ChatRequest:()=>f,ChatResponse:()=>y,ChatStreamResponse:()=>k,CompletionRequest:()=>g,Embedding:()=>w,EmbeddingRequest:()=>T,EmbeddingResponse:()=>J,ImageUrl:()=>b,ModelProvider:()=>m,ReasoningEffort:()=>u,Usage:()=>d,VisionContent:()=>q,VisionMessage:()=>S,VisionRequest:()=>x}),module.exports=(t=a,((t,a,s,i)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let m of r(a))o.call(t,m)||m===s||e(t,m,{get:()=>a[m],enumerable:!(i=n(a,m))||i.enumerable});return t})(e({},"__esModule",{value:!0}),t));var s=require("@bufbuild/protobuf"),i=(t=>(t[t.Ephemeral=0]="Ephemeral",t))(i||{});s.proto3.util.setEnumType(i,"bragi.proxy.CacheControlType",[{no:0,name:"Ephemeral"}]);var m=(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))(m||{});s.proto3.util.setEnumType(m,"bragi.proxy.ModelProvider",[{no:0,name:"OpenAI"},{no:1,name:"Azure"},{no:2,name:"Google"},{no:3,name:"Anthropic"},{no:4,name:"AnthropicVertex"}]);var u=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LOW=2]="LOW",t[t.MEDIUM=3]="MEDIUM",t[t.HIGH=4]="HIGH",t))(u||{});s.proto3.util.setEnumType(u,"bragi.proxy.ReasoningEffort",[{no:0,name:"REASONING_EFFORT_UNSPECIFIED"},{no:2,name:"REASONING_EFFORT_LOW"},{no:3,name:"REASONING_EFFORT_MEDIUM"},{no:4,name:"REASONING_EFFORT_HIGH"}]);class l extends s.Message{type=0;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.CacheControl";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:s.proto3.getEnumType(i)}]));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 s.proto3.util.equals(l,t,e)}}class c extends s.Message{role="";content="";cacheControl;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.ChatMessage";static fields=s.proto3.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:l,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 s.proto3.util.equals(c,t,e)}}class p extends s.Message{role;content;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.ChatDelta";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"role",kind:"message",T:s.StringValue},{no:2,name:"content",kind:"message",T:s.StringValue}]));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 d extends s.Message{promptTokens=0;completionTokens=0;totalTokens=0;cachedTokens;thinkingTokens;cacheCreationTokens;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.Usage";static fields=s.proto3.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},{no:5,name:"thinking_tokens",kind:"scalar",T:13,opt:!0},{no:6,name:"cache_creation_tokens",kind:"scalar",T:13,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 s.proto3.util.equals(d,t,e)}}class g extends s.Message{application="";provider=0;model="";prompt="";maxTokens;temperature;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.CompletionRequest";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:s.proto3.getEnumType(m)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"prompt",kind:"scalar",T:9},{no:5,name:"max_tokens",kind:"message",T:s.UInt32Value,opt:!0},{no:6,name:"temperature",kind:"message",T:s.FloatValue,opt:!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 s.proto3.util.equals(g,t,e)}}class f extends s.Message{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};tools;outputConfig;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.ChatRequest";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:s.proto3.getEnumType(m)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:c,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:s.UInt32Value,opt:!0},{no:6,name:"temperature",kind:"message",T:s.FloatValue,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:s.proto3.getEnumType(u),oneof:"thinking"},{no:9,name:"tools",kind:"scalar",T:9,opt:!0},{no:10,name:"output_config",kind:"scalar",T:9,opt:!0}]));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 y extends s.Message{id="";message;finishReason="";usage;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.ChatResponse";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"message",kind:"message",T:c},{no:3,name:"finish_reason",kind:"scalar",T:9},{no:4,name:"usage",kind:"message",T:d}]));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 k extends s.Message{id="";delta;finishReason;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.ChatStreamResponse";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"delta",kind:"message",T:p},{no:3,name:"finish_reason",kind:"message",T:s.StringValue}]));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 s.proto3.util.equals(k,t,e)}}class T extends s.Message{provider=0;model="";input=[];constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.EmbeddingRequest";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"provider",kind:"enum",T:s.proto3.getEnumType(m)},{no:2,name:"model",kind:"scalar",T:9},{no:3,name:"input",kind:"scalar",T:9,repeated:!0}]));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 s.proto3.util.equals(T,t,e)}}class w extends s.Message{embedding=[];constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.Embedding";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"embedding",kind:"scalar",T:2,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{data=[];usage;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.EmbeddingResponse";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"message",T:w,repeated:!0},{no:2,name:"usage",kind:"message",T:d}]));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)}}class h extends s.Message{request;response;stream=!1;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.ChatAudit";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:f},{no:2,name:"response",kind:"message",T:y},{no:3,name:"stream",kind:"scalar",T:8}]));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 s.proto3.util.equals(h,t,e)}}class x extends s.Message{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.VisionRequest";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:s.proto3.getEnumType(m)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:S,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:s.UInt32Value,opt:!0},{no:6,name:"temperature",kind:"message",T:s.FloatValue,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:s.proto3.getEnumType(u),oneof:"thinking"}]));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 s.proto3.util.equals(x,t,e)}}class S extends s.Message{role="";content=[];constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.VisionMessage";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"role",kind:"scalar",T:9},{no:2,name:"content",kind:"message",T:q,repeated:!0}]));static fromBinary(t,e){return(new S).fromBinary(t,e)}static fromJson(t,e){return(new S).fromJson(t,e)}static fromJsonString(t,e){return(new S).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(S,t,e)}}class q extends s.Message{type="";text;imageUrl;constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.VisionContent";static fields=s.proto3.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:b,opt:!0}]));static fromBinary(t,e){return(new q).fromBinary(t,e)}static fromJson(t,e){return(new q).fromJson(t,e)}static fromJsonString(t,e){return(new q).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(q,t,e)}}class b extends s.Message{url="";constructor(t){super(),s.proto3.util.initPartial(t,this)}static runtime=s.proto3;static typeName="bragi.proxy.ImageUrl";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));static fromBinary(t,e){return(new b).fromBinary(t,e)}static fromJson(t,e){return(new b).fromJson(t,e)}static fromJsonString(t,e){return(new b).fromJsonString(t,e)}static equals(t,e){return s.proto3.util.equals(b,t,e)}}
|
|
@@ -156,6 +156,12 @@ declare class Usage extends Message<Usage> {
|
|
|
156
156
|
* @generated from field: optional uint32 thinking_tokens = 5;
|
|
157
157
|
*/
|
|
158
158
|
thinkingTokens?: number;
|
|
159
|
+
/**
|
|
160
|
+
* Number of prompt tokens written to the provider's prompt cache (billed at a premium)
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: optional uint32 cache_creation_tokens = 6;
|
|
163
|
+
*/
|
|
164
|
+
cacheCreationTokens?: number;
|
|
159
165
|
constructor(data?: PartialMessage<Usage>);
|
|
160
166
|
static readonly runtime: typeof proto3;
|
|
161
167
|
static readonly typeName = "bragi.proxy.Usage";
|
package/dist/bragi/proxy_pb.d.ts
CHANGED
|
@@ -156,6 +156,12 @@ declare class Usage extends Message<Usage> {
|
|
|
156
156
|
* @generated from field: optional uint32 thinking_tokens = 5;
|
|
157
157
|
*/
|
|
158
158
|
thinkingTokens?: number;
|
|
159
|
+
/**
|
|
160
|
+
* Number of prompt tokens written to the provider's prompt cache (billed at a premium)
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: optional uint32 cache_creation_tokens = 6;
|
|
163
|
+
*/
|
|
164
|
+
cacheCreationTokens?: number;
|
|
159
165
|
constructor(data?: PartialMessage<Usage>);
|
|
160
166
|
static readonly runtime: typeof proto3;
|
|
161
167
|
static readonly typeName = "bragi.proxy.Usage";
|
package/dist/bragi/proxy_pb.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FloatValue as t,Message as n,proto3 as e,StringValue as r,UInt32Value as i}from"@bufbuild/protobuf";var a=(t=>(t[t.Ephemeral=0]="Ephemeral",t))(a||{});e.util.setEnumType(a,"bragi.proxy.CacheControlType",[{no:0,name:"Ephemeral"}]);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))(s||{});e.util.setEnumType(s,"bragi.proxy.ModelProvider",[{no:0,name:"OpenAI"},{no:1,name:"Azure"},{no:2,name:"Google"},{no:3,name:"Anthropic"},{no:4,name:"AnthropicVertex"}]);var o=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LOW=2]="LOW",t[t.MEDIUM=3]="MEDIUM",t[t.HIGH=4]="HIGH",t))(o||{});e.util.setEnumType(o,"bragi.proxy.ReasoningEffort",[{no:0,name:"REASONING_EFFORT_UNSPECIFIED"},{no:2,name:"REASONING_EFFORT_LOW"},{no:3,name:"REASONING_EFFORT_MEDIUM"},{no:4,name:"REASONING_EFFORT_HIGH"}]);class m extends n{type=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.CacheControl";static fields=e.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:e.getEnumType(a)}]));static fromBinary(t,n){return(new m).fromBinary(t,n)}static fromJson(t,n){return(new m).fromJson(t,n)}static fromJsonString(t,n){return(new m).fromJsonString(t,n)}static equals(t,n){return e.util.equals(m,t,n)}}class u extends n{role="";content="";cacheControl;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatMessage";static fields=e.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:m,opt:!0}]));static fromBinary(t,n){return(new u).fromBinary(t,n)}static fromJson(t,n){return(new u).fromJson(t,n)}static fromJsonString(t,n){return(new u).fromJsonString(t,n)}static equals(t,n){return e.util.equals(u,t,n)}}class c extends n{role;content;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatDelta";static fields=e.util.newFieldList((()=>[{no:1,name:"role",kind:"message",T:r},{no:2,name:"content",kind:"message",T:r}]));static fromBinary(t,n){return(new c).fromBinary(t,n)}static fromJson(t,n){return(new c).fromJson(t,n)}static fromJsonString(t,n){return(new c).fromJsonString(t,n)}static equals(t,n){return e.util.equals(c,t,n)}}class l extends n{promptTokens=0;completionTokens=0;totalTokens=0;cachedTokens;thinkingTokens;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.Usage";static fields=e.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},{no:5,name:"thinking_tokens",kind:"scalar",T:13,opt:!0}]));static fromBinary(t,n){return(new l).fromBinary(t,n)}static fromJson(t,n){return(new l).fromJson(t,n)}static fromJsonString(t,n){return(new l).fromJsonString(t,n)}static equals(t,n){return e.util.equals(l,t,n)}}class d extends n{application="";provider=0;model="";prompt="";maxTokens;temperature;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.CompletionRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:e.getEnumType(s)},{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,n){return(new d).fromBinary(t,n)}static fromJson(t,n){return(new d).fromJson(t,n)}static fromJsonString(t,n){return(new d).fromJsonString(t,n)}static equals(t,n){return e.util.equals(d,t,n)}}class p extends n{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};tools;outputConfig;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:e.getEnumType(s)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:u,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:i,opt:!0},{no:6,name:"temperature",kind:"message",T:t,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:e.getEnumType(o),oneof:"thinking"},{no:9,name:"tools",kind:"scalar",T:9,opt:!0},{no:10,name:"output_config",kind:"scalar",T:9,opt:!0}]));static fromBinary(t,n){return(new p).fromBinary(t,n)}static fromJson(t,n){return(new p).fromJson(t,n)}static fromJsonString(t,n){return(new p).fromJsonString(t,n)}static equals(t,n){return e.util.equals(p,t,n)}}class f extends n{id="";message;finishReason="";usage;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"message",kind:"message",T:u},{no:3,name:"finish_reason",kind:"scalar",T:9},{no:4,name:"usage",kind:"message",T:l}]));static fromBinary(t,n){return(new f).fromBinary(t,n)}static fromJson(t,n){return(new f).fromJson(t,n)}static fromJsonString(t,n){return(new f).fromJsonString(t,n)}static equals(t,n){return e.util.equals(f,t,n)}}class g extends n{id="";delta;finishReason;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatStreamResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"delta",kind:"message",T:c},{no:3,name:"finish_reason",kind:"message",T:r}]));static fromBinary(t,n){return(new g).fromBinary(t,n)}static fromJson(t,n){return(new g).fromJson(t,n)}static fromJsonString(t,n){return(new g).fromJsonString(t,n)}static equals(t,n){return e.util.equals(g,t,n)}}class k extends n{provider=0;model="";input=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.EmbeddingRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"provider",kind:"enum",T:e.getEnumType(s)},{no:2,name:"model",kind:"scalar",T:9},{no:3,name:"input",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,n){return(new k).fromBinary(t,n)}static fromJson(t,n){return(new k).fromJson(t,n)}static fromJsonString(t,n){return(new k).fromJsonString(t,n)}static equals(t,n){return e.util.equals(k,t,n)}}class y extends n{embedding=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.Embedding";static fields=e.util.newFieldList((()=>[{no:1,name:"embedding",kind:"scalar",T:2,repeated:!0}]));static fromBinary(t,n){return(new y).fromBinary(t,n)}static fromJson(t,n){return(new y).fromJson(t,n)}static fromJsonString(t,n){return(new y).fromJsonString(t,n)}static equals(t,n){return e.util.equals(y,t,n)}}class T extends n{data=[];usage;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.EmbeddingResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"data",kind:"message",T:y,repeated:!0},{no:2,name:"usage",kind:"message",T:l}]));static fromBinary(t,n){return(new T).fromBinary(t,n)}static fromJson(t,n){return(new T).fromJson(t,n)}static fromJsonString(t,n){return(new T).fromJsonString(t,n)}static equals(t,n){return e.util.equals(T,t,n)}}class w extends n{request;response;stream=!1;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatAudit";static fields=e.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:p},{no:2,name:"response",kind:"message",T:f},{no:3,name:"stream",kind:"scalar",T:8}]));static fromBinary(t,n){return(new w).fromBinary(t,n)}static fromJson(t,n){return(new w).fromJson(t,n)}static fromJsonString(t,n){return(new w).fromJsonString(t,n)}static equals(t,n){return e.util.equals(w,t,n)}}class J extends n{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.VisionRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:e.getEnumType(s)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:h,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:i,opt:!0},{no:6,name:"temperature",kind:"message",T:t,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:e.getEnumType(o),oneof:"thinking"}]));static fromBinary(t,n){return(new J).fromBinary(t,n)}static fromJson(t,n){return(new J).fromJson(t,n)}static fromJsonString(t,n){return(new J).fromJsonString(t,n)}static equals(t,n){return e.util.equals(J,t,n)}}class h extends n{role="";content=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.VisionMessage";static fields=e.util.newFieldList((()=>[{no:1,name:"role",kind:"scalar",T:9},{no:2,name:"content",kind:"message",T:x,repeated:!0}]));static fromBinary(t,n){return(new h).fromBinary(t,n)}static fromJson(t,n){return(new h).fromJson(t,n)}static fromJsonString(t,n){return(new h).fromJsonString(t,n)}static equals(t,n){return e.util.equals(h,t,n)}}class x extends n{type="";text;imageUrl;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.VisionContent";static fields=e.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:S,opt:!0}]));static fromBinary(t,n){return(new x).fromBinary(t,n)}static fromJson(t,n){return(new x).fromJson(t,n)}static fromJsonString(t,n){return(new x).fromJsonString(t,n)}static equals(t,n){return e.util.equals(x,t,n)}}class S extends n{url="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ImageUrl";static fields=e.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));static fromBinary(t,n){return(new S).fromBinary(t,n)}static fromJson(t,n){return(new S).fromJson(t,n)}static fromJsonString(t,n){return(new S).fromJsonString(t,n)}static equals(t,n){return e.util.equals(S,t,n)}}export{m as CacheControl,a as CacheControlType,w as ChatAudit,c as ChatDelta,u as ChatMessage,p as ChatRequest,f as ChatResponse,g as ChatStreamResponse,d as CompletionRequest,y as Embedding,k as EmbeddingRequest,T as EmbeddingResponse,S as ImageUrl,s as ModelProvider,o as ReasoningEffort,l as Usage,x as VisionContent,h as VisionMessage,J as VisionRequest};
|
|
1
|
+
import{FloatValue as t,Message as n,proto3 as e,StringValue as r,UInt32Value as i}from"@bufbuild/protobuf";var a=(t=>(t[t.Ephemeral=0]="Ephemeral",t))(a||{});e.util.setEnumType(a,"bragi.proxy.CacheControlType",[{no:0,name:"Ephemeral"}]);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))(s||{});e.util.setEnumType(s,"bragi.proxy.ModelProvider",[{no:0,name:"OpenAI"},{no:1,name:"Azure"},{no:2,name:"Google"},{no:3,name:"Anthropic"},{no:4,name:"AnthropicVertex"}]);var o=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LOW=2]="LOW",t[t.MEDIUM=3]="MEDIUM",t[t.HIGH=4]="HIGH",t))(o||{});e.util.setEnumType(o,"bragi.proxy.ReasoningEffort",[{no:0,name:"REASONING_EFFORT_UNSPECIFIED"},{no:2,name:"REASONING_EFFORT_LOW"},{no:3,name:"REASONING_EFFORT_MEDIUM"},{no:4,name:"REASONING_EFFORT_HIGH"}]);class m extends n{type=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.CacheControl";static fields=e.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:e.getEnumType(a)}]));static fromBinary(t,n){return(new m).fromBinary(t,n)}static fromJson(t,n){return(new m).fromJson(t,n)}static fromJsonString(t,n){return(new m).fromJsonString(t,n)}static equals(t,n){return e.util.equals(m,t,n)}}class u extends n{role="";content="";cacheControl;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatMessage";static fields=e.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:m,opt:!0}]));static fromBinary(t,n){return(new u).fromBinary(t,n)}static fromJson(t,n){return(new u).fromJson(t,n)}static fromJsonString(t,n){return(new u).fromJsonString(t,n)}static equals(t,n){return e.util.equals(u,t,n)}}class c extends n{role;content;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatDelta";static fields=e.util.newFieldList((()=>[{no:1,name:"role",kind:"message",T:r},{no:2,name:"content",kind:"message",T:r}]));static fromBinary(t,n){return(new c).fromBinary(t,n)}static fromJson(t,n){return(new c).fromJson(t,n)}static fromJsonString(t,n){return(new c).fromJsonString(t,n)}static equals(t,n){return e.util.equals(c,t,n)}}class l extends n{promptTokens=0;completionTokens=0;totalTokens=0;cachedTokens;thinkingTokens;cacheCreationTokens;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.Usage";static fields=e.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},{no:5,name:"thinking_tokens",kind:"scalar",T:13,opt:!0},{no:6,name:"cache_creation_tokens",kind:"scalar",T:13,opt:!0}]));static fromBinary(t,n){return(new l).fromBinary(t,n)}static fromJson(t,n){return(new l).fromJson(t,n)}static fromJsonString(t,n){return(new l).fromJsonString(t,n)}static equals(t,n){return e.util.equals(l,t,n)}}class d extends n{application="";provider=0;model="";prompt="";maxTokens;temperature;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.CompletionRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:e.getEnumType(s)},{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,n){return(new d).fromBinary(t,n)}static fromJson(t,n){return(new d).fromJson(t,n)}static fromJsonString(t,n){return(new d).fromJsonString(t,n)}static equals(t,n){return e.util.equals(d,t,n)}}class p extends n{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};tools;outputConfig;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:e.getEnumType(s)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:u,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:i,opt:!0},{no:6,name:"temperature",kind:"message",T:t,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:e.getEnumType(o),oneof:"thinking"},{no:9,name:"tools",kind:"scalar",T:9,opt:!0},{no:10,name:"output_config",kind:"scalar",T:9,opt:!0}]));static fromBinary(t,n){return(new p).fromBinary(t,n)}static fromJson(t,n){return(new p).fromJson(t,n)}static fromJsonString(t,n){return(new p).fromJsonString(t,n)}static equals(t,n){return e.util.equals(p,t,n)}}class f extends n{id="";message;finishReason="";usage;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"message",kind:"message",T:u},{no:3,name:"finish_reason",kind:"scalar",T:9},{no:4,name:"usage",kind:"message",T:l}]));static fromBinary(t,n){return(new f).fromBinary(t,n)}static fromJson(t,n){return(new f).fromJson(t,n)}static fromJsonString(t,n){return(new f).fromJsonString(t,n)}static equals(t,n){return e.util.equals(f,t,n)}}class g extends n{id="";delta;finishReason;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatStreamResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"delta",kind:"message",T:c},{no:3,name:"finish_reason",kind:"message",T:r}]));static fromBinary(t,n){return(new g).fromBinary(t,n)}static fromJson(t,n){return(new g).fromJson(t,n)}static fromJsonString(t,n){return(new g).fromJsonString(t,n)}static equals(t,n){return e.util.equals(g,t,n)}}class k extends n{provider=0;model="";input=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.EmbeddingRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"provider",kind:"enum",T:e.getEnumType(s)},{no:2,name:"model",kind:"scalar",T:9},{no:3,name:"input",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,n){return(new k).fromBinary(t,n)}static fromJson(t,n){return(new k).fromJson(t,n)}static fromJsonString(t,n){return(new k).fromJsonString(t,n)}static equals(t,n){return e.util.equals(k,t,n)}}class y extends n{embedding=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.Embedding";static fields=e.util.newFieldList((()=>[{no:1,name:"embedding",kind:"scalar",T:2,repeated:!0}]));static fromBinary(t,n){return(new y).fromBinary(t,n)}static fromJson(t,n){return(new y).fromJson(t,n)}static fromJsonString(t,n){return(new y).fromJsonString(t,n)}static equals(t,n){return e.util.equals(y,t,n)}}class T extends n{data=[];usage;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.EmbeddingResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"data",kind:"message",T:y,repeated:!0},{no:2,name:"usage",kind:"message",T:l}]));static fromBinary(t,n){return(new T).fromBinary(t,n)}static fromJson(t,n){return(new T).fromJson(t,n)}static fromJsonString(t,n){return(new T).fromJsonString(t,n)}static equals(t,n){return e.util.equals(T,t,n)}}class w extends n{request;response;stream=!1;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ChatAudit";static fields=e.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:p},{no:2,name:"response",kind:"message",T:f},{no:3,name:"stream",kind:"scalar",T:8}]));static fromBinary(t,n){return(new w).fromBinary(t,n)}static fromJson(t,n){return(new w).fromJson(t,n)}static fromJsonString(t,n){return(new w).fromJsonString(t,n)}static equals(t,n){return e.util.equals(w,t,n)}}class J extends n{application="";provider=0;model="";messages=[];maxTokens;temperature;thinking={case:void 0};constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.VisionRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"application",kind:"scalar",T:9},{no:2,name:"provider",kind:"enum",T:e.getEnumType(s)},{no:3,name:"model",kind:"scalar",T:9},{no:4,name:"messages",kind:"message",T:h,repeated:!0},{no:5,name:"max_tokens",kind:"message",T:i,opt:!0},{no:6,name:"temperature",kind:"message",T:t,opt:!0},{no:7,name:"thinking_budget",kind:"scalar",T:5,oneof:"thinking"},{no:8,name:"reasoning_effort",kind:"enum",T:e.getEnumType(o),oneof:"thinking"}]));static fromBinary(t,n){return(new J).fromBinary(t,n)}static fromJson(t,n){return(new J).fromJson(t,n)}static fromJsonString(t,n){return(new J).fromJsonString(t,n)}static equals(t,n){return e.util.equals(J,t,n)}}class h extends n{role="";content=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.VisionMessage";static fields=e.util.newFieldList((()=>[{no:1,name:"role",kind:"scalar",T:9},{no:2,name:"content",kind:"message",T:x,repeated:!0}]));static fromBinary(t,n){return(new h).fromBinary(t,n)}static fromJson(t,n){return(new h).fromJson(t,n)}static fromJsonString(t,n){return(new h).fromJsonString(t,n)}static equals(t,n){return e.util.equals(h,t,n)}}class x extends n{type="";text;imageUrl;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.VisionContent";static fields=e.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:S,opt:!0}]));static fromBinary(t,n){return(new x).fromBinary(t,n)}static fromJson(t,n){return(new x).fromJson(t,n)}static fromJsonString(t,n){return(new x).fromJsonString(t,n)}static equals(t,n){return e.util.equals(x,t,n)}}class S extends n{url="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="bragi.proxy.ImageUrl";static fields=e.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));static fromBinary(t,n){return(new S).fromBinary(t,n)}static fromJson(t,n){return(new S).fromJson(t,n)}static fromJsonString(t,n){return(new S).fromJsonString(t,n)}static equals(t,n){return e.util.equals(S,t,n)}}export{m as CacheControl,a as CacheControlType,w as ChatAudit,c as ChatDelta,u as ChatMessage,p as ChatRequest,f as ChatResponse,g as ChatStreamResponse,d as CompletionRequest,y as Embedding,k as EmbeddingRequest,T as EmbeddingResponse,S as ImageUrl,s as ModelProvider,o as ReasoningEffort,l as Usage,x as VisionContent,h as VisionMessage,J as VisionRequest};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var o in t)n(e,o,{get:t[o],enumerable:!0})})(a,{LedgerContentFormat:()=>u,LedgerDocumentPublishedMessage:()=>d,LedgerSourceClass:()=>i}),module.exports=(e=a,((e,a,s,u)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of o(a))r.call(e,i)||i===s||n(e,i,{get:()=>a[i],enumerable:!(u=t(a,i))||u.enumerable});return e})(n({},"__esModule",{value:!0}),e));var s=require("@bufbuild/protobuf"),u=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.XML=1]="XML",e[e.MARKDOWN=2]="MARKDOWN",e[e.HTML=3]="HTML",e))(u||{});s.proto3.util.setEnumType(u,"dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerContentFormat",[{no:0,name:"LEDGER_CONTENT_FORMAT_UNSPECIFIED"},{no:1,name:"LEDGER_CONTENT_FORMAT_XML"},{no:2,name:"LEDGER_CONTENT_FORMAT_MARKDOWN"},{no:3,name:"LEDGER_CONTENT_FORMAT_HTML"}]);var i=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.VENDOR_CHANGELOG=1]="VENDOR_CHANGELOG",e[e.REGISTRY=2]="REGISTRY",e[e.COMMUNITY=3]="COMMUNITY",e))(i||{});s.proto3.util.setEnumType(i,"dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerSourceClass",[{no:0,name:"LEDGER_SOURCE_CLASS_UNSPECIFIED"},{no:1,name:"LEDGER_SOURCE_CLASS_VENDOR_CHANGELOG"},{no:2,name:"LEDGER_SOURCE_CLASS_REGISTRY"},{no:3,name:"LEDGER_SOURCE_CLASS_COMMUNITY"}]);class d extends s.Message{documentId="";sourceId="";url="";title="";sourceName="";sourceClass=0;publishedAt;contentLocation="";contentFormat=0;contentHash="";constructor(e){super(),s.proto3.util.initPartial(e,this)}static runtime=s.proto3;static typeName="dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerDocumentPublishedMessage";static fields=s.proto3.util.newFieldList((()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"source_id",kind:"scalar",T:9},{no:3,name:"url",kind:"scalar",T:9},{no:4,name:"title",kind:"scalar",T:9},{no:5,name:"source_name",kind:"scalar",T:9},{no:6,name:"source_class",kind:"enum",T:s.proto3.getEnumType(i)},{no:7,name:"published_at",kind:"scalar",T:3,opt:!0},{no:8,name:"content_location",kind:"scalar",T:9},{no:9,name:"content_format",kind:"enum",T:s.proto3.getEnumType(u)},{no:10,name:"content_hash",kind:"scalar",T:9}]));static fromBinary(e,n){return(new d).fromBinary(e,n)}static fromJson(e,n){return(new d).fromJson(e,n)}static fromJsonString(e,n){return(new d).fromJsonString(e,n)}static equals(e,n){return s.proto3.util.equals(d,e,n)}}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Mirrors bragi's ContentFormat. Duplicated rather than imported so a pubsub
|
|
5
|
+
* contract does not pull in the whole bragi service definition; daily-api maps
|
|
6
|
+
* between the two at the call site, as it already does for posts.
|
|
7
|
+
*
|
|
8
|
+
* @generated from enum dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerContentFormat
|
|
9
|
+
*/
|
|
10
|
+
declare enum LedgerContentFormat {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
UNSPECIFIED = 0,
|
|
15
|
+
/**
|
|
16
|
+
* Trafilatura XML
|
|
17
|
+
*
|
|
18
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_XML = 1;
|
|
19
|
+
*/
|
|
20
|
+
XML = 1,
|
|
21
|
+
/**
|
|
22
|
+
* Markdown / plain text
|
|
23
|
+
*
|
|
24
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_MARKDOWN = 2;
|
|
25
|
+
*/
|
|
26
|
+
MARKDOWN = 2,
|
|
27
|
+
/**
|
|
28
|
+
* Raw page HTML, cleaned by bragi
|
|
29
|
+
*
|
|
30
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_HTML = 3;
|
|
31
|
+
*/
|
|
32
|
+
HTML = 3
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Mirrors daily-api's ClaimEvidenceSourceClass, minus `manual` — that one is a
|
|
36
|
+
* reviewer's own citation and no lane ever publishes it.
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerSourceClass
|
|
39
|
+
*/
|
|
40
|
+
declare enum LedgerSourceClass {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_UNSPECIFIED = 0;
|
|
43
|
+
*/
|
|
44
|
+
UNSPECIFIED = 0,
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_VENDOR_CHANGELOG = 1;
|
|
47
|
+
*/
|
|
48
|
+
VENDOR_CHANGELOG = 1,
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_REGISTRY = 2;
|
|
51
|
+
*/
|
|
52
|
+
REGISTRY = 2,
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_COMMUNITY = 3;
|
|
55
|
+
*/
|
|
56
|
+
COMMUNITY = 3
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from message dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerDocumentPublishedMessage
|
|
60
|
+
*/
|
|
61
|
+
declare class LedgerDocumentPublishedMessage extends Message<LedgerDocumentPublishedMessage> {
|
|
62
|
+
/**
|
|
63
|
+
* Yggdrasil's own id for the document, echoed by daily-api for correlation.
|
|
64
|
+
* Opaque on purpose: it keeps this contract independent of whether the lane
|
|
65
|
+
* ends up storing documents in content_entry or a table of its own.
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: string document_id = 1;
|
|
68
|
+
*/
|
|
69
|
+
documentId: string;
|
|
70
|
+
/**
|
|
71
|
+
* The yggdrasil source this document was polled from. Stable across a source
|
|
72
|
+
* being renamed, so per-source stats survive relabelling.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: string source_id = 2;
|
|
75
|
+
*/
|
|
76
|
+
sourceId: string;
|
|
77
|
+
/**
|
|
78
|
+
* Canonical document url. The ledger's cross-lane identity key: the same
|
|
79
|
+
* change reported by a post and by a changelog dedupes on this, and evidence
|
|
80
|
+
* is already unique per (claim, url).
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: string url = 3;
|
|
83
|
+
*/
|
|
84
|
+
url: string;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string title = 4;
|
|
87
|
+
*/
|
|
88
|
+
title: string;
|
|
89
|
+
/**
|
|
90
|
+
* Display name, e.g. "Anthropic Changelog". Denormalized deliberately — the
|
|
91
|
+
* ledger keeps no mirror of yggdrasil's source registry.
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: string source_name = 5;
|
|
94
|
+
*/
|
|
95
|
+
sourceName: string;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerSourceClass source_class = 6;
|
|
98
|
+
*/
|
|
99
|
+
sourceClass: LedgerSourceClass;
|
|
100
|
+
/**
|
|
101
|
+
* Unix seconds. Optional because "the feed stated no date" and "published at
|
|
102
|
+
* the epoch" must stay distinguishable: a claim's date provenance is graded,
|
|
103
|
+
* and a wrong date is worse to the ledger than a missing one.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: optional int64 published_at = 7;
|
|
106
|
+
*/
|
|
107
|
+
publishedAt?: bigint;
|
|
108
|
+
/**
|
|
109
|
+
* gs:// pointer to the cleaned document. Never inlined — pubsub caps messages
|
|
110
|
+
* at 10MB and release notes are long.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: string content_location = 8;
|
|
113
|
+
*/
|
|
114
|
+
contentLocation: string;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerContentFormat content_format = 9;
|
|
117
|
+
*/
|
|
118
|
+
contentFormat: LedgerContentFormat;
|
|
119
|
+
/**
|
|
120
|
+
* Hash of the cleaned content. Posts are effectively immutable, but a rolling
|
|
121
|
+
* "release notes" page keeps one url while gaining entries for months, so
|
|
122
|
+
* extraction cannot simply freeze at first sight the way the post lane does.
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: string content_hash = 10;
|
|
125
|
+
*/
|
|
126
|
+
contentHash: string;
|
|
127
|
+
constructor(data?: PartialMessage<LedgerDocumentPublishedMessage>);
|
|
128
|
+
static readonly runtime: typeof proto3;
|
|
129
|
+
static readonly typeName = "dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerDocumentPublishedMessage";
|
|
130
|
+
static readonly fields: FieldList;
|
|
131
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LedgerDocumentPublishedMessage;
|
|
132
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LedgerDocumentPublishedMessage;
|
|
133
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LedgerDocumentPublishedMessage;
|
|
134
|
+
static equals(a: LedgerDocumentPublishedMessage | PlainMessage<LedgerDocumentPublishedMessage> | undefined, b: LedgerDocumentPublishedMessage | PlainMessage<LedgerDocumentPublishedMessage> | undefined): boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export { LedgerContentFormat, LedgerDocumentPublishedMessage, LedgerSourceClass };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Mirrors bragi's ContentFormat. Duplicated rather than imported so a pubsub
|
|
5
|
+
* contract does not pull in the whole bragi service definition; daily-api maps
|
|
6
|
+
* between the two at the call site, as it already does for posts.
|
|
7
|
+
*
|
|
8
|
+
* @generated from enum dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerContentFormat
|
|
9
|
+
*/
|
|
10
|
+
declare enum LedgerContentFormat {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
UNSPECIFIED = 0,
|
|
15
|
+
/**
|
|
16
|
+
* Trafilatura XML
|
|
17
|
+
*
|
|
18
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_XML = 1;
|
|
19
|
+
*/
|
|
20
|
+
XML = 1,
|
|
21
|
+
/**
|
|
22
|
+
* Markdown / plain text
|
|
23
|
+
*
|
|
24
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_MARKDOWN = 2;
|
|
25
|
+
*/
|
|
26
|
+
MARKDOWN = 2,
|
|
27
|
+
/**
|
|
28
|
+
* Raw page HTML, cleaned by bragi
|
|
29
|
+
*
|
|
30
|
+
* @generated from enum value: LEDGER_CONTENT_FORMAT_HTML = 3;
|
|
31
|
+
*/
|
|
32
|
+
HTML = 3
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Mirrors daily-api's ClaimEvidenceSourceClass, minus `manual` — that one is a
|
|
36
|
+
* reviewer's own citation and no lane ever publishes it.
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerSourceClass
|
|
39
|
+
*/
|
|
40
|
+
declare enum LedgerSourceClass {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_UNSPECIFIED = 0;
|
|
43
|
+
*/
|
|
44
|
+
UNSPECIFIED = 0,
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_VENDOR_CHANGELOG = 1;
|
|
47
|
+
*/
|
|
48
|
+
VENDOR_CHANGELOG = 1,
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_REGISTRY = 2;
|
|
51
|
+
*/
|
|
52
|
+
REGISTRY = 2,
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: LEDGER_SOURCE_CLASS_COMMUNITY = 3;
|
|
55
|
+
*/
|
|
56
|
+
COMMUNITY = 3
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from message dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerDocumentPublishedMessage
|
|
60
|
+
*/
|
|
61
|
+
declare class LedgerDocumentPublishedMessage extends Message<LedgerDocumentPublishedMessage> {
|
|
62
|
+
/**
|
|
63
|
+
* Yggdrasil's own id for the document, echoed by daily-api for correlation.
|
|
64
|
+
* Opaque on purpose: it keeps this contract independent of whether the lane
|
|
65
|
+
* ends up storing documents in content_entry or a table of its own.
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: string document_id = 1;
|
|
68
|
+
*/
|
|
69
|
+
documentId: string;
|
|
70
|
+
/**
|
|
71
|
+
* The yggdrasil source this document was polled from. Stable across a source
|
|
72
|
+
* being renamed, so per-source stats survive relabelling.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: string source_id = 2;
|
|
75
|
+
*/
|
|
76
|
+
sourceId: string;
|
|
77
|
+
/**
|
|
78
|
+
* Canonical document url. The ledger's cross-lane identity key: the same
|
|
79
|
+
* change reported by a post and by a changelog dedupes on this, and evidence
|
|
80
|
+
* is already unique per (claim, url).
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: string url = 3;
|
|
83
|
+
*/
|
|
84
|
+
url: string;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string title = 4;
|
|
87
|
+
*/
|
|
88
|
+
title: string;
|
|
89
|
+
/**
|
|
90
|
+
* Display name, e.g. "Anthropic Changelog". Denormalized deliberately — the
|
|
91
|
+
* ledger keeps no mirror of yggdrasil's source registry.
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: string source_name = 5;
|
|
94
|
+
*/
|
|
95
|
+
sourceName: string;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerSourceClass source_class = 6;
|
|
98
|
+
*/
|
|
99
|
+
sourceClass: LedgerSourceClass;
|
|
100
|
+
/**
|
|
101
|
+
* Unix seconds. Optional because "the feed stated no date" and "published at
|
|
102
|
+
* the epoch" must stay distinguishable: a claim's date provenance is graded,
|
|
103
|
+
* and a wrong date is worse to the ledger than a missing one.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: optional int64 published_at = 7;
|
|
106
|
+
*/
|
|
107
|
+
publishedAt?: bigint;
|
|
108
|
+
/**
|
|
109
|
+
* gs:// pointer to the cleaned document. Never inlined — pubsub caps messages
|
|
110
|
+
* at 10MB and release notes are long.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: string content_location = 8;
|
|
113
|
+
*/
|
|
114
|
+
contentLocation: string;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerContentFormat content_format = 9;
|
|
117
|
+
*/
|
|
118
|
+
contentFormat: LedgerContentFormat;
|
|
119
|
+
/**
|
|
120
|
+
* Hash of the cleaned content. Posts are effectively immutable, but a rolling
|
|
121
|
+
* "release notes" page keeps one url while gaining entries for months, so
|
|
122
|
+
* extraction cannot simply freeze at first sight the way the post lane does.
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: string content_hash = 10;
|
|
125
|
+
*/
|
|
126
|
+
contentHash: string;
|
|
127
|
+
constructor(data?: PartialMessage<LedgerDocumentPublishedMessage>);
|
|
128
|
+
static readonly runtime: typeof proto3;
|
|
129
|
+
static readonly typeName = "dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerDocumentPublishedMessage";
|
|
130
|
+
static readonly fields: FieldList;
|
|
131
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LedgerDocumentPublishedMessage;
|
|
132
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LedgerDocumentPublishedMessage;
|
|
133
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LedgerDocumentPublishedMessage;
|
|
134
|
+
static equals(a: LedgerDocumentPublishedMessage | PlainMessage<LedgerDocumentPublishedMessage> | undefined, b: LedgerDocumentPublishedMessage | PlainMessage<LedgerDocumentPublishedMessage> | undefined): boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export { LedgerContentFormat, LedgerDocumentPublishedMessage, LedgerSourceClass };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Message as n,proto3 as e}from"@bufbuild/protobuf";var t=(n=>(n[n.UNSPECIFIED=0]="UNSPECIFIED",n[n.XML=1]="XML",n[n.MARKDOWN=2]="MARKDOWN",n[n.HTML=3]="HTML",n))(t||{});e.util.setEnumType(t,"dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerContentFormat",[{no:0,name:"LEDGER_CONTENT_FORMAT_UNSPECIFIED"},{no:1,name:"LEDGER_CONTENT_FORMAT_XML"},{no:2,name:"LEDGER_CONTENT_FORMAT_MARKDOWN"},{no:3,name:"LEDGER_CONTENT_FORMAT_HTML"}]);var a=(n=>(n[n.UNSPECIFIED=0]="UNSPECIFIED",n[n.VENDOR_CHANGELOG=1]="VENDOR_CHANGELOG",n[n.REGISTRY=2]="REGISTRY",n[n.COMMUNITY=3]="COMMUNITY",n))(a||{});e.util.setEnumType(a,"dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerSourceClass",[{no:0,name:"LEDGER_SOURCE_CLASS_UNSPECIFIED"},{no:1,name:"LEDGER_SOURCE_CLASS_VENDOR_CHANGELOG"},{no:2,name:"LEDGER_SOURCE_CLASS_REGISTRY"},{no:3,name:"LEDGER_SOURCE_CLASS_COMMUNITY"}]);class o extends n{documentId="";sourceId="";url="";title="";sourceName="";sourceClass=0;publishedAt;contentLocation="";contentFormat=0;contentHash="";constructor(n){super(),e.util.initPartial(n,this)}static runtime=e;static typeName="dailydotdev.api.pubsub.ledgerdocumentpublished.LedgerDocumentPublishedMessage";static fields=e.util.newFieldList((()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"source_id",kind:"scalar",T:9},{no:3,name:"url",kind:"scalar",T:9},{no:4,name:"title",kind:"scalar",T:9},{no:5,name:"source_name",kind:"scalar",T:9},{no:6,name:"source_class",kind:"enum",T:e.getEnumType(a)},{no:7,name:"published_at",kind:"scalar",T:3,opt:!0},{no:8,name:"content_location",kind:"scalar",T:9},{no:9,name:"content_format",kind:"enum",T:e.getEnumType(t)},{no:10,name:"content_hash",kind:"scalar",T:9}]));static fromBinary(n,e){return(new o).fromBinary(n,e)}static fromJson(n,e){return(new o).fromJson(n,e)}static fromJsonString(n,e){return(new o).fromJsonString(n,e)}static equals(n,t){return e.util.equals(o,n,t)}}export{t as LedgerContentFormat,o as LedgerDocumentPublishedMessage,a as LedgerSourceClass};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=(e,s,u,t)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let d of p(s))i.call(e,d)||d===u||r(e,d,{get:()=>s[d],enumerable:!(t=o(s,d))||t.enumerable});return e},u=(e,r,o)=>(s(e,r,"default"),o&&s(o,r,"default")),t={};module.exports=(e=t,s(r({},"__esModule",{value:!0}),e)),u(t,require("./bragi/feedback_pb.cjs"),module.exports),u(t,require("./bragi/pipelines_connect.cjs"),module.exports),u(t,require("./bragi/pipelines_pb.cjs"),module.exports),u(t,require("./bragi/proxy_connect.cjs"),module.exports),u(t,require("./bragi/proxy_pb.cjs"),module.exports),u(t,require("./brokkr/brokkr_connect.cjs"),module.exports),u(t,require("./brokkr/brokkr_pb.cjs"),module.exports),u(t,require("./daily-api/job_connect.cjs"),module.exports),u(t,require("./daily-api/job_pb.cjs"),module.exports),u(t,require("./daily-api/opportunity-match_pb.cjs"),module.exports),u(t,require("./daily-api/opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/organization_pb.cjs"),module.exports),u(t,require("./daily-api/posts_connect.cjs"),module.exports),u(t,require("./daily-api/posts_pb.cjs"),module.exports),u(t,require("./daily-api/source-requests_connect.cjs"),module.exports),u(t,require("./daily-api/source-requests_pb.cjs"),module.exports),u(t,require("./daily-api/sources_connect.cjs"),module.exports),u(t,require("./daily-api/sources_pb.cjs"),module.exports),u(t,require("./daily-api/user-candidate-preference_pb.cjs"),module.exports),u(t,require("./daily-api/user-experience_pb.cjs"),module.exports),u(t,require("./daily-api/user_pb.cjs"),module.exports),u(t,require("./daily-api/util_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-accepted-opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-preference-updated_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-rejected-opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/content-updated_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/highlights-canonical-published_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/post-highlighted_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/recruiter-accepted-candidate-match_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/user-profile-updated_pb.cjs"),module.exports),u(t,require("./feed/briefing/briefing_pb.cjs"),module.exports),u(t,require("./feed/personalised/personalised_pb.cjs"),module.exports),u(t,require("./feed/server_side_event/server_side_event_pb.cjs"),module.exports),u(t,require("./gondul/application-services_connect.cjs"),module.exports),u(t,require("./gondul/candidates_pb.cjs"),module.exports),u(t,require("./gondul/opportunity-service_connect.cjs"),module.exports),u(t,require("./gondul/opportunity-service_pb.cjs"),module.exports),u(t,require("./mimir/search/search_pb.cjs"),module.exports),u(t,require("./njord/transactions_connect.cjs"),module.exports),u(t,require("./njord/transactions_pb.cjs"),module.exports),u(t,require("./snotra/engagement/engagement_pb.cjs"),module.exports),u(t,require("./util/error_pb.cjs"),module.exports);
|
|
1
|
+
var e,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=(e,s,u,t)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let d of p(s))i.call(e,d)||d===u||r(e,d,{get:()=>s[d],enumerable:!(t=o(s,d))||t.enumerable});return e},u=(e,r,o)=>(s(e,r,"default"),o&&s(o,r,"default")),t={};module.exports=(e=t,s(r({},"__esModule",{value:!0}),e)),u(t,require("./bragi/feedback_pb.cjs"),module.exports),u(t,require("./bragi/pipelines_connect.cjs"),module.exports),u(t,require("./bragi/pipelines_pb.cjs"),module.exports),u(t,require("./bragi/proxy_connect.cjs"),module.exports),u(t,require("./bragi/proxy_pb.cjs"),module.exports),u(t,require("./brokkr/brokkr_connect.cjs"),module.exports),u(t,require("./brokkr/brokkr_pb.cjs"),module.exports),u(t,require("./daily-api/job_connect.cjs"),module.exports),u(t,require("./daily-api/job_pb.cjs"),module.exports),u(t,require("./daily-api/opportunity-match_pb.cjs"),module.exports),u(t,require("./daily-api/opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/organization_pb.cjs"),module.exports),u(t,require("./daily-api/posts_connect.cjs"),module.exports),u(t,require("./daily-api/posts_pb.cjs"),module.exports),u(t,require("./daily-api/source-requests_connect.cjs"),module.exports),u(t,require("./daily-api/source-requests_pb.cjs"),module.exports),u(t,require("./daily-api/sources_connect.cjs"),module.exports),u(t,require("./daily-api/sources_pb.cjs"),module.exports),u(t,require("./daily-api/user-candidate-preference_pb.cjs"),module.exports),u(t,require("./daily-api/user-experience_pb.cjs"),module.exports),u(t,require("./daily-api/user_pb.cjs"),module.exports),u(t,require("./daily-api/util_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-accepted-opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-preference-updated_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-rejected-opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/content-updated_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/highlights-canonical-published_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/ledger-document-published_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/post-highlighted_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/recruiter-accepted-candidate-match_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/user-profile-updated_pb.cjs"),module.exports),u(t,require("./feed/briefing/briefing_pb.cjs"),module.exports),u(t,require("./feed/personalised/personalised_pb.cjs"),module.exports),u(t,require("./feed/server_side_event/server_side_event_pb.cjs"),module.exports),u(t,require("./gondul/application-services_connect.cjs"),module.exports),u(t,require("./gondul/candidates_pb.cjs"),module.exports),u(t,require("./gondul/opportunity-service_connect.cjs"),module.exports),u(t,require("./gondul/opportunity-service_pb.cjs"),module.exports),u(t,require("./mimir/search/search_pb.cjs"),module.exports),u(t,require("./njord/transactions_connect.cjs"),module.exports),u(t,require("./njord/transactions_pb.cjs"),module.exports),u(t,require("./snotra/engagement/engagement_pb.cjs"),module.exports),u(t,require("./util/error_pb.cjs"),module.exports);
|
package/dist/index.d.cts
CHANGED
|
@@ -25,6 +25,7 @@ export { CandidatePreferenceUpdated } from './daily-api/pubsub/candidate-prefere
|
|
|
25
25
|
export { CandidateRejectedOpportunityMessage } from './daily-api/pubsub/candidate-rejected-opportunity_pb.cjs';
|
|
26
26
|
export { ContentUpdatedMessage } from './daily-api/pubsub/content-updated_pb.cjs';
|
|
27
27
|
export { HighlightsCanonicalPublishedMessage } from './daily-api/pubsub/highlights-canonical-published_pb.cjs';
|
|
28
|
+
export { LedgerContentFormat, LedgerDocumentPublishedMessage, LedgerSourceClass } from './daily-api/pubsub/ledger-document-published_pb.cjs';
|
|
28
29
|
export { OpportunityMessage } from './daily-api/pubsub/opportunity_pb.cjs';
|
|
29
30
|
export { PostHighlightedMessage } from './daily-api/pubsub/post-highlighted_pb.cjs';
|
|
30
31
|
export { RecruiterAcceptedCandidateMatchMessage } from './daily-api/pubsub/recruiter-accepted-candidate-match_pb.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { CandidatePreferenceUpdated } from './daily-api/pubsub/candidate-prefere
|
|
|
25
25
|
export { CandidateRejectedOpportunityMessage } from './daily-api/pubsub/candidate-rejected-opportunity_pb.js';
|
|
26
26
|
export { ContentUpdatedMessage } from './daily-api/pubsub/content-updated_pb.js';
|
|
27
27
|
export { HighlightsCanonicalPublishedMessage } from './daily-api/pubsub/highlights-canonical-published_pb.js';
|
|
28
|
+
export { LedgerContentFormat, LedgerDocumentPublishedMessage, LedgerSourceClass } from './daily-api/pubsub/ledger-document-published_pb.js';
|
|
28
29
|
export { OpportunityMessage } from './daily-api/pubsub/opportunity_pb.js';
|
|
29
30
|
export { PostHighlightedMessage } from './daily-api/pubsub/post-highlighted_pb.js';
|
|
30
31
|
export { RecruiterAcceptedCandidateMatchMessage } from './daily-api/pubsub/recruiter-accepted-candidate-match_pb.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./bragi/feedback_pb";export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_pb";export*from"./brokkr/brokkr_connect";export*from"./brokkr/brokkr_pb";export*from"./daily-api/job_connect";export*from"./daily-api/job_pb";export*from"./daily-api/opportunity-match_pb";export*from"./daily-api/opportunity_pb";export*from"./daily-api/organization_pb";export*from"./daily-api/posts_connect";export*from"./daily-api/posts_pb";export*from"./daily-api/source-requests_connect";export*from"./daily-api/source-requests_pb";export*from"./daily-api/sources_connect";export*from"./daily-api/sources_pb";export*from"./daily-api/user-candidate-preference_pb";export*from"./daily-api/user-experience_pb";export*from"./daily-api/user_pb";export*from"./daily-api/util_pb";export*from"./daily-api/pubsub/candidate-accepted-opportunity_pb";export*from"./daily-api/pubsub/candidate-preference-updated_pb";export*from"./daily-api/pubsub/candidate-rejected-opportunity_pb";export*from"./daily-api/pubsub/content-updated_pb";export*from"./daily-api/pubsub/highlights-canonical-published_pb";export*from"./daily-api/pubsub/opportunity_pb";export*from"./daily-api/pubsub/post-highlighted_pb";export*from"./daily-api/pubsub/recruiter-accepted-candidate-match_pb";export*from"./daily-api/pubsub/user-profile-updated_pb";export*from"./feed/briefing/briefing_pb";export*from"./feed/personalised/personalised_pb";export*from"./feed/server_side_event/server_side_event_pb";export*from"./gondul/application-services_connect";export*from"./gondul/candidates_pb";export*from"./gondul/opportunity-service_connect";export*from"./gondul/opportunity-service_pb";export*from"./mimir/search/search_pb";export*from"./njord/transactions_connect";export*from"./njord/transactions_pb";export*from"./snotra/engagement/engagement_pb";export*from"./util/error_pb";
|
|
1
|
+
export*from"./bragi/feedback_pb";export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_pb";export*from"./brokkr/brokkr_connect";export*from"./brokkr/brokkr_pb";export*from"./daily-api/job_connect";export*from"./daily-api/job_pb";export*from"./daily-api/opportunity-match_pb";export*from"./daily-api/opportunity_pb";export*from"./daily-api/organization_pb";export*from"./daily-api/posts_connect";export*from"./daily-api/posts_pb";export*from"./daily-api/source-requests_connect";export*from"./daily-api/source-requests_pb";export*from"./daily-api/sources_connect";export*from"./daily-api/sources_pb";export*from"./daily-api/user-candidate-preference_pb";export*from"./daily-api/user-experience_pb";export*from"./daily-api/user_pb";export*from"./daily-api/util_pb";export*from"./daily-api/pubsub/candidate-accepted-opportunity_pb";export*from"./daily-api/pubsub/candidate-preference-updated_pb";export*from"./daily-api/pubsub/candidate-rejected-opportunity_pb";export*from"./daily-api/pubsub/content-updated_pb";export*from"./daily-api/pubsub/highlights-canonical-published_pb";export*from"./daily-api/pubsub/ledger-document-published_pb";export*from"./daily-api/pubsub/opportunity_pb";export*from"./daily-api/pubsub/post-highlighted_pb";export*from"./daily-api/pubsub/recruiter-accepted-candidate-match_pb";export*from"./daily-api/pubsub/user-profile-updated_pb";export*from"./feed/briefing/briefing_pb";export*from"./feed/personalised/personalised_pb";export*from"./feed/server_side_event/server_side_event_pb";export*from"./gondul/application-services_connect";export*from"./gondul/candidates_pb";export*from"./gondul/opportunity-service_connect";export*from"./gondul/opportunity-service_pb";export*from"./mimir/search/search_pb";export*from"./njord/transactions_connect";export*from"./njord/transactions_pb";export*from"./snotra/engagement/engagement_pb";export*from"./util/error_pb";
|