@budibase/types 3.13.26 → 3.13.28
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/web/app/application.d.ts +1 -0
- package/dist/api/web/app/index.d.ts +1 -0
- package/dist/api/web/app/recaptcha.d.ts +12 -0
- package/dist/api/web/global/license.d.ts +4 -0
- package/dist/documents/app/app.d.ts +1 -0
- package/dist/documents/global/config.d.ts +9 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +3 -3
- package/dist/sdk/db.d.ts +1 -1
- package/dist/sdk/licensing/feature.d.ts +2 -1
- package/dist/ui/BudibaseApp.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface VerifyRecaptchaRequest {
|
|
2
|
+
token: string;
|
|
3
|
+
}
|
|
4
|
+
export interface VerifyRecaptchaResponse {
|
|
5
|
+
verified: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface CheckRecaptchaResponse {
|
|
8
|
+
verified: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type RecaptchaSessionCookie = {
|
|
11
|
+
sessionId: string;
|
|
12
|
+
};
|
|
@@ -113,6 +113,12 @@ export interface AIInnerConfig {
|
|
|
113
113
|
}
|
|
114
114
|
export interface AIConfig extends Config<AIInnerConfig> {
|
|
115
115
|
}
|
|
116
|
+
export interface RecaptchaInnerConfig {
|
|
117
|
+
siteKey: string;
|
|
118
|
+
secretKey: string;
|
|
119
|
+
}
|
|
120
|
+
export interface RecaptchaConfig extends Config<RecaptchaInnerConfig> {
|
|
121
|
+
}
|
|
116
122
|
export declare const isConfig: (config: Object) => config is Config;
|
|
117
123
|
export declare const isSettingsConfig: (config: Config) => config is SettingsConfig;
|
|
118
124
|
export declare const isSMTPConfig: (config: Config) => config is SMTPConfig;
|
|
@@ -120,6 +126,7 @@ export declare const isGoogleConfig: (config: Config) => config is GoogleConfig;
|
|
|
120
126
|
export declare const isOIDCConfig: (config: Config) => config is OIDCConfig;
|
|
121
127
|
export declare const isSCIMConfig: (config: Config) => config is SCIMConfig;
|
|
122
128
|
export declare const isAIConfig: (config: Config) => config is AIConfig;
|
|
129
|
+
export declare const isRecaptchaConfig: (config: Config) => config is RecaptchaConfig;
|
|
123
130
|
export declare enum ConfigType {
|
|
124
131
|
SETTINGS = "settings",
|
|
125
132
|
ACCOUNT = "account",
|
|
@@ -128,6 +135,7 @@ export declare enum ConfigType {
|
|
|
128
135
|
OIDC = "oidc",
|
|
129
136
|
OIDC_LOGOS = "logos_oidc",
|
|
130
137
|
SCIM = "scim",
|
|
131
|
-
AI = "ai"
|
|
138
|
+
AI = "ai",
|
|
139
|
+
RECAPTCHA = "recaptcha"
|
|
132
140
|
}
|
|
133
141
|
export type ConfigTypeToConfig<T extends ConfigType> = T extends ConfigType.SETTINGS ? SettingsConfig : T extends ConfigType.SMTP ? SMTPConfig : T extends ConfigType.GOOGLE ? GoogleConfig : T extends ConfigType.OIDC ? OIDCConfig : T extends ConfigType.OIDC_LOGOS ? OIDCLogosConfig : T extends ConfigType.SCIM ? SCIMConfig : T extends ConfigType.AI ? AIConfig : never;
|