@nodaro/shared 3.59.0 → 3.60.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.
Files changed (144) hide show
  1. package/dist/{chunk-QE7W4YIK.cjs → chunk-5G23AJBU.cjs} +6 -6
  2. package/dist/{chunk-QE7W4YIK.cjs.map → chunk-5G23AJBU.cjs.map} +1 -1
  3. package/dist/{chunk-DKZGLIFW.cjs → chunk-5HK5Z5OB.cjs} +4 -4
  4. package/dist/{chunk-DKZGLIFW.cjs.map → chunk-5HK5Z5OB.cjs.map} +1 -1
  5. package/dist/{chunk-RSXQOFM7.cjs → chunk-5Y42RIGY.cjs} +8 -8
  6. package/dist/{chunk-RSXQOFM7.cjs.map → chunk-5Y42RIGY.cjs.map} +1 -1
  7. package/dist/{chunk-FHCMYGBV.js → chunk-6AJOTEVC.js} +3 -3
  8. package/dist/{chunk-FHCMYGBV.js.map → chunk-6AJOTEVC.js.map} +1 -1
  9. package/dist/{chunk-ZVUVSD5X.js → chunk-6Q6SI7AG.js} +3 -3
  10. package/dist/{chunk-ZVUVSD5X.js.map → chunk-6Q6SI7AG.js.map} +1 -1
  11. package/dist/{chunk-V3NONYLA.cjs → chunk-A6HRY3WF.cjs} +269 -18
  12. package/dist/chunk-A6HRY3WF.cjs.map +1 -0
  13. package/dist/{chunk-D574HZ35.cjs → chunk-AXT7YNOR.cjs} +51 -51
  14. package/dist/{chunk-D574HZ35.cjs.map → chunk-AXT7YNOR.cjs.map} +1 -1
  15. package/dist/{chunk-TA7ODVYJ.js → chunk-AZGONXWV.js} +4 -4
  16. package/dist/{chunk-TA7ODVYJ.js.map → chunk-AZGONXWV.js.map} +1 -1
  17. package/dist/{chunk-OFL4UH6L.cjs → chunk-BDXXOEBZ.cjs} +80 -57
  18. package/dist/chunk-BDXXOEBZ.cjs.map +1 -0
  19. package/dist/{chunk-NSZTHJZJ.cjs → chunk-BGIJO5V4.cjs} +39 -39
  20. package/dist/{chunk-NSZTHJZJ.cjs.map → chunk-BGIJO5V4.cjs.map} +1 -1
  21. package/dist/{chunk-NZRG5CXQ.cjs → chunk-BLJUCPMV.cjs} +5 -2
  22. package/dist/chunk-BLJUCPMV.cjs.map +1 -0
  23. package/dist/{chunk-NHZWVKGV.cjs → chunk-BXNPO3PL.cjs} +8 -8
  24. package/dist/{chunk-NHZWVKGV.cjs.map → chunk-BXNPO3PL.cjs.map} +1 -1
  25. package/dist/{chunk-UPD7W2KJ.cjs → chunk-CIOXUPCJ.cjs} +12 -12
  26. package/dist/{chunk-UPD7W2KJ.cjs.map → chunk-CIOXUPCJ.cjs.map} +1 -1
  27. package/dist/{chunk-YE4EDT57.cjs → chunk-DQIJPDHC.cjs} +11 -11
  28. package/dist/{chunk-YE4EDT57.cjs.map → chunk-DQIJPDHC.cjs.map} +1 -1
  29. package/dist/{chunk-UMPZR56R.js → chunk-DS2TOM32.js} +3 -3
  30. package/dist/{chunk-UMPZR56R.js.map → chunk-DS2TOM32.js.map} +1 -1
  31. package/dist/{chunk-YSEJOJNQ.js → chunk-EN2YI5TV.js} +3 -3
  32. package/dist/{chunk-YSEJOJNQ.js.map → chunk-EN2YI5TV.js.map} +1 -1
  33. package/dist/{chunk-ZU56AMFK.js → chunk-G6GMY5BC.js} +20 -4
  34. package/dist/chunk-G6GMY5BC.js.map +1 -0
  35. package/dist/chunk-G7ZYZQKO.cjs +27 -0
  36. package/dist/{chunk-6VXDW2U3.cjs.map → chunk-G7ZYZQKO.cjs.map} +1 -1
  37. package/dist/{chunk-PEATSEAD.cjs → chunk-GNPJ2JLE.cjs} +6 -6
  38. package/dist/{chunk-PEATSEAD.cjs.map → chunk-GNPJ2JLE.cjs.map} +1 -1
  39. package/dist/{chunk-VLQW4CVW.cjs → chunk-GWBQ3GPO.cjs} +41 -21
  40. package/dist/chunk-GWBQ3GPO.cjs.map +1 -0
  41. package/dist/{chunk-P7KSB5T6.cjs → chunk-HDHLZK7C.cjs} +5 -5
  42. package/dist/{chunk-P7KSB5T6.cjs.map → chunk-HDHLZK7C.cjs.map} +1 -1
  43. package/dist/{chunk-QLLR7GUY.cjs → chunk-HNEF2N5C.cjs} +5 -5
  44. package/dist/{chunk-QLLR7GUY.cjs.map → chunk-HNEF2N5C.cjs.map} +1 -1
  45. package/dist/{chunk-7JM5EZF3.cjs → chunk-HOKWJXHA.cjs} +13 -13
  46. package/dist/{chunk-7JM5EZF3.cjs.map → chunk-HOKWJXHA.cjs.map} +1 -1
  47. package/dist/{chunk-RGBNOCIO.js → chunk-ICDLYU4I.js} +9 -9
  48. package/dist/{chunk-RGBNOCIO.js.map → chunk-ICDLYU4I.js.map} +1 -1
  49. package/dist/{chunk-FJCRWDU5.js → chunk-IV6IDECY.js} +4 -4
  50. package/dist/{chunk-FJCRWDU5.js.map → chunk-IV6IDECY.js.map} +1 -1
  51. package/dist/{chunk-PIX4OCCQ.js → chunk-JKZVRKN3.js} +36 -14
  52. package/dist/chunk-JKZVRKN3.js.map +1 -0
  53. package/dist/{chunk-MTXVODG3.js → chunk-KJZVQIN4.js} +3 -3
  54. package/dist/{chunk-MTXVODG3.js.map → chunk-KJZVQIN4.js.map} +1 -1
  55. package/dist/{chunk-2VQHPILW.js → chunk-KOLC7AF2.js} +262 -19
  56. package/dist/chunk-KOLC7AF2.js.map +1 -0
  57. package/dist/{chunk-IP7QOHWQ.js → chunk-LN3EVFRS.js} +5 -5
  58. package/dist/{chunk-IP7QOHWQ.js.map → chunk-LN3EVFRS.js.map} +1 -1
  59. package/dist/{chunk-EO4W4MA3.js → chunk-MHY47BLL.js} +4 -4
  60. package/dist/{chunk-EO4W4MA3.js.map → chunk-MHY47BLL.js.map} +1 -1
  61. package/dist/{chunk-AWS4BWEC.js → chunk-Q6IES3U2.js} +5 -2
  62. package/dist/chunk-Q6IES3U2.js.map +1 -0
  63. package/dist/{chunk-62RC6K62.cjs → chunk-RRPPXZ36.cjs} +4 -4
  64. package/dist/{chunk-62RC6K62.cjs.map → chunk-RRPPXZ36.cjs.map} +1 -1
  65. package/dist/{chunk-3R2KVYXN.js → chunk-SCYBGTX6.js} +3 -3
  66. package/dist/{chunk-3R2KVYXN.js.map → chunk-SCYBGTX6.js.map} +1 -1
  67. package/dist/{chunk-K4L4G76I.cjs → chunk-SKFJIFEV.cjs} +21 -21
  68. package/dist/{chunk-K4L4G76I.cjs.map → chunk-SKFJIFEV.cjs.map} +1 -1
  69. package/dist/{chunk-2S7YYCRT.js → chunk-TZ42IVSF.js} +4 -4
  70. package/dist/{chunk-2S7YYCRT.js.map → chunk-TZ42IVSF.js.map} +1 -1
  71. package/dist/{chunk-PIEMWFSJ.js → chunk-URLDVK67.js} +3 -3
  72. package/dist/{chunk-PIEMWFSJ.js.map → chunk-URLDVK67.js.map} +1 -1
  73. package/dist/{chunk-IOET54EV.js → chunk-VB2ARGQ6.js} +35 -3
  74. package/dist/chunk-VB2ARGQ6.js.map +1 -0
  75. package/dist/{chunk-VOZI5F7V.js → chunk-VYQ25YQF.js} +3 -3
  76. package/dist/{chunk-VOZI5F7V.js.map → chunk-VYQ25YQF.js.map} +1 -1
  77. package/dist/{chunk-QSWUSXRL.cjs → chunk-WGKAOUEQ.cjs} +41 -2
  78. package/dist/chunk-WGKAOUEQ.cjs.map +1 -0
  79. package/dist/{chunk-ORJ5HQAB.js → chunk-YHVEZVAO.js} +4 -4
  80. package/dist/{chunk-ORJ5HQAB.js.map → chunk-YHVEZVAO.js.map} +1 -1
  81. package/dist/entries/apps.cjs +43 -43
  82. package/dist/entries/apps.js +8 -8
  83. package/dist/entries/credits.cjs +155 -151
  84. package/dist/entries/credits.d.cts +32 -3
  85. package/dist/entries/credits.d.ts +32 -3
  86. package/dist/entries/credits.js +8 -8
  87. package/dist/entries/llm-models.d.cts +1 -1
  88. package/dist/entries/llm-models.d.ts +1 -1
  89. package/dist/entries/model-catalog.cjs +144 -84
  90. package/dist/entries/model-catalog.d.cts +4 -47
  91. package/dist/entries/model-catalog.d.ts +4 -47
  92. package/dist/entries/model-catalog.js +5 -5
  93. package/dist/entries/models.cjs +305 -289
  94. package/dist/entries/models.d.cts +3 -3
  95. package/dist/entries/models.d.ts +3 -3
  96. package/dist/entries/models.js +4 -4
  97. package/dist/entries/nodes.cjs +208 -208
  98. package/dist/entries/nodes.d.cts +1 -1
  99. package/dist/entries/nodes.d.ts +1 -1
  100. package/dist/entries/nodes.js +10 -10
  101. package/dist/entries/pipeline.cjs +152 -152
  102. package/dist/entries/pipeline.d.cts +1 -1
  103. package/dist/entries/pipeline.d.ts +1 -1
  104. package/dist/entries/pipeline.js +3 -3
  105. package/dist/entries/ugc.cjs +71 -71
  106. package/dist/entries/ugc.js +4 -4
  107. package/dist/entries/video.cjs +117 -117
  108. package/dist/entries/video.js +4 -4
  109. package/dist/entries/workflow.cjs +147 -147
  110. package/dist/entries/workflow.d.cts +8 -0
  111. package/dist/entries/workflow.d.ts +8 -0
  112. package/dist/entries/workflow.js +2 -2
  113. package/dist/gpt-image-2-6-BeZdT-pW.d.cts +98 -0
  114. package/dist/gpt-image-2-6-BeZdT-pW.d.ts +98 -0
  115. package/dist/index.cjs +1314 -1234
  116. package/dist/index.d.cts +5 -4
  117. package/dist/index.d.ts +5 -4
  118. package/dist/index.js +20 -20
  119. package/dist/{model-catalog-QJ_AO9l0.d.cts → model-catalog-D6Es7VG-.d.cts} +56 -2
  120. package/dist/{model-catalog-QJ_AO9l0.d.ts → model-catalog-D6Es7VG-.d.ts} +56 -2
  121. package/dist/{model-constants-BwBdh6Rn.d.ts → model-constants-22k3fjp1.d.cts} +16 -1
  122. package/dist/{model-constants-BwBdh6Rn.d.cts → model-constants-22k3fjp1.d.ts} +16 -1
  123. package/package.json +1 -1
  124. package/src/__tests__/gpt-image-2-6-formats.test.ts +171 -0
  125. package/src/credit-identifiers.ts +63 -3
  126. package/src/entries/credits.ts +1 -0
  127. package/src/entries/model-catalog.ts +17 -0
  128. package/src/entries/models.ts +6 -0
  129. package/src/gpt-image-2-6.ts +72 -0
  130. package/src/model-catalog.ts +336 -13
  131. package/src/model-constants.ts +33 -0
  132. package/src/node-execution-state.ts +8 -0
  133. package/src/node-runtime-keys.ts +3 -0
  134. package/dist/chunk-2VQHPILW.js.map +0 -1
  135. package/dist/chunk-6VXDW2U3.cjs +0 -27
  136. package/dist/chunk-AWS4BWEC.js.map +0 -1
  137. package/dist/chunk-IOET54EV.js.map +0 -1
  138. package/dist/chunk-NZRG5CXQ.cjs.map +0 -1
  139. package/dist/chunk-OFL4UH6L.cjs.map +0 -1
  140. package/dist/chunk-PIX4OCCQ.js.map +0 -1
  141. package/dist/chunk-QSWUSXRL.cjs.map +0 -1
  142. package/dist/chunk-V3NONYLA.cjs.map +0 -1
  143. package/dist/chunk-VLQW4CVW.cjs.map +0 -1
  144. package/dist/chunk-ZU56AMFK.js.map +0 -1
@@ -1743,6 +1743,14 @@ interface NodeExecutionStateWire<TOutput = Record<string, unknown>> {
1743
1743
  error?: string | null;
1744
1744
  /** Stable code for a refusal a client may branch on — never on the text. */
1745
1745
  errorCode?: string;
1746
+ /**
1747
+ * The provider's own words for a `failed` node's failure (the job's
1748
+ * `error_detail`), with links cut to their host and secrets removed; absent
1749
+ * when the failure had no provider text (a platform refusal, a timeout).
1750
+ * Display-only, beside `error`: branch on `errorCode` or the hint, never on
1751
+ * these words. A published app's runner never receives it.
1752
+ */
1753
+ errorDetail?: string | null;
1746
1754
  /**
1747
1755
  * What the node produced.
1748
1756
  *
@@ -1743,6 +1743,14 @@ interface NodeExecutionStateWire<TOutput = Record<string, unknown>> {
1743
1743
  error?: string | null;
1744
1744
  /** Stable code for a refusal a client may branch on — never on the text. */
1745
1745
  errorCode?: string;
1746
+ /**
1747
+ * The provider's own words for a `failed` node's failure (the job's
1748
+ * `error_detail`), with links cut to their host and secrets removed; absent
1749
+ * when the failure had no provider text (a platform refusal, a timeout).
1750
+ * Display-only, beside `error`: branch on `errorCode` or the hint, never on
1751
+ * these words. A published app's runner never receives it.
1752
+ */
1753
+ errorDetail?: string | null;
1746
1754
  /**
1747
1755
  * What the node produced.
1748
1756
  *
@@ -1,5 +1,5 @@
1
- export { AGGREGATEABLE_TYPES, CATEGORY_DURATION_DEFAULTS, COLLECT_IN_HANDLE, GENERATE_TEXT_DELIMITER, GROUP_HANDLE_PREFIX, ITER_CLONE_PATTERN, NON_PROMPT_TEXT_LANES, NO_SPLIT_DELIMITER, OUTPUT_BEARING_NODE_STATUSES, PROJECTED_TRIGGER_NODE_TYPES, PROVIDER_PLACEHOLDER_PREFIX, REDUCE_STRATEGIES, REDUCE_STRATEGY_IDS, REPEATABLE_NODE_TYPES, REPEAT_PLACEHOLDER, SCHEDULE_EVERY_LIMITS, SCHEDULE_RETRY_DEFAULTS, SCHEDULE_RETRY_LIMITS, SCHEDULE_RULE_KINDS, SCHEDULE_TRIGGER_NODE_TYPE, SEPARATOR_DISPLAY, SEPARATOR_PRESETS, TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE, TELEGRAM_TRIGGER_NODE_TYPE, VARIABLES_HANDLE_ID, WEBHOOK_TRIGGER_NODE_TYPE, aggregateByType, alignedFieldList, buildChildrenByParent, buildConditionVariables, buildExpressionFromVisual, buildProgressSegments, calculateCombinedProgress, calculateProgress, compactWithRows, computeAggregateLanes, countEmptyInputSkips, decodeProviderItem, encodeProviderItem, evaluateJsonExpression, executionOutcome, expandItemsWithRepeat, extractAllGeneratedResults, extractGeneratedJsonAsList, fanOutTextFeedsPrompt, fanOutUrlItemIsText, filterCloneNodes, getEffectiveRepeatCount, getRouteReachableNodeIds, getStrategy, groupHandleId, isAggregateableType, isCollectInEdge, isCronExpression, isExpandedClone, isFanOutUrlItem, isLocalOrPrivateHostname, isPrivateOrReservedIP, isProjectedTriggerNodeType, isValidTimezone, jsonResultToList, legacyScheduleToRules, liveRowColumn, localMinuteKey, localTimeIn, matchesCron, matchesCronField, nextScheduleRuns, nodeStateMayCarryOutput, normalizeScheduleRetry, normalizeScheduleRule, normalizeScheduleRules, parseGroupHandle, pickHeldRow, planFanOut, presentTypes, previewHorizonMs, resolveFieldMappings, resolveListFanOut, resolveLocationFields, resolveSeparator, resolveSourceThroughConnectedList, ruleMatches, scheduleMatchesAt, scheduleOccurrences, settledWithLimit, sortListItems, spliceDelimitedRows, splitByLoopDelimiter, splitGeneratedItems, spreadJsonArrayIfSingleton, stripExportContent, stripUnownedRefs, timezoneOffsetMinutes, validateSubWorkflowRoutes, variantJobId, zipMergeLists } from '../chunk-UMPZR56R.js';
2
- export { EXECUTION_DATA_KEYS, FRAME_TARGET_HANDLES, NODE_REF_PATTERN, NODE_TYPE_EXECUTION_DATA_KEYS, REFERENCE_HANDLE_MAP, REF_HANDLE_CATEGORY, REF_TOKEN_NAMESPACE_PREFIXES, RESERVED_TEMPLATE_VARS, TRANSIENT_RUNTIME_KEYS, applyRange, applyRangeIndices, buildFeedMaps, buildRangeLabel, canonicalVarName, classifyRefToken, combineSameLabelRefs, countImageInputEdges, countRefModalityEdges, describeEdgeBehavior, evaluateCondition, evaluateConditionGroup, evaluateJsonPath, executionDataKeysOf, extractReferencedLabels, isDefaultSelectorConfig, isExecutionDataKey, migrateEdgeOutputMode, nodeFeedsAnything, parseListExpression, parseNodeRef, refHandleCategory, referenceModalityForHandle, resolveConditionValue, resolveIndex, resolveListExpression, resolveNodeRefs, resolveRelativeWindowToken, resolveSelectorRefs, runSelector, selectByModulo, selectByNamedKey, selectByPredicate, selectListItems, selectRandom, stringifyPathResults, stripTransientRuntimeData, tryParseJson, unresolvedRefTokens } from '../chunk-AWS4BWEC.js';
1
+ export { AGGREGATEABLE_TYPES, CATEGORY_DURATION_DEFAULTS, COLLECT_IN_HANDLE, GENERATE_TEXT_DELIMITER, GROUP_HANDLE_PREFIX, ITER_CLONE_PATTERN, NON_PROMPT_TEXT_LANES, NO_SPLIT_DELIMITER, OUTPUT_BEARING_NODE_STATUSES, PROJECTED_TRIGGER_NODE_TYPES, PROVIDER_PLACEHOLDER_PREFIX, REDUCE_STRATEGIES, REDUCE_STRATEGY_IDS, REPEATABLE_NODE_TYPES, REPEAT_PLACEHOLDER, SCHEDULE_EVERY_LIMITS, SCHEDULE_RETRY_DEFAULTS, SCHEDULE_RETRY_LIMITS, SCHEDULE_RULE_KINDS, SCHEDULE_TRIGGER_NODE_TYPE, SEPARATOR_DISPLAY, SEPARATOR_PRESETS, TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE, TELEGRAM_TRIGGER_NODE_TYPE, VARIABLES_HANDLE_ID, WEBHOOK_TRIGGER_NODE_TYPE, aggregateByType, alignedFieldList, buildChildrenByParent, buildConditionVariables, buildExpressionFromVisual, buildProgressSegments, calculateCombinedProgress, calculateProgress, compactWithRows, computeAggregateLanes, countEmptyInputSkips, decodeProviderItem, encodeProviderItem, evaluateJsonExpression, executionOutcome, expandItemsWithRepeat, extractAllGeneratedResults, extractGeneratedJsonAsList, fanOutTextFeedsPrompt, fanOutUrlItemIsText, filterCloneNodes, getEffectiveRepeatCount, getRouteReachableNodeIds, getStrategy, groupHandleId, isAggregateableType, isCollectInEdge, isCronExpression, isExpandedClone, isFanOutUrlItem, isLocalOrPrivateHostname, isPrivateOrReservedIP, isProjectedTriggerNodeType, isValidTimezone, jsonResultToList, legacyScheduleToRules, liveRowColumn, localMinuteKey, localTimeIn, matchesCron, matchesCronField, nextScheduleRuns, nodeStateMayCarryOutput, normalizeScheduleRetry, normalizeScheduleRule, normalizeScheduleRules, parseGroupHandle, pickHeldRow, planFanOut, presentTypes, previewHorizonMs, resolveFieldMappings, resolveListFanOut, resolveLocationFields, resolveSeparator, resolveSourceThroughConnectedList, ruleMatches, scheduleMatchesAt, scheduleOccurrences, settledWithLimit, sortListItems, spliceDelimitedRows, splitByLoopDelimiter, splitGeneratedItems, spreadJsonArrayIfSingleton, stripExportContent, stripUnownedRefs, timezoneOffsetMinutes, validateSubWorkflowRoutes, variantJobId, zipMergeLists } from '../chunk-DS2TOM32.js';
2
+ export { EXECUTION_DATA_KEYS, FRAME_TARGET_HANDLES, NODE_REF_PATTERN, NODE_TYPE_EXECUTION_DATA_KEYS, REFERENCE_HANDLE_MAP, REF_HANDLE_CATEGORY, REF_TOKEN_NAMESPACE_PREFIXES, RESERVED_TEMPLATE_VARS, TRANSIENT_RUNTIME_KEYS, applyRange, applyRangeIndices, buildFeedMaps, buildRangeLabel, canonicalVarName, classifyRefToken, combineSameLabelRefs, countImageInputEdges, countRefModalityEdges, describeEdgeBehavior, evaluateCondition, evaluateConditionGroup, evaluateJsonPath, executionDataKeysOf, extractReferencedLabels, isDefaultSelectorConfig, isExecutionDataKey, migrateEdgeOutputMode, nodeFeedsAnything, parseListExpression, parseNodeRef, refHandleCategory, referenceModalityForHandle, resolveConditionValue, resolveIndex, resolveListExpression, resolveNodeRefs, resolveRelativeWindowToken, resolveSelectorRefs, runSelector, selectByModulo, selectByNamedKey, selectByPredicate, selectListItems, selectRandom, stringifyPathResults, stripTransientRuntimeData, tryParseJson, unresolvedRefTokens } from '../chunk-Q6IES3U2.js';
3
3
  import '../chunk-G6IIVKMO.js';
4
4
  import '../chunk-6Q4BS6AR.js';
5
5
  import '../chunk-FVVD6XY2.js';
@@ -0,0 +1,98 @@
1
+ /**
2
+ * What makes GPT Image 2.6 Flare and Sunburst price differently from every
3
+ * other image model: a quality setting AND a size, and on an edit the number of
4
+ * input images as well. Economy is a flat price and is not listed here.
5
+ *
6
+ * Only the ids and levers live in this published package. The rates and the
7
+ * formula are `backend/src/ee/billing/gpt-image-2-6-pricing.ts`.
8
+ */
9
+ declare const GPT_IMAGE_2_6_TIERED_T2I: readonly ["gpt-image-2-6-flare", "gpt-image-2-6-sunburst"];
10
+ declare const GPT_IMAGE_2_6_TIERED_I2I: readonly ["gpt-image-2-6-flare-i2i", "gpt-image-2-6-sunburst-i2i"];
11
+ type GptImage26TieredModel = (typeof GPT_IMAGE_2_6_TIERED_T2I)[number] | (typeof GPT_IMAGE_2_6_TIERED_I2I)[number];
12
+ declare const GPT_IMAGE_2_6_QUALITIES: readonly ["auto", "low", "medium", "high", "xhigh", "max"];
13
+ type GptImage26Quality = (typeof GPT_IMAGE_2_6_QUALITIES)[number];
14
+ /**
15
+ * The quality whose price is known only after the run: KIE picks the level. It
16
+ * is reserved at the Max row and settled on what KIE really billed; every other
17
+ * quality keeps its fixed row.
18
+ */
19
+ declare const GPT_IMAGE_2_6_METERED_QUALITY: GptImage26Quality;
20
+ declare const GPT_IMAGE_2_6_RESOLUTIONS: readonly ["1K", "2K", "4K"];
21
+ type GptImage26Resolution = (typeof GPT_IMAGE_2_6_RESOLUTIONS)[number];
22
+ declare const GPT_IMAGE_2_6_DEFAULT_QUALITY: GptImage26Quality;
23
+ declare const GPT_IMAGE_2_6_DEFAULT_RESOLUTION: GptImage26Resolution;
24
+ /** The most input images an edit is priced for (`REF_IMAGE_MAX_LIMITS`). */
25
+ declare const GPT_IMAGE_2_6_MAX_INPUT_IMAGES = 16;
26
+ /**
27
+ * A GIF is priced by quality and by how many frames it has, in three bands:
28
+ * KIE draws every frame of a GIF on one sheet, and the frames of a band share a
29
+ * sheet size. Its price does not depend on the ratio or size (a GIF is always
30
+ * square, 512 pixels a frame). Ten to twelve frames take nine's price, so the
31
+ * bands rise in order.
32
+ */
33
+ declare const GPT_IMAGE_2_6_GIF_BANDS: readonly [{
34
+ readonly id: "2-8";
35
+ readonly min: 2;
36
+ readonly max: 8;
37
+ }, {
38
+ readonly id: "9-12";
39
+ readonly min: 9;
40
+ readonly max: 12;
41
+ }, {
42
+ readonly id: "13-16";
43
+ readonly min: 13;
44
+ readonly max: 16;
45
+ }];
46
+ type GptImage26GifBand = (typeof GPT_IMAGE_2_6_GIF_BANDS)[number]["id"];
47
+ /** The frames a GIF has when none are asked for (KIE's own default). */
48
+ declare const GPT_IMAGE_2_6_GIF_DEFAULT_FRAMES = 9;
49
+ /**
50
+ * The band a GIF of `frames` frames is priced in. A value that is not a whole
51
+ * number of frames, or is off the range, lands where the run lands: no value is
52
+ * the default nine frames, others are rounded and kept inside 2 to 16.
53
+ */
54
+ declare function gptImage26GifBand(frames: unknown): GptImage26GifBand;
55
+ /**
56
+ * An SVG is drawn at one of three levels of detail (Standard, Detailed, Max),
57
+ * each priced as the same image in PNG plus a fixed amount for the drawing.
58
+ */
59
+ declare const GPT_IMAGE_2_6_SVG_LEVELS: readonly ["standard", "detailed", "max"];
60
+ type GptImage26SvgLevel = (typeof GPT_IMAGE_2_6_SVG_LEVELS)[number];
61
+ declare const GPT_IMAGE_2_6_DEFAULT_SVG_LEVEL: GptImage26SvgLevel;
62
+ /** The format part of a GPT Image 2.6 price: a GIF's band, an SVG's level, or none (PNG, JPEG and WebP cost the same). */
63
+ type GptImage26PricedFormat = {
64
+ readonly kind: "gif";
65
+ readonly band: GptImage26GifBand;
66
+ } | {
67
+ readonly kind: "svg";
68
+ readonly level: GptImage26SvgLevel;
69
+ };
70
+ /** The levers a format is priced from, as a request or a node carries them (unchecked). */
71
+ interface ImageFormatLevers {
72
+ outputFormat?: unknown;
73
+ gifFrames?: unknown;
74
+ svgLevel?: unknown;
75
+ }
76
+ /** The format levers of a request body or a node's data, for a price. */
77
+ declare function imageFormatLeversOf(record: Record<string, unknown> | undefined): ImageFormatLevers;
78
+ declare function gptImage26PricedFormat(levers: ImageFormatLevers | undefined): GptImage26PricedFormat | undefined;
79
+ declare function isGptImage26I2i(model: string): boolean;
80
+ declare function isGptImage26Tiered(model: string): model is GptImage26TieredModel;
81
+ /** True for a run whose charge is settled on KIE's own bill: Flare or Sunburst at quality Auto. */
82
+ declare function isGptImage26AutoRun(provider: unknown, quality: unknown): boolean;
83
+ /**
84
+ * The images a Generate Image run sends to KIE on GPT Image 2.6: its references
85
+ * and, when it edits a base image, that image too (the worker puts it first,
86
+ * unless it is already one of the references). Any other model is priced on its
87
+ * references alone.
88
+ */
89
+ declare function gptImage26SentImages(provider: string | undefined, references: readonly string[], baseImageUrl: unknown): number;
90
+ /**
91
+ * The input images a workflow estimate counts for one node on a model priced
92
+ * per input image: every list on the node, its source or base image, what is
93
+ * wired in, a moodboard its direction names, and an image-to-image model's own
94
+ * source. An estimate may over-quote, never under.
95
+ */
96
+ declare function gptImage26EstimatedImages(model: string, data: Record<string, unknown>, wiredImages: number): number;
97
+
98
+ export { GPT_IMAGE_2_6_DEFAULT_QUALITY as G, type ImageFormatLevers as I, GPT_IMAGE_2_6_DEFAULT_RESOLUTION as a, GPT_IMAGE_2_6_DEFAULT_SVG_LEVEL as b, GPT_IMAGE_2_6_GIF_BANDS as c, GPT_IMAGE_2_6_GIF_DEFAULT_FRAMES as d, GPT_IMAGE_2_6_MAX_INPUT_IMAGES as e, GPT_IMAGE_2_6_METERED_QUALITY as f, GPT_IMAGE_2_6_QUALITIES as g, GPT_IMAGE_2_6_RESOLUTIONS as h, GPT_IMAGE_2_6_SVG_LEVELS as i, GPT_IMAGE_2_6_TIERED_I2I as j, GPT_IMAGE_2_6_TIERED_T2I as k, type GptImage26GifBand as l, type GptImage26PricedFormat as m, type GptImage26SvgLevel as n, gptImage26EstimatedImages as o, gptImage26GifBand as p, gptImage26PricedFormat as q, gptImage26SentImages as r, imageFormatLeversOf as s, isGptImage26AutoRun as t, isGptImage26I2i as u, isGptImage26Tiered as v };
@@ -0,0 +1,98 @@
1
+ /**
2
+ * What makes GPT Image 2.6 Flare and Sunburst price differently from every
3
+ * other image model: a quality setting AND a size, and on an edit the number of
4
+ * input images as well. Economy is a flat price and is not listed here.
5
+ *
6
+ * Only the ids and levers live in this published package. The rates and the
7
+ * formula are `backend/src/ee/billing/gpt-image-2-6-pricing.ts`.
8
+ */
9
+ declare const GPT_IMAGE_2_6_TIERED_T2I: readonly ["gpt-image-2-6-flare", "gpt-image-2-6-sunburst"];
10
+ declare const GPT_IMAGE_2_6_TIERED_I2I: readonly ["gpt-image-2-6-flare-i2i", "gpt-image-2-6-sunburst-i2i"];
11
+ type GptImage26TieredModel = (typeof GPT_IMAGE_2_6_TIERED_T2I)[number] | (typeof GPT_IMAGE_2_6_TIERED_I2I)[number];
12
+ declare const GPT_IMAGE_2_6_QUALITIES: readonly ["auto", "low", "medium", "high", "xhigh", "max"];
13
+ type GptImage26Quality = (typeof GPT_IMAGE_2_6_QUALITIES)[number];
14
+ /**
15
+ * The quality whose price is known only after the run: KIE picks the level. It
16
+ * is reserved at the Max row and settled on what KIE really billed; every other
17
+ * quality keeps its fixed row.
18
+ */
19
+ declare const GPT_IMAGE_2_6_METERED_QUALITY: GptImage26Quality;
20
+ declare const GPT_IMAGE_2_6_RESOLUTIONS: readonly ["1K", "2K", "4K"];
21
+ type GptImage26Resolution = (typeof GPT_IMAGE_2_6_RESOLUTIONS)[number];
22
+ declare const GPT_IMAGE_2_6_DEFAULT_QUALITY: GptImage26Quality;
23
+ declare const GPT_IMAGE_2_6_DEFAULT_RESOLUTION: GptImage26Resolution;
24
+ /** The most input images an edit is priced for (`REF_IMAGE_MAX_LIMITS`). */
25
+ declare const GPT_IMAGE_2_6_MAX_INPUT_IMAGES = 16;
26
+ /**
27
+ * A GIF is priced by quality and by how many frames it has, in three bands:
28
+ * KIE draws every frame of a GIF on one sheet, and the frames of a band share a
29
+ * sheet size. Its price does not depend on the ratio or size (a GIF is always
30
+ * square, 512 pixels a frame). Ten to twelve frames take nine's price, so the
31
+ * bands rise in order.
32
+ */
33
+ declare const GPT_IMAGE_2_6_GIF_BANDS: readonly [{
34
+ readonly id: "2-8";
35
+ readonly min: 2;
36
+ readonly max: 8;
37
+ }, {
38
+ readonly id: "9-12";
39
+ readonly min: 9;
40
+ readonly max: 12;
41
+ }, {
42
+ readonly id: "13-16";
43
+ readonly min: 13;
44
+ readonly max: 16;
45
+ }];
46
+ type GptImage26GifBand = (typeof GPT_IMAGE_2_6_GIF_BANDS)[number]["id"];
47
+ /** The frames a GIF has when none are asked for (KIE's own default). */
48
+ declare const GPT_IMAGE_2_6_GIF_DEFAULT_FRAMES = 9;
49
+ /**
50
+ * The band a GIF of `frames` frames is priced in. A value that is not a whole
51
+ * number of frames, or is off the range, lands where the run lands: no value is
52
+ * the default nine frames, others are rounded and kept inside 2 to 16.
53
+ */
54
+ declare function gptImage26GifBand(frames: unknown): GptImage26GifBand;
55
+ /**
56
+ * An SVG is drawn at one of three levels of detail (Standard, Detailed, Max),
57
+ * each priced as the same image in PNG plus a fixed amount for the drawing.
58
+ */
59
+ declare const GPT_IMAGE_2_6_SVG_LEVELS: readonly ["standard", "detailed", "max"];
60
+ type GptImage26SvgLevel = (typeof GPT_IMAGE_2_6_SVG_LEVELS)[number];
61
+ declare const GPT_IMAGE_2_6_DEFAULT_SVG_LEVEL: GptImage26SvgLevel;
62
+ /** The format part of a GPT Image 2.6 price: a GIF's band, an SVG's level, or none (PNG, JPEG and WebP cost the same). */
63
+ type GptImage26PricedFormat = {
64
+ readonly kind: "gif";
65
+ readonly band: GptImage26GifBand;
66
+ } | {
67
+ readonly kind: "svg";
68
+ readonly level: GptImage26SvgLevel;
69
+ };
70
+ /** The levers a format is priced from, as a request or a node carries them (unchecked). */
71
+ interface ImageFormatLevers {
72
+ outputFormat?: unknown;
73
+ gifFrames?: unknown;
74
+ svgLevel?: unknown;
75
+ }
76
+ /** The format levers of a request body or a node's data, for a price. */
77
+ declare function imageFormatLeversOf(record: Record<string, unknown> | undefined): ImageFormatLevers;
78
+ declare function gptImage26PricedFormat(levers: ImageFormatLevers | undefined): GptImage26PricedFormat | undefined;
79
+ declare function isGptImage26I2i(model: string): boolean;
80
+ declare function isGptImage26Tiered(model: string): model is GptImage26TieredModel;
81
+ /** True for a run whose charge is settled on KIE's own bill: Flare or Sunburst at quality Auto. */
82
+ declare function isGptImage26AutoRun(provider: unknown, quality: unknown): boolean;
83
+ /**
84
+ * The images a Generate Image run sends to KIE on GPT Image 2.6: its references
85
+ * and, when it edits a base image, that image too (the worker puts it first,
86
+ * unless it is already one of the references). Any other model is priced on its
87
+ * references alone.
88
+ */
89
+ declare function gptImage26SentImages(provider: string | undefined, references: readonly string[], baseImageUrl: unknown): number;
90
+ /**
91
+ * The input images a workflow estimate counts for one node on a model priced
92
+ * per input image: every list on the node, its source or base image, what is
93
+ * wired in, a moodboard its direction names, and an image-to-image model's own
94
+ * source. An estimate may over-quote, never under.
95
+ */
96
+ declare function gptImage26EstimatedImages(model: string, data: Record<string, unknown>, wiredImages: number): number;
97
+
98
+ export { GPT_IMAGE_2_6_DEFAULT_QUALITY as G, type ImageFormatLevers as I, GPT_IMAGE_2_6_DEFAULT_RESOLUTION as a, GPT_IMAGE_2_6_DEFAULT_SVG_LEVEL as b, GPT_IMAGE_2_6_GIF_BANDS as c, GPT_IMAGE_2_6_GIF_DEFAULT_FRAMES as d, GPT_IMAGE_2_6_MAX_INPUT_IMAGES as e, GPT_IMAGE_2_6_METERED_QUALITY as f, GPT_IMAGE_2_6_QUALITIES as g, GPT_IMAGE_2_6_RESOLUTIONS as h, GPT_IMAGE_2_6_SVG_LEVELS as i, GPT_IMAGE_2_6_TIERED_I2I as j, GPT_IMAGE_2_6_TIERED_T2I as k, type GptImage26GifBand as l, type GptImage26PricedFormat as m, type GptImage26SvgLevel as n, gptImage26EstimatedImages as o, gptImage26GifBand as p, gptImage26PricedFormat as q, gptImage26SentImages as r, imageFormatLeversOf as s, isGptImage26AutoRun as t, isGptImage26I2i as u, isGptImage26Tiered as v };