@budibase/types 3.6.0 → 3.7.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.
- package/dist/api/account/license.d.ts +1 -0
- package/dist/api/web/app/oauth2.d.ts +8 -2
- package/dist/api/web/global/configs.d.ts +4 -1
- package/dist/documents/app/app.d.ts +7 -0
- package/dist/documents/app/oauth2.d.ts +4 -0
- package/dist/documents/document.d.ts +2 -1
- package/dist/documents/global/config.d.ts +13 -10
- package/dist/index.js +12 -12
- package/dist/index.js.map +3 -3
- package/dist/sdk/licensing/feature.d.ts +1 -0
- package/dist/sdk/licensing/license.d.ts +1 -0
- package/dist/ui/BudibaseApp.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OAuth2CredentialsMethod } from "@budibase/types";
|
|
1
|
+
import { OAuth2CredentialsMethod, OAuth2GrantType } from "@budibase/types";
|
|
2
2
|
export interface OAuth2ConfigResponse {
|
|
3
3
|
_id: string;
|
|
4
4
|
_rev: string;
|
|
@@ -7,9 +7,12 @@ export interface OAuth2ConfigResponse {
|
|
|
7
7
|
clientId: string;
|
|
8
8
|
clientSecret: string;
|
|
9
9
|
method: OAuth2CredentialsMethod;
|
|
10
|
+
grantType: OAuth2GrantType;
|
|
10
11
|
}
|
|
11
12
|
export interface FetchOAuth2ConfigsResponse {
|
|
12
|
-
configs: OAuth2ConfigResponse
|
|
13
|
+
configs: (OAuth2ConfigResponse & {
|
|
14
|
+
lastUsage?: string;
|
|
15
|
+
})[];
|
|
13
16
|
}
|
|
14
17
|
export interface InsertOAuth2ConfigRequest {
|
|
15
18
|
name: string;
|
|
@@ -17,6 +20,7 @@ export interface InsertOAuth2ConfigRequest {
|
|
|
17
20
|
clientId: string;
|
|
18
21
|
clientSecret: string;
|
|
19
22
|
method: OAuth2CredentialsMethod;
|
|
23
|
+
grantType: OAuth2GrantType;
|
|
20
24
|
}
|
|
21
25
|
export interface InsertOAuth2ConfigResponse {
|
|
22
26
|
config: OAuth2ConfigResponse;
|
|
@@ -29,6 +33,7 @@ export interface UpdateOAuth2ConfigRequest {
|
|
|
29
33
|
clientId: string;
|
|
30
34
|
clientSecret: string;
|
|
31
35
|
method: OAuth2CredentialsMethod;
|
|
36
|
+
grantType: OAuth2GrantType;
|
|
32
37
|
}
|
|
33
38
|
export interface UpdateOAuth2ConfigResponse {
|
|
34
39
|
config: OAuth2ConfigResponse;
|
|
@@ -39,6 +44,7 @@ export interface ValidateConfigRequest {
|
|
|
39
44
|
clientId: string;
|
|
40
45
|
clientSecret: string;
|
|
41
46
|
method: OAuth2CredentialsMethod;
|
|
47
|
+
grantType: OAuth2GrantType;
|
|
42
48
|
}
|
|
43
49
|
export interface ValidateConfigResponse {
|
|
44
50
|
valid: boolean;
|
|
@@ -33,9 +33,12 @@ interface ChecklistItem {
|
|
|
33
33
|
label: string;
|
|
34
34
|
link: string;
|
|
35
35
|
}
|
|
36
|
+
interface SmtpChecklistItem extends ChecklistItem {
|
|
37
|
+
fallback?: boolean;
|
|
38
|
+
}
|
|
36
39
|
export interface ConfigChecklistResponse {
|
|
37
40
|
apps: ChecklistItem;
|
|
38
|
-
smtp:
|
|
41
|
+
smtp: SmtpChecklistItem;
|
|
39
42
|
adminUser: ChecklistItem;
|
|
40
43
|
sso: ChecklistItem;
|
|
41
44
|
branding: SettingsBrandingConfig;
|
|
@@ -29,6 +29,7 @@ export interface App extends Document {
|
|
|
29
29
|
snippets?: Snippet[];
|
|
30
30
|
creationVersion?: string;
|
|
31
31
|
updatedBy?: string;
|
|
32
|
+
scripts?: AppScript[];
|
|
32
33
|
}
|
|
33
34
|
export interface AppInstance {
|
|
34
35
|
_id: string;
|
|
@@ -73,3 +74,9 @@ export interface AppFeatures {
|
|
|
73
74
|
export interface AutomationSettings {
|
|
74
75
|
chainAutomations?: boolean;
|
|
75
76
|
}
|
|
77
|
+
export interface AppScript {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
location: "Head" | "Body";
|
|
81
|
+
html?: string;
|
|
82
|
+
}
|
|
@@ -3,10 +3,14 @@ export declare enum OAuth2CredentialsMethod {
|
|
|
3
3
|
HEADER = "HEADER",
|
|
4
4
|
BODY = "BODY"
|
|
5
5
|
}
|
|
6
|
+
export declare enum OAuth2GrantType {
|
|
7
|
+
CLIENT_CREDENTIALS = "client_credentials"
|
|
8
|
+
}
|
|
6
9
|
export interface OAuth2Config extends Document {
|
|
7
10
|
name: string;
|
|
8
11
|
url: string;
|
|
9
12
|
clientId: string;
|
|
10
13
|
clientSecret: string;
|
|
11
14
|
method: OAuth2CredentialsMethod;
|
|
15
|
+
grantType: OAuth2GrantType;
|
|
12
16
|
}
|
|
@@ -38,7 +38,8 @@ export declare enum DocumentType {
|
|
|
38
38
|
APP_MIGRATION_METADATA = "_design/migrations",
|
|
39
39
|
SCIM_LOG = "scimlog",
|
|
40
40
|
ROW_ACTIONS = "ra",
|
|
41
|
-
OAUTH2_CONFIG = "oauth2"
|
|
41
|
+
OAUTH2_CONFIG = "oauth2",
|
|
42
|
+
OAUTH2_CONFIG_LOG = "oauth2log"
|
|
42
43
|
}
|
|
43
44
|
export declare function getDocumentType(id: string): DocumentType | undefined;
|
|
44
45
|
export declare const DocumentTypesToImport: DocumentType[];
|
|
@@ -14,6 +14,7 @@ export interface SMTPInnerConfig {
|
|
|
14
14
|
pass: string;
|
|
15
15
|
};
|
|
16
16
|
connectionTimeout?: any;
|
|
17
|
+
fallback?: boolean;
|
|
17
18
|
}
|
|
18
19
|
export interface SMTPConfig extends Config<SMTPInnerConfig> {
|
|
19
20
|
}
|
|
@@ -97,17 +98,19 @@ export interface SCIMInnerConfig {
|
|
|
97
98
|
}
|
|
98
99
|
export interface SCIMConfig extends Config<SCIMInnerConfig> {
|
|
99
100
|
}
|
|
100
|
-
export type AIProvider = "OpenAI" | "Anthropic" | "TogetherAI" | "Custom";
|
|
101
|
+
export type AIProvider = "OpenAI" | "Anthropic" | "AzureOpenAI" | "TogetherAI" | "Custom";
|
|
102
|
+
export interface ProviderConfig {
|
|
103
|
+
provider: AIProvider;
|
|
104
|
+
isDefault: boolean;
|
|
105
|
+
isBudibaseAI?: boolean;
|
|
106
|
+
name: string;
|
|
107
|
+
active: boolean;
|
|
108
|
+
baseUrl?: string;
|
|
109
|
+
apiKey?: string;
|
|
110
|
+
defaultModel?: string;
|
|
111
|
+
}
|
|
101
112
|
export interface AIInnerConfig {
|
|
102
|
-
[key: string]:
|
|
103
|
-
provider: AIProvider;
|
|
104
|
-
isDefault: boolean;
|
|
105
|
-
name: string;
|
|
106
|
-
active: boolean;
|
|
107
|
-
baseUrl?: string;
|
|
108
|
-
apiKey?: string;
|
|
109
|
-
defaultModel?: string;
|
|
110
|
-
};
|
|
113
|
+
[key: string]: ProviderConfig;
|
|
111
114
|
}
|
|
112
115
|
export interface AIConfig extends Config<AIInnerConfig> {
|
|
113
116
|
}
|