@puckeditor/cloud-client 0.9.0-canary.bc43b29b → 0.9.0-canary.bf70d98e
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/{chunk-BK2SAVIL.mjs → chunk-6U6SSWEV.mjs} +1 -1
- package/dist/experimental.js +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.d.mts +20 -19
- package/dist/index.d.ts +20 -19
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
|
@@ -22414,7 +22414,7 @@ var DEFAULT_V2_MODELS = {
|
|
|
22414
22414
|
assembly: "openai/gpt-5.6-luna",
|
|
22415
22415
|
design: "openai/gpt-5.6-luna"
|
|
22416
22416
|
};
|
|
22417
|
-
var CLOUD_CLIENT_VERSION = true ? "0.9.0-canary.
|
|
22417
|
+
var CLOUD_CLIENT_VERSION = true ? "0.9.0-canary.bf70d98e" : "unknown";
|
|
22418
22418
|
var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
22419
22419
|
const {
|
|
22420
22420
|
ai = {},
|
package/dist/experimental.js
CHANGED
|
@@ -22457,7 +22457,7 @@ var DEFAULT_V2_MODELS = {
|
|
|
22457
22457
|
assembly: "openai/gpt-5.6-luna",
|
|
22458
22458
|
design: "openai/gpt-5.6-luna"
|
|
22459
22459
|
};
|
|
22460
|
-
var CLOUD_CLIENT_VERSION = true ? "0.9.0-canary.
|
|
22460
|
+
var CLOUD_CLIENT_VERSION = true ? "0.9.0-canary.bf70d98e" : "unknown";
|
|
22461
22461
|
var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
22462
22462
|
const {
|
|
22463
22463
|
ai = {},
|
package/dist/experimental.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -5,13 +5,13 @@ import z from 'zod/v4';
|
|
|
5
5
|
import { UIMessage } from 'ai';
|
|
6
6
|
import { Config, Data } from '@puckeditor/core';
|
|
7
7
|
|
|
8
|
-
type OpenAIChatModelId = 'o1' | 'o1-2024-12-17' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o3' | 'o3-2025-04-16' | 'o4-mini' | 'o4-mini-2025-04-16' | 'gpt-4.1' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview' | 'gpt-4o-mini-search-preview-2025-03-11' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-16k' | 'gpt-5' | 'gpt-5-2025-08-07' | 'gpt-5-mini' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.3-chat-latest' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | (string & {});
|
|
8
|
+
type OpenAIChatModelId = 'o1' | 'o1-2024-12-17' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o3' | 'o3-2025-04-16' | 'o4-mini' | 'o4-mini-2025-04-16' | 'gpt-4.1' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview' | 'gpt-4o-mini-search-preview-2025-03-11' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-16k' | 'gpt-5' | 'gpt-5-2025-08-07' | 'gpt-5-mini' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.3-chat-latest' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | (string & {});
|
|
9
9
|
|
|
10
10
|
type OpenAICompletionModelId = 'gpt-3.5-turbo-instruct' | 'gpt-3.5-turbo-instruct-0914' | (string & {});
|
|
11
11
|
|
|
12
12
|
type OpenAIEmbeddingModelId = 'text-embedding-3-small' | 'text-embedding-3-large' | 'text-embedding-ada-002' | (string & {});
|
|
13
13
|
|
|
14
|
-
type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-1.5' | 'gpt-image-2' | 'chatgpt-image-latest' | (string & {});
|
|
14
|
+
type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-1.5' | 'gpt-image-2' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'chatgpt-image-latest' | (string & {});
|
|
15
15
|
|
|
16
16
|
declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
|
|
17
17
|
/**
|
|
@@ -81,8 +81,15 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWi
|
|
|
81
81
|
* Allowed domains for the search.
|
|
82
82
|
* If not provided, all domains are allowed.
|
|
83
83
|
* Subdomains of the provided domains are allowed as well.
|
|
84
|
+
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
84
85
|
*/
|
|
85
86
|
allowedDomains?: string[];
|
|
87
|
+
/**
|
|
88
|
+
* Blocked domains for the search.
|
|
89
|
+
* Subdomains of the provided domains are blocked as well.
|
|
90
|
+
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
91
|
+
*/
|
|
92
|
+
blockedDomains?: string[];
|
|
86
93
|
};
|
|
87
94
|
/**
|
|
88
95
|
* Search context size to use for the web search.
|
|
@@ -158,6 +165,11 @@ declare const customToolFactory: _ai_sdk_provider_utils.ProviderToolFactory<stri
|
|
|
158
165
|
* An optional description of what the tool does.
|
|
159
166
|
*/
|
|
160
167
|
description?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the model can continue generating after calling this tool
|
|
170
|
+
* without waiting for its result.
|
|
171
|
+
*/
|
|
172
|
+
async?: boolean;
|
|
161
173
|
/**
|
|
162
174
|
* The output format specification for the tool.
|
|
163
175
|
* Omit for unconstrained text output.
|
|
@@ -224,6 +236,7 @@ declare const openaiTools: {
|
|
|
224
236
|
*
|
|
225
237
|
* @param name - The name of the custom tool.
|
|
226
238
|
* @param description - An optional description of the tool.
|
|
239
|
+
* @param async - Whether the model can continue without waiting for the tool result.
|
|
227
240
|
* @param format - The output format constraint (grammar type, syntax, and definition).
|
|
228
241
|
*/
|
|
229
242
|
customTool: (args: Parameters<typeof customToolFactory>[0]) => _ai_sdk_provider_utils.Tool<string, unknown>;
|
|
@@ -291,7 +304,7 @@ declare const openaiTools: {
|
|
|
291
304
|
* @param outputCompression - Compression level for the output image (0-100).
|
|
292
305
|
* @param outputFormat - The output format of the generated image. One of 'png', 'jpeg', or 'webp'.
|
|
293
306
|
* @param partialImages - Number of partial images to generate in streaming mode (0-3).
|
|
294
|
-
* @param quality - The quality of the generated image. One of 'auto', 'low', 'medium', or '
|
|
307
|
+
* @param quality - The quality of the generated image. One of 'auto', 'low', 'medium', 'high', 'xhigh', or 'max'. 'xhigh' and 'max' require a GPT Image 2.5 model.
|
|
295
308
|
* @param size - The size of the generated image. One of 'auto', '1024x1024', '1024x1536', or '1536x1024'.
|
|
296
309
|
*/
|
|
297
310
|
imageGeneration: (args?: {
|
|
@@ -306,8 +319,8 @@ declare const openaiTools: {
|
|
|
306
319
|
outputCompression?: number;
|
|
307
320
|
outputFormat?: "png" | "jpeg" | "webp";
|
|
308
321
|
partialImages?: number;
|
|
309
|
-
quality?: "auto" | "low" | "medium" | "high";
|
|
310
|
-
size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024";
|
|
322
|
+
quality?: "auto" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
323
|
+
size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024" | (string & {});
|
|
311
324
|
}) => _ai_sdk_provider_utils.Tool<{}, {
|
|
312
325
|
result: string;
|
|
313
326
|
}>;
|
|
@@ -424,19 +437,7 @@ declare const openaiTools: {
|
|
|
424
437
|
type: "approximate";
|
|
425
438
|
country?: string;
|
|
426
439
|
city?: string;
|
|
427
|
-
region
|
|
428
|
-
/**
|
|
429
|
-
* Local shell is a tool that allows agents to run shell commands locally
|
|
430
|
-
* on a machine you or the user provides.
|
|
431
|
-
*
|
|
432
|
-
* Supported models: `gpt-5-codex`
|
|
433
|
-
*/
|
|
434
|
-
? /**
|
|
435
|
-
* Local shell is a tool that allows agents to run shell commands locally
|
|
436
|
-
* on a machine you or the user provides.
|
|
437
|
-
*
|
|
438
|
-
* Supported models: `gpt-5-codex`
|
|
439
|
-
*/: string;
|
|
440
|
+
region?: string;
|
|
440
441
|
timezone?: string;
|
|
441
442
|
};
|
|
442
443
|
}>;
|
|
@@ -532,7 +533,7 @@ declare const openaiTools: {
|
|
|
532
533
|
}>;
|
|
533
534
|
};
|
|
534
535
|
|
|
535
|
-
type OpenAIResponsesModelId$1 = 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.1-codex-mini' | 'gpt-5.1-codex' | 'gpt-5.1-codex-max' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.2-codex' | 'gpt-5.3-chat-latest' | 'gpt-5.3-codex' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5-codex' | 'gpt-5-mini-2025-08-07' | 'gpt-5-mini' | 'gpt-5-nano-2025-08-07' | 'gpt-5-nano' | 'gpt-5-pro-2025-10-06' | 'gpt-5-pro' | 'gpt-5' | 'o1-2024-12-17' | 'o1' | 'o3-2025-04-16' | 'o3-mini-2025-01-31' | 'o3-mini' | 'o3' | 'o4-mini' | 'o4-mini-2025-04-16' | (string & {});
|
|
536
|
+
type OpenAIResponsesModelId$1 = 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.1-codex-mini' | 'gpt-5.1-codex' | 'gpt-5.1-codex-max' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.2-codex' | 'gpt-5.3-chat-latest' | 'gpt-5.3-codex' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | 'gpt-5-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5-codex' | 'gpt-5-mini-2025-08-07' | 'gpt-5-mini' | 'gpt-5-nano-2025-08-07' | 'gpt-5-nano' | 'gpt-5-pro-2025-10-06' | 'gpt-5-pro' | 'gpt-5' | 'o1-2024-12-17' | 'o1' | 'o3-2025-04-16' | 'o3-mini-2025-01-31' | 'o3-mini' | 'o3' | 'o4-mini' | 'o4-mini-2025-04-16' | (string & {});
|
|
536
537
|
|
|
537
538
|
type OpenAISpeechModelId = 'tts-1' | 'tts-1-1106' | 'tts-1-hd' | 'tts-1-hd-1106' | 'gpt-4o-mini-tts' | 'gpt-4o-mini-tts-2025-03-20' | 'gpt-4o-mini-tts-2025-12-15' | (string & {});
|
|
538
539
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ import z from 'zod/v4';
|
|
|
5
5
|
import { UIMessage } from 'ai';
|
|
6
6
|
import { Config, Data } from '@puckeditor/core';
|
|
7
7
|
|
|
8
|
-
type OpenAIChatModelId = 'o1' | 'o1-2024-12-17' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o3' | 'o3-2025-04-16' | 'o4-mini' | 'o4-mini-2025-04-16' | 'gpt-4.1' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview' | 'gpt-4o-mini-search-preview-2025-03-11' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-16k' | 'gpt-5' | 'gpt-5-2025-08-07' | 'gpt-5-mini' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.3-chat-latest' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | (string & {});
|
|
8
|
+
type OpenAIChatModelId = 'o1' | 'o1-2024-12-17' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o3' | 'o3-2025-04-16' | 'o4-mini' | 'o4-mini-2025-04-16' | 'gpt-4.1' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview' | 'gpt-4o-mini-search-preview-2025-03-11' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-16k' | 'gpt-5' | 'gpt-5-2025-08-07' | 'gpt-5-mini' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.3-chat-latest' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | (string & {});
|
|
9
9
|
|
|
10
10
|
type OpenAICompletionModelId = 'gpt-3.5-turbo-instruct' | 'gpt-3.5-turbo-instruct-0914' | (string & {});
|
|
11
11
|
|
|
12
12
|
type OpenAIEmbeddingModelId = 'text-embedding-3-small' | 'text-embedding-3-large' | 'text-embedding-ada-002' | (string & {});
|
|
13
13
|
|
|
14
|
-
type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-1.5' | 'gpt-image-2' | 'chatgpt-image-latest' | (string & {});
|
|
14
|
+
type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-1.5' | 'gpt-image-2' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'chatgpt-image-latest' | (string & {});
|
|
15
15
|
|
|
16
16
|
declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
|
|
17
17
|
/**
|
|
@@ -81,8 +81,15 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWi
|
|
|
81
81
|
* Allowed domains for the search.
|
|
82
82
|
* If not provided, all domains are allowed.
|
|
83
83
|
* Subdomains of the provided domains are allowed as well.
|
|
84
|
+
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
84
85
|
*/
|
|
85
86
|
allowedDomains?: string[];
|
|
87
|
+
/**
|
|
88
|
+
* Blocked domains for the search.
|
|
89
|
+
* Subdomains of the provided domains are blocked as well.
|
|
90
|
+
* Omit the HTTP or HTTPS prefix. Maximum 100 domains.
|
|
91
|
+
*/
|
|
92
|
+
blockedDomains?: string[];
|
|
86
93
|
};
|
|
87
94
|
/**
|
|
88
95
|
* Search context size to use for the web search.
|
|
@@ -158,6 +165,11 @@ declare const customToolFactory: _ai_sdk_provider_utils.ProviderToolFactory<stri
|
|
|
158
165
|
* An optional description of what the tool does.
|
|
159
166
|
*/
|
|
160
167
|
description?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the model can continue generating after calling this tool
|
|
170
|
+
* without waiting for its result.
|
|
171
|
+
*/
|
|
172
|
+
async?: boolean;
|
|
161
173
|
/**
|
|
162
174
|
* The output format specification for the tool.
|
|
163
175
|
* Omit for unconstrained text output.
|
|
@@ -224,6 +236,7 @@ declare const openaiTools: {
|
|
|
224
236
|
*
|
|
225
237
|
* @param name - The name of the custom tool.
|
|
226
238
|
* @param description - An optional description of the tool.
|
|
239
|
+
* @param async - Whether the model can continue without waiting for the tool result.
|
|
227
240
|
* @param format - The output format constraint (grammar type, syntax, and definition).
|
|
228
241
|
*/
|
|
229
242
|
customTool: (args: Parameters<typeof customToolFactory>[0]) => _ai_sdk_provider_utils.Tool<string, unknown>;
|
|
@@ -291,7 +304,7 @@ declare const openaiTools: {
|
|
|
291
304
|
* @param outputCompression - Compression level for the output image (0-100).
|
|
292
305
|
* @param outputFormat - The output format of the generated image. One of 'png', 'jpeg', or 'webp'.
|
|
293
306
|
* @param partialImages - Number of partial images to generate in streaming mode (0-3).
|
|
294
|
-
* @param quality - The quality of the generated image. One of 'auto', 'low', 'medium', or '
|
|
307
|
+
* @param quality - The quality of the generated image. One of 'auto', 'low', 'medium', 'high', 'xhigh', or 'max'. 'xhigh' and 'max' require a GPT Image 2.5 model.
|
|
295
308
|
* @param size - The size of the generated image. One of 'auto', '1024x1024', '1024x1536', or '1536x1024'.
|
|
296
309
|
*/
|
|
297
310
|
imageGeneration: (args?: {
|
|
@@ -306,8 +319,8 @@ declare const openaiTools: {
|
|
|
306
319
|
outputCompression?: number;
|
|
307
320
|
outputFormat?: "png" | "jpeg" | "webp";
|
|
308
321
|
partialImages?: number;
|
|
309
|
-
quality?: "auto" | "low" | "medium" | "high";
|
|
310
|
-
size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024";
|
|
322
|
+
quality?: "auto" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
323
|
+
size?: "auto" | "1024x1024" | "1024x1536" | "1536x1024" | (string & {});
|
|
311
324
|
}) => _ai_sdk_provider_utils.Tool<{}, {
|
|
312
325
|
result: string;
|
|
313
326
|
}>;
|
|
@@ -424,19 +437,7 @@ declare const openaiTools: {
|
|
|
424
437
|
type: "approximate";
|
|
425
438
|
country?: string;
|
|
426
439
|
city?: string;
|
|
427
|
-
region
|
|
428
|
-
/**
|
|
429
|
-
* Local shell is a tool that allows agents to run shell commands locally
|
|
430
|
-
* on a machine you or the user provides.
|
|
431
|
-
*
|
|
432
|
-
* Supported models: `gpt-5-codex`
|
|
433
|
-
*/
|
|
434
|
-
? /**
|
|
435
|
-
* Local shell is a tool that allows agents to run shell commands locally
|
|
436
|
-
* on a machine you or the user provides.
|
|
437
|
-
*
|
|
438
|
-
* Supported models: `gpt-5-codex`
|
|
439
|
-
*/: string;
|
|
440
|
+
region?: string;
|
|
440
441
|
timezone?: string;
|
|
441
442
|
};
|
|
442
443
|
}>;
|
|
@@ -532,7 +533,7 @@ declare const openaiTools: {
|
|
|
532
533
|
}>;
|
|
533
534
|
};
|
|
534
535
|
|
|
535
|
-
type OpenAIResponsesModelId$1 = 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.1-codex-mini' | 'gpt-5.1-codex' | 'gpt-5.1-codex-max' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.2-codex' | 'gpt-5.3-chat-latest' | 'gpt-5.3-codex' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5-codex' | 'gpt-5-mini-2025-08-07' | 'gpt-5-mini' | 'gpt-5-nano-2025-08-07' | 'gpt-5-nano' | 'gpt-5-pro-2025-10-06' | 'gpt-5-pro' | 'gpt-5' | 'o1-2024-12-17' | 'o1' | 'o3-2025-04-16' | 'o3-mini-2025-01-31' | 'o3-mini' | 'o3' | 'o4-mini' | 'o4-mini-2025-04-16' | (string & {});
|
|
536
|
+
type OpenAIResponsesModelId$1 = 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-mini' | 'gpt-4.1-nano-2025-04-14' | 'gpt-4.1-nano' | 'gpt-4.1' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini-2024-07-18' | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-chat-latest' | 'gpt-5.1-codex-mini' | 'gpt-5.1-codex' | 'gpt-5.1-codex-max' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.2-codex' | 'gpt-5.3-chat-latest' | 'gpt-5.3-codex' | 'gpt-5.4' | 'gpt-5.4-2026-03-05' | 'gpt-5.4-mini' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.4-pro' | 'gpt-5.4-pro-2026-03-05' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.6' | 'gpt-5.6-luna' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-6-astra' | 'gpt-5-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-5-codex' | 'gpt-5-mini-2025-08-07' | 'gpt-5-mini' | 'gpt-5-nano-2025-08-07' | 'gpt-5-nano' | 'gpt-5-pro-2025-10-06' | 'gpt-5-pro' | 'gpt-5' | 'o1-2024-12-17' | 'o1' | 'o3-2025-04-16' | 'o3-mini-2025-01-31' | 'o3-mini' | 'o3' | 'o4-mini' | 'o4-mini-2025-04-16' | (string & {});
|
|
536
537
|
|
|
537
538
|
type OpenAISpeechModelId = 'tts-1' | 'tts-1-1106' | 'tts-1-hd' | 'tts-1-hd-1106' | 'gpt-4o-mini-tts' | 'gpt-4o-mini-tts-2025-03-20' | 'gpt-4o-mini-tts-2025-12-15' | (string & {});
|
|
538
539
|
|
package/dist/index.js
CHANGED
|
@@ -22459,7 +22459,7 @@ var DEFAULT_V2_MODELS = {
|
|
|
22459
22459
|
assembly: "openai/gpt-5.6-luna",
|
|
22460
22460
|
design: "openai/gpt-5.6-luna"
|
|
22461
22461
|
};
|
|
22462
|
-
var CLOUD_CLIENT_VERSION = true ? "0.9.0-canary.
|
|
22462
|
+
var CLOUD_CLIENT_VERSION = true ? "0.9.0-canary.bf70d98e" : "unknown";
|
|
22463
22463
|
var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
22464
22464
|
const {
|
|
22465
22465
|
ai = {},
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/cloud-client",
|
|
3
|
-
"version": "0.9.0-canary.
|
|
3
|
+
"version": "0.9.0-canary.bf70d98e",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@ai-sdk/openai": "^3.0.
|
|
39
|
+
"@ai-sdk/openai": "^3.0.115",
|
|
40
40
|
"@puckeditor/core": "0.24.0-canary.90665dfb",
|
|
41
41
|
"@types/node": "^24.10.1",
|
|
42
42
|
"ai": "^6.0.228",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"vite-tsconfig-paths": "^5.1.4",
|
|
48
48
|
"vitest": "^4.1.11",
|
|
49
49
|
"zod": "^4.1.12",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
50
|
+
"eslint-config-custom": "0.9.0-canary.bf70d98e",
|
|
51
|
+
"tsconfig": "0.9.0-canary.bf70d98e",
|
|
52
|
+
"tsup-config": "0.9.0-canary.bf70d98e"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"lint": "eslint \"**/*.ts*\"",
|