@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.
@@ -38,6 +38,7 @@ export interface FetchAppPackageResponse {
38
38
  layouts: Layout[];
39
39
  clientLibPath: string;
40
40
  hasLock: boolean;
41
+ recaptchaKey?: string;
41
42
  }
42
43
  export interface AddAppSampleDataResponse {
43
44
  message: string;
@@ -24,3 +24,4 @@ export * from "./view";
24
24
  export * from "./webhook";
25
25
  export * from "./navigation";
26
26
  export * from "./resource";
27
+ export * from "./recaptcha";
@@ -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
+ };
@@ -25,3 +25,7 @@ export interface GetOfflineIdentifierResponse {
25
25
  }
26
26
  export interface GetQuotaUsageResponse extends QuotaUsage {
27
27
  }
28
+ export interface GetInstallInfo {
29
+ installId: string;
30
+ version: string;
31
+ }
@@ -33,6 +33,7 @@ export interface App extends Document {
33
33
  pwa?: PWAManifest;
34
34
  scripts?: AppScript[];
35
35
  resourcesPublishedAt?: Record<string, string>;
36
+ recaptchaEnabled?: boolean;
36
37
  }
37
38
  export interface AppInstance {
38
39
  _id: string;
@@ -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;