@omnikit-ai/sdk 2.2.2 → 2.2.3
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 +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ export { cleanTokenFromUrl, getAccessToken, isTokenInUrl, removeAccessToken, sav
|
|
|
10
10
|
* SECURITY: getAccessToken requires service token authentication.
|
|
11
11
|
* Only available to backend functions, not frontend code.
|
|
12
12
|
*/
|
|
13
|
-
type ConnectorType = 'slack' | 'google_calendar' | 'gmail' | 'notion' | 'salesforce';
|
|
13
|
+
type ConnectorType = 'slack' | 'google_calendar' | 'gmail' | 'google_sheets' | 'notion' | 'salesforce';
|
|
14
14
|
interface ConnectorAccessTokenResponse {
|
|
15
15
|
success: boolean;
|
|
16
16
|
access_token: string;
|
|
@@ -320,13 +320,28 @@ interface EmailParams {
|
|
|
320
320
|
from_name?: string;
|
|
321
321
|
}
|
|
322
322
|
interface LLMMessage {
|
|
323
|
-
role: 'system' | 'user' | 'assistant';
|
|
323
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
324
324
|
content: string | Array<{
|
|
325
325
|
type: string;
|
|
326
326
|
text?: string;
|
|
327
327
|
file?: any;
|
|
328
328
|
image_url?: any;
|
|
329
329
|
}>;
|
|
330
|
+
/**
|
|
331
|
+
* For role="tool" messages - links to the tool_calls[].id from the assistant message.
|
|
332
|
+
* Required when role is "tool".
|
|
333
|
+
*/
|
|
334
|
+
tool_call_id?: string;
|
|
335
|
+
/**
|
|
336
|
+
* For role="tool" messages - the function name that was called.
|
|
337
|
+
* Optional but recommended for clarity.
|
|
338
|
+
*/
|
|
339
|
+
name?: string;
|
|
340
|
+
/**
|
|
341
|
+
* For assistant messages - tool calls the assistant wants to make.
|
|
342
|
+
* Present when the assistant decides to use tools.
|
|
343
|
+
*/
|
|
344
|
+
tool_calls?: ToolCall[];
|
|
330
345
|
}
|
|
331
346
|
/**
|
|
332
347
|
* Available LLM models:
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { cleanTokenFromUrl, getAccessToken, isTokenInUrl, removeAccessToken, sav
|
|
|
10
10
|
* SECURITY: getAccessToken requires service token authentication.
|
|
11
11
|
* Only available to backend functions, not frontend code.
|
|
12
12
|
*/
|
|
13
|
-
type ConnectorType = 'slack' | 'google_calendar' | 'gmail' | 'notion' | 'salesforce';
|
|
13
|
+
type ConnectorType = 'slack' | 'google_calendar' | 'gmail' | 'google_sheets' | 'notion' | 'salesforce';
|
|
14
14
|
interface ConnectorAccessTokenResponse {
|
|
15
15
|
success: boolean;
|
|
16
16
|
access_token: string;
|
|
@@ -320,13 +320,28 @@ interface EmailParams {
|
|
|
320
320
|
from_name?: string;
|
|
321
321
|
}
|
|
322
322
|
interface LLMMessage {
|
|
323
|
-
role: 'system' | 'user' | 'assistant';
|
|
323
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
324
324
|
content: string | Array<{
|
|
325
325
|
type: string;
|
|
326
326
|
text?: string;
|
|
327
327
|
file?: any;
|
|
328
328
|
image_url?: any;
|
|
329
329
|
}>;
|
|
330
|
+
/**
|
|
331
|
+
* For role="tool" messages - links to the tool_calls[].id from the assistant message.
|
|
332
|
+
* Required when role is "tool".
|
|
333
|
+
*/
|
|
334
|
+
tool_call_id?: string;
|
|
335
|
+
/**
|
|
336
|
+
* For role="tool" messages - the function name that was called.
|
|
337
|
+
* Optional but recommended for clarity.
|
|
338
|
+
*/
|
|
339
|
+
name?: string;
|
|
340
|
+
/**
|
|
341
|
+
* For assistant messages - tool calls the assistant wants to make.
|
|
342
|
+
* Present when the assistant decides to use tools.
|
|
343
|
+
*/
|
|
344
|
+
tool_calls?: ToolCall[];
|
|
330
345
|
}
|
|
331
346
|
/**
|
|
332
347
|
* Available LLM models:
|
package/dist/index.js
CHANGED
|
@@ -1721,7 +1721,7 @@ Example: await ${collectionName}.list({ limit: 100, sort: '-created_at' })`,
|
|
|
1721
1721
|
if (options.offset !== void 0) {
|
|
1722
1722
|
queryParams.append("offset", String(options.offset));
|
|
1723
1723
|
}
|
|
1724
|
-
if (options.after
|
|
1724
|
+
if (options.after) {
|
|
1725
1725
|
queryParams.append("after", options.after);
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|