twenty-sdk 2.27.0 → 2.30.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.
@@ -2,7 +2,7 @@ import { createRequire as e } from "node:module";
2
2
  import { fileURLToPath as t } from "node:url";
3
3
  import { dirname as n } from "node:path";
4
4
  e(import.meta.url), n(t(import.meta.url));
5
- import { kt as r } from "./login-DhEE-uFP.mjs";
5
+ import { kt as r } from "./login-BnGCnmge.mjs";
6
6
  import { ScriptTarget as i, SyntaxKind as a, createSourceFile as o } from "typescript";
7
7
  //#region ../twenty-shared/dist/get-function-input-schema-GNk3NRLJ.mjs
8
8
  var s = "TwentyRecord", c = (e) => {
@@ -174,10 +174,21 @@ type HttpRouteTriggerSettings = {
174
174
  forwardedRequestHeaders?: string[];
175
175
  };
176
176
 
177
+ type RunAgentMessageRole = 'user' | 'assistant';
178
+ type RunAgentMessage = {
179
+ role: RunAgentMessageRole;
180
+ content: string;
181
+ };
177
182
  type RunAgentInput = {
178
183
  agentUniversalIdentifier: string;
184
+ runAsWorkspaceMemberId?: string;
185
+ } & ({
179
186
  prompt: string;
180
- };
187
+ messages?: never;
188
+ } | {
189
+ messages: RunAgentMessage[];
190
+ prompt?: never;
191
+ });
181
192
  type RunAgentResult = {
182
193
  result: object | null;
183
194
  error: string | null;