@soat/sdk 0.6.4 → 0.6.5

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
@@ -2233,6 +2233,11 @@ type AddSessionMessageRequest = {
2233
2233
  tool_context?: {
2234
2234
  [key: string]: string;
2235
2235
  } | null;
2236
+ /**
2237
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2238
+ *
2239
+ */
2240
+ idempotency_key?: string;
2236
2241
  } | {
2237
2242
  /**
2238
2243
  * Public ID of a document used as the user message content.
@@ -2244,6 +2249,11 @@ type AddSessionMessageRequest = {
2244
2249
  tool_context?: {
2245
2250
  [key: string]: string;
2246
2251
  } | null;
2252
+ /**
2253
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2254
+ *
2255
+ */
2256
+ idempotency_key?: string;
2247
2257
  };
2248
2258
  /**
2249
2259
  * Message saved; auto-generate is off or a generation is already in progress.
@@ -6986,6 +6996,10 @@ type AddSessionMessageErrors = {
6986
6996
  };
6987
6997
  type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
6988
6998
  type AddSessionMessageResponses = {
6999
+ /**
7000
+ * Duplicate request — original message returned (idempotency_key matched)
7001
+ */
7002
+ 200: AddSessionMessageSaved;
6989
7003
  /**
6990
7004
  * User message saved
6991
7005
  */
package/dist/index.d.ts CHANGED
@@ -2233,6 +2233,11 @@ type AddSessionMessageRequest = {
2233
2233
  tool_context?: {
2234
2234
  [key: string]: string;
2235
2235
  } | null;
2236
+ /**
2237
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2238
+ *
2239
+ */
2240
+ idempotency_key?: string;
2236
2241
  } | {
2237
2242
  /**
2238
2243
  * Public ID of a document used as the user message content.
@@ -2244,6 +2249,11 @@ type AddSessionMessageRequest = {
2244
2249
  tool_context?: {
2245
2250
  [key: string]: string;
2246
2251
  } | null;
2252
+ /**
2253
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2254
+ *
2255
+ */
2256
+ idempotency_key?: string;
2247
2257
  };
2248
2258
  /**
2249
2259
  * Message saved; auto-generate is off or a generation is already in progress.
@@ -6986,6 +6996,10 @@ type AddSessionMessageErrors = {
6986
6996
  };
6987
6997
  type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
6988
6998
  type AddSessionMessageResponses = {
6999
+ /**
7000
+ * Duplicate request — original message returned (idempotency_key matched)
7001
+ */
7002
+ 200: AddSessionMessageSaved;
6989
7003
  /**
6990
7004
  * User message saved
6991
7005
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",