veryfront 0.1.564 → 0.1.565
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/esm/deno.js +1 -1
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/conversation.js +22 -0
- package/esm/src/chat/types.d.ts +1 -1
- package/esm/src/chat/types.d.ts.map +1 -1
- package/esm/src/integrations/_data.js +1 -1
- package/esm/src/jobs/index.d.ts +1 -1
- package/esm/src/jobs/index.d.ts.map +1 -1
- package/esm/src/jobs/jobs-client.d.ts +11 -6
- package/esm/src/jobs/jobs-client.d.ts.map +1 -1
- package/esm/src/jobs/jobs-client.js +8 -4
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/src/chat/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/src/chat/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAEV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,uCAAuC;AACvC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmC,CAAC;AAElE,4CAA4C;AAC5C,MAAM,MAAM,WAA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AAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAOxE;AAED,4CAA4C;AAC5C,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEhE;AAED,iDAAiD;AACjD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAE1E;AAED,2CAA2C;AAC3C,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAoB5E;AAwcD,sDAAsD;AACtD,wBAAgB,wCAAwC,CACtD,QAAQ,EAAE,aAAa,EAAE,GACxB,oBAAoB,EAAE,CAexB;AAED;;GAEG;AACH,0DAA0D;AAC1D,eAAO,MAAM,gCAAgC,iDAA2C,CAAC"}
|
|
@@ -677,6 +677,26 @@ function convertAssistantMessage(message) {
|
|
|
677
677
|
flushAssistantMessage(deferredAssistantContent);
|
|
678
678
|
return messages;
|
|
679
679
|
}
|
|
680
|
+
function convertToolMessage(message) {
|
|
681
|
+
const rawToolNameMap = buildRawToolNameMap(message.parts);
|
|
682
|
+
const toolResults = [];
|
|
683
|
+
for (const part of message.parts) {
|
|
684
|
+
const rawResult = getRawToolResultPart(part);
|
|
685
|
+
if (!rawResult) {
|
|
686
|
+
continue;
|
|
687
|
+
}
|
|
688
|
+
toolResults.push({
|
|
689
|
+
type: "tool-result",
|
|
690
|
+
toolCallId: rawResult.toolCallId,
|
|
691
|
+
toolName: rawResult.toolName ?? rawToolNameMap.get(rawResult.toolCallId) ?? "unknown",
|
|
692
|
+
output: rawResult.output,
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
if (toolResults.length === 0) {
|
|
696
|
+
return [];
|
|
697
|
+
}
|
|
698
|
+
return [{ role: "tool", content: toolResults }];
|
|
699
|
+
}
|
|
680
700
|
/** Convert UI messages to provider model messages. */
|
|
681
701
|
export function convertUiMessagesToProviderModelMessages(messages) {
|
|
682
702
|
return messages.flatMap((message) => {
|
|
@@ -687,6 +707,8 @@ export function convertUiMessagesToProviderModelMessages(messages) {
|
|
|
687
707
|
return convertUserMessage(message);
|
|
688
708
|
case "assistant":
|
|
689
709
|
return convertAssistantMessage(message);
|
|
710
|
+
case "tool":
|
|
711
|
+
return convertToolMessage(message);
|
|
690
712
|
default:
|
|
691
713
|
return [];
|
|
692
714
|
}
|
package/esm/src/chat/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const textFileExtensions: readonly [".txt", ".md", ".json", ".xml
|
|
|
5
5
|
/** Image media types that chat uploads can display natively. */
|
|
6
6
|
export declare const imageFileTypes: readonly ["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp", "image/bmp", "image/tiff"];
|
|
7
7
|
/** Public API contract for chat UI message role. */
|
|
8
|
-
export type ChatUiMessageRole = "system" | "user" | "assistant";
|
|
8
|
+
export type ChatUiMessageRole = "system" | "user" | "assistant" | "tool";
|
|
9
9
|
/** Public API contract for chat text UI part. */
|
|
10
10
|
export type ChatTextUiPart = {
|
|
11
11
|
type: "text";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/chat/types.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,WAAW,EAAmB,MAAM,+BAA+B,CAAC;AAuClF,4DAA4D;AAC5D,eAAO,MAAM,kBAAkB,gSAA0D,CAAC;AAE1F,gEAAgE;AAChE,eAAO,MAAM,cAAc,yGAQjB,CAAC;AAMX,oDAAoD;AACpD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/chat/types.ts"],"names":[],"mappings":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and manage your Snowflake data warehouse with SQL operations across databases, schemas, and tables", "auth": { "type": "api-key", "requiredApis": [{ "name": "Snowflake Account", "enableUrl": "https://app.snowflake.com/" }] }, "envVars": [{ "name": "SNOWFLAKE_ACCOUNT", "description": "Your Snowflake account identifier (e.g., xy12345.us-east-1)", "required": true, "sensitive": false, "docsUrl": "https://docs.snowflake.com/en/user-guide/admin-account-identifier" }, { "name": "SNOWFLAKE_USERNAME", "description": "Snowflake username for authentication", "required": true, "sensitive": false, "docsUrl": "https://docs.snowflake.com/en/user-guide/admin-user-management" }, { "name": "SNOWFLAKE_PASSWORD", "description": "Snowflake password for authentication", "required": true, "sensitive": true, "docsUrl": "https://docs.snowflake.com/en/user-guide/admin-user-management" }, { "name": "SNOWFLAKE_WAREHOUSE", "description": "Default warehouse to use for queries (e.g., COMPUTE_WH)", "required": true, "sensitive": false, "docsUrl": "https://docs.snowflake.com/en/user-guide/warehouses" }, { "name": "SNOWFLAKE_DATABASE", "description": "Default database to use for queries", "required": false, "sensitive": false, "docsUrl": "https://docs.snowflake.com/en/user-guide/databases" }, { "name": "SNOWFLAKE_SCHEMA", "description": "Default schema to use for queries (defaults to PUBLIC)", "required": false, "sensitive": false, "docsUrl": "https://docs.snowflake.com/en/user-guide/schemas" }], "tools": [{ "id": "run_query", "name": "Run Query", "description": "Execute a SQL query against your Snowflake data warehouse", "requiresWrite": false }, { "id": "list_databases", "name": "List Databases", "description": "List all databases in your Snowflake account", "requiresWrite": false }, { "id": "list_schemas", "name": "List Schemas", "description": "List all schemas in a Snowflake database", "requiresWrite": false }, { "id": "list_tables", "name": "List Tables", "description": "List all tables in a Snowflake database schema", "requiresWrite": false }, { "id": "describe_table", "name": "Describe Table", "description": "Get detailed column information for a specific table", "requiresWrite": false }], "prompts": [{ "id": "query_data", "title": "Query my data warehouse", "prompt": "Help me query data from my Snowflake data warehouse. Show me specific records or analyze patterns.", "category": "data", "icon": "search" }, { "id": "analyze_tables", "title": "Analyze table structure", "prompt": "Show me the structure of tables in my Snowflake database and help me understand the schema.", "category": "data", "icon": "database" }, { "id": "data_insights", "title": "Generate insights", "prompt": "Analyze my Snowflake data and generate insights about trends, patterns, and anomalies.", "category": "analytics", "icon": "chart" }, { "id": "optimize_queries", "title": "Optimize queries", "prompt": "Help me optimize my SQL queries for better performance in Snowflake.", "category": "analytics", "icon": "lightning" }], "suggestedWith": ["github", "slack", "notion"] },
|
|
34
34
|
{ "name": "stripe", "displayName": "Stripe", "icon": "stripe.svg", "description": "Access Stripe payment data, customers, subscriptions, and balance information", "auth": { "type": "api-key", "requiredApis": [{ "name": "Stripe API", "enableUrl": "https://dashboard.stripe.com/apikeys" }], "keyName": "STRIPE_SECRET_KEY", "headerName": "Authorization", "headerPrefix": "Bearer" }, "envVars": [{ "name": "STRIPE_SECRET_KEY", "description": "Stripe Secret Key (starts with sk_)", "required": true, "sensitive": true, "docsUrl": "https://dashboard.stripe.com/apikeys" }, { "name": "STRIPE_WEBHOOK_SECRET", "description": "Stripe Webhook Secret (optional, for webhook verification)", "required": false, "sensitive": true, "docsUrl": "https://dashboard.stripe.com/webhooks" }], "tools": [{ "id": "list_customers", "name": "List Customers", "description": "List Stripe customers with optional filtering", "requiresWrite": false }, { "id": "get_customer", "name": "Get Customer", "description": "Retrieve detailed information about a specific customer", "requiresWrite": false }, { "id": "list_payments", "name": "List Payments", "description": "List payment intents with optional status filtering", "requiresWrite": false }, { "id": "get_balance", "name": "Get Balance", "description": "Retrieve the current account balance", "requiresWrite": false }, { "id": "list_subscriptions", "name": "List Subscriptions", "description": "List subscriptions with optional status filtering", "requiresWrite": false }], "prompts": [{ "id": "check_balance", "title": "Check account balance", "prompt": "Check my Stripe account balance and provide a summary of available and pending funds.", "category": "finance", "icon": "currency" }, { "id": "recent_payments", "title": "Recent payments", "prompt": "Show me the most recent successful payments in my Stripe account.", "category": "finance", "icon": "payment" }, { "id": "customer_overview", "title": "Customer overview", "prompt": "Give me an overview of my Stripe customers including total count and recent additions.", "category": "analytics", "icon": "users" }, { "id": "subscription_status", "title": "Subscription status", "prompt": "Show me the status of all active subscriptions and any that are expiring soon.", "category": "analytics", "icon": "repeat" }], "suggestedWith": ["slack", "email", "analytics"] },
|
|
35
35
|
{ "name": "supabase", "displayName": "Supabase", "icon": "supabase.svg", "description": "Query and manage your Supabase database with full CRUD operations", "auth": { "type": "api-key", "requiredApis": [{ "name": "Supabase Project", "enableUrl": "https://supabase.com/dashboard/projects" }] }, "envVars": [{ "name": "SUPABASE_URL", "description": "Your Supabase project URL (e.g., https://xxxxx.supabase.co)", "required": true, "sensitive": false, "docsUrl": "https://supabase.com/docs/guides/api#api-url-and-keys" }, { "name": "SUPABASE_ANON_KEY", "description": "Supabase anonymous/public API key for client-side operations", "required": true, "sensitive": true, "docsUrl": "https://supabase.com/docs/guides/api#api-url-and-keys" }, { "name": "SUPABASE_SERVICE_KEY", "description": "Supabase service role key for server-side operations (bypasses RLS)", "required": true, "sensitive": true, "docsUrl": "https://supabase.com/docs/guides/api#api-url-and-keys" }], "tools": [{ "id": "list_tables", "name": "List Tables", "description": "List all tables in your Supabase database", "requiresWrite": false }, { "id": "query_table", "name": "Query Table", "description": "Select rows from a table with optional filters and sorting", "requiresWrite": false }, { "id": "insert_row", "name": "Insert Row", "description": "Insert a new row into a table", "requiresWrite": true }, { "id": "update_row", "name": "Update Row", "description": "Update an existing row in a table", "requiresWrite": true }, { "id": "delete_row", "name": "Delete Row", "description": "Delete a row from a table", "requiresWrite": true }], "prompts": [{ "id": "query_data", "title": "Query my database", "prompt": "Help me query data from my Supabase database. Show me specific records or analyze patterns.", "category": "data", "icon": "search" }, { "id": "create_record", "title": "Create a record", "prompt": "Create a new record in my Supabase database with the information I provide.", "category": "data", "icon": "plus" }, { "id": "update_records", "title": "Update records", "prompt": "Find and update records in my Supabase database based on specific criteria.", "category": "data", "icon": "edit" }, { "id": "database_stats", "title": "Database statistics", "prompt": "Show me statistics and insights about my Supabase database tables and data.", "category": "analytics", "icon": "chart" }], "suggestedWith": ["github", "slack", "linear"] },
|
|
36
|
-
{ "name": "teams", "displayName": "Microsoft Teams", "icon": "teams.svg", "description": "Send messages and manage Teams chats and channels", "auth": { "type": "oauth2", "provider": "microsoft", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "tokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token", "scopes": ["Chat.Read", "Chat.ReadWrite", "ChannelMessage.Send", "Channel.ReadBasic.All", "Team.ReadBasic.All", "offline_access"], "tokenAuthMethod": "body", "requiredApis": [{ "name": "Microsoft Graph API", "enableUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade" }] }, "envVars": [{ "name": "MICROSOFT_CLIENT_ID", "description": "Microsoft Azure App Client ID (Application ID)", "required": true, "sensitive": false, "docsUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade" }, { "name": "MICROSOFT_CLIENT_SECRET", "description": "Microsoft Azure App Client Secret", "required": true, "sensitive": true, "docsUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade" }], "tools": [{ "id": "list_chats", "name": "List Chats", "description": "List recent Teams chats", "requiresWrite": false, "endpoint": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/me/chats", "params": { "$top": { "type": "number", "in": "query", "description": "Maximum chats to return", "default": 50 } }, "response": { "transform": "value" } } }, { "id": "get_messages", "name": "Get Messages", "description": "Get messages from a specific chat", "requiresWrite": false, "endpoint": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/chats/{chatId}/messages", "params": { "chatId": { "type": "string", "in": "path", "description": "Microsoft Teams chat ID", "required": true }, "$top": { "type": "number", "in": "query", "description": "Maximum messages to return", "default": 50 } }, "response": { "transform": "value" } } }, { "id": "send_message", "name": "Send Message", "description": "Send a message to a
|
|
36
|
+
{ "name": "teams", "displayName": "Microsoft Teams", "icon": "teams.svg", "description": "Send messages and manage Teams chats and channels", "auth": { "type": "oauth2", "provider": "microsoft", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "tokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token", "scopes": ["Chat.Read", "Chat.ReadWrite", "ChannelMessage.Send", "Channel.ReadBasic.All", "Team.ReadBasic.All", "offline_access"], "tokenAuthMethod": "body", "requiredApis": [{ "name": "Microsoft Graph API", "enableUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade" }] }, "envVars": [{ "name": "MICROSOFT_CLIENT_ID", "description": "Microsoft Azure App Client ID (Application ID)", "required": true, "sensitive": false, "docsUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade" }, { "name": "MICROSOFT_CLIENT_SECRET", "description": "Microsoft Azure App Client Secret", "required": true, "sensitive": true, "docsUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade" }], "tools": [{ "id": "list_chats", "name": "List Chats", "description": "List recent Teams chats", "requiresWrite": false, "endpoint": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/me/chats", "params": { "$top": { "type": "number", "in": "query", "description": "Maximum chats to return", "default": 50 } }, "response": { "transform": "value" } } }, { "id": "get_messages", "name": "Get Messages", "description": "Get messages from a specific chat", "requiresWrite": false, "endpoint": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/chats/{chatId}/messages", "params": { "chatId": { "type": "string", "in": "path", "description": "Microsoft Teams chat ID", "required": true }, "$top": { "type": "number", "in": "query", "description": "Maximum messages to return", "default": 50 } }, "response": { "transform": "value" } } }, { "id": "send_message", "name": "Send Channel Message", "description": "Send a message to a Teams channel", "requiresWrite": true, "endpoint": { "method": "POST", "url": "https://graph.microsoft.com/v1.0/teams/{teamId}/channels/{channelId}/messages", "params": { "teamId": { "type": "string", "in": "path", "description": "Microsoft Teams team ID", "required": true }, "channelId": { "type": "string", "in": "path", "description": "Microsoft Teams channel ID", "required": true } }, "body": { "body": { "type": "object", "description": "Message body object with contentType ('text' or 'html') and content fields", "required": true } } } }, { "id": "send_chat_message", "name": "Send Chat Message", "description": "Send a message to a Teams 1:1 or group chat", "requiresWrite": true, "endpoint": { "method": "POST", "url": "https://graph.microsoft.com/v1.0/chats/{chatId}/messages", "params": { "chatId": { "type": "string", "in": "path", "description": "Teams chat ID (from list_chats)", "required": true } }, "body": { "body": { "type": "object", "description": "Message body object with contentType ('text' or 'html') and content fields", "required": true } } } }, { "id": "list_teams", "name": "List Teams", "description": "List all joined Teams", "requiresWrite": false, "endpoint": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/me/joinedTeams", "params": { "$top": { "type": "number", "in": "query", "description": "Maximum teams to return", "default": 50 } }, "response": { "transform": "value" } } }, { "id": "list_channels", "name": "List Channels", "description": "List channels in a specific Team", "requiresWrite": false, "endpoint": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/teams/{teamId}/channels", "params": { "teamId": { "type": "string", "in": "path", "description": "Microsoft Teams team ID", "required": true } }, "response": { "transform": "value" } } }], "prompts": [{ "id": "check_messages", "title": "Check my messages", "prompt": "Check my recent Teams messages and summarize any important conversations or action items.", "category": "communication", "icon": "message" }, { "id": "send_update", "title": "Send team update", "prompt": "Send a status update message to a specific Teams channel about project progress.", "category": "communication", "icon": "send" }, { "id": "find_conversation", "title": "Find a conversation", "prompt": "Search through my Teams chats to find discussions about a specific topic.", "category": "communication", "icon": "search" }], "suggestedWith": ["outlook", "slack", "calendar"] },
|
|
37
37
|
{ "name": "trello", "displayName": "Trello", "icon": "trello.svg", "description": "Manage boards, lists, and cards in Trello", "auth": { "type": "oauth2", "provider": "trello", "authorizationUrl": "https://trello.com/1/authorize", "tokenUrl": "https://trello.com/1/OAuthGetAccessToken", "scopes": ["read", "write"], "requiredApis": [{ "name": "Trello Developer Portal", "enableUrl": "https://trello.com/app-key" }] }, "envVars": [{ "name": "TRELLO_CLIENT_ID", "description": "Trello API Key", "required": true, "sensitive": false, "docsUrl": "https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/" }, { "name": "TRELLO_CLIENT_SECRET", "description": "Trello OAuth Secret", "required": true, "sensitive": true, "docsUrl": "https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/" }], "tools": [{ "id": "list_boards", "name": "List Boards", "description": "List all boards accessible to the user", "requiresWrite": false }, { "id": "list_cards", "name": "List Cards", "description": "List cards in a board or list", "requiresWrite": false }, { "id": "get_card", "name": "Get Card", "description": "Get details of a specific card", "requiresWrite": false }, { "id": "create_card", "name": "Create Card", "description": "Create a new card in a list", "requiresWrite": true }, { "id": "update_card", "name": "Update Card", "description": "Update an existing card", "requiresWrite": true }], "prompts": [{ "id": "my_boards", "title": "Show my boards", "prompt": "List all my Trello boards with their lists and card counts.", "category": "productivity", "icon": "grid" }, { "id": "create_card", "title": "Create a card", "prompt": "Create a new card with a title, description, and due date.", "category": "productivity", "icon": "plus" }], "suggestedWith": ["slack", "asana", "notion"] },
|
|
38
38
|
{ "name": "twilio", "displayName": "Twilio", "icon": "twilio.svg", "description": "Send SMS, WhatsApp messages, make calls, and manage communications with Twilio", "auth": { "type": "api-key", "requiredApis": [{ "name": "Twilio API", "enableUrl": "https://console.twilio.com/us1/develop/sms/overview" }], "keyName": "TWILIO_AUTH_TOKEN", "headerName": "Authorization", "headerPrefix": "Basic" }, "envVars": [{ "name": "TWILIO_ACCOUNT_SID", "description": "Twilio Account SID (starts with AC)", "required": true, "sensitive": false, "docsUrl": "https://console.twilio.com/" }, { "name": "TWILIO_AUTH_TOKEN", "description": "Twilio Auth Token", "required": true, "sensitive": true, "docsUrl": "https://console.twilio.com/" }, { "name": "TWILIO_PHONE_NUMBER", "description": "Your Twilio phone number (E.164 format: +1234567890)", "required": true, "sensitive": false, "docsUrl": "https://console.twilio.com/us1/develop/phone-numbers/manage/incoming" }], "tools": [{ "id": "send_sms", "name": "Send SMS", "description": "Send an SMS text message to a phone number", "requiresWrite": true }, { "id": "send_whatsapp", "name": "Send WhatsApp Message", "description": "Send a WhatsApp message to a phone number", "requiresWrite": true }, { "id": "list_messages", "name": "List Messages", "description": "List recent SMS and WhatsApp messages", "requiresWrite": false }, { "id": "get_message", "name": "Get Message", "description": "Get details about a specific message", "requiresWrite": false }, { "id": "list_calls", "name": "List Calls", "description": "List recent phone calls", "requiresWrite": false }], "prompts": [{ "id": "send_notification", "title": "Send SMS notification", "prompt": "Help me send an SMS notification to a customer about their order status.", "category": "communication", "icon": "message" }, { "id": "check_messages", "title": "Check recent messages", "prompt": "Show me the most recent SMS and WhatsApp messages from the last 24 hours.", "category": "communication", "icon": "inbox" }, { "id": "call_summary", "title": "Call summary", "prompt": "Give me a summary of recent calls including duration and status.", "category": "analytics", "icon": "phone" }, { "id": "whatsapp_outreach", "title": "WhatsApp outreach", "prompt": "Help me draft and send a WhatsApp message for customer outreach.", "category": "communication", "icon": "message" }], "suggestedWith": ["slack", "gmail", "calendar"] },
|
|
39
39
|
];
|
package/esm/src/jobs/index.d.ts
CHANGED
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
import "../../_dnt.polyfills.js";
|
|
31
|
-
export { type CreateCronJobInput, type CreateJobInput, createJobsClient, type KnowledgeIngestByUploadIdsInput, type KnowledgeIngestByUploadPathsInput, type KnowledgeIngestByUploadPrefixInput, type KnowledgeIngestJobOptions, type ListBatchJobsOptions, type ListCronJobsOptions, type ListJobEventsOptions, type ListJobsOptions, type ProjectScopedOptions, type UpdateCronJobInput, VeryfrontJobsClient, type VeryfrontJobsClientConfig, } from "./jobs-client.js";
|
|
31
|
+
export { type CreateCronJobInput, type CreateJobInput, createJobsClient, type JobRuntimeTargetKind, type JobRuntimeTargetOptions, type KnowledgeIngestByUploadIdsInput, type KnowledgeIngestByUploadPathsInput, type KnowledgeIngestByUploadPrefixInput, type KnowledgeIngestJobOptions, type ListBatchJobsOptions, type ListCronJobsOptions, type ListJobEventsOptions, type ListJobsOptions, type ProjectScopedOptions, type UpdateCronJobInput, VeryfrontJobsClient, type VeryfrontJobsClientConfig, } from "./jobs-client.js";
|
|
32
32
|
export { type CronJob, CronJobSchema, type CronJobStatus, CronJobStatusSchema, type Job, type JobBatch, type JobBatchResult, JobBatchResultSchema, JobBatchSchema, type JobBatchStatusCounts, JobBatchStatusCountsSchema, type JobEvent, JobEventSchema, type JobEventsResponse, JobEventsResponseSchema, type JobKind, JobKindSchema, type JobListItem, JobListItemSchema, type JobLogsResponse, JobLogsResponseSchema, type JobResult, JobResultSchema, type JobResultSummary, JobResultSummarySchema, JobSchema, type JobStatus, JobStatusSchema, type JobTargetDefinition, JobTargetDefinitionSchema, type JobTargetDefinitionsResponse, JobTargetDefinitionsResponseSchema, type KnowledgeIngestBatchSource, KnowledgeIngestBatchSourceSchema, type KnowledgeIngestBatchSourceWithMessage, KnowledgeIngestBatchSourceWithMessageSchema, type KnowledgeIngestFailedFileResult, KnowledgeIngestFailedFileResultSchema, type KnowledgeIngestFileResult, KnowledgeIngestFileResultSchema, type KnowledgeIngestJobResult, KnowledgeIngestJobResultCountsSchema, KnowledgeIngestJobResultMetadataSchema, KnowledgeIngestJobResultSchema, type KnowledgeIngestSkippedFileResult, KnowledgeIngestSkippedFileResultSchema, PageInfoSchema, type PaginatedCronJobsResponse, PaginatedCronJobsResponseSchema, type PaginatedJobsResponse, PaginatedJobsResponseSchema, type ReservedJobTargetFamily, ReservedJobTargetFamilySchema, } from "./schemas.js";
|
|
33
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/jobs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,K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C5B,6BAA6B,GAC9B,MAAM,cAAc,CAAC"}
|
|
@@ -35,20 +35,26 @@ export interface ListJobEventsOptions extends ProjectScopedOptions {
|
|
|
35
35
|
limit?: number;
|
|
36
36
|
direction?: "forward" | "backward";
|
|
37
37
|
}
|
|
38
|
+
/** Runtime target for a job or cron job definition. */
|
|
39
|
+
export type JobRuntimeTargetKind = "main_branch" | "environment" | "preview_branch";
|
|
40
|
+
/** Runtime target fields accepted by job creation APIs. */
|
|
41
|
+
export interface JobRuntimeTargetOptions {
|
|
42
|
+
runtimeTargetKind?: JobRuntimeTargetKind;
|
|
43
|
+
runtimeTargetEnvironmentId?: string;
|
|
44
|
+
runtimeTargetBranchId?: string;
|
|
45
|
+
}
|
|
38
46
|
/** Input payload for create job. */
|
|
39
|
-
export interface CreateJobInput extends ProjectScopedOptions {
|
|
47
|
+
export interface CreateJobInput extends ProjectScopedOptions, JobRuntimeTargetOptions {
|
|
40
48
|
name: string;
|
|
41
49
|
target: string;
|
|
42
|
-
environmentId?: string;
|
|
43
50
|
batchId?: string;
|
|
44
51
|
config?: Record<string, unknown>;
|
|
45
52
|
timeoutSeconds?: number;
|
|
46
53
|
backoffLimit?: number;
|
|
47
54
|
}
|
|
48
55
|
/** Options accepted by knowledge ingest job. */
|
|
49
|
-
export interface KnowledgeIngestJobOptions extends ProjectScopedOptions {
|
|
56
|
+
export interface KnowledgeIngestJobOptions extends ProjectScopedOptions, JobRuntimeTargetOptions {
|
|
50
57
|
name?: string;
|
|
51
|
-
environmentId?: string;
|
|
52
58
|
batchId?: string;
|
|
53
59
|
timeoutSeconds?: number;
|
|
54
60
|
backoffLimit?: number;
|
|
@@ -72,10 +78,9 @@ export interface ListBatchJobsOptions extends ProjectScopedOptions {
|
|
|
72
78
|
status?: JobStatus;
|
|
73
79
|
}
|
|
74
80
|
/** Input payload for create cron job. */
|
|
75
|
-
export interface CreateCronJobInput extends ProjectScopedOptions {
|
|
81
|
+
export interface CreateCronJobInput extends ProjectScopedOptions, JobRuntimeTargetOptions {
|
|
76
82
|
name: string;
|
|
77
83
|
target: string;
|
|
78
|
-
environmentId?: string;
|
|
79
84
|
schedule: string;
|
|
80
85
|
timezone?: string;
|
|
81
86
|
config?: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs-client.d.ts","sourceRoot":"","sources":["../../../src/src/jobs/jobs-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,4DAA4D,CAAC;AAGpE,OAAO,EACL,KAAK,OAAO,EAEZ,KAAK,aAAa,EAClB,KAAK,GAAG,EACR,KAAK,QAAQ,EAEb,KAAK,iBAAiB,EAEtB,KAAK,eAAe,EAGpB,KAAK,SAAS,EACd,KAAK,mBAAmB,EAExB,KAAK,4BAA4B,EAEjC,KAAK,yBAAyB,EAE9B,KAAK,qBAAqB,EAE3B,MAAM,cAAc,CAAC;AAOtB,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC9B;AAED,0CAA0C;AAC1C,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qCAAqC;AACrC,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,2CAA2C;AAC3C,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,MA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E,OAAO,CAAC,0BAA0B;IAKlC,OAAO,CAAC,4BAA4B;IAKpC,OAAO,CAAC,6BAA6B;IAKrC,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,aAAa;IA+BrB,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAyBrB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,aAAa;IAoBrB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,uBAAuB;YAiBjB,kBAAkB;CAsBjC;AAED,0BAA0B;AAC1B,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,mBAAmB,CAExF"}
|
|
@@ -84,12 +84,14 @@ export class VeryfrontJobsClient {
|
|
|
84
84
|
this.requestProjectReference = undefined;
|
|
85
85
|
}
|
|
86
86
|
create(input) {
|
|
87
|
-
const { projectReference,
|
|
87
|
+
const { projectReference, runtimeTargetKind, runtimeTargetEnvironmentId, runtimeTargetBranchId, batchId, timeoutSeconds, backoffLimit, ...rest } = input;
|
|
88
88
|
return this.requestProjectJson(projectReference, "/jobs", JobSchema, {
|
|
89
89
|
method: "POST",
|
|
90
90
|
body: {
|
|
91
91
|
...rest,
|
|
92
|
-
|
|
92
|
+
runtime_target_kind: runtimeTargetKind,
|
|
93
|
+
runtime_target_environment_id: runtimeTargetEnvironmentId,
|
|
94
|
+
runtime_target_branch_id: runtimeTargetBranchId,
|
|
93
95
|
batch_id: batchId,
|
|
94
96
|
timeout_seconds: timeoutSeconds,
|
|
95
97
|
backoff_limit: backoffLimit,
|
|
@@ -150,12 +152,14 @@ export class VeryfrontJobsClient {
|
|
|
150
152
|
});
|
|
151
153
|
}
|
|
152
154
|
createCronJob(input) {
|
|
153
|
-
const { projectReference,
|
|
155
|
+
const { projectReference, runtimeTargetKind, runtimeTargetEnvironmentId, runtimeTargetBranchId, timeoutSeconds, backoffLimit, concurrencyPolicy, ...rest } = input;
|
|
154
156
|
return this.requestProjectJson(projectReference, "/cron-jobs", CronJobSchema, {
|
|
155
157
|
method: "POST",
|
|
156
158
|
body: {
|
|
157
159
|
...rest,
|
|
158
|
-
|
|
160
|
+
runtime_target_kind: runtimeTargetKind,
|
|
161
|
+
runtime_target_environment_id: runtimeTargetEnvironmentId,
|
|
162
|
+
runtime_target_branch_id: runtimeTargetBranchId,
|
|
159
163
|
timeout_seconds: timeoutSeconds,
|
|
160
164
|
backoff_limit: backoffLimit,
|
|
161
165
|
concurrency_policy: concurrencyPolicy,
|