@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.js
CHANGED
|
@@ -1719,11 +1719,11 @@ var VIDEO_MODELS = {
|
|
|
1719
1719
|
description: "Our most advanced analysis tier \u2014 multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
|
|
1720
1720
|
useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
|
|
1721
1721
|
pricing: [
|
|
1722
|
-
{ identifier: "video-analysis:mixed", credits:
|
|
1723
|
-
{ identifier: "video-analysis:mixed:60s", credits:
|
|
1724
|
-
{ identifier: "video-analysis:mixed:180s", credits:
|
|
1725
|
-
{ identifier: "video-analysis:mixed:360s", credits:
|
|
1726
|
-
{ identifier: "video-analysis:mixed:600s", credits:
|
|
1722
|
+
{ identifier: "video-analysis:mixed", credits: 621, note: "10-min ceiling (no duration given)" },
|
|
1723
|
+
{ identifier: "video-analysis:mixed:60s", credits: 104 },
|
|
1724
|
+
{ identifier: "video-analysis:mixed:180s", credits: 142 },
|
|
1725
|
+
{ identifier: "video-analysis:mixed:360s", credits: 372 },
|
|
1726
|
+
{ identifier: "video-analysis:mixed:600s", credits: 621, note: "10-min ceiling" }
|
|
1727
1727
|
]
|
|
1728
1728
|
},
|
|
1729
1729
|
// SMART — the accuracy tier, and the only one that does not rely on voting.
|
|
@@ -1740,11 +1740,11 @@ var VIDEO_MODELS = {
|
|
|
1740
1740
|
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.",
|
|
1741
1741
|
useCases: ["video-analysis", "shot-list", "premium", "most-accurate"],
|
|
1742
1742
|
pricing: [
|
|
1743
|
-
{ identifier: "video-analysis:smart", credits:
|
|
1744
|
-
{ identifier: "video-analysis:smart:60s", credits:
|
|
1745
|
-
{ identifier: "video-analysis:smart:180s", credits:
|
|
1746
|
-
{ identifier: "video-analysis:smart:360s", credits:
|
|
1747
|
-
{ identifier: "video-analysis:smart:600s", credits:
|
|
1743
|
+
{ identifier: "video-analysis:smart", credits: 3496, note: "10-min ceiling (no duration given)" },
|
|
1744
|
+
{ identifier: "video-analysis:smart:60s", credits: 454 },
|
|
1745
|
+
{ identifier: "video-analysis:smart:180s", credits: 975 },
|
|
1746
|
+
{ identifier: "video-analysis:smart:360s", credits: 2105 },
|
|
1747
|
+
{ identifier: "video-analysis:smart:600s", credits: 3496, note: "10-min ceiling" }
|
|
1748
1748
|
]
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
@@ -12626,18 +12626,18 @@ var VIDEO_ANALYSIS_BUCKET_CREDITS = {
|
|
|
12626
12626
|
// Mixed tiers (`mixed` + `mixed-fast`) share ONE credit family — they are
|
|
12627
12627
|
// variants of the same engine plan (plan internals live in the private
|
|
12628
12628
|
// analysis plugin). Admin-tunable via model_pricing like every other row.
|
|
12629
|
-
"video-analysis:mixed:60s":
|
|
12630
|
-
"video-analysis:mixed:180s":
|
|
12631
|
-
"video-analysis:mixed:360s":
|
|
12632
|
-
"video-analysis:mixed:600s":
|
|
12629
|
+
"video-analysis:mixed:60s": 104,
|
|
12630
|
+
"video-analysis:mixed:180s": 142,
|
|
12631
|
+
"video-analysis:mixed:360s": 372,
|
|
12632
|
+
"video-analysis:mixed:600s": 621,
|
|
12633
12633
|
// SMART — the one native-transport plan: a single pass with reasoning and
|
|
12634
12634
|
// frame sampling turned all the way up. Priced well above the economy tiers
|
|
12635
12635
|
// because it genuinely costs more to run, and it is the only tier whose
|
|
12636
12636
|
// accuracy was measured against a hand-counted edit list.
|
|
12637
|
-
"video-analysis:smart:60s":
|
|
12638
|
-
"video-analysis:smart:180s":
|
|
12639
|
-
"video-analysis:smart:360s":
|
|
12640
|
-
"video-analysis:smart:600s":
|
|
12637
|
+
"video-analysis:smart:60s": 454,
|
|
12638
|
+
"video-analysis:smart:180s": 975,
|
|
12639
|
+
"video-analysis:smart:360s": 2105,
|
|
12640
|
+
"video-analysis:smart:600s": 3496
|
|
12641
12641
|
};
|
|
12642
12642
|
function videoAnalysisCreditSegment(modelOrSentinel) {
|
|
12643
12643
|
return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;
|