@nodaro/shared 2.0.1 → 2.0.2
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.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -3
- package/src/model-catalog.ts +10 -10
- package/src/video-analysis-pricing.ts +20 -13
package/dist/index.cjs
CHANGED
|
@@ -1721,11 +1721,11 @@ var VIDEO_MODELS = {
|
|
|
1721
1721
|
description: "Our most advanced analysis tier \u2014 multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
|
|
1722
1722
|
useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
|
|
1723
1723
|
pricing: [
|
|
1724
|
-
{ identifier: "video-analysis:mixed", credits:
|
|
1725
|
-
{ identifier: "video-analysis:mixed:60s", credits:
|
|
1726
|
-
{ identifier: "video-analysis:mixed:180s", credits:
|
|
1727
|
-
{ identifier: "video-analysis:mixed:360s", credits:
|
|
1728
|
-
{ identifier: "video-analysis:mixed:600s", credits:
|
|
1724
|
+
{ identifier: "video-analysis:mixed", credits: 621, note: "10-min ceiling (no duration given)" },
|
|
1725
|
+
{ identifier: "video-analysis:mixed:60s", credits: 104 },
|
|
1726
|
+
{ identifier: "video-analysis:mixed:180s", credits: 142 },
|
|
1727
|
+
{ identifier: "video-analysis:mixed:360s", credits: 372 },
|
|
1728
|
+
{ identifier: "video-analysis:mixed:600s", credits: 621, note: "10-min ceiling" }
|
|
1729
1729
|
]
|
|
1730
1730
|
},
|
|
1731
1731
|
// SMART — the accuracy tier, and the only one that does not rely on voting.
|
|
@@ -1742,11 +1742,11 @@ var VIDEO_MODELS = {
|
|
|
1742
1742
|
description: "Highest-accuracy analysis \u2014 a single deep pass that reads the footage frame by frame, finds its own shot boundaries, and identifies the cast by appearance. Best choice when the shot list will drive regeneration. Billed per duration bucket.",
|
|
1743
1743
|
useCases: ["video-analysis", "shot-list", "premium", "most-accurate"],
|
|
1744
1744
|
pricing: [
|
|
1745
|
-
{ identifier: "video-analysis:smart", credits:
|
|
1746
|
-
{ identifier: "video-analysis:smart:60s", credits:
|
|
1747
|
-
{ identifier: "video-analysis:smart:180s", credits:
|
|
1748
|
-
{ identifier: "video-analysis:smart:360s", credits:
|
|
1749
|
-
{ identifier: "video-analysis:smart:600s", credits:
|
|
1745
|
+
{ identifier: "video-analysis:smart", credits: 3496, note: "10-min ceiling (no duration given)" },
|
|
1746
|
+
{ identifier: "video-analysis:smart:60s", credits: 454 },
|
|
1747
|
+
{ identifier: "video-analysis:smart:180s", credits: 975 },
|
|
1748
|
+
{ identifier: "video-analysis:smart:360s", credits: 2105 },
|
|
1749
|
+
{ identifier: "video-analysis:smart:600s", credits: 3496, note: "10-min ceiling" }
|
|
1750
1750
|
]
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
@@ -12628,18 +12628,18 @@ var VIDEO_ANALYSIS_BUCKET_CREDITS = {
|
|
|
12628
12628
|
// Mixed tiers (`mixed` + `mixed-fast`) share ONE credit family — they are
|
|
12629
12629
|
// variants of the same engine plan (plan internals live in the private
|
|
12630
12630
|
// analysis plugin). Admin-tunable via model_pricing like every other row.
|
|
12631
|
-
"video-analysis:mixed:60s":
|
|
12632
|
-
"video-analysis:mixed:180s":
|
|
12633
|
-
"video-analysis:mixed:360s":
|
|
12634
|
-
"video-analysis:mixed:600s":
|
|
12631
|
+
"video-analysis:mixed:60s": 104,
|
|
12632
|
+
"video-analysis:mixed:180s": 142,
|
|
12633
|
+
"video-analysis:mixed:360s": 372,
|
|
12634
|
+
"video-analysis:mixed:600s": 621,
|
|
12635
12635
|
// SMART — the one native-transport plan: a single pass with reasoning and
|
|
12636
12636
|
// frame sampling turned all the way up. Priced well above the economy tiers
|
|
12637
12637
|
// because it genuinely costs more to run, and it is the only tier whose
|
|
12638
12638
|
// accuracy was measured against a hand-counted edit list.
|
|
12639
|
-
"video-analysis:smart:60s":
|
|
12640
|
-
"video-analysis:smart:180s":
|
|
12641
|
-
"video-analysis:smart:360s":
|
|
12642
|
-
"video-analysis:smart:600s":
|
|
12639
|
+
"video-analysis:smart:60s": 454,
|
|
12640
|
+
"video-analysis:smart:180s": 975,
|
|
12641
|
+
"video-analysis:smart:360s": 2105,
|
|
12642
|
+
"video-analysis:smart:600s": 3496
|
|
12643
12643
|
};
|
|
12644
12644
|
function videoAnalysisCreditSegment(modelOrSentinel) {
|
|
12645
12645
|
return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;
|