@superlinked/sie-sdk 0.6.2 → 0.6.4

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
@@ -492,8 +492,9 @@ interface GenerateResult {
492
492
  *
493
493
  * `content` may be a string OR an array of typed content parts. The gateway
494
494
  * concatenates `text` / `input_text` parts; `image_url` / `input_image` parts
495
- * are rejected with `400 unsupported_field` because no vision-capable
496
- * generation model is configured today (the contract is forward-ready). See
495
+ * carrying a base64 `data:` URI are accepted for vision-capable generation
496
+ * models (non-vision/encode-only models reject with `400 unsupported_field`;
497
+ * remote (non-`data:`) URLs reject with `400 invalid_request`). See
497
498
  * `packages/sie_gateway/src/openapi.rs` and `proxy.rs::chat_params_from_json`
498
499
  * for the canonical accepted subset.
499
500
  */
@@ -507,9 +508,10 @@ interface ChatMessage {
507
508
  tool_calls?: ToolCall[];
508
509
  }
509
510
  /**
510
- * One content part inside a multimodal `messages[*].content` array. Only the
511
- * text variants are accepted today; image parts are declared so callers can
512
- * see the rejection at the type layer instead of at runtime.
511
+ * One content part inside a multimodal `messages[*].content` array. Text parts
512
+ * (`text` / `input_text`) are concatenated; image parts (`image_url` /
513
+ * `input_image`) carry a base64 `data:` URI and are accepted for vision-capable
514
+ * generation models.
513
515
  */
514
516
  type ChatContentPart = {
515
517
  type: "text";
@@ -517,6 +519,16 @@ type ChatContentPart = {
517
519
  } | {
518
520
  type: "input_text";
519
521
  text: string;
522
+ } | {
523
+ type: "image_url";
524
+ image_url: {
525
+ url: string;
526
+ };
527
+ } | {
528
+ type: "input_image";
529
+ image_url: string | {
530
+ url: string;
531
+ };
520
532
  };
521
533
  /** A tool call emitted by the model. */
522
534
  interface ToolCall {
@@ -1268,7 +1280,7 @@ declare class SIEClient {
1268
1280
  private detectEndpointType;
1269
1281
  }
1270
1282
 
1271
- declare const SDK_VERSION = "0.6.2";
1283
+ declare const SDK_VERSION = "0.6.4";
1272
1284
 
1273
1285
  /**
1274
1286
  * Helpers for converting SIE encode results to plain JavaScript types.
package/dist/index.d.ts CHANGED
@@ -492,8 +492,9 @@ interface GenerateResult {
492
492
  *
493
493
  * `content` may be a string OR an array of typed content parts. The gateway
494
494
  * concatenates `text` / `input_text` parts; `image_url` / `input_image` parts
495
- * are rejected with `400 unsupported_field` because no vision-capable
496
- * generation model is configured today (the contract is forward-ready). See
495
+ * carrying a base64 `data:` URI are accepted for vision-capable generation
496
+ * models (non-vision/encode-only models reject with `400 unsupported_field`;
497
+ * remote (non-`data:`) URLs reject with `400 invalid_request`). See
497
498
  * `packages/sie_gateway/src/openapi.rs` and `proxy.rs::chat_params_from_json`
498
499
  * for the canonical accepted subset.
499
500
  */
@@ -507,9 +508,10 @@ interface ChatMessage {
507
508
  tool_calls?: ToolCall[];
508
509
  }
509
510
  /**
510
- * One content part inside a multimodal `messages[*].content` array. Only the
511
- * text variants are accepted today; image parts are declared so callers can
512
- * see the rejection at the type layer instead of at runtime.
511
+ * One content part inside a multimodal `messages[*].content` array. Text parts
512
+ * (`text` / `input_text`) are concatenated; image parts (`image_url` /
513
+ * `input_image`) carry a base64 `data:` URI and are accepted for vision-capable
514
+ * generation models.
513
515
  */
514
516
  type ChatContentPart = {
515
517
  type: "text";
@@ -517,6 +519,16 @@ type ChatContentPart = {
517
519
  } | {
518
520
  type: "input_text";
519
521
  text: string;
522
+ } | {
523
+ type: "image_url";
524
+ image_url: {
525
+ url: string;
526
+ };
527
+ } | {
528
+ type: "input_image";
529
+ image_url: string | {
530
+ url: string;
531
+ };
520
532
  };
521
533
  /** A tool call emitted by the model. */
522
534
  interface ToolCall {
@@ -1268,7 +1280,7 @@ declare class SIEClient {
1268
1280
  private detectEndpointType;
1269
1281
  }
1270
1282
 
1271
- declare const SDK_VERSION = "0.6.2";
1283
+ declare const SDK_VERSION = "0.6.4";
1272
1284
 
1273
1285
  /**
1274
1286
  * Helpers for converting SIE encode results to plain JavaScript types.
package/dist/index.js CHANGED
@@ -796,7 +796,7 @@ function extractDataPayload(block) {
796
796
  }
797
797
 
798
798
  // src/version.ts
799
- var SDK_VERSION = "0.6.2";
799
+ var SDK_VERSION = "0.6.4";
800
800
 
801
801
  // src/client.ts
802
802
  function sleep2(ms) {