@dailydotdev/schema 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +1 -0
- package/dist/bragi/pipelines_connect.cjs +133 -0
- package/dist/bragi/pipelines_connect.d.cts +113 -0
- package/dist/bragi/pipelines_connect.d.ts +113 -0
- package/dist/bragi/pipelines_connect.js +110 -0
- package/dist/bragi/pipelines_pb.cjs +842 -0
- package/dist/bragi/pipelines_pb.d.cts +467 -0
- package/dist/bragi/pipelines_pb.d.ts +467 -0
- package/dist/bragi/pipelines_pb.js +801 -0
- package/dist/bragi/proxy_connect.cjs +88 -0
- package/dist/bragi/proxy_connect.d.cts +68 -0
- package/dist/bragi/proxy_connect.d.ts +68 -0
- package/dist/bragi/proxy_connect.js +65 -0
- package/dist/bragi/proxy_pb.cjs +595 -0
- package/dist/bragi/proxy_pb.d.cts +332 -0
- package/dist/bragi/proxy_pb.d.ts +332 -0
- package/dist/bragi/proxy_pb.js +561 -0
- package/dist/daily-api/posts_connect.cjs +44 -0
- package/dist/daily-api/posts_connect.d.cts +24 -0
- package/dist/daily-api/posts_connect.d.ts +24 -0
- package/dist/daily-api/posts_connect.js +21 -0
- package/dist/daily-api/posts_pb.cjs +122 -0
- package/dist/daily-api/posts_pb.d.cts +50 -0
- package/dist/daily-api/posts_pb.d.ts +50 -0
- package/dist/daily-api/posts_pb.js +98 -0
- package/dist/feed/personalised/personalised_pb.cjs +122 -0
- package/dist/feed/personalised/personalised_pb.d.cts +50 -0
- package/dist/feed/personalised/personalised_pb.d.ts +50 -0
- package/dist/feed/personalised/personalised_pb.js +98 -0
- package/dist/index.cjs +39 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/snotra/engagement/engagement_pb.cjs +201 -0
- package/dist/snotra/engagement/engagement_pb.d.cts +133 -0
- package/dist/snotra/engagement/engagement_pb.d.ts +133 -0
- package/dist/snotra/engagement/engagement_pb.js +175 -0
- package/dist/snotra/personalisation/personalisation_pb.cjs +431 -0
- package/dist/snotra/personalisation/personalisation_pb.d.cts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.d.ts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.js +400 -0
- package/dist/util/error_pb.cjs +71 -0
- package/dist/util/error_pb.d.cts +25 -0
- package/dist/util/error_pb.d.ts +25 -0
- package/dist/util/error_pb.js +48 -0
- package/package.json +44 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { Message, Timestamp, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { Error } from '../../util/error_pb.js';
|
|
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
|
+
/**
|
|
105
|
+
* @generated from message personalisation.VectorIndexMeta
|
|
106
|
+
*/
|
|
107
|
+
declare class VectorIndexMeta extends Message<VectorIndexMeta> {
|
|
108
|
+
/**
|
|
109
|
+
* @generated from field: google.protobuf.Timestamp created = 1;
|
|
110
|
+
*/
|
|
111
|
+
created?: Timestamp;
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: string index_name = 2;
|
|
114
|
+
*/
|
|
115
|
+
indexName: string;
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: string field_name = 3;
|
|
118
|
+
*/
|
|
119
|
+
fieldName: string;
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: string prefix = 4;
|
|
122
|
+
*/
|
|
123
|
+
prefix: string;
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: repeated string keys = 5;
|
|
126
|
+
*/
|
|
127
|
+
keys: string[];
|
|
128
|
+
constructor(data?: PartialMessage<VectorIndexMeta>);
|
|
129
|
+
static readonly runtime: typeof proto3;
|
|
130
|
+
static readonly typeName = "personalisation.VectorIndexMeta";
|
|
131
|
+
static readonly fields: FieldList;
|
|
132
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VectorIndexMeta;
|
|
133
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VectorIndexMeta;
|
|
134
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VectorIndexMeta;
|
|
135
|
+
static equals(a: VectorIndexMeta | PlainMessage<VectorIndexMeta> | undefined, b: VectorIndexMeta | PlainMessage<VectorIndexMeta> | undefined): boolean;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @generated from message personalisation.GetVectorIndexMetaRequest
|
|
139
|
+
*/
|
|
140
|
+
declare class GetVectorIndexMetaRequest extends Message<GetVectorIndexMetaRequest> {
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: string index_name = 1;
|
|
143
|
+
*/
|
|
144
|
+
indexName: string;
|
|
145
|
+
constructor(data?: PartialMessage<GetVectorIndexMetaRequest>);
|
|
146
|
+
static readonly runtime: typeof proto3;
|
|
147
|
+
static readonly typeName = "personalisation.GetVectorIndexMetaRequest";
|
|
148
|
+
static readonly fields: FieldList;
|
|
149
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVectorIndexMetaRequest;
|
|
150
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVectorIndexMetaRequest;
|
|
151
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVectorIndexMetaRequest;
|
|
152
|
+
static equals(a: GetVectorIndexMetaRequest | PlainMessage<GetVectorIndexMetaRequest> | undefined, b: GetVectorIndexMetaRequest | PlainMessage<GetVectorIndexMetaRequest> | undefined): boolean;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @generated from message personalisation.GetVectorIndexMetaResponse
|
|
156
|
+
*/
|
|
157
|
+
declare class GetVectorIndexMetaResponse extends Message<GetVectorIndexMetaResponse> {
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: personalisation.VectorIndexMeta result = 1;
|
|
160
|
+
*/
|
|
161
|
+
result?: VectorIndexMeta;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: util.Error error = 2;
|
|
164
|
+
*/
|
|
165
|
+
error?: Error;
|
|
166
|
+
constructor(data?: PartialMessage<GetVectorIndexMetaResponse>);
|
|
167
|
+
static readonly runtime: typeof proto3;
|
|
168
|
+
static readonly typeName = "personalisation.GetVectorIndexMetaResponse";
|
|
169
|
+
static readonly fields: FieldList;
|
|
170
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVectorIndexMetaResponse;
|
|
171
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVectorIndexMetaResponse;
|
|
172
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVectorIndexMetaResponse;
|
|
173
|
+
static equals(a: GetVectorIndexMetaResponse | PlainMessage<GetVectorIndexMetaResponse> | undefined, b: GetVectorIndexMetaResponse | PlainMessage<GetVectorIndexMetaResponse> | undefined): boolean;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @generated from message personalisation.CreateVectorIndexMetaRequest
|
|
177
|
+
*/
|
|
178
|
+
declare class CreateVectorIndexMetaRequest extends Message<CreateVectorIndexMetaRequest> {
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string index_name = 1;
|
|
181
|
+
*/
|
|
182
|
+
indexName: string;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string field_name = 2;
|
|
185
|
+
*/
|
|
186
|
+
fieldName: string;
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: string prefix = 3;
|
|
189
|
+
*/
|
|
190
|
+
prefix: string;
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: repeated string keys = 4;
|
|
193
|
+
*/
|
|
194
|
+
keys: string[];
|
|
195
|
+
constructor(data?: PartialMessage<CreateVectorIndexMetaRequest>);
|
|
196
|
+
static readonly runtime: typeof proto3;
|
|
197
|
+
static readonly typeName = "personalisation.CreateVectorIndexMetaRequest";
|
|
198
|
+
static readonly fields: FieldList;
|
|
199
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateVectorIndexMetaRequest;
|
|
200
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateVectorIndexMetaRequest;
|
|
201
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateVectorIndexMetaRequest;
|
|
202
|
+
static equals(a: CreateVectorIndexMetaRequest | PlainMessage<CreateVectorIndexMetaRequest> | undefined, b: CreateVectorIndexMetaRequest | PlainMessage<CreateVectorIndexMetaRequest> | undefined): boolean;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @generated from message personalisation.CreateVectorIndexMetaResponse
|
|
206
|
+
*/
|
|
207
|
+
declare class CreateVectorIndexMetaResponse extends Message<CreateVectorIndexMetaResponse> {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: repeated personalisation.VectorIndexMeta expired_indexes = 1;
|
|
210
|
+
*/
|
|
211
|
+
expiredIndexes: VectorIndexMeta[];
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: util.Error error = 2;
|
|
214
|
+
*/
|
|
215
|
+
error?: Error;
|
|
216
|
+
constructor(data?: PartialMessage<CreateVectorIndexMetaResponse>);
|
|
217
|
+
static readonly runtime: typeof proto3;
|
|
218
|
+
static readonly typeName = "personalisation.CreateVectorIndexMetaResponse";
|
|
219
|
+
static readonly fields: FieldList;
|
|
220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateVectorIndexMetaResponse;
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateVectorIndexMetaResponse;
|
|
222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateVectorIndexMetaResponse;
|
|
223
|
+
static equals(a: CreateVectorIndexMetaResponse | PlainMessage<CreateVectorIndexMetaResponse> | undefined, b: CreateVectorIndexMetaResponse | PlainMessage<CreateVectorIndexMetaResponse> | undefined): boolean;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetUserRankRequest, GetUserRankResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, RankType, UserRank, VectorIndexMeta };
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
|
2
|
+
import { Error } from "../../util/error_pb.js";
|
|
3
|
+
var RankType = /* @__PURE__ */ ((RankType2) => {
|
|
4
|
+
RankType2[RankType2["tag"] = 0] = "tag";
|
|
5
|
+
RankType2[RankType2["source"] = 1] = "source";
|
|
6
|
+
RankType2[RankType2["content_curation"] = 2] = "content_curation";
|
|
7
|
+
RankType2[RankType2["author"] = 3] = "author";
|
|
8
|
+
return RankType2;
|
|
9
|
+
})(RankType || {});
|
|
10
|
+
proto3.util.setEnumType(RankType, "personalisation.RankType", [
|
|
11
|
+
{ no: 0, name: "tag" },
|
|
12
|
+
{ no: 1, name: "source" },
|
|
13
|
+
{ no: 2, name: "content_curation" },
|
|
14
|
+
{ no: 3, name: "author" }
|
|
15
|
+
]);
|
|
16
|
+
class UserRank extends Message {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string user_id = 1;
|
|
19
|
+
*/
|
|
20
|
+
userId = "";
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: personalisation.RankType type = 2;
|
|
23
|
+
*/
|
|
24
|
+
type = 0 /* tag */;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: string value = 3;
|
|
27
|
+
*/
|
|
28
|
+
value = "";
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: double rank = 4;
|
|
31
|
+
*/
|
|
32
|
+
rank = 0;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: google.protobuf.Timestamp d_update = 5;
|
|
35
|
+
*/
|
|
36
|
+
dUpdate;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: int64 post_rank_count = 6;
|
|
39
|
+
*/
|
|
40
|
+
postRankCount = protoInt64.zero;
|
|
41
|
+
constructor(data) {
|
|
42
|
+
super();
|
|
43
|
+
proto3.util.initPartial(data, this);
|
|
44
|
+
}
|
|
45
|
+
static runtime = proto3;
|
|
46
|
+
static typeName = "personalisation.UserRank";
|
|
47
|
+
static fields = proto3.util.newFieldList(() => [
|
|
48
|
+
{
|
|
49
|
+
no: 1,
|
|
50
|
+
name: "user_id",
|
|
51
|
+
kind: "scalar",
|
|
52
|
+
T: 9
|
|
53
|
+
/* ScalarType.STRING */
|
|
54
|
+
},
|
|
55
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(RankType) },
|
|
56
|
+
{
|
|
57
|
+
no: 3,
|
|
58
|
+
name: "value",
|
|
59
|
+
kind: "scalar",
|
|
60
|
+
T: 9
|
|
61
|
+
/* ScalarType.STRING */
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
no: 4,
|
|
65
|
+
name: "rank",
|
|
66
|
+
kind: "scalar",
|
|
67
|
+
T: 1
|
|
68
|
+
/* ScalarType.DOUBLE */
|
|
69
|
+
},
|
|
70
|
+
{ no: 5, name: "d_update", kind: "message", T: Timestamp },
|
|
71
|
+
{
|
|
72
|
+
no: 6,
|
|
73
|
+
name: "post_rank_count",
|
|
74
|
+
kind: "scalar",
|
|
75
|
+
T: 3
|
|
76
|
+
/* ScalarType.INT64 */
|
|
77
|
+
}
|
|
78
|
+
]);
|
|
79
|
+
static fromBinary(bytes, options) {
|
|
80
|
+
return new UserRank().fromBinary(bytes, options);
|
|
81
|
+
}
|
|
82
|
+
static fromJson(jsonValue, options) {
|
|
83
|
+
return new UserRank().fromJson(jsonValue, options);
|
|
84
|
+
}
|
|
85
|
+
static fromJsonString(jsonString, options) {
|
|
86
|
+
return new UserRank().fromJsonString(jsonString, options);
|
|
87
|
+
}
|
|
88
|
+
static equals(a, b) {
|
|
89
|
+
return proto3.util.equals(UserRank, a, b);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
class GetUserRankRequest extends Message {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: string user_id = 1;
|
|
95
|
+
*/
|
|
96
|
+
userId = "";
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: int64 post_rank_count = 2;
|
|
99
|
+
*/
|
|
100
|
+
postRankCount = protoInt64.zero;
|
|
101
|
+
constructor(data) {
|
|
102
|
+
super();
|
|
103
|
+
proto3.util.initPartial(data, this);
|
|
104
|
+
}
|
|
105
|
+
static runtime = proto3;
|
|
106
|
+
static typeName = "personalisation.GetUserRankRequest";
|
|
107
|
+
static fields = proto3.util.newFieldList(() => [
|
|
108
|
+
{
|
|
109
|
+
no: 1,
|
|
110
|
+
name: "user_id",
|
|
111
|
+
kind: "scalar",
|
|
112
|
+
T: 9
|
|
113
|
+
/* ScalarType.STRING */
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
no: 2,
|
|
117
|
+
name: "post_rank_count",
|
|
118
|
+
kind: "scalar",
|
|
119
|
+
T: 3
|
|
120
|
+
/* ScalarType.INT64 */
|
|
121
|
+
}
|
|
122
|
+
]);
|
|
123
|
+
static fromBinary(bytes, options) {
|
|
124
|
+
return new GetUserRankRequest().fromBinary(bytes, options);
|
|
125
|
+
}
|
|
126
|
+
static fromJson(jsonValue, options) {
|
|
127
|
+
return new GetUserRankRequest().fromJson(jsonValue, options);
|
|
128
|
+
}
|
|
129
|
+
static fromJsonString(jsonString, options) {
|
|
130
|
+
return new GetUserRankRequest().fromJsonString(jsonString, options);
|
|
131
|
+
}
|
|
132
|
+
static equals(a, b) {
|
|
133
|
+
return proto3.util.equals(GetUserRankRequest, a, b);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
class GetUserRankResponse extends Message {
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: repeated personalisation.UserRank result = 1;
|
|
139
|
+
*/
|
|
140
|
+
result = [];
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: repeated util.Error error = 2;
|
|
143
|
+
*/
|
|
144
|
+
error = [];
|
|
145
|
+
constructor(data) {
|
|
146
|
+
super();
|
|
147
|
+
proto3.util.initPartial(data, this);
|
|
148
|
+
}
|
|
149
|
+
static runtime = proto3;
|
|
150
|
+
static typeName = "personalisation.GetUserRankResponse";
|
|
151
|
+
static fields = proto3.util.newFieldList(() => [
|
|
152
|
+
{ no: 1, name: "result", kind: "message", T: UserRank, repeated: true },
|
|
153
|
+
{ no: 2, name: "error", kind: "message", T: Error, repeated: true }
|
|
154
|
+
]);
|
|
155
|
+
static fromBinary(bytes, options) {
|
|
156
|
+
return new GetUserRankResponse().fromBinary(bytes, options);
|
|
157
|
+
}
|
|
158
|
+
static fromJson(jsonValue, options) {
|
|
159
|
+
return new GetUserRankResponse().fromJson(jsonValue, options);
|
|
160
|
+
}
|
|
161
|
+
static fromJsonString(jsonString, options) {
|
|
162
|
+
return new GetUserRankResponse().fromJsonString(jsonString, options);
|
|
163
|
+
}
|
|
164
|
+
static equals(a, b) {
|
|
165
|
+
return proto3.util.equals(GetUserRankResponse, a, b);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class VectorIndexMeta extends Message {
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: google.protobuf.Timestamp created = 1;
|
|
171
|
+
*/
|
|
172
|
+
created;
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: string index_name = 2;
|
|
175
|
+
*/
|
|
176
|
+
indexName = "";
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: string field_name = 3;
|
|
179
|
+
*/
|
|
180
|
+
fieldName = "";
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: string prefix = 4;
|
|
183
|
+
*/
|
|
184
|
+
prefix = "";
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: repeated string keys = 5;
|
|
187
|
+
*/
|
|
188
|
+
keys = [];
|
|
189
|
+
constructor(data) {
|
|
190
|
+
super();
|
|
191
|
+
proto3.util.initPartial(data, this);
|
|
192
|
+
}
|
|
193
|
+
static runtime = proto3;
|
|
194
|
+
static typeName = "personalisation.VectorIndexMeta";
|
|
195
|
+
static fields = proto3.util.newFieldList(() => [
|
|
196
|
+
{ no: 1, name: "created", kind: "message", T: Timestamp },
|
|
197
|
+
{
|
|
198
|
+
no: 2,
|
|
199
|
+
name: "index_name",
|
|
200
|
+
kind: "scalar",
|
|
201
|
+
T: 9
|
|
202
|
+
/* ScalarType.STRING */
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
no: 3,
|
|
206
|
+
name: "field_name",
|
|
207
|
+
kind: "scalar",
|
|
208
|
+
T: 9
|
|
209
|
+
/* ScalarType.STRING */
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
no: 4,
|
|
213
|
+
name: "prefix",
|
|
214
|
+
kind: "scalar",
|
|
215
|
+
T: 9
|
|
216
|
+
/* ScalarType.STRING */
|
|
217
|
+
},
|
|
218
|
+
{ no: 5, name: "keys", kind: "scalar", T: 9, repeated: true }
|
|
219
|
+
]);
|
|
220
|
+
static fromBinary(bytes, options) {
|
|
221
|
+
return new VectorIndexMeta().fromBinary(bytes, options);
|
|
222
|
+
}
|
|
223
|
+
static fromJson(jsonValue, options) {
|
|
224
|
+
return new VectorIndexMeta().fromJson(jsonValue, options);
|
|
225
|
+
}
|
|
226
|
+
static fromJsonString(jsonString, options) {
|
|
227
|
+
return new VectorIndexMeta().fromJsonString(jsonString, options);
|
|
228
|
+
}
|
|
229
|
+
static equals(a, b) {
|
|
230
|
+
return proto3.util.equals(VectorIndexMeta, a, b);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
class GetVectorIndexMetaRequest extends Message {
|
|
234
|
+
/**
|
|
235
|
+
* @generated from field: string index_name = 1;
|
|
236
|
+
*/
|
|
237
|
+
indexName = "";
|
|
238
|
+
constructor(data) {
|
|
239
|
+
super();
|
|
240
|
+
proto3.util.initPartial(data, this);
|
|
241
|
+
}
|
|
242
|
+
static runtime = proto3;
|
|
243
|
+
static typeName = "personalisation.GetVectorIndexMetaRequest";
|
|
244
|
+
static fields = proto3.util.newFieldList(() => [
|
|
245
|
+
{
|
|
246
|
+
no: 1,
|
|
247
|
+
name: "index_name",
|
|
248
|
+
kind: "scalar",
|
|
249
|
+
T: 9
|
|
250
|
+
/* ScalarType.STRING */
|
|
251
|
+
}
|
|
252
|
+
]);
|
|
253
|
+
static fromBinary(bytes, options) {
|
|
254
|
+
return new GetVectorIndexMetaRequest().fromBinary(bytes, options);
|
|
255
|
+
}
|
|
256
|
+
static fromJson(jsonValue, options) {
|
|
257
|
+
return new GetVectorIndexMetaRequest().fromJson(jsonValue, options);
|
|
258
|
+
}
|
|
259
|
+
static fromJsonString(jsonString, options) {
|
|
260
|
+
return new GetVectorIndexMetaRequest().fromJsonString(jsonString, options);
|
|
261
|
+
}
|
|
262
|
+
static equals(a, b) {
|
|
263
|
+
return proto3.util.equals(GetVectorIndexMetaRequest, a, b);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
class GetVectorIndexMetaResponse extends Message {
|
|
267
|
+
/**
|
|
268
|
+
* @generated from field: personalisation.VectorIndexMeta result = 1;
|
|
269
|
+
*/
|
|
270
|
+
result;
|
|
271
|
+
/**
|
|
272
|
+
* @generated from field: util.Error error = 2;
|
|
273
|
+
*/
|
|
274
|
+
error;
|
|
275
|
+
constructor(data) {
|
|
276
|
+
super();
|
|
277
|
+
proto3.util.initPartial(data, this);
|
|
278
|
+
}
|
|
279
|
+
static runtime = proto3;
|
|
280
|
+
static typeName = "personalisation.GetVectorIndexMetaResponse";
|
|
281
|
+
static fields = proto3.util.newFieldList(() => [
|
|
282
|
+
{ no: 1, name: "result", kind: "message", T: VectorIndexMeta },
|
|
283
|
+
{ no: 2, name: "error", kind: "message", T: Error }
|
|
284
|
+
]);
|
|
285
|
+
static fromBinary(bytes, options) {
|
|
286
|
+
return new GetVectorIndexMetaResponse().fromBinary(bytes, options);
|
|
287
|
+
}
|
|
288
|
+
static fromJson(jsonValue, options) {
|
|
289
|
+
return new GetVectorIndexMetaResponse().fromJson(jsonValue, options);
|
|
290
|
+
}
|
|
291
|
+
static fromJsonString(jsonString, options) {
|
|
292
|
+
return new GetVectorIndexMetaResponse().fromJsonString(jsonString, options);
|
|
293
|
+
}
|
|
294
|
+
static equals(a, b) {
|
|
295
|
+
return proto3.util.equals(GetVectorIndexMetaResponse, a, b);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
class CreateVectorIndexMetaRequest extends Message {
|
|
299
|
+
/**
|
|
300
|
+
* @generated from field: string index_name = 1;
|
|
301
|
+
*/
|
|
302
|
+
indexName = "";
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: string field_name = 2;
|
|
305
|
+
*/
|
|
306
|
+
fieldName = "";
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: string prefix = 3;
|
|
309
|
+
*/
|
|
310
|
+
prefix = "";
|
|
311
|
+
/**
|
|
312
|
+
* @generated from field: repeated string keys = 4;
|
|
313
|
+
*/
|
|
314
|
+
keys = [];
|
|
315
|
+
constructor(data) {
|
|
316
|
+
super();
|
|
317
|
+
proto3.util.initPartial(data, this);
|
|
318
|
+
}
|
|
319
|
+
static runtime = proto3;
|
|
320
|
+
static typeName = "personalisation.CreateVectorIndexMetaRequest";
|
|
321
|
+
static fields = proto3.util.newFieldList(() => [
|
|
322
|
+
{
|
|
323
|
+
no: 1,
|
|
324
|
+
name: "index_name",
|
|
325
|
+
kind: "scalar",
|
|
326
|
+
T: 9
|
|
327
|
+
/* ScalarType.STRING */
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
no: 2,
|
|
331
|
+
name: "field_name",
|
|
332
|
+
kind: "scalar",
|
|
333
|
+
T: 9
|
|
334
|
+
/* ScalarType.STRING */
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
no: 3,
|
|
338
|
+
name: "prefix",
|
|
339
|
+
kind: "scalar",
|
|
340
|
+
T: 9
|
|
341
|
+
/* ScalarType.STRING */
|
|
342
|
+
},
|
|
343
|
+
{ no: 4, name: "keys", kind: "scalar", T: 9, repeated: true }
|
|
344
|
+
]);
|
|
345
|
+
static fromBinary(bytes, options) {
|
|
346
|
+
return new CreateVectorIndexMetaRequest().fromBinary(bytes, options);
|
|
347
|
+
}
|
|
348
|
+
static fromJson(jsonValue, options) {
|
|
349
|
+
return new CreateVectorIndexMetaRequest().fromJson(jsonValue, options);
|
|
350
|
+
}
|
|
351
|
+
static fromJsonString(jsonString, options) {
|
|
352
|
+
return new CreateVectorIndexMetaRequest().fromJsonString(jsonString, options);
|
|
353
|
+
}
|
|
354
|
+
static equals(a, b) {
|
|
355
|
+
return proto3.util.equals(CreateVectorIndexMetaRequest, a, b);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
class CreateVectorIndexMetaResponse extends Message {
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: repeated personalisation.VectorIndexMeta expired_indexes = 1;
|
|
361
|
+
*/
|
|
362
|
+
expiredIndexes = [];
|
|
363
|
+
/**
|
|
364
|
+
* @generated from field: util.Error error = 2;
|
|
365
|
+
*/
|
|
366
|
+
error;
|
|
367
|
+
constructor(data) {
|
|
368
|
+
super();
|
|
369
|
+
proto3.util.initPartial(data, this);
|
|
370
|
+
}
|
|
371
|
+
static runtime = proto3;
|
|
372
|
+
static typeName = "personalisation.CreateVectorIndexMetaResponse";
|
|
373
|
+
static fields = proto3.util.newFieldList(() => [
|
|
374
|
+
{ no: 1, name: "expired_indexes", kind: "message", T: VectorIndexMeta, repeated: true },
|
|
375
|
+
{ no: 2, name: "error", kind: "message", T: Error }
|
|
376
|
+
]);
|
|
377
|
+
static fromBinary(bytes, options) {
|
|
378
|
+
return new CreateVectorIndexMetaResponse().fromBinary(bytes, options);
|
|
379
|
+
}
|
|
380
|
+
static fromJson(jsonValue, options) {
|
|
381
|
+
return new CreateVectorIndexMetaResponse().fromJson(jsonValue, options);
|
|
382
|
+
}
|
|
383
|
+
static fromJsonString(jsonString, options) {
|
|
384
|
+
return new CreateVectorIndexMetaResponse().fromJsonString(jsonString, options);
|
|
385
|
+
}
|
|
386
|
+
static equals(a, b) {
|
|
387
|
+
return proto3.util.equals(CreateVectorIndexMetaResponse, a, b);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
export {
|
|
391
|
+
CreateVectorIndexMetaRequest,
|
|
392
|
+
CreateVectorIndexMetaResponse,
|
|
393
|
+
GetUserRankRequest,
|
|
394
|
+
GetUserRankResponse,
|
|
395
|
+
GetVectorIndexMetaRequest,
|
|
396
|
+
GetVectorIndexMetaResponse,
|
|
397
|
+
RankType,
|
|
398
|
+
UserRank,
|
|
399
|
+
VectorIndexMeta
|
|
400
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var error_pb_exports = {};
|
|
19
|
+
__export(error_pb_exports, {
|
|
20
|
+
Error: () => Error2
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(error_pb_exports);
|
|
23
|
+
var import_protobuf = require("@bufbuild/protobuf");
|
|
24
|
+
class Error2 extends import_protobuf.Message {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: string code = 1;
|
|
27
|
+
*/
|
|
28
|
+
code = "";
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: string message = 2;
|
|
31
|
+
*/
|
|
32
|
+
message = "";
|
|
33
|
+
constructor(data) {
|
|
34
|
+
super();
|
|
35
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
36
|
+
}
|
|
37
|
+
static runtime = import_protobuf.proto3;
|
|
38
|
+
static typeName = "util.Error";
|
|
39
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
40
|
+
{
|
|
41
|
+
no: 1,
|
|
42
|
+
name: "code",
|
|
43
|
+
kind: "scalar",
|
|
44
|
+
T: 9
|
|
45
|
+
/* ScalarType.STRING */
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
no: 2,
|
|
49
|
+
name: "message",
|
|
50
|
+
kind: "scalar",
|
|
51
|
+
T: 9
|
|
52
|
+
/* ScalarType.STRING */
|
|
53
|
+
}
|
|
54
|
+
]);
|
|
55
|
+
static fromBinary(bytes, options) {
|
|
56
|
+
return new Error2().fromBinary(bytes, options);
|
|
57
|
+
}
|
|
58
|
+
static fromJson(jsonValue, options) {
|
|
59
|
+
return new Error2().fromJson(jsonValue, options);
|
|
60
|
+
}
|
|
61
|
+
static fromJsonString(jsonString, options) {
|
|
62
|
+
return new Error2().fromJsonString(jsonString, options);
|
|
63
|
+
}
|
|
64
|
+
static equals(a, b) {
|
|
65
|
+
return import_protobuf.proto3.util.equals(Error2, a, b);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
Error
|
|
71
|
+
});
|