@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,88 @@
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 proxy_connect_exports = {};
19
+ __export(proxy_connect_exports, {
20
+ LLMProxy: () => LLMProxy
21
+ });
22
+ module.exports = __toCommonJS(proxy_connect_exports);
23
+ var import_proxy_pb = require("./proxy_pb.ts");
24
+ var import_protobuf = require("@bufbuild/protobuf");
25
+ const LLMProxy = {
26
+ typeName: "bragi.proxy.LLMProxy",
27
+ methods: {
28
+ /**
29
+ * Runs a completion operation
30
+ *
31
+ * @generated from rpc bragi.proxy.LLMProxy.Completion
32
+ */
33
+ completion: {
34
+ name: "Completion",
35
+ I: import_proxy_pb.CompletionRequest,
36
+ O: import_proxy_pb.ChatResponse,
37
+ kind: import_protobuf.MethodKind.Unary
38
+ },
39
+ /**
40
+ * Runs a completion operation and returns response as a stream
41
+ *
42
+ * @generated from rpc bragi.proxy.LLMProxy.CompletionStream
43
+ */
44
+ completionStream: {
45
+ name: "CompletionStream",
46
+ I: import_proxy_pb.CompletionRequest,
47
+ O: import_proxy_pb.ChatStreamResponse,
48
+ kind: import_protobuf.MethodKind.ServerStreaming
49
+ },
50
+ /**
51
+ * Runs a chat completion operation
52
+ *
53
+ * @generated from rpc bragi.proxy.LLMProxy.Chat
54
+ */
55
+ chat: {
56
+ name: "Chat",
57
+ I: import_proxy_pb.ChatRequest,
58
+ O: import_proxy_pb.ChatResponse,
59
+ kind: import_protobuf.MethodKind.Unary
60
+ },
61
+ /**
62
+ * Runs a chat completion operation and returns response as a stream
63
+ *
64
+ * @generated from rpc bragi.proxy.LLMProxy.ChatStream
65
+ */
66
+ chatStream: {
67
+ name: "ChatStream",
68
+ I: import_proxy_pb.ChatRequest,
69
+ O: import_proxy_pb.ChatStreamResponse,
70
+ kind: import_protobuf.MethodKind.ServerStreaming
71
+ },
72
+ /**
73
+ * Generates embedding for a given input
74
+ *
75
+ * @generated from rpc bragi.proxy.LLMProxy.Embedding
76
+ */
77
+ embedding: {
78
+ name: "Embedding",
79
+ I: import_proxy_pb.EmbeddingRequest,
80
+ O: import_proxy_pb.EmbeddingResponse,
81
+ kind: import_protobuf.MethodKind.Unary
82
+ }
83
+ }
84
+ };
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ LLMProxy
88
+ });
@@ -0,0 +1,68 @@
1
+ import { CompletionRequest, ChatResponse, ChatStreamResponse, ChatRequest, EmbeddingRequest, EmbeddingResponse } from './proxy_pb.cjs';
2
+ import '@bufbuild/protobuf';
3
+
4
+ /**
5
+ * @generated from service bragi.proxy.LLMProxy
6
+ */
7
+ declare const LLMProxy: {
8
+ readonly typeName: "bragi.proxy.LLMProxy";
9
+ readonly methods: {
10
+ /**
11
+ * Runs a completion operation
12
+ *
13
+ * @generated from rpc bragi.proxy.LLMProxy.Completion
14
+ */
15
+ readonly completion: {
16
+ readonly name: "Completion";
17
+ readonly I: typeof CompletionRequest;
18
+ readonly O: typeof ChatResponse;
19
+ readonly kind: any;
20
+ };
21
+ /**
22
+ * Runs a completion operation and returns response as a stream
23
+ *
24
+ * @generated from rpc bragi.proxy.LLMProxy.CompletionStream
25
+ */
26
+ readonly completionStream: {
27
+ readonly name: "CompletionStream";
28
+ readonly I: typeof CompletionRequest;
29
+ readonly O: typeof ChatStreamResponse;
30
+ readonly kind: any;
31
+ };
32
+ /**
33
+ * Runs a chat completion operation
34
+ *
35
+ * @generated from rpc bragi.proxy.LLMProxy.Chat
36
+ */
37
+ readonly chat: {
38
+ readonly name: "Chat";
39
+ readonly I: typeof ChatRequest;
40
+ readonly O: typeof ChatResponse;
41
+ readonly kind: any;
42
+ };
43
+ /**
44
+ * Runs a chat completion operation and returns response as a stream
45
+ *
46
+ * @generated from rpc bragi.proxy.LLMProxy.ChatStream
47
+ */
48
+ readonly chatStream: {
49
+ readonly name: "ChatStream";
50
+ readonly I: typeof ChatRequest;
51
+ readonly O: typeof ChatStreamResponse;
52
+ readonly kind: any;
53
+ };
54
+ /**
55
+ * Generates embedding for a given input
56
+ *
57
+ * @generated from rpc bragi.proxy.LLMProxy.Embedding
58
+ */
59
+ readonly embedding: {
60
+ readonly name: "Embedding";
61
+ readonly I: typeof EmbeddingRequest;
62
+ readonly O: typeof EmbeddingResponse;
63
+ readonly kind: any;
64
+ };
65
+ };
66
+ };
67
+
68
+ export { LLMProxy };
@@ -0,0 +1,68 @@
1
+ import { CompletionRequest, ChatResponse, ChatStreamResponse, ChatRequest, EmbeddingRequest, EmbeddingResponse } from './proxy_pb.js';
2
+ import '@bufbuild/protobuf';
3
+
4
+ /**
5
+ * @generated from service bragi.proxy.LLMProxy
6
+ */
7
+ declare const LLMProxy: {
8
+ readonly typeName: "bragi.proxy.LLMProxy";
9
+ readonly methods: {
10
+ /**
11
+ * Runs a completion operation
12
+ *
13
+ * @generated from rpc bragi.proxy.LLMProxy.Completion
14
+ */
15
+ readonly completion: {
16
+ readonly name: "Completion";
17
+ readonly I: typeof CompletionRequest;
18
+ readonly O: typeof ChatResponse;
19
+ readonly kind: any;
20
+ };
21
+ /**
22
+ * Runs a completion operation and returns response as a stream
23
+ *
24
+ * @generated from rpc bragi.proxy.LLMProxy.CompletionStream
25
+ */
26
+ readonly completionStream: {
27
+ readonly name: "CompletionStream";
28
+ readonly I: typeof CompletionRequest;
29
+ readonly O: typeof ChatStreamResponse;
30
+ readonly kind: any;
31
+ };
32
+ /**
33
+ * Runs a chat completion operation
34
+ *
35
+ * @generated from rpc bragi.proxy.LLMProxy.Chat
36
+ */
37
+ readonly chat: {
38
+ readonly name: "Chat";
39
+ readonly I: typeof ChatRequest;
40
+ readonly O: typeof ChatResponse;
41
+ readonly kind: any;
42
+ };
43
+ /**
44
+ * Runs a chat completion operation and returns response as a stream
45
+ *
46
+ * @generated from rpc bragi.proxy.LLMProxy.ChatStream
47
+ */
48
+ readonly chatStream: {
49
+ readonly name: "ChatStream";
50
+ readonly I: typeof ChatRequest;
51
+ readonly O: typeof ChatStreamResponse;
52
+ readonly kind: any;
53
+ };
54
+ /**
55
+ * Generates embedding for a given input
56
+ *
57
+ * @generated from rpc bragi.proxy.LLMProxy.Embedding
58
+ */
59
+ readonly embedding: {
60
+ readonly name: "Embedding";
61
+ readonly I: typeof EmbeddingRequest;
62
+ readonly O: typeof EmbeddingResponse;
63
+ readonly kind: any;
64
+ };
65
+ };
66
+ };
67
+
68
+ export { LLMProxy };
@@ -0,0 +1,65 @@
1
+ import { ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, EmbeddingRequest, EmbeddingResponse } from "./proxy_pb.ts";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ const LLMProxy = {
4
+ typeName: "bragi.proxy.LLMProxy",
5
+ methods: {
6
+ /**
7
+ * Runs a completion operation
8
+ *
9
+ * @generated from rpc bragi.proxy.LLMProxy.Completion
10
+ */
11
+ completion: {
12
+ name: "Completion",
13
+ I: CompletionRequest,
14
+ O: ChatResponse,
15
+ kind: MethodKind.Unary
16
+ },
17
+ /**
18
+ * Runs a completion operation and returns response as a stream
19
+ *
20
+ * @generated from rpc bragi.proxy.LLMProxy.CompletionStream
21
+ */
22
+ completionStream: {
23
+ name: "CompletionStream",
24
+ I: CompletionRequest,
25
+ O: ChatStreamResponse,
26
+ kind: MethodKind.ServerStreaming
27
+ },
28
+ /**
29
+ * Runs a chat completion operation
30
+ *
31
+ * @generated from rpc bragi.proxy.LLMProxy.Chat
32
+ */
33
+ chat: {
34
+ name: "Chat",
35
+ I: ChatRequest,
36
+ O: ChatResponse,
37
+ kind: MethodKind.Unary
38
+ },
39
+ /**
40
+ * Runs a chat completion operation and returns response as a stream
41
+ *
42
+ * @generated from rpc bragi.proxy.LLMProxy.ChatStream
43
+ */
44
+ chatStream: {
45
+ name: "ChatStream",
46
+ I: ChatRequest,
47
+ O: ChatStreamResponse,
48
+ kind: MethodKind.ServerStreaming
49
+ },
50
+ /**
51
+ * Generates embedding for a given input
52
+ *
53
+ * @generated from rpc bragi.proxy.LLMProxy.Embedding
54
+ */
55
+ embedding: {
56
+ name: "Embedding",
57
+ I: EmbeddingRequest,
58
+ O: EmbeddingResponse,
59
+ kind: MethodKind.Unary
60
+ }
61
+ }
62
+ };
63
+ export {
64
+ LLMProxy
65
+ };