@reverbia/sdk 1.0.0-next.20251117144849 → 1.0.0-next.20251119123747

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.
@@ -1,235 +0,0 @@
1
- type ClientOptions = {
2
- baseUrl: `${string}://${string}` | (string & {});
3
- };
4
- type HandlersHealthResponse = {
5
- /**
6
- * Status indicates the service health status
7
- */
8
- status?: string;
9
- /**
10
- * Timestamp is the Unix timestamp of the response
11
- */
12
- timestamp?: number;
13
- /**
14
- * Version is the current API version
15
- */
16
- version?: string;
17
- };
18
- type LlmapiChatCompletionRequest = {
19
- /**
20
- * Messages is the conversation history
21
- */
22
- messages?: Array<LlmapiMessage>;
23
- /**
24
- * Model is the model identifier
25
- */
26
- model?: string;
27
- /**
28
- * Stream indicates if response should be streamed
29
- */
30
- stream?: boolean;
31
- };
32
- type LlmapiChatCompletionResponse = {
33
- /**
34
- * Choices contains the completion choices
35
- */
36
- choices?: Array<LlmapiChoice>;
37
- /**
38
- * ID is the completion ID
39
- */
40
- id?: string;
41
- /**
42
- * Model is the model used
43
- */
44
- model?: string;
45
- };
46
- type LlmapiChoice = {
47
- /**
48
- * FinishReason indicates why the completion stopped
49
- */
50
- finish_reason?: string;
51
- /**
52
- * Index is the choice index
53
- */
54
- index?: number;
55
- message?: LlmapiMessage;
56
- };
57
- type LlmapiEmbeddingData = {
58
- /**
59
- * Embedding vector
60
- */
61
- embedding?: Array<number>;
62
- /**
63
- * Index of the embedding
64
- */
65
- index?: number;
66
- /**
67
- * Object type identifier
68
- */
69
- object?: string;
70
- };
71
- /**
72
- * ExtraFields contains additional metadata
73
- */
74
- type LlmapiEmbeddingExtraFields = {
75
- /**
76
- * ChunkIndex is the chunk index (0 for single requests)
77
- */
78
- chunk_index?: number;
79
- /**
80
- * Latency is the request latency in milliseconds
81
- */
82
- latency?: number;
83
- /**
84
- * ModelRequested is the model that was requested
85
- */
86
- model_requested?: string;
87
- /**
88
- * Provider is the LLM provider used (e.g., "openai", "anthropic")
89
- */
90
- provider?: string;
91
- /**
92
- * RequestType is always "embedding"
93
- */
94
- request_type?: string;
95
- };
96
- type LlmapiEmbeddingRequest = {
97
- /**
98
- * Dimensions is the number of dimensions the resulting output embeddings should have (optional)
99
- */
100
- dimensions?: number;
101
- /**
102
- * EncodingFormat is the format to return the embeddings in (optional: "float" or "base64")
103
- */
104
- encoding_format?: string;
105
- /**
106
- * Input text or tokens to embed (can be string, []string, []int, or [][]int)
107
- */
108
- input?: unknown;
109
- /**
110
- * Model identifier in 'provider/model' format
111
- */
112
- model?: string;
113
- };
114
- type LlmapiEmbeddingResponse = {
115
- /**
116
- * Data contains the embeddings
117
- */
118
- data?: Array<LlmapiEmbeddingData>;
119
- extra_fields?: LlmapiEmbeddingExtraFields;
120
- /**
121
- * Model is the model used
122
- */
123
- model?: string;
124
- /**
125
- * Object is always "list"
126
- */
127
- object?: string;
128
- usage?: LlmapiEmbeddingUsage;
129
- };
130
- /**
131
- * Usage contains token usage information
132
- */
133
- type LlmapiEmbeddingUsage = {
134
- /**
135
- * PromptTokens is the number of tokens in the prompt
136
- */
137
- prompt_tokens?: number;
138
- /**
139
- * TotalTokens is the total number of tokens used
140
- */
141
- total_tokens?: number;
142
- };
143
- /**
144
- * Message is the generated message
145
- */
146
- type LlmapiMessage = {
147
- /**
148
- * Content is the message content
149
- */
150
- content?: string;
151
- role?: LlmapiRole;
152
- };
153
- /**
154
- * Role is the message role (system, user, assistant)
155
- */
156
- type LlmapiRole = string;
157
- type ResponseErrorResponse = {
158
- error?: string;
159
- };
160
- type PostApiV1ChatCompletionsData = {
161
- /**
162
- * Chat completion request
163
- */
164
- body: LlmapiChatCompletionRequest;
165
- path?: never;
166
- query?: never;
167
- url: '/api/v1/chat/completions';
168
- };
169
- type PostApiV1ChatCompletionsErrors = {
170
- /**
171
- * Bad Request
172
- */
173
- 400: ResponseErrorResponse;
174
- /**
175
- * Internal Server Error
176
- */
177
- 500: ResponseErrorResponse;
178
- };
179
- type PostApiV1ChatCompletionsError = PostApiV1ChatCompletionsErrors[keyof PostApiV1ChatCompletionsErrors];
180
- type PostApiV1ChatCompletionsResponses = {
181
- /**
182
- * OK
183
- */
184
- 200: LlmapiChatCompletionResponse;
185
- };
186
- type PostApiV1ChatCompletionsResponse = PostApiV1ChatCompletionsResponses[keyof PostApiV1ChatCompletionsResponses];
187
- type PostApiV1EmbeddingsData = {
188
- /**
189
- * Embedding request
190
- */
191
- body: LlmapiEmbeddingRequest;
192
- path?: never;
193
- query?: never;
194
- url: '/api/v1/embeddings';
195
- };
196
- type PostApiV1EmbeddingsErrors = {
197
- /**
198
- * Bad Request
199
- */
200
- 400: ResponseErrorResponse;
201
- /**
202
- * Internal Server Error
203
- */
204
- 500: ResponseErrorResponse;
205
- };
206
- type PostApiV1EmbeddingsError = PostApiV1EmbeddingsErrors[keyof PostApiV1EmbeddingsErrors];
207
- type PostApiV1EmbeddingsResponses = {
208
- /**
209
- * OK
210
- */
211
- 200: LlmapiEmbeddingResponse;
212
- };
213
- type PostApiV1EmbeddingsResponse = PostApiV1EmbeddingsResponses[keyof PostApiV1EmbeddingsResponses];
214
- type GetHealthData = {
215
- body?: never;
216
- path?: never;
217
- query?: never;
218
- url: '/health';
219
- };
220
- type GetHealthErrors = {
221
- /**
222
- * Internal Server Error
223
- */
224
- 500: ResponseErrorResponse;
225
- };
226
- type GetHealthError = GetHealthErrors[keyof GetHealthErrors];
227
- type GetHealthResponses = {
228
- /**
229
- * OK
230
- */
231
- 200: HandlersHealthResponse;
232
- };
233
- type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
234
-
235
- export type { ClientOptions as C, GetHealthData as G, HandlersHealthResponse as H, LlmapiChatCompletionRequest as L, PostApiV1ChatCompletionsData as P, ResponseErrorResponse as R, PostApiV1ChatCompletionsResponses as a, PostApiV1ChatCompletionsErrors as b, PostApiV1EmbeddingsData as c, PostApiV1EmbeddingsResponses as d, PostApiV1EmbeddingsErrors as e, GetHealthResponses as f, GetHealthErrors as g, LlmapiChatCompletionResponse as h, LlmapiChoice as i, LlmapiEmbeddingData as j, LlmapiEmbeddingExtraFields as k, LlmapiEmbeddingRequest as l, LlmapiEmbeddingResponse as m, LlmapiEmbeddingUsage as n, LlmapiMessage as o, LlmapiRole as p, PostApiV1ChatCompletionsError as q, PostApiV1ChatCompletionsResponse as r, PostApiV1EmbeddingsError as s, PostApiV1EmbeddingsResponse as t, GetHealthError as u, GetHealthResponse as v };