latitude-mcp-server 1.0.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 (51) hide show
  1. package/.releaserc.json +34 -0
  2. package/README.md +687 -0
  3. package/dist/cli/index.d.ts +7 -0
  4. package/dist/cli/index.js +43 -0
  5. package/dist/cli/latitude.cli.d.ts +10 -0
  6. package/dist/cli/latitude.cli.js +286 -0
  7. package/dist/controllers/latitude.controller.d.ts +115 -0
  8. package/dist/controllers/latitude.controller.js +287 -0
  9. package/dist/index.d.ts +6 -0
  10. package/dist/index.js +166 -0
  11. package/dist/resources/latitude.resource.d.ts +12 -0
  12. package/dist/resources/latitude.resource.js +145 -0
  13. package/dist/services/vendor.latitude.service.d.ts +49 -0
  14. package/dist/services/vendor.latitude.service.js +294 -0
  15. package/dist/tools/latitude.tool.d.ts +6 -0
  16. package/dist/tools/latitude.tool.js +517 -0
  17. package/dist/types/common.types.d.ts +20 -0
  18. package/dist/types/common.types.js +7 -0
  19. package/dist/types/latitude.types.d.ts +487 -0
  20. package/dist/types/latitude.types.js +311 -0
  21. package/dist/utils/cli.test.util.d.ts +34 -0
  22. package/dist/utils/cli.test.util.js +143 -0
  23. package/dist/utils/config.util.d.ts +43 -0
  24. package/dist/utils/config.util.js +145 -0
  25. package/dist/utils/config.util.test.d.ts +1 -0
  26. package/dist/utils/constants.util.d.ts +26 -0
  27. package/dist/utils/constants.util.js +29 -0
  28. package/dist/utils/error-handler.util.d.ts +54 -0
  29. package/dist/utils/error-handler.util.js +202 -0
  30. package/dist/utils/error-handler.util.test.d.ts +1 -0
  31. package/dist/utils/error.util.d.ts +73 -0
  32. package/dist/utils/error.util.js +174 -0
  33. package/dist/utils/error.util.test.d.ts +1 -0
  34. package/dist/utils/formatter.util.d.ts +36 -0
  35. package/dist/utils/formatter.util.js +116 -0
  36. package/dist/utils/jest.setup.d.ts +5 -0
  37. package/dist/utils/jest.setup.js +36 -0
  38. package/dist/utils/jq.util.d.ts +34 -0
  39. package/dist/utils/jq.util.js +87 -0
  40. package/dist/utils/logger.util.d.ts +78 -0
  41. package/dist/utils/logger.util.js +344 -0
  42. package/dist/utils/toon.util.d.ts +15 -0
  43. package/dist/utils/toon.util.js +65 -0
  44. package/dist/utils/transport.util.d.ts +49 -0
  45. package/dist/utils/transport.util.js +162 -0
  46. package/eslint.config.mjs +46 -0
  47. package/openapi.json +12592 -0
  48. package/package.json +118 -0
  49. package/scripts/ensure-executable.js +38 -0
  50. package/scripts/package.json +3 -0
  51. package/scripts/update-version.js +204 -0
@@ -0,0 +1,487 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Latitude API Types and Zod Schemas
4
+ *
5
+ * Based on OpenAPI spec from openapi.json
6
+ * API Version: 1.0.2
7
+ * Base URL: https://gateway.latitude.so
8
+ */
9
+ export declare const ProjectSchema: z.ZodObject<{
10
+ id: z.ZodNumber;
11
+ name: z.ZodString;
12
+ workspaceId: z.ZodNumber;
13
+ createdAt: z.ZodString;
14
+ updatedAt: z.ZodString;
15
+ lastEditedAt: z.ZodOptional<z.ZodString>;
16
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$strip>;
18
+ export type Project = z.infer<typeof ProjectSchema>;
19
+ export declare const ProjectListSchema: z.ZodArray<z.ZodObject<{
20
+ id: z.ZodNumber;
21
+ name: z.ZodString;
22
+ workspaceId: z.ZodNumber;
23
+ createdAt: z.ZodString;
24
+ updatedAt: z.ZodString;
25
+ lastEditedAt: z.ZodOptional<z.ZodString>;
26
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>>;
28
+ export type ProjectList = z.infer<typeof ProjectListSchema>;
29
+ export declare const VersionSchema: z.ZodObject<{
30
+ id: z.ZodNumber;
31
+ uuid: z.ZodString;
32
+ title: z.ZodString;
33
+ description: z.ZodNullable<z.ZodString>;
34
+ projectId: z.ZodNumber;
35
+ version: z.ZodNullable<z.ZodNumber>;
36
+ userId: z.ZodString;
37
+ mergedAt: z.ZodNullable<z.ZodString>;
38
+ createdAt: z.ZodString;
39
+ updatedAt: z.ZodString;
40
+ deletedAt: z.ZodNullable<z.ZodString>;
41
+ status: z.ZodOptional<z.ZodString>;
42
+ message: z.ZodOptional<z.ZodString>;
43
+ authorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ authorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ parentCommitUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ }, z.core.$strip>;
48
+ export type Version = z.infer<typeof VersionSchema>;
49
+ export declare const VersionListSchema: z.ZodArray<z.ZodObject<{
50
+ id: z.ZodNumber;
51
+ uuid: z.ZodString;
52
+ title: z.ZodString;
53
+ description: z.ZodNullable<z.ZodString>;
54
+ projectId: z.ZodNumber;
55
+ version: z.ZodNullable<z.ZodNumber>;
56
+ userId: z.ZodString;
57
+ mergedAt: z.ZodNullable<z.ZodString>;
58
+ createdAt: z.ZodString;
59
+ updatedAt: z.ZodString;
60
+ deletedAt: z.ZodNullable<z.ZodString>;
61
+ status: z.ZodOptional<z.ZodString>;
62
+ message: z.ZodOptional<z.ZodString>;
63
+ authorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ authorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ parentCommitUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ }, z.core.$strip>>;
68
+ export type VersionList = z.infer<typeof VersionListSchema>;
69
+ export declare const ProviderEnum: z.ZodEnum<{
70
+ custom: "custom";
71
+ openai: "openai";
72
+ anthropic: "anthropic";
73
+ groq: "groq";
74
+ mistral: "mistral";
75
+ azure: "azure";
76
+ google: "google";
77
+ google_vertex: "google_vertex";
78
+ anthropic_vertex: "anthropic_vertex";
79
+ xai: "xai";
80
+ amazon_bedrock: "amazon_bedrock";
81
+ deepseek: "deepseek";
82
+ perplexity: "perplexity";
83
+ }>;
84
+ export type Provider = z.infer<typeof ProviderEnum>;
85
+ export declare const ParameterTypeSchema: z.ZodObject<{
86
+ type: z.ZodEnum<{
87
+ text: "text";
88
+ file: "file";
89
+ image: "image";
90
+ }>;
91
+ }, z.core.$strip>;
92
+ export declare const DocumentSchema: z.ZodObject<{
93
+ versionUuid: z.ZodString;
94
+ uuid: z.ZodString;
95
+ path: z.ZodString;
96
+ content: z.ZodString;
97
+ contentHash: z.ZodOptional<z.ZodString>;
98
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
99
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
100
+ type: z.ZodEnum<{
101
+ text: "text";
102
+ file: "file";
103
+ image: "image";
104
+ }>;
105
+ }, z.core.$strip>>>;
106
+ provider: z.ZodOptional<z.ZodEnum<{
107
+ custom: "custom";
108
+ openai: "openai";
109
+ anthropic: "anthropic";
110
+ groq: "groq";
111
+ mistral: "mistral";
112
+ azure: "azure";
113
+ google: "google";
114
+ google_vertex: "google_vertex";
115
+ anthropic_vertex: "anthropic_vertex";
116
+ xai: "xai";
117
+ amazon_bedrock: "amazon_bedrock";
118
+ deepseek: "deepseek";
119
+ perplexity: "perplexity";
120
+ }>>;
121
+ }, z.core.$strip>;
122
+ export type Document = z.infer<typeof DocumentSchema>;
123
+ export declare const DocumentListSchema: z.ZodArray<z.ZodObject<{
124
+ versionUuid: z.ZodString;
125
+ uuid: z.ZodString;
126
+ path: z.ZodString;
127
+ content: z.ZodString;
128
+ contentHash: z.ZodOptional<z.ZodString>;
129
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
130
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
131
+ type: z.ZodEnum<{
132
+ text: "text";
133
+ file: "file";
134
+ image: "image";
135
+ }>;
136
+ }, z.core.$strip>>>;
137
+ provider: z.ZodOptional<z.ZodEnum<{
138
+ custom: "custom";
139
+ openai: "openai";
140
+ anthropic: "anthropic";
141
+ groq: "groq";
142
+ mistral: "mistral";
143
+ azure: "azure";
144
+ google: "google";
145
+ google_vertex: "google_vertex";
146
+ anthropic_vertex: "anthropic_vertex";
147
+ xai: "xai";
148
+ amazon_bedrock: "amazon_bedrock";
149
+ deepseek: "deepseek";
150
+ perplexity: "perplexity";
151
+ }>>;
152
+ }, z.core.$strip>>;
153
+ export type DocumentList = z.infer<typeof DocumentListSchema>;
154
+ export declare const ChangeStatusEnum: z.ZodEnum<{
155
+ added: "added";
156
+ modified: "modified";
157
+ deleted: "deleted";
158
+ unchanged: "unchanged";
159
+ }>;
160
+ export declare const DocumentChangeSchema: z.ZodObject<{
161
+ path: z.ZodString;
162
+ content: z.ZodString;
163
+ status: z.ZodDefault<z.ZodEnum<{
164
+ added: "added";
165
+ modified: "modified";
166
+ deleted: "deleted";
167
+ unchanged: "unchanged";
168
+ }>>;
169
+ contentHash: z.ZodOptional<z.ZodString>;
170
+ }, z.core.$strip>;
171
+ export type DocumentChange = z.infer<typeof DocumentChangeSchema>;
172
+ export declare const PushChangesSchema: z.ZodObject<{
173
+ changes: z.ZodArray<z.ZodObject<{
174
+ path: z.ZodString;
175
+ content: z.ZodString;
176
+ status: z.ZodDefault<z.ZodEnum<{
177
+ added: "added";
178
+ modified: "modified";
179
+ deleted: "deleted";
180
+ unchanged: "unchanged";
181
+ }>>;
182
+ contentHash: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strip>>;
184
+ }, z.core.$strip>;
185
+ export type PushChanges = z.infer<typeof PushChangesSchema>;
186
+ export declare const RunSourceEnum: z.ZodEnum<{
187
+ api: "api";
188
+ agent_as_tool: "agent_as_tool";
189
+ copilot: "copilot";
190
+ email_trigger: "email_trigger";
191
+ evaluation: "evaluation";
192
+ experiment: "experiment";
193
+ integration_trigger: "integration_trigger";
194
+ playground: "playground";
195
+ scheduled_trigger: "scheduled_trigger";
196
+ shared_prompt: "shared_prompt";
197
+ user: "user";
198
+ }>;
199
+ export declare const RunRequestSchema: z.ZodObject<{
200
+ path: z.ZodString;
201
+ stream: z.ZodDefault<z.ZodBoolean>;
202
+ customIdentifier: z.ZodOptional<z.ZodString>;
203
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
204
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ userMessage: z.ZodOptional<z.ZodString>;
206
+ background: z.ZodOptional<z.ZodBoolean>;
207
+ __internal: z.ZodOptional<z.ZodObject<{
208
+ source: z.ZodOptional<z.ZodEnum<{
209
+ api: "api";
210
+ agent_as_tool: "agent_as_tool";
211
+ copilot: "copilot";
212
+ email_trigger: "email_trigger";
213
+ evaluation: "evaluation";
214
+ experiment: "experiment";
215
+ integration_trigger: "integration_trigger";
216
+ playground: "playground";
217
+ scheduled_trigger: "scheduled_trigger";
218
+ shared_prompt: "shared_prompt";
219
+ user: "user";
220
+ }>>;
221
+ }, z.core.$strip>>;
222
+ }, z.core.$strip>;
223
+ export type RunRequest = z.infer<typeof RunRequestSchema>;
224
+ export declare const MessageRoleEnum: z.ZodEnum<{
225
+ user: "user";
226
+ system: "system";
227
+ assistant: "assistant";
228
+ tool: "tool";
229
+ }>;
230
+ export declare const TextContentSchema: z.ZodObject<{
231
+ type: z.ZodLiteral<"text">;
232
+ text: z.ZodString;
233
+ }, z.core.$strip>;
234
+ export declare const ImageContentSchema: z.ZodObject<{
235
+ type: z.ZodLiteral<"image">;
236
+ image: z.ZodString;
237
+ mimeType: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$strip>;
239
+ export declare const FileContentSchema: z.ZodObject<{
240
+ type: z.ZodLiteral<"file">;
241
+ file: z.ZodString;
242
+ mimeType: z.ZodString;
243
+ }, z.core.$strip>;
244
+ export declare const ContentPartSchema: z.ZodUnion<readonly [z.ZodObject<{
245
+ type: z.ZodLiteral<"text">;
246
+ text: z.ZodString;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ type: z.ZodLiteral<"image">;
249
+ image: z.ZodString;
250
+ mimeType: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ type: z.ZodLiteral<"file">;
253
+ file: z.ZodString;
254
+ mimeType: z.ZodString;
255
+ }, z.core.$strip>]>;
256
+ export declare const MessageSchema: z.ZodObject<{
257
+ role: z.ZodEnum<{
258
+ user: "user";
259
+ system: "system";
260
+ assistant: "assistant";
261
+ tool: "tool";
262
+ }>;
263
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
264
+ type: z.ZodLiteral<"text">;
265
+ text: z.ZodString;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ type: z.ZodLiteral<"image">;
268
+ image: z.ZodString;
269
+ mimeType: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strip>, z.ZodObject<{
271
+ type: z.ZodLiteral<"file">;
272
+ file: z.ZodString;
273
+ mimeType: z.ZodString;
274
+ }, z.core.$strip>]>>]>;
275
+ name: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strip>;
277
+ export type Message = z.infer<typeof MessageSchema>;
278
+ export declare const ConversationSchema: z.ZodObject<{
279
+ uuid: z.ZodString;
280
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
281
+ role: z.ZodEnum<{
282
+ user: "user";
283
+ system: "system";
284
+ assistant: "assistant";
285
+ tool: "tool";
286
+ }>;
287
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
288
+ type: z.ZodLiteral<"text">;
289
+ text: z.ZodString;
290
+ }, z.core.$strip>, z.ZodObject<{
291
+ type: z.ZodLiteral<"image">;
292
+ image: z.ZodString;
293
+ mimeType: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$strip>, z.ZodObject<{
295
+ type: z.ZodLiteral<"file">;
296
+ file: z.ZodString;
297
+ mimeType: z.ZodString;
298
+ }, z.core.$strip>]>>]>;
299
+ name: z.ZodOptional<z.ZodString>;
300
+ }, z.core.$strip>>>;
301
+ createdAt: z.ZodOptional<z.ZodString>;
302
+ updatedAt: z.ZodOptional<z.ZodString>;
303
+ }, z.core.$strip>;
304
+ export type Conversation = z.infer<typeof ConversationSchema>;
305
+ export declare const ChatRequestSchema: z.ZodObject<{
306
+ messages: z.ZodArray<z.ZodObject<{
307
+ role: z.ZodEnum<{
308
+ user: "user";
309
+ system: "system";
310
+ assistant: "assistant";
311
+ tool: "tool";
312
+ }>;
313
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
314
+ type: z.ZodLiteral<"text">;
315
+ text: z.ZodString;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ type: z.ZodLiteral<"image">;
318
+ image: z.ZodString;
319
+ mimeType: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ type: z.ZodLiteral<"file">;
322
+ file: z.ZodString;
323
+ mimeType: z.ZodString;
324
+ }, z.core.$strip>]>>]>;
325
+ name: z.ZodOptional<z.ZodString>;
326
+ }, z.core.$strip>>;
327
+ stream: z.ZodDefault<z.ZodBoolean>;
328
+ }, z.core.$strip>;
329
+ export type ChatRequest = z.infer<typeof ChatRequestSchema>;
330
+ export declare const CreateLogRequestSchema: z.ZodObject<{
331
+ path: z.ZodString;
332
+ messages: z.ZodArray<z.ZodObject<{
333
+ role: z.ZodEnum<{
334
+ user: "user";
335
+ system: "system";
336
+ assistant: "assistant";
337
+ tool: "tool";
338
+ }>;
339
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
340
+ type: z.ZodLiteral<"text">;
341
+ text: z.ZodString;
342
+ }, z.core.$strip>, z.ZodObject<{
343
+ type: z.ZodLiteral<"image">;
344
+ image: z.ZodString;
345
+ mimeType: z.ZodOptional<z.ZodString>;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ type: z.ZodLiteral<"file">;
348
+ file: z.ZodString;
349
+ mimeType: z.ZodString;
350
+ }, z.core.$strip>]>>]>;
351
+ name: z.ZodOptional<z.ZodString>;
352
+ }, z.core.$strip>>;
353
+ }, z.core.$strip>;
354
+ export type CreateLogRequest = z.infer<typeof CreateLogRequestSchema>;
355
+ export declare const StreamEventTypeEnum: z.ZodEnum<{
356
+ "text-delta": "text-delta";
357
+ "step-complete": "step-complete";
358
+ "provider-event": "provider-event";
359
+ "tool-call-started": "tool-call-started";
360
+ "tool-call": "tool-call";
361
+ "chain-complete": "chain-complete";
362
+ "chain-error": "chain-error";
363
+ }>;
364
+ export declare const StreamEventSchema: z.ZodObject<{
365
+ event: z.ZodEnum<{
366
+ "text-delta": "text-delta";
367
+ "step-complete": "step-complete";
368
+ "provider-event": "provider-event";
369
+ "tool-call-started": "tool-call-started";
370
+ "tool-call": "tool-call";
371
+ "chain-complete": "chain-complete";
372
+ "chain-error": "chain-error";
373
+ }>;
374
+ data: z.ZodAny;
375
+ }, z.core.$strip>;
376
+ export type StreamEvent = z.infer<typeof StreamEventSchema>;
377
+ export declare const LatitudeErrorSchema: z.ZodObject<{
378
+ name: z.ZodString;
379
+ errorCode: z.ZodString;
380
+ message: z.ZodString;
381
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
382
+ }, z.core.$strip>;
383
+ export type LatitudeError = z.infer<typeof LatitudeErrorSchema>;
384
+ export declare const ListProjectsInputSchema: z.ZodObject<{}, z.core.$strip>;
385
+ export declare const CreateProjectInputSchema: z.ZodObject<{
386
+ name: z.ZodString;
387
+ }, z.core.$strip>;
388
+ export declare const ListVersionsInputSchema: z.ZodObject<{
389
+ projectId: z.ZodString;
390
+ }, z.core.$strip>;
391
+ export declare const GetVersionInputSchema: z.ZodObject<{
392
+ projectId: z.ZodString;
393
+ versionUuid: z.ZodString;
394
+ }, z.core.$strip>;
395
+ export declare const CreateVersionInputSchema: z.ZodObject<{
396
+ projectId: z.ZodString;
397
+ name: z.ZodString;
398
+ }, z.core.$strip>;
399
+ export declare const PublishVersionInputSchema: z.ZodObject<{
400
+ projectId: z.ZodString;
401
+ versionUuid: z.ZodString;
402
+ title: z.ZodOptional<z.ZodString>;
403
+ description: z.ZodOptional<z.ZodString>;
404
+ }, z.core.$strip>;
405
+ export declare const ListPromptsInputSchema: z.ZodObject<{
406
+ projectId: z.ZodString;
407
+ versionUuid: z.ZodDefault<z.ZodString>;
408
+ }, z.core.$strip>;
409
+ export declare const GetPromptInputSchema: z.ZodObject<{
410
+ projectId: z.ZodString;
411
+ versionUuid: z.ZodDefault<z.ZodString>;
412
+ path: z.ZodString;
413
+ }, z.core.$strip>;
414
+ export declare const PushPromptInputSchema: z.ZodObject<{
415
+ projectId: z.ZodString;
416
+ versionUuid: z.ZodString;
417
+ path: z.ZodString;
418
+ content: z.ZodString;
419
+ force: z.ZodDefault<z.ZodBoolean>;
420
+ }, z.core.$strip>;
421
+ export declare const PushPromptFromFileInputSchema: z.ZodObject<{
422
+ projectId: z.ZodString;
423
+ versionUuid: z.ZodString;
424
+ filePath: z.ZodString;
425
+ promptPath: z.ZodOptional<z.ZodString>;
426
+ force: z.ZodDefault<z.ZodBoolean>;
427
+ }, z.core.$strip>;
428
+ export declare const RunPromptInputSchema: z.ZodObject<{
429
+ projectId: z.ZodString;
430
+ versionUuid: z.ZodDefault<z.ZodString>;
431
+ path: z.ZodString;
432
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
433
+ stream: z.ZodDefault<z.ZodBoolean>;
434
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
435
+ userMessage: z.ZodOptional<z.ZodString>;
436
+ }, z.core.$strip>;
437
+ export declare const PushChangesInputSchema: z.ZodObject<{
438
+ projectId: z.ZodString;
439
+ versionUuid: z.ZodString;
440
+ changes: z.ZodArray<z.ZodObject<{
441
+ path: z.ZodString;
442
+ content: z.ZodString;
443
+ status: z.ZodDefault<z.ZodEnum<{
444
+ added: "added";
445
+ modified: "modified";
446
+ deleted: "deleted";
447
+ }>>;
448
+ }, z.core.$strip>>;
449
+ }, z.core.$strip>;
450
+ export declare const ChatInputSchema: z.ZodObject<{
451
+ conversationUuid: z.ZodString;
452
+ message: z.ZodString;
453
+ stream: z.ZodDefault<z.ZodBoolean>;
454
+ }, z.core.$strip>;
455
+ export declare const GetConversationInputSchema: z.ZodObject<{
456
+ conversationUuid: z.ZodString;
457
+ }, z.core.$strip>;
458
+ export declare const StopConversationInputSchema: z.ZodObject<{
459
+ conversationUuid: z.ZodString;
460
+ }, z.core.$strip>;
461
+ export declare const CreateLogInputSchema: z.ZodObject<{
462
+ projectId: z.ZodString;
463
+ versionUuid: z.ZodString;
464
+ path: z.ZodString;
465
+ messages: z.ZodArray<z.ZodObject<{
466
+ role: z.ZodEnum<{
467
+ user: "user";
468
+ system: "system";
469
+ assistant: "assistant";
470
+ }>;
471
+ content: z.ZodString;
472
+ }, z.core.$strip>>;
473
+ }, z.core.$strip>;
474
+ export interface ApiResponse<T> {
475
+ data: T;
476
+ status: number;
477
+ }
478
+ export interface LatitudeServiceOptions {
479
+ apiKey?: string;
480
+ baseUrl?: string;
481
+ }
482
+ export interface RequestOptions {
483
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
484
+ body?: unknown;
485
+ headers?: Record<string, string>;
486
+ stream?: boolean;
487
+ }