@hedra/sdk 5.2.0 → 5.3.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 (122) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/BaseClient.js +3 -3
  3. package/dist/cjs/api/resources/billing/client/Client.js +3 -3
  4. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/jobs/client/Client.d.ts +183 -0
  6. package/dist/cjs/api/resources/jobs/client/Client.js +594 -99
  7. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.d.ts +20 -0
  8. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.js +3 -0
  9. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.d.ts +20 -0
  10. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.js +3 -0
  11. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.d.ts +18 -0
  12. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.js +3 -0
  13. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.d.ts +18 -0
  14. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.js +3 -0
  15. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.d.ts +18 -0
  16. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.js +3 -0
  17. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKrea2.d.ts +17 -0
  18. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKrea2.js +3 -0
  19. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +6 -0
  20. package/dist/cjs/api/resources/keys/client/Client.js +4 -4
  21. package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
  22. package/dist/cjs/api/resources/models/client/Client.js +7 -7
  23. package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
  24. package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
  25. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreative.d.ts +21 -0
  26. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreative.js +13 -0
  27. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.d.ts +23 -0
  28. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.js +3 -0
  29. package/dist/cjs/api/types/InputFlux3VideoUpscalerPrecise.d.ts +21 -0
  30. package/dist/cjs/api/types/InputFlux3VideoUpscalerPrecise.js +13 -0
  31. package/dist/cjs/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.d.ts +23 -0
  32. package/dist/cjs/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.js +3 -0
  33. package/dist/cjs/api/types/InputGeminiOmniFlash11.d.ts +42 -0
  34. package/dist/cjs/api/types/InputGeminiOmniFlash11.js +19 -0
  35. package/dist/cjs/api/types/InputGeminiOmniFlash11EndImage.d.ts +23 -0
  36. package/dist/cjs/api/types/InputGeminiOmniFlash11EndImage.js +3 -0
  37. package/dist/cjs/api/types/InputGeminiOmniFlash11ImagesItem.d.ts +20 -0
  38. package/dist/cjs/api/types/InputGeminiOmniFlash11ImagesItem.js +3 -0
  39. package/dist/cjs/api/types/InputGeminiOmniFlash11SourceVideo.d.ts +23 -0
  40. package/dist/cjs/api/types/InputGeminiOmniFlash11SourceVideo.js +3 -0
  41. package/dist/cjs/api/types/InputGeminiOmniFlash11StartImage.d.ts +23 -0
  42. package/dist/cjs/api/types/InputGeminiOmniFlash11StartImage.js +3 -0
  43. package/dist/cjs/api/types/InputGeminiOmniFlash11VideosItem.d.ts +20 -0
  44. package/dist/cjs/api/types/InputGeminiOmniFlash11VideosItem.js +3 -0
  45. package/dist/cjs/api/types/InputGptImage25Flare.d.ts +59 -0
  46. package/dist/cjs/api/types/InputGptImage25Flare.js +34 -0
  47. package/dist/cjs/api/types/InputGptImage25FlareImagesItem.d.ts +20 -0
  48. package/dist/cjs/api/types/InputGptImage25FlareImagesItem.js +3 -0
  49. package/dist/cjs/api/types/InputGptImage25Sunburst.d.ts +59 -0
  50. package/dist/cjs/api/types/InputGptImage25Sunburst.js +34 -0
  51. package/dist/cjs/api/types/InputGptImage25SunburstImagesItem.d.ts +20 -0
  52. package/dist/cjs/api/types/InputGptImage25SunburstImagesItem.js +3 -0
  53. package/dist/cjs/api/types/InputKrea2.d.ts +52 -0
  54. package/dist/cjs/api/types/InputKrea2.js +30 -0
  55. package/dist/cjs/api/types/InputKrea2ImagesItem.d.ts +20 -0
  56. package/dist/cjs/api/types/InputKrea2ImagesItem.js +3 -0
  57. package/dist/cjs/api/types/index.d.ts +16 -0
  58. package/dist/cjs/api/types/index.js +16 -0
  59. package/dist/cjs/version.d.ts +1 -1
  60. package/dist/cjs/version.js +1 -1
  61. package/dist/esm/BaseClient.d.mts +2 -2
  62. package/dist/esm/BaseClient.mjs +3 -3
  63. package/dist/esm/api/resources/billing/client/Client.mjs +3 -3
  64. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  65. package/dist/esm/api/resources/jobs/client/Client.d.mts +183 -0
  66. package/dist/esm/api/resources/jobs/client/Client.mjs +594 -99
  67. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.d.mts +20 -0
  68. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.mjs +2 -0
  69. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.d.mts +20 -0
  70. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.mjs +2 -0
  71. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.d.mts +18 -0
  72. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.mjs +2 -0
  73. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.d.mts +18 -0
  74. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.mjs +2 -0
  75. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.d.mts +18 -0
  76. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.mjs +2 -0
  77. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKrea2.d.mts +17 -0
  78. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKrea2.mjs +2 -0
  79. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +6 -0
  80. package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
  81. package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
  82. package/dist/esm/api/resources/models/client/Client.mjs +7 -7
  83. package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
  84. package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
  85. package/dist/esm/api/types/InputFlux3VideoUpscalerCreative.d.mts +21 -0
  86. package/dist/esm/api/types/InputFlux3VideoUpscalerCreative.mjs +10 -0
  87. package/dist/esm/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.d.mts +23 -0
  88. package/dist/esm/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.mjs +2 -0
  89. package/dist/esm/api/types/InputFlux3VideoUpscalerPrecise.d.mts +21 -0
  90. package/dist/esm/api/types/InputFlux3VideoUpscalerPrecise.mjs +10 -0
  91. package/dist/esm/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.d.mts +23 -0
  92. package/dist/esm/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.mjs +2 -0
  93. package/dist/esm/api/types/InputGeminiOmniFlash11.d.mts +42 -0
  94. package/dist/esm/api/types/InputGeminiOmniFlash11.mjs +16 -0
  95. package/dist/esm/api/types/InputGeminiOmniFlash11EndImage.d.mts +23 -0
  96. package/dist/esm/api/types/InputGeminiOmniFlash11EndImage.mjs +2 -0
  97. package/dist/esm/api/types/InputGeminiOmniFlash11ImagesItem.d.mts +20 -0
  98. package/dist/esm/api/types/InputGeminiOmniFlash11ImagesItem.mjs +2 -0
  99. package/dist/esm/api/types/InputGeminiOmniFlash11SourceVideo.d.mts +23 -0
  100. package/dist/esm/api/types/InputGeminiOmniFlash11SourceVideo.mjs +2 -0
  101. package/dist/esm/api/types/InputGeminiOmniFlash11StartImage.d.mts +23 -0
  102. package/dist/esm/api/types/InputGeminiOmniFlash11StartImage.mjs +2 -0
  103. package/dist/esm/api/types/InputGeminiOmniFlash11VideosItem.d.mts +20 -0
  104. package/dist/esm/api/types/InputGeminiOmniFlash11VideosItem.mjs +2 -0
  105. package/dist/esm/api/types/InputGptImage25Flare.d.mts +59 -0
  106. package/dist/esm/api/types/InputGptImage25Flare.mjs +31 -0
  107. package/dist/esm/api/types/InputGptImage25FlareImagesItem.d.mts +20 -0
  108. package/dist/esm/api/types/InputGptImage25FlareImagesItem.mjs +2 -0
  109. package/dist/esm/api/types/InputGptImage25Sunburst.d.mts +59 -0
  110. package/dist/esm/api/types/InputGptImage25Sunburst.mjs +31 -0
  111. package/dist/esm/api/types/InputGptImage25SunburstImagesItem.d.mts +20 -0
  112. package/dist/esm/api/types/InputGptImage25SunburstImagesItem.mjs +2 -0
  113. package/dist/esm/api/types/InputKrea2.d.mts +52 -0
  114. package/dist/esm/api/types/InputKrea2.mjs +27 -0
  115. package/dist/esm/api/types/InputKrea2ImagesItem.d.mts +20 -0
  116. package/dist/esm/api/types/InputKrea2ImagesItem.mjs +2 -0
  117. package/dist/esm/api/types/index.d.mts +16 -0
  118. package/dist/esm/api/types/index.mjs +16 -0
  119. package/dist/esm/version.d.mts +1 -1
  120. package/dist/esm/version.mjs +1 -1
  121. package/package.json +2 -2
  122. package/reference.md +429 -0
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ /**
3
+ * End frame. At most 10.4 MB.
4
+ */
5
+ export type InputGeminiOmniFlash11EndImage =
6
+ /**
7
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
8
+ Hedra.InputGeminiOmniFlash11EndImage.Url
9
+ /**
10
+ * An existing asset you own, referenced by its id. */
11
+ | Hedra.InputGeminiOmniFlash11EndImage.Asset;
12
+ export declare namespace InputGeminiOmniFlash11EndImage {
13
+ interface Url {
14
+ source: "url";
15
+ /** A URL returned by POST /v3/files. */
16
+ url: string;
17
+ }
18
+ interface Asset {
19
+ source: "asset";
20
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
21
+ asset_id: string;
22
+ }
23
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ export type InputGeminiOmniFlash11ImagesItem =
3
+ /**
4
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
5
+ Hedra.InputGeminiOmniFlash11ImagesItem.Url
6
+ /**
7
+ * An existing asset you own, referenced by its id. */
8
+ | Hedra.InputGeminiOmniFlash11ImagesItem.Asset;
9
+ export declare namespace InputGeminiOmniFlash11ImagesItem {
10
+ interface Url {
11
+ source: "url";
12
+ /** A URL returned by POST /v3/files. */
13
+ url: string;
14
+ }
15
+ interface Asset {
16
+ source: "asset";
17
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
18
+ asset_id: string;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ /**
3
+ * Source video. From 1s to 10s and at most 524.2 MB.
4
+ */
5
+ export type InputGeminiOmniFlash11SourceVideo =
6
+ /**
7
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
8
+ Hedra.InputGeminiOmniFlash11SourceVideo.Url
9
+ /**
10
+ * An existing asset you own, referenced by its id. */
11
+ | Hedra.InputGeminiOmniFlash11SourceVideo.Asset;
12
+ export declare namespace InputGeminiOmniFlash11SourceVideo {
13
+ interface Url {
14
+ source: "url";
15
+ /** A URL returned by POST /v3/files. */
16
+ url: string;
17
+ }
18
+ interface Asset {
19
+ source: "asset";
20
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
21
+ asset_id: string;
22
+ }
23
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ /**
3
+ * Start frame. At most 10.4 MB.
4
+ */
5
+ export type InputGeminiOmniFlash11StartImage =
6
+ /**
7
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
8
+ Hedra.InputGeminiOmniFlash11StartImage.Url
9
+ /**
10
+ * An existing asset you own, referenced by its id. */
11
+ | Hedra.InputGeminiOmniFlash11StartImage.Asset;
12
+ export declare namespace InputGeminiOmniFlash11StartImage {
13
+ interface Url {
14
+ source: "url";
15
+ /** A URL returned by POST /v3/files. */
16
+ url: string;
17
+ }
18
+ interface Asset {
19
+ source: "asset";
20
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
21
+ asset_id: string;
22
+ }
23
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ export type InputGeminiOmniFlash11VideosItem =
3
+ /**
4
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
5
+ Hedra.InputGeminiOmniFlash11VideosItem.Url
6
+ /**
7
+ * An existing asset you own, referenced by its id. */
8
+ | Hedra.InputGeminiOmniFlash11VideosItem.Asset;
9
+ export declare namespace InputGeminiOmniFlash11VideosItem {
10
+ interface Url {
11
+ source: "url";
12
+ /** A URL returned by POST /v3/files. */
13
+ url: string;
14
+ }
15
+ interface Asset {
16
+ source: "asset";
17
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
18
+ asset_id: string;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,59 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ /**
3
+ * Model-specific inputs for `gpt-image-2.5-flare`.
4
+ *
5
+ * Accepted field combinations (one per input mode):
6
+ * (1) requires: aspect_ratio, images, prompt, resolution
7
+ * (2) requires: aspect_ratio, prompt, resolution; must omit: images
8
+ */
9
+ export interface InputGptImage25Flare {
10
+ /** Generation prompt. At most 32000 characters. */
11
+ prompt: string;
12
+ /** Number of outputs generated per job. Only 1 is supported. */
13
+ num_outputs?: number | undefined;
14
+ /** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
15
+ enhance_prompt?: boolean | undefined;
16
+ /** Output aspect ratio. */
17
+ aspect_ratio: InputGptImage25Flare.AspectRatio;
18
+ /** Output resolution. */
19
+ resolution: InputGptImage25Flare.Resolution;
20
+ /** Output image format. */
21
+ output_format?: InputGptImage25Flare.OutputFormat | undefined;
22
+ /** Images to edit or blend. 1 to 16 images, each at most 30 MB. */
23
+ images?: Hedra.InputGptImage25FlareImagesItem[] | undefined;
24
+ /** Quality level to generate at. `auto` — automatically selects rendering quality for the prompt. `low` — low rendering quality for the Flare model. `medium` — medium rendering quality for the Flare model. `high` — high rendering quality for the Flare model. */
25
+ quality?: InputGptImage25Flare.Quality | undefined;
26
+ }
27
+ export declare namespace InputGptImage25Flare {
28
+ /** Output aspect ratio. */
29
+ const AspectRatio: {
30
+ readonly Sixteen9: "16:9";
31
+ readonly Nine16: "9:16";
32
+ readonly Four3: "4:3";
33
+ readonly Three4: "3:4";
34
+ readonly One1: "1:1";
35
+ };
36
+ type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
37
+ /** Output resolution. */
38
+ const Resolution: {
39
+ readonly OneK: "1K";
40
+ readonly TwoK: "2K";
41
+ readonly FourK: "4K";
42
+ };
43
+ type Resolution = (typeof Resolution)[keyof typeof Resolution];
44
+ /** Output image format. */
45
+ const OutputFormat: {
46
+ readonly Jpeg: "jpeg";
47
+ readonly Png: "png";
48
+ readonly Webp: "webp";
49
+ };
50
+ type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
51
+ /** Quality level to generate at. `auto` — automatically selects rendering quality for the prompt. `low` — low rendering quality for the Flare model. `medium` — medium rendering quality for the Flare model. `high` — high rendering quality for the Flare model. */
52
+ const Quality: {
53
+ readonly Auto: "auto";
54
+ readonly Low: "low";
55
+ readonly Medium: "medium";
56
+ readonly High: "high";
57
+ };
58
+ type Quality = (typeof Quality)[keyof typeof Quality];
59
+ }
@@ -0,0 +1,31 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var InputGptImage25Flare;
3
+ (function (InputGptImage25Flare) {
4
+ /** Output aspect ratio. */
5
+ InputGptImage25Flare.AspectRatio = {
6
+ Sixteen9: "16:9",
7
+ Nine16: "9:16",
8
+ Four3: "4:3",
9
+ Three4: "3:4",
10
+ One1: "1:1",
11
+ };
12
+ /** Output resolution. */
13
+ InputGptImage25Flare.Resolution = {
14
+ OneK: "1K",
15
+ TwoK: "2K",
16
+ FourK: "4K",
17
+ };
18
+ /** Output image format. */
19
+ InputGptImage25Flare.OutputFormat = {
20
+ Jpeg: "jpeg",
21
+ Png: "png",
22
+ Webp: "webp",
23
+ };
24
+ /** Quality level to generate at. `auto` — automatically selects rendering quality for the prompt. `low` — low rendering quality for the Flare model. `medium` — medium rendering quality for the Flare model. `high` — high rendering quality for the Flare model. */
25
+ InputGptImage25Flare.Quality = {
26
+ Auto: "auto",
27
+ Low: "low",
28
+ Medium: "medium",
29
+ High: "high",
30
+ };
31
+ })(InputGptImage25Flare || (InputGptImage25Flare = {}));
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ export type InputGptImage25FlareImagesItem =
3
+ /**
4
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
5
+ Hedra.InputGptImage25FlareImagesItem.Url
6
+ /**
7
+ * An existing asset you own, referenced by its id. */
8
+ | Hedra.InputGptImage25FlareImagesItem.Asset;
9
+ export declare namespace InputGptImage25FlareImagesItem {
10
+ interface Url {
11
+ source: "url";
12
+ /** A URL returned by POST /v3/files. */
13
+ url: string;
14
+ }
15
+ interface Asset {
16
+ source: "asset";
17
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
18
+ asset_id: string;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,59 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ /**
3
+ * Model-specific inputs for `gpt-image-2.5-sunburst`.
4
+ *
5
+ * Accepted field combinations (one per input mode):
6
+ * (1) requires: aspect_ratio, images, prompt, resolution
7
+ * (2) requires: aspect_ratio, prompt, resolution; must omit: images
8
+ */
9
+ export interface InputGptImage25Sunburst {
10
+ /** Generation prompt. At most 32000 characters. */
11
+ prompt: string;
12
+ /** Number of outputs generated per job. Only 1 is supported. */
13
+ num_outputs?: number | undefined;
14
+ /** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
15
+ enhance_prompt?: boolean | undefined;
16
+ /** Output aspect ratio. */
17
+ aspect_ratio: InputGptImage25Sunburst.AspectRatio;
18
+ /** Output resolution. */
19
+ resolution: InputGptImage25Sunburst.Resolution;
20
+ /** Output image format. */
21
+ output_format?: InputGptImage25Sunburst.OutputFormat | undefined;
22
+ /** Images to edit or blend. 1 to 16 images, each at most 30 MB. */
23
+ images?: Hedra.InputGptImage25SunburstImagesItem[] | undefined;
24
+ /** Quality level to generate at. `auto` — automatically selects rendering quality for the prompt. `low` — low rendering quality for the Sunburst model. `medium` — medium rendering quality for the Sunburst model. `high` — high rendering quality for the Sunburst model. */
25
+ quality?: InputGptImage25Sunburst.Quality | undefined;
26
+ }
27
+ export declare namespace InputGptImage25Sunburst {
28
+ /** Output aspect ratio. */
29
+ const AspectRatio: {
30
+ readonly Sixteen9: "16:9";
31
+ readonly Nine16: "9:16";
32
+ readonly Four3: "4:3";
33
+ readonly Three4: "3:4";
34
+ readonly One1: "1:1";
35
+ };
36
+ type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
37
+ /** Output resolution. */
38
+ const Resolution: {
39
+ readonly OneK: "1K";
40
+ readonly TwoK: "2K";
41
+ readonly FourK: "4K";
42
+ };
43
+ type Resolution = (typeof Resolution)[keyof typeof Resolution];
44
+ /** Output image format. */
45
+ const OutputFormat: {
46
+ readonly Jpeg: "jpeg";
47
+ readonly Png: "png";
48
+ readonly Webp: "webp";
49
+ };
50
+ type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
51
+ /** Quality level to generate at. `auto` — automatically selects rendering quality for the prompt. `low` — low rendering quality for the Sunburst model. `medium` — medium rendering quality for the Sunburst model. `high` — high rendering quality for the Sunburst model. */
52
+ const Quality: {
53
+ readonly Auto: "auto";
54
+ readonly Low: "low";
55
+ readonly Medium: "medium";
56
+ readonly High: "high";
57
+ };
58
+ type Quality = (typeof Quality)[keyof typeof Quality];
59
+ }
@@ -0,0 +1,31 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var InputGptImage25Sunburst;
3
+ (function (InputGptImage25Sunburst) {
4
+ /** Output aspect ratio. */
5
+ InputGptImage25Sunburst.AspectRatio = {
6
+ Sixteen9: "16:9",
7
+ Nine16: "9:16",
8
+ Four3: "4:3",
9
+ Three4: "3:4",
10
+ One1: "1:1",
11
+ };
12
+ /** Output resolution. */
13
+ InputGptImage25Sunburst.Resolution = {
14
+ OneK: "1K",
15
+ TwoK: "2K",
16
+ FourK: "4K",
17
+ };
18
+ /** Output image format. */
19
+ InputGptImage25Sunburst.OutputFormat = {
20
+ Jpeg: "jpeg",
21
+ Png: "png",
22
+ Webp: "webp",
23
+ };
24
+ /** Quality level to generate at. `auto` — automatically selects rendering quality for the prompt. `low` — low rendering quality for the Sunburst model. `medium` — medium rendering quality for the Sunburst model. `high` — high rendering quality for the Sunburst model. */
25
+ InputGptImage25Sunburst.Quality = {
26
+ Auto: "auto",
27
+ Low: "low",
28
+ Medium: "medium",
29
+ High: "high",
30
+ };
31
+ })(InputGptImage25Sunburst || (InputGptImage25Sunburst = {}));
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ export type InputGptImage25SunburstImagesItem =
3
+ /**
4
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
5
+ Hedra.InputGptImage25SunburstImagesItem.Url
6
+ /**
7
+ * An existing asset you own, referenced by its id. */
8
+ | Hedra.InputGptImage25SunburstImagesItem.Asset;
9
+ export declare namespace InputGptImage25SunburstImagesItem {
10
+ interface Url {
11
+ source: "url";
12
+ /** A URL returned by POST /v3/files. */
13
+ url: string;
14
+ }
15
+ interface Asset {
16
+ source: "asset";
17
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
18
+ asset_id: string;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,52 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ /**
3
+ * Model-specific inputs for `krea-2`.
4
+ */
5
+ export interface InputKrea2 {
6
+ /** Generation prompt. From 1 to 5000 characters. */
7
+ prompt: string;
8
+ /** Number of outputs generated per job. Only 1 is supported. */
9
+ num_outputs?: number | undefined;
10
+ /** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
11
+ enhance_prompt?: boolean | undefined;
12
+ /** Output aspect ratio. */
13
+ aspect_ratio: InputKrea2.AspectRatio;
14
+ /** How loosely the model may read the prompt. 'raw' stays closest to it; 'high' drifts furthest for a more inventive result. Omit for Krea's own default ('medium'). */
15
+ creativity?: InputKrea2.Creativity | undefined;
16
+ /** Reference images whose style — palette, lighting, texture, art direction — the generated image takes on. A reference with no clear subject of its own can crowd out the one you prompted for; lower `style_strength` to hold it back. Omit them to render from the prompt alone. 1 to 10 images, each at most 30 MB. */
17
+ images?: Hedra.InputKrea2ImagesItem[] | undefined;
18
+ /** How strongly the reference images pull the render toward their style, applied to every one of them. Krea pulls as hard as it can unless you say otherwise; lower this to leave more of the prompt's own subject, and 0 to ignore the references' style entirely. From 0 to 1. */
19
+ style_strength?: number | undefined;
20
+ /** Seed passed to Krea. It does not make a render repeatable — Krea returns a different image each time from the same seed. */
21
+ seed?: number | undefined;
22
+ /** Quality level to generate at. `medium` — the smaller model, strongest on illustration, anime and painting. `large` — the larger model, for photorealism and the effects that sell it — motion blur, grain, low dynamic range. */
23
+ quality?: InputKrea2.Quality | undefined;
24
+ }
25
+ export declare namespace InputKrea2 {
26
+ /** Output aspect ratio. */
27
+ const AspectRatio: {
28
+ readonly One1: "1:1";
29
+ readonly Four3: "4:3";
30
+ readonly Three2: "3:2";
31
+ readonly Sixteen9: "16:9";
32
+ readonly Two351: "2.35:1";
33
+ readonly Four5: "4:5";
34
+ readonly Two3: "2:3";
35
+ readonly Nine16: "9:16";
36
+ };
37
+ type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
38
+ /** How loosely the model may read the prompt. 'raw' stays closest to it; 'high' drifts furthest for a more inventive result. Omit for Krea's own default ('medium'). */
39
+ const Creativity: {
40
+ readonly Raw: "raw";
41
+ readonly Low: "low";
42
+ readonly Medium: "medium";
43
+ readonly High: "high";
44
+ };
45
+ type Creativity = (typeof Creativity)[keyof typeof Creativity];
46
+ /** Quality level to generate at. `medium` — the smaller model, strongest on illustration, anime and painting. `large` — the larger model, for photorealism and the effects that sell it — motion blur, grain, low dynamic range. */
47
+ const Quality: {
48
+ readonly Medium: "medium";
49
+ readonly Large: "large";
50
+ };
51
+ type Quality = (typeof Quality)[keyof typeof Quality];
52
+ }
@@ -0,0 +1,27 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var InputKrea2;
3
+ (function (InputKrea2) {
4
+ /** Output aspect ratio. */
5
+ InputKrea2.AspectRatio = {
6
+ One1: "1:1",
7
+ Four3: "4:3",
8
+ Three2: "3:2",
9
+ Sixteen9: "16:9",
10
+ Two351: "2.35:1",
11
+ Four5: "4:5",
12
+ Two3: "2:3",
13
+ Nine16: "9:16",
14
+ };
15
+ /** How loosely the model may read the prompt. 'raw' stays closest to it; 'high' drifts furthest for a more inventive result. Omit for Krea's own default ('medium'). */
16
+ InputKrea2.Creativity = {
17
+ Raw: "raw",
18
+ Low: "low",
19
+ Medium: "medium",
20
+ High: "high",
21
+ };
22
+ /** Quality level to generate at. `medium` — the smaller model, strongest on illustration, anime and painting. `large` — the larger model, for photorealism and the effects that sell it — motion blur, grain, low dynamic range. */
23
+ InputKrea2.Quality = {
24
+ Medium: "medium",
25
+ Large: "large",
26
+ };
27
+ })(InputKrea2 || (InputKrea2 = {}));
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../index.mjs";
2
+ export type InputKrea2ImagesItem =
3
+ /**
4
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
5
+ Hedra.InputKrea2ImagesItem.Url
6
+ /**
7
+ * An existing asset you own, referenced by its id. */
8
+ | Hedra.InputKrea2ImagesItem.Asset;
9
+ export declare namespace InputKrea2ImagesItem {
10
+ interface Url {
11
+ source: "url";
12
+ /** A URL returned by POST /v3/files. */
13
+ url: string;
14
+ }
15
+ interface Asset {
16
+ source: "asset";
17
+ /** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
18
+ asset_id: string;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -37,6 +37,10 @@ export * from "./InputFlux2ProImagesItem.mjs";
37
37
  export * from "./InputFlux3.mjs";
38
38
  export * from "./InputFlux3EndImage.mjs";
39
39
  export * from "./InputFlux3StartImage.mjs";
40
+ export * from "./InputFlux3VideoUpscalerCreative.mjs";
41
+ export * from "./InputFlux3VideoUpscalerCreativeSourceVideo.mjs";
42
+ export * from "./InputFlux3VideoUpscalerPrecise.mjs";
43
+ export * from "./InputFlux3VideoUpscalerPreciseSourceVideo.mjs";
40
44
  export * from "./InputFlux11Pro.mjs";
41
45
  export * from "./InputFlux11Ultra.mjs";
42
46
  export * from "./InputFluxDev.mjs";
@@ -45,6 +49,12 @@ export * from "./InputFluxKontextMaxImagesItem.mjs";
45
49
  export * from "./InputFluxKontextPro.mjs";
46
50
  export * from "./InputFluxKontextProImagesItem.mjs";
47
51
  export * from "./InputGeminiOmniFlash.mjs";
52
+ export * from "./InputGeminiOmniFlash11.mjs";
53
+ export * from "./InputGeminiOmniFlash11EndImage.mjs";
54
+ export * from "./InputGeminiOmniFlash11ImagesItem.mjs";
55
+ export * from "./InputGeminiOmniFlash11SourceVideo.mjs";
56
+ export * from "./InputGeminiOmniFlash11StartImage.mjs";
57
+ export * from "./InputGeminiOmniFlash11VideosItem.mjs";
48
58
  export * from "./InputGeminiOmniFlashImagesItem.mjs";
49
59
  export * from "./InputGeminiOmniFlashSourceVideo.mjs";
50
60
  export * from "./InputGeminiOmniFlashStartImage.mjs";
@@ -53,6 +63,10 @@ export * from "./InputGptImage2.mjs";
53
63
  export * from "./InputGptImage2ImagesItem.mjs";
54
64
  export * from "./InputGptImage15.mjs";
55
65
  export * from "./InputGptImage15ImagesItem.mjs";
66
+ export * from "./InputGptImage25Flare.mjs";
67
+ export * from "./InputGptImage25FlareImagesItem.mjs";
68
+ export * from "./InputGptImage25Sunburst.mjs";
69
+ export * from "./InputGptImage25SunburstImagesItem.mjs";
56
70
  export * from "./InputGrokImagine.mjs";
57
71
  export * from "./InputGrokImagine20.mjs";
58
72
  export * from "./InputGrokImagine20ImagesItem.mjs";
@@ -113,6 +127,8 @@ export * from "./InputKlingV3MotionControl.mjs";
113
127
  export * from "./InputKlingV3MotionControlSourceVideo.mjs";
114
128
  export * from "./InputKlingV3MotionControlStartImage.mjs";
115
129
  export * from "./InputKlingV3StartImage.mjs";
130
+ export * from "./InputKrea2.mjs";
131
+ export * from "./InputKrea2ImagesItem.mjs";
116
132
  export * from "./InputLtx23.mjs";
117
133
  export * from "./InputLtx23EndImage.mjs";
118
134
  export * from "./InputLtx23StartImage.mjs";
@@ -37,6 +37,10 @@ export * from "./InputFlux2ProImagesItem.mjs";
37
37
  export * from "./InputFlux3.mjs";
38
38
  export * from "./InputFlux3EndImage.mjs";
39
39
  export * from "./InputFlux3StartImage.mjs";
40
+ export * from "./InputFlux3VideoUpscalerCreative.mjs";
41
+ export * from "./InputFlux3VideoUpscalerCreativeSourceVideo.mjs";
42
+ export * from "./InputFlux3VideoUpscalerPrecise.mjs";
43
+ export * from "./InputFlux3VideoUpscalerPreciseSourceVideo.mjs";
40
44
  export * from "./InputFlux11Pro.mjs";
41
45
  export * from "./InputFlux11Ultra.mjs";
42
46
  export * from "./InputFluxDev.mjs";
@@ -45,6 +49,12 @@ export * from "./InputFluxKontextMaxImagesItem.mjs";
45
49
  export * from "./InputFluxKontextPro.mjs";
46
50
  export * from "./InputFluxKontextProImagesItem.mjs";
47
51
  export * from "./InputGeminiOmniFlash.mjs";
52
+ export * from "./InputGeminiOmniFlash11.mjs";
53
+ export * from "./InputGeminiOmniFlash11EndImage.mjs";
54
+ export * from "./InputGeminiOmniFlash11ImagesItem.mjs";
55
+ export * from "./InputGeminiOmniFlash11SourceVideo.mjs";
56
+ export * from "./InputGeminiOmniFlash11StartImage.mjs";
57
+ export * from "./InputGeminiOmniFlash11VideosItem.mjs";
48
58
  export * from "./InputGeminiOmniFlashImagesItem.mjs";
49
59
  export * from "./InputGeminiOmniFlashSourceVideo.mjs";
50
60
  export * from "./InputGeminiOmniFlashStartImage.mjs";
@@ -53,6 +63,10 @@ export * from "./InputGptImage2.mjs";
53
63
  export * from "./InputGptImage2ImagesItem.mjs";
54
64
  export * from "./InputGptImage15.mjs";
55
65
  export * from "./InputGptImage15ImagesItem.mjs";
66
+ export * from "./InputGptImage25Flare.mjs";
67
+ export * from "./InputGptImage25FlareImagesItem.mjs";
68
+ export * from "./InputGptImage25Sunburst.mjs";
69
+ export * from "./InputGptImage25SunburstImagesItem.mjs";
56
70
  export * from "./InputGrokImagine.mjs";
57
71
  export * from "./InputGrokImagine20.mjs";
58
72
  export * from "./InputGrokImagine20ImagesItem.mjs";
@@ -113,6 +127,8 @@ export * from "./InputKlingV3MotionControl.mjs";
113
127
  export * from "./InputKlingV3MotionControlSourceVideo.mjs";
114
128
  export * from "./InputKlingV3MotionControlStartImage.mjs";
115
129
  export * from "./InputKlingV3StartImage.mjs";
130
+ export * from "./InputKrea2.mjs";
131
+ export * from "./InputKrea2ImagesItem.mjs";
116
132
  export * from "./InputLtx23.mjs";
117
133
  export * from "./InputLtx23EndImage.mjs";
118
134
  export * from "./InputLtx23StartImage.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.2.0";
1
+ export declare const SDK_VERSION = "5.3.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.2.0";
1
+ export const SDK_VERSION = "5.3.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedra/sdk",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -155,6 +155,6 @@
155
155
  "node": ">=18.0.0"
156
156
  },
157
157
  "sideEffects": false,
158
- "description": "The official TypeScript library for the Hedra API — API spec 3.16.2",
158
+ "description": "The official TypeScript library for the Hedra API — API spec 3.16.6",
159
159
  "author": "Hedra <support@hedra.com>"
160
160
  }