@tansr/sdk 0.8.0 → 0.9.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.
package/dist/index.d.ts CHANGED
@@ -15593,6 +15593,12 @@ interface VideoModelConstraints {
15593
15593
  interface AppBundleMediaModel {
15594
15594
  model: string;
15595
15595
  displayName: string;
15596
+ /**
15597
+ * 产出托管地(S-ARCH P2-c 加法键 2026-09-02;平台媒体探针按产出 URL 宿主定性):
15598
+ * overseas = 境外托管(中国大陆网络可能无法直接访问,veo/grok 教训)/ domestic /
15599
+ * inline(b64 内联返回,无托管地问题)。缺席 = 未探/未识别(旧 api 同形)。
15600
+ */
15601
+ outputHosting?: 'domestic' | 'overseas' | 'inline';
15596
15602
  }
15597
15603
  interface AppBundleImageModel extends AppBundleMediaModel {
15598
15604
  constraints?: ImageModelConstraints;
package/dist/index.js CHANGED
@@ -31078,6 +31078,9 @@ function imageModelNote(m) {
31078
31078
  if (!c.seed) notes.push("no seed");
31079
31079
  if (!c.negativePrompt) notes.push("no negativePrompt");
31080
31080
  if (c.maxImages === 1) notes.push("single image per call (n=1)");
31081
+ if (m.outputHosting === "overseas") {
31082
+ notes.push("output hosted OVERSEAS — image URLs may be unreachable from mainland China networks");
31083
+ }
31081
31084
  return notes.length > 0 ? `${label} [${notes.join("; ")}]` : label;
31082
31085
  }
31083
31086
  function authorizedModelsNote(models) {
@@ -31305,6 +31308,9 @@ function videoModelNote(m) {
31305
31308
  else if (c.ratio !== void 0) notes.push(`ratio ${c.ratio.join("|")}`);
31306
31309
  if (!c.seed) notes.push("no seed");
31307
31310
  if (!c.negativePrompt) notes.push("no negativePrompt");
31311
+ if (m.outputHosting === "overseas") {
31312
+ notes.push("output hosted OVERSEAS — the video URL may be unreachable from mainland China networks");
31313
+ }
31308
31314
  return `${label} [${notes.join("; ")}]`;
31309
31315
  }
31310
31316
  function authorizedModelsNote2(models) {
@@ -31955,10 +31961,12 @@ function parseMediaModels(raw, parseConstraints) {
31955
31961
  for (const item of raw) {
31956
31962
  if (!isRecord8(item) || typeof item.model !== "string" || item.model === "") continue;
31957
31963
  const constraints = item.constraints === void 0 ? void 0 : parseConstraints(item.constraints);
31964
+ const hosting = item.outputHosting === "domestic" || item.outputHosting === "overseas" || item.outputHosting === "inline" ? item.outputHosting : void 0;
31958
31965
  out.push({
31959
31966
  model: item.model,
31960
31967
  displayName: typeof item.displayName === "string" && item.displayName !== "" ? item.displayName : item.model,
31961
- ...constraints !== void 0 ? { constraints } : {}
31968
+ ...constraints !== void 0 ? { constraints } : {},
31969
+ ...hosting !== void 0 ? { outputHosting: hosting } : {}
31962
31970
  });
31963
31971
  }
31964
31972
  return out;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tansr/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Tansr public TypeScript SDK: headless agent API (query / createSession / runAgent) + pure protocol type re-exports (public, MIT).",
5
5
  "license": "MIT",
6
6
  "type": "module",