@dailydotdev/schema 0.2.48 → 0.2.50

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.
Files changed (35) hide show
  1. package/dist/bragi/pipelines_connect.cjs +1 -1
  2. package/dist/bragi/pipelines_connect.d.cts +34 -1
  3. package/dist/bragi/pipelines_connect.d.ts +34 -1
  4. package/dist/bragi/pipelines_connect.js +1 -1
  5. package/dist/bragi/pipelines_pb.cjs +1 -1
  6. package/dist/bragi/pipelines_pb.d.cts +109 -1
  7. package/dist/bragi/pipelines_pb.d.ts +109 -1
  8. package/dist/bragi/pipelines_pb.js +1 -1
  9. package/dist/brokkr/brokkr_connect.cjs +1 -1
  10. package/dist/brokkr/brokkr_connect.d.cts +20 -2
  11. package/dist/brokkr/brokkr_connect.d.ts +20 -2
  12. package/dist/brokkr/brokkr_connect.js +1 -1
  13. package/dist/brokkr/brokkr_pb.cjs +1 -1
  14. package/dist/brokkr/brokkr_pb.d.cts +18 -1
  15. package/dist/brokkr/brokkr_pb.d.ts +18 -1
  16. package/dist/brokkr/brokkr_pb.js +1 -1
  17. package/dist/daily-api/opportunity_pb.cjs +1 -1
  18. package/dist/daily-api/opportunity_pb.d.cts +4 -0
  19. package/dist/daily-api/opportunity_pb.d.ts +4 -0
  20. package/dist/daily-api/opportunity_pb.js +1 -1
  21. package/dist/daily-api/user-candidate-preference_pb.cjs +1 -1
  22. package/dist/daily-api/user-candidate-preference_pb.d.cts +6 -0
  23. package/dist/daily-api/user-candidate-preference_pb.d.ts +6 -0
  24. package/dist/daily-api/user-candidate-preference_pb.js +1 -1
  25. package/dist/index.d.cts +4 -4
  26. package/dist/index.d.ts +4 -4
  27. package/dist/snotra/engagement/engagement_pb.cjs +1 -1
  28. package/dist/snotra/engagement/engagement_pb.d.cts +26 -1
  29. package/dist/snotra/engagement/engagement_pb.d.ts +26 -1
  30. package/dist/snotra/engagement/engagement_pb.js +1 -1
  31. package/dist/snotra/personalisation/personalisation_pb.cjs +1 -1
  32. package/dist/snotra/personalisation/personalisation_pb.d.cts +1 -101
  33. package/dist/snotra/personalisation/personalisation_pb.d.ts +1 -101
  34. package/dist/snotra/personalisation/personalisation_pb.js +1 -1
  35. package/package.json +1 -1
@@ -1 +1 @@
1
- var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,s={};((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(s,{Action:()=>m,Event:()=>u,GetUserEventRequest:()=>c,GetUserEventResponse:()=>d,UserEngagementProfile:()=>p}),module.exports=(e=s,((e,s,a,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let m of o(s))r.call(e,m)||m===a||t(e,m,{get:()=>s[m],enumerable:!(i=n(s,m))||i.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=require("@bufbuild/protobuf"),i=require("../../util/error_pb.cjs"),m=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(m||{});a.proto3.util.setEnumType(m,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class u extends a.Message{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.Event";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:a.proto3.getEnumType(m)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(u,e,t)}}class c extends a.Message{userId="";actions=[];days;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:a.proto3.getEnumType(m),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(c,e,t)}}class d extends a.Message{result=[];error=[];constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:u,repeated:!0},{no:2,name:"error",kind:"message",T:i.Error,repeated:!0}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(d,e,t)}}class p extends a.Message{userId="";text="";insertAt;updateAt;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.UserEngagementProfile";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:a.Timestamp},{no:4,name:"update_at",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(p,e,t)}}
1
+ var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,s={};((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(s,{Action:()=>m,Event:()=>u,GetUserEventRequest:()=>c,GetUserEventResponse:()=>d,UserEngagementProfile:()=>p,UserPostEngagementCounts:()=>l}),module.exports=(e=s,((e,s,a,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let m of o(s))r.call(e,m)||m===a||t(e,m,{get:()=>s[m],enumerable:!(i=n(s,m))||i.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=require("@bufbuild/protobuf"),i=require("../../util/error_pb.cjs"),m=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(m||{});a.proto3.util.setEnumType(m,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class u extends a.Message{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.Event";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:a.proto3.getEnumType(m)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(u,e,t)}}class c extends a.Message{userId="";actions=[];days;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:a.proto3.getEnumType(m),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(c,e,t)}}class d extends a.Message{result=[];error=[];constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.GetUserEventResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:u,repeated:!0},{no:2,name:"error",kind:"message",T:i.Error,repeated:!0}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(d,e,t)}}class p extends a.Message{userId="";text="";insertAt;updateAt;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.UserEngagementProfile";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:a.Timestamp},{no:4,name:"update_at",kind:"message",T:a.Timestamp}]));static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(p,e,t)}}class l extends a.Message{userId="";postId="";impressions=0;constructor(e){super(),a.proto3.util.initPartial(e,this)}static runtime=a.proto3;static typeName="engagement.UserPostEngagementCounts";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"impressions",kind:"scalar",T:13}]));static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return a.proto3.util.equals(l,e,t)}}
@@ -170,5 +170,30 @@ declare class UserEngagementProfile extends Message<UserEngagementProfile> {
170
170
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserEngagementProfile;
171
171
  static equals(a: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined, b: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined): boolean;
172
172
  }
173
+ /**
174
+ * @generated from message engagement.UserPostEngagementCounts
175
+ */
176
+ declare class UserPostEngagementCounts extends Message<UserPostEngagementCounts> {
177
+ /**
178
+ * @generated from field: string user_id = 1;
179
+ */
180
+ userId: string;
181
+ /**
182
+ * @generated from field: string post_id = 2;
183
+ */
184
+ postId: string;
185
+ /**
186
+ * @generated from field: uint32 impressions = 3;
187
+ */
188
+ impressions: number;
189
+ constructor(data?: PartialMessage<UserPostEngagementCounts>);
190
+ static readonly runtime: typeof proto3;
191
+ static readonly typeName = "engagement.UserPostEngagementCounts";
192
+ static readonly fields: FieldList;
193
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPostEngagementCounts;
194
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPostEngagementCounts;
195
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPostEngagementCounts;
196
+ static equals(a: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined, b: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined): boolean;
197
+ }
173
198
 
174
- export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile };
199
+ export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts };
@@ -170,5 +170,30 @@ declare class UserEngagementProfile extends Message<UserEngagementProfile> {
170
170
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserEngagementProfile;
171
171
  static equals(a: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined, b: UserEngagementProfile | PlainMessage<UserEngagementProfile> | undefined): boolean;
172
172
  }
173
+ /**
174
+ * @generated from message engagement.UserPostEngagementCounts
175
+ */
176
+ declare class UserPostEngagementCounts extends Message<UserPostEngagementCounts> {
177
+ /**
178
+ * @generated from field: string user_id = 1;
179
+ */
180
+ userId: string;
181
+ /**
182
+ * @generated from field: string post_id = 2;
183
+ */
184
+ postId: string;
185
+ /**
186
+ * @generated from field: uint32 impressions = 3;
187
+ */
188
+ impressions: number;
189
+ constructor(data?: PartialMessage<UserPostEngagementCounts>);
190
+ static readonly runtime: typeof proto3;
191
+ static readonly typeName = "engagement.UserPostEngagementCounts";
192
+ static readonly fields: FieldList;
193
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPostEngagementCounts;
194
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPostEngagementCounts;
195
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPostEngagementCounts;
196
+ static equals(a: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined, b: UserPostEngagementCounts | PlainMessage<UserPostEngagementCounts> | undefined): boolean;
197
+ }
173
198
 
174
- export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile };
199
+ export { Action, Event, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts };
@@ -1 +1 @@
1
- import{Message as e,proto3 as t,Timestamp as n}from"@bufbuild/protobuf";import{Error as o}from"../../util/error_pb.ts";var r=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(r||{});t.util.setEnumType(r,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class s extends e{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.Event";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:t.getEnumType(r)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:n}]));static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,n){return t.util.equals(s,e,n)}}class a extends e{userId="";actions=[];days;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:t.getEnumType(r),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,n){return t.util.equals(a,e,n)}}class i extends e{result=[];error=[];constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:s,repeated:!0},{no:2,name:"error",kind:"message",T:o,repeated:!0}]));static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,n){return t.util.equals(i,e,n)}}class m extends e{userId="";text="";insertAt;updateAt;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.UserEngagementProfile";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:n},{no:4,name:"update_at",kind:"message",T:n}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,n){return t.util.equals(m,e,n)}}export{r as Action,s as Event,a as GetUserEventRequest,i as GetUserEventResponse,m as UserEngagementProfile};
1
+ import{Message as e,proto3 as t,Timestamp as n}from"@bufbuild/protobuf";import{Error as s}from"../../util/error_pb.ts";var r=(e=>(e[e.View=0]="View",e[e.Click=1]="Click",e[e.Comment=2]="Comment",e[e.UpVote=3]="UpVote",e[e.DownVote=4]="DownVote",e[e.RemoveUpVote=5]="RemoveUpVote",e[e.RemoveDownVote=6]="RemoveDownVote",e[e.FeedbackRequested=7]="FeedbackRequested",e[e.FeedbackReceived=8]="FeedbackReceived",e[e.BookmarkAdded=9]="BookmarkAdded",e[e.BookmarkDeleted=10]="BookmarkDeleted",e[e.BookmarkViewed=11]="BookmarkViewed",e[e.TwoImpressions=12]="TwoImpressions",e[e.ThreeImpressions=13]="ThreeImpressions",e))(r||{});t.util.setEnumType(r,"engagement.Action",[{no:0,name:"View"},{no:1,name:"Click"},{no:2,name:"Comment"},{no:3,name:"UpVote"},{no:4,name:"DownVote"},{no:5,name:"RemoveUpVote"},{no:6,name:"RemoveDownVote"},{no:7,name:"FeedbackRequested"},{no:8,name:"FeedbackReceived"},{no:9,name:"BookmarkAdded"},{no:10,name:"BookmarkDeleted"},{no:11,name:"BookmarkViewed"},{no:12,name:"TwoImpressions"},{no:13,name:"ThreeImpressions"}]);class o extends e{userId="";postId="";action=0;options=new Uint8Array(0);dInsert;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.Event";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"action",kind:"enum",T:t.getEnumType(r)},{no:4,name:"options",kind:"scalar",T:12},{no:5,name:"d_insert",kind:"message",T:n}]));static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,n){return t.util.equals(o,e,n)}}class i extends e{userId="";actions=[];days;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"enum",T:t.getEnumType(r),repeated:!0},{no:3,name:"days",kind:"scalar",T:13,opt:!0}]));static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,n){return t.util.equals(i,e,n)}}class a extends e{result=[];error=[];constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.GetUserEventResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:o,repeated:!0},{no:2,name:"error",kind:"message",T:s,repeated:!0}]));static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,n){return t.util.equals(a,e,n)}}class m extends e{userId="";text="";insertAt;updateAt;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.UserEngagementProfile";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"insert_at",kind:"message",T:n},{no:4,name:"update_at",kind:"message",T:n}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,n){return t.util.equals(m,e,n)}}class u extends e{userId="";postId="";impressions=0;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="engagement.UserPostEngagementCounts";static fields=t.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"impressions",kind:"scalar",T:13}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,n){return t.util.equals(u,e,n)}}export{r as Action,o as Event,i as GetUserEventRequest,a as GetUserEventResponse,m as UserEngagementProfile,u as UserPostEngagementCounts};
@@ -1 +1 @@
1
- var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(a,{CreateVectorIndexMetaRequest:()=>k,CreateVectorIndexMetaResponse:()=>y,GetUserRankRequest:()=>m,GetUserRankResponse:()=>l,GetVectorIndexMetaRequest:()=>d,GetVectorIndexMetaResponse:()=>f,RankType:()=>u,UserRank:()=>c,VectorIndexMeta:()=>p}),module.exports=(e=a,((e,a,o,i)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let u of n(a))s.call(e,u)||u===o||t(e,u,{get:()=>a[u],enumerable:!(i=r(a,u))||i.enumerable});return e})(t({},"__esModule",{value:!0}),e));var o=require("@bufbuild/protobuf"),i=require("../../util/error_pb.cjs"),u=(e=>(e[e.tag=0]="tag",e[e.source=1]="source",e[e.content_curation=2]="content_curation",e[e.author=3]="author",e))(u||{});o.proto3.util.setEnumType(u,"personalisation.RankType",[{no:0,name:"tag"},{no:1,name:"source"},{no:2,name:"content_curation"},{no:3,name:"author"}]);class c extends o.Message{userId="";type=0;value="";rank=0;dUpdate;postRankCount=o.protoInt64.zero;constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.UserRank";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:o.proto3.getEnumType(u)},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"rank",kind:"scalar",T:1},{no:5,name:"d_update",kind:"message",T:o.Timestamp},{no:6,name:"post_rank_count",kind:"scalar",T:3}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}class m extends o.Message{userId="";postRankCount=o.protoInt64.zero;constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.GetUserRankRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_rank_count",kind:"scalar",T:3}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}class l extends o.Message{result=[];error=[];constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.GetUserRankResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:c,repeated:!0},{no:2,name:"error",kind:"message",T:i.Error,repeated:!0}]));static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}class p extends o.Message{created;indexName="";fieldName="";prefix="";keys=[];constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.VectorIndexMeta";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"created",kind:"message",T:o.Timestamp},{no:2,name:"index_name",kind:"scalar",T:9},{no:3,name:"field_name",kind:"scalar",T:9},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"keys",kind:"scalar",T:9,repeated:!0}]));static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(p,e,t)}}class d extends o.Message{indexName="";constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.GetVectorIndexMetaRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(d,e,t)}}class f extends o.Message{result;error;constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.GetVectorIndexMetaResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:p},{no:2,name:"error",kind:"message",T:i.Error}]));static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(f,e,t)}}class k extends o.Message{indexName="";fieldName="";prefix="";keys=[];constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.CreateVectorIndexMetaRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"keys",kind:"scalar",T:9,repeated:!0}]));static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(k,e,t)}}class y extends o.Message{expiredIndexes=[];error;constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.CreateVectorIndexMetaResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"expired_indexes",kind:"message",T:p,repeated:!0},{no:2,name:"error",kind:"message",T:i.Error}]));static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(y,e,t)}}
1
+ var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(a,{CreateVectorIndexMetaRequest:()=>m,CreateVectorIndexMetaResponse:()=>d,GetVectorIndexMetaRequest:()=>u,GetVectorIndexMetaResponse:()=>l,VectorIndexMeta:()=>c}),module.exports=(e=a,((e,a,o,i)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let c of n(a))s.call(e,c)||c===o||t(e,c,{get:()=>a[c],enumerable:!(i=r(a,c))||i.enumerable});return e})(t({},"__esModule",{value:!0}),e));var o=require("@bufbuild/protobuf"),i=require("../../util/error_pb.cjs");class c extends o.Message{created;indexName="";fieldName="";prefix="";keys=[];constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.VectorIndexMeta";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"created",kind:"message",T:o.Timestamp},{no:2,name:"index_name",kind:"scalar",T:9},{no:3,name:"field_name",kind:"scalar",T:9},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"keys",kind:"scalar",T:9,repeated:!0}]));static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}class u extends o.Message{indexName="";constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.GetVectorIndexMetaRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9}]));static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(u,e,t)}}class l extends o.Message{result;error;constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.GetVectorIndexMetaResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:c},{no:2,name:"error",kind:"message",T:i.Error}]));static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}class m extends o.Message{indexName="";fieldName="";prefix="";keys=[];constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.CreateVectorIndexMetaRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"keys",kind:"scalar",T:9,repeated:!0}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}class d extends o.Message{expiredIndexes=[];error;constructor(e){super(),o.proto3.util.initPartial(e,this)}static runtime=o.proto3;static typeName="personalisation.CreateVectorIndexMetaResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"expired_indexes",kind:"message",T:c,repeated:!0},{no:2,name:"error",kind:"message",T:i.Error}]));static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(d,e,t)}}
@@ -1,106 +1,6 @@
1
1
  import { Message, Timestamp, 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 personalisation.RankType
6
- */
7
- declare enum RankType {
8
- /**
9
- * @generated from enum value: tag = 0;
10
- */
11
- tag = 0,
12
- /**
13
- * @generated from enum value: source = 1;
14
- */
15
- source = 1,
16
- /**
17
- * @generated from enum value: content_curation = 2;
18
- */
19
- content_curation = 2,
20
- /**
21
- * @generated from enum value: author = 3;
22
- */
23
- author = 3
24
- }
25
- /**
26
- * @generated from message personalisation.UserRank
27
- */
28
- declare class UserRank extends Message<UserRank> {
29
- /**
30
- * @generated from field: string user_id = 1;
31
- */
32
- userId: string;
33
- /**
34
- * @generated from field: personalisation.RankType type = 2;
35
- */
36
- type: RankType;
37
- /**
38
- * @generated from field: string value = 3;
39
- */
40
- value: string;
41
- /**
42
- * @generated from field: double rank = 4;
43
- */
44
- rank: number;
45
- /**
46
- * @generated from field: google.protobuf.Timestamp d_update = 5;
47
- */
48
- dUpdate?: Timestamp;
49
- /**
50
- * @generated from field: int64 post_rank_count = 6;
51
- */
52
- postRankCount: any;
53
- constructor(data?: PartialMessage<UserRank>);
54
- static readonly runtime: typeof proto3;
55
- static readonly typeName = "personalisation.UserRank";
56
- static readonly fields: FieldList;
57
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRank;
58
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRank;
59
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRank;
60
- static equals(a: UserRank | PlainMessage<UserRank> | undefined, b: UserRank | PlainMessage<UserRank> | undefined): boolean;
61
- }
62
- /**
63
- * @generated from message personalisation.GetUserRankRequest
64
- */
65
- declare class GetUserRankRequest extends Message<GetUserRankRequest> {
66
- /**
67
- * @generated from field: string user_id = 1;
68
- */
69
- userId: string;
70
- /**
71
- * @generated from field: int64 post_rank_count = 2;
72
- */
73
- postRankCount: any;
74
- constructor(data?: PartialMessage<GetUserRankRequest>);
75
- static readonly runtime: typeof proto3;
76
- static readonly typeName = "personalisation.GetUserRankRequest";
77
- static readonly fields: FieldList;
78
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRankRequest;
79
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRankRequest;
80
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRankRequest;
81
- static equals(a: GetUserRankRequest | PlainMessage<GetUserRankRequest> | undefined, b: GetUserRankRequest | PlainMessage<GetUserRankRequest> | undefined): boolean;
82
- }
83
- /**
84
- * @generated from message personalisation.GetUserRankResponse
85
- */
86
- declare class GetUserRankResponse extends Message<GetUserRankResponse> {
87
- /**
88
- * @generated from field: repeated personalisation.UserRank result = 1;
89
- */
90
- result: UserRank[];
91
- /**
92
- * @generated from field: repeated util.Error error = 2;
93
- */
94
- error: Error[];
95
- constructor(data?: PartialMessage<GetUserRankResponse>);
96
- static readonly runtime: typeof proto3;
97
- static readonly typeName = "personalisation.GetUserRankResponse";
98
- static readonly fields: FieldList;
99
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRankResponse;
100
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRankResponse;
101
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRankResponse;
102
- static equals(a: GetUserRankResponse | PlainMessage<GetUserRankResponse> | undefined, b: GetUserRankResponse | PlainMessage<GetUserRankResponse> | undefined): boolean;
103
- }
104
4
  /**
105
5
  * @generated from message personalisation.VectorIndexMeta
106
6
  */
@@ -223,4 +123,4 @@ declare class CreateVectorIndexMetaResponse extends Message<CreateVectorIndexMet
223
123
  static equals(a: CreateVectorIndexMetaResponse | PlainMessage<CreateVectorIndexMetaResponse> | undefined, b: CreateVectorIndexMetaResponse | PlainMessage<CreateVectorIndexMetaResponse> | undefined): boolean;
224
124
  }
225
125
 
226
- export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetUserRankRequest, GetUserRankResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, RankType, UserRank, VectorIndexMeta };
126
+ export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, VectorIndexMeta };
@@ -1,106 +1,6 @@
1
1
  import { Message, Timestamp, 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 personalisation.RankType
6
- */
7
- declare enum RankType {
8
- /**
9
- * @generated from enum value: tag = 0;
10
- */
11
- tag = 0,
12
- /**
13
- * @generated from enum value: source = 1;
14
- */
15
- source = 1,
16
- /**
17
- * @generated from enum value: content_curation = 2;
18
- */
19
- content_curation = 2,
20
- /**
21
- * @generated from enum value: author = 3;
22
- */
23
- author = 3
24
- }
25
- /**
26
- * @generated from message personalisation.UserRank
27
- */
28
- declare class UserRank extends Message<UserRank> {
29
- /**
30
- * @generated from field: string user_id = 1;
31
- */
32
- userId: string;
33
- /**
34
- * @generated from field: personalisation.RankType type = 2;
35
- */
36
- type: RankType;
37
- /**
38
- * @generated from field: string value = 3;
39
- */
40
- value: string;
41
- /**
42
- * @generated from field: double rank = 4;
43
- */
44
- rank: number;
45
- /**
46
- * @generated from field: google.protobuf.Timestamp d_update = 5;
47
- */
48
- dUpdate?: Timestamp;
49
- /**
50
- * @generated from field: int64 post_rank_count = 6;
51
- */
52
- postRankCount: any;
53
- constructor(data?: PartialMessage<UserRank>);
54
- static readonly runtime: typeof proto3;
55
- static readonly typeName = "personalisation.UserRank";
56
- static readonly fields: FieldList;
57
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRank;
58
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRank;
59
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRank;
60
- static equals(a: UserRank | PlainMessage<UserRank> | undefined, b: UserRank | PlainMessage<UserRank> | undefined): boolean;
61
- }
62
- /**
63
- * @generated from message personalisation.GetUserRankRequest
64
- */
65
- declare class GetUserRankRequest extends Message<GetUserRankRequest> {
66
- /**
67
- * @generated from field: string user_id = 1;
68
- */
69
- userId: string;
70
- /**
71
- * @generated from field: int64 post_rank_count = 2;
72
- */
73
- postRankCount: any;
74
- constructor(data?: PartialMessage<GetUserRankRequest>);
75
- static readonly runtime: typeof proto3;
76
- static readonly typeName = "personalisation.GetUserRankRequest";
77
- static readonly fields: FieldList;
78
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRankRequest;
79
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRankRequest;
80
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRankRequest;
81
- static equals(a: GetUserRankRequest | PlainMessage<GetUserRankRequest> | undefined, b: GetUserRankRequest | PlainMessage<GetUserRankRequest> | undefined): boolean;
82
- }
83
- /**
84
- * @generated from message personalisation.GetUserRankResponse
85
- */
86
- declare class GetUserRankResponse extends Message<GetUserRankResponse> {
87
- /**
88
- * @generated from field: repeated personalisation.UserRank result = 1;
89
- */
90
- result: UserRank[];
91
- /**
92
- * @generated from field: repeated util.Error error = 2;
93
- */
94
- error: Error[];
95
- constructor(data?: PartialMessage<GetUserRankResponse>);
96
- static readonly runtime: typeof proto3;
97
- static readonly typeName = "personalisation.GetUserRankResponse";
98
- static readonly fields: FieldList;
99
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRankResponse;
100
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRankResponse;
101
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRankResponse;
102
- static equals(a: GetUserRankResponse | PlainMessage<GetUserRankResponse> | undefined, b: GetUserRankResponse | PlainMessage<GetUserRankResponse> | undefined): boolean;
103
- }
104
4
  /**
105
5
  * @generated from message personalisation.VectorIndexMeta
106
6
  */
@@ -223,4 +123,4 @@ declare class CreateVectorIndexMetaResponse extends Message<CreateVectorIndexMet
223
123
  static equals(a: CreateVectorIndexMetaResponse | PlainMessage<CreateVectorIndexMetaResponse> | undefined, b: CreateVectorIndexMetaResponse | PlainMessage<CreateVectorIndexMetaResponse> | undefined): boolean;
224
124
  }
225
125
 
226
- export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetUserRankRequest, GetUserRankResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, RankType, UserRank, VectorIndexMeta };
126
+ export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, VectorIndexMeta };
@@ -1 +1 @@
1
- import{Message as t,proto3 as e,protoInt64 as n,Timestamp as r}from"@bufbuild/protobuf";import{Error as a}from"../../util/error_pb.ts";var s=(t=>(t[t.tag=0]="tag",t[t.source=1]="source",t[t.content_curation=2]="content_curation",t[t.author=3]="author",t))(s||{});e.util.setEnumType(s,"personalisation.RankType",[{no:0,name:"tag"},{no:1,name:"source"},{no:2,name:"content_curation"},{no:3,name:"author"}]);class i extends t{userId="";type=0;value="";rank=0;dUpdate;postRankCount=n.zero;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.UserRank";static fields=e.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:e.getEnumType(s)},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"rank",kind:"scalar",T:1},{no:5,name:"d_update",kind:"message",T:r},{no:6,name:"post_rank_count",kind:"scalar",T:3}]));static fromBinary(t,e){return(new i).fromBinary(t,e)}static fromJson(t,e){return(new i).fromJson(t,e)}static fromJsonString(t,e){return(new i).fromJsonString(t,e)}static equals(t,n){return e.util.equals(i,t,n)}}class o extends t{userId="";postRankCount=n.zero;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.GetUserRankRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"post_rank_count",kind:"scalar",T:3}]));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,n){return e.util.equals(o,t,n)}}class u extends t{result=[];error=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.GetUserRankResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:i,repeated:!0},{no:2,name:"error",kind:"message",T:a,repeated:!0}]));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,n){return e.util.equals(u,t,n)}}class m extends t{created;indexName="";fieldName="";prefix="";keys=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.VectorIndexMeta";static fields=e.util.newFieldList((()=>[{no:1,name:"created",kind:"message",T:r},{no:2,name:"index_name",kind:"scalar",T:9},{no:3,name:"field_name",kind:"scalar",T:9},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"keys",kind:"scalar",T:9,repeated:!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,n){return e.util.equals(m,t,n)}}class c extends t{indexName="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.GetVectorIndexMetaRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9}]));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,n){return e.util.equals(c,t,n)}}class l extends t{result;error;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.GetVectorIndexMetaResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:m},{no:2,name:"error",kind:"message",T:a}]));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,n){return e.util.equals(l,t,n)}}class d extends t{indexName="";fieldName="";prefix="";keys=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.CreateVectorIndexMetaRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"keys",kind:"scalar",T:9,repeated:!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,n){return e.util.equals(d,t,n)}}class f extends t{expiredIndexes=[];error;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="personalisation.CreateVectorIndexMetaResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"expired_indexes",kind:"message",T:m,repeated:!0},{no:2,name:"error",kind:"message",T:a}]));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,n){return e.util.equals(f,t,n)}}export{d as CreateVectorIndexMetaRequest,f as CreateVectorIndexMetaResponse,o as GetUserRankRequest,u as GetUserRankResponse,c as GetVectorIndexMetaRequest,l as GetVectorIndexMetaResponse,s as RankType,i as UserRank,m as VectorIndexMeta};
1
+ import{Message as e,proto3 as t,Timestamp as n}from"@bufbuild/protobuf";import{Error as r}from"../../util/error_pb.ts";class i extends e{created;indexName="";fieldName="";prefix="";keys=[];constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="personalisation.VectorIndexMeta";static fields=t.util.newFieldList((()=>[{no:1,name:"created",kind:"message",T:n},{no:2,name:"index_name",kind:"scalar",T:9},{no:3,name:"field_name",kind:"scalar",T:9},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"keys",kind:"scalar",T:9,repeated:!0}]));static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,n){return t.util.equals(i,e,n)}}class s extends e{indexName="";constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="personalisation.GetVectorIndexMetaRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9}]));static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,n){return t.util.equals(s,e,n)}}class a extends e{result;error;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="personalisation.GetVectorIndexMetaResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:i},{no:2,name:"error",kind:"message",T:r}]));static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,n){return t.util.equals(a,e,n)}}class o extends e{indexName="";fieldName="";prefix="";keys=[];constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="personalisation.CreateVectorIndexMetaRequest";static fields=t.util.newFieldList((()=>[{no:1,name:"index_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"keys",kind:"scalar",T:9,repeated:!0}]));static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,n){return t.util.equals(o,e,n)}}class m extends e{expiredIndexes=[];error;constructor(e){super(),t.util.initPartial(e,this)}static runtime=t;static typeName="personalisation.CreateVectorIndexMetaResponse";static fields=t.util.newFieldList((()=>[{no:1,name:"expired_indexes",kind:"message",T:i,repeated:!0},{no:2,name:"error",kind:"message",T:r}]));static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,n){return t.util.equals(m,e,n)}}export{o as CreateVectorIndexMetaRequest,m as CreateVectorIndexMetaResponse,s as GetVectorIndexMetaRequest,a as GetVectorIndexMetaResponse,i as VectorIndexMeta};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dailydotdev/schema",
3
- "version": "0.2.48",
3
+ "version": "0.2.50",
4
4
  "author": "@dailydotdev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",