@openloaf-saas/sdk 0.1.19 → 0.1.21
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.d.ts +1277 -494
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ declare class SaaSContract {
|
|
|
170
170
|
id: string;
|
|
171
171
|
variants: {
|
|
172
172
|
id: string;
|
|
173
|
-
|
|
173
|
+
featureTabName: string;
|
|
174
174
|
creditsPerCall: number;
|
|
175
175
|
billingType: string;
|
|
176
176
|
minMembershipLevel: string;
|
|
@@ -187,7 +187,7 @@ declare class SaaSContract {
|
|
|
187
187
|
id: string;
|
|
188
188
|
variants: {
|
|
189
189
|
id: string;
|
|
190
|
-
|
|
190
|
+
featureTabName: string;
|
|
191
191
|
creditsPerCall: number;
|
|
192
192
|
billingType: string;
|
|
193
193
|
minMembershipLevel: string;
|
|
@@ -204,7 +204,7 @@ declare class SaaSContract {
|
|
|
204
204
|
id: string;
|
|
205
205
|
variants: {
|
|
206
206
|
id: string;
|
|
207
|
-
|
|
207
|
+
featureTabName: string;
|
|
208
208
|
creditsPerCall: number;
|
|
209
209
|
billingType: string;
|
|
210
210
|
minMembershipLevel: string;
|
|
@@ -421,6 +421,47 @@ declare class SaaSContract {
|
|
|
421
421
|
};
|
|
422
422
|
}>;
|
|
423
423
|
};
|
|
424
|
+
/** Payment endpoints. */
|
|
425
|
+
readonly payment: {
|
|
426
|
+
readonly subscribe: Endpoint<{
|
|
427
|
+
planCode: string;
|
|
428
|
+
period: "monthly" | "yearly";
|
|
429
|
+
}, {
|
|
430
|
+
success: true;
|
|
431
|
+
data: {
|
|
432
|
+
orderId: string;
|
|
433
|
+
providerData?: Record<string, unknown> | undefined;
|
|
434
|
+
};
|
|
435
|
+
}>;
|
|
436
|
+
readonly recharge: Endpoint<{
|
|
437
|
+
amount: number;
|
|
438
|
+
}, {
|
|
439
|
+
success: true;
|
|
440
|
+
data: {
|
|
441
|
+
orderId: string;
|
|
442
|
+
providerData?: Record<string, unknown> | undefined;
|
|
443
|
+
};
|
|
444
|
+
}>;
|
|
445
|
+
readonly upgrade: Endpoint<{
|
|
446
|
+
newPlanCode: string;
|
|
447
|
+
}, {
|
|
448
|
+
success: true;
|
|
449
|
+
data: {
|
|
450
|
+
orderId: string;
|
|
451
|
+
providerData?: Record<string, unknown> | undefined;
|
|
452
|
+
upgradePayable?: number | undefined;
|
|
453
|
+
};
|
|
454
|
+
}>;
|
|
455
|
+
readonly refund: Endpoint<{
|
|
456
|
+
orderId: string;
|
|
457
|
+
reason?: string | undefined;
|
|
458
|
+
}, {
|
|
459
|
+
success: true;
|
|
460
|
+
data: {
|
|
461
|
+
refundAmount: number;
|
|
462
|
+
};
|
|
463
|
+
}>;
|
|
464
|
+
};
|
|
424
465
|
/** Skill market endpoints. */
|
|
425
466
|
readonly skills: {
|
|
426
467
|
readonly list: Endpoint<{
|
|
@@ -511,7 +552,7 @@ declare class SaaSContract {
|
|
|
511
552
|
user: {
|
|
512
553
|
id: string;
|
|
513
554
|
provider: string;
|
|
514
|
-
membershipLevel: "
|
|
555
|
+
membershipLevel: "free" | "lite" | "pro" | "premium" | "infinity";
|
|
515
556
|
creditsBalance: number;
|
|
516
557
|
createdAt: string;
|
|
517
558
|
updatedAt: string;
|
|
@@ -735,7 +776,7 @@ declare const aiEndpoints: {
|
|
|
735
776
|
id: string;
|
|
736
777
|
variants: {
|
|
737
778
|
id: string;
|
|
738
|
-
|
|
779
|
+
featureTabName: string;
|
|
739
780
|
creditsPerCall: number;
|
|
740
781
|
billingType: string;
|
|
741
782
|
minMembershipLevel: string;
|
|
@@ -753,7 +794,7 @@ declare const aiEndpoints: {
|
|
|
753
794
|
id: string;
|
|
754
795
|
variants: {
|
|
755
796
|
id: string;
|
|
756
|
-
|
|
797
|
+
featureTabName: string;
|
|
757
798
|
creditsPerCall: number;
|
|
758
799
|
billingType: string;
|
|
759
800
|
minMembershipLevel: string;
|
|
@@ -771,7 +812,7 @@ declare const aiEndpoints: {
|
|
|
771
812
|
id: string;
|
|
772
813
|
variants: {
|
|
773
814
|
id: string;
|
|
774
|
-
|
|
815
|
+
featureTabName: string;
|
|
775
816
|
creditsPerCall: number;
|
|
776
817
|
billingType: string;
|
|
777
818
|
minMembershipLevel: string;
|
|
@@ -1583,7 +1624,7 @@ type AiFileUploadResponse = {
|
|
|
1583
1624
|
/** Variant within a v3 feature (maps to a model/quality combination). */
|
|
1584
1625
|
declare const v3VariantSchema: z.ZodObject<{
|
|
1585
1626
|
id: z.ZodString;
|
|
1586
|
-
|
|
1627
|
+
featureTabName: z.ZodString;
|
|
1587
1628
|
creditsPerCall: z.ZodNumber;
|
|
1588
1629
|
billingType: z.ZodString;
|
|
1589
1630
|
minMembershipLevel: z.ZodString;
|
|
@@ -1593,7 +1634,7 @@ declare const v3FeatureSchema: z.ZodObject<{
|
|
|
1593
1634
|
id: z.ZodString;
|
|
1594
1635
|
variants: z.ZodArray<z.ZodObject<{
|
|
1595
1636
|
id: z.ZodString;
|
|
1596
|
-
|
|
1637
|
+
featureTabName: z.ZodString;
|
|
1597
1638
|
creditsPerCall: z.ZodNumber;
|
|
1598
1639
|
billingType: z.ZodString;
|
|
1599
1640
|
minMembershipLevel: z.ZodString;
|
|
@@ -1606,7 +1647,7 @@ declare const v3CapabilitiesDataSchema: z.ZodObject<{
|
|
|
1606
1647
|
id: z.ZodString;
|
|
1607
1648
|
variants: z.ZodArray<z.ZodObject<{
|
|
1608
1649
|
id: z.ZodString;
|
|
1609
|
-
|
|
1650
|
+
featureTabName: z.ZodString;
|
|
1610
1651
|
creditsPerCall: z.ZodNumber;
|
|
1611
1652
|
billingType: z.ZodString;
|
|
1612
1653
|
minMembershipLevel: z.ZodString;
|
|
@@ -1623,7 +1664,7 @@ declare const v3CapabilitiesResponseSchema: z.ZodObject<{
|
|
|
1623
1664
|
id: z.ZodString;
|
|
1624
1665
|
variants: z.ZodArray<z.ZodObject<{
|
|
1625
1666
|
id: z.ZodString;
|
|
1626
|
-
|
|
1667
|
+
featureTabName: z.ZodString;
|
|
1627
1668
|
creditsPerCall: z.ZodNumber;
|
|
1628
1669
|
billingType: z.ZodString;
|
|
1629
1670
|
minMembershipLevel: z.ZodString;
|
|
@@ -1927,7 +1968,7 @@ declare class AiClient {
|
|
|
1927
1968
|
id: string;
|
|
1928
1969
|
variants: {
|
|
1929
1970
|
id: string;
|
|
1930
|
-
|
|
1971
|
+
featureTabName: string;
|
|
1931
1972
|
creditsPerCall: number;
|
|
1932
1973
|
billingType: string;
|
|
1933
1974
|
minMembershipLevel: string;
|
|
@@ -1945,7 +1986,7 @@ declare class AiClient {
|
|
|
1945
1986
|
id: string;
|
|
1946
1987
|
variants: {
|
|
1947
1988
|
id: string;
|
|
1948
|
-
|
|
1989
|
+
featureTabName: string;
|
|
1949
1990
|
creditsPerCall: number;
|
|
1950
1991
|
billingType: string;
|
|
1951
1992
|
minMembershipLevel: string;
|
|
@@ -1963,7 +2004,7 @@ declare class AiClient {
|
|
|
1963
2004
|
id: string;
|
|
1964
2005
|
variants: {
|
|
1965
2006
|
id: string;
|
|
1966
|
-
|
|
2007
|
+
featureTabName: string;
|
|
1967
2008
|
creditsPerCall: number;
|
|
1968
2009
|
billingType: string;
|
|
1969
2010
|
minMembershipLevel: string;
|
|
@@ -2034,546 +2075,993 @@ type AiModelCapabilityInputKey = (typeof AI_MODEL_CAPABILITY_INPUT_KEYS)[number]
|
|
|
2034
2075
|
declare const AI_MODEL_CAPABILITY_OUTPUT_KEYS: readonly ["supportsMulti", "supportsAudio"];
|
|
2035
2076
|
type AiModelCapabilityOutputKey = (typeof AI_MODEL_CAPABILITY_OUTPUT_KEYS)[number];
|
|
2036
2077
|
/**
|
|
2037
|
-
* All known media
|
|
2038
|
-
*
|
|
2039
|
-
* - economy: 成本最低、速度快、质量可接受(批量处理、快速预览)
|
|
2040
|
-
* - standard: 均衡推荐(日常使用)
|
|
2041
|
-
* - hd: 高分辨率/高质量(正式输出、印刷、4x放大)
|
|
2042
|
-
* - creative: 创意模式(图文混排、风格化等特殊能力)
|
|
2078
|
+
* All known media feature IDs used by v3 capabilities system.
|
|
2079
|
+
* Client 使用此字典翻译 feature ID 为用户可读名称。
|
|
2043
2080
|
*/
|
|
2044
|
-
declare const
|
|
2045
|
-
readonly
|
|
2046
|
-
readonly id: "
|
|
2081
|
+
declare const MEDIA_FEATURES: {
|
|
2082
|
+
readonly imageGenerate: {
|
|
2083
|
+
readonly id: "imageGenerate";
|
|
2047
2084
|
readonly label: {
|
|
2048
|
-
readonly zh: "
|
|
2049
|
-
readonly "zh-TW": "
|
|
2050
|
-
readonly en: "
|
|
2051
|
-
readonly ja: "
|
|
2085
|
+
readonly zh: "文生图";
|
|
2086
|
+
readonly "zh-TW": "文生圖";
|
|
2087
|
+
readonly en: "Text to Image";
|
|
2088
|
+
readonly ja: "テキストから画像";
|
|
2052
2089
|
};
|
|
2053
2090
|
};
|
|
2054
|
-
readonly
|
|
2055
|
-
readonly id: "
|
|
2091
|
+
readonly imageEdit: {
|
|
2092
|
+
readonly id: "imageEdit";
|
|
2056
2093
|
readonly label: {
|
|
2057
|
-
readonly zh: "
|
|
2058
|
-
readonly "zh-TW": "
|
|
2059
|
-
readonly en: "
|
|
2060
|
-
readonly ja: "
|
|
2094
|
+
readonly zh: "图片编辑";
|
|
2095
|
+
readonly "zh-TW": "圖片編輯";
|
|
2096
|
+
readonly en: "Image Editing";
|
|
2097
|
+
readonly ja: "画像編集";
|
|
2061
2098
|
};
|
|
2062
2099
|
};
|
|
2063
|
-
readonly
|
|
2064
|
-
readonly id: "
|
|
2100
|
+
readonly imageInpaint: {
|
|
2101
|
+
readonly id: "imageInpaint";
|
|
2065
2102
|
readonly label: {
|
|
2066
|
-
readonly zh: "
|
|
2067
|
-
readonly "zh-TW": "
|
|
2068
|
-
readonly en: "
|
|
2069
|
-
readonly ja: "
|
|
2103
|
+
readonly zh: "图片修复";
|
|
2104
|
+
readonly "zh-TW": "圖片修復";
|
|
2105
|
+
readonly en: "Inpainting";
|
|
2106
|
+
readonly ja: "画像修復";
|
|
2070
2107
|
};
|
|
2071
2108
|
};
|
|
2072
|
-
readonly
|
|
2073
|
-
readonly id: "
|
|
2109
|
+
readonly imageStyleTransfer: {
|
|
2110
|
+
readonly id: "imageStyleTransfer";
|
|
2074
2111
|
readonly label: {
|
|
2075
|
-
readonly zh: "
|
|
2076
|
-
readonly "zh-TW": "
|
|
2077
|
-
readonly en: "
|
|
2078
|
-
readonly ja: "
|
|
2112
|
+
readonly zh: "风格迁移";
|
|
2113
|
+
readonly "zh-TW": "風格遷移";
|
|
2114
|
+
readonly en: "Style Transfer";
|
|
2115
|
+
readonly ja: "スタイル変換";
|
|
2079
2116
|
};
|
|
2080
2117
|
};
|
|
2081
|
-
readonly
|
|
2082
|
-
readonly id: "
|
|
2118
|
+
readonly outpaint: {
|
|
2119
|
+
readonly id: "outpaint";
|
|
2083
2120
|
readonly label: {
|
|
2084
|
-
readonly zh: "
|
|
2085
|
-
readonly "zh-TW": "
|
|
2086
|
-
readonly en: "
|
|
2087
|
-
readonly ja: "
|
|
2121
|
+
readonly zh: "扩图";
|
|
2122
|
+
readonly "zh-TW": "擴圖";
|
|
2123
|
+
readonly en: "Outpainting";
|
|
2124
|
+
readonly ja: "画像拡張";
|
|
2088
2125
|
};
|
|
2089
2126
|
};
|
|
2090
|
-
readonly
|
|
2091
|
-
readonly id: "
|
|
2127
|
+
readonly upscale: {
|
|
2128
|
+
readonly id: "upscale";
|
|
2092
2129
|
readonly label: {
|
|
2093
|
-
readonly zh: "
|
|
2094
|
-
readonly "zh-TW": "
|
|
2095
|
-
readonly en: "
|
|
2096
|
-
readonly ja: "
|
|
2130
|
+
readonly zh: "超清";
|
|
2131
|
+
readonly "zh-TW": "超清";
|
|
2132
|
+
readonly en: "Upscale";
|
|
2133
|
+
readonly ja: "超解像";
|
|
2097
2134
|
};
|
|
2098
2135
|
};
|
|
2099
|
-
readonly
|
|
2100
|
-
readonly id: "
|
|
2136
|
+
readonly materialExtract: {
|
|
2137
|
+
readonly id: "materialExtract";
|
|
2101
2138
|
readonly label: {
|
|
2102
|
-
readonly zh: "
|
|
2103
|
-
readonly "zh-TW": "
|
|
2104
|
-
readonly en: "
|
|
2105
|
-
readonly ja: "
|
|
2139
|
+
readonly zh: "素材提取";
|
|
2140
|
+
readonly "zh-TW": "素材提取";
|
|
2141
|
+
readonly en: "Material Extract";
|
|
2142
|
+
readonly ja: "素材抽出";
|
|
2106
2143
|
};
|
|
2107
2144
|
};
|
|
2108
|
-
readonly
|
|
2109
|
-
readonly id: "
|
|
2145
|
+
readonly videoGenerate: {
|
|
2146
|
+
readonly id: "videoGenerate";
|
|
2110
2147
|
readonly label: {
|
|
2111
|
-
readonly zh: "
|
|
2112
|
-
readonly "zh-TW": "
|
|
2113
|
-
readonly en: "
|
|
2114
|
-
readonly ja: "
|
|
2148
|
+
readonly zh: "视频生成";
|
|
2149
|
+
readonly "zh-TW": "影片生成";
|
|
2150
|
+
readonly en: "Video Generation";
|
|
2151
|
+
readonly ja: "動画生成";
|
|
2115
2152
|
};
|
|
2116
2153
|
};
|
|
2117
|
-
readonly
|
|
2118
|
-
readonly id: "
|
|
2154
|
+
readonly digitalHuman: {
|
|
2155
|
+
readonly id: "digitalHuman";
|
|
2119
2156
|
readonly label: {
|
|
2120
|
-
readonly zh: "
|
|
2121
|
-
readonly "zh-TW": "
|
|
2122
|
-
readonly en: "
|
|
2123
|
-
readonly ja: "
|
|
2157
|
+
readonly zh: "数字人";
|
|
2158
|
+
readonly "zh-TW": "數位人";
|
|
2159
|
+
readonly en: "Digital Human";
|
|
2160
|
+
readonly ja: "デジタルヒューマン";
|
|
2124
2161
|
};
|
|
2125
2162
|
};
|
|
2126
|
-
readonly
|
|
2127
|
-
readonly id: "
|
|
2163
|
+
readonly videoFaceSwap: {
|
|
2164
|
+
readonly id: "videoFaceSwap";
|
|
2128
2165
|
readonly label: {
|
|
2129
|
-
readonly zh: "
|
|
2130
|
-
readonly "zh-TW": "
|
|
2131
|
-
readonly en: "
|
|
2132
|
-
readonly ja: "
|
|
2166
|
+
readonly zh: "视频换人";
|
|
2167
|
+
readonly "zh-TW": "影片換人";
|
|
2168
|
+
readonly en: "Video Face Swap";
|
|
2169
|
+
readonly ja: "ビデオフェイススワップ";
|
|
2133
2170
|
};
|
|
2134
2171
|
};
|
|
2135
|
-
readonly
|
|
2136
|
-
readonly id: "
|
|
2172
|
+
readonly videoTranslate: {
|
|
2173
|
+
readonly id: "videoTranslate";
|
|
2137
2174
|
readonly label: {
|
|
2138
|
-
readonly zh: "
|
|
2139
|
-
readonly "zh-TW": "
|
|
2140
|
-
readonly en: "
|
|
2141
|
-
readonly ja: "
|
|
2175
|
+
readonly zh: "视频翻译";
|
|
2176
|
+
readonly "zh-TW": "影片翻譯";
|
|
2177
|
+
readonly en: "Video Translation";
|
|
2178
|
+
readonly ja: "動画翻訳";
|
|
2142
2179
|
};
|
|
2143
2180
|
};
|
|
2144
|
-
readonly
|
|
2145
|
-
readonly id: "
|
|
2181
|
+
readonly lipSync: {
|
|
2182
|
+
readonly id: "lipSync";
|
|
2146
2183
|
readonly label: {
|
|
2147
|
-
readonly zh: "
|
|
2148
|
-
readonly "zh-TW": "
|
|
2149
|
-
readonly en: "
|
|
2150
|
-
readonly ja: "
|
|
2184
|
+
readonly zh: "口型同步";
|
|
2185
|
+
readonly "zh-TW": "口型同步";
|
|
2186
|
+
readonly en: "Lip Sync";
|
|
2187
|
+
readonly ja: "リップシンク";
|
|
2151
2188
|
};
|
|
2152
2189
|
};
|
|
2153
|
-
readonly
|
|
2154
|
-
readonly id: "
|
|
2190
|
+
readonly tts: {
|
|
2191
|
+
readonly id: "tts";
|
|
2155
2192
|
readonly label: {
|
|
2156
|
-
readonly zh: "
|
|
2157
|
-
readonly "zh-TW": "
|
|
2158
|
-
readonly en: "
|
|
2159
|
-
readonly ja: "
|
|
2193
|
+
readonly zh: "语音合成";
|
|
2194
|
+
readonly "zh-TW": "語音合成";
|
|
2195
|
+
readonly en: "Text to Speech";
|
|
2196
|
+
readonly ja: "音声合成";
|
|
2160
2197
|
};
|
|
2161
2198
|
};
|
|
2162
|
-
readonly
|
|
2163
|
-
readonly id: "
|
|
2199
|
+
readonly speechToText: {
|
|
2200
|
+
readonly id: "speechToText";
|
|
2164
2201
|
readonly label: {
|
|
2165
|
-
readonly zh: "
|
|
2166
|
-
readonly "zh-TW": "
|
|
2167
|
-
readonly en: "
|
|
2168
|
-
readonly ja: "
|
|
2202
|
+
readonly zh: "语音识别";
|
|
2203
|
+
readonly "zh-TW": "語音辨識";
|
|
2204
|
+
readonly en: "Speech to Text";
|
|
2205
|
+
readonly ja: "音声認識";
|
|
2169
2206
|
};
|
|
2170
2207
|
};
|
|
2171
|
-
readonly
|
|
2172
|
-
readonly id: "
|
|
2208
|
+
readonly productImage: {
|
|
2209
|
+
readonly id: "productImage";
|
|
2173
2210
|
readonly label: {
|
|
2174
|
-
readonly zh: "
|
|
2175
|
-
readonly "zh-TW": "
|
|
2176
|
-
readonly en: "
|
|
2177
|
-
readonly ja: "
|
|
2211
|
+
readonly zh: "商品图";
|
|
2212
|
+
readonly "zh-TW": "商品圖";
|
|
2213
|
+
readonly en: "Product Image";
|
|
2214
|
+
readonly ja: "商品画像";
|
|
2178
2215
|
};
|
|
2179
2216
|
};
|
|
2180
|
-
readonly
|
|
2181
|
-
readonly id: "
|
|
2217
|
+
readonly productVideo: {
|
|
2218
|
+
readonly id: "productVideo";
|
|
2182
2219
|
readonly label: {
|
|
2183
|
-
readonly zh: "
|
|
2184
|
-
readonly "zh-TW": "
|
|
2185
|
-
readonly en: "
|
|
2186
|
-
readonly ja: "
|
|
2220
|
+
readonly zh: "商品视频";
|
|
2221
|
+
readonly "zh-TW": "商品影片";
|
|
2222
|
+
readonly en: "Product Video";
|
|
2223
|
+
readonly ja: "商品動画";
|
|
2187
2224
|
};
|
|
2188
2225
|
};
|
|
2189
|
-
readonly
|
|
2190
|
-
readonly id: "
|
|
2226
|
+
readonly backgroundRemove: {
|
|
2227
|
+
readonly id: "backgroundRemove";
|
|
2191
2228
|
readonly label: {
|
|
2192
|
-
readonly zh: "
|
|
2193
|
-
readonly "zh-TW": "
|
|
2194
|
-
readonly en: "
|
|
2195
|
-
readonly ja: "
|
|
2229
|
+
readonly zh: "背景移除";
|
|
2230
|
+
readonly "zh-TW": "背景移除";
|
|
2231
|
+
readonly en: "Background Remove";
|
|
2232
|
+
readonly ja: "背景除去";
|
|
2196
2233
|
};
|
|
2197
2234
|
};
|
|
2198
|
-
readonly
|
|
2199
|
-
readonly id: "
|
|
2235
|
+
readonly backgroundReplace: {
|
|
2236
|
+
readonly id: "backgroundReplace";
|
|
2200
2237
|
readonly label: {
|
|
2201
|
-
readonly zh: "
|
|
2202
|
-
readonly "zh-TW": "
|
|
2203
|
-
readonly en: "
|
|
2204
|
-
readonly ja: "
|
|
2238
|
+
readonly zh: "背景替换";
|
|
2239
|
+
readonly "zh-TW": "背景替換";
|
|
2240
|
+
readonly en: "Background Replace";
|
|
2241
|
+
readonly ja: "背景置換";
|
|
2205
2242
|
};
|
|
2206
2243
|
};
|
|
2207
|
-
readonly
|
|
2208
|
-
readonly id: "
|
|
2244
|
+
readonly posterGenerate: {
|
|
2245
|
+
readonly id: "posterGenerate";
|
|
2209
2246
|
readonly label: {
|
|
2210
|
-
readonly zh: "
|
|
2211
|
-
readonly "zh-TW": "
|
|
2212
|
-
readonly en: "
|
|
2213
|
-
readonly ja: "
|
|
2247
|
+
readonly zh: "海报生成";
|
|
2248
|
+
readonly "zh-TW": "海報生成";
|
|
2249
|
+
readonly en: "Poster Generation";
|
|
2250
|
+
readonly ja: "ポスター生成";
|
|
2214
2251
|
};
|
|
2215
2252
|
};
|
|
2216
|
-
readonly
|
|
2217
|
-
readonly id: "
|
|
2253
|
+
readonly modelTryOn: {
|
|
2254
|
+
readonly id: "modelTryOn";
|
|
2218
2255
|
readonly label: {
|
|
2219
|
-
readonly zh: "
|
|
2220
|
-
readonly "zh-TW": "
|
|
2221
|
-
readonly en: "
|
|
2222
|
-
readonly ja: "
|
|
2256
|
+
readonly zh: "模特试穿";
|
|
2257
|
+
readonly "zh-TW": "模特試穿";
|
|
2258
|
+
readonly en: "Virtual Try-On";
|
|
2259
|
+
readonly ja: "バーチャル試着";
|
|
2223
2260
|
};
|
|
2224
2261
|
};
|
|
2225
|
-
readonly
|
|
2226
|
-
readonly id: "
|
|
2262
|
+
readonly faceSwap: {
|
|
2263
|
+
readonly id: "faceSwap";
|
|
2227
2264
|
readonly label: {
|
|
2228
|
-
readonly zh: "
|
|
2229
|
-
readonly "zh-TW": "
|
|
2230
|
-
readonly en: "
|
|
2231
|
-
readonly ja: "
|
|
2265
|
+
readonly zh: "人脸替换";
|
|
2266
|
+
readonly "zh-TW": "人臉替換";
|
|
2267
|
+
readonly en: "Face Swap";
|
|
2268
|
+
readonly ja: "フェイススワップ";
|
|
2232
2269
|
};
|
|
2233
2270
|
};
|
|
2234
|
-
readonly
|
|
2235
|
-
readonly id: "
|
|
2271
|
+
readonly faceEnhance: {
|
|
2272
|
+
readonly id: "faceEnhance";
|
|
2236
2273
|
readonly label: {
|
|
2237
|
-
readonly zh: "
|
|
2238
|
-
readonly "zh-TW": "
|
|
2239
|
-
readonly en: "
|
|
2240
|
-
readonly ja: "
|
|
2274
|
+
readonly zh: "人脸增强";
|
|
2275
|
+
readonly "zh-TW": "人臉增強";
|
|
2276
|
+
readonly en: "Face Enhance";
|
|
2277
|
+
readonly ja: "顔補正";
|
|
2241
2278
|
};
|
|
2242
2279
|
};
|
|
2243
|
-
readonly
|
|
2244
|
-
readonly id: "
|
|
2280
|
+
readonly colorize: {
|
|
2281
|
+
readonly id: "colorize";
|
|
2245
2282
|
readonly label: {
|
|
2246
|
-
readonly zh: "
|
|
2247
|
-
readonly "zh-TW": "
|
|
2248
|
-
readonly en: "
|
|
2249
|
-
readonly ja: "
|
|
2283
|
+
readonly zh: "黑白上色";
|
|
2284
|
+
readonly "zh-TW": "黑白上色";
|
|
2285
|
+
readonly en: "Colorize";
|
|
2286
|
+
readonly ja: "カラー化";
|
|
2250
2287
|
};
|
|
2251
2288
|
};
|
|
2252
|
-
readonly
|
|
2253
|
-
readonly id: "
|
|
2289
|
+
readonly segmentation: {
|
|
2290
|
+
readonly id: "segmentation";
|
|
2254
2291
|
readonly label: {
|
|
2255
|
-
readonly zh: "
|
|
2256
|
-
readonly "zh-TW": "
|
|
2257
|
-
readonly en: "
|
|
2258
|
-
readonly ja: "
|
|
2292
|
+
readonly zh: "图像分割";
|
|
2293
|
+
readonly "zh-TW": "圖像分割";
|
|
2294
|
+
readonly en: "Segmentation";
|
|
2295
|
+
readonly ja: "セグメンテーション";
|
|
2259
2296
|
};
|
|
2260
2297
|
};
|
|
2261
|
-
readonly
|
|
2262
|
-
readonly id: "
|
|
2298
|
+
readonly objectDetect: {
|
|
2299
|
+
readonly id: "objectDetect";
|
|
2263
2300
|
readonly label: {
|
|
2264
|
-
readonly zh: "
|
|
2265
|
-
readonly "zh-TW": "
|
|
2266
|
-
readonly en: "
|
|
2267
|
-
readonly ja: "
|
|
2301
|
+
readonly zh: "目标检测";
|
|
2302
|
+
readonly "zh-TW": "目標偵測";
|
|
2303
|
+
readonly en: "Object Detection";
|
|
2304
|
+
readonly ja: "物体検出";
|
|
2268
2305
|
};
|
|
2269
2306
|
};
|
|
2270
|
-
readonly
|
|
2271
|
-
readonly id: "
|
|
2307
|
+
readonly ocrRecognize: {
|
|
2308
|
+
readonly id: "ocrRecognize";
|
|
2272
2309
|
readonly label: {
|
|
2273
|
-
readonly zh: "
|
|
2274
|
-
readonly "zh-TW": "
|
|
2275
|
-
readonly en: "
|
|
2276
|
-
readonly ja: "
|
|
2310
|
+
readonly zh: "文字识别";
|
|
2311
|
+
readonly "zh-TW": "文字辨識";
|
|
2312
|
+
readonly en: "OCR";
|
|
2313
|
+
readonly ja: "文字認識";
|
|
2277
2314
|
};
|
|
2278
2315
|
};
|
|
2279
|
-
readonly
|
|
2280
|
-
readonly id: "
|
|
2316
|
+
readonly imageCaption: {
|
|
2317
|
+
readonly id: "imageCaption";
|
|
2281
2318
|
readonly label: {
|
|
2282
|
-
readonly zh: "
|
|
2283
|
-
readonly "zh-TW": "
|
|
2284
|
-
readonly en: "
|
|
2285
|
-
readonly ja: "
|
|
2319
|
+
readonly zh: "图片描述";
|
|
2320
|
+
readonly "zh-TW": "圖片描述";
|
|
2321
|
+
readonly en: "Image Caption";
|
|
2322
|
+
readonly ja: "画像キャプション";
|
|
2286
2323
|
};
|
|
2287
2324
|
};
|
|
2288
|
-
readonly
|
|
2289
|
-
readonly id: "
|
|
2325
|
+
readonly musicGenerate: {
|
|
2326
|
+
readonly id: "musicGenerate";
|
|
2290
2327
|
readonly label: {
|
|
2291
|
-
readonly zh: "
|
|
2292
|
-
readonly "zh-TW": "
|
|
2293
|
-
readonly en: "
|
|
2294
|
-
readonly ja: "
|
|
2328
|
+
readonly zh: "音乐生成";
|
|
2329
|
+
readonly "zh-TW": "音樂生成";
|
|
2330
|
+
readonly en: "Music Generation";
|
|
2331
|
+
readonly ja: "音楽生成";
|
|
2295
2332
|
};
|
|
2296
2333
|
};
|
|
2297
|
-
readonly
|
|
2298
|
-
readonly id: "
|
|
2334
|
+
readonly soundEffect: {
|
|
2335
|
+
readonly id: "soundEffect";
|
|
2299
2336
|
readonly label: {
|
|
2300
|
-
readonly zh: "
|
|
2301
|
-
readonly "zh-TW": "
|
|
2302
|
-
readonly en: "
|
|
2303
|
-
readonly ja: "
|
|
2337
|
+
readonly zh: "音效生成";
|
|
2338
|
+
readonly "zh-TW": "音效生成";
|
|
2339
|
+
readonly en: "Sound Effect";
|
|
2340
|
+
readonly ja: "効果音生成";
|
|
2304
2341
|
};
|
|
2305
2342
|
};
|
|
2306
|
-
readonly
|
|
2307
|
-
readonly id: "
|
|
2343
|
+
readonly voiceClone: {
|
|
2344
|
+
readonly id: "voiceClone";
|
|
2308
2345
|
readonly label: {
|
|
2309
|
-
readonly zh: "
|
|
2310
|
-
readonly "zh-TW": "
|
|
2311
|
-
readonly en: "
|
|
2312
|
-
readonly ja: "
|
|
2346
|
+
readonly zh: "声音克隆";
|
|
2347
|
+
readonly "zh-TW": "聲音克隆";
|
|
2348
|
+
readonly en: "Voice Clone";
|
|
2349
|
+
readonly ja: "音声クローン";
|
|
2313
2350
|
};
|
|
2314
2351
|
};
|
|
2315
|
-
readonly
|
|
2316
|
-
readonly id: "
|
|
2352
|
+
readonly videoUpscale: {
|
|
2353
|
+
readonly id: "videoUpscale";
|
|
2317
2354
|
readonly label: {
|
|
2318
|
-
readonly zh: "
|
|
2319
|
-
readonly "zh-TW": "
|
|
2320
|
-
readonly en: "
|
|
2321
|
-
readonly ja: "
|
|
2355
|
+
readonly zh: "视频超清";
|
|
2356
|
+
readonly "zh-TW": "影片超清";
|
|
2357
|
+
readonly en: "Video Upscale";
|
|
2358
|
+
readonly ja: "動画超解像";
|
|
2322
2359
|
};
|
|
2323
2360
|
};
|
|
2324
|
-
readonly
|
|
2325
|
-
readonly id: "
|
|
2361
|
+
readonly videoStabilize: {
|
|
2362
|
+
readonly id: "videoStabilize";
|
|
2326
2363
|
readonly label: {
|
|
2327
|
-
readonly zh: "
|
|
2328
|
-
readonly "zh-TW": "
|
|
2329
|
-
readonly en: "
|
|
2330
|
-
readonly ja: "
|
|
2364
|
+
readonly zh: "视频防抖";
|
|
2365
|
+
readonly "zh-TW": "影片防抖";
|
|
2366
|
+
readonly en: "Video Stabilize";
|
|
2367
|
+
readonly ja: "動画手ぶれ補正";
|
|
2331
2368
|
};
|
|
2332
2369
|
};
|
|
2333
|
-
readonly
|
|
2334
|
-
readonly id: "
|
|
2370
|
+
readonly subtitleGenerate: {
|
|
2371
|
+
readonly id: "subtitleGenerate";
|
|
2335
2372
|
readonly label: {
|
|
2336
|
-
readonly zh: "
|
|
2337
|
-
readonly "zh-TW": "
|
|
2338
|
-
readonly en: "
|
|
2339
|
-
readonly ja: "
|
|
2373
|
+
readonly zh: "字幕生成";
|
|
2374
|
+
readonly "zh-TW": "字幕生成";
|
|
2375
|
+
readonly en: "Subtitle Generation";
|
|
2376
|
+
readonly ja: "字幕生成";
|
|
2340
2377
|
};
|
|
2341
2378
|
};
|
|
2342
|
-
readonly
|
|
2343
|
-
readonly id: "
|
|
2379
|
+
readonly threeDGenerate: {
|
|
2380
|
+
readonly id: "threeDGenerate";
|
|
2344
2381
|
readonly label: {
|
|
2345
|
-
readonly zh: "
|
|
2346
|
-
readonly "zh-TW": "
|
|
2347
|
-
readonly en: "
|
|
2348
|
-
readonly ja: "
|
|
2382
|
+
readonly zh: "3D 生成";
|
|
2383
|
+
readonly "zh-TW": "3D 生成";
|
|
2384
|
+
readonly en: "3D Generation";
|
|
2385
|
+
readonly ja: "3D 生成";
|
|
2349
2386
|
};
|
|
2350
2387
|
};
|
|
2351
2388
|
};
|
|
2352
|
-
/**
|
|
2353
|
-
type
|
|
2354
|
-
/** Media preference identifier type. */
|
|
2355
|
-
type MediaPreferenceId = keyof typeof MEDIA_PREFERENCES;
|
|
2389
|
+
/** Media feature identifier type. */
|
|
2390
|
+
type MediaFeatureId = keyof typeof MEDIA_FEATURES;
|
|
2356
2391
|
/**
|
|
2357
|
-
*
|
|
2358
|
-
* Client 使用此字典翻译
|
|
2392
|
+
* Common model provider definitions.
|
|
2393
|
+
* Client 使用此字典翻译 provider ID 为用户可读名称。
|
|
2359
2394
|
*/
|
|
2360
|
-
declare const
|
|
2361
|
-
readonly
|
|
2362
|
-
readonly id: "
|
|
2395
|
+
declare const MODEL_PROVIDERS: {
|
|
2396
|
+
readonly openai: {
|
|
2397
|
+
readonly id: "openai";
|
|
2363
2398
|
readonly label: {
|
|
2364
|
-
readonly zh: "
|
|
2365
|
-
readonly "zh-TW": "
|
|
2366
|
-
readonly en: "
|
|
2367
|
-
readonly ja: "
|
|
2399
|
+
readonly zh: "OpenAI";
|
|
2400
|
+
readonly "zh-TW": "OpenAI";
|
|
2401
|
+
readonly en: "OpenAI";
|
|
2402
|
+
readonly ja: "OpenAI";
|
|
2368
2403
|
};
|
|
2369
2404
|
};
|
|
2370
|
-
readonly
|
|
2371
|
-
readonly id: "
|
|
2405
|
+
readonly anthropic: {
|
|
2406
|
+
readonly id: "anthropic";
|
|
2372
2407
|
readonly label: {
|
|
2373
|
-
readonly zh: "
|
|
2374
|
-
readonly "zh-TW": "
|
|
2375
|
-
readonly en: "
|
|
2376
|
-
readonly ja: "
|
|
2408
|
+
readonly zh: "Anthropic";
|
|
2409
|
+
readonly "zh-TW": "Anthropic";
|
|
2410
|
+
readonly en: "Anthropic";
|
|
2411
|
+
readonly ja: "Anthropic";
|
|
2377
2412
|
};
|
|
2378
2413
|
};
|
|
2379
|
-
readonly
|
|
2380
|
-
readonly id: "
|
|
2414
|
+
readonly google: {
|
|
2415
|
+
readonly id: "google";
|
|
2381
2416
|
readonly label: {
|
|
2382
|
-
readonly zh: "
|
|
2383
|
-
readonly "zh-TW": "
|
|
2384
|
-
readonly en: "
|
|
2385
|
-
readonly ja: "
|
|
2417
|
+
readonly zh: "Google";
|
|
2418
|
+
readonly "zh-TW": "Google";
|
|
2419
|
+
readonly en: "Google";
|
|
2420
|
+
readonly ja: "Google";
|
|
2386
2421
|
};
|
|
2387
2422
|
};
|
|
2388
|
-
readonly
|
|
2389
|
-
readonly id: "
|
|
2423
|
+
readonly deepseek: {
|
|
2424
|
+
readonly id: "deepseek";
|
|
2390
2425
|
readonly label: {
|
|
2391
|
-
readonly zh: "
|
|
2392
|
-
readonly "zh-TW": "
|
|
2393
|
-
readonly en: "
|
|
2394
|
-
readonly ja: "
|
|
2426
|
+
readonly zh: "DeepSeek";
|
|
2427
|
+
readonly "zh-TW": "DeepSeek";
|
|
2428
|
+
readonly en: "DeepSeek";
|
|
2429
|
+
readonly ja: "DeepSeek";
|
|
2395
2430
|
};
|
|
2396
2431
|
};
|
|
2397
|
-
readonly
|
|
2398
|
-
readonly id: "
|
|
2432
|
+
readonly qwen: {
|
|
2433
|
+
readonly id: "qwen";
|
|
2399
2434
|
readonly label: {
|
|
2400
|
-
readonly zh: "
|
|
2401
|
-
readonly "zh-TW": "
|
|
2402
|
-
readonly en: "
|
|
2403
|
-
readonly ja: "
|
|
2435
|
+
readonly zh: "通义千问";
|
|
2436
|
+
readonly "zh-TW": "通義千問";
|
|
2437
|
+
readonly en: "Qwen";
|
|
2438
|
+
readonly ja: "通義千問";
|
|
2404
2439
|
};
|
|
2405
2440
|
};
|
|
2406
|
-
readonly
|
|
2407
|
-
readonly id: "
|
|
2441
|
+
readonly kling: {
|
|
2442
|
+
readonly id: "kling";
|
|
2408
2443
|
readonly label: {
|
|
2409
|
-
readonly zh: "
|
|
2410
|
-
readonly "zh-TW": "
|
|
2411
|
-
readonly en: "
|
|
2412
|
-
readonly ja: "
|
|
2444
|
+
readonly zh: "可灵";
|
|
2445
|
+
readonly "zh-TW": "可靈";
|
|
2446
|
+
readonly en: "Kling";
|
|
2447
|
+
readonly ja: "可灵";
|
|
2413
2448
|
};
|
|
2414
2449
|
};
|
|
2415
|
-
readonly
|
|
2416
|
-
readonly id: "
|
|
2450
|
+
readonly jimeng: {
|
|
2451
|
+
readonly id: "jimeng";
|
|
2417
2452
|
readonly label: {
|
|
2418
|
-
readonly zh: "
|
|
2419
|
-
readonly "zh-TW": "
|
|
2420
|
-
readonly en: "
|
|
2421
|
-
readonly ja: "
|
|
2453
|
+
readonly zh: "即梦";
|
|
2454
|
+
readonly "zh-TW": "即夢";
|
|
2455
|
+
readonly en: "Jimeng";
|
|
2456
|
+
readonly ja: "即梦";
|
|
2422
2457
|
};
|
|
2423
2458
|
};
|
|
2424
|
-
readonly
|
|
2425
|
-
readonly id: "
|
|
2459
|
+
readonly doubao: {
|
|
2460
|
+
readonly id: "doubao";
|
|
2426
2461
|
readonly label: {
|
|
2427
|
-
readonly zh: "
|
|
2428
|
-
readonly "zh-TW": "
|
|
2429
|
-
readonly en: "
|
|
2430
|
-
readonly ja: "
|
|
2462
|
+
readonly zh: "豆包";
|
|
2463
|
+
readonly "zh-TW": "豆包";
|
|
2464
|
+
readonly en: "Doubao";
|
|
2465
|
+
readonly ja: "豆包";
|
|
2431
2466
|
};
|
|
2432
2467
|
};
|
|
2433
|
-
readonly
|
|
2434
|
-
readonly id: "
|
|
2468
|
+
readonly minimax: {
|
|
2469
|
+
readonly id: "minimax";
|
|
2435
2470
|
readonly label: {
|
|
2436
|
-
readonly zh: "
|
|
2437
|
-
readonly "zh-TW": "
|
|
2438
|
-
readonly en: "
|
|
2439
|
-
readonly ja: "
|
|
2471
|
+
readonly zh: "MiniMax";
|
|
2472
|
+
readonly "zh-TW": "MiniMax";
|
|
2473
|
+
readonly en: "MiniMax";
|
|
2474
|
+
readonly ja: "MiniMax";
|
|
2440
2475
|
};
|
|
2441
2476
|
};
|
|
2442
|
-
readonly
|
|
2443
|
-
readonly id: "
|
|
2477
|
+
readonly zhipu: {
|
|
2478
|
+
readonly id: "zhipu";
|
|
2444
2479
|
readonly label: {
|
|
2445
|
-
readonly zh: "
|
|
2446
|
-
readonly "zh-TW": "
|
|
2447
|
-
readonly en: "
|
|
2448
|
-
readonly ja: "
|
|
2480
|
+
readonly zh: "智谱";
|
|
2481
|
+
readonly "zh-TW": "智譜";
|
|
2482
|
+
readonly en: "Zhipu";
|
|
2483
|
+
readonly ja: "智譜";
|
|
2449
2484
|
};
|
|
2450
2485
|
};
|
|
2451
|
-
readonly
|
|
2452
|
-
readonly id: "
|
|
2486
|
+
readonly moonshot: {
|
|
2487
|
+
readonly id: "moonshot";
|
|
2453
2488
|
readonly label: {
|
|
2454
|
-
readonly zh: "
|
|
2455
|
-
readonly "zh-TW": "
|
|
2456
|
-
readonly en: "
|
|
2457
|
-
readonly ja: "
|
|
2489
|
+
readonly zh: "月之暗面";
|
|
2490
|
+
readonly "zh-TW": "月之暗面";
|
|
2491
|
+
readonly en: "Moonshot";
|
|
2492
|
+
readonly ja: "Moonshot";
|
|
2458
2493
|
};
|
|
2459
2494
|
};
|
|
2460
|
-
readonly
|
|
2461
|
-
readonly id: "
|
|
2495
|
+
readonly baichuan: {
|
|
2496
|
+
readonly id: "baichuan";
|
|
2462
2497
|
readonly label: {
|
|
2463
|
-
readonly zh: "
|
|
2464
|
-
readonly "zh-TW": "
|
|
2465
|
-
readonly en: "
|
|
2466
|
-
readonly ja: "
|
|
2498
|
+
readonly zh: "百川";
|
|
2499
|
+
readonly "zh-TW": "百川";
|
|
2500
|
+
readonly en: "Baichuan";
|
|
2501
|
+
readonly ja: "百川";
|
|
2467
2502
|
};
|
|
2468
2503
|
};
|
|
2469
|
-
readonly
|
|
2470
|
-
readonly id: "
|
|
2504
|
+
readonly xai: {
|
|
2505
|
+
readonly id: "xai";
|
|
2471
2506
|
readonly label: {
|
|
2472
|
-
readonly zh: "
|
|
2473
|
-
readonly "zh-TW": "
|
|
2474
|
-
readonly en: "
|
|
2475
|
-
readonly ja: "
|
|
2507
|
+
readonly zh: "xAI";
|
|
2508
|
+
readonly "zh-TW": "xAI";
|
|
2509
|
+
readonly en: "xAI";
|
|
2510
|
+
readonly ja: "xAI";
|
|
2476
2511
|
};
|
|
2477
2512
|
};
|
|
2478
|
-
readonly
|
|
2479
|
-
readonly id: "
|
|
2513
|
+
readonly siliconflow: {
|
|
2514
|
+
readonly id: "siliconflow";
|
|
2480
2515
|
readonly label: {
|
|
2481
|
-
readonly zh: "
|
|
2482
|
-
readonly "zh-TW": "
|
|
2483
|
-
readonly en: "
|
|
2484
|
-
readonly ja: "
|
|
2516
|
+
readonly zh: "硅基流动";
|
|
2517
|
+
readonly "zh-TW": "矽基流動";
|
|
2518
|
+
readonly en: "SiliconFlow";
|
|
2519
|
+
readonly ja: "SiliconFlow";
|
|
2485
2520
|
};
|
|
2486
2521
|
};
|
|
2487
2522
|
};
|
|
2488
|
-
/**
|
|
2489
|
-
type
|
|
2523
|
+
/** Model provider identifier type. */
|
|
2524
|
+
type ModelProviderId = keyof typeof MODEL_PROVIDERS;
|
|
2490
2525
|
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2526
|
+
/**
|
|
2527
|
+
* Per-handler input schemas for v3 media API.
|
|
2528
|
+
* Key = handlerKey, value = Zod schema for { inputs, params }.
|
|
2529
|
+
* SDK consumers can use these for type-safe parameter construction.
|
|
2530
|
+
*/
|
|
2531
|
+
declare const V3_HANDLER_SCHEMAS: {
|
|
2532
|
+
/** Qwen Wan2.6 text-to-image. */
|
|
2533
|
+
readonly "qwen-wan26-t2i": z.ZodObject<{
|
|
2534
|
+
inputs: z.ZodObject<{
|
|
2535
|
+
prompt: z.ZodString;
|
|
2536
|
+
}, z.core.$strip>;
|
|
2537
|
+
params: z.ZodObject<{
|
|
2538
|
+
aspectRatio: z.ZodDefault<z.ZodEnum<{
|
|
2539
|
+
"1:1": "1:1";
|
|
2540
|
+
"16:9": "16:9";
|
|
2541
|
+
"9:16": "9:16";
|
|
2542
|
+
"4:3": "4:3";
|
|
2543
|
+
}>>;
|
|
2544
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2545
|
+
standard: "standard";
|
|
2546
|
+
hd: "hd";
|
|
2547
|
+
}>>;
|
|
2548
|
+
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
promptExtend: z.ZodOptional<z.ZodBoolean>;
|
|
2550
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2551
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2552
|
+
}, z.core.$strip>;
|
|
2553
|
+
}, z.core.$strip>;
|
|
2554
|
+
/** Qwen z-image-turbo lightweight text-to-image. */
|
|
2555
|
+
readonly "qwen-z-image-turbo": z.ZodObject<{
|
|
2556
|
+
inputs: z.ZodObject<{
|
|
2557
|
+
prompt: z.ZodString;
|
|
2558
|
+
}, z.core.$strip>;
|
|
2559
|
+
params: z.ZodObject<{
|
|
2560
|
+
aspectRatio: z.ZodDefault<z.ZodEnum<{
|
|
2561
|
+
"1:1": "1:1";
|
|
2562
|
+
"16:9": "16:9";
|
|
2563
|
+
"9:16": "9:16";
|
|
2564
|
+
"4:3": "4:3";
|
|
2565
|
+
}>>;
|
|
2566
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2567
|
+
standard: "standard";
|
|
2568
|
+
hd: "hd";
|
|
2569
|
+
}>>;
|
|
2570
|
+
promptExtend: z.ZodOptional<z.ZodBoolean>;
|
|
2571
|
+
}, z.core.$strip>;
|
|
2572
|
+
}, z.core.$strip>;
|
|
2573
|
+
/** Qwen basic text-to-image. */
|
|
2574
|
+
readonly "qwen-image": z.ZodObject<{
|
|
2575
|
+
inputs: z.ZodObject<{
|
|
2576
|
+
prompt: z.ZodString;
|
|
2577
|
+
}, z.core.$strip>;
|
|
2578
|
+
params: z.ZodObject<{
|
|
2579
|
+
aspectRatio: z.ZodDefault<z.ZodEnum<{
|
|
2580
|
+
"1:1": "1:1";
|
|
2581
|
+
"16:9": "16:9";
|
|
2582
|
+
"9:16": "9:16";
|
|
2583
|
+
"4:3": "4:3";
|
|
2584
|
+
}>>;
|
|
2585
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2586
|
+
standard: "standard";
|
|
2587
|
+
hd: "hd";
|
|
2588
|
+
}>>;
|
|
2589
|
+
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2590
|
+
promptExtend: z.ZodOptional<z.ZodBoolean>;
|
|
2591
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2592
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2593
|
+
}, z.core.$strip>;
|
|
2594
|
+
}, z.core.$strip>;
|
|
2595
|
+
/** Qwen Plus text-to-image (HD). */
|
|
2596
|
+
readonly "qwen-image-plus": z.ZodObject<{
|
|
2597
|
+
inputs: z.ZodObject<{
|
|
2598
|
+
prompt: z.ZodString;
|
|
2599
|
+
}, z.core.$strip>;
|
|
2600
|
+
params: z.ZodObject<{
|
|
2601
|
+
aspectRatio: z.ZodDefault<z.ZodEnum<{
|
|
2602
|
+
"1:1": "1:1";
|
|
2603
|
+
"16:9": "16:9";
|
|
2604
|
+
"9:16": "9:16";
|
|
2605
|
+
"4:3": "4:3";
|
|
2606
|
+
}>>;
|
|
2607
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2608
|
+
standard: "standard";
|
|
2609
|
+
hd: "hd";
|
|
2610
|
+
}>>;
|
|
2611
|
+
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2612
|
+
promptExtend: z.ZodOptional<z.ZodBoolean>;
|
|
2613
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2614
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2615
|
+
}, z.core.$strip>;
|
|
2616
|
+
}, z.core.$strip>;
|
|
2617
|
+
/** Volcengine Jimeng T2I v4.0. */
|
|
2618
|
+
readonly "volc-jimeng-t2i-v40": z.ZodObject<{
|
|
2619
|
+
inputs: z.ZodObject<{
|
|
2620
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2621
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2622
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2623
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2624
|
+
}, z.core.$strip>>>;
|
|
2625
|
+
}, z.core.$strip>;
|
|
2626
|
+
params: z.ZodObject<{
|
|
2627
|
+
prompt: z.ZodString;
|
|
2628
|
+
style: z.ZodOptional<z.ZodString>;
|
|
2629
|
+
aspectRatio: z.ZodDefault<z.ZodEnum<{
|
|
2630
|
+
"1:1": "1:1";
|
|
2631
|
+
"16:9": "16:9";
|
|
2632
|
+
"9:16": "9:16";
|
|
2633
|
+
"4:3": "4:3";
|
|
2634
|
+
}>>;
|
|
2635
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2636
|
+
standard: "standard";
|
|
2637
|
+
hd: "hd";
|
|
2638
|
+
}>>;
|
|
2639
|
+
}, z.core.$strip>;
|
|
2640
|
+
}, z.core.$strip>;
|
|
2641
|
+
/** Volcengine Jimeng T2I v3.1. */
|
|
2642
|
+
readonly "volc-jimeng-t2i-v31": z.ZodObject<{
|
|
2643
|
+
inputs: z.ZodObject<{
|
|
2644
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2645
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2646
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2647
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2648
|
+
}, z.core.$strip>>>;
|
|
2649
|
+
}, z.core.$strip>;
|
|
2650
|
+
params: z.ZodObject<{
|
|
2651
|
+
prompt: z.ZodString;
|
|
2652
|
+
style: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
aspectRatio: z.ZodDefault<z.ZodEnum<{
|
|
2654
|
+
"1:1": "1:1";
|
|
2655
|
+
"16:9": "16:9";
|
|
2656
|
+
"9:16": "9:16";
|
|
2657
|
+
"4:3": "4:3";
|
|
2658
|
+
}>>;
|
|
2659
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2660
|
+
standard: "standard";
|
|
2661
|
+
hd: "hd";
|
|
2662
|
+
}>>;
|
|
2663
|
+
}, z.core.$strip>;
|
|
2664
|
+
}, z.core.$strip>;
|
|
2665
|
+
/** Qwen image edit plus. */
|
|
2666
|
+
readonly "qwen-image-edit-plus": z.ZodObject<{
|
|
2667
|
+
inputs: z.ZodObject<{
|
|
2668
|
+
prompt: z.ZodString;
|
|
2669
|
+
image: z.ZodObject<{
|
|
2670
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2671
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2672
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2673
|
+
}, z.core.$strip>;
|
|
2674
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2675
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2676
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2677
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2678
|
+
}, z.core.$strip>>>;
|
|
2679
|
+
mask: z.ZodOptional<z.ZodObject<{
|
|
2680
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2681
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2682
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2683
|
+
}, z.core.$strip>>;
|
|
2684
|
+
}, z.core.$strip>;
|
|
2685
|
+
params: z.ZodObject<{
|
|
2686
|
+
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2687
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2688
|
+
}, z.core.$strip>;
|
|
2689
|
+
}, z.core.$strip>;
|
|
2690
|
+
/** Qwen Wan2.6 interleaved image edit. */
|
|
2691
|
+
readonly "qwen-wan26-image": z.ZodObject<{
|
|
2692
|
+
inputs: z.ZodObject<{
|
|
2693
|
+
prompt: z.ZodString;
|
|
2694
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
2695
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2696
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2697
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2698
|
+
}, z.core.$strip>>;
|
|
2699
|
+
}, z.core.$strip>;
|
|
2700
|
+
params: z.ZodObject<{
|
|
2701
|
+
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2702
|
+
promptExtend: z.ZodOptional<z.ZodBoolean>;
|
|
2703
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2704
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2705
|
+
}, z.core.$strip>;
|
|
2706
|
+
}, z.core.$strip>;
|
|
2707
|
+
/** Volcengine Jimeng inpaint. */
|
|
2708
|
+
readonly "volc-jimeng-inpaint": z.ZodObject<{
|
|
2709
|
+
inputs: z.ZodObject<{
|
|
2710
|
+
image: z.ZodObject<{
|
|
2711
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2712
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2713
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2714
|
+
}, z.core.$strip>;
|
|
2715
|
+
mask: z.ZodObject<{
|
|
2716
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2717
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2718
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2719
|
+
}, z.core.$strip>;
|
|
2720
|
+
}, z.core.$strip>;
|
|
2721
|
+
params: z.ZodObject<{
|
|
2722
|
+
prompt: z.ZodString;
|
|
2723
|
+
}, z.core.$strip>;
|
|
2724
|
+
}, z.core.$strip>;
|
|
2725
|
+
/** Volcengine material extraction / style transfer. */
|
|
2726
|
+
readonly "volc-material-extraction": z.ZodObject<{
|
|
2727
|
+
inputs: z.ZodObject<{
|
|
2728
|
+
image: z.ZodObject<{
|
|
2729
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2730
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2731
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2732
|
+
}, z.core.$strip>;
|
|
2733
|
+
}, z.core.$strip>;
|
|
2734
|
+
params: z.ZodObject<{
|
|
2735
|
+
prompt: z.ZodString;
|
|
2736
|
+
aspectRatio: z.ZodDefault<z.ZodEnum<{
|
|
2737
|
+
"1:1": "1:1";
|
|
2738
|
+
"16:9": "16:9";
|
|
2739
|
+
"9:16": "9:16";
|
|
2740
|
+
"4:3": "4:3";
|
|
2741
|
+
}>>;
|
|
2742
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
2743
|
+
standard: "standard";
|
|
2744
|
+
hd: "hd";
|
|
2745
|
+
}>>;
|
|
2746
|
+
}, z.core.$strip>;
|
|
2747
|
+
}, z.core.$strip>;
|
|
2748
|
+
/** Volcengine material extract. */
|
|
2749
|
+
readonly "volc-material-extract": z.ZodObject<{
|
|
2750
|
+
inputs: z.ZodObject<{
|
|
2751
|
+
image: z.ZodObject<{
|
|
2752
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2753
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2754
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
}, z.core.$strip>;
|
|
2756
|
+
}, z.core.$strip>;
|
|
2757
|
+
params: z.ZodObject<{}, z.core.$strip>;
|
|
2758
|
+
}, z.core.$strip>;
|
|
2759
|
+
/** Qwen wanx2.1 super-resolution. */
|
|
2760
|
+
readonly "qwen-wanx21-upscale": z.ZodObject<{
|
|
2761
|
+
inputs: z.ZodObject<{
|
|
2762
|
+
image: z.ZodObject<{
|
|
2763
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2764
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2765
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2766
|
+
}, z.core.$strip>;
|
|
2767
|
+
}, z.core.$strip>;
|
|
2768
|
+
params: z.ZodObject<{
|
|
2769
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
2770
|
+
}, z.core.$strip>;
|
|
2771
|
+
}, z.core.$strip>;
|
|
2772
|
+
/** Volcengine smart super resolution. */
|
|
2773
|
+
readonly "volc-image-upscale": z.ZodObject<{
|
|
2774
|
+
inputs: z.ZodObject<{
|
|
2775
|
+
image: z.ZodObject<{
|
|
2776
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2777
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2778
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2779
|
+
}, z.core.$strip>;
|
|
2780
|
+
}, z.core.$strip>;
|
|
2781
|
+
params: z.ZodObject<{
|
|
2782
|
+
scale: z.ZodDefault<z.ZodEnum<{
|
|
2783
|
+
"4K": "4K";
|
|
2784
|
+
"8K": "8K";
|
|
2785
|
+
}>>;
|
|
2786
|
+
}, z.core.$strip>;
|
|
2787
|
+
}, z.core.$strip>;
|
|
2788
|
+
/** Qwen image out-painting. */
|
|
2789
|
+
readonly "qwen-wanx21-outpaint": z.ZodObject<{
|
|
2790
|
+
inputs: z.ZodObject<{
|
|
2791
|
+
image: z.ZodObject<{
|
|
2792
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2793
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2794
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2795
|
+
}, z.core.$strip>;
|
|
2796
|
+
}, z.core.$strip>;
|
|
2797
|
+
params: z.ZodObject<{
|
|
2798
|
+
xScale: z.ZodDefault<z.ZodNumber>;
|
|
2799
|
+
yScale: z.ZodDefault<z.ZodNumber>;
|
|
2800
|
+
}, z.core.$strip>;
|
|
2801
|
+
}, z.core.$strip>;
|
|
2802
|
+
/** Qwen Wan2.6 i2v flash (fast video). */
|
|
2803
|
+
readonly "qwen-wan26-i2v-flash": z.ZodObject<{
|
|
2804
|
+
inputs: z.ZodObject<{
|
|
2805
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2806
|
+
startImage: z.ZodObject<{
|
|
2807
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2808
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2809
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2810
|
+
}, z.core.$strip>;
|
|
2811
|
+
}, z.core.$strip>;
|
|
2812
|
+
params: z.ZodObject<{
|
|
2813
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
2814
|
+
withAudio: z.ZodOptional<z.ZodBoolean>;
|
|
2815
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2816
|
+
"720p": "720p";
|
|
2817
|
+
"1080p": "1080p";
|
|
2818
|
+
}>>;
|
|
2819
|
+
}, z.core.$strip>;
|
|
2820
|
+
}, z.core.$strip>;
|
|
2821
|
+
/** Qwen Wan2.6 i2v (high-quality video). */
|
|
2822
|
+
readonly "qwen-wan26-i2v": z.ZodObject<{
|
|
2823
|
+
inputs: z.ZodObject<{
|
|
2824
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2825
|
+
startImage: z.ZodObject<{
|
|
2826
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2827
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2828
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2829
|
+
}, z.core.$strip>;
|
|
2830
|
+
}, z.core.$strip>;
|
|
2831
|
+
params: z.ZodObject<{
|
|
2832
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
2833
|
+
withAudio: z.ZodOptional<z.ZodBoolean>;
|
|
2834
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2835
|
+
"720p": "720p";
|
|
2836
|
+
"1080p": "1080p";
|
|
2837
|
+
}>>;
|
|
2838
|
+
}, z.core.$strip>;
|
|
2839
|
+
}, z.core.$strip>;
|
|
2840
|
+
/** Volcengine Jimeng video generation 3.0. */
|
|
2841
|
+
readonly "volc-jimeng-t2v": z.ZodObject<{
|
|
2842
|
+
inputs: z.ZodObject<{
|
|
2843
|
+
startImage: z.ZodOptional<z.ZodObject<{
|
|
2844
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2845
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2846
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2847
|
+
}, z.core.$strip>>;
|
|
2848
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2849
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2850
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2851
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2852
|
+
}, z.core.$strip>>>;
|
|
2853
|
+
}, z.core.$strip>;
|
|
2854
|
+
params: z.ZodObject<{
|
|
2855
|
+
prompt: z.ZodString;
|
|
2856
|
+
style: z.ZodOptional<z.ZodString>;
|
|
2857
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
2858
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
2859
|
+
}, z.core.$strip>;
|
|
2860
|
+
}, z.core.$strip>;
|
|
2861
|
+
/** Qwen Wan2.2 digital human. */
|
|
2862
|
+
readonly "qwen-wan22-s2v": z.ZodObject<{
|
|
2863
|
+
inputs: z.ZodObject<{
|
|
2864
|
+
image: z.ZodObject<{
|
|
2865
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2866
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2867
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2868
|
+
}, z.core.$strip>;
|
|
2869
|
+
audio: z.ZodObject<{
|
|
2870
|
+
url: z.ZodString;
|
|
2871
|
+
}, z.core.$strip>;
|
|
2872
|
+
}, z.core.$strip>;
|
|
2873
|
+
params: z.ZodObject<{
|
|
2874
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2875
|
+
"480P": "480P";
|
|
2876
|
+
"720P": "720P";
|
|
2877
|
+
}>>;
|
|
2878
|
+
}, z.core.$strip>;
|
|
2879
|
+
}, z.core.$strip>;
|
|
2880
|
+
/** Qwen Wan2.2 animate-mix video face swap. */
|
|
2881
|
+
readonly "qwen-wan22-animate-mix": z.ZodObject<{
|
|
2882
|
+
inputs: z.ZodObject<{
|
|
2883
|
+
image: z.ZodObject<{
|
|
2884
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2885
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2886
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2887
|
+
}, z.core.$strip>;
|
|
2888
|
+
video: z.ZodObject<{
|
|
2889
|
+
url: z.ZodString;
|
|
2890
|
+
}, z.core.$strip>;
|
|
2891
|
+
}, z.core.$strip>;
|
|
2892
|
+
params: z.ZodObject<{
|
|
2893
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
2894
|
+
"wan-std": "wan-std";
|
|
2895
|
+
"wan-pro": "wan-pro";
|
|
2896
|
+
}>>;
|
|
2897
|
+
}, z.core.$strip>;
|
|
2898
|
+
}, z.core.$strip>;
|
|
2899
|
+
/** Volcengine video translate. */
|
|
2900
|
+
readonly "volc-video-translate": z.ZodObject<{
|
|
2901
|
+
inputs: z.ZodObject<{
|
|
2902
|
+
video: z.ZodObject<{
|
|
2903
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2904
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2905
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2906
|
+
}, z.core.$strip>;
|
|
2907
|
+
}, z.core.$strip>;
|
|
2908
|
+
params: z.ZodObject<{
|
|
2909
|
+
sourceLanguage: z.ZodDefault<z.ZodString>;
|
|
2910
|
+
targetLanguage: z.ZodDefault<z.ZodString>;
|
|
2911
|
+
}, z.core.$strip>;
|
|
2912
|
+
}, z.core.$strip>;
|
|
2913
|
+
/** Qwen CosyVoice v3 TTS. */
|
|
2914
|
+
readonly "qwen-cosyvoice-v3": z.ZodObject<{
|
|
2915
|
+
inputs: z.ZodObject<{
|
|
2916
|
+
text: z.ZodString;
|
|
2917
|
+
}, z.core.$strip>;
|
|
2918
|
+
params: z.ZodObject<{
|
|
2919
|
+
voice: z.ZodDefault<z.ZodString>;
|
|
2920
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
2921
|
+
mp3: "mp3";
|
|
2922
|
+
wav: "wav";
|
|
2923
|
+
pcm: "pcm";
|
|
2924
|
+
}>>;
|
|
2925
|
+
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
2926
|
+
speechRate: z.ZodOptional<z.ZodNumber>;
|
|
2927
|
+
}, z.core.$strip>;
|
|
2928
|
+
}, z.core.$strip>;
|
|
2929
|
+
/** Qwen3 TTS. */
|
|
2930
|
+
readonly "qwen-tts": z.ZodObject<{
|
|
2931
|
+
inputs: z.ZodObject<{
|
|
2932
|
+
text: z.ZodString;
|
|
2933
|
+
}, z.core.$strip>;
|
|
2934
|
+
params: z.ZodObject<{
|
|
2935
|
+
voice: z.ZodDefault<z.ZodString>;
|
|
2936
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
2937
|
+
languageType: z.ZodOptional<z.ZodString>;
|
|
2938
|
+
}, z.core.$strip>;
|
|
2939
|
+
}, z.core.$strip>;
|
|
2940
|
+
/** Qwen3 ASR. */
|
|
2941
|
+
readonly "qwen-asr": z.ZodObject<{
|
|
2942
|
+
inputs: z.ZodObject<{
|
|
2943
|
+
audio: z.ZodUnion<readonly [z.ZodObject<{
|
|
2944
|
+
url: z.ZodString;
|
|
2945
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2946
|
+
base64: z.ZodString;
|
|
2947
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2948
|
+
}, z.core.$strip>]>;
|
|
2949
|
+
}, z.core.$strip>;
|
|
2950
|
+
params: z.ZodObject<{
|
|
2951
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2952
|
+
}, z.core.$strip>;
|
|
2953
|
+
}, z.core.$strip>;
|
|
2954
|
+
/** Qwen VideoRetalk lip sync. */
|
|
2955
|
+
readonly "qwen-videoretalk": z.ZodObject<{
|
|
2956
|
+
inputs: z.ZodObject<{
|
|
2957
|
+
video: z.ZodObject<{
|
|
2958
|
+
url: z.ZodString;
|
|
2959
|
+
}, z.core.$strip>;
|
|
2960
|
+
audio: z.ZodObject<{
|
|
2961
|
+
url: z.ZodString;
|
|
2962
|
+
}, z.core.$strip>;
|
|
2963
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
2964
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2965
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
2966
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2967
|
+
}, z.core.$strip>>;
|
|
2968
|
+
}, z.core.$strip>;
|
|
2969
|
+
params: z.ZodObject<{}, z.core.$strip>;
|
|
2970
|
+
}, z.core.$strip>;
|
|
2971
|
+
};
|
|
2972
|
+
/** Handler key type. */
|
|
2973
|
+
type V3HandlerKey = keyof typeof V3_HANDLER_SCHEMAS;
|
|
2974
|
+
/** Infer input type for a specific handler. */
|
|
2975
|
+
type V3HandlerInput<K extends V3HandlerKey> = z.infer<(typeof V3_HANDLER_SCHEMAS)[K]>;
|
|
2976
|
+
|
|
2977
|
+
declare const index$7_AI_MODEL_CAPABILITY_INPUT_KEYS: typeof AI_MODEL_CAPABILITY_INPUT_KEYS;
|
|
2978
|
+
declare const index$7_AI_MODEL_CAPABILITY_OUTPUT_KEYS: typeof AI_MODEL_CAPABILITY_OUTPUT_KEYS;
|
|
2979
|
+
declare const index$7_AI_MODEL_TAGS: typeof AI_MODEL_TAGS;
|
|
2980
|
+
declare const index$7_AI_MODEL_TAG_LABELS: typeof AI_MODEL_TAG_LABELS;
|
|
2981
|
+
type index$7_AiChatCompletionsRequest = AiChatCompletionsRequest;
|
|
2982
|
+
type index$7_AiChatModel = AiChatModel;
|
|
2983
|
+
type index$7_AiChatModelsResponse = AiChatModelsResponse;
|
|
2984
|
+
type index$7_AiChatSessionMetadata = AiChatSessionMetadata;
|
|
2985
|
+
type index$7_AiClient = AiClient;
|
|
2986
|
+
declare const index$7_AiClient: typeof AiClient;
|
|
2987
|
+
type index$7_AiClientMetadata = AiClientMetadata;
|
|
2988
|
+
type index$7_AiFileUploadOptions = AiFileUploadOptions;
|
|
2989
|
+
type index$7_AiFileUploadResponse = AiFileUploadResponse;
|
|
2990
|
+
type index$7_AiModel = AiModel;
|
|
2991
|
+
type index$7_AiModelCapabilities = AiModelCapabilities;
|
|
2992
|
+
type index$7_AiModelCapabilitiesInput = AiModelCapabilitiesInput;
|
|
2993
|
+
type index$7_AiModelCapabilitiesOutput = AiModelCapabilitiesOutput;
|
|
2994
|
+
type index$7_AiModelCapabilityInputKey = AiModelCapabilityInputKey;
|
|
2995
|
+
type index$7_AiModelCapabilityOutputKey = AiModelCapabilityOutputKey;
|
|
2996
|
+
type index$7_AiModelTag = AiModelTag;
|
|
2997
|
+
type index$7_AiModelsUpdatedAtData = AiModelsUpdatedAtData;
|
|
2998
|
+
type index$7_AiModelsUpdatedAtResponse = AiModelsUpdatedAtResponse;
|
|
2999
|
+
type index$7_AiProviderTemplate = AiProviderTemplate;
|
|
3000
|
+
type index$7_AiProviderTemplateModel = AiProviderTemplateModel;
|
|
3001
|
+
type index$7_AiProviderTemplatesResponse = AiProviderTemplatesResponse;
|
|
3002
|
+
type index$7_AiResponsesRequest = AiResponsesRequest;
|
|
3003
|
+
declare const index$7_MEDIA_FEATURES: typeof MEDIA_FEATURES;
|
|
3004
|
+
declare const index$7_MODEL_PROVIDERS: typeof MODEL_PROVIDERS;
|
|
3005
|
+
type index$7_MediaFeatureId = MediaFeatureId;
|
|
3006
|
+
type index$7_ModelProviderId = ModelProviderId;
|
|
3007
|
+
type index$7_V3BasicSuccess = V3BasicSuccess;
|
|
3008
|
+
type index$7_V3CapabilitiesData = V3CapabilitiesData;
|
|
3009
|
+
type index$7_V3CapabilitiesResponse = V3CapabilitiesResponse;
|
|
3010
|
+
type index$7_V3CreditEstimate = V3CreditEstimate;
|
|
3011
|
+
type index$7_V3EstimatePriceRequest = V3EstimatePriceRequest;
|
|
3012
|
+
type index$7_V3EstimatePriceResponse = V3EstimatePriceResponse;
|
|
3013
|
+
type index$7_V3Feature = V3Feature;
|
|
3014
|
+
type index$7_V3GenerateRequest = V3GenerateRequest;
|
|
3015
|
+
type index$7_V3HandlerInput<K extends V3HandlerKey> = V3HandlerInput<K>;
|
|
3016
|
+
type index$7_V3HandlerKey = V3HandlerKey;
|
|
3017
|
+
type index$7_V3TaskCreated = V3TaskCreated;
|
|
3018
|
+
type index$7_V3TaskGroupResponse = V3TaskGroupResponse;
|
|
3019
|
+
type index$7_V3TaskItem = V3TaskItem;
|
|
3020
|
+
type index$7_V3TaskResponse = V3TaskResponse;
|
|
3021
|
+
type index$7_V3Variant = V3Variant;
|
|
3022
|
+
declare const index$7_V3_HANDLER_SCHEMAS: typeof V3_HANDLER_SCHEMAS;
|
|
3023
|
+
declare const index$7_aiChatCompletionsRequestSchema: typeof aiChatCompletionsRequestSchema;
|
|
3024
|
+
declare const index$7_aiChatModelSchema: typeof aiChatModelSchema;
|
|
3025
|
+
declare const index$7_aiChatModelsPayloadSchema: typeof aiChatModelsPayloadSchema;
|
|
3026
|
+
declare const index$7_aiChatModelsResponseSchema: typeof aiChatModelsResponseSchema;
|
|
3027
|
+
declare const index$7_aiChatModelsSuccessSchema: typeof aiChatModelsSuccessSchema;
|
|
3028
|
+
declare const index$7_aiChatSessionMetadataSchema: typeof aiChatSessionMetadataSchema;
|
|
3029
|
+
declare const index$7_aiClientMetadataSchema: typeof aiClientMetadataSchema;
|
|
3030
|
+
declare const index$7_aiEndpoints: typeof aiEndpoints;
|
|
3031
|
+
declare const index$7_aiErrorResponseSchema: typeof aiErrorResponseSchema;
|
|
3032
|
+
declare const index$7_aiModelCapabilitiesInputSchema: typeof aiModelCapabilitiesInputSchema;
|
|
3033
|
+
declare const index$7_aiModelCapabilitiesOutputSchema: typeof aiModelCapabilitiesOutputSchema;
|
|
3034
|
+
declare const index$7_aiModelCapabilitiesSchema: typeof aiModelCapabilitiesSchema;
|
|
3035
|
+
declare const index$7_aiModelCapabilityCommonSchema: typeof aiModelCapabilityCommonSchema;
|
|
3036
|
+
declare const index$7_aiModelParameterFieldSchema: typeof aiModelParameterFieldSchema;
|
|
3037
|
+
declare const index$7_aiModelParamsSchema: typeof aiModelParamsSchema;
|
|
3038
|
+
declare const index$7_aiModelSchema: typeof aiModelSchema;
|
|
3039
|
+
declare const index$7_aiModelsRequestSchema: typeof aiModelsRequestSchema;
|
|
3040
|
+
declare const index$7_aiModelsUpdatedAtDataSchema: typeof aiModelsUpdatedAtDataSchema;
|
|
3041
|
+
declare const index$7_aiModelsUpdatedAtResponseSchema: typeof aiModelsUpdatedAtResponseSchema;
|
|
3042
|
+
declare const index$7_aiModelsUpdatedAtSuccessSchema: typeof aiModelsUpdatedAtSuccessSchema;
|
|
3043
|
+
declare const index$7_aiProviderTemplateModelSchema: typeof aiProviderTemplateModelSchema;
|
|
3044
|
+
declare const index$7_aiProviderTemplateSchema: typeof aiProviderTemplateSchema;
|
|
3045
|
+
declare const index$7_aiProviderTemplatesPayloadSchema: typeof aiProviderTemplatesPayloadSchema;
|
|
3046
|
+
declare const index$7_aiProviderTemplatesRequestSchema: typeof aiProviderTemplatesRequestSchema;
|
|
3047
|
+
declare const index$7_aiProviderTemplatesResponseSchema: typeof aiProviderTemplatesResponseSchema;
|
|
3048
|
+
declare const index$7_aiProviderTemplatesSuccessSchema: typeof aiProviderTemplatesSuccessSchema;
|
|
3049
|
+
declare const index$7_aiResponsesRequestSchema: typeof aiResponsesRequestSchema;
|
|
3050
|
+
declare const index$7_v3BasicSuccessSchema: typeof v3BasicSuccessSchema;
|
|
3051
|
+
declare const index$7_v3CapabilitiesDataSchema: typeof v3CapabilitiesDataSchema;
|
|
3052
|
+
declare const index$7_v3CapabilitiesResponseSchema: typeof v3CapabilitiesResponseSchema;
|
|
3053
|
+
declare const index$7_v3CreditEstimateSchema: typeof v3CreditEstimateSchema;
|
|
3054
|
+
declare const index$7_v3EstimatePriceRequestSchema: typeof v3EstimatePriceRequestSchema;
|
|
3055
|
+
declare const index$7_v3EstimatePriceResponseSchema: typeof v3EstimatePriceResponseSchema;
|
|
3056
|
+
declare const index$7_v3FeatureSchema: typeof v3FeatureSchema;
|
|
3057
|
+
declare const index$7_v3GenerateRequestSchema: typeof v3GenerateRequestSchema;
|
|
3058
|
+
declare const index$7_v3TaskCreatedSchema: typeof v3TaskCreatedSchema;
|
|
3059
|
+
declare const index$7_v3TaskGroupResponseSchema: typeof v3TaskGroupResponseSchema;
|
|
3060
|
+
declare const index$7_v3TaskItemSchema: typeof v3TaskItemSchema;
|
|
3061
|
+
declare const index$7_v3TaskResponseSchema: typeof v3TaskResponseSchema;
|
|
3062
|
+
declare const index$7_v3VariantSchema: typeof v3VariantSchema;
|
|
3063
|
+
declare namespace index$7 {
|
|
3064
|
+
export { index$7_AI_MODEL_CAPABILITY_INPUT_KEYS as AI_MODEL_CAPABILITY_INPUT_KEYS, index$7_AI_MODEL_CAPABILITY_OUTPUT_KEYS as AI_MODEL_CAPABILITY_OUTPUT_KEYS, index$7_AI_MODEL_TAGS as AI_MODEL_TAGS, index$7_AI_MODEL_TAG_LABELS as AI_MODEL_TAG_LABELS, type index$7_AiChatCompletionsRequest as AiChatCompletionsRequest, type index$7_AiChatModel as AiChatModel, type index$7_AiChatModelsResponse as AiChatModelsResponse, type index$7_AiChatSessionMetadata as AiChatSessionMetadata, index$7_AiClient as AiClient, type index$7_AiClientMetadata as AiClientMetadata, type index$7_AiFileUploadOptions as AiFileUploadOptions, type index$7_AiFileUploadResponse as AiFileUploadResponse, type index$7_AiModel as AiModel, type index$7_AiModelCapabilities as AiModelCapabilities, type index$7_AiModelCapabilitiesInput as AiModelCapabilitiesInput, type index$7_AiModelCapabilitiesOutput as AiModelCapabilitiesOutput, type index$7_AiModelCapabilityInputKey as AiModelCapabilityInputKey, type index$7_AiModelCapabilityOutputKey as AiModelCapabilityOutputKey, type index$7_AiModelTag as AiModelTag, type index$7_AiModelsUpdatedAtData as AiModelsUpdatedAtData, type index$7_AiModelsUpdatedAtResponse as AiModelsUpdatedAtResponse, type index$7_AiProviderTemplate as AiProviderTemplate, type index$7_AiProviderTemplateModel as AiProviderTemplateModel, type index$7_AiProviderTemplatesResponse as AiProviderTemplatesResponse, type index$7_AiResponsesRequest as AiResponsesRequest, index$7_MEDIA_FEATURES as MEDIA_FEATURES, index$7_MODEL_PROVIDERS as MODEL_PROVIDERS, type index$7_MediaFeatureId as MediaFeatureId, type index$7_ModelProviderId as ModelProviderId, type index$7_V3BasicSuccess as V3BasicSuccess, type index$7_V3CapabilitiesData as V3CapabilitiesData, type index$7_V3CapabilitiesResponse as V3CapabilitiesResponse, type index$7_V3CreditEstimate as V3CreditEstimate, type index$7_V3EstimatePriceRequest as V3EstimatePriceRequest, type index$7_V3EstimatePriceResponse as V3EstimatePriceResponse, type index$7_V3Feature as V3Feature, type index$7_V3GenerateRequest as V3GenerateRequest, type index$7_V3HandlerInput as V3HandlerInput, type index$7_V3HandlerKey as V3HandlerKey, type index$7_V3TaskCreated as V3TaskCreated, type index$7_V3TaskGroupResponse as V3TaskGroupResponse, type index$7_V3TaskItem as V3TaskItem, type index$7_V3TaskResponse as V3TaskResponse, type index$7_V3Variant as V3Variant, index$7_V3_HANDLER_SCHEMAS as V3_HANDLER_SCHEMAS, index$7_aiChatCompletionsRequestSchema as aiChatCompletionsRequestSchema, index$7_aiChatModelSchema as aiChatModelSchema, index$7_aiChatModelsPayloadSchema as aiChatModelsPayloadSchema, index$7_aiChatModelsResponseSchema as aiChatModelsResponseSchema, index$7_aiChatModelsSuccessSchema as aiChatModelsSuccessSchema, index$7_aiChatSessionMetadataSchema as aiChatSessionMetadataSchema, index$7_aiClientMetadataSchema as aiClientMetadataSchema, index$7_aiEndpoints as aiEndpoints, index$7_aiErrorResponseSchema as aiErrorResponseSchema, index$7_aiModelCapabilitiesInputSchema as aiModelCapabilitiesInputSchema, index$7_aiModelCapabilitiesOutputSchema as aiModelCapabilitiesOutputSchema, index$7_aiModelCapabilitiesSchema as aiModelCapabilitiesSchema, index$7_aiModelCapabilityCommonSchema as aiModelCapabilityCommonSchema, index$7_aiModelParameterFieldSchema as aiModelParameterFieldSchema, index$7_aiModelParamsSchema as aiModelParamsSchema, index$7_aiModelSchema as aiModelSchema, index$7_aiModelsRequestSchema as aiModelsRequestSchema, index$7_aiModelsUpdatedAtDataSchema as aiModelsUpdatedAtDataSchema, index$7_aiModelsUpdatedAtResponseSchema as aiModelsUpdatedAtResponseSchema, index$7_aiModelsUpdatedAtSuccessSchema as aiModelsUpdatedAtSuccessSchema, index$7_aiProviderTemplateModelSchema as aiProviderTemplateModelSchema, index$7_aiProviderTemplateSchema as aiProviderTemplateSchema, index$7_aiProviderTemplatesPayloadSchema as aiProviderTemplatesPayloadSchema, index$7_aiProviderTemplatesRequestSchema as aiProviderTemplatesRequestSchema, index$7_aiProviderTemplatesResponseSchema as aiProviderTemplatesResponseSchema, index$7_aiProviderTemplatesSuccessSchema as aiProviderTemplatesSuccessSchema, index$7_aiResponsesRequestSchema as aiResponsesRequestSchema, index$7_v3BasicSuccessSchema as v3BasicSuccessSchema, index$7_v3CapabilitiesDataSchema as v3CapabilitiesDataSchema, index$7_v3CapabilitiesResponseSchema as v3CapabilitiesResponseSchema, index$7_v3CreditEstimateSchema as v3CreditEstimateSchema, index$7_v3EstimatePriceRequestSchema as v3EstimatePriceRequestSchema, index$7_v3EstimatePriceResponseSchema as v3EstimatePriceResponseSchema, index$7_v3FeatureSchema as v3FeatureSchema, index$7_v3GenerateRequestSchema as v3GenerateRequestSchema, index$7_v3TaskCreatedSchema as v3TaskCreatedSchema, index$7_v3TaskGroupResponseSchema as v3TaskGroupResponseSchema, index$7_v3TaskItemSchema as v3TaskItemSchema, index$7_v3TaskResponseSchema as v3TaskResponseSchema, index$7_v3VariantSchema as v3VariantSchema };
|
|
2577
3065
|
}
|
|
2578
3066
|
|
|
2579
3067
|
declare const aiToolsEndpoints: {
|
|
@@ -2733,23 +3221,23 @@ declare class AiToolsClient {
|
|
|
2733
3221
|
}>;
|
|
2734
3222
|
}
|
|
2735
3223
|
|
|
2736
|
-
type index$
|
|
2737
|
-
declare const index$
|
|
2738
|
-
type index$
|
|
2739
|
-
type index$
|
|
2740
|
-
type index$
|
|
2741
|
-
type index$
|
|
2742
|
-
type index$
|
|
2743
|
-
type index$
|
|
2744
|
-
declare const index$
|
|
2745
|
-
declare const index$
|
|
2746
|
-
declare const index$
|
|
2747
|
-
declare const index$
|
|
2748
|
-
declare const index$
|
|
2749
|
-
declare const index$
|
|
2750
|
-
declare const index$
|
|
2751
|
-
declare namespace index$
|
|
2752
|
-
export { index$
|
|
3224
|
+
type index$6_AiToolsClient = AiToolsClient;
|
|
3225
|
+
declare const index$6_AiToolsClient: typeof AiToolsClient;
|
|
3226
|
+
type index$6_AnalyzeSkillsRequest = AnalyzeSkillsRequest;
|
|
3227
|
+
type index$6_AnalyzeSkillsResponse = AnalyzeSkillsResponse;
|
|
3228
|
+
type index$6_RecommendActionsRequest = RecommendActionsRequest;
|
|
3229
|
+
type index$6_RecommendActionsResponse = RecommendActionsResponse;
|
|
3230
|
+
type index$6_SummarizeRequest = SummarizeRequest;
|
|
3231
|
+
type index$6_SummarizeResponse = SummarizeResponse;
|
|
3232
|
+
declare const index$6_aiToolsEndpoints: typeof aiToolsEndpoints;
|
|
3233
|
+
declare const index$6_analyzeSkillsRequestSchema: typeof analyzeSkillsRequestSchema;
|
|
3234
|
+
declare const index$6_analyzeSkillsResponseSchema: typeof analyzeSkillsResponseSchema;
|
|
3235
|
+
declare const index$6_recommendActionsRequestSchema: typeof recommendActionsRequestSchema;
|
|
3236
|
+
declare const index$6_recommendActionsResponseSchema: typeof recommendActionsResponseSchema;
|
|
3237
|
+
declare const index$6_summarizeRequestSchema: typeof summarizeRequestSchema;
|
|
3238
|
+
declare const index$6_summarizeResponseSchema: typeof summarizeResponseSchema;
|
|
3239
|
+
declare namespace index$6 {
|
|
3240
|
+
export { index$6_AiToolsClient as AiToolsClient, type index$6_AnalyzeSkillsRequest as AnalyzeSkillsRequest, type index$6_AnalyzeSkillsResponse as AnalyzeSkillsResponse, type index$6_RecommendActionsRequest as RecommendActionsRequest, type index$6_RecommendActionsResponse as RecommendActionsResponse, type index$6_SummarizeRequest as SummarizeRequest, type index$6_SummarizeResponse as SummarizeResponse, index$6_aiToolsEndpoints as aiToolsEndpoints, index$6_analyzeSkillsRequestSchema as analyzeSkillsRequestSchema, index$6_analyzeSkillsResponseSchema as analyzeSkillsResponseSchema, index$6_recommendActionsRequestSchema as recommendActionsRequestSchema, index$6_recommendActionsResponseSchema as recommendActionsResponseSchema, index$6_summarizeRequestSchema as summarizeRequestSchema, index$6_summarizeResponseSchema as summarizeResponseSchema };
|
|
2753
3241
|
}
|
|
2754
3242
|
|
|
2755
3243
|
declare const authEndpoints: {
|
|
@@ -2878,28 +3366,28 @@ type AuthExchangeResponse = z.infer<typeof authExchangeResponseSchema>;
|
|
|
2878
3366
|
type AuthLogoutRequest = z.infer<typeof authLogoutRequestSchema>;
|
|
2879
3367
|
type AuthLogoutResponse = z.infer<typeof authLogoutResponseSchema>;
|
|
2880
3368
|
|
|
2881
|
-
type index$
|
|
2882
|
-
declare const index$
|
|
2883
|
-
type index$
|
|
2884
|
-
type index$
|
|
2885
|
-
type index$
|
|
2886
|
-
type index$
|
|
2887
|
-
type index$
|
|
2888
|
-
type index$
|
|
2889
|
-
type index$
|
|
2890
|
-
type index$
|
|
2891
|
-
declare const index$
|
|
2892
|
-
declare const index$
|
|
2893
|
-
declare const index$
|
|
2894
|
-
declare const index$
|
|
2895
|
-
declare const index$
|
|
2896
|
-
declare const index$
|
|
2897
|
-
declare const index$
|
|
2898
|
-
declare const index$
|
|
2899
|
-
declare const index$
|
|
2900
|
-
declare const index$
|
|
2901
|
-
declare namespace index$
|
|
2902
|
-
export { index$
|
|
3369
|
+
type index$5_AuthClient = AuthClient;
|
|
3370
|
+
declare const index$5_AuthClient: typeof AuthClient;
|
|
3371
|
+
type index$5_AuthExchangeRequest = AuthExchangeRequest;
|
|
3372
|
+
type index$5_AuthExchangeResponse = AuthExchangeResponse;
|
|
3373
|
+
type index$5_AuthLogoutRequest = AuthLogoutRequest;
|
|
3374
|
+
type index$5_AuthLogoutResponse = AuthLogoutResponse;
|
|
3375
|
+
type index$5_AuthRefreshError = AuthRefreshError;
|
|
3376
|
+
type index$5_AuthRefreshRequest = AuthRefreshRequest;
|
|
3377
|
+
type index$5_AuthRefreshResponse = AuthRefreshResponse;
|
|
3378
|
+
type index$5_AuthRefreshSuccess = AuthRefreshSuccess;
|
|
3379
|
+
declare const index$5_authEndpoints: typeof authEndpoints;
|
|
3380
|
+
declare const index$5_authExchangeRequestSchema: typeof authExchangeRequestSchema;
|
|
3381
|
+
declare const index$5_authExchangeResponseSchema: typeof authExchangeResponseSchema;
|
|
3382
|
+
declare const index$5_authLogoutRequestSchema: typeof authLogoutRequestSchema;
|
|
3383
|
+
declare const index$5_authLogoutResponseSchema: typeof authLogoutResponseSchema;
|
|
3384
|
+
declare const index$5_authRefreshErrorSchema: typeof authRefreshErrorSchema;
|
|
3385
|
+
declare const index$5_authRefreshRequestSchema: typeof authRefreshRequestSchema;
|
|
3386
|
+
declare const index$5_authRefreshResponseSchema: typeof authRefreshResponseSchema;
|
|
3387
|
+
declare const index$5_authRefreshSuccessSchema: typeof authRefreshSuccessSchema;
|
|
3388
|
+
declare const index$5_authRefreshUserSchema: typeof authRefreshUserSchema;
|
|
3389
|
+
declare namespace index$5 {
|
|
3390
|
+
export { index$5_AuthClient as AuthClient, type index$5_AuthExchangeRequest as AuthExchangeRequest, type index$5_AuthExchangeResponse as AuthExchangeResponse, type index$5_AuthLogoutRequest as AuthLogoutRequest, type index$5_AuthLogoutResponse as AuthLogoutResponse, type index$5_AuthRefreshError as AuthRefreshError, type index$5_AuthRefreshRequest as AuthRefreshRequest, type index$5_AuthRefreshResponse as AuthRefreshResponse, type index$5_AuthRefreshSuccess as AuthRefreshSuccess, index$5_authEndpoints as authEndpoints, index$5_authExchangeRequestSchema as authExchangeRequestSchema, index$5_authExchangeResponseSchema as authExchangeResponseSchema, index$5_authLogoutRequestSchema as authLogoutRequestSchema, index$5_authLogoutResponseSchema as authLogoutResponseSchema, index$5_authRefreshErrorSchema as authRefreshErrorSchema, index$5_authRefreshRequestSchema as authRefreshRequestSchema, index$5_authRefreshResponseSchema as authRefreshResponseSchema, index$5_authRefreshSuccessSchema as authRefreshSuccessSchema, index$5_authRefreshUserSchema as authRefreshUserSchema };
|
|
2903
3391
|
}
|
|
2904
3392
|
|
|
2905
3393
|
declare const auxiliaryEndpoints: {
|
|
@@ -3022,18 +3510,18 @@ declare class AuxiliaryClient {
|
|
|
3022
3510
|
}>;
|
|
3023
3511
|
}
|
|
3024
3512
|
|
|
3025
|
-
type index$
|
|
3026
|
-
declare const index$
|
|
3027
|
-
type index$
|
|
3028
|
-
type index$
|
|
3029
|
-
type index$
|
|
3030
|
-
type index$
|
|
3031
|
-
declare const index$
|
|
3032
|
-
declare const index$
|
|
3033
|
-
declare const index$
|
|
3034
|
-
declare const index$
|
|
3035
|
-
declare namespace index$
|
|
3036
|
-
export { index$
|
|
3513
|
+
type index$4_AuxiliaryClient = AuxiliaryClient;
|
|
3514
|
+
declare const index$4_AuxiliaryClient: typeof AuxiliaryClient;
|
|
3515
|
+
type index$4_AuxiliaryInferRequest = AuxiliaryInferRequest;
|
|
3516
|
+
type index$4_AuxiliaryInferResponse = AuxiliaryInferResponse;
|
|
3517
|
+
type index$4_AuxiliaryQuota = AuxiliaryQuota;
|
|
3518
|
+
type index$4_AuxiliaryQuotaResponse = AuxiliaryQuotaResponse;
|
|
3519
|
+
declare const index$4_auxiliaryEndpoints: typeof auxiliaryEndpoints;
|
|
3520
|
+
declare const index$4_auxiliaryInferRequestSchema: typeof auxiliaryInferRequestSchema;
|
|
3521
|
+
declare const index$4_auxiliaryInferResponseSchema: typeof auxiliaryInferResponseSchema;
|
|
3522
|
+
declare const index$4_auxiliaryQuotaResponseSchema: typeof auxiliaryQuotaResponseSchema;
|
|
3523
|
+
declare namespace index$4 {
|
|
3524
|
+
export { index$4_AuxiliaryClient as AuxiliaryClient, type index$4_AuxiliaryInferRequest as AuxiliaryInferRequest, type index$4_AuxiliaryInferResponse as AuxiliaryInferResponse, type index$4_AuxiliaryQuota as AuxiliaryQuota, type index$4_AuxiliaryQuotaResponse as AuxiliaryQuotaResponse, index$4_auxiliaryEndpoints as auxiliaryEndpoints, index$4_auxiliaryInferRequestSchema as auxiliaryInferRequestSchema, index$4_auxiliaryInferResponseSchema as auxiliaryInferResponseSchema, index$4_auxiliaryQuotaResponseSchema as auxiliaryQuotaResponseSchema };
|
|
3037
3525
|
}
|
|
3038
3526
|
|
|
3039
3527
|
/** Feedback API endpoints. */
|
|
@@ -3380,37 +3868,330 @@ declare class FeedbackClient {
|
|
|
3380
3868
|
detail(feedbackId: string): Promise<FeedbackDetailResponse>;
|
|
3381
3869
|
}
|
|
3382
3870
|
|
|
3383
|
-
type index$
|
|
3384
|
-
type index$
|
|
3385
|
-
declare const index$
|
|
3386
|
-
type index$
|
|
3387
|
-
type index$
|
|
3388
|
-
type index$
|
|
3389
|
-
type index$
|
|
3390
|
-
type index$
|
|
3391
|
-
type index$
|
|
3392
|
-
type index$
|
|
3393
|
-
type index$
|
|
3394
|
-
type index$
|
|
3395
|
-
type index$
|
|
3396
|
-
type index$
|
|
3397
|
-
type index$
|
|
3398
|
-
declare const index$
|
|
3399
|
-
declare const index$
|
|
3400
|
-
declare const index$
|
|
3401
|
-
declare const index$
|
|
3402
|
-
declare const index$
|
|
3403
|
-
declare const index$
|
|
3404
|
-
declare const index$
|
|
3405
|
-
declare const index$
|
|
3406
|
-
declare const index$
|
|
3407
|
-
declare const index$
|
|
3408
|
-
declare const index$
|
|
3409
|
-
declare const index$
|
|
3410
|
-
declare const index$
|
|
3411
|
-
declare const index$
|
|
3871
|
+
type index$3_FeedbackAttachmentResponse = FeedbackAttachmentResponse;
|
|
3872
|
+
type index$3_FeedbackClient = FeedbackClient;
|
|
3873
|
+
declare const index$3_FeedbackClient: typeof FeedbackClient;
|
|
3874
|
+
type index$3_FeedbackDetailPayload = FeedbackDetailPayload;
|
|
3875
|
+
type index$3_FeedbackDetailRequest = FeedbackDetailRequest;
|
|
3876
|
+
type index$3_FeedbackDetailResponse = FeedbackDetailResponse;
|
|
3877
|
+
type index$3_FeedbackListPayload = FeedbackListPayload;
|
|
3878
|
+
type index$3_FeedbackListRequest = FeedbackListRequest;
|
|
3879
|
+
type index$3_FeedbackListResponse = FeedbackListResponse;
|
|
3880
|
+
type index$3_FeedbackSaasStatus = FeedbackSaasStatus;
|
|
3881
|
+
type index$3_FeedbackSource = FeedbackSource;
|
|
3882
|
+
type index$3_FeedbackSubmitError = FeedbackSubmitError;
|
|
3883
|
+
type index$3_FeedbackSubmitRequest = FeedbackSubmitRequest;
|
|
3884
|
+
type index$3_FeedbackSubmitResponse = FeedbackSubmitResponse;
|
|
3885
|
+
type index$3_FeedbackType = FeedbackType;
|
|
3886
|
+
declare const index$3_feedbackDetailPayloadSchema: typeof feedbackDetailPayloadSchema;
|
|
3887
|
+
declare const index$3_feedbackDetailRequestSchema: typeof feedbackDetailRequestSchema;
|
|
3888
|
+
declare const index$3_feedbackDetailResponseSchema: typeof feedbackDetailResponseSchema;
|
|
3889
|
+
declare const index$3_feedbackEndpoints: typeof feedbackEndpoints;
|
|
3890
|
+
declare const index$3_feedbackItemSchema: typeof feedbackItemSchema;
|
|
3891
|
+
declare const index$3_feedbackListPayloadSchema: typeof feedbackListPayloadSchema;
|
|
3892
|
+
declare const index$3_feedbackListRequestSchema: typeof feedbackListRequestSchema;
|
|
3893
|
+
declare const index$3_feedbackListResponseSchema: typeof feedbackListResponseSchema;
|
|
3894
|
+
declare const index$3_feedbackSaasStatusSchema: typeof feedbackSaasStatusSchema;
|
|
3895
|
+
declare const index$3_feedbackSourceSchema: typeof feedbackSourceSchema;
|
|
3896
|
+
declare const index$3_feedbackSubmitErrorSchema: typeof feedbackSubmitErrorSchema;
|
|
3897
|
+
declare const index$3_feedbackSubmitRequestSchema: typeof feedbackSubmitRequestSchema;
|
|
3898
|
+
declare const index$3_feedbackSubmitResponseSchema: typeof feedbackSubmitResponseSchema;
|
|
3899
|
+
declare const index$3_feedbackTypeSchema: typeof feedbackTypeSchema;
|
|
3900
|
+
declare namespace index$3 {
|
|
3901
|
+
export { type index$3_FeedbackAttachmentResponse as FeedbackAttachmentResponse, index$3_FeedbackClient as FeedbackClient, type index$3_FeedbackDetailPayload as FeedbackDetailPayload, type index$3_FeedbackDetailRequest as FeedbackDetailRequest, type index$3_FeedbackDetailResponse as FeedbackDetailResponse, type index$3_FeedbackListPayload as FeedbackListPayload, type index$3_FeedbackListRequest as FeedbackListRequest, type index$3_FeedbackListResponse as FeedbackListResponse, type index$3_FeedbackSaasStatus as FeedbackSaasStatus, type index$3_FeedbackSource as FeedbackSource, type index$3_FeedbackSubmitError as FeedbackSubmitError, type index$3_FeedbackSubmitRequest as FeedbackSubmitRequest, type index$3_FeedbackSubmitResponse as FeedbackSubmitResponse, type index$3_FeedbackType as FeedbackType, index$3_feedbackDetailPayloadSchema as feedbackDetailPayloadSchema, index$3_feedbackDetailRequestSchema as feedbackDetailRequestSchema, index$3_feedbackDetailResponseSchema as feedbackDetailResponseSchema, index$3_feedbackEndpoints as feedbackEndpoints, index$3_feedbackItemSchema as feedbackItemSchema, index$3_feedbackListPayloadSchema as feedbackListPayloadSchema, index$3_feedbackListRequestSchema as feedbackListRequestSchema, index$3_feedbackListResponseSchema as feedbackListResponseSchema, index$3_feedbackSaasStatusSchema as feedbackSaasStatusSchema, index$3_feedbackSourceSchema as feedbackSourceSchema, index$3_feedbackSubmitErrorSchema as feedbackSubmitErrorSchema, index$3_feedbackSubmitRequestSchema as feedbackSubmitRequestSchema, index$3_feedbackSubmitResponseSchema as feedbackSubmitResponseSchema, index$3_feedbackTypeSchema as feedbackTypeSchema };
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3904
|
+
/** Payment API endpoints. */
|
|
3905
|
+
declare const paymentEndpoints: {
|
|
3906
|
+
/** Create a subscription order. */
|
|
3907
|
+
readonly subscribe: Endpoint<{
|
|
3908
|
+
planCode: string;
|
|
3909
|
+
period: "monthly" | "yearly";
|
|
3910
|
+
}, {
|
|
3911
|
+
success: true;
|
|
3912
|
+
data: {
|
|
3913
|
+
orderId: string;
|
|
3914
|
+
providerData?: Record<string, unknown> | undefined;
|
|
3915
|
+
};
|
|
3916
|
+
}>;
|
|
3917
|
+
/** Create a recharge (top-up) order. */
|
|
3918
|
+
readonly recharge: Endpoint<{
|
|
3919
|
+
amount: number;
|
|
3920
|
+
}, {
|
|
3921
|
+
success: true;
|
|
3922
|
+
data: {
|
|
3923
|
+
orderId: string;
|
|
3924
|
+
providerData?: Record<string, unknown> | undefined;
|
|
3925
|
+
};
|
|
3926
|
+
}>;
|
|
3927
|
+
/** Create a plan upgrade order. */
|
|
3928
|
+
readonly upgrade: Endpoint<{
|
|
3929
|
+
newPlanCode: string;
|
|
3930
|
+
}, {
|
|
3931
|
+
success: true;
|
|
3932
|
+
data: {
|
|
3933
|
+
orderId: string;
|
|
3934
|
+
providerData?: Record<string, unknown> | undefined;
|
|
3935
|
+
upgradePayable?: number | undefined;
|
|
3936
|
+
};
|
|
3937
|
+
}>;
|
|
3938
|
+
/** Request a refund for a payment order. */
|
|
3939
|
+
readonly refund: Endpoint<{
|
|
3940
|
+
orderId: string;
|
|
3941
|
+
reason?: string | undefined;
|
|
3942
|
+
}, {
|
|
3943
|
+
success: true;
|
|
3944
|
+
data: {
|
|
3945
|
+
refundAmount: number;
|
|
3946
|
+
};
|
|
3947
|
+
}>;
|
|
3948
|
+
};
|
|
3949
|
+
|
|
3950
|
+
type PaymentSdkHost = SdkHost<{
|
|
3951
|
+
payment: typeof paymentEndpoints;
|
|
3952
|
+
}>;
|
|
3953
|
+
declare class PaymentClient {
|
|
3954
|
+
/** SDK host used for payment requests. */
|
|
3955
|
+
private readonly sdk;
|
|
3956
|
+
/** Create payment client. */
|
|
3957
|
+
constructor(sdk: PaymentSdkHost);
|
|
3958
|
+
/** Create a subscription order. */
|
|
3959
|
+
subscribe(params: {
|
|
3960
|
+
planCode: string;
|
|
3961
|
+
period: "monthly" | "yearly";
|
|
3962
|
+
}): Promise<{
|
|
3963
|
+
success: true;
|
|
3964
|
+
data: {
|
|
3965
|
+
orderId: string;
|
|
3966
|
+
providerData?: Record<string, unknown> | undefined;
|
|
3967
|
+
};
|
|
3968
|
+
}>;
|
|
3969
|
+
/** Create a recharge (top-up) order. */
|
|
3970
|
+
recharge(params: {
|
|
3971
|
+
amount: number;
|
|
3972
|
+
}): Promise<{
|
|
3973
|
+
success: true;
|
|
3974
|
+
data: {
|
|
3975
|
+
orderId: string;
|
|
3976
|
+
providerData?: Record<string, unknown> | undefined;
|
|
3977
|
+
};
|
|
3978
|
+
}>;
|
|
3979
|
+
/** Create a plan upgrade order. */
|
|
3980
|
+
upgrade(params: {
|
|
3981
|
+
newPlanCode: string;
|
|
3982
|
+
}): Promise<{
|
|
3983
|
+
success: true;
|
|
3984
|
+
data: {
|
|
3985
|
+
orderId: string;
|
|
3986
|
+
providerData?: Record<string, unknown> | undefined;
|
|
3987
|
+
upgradePayable?: number | undefined;
|
|
3988
|
+
};
|
|
3989
|
+
}>;
|
|
3990
|
+
/** Query payment order status by ID. */
|
|
3991
|
+
getOrderStatus(orderId: string): Promise<{
|
|
3992
|
+
success: true;
|
|
3993
|
+
data: {
|
|
3994
|
+
[x: string]: unknown;
|
|
3995
|
+
id: string;
|
|
3996
|
+
type: "subscription" | "recharge" | "upgrade";
|
|
3997
|
+
status: "failed" | "pending" | "paid" | "refunded" | "closed";
|
|
3998
|
+
amount: number;
|
|
3999
|
+
paidAt?: string | null | undefined;
|
|
4000
|
+
providerData?: Record<string, unknown> | undefined;
|
|
4001
|
+
};
|
|
4002
|
+
}>;
|
|
4003
|
+
/** Request a refund for a payment order. */
|
|
4004
|
+
refund(params: {
|
|
4005
|
+
orderId: string;
|
|
4006
|
+
reason?: string;
|
|
4007
|
+
}): Promise<{
|
|
4008
|
+
success: true;
|
|
4009
|
+
data: {
|
|
4010
|
+
refundAmount: number;
|
|
4011
|
+
};
|
|
4012
|
+
}>;
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
/** Event types emitted by embed pages via postMessage. */
|
|
4016
|
+
type EmbedEventMap = {
|
|
4017
|
+
"openloaf:ready": undefined;
|
|
4018
|
+
"openloaf:payment.success": {
|
|
4019
|
+
orderId: string;
|
|
4020
|
+
};
|
|
4021
|
+
"openloaf:payment.cancel": undefined;
|
|
4022
|
+
"openloaf:close": undefined;
|
|
4023
|
+
};
|
|
4024
|
+
/** Options for creating an embed instance. */
|
|
4025
|
+
type CreateEmbedOptions = {
|
|
4026
|
+
/** CSS selector or HTMLElement for the iframe container. */
|
|
4027
|
+
container: string | HTMLElement;
|
|
4028
|
+
/** Base URL of the OpenLoaf web app (e.g. "https://app.openloaf.com"). */
|
|
4029
|
+
baseUrl: string;
|
|
4030
|
+
/** Access token for authentication. */
|
|
4031
|
+
token: string;
|
|
4032
|
+
/** Embed page type. */
|
|
4033
|
+
type: "pricing" | "recharge";
|
|
4034
|
+
/** Callback when payment succeeds. */
|
|
4035
|
+
onSuccess?: (data: {
|
|
4036
|
+
orderId: string;
|
|
4037
|
+
}) => void;
|
|
4038
|
+
/** Callback when user cancels. */
|
|
4039
|
+
onCancel?: () => void;
|
|
4040
|
+
/** Callback when user requests close. */
|
|
4041
|
+
onClose?: () => void;
|
|
4042
|
+
/** Callback when embed is ready. */
|
|
4043
|
+
onReady?: () => void;
|
|
4044
|
+
/** Custom iframe styles. */
|
|
4045
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
4046
|
+
};
|
|
4047
|
+
/** Embed instance returned by create functions. */
|
|
4048
|
+
type EmbedInstance = {
|
|
4049
|
+
/** The iframe element. */
|
|
4050
|
+
iframe: HTMLIFrameElement;
|
|
4051
|
+
/** Update the access token (e.g. after refresh). */
|
|
4052
|
+
updateToken: (token: string) => void;
|
|
4053
|
+
/** Destroy the embed and clean up listeners. */
|
|
4054
|
+
destroy: () => void;
|
|
4055
|
+
};
|
|
4056
|
+
/**
|
|
4057
|
+
* Create an embedded iframe for OpenLoaf payment pages.
|
|
4058
|
+
* Handles iframe creation, postMessage authentication, and event forwarding.
|
|
4059
|
+
*/
|
|
4060
|
+
declare function createEmbed(options: CreateEmbedOptions): EmbedInstance;
|
|
4061
|
+
/** Create an embedded pricing page. */
|
|
4062
|
+
declare function createPricingEmbed(options: Omit<CreateEmbedOptions, "type">): EmbedInstance;
|
|
4063
|
+
/** Create an embedded recharge page. */
|
|
4064
|
+
declare function createRechargeEmbed(options: Omit<CreateEmbedOptions, "type">): EmbedInstance;
|
|
4065
|
+
|
|
4066
|
+
/** Request schema for creating a subscription order. */
|
|
4067
|
+
declare const subscribeRequestSchema: z.ZodObject<{
|
|
4068
|
+
planCode: z.ZodString;
|
|
4069
|
+
period: z.ZodEnum<{
|
|
4070
|
+
monthly: "monthly";
|
|
4071
|
+
yearly: "yearly";
|
|
4072
|
+
}>;
|
|
4073
|
+
}, z.core.$strip>;
|
|
4074
|
+
/** Response schema for creating a subscription order. */
|
|
4075
|
+
declare const subscribeResponseSchema: z.ZodObject<{
|
|
4076
|
+
success: z.ZodLiteral<true>;
|
|
4077
|
+
data: z.ZodObject<{
|
|
4078
|
+
orderId: z.ZodString;
|
|
4079
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4080
|
+
}, z.core.$strip>;
|
|
4081
|
+
}, z.core.$strip>;
|
|
4082
|
+
/** Request schema for creating a recharge (top-up) order. */
|
|
4083
|
+
declare const rechargeRequestSchema: z.ZodObject<{
|
|
4084
|
+
amount: z.ZodNumber;
|
|
4085
|
+
}, z.core.$strip>;
|
|
4086
|
+
/** Response schema for creating a recharge order. */
|
|
4087
|
+
declare const rechargeResponseSchema: z.ZodObject<{
|
|
4088
|
+
success: z.ZodLiteral<true>;
|
|
4089
|
+
data: z.ZodObject<{
|
|
4090
|
+
orderId: z.ZodString;
|
|
4091
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4092
|
+
}, z.core.$strip>;
|
|
4093
|
+
}, z.core.$strip>;
|
|
4094
|
+
/** Request schema for creating a plan upgrade order. */
|
|
4095
|
+
declare const upgradeRequestSchema: z.ZodObject<{
|
|
4096
|
+
newPlanCode: z.ZodString;
|
|
4097
|
+
}, z.core.$strip>;
|
|
4098
|
+
/** Response schema for creating a plan upgrade order. */
|
|
4099
|
+
declare const upgradeResponseSchema: z.ZodObject<{
|
|
4100
|
+
success: z.ZodLiteral<true>;
|
|
4101
|
+
data: z.ZodObject<{
|
|
4102
|
+
orderId: z.ZodString;
|
|
4103
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4104
|
+
upgradePayable: z.ZodOptional<z.ZodNumber>;
|
|
4105
|
+
}, z.core.$strip>;
|
|
4106
|
+
}, z.core.$strip>;
|
|
4107
|
+
/** Request schema for querying order status (orderId is a path param). */
|
|
4108
|
+
declare const orderStatusRequestSchema: z.ZodVoid;
|
|
4109
|
+
/** Response schema for querying order status. */
|
|
4110
|
+
declare const orderStatusResponseSchema: z.ZodObject<{
|
|
4111
|
+
success: z.ZodLiteral<true>;
|
|
4112
|
+
data: z.ZodObject<{
|
|
4113
|
+
id: z.ZodString;
|
|
4114
|
+
type: z.ZodEnum<{
|
|
4115
|
+
subscription: "subscription";
|
|
4116
|
+
recharge: "recharge";
|
|
4117
|
+
upgrade: "upgrade";
|
|
4118
|
+
}>;
|
|
4119
|
+
status: z.ZodEnum<{
|
|
4120
|
+
failed: "failed";
|
|
4121
|
+
pending: "pending";
|
|
4122
|
+
paid: "paid";
|
|
4123
|
+
refunded: "refunded";
|
|
4124
|
+
closed: "closed";
|
|
4125
|
+
}>;
|
|
4126
|
+
amount: z.ZodNumber;
|
|
4127
|
+
paidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4128
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4129
|
+
}, z.core.$loose>;
|
|
4130
|
+
}, z.core.$strip>;
|
|
4131
|
+
/** Request schema for requesting a refund. */
|
|
4132
|
+
declare const refundRequestSchema: z.ZodObject<{
|
|
4133
|
+
orderId: z.ZodString;
|
|
4134
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4135
|
+
}, z.core.$strip>;
|
|
4136
|
+
/** Response schema for requesting a refund. */
|
|
4137
|
+
declare const refundResponseSchema: z.ZodObject<{
|
|
4138
|
+
success: z.ZodLiteral<true>;
|
|
4139
|
+
data: z.ZodObject<{
|
|
4140
|
+
refundAmount: z.ZodNumber;
|
|
4141
|
+
}, z.core.$strip>;
|
|
4142
|
+
}, z.core.$strip>;
|
|
4143
|
+
/** Request type for creating a subscription order. */
|
|
4144
|
+
type SubscribeRequest = z.infer<typeof subscribeRequestSchema>;
|
|
4145
|
+
/** Response type for creating a subscription order. */
|
|
4146
|
+
type SubscribeResponse = z.infer<typeof subscribeResponseSchema>;
|
|
4147
|
+
/** Request type for creating a recharge order. */
|
|
4148
|
+
type RechargeRequest = z.infer<typeof rechargeRequestSchema>;
|
|
4149
|
+
/** Response type for creating a recharge order. */
|
|
4150
|
+
type RechargeResponse = z.infer<typeof rechargeResponseSchema>;
|
|
4151
|
+
/** Request type for creating a plan upgrade order. */
|
|
4152
|
+
type UpgradeRequest = z.infer<typeof upgradeRequestSchema>;
|
|
4153
|
+
/** Response type for creating a plan upgrade order. */
|
|
4154
|
+
type UpgradeResponse = z.infer<typeof upgradeResponseSchema>;
|
|
4155
|
+
/** Request type for querying order status. */
|
|
4156
|
+
type OrderStatusRequest = z.infer<typeof orderStatusRequestSchema>;
|
|
4157
|
+
/** Response type for querying order status. */
|
|
4158
|
+
type OrderStatusResponse = z.infer<typeof orderStatusResponseSchema>;
|
|
4159
|
+
/** Request type for requesting a refund. */
|
|
4160
|
+
type RefundRequest = z.infer<typeof refundRequestSchema>;
|
|
4161
|
+
/** Response type for requesting a refund. */
|
|
4162
|
+
type RefundResponse = z.infer<typeof refundResponseSchema>;
|
|
4163
|
+
|
|
4164
|
+
type index$2_CreateEmbedOptions = CreateEmbedOptions;
|
|
4165
|
+
type index$2_EmbedEventMap = EmbedEventMap;
|
|
4166
|
+
type index$2_EmbedInstance = EmbedInstance;
|
|
4167
|
+
type index$2_OrderStatusRequest = OrderStatusRequest;
|
|
4168
|
+
type index$2_OrderStatusResponse = OrderStatusResponse;
|
|
4169
|
+
type index$2_PaymentClient = PaymentClient;
|
|
4170
|
+
declare const index$2_PaymentClient: typeof PaymentClient;
|
|
4171
|
+
type index$2_RechargeRequest = RechargeRequest;
|
|
4172
|
+
type index$2_RechargeResponse = RechargeResponse;
|
|
4173
|
+
type index$2_RefundRequest = RefundRequest;
|
|
4174
|
+
type index$2_RefundResponse = RefundResponse;
|
|
4175
|
+
type index$2_SubscribeRequest = SubscribeRequest;
|
|
4176
|
+
type index$2_SubscribeResponse = SubscribeResponse;
|
|
4177
|
+
type index$2_UpgradeRequest = UpgradeRequest;
|
|
4178
|
+
type index$2_UpgradeResponse = UpgradeResponse;
|
|
4179
|
+
declare const index$2_createEmbed: typeof createEmbed;
|
|
4180
|
+
declare const index$2_createPricingEmbed: typeof createPricingEmbed;
|
|
4181
|
+
declare const index$2_createRechargeEmbed: typeof createRechargeEmbed;
|
|
4182
|
+
declare const index$2_orderStatusRequestSchema: typeof orderStatusRequestSchema;
|
|
4183
|
+
declare const index$2_orderStatusResponseSchema: typeof orderStatusResponseSchema;
|
|
4184
|
+
declare const index$2_paymentEndpoints: typeof paymentEndpoints;
|
|
4185
|
+
declare const index$2_rechargeRequestSchema: typeof rechargeRequestSchema;
|
|
4186
|
+
declare const index$2_rechargeResponseSchema: typeof rechargeResponseSchema;
|
|
4187
|
+
declare const index$2_refundRequestSchema: typeof refundRequestSchema;
|
|
4188
|
+
declare const index$2_refundResponseSchema: typeof refundResponseSchema;
|
|
4189
|
+
declare const index$2_subscribeRequestSchema: typeof subscribeRequestSchema;
|
|
4190
|
+
declare const index$2_subscribeResponseSchema: typeof subscribeResponseSchema;
|
|
4191
|
+
declare const index$2_upgradeRequestSchema: typeof upgradeRequestSchema;
|
|
4192
|
+
declare const index$2_upgradeResponseSchema: typeof upgradeResponseSchema;
|
|
3412
4193
|
declare namespace index$2 {
|
|
3413
|
-
export { type index$
|
|
4194
|
+
export { type index$2_CreateEmbedOptions as CreateEmbedOptions, type index$2_EmbedEventMap as EmbedEventMap, type index$2_EmbedInstance as EmbedInstance, type index$2_OrderStatusRequest as OrderStatusRequest, type index$2_OrderStatusResponse as OrderStatusResponse, index$2_PaymentClient as PaymentClient, type index$2_RechargeRequest as RechargeRequest, type index$2_RechargeResponse as RechargeResponse, type index$2_RefundRequest as RefundRequest, type index$2_RefundResponse as RefundResponse, type index$2_SubscribeRequest as SubscribeRequest, type index$2_SubscribeResponse as SubscribeResponse, type index$2_UpgradeRequest as UpgradeRequest, type index$2_UpgradeResponse as UpgradeResponse, index$2_createEmbed as createEmbed, index$2_createPricingEmbed as createPricingEmbed, index$2_createRechargeEmbed as createRechargeEmbed, index$2_orderStatusRequestSchema as orderStatusRequestSchema, index$2_orderStatusResponseSchema as orderStatusResponseSchema, index$2_paymentEndpoints as paymentEndpoints, index$2_rechargeRequestSchema as rechargeRequestSchema, index$2_rechargeResponseSchema as rechargeResponseSchema, index$2_refundRequestSchema as refundRequestSchema, index$2_refundResponseSchema as refundResponseSchema, index$2_subscribeRequestSchema as subscribeRequestSchema, index$2_subscribeResponseSchema as subscribeResponseSchema, index$2_upgradeRequestSchema as upgradeRequestSchema, index$2_upgradeResponseSchema as upgradeResponseSchema };
|
|
3414
4195
|
}
|
|
3415
4196
|
|
|
3416
4197
|
/** Skill market API endpoints. */
|
|
@@ -3834,7 +4615,7 @@ declare const userEndpoints: {
|
|
|
3834
4615
|
user: {
|
|
3835
4616
|
id: string;
|
|
3836
4617
|
provider: string;
|
|
3837
|
-
membershipLevel: "
|
|
4618
|
+
membershipLevel: "free" | "lite" | "pro" | "premium" | "infinity";
|
|
3838
4619
|
creditsBalance: number;
|
|
3839
4620
|
createdAt: string;
|
|
3840
4621
|
updatedAt: string;
|
|
@@ -3858,7 +4639,7 @@ declare class UserClient {
|
|
|
3858
4639
|
user: {
|
|
3859
4640
|
id: string;
|
|
3860
4641
|
provider: string;
|
|
3861
|
-
membershipLevel: "
|
|
4642
|
+
membershipLevel: "free" | "lite" | "pro" | "premium" | "infinity";
|
|
3862
4643
|
creditsBalance: number;
|
|
3863
4644
|
createdAt: string;
|
|
3864
4645
|
updatedAt: string;
|
|
@@ -3871,10 +4652,10 @@ declare class UserClient {
|
|
|
3871
4652
|
|
|
3872
4653
|
/** Membership level enum schema. */
|
|
3873
4654
|
declare const userMembershipLevelSchema: z.ZodEnum<{
|
|
3874
|
-
|
|
4655
|
+
free: "free";
|
|
3875
4656
|
lite: "lite";
|
|
3876
4657
|
pro: "pro";
|
|
3877
|
-
|
|
4658
|
+
premium: "premium";
|
|
3878
4659
|
infinity: "infinity";
|
|
3879
4660
|
}>;
|
|
3880
4661
|
/** Current user payload schema. */
|
|
@@ -3885,10 +4666,10 @@ declare const userSelfSchema: z.ZodObject<{
|
|
|
3885
4666
|
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3886
4667
|
provider: z.ZodString;
|
|
3887
4668
|
membershipLevel: z.ZodEnum<{
|
|
3888
|
-
|
|
4669
|
+
free: "free";
|
|
3889
4670
|
lite: "lite";
|
|
3890
4671
|
pro: "pro";
|
|
3891
|
-
|
|
4672
|
+
premium: "premium";
|
|
3892
4673
|
infinity: "infinity";
|
|
3893
4674
|
}>;
|
|
3894
4675
|
creditsBalance: z.ZodNumber;
|
|
@@ -3906,10 +4687,10 @@ declare const userSelfResponseSchema: z.ZodObject<{
|
|
|
3906
4687
|
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3907
4688
|
provider: z.ZodString;
|
|
3908
4689
|
membershipLevel: z.ZodEnum<{
|
|
3909
|
-
|
|
4690
|
+
free: "free";
|
|
3910
4691
|
lite: "lite";
|
|
3911
4692
|
pro: "pro";
|
|
3912
|
-
|
|
4693
|
+
premium: "premium";
|
|
3913
4694
|
infinity: "infinity";
|
|
3914
4695
|
}>;
|
|
3915
4696
|
creditsBalance: z.ZodNumber;
|
|
@@ -3955,6 +4736,8 @@ declare class SaaSClient extends BaseSaaSClient<SaaSContract> {
|
|
|
3955
4736
|
readonly auxiliary: AuxiliaryClient;
|
|
3956
4737
|
/** Feedback-related APIs. */
|
|
3957
4738
|
readonly feedback: FeedbackClient;
|
|
4739
|
+
/** Payment-related APIs. */
|
|
4740
|
+
readonly payment: PaymentClient;
|
|
3958
4741
|
/** Skill market APIs. */
|
|
3959
4742
|
readonly skills: SkillsClient;
|
|
3960
4743
|
/** User-related APIs. */
|
|
@@ -4004,4 +4787,4 @@ declare function createTrpcClient(options: TrpcClientOptions): _trpc_client.TRPC
|
|
|
4004
4787
|
transformer: false;
|
|
4005
4788
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<_trpc_server.TRPCCreateRouterOptions>>>;
|
|
4006
4789
|
|
|
4007
|
-
export { AI_MODEL_CAPABILITY_INPUT_KEYS, AI_MODEL_CAPABILITY_OUTPUT_KEYS, AI_MODEL_TAGS, AI_MODEL_TAG_LABELS, type AiChatCompletionsRequest, type AiChatModel, type AiChatModelsResponse, type AiChatSessionMetadata, AiClient, type AiClientMetadata, type AiFileUploadOptions, type AiFileUploadResponse, type AiModel, type AiModelCapabilities, type AiModelCapabilitiesInput, type AiModelCapabilitiesOutput, type AiModelCapabilityInputKey, type AiModelCapabilityOutputKey, type AiModelTag, type AiModelsUpdatedAtData, type AiModelsUpdatedAtResponse, type AiProviderTemplate, type AiProviderTemplateModel, type AiProviderTemplatesResponse, type AiResponsesRequest, AiToolsClient, type AnalyzeSkillsRequest, type AnalyzeSkillsResponse, AuthClient, type AuthExchangeRequest, type AuthExchangeResponse, type AuthLogoutRequest, type AuthLogoutResponse, type AuthRefreshError, type AuthRefreshRequest, type AuthRefreshResponse, type AuthRefreshSuccess, AuxiliaryClient, type AuxiliaryInferRequest, type AuxiliaryInferResponse, type AuxiliaryQuota, type AuxiliaryQuotaResponse, Endpoint, type FeedbackAttachmentResponse, FeedbackClient, type FeedbackDetailPayload, type FeedbackDetailRequest, type FeedbackDetailResponse, type FeedbackListPayload, type FeedbackListRequest, type FeedbackListResponse, type FeedbackSaasStatus, type FeedbackSource, type FeedbackSubmitError, type FeedbackSubmitRequest, type FeedbackSubmitResponse, type FeedbackType, type HeaderInput, type HttpMethod, MEDIA_FEATURES,
|
|
4790
|
+
export { AI_MODEL_CAPABILITY_INPUT_KEYS, AI_MODEL_CAPABILITY_OUTPUT_KEYS, AI_MODEL_TAGS, AI_MODEL_TAG_LABELS, type AiChatCompletionsRequest, type AiChatModel, type AiChatModelsResponse, type AiChatSessionMetadata, AiClient, type AiClientMetadata, type AiFileUploadOptions, type AiFileUploadResponse, type AiModel, type AiModelCapabilities, type AiModelCapabilitiesInput, type AiModelCapabilitiesOutput, type AiModelCapabilityInputKey, type AiModelCapabilityOutputKey, type AiModelTag, type AiModelsUpdatedAtData, type AiModelsUpdatedAtResponse, type AiProviderTemplate, type AiProviderTemplateModel, type AiProviderTemplatesResponse, type AiResponsesRequest, AiToolsClient, type AnalyzeSkillsRequest, type AnalyzeSkillsResponse, AuthClient, type AuthExchangeRequest, type AuthExchangeResponse, type AuthLogoutRequest, type AuthLogoutResponse, type AuthRefreshError, type AuthRefreshRequest, type AuthRefreshResponse, type AuthRefreshSuccess, AuxiliaryClient, type AuxiliaryInferRequest, type AuxiliaryInferResponse, type AuxiliaryQuota, type AuxiliaryQuotaResponse, type CreateEmbedOptions, type EmbedEventMap, type EmbedInstance, Endpoint, type FeedbackAttachmentResponse, FeedbackClient, type FeedbackDetailPayload, type FeedbackDetailRequest, type FeedbackDetailResponse, type FeedbackListPayload, type FeedbackListRequest, type FeedbackListResponse, type FeedbackSaasStatus, type FeedbackSource, type FeedbackSubmitError, type FeedbackSubmitRequest, type FeedbackSubmitResponse, type FeedbackType, type HeaderInput, type HttpMethod, MEDIA_FEATURES, MODEL_PROVIDERS, type MediaFeatureId, type ModelProviderId, type OrderStatusRequest, type OrderStatusResponse, PaymentClient, type RechargeRequest, type RechargeResponse, type RecommendActionsRequest, type RecommendActionsResponse, type RefundRequest, type RefundResponse, type ResponseType, SaaSClient, type SaaSClientOptions, SaaSContract, SaaSHttpError, SaaSNetworkError, SaaSSchemaError, type SkillArchiveFormat, type SkillListItem, type SkillOwnerSummary, type SkillSource, type SkillStatus, type SkillType, type SkillVersionSummary, type SkillVisibility, SkillsClient, type SkillsDetailResponse, type SkillsDownloadResponse, type SkillsListRequest, type SkillsListResponse, type SubscribeRequest, type SubscribeResponse, type SummarizeRequest, type SummarizeResponse, type TrpcClientOptions, type UpgradeRequest, type UpgradeResponse, UserClient, type UserMembershipLevel, type UserSelf, type UserSelfRequest, type UserSelfResponse, type V3BasicSuccess, type V3CapabilitiesData, type V3CapabilitiesResponse, type V3CreditEstimate, type V3EstimatePriceRequest, type V3EstimatePriceResponse, type V3Feature, type V3GenerateRequest, type V3HandlerInput, type V3HandlerKey, type V3TaskCreated, type V3TaskGroupResponse, type V3TaskItem, type V3TaskResponse, type V3Variant, V3_HANDLER_SCHEMAS, aiChatCompletionsRequestSchema, aiChatModelSchema, aiChatModelsPayloadSchema, aiChatModelsResponseSchema, aiChatModelsSuccessSchema, aiChatSessionMetadataSchema, aiClientMetadataSchema, aiEndpoints, aiErrorResponseSchema, aiModelCapabilitiesInputSchema, aiModelCapabilitiesOutputSchema, aiModelCapabilitiesSchema, aiModelCapabilityCommonSchema, aiModelParameterFieldSchema, aiModelParamsSchema, aiModelSchema, aiModelsRequestSchema, aiModelsUpdatedAtDataSchema, aiModelsUpdatedAtResponseSchema, aiModelsUpdatedAtSuccessSchema, index$7 as aiModule, aiProviderTemplateModelSchema, aiProviderTemplateSchema, aiProviderTemplatesPayloadSchema, aiProviderTemplatesRequestSchema, aiProviderTemplatesResponseSchema, aiProviderTemplatesSuccessSchema, aiResponsesRequestSchema, aiToolsEndpoints, index$6 as aiToolsModule, analyzeSkillsRequestSchema, analyzeSkillsResponseSchema, authEndpoints, authExchangeRequestSchema, authExchangeResponseSchema, authLogoutRequestSchema, authLogoutResponseSchema, index$5 as authModule, authRefreshErrorSchema, authRefreshRequestSchema, authRefreshResponseSchema, authRefreshSuccessSchema, authRefreshUserSchema, auxiliaryEndpoints, auxiliaryInferRequestSchema, auxiliaryInferResponseSchema, index$4 as auxiliaryModule, auxiliaryQuotaResponseSchema, contract, createEmbed, createPricingEmbed, createRechargeEmbed, createTrpcClient, feedbackDetailPayloadSchema, feedbackDetailRequestSchema, feedbackDetailResponseSchema, feedbackEndpoints, feedbackItemSchema, feedbackListPayloadSchema, feedbackListRequestSchema, feedbackListResponseSchema, index$3 as feedbackModule, feedbackSaasStatusSchema, feedbackSourceSchema, feedbackSubmitErrorSchema, feedbackSubmitRequestSchema, feedbackSubmitResponseSchema, feedbackTypeSchema, mergeHeaders, normalizeHeaders, orderStatusRequestSchema, orderStatusResponseSchema, paymentEndpoints, index$2 as paymentModule, rechargeRequestSchema, rechargeResponseSchema, recommendActionsRequestSchema, recommendActionsResponseSchema, refundRequestSchema, refundResponseSchema, request, skillArchiveFormatSchema, skillListItemSchema, skillOwnerSummarySchema, skillSourceSchema, skillStatusSchema, skillTypeSchema, skillVersionSummarySchema, skillVisibilitySchema, skillsDetailRequestSchema, skillsDetailResponseSchema, skillsDownloadResponseSchema, skillsEndpoints, skillsListRequestSchema, skillsListResponseSchema, index$1 as skillsModule, subscribeRequestSchema, subscribeResponseSchema, summarizeRequestSchema, summarizeResponseSchema, upgradeRequestSchema, upgradeResponseSchema, userEndpoints, userMembershipLevelSchema, index as userModule, userSelfRequestSchema, userSelfResponseSchema, userSelfSchema, v3BasicSuccessSchema, v3CapabilitiesDataSchema, v3CapabilitiesResponseSchema, v3CreditEstimateSchema, v3EstimatePriceRequestSchema, v3EstimatePriceResponseSchema, v3FeatureSchema, v3GenerateRequestSchema, v3TaskCreatedSchema, v3TaskGroupResponseSchema, v3TaskItemSchema, v3TaskResponseSchema, v3VariantSchema };
|