@civitai/client 0.1.9-beta.33 → 0.1.9-beta.35
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/generated/schemas.gen.d.ts +27 -39
- package/dist/generated/schemas.gen.js +27 -39
- package/dist/generated/types.gen.d.ts +50 -40
- package/dist/generated/types.gen.js +23 -17
- package/package.json +1 -1
|
@@ -1635,10 +1635,6 @@ export declare const $NSFWLevel: {
|
|
|
1635
1635
|
readonly enum: readonly ['pg', 'pG13', 'r', 'x', 'xxx', 'na'];
|
|
1636
1636
|
readonly type: 'string';
|
|
1637
1637
|
};
|
|
1638
|
-
export declare const $OpenAICreateImageInputBackground: {
|
|
1639
|
-
readonly enum: readonly ['auto', 'transparent', 'opaque'];
|
|
1640
|
-
readonly type: 'string';
|
|
1641
|
-
};
|
|
1642
1638
|
export declare const $OpenAIDallE2CreateImageGenInput: {
|
|
1643
1639
|
readonly required: readonly ['operation'];
|
|
1644
1640
|
readonly allOf: readonly [
|
|
@@ -1649,7 +1645,8 @@ export declare const $OpenAIDallE2CreateImageGenInput: {
|
|
|
1649
1645
|
readonly type: 'object';
|
|
1650
1646
|
readonly properties: {
|
|
1651
1647
|
readonly background: {
|
|
1652
|
-
readonly
|
|
1648
|
+
readonly enum: readonly ['auto', 'transparent', 'opaque'];
|
|
1649
|
+
readonly type: 'string';
|
|
1653
1650
|
};
|
|
1654
1651
|
};
|
|
1655
1652
|
readonly additionalProperties: false;
|
|
@@ -1711,7 +1708,8 @@ export declare const $OpenAIDallE2ImageGenInput: {
|
|
|
1711
1708
|
readonly type: 'string';
|
|
1712
1709
|
};
|
|
1713
1710
|
readonly size: {
|
|
1714
|
-
readonly
|
|
1711
|
+
readonly enum: readonly ['256x256', '512x512', '1024x1024'];
|
|
1712
|
+
readonly type: 'string';
|
|
1715
1713
|
};
|
|
1716
1714
|
readonly quantity: {
|
|
1717
1715
|
readonly maximum: 10;
|
|
@@ -1737,10 +1735,6 @@ export declare const $OpenAIDallE2ImageGenInput: {
|
|
|
1737
1735
|
};
|
|
1738
1736
|
};
|
|
1739
1737
|
};
|
|
1740
|
-
export declare const $OpenAIDallE2ImageGenInputSize: {
|
|
1741
|
-
readonly enum: readonly ['256x256', '512x512', '1024x1024'];
|
|
1742
|
-
readonly type: 'string';
|
|
1743
|
-
};
|
|
1744
1738
|
export declare const $OpenAIDallE3CreateImageGenInput: {
|
|
1745
1739
|
readonly required: readonly ['operation'];
|
|
1746
1740
|
readonly allOf: readonly [
|
|
@@ -1751,7 +1745,8 @@ export declare const $OpenAIDallE3CreateImageGenInput: {
|
|
|
1751
1745
|
readonly type: 'object';
|
|
1752
1746
|
readonly properties: {
|
|
1753
1747
|
readonly background: {
|
|
1754
|
-
readonly
|
|
1748
|
+
readonly enum: readonly ['auto', 'transparent', 'opaque'];
|
|
1749
|
+
readonly type: 'string';
|
|
1755
1750
|
};
|
|
1756
1751
|
};
|
|
1757
1752
|
readonly additionalProperties: false;
|
|
@@ -1783,13 +1778,16 @@ export declare const $OpenAIDallE3ImageGenInput: {
|
|
|
1783
1778
|
readonly type: 'string';
|
|
1784
1779
|
};
|
|
1785
1780
|
readonly size: {
|
|
1786
|
-
readonly
|
|
1781
|
+
readonly enum: readonly ['1024x1024', '1792x1024', '1024x1792'];
|
|
1782
|
+
readonly type: 'string';
|
|
1787
1783
|
};
|
|
1788
1784
|
readonly style: {
|
|
1789
|
-
readonly
|
|
1785
|
+
readonly enum: readonly ['natural', 'vivid'];
|
|
1786
|
+
readonly type: 'string';
|
|
1790
1787
|
};
|
|
1791
1788
|
readonly quality: {
|
|
1792
|
-
readonly
|
|
1789
|
+
readonly enum: readonly ['auto', 'hd', 'standard'];
|
|
1790
|
+
readonly type: 'string';
|
|
1793
1791
|
};
|
|
1794
1792
|
};
|
|
1795
1793
|
readonly additionalProperties: false;
|
|
@@ -1808,18 +1806,6 @@ export declare const $OpenAIDallE3ImageGenInput: {
|
|
|
1808
1806
|
};
|
|
1809
1807
|
};
|
|
1810
1808
|
};
|
|
1811
|
-
export declare const $OpenAIDallE3ImageGenInputQuality: {
|
|
1812
|
-
readonly enum: readonly ['auto', 'hd', 'standard'];
|
|
1813
|
-
readonly type: 'string';
|
|
1814
|
-
};
|
|
1815
|
-
export declare const $OpenAIDallE3ImageGenInputSize: {
|
|
1816
|
-
readonly enum: readonly ['1024x1024', '1792x1024', '1024x1792'];
|
|
1817
|
-
readonly type: 'string';
|
|
1818
|
-
};
|
|
1819
|
-
export declare const $OpenAIDallE3ImageGenInputStyle: {
|
|
1820
|
-
readonly enum: readonly ['natural', 'vivid'];
|
|
1821
|
-
readonly type: 'string';
|
|
1822
|
-
};
|
|
1823
1809
|
export declare const $OpenAIGpt1CreateImageInput: {
|
|
1824
1810
|
readonly required: readonly ['operation'];
|
|
1825
1811
|
readonly allOf: readonly [
|
|
@@ -1828,11 +1814,6 @@ export declare const $OpenAIGpt1CreateImageInput: {
|
|
|
1828
1814
|
},
|
|
1829
1815
|
{
|
|
1830
1816
|
readonly type: 'object';
|
|
1831
|
-
readonly properties: {
|
|
1832
|
-
readonly background: {
|
|
1833
|
-
readonly $ref: '#/components/schemas/OpenAICreateImageInputBackground';
|
|
1834
|
-
};
|
|
1835
|
-
};
|
|
1836
1817
|
readonly additionalProperties: false;
|
|
1837
1818
|
},
|
|
1838
1819
|
];
|
|
@@ -1854,8 +1835,6 @@ export declare const $OpenAIGpt1EditImageInput: {
|
|
|
1854
1835
|
readonly type: 'object';
|
|
1855
1836
|
readonly properties: {
|
|
1856
1837
|
readonly images: {
|
|
1857
|
-
readonly maximum: 16;
|
|
1858
|
-
readonly minimum: 1;
|
|
1859
1838
|
readonly type: 'array';
|
|
1860
1839
|
readonly items: {
|
|
1861
1840
|
readonly type: 'string';
|
|
@@ -1897,7 +1876,8 @@ export declare const $OpenAIGpt1ImageGenInput: {
|
|
|
1897
1876
|
readonly type: 'string';
|
|
1898
1877
|
};
|
|
1899
1878
|
readonly size: {
|
|
1900
|
-
readonly
|
|
1879
|
+
readonly enum: readonly ['auto', '1024x1024', '1536x1024', '1024x1536'];
|
|
1880
|
+
readonly type: 'string';
|
|
1901
1881
|
};
|
|
1902
1882
|
readonly quantity: {
|
|
1903
1883
|
readonly maximum: 10;
|
|
@@ -1905,6 +1885,15 @@ export declare const $OpenAIGpt1ImageGenInput: {
|
|
|
1905
1885
|
readonly type: 'integer';
|
|
1906
1886
|
readonly format: 'int32';
|
|
1907
1887
|
};
|
|
1888
|
+
readonly background: {
|
|
1889
|
+
readonly enum: readonly ['auto', 'transparent', 'opaque'];
|
|
1890
|
+
readonly type: 'string';
|
|
1891
|
+
};
|
|
1892
|
+
readonly quality: {
|
|
1893
|
+
readonly enum: readonly ['auto', 'high', 'medium', 'low'];
|
|
1894
|
+
readonly type: 'string';
|
|
1895
|
+
readonly nullable: true;
|
|
1896
|
+
};
|
|
1908
1897
|
};
|
|
1909
1898
|
readonly additionalProperties: false;
|
|
1910
1899
|
readonly discriminator: {
|
|
@@ -1923,10 +1912,6 @@ export declare const $OpenAIGpt1ImageGenInput: {
|
|
|
1923
1912
|
};
|
|
1924
1913
|
};
|
|
1925
1914
|
};
|
|
1926
|
-
export declare const $OpenAIGpt1ImageGenInputSize: {
|
|
1927
|
-
readonly enum: readonly ['auto', '1024x1024', '1536x1024', '1024x1536'];
|
|
1928
|
-
readonly type: 'string';
|
|
1929
|
-
};
|
|
1930
1915
|
export declare const $OpenApiImageGenInput: {
|
|
1931
1916
|
readonly required: readonly ['engine'];
|
|
1932
1917
|
readonly allOf: readonly [
|
|
@@ -1934,12 +1919,15 @@ export declare const $OpenApiImageGenInput: {
|
|
|
1934
1919
|
readonly $ref: '#/components/schemas/ImageGenInput';
|
|
1935
1920
|
},
|
|
1936
1921
|
{
|
|
1937
|
-
readonly required: readonly ['model'];
|
|
1922
|
+
readonly required: readonly ['model', 'prompt'];
|
|
1938
1923
|
readonly type: 'object';
|
|
1939
1924
|
readonly properties: {
|
|
1940
1925
|
readonly model: {
|
|
1941
1926
|
readonly type: 'string';
|
|
1942
1927
|
};
|
|
1928
|
+
readonly prompt: {
|
|
1929
|
+
readonly type: 'string';
|
|
1930
|
+
};
|
|
1943
1931
|
};
|
|
1944
1932
|
readonly additionalProperties: false;
|
|
1945
1933
|
readonly discriminator: {
|
|
@@ -1648,10 +1648,6 @@ export const $NSFWLevel = {
|
|
|
1648
1648
|
enum: ['pg', 'pG13', 'r', 'x', 'xxx', 'na'],
|
|
1649
1649
|
type: 'string',
|
|
1650
1650
|
};
|
|
1651
|
-
export const $OpenAICreateImageInputBackground = {
|
|
1652
|
-
enum: ['auto', 'transparent', 'opaque'],
|
|
1653
|
-
type: 'string',
|
|
1654
|
-
};
|
|
1655
1651
|
export const $OpenAIDallE2CreateImageGenInput = {
|
|
1656
1652
|
required: ['operation'],
|
|
1657
1653
|
allOf: [
|
|
@@ -1662,7 +1658,8 @@ export const $OpenAIDallE2CreateImageGenInput = {
|
|
|
1662
1658
|
type: 'object',
|
|
1663
1659
|
properties: {
|
|
1664
1660
|
background: {
|
|
1665
|
-
|
|
1661
|
+
enum: ['auto', 'transparent', 'opaque'],
|
|
1662
|
+
type: 'string',
|
|
1666
1663
|
},
|
|
1667
1664
|
},
|
|
1668
1665
|
additionalProperties: false,
|
|
@@ -1724,7 +1721,8 @@ export const $OpenAIDallE2ImageGenInput = {
|
|
|
1724
1721
|
type: 'string',
|
|
1725
1722
|
},
|
|
1726
1723
|
size: {
|
|
1727
|
-
|
|
1724
|
+
enum: ['256x256', '512x512', '1024x1024'],
|
|
1725
|
+
type: 'string',
|
|
1728
1726
|
},
|
|
1729
1727
|
quantity: {
|
|
1730
1728
|
maximum: 10,
|
|
@@ -1750,10 +1748,6 @@ export const $OpenAIDallE2ImageGenInput = {
|
|
|
1750
1748
|
},
|
|
1751
1749
|
},
|
|
1752
1750
|
};
|
|
1753
|
-
export const $OpenAIDallE2ImageGenInputSize = {
|
|
1754
|
-
enum: ['256x256', '512x512', '1024x1024'],
|
|
1755
|
-
type: 'string',
|
|
1756
|
-
};
|
|
1757
1751
|
export const $OpenAIDallE3CreateImageGenInput = {
|
|
1758
1752
|
required: ['operation'],
|
|
1759
1753
|
allOf: [
|
|
@@ -1764,7 +1758,8 @@ export const $OpenAIDallE3CreateImageGenInput = {
|
|
|
1764
1758
|
type: 'object',
|
|
1765
1759
|
properties: {
|
|
1766
1760
|
background: {
|
|
1767
|
-
|
|
1761
|
+
enum: ['auto', 'transparent', 'opaque'],
|
|
1762
|
+
type: 'string',
|
|
1768
1763
|
},
|
|
1769
1764
|
},
|
|
1770
1765
|
additionalProperties: false,
|
|
@@ -1796,13 +1791,16 @@ export const $OpenAIDallE3ImageGenInput = {
|
|
|
1796
1791
|
type: 'string',
|
|
1797
1792
|
},
|
|
1798
1793
|
size: {
|
|
1799
|
-
|
|
1794
|
+
enum: ['1024x1024', '1792x1024', '1024x1792'],
|
|
1795
|
+
type: 'string',
|
|
1800
1796
|
},
|
|
1801
1797
|
style: {
|
|
1802
|
-
|
|
1798
|
+
enum: ['natural', 'vivid'],
|
|
1799
|
+
type: 'string',
|
|
1803
1800
|
},
|
|
1804
1801
|
quality: {
|
|
1805
|
-
|
|
1802
|
+
enum: ['auto', 'hd', 'standard'],
|
|
1803
|
+
type: 'string',
|
|
1806
1804
|
},
|
|
1807
1805
|
},
|
|
1808
1806
|
additionalProperties: false,
|
|
@@ -1821,18 +1819,6 @@ export const $OpenAIDallE3ImageGenInput = {
|
|
|
1821
1819
|
},
|
|
1822
1820
|
},
|
|
1823
1821
|
};
|
|
1824
|
-
export const $OpenAIDallE3ImageGenInputQuality = {
|
|
1825
|
-
enum: ['auto', 'hd', 'standard'],
|
|
1826
|
-
type: 'string',
|
|
1827
|
-
};
|
|
1828
|
-
export const $OpenAIDallE3ImageGenInputSize = {
|
|
1829
|
-
enum: ['1024x1024', '1792x1024', '1024x1792'],
|
|
1830
|
-
type: 'string',
|
|
1831
|
-
};
|
|
1832
|
-
export const $OpenAIDallE3ImageGenInputStyle = {
|
|
1833
|
-
enum: ['natural', 'vivid'],
|
|
1834
|
-
type: 'string',
|
|
1835
|
-
};
|
|
1836
1822
|
export const $OpenAIGpt1CreateImageInput = {
|
|
1837
1823
|
required: ['operation'],
|
|
1838
1824
|
allOf: [
|
|
@@ -1841,11 +1827,6 @@ export const $OpenAIGpt1CreateImageInput = {
|
|
|
1841
1827
|
},
|
|
1842
1828
|
{
|
|
1843
1829
|
type: 'object',
|
|
1844
|
-
properties: {
|
|
1845
|
-
background: {
|
|
1846
|
-
$ref: '#/components/schemas/OpenAICreateImageInputBackground',
|
|
1847
|
-
},
|
|
1848
|
-
},
|
|
1849
1830
|
additionalProperties: false,
|
|
1850
1831
|
},
|
|
1851
1832
|
],
|
|
@@ -1867,8 +1848,6 @@ export const $OpenAIGpt1EditImageInput = {
|
|
|
1867
1848
|
type: 'object',
|
|
1868
1849
|
properties: {
|
|
1869
1850
|
images: {
|
|
1870
|
-
maximum: 16,
|
|
1871
|
-
minimum: 1,
|
|
1872
1851
|
type: 'array',
|
|
1873
1852
|
items: {
|
|
1874
1853
|
type: 'string',
|
|
@@ -1910,7 +1889,8 @@ export const $OpenAIGpt1ImageGenInput = {
|
|
|
1910
1889
|
type: 'string',
|
|
1911
1890
|
},
|
|
1912
1891
|
size: {
|
|
1913
|
-
|
|
1892
|
+
enum: ['auto', '1024x1024', '1536x1024', '1024x1536'],
|
|
1893
|
+
type: 'string',
|
|
1914
1894
|
},
|
|
1915
1895
|
quantity: {
|
|
1916
1896
|
maximum: 10,
|
|
@@ -1918,6 +1898,15 @@ export const $OpenAIGpt1ImageGenInput = {
|
|
|
1918
1898
|
type: 'integer',
|
|
1919
1899
|
format: 'int32',
|
|
1920
1900
|
},
|
|
1901
|
+
background: {
|
|
1902
|
+
enum: ['auto', 'transparent', 'opaque'],
|
|
1903
|
+
type: 'string',
|
|
1904
|
+
},
|
|
1905
|
+
quality: {
|
|
1906
|
+
enum: ['auto', 'high', 'medium', 'low'],
|
|
1907
|
+
type: 'string',
|
|
1908
|
+
nullable: true,
|
|
1909
|
+
},
|
|
1921
1910
|
},
|
|
1922
1911
|
additionalProperties: false,
|
|
1923
1912
|
discriminator: {
|
|
@@ -1936,10 +1925,6 @@ export const $OpenAIGpt1ImageGenInput = {
|
|
|
1936
1925
|
},
|
|
1937
1926
|
},
|
|
1938
1927
|
};
|
|
1939
|
-
export const $OpenAIGpt1ImageGenInputSize = {
|
|
1940
|
-
enum: ['auto', '1024x1024', '1536x1024', '1024x1536'],
|
|
1941
|
-
type: 'string',
|
|
1942
|
-
};
|
|
1943
1928
|
export const $OpenApiImageGenInput = {
|
|
1944
1929
|
required: ['engine'],
|
|
1945
1930
|
allOf: [
|
|
@@ -1947,12 +1932,15 @@ export const $OpenApiImageGenInput = {
|
|
|
1947
1932
|
$ref: '#/components/schemas/ImageGenInput',
|
|
1948
1933
|
},
|
|
1949
1934
|
{
|
|
1950
|
-
required: ['model'],
|
|
1935
|
+
required: ['model', 'prompt'],
|
|
1951
1936
|
type: 'object',
|
|
1952
1937
|
properties: {
|
|
1953
1938
|
model: {
|
|
1954
1939
|
type: 'string',
|
|
1955
1940
|
},
|
|
1941
|
+
prompt: {
|
|
1942
|
+
type: 'string',
|
|
1943
|
+
},
|
|
1956
1944
|
},
|
|
1957
1945
|
additionalProperties: false,
|
|
1958
1946
|
discriminator: {
|
|
@@ -885,17 +885,17 @@ export declare const NSFWLevel: {
|
|
|
885
885
|
readonly XXX: 'xxx';
|
|
886
886
|
readonly NA: 'na';
|
|
887
887
|
};
|
|
888
|
-
export type OpenAICreateImageInputBackground = 'auto' | 'transparent' | 'opaque';
|
|
889
|
-
export declare const OpenAICreateImageInputBackground: {
|
|
890
|
-
readonly AUTO: 'auto';
|
|
891
|
-
readonly TRANSPARENT: 'transparent';
|
|
892
|
-
readonly OPAQUE: 'opaque';
|
|
893
|
-
};
|
|
894
888
|
export type OpenAIDallE2CreateImageGenInput = OpenAIDallE2ImageGenInput & {
|
|
895
|
-
background?:
|
|
889
|
+
background?: 'auto' | 'transparent' | 'opaque';
|
|
896
890
|
} & {
|
|
897
891
|
operation: 'createImage';
|
|
898
892
|
};
|
|
893
|
+
export type background = 'auto' | 'transparent' | 'opaque';
|
|
894
|
+
export declare const background: {
|
|
895
|
+
readonly AUTO: 'auto';
|
|
896
|
+
readonly TRANSPARENT: 'transparent';
|
|
897
|
+
readonly OPAQUE: 'opaque';
|
|
898
|
+
};
|
|
899
899
|
export type operation = 'createImage';
|
|
900
900
|
export declare const operation: {
|
|
901
901
|
readonly CREATE_IMAGE: 'createImage';
|
|
@@ -919,58 +919,58 @@ export declare const operation2: {
|
|
|
919
919
|
export type OpenAIDallE2ImageGenInput = OpenApiImageGenInput & {
|
|
920
920
|
operation: string;
|
|
921
921
|
prompt: string;
|
|
922
|
-
size:
|
|
922
|
+
size: '256x256' | '512x512' | '1024x1024';
|
|
923
923
|
quantity?: number;
|
|
924
924
|
} & {
|
|
925
925
|
model: 'dall-e-2';
|
|
926
926
|
};
|
|
927
|
-
export type
|
|
928
|
-
export declare const
|
|
929
|
-
readonly DALL_E_2: 'dall-e-2';
|
|
930
|
-
};
|
|
931
|
-
export type OpenAIDallE2ImageGenInputSize = '256x256' | '512x512' | '1024x1024';
|
|
932
|
-
export declare const OpenAIDallE2ImageGenInputSize: {
|
|
927
|
+
export type size = '256x256' | '512x512' | '1024x1024';
|
|
928
|
+
export declare const size: {
|
|
933
929
|
readonly _256X256: '256x256';
|
|
934
930
|
readonly _512X512: '512x512';
|
|
935
931
|
readonly _1024X1024: '1024x1024';
|
|
936
932
|
};
|
|
933
|
+
export type model = 'dall-e-2';
|
|
934
|
+
export declare const model: {
|
|
935
|
+
readonly DALL_E_2: 'dall-e-2';
|
|
936
|
+
};
|
|
937
937
|
export type OpenAIDallE3CreateImageGenInput = OpenAIDallE3ImageGenInput & {
|
|
938
|
-
background?:
|
|
938
|
+
background?: 'auto' | 'transparent' | 'opaque';
|
|
939
939
|
} & {
|
|
940
940
|
operation: 'createImage';
|
|
941
941
|
};
|
|
942
942
|
export type OpenAIDallE3ImageGenInput = OpenApiImageGenInput & {
|
|
943
943
|
operation: string;
|
|
944
944
|
prompt: string;
|
|
945
|
-
size:
|
|
946
|
-
style?:
|
|
947
|
-
quality?:
|
|
945
|
+
size: '1024x1024' | '1792x1024' | '1024x1792';
|
|
946
|
+
style?: 'natural' | 'vivid';
|
|
947
|
+
quality?: 'auto' | 'hd' | 'standard';
|
|
948
948
|
} & {
|
|
949
949
|
model: 'dall-e-3';
|
|
950
950
|
};
|
|
951
|
-
export type
|
|
952
|
-
export declare const
|
|
953
|
-
readonly DALL_E_3: 'dall-e-3';
|
|
954
|
-
};
|
|
955
|
-
export type OpenAIDallE3ImageGenInputQuality = 'auto' | 'hd' | 'standard';
|
|
956
|
-
export declare const OpenAIDallE3ImageGenInputQuality: {
|
|
957
|
-
readonly AUTO: 'auto';
|
|
958
|
-
readonly HD: 'hd';
|
|
959
|
-
readonly STANDARD: 'standard';
|
|
960
|
-
};
|
|
961
|
-
export type OpenAIDallE3ImageGenInputSize = '1024x1024' | '1792x1024' | '1024x1792';
|
|
962
|
-
export declare const OpenAIDallE3ImageGenInputSize: {
|
|
951
|
+
export type size2 = '1024x1024' | '1792x1024' | '1024x1792';
|
|
952
|
+
export declare const size2: {
|
|
963
953
|
readonly _1024X1024: '1024x1024';
|
|
964
954
|
readonly _1792X1024: '1792x1024';
|
|
965
955
|
readonly _1024X1792: '1024x1792';
|
|
966
956
|
};
|
|
967
|
-
export type
|
|
968
|
-
export declare const
|
|
957
|
+
export type style = 'natural' | 'vivid';
|
|
958
|
+
export declare const style: {
|
|
969
959
|
readonly NATURAL: 'natural';
|
|
970
960
|
readonly VIVID: 'vivid';
|
|
971
961
|
};
|
|
962
|
+
export type quality = 'auto' | 'hd' | 'standard';
|
|
963
|
+
export declare const quality: {
|
|
964
|
+
readonly AUTO: 'auto';
|
|
965
|
+
readonly HD: 'hd';
|
|
966
|
+
readonly STANDARD: 'standard';
|
|
967
|
+
};
|
|
968
|
+
export type model2 = 'dall-e-3';
|
|
969
|
+
export declare const model2: {
|
|
970
|
+
readonly DALL_E_3: 'dall-e-3';
|
|
971
|
+
};
|
|
972
972
|
export type OpenAIGpt1CreateImageInput = OpenAIGpt1ImageGenInput & {
|
|
973
|
-
|
|
973
|
+
[key: string]: unknown;
|
|
974
974
|
} & {
|
|
975
975
|
operation: 'createImage';
|
|
976
976
|
};
|
|
@@ -986,24 +986,34 @@ export type OpenAIGpt1EditImageInput = OpenAIGpt1ImageGenInput & {
|
|
|
986
986
|
export type OpenAIGpt1ImageGenInput = OpenApiImageGenInput & {
|
|
987
987
|
operation: string;
|
|
988
988
|
prompt: string;
|
|
989
|
-
size?:
|
|
989
|
+
size?: 'auto' | '1024x1024' | '1536x1024' | '1024x1536';
|
|
990
990
|
quantity?: number;
|
|
991
|
+
background?: 'auto' | 'transparent' | 'opaque';
|
|
992
|
+
quality?: 'auto' | 'high' | 'medium' | 'low' | null;
|
|
991
993
|
} & {
|
|
992
994
|
model: 'gpt-image-1';
|
|
993
995
|
};
|
|
994
|
-
export type
|
|
995
|
-
export declare const
|
|
996
|
-
readonly GPT_IMAGE_1: 'gpt-image-1';
|
|
997
|
-
};
|
|
998
|
-
export type OpenAIGpt1ImageGenInputSize = 'auto' | '1024x1024' | '1536x1024' | '1024x1536';
|
|
999
|
-
export declare const OpenAIGpt1ImageGenInputSize: {
|
|
996
|
+
export type size3 = 'auto' | '1024x1024' | '1536x1024' | '1024x1536';
|
|
997
|
+
export declare const size3: {
|
|
1000
998
|
readonly AUTO: 'auto';
|
|
1001
999
|
readonly _1024X1024: '1024x1024';
|
|
1002
1000
|
readonly _1536X1024: '1536x1024';
|
|
1003
1001
|
readonly _1024X1536: '1024x1536';
|
|
1004
1002
|
};
|
|
1003
|
+
export type quality2 = 'auto' | 'high' | 'medium' | 'low';
|
|
1004
|
+
export declare const quality2: {
|
|
1005
|
+
readonly AUTO: 'auto';
|
|
1006
|
+
readonly HIGH: 'high';
|
|
1007
|
+
readonly MEDIUM: 'medium';
|
|
1008
|
+
readonly LOW: 'low';
|
|
1009
|
+
};
|
|
1010
|
+
export type model3 = 'gpt-image-1';
|
|
1011
|
+
export declare const model3: {
|
|
1012
|
+
readonly GPT_IMAGE_1: 'gpt-image-1';
|
|
1013
|
+
};
|
|
1005
1014
|
export type OpenApiImageGenInput = ImageGenInput & {
|
|
1006
1015
|
model: string;
|
|
1016
|
+
prompt: string;
|
|
1007
1017
|
} & {
|
|
1008
1018
|
engine: 'openai';
|
|
1009
1019
|
};
|
|
@@ -178,7 +178,7 @@ export const NSFWLevel = {
|
|
|
178
178
|
XXX: 'xxx',
|
|
179
179
|
NA: 'na',
|
|
180
180
|
};
|
|
181
|
-
export const
|
|
181
|
+
export const background = {
|
|
182
182
|
AUTO: 'auto',
|
|
183
183
|
TRANSPARENT: 'transparent',
|
|
184
184
|
OPAQUE: 'opaque',
|
|
@@ -189,40 +189,46 @@ export const operation = {
|
|
|
189
189
|
export const operation2 = {
|
|
190
190
|
EDIT_IMAGE: 'editImage',
|
|
191
191
|
};
|
|
192
|
-
export const
|
|
193
|
-
DALL_E_2: 'dall-e-2',
|
|
194
|
-
};
|
|
195
|
-
export const OpenAIDallE2ImageGenInputSize = {
|
|
192
|
+
export const size = {
|
|
196
193
|
_256X256: '256x256',
|
|
197
194
|
_512X512: '512x512',
|
|
198
195
|
_1024X1024: '1024x1024',
|
|
199
196
|
};
|
|
200
|
-
export const
|
|
201
|
-
|
|
202
|
-
};
|
|
203
|
-
export const OpenAIDallE3ImageGenInputQuality = {
|
|
204
|
-
AUTO: 'auto',
|
|
205
|
-
HD: 'hd',
|
|
206
|
-
STANDARD: 'standard',
|
|
197
|
+
export const model = {
|
|
198
|
+
DALL_E_2: 'dall-e-2',
|
|
207
199
|
};
|
|
208
|
-
export const
|
|
200
|
+
export const size2 = {
|
|
209
201
|
_1024X1024: '1024x1024',
|
|
210
202
|
_1792X1024: '1792x1024',
|
|
211
203
|
_1024X1792: '1024x1792',
|
|
212
204
|
};
|
|
213
|
-
export const
|
|
205
|
+
export const style = {
|
|
214
206
|
NATURAL: 'natural',
|
|
215
207
|
VIVID: 'vivid',
|
|
216
208
|
};
|
|
217
|
-
export const
|
|
218
|
-
|
|
209
|
+
export const quality = {
|
|
210
|
+
AUTO: 'auto',
|
|
211
|
+
HD: 'hd',
|
|
212
|
+
STANDARD: 'standard',
|
|
219
213
|
};
|
|
220
|
-
export const
|
|
214
|
+
export const model2 = {
|
|
215
|
+
DALL_E_3: 'dall-e-3',
|
|
216
|
+
};
|
|
217
|
+
export const size3 = {
|
|
221
218
|
AUTO: 'auto',
|
|
222
219
|
_1024X1024: '1024x1024',
|
|
223
220
|
_1536X1024: '1536x1024',
|
|
224
221
|
_1024X1536: '1024x1536',
|
|
225
222
|
};
|
|
223
|
+
export const quality2 = {
|
|
224
|
+
AUTO: 'auto',
|
|
225
|
+
HIGH: 'high',
|
|
226
|
+
MEDIUM: 'medium',
|
|
227
|
+
LOW: 'low',
|
|
228
|
+
};
|
|
229
|
+
export const model3 = {
|
|
230
|
+
GPT_IMAGE_1: 'gpt-image-1',
|
|
231
|
+
};
|
|
226
232
|
export const engine10 = {
|
|
227
233
|
OPENAI: 'openai',
|
|
228
234
|
};
|