@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,431 @@
|
|
|
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 personalisation_pb_exports = {};
|
|
19
|
+
__export(personalisation_pb_exports, {
|
|
20
|
+
CreateVectorIndexMetaRequest: () => CreateVectorIndexMetaRequest,
|
|
21
|
+
CreateVectorIndexMetaResponse: () => CreateVectorIndexMetaResponse,
|
|
22
|
+
GetUserRankRequest: () => GetUserRankRequest,
|
|
23
|
+
GetUserRankResponse: () => GetUserRankResponse,
|
|
24
|
+
GetVectorIndexMetaRequest: () => GetVectorIndexMetaRequest,
|
|
25
|
+
GetVectorIndexMetaResponse: () => GetVectorIndexMetaResponse,
|
|
26
|
+
RankType: () => RankType,
|
|
27
|
+
UserRank: () => UserRank,
|
|
28
|
+
VectorIndexMeta: () => VectorIndexMeta
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(personalisation_pb_exports);
|
|
31
|
+
var import_protobuf = require("@bufbuild/protobuf");
|
|
32
|
+
var import_error_pb = require("../../util/error_pb.js");
|
|
33
|
+
var RankType = /* @__PURE__ */ ((RankType2) => {
|
|
34
|
+
RankType2[RankType2["tag"] = 0] = "tag";
|
|
35
|
+
RankType2[RankType2["source"] = 1] = "source";
|
|
36
|
+
RankType2[RankType2["content_curation"] = 2] = "content_curation";
|
|
37
|
+
RankType2[RankType2["author"] = 3] = "author";
|
|
38
|
+
return RankType2;
|
|
39
|
+
})(RankType || {});
|
|
40
|
+
import_protobuf.proto3.util.setEnumType(RankType, "personalisation.RankType", [
|
|
41
|
+
{ no: 0, name: "tag" },
|
|
42
|
+
{ no: 1, name: "source" },
|
|
43
|
+
{ no: 2, name: "content_curation" },
|
|
44
|
+
{ no: 3, name: "author" }
|
|
45
|
+
]);
|
|
46
|
+
class UserRank extends import_protobuf.Message {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: string user_id = 1;
|
|
49
|
+
*/
|
|
50
|
+
userId = "";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: personalisation.RankType type = 2;
|
|
53
|
+
*/
|
|
54
|
+
type = 0 /* tag */;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string value = 3;
|
|
57
|
+
*/
|
|
58
|
+
value = "";
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: double rank = 4;
|
|
61
|
+
*/
|
|
62
|
+
rank = 0;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: google.protobuf.Timestamp d_update = 5;
|
|
65
|
+
*/
|
|
66
|
+
dUpdate;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: int64 post_rank_count = 6;
|
|
69
|
+
*/
|
|
70
|
+
postRankCount = import_protobuf.protoInt64.zero;
|
|
71
|
+
constructor(data) {
|
|
72
|
+
super();
|
|
73
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
74
|
+
}
|
|
75
|
+
static runtime = import_protobuf.proto3;
|
|
76
|
+
static typeName = "personalisation.UserRank";
|
|
77
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
78
|
+
{
|
|
79
|
+
no: 1,
|
|
80
|
+
name: "user_id",
|
|
81
|
+
kind: "scalar",
|
|
82
|
+
T: 9
|
|
83
|
+
/* ScalarType.STRING */
|
|
84
|
+
},
|
|
85
|
+
{ no: 2, name: "type", kind: "enum", T: import_protobuf.proto3.getEnumType(RankType) },
|
|
86
|
+
{
|
|
87
|
+
no: 3,
|
|
88
|
+
name: "value",
|
|
89
|
+
kind: "scalar",
|
|
90
|
+
T: 9
|
|
91
|
+
/* ScalarType.STRING */
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
no: 4,
|
|
95
|
+
name: "rank",
|
|
96
|
+
kind: "scalar",
|
|
97
|
+
T: 1
|
|
98
|
+
/* ScalarType.DOUBLE */
|
|
99
|
+
},
|
|
100
|
+
{ no: 5, name: "d_update", kind: "message", T: import_protobuf.Timestamp },
|
|
101
|
+
{
|
|
102
|
+
no: 6,
|
|
103
|
+
name: "post_rank_count",
|
|
104
|
+
kind: "scalar",
|
|
105
|
+
T: 3
|
|
106
|
+
/* ScalarType.INT64 */
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
static fromBinary(bytes, options) {
|
|
110
|
+
return new UserRank().fromBinary(bytes, options);
|
|
111
|
+
}
|
|
112
|
+
static fromJson(jsonValue, options) {
|
|
113
|
+
return new UserRank().fromJson(jsonValue, options);
|
|
114
|
+
}
|
|
115
|
+
static fromJsonString(jsonString, options) {
|
|
116
|
+
return new UserRank().fromJsonString(jsonString, options);
|
|
117
|
+
}
|
|
118
|
+
static equals(a, b) {
|
|
119
|
+
return import_protobuf.proto3.util.equals(UserRank, a, b);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
class GetUserRankRequest extends import_protobuf.Message {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: string user_id = 1;
|
|
125
|
+
*/
|
|
126
|
+
userId = "";
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: int64 post_rank_count = 2;
|
|
129
|
+
*/
|
|
130
|
+
postRankCount = import_protobuf.protoInt64.zero;
|
|
131
|
+
constructor(data) {
|
|
132
|
+
super();
|
|
133
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
134
|
+
}
|
|
135
|
+
static runtime = import_protobuf.proto3;
|
|
136
|
+
static typeName = "personalisation.GetUserRankRequest";
|
|
137
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
138
|
+
{
|
|
139
|
+
no: 1,
|
|
140
|
+
name: "user_id",
|
|
141
|
+
kind: "scalar",
|
|
142
|
+
T: 9
|
|
143
|
+
/* ScalarType.STRING */
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
no: 2,
|
|
147
|
+
name: "post_rank_count",
|
|
148
|
+
kind: "scalar",
|
|
149
|
+
T: 3
|
|
150
|
+
/* ScalarType.INT64 */
|
|
151
|
+
}
|
|
152
|
+
]);
|
|
153
|
+
static fromBinary(bytes, options) {
|
|
154
|
+
return new GetUserRankRequest().fromBinary(bytes, options);
|
|
155
|
+
}
|
|
156
|
+
static fromJson(jsonValue, options) {
|
|
157
|
+
return new GetUserRankRequest().fromJson(jsonValue, options);
|
|
158
|
+
}
|
|
159
|
+
static fromJsonString(jsonString, options) {
|
|
160
|
+
return new GetUserRankRequest().fromJsonString(jsonString, options);
|
|
161
|
+
}
|
|
162
|
+
static equals(a, b) {
|
|
163
|
+
return import_protobuf.proto3.util.equals(GetUserRankRequest, a, b);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
class GetUserRankResponse extends import_protobuf.Message {
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: repeated personalisation.UserRank result = 1;
|
|
169
|
+
*/
|
|
170
|
+
result = [];
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: repeated util.Error error = 2;
|
|
173
|
+
*/
|
|
174
|
+
error = [];
|
|
175
|
+
constructor(data) {
|
|
176
|
+
super();
|
|
177
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
178
|
+
}
|
|
179
|
+
static runtime = import_protobuf.proto3;
|
|
180
|
+
static typeName = "personalisation.GetUserRankResponse";
|
|
181
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
182
|
+
{ no: 1, name: "result", kind: "message", T: UserRank, repeated: true },
|
|
183
|
+
{ no: 2, name: "error", kind: "message", T: import_error_pb.Error, repeated: true }
|
|
184
|
+
]);
|
|
185
|
+
static fromBinary(bytes, options) {
|
|
186
|
+
return new GetUserRankResponse().fromBinary(bytes, options);
|
|
187
|
+
}
|
|
188
|
+
static fromJson(jsonValue, options) {
|
|
189
|
+
return new GetUserRankResponse().fromJson(jsonValue, options);
|
|
190
|
+
}
|
|
191
|
+
static fromJsonString(jsonString, options) {
|
|
192
|
+
return new GetUserRankResponse().fromJsonString(jsonString, options);
|
|
193
|
+
}
|
|
194
|
+
static equals(a, b) {
|
|
195
|
+
return import_protobuf.proto3.util.equals(GetUserRankResponse, a, b);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
class VectorIndexMeta extends import_protobuf.Message {
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: google.protobuf.Timestamp created = 1;
|
|
201
|
+
*/
|
|
202
|
+
created;
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: string index_name = 2;
|
|
205
|
+
*/
|
|
206
|
+
indexName = "";
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string field_name = 3;
|
|
209
|
+
*/
|
|
210
|
+
fieldName = "";
|
|
211
|
+
/**
|
|
212
|
+
* @generated from field: string prefix = 4;
|
|
213
|
+
*/
|
|
214
|
+
prefix = "";
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: repeated string keys = 5;
|
|
217
|
+
*/
|
|
218
|
+
keys = [];
|
|
219
|
+
constructor(data) {
|
|
220
|
+
super();
|
|
221
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
222
|
+
}
|
|
223
|
+
static runtime = import_protobuf.proto3;
|
|
224
|
+
static typeName = "personalisation.VectorIndexMeta";
|
|
225
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
226
|
+
{ no: 1, name: "created", kind: "message", T: import_protobuf.Timestamp },
|
|
227
|
+
{
|
|
228
|
+
no: 2,
|
|
229
|
+
name: "index_name",
|
|
230
|
+
kind: "scalar",
|
|
231
|
+
T: 9
|
|
232
|
+
/* ScalarType.STRING */
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
no: 3,
|
|
236
|
+
name: "field_name",
|
|
237
|
+
kind: "scalar",
|
|
238
|
+
T: 9
|
|
239
|
+
/* ScalarType.STRING */
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
no: 4,
|
|
243
|
+
name: "prefix",
|
|
244
|
+
kind: "scalar",
|
|
245
|
+
T: 9
|
|
246
|
+
/* ScalarType.STRING */
|
|
247
|
+
},
|
|
248
|
+
{ no: 5, name: "keys", kind: "scalar", T: 9, repeated: true }
|
|
249
|
+
]);
|
|
250
|
+
static fromBinary(bytes, options) {
|
|
251
|
+
return new VectorIndexMeta().fromBinary(bytes, options);
|
|
252
|
+
}
|
|
253
|
+
static fromJson(jsonValue, options) {
|
|
254
|
+
return new VectorIndexMeta().fromJson(jsonValue, options);
|
|
255
|
+
}
|
|
256
|
+
static fromJsonString(jsonString, options) {
|
|
257
|
+
return new VectorIndexMeta().fromJsonString(jsonString, options);
|
|
258
|
+
}
|
|
259
|
+
static equals(a, b) {
|
|
260
|
+
return import_protobuf.proto3.util.equals(VectorIndexMeta, a, b);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
class GetVectorIndexMetaRequest extends import_protobuf.Message {
|
|
264
|
+
/**
|
|
265
|
+
* @generated from field: string index_name = 1;
|
|
266
|
+
*/
|
|
267
|
+
indexName = "";
|
|
268
|
+
constructor(data) {
|
|
269
|
+
super();
|
|
270
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
271
|
+
}
|
|
272
|
+
static runtime = import_protobuf.proto3;
|
|
273
|
+
static typeName = "personalisation.GetVectorIndexMetaRequest";
|
|
274
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
275
|
+
{
|
|
276
|
+
no: 1,
|
|
277
|
+
name: "index_name",
|
|
278
|
+
kind: "scalar",
|
|
279
|
+
T: 9
|
|
280
|
+
/* ScalarType.STRING */
|
|
281
|
+
}
|
|
282
|
+
]);
|
|
283
|
+
static fromBinary(bytes, options) {
|
|
284
|
+
return new GetVectorIndexMetaRequest().fromBinary(bytes, options);
|
|
285
|
+
}
|
|
286
|
+
static fromJson(jsonValue, options) {
|
|
287
|
+
return new GetVectorIndexMetaRequest().fromJson(jsonValue, options);
|
|
288
|
+
}
|
|
289
|
+
static fromJsonString(jsonString, options) {
|
|
290
|
+
return new GetVectorIndexMetaRequest().fromJsonString(jsonString, options);
|
|
291
|
+
}
|
|
292
|
+
static equals(a, b) {
|
|
293
|
+
return import_protobuf.proto3.util.equals(GetVectorIndexMetaRequest, a, b);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
class GetVectorIndexMetaResponse extends import_protobuf.Message {
|
|
297
|
+
/**
|
|
298
|
+
* @generated from field: personalisation.VectorIndexMeta result = 1;
|
|
299
|
+
*/
|
|
300
|
+
result;
|
|
301
|
+
/**
|
|
302
|
+
* @generated from field: util.Error error = 2;
|
|
303
|
+
*/
|
|
304
|
+
error;
|
|
305
|
+
constructor(data) {
|
|
306
|
+
super();
|
|
307
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
308
|
+
}
|
|
309
|
+
static runtime = import_protobuf.proto3;
|
|
310
|
+
static typeName = "personalisation.GetVectorIndexMetaResponse";
|
|
311
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
312
|
+
{ no: 1, name: "result", kind: "message", T: VectorIndexMeta },
|
|
313
|
+
{ no: 2, name: "error", kind: "message", T: import_error_pb.Error }
|
|
314
|
+
]);
|
|
315
|
+
static fromBinary(bytes, options) {
|
|
316
|
+
return new GetVectorIndexMetaResponse().fromBinary(bytes, options);
|
|
317
|
+
}
|
|
318
|
+
static fromJson(jsonValue, options) {
|
|
319
|
+
return new GetVectorIndexMetaResponse().fromJson(jsonValue, options);
|
|
320
|
+
}
|
|
321
|
+
static fromJsonString(jsonString, options) {
|
|
322
|
+
return new GetVectorIndexMetaResponse().fromJsonString(jsonString, options);
|
|
323
|
+
}
|
|
324
|
+
static equals(a, b) {
|
|
325
|
+
return import_protobuf.proto3.util.equals(GetVectorIndexMetaResponse, a, b);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
class CreateVectorIndexMetaRequest extends import_protobuf.Message {
|
|
329
|
+
/**
|
|
330
|
+
* @generated from field: string index_name = 1;
|
|
331
|
+
*/
|
|
332
|
+
indexName = "";
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: string field_name = 2;
|
|
335
|
+
*/
|
|
336
|
+
fieldName = "";
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: string prefix = 3;
|
|
339
|
+
*/
|
|
340
|
+
prefix = "";
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: repeated string keys = 4;
|
|
343
|
+
*/
|
|
344
|
+
keys = [];
|
|
345
|
+
constructor(data) {
|
|
346
|
+
super();
|
|
347
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
348
|
+
}
|
|
349
|
+
static runtime = import_protobuf.proto3;
|
|
350
|
+
static typeName = "personalisation.CreateVectorIndexMetaRequest";
|
|
351
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
352
|
+
{
|
|
353
|
+
no: 1,
|
|
354
|
+
name: "index_name",
|
|
355
|
+
kind: "scalar",
|
|
356
|
+
T: 9
|
|
357
|
+
/* ScalarType.STRING */
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
no: 2,
|
|
361
|
+
name: "field_name",
|
|
362
|
+
kind: "scalar",
|
|
363
|
+
T: 9
|
|
364
|
+
/* ScalarType.STRING */
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
no: 3,
|
|
368
|
+
name: "prefix",
|
|
369
|
+
kind: "scalar",
|
|
370
|
+
T: 9
|
|
371
|
+
/* ScalarType.STRING */
|
|
372
|
+
},
|
|
373
|
+
{ no: 4, name: "keys", kind: "scalar", T: 9, repeated: true }
|
|
374
|
+
]);
|
|
375
|
+
static fromBinary(bytes, options) {
|
|
376
|
+
return new CreateVectorIndexMetaRequest().fromBinary(bytes, options);
|
|
377
|
+
}
|
|
378
|
+
static fromJson(jsonValue, options) {
|
|
379
|
+
return new CreateVectorIndexMetaRequest().fromJson(jsonValue, options);
|
|
380
|
+
}
|
|
381
|
+
static fromJsonString(jsonString, options) {
|
|
382
|
+
return new CreateVectorIndexMetaRequest().fromJsonString(jsonString, options);
|
|
383
|
+
}
|
|
384
|
+
static equals(a, b) {
|
|
385
|
+
return import_protobuf.proto3.util.equals(CreateVectorIndexMetaRequest, a, b);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
class CreateVectorIndexMetaResponse extends import_protobuf.Message {
|
|
389
|
+
/**
|
|
390
|
+
* @generated from field: repeated personalisation.VectorIndexMeta expired_indexes = 1;
|
|
391
|
+
*/
|
|
392
|
+
expiredIndexes = [];
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: util.Error error = 2;
|
|
395
|
+
*/
|
|
396
|
+
error;
|
|
397
|
+
constructor(data) {
|
|
398
|
+
super();
|
|
399
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
400
|
+
}
|
|
401
|
+
static runtime = import_protobuf.proto3;
|
|
402
|
+
static typeName = "personalisation.CreateVectorIndexMetaResponse";
|
|
403
|
+
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
404
|
+
{ no: 1, name: "expired_indexes", kind: "message", T: VectorIndexMeta, repeated: true },
|
|
405
|
+
{ no: 2, name: "error", kind: "message", T: import_error_pb.Error }
|
|
406
|
+
]);
|
|
407
|
+
static fromBinary(bytes, options) {
|
|
408
|
+
return new CreateVectorIndexMetaResponse().fromBinary(bytes, options);
|
|
409
|
+
}
|
|
410
|
+
static fromJson(jsonValue, options) {
|
|
411
|
+
return new CreateVectorIndexMetaResponse().fromJson(jsonValue, options);
|
|
412
|
+
}
|
|
413
|
+
static fromJsonString(jsonString, options) {
|
|
414
|
+
return new CreateVectorIndexMetaResponse().fromJsonString(jsonString, options);
|
|
415
|
+
}
|
|
416
|
+
static equals(a, b) {
|
|
417
|
+
return import_protobuf.proto3.util.equals(CreateVectorIndexMetaResponse, a, b);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
421
|
+
0 && (module.exports = {
|
|
422
|
+
CreateVectorIndexMetaRequest,
|
|
423
|
+
CreateVectorIndexMetaResponse,
|
|
424
|
+
GetUserRankRequest,
|
|
425
|
+
GetUserRankResponse,
|
|
426
|
+
GetVectorIndexMetaRequest,
|
|
427
|
+
GetVectorIndexMetaResponse,
|
|
428
|
+
RankType,
|
|
429
|
+
UserRank,
|
|
430
|
+
VectorIndexMeta
|
|
431
|
+
});
|
|
@@ -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.cjs';
|
|
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 };
|