@base44-preview/sdk 0.8.32-pr.198.9e03952 → 0.8.32-pr.199.4f526d9
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.
|
@@ -80,11 +80,13 @@ export interface AppUserConnectorConnectionResponse {
|
|
|
80
80
|
* | Calendly | `calendly` |
|
|
81
81
|
* | ClickUp | `clickup` |
|
|
82
82
|
* | Contentful | `contentful` |
|
|
83
|
+
* | Databricks | `databricks` |
|
|
83
84
|
* | Discord | `discord` |
|
|
84
85
|
* | Dropbox | `dropbox` |
|
|
85
86
|
* | GitHub | `github` |
|
|
86
87
|
* | GitLab | `gitlab` |
|
|
87
88
|
* | Gmail | `gmail` |
|
|
89
|
+
* | Google Ads | `googleads` |
|
|
88
90
|
* | Google Analytics | `google_analytics` |
|
|
89
91
|
* | Google BigQuery | `googlebigquery` |
|
|
90
92
|
* | Google Calendar | `googlecalendar` |
|
|
@@ -105,10 +107,12 @@ export interface AppUserConnectorConnectionResponse {
|
|
|
105
107
|
* | Microsoft OneDrive | `one_drive` |
|
|
106
108
|
* | Notion | `notion` |
|
|
107
109
|
* | Outlook | `outlook` |
|
|
110
|
+
* | QuickBooks | `quickbooks` |
|
|
108
111
|
* | Salesforce | `salesforce` |
|
|
109
112
|
* | SharePoint | `share_point` |
|
|
110
113
|
* | Slack User | `slack` |
|
|
111
114
|
* | Slack Bot | `slackbot` |
|
|
115
|
+
* | Snowflake | `snowflake` |
|
|
112
116
|
* | Splitwise | `splitwise` |
|
|
113
117
|
* | Supabase | `supabase` |
|
|
114
118
|
* | TikTok | `tiktok` |
|
|
@@ -43,9 +43,9 @@ export interface InvokeLLMParams {
|
|
|
43
43
|
prompt: string;
|
|
44
44
|
/** Optionally specify a model to override the app-level model setting for this specific call.
|
|
45
45
|
*
|
|
46
|
-
* Options: `"gpt_5_mini"`, `"gemini_3_flash"`, `"
|
|
46
|
+
* Options: `"gpt_5_mini"`, `"gemini_3_flash"`, `"gpt_5_4"`, `"gpt_5_5"`, `"gemini_3_1_pro"`, `"claude_sonnet_4_6"`, `"claude_opus_4_6"`, `"claude_opus_4_7"`, `"claude_opus_4_8"`
|
|
47
47
|
*/
|
|
48
|
-
model?: 'gpt_5_mini' | 'gemini_3_flash' | '
|
|
48
|
+
model?: 'gpt_5_mini' | 'gemini_3_flash' | 'gpt_5_4' | 'gpt_5_5' | 'gemini_3_1_pro' | 'claude_sonnet_4_6' | 'claude_opus_4_6' | 'claude_opus_4_7' | 'claude_opus_4_8';
|
|
49
49
|
/** If set to `true`, the LLM will use Google Search, Maps, and News to gather real-time context before answering.
|
|
50
50
|
* @default false
|
|
51
51
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
2
|
import { isInIFrame } from "./common.js";
|
|
3
3
|
import { v4 as uuidv4 } from "uuid";
|
|
4
|
-
import { getOrCreateAnonymousVisitorId } from "./anon-visitor.js";
|
|
5
4
|
/**
|
|
6
5
|
* Custom error class for Base44 SDK errors.
|
|
7
6
|
*
|
|
@@ -132,15 +131,6 @@ export function createAxiosClient({ baseURL, headers = {}, token, interceptRespo
|
|
|
132
131
|
client.interceptors.request.use((config) => {
|
|
133
132
|
if (typeof window !== "undefined") {
|
|
134
133
|
config.headers.set("X-Origin-URL", window.location.href);
|
|
135
|
-
// On unauthenticated clients, attach a stable anonymous visitor id so the
|
|
136
|
-
// backend can support anonymous agent access (conversation grouping +
|
|
137
|
-
// ownership). Authenticated clients are identified by their token instead.
|
|
138
|
-
if (!token) {
|
|
139
|
-
const anonymousVisitorId = getOrCreateAnonymousVisitorId();
|
|
140
|
-
if (anonymousVisitorId) {
|
|
141
|
-
config.headers.set("X-Base44-Anonymous-Id", anonymousVisitorId);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
134
|
}
|
|
145
135
|
const requestId = uuidv4();
|
|
146
136
|
config.requestId = requestId;
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a stable per-browser identifier for an unauthenticated ("anonymous")
|
|
3
|
-
* visitor, creating and persisting one on first use.
|
|
4
|
-
*
|
|
5
|
-
* Sent as the `X-Base44-Anonymous-Id` header on unauthenticated requests so the
|
|
6
|
-
* backend can group an anonymous user's agent conversations and enforce
|
|
7
|
-
* ownership (the header is treated as a bearer-style credential). Persisted in
|
|
8
|
-
* localStorage so it survives reloads; a new browser/device or cleared storage
|
|
9
|
-
* starts a fresh anonymous identity.
|
|
10
|
-
*
|
|
11
|
-
* Returns `null` outside the browser (no `localStorage` / SSR) so callers can
|
|
12
|
-
* skip the header on the server.
|
|
13
|
-
*
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export declare function getOrCreateAnonymousVisitorId(): string | null;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from "uuid";
|
|
2
|
-
/**
|
|
3
|
-
* localStorage key holding the anonymous visitor id.
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
const ANONYMOUS_VISITOR_ID_STORAGE_KEY = "base44_anonymous_visitor_id";
|
|
7
|
-
/**
|
|
8
|
-
* Returns a stable per-browser identifier for an unauthenticated ("anonymous")
|
|
9
|
-
* visitor, creating and persisting one on first use.
|
|
10
|
-
*
|
|
11
|
-
* Sent as the `X-Base44-Anonymous-Id` header on unauthenticated requests so the
|
|
12
|
-
* backend can group an anonymous user's agent conversations and enforce
|
|
13
|
-
* ownership (the header is treated as a bearer-style credential). Persisted in
|
|
14
|
-
* localStorage so it survives reloads; a new browser/device or cleared storage
|
|
15
|
-
* starts a fresh anonymous identity.
|
|
16
|
-
*
|
|
17
|
-
* Returns `null` outside the browser (no `localStorage` / SSR) so callers can
|
|
18
|
-
* skip the header on the server.
|
|
19
|
-
*
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export function getOrCreateAnonymousVisitorId() {
|
|
23
|
-
if (typeof window === "undefined" || !window.localStorage) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
try {
|
|
27
|
-
const existing = window.localStorage.getItem(ANONYMOUS_VISITOR_ID_STORAGE_KEY);
|
|
28
|
-
if (existing) {
|
|
29
|
-
return existing;
|
|
30
|
-
}
|
|
31
|
-
const minted = uuidv4();
|
|
32
|
-
window.localStorage.setItem(ANONYMOUS_VISITOR_ID_STORAGE_KEY, minted);
|
|
33
|
-
return minted;
|
|
34
|
-
}
|
|
35
|
-
catch (_a) {
|
|
36
|
-
// localStorage unavailable (private mode / sandboxed iframe): no stable id.
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
}
|