@soat/sdk 0.4.8 → 0.4.10

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.cts CHANGED
@@ -835,9 +835,17 @@ type ConversationMessageRecord = {
835
835
  */
836
836
  document_id?: string;
837
837
  /**
838
- * Actor ID who sent this message
838
+ * Role of the message sender
839
839
  */
840
- actor_id?: string;
840
+ role?: 'user' | 'assistant' | 'system';
841
+ /**
842
+ * Optional actor ID associated with this message
843
+ */
844
+ actor_id?: string | null;
845
+ /**
846
+ * Optional agent ID that generated this message (set for assistant messages produced by generate)
847
+ */
848
+ agent_id?: string | null;
841
849
  /**
842
850
  * Zero-based position in the conversation
843
851
  */
@@ -3004,9 +3012,13 @@ type AddConversationMessageData = {
3004
3012
  */
3005
3013
  message: string;
3006
3014
  /**
3007
- * Actor ID who is sending this message
3015
+ * Role of the message sender
3008
3016
  */
3009
- actor_id: string;
3017
+ role: 'user' | 'assistant' | 'system';
3018
+ /**
3019
+ * Optional actor ID to associate with this message (user identity)
3020
+ */
3021
+ actor_id?: string | null;
3010
3022
  /**
3011
3023
  * Zero-based position. Defaults to MAX+1 (append).
3012
3024
  */
@@ -3056,11 +3068,11 @@ type AddConversationMessageResponse = AddConversationMessageResponses[keyof AddC
3056
3068
  type GenerateConversationMessageData = {
3057
3069
  body: {
3058
3070
  /**
3059
- * ID of the actor that will produce the next message. Must have `agentId` or `chatId` set.
3071
+ * ID of the agent that will produce the next message.
3060
3072
  */
3061
- actor_id: string;
3073
+ agent_id: string;
3062
3074
  /**
3063
- * Optional model override. Only honored for chat-backed actors.
3075
+ * Optional model override.
3064
3076
  */
3065
3077
  model?: string;
3066
3078
  /**
package/dist/index.d.ts CHANGED
@@ -835,9 +835,17 @@ type ConversationMessageRecord = {
835
835
  */
836
836
  document_id?: string;
837
837
  /**
838
- * Actor ID who sent this message
838
+ * Role of the message sender
839
839
  */
840
- actor_id?: string;
840
+ role?: 'user' | 'assistant' | 'system';
841
+ /**
842
+ * Optional actor ID associated with this message
843
+ */
844
+ actor_id?: string | null;
845
+ /**
846
+ * Optional agent ID that generated this message (set for assistant messages produced by generate)
847
+ */
848
+ agent_id?: string | null;
841
849
  /**
842
850
  * Zero-based position in the conversation
843
851
  */
@@ -3004,9 +3012,13 @@ type AddConversationMessageData = {
3004
3012
  */
3005
3013
  message: string;
3006
3014
  /**
3007
- * Actor ID who is sending this message
3015
+ * Role of the message sender
3008
3016
  */
3009
- actor_id: string;
3017
+ role: 'user' | 'assistant' | 'system';
3018
+ /**
3019
+ * Optional actor ID to associate with this message (user identity)
3020
+ */
3021
+ actor_id?: string | null;
3010
3022
  /**
3011
3023
  * Zero-based position. Defaults to MAX+1 (append).
3012
3024
  */
@@ -3056,11 +3068,11 @@ type AddConversationMessageResponse = AddConversationMessageResponses[keyof AddC
3056
3068
  type GenerateConversationMessageData = {
3057
3069
  body: {
3058
3070
  /**
3059
- * ID of the actor that will produce the next message. Must have `agentId` or `chatId` set.
3071
+ * ID of the agent that will produce the next message.
3060
3072
  */
3061
- actor_id: string;
3073
+ agent_id: string;
3062
3074
  /**
3063
- * Optional model override. Only honored for chat-backed actors.
3075
+ * Optional model override.
3064
3076
  */
3065
3077
  model?: string;
3066
3078
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",