@budibase/types 3.35.3 → 3.35.10
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/LICENSE +371 -5
- package/dist/api/web/cookies.d.ts +1 -0
- package/dist/api/web/global/agents.d.ts +43 -5
- package/dist/core/index.d.ts +1 -0
- package/dist/core/knowledgeFiles.d.ts +8 -0
- package/dist/documents/document.d.ts +2 -0
- package/dist/documents/global/agentKnowledgeSourceConnection.d.ts +13 -0
- package/dist/documents/global/agentKnowledgeSourceSyncState.d.ts +18 -0
- package/dist/documents/global/agents.d.ts +16 -0
- package/dist/documents/global/config.d.ts +2 -0
- package/dist/documents/global/index.d.ts +2 -0
- package/dist/documents/global/knowledgeBase.d.ts +1 -0
- package/dist/documents/global/user.d.ts +1 -0
- package/dist/documents/workspace/query.d.ts +2 -0
- package/dist/documents/workspace/workspace.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/sdk/events/ai.d.ts +18 -0
- package/dist/sdk/events/event.d.ts +3 -0
- package/dist/sdk/featureFlag.d.ts +1 -0
- package/dist/ui/rest.d.ts +13 -68
- package/package.json +3 -3
package/dist/ui/rest.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RestAuthConfig } from "../documents/workspace/datasource";
|
|
1
2
|
export interface RestTemplateSpec {
|
|
2
3
|
version: string;
|
|
3
4
|
url?: string;
|
|
@@ -13,65 +14,29 @@ export interface OpenAPIServer {
|
|
|
13
14
|
variables?: Record<string, OpenAPIServerVariable>;
|
|
14
15
|
}
|
|
15
16
|
export type RestTemplateSpecVersion = RestTemplateSpec["version"];
|
|
16
|
-
export type RestTemplateId = "ansible-awx" | "attio" | "bamboohr" | "confluence" | "discord" | "figma" | "github" | "jira-cloud" | "okta-management" | "pagerduty" | "servicenow" | "slack-web-api" | "stripe" | "virustotal" | "ashby" | "banksapi" | "baremetrics" | "billsby" | "breezy-hr" | "brevo" | "bulksms" | "buttondown" | "clever" | "clickup" | "deel" | "dixa" | "dodo-payments" | "dots" | "factorial" | "fastspring" | "fountain" | "gitlab" | "goody" | "helcim" | "hibob" | "homerun" | "hypatos" | "intercom" | "ironclad" | "jina-ai" | "jobsoid" | "keatext-ai" | "kenjo" | "lambda" | "lob" | "localizely" | "logisticsos" | "mastercard" | "measureone" | "microsoft-teams" | "nanonets" | "notion" | "oyster-hr" | "peach-payments" | "pinpoint" | "podium" | "remote" | "resend" | "rivery" | "sage" | "secoda" | "shipengine" | "shippo" | "shortcut" | "smartrecruiters" | "softledger" | "spotdraft" | "sumsub" | "suprsend" | "terminal" | "theirstack" | "tilled" | "trello" | "tremendous" | "verifiable" | "volt-io" | "workable" | "openrouter" | "x" | HubSpotRestTemplateId | MicrosoftSharepointRestTemplateId | SplunkRestTemplateId | TwilioRestTemplateId | ZendeskRestTemplateId;
|
|
17
|
+
export type RestTemplateId = "ansible-awx" | "attio" | "bamboohr" | "confluence" | "discord" | "figma" | "github" | "jira-cloud" | "okta-management" | "pagerduty" | "servicenow" | "slack-web-api" | "stripe" | "virustotal" | "ashby" | "banksapi" | "baremetrics" | "billsby" | "breezy-hr" | "brevo" | "bulksms" | "buttondown" | "clever" | "clickup" | "deel" | "dixa" | "dodo-payments" | "dots" | "factorial" | "fastspring" | "fountain" | "gitlab" | "goody" | "helcim" | "hibob" | "homerun" | "hypatos" | "intercom" | "ironclad" | "jina-ai" | "jobsoid" | "keatext-ai" | "kenjo" | "lambda" | "lob" | "localizely" | "logisticsos" | "mastercard" | "measureone" | "microsoft-teams" | "nanonets" | "notion" | "oyster-hr" | "peach-payments" | "pinpoint" | "podium" | "remote" | "resend" | "rivery" | "sage" | "secoda" | "shipengine" | "shippo" | "shortcut" | "smartrecruiters" | "softledger" | "spotdraft" | "sumsub" | "suprsend" | "terminal" | "theirstack" | "tilled" | "trello" | "tremendous" | "verifiable" | "volt-io" | "workable" | "openrouter" | "x" | "hubspot" | HubSpotRestTemplateId | "microsoft-sharepoint" | MicrosoftSharepointRestTemplateId | "splunk" | SplunkRestTemplateId | "twilio" | TwilioRestTemplateId | "zendesk" | ZendeskRestTemplateId;
|
|
17
18
|
export type HubSpotRestTemplateId = "hubspot-account-info" | "hubspot-actions-v4" | "hubspot-app-uninstalls" | "hubspot-appointments" | "hubspot-associations" | "hubspot-associations-schema" | "hubspot-audit-logs" | "hubspot-authors" | "hubspot-automation-v4" | "hubspot-blog-settings" | "hubspot-bucket-test111" | "hubspot-business-units" | "hubspot-calling-extensions" | "hubspot-calls" | "hubspot-campaigns-public-api" | "hubspot-carts" | "hubspot-cms-content-audit" | "hubspot-commerce-payments" | "hubspot-commerce-subscriptions" | "hubspot-communications" | "hubspot-companies" | "hubspot-contacts" | "hubspot-contracts" | "hubspot-conversations" | "hubspot-conversations-inbox-messages" | "hubspot-courses" | "hubspot-crm-meetings" | "hubspot-crm-owners" | "hubspot-custom-channels" | "hubspot-custom-objects" | "hubspot-deal-splits" | "hubspot-deals" | "hubspot-discounts" | "hubspot-domains" | "hubspot-emails" | "hubspot-events" | "hubspot-exports" | "hubspot-feedback-submissions" | "hubspot-fees" | "hubspot-files" | "hubspot-forms" | "hubspot-goal-targets" | "hubspot-hubdb" | "hubspot-imports" | "hubspot-invoices" | "hubspot-leads" | "hubspot-limits-tracking" | "hubspot-line-items" | "hubspot-listings" | "hubspot-lists" | "hubspot-manage-event-definitions" | "hubspot-marketing-emails" | "hubspot-marketing-emails-v3" | "hubspot-marketing-events" | "hubspot-media-bridge" | "hubspot-multicurrency" | "hubspot-notes" | "hubspot-oauth" | "hubspot-object-library" | "hubspot-objects" | "hubspot-orders" | "hubspot-origins" | "hubspot-pages" | "hubspot-partner-clients" | "hubspot-partner-services" | "hubspot-payments" | "hubspot-pipelines" | "hubspot-postal-mail" | "hubspot-posts" | "hubspot-products" | "hubspot-projects" | "hubspot-properties" | "hubspot-property-validations" | "hubspot-public-app-crm-cards" | "hubspot-public-app-feature-flags-v3" | "hubspot-quotes" | "hubspot-scheduler-meetings" | "hubspot-schemas" | "hubspot-send-event-completions" | "hubspot-sequences" | "hubspot-services" | "hubspot-single-send" | "hubspot-site-search" | "hubspot-source-code" | "hubspot-subscription-lifecycle" | "hubspot-subscriptions" | "hubspot-tags" | "hubspot-tasks" | "hubspot-tax-rates" | "hubspot-taxes" | "hubspot-test-child-api" | "hubspot-tickets" | "hubspot-timeline" | "hubspot-transactional-single-send" | "hubspot-transcriptions" | "hubspot-url-redirects" | "hubspot-user-provisioning" | "hubspot-users" | "hubspot-video-conferencing-extension" | "hubspot-visitor-identification" | "hubspot-webhooks";
|
|
18
19
|
export type TwilioRestTemplateId = "twilio-accounts" | "twilio-assistants" | "twilio-bulk-exports" | "twilio-chat" | "twilio-content" | "twilio-conversations" | "twilio-events" | "twilio-flex" | "twilio-frontline" | "twilio-iam" | "twilio-iam-organizations" | "twilio-iam-scim" | "twilio-insights" | "twilio-intelligence" | "twilio-ip-messaging" | "twilio-knowledge" | "twilio-lookups" | "twilio-marketplace" | "twilio-messaging" | "twilio-monitor" | "twilio-notify" | "twilio-numbers" | "twilio-oauth" | "twilio-preview" | "twilio-pricing" | "twilio-proxy" | "twilio-routes" | "twilio-serverless" | "twilio-studio" | "twilio-super-sim" | "twilio-sync" | "twilio-taskrouter" | "twilio-trunking" | "twilio-trusthub" | "twilio-verify" | "twilio-video" | "twilio-voice" | "twilio-wireless";
|
|
19
20
|
export type SplunkRestTemplateId = "splunk-admin-config-service" | "splunk-enterprise-security" | "splunk-mission-control-automation";
|
|
20
21
|
export type ZendeskRestTemplateId = "zendesk-sunshine-conversations";
|
|
21
22
|
export type MicrosoftSharepointRestTemplateId = "microsoft-sharepoint-drives" | "microsoft-sharepoint-shares" | "microsoft-sharepoint-sites";
|
|
22
|
-
export type RestTemplateName =
|
|
23
|
-
export type
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Twilio: TwilioRestTemplateName;
|
|
29
|
-
Zendesk: ZendeskRestTemplateName;
|
|
30
|
-
};
|
|
31
|
-
export type RestTemplateGroupIds = {
|
|
32
|
-
HubSpot: HubSpotRestTemplateId;
|
|
33
|
-
"Microsoft SharePoint": MicrosoftSharepointRestTemplateId;
|
|
34
|
-
Splunk: SplunkRestTemplateId;
|
|
35
|
-
Twilio: TwilioRestTemplateId;
|
|
36
|
-
Zendesk: ZendeskRestTemplateId;
|
|
37
|
-
};
|
|
38
|
-
export type HubSpotRestTemplateName = "HubSpot Account Info" | "HubSpot Actions V4" | "HubSpot App Uninstalls" | "HubSpot Appointments" | "HubSpot Associations" | "HubSpot Associations Schema" | "HubSpot Audit Logs" | "HubSpot Authors" | "HubSpot Automation V4" | "HubSpot Blog Settings" | "HubSpot Bucket_Test111" | "HubSpot Business Units" | "HubSpot Calling Extensions" | "HubSpot Calls" | "HubSpot Campaigns Public Api" | "HubSpot Carts" | "HubSpot Cms Content Audit" | "HubSpot Commerce Payments" | "HubSpot Commerce Subscriptions" | "HubSpot Communications" | "HubSpot Companies" | "HubSpot Contacts" | "HubSpot Contracts" | "HubSpot Conversations" | "HubSpot Conversations Inbox & Messages" | "HubSpot Courses" | "HubSpot CRM Meetings" | "HubSpot Crm Owners" | "HubSpot Custom Channels" | "HubSpot Custom Objects" | "HubSpot Deal Splits" | "HubSpot Deals" | "HubSpot Discounts" | "HubSpot Domains" | "HubSpot Emails" | "HubSpot Events" | "HubSpot Exports" | "HubSpot Feedback Submissions" | "HubSpot Fees" | "HubSpot Files" | "HubSpot Forms" | "HubSpot Goal Targets" | "HubSpot Hubdb" | "HubSpot Imports" | "HubSpot Invoices" | "HubSpot Leads" | "HubSpot Limits Tracking" | "HubSpot Line Items" | "HubSpot Listings" | "HubSpot Lists" | "HubSpot Manage Event Definitions" | "HubSpot Marketing Emails" | "HubSpot Marketing Emails V3" | "HubSpot Marketing Events" | "HubSpot Media Bridge" | "HubSpot Multicurrency" | "HubSpot Notes" | "HubSpot Oauth" | "HubSpot Object Library" | "HubSpot Objects" | "HubSpot Orders" | "HubSpot Origins" | "HubSpot Pages" | "HubSpot Partner Clients" | "HubSpot Partner Services" | "HubSpot Payments" | "HubSpot Pipelines" | "HubSpot Postal Mail" | "HubSpot Posts" | "HubSpot Products" | "HubSpot Projects" | "HubSpot Properties" | "HubSpot Property Validations" | "HubSpot Public App Crm Cards" | "HubSpot Public App Feature Flags V3" | "HubSpot Quotes" | "HubSpot Scheduler Meetings" | "HubSpot Schemas" | "HubSpot Send Event Completions" | "HubSpot Sequences" | "HubSpot Services" | "HubSpot Single-send" | "HubSpot Site Search" | "HubSpot Source Code" | "HubSpot Subscription Lifecycle" | "HubSpot Subscriptions" | "HubSpot Tags" | "HubSpot Tasks" | "HubSpot Tax Rates" | "HubSpot Taxes" | "HubSpot Test Child Api" | "HubSpot Tickets" | "HubSpot Timeline" | "HubSpot Transactional Single Send" | "HubSpot Transcriptions" | "HubSpot Url Redirects" | "HubSpot User Provisioning" | "HubSpot Users" | "HubSpot Video Conferencing Extension" | "HubSpot Visitor Identification" | "HubSpot Webhooks";
|
|
39
|
-
export type TwilioRestTemplateName = "Twilio Accounts" | "Twilio Assistants" | "Twilio Bulk Exports" | "Twilio Chat" | "Twilio Content" | "Twilio Conversations" | "Twilio Events" | "Twilio Flex" | "Twilio Frontline" | "Twilio IAM" | "Twilio IAM Organizations" | "Twilio IAM SCIM" | "Twilio Insights" | "Twilio Intelligence" | "Twilio IP Messaging" | "Twilio Knowledge" | "Twilio Lookups" | "Twilio Marketplace" | "Twilio Messaging" | "Twilio Monitor" | "Twilio Notify" | "Twilio Numbers" | "Twilio OAuth" | "Twilio Preview" | "Twilio Pricing" | "Twilio Proxy" | "Twilio Routes" | "Twilio Serverless" | "Twilio Studio" | "Twilio Super SIM" | "Twilio Sync" | "Twilio TaskRouter" | "Twilio Trunking" | "Twilio TrustHub" | "Twilio Verify" | "Twilio Video" | "Twilio Voice" | "Twilio Wireless";
|
|
40
|
-
export type SplunkRestTemplateName = "Splunk Admin Config Service" | "Splunk Enterprise Security" | "Splunk Mission Control Automation";
|
|
41
|
-
export type ZendeskRestTemplateName = "Sunshine Conversations";
|
|
42
|
-
export type MicrosoftSharepointRestTemplateName = "Drives" | "Shares" | "Sites";
|
|
23
|
+
export type RestTemplateName = string;
|
|
24
|
+
export type ConnectionMode = "shared" | "independent";
|
|
25
|
+
export interface RestTemplateMixin {
|
|
26
|
+
servers?: OpenAPIServer[];
|
|
27
|
+
auth?: RestAuthConfig[];
|
|
28
|
+
}
|
|
43
29
|
export interface RestTemplate {
|
|
44
30
|
id: RestTemplateId;
|
|
45
31
|
name: RestTemplateName;
|
|
32
|
+
icon?: string;
|
|
46
33
|
description: string;
|
|
47
|
-
specs: RestTemplateSpec[];
|
|
48
|
-
icon: string;
|
|
49
|
-
operationsCount: number;
|
|
50
|
-
}
|
|
51
|
-
export interface RestTemplateWithoutIcon<Name, Id = RestTemplateId> {
|
|
52
|
-
id: Id;
|
|
53
|
-
name: Name;
|
|
54
|
-
description: string;
|
|
55
|
-
specs: RestTemplateSpec[];
|
|
56
|
-
operationsCount: number;
|
|
57
|
-
}
|
|
58
|
-
export interface RestTemplateGroup<TemplateGroupName extends keyof RestTemplateGroups> {
|
|
59
|
-
name: TemplateGroupName;
|
|
60
|
-
description: string;
|
|
61
|
-
icon: string;
|
|
62
34
|
operationsCount: number;
|
|
63
|
-
|
|
35
|
+
specs?: RestTemplateSpec[];
|
|
36
|
+
templates?: RestTemplate[];
|
|
37
|
+
connectionMode?: ConnectionMode;
|
|
38
|
+
mixin?: RestTemplateMixin;
|
|
64
39
|
}
|
|
65
|
-
export type GroupTemplateSelection = {
|
|
66
|
-
kind: "group";
|
|
67
|
-
groupName: RestTemplateGroupName;
|
|
68
|
-
template: RestTemplateWithoutIcon<RestTemplateGroups[RestTemplateGroupName], RestTemplateGroupIds[RestTemplateGroupName]>;
|
|
69
|
-
};
|
|
70
|
-
export type GroupTemplateSelectionDetail = {
|
|
71
|
-
kind: "group";
|
|
72
|
-
groupName: RestTemplateGroupName;
|
|
73
|
-
template: RestTemplateWithoutIcon<RestTemplateGroups[RestTemplateGroupName], RestTemplateGroupIds[RestTemplateGroupName]>;
|
|
74
|
-
};
|
|
75
40
|
export interface TemplateSelectionContext {
|
|
76
41
|
name: string;
|
|
77
42
|
description: string;
|
|
@@ -79,23 +44,3 @@ export interface TemplateSelectionContext {
|
|
|
79
44
|
icon?: string;
|
|
80
45
|
restTemplateId?: RestTemplateId;
|
|
81
46
|
}
|
|
82
|
-
export type TemplateSelectionDetail = {
|
|
83
|
-
kind: "template";
|
|
84
|
-
template: RestTemplate;
|
|
85
|
-
};
|
|
86
|
-
export type TemplateSelectionEventDetail = TemplateSelectionDetail | GroupTemplateSelectionDetail;
|
|
87
|
-
export type TemplateSelection = TemplateSelectionDetail | GroupTemplateSelection;
|
|
88
|
-
export type ConnectorCard = {
|
|
89
|
-
type: "group";
|
|
90
|
-
name: RestTemplateGroupName;
|
|
91
|
-
icon: string;
|
|
92
|
-
key: string;
|
|
93
|
-
group: RestTemplateGroup<RestTemplateGroupName>;
|
|
94
|
-
} | {
|
|
95
|
-
type: "template";
|
|
96
|
-
name: RestTemplateName;
|
|
97
|
-
icon: string;
|
|
98
|
-
key: string;
|
|
99
|
-
template: RestTemplate;
|
|
100
|
-
};
|
|
101
|
-
export type GroupTemplateName = RestTemplateGroups[RestTemplateGroupName];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "3.35.
|
|
3
|
+
"version": "3.35.10",
|
|
4
4
|
"description": "Budibase types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"prebuild": "rimraf dist/",
|
|
12
12
|
"build": "node ../../scripts/build.js && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
13
13
|
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
|
|
14
|
-
"check:types": "tsc -p tsconfig.json --noEmit --paths null"
|
|
14
|
+
"check:types": "tsc -p tsconfig.json --noEmit --incremental --paths null"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@ai-sdk/provider-utils": "^4.0.19",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"scim-patch": "^0.8.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "e2fa586beb21f730b22350e561d21ec1e2c5c2f0"
|
|
32
32
|
}
|