@blinkdotnew/dev-sdk 2.3.5 → 2.4.0
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.mts +144 -2
- package/dist/index.d.ts +144 -2
- package/dist/index.js +2719 -37
- package/dist/index.mjs +2718 -38
- package/package.json +2 -4
package/dist/index.d.mts
CHANGED
|
@@ -1969,7 +1969,8 @@ interface BlinkFunctions {
|
|
|
1969
1969
|
* Invoke a Blink Edge Function.
|
|
1970
1970
|
*
|
|
1971
1971
|
* Automatically attaches the user's JWT for authenticated requests.
|
|
1972
|
-
* The function URL is constructed as: https://{
|
|
1972
|
+
* The function URL is constructed as: https://{projectId8}.backend.blink.new/{functionSlug}
|
|
1973
|
+
* User-supplied headers take precedence over the auto-attached Authorization header.
|
|
1973
1974
|
*
|
|
1974
1975
|
* @param functionSlug - The slug of the edge function to invoke
|
|
1975
1976
|
* @param options - Request options (method, body, headers, etc.)
|
|
@@ -2312,6 +2313,145 @@ declare class BlinkSandboxImpl implements BlinkSandbox {
|
|
|
2312
2313
|
kill(sandboxId: string): Promise<void>;
|
|
2313
2314
|
}
|
|
2314
2315
|
|
|
2316
|
+
/**
|
|
2317
|
+
* Blink Queue Module
|
|
2318
|
+
* Task queues, scheduling, and dead-letter queue management
|
|
2319
|
+
*/
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* Thrown when the workspace has insufficient credits to enqueue a task.
|
|
2323
|
+
* Handle this in your backend to return a graceful response instead of crashing.
|
|
2324
|
+
*
|
|
2325
|
+
* @example
|
|
2326
|
+
* try {
|
|
2327
|
+
* await blink.queue.enqueue('sendEmail', { to: user.email })
|
|
2328
|
+
* } catch (err) {
|
|
2329
|
+
* if (err instanceof BlinkQueueCreditError) {
|
|
2330
|
+
* return { status: 'at_capacity', message: 'Service temporarily unavailable, please retry.' }
|
|
2331
|
+
* }
|
|
2332
|
+
* throw err
|
|
2333
|
+
* }
|
|
2334
|
+
*/
|
|
2335
|
+
declare class BlinkQueueCreditError extends Error {
|
|
2336
|
+
readonly code = "INSUFFICIENT_CREDITS";
|
|
2337
|
+
constructor();
|
|
2338
|
+
}
|
|
2339
|
+
interface QueueOptions {
|
|
2340
|
+
queue?: string;
|
|
2341
|
+
delay?: string;
|
|
2342
|
+
retries?: number;
|
|
2343
|
+
timeout?: string;
|
|
2344
|
+
}
|
|
2345
|
+
interface ScheduleOptions {
|
|
2346
|
+
timezone?: string;
|
|
2347
|
+
retries?: number;
|
|
2348
|
+
}
|
|
2349
|
+
interface BlinkQueueTask {
|
|
2350
|
+
id: string;
|
|
2351
|
+
task_name: string;
|
|
2352
|
+
payload: any;
|
|
2353
|
+
status: 'pending' | 'completed' | 'failed' | 'dead' | 'cancelled';
|
|
2354
|
+
queue: string;
|
|
2355
|
+
attempt: number;
|
|
2356
|
+
created_at: string;
|
|
2357
|
+
completed_at?: string;
|
|
2358
|
+
failed_at?: string;
|
|
2359
|
+
error?: string;
|
|
2360
|
+
}
|
|
2361
|
+
interface BlinkQueueSchedule {
|
|
2362
|
+
name: string;
|
|
2363
|
+
schedule_id: string;
|
|
2364
|
+
cron: string;
|
|
2365
|
+
timezone: string;
|
|
2366
|
+
task_name: string;
|
|
2367
|
+
is_paused: boolean;
|
|
2368
|
+
last_run_at?: string;
|
|
2369
|
+
next_run_at?: string;
|
|
2370
|
+
created_at: string;
|
|
2371
|
+
}
|
|
2372
|
+
interface BlinkQueueStats {
|
|
2373
|
+
pending: number;
|
|
2374
|
+
completed: number;
|
|
2375
|
+
failed: number;
|
|
2376
|
+
dead: number;
|
|
2377
|
+
schedules: number;
|
|
2378
|
+
}
|
|
2379
|
+
interface BlinkQueue {
|
|
2380
|
+
enqueue(taskName: string, payload?: any, options?: QueueOptions): Promise<{
|
|
2381
|
+
taskId: string;
|
|
2382
|
+
status: string;
|
|
2383
|
+
messageId: string;
|
|
2384
|
+
}>;
|
|
2385
|
+
list(filter?: {
|
|
2386
|
+
status?: string;
|
|
2387
|
+
queue?: string;
|
|
2388
|
+
limit?: number;
|
|
2389
|
+
}): Promise<BlinkQueueTask[]>;
|
|
2390
|
+
get(taskId: string): Promise<BlinkQueueTask>;
|
|
2391
|
+
cancel(taskId: string): Promise<void>;
|
|
2392
|
+
schedule(name: string, cron: string, payload?: any, options?: ScheduleOptions): Promise<{
|
|
2393
|
+
scheduleId: string;
|
|
2394
|
+
name: string;
|
|
2395
|
+
}>;
|
|
2396
|
+
listSchedules(): Promise<BlinkQueueSchedule[]>;
|
|
2397
|
+
pauseSchedule(name: string): Promise<void>;
|
|
2398
|
+
resumeSchedule(name: string): Promise<void>;
|
|
2399
|
+
deleteSchedule(name: string): Promise<void>;
|
|
2400
|
+
createQueue(name: string, options?: {
|
|
2401
|
+
parallelism?: number;
|
|
2402
|
+
}): Promise<void>;
|
|
2403
|
+
listQueues(): Promise<Array<{
|
|
2404
|
+
name: string;
|
|
2405
|
+
parallelism: number;
|
|
2406
|
+
}>>;
|
|
2407
|
+
deleteQueue(name: string): Promise<void>;
|
|
2408
|
+
listDead(): Promise<any[]>;
|
|
2409
|
+
retryDead(dlqId: string): Promise<{
|
|
2410
|
+
messageId: string;
|
|
2411
|
+
}>;
|
|
2412
|
+
purgeDead(): Promise<void>;
|
|
2413
|
+
stats(): Promise<BlinkQueueStats>;
|
|
2414
|
+
}
|
|
2415
|
+
declare class BlinkQueueImpl implements BlinkQueue {
|
|
2416
|
+
private httpClient;
|
|
2417
|
+
constructor(httpClient: HttpClient);
|
|
2418
|
+
private get basePath();
|
|
2419
|
+
enqueue(taskName: string, payload?: any, options?: QueueOptions): Promise<{
|
|
2420
|
+
taskId: string;
|
|
2421
|
+
status: string;
|
|
2422
|
+
messageId: string;
|
|
2423
|
+
}>;
|
|
2424
|
+
list(filter?: {
|
|
2425
|
+
status?: string;
|
|
2426
|
+
queue?: string;
|
|
2427
|
+
limit?: number;
|
|
2428
|
+
}): Promise<BlinkQueueTask[]>;
|
|
2429
|
+
get(taskId: string): Promise<BlinkQueueTask>;
|
|
2430
|
+
cancel(taskId: string): Promise<void>;
|
|
2431
|
+
schedule(name: string, cron: string, payload?: any, options?: ScheduleOptions): Promise<{
|
|
2432
|
+
scheduleId: string;
|
|
2433
|
+
name: string;
|
|
2434
|
+
}>;
|
|
2435
|
+
listSchedules(): Promise<BlinkQueueSchedule[]>;
|
|
2436
|
+
pauseSchedule(name: string): Promise<void>;
|
|
2437
|
+
resumeSchedule(name: string): Promise<void>;
|
|
2438
|
+
deleteSchedule(name: string): Promise<void>;
|
|
2439
|
+
createQueue(name: string, options?: {
|
|
2440
|
+
parallelism?: number;
|
|
2441
|
+
}): Promise<void>;
|
|
2442
|
+
listQueues(): Promise<{
|
|
2443
|
+
name: string;
|
|
2444
|
+
parallelism: number;
|
|
2445
|
+
}[]>;
|
|
2446
|
+
deleteQueue(name: string): Promise<void>;
|
|
2447
|
+
listDead(): Promise<any[]>;
|
|
2448
|
+
retryDead(dlqId: string): Promise<{
|
|
2449
|
+
messageId: string;
|
|
2450
|
+
}>;
|
|
2451
|
+
purgeDead(): Promise<void>;
|
|
2452
|
+
stats(): Promise<BlinkQueueStats>;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2315
2455
|
/**
|
|
2316
2456
|
* Blink Client - Main SDK entry point
|
|
2317
2457
|
* Factory function and client class for the Blink SDK
|
|
@@ -2347,6 +2487,7 @@ interface BlinkClient {
|
|
|
2347
2487
|
functions: BlinkFunctions;
|
|
2348
2488
|
rag: BlinkRAG;
|
|
2349
2489
|
sandbox: BlinkSandbox;
|
|
2490
|
+
queue: BlinkQueue;
|
|
2350
2491
|
}
|
|
2351
2492
|
declare class BlinkClientImpl implements BlinkClient {
|
|
2352
2493
|
auth: BlinkAuth;
|
|
@@ -2361,6 +2502,7 @@ declare class BlinkClientImpl implements BlinkClient {
|
|
|
2361
2502
|
functions: BlinkFunctions;
|
|
2362
2503
|
rag: BlinkRAG;
|
|
2363
2504
|
sandbox: BlinkSandbox;
|
|
2505
|
+
queue: BlinkQueue;
|
|
2364
2506
|
/** @internal HTTP client for Agent auto-binding */
|
|
2365
2507
|
_httpClient: HttpClient;
|
|
2366
2508
|
constructor(config: BlinkClientConfig);
|
|
@@ -3777,4 +3919,4 @@ declare const mediaTools: readonly ["generate_image", "edit_image", "generate_vi
|
|
|
3777
3919
|
*/
|
|
3778
3920
|
declare function serializeTools(tools: string[]): string[];
|
|
3779
3921
|
|
|
3780
|
-
export { type AISearchOptions, Agent, type AgentBilling, type AgentConfig, type AgentNonStreamMessagesRequest, type AgentNonStreamPromptRequest, type AgentOptions, type AgentRequest, type AgentResponse, type AgentStep, type AgentStreamRequest, type TokenUsage as AgentTokenUsage, type AnalyticsEvent, AsyncStorageAdapter, type AuthState, type AuthStateChangeCallback, type AuthTokens, type BlinkAI, BlinkAIImpl, type BlinkAnalytics, BlinkAnalyticsImpl, type BlinkClient, type BlinkClientConfig, BlinkConnectorError, type BlinkConnectors, BlinkConnectorsImpl, type BlinkData, BlinkDataImpl, BlinkDatabase, type BlinkRAG, BlinkRAGImpl, type BlinkRealtime, BlinkRealtimeChannel, BlinkRealtimeError, BlinkRealtimeImpl, type BlinkSandbox, BlinkSandboxImpl, type BlinkStorage, BlinkStorageImpl, BlinkTable, type BlinkTokenType, type BlinkUser, type ClientTool, type ConnectorApiKeyRequest, type ConnectorApiKeyResponse, type ConnectorAuthMode, type ConnectorExecuteRequest, type ConnectorExecuteResponse, type ConnectorProvider, type ConnectorStatusResponse, type ContextPolicy, type CreateCollectionOptions, type CreateOptions, type DataExtraction, type FileObject, type FilterCondition, type GenerateOptions, type ImageGenerationRequest, type ImageGenerationResponse, type JSONSchema, type ListDocumentsOptions, type Message, NoOpStorageAdapter, type ObjectGenerationRequest, type ObjectGenerationResponse, type PresenceUser, type QueryOptions, type RAGAISearchResult, type RAGAISearchSource, type RAGCollection, type RAGDocument, type RAGSearchResponse, type RAGSearchResult, type RealtimeChannel, type RealtimeGetMessagesOptions, type RealtimeMessage, type RealtimePublishOptions, type RealtimeSubscribeOptions, SANDBOX_TEMPLATES, type Sandbox, type SandboxConnectOptions, SandboxConnectionError, type SandboxCreateOptions, type SandboxTemplate, type SearchOptions, type SearchRequest, type SearchResponse, type SpeechGenerationRequest, type SpeechGenerationResponse, type StopCondition, type StorageAdapter, type StorageUploadOptions, type StorageUploadResponse, type StreamOptions, type TableOperations, type TextGenerationRequest, type TextGenerationResponse, type TokenIntrospectionResult, type TokenUsage$1 as TokenUsage, type ToolCall, type ToolResult, type TranscriptionRequest, type TranscriptionResponse, type UIMessage, type UIMessagePart, type UpdateOptions, type UploadOptions, type UpsertOptions, type WaitForReadyOptions, type WebBrowserModule, WebStorageAdapter, type WebhookTool, coreTools, createClient, dbDelete, dbGet, dbInsert, dbList, dbTools, dbUpdate, editImage, fetchUrl, generateImage, generateVideo, getDefaultClient, getDefaultStorageAdapter, getHost, globFileSearch, grep, imageToVideo, isBrowser, isDeno, isNode, isReactNative, isServer, isWeb, listDir, mediaTools, platform, ragSearch, ragTools, readFile, runCode, runTerminalCmd, sandboxTools, searchReplace, serializeTools, stepCountIs, storageCopy, storageDelete, storageDownload, storageList, storageMove, storagePublicUrl, storageTools, storageUpload, webSearch, writeFile };
|
|
3922
|
+
export { type AISearchOptions, Agent, type AgentBilling, type AgentConfig, type AgentNonStreamMessagesRequest, type AgentNonStreamPromptRequest, type AgentOptions, type AgentRequest, type AgentResponse, type AgentStep, type AgentStreamRequest, type TokenUsage as AgentTokenUsage, type AnalyticsEvent, AsyncStorageAdapter, type AuthState, type AuthStateChangeCallback, type AuthTokens, type BlinkAI, BlinkAIImpl, type BlinkAnalytics, BlinkAnalyticsImpl, type BlinkClient, type BlinkClientConfig, BlinkConnectorError, type BlinkConnectors, BlinkConnectorsImpl, type BlinkData, BlinkDataImpl, BlinkDatabase, type BlinkQueue, BlinkQueueCreditError, BlinkQueueImpl, type BlinkQueueSchedule, type BlinkQueueStats, type BlinkQueueTask, type BlinkRAG, BlinkRAGImpl, type BlinkRealtime, BlinkRealtimeChannel, BlinkRealtimeError, BlinkRealtimeImpl, type BlinkSandbox, BlinkSandboxImpl, type BlinkStorage, BlinkStorageImpl, BlinkTable, type BlinkTokenType, type BlinkUser, type ClientTool, type ConnectorApiKeyRequest, type ConnectorApiKeyResponse, type ConnectorAuthMode, type ConnectorExecuteRequest, type ConnectorExecuteResponse, type ConnectorProvider, type ConnectorStatusResponse, type ContextPolicy, type CreateCollectionOptions, type CreateOptions, type DataExtraction, type FileObject, type FilterCondition, type GenerateOptions, type ImageGenerationRequest, type ImageGenerationResponse, type JSONSchema, type ListDocumentsOptions, type Message, NoOpStorageAdapter, type ObjectGenerationRequest, type ObjectGenerationResponse, type PresenceUser, type QueryOptions, type QueueOptions, type RAGAISearchResult, type RAGAISearchSource, type RAGCollection, type RAGDocument, type RAGSearchResponse, type RAGSearchResult, type RealtimeChannel, type RealtimeGetMessagesOptions, type RealtimeMessage, type RealtimePublishOptions, type RealtimeSubscribeOptions, SANDBOX_TEMPLATES, type Sandbox, type SandboxConnectOptions, SandboxConnectionError, type SandboxCreateOptions, type SandboxTemplate, type ScheduleOptions, type SearchOptions, type SearchRequest, type SearchResponse, type SpeechGenerationRequest, type SpeechGenerationResponse, type StopCondition, type StorageAdapter, type StorageUploadOptions, type StorageUploadResponse, type StreamOptions, type TableOperations, type TextGenerationRequest, type TextGenerationResponse, type TokenIntrospectionResult, type TokenUsage$1 as TokenUsage, type ToolCall, type ToolResult, type TranscriptionRequest, type TranscriptionResponse, type UIMessage, type UIMessagePart, type UpdateOptions, type UploadOptions, type UpsertOptions, type WaitForReadyOptions, type WebBrowserModule, WebStorageAdapter, type WebhookTool, coreTools, createClient, dbDelete, dbGet, dbInsert, dbList, dbTools, dbUpdate, editImage, fetchUrl, generateImage, generateVideo, getDefaultClient, getDefaultStorageAdapter, getHost, globFileSearch, grep, imageToVideo, isBrowser, isDeno, isNode, isReactNative, isServer, isWeb, listDir, mediaTools, platform, ragSearch, ragTools, readFile, runCode, runTerminalCmd, sandboxTools, searchReplace, serializeTools, stepCountIs, storageCopy, storageDelete, storageDownload, storageList, storageMove, storagePublicUrl, storageTools, storageUpload, webSearch, writeFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1969,7 +1969,8 @@ interface BlinkFunctions {
|
|
|
1969
1969
|
* Invoke a Blink Edge Function.
|
|
1970
1970
|
*
|
|
1971
1971
|
* Automatically attaches the user's JWT for authenticated requests.
|
|
1972
|
-
* The function URL is constructed as: https://{
|
|
1972
|
+
* The function URL is constructed as: https://{projectId8}.backend.blink.new/{functionSlug}
|
|
1973
|
+
* User-supplied headers take precedence over the auto-attached Authorization header.
|
|
1973
1974
|
*
|
|
1974
1975
|
* @param functionSlug - The slug of the edge function to invoke
|
|
1975
1976
|
* @param options - Request options (method, body, headers, etc.)
|
|
@@ -2312,6 +2313,145 @@ declare class BlinkSandboxImpl implements BlinkSandbox {
|
|
|
2312
2313
|
kill(sandboxId: string): Promise<void>;
|
|
2313
2314
|
}
|
|
2314
2315
|
|
|
2316
|
+
/**
|
|
2317
|
+
* Blink Queue Module
|
|
2318
|
+
* Task queues, scheduling, and dead-letter queue management
|
|
2319
|
+
*/
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* Thrown when the workspace has insufficient credits to enqueue a task.
|
|
2323
|
+
* Handle this in your backend to return a graceful response instead of crashing.
|
|
2324
|
+
*
|
|
2325
|
+
* @example
|
|
2326
|
+
* try {
|
|
2327
|
+
* await blink.queue.enqueue('sendEmail', { to: user.email })
|
|
2328
|
+
* } catch (err) {
|
|
2329
|
+
* if (err instanceof BlinkQueueCreditError) {
|
|
2330
|
+
* return { status: 'at_capacity', message: 'Service temporarily unavailable, please retry.' }
|
|
2331
|
+
* }
|
|
2332
|
+
* throw err
|
|
2333
|
+
* }
|
|
2334
|
+
*/
|
|
2335
|
+
declare class BlinkQueueCreditError extends Error {
|
|
2336
|
+
readonly code = "INSUFFICIENT_CREDITS";
|
|
2337
|
+
constructor();
|
|
2338
|
+
}
|
|
2339
|
+
interface QueueOptions {
|
|
2340
|
+
queue?: string;
|
|
2341
|
+
delay?: string;
|
|
2342
|
+
retries?: number;
|
|
2343
|
+
timeout?: string;
|
|
2344
|
+
}
|
|
2345
|
+
interface ScheduleOptions {
|
|
2346
|
+
timezone?: string;
|
|
2347
|
+
retries?: number;
|
|
2348
|
+
}
|
|
2349
|
+
interface BlinkQueueTask {
|
|
2350
|
+
id: string;
|
|
2351
|
+
task_name: string;
|
|
2352
|
+
payload: any;
|
|
2353
|
+
status: 'pending' | 'completed' | 'failed' | 'dead' | 'cancelled';
|
|
2354
|
+
queue: string;
|
|
2355
|
+
attempt: number;
|
|
2356
|
+
created_at: string;
|
|
2357
|
+
completed_at?: string;
|
|
2358
|
+
failed_at?: string;
|
|
2359
|
+
error?: string;
|
|
2360
|
+
}
|
|
2361
|
+
interface BlinkQueueSchedule {
|
|
2362
|
+
name: string;
|
|
2363
|
+
schedule_id: string;
|
|
2364
|
+
cron: string;
|
|
2365
|
+
timezone: string;
|
|
2366
|
+
task_name: string;
|
|
2367
|
+
is_paused: boolean;
|
|
2368
|
+
last_run_at?: string;
|
|
2369
|
+
next_run_at?: string;
|
|
2370
|
+
created_at: string;
|
|
2371
|
+
}
|
|
2372
|
+
interface BlinkQueueStats {
|
|
2373
|
+
pending: number;
|
|
2374
|
+
completed: number;
|
|
2375
|
+
failed: number;
|
|
2376
|
+
dead: number;
|
|
2377
|
+
schedules: number;
|
|
2378
|
+
}
|
|
2379
|
+
interface BlinkQueue {
|
|
2380
|
+
enqueue(taskName: string, payload?: any, options?: QueueOptions): Promise<{
|
|
2381
|
+
taskId: string;
|
|
2382
|
+
status: string;
|
|
2383
|
+
messageId: string;
|
|
2384
|
+
}>;
|
|
2385
|
+
list(filter?: {
|
|
2386
|
+
status?: string;
|
|
2387
|
+
queue?: string;
|
|
2388
|
+
limit?: number;
|
|
2389
|
+
}): Promise<BlinkQueueTask[]>;
|
|
2390
|
+
get(taskId: string): Promise<BlinkQueueTask>;
|
|
2391
|
+
cancel(taskId: string): Promise<void>;
|
|
2392
|
+
schedule(name: string, cron: string, payload?: any, options?: ScheduleOptions): Promise<{
|
|
2393
|
+
scheduleId: string;
|
|
2394
|
+
name: string;
|
|
2395
|
+
}>;
|
|
2396
|
+
listSchedules(): Promise<BlinkQueueSchedule[]>;
|
|
2397
|
+
pauseSchedule(name: string): Promise<void>;
|
|
2398
|
+
resumeSchedule(name: string): Promise<void>;
|
|
2399
|
+
deleteSchedule(name: string): Promise<void>;
|
|
2400
|
+
createQueue(name: string, options?: {
|
|
2401
|
+
parallelism?: number;
|
|
2402
|
+
}): Promise<void>;
|
|
2403
|
+
listQueues(): Promise<Array<{
|
|
2404
|
+
name: string;
|
|
2405
|
+
parallelism: number;
|
|
2406
|
+
}>>;
|
|
2407
|
+
deleteQueue(name: string): Promise<void>;
|
|
2408
|
+
listDead(): Promise<any[]>;
|
|
2409
|
+
retryDead(dlqId: string): Promise<{
|
|
2410
|
+
messageId: string;
|
|
2411
|
+
}>;
|
|
2412
|
+
purgeDead(): Promise<void>;
|
|
2413
|
+
stats(): Promise<BlinkQueueStats>;
|
|
2414
|
+
}
|
|
2415
|
+
declare class BlinkQueueImpl implements BlinkQueue {
|
|
2416
|
+
private httpClient;
|
|
2417
|
+
constructor(httpClient: HttpClient);
|
|
2418
|
+
private get basePath();
|
|
2419
|
+
enqueue(taskName: string, payload?: any, options?: QueueOptions): Promise<{
|
|
2420
|
+
taskId: string;
|
|
2421
|
+
status: string;
|
|
2422
|
+
messageId: string;
|
|
2423
|
+
}>;
|
|
2424
|
+
list(filter?: {
|
|
2425
|
+
status?: string;
|
|
2426
|
+
queue?: string;
|
|
2427
|
+
limit?: number;
|
|
2428
|
+
}): Promise<BlinkQueueTask[]>;
|
|
2429
|
+
get(taskId: string): Promise<BlinkQueueTask>;
|
|
2430
|
+
cancel(taskId: string): Promise<void>;
|
|
2431
|
+
schedule(name: string, cron: string, payload?: any, options?: ScheduleOptions): Promise<{
|
|
2432
|
+
scheduleId: string;
|
|
2433
|
+
name: string;
|
|
2434
|
+
}>;
|
|
2435
|
+
listSchedules(): Promise<BlinkQueueSchedule[]>;
|
|
2436
|
+
pauseSchedule(name: string): Promise<void>;
|
|
2437
|
+
resumeSchedule(name: string): Promise<void>;
|
|
2438
|
+
deleteSchedule(name: string): Promise<void>;
|
|
2439
|
+
createQueue(name: string, options?: {
|
|
2440
|
+
parallelism?: number;
|
|
2441
|
+
}): Promise<void>;
|
|
2442
|
+
listQueues(): Promise<{
|
|
2443
|
+
name: string;
|
|
2444
|
+
parallelism: number;
|
|
2445
|
+
}[]>;
|
|
2446
|
+
deleteQueue(name: string): Promise<void>;
|
|
2447
|
+
listDead(): Promise<any[]>;
|
|
2448
|
+
retryDead(dlqId: string): Promise<{
|
|
2449
|
+
messageId: string;
|
|
2450
|
+
}>;
|
|
2451
|
+
purgeDead(): Promise<void>;
|
|
2452
|
+
stats(): Promise<BlinkQueueStats>;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2315
2455
|
/**
|
|
2316
2456
|
* Blink Client - Main SDK entry point
|
|
2317
2457
|
* Factory function and client class for the Blink SDK
|
|
@@ -2347,6 +2487,7 @@ interface BlinkClient {
|
|
|
2347
2487
|
functions: BlinkFunctions;
|
|
2348
2488
|
rag: BlinkRAG;
|
|
2349
2489
|
sandbox: BlinkSandbox;
|
|
2490
|
+
queue: BlinkQueue;
|
|
2350
2491
|
}
|
|
2351
2492
|
declare class BlinkClientImpl implements BlinkClient {
|
|
2352
2493
|
auth: BlinkAuth;
|
|
@@ -2361,6 +2502,7 @@ declare class BlinkClientImpl implements BlinkClient {
|
|
|
2361
2502
|
functions: BlinkFunctions;
|
|
2362
2503
|
rag: BlinkRAG;
|
|
2363
2504
|
sandbox: BlinkSandbox;
|
|
2505
|
+
queue: BlinkQueue;
|
|
2364
2506
|
/** @internal HTTP client for Agent auto-binding */
|
|
2365
2507
|
_httpClient: HttpClient;
|
|
2366
2508
|
constructor(config: BlinkClientConfig);
|
|
@@ -3777,4 +3919,4 @@ declare const mediaTools: readonly ["generate_image", "edit_image", "generate_vi
|
|
|
3777
3919
|
*/
|
|
3778
3920
|
declare function serializeTools(tools: string[]): string[];
|
|
3779
3921
|
|
|
3780
|
-
export { type AISearchOptions, Agent, type AgentBilling, type AgentConfig, type AgentNonStreamMessagesRequest, type AgentNonStreamPromptRequest, type AgentOptions, type AgentRequest, type AgentResponse, type AgentStep, type AgentStreamRequest, type TokenUsage as AgentTokenUsage, type AnalyticsEvent, AsyncStorageAdapter, type AuthState, type AuthStateChangeCallback, type AuthTokens, type BlinkAI, BlinkAIImpl, type BlinkAnalytics, BlinkAnalyticsImpl, type BlinkClient, type BlinkClientConfig, BlinkConnectorError, type BlinkConnectors, BlinkConnectorsImpl, type BlinkData, BlinkDataImpl, BlinkDatabase, type BlinkRAG, BlinkRAGImpl, type BlinkRealtime, BlinkRealtimeChannel, BlinkRealtimeError, BlinkRealtimeImpl, type BlinkSandbox, BlinkSandboxImpl, type BlinkStorage, BlinkStorageImpl, BlinkTable, type BlinkTokenType, type BlinkUser, type ClientTool, type ConnectorApiKeyRequest, type ConnectorApiKeyResponse, type ConnectorAuthMode, type ConnectorExecuteRequest, type ConnectorExecuteResponse, type ConnectorProvider, type ConnectorStatusResponse, type ContextPolicy, type CreateCollectionOptions, type CreateOptions, type DataExtraction, type FileObject, type FilterCondition, type GenerateOptions, type ImageGenerationRequest, type ImageGenerationResponse, type JSONSchema, type ListDocumentsOptions, type Message, NoOpStorageAdapter, type ObjectGenerationRequest, type ObjectGenerationResponse, type PresenceUser, type QueryOptions, type RAGAISearchResult, type RAGAISearchSource, type RAGCollection, type RAGDocument, type RAGSearchResponse, type RAGSearchResult, type RealtimeChannel, type RealtimeGetMessagesOptions, type RealtimeMessage, type RealtimePublishOptions, type RealtimeSubscribeOptions, SANDBOX_TEMPLATES, type Sandbox, type SandboxConnectOptions, SandboxConnectionError, type SandboxCreateOptions, type SandboxTemplate, type SearchOptions, type SearchRequest, type SearchResponse, type SpeechGenerationRequest, type SpeechGenerationResponse, type StopCondition, type StorageAdapter, type StorageUploadOptions, type StorageUploadResponse, type StreamOptions, type TableOperations, type TextGenerationRequest, type TextGenerationResponse, type TokenIntrospectionResult, type TokenUsage$1 as TokenUsage, type ToolCall, type ToolResult, type TranscriptionRequest, type TranscriptionResponse, type UIMessage, type UIMessagePart, type UpdateOptions, type UploadOptions, type UpsertOptions, type WaitForReadyOptions, type WebBrowserModule, WebStorageAdapter, type WebhookTool, coreTools, createClient, dbDelete, dbGet, dbInsert, dbList, dbTools, dbUpdate, editImage, fetchUrl, generateImage, generateVideo, getDefaultClient, getDefaultStorageAdapter, getHost, globFileSearch, grep, imageToVideo, isBrowser, isDeno, isNode, isReactNative, isServer, isWeb, listDir, mediaTools, platform, ragSearch, ragTools, readFile, runCode, runTerminalCmd, sandboxTools, searchReplace, serializeTools, stepCountIs, storageCopy, storageDelete, storageDownload, storageList, storageMove, storagePublicUrl, storageTools, storageUpload, webSearch, writeFile };
|
|
3922
|
+
export { type AISearchOptions, Agent, type AgentBilling, type AgentConfig, type AgentNonStreamMessagesRequest, type AgentNonStreamPromptRequest, type AgentOptions, type AgentRequest, type AgentResponse, type AgentStep, type AgentStreamRequest, type TokenUsage as AgentTokenUsage, type AnalyticsEvent, AsyncStorageAdapter, type AuthState, type AuthStateChangeCallback, type AuthTokens, type BlinkAI, BlinkAIImpl, type BlinkAnalytics, BlinkAnalyticsImpl, type BlinkClient, type BlinkClientConfig, BlinkConnectorError, type BlinkConnectors, BlinkConnectorsImpl, type BlinkData, BlinkDataImpl, BlinkDatabase, type BlinkQueue, BlinkQueueCreditError, BlinkQueueImpl, type BlinkQueueSchedule, type BlinkQueueStats, type BlinkQueueTask, type BlinkRAG, BlinkRAGImpl, type BlinkRealtime, BlinkRealtimeChannel, BlinkRealtimeError, BlinkRealtimeImpl, type BlinkSandbox, BlinkSandboxImpl, type BlinkStorage, BlinkStorageImpl, BlinkTable, type BlinkTokenType, type BlinkUser, type ClientTool, type ConnectorApiKeyRequest, type ConnectorApiKeyResponse, type ConnectorAuthMode, type ConnectorExecuteRequest, type ConnectorExecuteResponse, type ConnectorProvider, type ConnectorStatusResponse, type ContextPolicy, type CreateCollectionOptions, type CreateOptions, type DataExtraction, type FileObject, type FilterCondition, type GenerateOptions, type ImageGenerationRequest, type ImageGenerationResponse, type JSONSchema, type ListDocumentsOptions, type Message, NoOpStorageAdapter, type ObjectGenerationRequest, type ObjectGenerationResponse, type PresenceUser, type QueryOptions, type QueueOptions, type RAGAISearchResult, type RAGAISearchSource, type RAGCollection, type RAGDocument, type RAGSearchResponse, type RAGSearchResult, type RealtimeChannel, type RealtimeGetMessagesOptions, type RealtimeMessage, type RealtimePublishOptions, type RealtimeSubscribeOptions, SANDBOX_TEMPLATES, type Sandbox, type SandboxConnectOptions, SandboxConnectionError, type SandboxCreateOptions, type SandboxTemplate, type ScheduleOptions, type SearchOptions, type SearchRequest, type SearchResponse, type SpeechGenerationRequest, type SpeechGenerationResponse, type StopCondition, type StorageAdapter, type StorageUploadOptions, type StorageUploadResponse, type StreamOptions, type TableOperations, type TextGenerationRequest, type TextGenerationResponse, type TokenIntrospectionResult, type TokenUsage$1 as TokenUsage, type ToolCall, type ToolResult, type TranscriptionRequest, type TranscriptionResponse, type UIMessage, type UIMessagePart, type UpdateOptions, type UploadOptions, type UpsertOptions, type WaitForReadyOptions, type WebBrowserModule, WebStorageAdapter, type WebhookTool, coreTools, createClient, dbDelete, dbGet, dbInsert, dbList, dbTools, dbUpdate, editImage, fetchUrl, generateImage, generateVideo, getDefaultClient, getDefaultStorageAdapter, getHost, globFileSearch, grep, imageToVideo, isBrowser, isDeno, isNode, isReactNative, isServer, isWeb, listDir, mediaTools, platform, ragSearch, ragTools, readFile, runCode, runTerminalCmd, sandboxTools, searchReplace, serializeTools, stepCountIs, storageCopy, storageDelete, storageDownload, storageList, storageMove, storagePublicUrl, storageTools, storageUpload, webSearch, writeFile };
|