@base44-preview/sdk 0.8.19-pr.127.efac8bd → 0.8.19-pr.128.524a3e0
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.
|
@@ -192,7 +192,7 @@ export interface AgentsModuleConfig {
|
|
|
192
192
|
*
|
|
193
193
|
* ## Generated Types
|
|
194
194
|
*
|
|
195
|
-
* If you're working in a TypeScript project, you can generate types from your agents to get autocomplete on agent names when creating conversations or subscribing to updates. See the [
|
|
195
|
+
* If you're working in a TypeScript project, you can generate types from your agents to get autocomplete on agent names when creating conversations or subscribing to updates. See the [Dynamic Types](/developers/references/sdk/getting-started/dynamic-types) guide to get started.
|
|
196
196
|
*/
|
|
197
197
|
export interface AgentsModule {
|
|
198
198
|
/**
|
|
@@ -179,22 +179,29 @@ export interface AuthModule {
|
|
|
179
179
|
* Supported providers:
|
|
180
180
|
* - `'google'` - {@link https://developers.google.com/identity/protocols/oauth2 | Google OAuth}. Enabled by default.
|
|
181
181
|
* - `'microsoft'` - {@link https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow | Microsoft OAuth}. Enable Microsoft in your app's authentication settings before specifying this provider.
|
|
182
|
-
* - `'facebook'` - {@link https://developers.facebook.com/docs/facebook-login | Facebook Login}. Enable
|
|
182
|
+
* - `'facebook'` - {@link https://developers.facebook.com/docs/facebook-login | Facebook Login}. Enable Facebook in your app's authentication settings before using.
|
|
183
|
+
* - `'apple'` - {@link https://developer.apple.com/sign-in-with-apple/ | Sign in with Apple}. Enable Apple in your app's authentication settings before using this provider.
|
|
183
184
|
*
|
|
184
|
-
* @param provider - The authentication provider to use: `'google'`, `'microsoft'`, or `'
|
|
185
|
+
* @param provider - The authentication provider to use: `'google'`, `'microsoft'`, `'facebook'`, or `'apple'`.
|
|
185
186
|
* @param fromUrl - URL to redirect to after successful authentication. Defaults to `'/'`.
|
|
186
187
|
*
|
|
187
188
|
* @example
|
|
188
189
|
* ```typescript
|
|
189
|
-
* //
|
|
190
|
+
* // Google
|
|
190
191
|
* base44.auth.loginWithProvider('google', window.location.pathname);
|
|
191
192
|
* ```
|
|
192
193
|
*
|
|
193
194
|
* @example
|
|
194
195
|
* ```typescript
|
|
195
|
-
* //
|
|
196
|
+
* // Microsoft
|
|
196
197
|
* base44.auth.loginWithProvider('microsoft', '/dashboard');
|
|
197
198
|
* ```
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```typescript
|
|
202
|
+
* // Apple
|
|
203
|
+
* base44.auth.loginWithProvider('apple', '/dashboard');
|
|
204
|
+
* ```
|
|
198
205
|
*/
|
|
199
206
|
loginWithProvider(provider: string, fromUrl?: string): void;
|
|
200
207
|
/**
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Registry of connector integration types.
|
|
3
|
-
* Augment this interface to enable autocomplete for connector integration types.
|
|
2
|
+
* Registry of connector integration type names. The [`types generate`](/developers/references/cli/commands/types-generate) command fills this registry, then [`ConnectorIntegrationType`](#connectorintegrationtype) resolves to a union of the keys.
|
|
4
3
|
*/
|
|
5
4
|
export interface ConnectorIntegrationTypeRegistry {
|
|
6
5
|
}
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Union of all connector integration type names from the [`ConnectorIntegrationTypeRegistry`](#connectorintegrationtyperegistry). Defaults to `string` when no types have been generated.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // Using generated connector type names
|
|
12
|
+
* // With generated types, you get autocomplete on integration types
|
|
13
|
+
* const token = await base44.asServiceRole.connectors.getAccessToken('googlecalendar');
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
export type ConnectorIntegrationType = keyof ConnectorIntegrationTypeRegistry extends never ? string : keyof ConnectorIntegrationTypeRegistry;
|
|
12
17
|
/**
|
|
@@ -26,6 +31,10 @@ export interface ConnectorAccessTokenResponse {
|
|
|
26
31
|
* covered by Base44's pre-built integrations.
|
|
27
32
|
*
|
|
28
33
|
* This module is only available to use with a client in service role authentication mode, which means it can only be used in backend environments.
|
|
34
|
+
*
|
|
35
|
+
* ## Dynamic Types
|
|
36
|
+
*
|
|
37
|
+
* If you're working in a TypeScript project, you can generate types from your app's connector configurations to get autocomplete on integration type names when calling `getAccessToken()`. See the [Dynamic Types](/developers/references/sdk/getting-started/dynamic-types) guide to get started.
|
|
29
38
|
*/
|
|
30
39
|
export interface ConnectorsModule {
|
|
31
40
|
/**
|
|
@@ -97,10 +97,7 @@ export interface EntityTypeRegistry {
|
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
99
|
* ```typescript
|
|
100
|
-
* // Type-safe entity records
|
|
101
100
|
* import type { EntityRecord } from '@base44/sdk';
|
|
102
|
-
* // Import your generated entity schema
|
|
103
|
-
* import type { Task } from '@/base44/.types/types';
|
|
104
101
|
*
|
|
105
102
|
* // Combine your schema with server fields (id, created_date, etc.)
|
|
106
103
|
* type TaskRecord = EntityRecord['Task'];
|
|
@@ -434,7 +431,7 @@ type DynamicEntitiesModule = {
|
|
|
434
431
|
*
|
|
435
432
|
* ## Generated Types
|
|
436
433
|
*
|
|
437
|
-
* If you're working in a TypeScript project, you can generate types from your entity schemas to get autocomplete and type checking on all entity methods. See the [
|
|
434
|
+
* If you're working in a TypeScript project, you can generate types from your entity schemas to get autocomplete and type checking on all entity methods. See the [Dynamic Types](/developers/references/sdk/getting-started/dynamic-types) guide to get started.
|
|
438
435
|
*
|
|
439
436
|
* @example
|
|
440
437
|
* ```typescript
|
|
@@ -26,7 +26,7 @@ export type FunctionName = keyof FunctionNameRegistry extends never ? string : k
|
|
|
26
26
|
*
|
|
27
27
|
* ## Generated Types
|
|
28
28
|
*
|
|
29
|
-
* If you're working in a TypeScript project, you can generate types from your backend functions to get autocomplete on function names when calling `invoke()`. See the [
|
|
29
|
+
* If you're working in a TypeScript project, you can generate types from your backend functions to get autocomplete on function names when calling `invoke()`. See the [Dynamic Types](/developers/references/sdk/getting-started/dynamic-types) guide to get started.
|
|
30
30
|
*/
|
|
31
31
|
export interface FunctionsModule {
|
|
32
32
|
/**
|