@budibase/types 2.31.8 → 2.32.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/documents/app/automation/automation.d.ts +2 -1
- package/dist/documents/app/table/constants.d.ts +1 -0
- package/dist/documents/app/view.d.ts +1 -2
- package/dist/documents/global/config.d.ts +18 -1
- package/dist/documents/global/quotas.d.ts +2 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/auth.d.ts +1 -0
- package/dist/sdk/events/ai.d.ts +5 -0
- package/dist/sdk/events/event.d.ts +2 -0
- package/dist/sdk/events/index.d.ts +1 -0
- package/dist/sdk/featureFlag.d.ts +1 -0
- package/dist/sdk/licensing/feature.d.ts +3 -1
- package/dist/sdk/licensing/quota.d.ts +6 -2
- package/dist/sdk/search.d.ts +9 -0
- package/dist/sdk/view.d.ts +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -153,7 +153,8 @@ export declare enum AutomationStatus {
|
|
|
153
153
|
SUCCESS = "success",
|
|
154
154
|
ERROR = "error",
|
|
155
155
|
STOPPED = "stopped",
|
|
156
|
-
STOPPED_ERROR = "stopped_error"
|
|
156
|
+
STOPPED_ERROR = "stopped_error",
|
|
157
|
+
NO_CONDITION_MET = "No branch condition met"
|
|
157
158
|
}
|
|
158
159
|
export declare enum AutomationStoppedReason {
|
|
159
160
|
TRIGGER_FILTER_NOT_MET = "Automation did not run. Filter conditions in trigger were not met."
|
|
@@ -7,6 +7,7 @@ export declare enum RelationshipType {
|
|
|
7
7
|
export declare enum AutoReason {
|
|
8
8
|
FOREIGN_KEY = "foreign_key"
|
|
9
9
|
}
|
|
10
|
+
export type FieldSubType = AutoFieldSubType | JsonFieldSubType | BBReferenceFieldSubType;
|
|
10
11
|
export declare enum AutoFieldSubType {
|
|
11
12
|
CREATED_BY = "createdBy",
|
|
12
13
|
CREATED_AT = "createdAt",
|
|
@@ -33,8 +33,7 @@ export type ViewFieldMetadata = UIFieldMetadata & {
|
|
|
33
33
|
readonly?: boolean;
|
|
34
34
|
columns?: Record<string, RelationSchemaField>;
|
|
35
35
|
};
|
|
36
|
-
export type RelationSchemaField = {
|
|
37
|
-
visible?: boolean;
|
|
36
|
+
export type RelationSchemaField = UIFieldMetadata & {
|
|
38
37
|
readonly?: boolean;
|
|
39
38
|
};
|
|
40
39
|
export declare enum CalculationType {
|
|
@@ -96,11 +96,26 @@ export interface SCIMInnerConfig {
|
|
|
96
96
|
}
|
|
97
97
|
export interface SCIMConfig extends Config<SCIMInnerConfig> {
|
|
98
98
|
}
|
|
99
|
+
type AIProvider = "OpenAI" | "Anthropic" | "AzureOpenAI" | "Custom";
|
|
100
|
+
export interface AIInnerConfig {
|
|
101
|
+
[key: string]: {
|
|
102
|
+
provider: AIProvider;
|
|
103
|
+
isDefault: boolean;
|
|
104
|
+
name: string;
|
|
105
|
+
active: boolean;
|
|
106
|
+
baseUrl?: string;
|
|
107
|
+
apiKey?: string;
|
|
108
|
+
defaultModel?: string;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
export interface AIConfig extends Config<AIInnerConfig> {
|
|
112
|
+
}
|
|
99
113
|
export declare const isSettingsConfig: (config: Config) => config is SettingsConfig;
|
|
100
114
|
export declare const isSMTPConfig: (config: Config) => config is SMTPConfig;
|
|
101
115
|
export declare const isGoogleConfig: (config: Config) => config is GoogleConfig;
|
|
102
116
|
export declare const isOIDCConfig: (config: Config) => config is OIDCConfig;
|
|
103
117
|
export declare const isSCIMConfig: (config: Config) => config is SCIMConfig;
|
|
118
|
+
export declare const isAIConfig: (config: Config) => config is AIConfig;
|
|
104
119
|
export declare enum ConfigType {
|
|
105
120
|
SETTINGS = "settings",
|
|
106
121
|
ACCOUNT = "account",
|
|
@@ -108,5 +123,7 @@ export declare enum ConfigType {
|
|
|
108
123
|
GOOGLE = "google",
|
|
109
124
|
OIDC = "oidc",
|
|
110
125
|
OIDC_LOGOS = "logos_oidc",
|
|
111
|
-
SCIM = "scim"
|
|
126
|
+
SCIM = "scim",
|
|
127
|
+
AI = "ai"
|
|
112
128
|
}
|
|
129
|
+
export {};
|
|
@@ -22,6 +22,7 @@ export interface StaticUsage {
|
|
|
22
22
|
[StaticQuotaName.CREATORS]: number;
|
|
23
23
|
[StaticQuotaName.USER_GROUPS]: number;
|
|
24
24
|
[StaticQuotaName.ROWS]: number;
|
|
25
|
+
[StaticQuotaName.AI_CUSTOM_CONFIGS]: number;
|
|
25
26
|
triggers: {
|
|
26
27
|
[key in StaticQuotaName]?: QuotaTriggers;
|
|
27
28
|
};
|
|
@@ -30,6 +31,7 @@ export interface MonthlyUsage {
|
|
|
30
31
|
[MonthlyQuotaName.QUERIES]: number;
|
|
31
32
|
[MonthlyQuotaName.AUTOMATIONS]: number;
|
|
32
33
|
[MonthlyQuotaName.DAY_PASSES]: number;
|
|
34
|
+
[MonthlyQuotaName.BUDIBASE_AI_CREDITS]: number;
|
|
33
35
|
triggers: {
|
|
34
36
|
[key in MonthlyQuotaName]?: QuotaTriggers;
|
|
35
37
|
};
|
package/dist/index.js
CHANGED
|
@@ -130,6 +130,7 @@ __export(src_exports, {
|
|
|
130
130
|
ViewCalculation: () => ViewCalculation,
|
|
131
131
|
VirtualDocumentType: () => VirtualDocumentType,
|
|
132
132
|
WebhookActionType: () => WebhookActionType,
|
|
133
|
+
isAIConfig: () => isAIConfig,
|
|
133
134
|
isAppBackupMetadata: () => isAppBackupMetadata,
|
|
134
135
|
isCloudAccount: () => isCloudAccount,
|
|
135
136
|
isConstantQuota: () => isConstantQuota,
|
|
@@ -183,6 +184,8 @@ var Event = /* @__PURE__ */ ((Event2) => {
|
|
|
183
184
|
Event2["USER_DATA_COLLABORATION"] = "user:data:collaboration";
|
|
184
185
|
Event2["EMAIL_SMTP_CREATED"] = "email:smtp:created";
|
|
185
186
|
Event2["EMAIL_SMTP_UPDATED"] = "email:smtp:updated";
|
|
187
|
+
Event2["AI_CONFIG_CREATED"] = "ai:config:created";
|
|
188
|
+
Event2["AI_CONFIG_UPDATED"] = "ai:config:updated";
|
|
186
189
|
Event2["AUTH_SSO_CREATED"] = "auth:sso:created";
|
|
187
190
|
Event2["AUTH_SSO_UPDATED"] = "auth:sso:updated";
|
|
188
191
|
Event2["AUTH_SSO_ACTIVATED"] = "auth:sso:activated";
|
|
@@ -336,6 +339,9 @@ var AuditedEventFriendlyName = {
|
|
|
336
339
|
// EMAIL
|
|
337
340
|
["email:smtp:created" /* EMAIL_SMTP_CREATED */]: `Email configuration created`,
|
|
338
341
|
["email:smtp:updated" /* EMAIL_SMTP_UPDATED */]: `Email configuration updated`,
|
|
342
|
+
// AI
|
|
343
|
+
["ai:config:created" /* AI_CONFIG_CREATED */]: `AI configuration created`,
|
|
344
|
+
["ai:config:updated" /* AI_CONFIG_UPDATED */]: `AI configuration updated`,
|
|
339
345
|
// AUTH
|
|
340
346
|
["auth:sso:created" /* AUTH_SSO_CREATED */]: `SSO configuration created`,
|
|
341
347
|
["auth:sso:updated" /* AUTH_SSO_UPDATED */]: `SSO configuration updated`,
|
|
@@ -518,12 +524,14 @@ var StaticQuotaName = /* @__PURE__ */ ((StaticQuotaName2) => {
|
|
|
518
524
|
StaticQuotaName2["CREATORS"] = "creators";
|
|
519
525
|
StaticQuotaName2["USER_GROUPS"] = "userGroups";
|
|
520
526
|
StaticQuotaName2["PLUGINS"] = "plugins";
|
|
527
|
+
StaticQuotaName2["AI_CUSTOM_CONFIGS"] = "aiCustomConfigs";
|
|
521
528
|
return StaticQuotaName2;
|
|
522
529
|
})(StaticQuotaName || {});
|
|
523
530
|
var MonthlyQuotaName = /* @__PURE__ */ ((MonthlyQuotaName2) => {
|
|
524
531
|
MonthlyQuotaName2["QUERIES"] = "queries";
|
|
525
532
|
MonthlyQuotaName2["AUTOMATIONS"] = "automations";
|
|
526
533
|
MonthlyQuotaName2["DAY_PASSES"] = "dayPasses";
|
|
534
|
+
MonthlyQuotaName2["BUDIBASE_AI_CREDITS"] = "budibaseAICredits";
|
|
527
535
|
return MonthlyQuotaName2;
|
|
528
536
|
})(MonthlyQuotaName || {});
|
|
529
537
|
var ConstantQuotaName = /* @__PURE__ */ ((ConstantQuotaName2) => {
|
|
@@ -557,6 +565,8 @@ var Feature = /* @__PURE__ */ ((Feature3) => {
|
|
|
557
565
|
Feature3["EXPANDED_PUBLIC_API"] = "expandedPublicApi";
|
|
558
566
|
Feature3["VIEW_PERMISSIONS"] = "viewPermissions";
|
|
559
567
|
Feature3["VIEW_READONLY_COLUMNS"] = "viewReadonlyColumns";
|
|
568
|
+
Feature3["BUDIBASE_AI"] = "budibaseAI";
|
|
569
|
+
Feature3["AI_CUSTOM_CONFIGS"] = "aiCustomConfigs";
|
|
560
570
|
return Feature3;
|
|
561
571
|
})(Feature || {});
|
|
562
572
|
|
|
@@ -772,6 +782,7 @@ var TenantResolutionStrategy = /* @__PURE__ */ ((TenantResolutionStrategy2) => {
|
|
|
772
782
|
var FeatureFlag = /* @__PURE__ */ ((FeatureFlag2) => {
|
|
773
783
|
FeatureFlag2["PER_CREATOR_PER_USER_PRICE"] = "PER_CREATOR_PER_USER_PRICE";
|
|
774
784
|
FeatureFlag2["PER_CREATOR_PER_USER_PRICE_ALERT"] = "PER_CREATOR_PER_USER_PRICE_ALERT";
|
|
785
|
+
FeatureFlag2["AI_CUSTOM_CONFIGS"] = "AI_CUSTOM_CONFIGS";
|
|
775
786
|
FeatureFlag2["ENRICHED_RELATIONSHIPS"] = "ENRICHED_RELATIONSHIPS";
|
|
776
787
|
return FeatureFlag2;
|
|
777
788
|
})(FeatureFlag || {});
|
|
@@ -961,6 +972,7 @@ var AutomationStatus = /* @__PURE__ */ ((AutomationStatus2) => {
|
|
|
961
972
|
AutomationStatus2["ERROR"] = "error";
|
|
962
973
|
AutomationStatus2["STOPPED"] = "stopped";
|
|
963
974
|
AutomationStatus2["STOPPED_ERROR"] = "stopped_error";
|
|
975
|
+
AutomationStatus2["NO_CONDITION_MET"] = "No branch condition met";
|
|
964
976
|
return AutomationStatus2;
|
|
965
977
|
})(AutomationStatus || {});
|
|
966
978
|
var AutomationStoppedReason = /* @__PURE__ */ ((AutomationStoppedReason2) => {
|
|
@@ -1225,6 +1237,7 @@ var isSMTPConfig = (config) => config.type === "smtp" /* SMTP */;
|
|
|
1225
1237
|
var isGoogleConfig = (config) => config.type === "google" /* GOOGLE */;
|
|
1226
1238
|
var isOIDCConfig = (config) => config.type === "oidc" /* OIDC */;
|
|
1227
1239
|
var isSCIMConfig = (config) => config.type === "scim" /* SCIM */;
|
|
1240
|
+
var isAIConfig = (config) => config.type === "ai" /* AI */;
|
|
1228
1241
|
var ConfigType = /* @__PURE__ */ ((ConfigType2) => {
|
|
1229
1242
|
ConfigType2["SETTINGS"] = "settings";
|
|
1230
1243
|
ConfigType2["ACCOUNT"] = "account";
|
|
@@ -1233,6 +1246,7 @@ var ConfigType = /* @__PURE__ */ ((ConfigType2) => {
|
|
|
1233
1246
|
ConfigType2["OIDC"] = "oidc";
|
|
1234
1247
|
ConfigType2["OIDC_LOGOS"] = "logos_oidc";
|
|
1235
1248
|
ConfigType2["SCIM"] = "scim";
|
|
1249
|
+
ConfigType2["AI"] = "ai";
|
|
1236
1250
|
return ConfigType2;
|
|
1237
1251
|
})(ConfigType || {});
|
|
1238
1252
|
|
|
@@ -1459,6 +1473,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1459
1473
|
ViewCalculation,
|
|
1460
1474
|
VirtualDocumentType,
|
|
1461
1475
|
WebhookActionType,
|
|
1476
|
+
isAIConfig,
|
|
1462
1477
|
isAppBackupMetadata,
|
|
1463
1478
|
isCloudAccount,
|
|
1464
1479
|
isConstantQuota,
|