@budibase/types 3.8.0 → 3.8.1

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,4 +1,14 @@
1
1
  import { EnrichedBinding } from "../../ui";
2
+ export interface Message {
3
+ role: "system" | "user";
4
+ content: string;
5
+ }
6
+ export interface ChatCompletionRequest {
7
+ messages: Message[];
8
+ }
9
+ export interface ChatCompletionResponse {
10
+ message?: string;
11
+ }
2
12
  export interface GenerateJsRequest {
3
13
  prompt: string;
4
14
  bindings?: EnrichedBinding[];
@@ -6,3 +16,9 @@ export interface GenerateJsRequest {
6
16
  export interface GenerateJsResponse {
7
17
  code: string;
8
18
  }
19
+ export interface GenerateCronRequest {
20
+ prompt: string;
21
+ }
22
+ export interface GenerateCronResponse {
23
+ message?: string;
24
+ }
@@ -98,7 +98,7 @@ export interface SCIMInnerConfig {
98
98
  }
99
99
  export interface SCIMConfig extends Config<SCIMInnerConfig> {
100
100
  }
101
- export type AIProvider = "OpenAI" | "Anthropic" | "AzureOpenAI" | "TogetherAI" | "Custom";
101
+ export type AIProvider = "OpenAI" | "Anthropic" | "AzureOpenAI" | "TogetherAI" | "Custom" | "BudibaseAI";
102
102
  export interface ProviderConfig {
103
103
  provider: AIProvider;
104
104
  isDefault: boolean;