@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,25 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message util.Error
5
+ */
6
+ declare class Error extends Message<Error> {
7
+ /**
8
+ * @generated from field: string code = 1;
9
+ */
10
+ code: string;
11
+ /**
12
+ * @generated from field: string message = 2;
13
+ */
14
+ message: string;
15
+ constructor(data?: PartialMessage<Error>);
16
+ static readonly runtime: typeof proto3;
17
+ static readonly typeName = "util.Error";
18
+ static readonly fields: FieldList;
19
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Error;
20
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Error;
21
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Error;
22
+ static equals(a: Error | PlainMessage<Error> | undefined, b: Error | PlainMessage<Error> | undefined): boolean;
23
+ }
24
+
25
+ export { Error };
@@ -0,0 +1,25 @@
1
+ import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
+ /**
4
+ * @generated from message util.Error
5
+ */
6
+ declare class Error extends Message<Error> {
7
+ /**
8
+ * @generated from field: string code = 1;
9
+ */
10
+ code: string;
11
+ /**
12
+ * @generated from field: string message = 2;
13
+ */
14
+ message: string;
15
+ constructor(data?: PartialMessage<Error>);
16
+ static readonly runtime: typeof proto3;
17
+ static readonly typeName = "util.Error";
18
+ static readonly fields: FieldList;
19
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Error;
20
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Error;
21
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Error;
22
+ static equals(a: Error | PlainMessage<Error> | undefined, b: Error | PlainMessage<Error> | undefined): boolean;
23
+ }
24
+
25
+ export { Error };
@@ -0,0 +1,48 @@
1
+ import { Message, proto3 } from "@bufbuild/protobuf";
2
+ class Error extends Message {
3
+ /**
4
+ * @generated from field: string code = 1;
5
+ */
6
+ code = "";
7
+ /**
8
+ * @generated from field: string message = 2;
9
+ */
10
+ message = "";
11
+ constructor(data) {
12
+ super();
13
+ proto3.util.initPartial(data, this);
14
+ }
15
+ static runtime = proto3;
16
+ static typeName = "util.Error";
17
+ static fields = proto3.util.newFieldList(() => [
18
+ {
19
+ no: 1,
20
+ name: "code",
21
+ kind: "scalar",
22
+ T: 9
23
+ /* ScalarType.STRING */
24
+ },
25
+ {
26
+ no: 2,
27
+ name: "message",
28
+ kind: "scalar",
29
+ T: 9
30
+ /* ScalarType.STRING */
31
+ }
32
+ ]);
33
+ static fromBinary(bytes, options) {
34
+ return new Error().fromBinary(bytes, options);
35
+ }
36
+ static fromJson(jsonValue, options) {
37
+ return new Error().fromJson(jsonValue, options);
38
+ }
39
+ static fromJsonString(jsonString, options) {
40
+ return new Error().fromJsonString(jsonString, options);
41
+ }
42
+ static equals(a, b) {
43
+ return proto3.util.equals(Error, a, b);
44
+ }
45
+ }
46
+ export {
47
+ Error
48
+ };
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@dailydotdev/schema",
3
+ "version": "0.1.0",
4
+ "author": "@dailydotdev",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "license": "AGPL-3.0",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "scripts": {
12
+ "build": "tsup",
13
+ "prebuild": "(cd generated && barrelsby --delete) && rm -rf dist",
14
+ "prepublishOnly": "npm run build"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.cjs"
21
+ }
22
+ },
23
+ "peerDependencies": {
24
+ "@bufbuild/protobuf": "1.x"
25
+ },
26
+ "devDependencies": {
27
+ "barrelsby": "^2.8.1",
28
+ "tsup": "^8.0.2",
29
+ "typescript": "^5.4.5"
30
+ },
31
+ "tsup": {
32
+ "dts": true,
33
+ "bundle": false,
34
+ "treeshake": false,
35
+ "target": "node20",
36
+ "format": [
37
+ "esm",
38
+ "cjs"
39
+ ],
40
+ "entry": [
41
+ "./generated/**/*.ts"
42
+ ]
43
+ }
44
+ }