@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.
Files changed (47) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +1 -0
  3. package/dist/bragi/pipelines_connect.cjs +133 -0
  4. package/dist/bragi/pipelines_connect.d.cts +113 -0
  5. package/dist/bragi/pipelines_connect.d.ts +113 -0
  6. package/dist/bragi/pipelines_connect.js +110 -0
  7. package/dist/bragi/pipelines_pb.cjs +842 -0
  8. package/dist/bragi/pipelines_pb.d.cts +467 -0
  9. package/dist/bragi/pipelines_pb.d.ts +467 -0
  10. package/dist/bragi/pipelines_pb.js +801 -0
  11. package/dist/bragi/proxy_connect.cjs +88 -0
  12. package/dist/bragi/proxy_connect.d.cts +68 -0
  13. package/dist/bragi/proxy_connect.d.ts +68 -0
  14. package/dist/bragi/proxy_connect.js +65 -0
  15. package/dist/bragi/proxy_pb.cjs +595 -0
  16. package/dist/bragi/proxy_pb.d.cts +332 -0
  17. package/dist/bragi/proxy_pb.d.ts +332 -0
  18. package/dist/bragi/proxy_pb.js +561 -0
  19. package/dist/daily-api/posts_connect.cjs +44 -0
  20. package/dist/daily-api/posts_connect.d.cts +24 -0
  21. package/dist/daily-api/posts_connect.d.ts +24 -0
  22. package/dist/daily-api/posts_connect.js +21 -0
  23. package/dist/daily-api/posts_pb.cjs +122 -0
  24. package/dist/daily-api/posts_pb.d.cts +50 -0
  25. package/dist/daily-api/posts_pb.d.ts +50 -0
  26. package/dist/daily-api/posts_pb.js +98 -0
  27. package/dist/feed/personalised/personalised_pb.cjs +122 -0
  28. package/dist/feed/personalised/personalised_pb.d.cts +50 -0
  29. package/dist/feed/personalised/personalised_pb.d.ts +50 -0
  30. package/dist/feed/personalised/personalised_pb.js +98 -0
  31. package/dist/index.cjs +39 -0
  32. package/dist/index.d.cts +11 -0
  33. package/dist/index.d.ts +11 -0
  34. package/dist/index.js +10 -0
  35. package/dist/snotra/engagement/engagement_pb.cjs +201 -0
  36. package/dist/snotra/engagement/engagement_pb.d.cts +133 -0
  37. package/dist/snotra/engagement/engagement_pb.d.ts +133 -0
  38. package/dist/snotra/engagement/engagement_pb.js +175 -0
  39. package/dist/snotra/personalisation/personalisation_pb.cjs +431 -0
  40. package/dist/snotra/personalisation/personalisation_pb.d.cts +226 -0
  41. package/dist/snotra/personalisation/personalisation_pb.d.ts +226 -0
  42. package/dist/snotra/personalisation/personalisation_pb.js +400 -0
  43. package/dist/util/error_pb.cjs +71 -0
  44. package/dist/util/error_pb.d.cts +25 -0
  45. package/dist/util/error_pb.d.ts +25 -0
  46. package/dist/util/error_pb.js +48 -0
  47. package/package.json +44 -0
@@ -0,0 +1,122 @@
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 posts_pb_exports = {};
19
+ __export(posts_pb_exports, {
20
+ CreatePostRequest: () => CreatePostRequest,
21
+ CreatePostResponse: () => CreatePostResponse
22
+ });
23
+ module.exports = __toCommonJS(posts_pb_exports);
24
+ var import_protobuf = require("@bufbuild/protobuf");
25
+ class CreatePostRequest extends import_protobuf.Message {
26
+ /**
27
+ * @generated from field: string url = 1;
28
+ */
29
+ url = "";
30
+ /**
31
+ * @generated from field: string source_id = 2;
32
+ */
33
+ sourceId = "";
34
+ /**
35
+ * @generated from field: optional string yggdrasil_id = 3;
36
+ */
37
+ yggdrasilId;
38
+ constructor(data) {
39
+ super();
40
+ import_protobuf.proto3.util.initPartial(data, this);
41
+ }
42
+ static runtime = import_protobuf.proto3;
43
+ static typeName = "dailydotdev.api.posts.CreatePostRequest";
44
+ static fields = import_protobuf.proto3.util.newFieldList(() => [
45
+ {
46
+ no: 1,
47
+ name: "url",
48
+ kind: "scalar",
49
+ T: 9
50
+ /* ScalarType.STRING */
51
+ },
52
+ {
53
+ no: 2,
54
+ name: "source_id",
55
+ kind: "scalar",
56
+ T: 9
57
+ /* ScalarType.STRING */
58
+ },
59
+ { no: 3, name: "yggdrasil_id", kind: "scalar", T: 9, opt: true }
60
+ ]);
61
+ static fromBinary(bytes, options) {
62
+ return new CreatePostRequest().fromBinary(bytes, options);
63
+ }
64
+ static fromJson(jsonValue, options) {
65
+ return new CreatePostRequest().fromJson(jsonValue, options);
66
+ }
67
+ static fromJsonString(jsonString, options) {
68
+ return new CreatePostRequest().fromJsonString(jsonString, options);
69
+ }
70
+ static equals(a, b) {
71
+ return import_protobuf.proto3.util.equals(CreatePostRequest, a, b);
72
+ }
73
+ }
74
+ class CreatePostResponse extends import_protobuf.Message {
75
+ /**
76
+ * @generated from field: string post_id = 1;
77
+ */
78
+ postId = "";
79
+ /**
80
+ * @generated from field: string url = 2;
81
+ */
82
+ url = "";
83
+ constructor(data) {
84
+ super();
85
+ import_protobuf.proto3.util.initPartial(data, this);
86
+ }
87
+ static runtime = import_protobuf.proto3;
88
+ static typeName = "dailydotdev.api.posts.CreatePostResponse";
89
+ static fields = import_protobuf.proto3.util.newFieldList(() => [
90
+ {
91
+ no: 1,
92
+ name: "post_id",
93
+ kind: "scalar",
94
+ T: 9
95
+ /* ScalarType.STRING */
96
+ },
97
+ {
98
+ no: 2,
99
+ name: "url",
100
+ kind: "scalar",
101
+ T: 9
102
+ /* ScalarType.STRING */
103
+ }
104
+ ]);
105
+ static fromBinary(bytes, options) {
106
+ return new CreatePostResponse().fromBinary(bytes, options);
107
+ }
108
+ static fromJson(jsonValue, options) {
109
+ return new CreatePostResponse().fromJson(jsonValue, options);
110
+ }
111
+ static fromJsonString(jsonString, options) {
112
+ return new CreatePostResponse().fromJsonString(jsonString, options);
113
+ }
114
+ static equals(a, b) {
115
+ return import_protobuf.proto3.util.equals(CreatePostResponse, a, b);
116
+ }
117
+ }
118
+ // Annotate the CommonJS export names for ESM import in node:
119
+ 0 && (module.exports = {
120
+ CreatePostRequest,
121
+ CreatePostResponse
122
+ });
@@ -0,0 +1,50 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message dailydotdev.api.posts.CreatePostRequest
5
+ */
6
+ declare class CreatePostRequest extends Message<CreatePostRequest> {
7
+ /**
8
+ * @generated from field: string url = 1;
9
+ */
10
+ url: string;
11
+ /**
12
+ * @generated from field: string source_id = 2;
13
+ */
14
+ sourceId: string;
15
+ /**
16
+ * @generated from field: optional string yggdrasil_id = 3;
17
+ */
18
+ yggdrasilId?: string;
19
+ constructor(data?: PartialMessage<CreatePostRequest>);
20
+ static readonly runtime: typeof proto3;
21
+ static readonly typeName = "dailydotdev.api.posts.CreatePostRequest";
22
+ static readonly fields: FieldList;
23
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePostRequest;
24
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePostRequest;
25
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePostRequest;
26
+ static equals(a: CreatePostRequest | PlainMessage<CreatePostRequest> | undefined, b: CreatePostRequest | PlainMessage<CreatePostRequest> | undefined): boolean;
27
+ }
28
+ /**
29
+ * @generated from message dailydotdev.api.posts.CreatePostResponse
30
+ */
31
+ declare class CreatePostResponse extends Message<CreatePostResponse> {
32
+ /**
33
+ * @generated from field: string post_id = 1;
34
+ */
35
+ postId: string;
36
+ /**
37
+ * @generated from field: string url = 2;
38
+ */
39
+ url: string;
40
+ constructor(data?: PartialMessage<CreatePostResponse>);
41
+ static readonly runtime: typeof proto3;
42
+ static readonly typeName = "dailydotdev.api.posts.CreatePostResponse";
43
+ static readonly fields: FieldList;
44
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePostResponse;
45
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePostResponse;
46
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePostResponse;
47
+ static equals(a: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined, b: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined): boolean;
48
+ }
49
+
50
+ export { CreatePostRequest, CreatePostResponse };
@@ -0,0 +1,50 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message dailydotdev.api.posts.CreatePostRequest
5
+ */
6
+ declare class CreatePostRequest extends Message<CreatePostRequest> {
7
+ /**
8
+ * @generated from field: string url = 1;
9
+ */
10
+ url: string;
11
+ /**
12
+ * @generated from field: string source_id = 2;
13
+ */
14
+ sourceId: string;
15
+ /**
16
+ * @generated from field: optional string yggdrasil_id = 3;
17
+ */
18
+ yggdrasilId?: string;
19
+ constructor(data?: PartialMessage<CreatePostRequest>);
20
+ static readonly runtime: typeof proto3;
21
+ static readonly typeName = "dailydotdev.api.posts.CreatePostRequest";
22
+ static readonly fields: FieldList;
23
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePostRequest;
24
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePostRequest;
25
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePostRequest;
26
+ static equals(a: CreatePostRequest | PlainMessage<CreatePostRequest> | undefined, b: CreatePostRequest | PlainMessage<CreatePostRequest> | undefined): boolean;
27
+ }
28
+ /**
29
+ * @generated from message dailydotdev.api.posts.CreatePostResponse
30
+ */
31
+ declare class CreatePostResponse extends Message<CreatePostResponse> {
32
+ /**
33
+ * @generated from field: string post_id = 1;
34
+ */
35
+ postId: string;
36
+ /**
37
+ * @generated from field: string url = 2;
38
+ */
39
+ url: string;
40
+ constructor(data?: PartialMessage<CreatePostResponse>);
41
+ static readonly runtime: typeof proto3;
42
+ static readonly typeName = "dailydotdev.api.posts.CreatePostResponse";
43
+ static readonly fields: FieldList;
44
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePostResponse;
45
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePostResponse;
46
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePostResponse;
47
+ static equals(a: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined, b: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined): boolean;
48
+ }
49
+
50
+ export { CreatePostRequest, CreatePostResponse };
@@ -0,0 +1,98 @@
1
+ import { Message, proto3 } from "@bufbuild/protobuf";
2
+ class CreatePostRequest extends Message {
3
+ /**
4
+ * @generated from field: string url = 1;
5
+ */
6
+ url = "";
7
+ /**
8
+ * @generated from field: string source_id = 2;
9
+ */
10
+ sourceId = "";
11
+ /**
12
+ * @generated from field: optional string yggdrasil_id = 3;
13
+ */
14
+ yggdrasilId;
15
+ constructor(data) {
16
+ super();
17
+ proto3.util.initPartial(data, this);
18
+ }
19
+ static runtime = proto3;
20
+ static typeName = "dailydotdev.api.posts.CreatePostRequest";
21
+ static fields = proto3.util.newFieldList(() => [
22
+ {
23
+ no: 1,
24
+ name: "url",
25
+ kind: "scalar",
26
+ T: 9
27
+ /* ScalarType.STRING */
28
+ },
29
+ {
30
+ no: 2,
31
+ name: "source_id",
32
+ kind: "scalar",
33
+ T: 9
34
+ /* ScalarType.STRING */
35
+ },
36
+ { no: 3, name: "yggdrasil_id", kind: "scalar", T: 9, opt: true }
37
+ ]);
38
+ static fromBinary(bytes, options) {
39
+ return new CreatePostRequest().fromBinary(bytes, options);
40
+ }
41
+ static fromJson(jsonValue, options) {
42
+ return new CreatePostRequest().fromJson(jsonValue, options);
43
+ }
44
+ static fromJsonString(jsonString, options) {
45
+ return new CreatePostRequest().fromJsonString(jsonString, options);
46
+ }
47
+ static equals(a, b) {
48
+ return proto3.util.equals(CreatePostRequest, a, b);
49
+ }
50
+ }
51
+ class CreatePostResponse extends Message {
52
+ /**
53
+ * @generated from field: string post_id = 1;
54
+ */
55
+ postId = "";
56
+ /**
57
+ * @generated from field: string url = 2;
58
+ */
59
+ url = "";
60
+ constructor(data) {
61
+ super();
62
+ proto3.util.initPartial(data, this);
63
+ }
64
+ static runtime = proto3;
65
+ static typeName = "dailydotdev.api.posts.CreatePostResponse";
66
+ static fields = proto3.util.newFieldList(() => [
67
+ {
68
+ no: 1,
69
+ name: "post_id",
70
+ kind: "scalar",
71
+ T: 9
72
+ /* ScalarType.STRING */
73
+ },
74
+ {
75
+ no: 2,
76
+ name: "url",
77
+ kind: "scalar",
78
+ T: 9
79
+ /* ScalarType.STRING */
80
+ }
81
+ ]);
82
+ static fromBinary(bytes, options) {
83
+ return new CreatePostResponse().fromBinary(bytes, options);
84
+ }
85
+ static fromJson(jsonValue, options) {
86
+ return new CreatePostResponse().fromJson(jsonValue, options);
87
+ }
88
+ static fromJsonString(jsonString, options) {
89
+ return new CreatePostResponse().fromJsonString(jsonString, options);
90
+ }
91
+ static equals(a, b) {
92
+ return proto3.util.equals(CreatePostResponse, a, b);
93
+ }
94
+ }
95
+ export {
96
+ CreatePostRequest,
97
+ CreatePostResponse
98
+ };
@@ -0,0 +1,122 @@
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 personalised_pb_exports = {};
19
+ __export(personalised_pb_exports, {
20
+ Request: () => Request,
21
+ Response: () => Response
22
+ });
23
+ module.exports = __toCommonJS(personalised_pb_exports);
24
+ var import_protobuf = require("@bufbuild/protobuf");
25
+ class Request extends import_protobuf.Message {
26
+ /**
27
+ * @generated from field: string user_id = 1;
28
+ */
29
+ userId = "";
30
+ /**
31
+ * @generated from field: int32 count = 2;
32
+ */
33
+ count = 0;
34
+ /**
35
+ * @generated from field: int32 max_post_days = 3;
36
+ */
37
+ maxPostDays = 0;
38
+ constructor(data) {
39
+ super();
40
+ import_protobuf.proto3.util.initPartial(data, this);
41
+ }
42
+ static runtime = import_protobuf.proto3;
43
+ static typeName = "personalised.Request";
44
+ static fields = import_protobuf.proto3.util.newFieldList(() => [
45
+ {
46
+ no: 1,
47
+ name: "user_id",
48
+ kind: "scalar",
49
+ T: 9
50
+ /* ScalarType.STRING */
51
+ },
52
+ {
53
+ no: 2,
54
+ name: "count",
55
+ kind: "scalar",
56
+ T: 5
57
+ /* ScalarType.INT32 */
58
+ },
59
+ {
60
+ no: 3,
61
+ name: "max_post_days",
62
+ kind: "scalar",
63
+ T: 5
64
+ /* ScalarType.INT32 */
65
+ }
66
+ ]);
67
+ static fromBinary(bytes, options) {
68
+ return new Request().fromBinary(bytes, options);
69
+ }
70
+ static fromJson(jsonValue, options) {
71
+ return new Request().fromJson(jsonValue, options);
72
+ }
73
+ static fromJsonString(jsonString, options) {
74
+ return new Request().fromJsonString(jsonString, options);
75
+ }
76
+ static equals(a, b) {
77
+ return import_protobuf.proto3.util.equals(Request, a, b);
78
+ }
79
+ }
80
+ class Response extends import_protobuf.Message {
81
+ /**
82
+ * @generated from field: int32 rows = 1;
83
+ */
84
+ rows = 0;
85
+ /**
86
+ * @generated from field: repeated string data = 2;
87
+ */
88
+ data = [];
89
+ constructor(data) {
90
+ super();
91
+ import_protobuf.proto3.util.initPartial(data, this);
92
+ }
93
+ static runtime = import_protobuf.proto3;
94
+ static typeName = "personalised.Response";
95
+ static fields = import_protobuf.proto3.util.newFieldList(() => [
96
+ {
97
+ no: 1,
98
+ name: "rows",
99
+ kind: "scalar",
100
+ T: 5
101
+ /* ScalarType.INT32 */
102
+ },
103
+ { no: 2, name: "data", kind: "scalar", T: 9, repeated: true }
104
+ ]);
105
+ static fromBinary(bytes, options) {
106
+ return new Response().fromBinary(bytes, options);
107
+ }
108
+ static fromJson(jsonValue, options) {
109
+ return new Response().fromJson(jsonValue, options);
110
+ }
111
+ static fromJsonString(jsonString, options) {
112
+ return new Response().fromJsonString(jsonString, options);
113
+ }
114
+ static equals(a, b) {
115
+ return import_protobuf.proto3.util.equals(Response, a, b);
116
+ }
117
+ }
118
+ // Annotate the CommonJS export names for ESM import in node:
119
+ 0 && (module.exports = {
120
+ Request,
121
+ Response
122
+ });
@@ -0,0 +1,50 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message personalised.Request
5
+ */
6
+ declare class Request extends Message<Request> {
7
+ /**
8
+ * @generated from field: string user_id = 1;
9
+ */
10
+ userId: string;
11
+ /**
12
+ * @generated from field: int32 count = 2;
13
+ */
14
+ count: number;
15
+ /**
16
+ * @generated from field: int32 max_post_days = 3;
17
+ */
18
+ maxPostDays: number;
19
+ constructor(data?: PartialMessage<Request>);
20
+ static readonly runtime: typeof proto3;
21
+ static readonly typeName = "personalised.Request";
22
+ static readonly fields: FieldList;
23
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Request;
24
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Request;
25
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Request;
26
+ static equals(a: Request | PlainMessage<Request> | undefined, b: Request | PlainMessage<Request> | undefined): boolean;
27
+ }
28
+ /**
29
+ * @generated from message personalised.Response
30
+ */
31
+ declare class Response extends Message<Response> {
32
+ /**
33
+ * @generated from field: int32 rows = 1;
34
+ */
35
+ rows: number;
36
+ /**
37
+ * @generated from field: repeated string data = 2;
38
+ */
39
+ data: string[];
40
+ constructor(data?: PartialMessage<Response>);
41
+ static readonly runtime: typeof proto3;
42
+ static readonly typeName = "personalised.Response";
43
+ static readonly fields: FieldList;
44
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Response;
45
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Response;
46
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Response;
47
+ static equals(a: Response | PlainMessage<Response> | undefined, b: Response | PlainMessage<Response> | undefined): boolean;
48
+ }
49
+
50
+ export { Request, Response };
@@ -0,0 +1,50 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message personalised.Request
5
+ */
6
+ declare class Request extends Message<Request> {
7
+ /**
8
+ * @generated from field: string user_id = 1;
9
+ */
10
+ userId: string;
11
+ /**
12
+ * @generated from field: int32 count = 2;
13
+ */
14
+ count: number;
15
+ /**
16
+ * @generated from field: int32 max_post_days = 3;
17
+ */
18
+ maxPostDays: number;
19
+ constructor(data?: PartialMessage<Request>);
20
+ static readonly runtime: typeof proto3;
21
+ static readonly typeName = "personalised.Request";
22
+ static readonly fields: FieldList;
23
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Request;
24
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Request;
25
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Request;
26
+ static equals(a: Request | PlainMessage<Request> | undefined, b: Request | PlainMessage<Request> | undefined): boolean;
27
+ }
28
+ /**
29
+ * @generated from message personalised.Response
30
+ */
31
+ declare class Response extends Message<Response> {
32
+ /**
33
+ * @generated from field: int32 rows = 1;
34
+ */
35
+ rows: number;
36
+ /**
37
+ * @generated from field: repeated string data = 2;
38
+ */
39
+ data: string[];
40
+ constructor(data?: PartialMessage<Response>);
41
+ static readonly runtime: typeof proto3;
42
+ static readonly typeName = "personalised.Response";
43
+ static readonly fields: FieldList;
44
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Response;
45
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Response;
46
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Response;
47
+ static equals(a: Response | PlainMessage<Response> | undefined, b: Response | PlainMessage<Response> | undefined): boolean;
48
+ }
49
+
50
+ export { Request, Response };
@@ -0,0 +1,98 @@
1
+ import { Message, proto3 } from "@bufbuild/protobuf";
2
+ class Request extends Message {
3
+ /**
4
+ * @generated from field: string user_id = 1;
5
+ */
6
+ userId = "";
7
+ /**
8
+ * @generated from field: int32 count = 2;
9
+ */
10
+ count = 0;
11
+ /**
12
+ * @generated from field: int32 max_post_days = 3;
13
+ */
14
+ maxPostDays = 0;
15
+ constructor(data) {
16
+ super();
17
+ proto3.util.initPartial(data, this);
18
+ }
19
+ static runtime = proto3;
20
+ static typeName = "personalised.Request";
21
+ static fields = proto3.util.newFieldList(() => [
22
+ {
23
+ no: 1,
24
+ name: "user_id",
25
+ kind: "scalar",
26
+ T: 9
27
+ /* ScalarType.STRING */
28
+ },
29
+ {
30
+ no: 2,
31
+ name: "count",
32
+ kind: "scalar",
33
+ T: 5
34
+ /* ScalarType.INT32 */
35
+ },
36
+ {
37
+ no: 3,
38
+ name: "max_post_days",
39
+ kind: "scalar",
40
+ T: 5
41
+ /* ScalarType.INT32 */
42
+ }
43
+ ]);
44
+ static fromBinary(bytes, options) {
45
+ return new Request().fromBinary(bytes, options);
46
+ }
47
+ static fromJson(jsonValue, options) {
48
+ return new Request().fromJson(jsonValue, options);
49
+ }
50
+ static fromJsonString(jsonString, options) {
51
+ return new Request().fromJsonString(jsonString, options);
52
+ }
53
+ static equals(a, b) {
54
+ return proto3.util.equals(Request, a, b);
55
+ }
56
+ }
57
+ class Response extends Message {
58
+ /**
59
+ * @generated from field: int32 rows = 1;
60
+ */
61
+ rows = 0;
62
+ /**
63
+ * @generated from field: repeated string data = 2;
64
+ */
65
+ data = [];
66
+ constructor(data) {
67
+ super();
68
+ proto3.util.initPartial(data, this);
69
+ }
70
+ static runtime = proto3;
71
+ static typeName = "personalised.Response";
72
+ static fields = proto3.util.newFieldList(() => [
73
+ {
74
+ no: 1,
75
+ name: "rows",
76
+ kind: "scalar",
77
+ T: 5
78
+ /* ScalarType.INT32 */
79
+ },
80
+ { no: 2, name: "data", kind: "scalar", T: 9, repeated: true }
81
+ ]);
82
+ static fromBinary(bytes, options) {
83
+ return new Response().fromBinary(bytes, options);
84
+ }
85
+ static fromJson(jsonValue, options) {
86
+ return new Response().fromJson(jsonValue, options);
87
+ }
88
+ static fromJsonString(jsonString, options) {
89
+ return new Response().fromJsonString(jsonString, options);
90
+ }
91
+ static equals(a, b) {
92
+ return proto3.util.equals(Response, a, b);
93
+ }
94
+ }
95
+ export {
96
+ Request,
97
+ Response
98
+ };
package/dist/index.cjs ADDED
@@ -0,0 +1,39 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var generated_exports = {};
16
+ module.exports = __toCommonJS(generated_exports);
17
+ __reExport(generated_exports, require("./bragi/pipelines_connect"), module.exports);
18
+ __reExport(generated_exports, require("./bragi/pipelines_pb"), module.exports);
19
+ __reExport(generated_exports, require("./bragi/proxy_connect"), module.exports);
20
+ __reExport(generated_exports, require("./bragi/proxy_pb"), module.exports);
21
+ __reExport(generated_exports, require("./daily-api/posts_connect"), module.exports);
22
+ __reExport(generated_exports, require("./daily-api/posts_pb"), module.exports);
23
+ __reExport(generated_exports, require("./feed/personalised/personalised_pb"), module.exports);
24
+ __reExport(generated_exports, require("./snotra/engagement/engagement_pb"), module.exports);
25
+ __reExport(generated_exports, require("./snotra/personalisation/personalisation_pb"), module.exports);
26
+ __reExport(generated_exports, require("./util/error_pb"), module.exports);
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ ...require("./bragi/pipelines_connect"),
30
+ ...require("./bragi/pipelines_pb"),
31
+ ...require("./bragi/proxy_connect"),
32
+ ...require("./bragi/proxy_pb"),
33
+ ...require("./daily-api/posts_connect"),
34
+ ...require("./daily-api/posts_pb"),
35
+ ...require("./feed/personalised/personalised_pb"),
36
+ ...require("./snotra/engagement/engagement_pb"),
37
+ ...require("./snotra/personalisation/personalisation_pb"),
38
+ ...require("./util/error_pb")
39
+ });