@dailydotdev/schema 0.1.0 → 0.2.2

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 (36) hide show
  1. package/dist/bragi/pipelines_connect.cjs +1 -133
  2. package/dist/bragi/pipelines_connect.js +1 -110
  3. package/dist/bragi/pipelines_pb.cjs +1 -842
  4. package/dist/bragi/pipelines_pb.js +1 -801
  5. package/dist/bragi/proxy_connect.cjs +1 -88
  6. package/dist/bragi/proxy_connect.js +1 -65
  7. package/dist/bragi/proxy_pb.cjs +1 -595
  8. package/dist/bragi/proxy_pb.js +1 -561
  9. package/dist/daily-api/posts_connect.cjs +1 -44
  10. package/dist/daily-api/posts_connect.js +1 -21
  11. package/dist/daily-api/posts_pb.cjs +1 -122
  12. package/dist/daily-api/posts_pb.d.cts +206 -1
  13. package/dist/daily-api/posts_pb.d.ts +206 -1
  14. package/dist/daily-api/posts_pb.js +1 -98
  15. package/dist/daily-api/pubsub/content-updated_pb.cjs +1 -0
  16. package/dist/daily-api/pubsub/content-updated_pb.d.cts +119 -0
  17. package/dist/daily-api/pubsub/content-updated_pb.d.ts +119 -0
  18. package/dist/daily-api/pubsub/content-updated_pb.js +1 -0
  19. package/dist/daily-api/sources_pb.cjs +1 -0
  20. package/dist/daily-api/sources_pb.d.cts +69 -0
  21. package/dist/daily-api/sources_pb.d.ts +69 -0
  22. package/dist/daily-api/sources_pb.js +1 -0
  23. package/dist/feed/personalised/personalised_pb.cjs +1 -122
  24. package/dist/feed/personalised/personalised_pb.js +1 -98
  25. package/dist/index.cjs +1 -39
  26. package/dist/index.d.cts +3 -1
  27. package/dist/index.d.ts +3 -1
  28. package/dist/index.js +1 -10
  29. package/dist/snotra/engagement/engagement_pb.cjs +1 -201
  30. package/dist/snotra/engagement/engagement_pb.js +1 -175
  31. package/dist/snotra/personalisation/personalisation_pb.cjs +1 -431
  32. package/dist/snotra/personalisation/personalisation_pb.js +1 -400
  33. package/dist/util/error_pb.cjs +1 -71
  34. package/dist/util/error_pb.js +1 -48
  35. package/package.json +2 -14
  36. package/tsup.config.js +31 -0
@@ -1,88 +1 @@
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
- });
1
+ var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,a={};((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(a,{LLMProxy:()=>d}),module.exports=(e=a,((e,a,i,m)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let d of o(a))r.call(e,d)||d===i||t(e,d,{get:()=>a[d],enumerable:!(m=n(a,d))||m.enumerable});return e})(t({},"__esModule",{value:!0}),e));var i=require("./proxy_pb.cjs"),m=require("@bufbuild/protobuf");const d={typeName:"bragi.proxy.LLMProxy",methods:{completion:{name:"Completion",I:i.CompletionRequest,O:i.ChatResponse,kind:m.MethodKind.Unary},completionStream:{name:"CompletionStream",I:i.CompletionRequest,O:i.ChatStreamResponse,kind:m.MethodKind.ServerStreaming},chat:{name:"Chat",I:i.ChatRequest,O:i.ChatResponse,kind:m.MethodKind.Unary},chatStream:{name:"ChatStream",I:i.ChatRequest,O:i.ChatStreamResponse,kind:m.MethodKind.ServerStreaming},embedding:{name:"Embedding",I:i.EmbeddingRequest,O:i.EmbeddingResponse,kind:m.MethodKind.Unary}}};
@@ -1,65 +1 @@
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
- };
1
+ import{ChatRequest as e,ChatResponse as m,ChatStreamResponse as r,CompletionRequest as n,EmbeddingRequest as t,EmbeddingResponse as a}from"./proxy_pb.ts";import{MethodKind as o}from"@bufbuild/protobuf";const i={typeName:"bragi.proxy.LLMProxy",methods:{completion:{name:"Completion",I:n,O:m,kind:o.Unary},completionStream:{name:"CompletionStream",I:n,O:r,kind:o.ServerStreaming},chat:{name:"Chat",I:e,O:m,kind:o.Unary},chatStream:{name:"ChatStream",I:e,O:r,kind:o.ServerStreaming},embedding:{name:"Embedding",I:t,O:a,kind:o.Unary}}};export{i as LLMProxy};