@base44-preview/sdk 0.8.59-pr.370.cee7e9f → 0.8.59-pr.371.e518662

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/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export type { Base44Client, CreateClientAnalyticsConfig, CreateClientConfig, Cre
6
6
  export * from "./types.js";
7
7
  export type { DeleteManyResult, DeleteResult, EntitiesModule, EntityAggregateResult, EntityAggregateSpec, EntityDateBucket, EntityDistinctOptions, EntityFilterOperators, EntityFilterQuery, EntityFilterValue, EntityHandler, EntityListOptions, EntityPage, EntityRecord, EntityTypeRegistry, EntityUpsertOptions, EntityUpsertResult, ImportResult, RealtimeEventType, RealtimeEvent, RealtimeCallback, SortField, UpdateManyResult, } from "./modules/entities.types.js";
8
8
  export type { AuthModule, LoginResponse, RegisterParams, VerifyOtpParams, ChangePasswordParams, ResetPasswordParams, User, } from "./modules/auth.types.js";
9
- export type { IntegrationsModule, IntegrationEndpointFunction, CoreIntegrations, InvokeLLMParams, GenerateImageParams, GenerateImageResult, UploadFileParams, UploadFileResult, EmailAttachment, SendEmailParams, SendEmailResult, ExtractDataFromUploadedFileParams, ExtractDataFromUploadedFileResult, UploadPrivateFileParams, UploadPrivateFileResult, CreateFileSignedUrlParams, CreateFileSignedUrlResult, } from "./modules/integrations.types.js";
9
+ export type { IntegrationsModule, IntegrationEndpointFunction, CoreIntegrations, InvokeLLMParams, GenerateImageParams, GenerateImageResult, UploadFileParams, UploadFileResult, SendEmailParams, SendEmailResult, ExtractDataFromUploadedFileParams, ExtractDataFromUploadedFileResult, UploadPrivateFileParams, UploadPrivateFileResult, CreateFileSignedUrlParams, CreateFileSignedUrlResult, } from "./modules/integrations.types.js";
10
10
  export type { FunctionsModule, FunctionName, FunctionNameRegistry, } from "./modules/functions.types.js";
11
11
  export type { AgentsModule, AgentName, AgentNameRegistry, AgentConversation, AgentMessage, AgentMessageReasoning, AgentMessageToolCall, AgentMessageUsage, AgentMessageCustomContext, AgentMessageMetadata, CreateConversationParams, } from "./modules/agents.types.js";
12
12
  export type { AiGatewayModule, AiGatewayConnection, AiGatewayConnectionOptions, } from "./modules/ai-gateway.types.js";
@@ -86,21 +86,6 @@ export interface UploadFileResult {
86
86
  /** URL of the uploaded file. */
87
87
  file_url: string;
88
88
  }
89
- /**
90
- * A file to attach to an email.
91
- */
92
- export interface EmailAttachment {
93
- /**
94
- * File name the recipient sees, including the extension. Supported extensions: `csv`, `docx`, `gif`, `ics`, `jpeg`, `jpg`, `md`, `pdf`, `png`, `txt`, `webp`, and `xlsx`.
95
- */
96
- filename: string;
97
- /**
98
- * A file your app already uploaded, such as the `file_url` returned by `UploadFile()` or the `file_uri` returned by `UploadPrivateFile()`. Files uploaded by other apps are rejected.
99
- */
100
- file_url?: string;
101
- /** Base64-encoded file contents, for a file your code generated. */
102
- content?: string;
103
- }
104
89
  /**
105
90
  * Parameters for the SendEmail function.
106
91
  */
@@ -109,18 +94,10 @@ export interface SendEmailParams {
109
94
  to: string;
110
95
  /** Email subject line. */
111
96
  subject: string;
112
- /** HTML email body. The same as `html`, so set one or the other, not both. */
113
- body?: string;
114
- /** HTML email body. The same as `body`, so set one or the other, not both. */
115
- html?: string;
116
- /**
117
- * Plain-text email body. On its own, it sends a plain-text email. Set it together with `body` or `html` to send both versions in one email, and the recipient's mail client shows whichever it prefers. Make sure both versions say the same thing.
118
- */
119
- text?: string;
120
- /** The name of the sender. If omitted, the app's name is used. */
97
+ /** Plain text email body content. */
98
+ body: string;
99
+ /** The name of the sender. If omitted, the app's name will be used. */
121
100
  from_name?: string;
122
- /** Files to attach. You can attach up to 5 files, up to 5 MB each and 10 MB in total. Set `filename` and exactly one of `file_url` or `content` on each file. */
123
- attachments?: EmailAttachment[];
124
101
  }
125
102
  export type SendEmailResult = any;
126
103
  /**
@@ -259,35 +236,10 @@ export interface CoreIntegrations {
259
236
  */
260
237
  UploadFile(params: UploadFileParams): Promise<UploadFileResult>;
261
238
  /**
262
- * Send an email from your app.
263
- *
264
- * You can always email registered users of your app. To email anyone else, the app needs a paid plan and a connected custom domain.
239
+ * Send emails to registered users of your app.
265
240
  *
266
- * @param params - Parameters for sending email. Set at least one of `body`, `html`, or `text`.
241
+ * @param params - Parameters for sending email
267
242
  * @returns Promise resolving when the email is sent.
268
- *
269
- * @example
270
- * ```typescript
271
- * // Send an HTML email with a plain-text version
272
- * await base44.integrations.Core.SendEmail({
273
- * to: "user@example.com",
274
- * subject: "Your order has shipped",
275
- * html: "<p>Your order <strong>#1234</strong> is on its way.</p>",
276
- * text: "Your order #1234 is on its way.",
277
- * });
278
- * ```
279
- *
280
- * @example
281
- * ```typescript
282
- * // Attach a file your app uploaded
283
- * const { file_url } = await base44.integrations.Core.UploadFile({ file });
284
- * await base44.integrations.Core.SendEmail({
285
- * to: "user@example.com",
286
- * subject: "Your invoice",
287
- * html: "<p>Your invoice is attached.</p>",
288
- * attachments: [{ filename: "invoice.pdf", file_url }],
289
- * });
290
- * ```
291
243
  */
292
244
  SendEmail(params: SendEmailParams): Promise<SendEmailResult>;
293
245
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.59-pr.370.cee7e9f",
3
+ "version": "0.8.59-pr.371.e518662",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",