@openloaf-saas/sdk 0.1.11 → 0.1.12
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 +1561 -29
- package/dist/index.js +1 -1717
- package/package.json +14 -32
- package/README.md +0 -520
package/dist/index.js
CHANGED
|
@@ -1,1717 +1 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createTRPCClient, httpBatchLink } from '@trpc/client';
|
|
3
|
-
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// src/modules/ai/index.ts
|
|
11
|
-
var ai_exports = {};
|
|
12
|
-
__export(ai_exports, {
|
|
13
|
-
AI_MODEL_CAPABILITY_INPUT_KEYS: () => AI_MODEL_CAPABILITY_INPUT_KEYS,
|
|
14
|
-
AI_MODEL_CAPABILITY_OUTPUT_KEYS: () => AI_MODEL_CAPABILITY_OUTPUT_KEYS,
|
|
15
|
-
AI_MODEL_TAGS: () => AI_MODEL_TAGS,
|
|
16
|
-
AI_MODEL_TAG_LABELS: () => AI_MODEL_TAG_LABELS,
|
|
17
|
-
AiClient: () => AiClient,
|
|
18
|
-
aiAudioOutputSchema: () => aiAudioOutputSchema,
|
|
19
|
-
aiAudioRequestSchema: () => aiAudioRequestSchema,
|
|
20
|
-
aiChatCompletionsRequestSchema: () => aiChatCompletionsRequestSchema,
|
|
21
|
-
aiChatModelSchema: () => aiChatModelSchema,
|
|
22
|
-
aiChatModelsPayloadSchema: () => aiChatModelsPayloadSchema,
|
|
23
|
-
aiChatModelsResponseSchema: () => aiChatModelsResponseSchema,
|
|
24
|
-
aiChatModelsSuccessSchema: () => aiChatModelsSuccessSchema,
|
|
25
|
-
aiChatSessionMetadataSchema: () => aiChatSessionMetadataSchema,
|
|
26
|
-
aiClientMetadataSchema: () => aiClientMetadataSchema,
|
|
27
|
-
aiEndpoints: () => aiEndpoints,
|
|
28
|
-
aiErrorResponseSchema: () => aiErrorResponseSchema,
|
|
29
|
-
aiImageInputsSchema: () => aiImageInputsSchema,
|
|
30
|
-
aiImageOutputSchema: () => aiImageOutputSchema,
|
|
31
|
-
aiImageRequestSchema: () => aiImageRequestSchema,
|
|
32
|
-
aiMediaInputSchema: () => aiMediaInputSchema,
|
|
33
|
-
aiModelCapabilitiesInputSchema: () => aiModelCapabilitiesInputSchema,
|
|
34
|
-
aiModelCapabilitiesOutputSchema: () => aiModelCapabilitiesOutputSchema,
|
|
35
|
-
aiModelCapabilitiesSchema: () => aiModelCapabilitiesSchema,
|
|
36
|
-
aiModelCapabilityCommonSchema: () => aiModelCapabilityCommonSchema,
|
|
37
|
-
aiModelParameterFieldSchema: () => aiModelParameterFieldSchema,
|
|
38
|
-
aiModelParamsSchema: () => aiModelParamsSchema,
|
|
39
|
-
aiModelSchema: () => aiModelSchema,
|
|
40
|
-
aiModelsPayloadSchema: () => aiModelsPayloadSchema,
|
|
41
|
-
aiModelsRequestSchema: () => aiModelsRequestSchema,
|
|
42
|
-
aiModelsResponseSchema: () => aiModelsResponseSchema,
|
|
43
|
-
aiModelsSuccessSchema: () => aiModelsSuccessSchema,
|
|
44
|
-
aiModelsUpdatedAtDataSchema: () => aiModelsUpdatedAtDataSchema,
|
|
45
|
-
aiModelsUpdatedAtResponseSchema: () => aiModelsUpdatedAtResponseSchema,
|
|
46
|
-
aiModelsUpdatedAtSuccessSchema: () => aiModelsUpdatedAtSuccessSchema,
|
|
47
|
-
aiProviderTemplateModelSchema: () => aiProviderTemplateModelSchema,
|
|
48
|
-
aiProviderTemplateSchema: () => aiProviderTemplateSchema,
|
|
49
|
-
aiProviderTemplatesPayloadSchema: () => aiProviderTemplatesPayloadSchema,
|
|
50
|
-
aiProviderTemplatesRequestSchema: () => aiProviderTemplatesRequestSchema,
|
|
51
|
-
aiProviderTemplatesResponseSchema: () => aiProviderTemplatesResponseSchema,
|
|
52
|
-
aiProviderTemplatesSuccessSchema: () => aiProviderTemplatesSuccessSchema,
|
|
53
|
-
aiResponsesRequestSchema: () => aiResponsesRequestSchema,
|
|
54
|
-
aiTaskCancelDataSchema: () => aiTaskCancelDataSchema,
|
|
55
|
-
aiTaskCancelRequestSchema: () => aiTaskCancelRequestSchema,
|
|
56
|
-
aiTaskCancelResponseSchema: () => aiTaskCancelResponseSchema,
|
|
57
|
-
aiTaskCancelSuccessSchema: () => aiTaskCancelSuccessSchema,
|
|
58
|
-
aiTaskCreatedDataSchema: () => aiTaskCreatedDataSchema,
|
|
59
|
-
aiTaskCreatedResponseSchema: () => aiTaskCreatedResponseSchema,
|
|
60
|
-
aiTaskCreatedSuccessSchema: () => aiTaskCreatedSuccessSchema,
|
|
61
|
-
aiTaskDataSchema: () => aiTaskDataSchema,
|
|
62
|
-
aiTaskErrorSchema: () => aiTaskErrorSchema,
|
|
63
|
-
aiTaskRequestSchema: () => aiTaskRequestSchema,
|
|
64
|
-
aiTaskResponseSchema: () => aiTaskResponseSchema,
|
|
65
|
-
aiTaskResultTypeSchema: () => aiTaskResultTypeSchema,
|
|
66
|
-
aiTaskStatusSchema: () => aiTaskStatusSchema,
|
|
67
|
-
aiTaskSuccessSchema: () => aiTaskSuccessSchema,
|
|
68
|
-
aiVideoInputsSchema: () => aiVideoInputsSchema,
|
|
69
|
-
aiVideoOutputSchema: () => aiVideoOutputSchema,
|
|
70
|
-
aiVideoRequestSchema: () => aiVideoRequestSchema
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
// src/modules/ai/client.ts
|
|
74
|
-
var AiClient = class {
|
|
75
|
-
/** SDK host used for ai requests. */
|
|
76
|
-
sdk;
|
|
77
|
-
/** Create AI client. */
|
|
78
|
-
constructor(sdk) {
|
|
79
|
-
this.sdk = sdk;
|
|
80
|
-
}
|
|
81
|
-
/** Submit an image generation task. */
|
|
82
|
-
async image(payload) {
|
|
83
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
84
|
-
return this.sdk.request(this.sdk.contract.ai.image, {
|
|
85
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
86
|
-
headers: authHeader,
|
|
87
|
-
body: payload
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/** Submit a video generation task. */
|
|
91
|
-
async video(payload) {
|
|
92
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
93
|
-
return this.sdk.request(this.sdk.contract.ai.video, {
|
|
94
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
95
|
-
headers: authHeader,
|
|
96
|
-
body: payload
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
/** Submit an audio generation (TTS) task. */
|
|
100
|
-
async audio(payload) {
|
|
101
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
102
|
-
return this.sdk.request(this.sdk.contract.ai.audio, {
|
|
103
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
104
|
-
headers: authHeader,
|
|
105
|
-
body: payload
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
/** Fetch task status by ID. */
|
|
109
|
-
async task(taskId) {
|
|
110
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
111
|
-
return this.sdk.request(this.sdk.contract.ai.task(taskId), {
|
|
112
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
113
|
-
headers: authHeader,
|
|
114
|
-
body: void 0
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
/** Cancel a running task by ID. */
|
|
118
|
-
async cancelTask(taskId) {
|
|
119
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
120
|
-
return this.sdk.request(this.sdk.contract.ai.cancelTask(taskId), {
|
|
121
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
122
|
-
headers: authHeader,
|
|
123
|
-
body: void 0
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
/** List available image models. */
|
|
127
|
-
async imageModels() {
|
|
128
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
129
|
-
return this.sdk.request(this.sdk.contract.ai.imageModels, {
|
|
130
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
131
|
-
headers: authHeader,
|
|
132
|
-
body: void 0
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
/** List available video models. */
|
|
136
|
-
async videoModels() {
|
|
137
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
138
|
-
return this.sdk.request(this.sdk.contract.ai.videoModels, {
|
|
139
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
140
|
-
headers: authHeader,
|
|
141
|
-
body: void 0
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
/** List available audio models. */
|
|
145
|
-
async audioModels() {
|
|
146
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
147
|
-
return this.sdk.request(this.sdk.contract.ai.audioModels, {
|
|
148
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
149
|
-
headers: authHeader,
|
|
150
|
-
body: void 0
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
/** List available chat models. */
|
|
154
|
-
async chatModels() {
|
|
155
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
156
|
-
return this.sdk.request(this.sdk.contract.ai.chatModels, {
|
|
157
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
158
|
-
headers: authHeader,
|
|
159
|
-
body: void 0
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
/** Fetch aggregated updatedAt timestamps for chat/image/video models. */
|
|
163
|
-
async modelsUpdatedAt() {
|
|
164
|
-
return this.sdk.request(this.sdk.contract.ai.modelsUpdatedAt, {
|
|
165
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
166
|
-
headers: {},
|
|
167
|
-
body: void 0
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Upload a file for use in AI chat conversations.
|
|
172
|
-
* Returns a public URL to reference in message content (image_url etc.).
|
|
173
|
-
*/
|
|
174
|
-
async uploadFile(file, filename) {
|
|
175
|
-
const form = new FormData();
|
|
176
|
-
form.append(
|
|
177
|
-
"file",
|
|
178
|
-
file,
|
|
179
|
-
filename ?? (file instanceof File ? file.name : "file")
|
|
180
|
-
);
|
|
181
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
182
|
-
const url = `${this.sdk.getBaseUrl()}/api/ai/file/upload`;
|
|
183
|
-
const resp = await fetch(url, {
|
|
184
|
-
method: "POST",
|
|
185
|
-
headers: authHeader,
|
|
186
|
-
body: form
|
|
187
|
-
});
|
|
188
|
-
if (!resp.ok) {
|
|
189
|
-
const err = await resp.json().catch(() => ({ message: "Upload failed" }));
|
|
190
|
-
throw new Error(err.message ?? "Upload failed");
|
|
191
|
-
}
|
|
192
|
-
return resp.json();
|
|
193
|
-
}
|
|
194
|
-
/** Fetch provider templates (public, no auth required). */
|
|
195
|
-
async providerTemplates() {
|
|
196
|
-
return this.sdk.request(this.sdk.contract.ai.providerTemplates, {
|
|
197
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
198
|
-
headers: {},
|
|
199
|
-
body: void 0
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
// src/modules/ai/constants.ts
|
|
205
|
-
var AI_MODEL_TAGS = [
|
|
206
|
-
// Media
|
|
207
|
-
"image_generation",
|
|
208
|
-
"image_multi_input",
|
|
209
|
-
"image_input",
|
|
210
|
-
"image_multi_generation",
|
|
211
|
-
"image_edit",
|
|
212
|
-
"video_generation",
|
|
213
|
-
// Chat
|
|
214
|
-
"chat",
|
|
215
|
-
"reasoning",
|
|
216
|
-
"tool_call",
|
|
217
|
-
"image_analysis",
|
|
218
|
-
"video_analysis",
|
|
219
|
-
"audio_analysis",
|
|
220
|
-
"code"
|
|
221
|
-
];
|
|
222
|
-
var AI_MODEL_TAG_LABELS = {
|
|
223
|
-
image_generation: "\u6587\u751F\u56FE",
|
|
224
|
-
image_multi_input: "\u591A\u56FE\u8F93\u5165",
|
|
225
|
-
image_input: "\u56FE\u7247\u8F93\u5165",
|
|
226
|
-
image_multi_generation: "\u591A\u56FE\u751F\u6210",
|
|
227
|
-
image_edit: "\u56FE\u7247\u7F16\u8F91",
|
|
228
|
-
video_generation: "\u89C6\u9891\u751F\u6210",
|
|
229
|
-
chat: "\u5BF9\u8BDD",
|
|
230
|
-
reasoning: "\u63A8\u7406",
|
|
231
|
-
tool_call: "\u5DE5\u5177\u8C03\u7528",
|
|
232
|
-
image_analysis: "\u56FE\u7247\u7406\u89E3",
|
|
233
|
-
video_analysis: "\u89C6\u9891\u7406\u89E3",
|
|
234
|
-
audio_analysis: "\u97F3\u9891\u7406\u89E3",
|
|
235
|
-
code: "\u4EE3\u7801"
|
|
236
|
-
};
|
|
237
|
-
var AI_MODEL_CAPABILITY_INPUT_KEYS = [
|
|
238
|
-
"maxImages",
|
|
239
|
-
"supportsMask",
|
|
240
|
-
"supportsReferenceVideo",
|
|
241
|
-
"supportsStartEnd"
|
|
242
|
-
];
|
|
243
|
-
var AI_MODEL_CAPABILITY_OUTPUT_KEYS = [
|
|
244
|
-
"supportsMulti",
|
|
245
|
-
"supportsAudio"
|
|
246
|
-
];
|
|
247
|
-
|
|
248
|
-
// src/core/endpoint.ts
|
|
249
|
-
var Endpoint = class {
|
|
250
|
-
method;
|
|
251
|
-
path;
|
|
252
|
-
responseType;
|
|
253
|
-
request;
|
|
254
|
-
response;
|
|
255
|
-
constructor(options) {
|
|
256
|
-
this.method = options.method;
|
|
257
|
-
this.path = options.path;
|
|
258
|
-
this.request = options.requestSchema;
|
|
259
|
-
this.response = options.responseSchema;
|
|
260
|
-
this.responseType = options.responseType ?? "json";
|
|
261
|
-
}
|
|
262
|
-
parseRequest(input) {
|
|
263
|
-
return this.request.parse(input);
|
|
264
|
-
}
|
|
265
|
-
parseResponse(input) {
|
|
266
|
-
return this.response.parse(input);
|
|
267
|
-
}
|
|
268
|
-
safeParseRequest(input) {
|
|
269
|
-
return this.request.safeParse(input);
|
|
270
|
-
}
|
|
271
|
-
safeParseResponse(input) {
|
|
272
|
-
return this.response.safeParse(input);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
var aiVoidRequestSchema = z.void();
|
|
276
|
-
var aiClientMetadataSchema = z.object({
|
|
277
|
-
chatSessionId: z.string().trim().min(1).describe("\u4F1A\u8BDD ID").optional(),
|
|
278
|
-
clientId: z.string().trim().min(1).describe("\u5BA2\u6237\u7AEF\u5B9E\u4F8B ID").optional(),
|
|
279
|
-
desktopVersion: z.string().trim().min(1).describe("Desktop \u7248\u672C\u53F7").optional(),
|
|
280
|
-
serverVersion: z.string().trim().min(1).describe("Server \u7248\u672C\u53F7").optional(),
|
|
281
|
-
webVersion: z.string().trim().min(1).describe("Web \u7248\u672C\u53F7").optional()
|
|
282
|
-
});
|
|
283
|
-
var aiChatSessionMetadataSchema = aiClientMetadataSchema;
|
|
284
|
-
var aiChatCompletionsRequestSchema = aiChatSessionMetadataSchema.extend({
|
|
285
|
-
model: z.string().describe("\u6A21\u578B ID")
|
|
286
|
-
}).passthrough();
|
|
287
|
-
var aiResponsesRequestSchema = aiChatSessionMetadataSchema.extend({
|
|
288
|
-
model: z.string().describe("\u6A21\u578B ID")
|
|
289
|
-
}).passthrough();
|
|
290
|
-
var aiMediaInputSchema = z.object({
|
|
291
|
-
url: z.string().url().describe("\u5A92\u4F53 URL").optional(),
|
|
292
|
-
base64: z.string().describe("\u5A92\u4F53 Base64 \u6570\u636E").optional(),
|
|
293
|
-
mediaType: z.string().describe("\u5A92\u4F53\u7C7B\u578B").optional()
|
|
294
|
-
}).refine((value) => Boolean(value.url || value.base64), {
|
|
295
|
-
message: "Either url or base64 is required"
|
|
296
|
-
});
|
|
297
|
-
var aiImageInputsSchema = z.object({
|
|
298
|
-
images: z.array(aiMediaInputSchema).describe("\u8F93\u5165\u56FE\u7247\u5217\u8868").optional(),
|
|
299
|
-
mask: aiMediaInputSchema.describe("\u906E\u7F69\u56FE").optional()
|
|
300
|
-
});
|
|
301
|
-
var aiVideoInputsSchema = z.object({
|
|
302
|
-
images: z.array(aiMediaInputSchema).describe("\u8F93\u5165\u56FE\u7247\u5217\u8868").optional(),
|
|
303
|
-
startImage: aiMediaInputSchema.describe("\u9996\u5E27\u56FE\u7247").optional(),
|
|
304
|
-
endImage: aiMediaInputSchema.describe("\u5C3E\u5E27\u56FE\u7247").optional(),
|
|
305
|
-
referenceVideo: aiMediaInputSchema.describe("\u53C2\u8003\u89C6\u9891").optional()
|
|
306
|
-
});
|
|
307
|
-
var aiImageAspectRatioSchema = z.enum(["1:1", "16:9", "9:16", "4:3"]).describe("\u56FE\u50CF\u5BBD\u9AD8\u6BD4");
|
|
308
|
-
var aiImageQualitySchema = z.enum(["standard", "hd"]).describe("\u56FE\u50CF\u8D28\u91CF");
|
|
309
|
-
var aiImageOutputSchema = z.object({
|
|
310
|
-
// Output image count.
|
|
311
|
-
count: z.number().int().min(1).max(5).describe("\u751F\u6210\u56FE\u7247\u6570\u91CF").optional(),
|
|
312
|
-
// Output aspect ratio (e.g., 16:9).
|
|
313
|
-
aspectRatio: aiImageAspectRatioSchema.describe("\u751F\u6210\u56FE\u7247\u5BBD\u9AD8\u6BD4").optional(),
|
|
314
|
-
// Output quality (standard/hd).
|
|
315
|
-
quality: aiImageQualitySchema.describe("\u751F\u6210\u56FE\u7247\u8D28\u91CF").optional()
|
|
316
|
-
});
|
|
317
|
-
var aiVideoOutputSchema = z.object({
|
|
318
|
-
aspectRatio: z.string().describe("\u751F\u6210\u89C6\u9891\u5BBD\u9AD8\u6BD4").optional(),
|
|
319
|
-
duration: z.number().positive().describe("\u751F\u6210\u89C6\u9891\u65F6\u957F\uFF08\u79D2\uFF09").optional(),
|
|
320
|
-
clarity: z.string().describe("\u6E05\u6670\u5EA6").optional(),
|
|
321
|
-
withAudio: z.boolean().describe("\u662F\u5426\u5305\u542B\u97F3\u9891").optional()
|
|
322
|
-
});
|
|
323
|
-
var aiAudioOutputSchema = z.object({
|
|
324
|
-
format: z.enum(["mp3", "wav", "pcm", "opus"]).describe("\u97F3\u9891\u683C\u5F0F").optional(),
|
|
325
|
-
sampleRate: z.number().int().positive().describe("\u91C7\u6837\u7387(Hz)").optional()
|
|
326
|
-
});
|
|
327
|
-
var aiAudioRequestSchema = z.object({
|
|
328
|
-
modelId: z.string().describe("\u6A21\u578B ID"),
|
|
329
|
-
text: z.string().min(1).describe("\u5F85\u5408\u6210\u6587\u672C"),
|
|
330
|
-
voice: z.string().describe("\u97F3\u8272 ID").optional(),
|
|
331
|
-
output: aiAudioOutputSchema.describe("\u8F93\u51FA\u53C2\u6570").optional(),
|
|
332
|
-
parameters: z.record(z.string(), z.unknown()).describe("\u989D\u5916\u53C2\u6570").optional()
|
|
333
|
-
});
|
|
334
|
-
var aiImageRequestSchema = z.object({
|
|
335
|
-
modelId: z.string().describe("\u6A21\u578B ID"),
|
|
336
|
-
prompt: z.string().describe("\u63D0\u793A\u8BCD"),
|
|
337
|
-
negativePrompt: z.string().describe("\u53CD\u5411\u63D0\u793A\u8BCD").optional(),
|
|
338
|
-
style: z.string().describe("\u98CE\u683C").optional(),
|
|
339
|
-
inputs: aiImageInputsSchema.describe("\u8F93\u5165\u53C2\u6570").optional(),
|
|
340
|
-
output: aiImageOutputSchema.describe("\u8F93\u51FA\u53C2\u6570").optional(),
|
|
341
|
-
parameters: z.record(z.string(), z.unknown()).describe("\u989D\u5916\u53C2\u6570").optional()
|
|
342
|
-
});
|
|
343
|
-
var aiVideoRequestSchema = z.object({
|
|
344
|
-
modelId: z.string().describe("\u6A21\u578B ID"),
|
|
345
|
-
prompt: z.string().describe("\u63D0\u793A\u8BCD"),
|
|
346
|
-
negativePrompt: z.string().describe("\u53CD\u5411\u63D0\u793A\u8BCD").optional(),
|
|
347
|
-
style: z.string().describe("\u98CE\u683C").optional(),
|
|
348
|
-
inputs: aiVideoInputsSchema.describe("\u8F93\u5165\u53C2\u6570").optional(),
|
|
349
|
-
output: aiVideoOutputSchema.describe("\u8F93\u51FA\u53C2\u6570").optional(),
|
|
350
|
-
parameters: z.record(z.string(), z.unknown()).describe("\u989D\u5916\u53C2\u6570").optional()
|
|
351
|
-
});
|
|
352
|
-
var aiTaskCreatedDataSchema = z.object({
|
|
353
|
-
taskId: z.string().describe("\u4EFB\u52A1 ID")
|
|
354
|
-
});
|
|
355
|
-
var aiErrorResponseSchema = z.object({
|
|
356
|
-
success: z.literal(false).describe("\u662F\u5426\u6210\u529F"),
|
|
357
|
-
code: z.string().describe("\u9519\u8BEF\u7801").optional(),
|
|
358
|
-
message: z.string().describe("\u9519\u8BEF\u4FE1\u606F")
|
|
359
|
-
});
|
|
360
|
-
var aiTaskCreatedSuccessSchema = z.object({
|
|
361
|
-
success: z.literal(true).describe("\u662F\u5426\u6210\u529F"),
|
|
362
|
-
data: aiTaskCreatedDataSchema.describe("\u8FD4\u56DE\u6570\u636E")
|
|
363
|
-
});
|
|
364
|
-
var aiTaskCreatedResponseSchema = z.union([
|
|
365
|
-
aiTaskCreatedSuccessSchema,
|
|
366
|
-
aiErrorResponseSchema
|
|
367
|
-
]);
|
|
368
|
-
var aiTaskStatusSchema = z.enum(["queued", "running", "succeeded", "failed", "canceled"]).describe("\u4EFB\u52A1\u72B6\u6001\u679A\u4E3E");
|
|
369
|
-
var aiTaskResultTypeSchema = z.enum(["image", "video", "audio"]).describe("\u4EFB\u52A1\u7ED3\u679C\u7C7B\u578B");
|
|
370
|
-
var aiTaskErrorSchema = z.object({
|
|
371
|
-
code: z.string().describe("\u9519\u8BEF\u7801").optional(),
|
|
372
|
-
message: z.string().describe("\u9519\u8BEF\u4FE1\u606F")
|
|
373
|
-
});
|
|
374
|
-
var aiTaskDataSchema = z.object({
|
|
375
|
-
status: aiTaskStatusSchema.describe("\u4EFB\u52A1\u72B6\u6001"),
|
|
376
|
-
progress: z.number().min(0).max(100).describe("\u4EFB\u52A1\u8FDB\u5EA6").optional(),
|
|
377
|
-
resultType: aiTaskResultTypeSchema.describe("\u7ED3\u679C\u7C7B\u578B").optional(),
|
|
378
|
-
resultUrls: z.array(z.string()).describe("\u7ED3\u679C\u5730\u5740\u5217\u8868").optional(),
|
|
379
|
-
error: aiTaskErrorSchema.describe("\u9519\u8BEF\u4FE1\u606F").optional(),
|
|
380
|
-
creditsConsumed: z.number().describe("\u6D88\u8017\u79EF\u5206").optional()
|
|
381
|
-
});
|
|
382
|
-
var aiTaskSuccessSchema = z.object({
|
|
383
|
-
success: z.literal(true).describe("\u662F\u5426\u6210\u529F"),
|
|
384
|
-
data: aiTaskDataSchema.describe("\u8FD4\u56DE\u6570\u636E")
|
|
385
|
-
});
|
|
386
|
-
var aiTaskResponseSchema = z.union([
|
|
387
|
-
aiTaskSuccessSchema,
|
|
388
|
-
aiErrorResponseSchema
|
|
389
|
-
]);
|
|
390
|
-
var aiTaskCancelDataSchema = z.object({
|
|
391
|
-
status: z.enum(["canceled", "processing"]).describe("\u53D6\u6D88\u7ED3\u679C\u72B6\u6001")
|
|
392
|
-
});
|
|
393
|
-
var aiTaskCancelSuccessSchema = z.object({
|
|
394
|
-
success: z.literal(true).describe("\u662F\u5426\u6210\u529F"),
|
|
395
|
-
data: aiTaskCancelDataSchema.describe("\u8FD4\u56DE\u6570\u636E")
|
|
396
|
-
});
|
|
397
|
-
var aiTaskCancelResponseSchema = z.union([
|
|
398
|
-
aiTaskCancelSuccessSchema,
|
|
399
|
-
aiErrorResponseSchema
|
|
400
|
-
]);
|
|
401
|
-
var aiModelCapabilitiesInputSchema = z.object({
|
|
402
|
-
maxImages: z.number().int().describe("\u6700\u5927\u8F93\u5165\u56FE\u7247\u6570\u91CF").optional(),
|
|
403
|
-
supportsMask: z.boolean().describe("\u662F\u5426\u652F\u6301\u906E\u7F69").optional(),
|
|
404
|
-
supportsReferenceVideo: z.boolean().describe("\u662F\u5426\u652F\u6301\u53C2\u8003\u89C6\u9891").optional(),
|
|
405
|
-
supportsStartEnd: z.boolean().describe("\u662F\u5426\u652F\u6301\u9996\u5C3E\u5E27").optional()
|
|
406
|
-
});
|
|
407
|
-
var aiModelCapabilitiesOutputSchema = z.object({
|
|
408
|
-
supportsMulti: z.boolean().describe("\u662F\u5426\u652F\u6301\u591A\u8F93\u51FA").optional(),
|
|
409
|
-
supportsAudio: z.boolean().describe("\u662F\u5426\u652F\u6301\u97F3\u9891\u8F93\u51FA").optional()
|
|
410
|
-
});
|
|
411
|
-
var aiModelCapabilityCommonSchema = z.object({
|
|
412
|
-
maxContextK: z.number().int().nonnegative().describe("\u6700\u5927\u4E0A\u4E0B\u6587\u957F\u5EA6(K)").optional(),
|
|
413
|
-
supportsStructuredOutput: z.boolean().describe("\u662F\u5426\u652F\u6301\u7ED3\u6784\u5316\u8F93\u51FA").optional(),
|
|
414
|
-
supportsWebSearch: z.boolean().describe("\u662F\u5426\u652F\u6301\u8054\u7F51\u641C\u7D22").optional()
|
|
415
|
-
});
|
|
416
|
-
var aiModelParameterValueSchema = z.union([
|
|
417
|
-
z.string(),
|
|
418
|
-
z.number(),
|
|
419
|
-
z.boolean()
|
|
420
|
-
]);
|
|
421
|
-
var aiModelParameterFieldSchema = z.object({
|
|
422
|
-
key: z.string().describe("\u53C2\u6570 key"),
|
|
423
|
-
title: z.string().describe("\u5C55\u793A\u540D\u79F0"),
|
|
424
|
-
description: z.string().describe("\u53C2\u6570\u8BF4\u660E").optional(),
|
|
425
|
-
type: z.enum(["select", "number", "boolean", "text"]).describe("\u53C2\u6570\u7C7B\u578B"),
|
|
426
|
-
unit: z.string().describe("\u5355\u4F4D").optional(),
|
|
427
|
-
values: z.array(aiModelParameterValueSchema).describe("\u53EF\u9009\u503C").optional(),
|
|
428
|
-
min: z.number().describe("\u6700\u5C0F\u503C").optional(),
|
|
429
|
-
max: z.number().describe("\u6700\u5927\u503C").optional(),
|
|
430
|
-
step: z.number().describe("\u6B65\u8FDB\u503C").optional(),
|
|
431
|
-
default: aiModelParameterValueSchema.describe("\u9ED8\u8BA4\u503C").optional(),
|
|
432
|
-
request: z.boolean().describe("\u662F\u5426\u5FC5\u586B")
|
|
433
|
-
});
|
|
434
|
-
var aiModelParamsSchema = z.object({
|
|
435
|
-
features: z.array(z.string()).describe("\u53C2\u6570\u7279\u6027").optional(),
|
|
436
|
-
fields: z.array(aiModelParameterFieldSchema).describe("\u53C2\u6570\u5B57\u6BB5").optional()
|
|
437
|
-
});
|
|
438
|
-
var aiModelCapabilitiesSchema = z.object({
|
|
439
|
-
common: aiModelCapabilityCommonSchema.describe("\u901A\u7528\u80FD\u529B").optional(),
|
|
440
|
-
params: aiModelParamsSchema.describe("\u53C2\u6570\u5B9A\u4E49").optional(),
|
|
441
|
-
input: aiModelCapabilitiesInputSchema.describe("\u8F93\u5165\u80FD\u529B").optional(),
|
|
442
|
-
output: aiModelCapabilitiesOutputSchema.describe("\u8F93\u51FA\u80FD\u529B").optional()
|
|
443
|
-
});
|
|
444
|
-
var aiModelSchema = z.object({
|
|
445
|
-
id: z.string().describe("\u6A21\u578B ID"),
|
|
446
|
-
name: z.string().describe("\u6A21\u578B\u540D\u79F0").optional(),
|
|
447
|
-
familyId: z.string().describe("\u6A21\u578B\u5BB6\u65CF ID").optional(),
|
|
448
|
-
providerId: z.string().describe("\u4F9B\u5E94\u5546 ID").optional(),
|
|
449
|
-
tags: z.array(z.string()).describe("\u6A21\u578B\u6807\u7B7E").optional(),
|
|
450
|
-
capabilities: aiModelCapabilitiesSchema.describe("\u6A21\u578B\u80FD\u529B").optional()
|
|
451
|
-
}).passthrough();
|
|
452
|
-
var aiModelsPayloadSchema = z.object({
|
|
453
|
-
data: z.array(aiModelSchema).describe("\u6A21\u578B\u5217\u8868"),
|
|
454
|
-
updatedAt: z.string().describe("\u66F4\u65B0\u65F6\u95F4").optional()
|
|
455
|
-
});
|
|
456
|
-
var aiModelsSuccessSchema = z.object({
|
|
457
|
-
success: z.literal(true).describe("\u662F\u5426\u6210\u529F"),
|
|
458
|
-
data: aiModelsPayloadSchema.describe("\u8FD4\u56DE\u6570\u636E")
|
|
459
|
-
});
|
|
460
|
-
var aiModelsResponseSchema = z.union([
|
|
461
|
-
aiModelsSuccessSchema,
|
|
462
|
-
aiErrorResponseSchema
|
|
463
|
-
]);
|
|
464
|
-
var aiChatModelSchema = z.object({
|
|
465
|
-
id: z.string().describe("\u6A21\u578B ID"),
|
|
466
|
-
provider: z.string().describe("\u4F9B\u5E94\u5546"),
|
|
467
|
-
displayName: z.string().describe("\u5C55\u793A\u540D\u79F0"),
|
|
468
|
-
familyId: z.string().describe("\u6A21\u578B\u5BB6\u65CF ID").optional(),
|
|
469
|
-
tags: z.array(z.string()).describe("\u6A21\u578B\u6807\u7B7E"),
|
|
470
|
-
capabilities: aiModelCapabilitiesSchema.describe("\u6A21\u578B\u80FD\u529B").optional()
|
|
471
|
-
});
|
|
472
|
-
var aiChatModelsPayloadSchema = z.object({
|
|
473
|
-
data: z.array(aiChatModelSchema).describe("\u6A21\u578B\u5217\u8868"),
|
|
474
|
-
updatedAt: z.string().describe("\u66F4\u65B0\u65F6\u95F4").optional()
|
|
475
|
-
});
|
|
476
|
-
var aiChatModelsSuccessSchema = z.object({
|
|
477
|
-
success: z.literal(true).describe("\u662F\u5426\u6210\u529F"),
|
|
478
|
-
data: aiChatModelsPayloadSchema.describe("\u8FD4\u56DE\u6570\u636E")
|
|
479
|
-
});
|
|
480
|
-
var aiChatModelsResponseSchema = z.union([
|
|
481
|
-
aiChatModelsSuccessSchema,
|
|
482
|
-
aiErrorResponseSchema
|
|
483
|
-
]);
|
|
484
|
-
var aiModelsUpdatedAtDataSchema = z.object({
|
|
485
|
-
chatUpdatedAt: z.string().describe("\u804A\u5929\u6A21\u578B\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
|
|
486
|
-
imageUpdatedAt: z.string().describe("\u56FE\u7247\u6A21\u578B\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
|
|
487
|
-
videoUpdatedAt: z.string().describe("\u89C6\u9891\u6A21\u578B\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
|
|
488
|
-
audioUpdatedAt: z.string().describe("\u97F3\u9891\u6A21\u578B\u6700\u540E\u66F4\u65B0\u65F6\u95F4").optional(),
|
|
489
|
-
latestUpdatedAt: z.string().describe("\u6240\u6709\u6A21\u578B\u4E2D\u7684\u6700\u65B0\u66F4\u65B0\u65F6\u95F4")
|
|
490
|
-
});
|
|
491
|
-
var aiModelsUpdatedAtSuccessSchema = z.object({
|
|
492
|
-
success: z.literal(true).describe("\u662F\u5426\u6210\u529F"),
|
|
493
|
-
data: aiModelsUpdatedAtDataSchema.describe("\u8FD4\u56DE\u6570\u636E")
|
|
494
|
-
});
|
|
495
|
-
var aiModelsUpdatedAtResponseSchema = z.union([
|
|
496
|
-
aiModelsUpdatedAtSuccessSchema,
|
|
497
|
-
aiErrorResponseSchema
|
|
498
|
-
]);
|
|
499
|
-
var aiModelsRequestSchema = aiVoidRequestSchema;
|
|
500
|
-
var aiTaskRequestSchema = aiVoidRequestSchema;
|
|
501
|
-
var aiTaskCancelRequestSchema = aiVoidRequestSchema;
|
|
502
|
-
var aiProviderTemplateModelSchema = z.object({
|
|
503
|
-
id: z.string().describe("\u6A21\u578B ID"),
|
|
504
|
-
providerId: z.string().describe("\u4F9B\u5E94\u5546 ID"),
|
|
505
|
-
displayName: z.string().nullish().describe("\u5C55\u793A\u540D\u79F0"),
|
|
506
|
-
description: z.string().nullish().describe("\u6A21\u578B\u63CF\u8FF0"),
|
|
507
|
-
familyId: z.string().describe("\u6A21\u578B\u5BB6\u65CF ID").optional(),
|
|
508
|
-
tags: z.array(z.string()).describe("\u6A21\u578B\u6807\u7B7E"),
|
|
509
|
-
capabilities: aiModelCapabilitiesSchema.describe("\u6A21\u578B\u80FD\u529B").optional()
|
|
510
|
-
});
|
|
511
|
-
var aiProviderTemplateSchema = z.object({
|
|
512
|
-
id: z.string().describe("\u4F9B\u5E94\u5546 ID"),
|
|
513
|
-
label: z.string().describe("\u4F9B\u5E94\u5546\u540D\u79F0"),
|
|
514
|
-
adapter: z.string().describe("AI SDK \u9002\u914D\u5668\u6807\u8BC6"),
|
|
515
|
-
apiUrl: z.string().describe("API \u5730\u5740").optional(),
|
|
516
|
-
authType: z.string().describe("\u8BA4\u8BC1\u65B9\u5F0F").optional(),
|
|
517
|
-
websiteUrl: z.string().nullish().describe("\u5B98\u7F51\u5730\u5740"),
|
|
518
|
-
docUrl: z.string().nullish().describe("\u6587\u6863\u5730\u5740"),
|
|
519
|
-
models: z.array(aiProviderTemplateModelSchema).describe("\u6A21\u578B\u5217\u8868")
|
|
520
|
-
});
|
|
521
|
-
var aiProviderTemplatesPayloadSchema = z.object({
|
|
522
|
-
providers: z.array(aiProviderTemplateSchema).describe("\u4F9B\u5E94\u5546\u5217\u8868"),
|
|
523
|
-
updatedAt: z.string().describe("\u66F4\u65B0\u65F6\u95F4").optional()
|
|
524
|
-
});
|
|
525
|
-
var aiProviderTemplatesSuccessSchema = z.object({
|
|
526
|
-
success: z.literal(true).describe("\u662F\u5426\u6210\u529F"),
|
|
527
|
-
data: aiProviderTemplatesPayloadSchema.describe("\u8FD4\u56DE\u6570\u636E")
|
|
528
|
-
});
|
|
529
|
-
var aiProviderTemplatesResponseSchema = z.union([
|
|
530
|
-
aiProviderTemplatesSuccessSchema,
|
|
531
|
-
aiErrorResponseSchema
|
|
532
|
-
]);
|
|
533
|
-
var aiProviderTemplatesRequestSchema = z.void();
|
|
534
|
-
|
|
535
|
-
// src/modules/ai/endpoints.ts
|
|
536
|
-
var aiEndpoints = {
|
|
537
|
-
image: new Endpoint({
|
|
538
|
-
method: "POST",
|
|
539
|
-
path: "/api/ai/image",
|
|
540
|
-
requestSchema: aiImageRequestSchema,
|
|
541
|
-
responseSchema: aiTaskCreatedResponseSchema
|
|
542
|
-
}),
|
|
543
|
-
video: new Endpoint({
|
|
544
|
-
method: "POST",
|
|
545
|
-
path: "/api/ai/video",
|
|
546
|
-
requestSchema: aiVideoRequestSchema,
|
|
547
|
-
responseSchema: aiTaskCreatedResponseSchema
|
|
548
|
-
}),
|
|
549
|
-
audio: new Endpoint({
|
|
550
|
-
method: "POST",
|
|
551
|
-
path: "/api/ai/audio",
|
|
552
|
-
requestSchema: aiAudioRequestSchema,
|
|
553
|
-
responseSchema: aiTaskCreatedResponseSchema
|
|
554
|
-
}),
|
|
555
|
-
task: (taskId) => new Endpoint({
|
|
556
|
-
method: "GET",
|
|
557
|
-
path: `/api/ai/task/${taskId}`,
|
|
558
|
-
requestSchema: aiTaskRequestSchema,
|
|
559
|
-
responseSchema: aiTaskResponseSchema
|
|
560
|
-
}),
|
|
561
|
-
cancelTask: (taskId) => new Endpoint({
|
|
562
|
-
method: "POST",
|
|
563
|
-
path: `/api/ai/task/${taskId}/cancel`,
|
|
564
|
-
requestSchema: aiTaskCancelRequestSchema,
|
|
565
|
-
responseSchema: aiTaskCancelResponseSchema
|
|
566
|
-
}),
|
|
567
|
-
imageModels: new Endpoint({
|
|
568
|
-
method: "GET",
|
|
569
|
-
path: "/api/public/ai/image/models",
|
|
570
|
-
requestSchema: aiModelsRequestSchema,
|
|
571
|
-
responseSchema: aiModelsResponseSchema
|
|
572
|
-
}),
|
|
573
|
-
videoModels: new Endpoint({
|
|
574
|
-
method: "GET",
|
|
575
|
-
path: "/api/public/ai/video/models",
|
|
576
|
-
requestSchema: aiModelsRequestSchema,
|
|
577
|
-
responseSchema: aiModelsResponseSchema
|
|
578
|
-
}),
|
|
579
|
-
audioModels: new Endpoint({
|
|
580
|
-
method: "GET",
|
|
581
|
-
path: "/api/public/ai/audio/models",
|
|
582
|
-
requestSchema: aiModelsRequestSchema,
|
|
583
|
-
responseSchema: aiModelsResponseSchema
|
|
584
|
-
}),
|
|
585
|
-
chatModels: new Endpoint({
|
|
586
|
-
method: "GET",
|
|
587
|
-
path: "/api/public/ai/chat/models",
|
|
588
|
-
requestSchema: aiModelsRequestSchema,
|
|
589
|
-
responseSchema: aiChatModelsResponseSchema
|
|
590
|
-
}),
|
|
591
|
-
modelsUpdatedAt: new Endpoint({
|
|
592
|
-
method: "GET",
|
|
593
|
-
path: "/api/public/ai/models/updated-at",
|
|
594
|
-
requestSchema: aiModelsRequestSchema,
|
|
595
|
-
responseSchema: aiModelsUpdatedAtResponseSchema
|
|
596
|
-
}),
|
|
597
|
-
providerTemplates: new Endpoint({
|
|
598
|
-
method: "GET",
|
|
599
|
-
path: "/api/public/ai/providers",
|
|
600
|
-
requestSchema: aiProviderTemplatesRequestSchema,
|
|
601
|
-
responseSchema: aiProviderTemplatesResponseSchema
|
|
602
|
-
})
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
// src/modules/ai-tools/index.ts
|
|
606
|
-
var ai_tools_exports = {};
|
|
607
|
-
__export(ai_tools_exports, {
|
|
608
|
-
AiToolsClient: () => AiToolsClient,
|
|
609
|
-
aiToolsEndpoints: () => aiToolsEndpoints,
|
|
610
|
-
analyzeSkillsRequestSchema: () => analyzeSkillsRequestSchema,
|
|
611
|
-
analyzeSkillsResponseSchema: () => analyzeSkillsResponseSchema,
|
|
612
|
-
recommendActionsRequestSchema: () => recommendActionsRequestSchema,
|
|
613
|
-
recommendActionsResponseSchema: () => recommendActionsResponseSchema,
|
|
614
|
-
summarizeRequestSchema: () => summarizeRequestSchema,
|
|
615
|
-
summarizeResponseSchema: () => summarizeResponseSchema
|
|
616
|
-
});
|
|
617
|
-
|
|
618
|
-
// src/modules/ai-tools/client.ts
|
|
619
|
-
var AiToolsClient = class {
|
|
620
|
-
/** SDK host used for ai-tools requests. */
|
|
621
|
-
sdk;
|
|
622
|
-
/** Create AI tools client. */
|
|
623
|
-
constructor(sdk) {
|
|
624
|
-
this.sdk = sdk;
|
|
625
|
-
}
|
|
626
|
-
/** Analyze a list of skills. */
|
|
627
|
-
async analyzeSkills(payload) {
|
|
628
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
629
|
-
return this.sdk.request(this.sdk.contract.aiTools.analyzeSkills, {
|
|
630
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
631
|
-
headers: authHeader,
|
|
632
|
-
body: payload
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
/** Recommend next actions based on text and scene. */
|
|
636
|
-
async recommendActions(payload) {
|
|
637
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
638
|
-
return this.sdk.request(this.sdk.contract.aiTools.recommendActions, {
|
|
639
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
640
|
-
headers: authHeader,
|
|
641
|
-
body: payload
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
/** Summarize text content. */
|
|
645
|
-
async summarize(payload) {
|
|
646
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
647
|
-
return this.sdk.request(this.sdk.contract.aiTools.summarize, {
|
|
648
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
649
|
-
headers: authHeader,
|
|
650
|
-
body: payload
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
var skillInputSchema = z.object({
|
|
655
|
-
name: z.string().describe("\u6280\u80FD\u540D\u79F0"),
|
|
656
|
-
description: z.string().describe("\u6280\u80FD\u63CF\u8FF0").optional()
|
|
657
|
-
});
|
|
658
|
-
var analyzeSkillsRequestSchema = z.object({
|
|
659
|
-
skills: z.array(skillInputSchema).min(1).max(50).describe("\u5F85\u5206\u6790\u7684\u6280\u80FD\u5217\u8868")
|
|
660
|
-
});
|
|
661
|
-
var analyzedSkillSchema = z.object({
|
|
662
|
-
name: z.string().describe("\u539F\u59CB\u6280\u80FD\u540D\u79F0"),
|
|
663
|
-
translatedName: z.string().describe("\u4E2D\u6587\u7FFB\u8BD1\u540D\u79F0"),
|
|
664
|
-
translatedDescription: z.string().describe("\u4E2D\u6587\u7FFB\u8BD1\u63CF\u8FF0"),
|
|
665
|
-
category: z.string().describe("\u5206\u7C7B\u6807\u7B7E"),
|
|
666
|
-
icon: z.string().describe("Lucide \u56FE\u6807\u540D\u79F0")
|
|
667
|
-
});
|
|
668
|
-
var analyzeSkillsDataSchema = z.object({
|
|
669
|
-
skills: z.array(analyzedSkillSchema).describe("\u5206\u6790\u7ED3\u679C")
|
|
670
|
-
});
|
|
671
|
-
var analyzeSkillsResponseSchema = z.union([
|
|
672
|
-
z.object({
|
|
673
|
-
success: z.literal(true),
|
|
674
|
-
data: analyzeSkillsDataSchema
|
|
675
|
-
}),
|
|
676
|
-
z.object({
|
|
677
|
-
success: z.literal(false),
|
|
678
|
-
message: z.string()
|
|
679
|
-
})
|
|
680
|
-
]);
|
|
681
|
-
var recommendActionsRequestSchema = z.object({
|
|
682
|
-
text: z.string().max(5e3).describe("\u8F93\u5165\u6587\u672C"),
|
|
683
|
-
scene: z.string().describe("\u4F7F\u7528\u573A\u666F")
|
|
684
|
-
});
|
|
685
|
-
var recommendedActionSchema = z.object({
|
|
686
|
-
label: z.string().describe("\u884C\u4E3A\u6807\u7B7E"),
|
|
687
|
-
description: z.string().describe("\u884C\u4E3A\u63CF\u8FF0"),
|
|
688
|
-
action: z.string().describe("\u884C\u4E3A\u6807\u8BC6\u7B26")
|
|
689
|
-
});
|
|
690
|
-
var recommendActionsDataSchema = z.object({
|
|
691
|
-
actions: z.array(recommendedActionSchema).describe("\u63A8\u8350\u884C\u4E3A\u5217\u8868")
|
|
692
|
-
});
|
|
693
|
-
var recommendActionsResponseSchema = z.union([
|
|
694
|
-
z.object({
|
|
695
|
-
success: z.literal(true),
|
|
696
|
-
data: recommendActionsDataSchema
|
|
697
|
-
}),
|
|
698
|
-
z.object({
|
|
699
|
-
success: z.literal(false),
|
|
700
|
-
message: z.string()
|
|
701
|
-
})
|
|
702
|
-
]);
|
|
703
|
-
var summarizeRequestSchema = z.object({
|
|
704
|
-
text: z.string().max(2e4).describe("\u5F85\u603B\u7ED3\u6587\u672C")
|
|
705
|
-
});
|
|
706
|
-
var summarizeDataSchema = z.object({
|
|
707
|
-
summary: z.string().describe("\u603B\u7ED3\u5185\u5BB9")
|
|
708
|
-
});
|
|
709
|
-
var summarizeResponseSchema = z.union([
|
|
710
|
-
z.object({
|
|
711
|
-
success: z.literal(true),
|
|
712
|
-
data: summarizeDataSchema
|
|
713
|
-
}),
|
|
714
|
-
z.object({
|
|
715
|
-
success: z.literal(false),
|
|
716
|
-
message: z.string()
|
|
717
|
-
})
|
|
718
|
-
]);
|
|
719
|
-
|
|
720
|
-
// src/modules/ai-tools/endpoints.ts
|
|
721
|
-
var aiToolsEndpoints = {
|
|
722
|
-
analyzeSkills: new Endpoint({
|
|
723
|
-
method: "POST",
|
|
724
|
-
path: "/api/ai/tools/analyze-skills",
|
|
725
|
-
requestSchema: analyzeSkillsRequestSchema,
|
|
726
|
-
responseSchema: analyzeSkillsResponseSchema
|
|
727
|
-
}),
|
|
728
|
-
recommendActions: new Endpoint({
|
|
729
|
-
method: "POST",
|
|
730
|
-
path: "/api/ai/tools/recommend-actions",
|
|
731
|
-
requestSchema: recommendActionsRequestSchema,
|
|
732
|
-
responseSchema: recommendActionsResponseSchema
|
|
733
|
-
}),
|
|
734
|
-
summarize: new Endpoint({
|
|
735
|
-
method: "POST",
|
|
736
|
-
path: "/api/ai/tools/summarize",
|
|
737
|
-
requestSchema: summarizeRequestSchema,
|
|
738
|
-
responseSchema: summarizeResponseSchema
|
|
739
|
-
})
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
// src/modules/auth/index.ts
|
|
743
|
-
var auth_exports = {};
|
|
744
|
-
__export(auth_exports, {
|
|
745
|
-
AuthClient: () => AuthClient,
|
|
746
|
-
authEndpoints: () => authEndpoints,
|
|
747
|
-
authExchangeRequestSchema: () => authExchangeRequestSchema,
|
|
748
|
-
authExchangeResponseSchema: () => authExchangeResponseSchema,
|
|
749
|
-
authLogoutRequestSchema: () => authLogoutRequestSchema,
|
|
750
|
-
authLogoutResponseSchema: () => authLogoutResponseSchema,
|
|
751
|
-
authRefreshErrorSchema: () => authRefreshErrorSchema,
|
|
752
|
-
authRefreshRequestSchema: () => authRefreshRequestSchema,
|
|
753
|
-
authRefreshResponseSchema: () => authRefreshResponseSchema,
|
|
754
|
-
authRefreshSuccessSchema: () => authRefreshSuccessSchema,
|
|
755
|
-
authRefreshUserSchema: () => authRefreshUserSchema
|
|
756
|
-
});
|
|
757
|
-
|
|
758
|
-
// src/modules/auth/client.ts
|
|
759
|
-
var AuthClient = class {
|
|
760
|
-
/** SDK host used for auth requests. */
|
|
761
|
-
sdk;
|
|
762
|
-
/** Create auth client. */
|
|
763
|
-
constructor(sdk) {
|
|
764
|
-
this.sdk = sdk;
|
|
765
|
-
}
|
|
766
|
-
/** Exchange login code for access/refresh tokens. */
|
|
767
|
-
async exchange(loginCode) {
|
|
768
|
-
return this.sdk.request(this.sdk.contract.auth.exchange, {
|
|
769
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
770
|
-
body: { loginCode }
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
/** Refresh access token with refresh token. */
|
|
774
|
-
async refresh(refreshToken) {
|
|
775
|
-
return this.sdk.request(this.sdk.contract.auth.refresh, {
|
|
776
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
777
|
-
body: { refreshToken }
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
/** Logout and revoke refresh token. */
|
|
781
|
-
async logout(refreshToken) {
|
|
782
|
-
return this.sdk.request(this.sdk.contract.auth.logout, {
|
|
783
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
784
|
-
body: { refreshToken }
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
|
-
var authRefreshRequestSchema = z.object({
|
|
789
|
-
refreshToken: z.string().min(1)
|
|
790
|
-
});
|
|
791
|
-
var authExchangeRequestSchema = z.object({
|
|
792
|
-
loginCode: z.string().min(1)
|
|
793
|
-
});
|
|
794
|
-
var authRefreshUserSchema = z.object({
|
|
795
|
-
name: z.string().optional(),
|
|
796
|
-
email: z.string().optional(),
|
|
797
|
-
avatarUrl: z.string().optional()
|
|
798
|
-
});
|
|
799
|
-
var authRefreshSuccessSchema = z.object({
|
|
800
|
-
accessToken: z.string(),
|
|
801
|
-
refreshToken: z.string(),
|
|
802
|
-
user: authRefreshUserSchema
|
|
803
|
-
});
|
|
804
|
-
var authRefreshErrorSchema = z.object({
|
|
805
|
-
message: z.string()
|
|
806
|
-
});
|
|
807
|
-
var authExchangeResponseSchema = authRefreshSuccessSchema;
|
|
808
|
-
var authLogoutRequestSchema = z.object({
|
|
809
|
-
refreshToken: z.string().min(1)
|
|
810
|
-
});
|
|
811
|
-
var authLogoutResponseSchema = z.object({
|
|
812
|
-
success: z.boolean()
|
|
813
|
-
});
|
|
814
|
-
var authRefreshResponseSchema = z.union([
|
|
815
|
-
authRefreshSuccessSchema,
|
|
816
|
-
authRefreshErrorSchema
|
|
817
|
-
]);
|
|
818
|
-
|
|
819
|
-
// src/modules/auth/endpoints.ts
|
|
820
|
-
var authEndpoints = {
|
|
821
|
-
exchange: new Endpoint({
|
|
822
|
-
method: "POST",
|
|
823
|
-
path: "/api/auth/exchange",
|
|
824
|
-
requestSchema: authExchangeRequestSchema,
|
|
825
|
-
responseSchema: authExchangeResponseSchema
|
|
826
|
-
}),
|
|
827
|
-
refresh: new Endpoint({
|
|
828
|
-
method: "POST",
|
|
829
|
-
path: "/api/auth/refresh",
|
|
830
|
-
requestSchema: authRefreshRequestSchema,
|
|
831
|
-
responseSchema: authRefreshResponseSchema
|
|
832
|
-
}),
|
|
833
|
-
logout: new Endpoint({
|
|
834
|
-
method: "POST",
|
|
835
|
-
path: "/api/auth/logout",
|
|
836
|
-
requestSchema: authLogoutRequestSchema,
|
|
837
|
-
responseSchema: authLogoutResponseSchema
|
|
838
|
-
})
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
// src/modules/auxiliary/index.ts
|
|
842
|
-
var auxiliary_exports = {};
|
|
843
|
-
__export(auxiliary_exports, {
|
|
844
|
-
AuxiliaryClient: () => AuxiliaryClient,
|
|
845
|
-
auxiliaryEndpoints: () => auxiliaryEndpoints,
|
|
846
|
-
auxiliaryInferRequestSchema: () => auxiliaryInferRequestSchema,
|
|
847
|
-
auxiliaryInferResponseSchema: () => auxiliaryInferResponseSchema,
|
|
848
|
-
auxiliaryQuotaResponseSchema: () => auxiliaryQuotaResponseSchema
|
|
849
|
-
});
|
|
850
|
-
|
|
851
|
-
// src/modules/auxiliary/client.ts
|
|
852
|
-
var AuxiliaryClient = class {
|
|
853
|
-
/** SDK host used for auxiliary requests. */
|
|
854
|
-
sdk;
|
|
855
|
-
/** Create auxiliary client. */
|
|
856
|
-
constructor(sdk) {
|
|
857
|
-
this.sdk = sdk;
|
|
858
|
-
}
|
|
859
|
-
/** Run auxiliary inference. */
|
|
860
|
-
async infer(payload) {
|
|
861
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
862
|
-
return this.sdk.request(this.sdk.contract.auxiliary.infer, {
|
|
863
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
864
|
-
headers: authHeader,
|
|
865
|
-
body: payload
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
/** Get current daily quota. */
|
|
869
|
-
async getQuota() {
|
|
870
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
871
|
-
return this.sdk.request(this.sdk.contract.auxiliary.getQuota, {
|
|
872
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
873
|
-
headers: authHeader,
|
|
874
|
-
body: {}
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
|
-
var auxiliaryInferRequestSchema = z.object({
|
|
879
|
-
/** Capability identifier (e.g. "chat.title", "project.classify"). */
|
|
880
|
-
capabilityKey: z.string(),
|
|
881
|
-
/** System prompt for the AI. */
|
|
882
|
-
systemPrompt: z.string(),
|
|
883
|
-
/** User context / input content. */
|
|
884
|
-
context: z.string().max(5e4),
|
|
885
|
-
/** Output mode: structured JSON or plain text. */
|
|
886
|
-
outputMode: z.enum(["structured", "text"]),
|
|
887
|
-
/** JSON Schema for structured output (required when outputMode is "structured"). */
|
|
888
|
-
schema: z.record(z.string(), z.unknown()).optional()
|
|
889
|
-
});
|
|
890
|
-
var quotaSchema = z.object({
|
|
891
|
-
/** Calls used today. */
|
|
892
|
-
used: z.number(),
|
|
893
|
-
/** Daily limit. */
|
|
894
|
-
limit: z.number(),
|
|
895
|
-
/** Remaining calls. */
|
|
896
|
-
remaining: z.number(),
|
|
897
|
-
/** ISO 8601 timestamp when quota resets. */
|
|
898
|
-
resetsAt: z.string()
|
|
899
|
-
});
|
|
900
|
-
var usageSchema = z.object({
|
|
901
|
-
inputTokens: z.number(),
|
|
902
|
-
outputTokens: z.number()
|
|
903
|
-
});
|
|
904
|
-
var auxiliaryInferResponseSchema = z.union([
|
|
905
|
-
z.object({
|
|
906
|
-
ok: z.literal(true),
|
|
907
|
-
result: z.unknown(),
|
|
908
|
-
usage: usageSchema,
|
|
909
|
-
quota: quotaSchema
|
|
910
|
-
}),
|
|
911
|
-
z.object({
|
|
912
|
-
ok: z.literal(false),
|
|
913
|
-
message: z.string(),
|
|
914
|
-
/** Error code: "UNAUTHORIZED" | "QUOTA_EXCEEDED" | "SERVER_ERROR". */
|
|
915
|
-
code: z.string().optional()
|
|
916
|
-
})
|
|
917
|
-
]);
|
|
918
|
-
var auxiliaryQuotaResponseSchema = z.object({
|
|
919
|
-
quota: quotaSchema
|
|
920
|
-
});
|
|
921
|
-
|
|
922
|
-
// src/modules/auxiliary/endpoints.ts
|
|
923
|
-
var auxiliaryEndpoints = {
|
|
924
|
-
infer: new Endpoint({
|
|
925
|
-
method: "POST",
|
|
926
|
-
path: "/api/auxiliary/infer",
|
|
927
|
-
requestSchema: auxiliaryInferRequestSchema,
|
|
928
|
-
responseSchema: auxiliaryInferResponseSchema
|
|
929
|
-
}),
|
|
930
|
-
getQuota: new Endpoint({
|
|
931
|
-
method: "POST",
|
|
932
|
-
path: "/api/auxiliary/quota",
|
|
933
|
-
requestSchema: z.object({}),
|
|
934
|
-
responseSchema: auxiliaryQuotaResponseSchema
|
|
935
|
-
})
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
// src/modules/feedback/index.ts
|
|
939
|
-
var feedback_exports = {};
|
|
940
|
-
__export(feedback_exports, {
|
|
941
|
-
FeedbackClient: () => FeedbackClient,
|
|
942
|
-
feedbackDetailPayloadSchema: () => feedbackDetailPayloadSchema,
|
|
943
|
-
feedbackDetailRequestSchema: () => feedbackDetailRequestSchema,
|
|
944
|
-
feedbackDetailResponseSchema: () => feedbackDetailResponseSchema,
|
|
945
|
-
feedbackEndpoints: () => feedbackEndpoints,
|
|
946
|
-
feedbackItemSchema: () => feedbackItemSchema,
|
|
947
|
-
feedbackListPayloadSchema: () => feedbackListPayloadSchema,
|
|
948
|
-
feedbackListRequestSchema: () => feedbackListRequestSchema,
|
|
949
|
-
feedbackListResponseSchema: () => feedbackListResponseSchema,
|
|
950
|
-
feedbackSaasStatusSchema: () => feedbackSaasStatusSchema,
|
|
951
|
-
feedbackSourceSchema: () => feedbackSourceSchema,
|
|
952
|
-
feedbackSubmitErrorSchema: () => feedbackSubmitErrorSchema,
|
|
953
|
-
feedbackSubmitRequestSchema: () => feedbackSubmitRequestSchema,
|
|
954
|
-
feedbackSubmitResponseSchema: () => feedbackSubmitResponseSchema,
|
|
955
|
-
feedbackTypeSchema: () => feedbackTypeSchema
|
|
956
|
-
});
|
|
957
|
-
|
|
958
|
-
// src/modules/feedback/client.ts
|
|
959
|
-
var FeedbackClient = class {
|
|
960
|
-
/** SDK host used for feedback requests. */
|
|
961
|
-
sdk;
|
|
962
|
-
/** Create feedback client. */
|
|
963
|
-
constructor(sdk) {
|
|
964
|
-
this.sdk = sdk;
|
|
965
|
-
}
|
|
966
|
-
/** Submit a feedback record. */
|
|
967
|
-
async submit(payload) {
|
|
968
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
969
|
-
return this.sdk.request(this.sdk.contract.feedback.submit, {
|
|
970
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
971
|
-
headers: authHeader,
|
|
972
|
-
body: payload
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
/**
|
|
976
|
-
* Upload a file attachment for feedback.
|
|
977
|
-
* Returns the public URL and object key to include in feedback context.
|
|
978
|
-
*/
|
|
979
|
-
async uploadAttachment(file, filename) {
|
|
980
|
-
const form = new FormData();
|
|
981
|
-
form.append(
|
|
982
|
-
"file",
|
|
983
|
-
file,
|
|
984
|
-
filename ?? (file instanceof File ? file.name : "attachment")
|
|
985
|
-
);
|
|
986
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
987
|
-
const url = `${this.sdk.getBaseUrl()}/api/feedback/upload`;
|
|
988
|
-
const resp = await fetch(url, {
|
|
989
|
-
method: "POST",
|
|
990
|
-
headers: authHeader,
|
|
991
|
-
body: form
|
|
992
|
-
});
|
|
993
|
-
if (!resp.ok) {
|
|
994
|
-
const err = await resp.json().catch(() => ({ message: "Upload failed" }));
|
|
995
|
-
throw new Error(err.message ?? "Upload failed");
|
|
996
|
-
}
|
|
997
|
-
return resp.json();
|
|
998
|
-
}
|
|
999
|
-
/** List feedback records for the current user. */
|
|
1000
|
-
async list(payload) {
|
|
1001
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
1002
|
-
return this.sdk.request(this.sdk.contract.feedback.list, {
|
|
1003
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
1004
|
-
headers: authHeader,
|
|
1005
|
-
body: payload ?? {}
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
/** Fetch feedback detail by id. */
|
|
1009
|
-
async detail(feedbackId) {
|
|
1010
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
1011
|
-
return this.sdk.request(this.sdk.contract.feedback.detail(feedbackId), {
|
|
1012
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
1013
|
-
headers: authHeader,
|
|
1014
|
-
body: void 0
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
var feedbackSourceSchema = z.enum([
|
|
1019
|
-
"tenas",
|
|
1020
|
-
"openloaf",
|
|
1021
|
-
"openloaf-saas"
|
|
1022
|
-
]);
|
|
1023
|
-
var feedbackTypeSchema = z.enum([
|
|
1024
|
-
"ui",
|
|
1025
|
-
"performance",
|
|
1026
|
-
"bug",
|
|
1027
|
-
"feature",
|
|
1028
|
-
"chat",
|
|
1029
|
-
"other"
|
|
1030
|
-
]);
|
|
1031
|
-
var feedbackSaasStatusSchema = z.enum([
|
|
1032
|
-
"unread",
|
|
1033
|
-
"read",
|
|
1034
|
-
"resolved",
|
|
1035
|
-
"ignored"
|
|
1036
|
-
]);
|
|
1037
|
-
var feedbackSubmitRequestSchema = z.object({
|
|
1038
|
-
/** Feedback source. */
|
|
1039
|
-
source: feedbackSourceSchema.optional(),
|
|
1040
|
-
/** Feedback category. */
|
|
1041
|
-
type: feedbackTypeSchema,
|
|
1042
|
-
/** Feedback content text. */
|
|
1043
|
-
content: z.string().trim().min(1),
|
|
1044
|
-
/** Feedback context JSON payload. */
|
|
1045
|
-
context: z.record(z.string(), z.unknown()),
|
|
1046
|
-
/** Optional email for anonymous feedback. */
|
|
1047
|
-
email: z.string().trim().email().optional()
|
|
1048
|
-
});
|
|
1049
|
-
var feedbackSubmitErrorSchema = z.object({
|
|
1050
|
-
/** Error message. */
|
|
1051
|
-
message: z.string()
|
|
1052
|
-
});
|
|
1053
|
-
var feedbackSubmitResponseSchema = z.union([
|
|
1054
|
-
z.void(),
|
|
1055
|
-
feedbackSubmitErrorSchema
|
|
1056
|
-
]);
|
|
1057
|
-
var feedbackListRequestSchema = z.object({
|
|
1058
|
-
/** Page number (1-based). */
|
|
1059
|
-
page: z.number().int().min(1).optional(),
|
|
1060
|
-
/** Page size. */
|
|
1061
|
-
pageSize: z.number().int().min(1).max(100).optional(),
|
|
1062
|
-
/** Feedback category filter. */
|
|
1063
|
-
type: feedbackTypeSchema.optional(),
|
|
1064
|
-
/** Feedback source filter. */
|
|
1065
|
-
source: feedbackSourceSchema.optional(),
|
|
1066
|
-
/** SaaS status filter. */
|
|
1067
|
-
saasStatus: feedbackSaasStatusSchema.optional(),
|
|
1068
|
-
/** Keyword filter against feedback content. */
|
|
1069
|
-
keyword: z.string().trim().min(1).optional(),
|
|
1070
|
-
/** Start time filter (ISO string). */
|
|
1071
|
-
startAt: z.string().datetime().optional(),
|
|
1072
|
-
/** End time filter (ISO string). */
|
|
1073
|
-
endAt: z.string().datetime().optional()
|
|
1074
|
-
});
|
|
1075
|
-
var feedbackItemSchema = z.object({
|
|
1076
|
-
/** Feedback id. */
|
|
1077
|
-
id: z.string(),
|
|
1078
|
-
/** Feedback source. */
|
|
1079
|
-
source: feedbackSourceSchema,
|
|
1080
|
-
/** Feedback category. */
|
|
1081
|
-
type: feedbackTypeSchema,
|
|
1082
|
-
/** SaaS status. */
|
|
1083
|
-
saasStatus: feedbackSaasStatusSchema,
|
|
1084
|
-
/** SaaS response content. */
|
|
1085
|
-
response: z.string().optional(),
|
|
1086
|
-
/** Related user id. */
|
|
1087
|
-
userId: z.string().optional(),
|
|
1088
|
-
/** Related user email. */
|
|
1089
|
-
email: z.string().optional(),
|
|
1090
|
-
/** Feedback content text. */
|
|
1091
|
-
content: z.string(),
|
|
1092
|
-
/** Feedback context JSON payload. */
|
|
1093
|
-
context: z.record(z.string(), z.unknown()),
|
|
1094
|
-
/** Created timestamp (ISO string). */
|
|
1095
|
-
createdAt: z.string()
|
|
1096
|
-
});
|
|
1097
|
-
var feedbackListPayloadSchema = z.object({
|
|
1098
|
-
/** Feedback list items. */
|
|
1099
|
-
items: z.array(feedbackItemSchema),
|
|
1100
|
-
/** Page number (1-based). */
|
|
1101
|
-
page: z.number().int(),
|
|
1102
|
-
/** Page size. */
|
|
1103
|
-
pageSize: z.number().int(),
|
|
1104
|
-
/** Total records. */
|
|
1105
|
-
total: z.number().int()
|
|
1106
|
-
});
|
|
1107
|
-
var feedbackListResponseSchema = z.union([
|
|
1108
|
-
feedbackListPayloadSchema,
|
|
1109
|
-
feedbackSubmitErrorSchema
|
|
1110
|
-
]);
|
|
1111
|
-
var feedbackDetailRequestSchema = z.void();
|
|
1112
|
-
var feedbackDetailPayloadSchema = z.object({
|
|
1113
|
-
/** Feedback item detail. */
|
|
1114
|
-
feedback: feedbackItemSchema
|
|
1115
|
-
});
|
|
1116
|
-
var feedbackDetailResponseSchema = z.union([
|
|
1117
|
-
feedbackDetailPayloadSchema,
|
|
1118
|
-
feedbackSubmitErrorSchema
|
|
1119
|
-
]);
|
|
1120
|
-
|
|
1121
|
-
// src/modules/feedback/endpoints.ts
|
|
1122
|
-
var feedbackEndpoints = {
|
|
1123
|
-
/** Submit feedback. */
|
|
1124
|
-
submit: new Endpoint({
|
|
1125
|
-
method: "POST",
|
|
1126
|
-
path: "/api/public/feedback",
|
|
1127
|
-
requestSchema: feedbackSubmitRequestSchema,
|
|
1128
|
-
responseSchema: feedbackSubmitResponseSchema
|
|
1129
|
-
}),
|
|
1130
|
-
/** List feedback of current user. */
|
|
1131
|
-
list: new Endpoint({
|
|
1132
|
-
method: "POST",
|
|
1133
|
-
path: "/api/feedback/list",
|
|
1134
|
-
requestSchema: feedbackListRequestSchema,
|
|
1135
|
-
responseSchema: feedbackListResponseSchema
|
|
1136
|
-
}),
|
|
1137
|
-
/** Fetch feedback detail by id. */
|
|
1138
|
-
detail: (feedbackId) => new Endpoint({
|
|
1139
|
-
method: "GET",
|
|
1140
|
-
path: `/api/feedback/${feedbackId}`,
|
|
1141
|
-
requestSchema: feedbackDetailRequestSchema,
|
|
1142
|
-
responseSchema: feedbackDetailResponseSchema
|
|
1143
|
-
})
|
|
1144
|
-
};
|
|
1145
|
-
|
|
1146
|
-
// src/modules/skills/index.ts
|
|
1147
|
-
var skills_exports = {};
|
|
1148
|
-
__export(skills_exports, {
|
|
1149
|
-
SkillsClient: () => SkillsClient,
|
|
1150
|
-
skillArchiveFormatSchema: () => skillArchiveFormatSchema,
|
|
1151
|
-
skillListItemSchema: () => skillListItemSchema,
|
|
1152
|
-
skillOwnerSummarySchema: () => skillOwnerSummarySchema,
|
|
1153
|
-
skillSourceSchema: () => skillSourceSchema,
|
|
1154
|
-
skillStatusSchema: () => skillStatusSchema,
|
|
1155
|
-
skillTypeSchema: () => skillTypeSchema,
|
|
1156
|
-
skillVersionSummarySchema: () => skillVersionSummarySchema,
|
|
1157
|
-
skillVisibilitySchema: () => skillVisibilitySchema,
|
|
1158
|
-
skillsDetailRequestSchema: () => skillsDetailRequestSchema,
|
|
1159
|
-
skillsDetailResponseSchema: () => skillsDetailResponseSchema,
|
|
1160
|
-
skillsDownloadResponseSchema: () => skillsDownloadResponseSchema,
|
|
1161
|
-
skillsEndpoints: () => skillsEndpoints,
|
|
1162
|
-
skillsListRequestSchema: () => skillsListRequestSchema,
|
|
1163
|
-
skillsListResponseSchema: () => skillsListResponseSchema
|
|
1164
|
-
});
|
|
1165
|
-
|
|
1166
|
-
// src/modules/skills/client.ts
|
|
1167
|
-
function parseDownloadFileName(contentDisposition, fallback) {
|
|
1168
|
-
if (!contentDisposition) {
|
|
1169
|
-
return fallback;
|
|
1170
|
-
}
|
|
1171
|
-
const utf8Match = contentDisposition.match(/filename\*=UTF-8''([^;]+)/i);
|
|
1172
|
-
if (utf8Match?.[1]) {
|
|
1173
|
-
try {
|
|
1174
|
-
return decodeURIComponent(utf8Match[1]);
|
|
1175
|
-
} catch {
|
|
1176
|
-
return utf8Match[1];
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
const plainMatch = contentDisposition.match(/filename="?([^"]+)"?/i);
|
|
1180
|
-
return plainMatch?.[1] ?? fallback;
|
|
1181
|
-
}
|
|
1182
|
-
var SkillsClient = class {
|
|
1183
|
-
/** SDK host used for skill requests. */
|
|
1184
|
-
sdk;
|
|
1185
|
-
/** Create skill client. */
|
|
1186
|
-
constructor(sdk) {
|
|
1187
|
-
this.sdk = sdk;
|
|
1188
|
-
}
|
|
1189
|
-
/** List visible skills for the current user. */
|
|
1190
|
-
async list(payload) {
|
|
1191
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
1192
|
-
return this.sdk.request(this.sdk.contract.skills.list, {
|
|
1193
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
1194
|
-
headers: authHeader,
|
|
1195
|
-
body: payload ?? {}
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
/** Fetch one visible skill detail. */
|
|
1199
|
-
async detail(skillId) {
|
|
1200
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
1201
|
-
return this.sdk.request(this.sdk.contract.skills.detail(skillId), {
|
|
1202
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
1203
|
-
headers: authHeader,
|
|
1204
|
-
body: void 0
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
/** Download one visible skill archive. */
|
|
1208
|
-
async download(skillId) {
|
|
1209
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
1210
|
-
const url = `${this.sdk.getBaseUrl()}/api/skills/${skillId}/download`;
|
|
1211
|
-
const response = await fetch(url, {
|
|
1212
|
-
method: "GET",
|
|
1213
|
-
headers: authHeader
|
|
1214
|
-
});
|
|
1215
|
-
if (!response.ok) {
|
|
1216
|
-
const payload = await response.json().catch(() => ({
|
|
1217
|
-
message: "Skill download failed"
|
|
1218
|
-
}));
|
|
1219
|
-
throw new Error(
|
|
1220
|
-
payload.message ?? "Skill download failed"
|
|
1221
|
-
);
|
|
1222
|
-
}
|
|
1223
|
-
return {
|
|
1224
|
-
fileName: parseDownloadFileName(
|
|
1225
|
-
response.headers.get("content-disposition"),
|
|
1226
|
-
`${skillId}.skill`
|
|
1227
|
-
),
|
|
1228
|
-
contentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
1229
|
-
data: await response.arrayBuffer()
|
|
1230
|
-
};
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
|
-
var skillTypeSchema = z.enum([
|
|
1234
|
-
"development",
|
|
1235
|
-
"automation",
|
|
1236
|
-
"ai",
|
|
1237
|
-
"crawler",
|
|
1238
|
-
"ops",
|
|
1239
|
-
"writing",
|
|
1240
|
-
"design",
|
|
1241
|
-
"other"
|
|
1242
|
-
]);
|
|
1243
|
-
var skillSourceSchema = z.enum(["official_upload", "user_upload"]);
|
|
1244
|
-
var skillVisibilitySchema = z.enum(["public", "private"]);
|
|
1245
|
-
var skillStatusSchema = z.enum(["active", "disabled"]);
|
|
1246
|
-
var skillArchiveFormatSchema = z.enum(["skill", "zip", "tar"]);
|
|
1247
|
-
var skillOwnerSummarySchema = z.object({
|
|
1248
|
-
/** Owner user id. */
|
|
1249
|
-
id: z.string(),
|
|
1250
|
-
/** Owner display name. */
|
|
1251
|
-
name: z.string().nullable(),
|
|
1252
|
-
/** Owner email. */
|
|
1253
|
-
email: z.string().nullable()
|
|
1254
|
-
});
|
|
1255
|
-
var skillVersionSummarySchema = z.object({
|
|
1256
|
-
/** Version record id. */
|
|
1257
|
-
id: z.string(),
|
|
1258
|
-
/** Version label. */
|
|
1259
|
-
version: z.string(),
|
|
1260
|
-
/** Archive format. */
|
|
1261
|
-
archiveFormat: skillArchiveFormatSchema,
|
|
1262
|
-
/** Original file name. */
|
|
1263
|
-
fileName: z.string(),
|
|
1264
|
-
/** File size in bytes. */
|
|
1265
|
-
fileSize: z.number(),
|
|
1266
|
-
/** Optional changelog text. */
|
|
1267
|
-
changelog: z.string().nullable(),
|
|
1268
|
-
/** Version created timestamp. */
|
|
1269
|
-
createdAt: z.string()
|
|
1270
|
-
});
|
|
1271
|
-
var skillListItemSchema = z.object({
|
|
1272
|
-
/** Skill id. */
|
|
1273
|
-
id: z.string(),
|
|
1274
|
-
/** Skill slug. */
|
|
1275
|
-
slug: z.string(),
|
|
1276
|
-
/** Skill display name. */
|
|
1277
|
-
name: z.string(),
|
|
1278
|
-
/** Skill summary. */
|
|
1279
|
-
summary: z.string().nullable(),
|
|
1280
|
-
/** Skill type. */
|
|
1281
|
-
type: skillTypeSchema,
|
|
1282
|
-
/** Skill tags. */
|
|
1283
|
-
tags: z.array(z.string()),
|
|
1284
|
-
/** Skill source. */
|
|
1285
|
-
source: skillSourceSchema,
|
|
1286
|
-
/** Skill visibility. */
|
|
1287
|
-
visibility: skillVisibilitySchema,
|
|
1288
|
-
/** Skill status. */
|
|
1289
|
-
status: skillStatusSchema,
|
|
1290
|
-
/** Optional owner payload. */
|
|
1291
|
-
owner: skillOwnerSummarySchema.nullable(),
|
|
1292
|
-
/** Latest version label. */
|
|
1293
|
-
latestVersion: z.string().nullable(),
|
|
1294
|
-
/** Download count. */
|
|
1295
|
-
downloadCount: z.number(),
|
|
1296
|
-
/** Current version summary. */
|
|
1297
|
-
currentVersion: skillVersionSummarySchema.nullable(),
|
|
1298
|
-
/** Created timestamp. */
|
|
1299
|
-
createdAt: z.string(),
|
|
1300
|
-
/** Updated timestamp. */
|
|
1301
|
-
updatedAt: z.string()
|
|
1302
|
-
});
|
|
1303
|
-
var skillsListRequestSchema = z.object({
|
|
1304
|
-
/** Page number. */
|
|
1305
|
-
page: z.number().int().min(1).default(1),
|
|
1306
|
-
/** Page size. */
|
|
1307
|
-
pageSize: z.number().int().min(1).max(100).default(12),
|
|
1308
|
-
/** Optional keyword filter. */
|
|
1309
|
-
keyword: z.string().optional(),
|
|
1310
|
-
/** Optional type filter. */
|
|
1311
|
-
type: skillTypeSchema.optional()
|
|
1312
|
-
});
|
|
1313
|
-
var skillsListResponseSchema = z.object({
|
|
1314
|
-
/** Current page items. */
|
|
1315
|
-
items: z.array(skillListItemSchema),
|
|
1316
|
-
/** Current page. */
|
|
1317
|
-
page: z.number().int(),
|
|
1318
|
-
/** Current page size. */
|
|
1319
|
-
pageSize: z.number().int(),
|
|
1320
|
-
/** Total count. */
|
|
1321
|
-
total: z.number().int()
|
|
1322
|
-
});
|
|
1323
|
-
var skillsDetailRequestSchema = z.void();
|
|
1324
|
-
var skillsDetailResponseSchema = z.object({
|
|
1325
|
-
/** Skill detail payload. */
|
|
1326
|
-
skill: skillListItemSchema.extend({
|
|
1327
|
-
/** Parsed manifest snapshot. */
|
|
1328
|
-
manifestJson: z.unknown().nullable(),
|
|
1329
|
-
/** Parsed markdown preview. */
|
|
1330
|
-
readmeMarkdown: z.string().nullable(),
|
|
1331
|
-
/** Version history. */
|
|
1332
|
-
versions: z.array(skillVersionSummarySchema)
|
|
1333
|
-
})
|
|
1334
|
-
});
|
|
1335
|
-
var skillsDownloadResponseSchema = z.object({
|
|
1336
|
-
/** Suggested download file name. */
|
|
1337
|
-
fileName: z.string(),
|
|
1338
|
-
/** Content type of the archive. */
|
|
1339
|
-
contentType: z.string(),
|
|
1340
|
-
/** Raw archive bytes. */
|
|
1341
|
-
data: z.custom((value) => value instanceof ArrayBuffer)
|
|
1342
|
-
});
|
|
1343
|
-
|
|
1344
|
-
// src/modules/skills/endpoints.ts
|
|
1345
|
-
var skillsEndpoints = {
|
|
1346
|
-
/** List visible skills for the current actor. */
|
|
1347
|
-
list: new Endpoint({
|
|
1348
|
-
method: "POST",
|
|
1349
|
-
path: "/api/skills/list",
|
|
1350
|
-
requestSchema: skillsListRequestSchema,
|
|
1351
|
-
responseSchema: skillsListResponseSchema
|
|
1352
|
-
}),
|
|
1353
|
-
/** Fetch detail for one visible skill. */
|
|
1354
|
-
detail: (skillId) => new Endpoint({
|
|
1355
|
-
method: "GET",
|
|
1356
|
-
path: `/api/skills/${skillId}`,
|
|
1357
|
-
requestSchema: skillsDetailRequestSchema,
|
|
1358
|
-
responseSchema: skillsDetailResponseSchema
|
|
1359
|
-
})
|
|
1360
|
-
};
|
|
1361
|
-
|
|
1362
|
-
// src/modules/user/index.ts
|
|
1363
|
-
var user_exports = {};
|
|
1364
|
-
__export(user_exports, {
|
|
1365
|
-
UserClient: () => UserClient,
|
|
1366
|
-
userEndpoints: () => userEndpoints,
|
|
1367
|
-
userMembershipLevelSchema: () => userMembershipLevelSchema,
|
|
1368
|
-
userSelfRequestSchema: () => userSelfRequestSchema,
|
|
1369
|
-
userSelfResponseSchema: () => userSelfResponseSchema,
|
|
1370
|
-
userSelfSchema: () => userSelfSchema
|
|
1371
|
-
});
|
|
1372
|
-
|
|
1373
|
-
// src/modules/user/client.ts
|
|
1374
|
-
var UserClient = class {
|
|
1375
|
-
/** SDK host used for user requests. */
|
|
1376
|
-
sdk;
|
|
1377
|
-
/** Create user client. */
|
|
1378
|
-
constructor(sdk) {
|
|
1379
|
-
this.sdk = sdk;
|
|
1380
|
-
}
|
|
1381
|
-
/** Fetch current user profile. */
|
|
1382
|
-
async self() {
|
|
1383
|
-
const authHeader = await this.sdk.buildAuthHeader();
|
|
1384
|
-
return this.sdk.request(this.sdk.contract.user.self, {
|
|
1385
|
-
baseUrl: this.sdk.getBaseUrl(),
|
|
1386
|
-
headers: authHeader,
|
|
1387
|
-
body: void 0
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
|
-
var userMembershipLevelSchema = z.enum([
|
|
1392
|
-
"free",
|
|
1393
|
-
"vip",
|
|
1394
|
-
"svip",
|
|
1395
|
-
"infinity"
|
|
1396
|
-
]);
|
|
1397
|
-
var userSelfSchema = z.object({
|
|
1398
|
-
/** User id. */
|
|
1399
|
-
id: z.string(),
|
|
1400
|
-
/** User email. */
|
|
1401
|
-
email: z.string().optional(),
|
|
1402
|
-
/** User display name. */
|
|
1403
|
-
name: z.string().optional(),
|
|
1404
|
-
/** User avatar URL. */
|
|
1405
|
-
avatarUrl: z.string().optional(),
|
|
1406
|
-
/** OAuth provider. */
|
|
1407
|
-
provider: z.string(),
|
|
1408
|
-
/** Membership level. */
|
|
1409
|
-
membershipLevel: userMembershipLevelSchema,
|
|
1410
|
-
/** Credits balance. */
|
|
1411
|
-
creditsBalance: z.number(),
|
|
1412
|
-
/** Created timestamp (ISO string). */
|
|
1413
|
-
createdAt: z.string(),
|
|
1414
|
-
/** Updated timestamp (ISO string). */
|
|
1415
|
-
updatedAt: z.string()
|
|
1416
|
-
});
|
|
1417
|
-
var userSelfRequestSchema = z.void();
|
|
1418
|
-
var userSelfResponseSchema = z.object({
|
|
1419
|
-
/** Current user payload. */
|
|
1420
|
-
user: userSelfSchema
|
|
1421
|
-
});
|
|
1422
|
-
|
|
1423
|
-
// src/modules/user/endpoints.ts
|
|
1424
|
-
var userEndpoints = {
|
|
1425
|
-
/** Fetch current user profile. */
|
|
1426
|
-
self: new Endpoint({
|
|
1427
|
-
method: "GET",
|
|
1428
|
-
path: "/api/user/self",
|
|
1429
|
-
requestSchema: userSelfRequestSchema,
|
|
1430
|
-
responseSchema: userSelfResponseSchema
|
|
1431
|
-
})
|
|
1432
|
-
};
|
|
1433
|
-
|
|
1434
|
-
// src/contract.ts
|
|
1435
|
-
var SaaSContract = class {
|
|
1436
|
-
/** Auth endpoints. */
|
|
1437
|
-
auth = authEndpoints;
|
|
1438
|
-
/** AI endpoints. */
|
|
1439
|
-
ai = aiEndpoints;
|
|
1440
|
-
/** AI tools endpoints. */
|
|
1441
|
-
aiTools = aiToolsEndpoints;
|
|
1442
|
-
/** Auxiliary inference endpoints. */
|
|
1443
|
-
auxiliary = auxiliaryEndpoints;
|
|
1444
|
-
/** Feedback endpoints. */
|
|
1445
|
-
feedback = feedbackEndpoints;
|
|
1446
|
-
/** Skill market endpoints. */
|
|
1447
|
-
skills = skillsEndpoints;
|
|
1448
|
-
/** User endpoints. */
|
|
1449
|
-
user = userEndpoints;
|
|
1450
|
-
};
|
|
1451
|
-
var contract = new SaaSContract();
|
|
1452
|
-
|
|
1453
|
-
// src/core/headers.ts
|
|
1454
|
-
function setHeader(target, key, value) {
|
|
1455
|
-
target[key.toLowerCase()] = value;
|
|
1456
|
-
}
|
|
1457
|
-
function normalizeHeaders(input) {
|
|
1458
|
-
const result = {};
|
|
1459
|
-
if (!input) {
|
|
1460
|
-
return result;
|
|
1461
|
-
}
|
|
1462
|
-
if (Array.isArray(input)) {
|
|
1463
|
-
for (const [key, value] of input) {
|
|
1464
|
-
setHeader(result, key, value);
|
|
1465
|
-
}
|
|
1466
|
-
return result;
|
|
1467
|
-
}
|
|
1468
|
-
if (typeof input.forEach === "function") {
|
|
1469
|
-
input.forEach((value, key) => {
|
|
1470
|
-
setHeader(result, key, value);
|
|
1471
|
-
});
|
|
1472
|
-
return result;
|
|
1473
|
-
}
|
|
1474
|
-
for (const [key, value] of Object.entries(input)) {
|
|
1475
|
-
if (typeof value === "string") {
|
|
1476
|
-
setHeader(result, key, value);
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
return result;
|
|
1480
|
-
}
|
|
1481
|
-
function mergeHeaders(...inputs) {
|
|
1482
|
-
const result = {};
|
|
1483
|
-
for (const input of inputs) {
|
|
1484
|
-
const normalized = normalizeHeaders(input);
|
|
1485
|
-
for (const [key, value] of Object.entries(normalized)) {
|
|
1486
|
-
result[key] = value;
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
return result;
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
// src/core/errors.ts
|
|
1493
|
-
var SaaSHttpError = class extends Error {
|
|
1494
|
-
status;
|
|
1495
|
-
statusText;
|
|
1496
|
-
payload;
|
|
1497
|
-
constructor(message, options) {
|
|
1498
|
-
super(message);
|
|
1499
|
-
this.name = "SaaSHttpError";
|
|
1500
|
-
this.status = options.status;
|
|
1501
|
-
this.statusText = options.statusText;
|
|
1502
|
-
this.payload = options.payload;
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
|
-
var SaaSSchemaError = class extends Error {
|
|
1506
|
-
issues;
|
|
1507
|
-
constructor(message, issues) {
|
|
1508
|
-
super(message);
|
|
1509
|
-
this.name = "SaaSSchemaError";
|
|
1510
|
-
this.issues = issues;
|
|
1511
|
-
}
|
|
1512
|
-
};
|
|
1513
|
-
var SaaSNetworkError = class extends Error {
|
|
1514
|
-
cause;
|
|
1515
|
-
constructor(message, cause) {
|
|
1516
|
-
super(message);
|
|
1517
|
-
this.name = "SaaSNetworkError";
|
|
1518
|
-
this.cause = cause;
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
|
|
1522
|
-
// src/core/request.ts
|
|
1523
|
-
function logSdkError(input) {
|
|
1524
|
-
try {
|
|
1525
|
-
console.error("[sdk] request error", input);
|
|
1526
|
-
} catch {
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
async function request(fetcher, endpoint, options) {
|
|
1530
|
-
const url = new URL(endpoint.path, options.baseUrl);
|
|
1531
|
-
let requestBody;
|
|
1532
|
-
try {
|
|
1533
|
-
requestBody = endpoint.parseRequest(options.body);
|
|
1534
|
-
} catch (error) {
|
|
1535
|
-
const issues = error && typeof error === "object" ? error.issues : void 0;
|
|
1536
|
-
logSdkError({
|
|
1537
|
-
message: "Request schema validation failed",
|
|
1538
|
-
url: url.toString(),
|
|
1539
|
-
method: endpoint.method,
|
|
1540
|
-
payload: options.body,
|
|
1541
|
-
error
|
|
1542
|
-
});
|
|
1543
|
-
throw new SaaSSchemaError("Request schema validation failed", issues);
|
|
1544
|
-
}
|
|
1545
|
-
const mergedHeaders = mergeHeaders(options.headers);
|
|
1546
|
-
const init = {
|
|
1547
|
-
method: endpoint.method,
|
|
1548
|
-
headers: mergedHeaders
|
|
1549
|
-
};
|
|
1550
|
-
if (requestBody !== void 0) {
|
|
1551
|
-
if (!mergedHeaders["content-type"]) {
|
|
1552
|
-
mergedHeaders["content-type"] = "application/json";
|
|
1553
|
-
}
|
|
1554
|
-
init.body = JSON.stringify(requestBody);
|
|
1555
|
-
}
|
|
1556
|
-
let response;
|
|
1557
|
-
try {
|
|
1558
|
-
response = await fetcher(url.toString(), init);
|
|
1559
|
-
} catch (error) {
|
|
1560
|
-
logSdkError({
|
|
1561
|
-
message: "Network request failed",
|
|
1562
|
-
url: url.toString(),
|
|
1563
|
-
method: endpoint.method,
|
|
1564
|
-
error
|
|
1565
|
-
});
|
|
1566
|
-
throw new SaaSNetworkError("Network request failed", error);
|
|
1567
|
-
}
|
|
1568
|
-
const rawText = await response.text();
|
|
1569
|
-
let payload;
|
|
1570
|
-
if (endpoint.responseType === "text") {
|
|
1571
|
-
payload = rawText;
|
|
1572
|
-
} else if (rawText) {
|
|
1573
|
-
try {
|
|
1574
|
-
payload = JSON.parse(rawText);
|
|
1575
|
-
} catch {
|
|
1576
|
-
logSdkError({
|
|
1577
|
-
message: "Response is not valid JSON",
|
|
1578
|
-
url: url.toString(),
|
|
1579
|
-
method: endpoint.method,
|
|
1580
|
-
status: response.status,
|
|
1581
|
-
statusText: response.statusText,
|
|
1582
|
-
payload: rawText
|
|
1583
|
-
});
|
|
1584
|
-
throw new SaaSHttpError("Response is not valid JSON", {
|
|
1585
|
-
status: response.status,
|
|
1586
|
-
statusText: response.statusText,
|
|
1587
|
-
payload: rawText
|
|
1588
|
-
});
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
let parsed;
|
|
1592
|
-
try {
|
|
1593
|
-
parsed = endpoint.parseResponse(payload);
|
|
1594
|
-
} catch (error) {
|
|
1595
|
-
const issues = error && typeof error === "object" ? error.issues : void 0;
|
|
1596
|
-
logSdkError({
|
|
1597
|
-
message: "Response schema validation failed",
|
|
1598
|
-
url: url.toString(),
|
|
1599
|
-
method: endpoint.method,
|
|
1600
|
-
status: response.status,
|
|
1601
|
-
statusText: response.statusText,
|
|
1602
|
-
payload,
|
|
1603
|
-
error
|
|
1604
|
-
});
|
|
1605
|
-
throw new SaaSSchemaError("Response schema validation failed", issues);
|
|
1606
|
-
}
|
|
1607
|
-
if (!response.ok) {
|
|
1608
|
-
logSdkError({
|
|
1609
|
-
message: "Request failed",
|
|
1610
|
-
url: url.toString(),
|
|
1611
|
-
method: endpoint.method,
|
|
1612
|
-
status: response.status,
|
|
1613
|
-
statusText: response.statusText,
|
|
1614
|
-
payload: parsed
|
|
1615
|
-
});
|
|
1616
|
-
throw new SaaSHttpError("Request failed", {
|
|
1617
|
-
status: response.status,
|
|
1618
|
-
statusText: response.statusText,
|
|
1619
|
-
payload: parsed
|
|
1620
|
-
});
|
|
1621
|
-
}
|
|
1622
|
-
return parsed;
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
// src/core/base-client.ts
|
|
1626
|
-
var BaseSaaSClient = class {
|
|
1627
|
-
/** Contract definitions used by the client. */
|
|
1628
|
-
contract;
|
|
1629
|
-
/** Base URL for SaaS API calls. */
|
|
1630
|
-
baseUrl;
|
|
1631
|
-
/** Access token provider for Bearer auth. */
|
|
1632
|
-
getAccessToken;
|
|
1633
|
-
/** Fetch implementation used for HTTP calls. */
|
|
1634
|
-
fetcher;
|
|
1635
|
-
/** Static headers injected into every request. */
|
|
1636
|
-
headers;
|
|
1637
|
-
/** Create a base client instance. */
|
|
1638
|
-
constructor(options) {
|
|
1639
|
-
this.baseUrl = options.baseUrl;
|
|
1640
|
-
this.getAccessToken = options.getAccessToken;
|
|
1641
|
-
this.fetcher = options.fetcher ?? fetch;
|
|
1642
|
-
this.headers = options.headers;
|
|
1643
|
-
this.contract = options.contract;
|
|
1644
|
-
}
|
|
1645
|
-
/** Send a typed request to the SaaS server. */
|
|
1646
|
-
async request(endpoint, options) {
|
|
1647
|
-
const mergedHeaders = mergeHeaders(this.headers, options.headers);
|
|
1648
|
-
return request(this.fetcher, endpoint, {
|
|
1649
|
-
baseUrl: options.baseUrl ?? this.baseUrl,
|
|
1650
|
-
headers: mergedHeaders,
|
|
1651
|
-
body: options.body
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
/** Build Authorization header using the access token. */
|
|
1655
|
-
async buildAuthHeader() {
|
|
1656
|
-
if (!this.getAccessToken) {
|
|
1657
|
-
return {};
|
|
1658
|
-
}
|
|
1659
|
-
const token = await this.getAccessToken();
|
|
1660
|
-
if (!token) {
|
|
1661
|
-
return {};
|
|
1662
|
-
}
|
|
1663
|
-
return { Authorization: `Bearer ${token}` };
|
|
1664
|
-
}
|
|
1665
|
-
/** Return the configured base URL. */
|
|
1666
|
-
getBaseUrl() {
|
|
1667
|
-
return this.baseUrl;
|
|
1668
|
-
}
|
|
1669
|
-
};
|
|
1670
|
-
|
|
1671
|
-
// src/client.ts
|
|
1672
|
-
var SaaSClient = class extends BaseSaaSClient {
|
|
1673
|
-
/** Auth-related APIs. */
|
|
1674
|
-
auth;
|
|
1675
|
-
/** AI-related APIs. */
|
|
1676
|
-
ai;
|
|
1677
|
-
/** AI tools APIs (analyze, recommend, summarize). */
|
|
1678
|
-
aiTools;
|
|
1679
|
-
/** Auxiliary inference APIs. */
|
|
1680
|
-
auxiliary;
|
|
1681
|
-
/** Feedback-related APIs. */
|
|
1682
|
-
feedback;
|
|
1683
|
-
/** Skill market APIs. */
|
|
1684
|
-
skills;
|
|
1685
|
-
/** User-related APIs. */
|
|
1686
|
-
user;
|
|
1687
|
-
/** Create a SaaS client with all module access. */
|
|
1688
|
-
constructor(options) {
|
|
1689
|
-
super({
|
|
1690
|
-
...options,
|
|
1691
|
-
contract: options.contract ?? contract
|
|
1692
|
-
});
|
|
1693
|
-
this.auth = new AuthClient(this);
|
|
1694
|
-
this.ai = new AiClient(this);
|
|
1695
|
-
this.aiTools = new AiToolsClient(this);
|
|
1696
|
-
this.auxiliary = new AuxiliaryClient(this);
|
|
1697
|
-
this.feedback = new FeedbackClient(this);
|
|
1698
|
-
this.skills = new SkillsClient(this);
|
|
1699
|
-
this.user = new UserClient(this);
|
|
1700
|
-
}
|
|
1701
|
-
};
|
|
1702
|
-
function createTrpcClient(options) {
|
|
1703
|
-
return createTRPCClient({
|
|
1704
|
-
links: [
|
|
1705
|
-
httpBatchLink({
|
|
1706
|
-
url: new URL("/trpc", options.baseUrl).toString(),
|
|
1707
|
-
headers: async () => {
|
|
1708
|
-
const token = options.getAccessToken ? await options.getAccessToken() : "";
|
|
1709
|
-
const authHeader = token ? { Authorization: `Bearer ${token}` } : {};
|
|
1710
|
-
return mergeHeaders(options.headers, authHeader);
|
|
1711
|
-
}
|
|
1712
|
-
})
|
|
1713
|
-
]
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
export { AI_MODEL_CAPABILITY_INPUT_KEYS, AI_MODEL_CAPABILITY_OUTPUT_KEYS, AI_MODEL_TAGS, AI_MODEL_TAG_LABELS, AiClient, AiToolsClient, AuthClient, AuxiliaryClient, Endpoint, FeedbackClient, SaaSClient, SaaSHttpError, SaaSNetworkError, SaaSSchemaError, SkillsClient, UserClient, aiAudioOutputSchema, aiAudioRequestSchema, aiChatCompletionsRequestSchema, aiChatModelSchema, aiChatModelsPayloadSchema, aiChatModelsResponseSchema, aiChatModelsSuccessSchema, aiChatSessionMetadataSchema, aiClientMetadataSchema, aiEndpoints, aiErrorResponseSchema, aiImageInputsSchema, aiImageOutputSchema, aiImageRequestSchema, aiMediaInputSchema, aiModelCapabilitiesInputSchema, aiModelCapabilitiesOutputSchema, aiModelCapabilitiesSchema, aiModelCapabilityCommonSchema, aiModelParameterFieldSchema, aiModelParamsSchema, aiModelSchema, aiModelsPayloadSchema, aiModelsRequestSchema, aiModelsResponseSchema, aiModelsSuccessSchema, aiModelsUpdatedAtDataSchema, aiModelsUpdatedAtResponseSchema, aiModelsUpdatedAtSuccessSchema, ai_exports as aiModule, aiProviderTemplateModelSchema, aiProviderTemplateSchema, aiProviderTemplatesPayloadSchema, aiProviderTemplatesRequestSchema, aiProviderTemplatesResponseSchema, aiProviderTemplatesSuccessSchema, aiResponsesRequestSchema, aiTaskCancelDataSchema, aiTaskCancelRequestSchema, aiTaskCancelResponseSchema, aiTaskCancelSuccessSchema, aiTaskCreatedDataSchema, aiTaskCreatedResponseSchema, aiTaskCreatedSuccessSchema, aiTaskDataSchema, aiTaskErrorSchema, aiTaskRequestSchema, aiTaskResponseSchema, aiTaskResultTypeSchema, aiTaskStatusSchema, aiTaskSuccessSchema, aiToolsEndpoints, ai_tools_exports as aiToolsModule, aiVideoInputsSchema, aiVideoOutputSchema, aiVideoRequestSchema, analyzeSkillsRequestSchema, analyzeSkillsResponseSchema, authEndpoints, authExchangeRequestSchema, authExchangeResponseSchema, authLogoutRequestSchema, authLogoutResponseSchema, auth_exports as authModule, authRefreshErrorSchema, authRefreshRequestSchema, authRefreshResponseSchema, authRefreshSuccessSchema, authRefreshUserSchema, auxiliaryEndpoints, auxiliaryInferRequestSchema, auxiliaryInferResponseSchema, auxiliary_exports as auxiliaryModule, auxiliaryQuotaResponseSchema, contract, createTrpcClient, feedbackDetailPayloadSchema, feedbackDetailRequestSchema, feedbackDetailResponseSchema, feedbackEndpoints, feedbackItemSchema, feedbackListPayloadSchema, feedbackListRequestSchema, feedbackListResponseSchema, feedback_exports as feedbackModule, feedbackSaasStatusSchema, feedbackSourceSchema, feedbackSubmitErrorSchema, feedbackSubmitRequestSchema, feedbackSubmitResponseSchema, feedbackTypeSchema, mergeHeaders, normalizeHeaders, recommendActionsRequestSchema, recommendActionsResponseSchema, request, skillArchiveFormatSchema, skillListItemSchema, skillOwnerSummarySchema, skillSourceSchema, skillStatusSchema, skillTypeSchema, skillVersionSummarySchema, skillVisibilitySchema, skillsDetailRequestSchema, skillsDetailResponseSchema, skillsDownloadResponseSchema, skillsEndpoints, skillsListRequestSchema, skillsListResponseSchema, skills_exports as skillsModule, summarizeRequestSchema, summarizeResponseSchema, userEndpoints, userMembershipLevelSchema, user_exports as userModule, userSelfRequestSchema, userSelfResponseSchema, userSelfSchema };
|
|
1
|
+
var _0x21cec4=_0x4c8f;(function(_0x2bd925,_0x49b658){var _0x205ace=_0x4c8f,_0x2a178b=_0x2bd925();while(!![]){try{var _0xbeca2a=-parseInt(_0x205ace(0x4c4))/(0x15e0+0x3bd*-0xa+0x1*0xf83)*(-parseInt(_0x205ace(0x25f))/(0x1ebd*-0x1+0xb1e+0x3*0x68b))+-parseInt(_0x205ace(0x4e8))/(0x1*-0x245f+0x6ad*0x3+0x105b)+parseInt(_0x205ace(0x301))/(0x2dd*0x9+0x52d+-0x1eee)+parseInt(_0x205ace(0x136))/(-0x140b+0x6*0x42d+0x47*-0x12)*(-parseInt(_0x205ace(0x394))/(-0xa6+0x274*-0x2+0x594))+parseInt(_0x205ace(0x3e2))/(0x191d+-0x3*-0x793+-0x2fcf)+-parseInt(_0x205ace(0x202))/(0xe*0x2aa+0x6f2*-0x1+0x1*-0x1e52)*(-parseInt(_0x205ace(0x38f))/(0x1b+-0x18c2+-0x8*-0x316))+-parseInt(_0x205ace(0x173))/(0x3ad*0x1+0x99*-0x29+0x14de);if(_0xbeca2a===_0x49b658)break;else _0x2a178b['push'](_0x2a178b['shift']());}catch(_0x4f86c4){_0x2a178b['push'](_0x2a178b['shift']());}}}(_0x4001,0x49*0x2ea6+-0x1*0xbf269+0x2f*0x2488));import{z}from'zod';import{createTRPCClient,httpBatchLink}from'@trpc/client';var __defProp=Object[_0x21cec4(0x29f)+_0x21cec4(0x154)+_0x21cec4(0x473)],__export=(_0x3da68f,_0x2defa8)=>{for(var _0x580ade in _0x2defa8)__defProp(_0x3da68f,_0x580ade,{'get':_0x2defa8[_0x580ade],'enumerable':!![]});},ai_exports={},_0x2bf374={};_0x2bf374[_0x21cec4(0x22f)+_0x21cec4(0x37f)+'APABI'+_0x21cec4(0x26c)+_0x21cec4(0x3c1)+_0x21cec4(0x439)]=()=>AI_MODEL_CAPABILITY_INPUT_KEYS,_0x2bf374[_0x21cec4(0x22f)+_0x21cec4(0x37f)+'APABI'+_0x21cec4(0x26c)+_0x21cec4(0x2f0)+'T_KEY'+'S']=()=>AI_MODEL_CAPABILITY_OUTPUT_KEYS,_0x2bf374[_0x21cec4(0x22f)+_0x21cec4(0x3fd)+_0x21cec4(0x274)]=()=>AI_MODEL_TAGS,_0x2bf374[_0x21cec4(0x22f)+'DEL_T'+'AG_LA'+_0x21cec4(0x236)]=()=>AI_MODEL_TAG_LABELS,_0x2bf374[_0x21cec4(0x41d)+_0x21cec4(0x285)]=()=>AiClient,_0x2bf374[_0x21cec4(0x336)+_0x21cec4(0x1cb)+'putSc'+_0x21cec4(0x175)]=()=>aiAudioOutputSchema,_0x2bf374[_0x21cec4(0x336)+_0x21cec4(0x35b)+_0x21cec4(0x1a0)+_0x21cec4(0x2d8)]=()=>aiAudioRequestSchema,_0x2bf374[_0x21cec4(0x2aa)+_0x21cec4(0x342)+_0x21cec4(0x25e)+_0x21cec4(0x478)+_0x21cec4(0x1a0)+_0x21cec4(0x2d8)]=()=>aiChatCompletionsRequestSchema,_0x2bf374[_0x21cec4(0x2aa)+_0x21cec4(0x280)+_0x21cec4(0x195)+'ma']=()=>aiChatModelSchema,_0x2bf374['aiCha'+'tMode'+_0x21cec4(0x166)+_0x21cec4(0x1ce)+_0x21cec4(0x2d8)]=()=>aiChatModelsPayloadSchema,_0x2bf374[_0x21cec4(0x2aa)+'tMode'+_0x21cec4(0x1b1)+'ponse'+'Schem'+'a']=()=>aiChatModelsResponseSchema,_0x2bf374[_0x21cec4(0x2aa)+'tMode'+_0x21cec4(0x1d1)+_0x21cec4(0x3f2)+'chema']=()=>aiChatModelsSuccessSchema,_0x2bf374[_0x21cec4(0x2aa)+'tSess'+'ionMe'+_0x21cec4(0x2bb)+'aSche'+'ma']=()=>aiChatSessionMetadataSchema,_0x2bf374[_0x21cec4(0x3ae)+_0x21cec4(0x1b3)+'tadat'+'aSche'+'ma']=()=>aiClientMetadataSchema,_0x2bf374[_0x21cec4(0x43e)+'point'+'s']=()=>aiEndpoints,_0x2bf374[_0x21cec4(0x2c4)+_0x21cec4(0x384)+_0x21cec4(0x34c)+_0x21cec4(0x28d)+'a']=()=>aiErrorResponseSchema,_0x2bf374[_0x21cec4(0x435)+_0x21cec4(0x331)+_0x21cec4(0x3d8)+_0x21cec4(0x175)]=()=>aiImageInputsSchema,_0x2bf374[_0x21cec4(0x435)+'geOut'+_0x21cec4(0x2ed)+_0x21cec4(0x175)]=()=>aiImageOutputSchema,_0x2bf374[_0x21cec4(0x435)+_0x21cec4(0x1e5)+_0x21cec4(0x1a0)+_0x21cec4(0x2d8)]=()=>aiImageRequestSchema,_0x2bf374[_0x21cec4(0x185)+_0x21cec4(0x3f4)+_0x21cec4(0x4da)+_0x21cec4(0x2e7)]=()=>aiMediaInputSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x350)+'abili'+_0x21cec4(0x2ef)+_0x21cec4(0x1e2)+_0x21cec4(0x2d8)]=()=>aiModelCapabilitiesInputSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x350)+'abili'+'tiesO'+_0x21cec4(0x467)+_0x21cec4(0x28d)+'a']=()=>aiModelCapabilitiesOutputSchema,_0x2bf374['aiMod'+_0x21cec4(0x350)+'abili'+_0x21cec4(0x407)+'chema']=()=>aiModelCapabilitiesSchema,_0x2bf374['aiMod'+_0x21cec4(0x350)+_0x21cec4(0x141)+_0x21cec4(0x38b)+'monSc'+_0x21cec4(0x175)]=()=>aiModelCapabilityCommonSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x1ad)+_0x21cec4(0x463)+'rFiel'+_0x21cec4(0x340)+'ma']=()=>aiModelParameterFieldSchema,_0x2bf374['aiMod'+_0x21cec4(0x1ad)+_0x21cec4(0x264)+_0x21cec4(0x175)]=()=>aiModelParamsSchema,_0x2bf374[_0x21cec4(0x362)+'elSch'+_0x21cec4(0x2e7)]=()=>aiModelSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x1d0)+'yload'+_0x21cec4(0x28d)+'a']=()=>aiModelsPayloadSchema,_0x2bf374[_0x21cec4(0x362)+'elsRe'+_0x21cec4(0x4c9)+'Schem'+'a']=()=>aiModelsRequestSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x4b6)+_0x21cec4(0x409)+_0x21cec4(0x21e)+'ma']=()=>aiModelsResponseSchema,_0x2bf374[_0x21cec4(0x362)+'elsSu'+_0x21cec4(0x2d5)+_0x21cec4(0x28d)+'a']=()=>aiModelsSuccessSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x46d)+_0x21cec4(0x1f6)+_0x21cec4(0x35c)+_0x21cec4(0x33f)+'ma']=()=>aiModelsUpdatedAtDataSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x46d)+_0x21cec4(0x1f6)+'AtRes'+_0x21cec4(0x34c)+'Schem'+'a']=()=>aiModelsUpdatedAtResponseSchema,_0x2bf374[_0x21cec4(0x362)+_0x21cec4(0x46d)+_0x21cec4(0x1f6)+'AtSuc'+_0x21cec4(0x3f2)+'chema']=()=>aiModelsUpdatedAtSuccessSchema,_0x2bf374[_0x21cec4(0x41f)+'vider'+_0x21cec4(0x324)+_0x21cec4(0x239)+_0x21cec4(0x1d6)+_0x21cec4(0x175)]=()=>aiProviderTemplateModelSchema,_0x2bf374['aiPro'+_0x21cec4(0x1ea)+_0x21cec4(0x324)+_0x21cec4(0x431)+_0x21cec4(0x175)]=()=>aiProviderTemplateSchema,_0x2bf374['aiPro'+_0x21cec4(0x1ea)+_0x21cec4(0x324)+'atesP'+_0x21cec4(0x4bc)+_0x21cec4(0x340)+'ma']=()=>aiProviderTemplatesPayloadSchema,_0x2bf374[_0x21cec4(0x41f)+'vider'+_0x21cec4(0x324)+_0x21cec4(0x2ad)+_0x21cec4(0x2a4)+_0x21cec4(0x31d)+'ma']=()=>aiProviderTemplatesRequestSchema,_0x2bf374[_0x21cec4(0x41f)+_0x21cec4(0x1ea)+_0x21cec4(0x324)+_0x21cec4(0x2ad)+'espon'+_0x21cec4(0x3a3)+'ema']=()=>aiProviderTemplatesResponseSchema,_0x2bf374['aiPro'+_0x21cec4(0x1ea)+_0x21cec4(0x324)+_0x21cec4(0x273)+_0x21cec4(0x3f6)+_0x21cec4(0x36e)+'ma']=()=>aiProviderTemplatesSuccessSchema,_0x2bf374[_0x21cec4(0x23d)+_0x21cec4(0x34c)+'sRequ'+_0x21cec4(0x20c)+'hema']=()=>aiResponsesRequestSchema,_0x2bf374[_0x21cec4(0x28f)+'kCanc'+_0x21cec4(0x284)+_0x21cec4(0x33f)+'ma']=()=>aiTaskCancelDataSchema,_0x2bf374['aiTas'+_0x21cec4(0x25c)+_0x21cec4(0x1aa)+_0x21cec4(0x1a0)+_0x21cec4(0x2d8)]=()=>aiTaskCancelRequestSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x25c)+_0x21cec4(0x2f9)+_0x21cec4(0x34c)+_0x21cec4(0x28d)+'a']=()=>aiTaskCancelResponseSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x25c)+_0x21cec4(0x4a1)+'cessS'+_0x21cec4(0x2d8)]=()=>aiTaskCancelSuccessSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x252)+_0x21cec4(0x3ba)+_0x21cec4(0x3ef)+_0x21cec4(0x2e7)]=()=>aiTaskCreatedDataSchema,_0x2bf374[_0x21cec4(0x28f)+'kCrea'+_0x21cec4(0x182)+_0x21cec4(0x409)+_0x21cec4(0x21e)+'ma']=()=>aiTaskCreatedResponseSchema,_0x2bf374[_0x21cec4(0x28f)+'kCrea'+_0x21cec4(0x2b6)+_0x21cec4(0x2d5)+_0x21cec4(0x28d)+'a']=()=>aiTaskCreatedSuccessSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x364)+_0x21cec4(0x28d)+'a']=()=>aiTaskDataSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x3de)+_0x21cec4(0x375)+'ma']=()=>aiTaskErrorSchema,_0x2bf374[_0x21cec4(0x28f)+'kRequ'+_0x21cec4(0x20c)+_0x21cec4(0x175)]=()=>aiTaskRequestSchema,_0x2bf374['aiTas'+_0x21cec4(0x380)+_0x21cec4(0x30f)+_0x21cec4(0x2d8)]=()=>aiTaskResponseSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x1c9)+'ltTyp'+_0x21cec4(0x21e)+'ma']=()=>aiTaskResultTypeSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x337)+_0x21cec4(0x373)+_0x21cec4(0x2e7)]=()=>aiTaskStatusSchema,_0x2bf374[_0x21cec4(0x28f)+_0x21cec4(0x30c)+_0x21cec4(0x420)+_0x21cec4(0x175)]=()=>aiTaskSuccessSchema,_0x2bf374[_0x21cec4(0x2b0)+_0x21cec4(0x2eb)+_0x21cec4(0x3d8)+'hema']=()=>aiVideoInputsSchema,_0x2bf374[_0x21cec4(0x2b0)+'eoOut'+_0x21cec4(0x2ed)+_0x21cec4(0x175)]=()=>aiVideoOutputSchema,_0x2bf374['aiVid'+_0x21cec4(0x335)+'uestS'+_0x21cec4(0x2d8)]=()=>aiVideoRequestSchema,_0x2bf374['digit'+_0x21cec4(0x290)+_0x21cec4(0x212)+_0x21cec4(0x1a0)+'chema']=()=>digitalHumanRequestSchema,_0x2bf374[_0x21cec4(0x2ca)+'EditR'+_0x21cec4(0x2a4)+_0x21cec4(0x31d)+'ma']=()=>imageEditRequestSchema,_0x2bf374[_0x21cec4(0x2ca)+'Gener'+_0x21cec4(0x1b5)+'quest'+_0x21cec4(0x28d)+'a']=()=>imageGenerateRequestSchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x468)+_0x21cec4(0x16b)+_0x21cec4(0x46c)+'ma']=()=>mediaAspectRatioSchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x215)+_0x21cec4(0x2fb)+_0x21cec4(0x2e7)]=()=>mediaFeatureSchema,_0x2bf374[_0x21cec4(0x1d5)+'Gener'+_0x21cec4(0x50a)+'seSch'+_0x21cec4(0x2e7)]=()=>mediaGenerateBaseSchema,_0x2bf374['media'+_0x21cec4(0x198)+_0x21cec4(0x1b5)+_0x21cec4(0x4c9)+_0x21cec4(0x28d)+'a']=()=>mediaGenerateRequestSchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x24d)+_0x21cec4(0x33e)+_0x21cec4(0x4f6)+'ma']=()=>mediaModelsQuerySchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x3ea)+'tySch'+'ema']=()=>mediaQualitySchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x269)+_0x21cec4(0x474)+_0x21cec4(0x28d)+'a']=()=>mediaResolutionSchema,_0x2bf374['media'+'TaskG'+_0x21cec4(0x3b3)+_0x21cec4(0x2a2)+_0x21cec4(0x175)]=()=>mediaTaskGroupDataSchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x42a)+_0x21cec4(0x282)+_0x21cec4(0x1b6)+_0x21cec4(0x3a3)+_0x21cec4(0x2e7)]=()=>mediaTaskGroupResponseSchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x42a)+_0x21cec4(0x3e5)+_0x21cec4(0x3f6)+_0x21cec4(0x36e)+'ma']=()=>mediaTaskGroupSuccessSchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x3d6)+_0x21cec4(0x4a4)+'hema']=()=>mediaTaskItemSchema,_0x2bf374[_0x21cec4(0x1d5)+_0x21cec4(0x184)+'tatus'+_0x21cec4(0x28d)+'a']=()=>mediaTaskStatusSchema,_0x2bf374[_0x21cec4(0x1fb)+'intRe'+'quest'+_0x21cec4(0x28d)+'a']=()=>outpaintRequestSchema,_0x2bf374[_0x21cec4(0x462)+_0x21cec4(0x143)+_0x21cec4(0x20c)+_0x21cec4(0x175)]=()=>posterRequestSchema,_0x2bf374[_0x21cec4(0x1c7)+_0x21cec4(0x4c9)+'Schem'+'a']=()=>ttsRequestSchema,_0x2bf374[_0x21cec4(0x48d)+_0x21cec4(0x47b)+_0x21cec4(0x1a0)+'chema']=()=>upscaleRequestSchema,_0x2bf374[_0x21cec4(0x368)+_0x21cec4(0x198)+_0x21cec4(0x1b5)+_0x21cec4(0x4c9)+_0x21cec4(0x28d)+'a']=()=>videoGenerateRequestSchema,__export(ai_exports,_0x2bf374);var AiClient=class{['sdk'];constructor(_0xff7ffe){var _0xaa0930=_0x21cec4;this[_0xaa0930(0x318)]=_0xff7ffe;}async[_0x21cec4(0x2ca)](_0x4e1155){var _0x444d90=_0x21cec4;const _0x2f0d0f=await this[_0x444d90(0x318)][_0x444d90(0x1a1)+_0x444d90(0x3a4)+_0x444d90(0x2ab)]();return this['sdk']['reque'+'st'](this[_0x444d90(0x318)][_0x444d90(0x24a)+_0x444d90(0x1c1)]['ai'][_0x444d90(0x2ca)],{'baseUrl':this['sdk'][_0x444d90(0x475)+_0x444d90(0x2bc)](),'headers':_0x2f0d0f,'body':_0x4e1155});}async[_0x21cec4(0x368)](_0x5c2875){var _0x542bbe=_0x21cec4;const _0x215e97=await this[_0x542bbe(0x318)][_0x542bbe(0x1a1)+_0x542bbe(0x3a4)+_0x542bbe(0x2ab)]();return this[_0x542bbe(0x318)]['reque'+'st'](this[_0x542bbe(0x318)][_0x542bbe(0x24a)+'act']['ai'][_0x542bbe(0x368)],{'baseUrl':this[_0x542bbe(0x318)]['getBa'+_0x542bbe(0x2bc)](),'headers':_0x215e97,'body':_0x5c2875});}async['audio'](_0x177104){var _0x2ff26a=_0x21cec4;const _0x3a2f37=await this[_0x2ff26a(0x318)][_0x2ff26a(0x1a1)+'AuthH'+_0x2ff26a(0x2ab)]();return this['sdk'][_0x2ff26a(0x1d4)+'st'](this[_0x2ff26a(0x318)][_0x2ff26a(0x24a)+_0x2ff26a(0x1c1)]['ai'][_0x2ff26a(0x165)],{'baseUrl':this['sdk']['getBa'+'seUrl'](),'headers':_0x3a2f37,'body':_0x177104});}async[_0x21cec4(0x498)](_0x55da76){var _0x50da47=_0x21cec4;const _0xb07999=await this[_0x50da47(0x318)]['build'+'AuthH'+'eader']();return this[_0x50da47(0x318)]['reque'+'st'](this[_0x50da47(0x318)][_0x50da47(0x24a)+'act']['ai'][_0x50da47(0x498)](_0x55da76),{'baseUrl':this[_0x50da47(0x318)]['getBa'+_0x50da47(0x2bc)](),'headers':_0xb07999,'body':void(0xc*0x10c+0x68f*-0x1+0x1*-0x601)});}async[_0x21cec4(0x1dc)+_0x21cec4(0x3b4)](_0x52da3b){var _0x35b762=_0x21cec4;const _0x476acf=await this['sdk'][_0x35b762(0x1a1)+'AuthH'+'eader']();return this[_0x35b762(0x318)]['reque'+'st'](this[_0x35b762(0x318)]['contr'+_0x35b762(0x1c1)]['ai']['cance'+_0x35b762(0x3b4)](_0x52da3b),{'baseUrl':this[_0x35b762(0x318)]['getBa'+_0x35b762(0x2bc)](),'headers':_0x476acf,'body':void(0x1*0x3e0+-0x19b5*-0x1+-0x1d95)});}async[_0x21cec4(0x2ca)+'Model'+'s'](){var _0x2020c4=_0x21cec4;const _0x2d3463=await this[_0x2020c4(0x318)][_0x2020c4(0x1a1)+_0x2020c4(0x3a4)+'eader']();return this[_0x2020c4(0x318)][_0x2020c4(0x1d4)+'st'](this[_0x2020c4(0x318)][_0x2020c4(0x24a)+'act']['ai'][_0x2020c4(0x2ca)+_0x2020c4(0x24d)+'s'],{'baseUrl':this['sdk'][_0x2020c4(0x475)+_0x2020c4(0x2bc)](),'headers':_0x2d3463,'body':void(-0xd5b*0x1+-0x1*-0x10a3+0x38*-0xf)});}async[_0x21cec4(0x368)+'Model'+'s'](){var _0xe02799=_0x21cec4;const _0x364d99=await this['sdk'][_0xe02799(0x1a1)+_0xe02799(0x3a4)+_0xe02799(0x2ab)]();return this[_0xe02799(0x318)][_0xe02799(0x1d4)+'st'](this[_0xe02799(0x318)][_0xe02799(0x24a)+_0xe02799(0x1c1)]['ai'][_0xe02799(0x368)+_0xe02799(0x24d)+'s'],{'baseUrl':this['sdk'][_0xe02799(0x475)+_0xe02799(0x2bc)](),'headers':_0x364d99,'body':void(0x4c*0x6d+-0x4c9+0x931*-0x3)});}async[_0x21cec4(0x165)+_0x21cec4(0x24d)+'s'](){var _0x3de18c=_0x21cec4;const _0xc26f06=await this['sdk'][_0x3de18c(0x1a1)+_0x3de18c(0x3a4)+_0x3de18c(0x2ab)]();return this[_0x3de18c(0x318)][_0x3de18c(0x1d4)+'st'](this[_0x3de18c(0x318)]['contr'+_0x3de18c(0x1c1)]['ai'][_0x3de18c(0x165)+_0x3de18c(0x24d)+'s'],{'baseUrl':this[_0x3de18c(0x318)][_0x3de18c(0x475)+_0x3de18c(0x2bc)](),'headers':_0xc26f06,'body':void(0x2c2*-0xb+0x20b+0x1c4b)});}async[_0x21cec4(0x3b0)+_0x21cec4(0x4a0)](){var _0x295fe2=_0x21cec4;const _0x2213ef=await this[_0x295fe2(0x318)][_0x295fe2(0x1a1)+_0x295fe2(0x3a4)+_0x295fe2(0x2ab)]();return this[_0x295fe2(0x318)]['reque'+'st'](this[_0x295fe2(0x318)][_0x295fe2(0x24a)+_0x295fe2(0x1c1)]['ai']['chatM'+_0x295fe2(0x4a0)],{'baseUrl':this[_0x295fe2(0x318)][_0x295fe2(0x475)+_0x295fe2(0x2bc)](),'headers':_0x2213ef,'body':void(-0x8*0x137+-0x839+0x11f1)});}async[_0x21cec4(0x35f)+'sUpda'+_0x21cec4(0x455)](){var _0x10d018=_0x21cec4;return this[_0x10d018(0x318)][_0x10d018(0x1d4)+'st'](this[_0x10d018(0x318)]['contr'+'act']['ai'][_0x10d018(0x35f)+_0x10d018(0x4ce)+_0x10d018(0x455)],{'baseUrl':this[_0x10d018(0x318)][_0x10d018(0x475)+_0x10d018(0x2bc)](),'headers':{},'body':void(-0x3*0x89+0x2141*-0x1+0x116e*0x2)});}async[_0x21cec4(0x4f4)+_0x21cec4(0x3a2)](_0x556159,_0x2348c7){var _0x7f1ab5=_0x21cec4;const _0x4fa34f=new FormData();_0x4fa34f[_0x7f1ab5(0x2ff)+'d'](_0x7f1ab5(0x15b),_0x556159,_0x2348c7??(_0x556159 instanceof File?_0x556159['name']:'file'));const _0x238bc3=await this[_0x7f1ab5(0x318)][_0x7f1ab5(0x1a1)+_0x7f1ab5(0x3a4)+_0x7f1ab5(0x2ab)](),_0x473b46=this[_0x7f1ab5(0x318)][_0x7f1ab5(0x475)+_0x7f1ab5(0x2bc)]()+(_0x7f1ab5(0x26b)+'ai/fi'+_0x7f1ab5(0x13d)+'load');var _0x411f9d={};_0x411f9d['metho'+'d']=_0x7f1ab5(0x192),_0x411f9d[_0x7f1ab5(0x229)+'rs']=_0x238bc3,_0x411f9d[_0x7f1ab5(0x3ab)]=_0x4fa34f;const _0x36e477=await fetch(_0x473b46,_0x411f9d);if(!_0x36e477['ok']){const _0x355b21=await _0x36e477[_0x7f1ab5(0x216)]()['catch'](()=>({'message':_0x7f1ab5(0x43f)+_0x7f1ab5(0x13e)+_0x7f1ab5(0x487)}));throw new Error(_0x355b21[_0x7f1ab5(0x29e)+'ge']??_0x7f1ab5(0x43f)+_0x7f1ab5(0x13e)+_0x7f1ab5(0x487));}return _0x36e477[_0x7f1ab5(0x216)]();}async[_0x21cec4(0x194)+'derTe'+_0x21cec4(0x1f8)+'es'](){var _0x10f8a1=_0x21cec4;return this[_0x10f8a1(0x318)][_0x10f8a1(0x1d4)+'st'](this['sdk'][_0x10f8a1(0x24a)+_0x10f8a1(0x1c1)]['ai'][_0x10f8a1(0x194)+'derTe'+_0x10f8a1(0x1f8)+'es'],{'baseUrl':this[_0x10f8a1(0x318)]['getBa'+_0x10f8a1(0x2bc)](),'headers':{},'body':void(0x154c*0x1+-0x20ed+0xba1)});}async[_0x21cec4(0x1d5)+_0x21cec4(0x198)+_0x21cec4(0x3c4)](_0x730496){var _0x494ceb=_0x21cec4;const _0x998238=await this['sdk'][_0x494ceb(0x1a1)+_0x494ceb(0x3a4)+_0x494ceb(0x2ab)]();return this['sdk'][_0x494ceb(0x1d4)+'st'](this[_0x494ceb(0x318)][_0x494ceb(0x24a)+_0x494ceb(0x1c1)]['ai']['media'+_0x494ceb(0x198)+_0x494ceb(0x3c4)],{'baseUrl':this[_0x494ceb(0x318)]['getBa'+_0x494ceb(0x2bc)](),'headers':_0x998238,'body':_0x730496});}async[_0x21cec4(0x1d5)+_0x21cec4(0x42e)](_0x4f6637){var _0x195552=_0x21cec4;const _0x27f9f7=await this['sdk'][_0x195552(0x1a1)+'AuthH'+_0x195552(0x2ab)]();return this[_0x195552(0x318)][_0x195552(0x1d4)+'st'](this[_0x195552(0x318)]['contr'+'act']['ai'][_0x195552(0x1d5)+'Task'](_0x4f6637),{'baseUrl':this['sdk'][_0x195552(0x475)+_0x195552(0x2bc)](),'headers':_0x27f9f7,'body':void(0x1e82+0xa84*0x1+-0x2906)});}async[_0x21cec4(0x1d5)+_0x21cec4(0x1b0)+_0x21cec4(0x3b4)](_0x2e2647){var _0x379c1a=_0x21cec4;const _0x21b3df=await this['sdk'][_0x379c1a(0x1a1)+_0x379c1a(0x3a4)+'eader']();return this[_0x379c1a(0x318)]['reque'+'st'](this[_0x379c1a(0x318)][_0x379c1a(0x24a)+_0x379c1a(0x1c1)]['ai']['media'+_0x379c1a(0x1b0)+_0x379c1a(0x3b4)](_0x2e2647),{'baseUrl':this[_0x379c1a(0x318)]['getBa'+_0x379c1a(0x2bc)](),'headers':_0x21b3df,'body':void(-0x1*0x1ad6+0xa3*-0x12+0x264c)});}async[_0x21cec4(0x1d5)+'TaskG'+'roup'](_0x3b55a9){var _0x224b2a=_0x21cec4;const _0x47ee15=await this[_0x224b2a(0x318)][_0x224b2a(0x1a1)+_0x224b2a(0x3a4)+_0x224b2a(0x2ab)]();return this[_0x224b2a(0x318)][_0x224b2a(0x1d4)+'st'](this[_0x224b2a(0x318)][_0x224b2a(0x24a)+_0x224b2a(0x1c1)]['ai'][_0x224b2a(0x1d5)+_0x224b2a(0x42a)+_0x224b2a(0x393)](_0x3b55a9),{'baseUrl':this[_0x224b2a(0x318)][_0x224b2a(0x475)+'seUrl'](),'headers':_0x47ee15,'body':void(0x838+-0x2442+0x1c0a)});}async[_0x21cec4(0x1d5)+_0x21cec4(0x24d)+'s'](_0x4e4ae2){var _0x231137=_0x21cec4;const _0x27933c=await this['sdk'][_0x231137(0x1a1)+'AuthH'+_0x231137(0x2ab)]();return this[_0x231137(0x318)][_0x231137(0x1d4)+'st'](this[_0x231137(0x318)][_0x231137(0x24a)+_0x231137(0x1c1)]['ai'][_0x231137(0x1d5)+_0x231137(0x24d)+'s'],{'baseUrl':this['sdk'][_0x231137(0x475)+'seUrl'](),'headers':_0x27933c,'body':void(0x176d+0x5bd*0x3+-0xa29*0x4),..._0x4e4ae2?{'query':{'feature':_0x4e4ae2}}:{}});}},AI_MODEL_TAGS=[_0x21cec4(0x2ca)+_0x21cec4(0x402)+_0x21cec4(0x256)+'n',_0x21cec4(0x2ca)+'_mult'+_0x21cec4(0x1e0)+'ut',_0x21cec4(0x2ca)+_0x21cec4(0x2ea)+'t',_0x21cec4(0x2ca)+_0x21cec4(0x237)+_0x21cec4(0x353)+_0x21cec4(0x4c8)+'on',_0x21cec4(0x2ca)+_0x21cec4(0x36d),'video'+_0x21cec4(0x402)+_0x21cec4(0x256)+'n',_0x21cec4(0x165)+_0x21cec4(0x365),_0x21cec4(0x1d5)+_0x21cec4(0x4cc)+_0x21cec4(0x3cf)+_0x21cec4(0x436),'media'+_0x21cec4(0x234)+'er',_0x21cec4(0x1d5)+':imag'+_0x21cec4(0x503),_0x21cec4(0x1d5)+_0x21cec4(0x2a5)+_0x21cec4(0x2be),'media'+_0x21cec4(0x296)+_0x21cec4(0x399),_0x21cec4(0x1d5)+_0x21cec4(0x149)+_0x21cec4(0x233),_0x21cec4(0x1d5)+_0x21cec4(0x17f)+_0x21cec4(0x3ee)+_0x21cec4(0x436),_0x21cec4(0x1d5)+_0x21cec4(0x17f)+_0x21cec4(0x1be),_0x21cec4(0x1d5)+_0x21cec4(0x1d8)+_0x21cec4(0x1bb)+_0x21cec4(0x2b9),_0x21cec4(0x1d5)+_0x21cec4(0x1b7)+_0x21cec4(0x180)+_0x21cec4(0x267),_0x21cec4(0x1d5)+_0x21cec4(0x358),_0x21cec4(0x1d5)+':musi'+'c',_0x21cec4(0x1d5)+_0x21cec4(0x338),_0x21cec4(0x1c5),'reaso'+_0x21cec4(0x426),_0x21cec4(0x346)+'call',_0x21cec4(0x2ca)+'_anal'+_0x21cec4(0x2b4),_0x21cec4(0x368)+'_anal'+'ysis',_0x21cec4(0x165)+_0x21cec4(0x270)+_0x21cec4(0x2b4),_0x21cec4(0x414)],_0x5e6d9d={};function _0x4001(){var _0x2d0aea=['zgLV','ywLjBwe','CMf0zq','yxv0Afi','CNrZtwe','x0Tfwvm','DxjJzvm','zsbPBwe','CgHVDg8','CNrZu3q','ywLfBMq','vxbSB2e','qwLuB28','5QIH5z6l5A625PEpia','qvbjiowCSa','zs9LCMe','BIbMywK','zhbVAw4','C0XPC3q','CgvLy2G','qM9KEsa','5QIH5z6lieLe','5yIB5Osp5Rw35OQL','CMvZB2W','BNrLBNm','57Ut5P6C57g75z6l','u2fHu04','BMfS','zw50Awy','5BEL5yw36lcd55sO','zsbYyxq','5PAh5QgJ5zYW5z2a','zgLNAxq','DgvKqxq','5OQa6io95O+p6l+W','yxrPBYa','Bg9Hzfi','DwrPBW','igrLDge','5PU05PAW5PE26zE0','vMLKzw8','BI9QC28','C2vSzG','z2uGDg8','EMvKida','5yIg5P6q57Ut5P6C','Cg9ZDgu','yw1LDgu','yxnRCW','CM91Cc8','vMvYC2K','DxrWDxq','qxnWzwm','v2HLDgG','uMvMzxi','z2v0','B1nJAgu','zwXZvxa','AfjLCxu','Aw5ZDhi','5QIH5z6l5Qch562+','5PYa5Bcp5yc8','ywn0Axy','zxj0Eq','DxrPB24','z2v0qMe','qxv0Aem','5l6B5BQu5zwg5yIx6kgO','BNnszxe','AxPL','Ag1LBNq','Bgvszxe','zw5Jzsa','DhrWrxi','55sF5OIq5zU+54Mh5A69','rw5KifK','igr1CMe','5yQO5l2C6l+b56E7','zsbPBIa','CNvUBMK','CIbTDwW','Aw5Mzxi','u2vYDMu','BgvK','D2LZzsi','tgLZDeK','zs5NlIa','CMvMCMu','vgfYz2u','DxbZy2e','rw5KifG','qM90Dg8','CMvJB3i','6kEg6Akr5QIH5z6l5PYa','AcbJB24','Aw50zwq','55Qe5PYa5PAW5PU05PAW','BsbLEha','55sF5OIq6kEg6Akr5PE2','5Bc+5BIN5zU+54Mh','DgfZAW','BwfYAW','yxjHBwu','DgLSDa','Dw5PB24','ChjVBxa','z2vszxm','5y+c5PwW5A6A5lMj','B2rLBhm','zwXtDwm','igvYyxm','CY9SAxm','DgvTu2m','AwvUDa','5PYa5AsN5yc8','DgHLigq','B2DVDxq','DgLVBIa','Bwf4','6AkD5Asw5y+c5PwW','CMvHBq','5PIV5zcM5PsV5OYb5y+c','mtOX','5zU+54Mh57Yw6l6r','B3rH','zMvYzw4','zxbYB2q','CMSGCMu','C3rty2G','zxjLBMm','zwXZuMu','EMvtA2K','tgvMDca','Aw5WywK','AwDUB3i','AwrLCI0','yxLSB2e','Aw50','C0rLDge','Dw1Tyxi','BwfNzsa','BMDZAwq','qNvMzMu','igLZihi','otGXmZe5sKfyAuH5','l2rVD24','CxvLDwu','u2nLBMu','zxjHDgK','CxvLC3q','AevYCM8','ywnRu28','oMLTywC','kdeUmokaKW','C1vWzge','vM9Py2u','yMXL','Dwn0','Dgv4Dca','AweGvvi','C2TPBgW','BMCGDgG','z2v0qwm','Dw90yvi','y29Uzhm','ChjLBwK','Dxrty2G','zef0Dge','C1rLEhq','DgHPCYa','AwfYEuK','DcbTB3y','zgLZy3i','5lU75yQH6l+B5BQM','C2fMzva','zxjTyxi','BMfSExO','B2XZl2e','q3jLzgK','zgjHy2S','mJCWmZzLzKLzCeu','CYb3Axq','54Mh5PwW6yEp','6yEh5Qc3546hkeG','CgfZC3q','vgv4Dca','rwrPDa','Bwf4sw0','uMLNAhq','BNvTyMu','zgLYzwm','AgLZihm','DxbSB2e','AhjVDwC','EvnJAgu','CM9S','sYdPGilPHy3LMAG','zwXMu2m','572r5PcC57sI','CMvJB20','5O6O6i2q6kgm5lI65yIx','DgLVBMe','BMfSihi','DxnLCKu','y2HHDc8','6l6t5yE66io95yQB','DgvYihq','zuvKAxq','igzYyw0','BgLZDa','ig1LC3m','C2HPCeW','ignSB24','y2XVy2S','yxrLqMe','AfjLC3a','BhndBgK','5PwW5A2x5lQ6','5zU+5yop5A696AUy5Q+u','6zsz6k+V5l+H5OgV','mtbQCfDnAgK','uMvXDwu','5zco5PU05PAW5PE26zE0','yMXLihC','B2jQzwm','DhmGy28','5AsA5zU+6l6t5ywL','BguVDxa','zcbMywK','ignVzgu','C2SV','ywjPBgK','zwrLza','CLjLCxu','BhrP','BMfSiha','thmGkge','CML6zq','CMvHC28','oM1HDhq','DwnPyMK','BNnL','CgXVywq','zgvV','C3vTBwe','5QIH5z6l6io95yQB','CMvHza','zgf0Aw8','AwfYEum','z3rOicG','zvbYB3a','5A6y572r5zYW5z2a','ywnRtgK','EhbHBNm','zxzLBfm','ysbTB3y','5l2/55sO5zY65PMV','zMLSzq','yw5HBhK','Aw9Uihi','zg93BMW','DxjS','zxqTC3q','AwXszxe','yM9HCMq','B2TLBG','5PAh55sF5zU+','yxvKAw8','BhnqyxK','DhrZ','y3jPyMK','6z+Z5Pwi55sF5OIq','rwrPDgK','DfjHDgK','y2f0y2G','6l6t5ywL5y+c5PwW','6l6t5ywL5zU+54Mh5yIx','5zU+54Mh55cg6kEJ','B3v0Chu','Aw9U','BNnLu2m','mty1mZu0mtbOzfP0CfO','DxnLCL8','AgvTyq','CNLty2G','Aw4GC2u','EgnOyw4','Aw5MAw4','DcbYzxm','C3rHCNq','6ycA55sO6io95yQB','DxnLCLm','zxiGDg8','oNzPzgu','B25uCMe','CM9ZCYa','DgvKuMu','DcbTzwq','vgfZA1m','ywLnzwq','tMv0D28','tw90Aw8','B3jKAw4','6zw/5BQMkeSP','Bg9Hzca','Bwv0Ag8','6l+u5zUE5PwW5O2U','5l6B5BQu5zwg','AwrLBNq','AfvZzxi','5lUfihbLCG','qxjJAgK','ue9tva','z2LMEq','ChjVDMK','BfnJAgu','qxv0Ag8','ywjSzsa','r2vUzxi','5QIH5z6l5yIx6kgO','CYbUB3q','B2rL','5Oc757Ut5yAf5A65','6ygU572P5zU+','ywKVDg8','5PIV5zcM5PsV5OYb6AAw','DwvZDfm','yNvPBgq','yxr0ywm','ywWGAhu','AxbSAwu','6l6t5yE65y+c5PwW','DgvKvw4','Afn1y2m','zwXMuMu','ChjPDMe','zwXszxe','DhjPBq','ywXSihq','zwXqyxi','BgL0zxi','zsbKzxm','q2fUy2u','Bhnszxm','B3bZ','zw50twu','C0nSAwu','yxrLuMu','zxnWB24','oM1VDgK','y3rVCG','ihzPzgu','zxqGBMe','DgfSshu','q29Kzq','yw5ZAw8','B0vKAxq','tw92zw0','ieLe','ywn0','yxjZzvi','DgLVBG','ywnRu3u','y2HHDa','z3jVDxa','DhrZuMu','ywfZ','A1jLC3u','zxH0','Aw9pDxq','BMnL','5l6B5BQu5zwgieK','Bg9Hzfm','AYbHBg8','zwXZuge','BhntDwm','iIWGiMK','y2f0Aw8','CMvXDwu','BwvKAwe','zgvSu2m','AwXLza','oMrPz2K','l2vYyxm','EM9VBq','tgfZDca','y2fUy2u','BMfSig0','zsbPBNa','BYbUyxi','Av9PBNa','C3rqyxK','BNb1Dfm','BMzPz3u','uMvZDwW','z2vszxe','CML6zvi','C3vJy2u','u3rVCNK','iMXLzNq','DMLKzxi','yxnRigy','thvJAwq','AwfYEq','5PIV5zcM5B+f5AgR','5lIT5PAh57+76k+r5O+p','vMLZAwi','Bg9NB3u','6k+T6z+Z5zci5OIq','yw5Kihi','zw5Jzq','iddIGjmXkq','zgf0zwq','zgvZy3i','BxbSyxq','mtaP','Cgf0Aa','B3v0Cge','ig91Dha','y2HHCMe','mokaKZeP','ihrHC2S','tMvNyxq','Dw5RBM8','ndK2CgHmD1rZ','CMvMAw4','ifKGy28','zw5Klwe','BNnPB24','DgXLihq','AwDPDge','mty6oq','ChvIBgK','t3b0Aw8','zxn0u2m','zxqGAwq','5PIV5zcM5PsV5OYb6ygU','zMvLzgi','5O+q56s66k+n','B3b0Aw8','yw5szxe','y29UDgu','y3rLCG','rMvHDhu','ANnVBG','5PIV5zcM5PsV5OYb57Ut','yM1PDfi','DcbHC3a','ihjHDgK','DgLMAwu','CIbVzIa','6igk5AsP5QIH5z6l5PYa','zvnJAgu','Bgv2zwW','CMf0zsa','C1jLCxu','BIbZDhi','ugvYC28','5B6f5Oc757Ut5PAh5PYS','C1jLC3a','icGXlJa','6io95yIx6kgO','AwfYEs8','AgvHzgu','yxv0AeW','zsdLM77MOiFLKi0','zxjdyxm','BMfTzq','5PIV5zcM5yYf5zcR6z+Z','quLFtu8','C3rYDwm','igrVD24','zwzYzxm','Aw5N','oNbVC3q','zM9Yrwe','qKvmuW','x211Bhq','5Q+p5QYH6lcd55sO5RAi','yxrLtw8','Dg9mB3C','igLKzw4','6l6t5ywL5PAh5PYS','ywLszxm','ywKVDge','zgLHl3q','5yIg57g75Qch562+','CM90yxq','C2vxyxq','zgvYCW','y3vZDg8','5zU+54Mh55sF5OIq','AwzPzxi','ywnRrgu','BxaZ','Dw1HBIa','y29UDhi','t3DUzxi','BwfUig0','tw9KzwW','5P6e5yYw6l6t5yE6','AwXZicG','BMnLigK','DcbKzxm','A0nYzwe','5y+c5PwW57g75z6l','BMfSigy','zw1Izxi','CMf0Aw8','4OctmI4Wkq','ihbYzxm','C2SGC3q','ig1Vzgu','Aw1PBMe','A0nHBMm','ywDLigK','Bgv0Aw8','mLL3DxLlqW','6BUy6k6K5yc8','y3jHD2W','ndOZ','ysbMB3i','yw1Zu2m','yxnRlW','u3rHDhu','BNnMzxi','qxv4AwW','uMvZB2W','r3jVDxa','l2fWAs8','teLuwv8','yxrPB24','Cg9ZAxq','zMv0y2G','x2fUywW','ywKVAw0','ywLuB28','yxrLC1m','quDt','5PIV5zcM5PsV5OYb5AsA','5RIf5PMW5BQM','CxvVDge','6kgm5lI65Qch6k+g56YM','CY91Cgq','AxjLzca','rxjYB3i','BgXZuMu','CgfYC2u','DhmGDg8','BcbMB3i','De1Vzgu','zcbku08','CM91Cfi','AxzLiha','zwXeyxq','zw50','CYaOmokaKW','ywnRu2e','BNqTzgK','ignVB3i','zgvMyxu','DgfSigG','4OctmsK','u2nOzw0','5AQs5l2t57g75z6l','ywLuyxm','ywXiDw0','5y+c6icd6kEg6Akr','vxbZy2e','D2L0Aee','yxnLnJq','ihbYB3y','oM91Dha','rgLNAxq','vhLWzvm','mZOY','zwnVBw0','C3rHDhu','C3bVC2K','AgvTysa','BwvZC2e','zgvMAw4','Dw5Yzwe','yxj0rw4','yxrHu2m','qMvHCMu','zxf1zxm','oNvWC2m','BMCGAw4','CML6yxq','C3rYzw4','q2fTzxi','ywLdAge','zwfKzxi','z2vUzxi','yxrLC1i','6icx55Qe56EV5yIg77Yi','6z+Z6iMYieLe','ywLwAwq','yY9HAs8','zw1HAwW','6zw/77Yi56Es77Yj','ExnPCW','C2u2nca','DgvKu3u','5A6I5OI356UV5A6E5l6l','B2zMAwm','BwfU','CIbZDhK','DgfKyxq','C2vvCMW','55sF5OIq5zU+54Mh5PwW','ywXL','DgKTC2m','zwf0Dxi','Dgv4Da','DhvZu2m','rwrPDca','ywLfCNi','zNjHBwu','Dg9tDhi','D2f2','yNvN','BIiSici','Aw1Hz2u','zgv0ywK','CYbHihm','Cgf5Bg8','B3aG54Mi5PYS','BgL0zq','u291CMm','uMvZCg8','ihnJzw4','Aw8Gkde','6AAw5BIN5zU+54Mh','y2nLC3m','B3vW','6z+Z6Akr55cg6kEJ','y2HLBwe','DMfSAwq','DxnLCG','BwLU','yxv4AwW','igLTywC','AwjL','DxnLCI8','C3nPBMC','vg90ywW','5y+n5zcr5O+q56s66k+n','igrLC2m','yxrLicG','B2X1DgK','yxbWBgK','zw1H','yxv0Aa','igDLBMu','x2LUChu','zw9jBNa','ywnRsxq','Chv0u2m','DgfPBfa','DgLLC0K','t1vuufu','B3rOzxi','5lU75yQH54Q25Ocb5P6A','BMDL','Bw90Aw8','6z+Z6Akr5Qc85BYp','v2f0zxi','5y+w5RAi57Ut5P6C54Q2','rMvLzgi','zwXszxm','CMvZCg8','CMvty2G','C3rHBMq','zw50igK','y2f1C2u','yxbWzw4','CNrZuMu','mta4mdy2ng1TB3PxBq','B25tDw0','B2rLBca','y3rPB24','yxntDge','qxvKAw8','zMLJiha','5PIV5zcM5PsV5OYb6igu','ihrLEhq','5lU75yQH57Ut5P6C57g7','zxjYB3i','A1n1y2m','oM11C2K','B2fK','B25Zzvm','5l6B5BQu5zwg5zcn56EW','5y+c5PwW6k+05PIo','l2nHBMm','5AQs5l2tifvs','C3bLy2K','BIbPBwe','BgXZ','zwn0ihi','C2rR','rxH0CMe','DM9Pza','rw5K','ywnRrw4','DfnJAgu','z3vPzge','BMzLCLi','u3rHCNq','C0rVD24','ywKVDMK','BgLLBNq','vgvTCgW','B3iGAw4','u2vLzca','C3rYAw4','ywnRlW','y2vUzq','ihrVigq','mI4Wkq','6z+Z6Akr5QIH5z6l5PYa','rxHWyw4','zcbIEsa','zxjHC2u','ywnR','z2vjBNa','BNvSBge','ihrYywm','BhnfBMq','zw9szxe','ywLbDwq','A1n0yxq','oNnMEa','DgfPBfi','DgL0Bgu','vgfZAYa','6kEg6Akr55sF5OIq','CM1HBgK','C1f1zxi','yvnJAgu','zfnJAgu','6kgm5lI65O+p6l+W','DenVBxa','zxiGDgG','zgLZywi','AwXPDhK','Dg9VBf8','zg9SBhK','ywnRvhK','B3b1CW','igrHDge','C0vUzha','Cg9UC2u','igzVCIa','yxv0Aeu','zMLYC3q','zwXdyxa','yxrPBW','ihvWC2m','Av9Nzw4','6z+Z5lMq55sF5OIq','Axr5icG','BNnLihm','yxjK','oNr0CW','BNrOzxm','zNvUy3q','Aw9szxe','qxreyxq','ywDL','5Q2L6l+B5yc8','Bw9KzwW','zxn0igu','BcbODw0','ywLnB2q','yxjYyxK','A0rHDge','x3r0CW','igrPz2K','AwfSx3u','DMLKzw8','zsbMAwW','zMfPBgu','5PYa5AsN5lIk5lIl5PAh','AwfYEve','x2vKAxq','C1nJAgu','l3rYCgm','zMvHDhu','yxr1CW','6k6K6k+b5PA55BYp','Dxnty2G','BNqGDge','CLnJAgu','ig1LzgK','6Akr6l6t5yE6','zgLUyxq','5lU75yQHieLe','l21Vzgu','CMLWDgK','CgnT','ig11Bhq','5RAi6icx56EV5yIg','revmx0m','A1jLC3a','zxHJAge','5lIT5PAh57+76k+r5zcn','quKGu0q','B3jszxm','vxnLCKm','5QIH5z6l5zcn56EW','B25ZDw0','y2vZC1q','5PIV5zcM5OIq5yQF','zxHWyw4','DhLdB20','AwXszxm','C3qGC2m','sw5KAxy','mtqZmZC5uM5gvuPh','CM9TChq','rMLYC3q','Axn0','CM91Ca','mJe1mZC1nhvHDwDYCa','rwL0Agu','Cgvty2G','DxqGAw0','BI9Vy3q','ywLUDa','EMLW','yxjZzq','B2XZl3m','CgfU','5zU+54Mh5QIH5z6l5PYa','ig9Yigi','igv4Cge','sw5WDxq','zezPBgu','C2vty2G','qxv0AeG','C2vSzwm','BIbWyxq','igfYzwe','BM9YBwe','BwvUzee','AxnZDwu','yM9KEq','AweGzMu','y2vwAwq','ywLdBgK','u2fHu0G','y2HHDe0','zhjHzNq','ysbYzwy','CM91Ceq','BfrHC2S','CgvYzM8','AguGz3i','zw51Bq','B3bTzw4','zw5LigC','DgvKrge','CM1HBMm','AwD1CMe','5y+c5PwW5A2x5Q61','BNnLvhK','ifGGy28','lNnRAwW','su5qvvq','BMCGBw8','Bwf0y2G','yxrL','lJdIGjmYlG','C2LVBIa','BYaOms4','zxH0zw4','C3r5BgK','yxnRlwC','CNjVCLm','zxHJBhu','r0vu','B2LUDhm','zuDLBMu','6lAf5RIf5Ps+5AsN','BIbYyxq','BNnLigK','BwfYEvm','C3qGzMe','zsbVCgu','vgfZA0K','5PIV5zcM5PsV5OYb6z+Z','DxrZu2m','u2TPBgW','igzVCM0','BgL0Esa','igvKAxq','DgfY','A0vYCM8','5Bgv56s65zcn56EW','BgL6zwq','z2f0Axy','ndy4nZm0n1f5r29eCG','DwnJzwu','6l6t5ywL6io95yQB','CM91Cfm','C3vWCg8','CIb1CMW','zsaOBM8','BM9UBMu','uxvHBgK','yMfZzvu','zgf0zxq','u2fHu1m','B0DLBMu','Dgfty2G','ihzHBgK','zsb0BYa','y2vZC1m','u3vTBwe','AwfjBNa','zw50CMK','DwnJzxm','CNjVCG','55sF5OIq6kEg6Akr5A69','zwzLCMu','yxv0Ac8','5PYa5AsN6l6t5ywL5zU+','5AsA5zU+55sF5OIq','revmx1q','rgvZA3q','yxv0B20','Bwf0u2m','AgvUihm','x2DLBMu','Awr1ywW','55sF5OIq5zU+54Mh6lsO','A2v0y2G','zs1ZA2K','DgLLC1m','t3v0Chu','C3bVBNm','BgLWu3K','ywKVyxu','zw1LBNq','ywnRl2W','DMvgB3i','6zsz6k+V56cb','u3r5Bgu','zNjLzq','BMrWB2K','Dg8GC3K','y29Kzq','BNqTDhK','CNrZqxu','AxzL','D3jPDgK','yM9VBgu','z2uGB3i','Aw1L','Bg9NAw4','qwLdBgK','6kgm5lI65Qch562+','ywLqCM8','zxnZu2m','zM9Yihq','B24GChi','C2HuB2S','C3rszxe','mokaKZiUma','BMLUzW','BNvSBgK','C3vIBwK','5lYA6k+DieLe','vgfZA0C','ywKVBwu','5B6f5zci5OIq5PAh5PYS','5y6F5AEl5OQa6io95zcn','vgfZAW','z2v0uxu','igzHAwW','yxrLu2m','w3nKA10','5zU+5yop6lsO6yEp'];_0x4001=function(){return _0x2d0aea;};return _0x4001();}_0x5e6d9d[_0x21cec4(0x2ca)+_0x21cec4(0x402)+_0x21cec4(0x256)+'n']=_0x21cec4(0x164),_0x5e6d9d[_0x21cec4(0x2ca)+_0x21cec4(0x237)+'i_inp'+'ut']=_0x21cec4(0x13c),_0x5e6d9d[_0x21cec4(0x2ca)+_0x21cec4(0x2ea)+'t']='图片输入',_0x5e6d9d['image'+_0x21cec4(0x237)+_0x21cec4(0x353)+_0x21cec4(0x4c8)+'on']=_0x21cec4(0x3fc),_0x5e6d9d[_0x21cec4(0x2ca)+'_edit']=_0x21cec4(0x4af),_0x5e6d9d['video'+_0x21cec4(0x402)+_0x21cec4(0x256)+'n']=_0x21cec4(0x33c),_0x5e6d9d[_0x21cec4(0x165)+_0x21cec4(0x365)]=_0x21cec4(0x1f2),_0x5e6d9d['media'+_0x21cec4(0x4cc)+_0x21cec4(0x3cf)+_0x21cec4(0x436)]=_0x21cec4(0x245),_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x234)+'er']=_0x21cec4(0x44a),_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x4cc)+_0x21cec4(0x503)]=_0x21cec4(0x4af),_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x2a5)+_0x21cec4(0x2be)]=_0x21cec4(0x3d0),_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x296)+_0x21cec4(0x399)]='扩图',_0x5e6d9d['media'+':matt'+_0x21cec4(0x233)]='抠图',_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x17f)+_0x21cec4(0x3ee)+_0x21cec4(0x436)]=_0x21cec4(0x33c),_0x5e6d9d['media'+_0x21cec4(0x17f)+_0x21cec4(0x1be)]='视频编辑',_0x5e6d9d[_0x21cec4(0x1d5)+':digi'+_0x21cec4(0x1bb)+_0x21cec4(0x2b9)]=_0x21cec4(0x50d),_0x5e6d9d['media'+_0x21cec4(0x1b7)+_0x21cec4(0x180)+_0x21cec4(0x267)]=_0x21cec4(0x481),_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x358)]=_0x21cec4(0x1f2),_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x30d)+'c']=_0x21cec4(0x354),_0x5e6d9d[_0x21cec4(0x1d5)+_0x21cec4(0x338)]=_0x21cec4(0x169),_0x5e6d9d[_0x21cec4(0x1c5)]='对话',_0x5e6d9d[_0x21cec4(0x148)+_0x21cec4(0x426)]='推理',_0x5e6d9d['tool_'+'call']=_0x21cec4(0x451),_0x5e6d9d[_0x21cec4(0x2ca)+_0x21cec4(0x270)+_0x21cec4(0x2b4)]=_0x21cec4(0x16f),_0x5e6d9d[_0x21cec4(0x368)+_0x21cec4(0x270)+_0x21cec4(0x2b4)]='视频理解',_0x5e6d9d[_0x21cec4(0x165)+_0x21cec4(0x270)+'ysis']=_0x21cec4(0x2d7),_0x5e6d9d[_0x21cec4(0x414)]='代码';var AI_MODEL_TAG_LABELS=_0x5e6d9d,AI_MODEL_CAPABILITY_INPUT_KEYS=[_0x21cec4(0x4ef)+'ages','suppo'+_0x21cec4(0x438)+'sk','suppo'+_0x21cec4(0x300)+_0x21cec4(0x4b1)+_0x21cec4(0x3ad)+'eo',_0x21cec4(0x3e6)+_0x21cec4(0x43d)+_0x21cec4(0x2a1)+'d'],AI_MODEL_CAPABILITY_OUTPUT_KEYS=[_0x21cec4(0x3e6)+'rtsMu'+_0x21cec4(0x144),_0x21cec4(0x3e6)+_0x21cec4(0x416)+'dio'],Endpoint=class{['metho'+'d'];['path'];[_0x21cec4(0x2fa)+'nseTy'+'pe'];[_0x21cec4(0x1d4)+'st'];[_0x21cec4(0x2fa)+_0x21cec4(0x14b)];constructor(_0x27b4e2){var _0x450de9=_0x21cec4;this[_0x450de9(0x18b)+'d']=_0x27b4e2[_0x450de9(0x18b)+'d'],this[_0x450de9(0x1fa)]=_0x27b4e2[_0x450de9(0x1fa)],this[_0x450de9(0x1d4)+'st']=_0x27b4e2[_0x450de9(0x1d4)+'stSch'+_0x450de9(0x2e7)],this[_0x450de9(0x2fa)+_0x450de9(0x14b)]=_0x27b4e2[_0x450de9(0x2fa)+_0x450de9(0x172)+_0x450de9(0x175)],this[_0x450de9(0x2fa)+_0x450de9(0x3be)+'pe']=_0x27b4e2['respo'+_0x450de9(0x3be)+'pe']??_0x450de9(0x216);}[_0x21cec4(0x27d)+_0x21cec4(0x137)+'st'](_0x4a8f70){var _0x23dd40=_0x21cec4;return this[_0x23dd40(0x1d4)+'st'][_0x23dd40(0x27d)](_0x4a8f70);}['parse'+'Respo'+'nse'](_0x9c20e1){var _0x50b885=_0x21cec4;return this[_0x50b885(0x2fa)+_0x50b885(0x14b)][_0x50b885(0x27d)](_0x9c20e1);}[_0x21cec4(0x4e2)+_0x21cec4(0x1c2)+_0x21cec4(0x2a4)+'t'](_0x3eedd5){var _0xc80b22=_0x21cec4;return this[_0xc80b22(0x1d4)+'st'][_0xc80b22(0x4e2)+'arse'](_0x3eedd5);}[_0x21cec4(0x4e2)+_0x21cec4(0x1c2)+'espon'+'se'](_0x2ae560){var _0x122926=_0x21cec4;return this[_0x122926(0x2fa)+_0x122926(0x14b)][_0x122926(0x4e2)+_0x122926(0x39b)](_0x2ae560);}},aiVoidRequestSchema=z[_0x21cec4(0x31a)](),aiClientMetadataSchema=z['objec'+'t']({'chatSessionId':z[_0x21cec4(0x327)+'g']()['trim']()[_0x21cec4(0x2db)](0x1d1f+0x1bb9+-0x38d7)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x429))['optio'+_0x21cec4(0x44f)](),'clientId':z['strin'+'g']()[_0x21cec4(0x1ab)]()[_0x21cec4(0x2db)](-0x10*0x18e+0xe38+0x1*0xaa9)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2b7)+_0x21cec4(0x1c0))[_0x21cec4(0x211)+'nal'](),'desktopVersion':z[_0x21cec4(0x327)+'g']()['trim']()[_0x21cec4(0x2db)](0x25f4+-0x1e74+-0x77f)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3fe)+_0x21cec4(0x2ce)+'号')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'serverVersion':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1ab)]()[_0x21cec4(0x2db)](-0x1647+0xd4c*-0x1+-0x8e5*-0x4)['descr'+_0x21cec4(0x2de)](_0x21cec4(0x486)+'r\x20版本号')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'webVersion':z[_0x21cec4(0x327)+'g']()['trim']()[_0x21cec4(0x2db)](0xe1d+-0x728*-0x1+-0x1544)['descr'+_0x21cec4(0x2de)]('Web\x20版'+'本号')[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiChatSessionMetadataSchema=aiClientMetadataSchema,aiChatCompletionsRequestSchema=aiChatSessionMetadataSchema[_0x21cec4(0x3c8)+'d']({'model':z[_0x21cec4(0x327)+'g']()['descr'+'ibe'](_0x21cec4(0x449))})[_0x21cec4(0x4ec)+_0x21cec4(0x4f5)+'h'](),aiResponsesRequestSchema=aiChatSessionMetadataSchema[_0x21cec4(0x3c8)+'d']({'model':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x449))})[_0x21cec4(0x4ec)+_0x21cec4(0x4f5)+'h'](),_0x2e3158={};_0x2e3158[_0x21cec4(0x29e)+'ge']=_0x21cec4(0x395)+_0x21cec4(0x3e7)+_0x21cec4(0x39f)+_0x21cec4(0x294)+_0x21cec4(0x4c3)+'equir'+'ed';var aiMediaInputSchema=z[_0x21cec4(0x13a)+'t']({'url':z[_0x21cec4(0x327)+'g']()['url']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x313)+'L')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'base64':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)]('媒体\x20Ba'+_0x21cec4(0x2b5)+'数据')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'mediaType':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x28e))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()})[_0x21cec4(0x203)+'e'](_0x19ceb4=>Boolean(_0x19ceb4[_0x21cec4(0x15f)]||_0x19ceb4['base6'+'4']),_0x2e3158),aiImageInputsSchema=z['objec'+'t']({'images':z[_0x21cec4(0x363)](aiMediaInputSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('输入图片列'+'表')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'mask':aiMediaInputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x19d))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiVideoInputsSchema=z[_0x21cec4(0x13a)+'t']({'images':z['array'](aiMediaInputSchema)['descr'+_0x21cec4(0x2de)](_0x21cec4(0x16e)+'表')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'startImage':aiMediaInputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2d4))['optio'+_0x21cec4(0x44f)](),'endImage':aiMediaInputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x497))['optio'+_0x21cec4(0x44f)](),'referenceVideo':aiMediaInputSchema['descr'+_0x21cec4(0x2de)](_0x21cec4(0x291))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiImageAspectRatioSchema=z['enum'](['1:1',_0x21cec4(0x209),'9:16',_0x21cec4(0x262)])['descr'+_0x21cec4(0x2de)](_0x21cec4(0x50e)),aiImageQualitySchema=z[_0x21cec4(0x3b7)](['stand'+'ard','hd'])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x433)),aiImageOutputSchema=z['objec'+'t']({'count':z[_0x21cec4(0x4f1)+'r']()['int']()[_0x21cec4(0x2db)](-0x1e2+0x1*0xe3+-0x40*-0x4)['max'](-0xab9+-0x1525*-0x1+0x1*-0xa67)['descr'+_0x21cec4(0x2de)](_0x21cec4(0x2bd)+'量')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'aspectRatio':aiImageAspectRatioSchema[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x47e)+'高比')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'quality':aiImageQualitySchema[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x404)+'量')[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiVideoOutputSchema=z[_0x21cec4(0x13a)+'t']({'aspectRatio':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x3f8)+'高比')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'duration':z[_0x21cec4(0x4f1)+'r']()['posit'+_0x21cec4(0x417)]()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x496)+_0x21cec4(0x2b3))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'clarity':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x276))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'withAudio':z['boole'+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x22e)+'频')[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiAudioOutputSchema=z[_0x21cec4(0x13a)+'t']({'format':z[_0x21cec4(0x3b7)]([_0x21cec4(0x248),'wav',_0x21cec4(0x37c),_0x21cec4(0x349)])[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x2f5))['optio'+_0x21cec4(0x44f)](),'sampleRate':z[_0x21cec4(0x4f1)+'r']()['int']()[_0x21cec4(0x26e)+_0x21cec4(0x417)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4eb)+'z)')[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiAudioRequestSchema=z[_0x21cec4(0x13a)+'t']({'modelId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('模型\x20ID'),'text':z[_0x21cec4(0x327)+'g']()['min'](0x1*0x1b+0x5b*0x69+0x8f*-0x43)[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x42c)),'voice':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x2af))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'output':aiAudioOutputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1a5))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'parameters':z[_0x21cec4(0x490)+'d'](z['strin'+'g'](),z[_0x21cec4(0x201)+'wn']())[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x4ab))['optio'+_0x21cec4(0x44f)]()}),aiImageRequestSchema=z[_0x21cec4(0x13a)+'t']({'modelId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x449)),'prompt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x210)),'negativePrompt':z['strin'+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x2e2))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'style':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)]('风格')['optio'+_0x21cec4(0x44f)](),'inputs':aiImageInputsSchema['descr'+'ibe']('输入参数')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'output':aiImageOutputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1a5))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'parameters':z[_0x21cec4(0x490)+'d'](z[_0x21cec4(0x327)+'g'](),z['unkno'+'wn']())[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4ab))[_0x21cec4(0x211)+'nal']()}),aiVideoRequestSchema=z['objec'+'t']({'modelId':z[_0x21cec4(0x327)+'g']()['descr'+'ibe'](_0x21cec4(0x449)),'prompt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x210)),'negativePrompt':z['strin'+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2e2))['optio'+_0x21cec4(0x44f)](),'style':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('风格')[_0x21cec4(0x211)+'nal'](),'inputs':aiVideoInputsSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x16d))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'output':aiVideoOutputSchema['descr'+_0x21cec4(0x2de)]('输出参数')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'parameters':z[_0x21cec4(0x490)+'d'](z['strin'+'g'](),z[_0x21cec4(0x201)+'wn']())[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4ab))['optio'+_0x21cec4(0x44f)]()}),aiTaskCreatedDataSchema=z['objec'+'t']({'taskId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x379))}),aiErrorResponseSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](![])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x389)),'code':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x40f))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'message':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x135))}),aiTaskCreatedSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x389)),'data':aiTaskCreatedDataSchema['descr'+_0x21cec4(0x2de)](_0x21cec4(0x18c))}),aiTaskCreatedResponseSchema=z[_0x21cec4(0x49c)]([aiTaskCreatedSuccessSchema,aiErrorResponseSchema]),aiTaskStatusSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x4c6)+'d',_0x21cec4(0x483)+'ng',_0x21cec4(0x1e7)+_0x21cec4(0x142),_0x21cec4(0x36a)+'d',_0x21cec4(0x1dc)+_0x21cec4(0x487)])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2f2)+'举'),aiTaskResultTypeSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x2ca),_0x21cec4(0x368),_0x21cec4(0x165)])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x30a)+'型'),aiTaskErrorSchema=z['objec'+'t']({'code':z['strin'+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x40f))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'message':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('错误信息')}),aiTaskDataSchema=z['objec'+'t']({'status':aiTaskStatusSchema['descr'+_0x21cec4(0x2de)]('任务状态'),'progress':z[_0x21cec4(0x4f1)+'r']()['min'](-0xdd1+-0x93f+0x1710)[_0x21cec4(0x4aa)](0x6d7+0x1e3d+0x1*-0x24b0)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4e1))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'resultType':aiTaskResultTypeSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x44d))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'resultUrls':z[_0x21cec4(0x363)](z[_0x21cec4(0x327)+'g']())['descr'+_0x21cec4(0x2de)]('结果地址列'+'表')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'error':aiTaskErrorSchema[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x135))['optio'+_0x21cec4(0x44f)](),'creditsConsumed':z['numbe'+'r']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x37e))[_0x21cec4(0x211)+'nal']()}),aiTaskSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x389)),'data':aiTaskDataSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('返回数据')}),aiTaskResponseSchema=z[_0x21cec4(0x49c)]([aiTaskSuccessSchema,aiErrorResponseSchema]),aiTaskCancelDataSchema=z['objec'+'t']({'status':z[_0x21cec4(0x3b7)](['cance'+_0x21cec4(0x487),'proce'+_0x21cec4(0x2e0)])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2f7)+'态')}),aiTaskCancelSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x389)),'data':aiTaskCancelDataSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x18c))}),aiTaskCancelResponseSchema=z[_0x21cec4(0x49c)]([aiTaskCancelSuccessSchema,aiErrorResponseSchema]),aiModelCapabilitiesInputSchema=z['objec'+'t']({'maxImages':z[_0x21cec4(0x4f1)+'r']()['int']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x3fb)+_0x21cec4(0x4ea))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'supportsMask':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x20e)+'罩')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'supportsReferenceVideo':z[_0x21cec4(0x419)+'an']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x4ad)+'考视频')['optio'+_0x21cec4(0x44f)](),'supportsStartEnd':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x19f)+'尾帧')['optio'+_0x21cec4(0x44f)]()}),aiModelCapabilitiesOutputSchema=z[_0x21cec4(0x13a)+'t']({'supportsMulti':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x275)+'输出')[_0x21cec4(0x211)+'nal'](),'supportsAudio':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3d7)+_0x21cec4(0x377))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiModelCapabilityCommonSchema=z[_0x21cec4(0x13a)+'t']({'maxContextK':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()[_0x21cec4(0x3e9)+_0x21cec4(0x3e1)+'e']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x36b)+_0x21cec4(0x189))['optio'+_0x21cec4(0x44f)](),'supportsStructuredOutput':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x217)+_0x21cec4(0x24e))[_0x21cec4(0x211)+'nal'](),'supportsWebSearch':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x308)+_0x21cec4(0x4fa))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiModelParameterValueSchema=z[_0x21cec4(0x49c)]([z[_0x21cec4(0x327)+'g'](),z[_0x21cec4(0x4f1)+'r'](),z['boole'+'an']()]),aiModelParameterFieldSchema=z[_0x21cec4(0x13a)+'t']({'key':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('参数\x20ke'+'y'),'title':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x3df)),'description':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x311))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'type':z[_0x21cec4(0x3b7)]([_0x21cec4(0x3a5)+'t',_0x21cec4(0x4f1)+'r',_0x21cec4(0x419)+'an',_0x21cec4(0x2c1)])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x253)),'unit':z['strin'+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('单位')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'values':z[_0x21cec4(0x363)](aiModelParameterValueSchema)['descr'+_0x21cec4(0x2de)]('可选值')[_0x21cec4(0x211)+'nal'](),'min':z['numbe'+'r']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x471))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'max':z['numbe'+'r']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4a6))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'step':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x35e))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'default':aiModelParameterValueSchema['descr'+_0x21cec4(0x2de)](_0x21cec4(0x260))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'request':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1ee))}),aiModelParamsSchema=z[_0x21cec4(0x13a)+'t']({'features':z['array'](z[_0x21cec4(0x327)+'g']())[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('参数特性')['optio'+_0x21cec4(0x44f)](),'fields':z[_0x21cec4(0x363)](aiModelParameterFieldSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3bd))[_0x21cec4(0x211)+'nal']()}),aiModelCapabilitiesSchema=z[_0x21cec4(0x13a)+'t']({'common':aiModelCapabilityCommonSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x17c))[_0x21cec4(0x211)+'nal'](),'params':aiModelParamsSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x49f))['optio'+_0x21cec4(0x44f)](),'input':aiModelCapabilitiesInputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3e4))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'output':aiModelCapabilitiesOutputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x501))['optio'+_0x21cec4(0x44f)]()}),aiModelSchema=z[_0x21cec4(0x13a)+'t']({'id':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('模型\x20ID'),'name':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x386))['optio'+_0x21cec4(0x44f)](),'familyId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x441)+'ID')[_0x21cec4(0x211)+'nal'](),'providerId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('供应商\x20I'+'D')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'tags':z[_0x21cec4(0x363)](z[_0x21cec4(0x327)+'g']())[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('模型标签')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'capabilities':aiModelCapabilitiesSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x14f))[_0x21cec4(0x211)+'nal'](),'creditsPerCall':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x238)+_0x21cec4(0x2ae)+_0x21cec4(0x190)+'_call'+'\x20计费模型'+')')[_0x21cec4(0x211)+_0x21cec4(0x44f)]()})[_0x21cec4(0x4ec)+'hroug'+'h'](),aiModelsPayloadSchema=z[_0x21cec4(0x13a)+'t']({'data':z[_0x21cec4(0x363)](aiModelSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('模型列表'),'updatedAt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x45b))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiModelsSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x389)),'data':aiModelsPayloadSchema['descr'+_0x21cec4(0x2de)]('返回数据')}),aiModelsResponseSchema=z[_0x21cec4(0x49c)]([aiModelsSuccessSchema,aiErrorResponseSchema]),aiChatModelSchema=z[_0x21cec4(0x13a)+'t']({'id':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x449)),'provider':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x18d)),'displayName':z['strin'+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x3df)),'familyId':z[_0x21cec4(0x327)+'g']()['descr'+'ibe']('模型家族\x20'+'ID')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'tags':z['array'](z[_0x21cec4(0x327)+'g']())[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x470)),'capabilities':aiModelCapabilitiesSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('模型能力')['optio'+_0x21cec4(0x44f)]()}),aiChatModelsPayloadSchema=z[_0x21cec4(0x13a)+'t']({'data':z[_0x21cec4(0x363)](aiChatModelSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('模型列表'),'updatedAt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x45b))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiChatModelsSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x389)),'data':aiChatModelsPayloadSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x18c))}),aiChatModelsResponseSchema=z[_0x21cec4(0x49c)]([aiChatModelsSuccessSchema,aiErrorResponseSchema]),aiModelsUpdatedAtDataSchema=z[_0x21cec4(0x13a)+'t']({'chatUpdatedAt':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x21d)+_0x21cec4(0x138)),'imageUpdatedAt':z['strin'+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x39e)+'后更新时间'),'videoUpdatedAt':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x491)+_0x21cec4(0x138)),'audioUpdatedAt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x32c)+_0x21cec4(0x138))[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'latestUpdatedAt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe']('所有模型中'+_0x21cec4(0x494)+'时间')}),aiModelsUpdatedAtSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x389)),'data':aiModelsUpdatedAtDataSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x18c))}),aiModelsUpdatedAtResponseSchema=z[_0x21cec4(0x49c)]([aiModelsUpdatedAtSuccessSchema,aiErrorResponseSchema]),aiModelsRequestSchema=aiVoidRequestSchema,aiTaskRequestSchema=aiVoidRequestSchema,aiTaskCancelRequestSchema=aiVoidRequestSchema,aiProviderTemplateModelSchema=z['objec'+'t']({'id':z['strin'+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x449)),'providerId':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)]('供应商\x20I'+'D'),'displayName':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x427)+'sh']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3df)),'description':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x427)+'sh']()['descr'+_0x21cec4(0x2de)]('模型描述'),'familyId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x441)+'ID')[_0x21cec4(0x211)+'nal'](),'tags':z[_0x21cec4(0x363)](z[_0x21cec4(0x327)+'g']())[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x470)),'capabilities':aiModelCapabilitiesSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x14f))[_0x21cec4(0x211)+'nal']()}),aiProviderTemplateSchema=z['objec'+'t']({'id':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1cd)+'D'),'label':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x310)),'adapter':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x383)+_0x21cec4(0x4f8)+'标识'),'apiUrl':z[_0x21cec4(0x327)+'g']()['descr'+'ibe'](_0x21cec4(0x442)+'址')[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'authType':z[_0x21cec4(0x327)+'g']()['descr'+'ibe'](_0x21cec4(0x372))['optio'+_0x21cec4(0x44f)](),'websiteUrl':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x427)+'sh']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x155)),'docUrl':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x427)+'sh']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x453)),'models':z['array'](aiProviderTemplateModelSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x199))}),aiProviderTemplatesPayloadSchema=z[_0x21cec4(0x13a)+'t']({'providers':z[_0x21cec4(0x363)](aiProviderTemplateSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x477)),'updatedAt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x45b))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),aiProviderTemplatesSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x389)),'data':aiProviderTemplatesPayloadSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x18c))}),aiProviderTemplatesResponseSchema=z[_0x21cec4(0x49c)]([aiProviderTemplatesSuccessSchema,aiErrorResponseSchema]),aiProviderTemplatesRequestSchema=z[_0x21cec4(0x31a)](),mediaFeatureSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x2ca)+_0x21cec4(0x198)+_0x21cec4(0x3c4),'poste'+'r',_0x21cec4(0x2ca)+_0x21cec4(0x4ee),_0x21cec4(0x48d)+'le',_0x21cec4(0x1fb)+_0x21cec4(0x4bd),_0x21cec4(0x368)+_0x21cec4(0x198)+_0x21cec4(0x3c4),_0x21cec4(0x454)+_0x21cec4(0x290)+'an',_0x21cec4(0x167)]),mediaAspectRatioSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x4ae),'16:9','9:16',_0x21cec4(0x262),_0x21cec4(0x299)]),mediaResolutionSchema=z[_0x21cec4(0x3b7)](['1K','2K','4K']),mediaQualitySchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x3b1),_0x21cec4(0x2fc)+_0x21cec4(0x357),'hd']),baseFields={'count':z[_0x21cec4(0x49c)]([z['liter'+'al'](0x2f*-0x61+0x259a+-0x13ca),z['liter'+'al'](0x2a3+-0xada+0x839),z[_0x21cec4(0x1ae)+'al'](0x1b3b*-0x1+-0x1920+-0x1*-0x345f)])[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Numbe'+_0x21cec4(0x21c)+_0x21cec4(0x170)+_0x21cec4(0x27e)+_0x21cec4(0x2e9)+_0x21cec4(0x436)),'quality':mediaQualitySchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x408)+'t\x20qua'+_0x21cec4(0x3db)+_0x21cec4(0x21f)),'seed':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x326)+'for\x20r'+_0x21cec4(0x4b2)+_0x21cec4(0x14a)+'lity'),'style':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x410)+_0x21cec4(0x258)+_0x21cec4(0x1ba)+'me'),'negativePrompt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x200)+_0x21cec4(0x283)+_0x21cec4(0x390)+_0x21cec4(0x34d)+_0x21cec4(0x3cc)+_0x21cec4(0x3c6)+_0x21cec4(0x31e)+_0x21cec4(0x1cc)),'parameters':z[_0x21cec4(0x490)+'d'](z[_0x21cec4(0x327)+'g'](),z[_0x21cec4(0x201)+'wn']())[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x319)+_0x21cec4(0x295)+_0x21cec4(0x4bb)+_0x21cec4(0x314)+_0x21cec4(0x307)+_0x21cec4(0x49a)+'ters')},mediaGenerateBaseSchema=z[_0x21cec4(0x13a)+'t']({'feature':mediaFeatureSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x48c)+_0x21cec4(0x183)+_0x21cec4(0x3ac)+'ature'),...baseFields}),imageGenerateModeSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x2c1),'refer'+_0x21cec4(0x1f4),'sketc'+'h',_0x21cec4(0x1fd)+_0x21cec4(0x214)]),imageGenerateRequestSchema=z[_0x21cec4(0x13a)+'t']({'feature':z[_0x21cec4(0x1ae)+'al'](_0x21cec4(0x2ca)+_0x21cec4(0x198)+_0x21cec4(0x3c4)),...baseFields,'prompt':z['strin'+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x4ed)+_0x21cec4(0x49d)+_0x21cec4(0x251)+_0x21cec4(0x168)+_0x21cec4(0x4d5)+_0x21cec4(0x1af)+'ired\x20'+_0x21cec4(0x2ca)),'aspectRatio':mediaAspectRatioSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x408)+_0x21cec4(0x219)+_0x21cec4(0x317)+_0x21cec4(0x351)),'resolution':mediaResolutionSchema[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x408)+_0x21cec4(0x17a)+_0x21cec4(0x2e5)+'on'),'mode':imageGenerateModeSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Gener'+'ation'+_0x21cec4(0x25a)),'inputs':z[_0x21cec4(0x13a)+'t']({'images':z[_0x21cec4(0x363)](aiMediaInputSchema)[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x46a)+_0x21cec4(0x47c)+_0x21cec4(0x2ca)+_0x21cec4(0x286)+_0x21cec4(0x1f9)),'isSketch':z[_0x21cec4(0x419)+'an']()[_0x21cec4(0x211)+'nal']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x469)+_0x21cec4(0x343)+_0x21cec4(0x1de)+_0x21cec4(0x397)+_0x21cec4(0x25d)+_0x21cec4(0x2cc)+_0x21cec4(0x405))})[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3a1)+_0x21cec4(0x376)+'a\x20ref'+'erenc'+'es')}),posterRequestSchema=z[_0x21cec4(0x13a)+'t']({'feature':z[_0x21cec4(0x1ae)+'al'](_0x21cec4(0x462)+'r'),...baseFields,'title':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Main\x20'+_0x21cec4(0x33a)+_0x21cec4(0x309)),'subTitle':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Subti'+_0x21cec4(0x207)+_0x21cec4(0x1ca)),'bodyText':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x448)+_0x21cec4(0x4d2)+_0x21cec4(0x213)+'nt'),'prompt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4ed)+'promp'+_0x21cec4(0x251)+_0x21cec4(0x168)+'ng\x20th'+_0x21cec4(0x1af)+_0x21cec4(0x27a)+_0x21cec4(0x462)+_0x21cec4(0x2ba)+'le'),'aspectRatio':mediaAspectRatioSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x408)+'t\x20asp'+_0x21cec4(0x317)+'atio')}),imageEditModeSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x46f)+_0x21cec4(0x4d1),_0x21cec4(0x3c9)+'ze','color'+_0x21cec4(0x479),_0x21cec4(0x4b9)+'nt',_0x21cec4(0x32f),_0x21cec4(0x32f)+_0x21cec4(0x2f6)+_0x21cec4(0x499)]),imageEditRequestSchema=z[_0x21cec4(0x13a)+'t']({'feature':z[_0x21cec4(0x1ae)+'al']('image'+_0x21cec4(0x4ee)),...baseFields,'prompt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x16a)+_0x21cec4(0x2a6)+_0x21cec4(0x230)+_0x21cec4(0x4a9)+_0x21cec4(0x49d)+'t\x20(op'+_0x21cec4(0x4fd)+_0x21cec4(0x27f)+_0x21cec4(0x4a2)+_0x21cec4(0x443)+_0x21cec4(0x242)+_0x21cec4(0x4e3)+'k)'),'mode':imageEditModeSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Editi'+_0x21cec4(0x3c2)+'de'),'inputs':z['objec'+'t']({'image':aiMediaInputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2d0)+_0x21cec4(0x43b)+_0x21cec4(0x45f)+_0x21cec4(0x3dc)),'mask':aiMediaInputSchema['optio'+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Optio'+_0x21cec4(0x1dd)+_0x21cec4(0x1eb)+_0x21cec4(0x325)+'paint'+_0x21cec4(0x1d9)+_0x21cec4(0x3d5)+_0x21cec4(0x256)+'ns')})[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3a1)+'\x20medi'+_0x21cec4(0x263)+_0x21cec4(0x3dc)+'ing'),'strength':z['numbe'+'r']()['min'](-0x164a+0x476*0x5+-0x4)[_0x21cec4(0x4aa)](-0x248b+0x1e05*-0x1+0x1*0x4291)[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x2c3)+_0x21cec4(0x2a8)+_0x21cec4(0x153)+_0x21cec4(0x1fe))}),upscaleRequestSchema=z[_0x21cec4(0x13a)+'t']({'feature':z[_0x21cec4(0x1ae)+'al'](_0x21cec4(0x48d)+'le'),...baseFields,'scale':z[_0x21cec4(0x49c)]([z[_0x21cec4(0x1ae)+'al'](0x2613+0x165e+-0x6b7*0x9),z['liter'+'al'](0xbad+-0x2e*0x30+-0x103*0x3)])[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x292)+'le\x20fa'+_0x21cec4(0x1b8)),'inputs':z[_0x21cec4(0x13a)+'t']({'image':aiMediaInputSchema[_0x21cec4(0x1f7)+'ibe']('Sourc'+_0x21cec4(0x43b)+_0x21cec4(0x45f)+_0x21cec4(0x352)+_0x21cec4(0x2be))})[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x3a1)+_0x21cec4(0x2dd)+_0x21cec4(0x3f1)+_0x21cec4(0x48d)+'le')}),outpaintDirectionSchema=z[_0x21cec4(0x13a)+'t']({'top':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x2db)](0xce*-0xf+-0x3*-0x6c1+-0x20c*0x4)[_0x21cec4(0x4aa)](-0x25*-0xb9+-0xad9*0x2+-0x509)['optio'+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Top\x20e'+_0x21cec4(0x157)+_0x21cec4(0x15d)+_0x21cec4(0x457)+_0x21cec4(0x4cd)+_0x21cec4(0x32b)),'bottom':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x2db)](-0x2*0x11ab+-0xd59+0x30b0)[_0x21cec4(0x4aa)](0x22fd+-0x7b8+-0x1b43)[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x48f)+_0x21cec4(0x495)+_0x21cec4(0x1bd)+_0x21cec4(0x3d1)+_0x21cec4(0x2d3)+_0x21cec4(0x3c5)+'0)'),'left':z['numbe'+'r']()['min'](-0x1b6+0x247+0x2*-0x48)[_0x21cec4(0x4aa)](0x2*0xe2+0xf*-0x12b+-0x3*-0x541)['optio'+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x4b8)+_0x21cec4(0x38a)+_0x21cec4(0x3c6)+_0x21cec4(0x256)+_0x21cec4(0x226)+_0x21cec4(0x257)),'right':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x2db)](0xbe9*-0x2+-0x1*-0x2327+0x3a*-0x32)[_0x21cec4(0x4aa)](-0x482+0x903+-0x1*0x47f)[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4f0)+_0x21cec4(0x3a0)+_0x21cec4(0x206)+_0x21cec4(0x21a)+_0x21cec4(0x3c7)+_0x21cec4(0x425)+')')}),outpaintRequestSchema=z['objec'+'t']({'feature':z['liter'+'al'](_0x21cec4(0x1fb)+_0x21cec4(0x4bd)),...baseFields,'prompt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x20b)+_0x21cec4(0x145)+_0x21cec4(0x390)+_0x21cec4(0x34d)+_0x21cec4(0x1fb)+_0x21cec4(0x493)+_0x21cec4(0x3a7)+'s'),'inputs':z['objec'+'t']({'image':aiMediaInputSchema['descr'+_0x21cec4(0x2de)](_0x21cec4(0x2d0)+'e\x20ima'+_0x21cec4(0x45f)+_0x21cec4(0x1fc)+_0x21cec4(0x399))})[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Input'+_0x21cec4(0x2dd)+_0x21cec4(0x3f1)+_0x21cec4(0x38a)+'d'),'direction':outpaintDirectionSchema['descr'+'ibe'](_0x21cec4(0x32d)+_0x21cec4(0x3c6)+_0x21cec4(0x4f2)+_0x21cec4(0x4a9)+_0x21cec4(0x1f3)+_0x21cec4(0x351))}),videoGenerateModeSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x2c1),_0x21cec4(0x34f)+'Frame',_0x21cec4(0x17b)+_0x21cec4(0x31b),'refer'+_0x21cec4(0x1f4),'story'+_0x21cec4(0x162),_0x21cec4(0x293)+_0x21cec4(0x459),_0x21cec4(0x2f4)+'nCont'+_0x21cec4(0x4f7)]),storyboardSceneSchema=z[_0x21cec4(0x13a)+'t']({'prompt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4c7)+_0x21cec4(0x2e3)+_0x21cec4(0x37b)+_0x21cec4(0x422)+'ompt'),'image':aiMediaInputSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x20b)+_0x21cec4(0x4fe)+_0x21cec4(0x3f9)+_0x21cec4(0x250)+_0x21cec4(0x4c0)+_0x21cec4(0x421)+_0x21cec4(0x4f3)+_0x21cec4(0x329))}),motionPathSchema=z[_0x21cec4(0x13a)+'t']({'startX':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x320)+_0x21cec4(0x3bf)+_0x21cec4(0x188)+_0x21cec4(0x2e4)+_0x21cec4(0x3a8)+'lized'+_0x21cec4(0x1f5)),'startY':z[_0x21cec4(0x4f1)+'r']()['descr'+'ibe'](_0x21cec4(0x320)+_0x21cec4(0x204)+_0x21cec4(0x188)+_0x21cec4(0x2e4)+_0x21cec4(0x3a8)+_0x21cec4(0x3e0)+'\x200–1)'),'endX':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x48e)+_0x21cec4(0x289)+_0x21cec4(0x378)+_0x21cec4(0x3e8)+_0x21cec4(0x33d)+_0x21cec4(0x460)+'–1)'),'endY':z['numbe'+'r']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x47f)+'\x20coor'+'dinat'+_0x21cec4(0x3e8)+_0x21cec4(0x33d)+_0x21cec4(0x460)+_0x21cec4(0x28c)),'strength':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x187)+_0x21cec4(0x222)+'ength'+_0x21cec4(0x37d)+_0x21cec4(0x1a4)+'r')}),cameraTypeSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x39d),_0x21cec4(0x1da),_0x21cec4(0x241)+'e',_0x21cec4(0x347),_0x21cec4(0x49b)]),cameraSchema=z[_0x21cec4(0x13a)+'t']({'type':cameraTypeSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2a9)+_0x21cec4(0x159)+_0x21cec4(0x40c)+'\x20type'),'direction':z['strin'+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1bf)+'ent\x20d'+'irect'+'ion\x20('+_0x21cec4(0x48a)+_0x21cec4(0x1e9)+_0x21cec4(0x1d2)+_0x21cec4(0x2c9)+_0x21cec4(0x509)+_0x21cec4(0x488)+')'),'intensity':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1bf)+_0x21cec4(0x2fd)+_0x21cec4(0x44c)+_0x21cec4(0x355)+_0x21cec4(0x1fe))}),videoGenerateRequestSchema=z[_0x21cec4(0x13a)+'t']({'feature':z[_0x21cec4(0x1ae)+'al']('video'+_0x21cec4(0x198)+'ate'),...baseFields,'prompt':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)]('Text\x20'+_0x21cec4(0x49d)+_0x21cec4(0x251)+_0x21cec4(0x168)+'ng\x20th'+_0x21cec4(0x1af)+'ired\x20'+_0x21cec4(0x368)),'aspectRatio':mediaAspectRatioSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Outpu'+_0x21cec4(0x219)+_0x21cec4(0x317)+_0x21cec4(0x351)),'duration':z[_0x21cec4(0x49c)]([z[_0x21cec4(0x1ae)+'al'](0x140e+0x1*-0x1ad5+-0x74*-0xf),z[_0x21cec4(0x1ae)+'al'](0x1b92+0x82e+-0x51a*0x7),z[_0x21cec4(0x1ae)+'al'](-0x1*0x41f+0xd*0x2ae+-0x1ea8)])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x45c)+_0x21cec4(0x480)+_0x21cec4(0x4a9)+_0x21cec4(0x177)+_0x21cec4(0x4d8)),'mode':videoGenerateModeSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x198)+_0x21cec4(0x26d)+_0x21cec4(0x25a)),'inputs':z[_0x21cec4(0x13a)+'t']({'startImage':aiMediaInputSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x391)+_0x21cec4(0x504)+_0x21cec4(0x43b)+'ge'),'endImage':aiMediaInputSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1db)+_0x21cec4(0x2c5)+_0x21cec4(0x2dd)+'e'),'images':z[_0x21cec4(0x363)](aiMediaInputSchema)[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x46a)+_0x21cec4(0x47c)+'image'+'s'),'scenes':z[_0x21cec4(0x363)](storyboardSceneSchema)[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1e8)+_0x21cec4(0x162)+_0x21cec4(0x2d2)+'es\x20fo'+_0x21cec4(0x484)+_0x21cec4(0x2bf)+_0x21cec4(0x3b9)+'enera'+_0x21cec4(0x1c3))})[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3a1)+_0x21cec4(0x376)+_0x21cec4(0x3b2)+_0x21cec4(0x4b5)+'es'),'withAudio':z[_0x21cec4(0x419)+'an']()['optio'+_0x21cec4(0x44f)]()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x469)+_0x21cec4(0x17e)+_0x21cec4(0x2e9)+_0x21cec4(0x220)+_0x21cec4(0x165)+_0x21cec4(0x333)+_0x21cec4(0x1cf)+_0x21cec4(0x4c1)+'e\x20vid'+'eo'),'motionPaths':z['array'](motionPathSchema)[_0x21cec4(0x211)+_0x21cec4(0x44f)]()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x187)+_0x21cec4(0x3a6)+_0x21cec4(0x492)+'trols'+'\x20for\x20'+_0x21cec4(0x13a)+_0x21cec4(0x4df)+_0x21cec4(0x40c)),'camera':cameraSchema['optio'+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x2a9)+_0x21cec4(0x159)+_0x21cec4(0x40c)+'\x20conf'+_0x21cec4(0x3bc)+_0x21cec4(0x1c3))}),digitalHumanModeSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x43c)+'2vide'+'o',_0x21cec4(0x40a)+'nc']),digitalHumanRequestSchema=z[_0x21cec4(0x13a)+'t']({'feature':z[_0x21cec4(0x1ae)+'al'](_0x21cec4(0x454)+_0x21cec4(0x290)+'an'),...baseFields,'mode':digitalHumanModeSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x297)+_0x21cec4(0x1a3)+_0x21cec4(0x24c)+_0x21cec4(0x19b)),'inputs':z[_0x21cec4(0x13a)+'t']({'person':aiMediaInputSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x223)+_0x21cec4(0x315)+_0x21cec4(0x41a)+_0x21cec4(0x1b9)+'o'),'audio':aiMediaInputSchema[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x306)+_0x21cec4(0x32a)+'rive\x20'+_0x21cec4(0x4a7)+_0x21cec4(0x208)+_0x21cec4(0x361)+'an')})[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x3a1)+_0x21cec4(0x376)+_0x21cec4(0x263)+_0x21cec4(0x366)+_0x21cec4(0x28b)+_0x21cec4(0x249)+_0x21cec4(0x2ac)+_0x21cec4(0x26d))}),ttsOutputFormatSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x248),_0x21cec4(0x2c7),_0x21cec4(0x349)]),ttsRequestSchema=z[_0x21cec4(0x13a)+'t']({'feature':z[_0x21cec4(0x1ae)+'al'](_0x21cec4(0x167)),...baseFields,'text':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x4ed)+_0x21cec4(0x413)+_0x21cec4(0x359)+'ize\x20i'+'nto\x20s'+_0x21cec4(0x447)),'voice':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4cf)+_0x21cec4(0x258)+_0x21cec4(0x20d)+_0x21cec4(0x450)+'ier'),'referenceAudio':aiMediaInputSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x46a)+_0x21cec4(0x47c)+_0x21cec4(0x165)+_0x21cec4(0x34d)+'voice'+_0x21cec4(0x508)+_0x21cec4(0x233)),'output':z['objec'+'t']({'format':ttsOutputFormatSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x306)+_0x21cec4(0x3da)+'at'),'sampleRate':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()['posit'+_0x21cec4(0x417)]()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()['descr'+_0x21cec4(0x2de)]('Sampl'+_0x21cec4(0x452)+_0x21cec4(0x482)+'Hz')})[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x306)+_0x21cec4(0x1fc)+'ut\x20co'+_0x21cec4(0x1e3)+_0x21cec4(0x256)+'n')}),mediaGenerateRequestSchema=z[_0x21cec4(0x4e0)+_0x21cec4(0x25b)+_0x21cec4(0x1a6)+_0x21cec4(0x171)](_0x21cec4(0x370)+'re',[imageGenerateRequestSchema,posterRequestSchema,imageEditRequestSchema,upscaleRequestSchema,outpaintRequestSchema,videoGenerateRequestSchema,digitalHumanRequestSchema,ttsRequestSchema]),mediaTaskStatusSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x4c6)+'d',_0x21cec4(0x483)+'ng',_0x21cec4(0x1e7)+_0x21cec4(0x142),_0x21cec4(0x36a)+'d',_0x21cec4(0x1dc)+_0x21cec4(0x487)]),mediaTaskItemSchema=z['objec'+'t']({'taskId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x33b)+_0x21cec4(0x18e)+_0x21cec4(0x246)),'status':mediaTaskStatusSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Curre'+_0x21cec4(0x374)+_0x21cec4(0x259)+_0x21cec4(0x371)),'resultUrls':z['array'](z[_0x21cec4(0x327)+'g']())[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1e4)+_0x21cec4(0x183)+_0x21cec4(0x4d3)+_0x21cec4(0x146)+'vaila'+_0x21cec4(0x139)+_0x21cec4(0x401)+_0x21cec4(0x3e3)+'ded)'),'error':z[_0x21cec4(0x13a)+'t']({'code':z[_0x21cec4(0x327)+'g']()['optio'+_0x21cec4(0x44f)]()['descr'+'ibe'](_0x21cec4(0x27b)+_0x21cec4(0x13f)),'message':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x27b)+_0x21cec4(0x506)+'age')})[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x27b)+_0x21cec4(0x45a)+_0x21cec4(0x24f)+'avail'+_0x21cec4(0x197)+'when\x20'+'faile'+'d)'),'creditsConsumed':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x4e6)+_0x21cec4(0x13b)+'nsume'+_0x21cec4(0x32e)+_0x21cec4(0x4dd)+_0x21cec4(0x498))}),mediaTaskGroupDataSchema=z[_0x21cec4(0x13a)+'t']({'groupId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x26a)+_0x21cec4(0x23b)+_0x21cec4(0x21b)+'r'),'tasks':z['array'](mediaTaskItemSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x38e)+_0x21cec4(0x403)+_0x21cec4(0x1ff)+_0x21cec4(0x4e9)+'hin\x20t'+_0x21cec4(0x3b6)+_0x21cec4(0x2d6)),'totalCreditsConsumed':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x211)+'nal']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x2e1)+'\x20cred'+'its\x20c'+_0x21cec4(0x387)+'ed\x20ac'+_0x21cec4(0x181)+_0x21cec4(0x1ac)+_0x21cec4(0x464))}),mediaTaskGroupSuccessSchema=z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![])[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('Succe'+'ss\x20fl'+'ag'),'data':mediaTaskGroupDataSchema[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x33b)+_0x21cec4(0x1c6)+_0x21cec4(0x34a))}),mediaTaskGroupResponseSchema=z['union']([mediaTaskGroupSuccessSchema,aiErrorResponseSchema]),mediaModelsQuerySchema=z['objec'+'t']({'feature':mediaFeatureSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x20b)+_0x21cec4(0x254)+_0x21cec4(0x2c0)+_0x21cec4(0x369)+_0x21cec4(0x502)+_0x21cec4(0x1df)+'row\x20m'+_0x21cec4(0x303)+_0x21cec4(0x505))}),_0x3e3b6e={};_0x3e3b6e[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x3e3b6e[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x271)+_0x21cec4(0x35d),_0x3e3b6e[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=aiImageRequestSchema,_0x3e3b6e['respo'+_0x21cec4(0x172)+_0x21cec4(0x175)]=aiTaskCreatedResponseSchema;var _0x3072c3={};_0x3072c3[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x3072c3[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x322)+_0x21cec4(0x14d),_0x3072c3[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=aiVideoRequestSchema,_0x3072c3[_0x21cec4(0x2fa)+_0x21cec4(0x172)+'hema']=aiTaskCreatedResponseSchema;var _0x48e23b={};_0x48e23b[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x48e23b['path']='/api/'+_0x21cec4(0x40b)+_0x21cec4(0x434),_0x48e23b[_0x21cec4(0x1d4)+'stSch'+_0x21cec4(0x2e7)]=aiAudioRequestSchema,_0x48e23b[_0x21cec4(0x2fa)+_0x21cec4(0x172)+'hema']=aiTaskCreatedResponseSchema;var _0x5187fc={};_0x5187fc['metho'+'d']='GET',_0x5187fc['path']=_0x21cec4(0x26b)+_0x21cec4(0x20a)+_0x21cec4(0x2b1)+_0x21cec4(0x2ca)+'/mode'+'ls',_0x5187fc[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=aiModelsRequestSchema,_0x5187fc['respo'+_0x21cec4(0x172)+_0x21cec4(0x175)]=aiModelsResponseSchema;var _0x53053a={};_0x53053a[_0x21cec4(0x18b)+'d']=_0x21cec4(0x3cd),_0x53053a[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x20a)+_0x21cec4(0x2b1)+_0x21cec4(0x368)+_0x21cec4(0x37a)+'ls',_0x53053a[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=aiModelsRequestSchema,_0x53053a[_0x21cec4(0x2fa)+'nseSc'+_0x21cec4(0x175)]=aiModelsResponseSchema;var _0x4d33a8={};_0x4d33a8['metho'+'d']=_0x21cec4(0x3cd),_0x4d33a8[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x20a)+_0x21cec4(0x2b1)+_0x21cec4(0x165)+_0x21cec4(0x37a)+'ls',_0x4d33a8[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=aiModelsRequestSchema,_0x4d33a8[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=aiModelsResponseSchema;var _0x1bb8c6={};_0x1bb8c6[_0x21cec4(0x18b)+'d']=_0x21cec4(0x3cd),_0x1bb8c6[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x20a)+_0x21cec4(0x2b1)+_0x21cec4(0x500)+_0x21cec4(0x35f)+'s',_0x1bb8c6[_0x21cec4(0x1d4)+'stSch'+_0x21cec4(0x2e7)]=aiModelsRequestSchema,_0x1bb8c6[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=aiChatModelsResponseSchema;var _0x2f559c={};_0x2f559c[_0x21cec4(0x18b)+'d']='GET',_0x2f559c['path']='/api/'+_0x21cec4(0x20a)+_0x21cec4(0x2b1)+_0x21cec4(0x35f)+_0x21cec4(0x279)+'ated-'+'at',_0x2f559c['reque'+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=aiModelsRequestSchema,_0x2f559c[_0x21cec4(0x2fa)+'nseSc'+_0x21cec4(0x175)]=aiModelsUpdatedAtResponseSchema;var _0x4777a6={};_0x4777a6[_0x21cec4(0x18b)+'d']=_0x21cec4(0x3cd),_0x4777a6['path']=_0x21cec4(0x26b)+_0x21cec4(0x20a)+'c/ai/'+'provi'+_0x21cec4(0x243),_0x4777a6['reque'+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=aiProviderTemplatesRequestSchema,_0x4777a6[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=aiProviderTemplatesResponseSchema;var _0x1a273f={};_0x1a273f[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x1a273f[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x42b)+'dia/g'+'enera'+'te',_0x1a273f[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=mediaGenerateRequestSchema,_0x1a273f[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=aiTaskCreatedResponseSchema;var _0x40d798={};_0x40d798[_0x21cec4(0x18b)+'d']=_0x21cec4(0x3cd),_0x40d798[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x20a)+_0x21cec4(0x2b1)+_0x21cec4(0x1d5)+'/mode'+'ls',_0x40d798[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=mediaModelsQuerySchema,_0x40d798[_0x21cec4(0x2fa)+_0x21cec4(0x172)+'hema']=aiModelsResponseSchema;var aiEndpoints={'image':new Endpoint(_0x3e3b6e),'video':new Endpoint(_0x3072c3),'audio':new Endpoint(_0x48e23b),'task':_0x126800=>new Endpoint({'method':'GET','path':_0x21cec4(0x26b)+_0x21cec4(0x23e)+_0x21cec4(0x140)+_0x126800,'requestSchema':aiTaskRequestSchema,'responseSchema':aiTaskResponseSchema}),'cancelTask':_0x1f6d18=>new Endpoint({'method':_0x21cec4(0x192),'path':_0x21cec4(0x26b)+'ai/ta'+_0x21cec4(0x140)+_0x1f6d18+(_0x21cec4(0x312)+'el'),'requestSchema':aiTaskCancelRequestSchema,'responseSchema':aiTaskCancelResponseSchema}),'imageModels':new Endpoint(_0x5187fc),'videoModels':new Endpoint(_0x53053a),'audioModels':new Endpoint(_0x4d33a8),'chatModels':new Endpoint(_0x1bb8c6),'modelsUpdatedAt':new Endpoint(_0x2f559c),'providerTemplates':new Endpoint(_0x4777a6),'mediaGenerate':new Endpoint(_0x1a273f),'mediaTask':_0x5a9498=>new Endpoint({'method':_0x21cec4(0x3cd),'path':'/api/'+_0x21cec4(0x42b)+_0x21cec4(0x23f)+_0x21cec4(0x265)+_0x5a9498,'requestSchema':z[_0x21cec4(0x31a)](),'responseSchema':aiTaskResponseSchema}),'mediaCancelTask':_0x473cbf=>new Endpoint({'method':'POST','path':_0x21cec4(0x26b)+_0x21cec4(0x42b)+_0x21cec4(0x23f)+_0x21cec4(0x265)+_0x473cbf+(_0x21cec4(0x312)+'el'),'requestSchema':z[_0x21cec4(0x31a)](),'responseSchema':aiTaskCancelResponseSchema}),'mediaTaskGroup':_0x5d1c32=>new Endpoint({'method':'GET','path':_0x21cec4(0x26b)+_0x21cec4(0x42b)+_0x21cec4(0x23f)+_0x21cec4(0x3ca)+_0x21cec4(0x465)+_0x5d1c32,'requestSchema':z['void'](),'responseSchema':mediaTaskGroupResponseSchema}),'mediaModels':new Endpoint(_0x40d798)},ai_tools_exports={},_0x57bf54={};_0x57bf54[_0x21cec4(0x440)+_0x21cec4(0x50c)+'ent']=()=>AiToolsClient,_0x57bf54[_0x21cec4(0x272)+_0x21cec4(0x334)+'point'+'s']=()=>aiToolsEndpoints,_0x57bf54['analy'+'zeSki'+_0x21cec4(0x27c)+_0x21cec4(0x4c9)+'Schem'+'a']=()=>analyzeSkillsRequestSchema,_0x57bf54[_0x21cec4(0x15c)+'zeSki'+_0x21cec4(0x27c)+_0x21cec4(0x409)+_0x21cec4(0x21e)+'ma']=()=>analyzeSkillsResponseSchema,_0x57bf54[_0x21cec4(0x4fb)+_0x21cec4(0x3a9)+_0x21cec4(0x304)+_0x21cec4(0x221)+_0x21cec4(0x20c)+_0x21cec4(0x175)]=()=>recommendActionsRequestSchema,_0x57bf54[_0x21cec4(0x4fb)+_0x21cec4(0x3a9)+_0x21cec4(0x304)+_0x21cec4(0x225)+_0x21cec4(0x30f)+_0x21cec4(0x2d8)]=()=>recommendActionsResponseSchema,_0x57bf54[_0x21cec4(0x14e)+_0x21cec4(0x1e6)+'eques'+'tSche'+'ma']=()=>summarizeRequestSchema,_0x57bf54[_0x21cec4(0x14e)+_0x21cec4(0x1e6)+'espon'+_0x21cec4(0x3a3)+_0x21cec4(0x2e7)]=()=>summarizeResponseSchema,__export(ai_tools_exports,_0x57bf54);var AiToolsClient=class{[_0x21cec4(0x318)];constructor(_0x8b89df){var _0x401352=_0x21cec4;this[_0x401352(0x318)]=_0x8b89df;}async[_0x21cec4(0x15c)+_0x21cec4(0x4b7)+_0x21cec4(0x316)](_0x156724){var _0x5f53f8=_0x21cec4;const _0x22e9e2=await this[_0x5f53f8(0x318)][_0x5f53f8(0x1a1)+_0x5f53f8(0x3a4)+_0x5f53f8(0x2ab)]();return this[_0x5f53f8(0x318)][_0x5f53f8(0x1d4)+'st'](this[_0x5f53f8(0x318)][_0x5f53f8(0x24a)+_0x5f53f8(0x1c1)][_0x5f53f8(0x272)+'ls'][_0x5f53f8(0x15c)+_0x5f53f8(0x4b7)+_0x5f53f8(0x316)],{'baseUrl':this['sdk'][_0x5f53f8(0x475)+'seUrl'](),'headers':_0x22e9e2,'body':_0x156724});}async[_0x21cec4(0x4fb)+_0x21cec4(0x3a9)+_0x21cec4(0x304)+'s'](_0x4048bd){var _0x5cbfa2=_0x21cec4;const _0x56285b=await this[_0x5cbfa2(0x318)]['build'+_0x5cbfa2(0x3a4)+_0x5cbfa2(0x2ab)]();return this[_0x5cbfa2(0x318)][_0x5cbfa2(0x1d4)+'st'](this[_0x5cbfa2(0x318)][_0x5cbfa2(0x24a)+'act'][_0x5cbfa2(0x272)+'ls'][_0x5cbfa2(0x4fb)+'mendA'+_0x5cbfa2(0x304)+'s'],{'baseUrl':this['sdk'][_0x5cbfa2(0x475)+'seUrl'](),'headers':_0x56285b,'body':_0x4048bd});}async[_0x21cec4(0x14e)+_0x21cec4(0x147)](_0x2c4dd1){var _0x27d288=_0x21cec4;const _0x1fe5cd=await this['sdk'][_0x27d288(0x1a1)+_0x27d288(0x3a4)+_0x27d288(0x2ab)]();return this[_0x27d288(0x318)][_0x27d288(0x1d4)+'st'](this['sdk'][_0x27d288(0x24a)+_0x27d288(0x1c1)][_0x27d288(0x272)+'ls'][_0x27d288(0x14e)+_0x27d288(0x147)],{'baseUrl':this[_0x27d288(0x318)][_0x27d288(0x475)+_0x27d288(0x2bc)](),'headers':_0x1fe5cd,'body':_0x2c4dd1});}},skillInputSchema=z['objec'+'t']({'name':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)]('技能名称'),'description':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x456))[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),analyzeSkillsRequestSchema=z[_0x21cec4(0x13a)+'t']({'skills':z[_0x21cec4(0x363)](skillInputSchema)[_0x21cec4(0x2db)](-0xd70+0x251*-0x10+0x3281)[_0x21cec4(0x4aa)](-0x3*-0x9f3+-0x1a46+-0x5*0xad)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)]('待分析的技'+_0x21cec4(0x227))}),analyzedSkillSchema=z['objec'+'t']({'name':z['strin'+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x42d)+'称'),'translatedName':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x382)+'称'),'translatedDescription':z['strin'+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1ef)+'述'),'category':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x240)),'icon':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x1ec)+_0x21cec4(0x22b)+'称')}),analyzeSkillsDataSchema=z[_0x21cec4(0x13a)+'t']({'skills':z['array'](analyzedSkillSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x461))}),analyzeSkillsResponseSchema=z[_0x21cec4(0x49c)]([z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![]),'data':analyzeSkillsDataSchema}),z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](![]),'message':z[_0x21cec4(0x327)+'g']()})]),recommendActionsRequestSchema=z[_0x21cec4(0x13a)+'t']({'text':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x4aa)](-0x1940+-0x1d1a+-0xa8e*-0x7)['descr'+_0x21cec4(0x2de)](_0x21cec4(0x23c)),'scene':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x15a))}),recommendedActionSchema=z[_0x21cec4(0x13a)+'t']({'label':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x41e)),'description':z[_0x21cec4(0x327)+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x341)),'action':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x278))}),recommendActionsDataSchema=z['objec'+'t']({'actions':z[_0x21cec4(0x363)](recommendedActionSchema)[_0x21cec4(0x1f7)+_0x21cec4(0x2de)](_0x21cec4(0x4fc)+'表')}),recommendActionsResponseSchema=z[_0x21cec4(0x49c)]([z[_0x21cec4(0x13a)+'t']({'success':z['liter'+'al'](!![]),'data':recommendActionsDataSchema}),z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](![]),'message':z['strin'+'g']()})]),summarizeRequestSchema=z[_0x21cec4(0x13a)+'t']({'text':z[_0x21cec4(0x327)+'g']()['max'](-0x3c21+-0x3edb*0x1+0xc91c)[_0x21cec4(0x1f7)+'ibe'](_0x21cec4(0x224))}),summarizeDataSchema=z['objec'+'t']({'summary':z['strin'+'g']()['descr'+_0x21cec4(0x2de)](_0x21cec4(0x19c))}),summarizeResponseSchema=z['union']([z[_0x21cec4(0x13a)+'t']({'success':z[_0x21cec4(0x1ae)+'al'](!![]),'data':summarizeDataSchema}),z['objec'+'t']({'success':z['liter'+'al'](![]),'message':z[_0x21cec4(0x327)+'g']()})]),_0x5dab02={};_0x5dab02[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x5dab02[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x19e)+_0x21cec4(0x4e5)+_0x21cec4(0x4e4)+_0x21cec4(0x406)+_0x21cec4(0x316),_0x5dab02[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=analyzeSkillsRequestSchema,_0x5dab02[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=analyzeSkillsResponseSchema;var _0x27bbcc={};_0x27bbcc[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x27bbcc[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x19e)+'ols/r'+_0x21cec4(0x29a)+_0x21cec4(0x205)+_0x21cec4(0x304)+'s',_0x27bbcc[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=recommendActionsRequestSchema,_0x27bbcc[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=recommendActionsResponseSchema;var _0x18f48f={};_0x18f48f[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x18f48f[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x19e)+_0x21cec4(0x39c)+_0x21cec4(0x4bf)+_0x21cec4(0x479),_0x18f48f['reque'+'stSch'+_0x21cec4(0x2e7)]=summarizeRequestSchema,_0x18f48f[_0x21cec4(0x2fa)+_0x21cec4(0x172)+'hema']=summarizeResponseSchema;var aiToolsEndpoints={'analyzeSkills':new Endpoint(_0x5dab02),'recommendActions':new Endpoint(_0x27bbcc),'summarize':new Endpoint(_0x18f48f)},auth_exports={},_0xcd89d5={};_0xcd89d5[_0x21cec4(0x476)+_0x21cec4(0x323)]=()=>AuthClient,_0xcd89d5[_0x21cec4(0x34e)+_0x21cec4(0x412)+'nts']=()=>authEndpoints,_0xcd89d5[_0x21cec4(0x34e)+_0x21cec4(0x178)+_0x21cec4(0x1e5)+_0x21cec4(0x1a0)+_0x21cec4(0x2d8)]=()=>authExchangeRequestSchema,_0xcd89d5[_0x21cec4(0x34e)+'xchan'+_0x21cec4(0x49e)+'ponse'+_0x21cec4(0x28d)+'a']=()=>authExchangeResponseSchema,_0xcd89d5[_0x21cec4(0x22a)+_0x21cec4(0x4a8)+'Reque'+'stSch'+'ema']=()=>authLogoutRequestSchema,_0xcd89d5['authL'+_0x21cec4(0x4a8)+_0x21cec4(0x2d1)+'nseSc'+_0x21cec4(0x175)]=()=>authLogoutResponseSchema,_0xcd89d5[_0x21cec4(0x437)+_0x21cec4(0x232)+_0x21cec4(0x4ca)+_0x21cec4(0x375)+'ma']=()=>authRefreshErrorSchema,_0xcd89d5['authR'+_0x21cec4(0x232)+_0x21cec4(0x46e)+_0x21cec4(0x20c)+'hema']=()=>authRefreshRequestSchema,_0xcd89d5[_0x21cec4(0x437)+_0x21cec4(0x232)+_0x21cec4(0x50b)+_0x21cec4(0x30f)+_0x21cec4(0x2d8)]=()=>authRefreshResponseSchema,_0xcd89d5[_0x21cec4(0x437)+'efres'+_0x21cec4(0x1a7)+_0x21cec4(0x420)+'hema']=()=>authRefreshSuccessSchema,_0xcd89d5[_0x21cec4(0x437)+_0x21cec4(0x232)+_0x21cec4(0x18f)+'Schem'+'a']=()=>authRefreshUserSchema,__export(auth_exports,_0xcd89d5);var AuthClient=class{[_0x21cec4(0x318)];constructor(_0x6e7fa4){var _0x4bc2fd=_0x21cec4;this[_0x4bc2fd(0x318)]=_0x6e7fa4;}async[_0x21cec4(0x381)+_0x21cec4(0x2f3)](_0x5c4520){var _0x3f7c37=_0x21cec4,_0x10b196={};return _0x10b196[_0x3f7c37(0x41c)+_0x3f7c37(0x1bc)]=_0x5c4520,this['sdk']['reque'+'st'](this['sdk'][_0x3f7c37(0x24a)+_0x3f7c37(0x1c1)][_0x3f7c37(0x2e8)][_0x3f7c37(0x381)+_0x3f7c37(0x2f3)],{'baseUrl':this[_0x3f7c37(0x318)][_0x3f7c37(0x475)+_0x3f7c37(0x2bc)](),'body':_0x10b196});}async[_0x21cec4(0x48b)+'sh'](_0x4095a6){var _0x3b0dc5=_0x21cec4,_0x3d2e1d={};return _0x3d2e1d[_0x3b0dc5(0x48b)+_0x3b0dc5(0x423)+'en']=_0x4095a6,this[_0x3b0dc5(0x318)][_0x3b0dc5(0x1d4)+'st'](this[_0x3b0dc5(0x318)]['contr'+_0x3b0dc5(0x1c1)][_0x3b0dc5(0x2e8)][_0x3b0dc5(0x48b)+'sh'],{'baseUrl':this[_0x3b0dc5(0x318)][_0x3b0dc5(0x475)+'seUrl'](),'body':_0x3d2e1d});}async['logou'+'t'](_0x2ce85e){var _0x2ed37a=_0x21cec4,_0x44f826={};return _0x44f826[_0x2ed37a(0x48b)+_0x2ed37a(0x423)+'en']=_0x2ce85e,this['sdk'][_0x2ed37a(0x1d4)+'st'](this[_0x2ed37a(0x318)][_0x2ed37a(0x24a)+_0x2ed37a(0x1c1)][_0x2ed37a(0x2e8)][_0x2ed37a(0x1f1)+'t'],{'baseUrl':this[_0x2ed37a(0x318)][_0x2ed37a(0x475)+_0x2ed37a(0x2bc)](),'body':_0x44f826});}},authRefreshRequestSchema=z[_0x21cec4(0x13a)+'t']({'refreshToken':z['strin'+'g']()[_0x21cec4(0x2db)](0xb6b*0x1+0x1*-0xa49+-0x121*0x1)}),authExchangeRequestSchema=z[_0x21cec4(0x13a)+'t']({'loginCode':z['strin'+'g']()[_0x21cec4(0x2db)](-0x23ad+0x29*0xe3+-0xad)}),authRefreshUserSchema=z[_0x21cec4(0x13a)+'t']({'name':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'email':z['strin'+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'avatarUrl':z['strin'+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),authRefreshSuccessSchema=z[_0x21cec4(0x13a)+'t']({'accessToken':z[_0x21cec4(0x327)+'g'](),'refreshToken':z['strin'+'g'](),'user':authRefreshUserSchema}),authRefreshErrorSchema=z[_0x21cec4(0x13a)+'t']({'message':z[_0x21cec4(0x327)+'g']()}),authExchangeResponseSchema=authRefreshSuccessSchema,authLogoutRequestSchema=z[_0x21cec4(0x13a)+'t']({'refreshToken':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x2db)](0x1*-0x24d7+0x1da6+-0x2*-0x399)}),authLogoutResponseSchema=z['objec'+'t']({'success':z[_0x21cec4(0x419)+'an']()}),authRefreshResponseSchema=z[_0x21cec4(0x49c)]([authRefreshSuccessSchema,authRefreshErrorSchema]),_0x1426a8={};_0x1426a8[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x1426a8['path']=_0x21cec4(0x26b)+_0x21cec4(0x3fa)+'excha'+_0x21cec4(0x2f3),_0x1426a8[_0x21cec4(0x1d4)+'stSch'+_0x21cec4(0x2e7)]=authExchangeRequestSchema,_0x1426a8[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=authExchangeResponseSchema;var _0x3cec01={};_0x3cec01[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x3cec01['path']=_0x21cec4(0x26b)+_0x21cec4(0x3fa)+'refre'+'sh',_0x3cec01[_0x21cec4(0x1d4)+'stSch'+'ema']=authRefreshRequestSchema,_0x3cec01[_0x21cec4(0x2fa)+'nseSc'+_0x21cec4(0x175)]=authRefreshResponseSchema;var _0x46601a={};_0x46601a[_0x21cec4(0x18b)+'d']=_0x21cec4(0x192),_0x46601a[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x3fa)+'logou'+'t',_0x46601a['reque'+'stSch'+_0x21cec4(0x2e7)]=authLogoutRequestSchema,_0x46601a[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=authLogoutResponseSchema;var authEndpoints={'exchange':new Endpoint(_0x1426a8),'refresh':new Endpoint(_0x3cec01),'logout':new Endpoint(_0x46601a)},auxiliary_exports={},_0x306a97={};_0x306a97[_0x21cec4(0x268)+_0x21cec4(0x152)+'lient']=()=>AuxiliaryClient,_0x306a97[_0x21cec4(0x2dc)+'iaryE'+_0x21cec4(0x412)+'nts']=()=>auxiliaryEndpoints,_0x306a97[_0x21cec4(0x2dc)+_0x21cec4(0x4de)+_0x21cec4(0x31f)+_0x21cec4(0x2a4)+_0x21cec4(0x31d)+'ma']=()=>auxiliaryInferRequestSchema,_0x306a97['auxil'+_0x21cec4(0x4de)+_0x21cec4(0x31f)+'espon'+_0x21cec4(0x3a3)+_0x21cec4(0x2e7)]=()=>auxiliaryInferResponseSchema,_0x306a97['auxil'+_0x21cec4(0x36c)+_0x21cec4(0x4d7)+_0x21cec4(0x1b6)+_0x21cec4(0x3a3)+_0x21cec4(0x2e7)]=()=>auxiliaryQuotaResponseSchema,__export(auxiliary_exports,_0x306a97);var AuxiliaryClient=class{[_0x21cec4(0x318)];constructor(_0x26ab8e){var _0x52c2fc=_0x21cec4;this[_0x52c2fc(0x318)]=_0x26ab8e;}async[_0x21cec4(0x485)](_0x4a921c){var _0x1f733c=_0x21cec4;const _0x2f6169=await this[_0x1f733c(0x318)][_0x1f733c(0x1a1)+_0x1f733c(0x3a4)+_0x1f733c(0x2ab)]();return this[_0x1f733c(0x318)]['reque'+'st'](this[_0x1f733c(0x318)][_0x1f733c(0x24a)+_0x1f733c(0x1c1)][_0x1f733c(0x2dc)+_0x1f733c(0x1ed)][_0x1f733c(0x485)],{'baseUrl':this[_0x1f733c(0x318)][_0x1f733c(0x475)+_0x1f733c(0x2bc)](),'headers':_0x2f6169,'body':_0x4a921c});}async[_0x21cec4(0x42f)+'ota'](){var _0x4eae96=_0x21cec4;const _0x549384=await this[_0x4eae96(0x318)][_0x4eae96(0x1a1)+_0x4eae96(0x3a4)+_0x4eae96(0x2ab)]();return this[_0x4eae96(0x318)][_0x4eae96(0x1d4)+'st'](this[_0x4eae96(0x318)][_0x4eae96(0x24a)+_0x4eae96(0x1c1)]['auxil'+_0x4eae96(0x1ed)][_0x4eae96(0x42f)+_0x4eae96(0x4b0)],{'baseUrl':this[_0x4eae96(0x318)]['getBa'+_0x4eae96(0x2bc)](),'headers':_0x549384,'body':{}});}},auxiliaryInferRequestSchema=z[_0x21cec4(0x13a)+'t']({'capabilityKey':z['strin'+'g'](),'systemPrompt':z[_0x21cec4(0x327)+'g'](),'context':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x4aa)](-0x1284d*-0x1+0x10*0xd33+-0x1382d),'outputMode':z[_0x21cec4(0x3b7)]([_0x21cec4(0x230)+'tured',_0x21cec4(0x2c1)]),'schema':z[_0x21cec4(0x490)+'d'](z[_0x21cec4(0x327)+'g'](),z[_0x21cec4(0x201)+'wn']())[_0x21cec4(0x211)+'nal']()}),quotaSchema=z[_0x21cec4(0x13a)+'t']({'used':z[_0x21cec4(0x4f1)+'r'](),'limit':z[_0x21cec4(0x4f1)+'r'](),'remaining':z[_0x21cec4(0x4f1)+'r'](),'resetsAt':z[_0x21cec4(0x327)+'g']()}),usageSchema=z[_0x21cec4(0x13a)+'t']({'inputTokens':z[_0x21cec4(0x4f1)+'r'](),'outputTokens':z[_0x21cec4(0x4f1)+'r']()}),auxiliaryInferResponseSchema=z[_0x21cec4(0x49c)]([z[_0x21cec4(0x13a)+'t']({'ok':z[_0x21cec4(0x1ae)+'al'](!![]),'result':z['unkno'+'wn'](),'usage':usageSchema,'quota':quotaSchema}),z['objec'+'t']({'ok':z['liter'+'al'](![]),'message':z[_0x21cec4(0x327)+'g'](),'code':z[_0x21cec4(0x327)+'g']()['optio'+_0x21cec4(0x44f)]()})]),_0x8b1ba7={};_0x8b1ba7[_0x21cec4(0x277)]=quotaSchema;var auxiliaryQuotaResponseSchema=z[_0x21cec4(0x13a)+'t'](_0x8b1ba7),_0xbeb865={};_0xbeb865[_0x21cec4(0x18b)+'d']='POST',_0xbeb865[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x2dc)+_0x21cec4(0x228)+'infer',_0xbeb865['reque'+'stSch'+_0x21cec4(0x2e7)]=auxiliaryInferRequestSchema,_0xbeb865['respo'+'nseSc'+_0x21cec4(0x175)]=auxiliaryInferResponseSchema;var auxiliaryEndpoints={'infer':new Endpoint(_0xbeb865),'getQuota':new Endpoint({'method':_0x21cec4(0x192),'path':_0x21cec4(0x26b)+_0x21cec4(0x2dc)+_0x21cec4(0x228)+_0x21cec4(0x277),'requestSchema':z[_0x21cec4(0x13a)+'t']({}),'responseSchema':auxiliaryQuotaResponseSchema})},feedback_exports={},_0x178d69={};_0x178d69[_0x21cec4(0x2f8)+'ackCl'+_0x21cec4(0x4a5)]=()=>FeedbackClient,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x247)+_0x21cec4(0x2ee)+_0x21cec4(0x4bc)+'dSche'+'ma']=()=>feedbackDetailPayloadSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x247)+_0x21cec4(0x339)+_0x21cec4(0x2a4)+'tSche'+'ma']=()=>feedbackDetailRequestSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x247)+_0x21cec4(0x339)+'espon'+_0x21cec4(0x3a3)+'ema']=()=>feedbackDetailResponseSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x31c)+_0x21cec4(0x445)+'ts']=()=>feedbackEndpoints,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x2ec)+'emSch'+_0x21cec4(0x2e7)]=()=>feedbackItemSchema,_0x178d69[_0x21cec4(0x20f)+'ackLi'+_0x21cec4(0x1e1)+_0x21cec4(0x1ce)+_0x21cec4(0x2d8)]=()=>feedbackListPayloadSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x156)+_0x21cec4(0x424)+'uestS'+_0x21cec4(0x2d8)]=()=>feedbackListRequestSchema,_0x178d69['feedb'+_0x21cec4(0x156)+'stRes'+_0x21cec4(0x34c)+'Schem'+'a']=()=>feedbackListResponseSchema,_0x178d69['feedb'+_0x21cec4(0x287)+_0x21cec4(0x305)+_0x21cec4(0x2c2)+_0x21cec4(0x175)]=()=>feedbackSaasStatusSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x4cb)+_0x21cec4(0x43a)+'chema']=()=>feedbackSourceSchema,_0x178d69['feedb'+_0x21cec4(0x1c4)+'bmitE'+_0x21cec4(0x3cb)+'chema']=()=>feedbackSubmitErrorSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x1c4)+_0x21cec4(0x218)+'eques'+_0x21cec4(0x31d)+'ma']=()=>feedbackSubmitRequestSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x1c4)+_0x21cec4(0x218)+_0x21cec4(0x1b6)+_0x21cec4(0x3a3)+_0x21cec4(0x2e7)]=()=>feedbackSubmitResponseSchema,_0x178d69[_0x21cec4(0x20f)+_0x21cec4(0x348)+_0x21cec4(0x396)+_0x21cec4(0x2e7)]=()=>feedbackTypeSchema,__export(feedback_exports,_0x178d69);var FeedbackClient=class{[_0x21cec4(0x318)];constructor(_0x5ca3a6){var _0x2982a1=_0x21cec4;this[_0x2982a1(0x318)]=_0x5ca3a6;}async['submi'+'t'](_0x5cb79a){var _0x232e73=_0x21cec4;const _0x1fe55d=await this[_0x232e73(0x318)]['build'+_0x232e73(0x3a4)+'eader']();return this[_0x232e73(0x318)][_0x232e73(0x1d4)+'st'](this[_0x232e73(0x318)][_0x232e73(0x24a)+_0x232e73(0x1c1)]['feedb'+_0x232e73(0x330)][_0x232e73(0x428)+'t'],{'baseUrl':this[_0x232e73(0x318)][_0x232e73(0x475)+_0x232e73(0x2bc)](),'headers':_0x1fe55d,'body':_0x5cb79a});}async[_0x21cec4(0x4f4)+_0x21cec4(0x4db)+'chmen'+'t'](_0x2295bd,_0x2f0283){var _0x17c960=_0x21cec4;const _0x243b5a=new FormData();_0x243b5a['appen'+'d']('file',_0x2295bd,_0x2f0283??(_0x2295bd instanceof File?_0x2295bd['name']:_0x17c960(0x1a2)+_0x17c960(0x47a)));const _0x4df0c1=await this[_0x17c960(0x318)][_0x17c960(0x1a1)+'AuthH'+_0x17c960(0x2ab)](),_0xbb03c2=this[_0x17c960(0x318)][_0x17c960(0x475)+_0x17c960(0x2bc)]()+(_0x17c960(0x26b)+_0x17c960(0x20f)+'ack/u'+'pload');var _0x137061={};_0x137061[_0x17c960(0x18b)+'d']=_0x17c960(0x192),_0x137061[_0x17c960(0x229)+'rs']=_0x4df0c1,_0x137061[_0x17c960(0x3ab)]=_0x243b5a;const _0x1f15c8=await fetch(_0xbb03c2,_0x137061);if(!_0x1f15c8['ok']){const _0x283257=await _0x1f15c8[_0x17c960(0x216)]()[_0x17c960(0x16c)](()=>({'message':_0x17c960(0x43f)+_0x17c960(0x13e)+_0x17c960(0x487)}));throw new Error(_0x283257[_0x17c960(0x29e)+'ge']??_0x17c960(0x43f)+'d\x20fai'+_0x17c960(0x487));}return _0x1f15c8[_0x17c960(0x216)]();}async[_0x21cec4(0x505)](_0x340d6d){var _0x452b25=_0x21cec4;const _0x4f670c=await this[_0x452b25(0x318)][_0x452b25(0x1a1)+_0x452b25(0x3a4)+_0x452b25(0x2ab)]();return this[_0x452b25(0x318)]['reque'+'st'](this[_0x452b25(0x318)][_0x452b25(0x24a)+_0x452b25(0x1c1)][_0x452b25(0x20f)+'ack'][_0x452b25(0x505)],{'baseUrl':this[_0x452b25(0x318)][_0x452b25(0x475)+_0x452b25(0x2bc)](),'headers':_0x4f670c,'body':_0x340d6d??{}});}async[_0x21cec4(0x2cb)+'l'](_0x562a7d){var _0x5b5029=_0x21cec4;const _0x5c87d3=await this['sdk']['build'+'AuthH'+_0x5b5029(0x2ab)]();return this[_0x5b5029(0x318)][_0x5b5029(0x1d4)+'st'](this[_0x5b5029(0x318)][_0x5b5029(0x24a)+_0x5b5029(0x1c1)][_0x5b5029(0x20f)+_0x5b5029(0x330)]['detai'+'l'](_0x562a7d),{'baseUrl':this[_0x5b5029(0x318)]['getBa'+_0x5b5029(0x2bc)](),'headers':_0x5c87d3,'body':void(0x21a*0x11+-0x1a1c+-0x99e)});}},feedbackSourceSchema=z[_0x21cec4(0x3b7)](['tenas','openl'+'oaf','openl'+'oaf-s'+_0x21cec4(0x1c8)]),feedbackTypeSchema=z[_0x21cec4(0x3b7)](['ui',_0x21cec4(0x3b5)+_0x21cec4(0x3bb)+'e',_0x21cec4(0x2c8),_0x21cec4(0x370)+'re',_0x21cec4(0x1c5),'other']),feedbackSaasStatusSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x2a0)+'d',_0x21cec4(0x150),_0x21cec4(0x44b)+'ved',_0x21cec4(0x4ba)+'ed']),feedbackSubmitRequestSchema=z[_0x21cec4(0x13a)+'t']({'source':feedbackSourceSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'type':feedbackTypeSchema,'content':z['strin'+'g']()[_0x21cec4(0x1ab)]()[_0x21cec4(0x2db)](-0x1c69+-0x40e*0x2+0x2486),'context':z['recor'+'d'](z[_0x21cec4(0x327)+'g'](),z[_0x21cec4(0x201)+'wn']()),'email':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1ab)]()[_0x21cec4(0x2b2)]()[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),feedbackSubmitErrorSchema=z[_0x21cec4(0x13a)+'t']({'message':z[_0x21cec4(0x327)+'g']()}),feedbackSubmitResponseSchema=z[_0x21cec4(0x49c)]([z['void'](),feedbackSubmitErrorSchema]),feedbackListRequestSchema=z[_0x21cec4(0x13a)+'t']({'page':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()['min'](-0x23a6+-0x1aa3+0x3e4a)[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'pageSize':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()[_0x21cec4(0x2db)](0x99c+0xb*-0x29a+0x1f*0x9d)[_0x21cec4(0x4aa)](-0x7c2*-0x5+0x10a2+0x6*-0x92c)[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'type':feedbackTypeSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'source':feedbackSourceSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'saasStatus':feedbackSaasStatusSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'keyword':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x1ab)]()[_0x21cec4(0x2db)](0xf81+0x24a3+-0x3423*0x1)['optio'+_0x21cec4(0x44f)](),'startAt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x3ec)+_0x21cec4(0x41b)]()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'endAt':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x3ec)+_0x21cec4(0x41b)]()['optio'+'nal']()}),feedbackItemSchema=z[_0x21cec4(0x13a)+'t']({'id':z[_0x21cec4(0x327)+'g'](),'source':feedbackSourceSchema,'type':feedbackTypeSchema,'saasStatus':feedbackSaasStatusSchema,'response':z[_0x21cec4(0x327)+'g']()['optio'+_0x21cec4(0x44f)](),'userId':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'email':z['strin'+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'content':z[_0x21cec4(0x327)+'g'](),'context':z[_0x21cec4(0x490)+'d'](z[_0x21cec4(0x327)+'g'](),z[_0x21cec4(0x201)+'wn']()),'createdAt':z[_0x21cec4(0x327)+'g']()}),feedbackListPayloadSchema=z[_0x21cec4(0x13a)+'t']({'items':z[_0x21cec4(0x363)](feedbackItemSchema),'page':z['numbe'+'r']()[_0x21cec4(0x4bd)](),'pageSize':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)](),'total':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()}),feedbackListResponseSchema=z[_0x21cec4(0x49c)]([feedbackListPayloadSchema,feedbackSubmitErrorSchema]),feedbackDetailRequestSchema=z[_0x21cec4(0x31a)](),_0x46eee5={};_0x46eee5[_0x21cec4(0x20f)+_0x21cec4(0x330)]=feedbackItemSchema;var feedbackDetailPayloadSchema=z['objec'+'t'](_0x46eee5),feedbackDetailResponseSchema=z[_0x21cec4(0x49c)]([feedbackDetailPayloadSchema,feedbackSubmitErrorSchema]),_0x158af7={};_0x158af7[_0x21cec4(0x18b)+'d']='POST',_0x158af7[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x20a)+'c/fee'+_0x21cec4(0x4e7),_0x158af7[_0x21cec4(0x1d4)+'stSch'+_0x21cec4(0x2e7)]=feedbackSubmitRequestSchema,_0x158af7[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=feedbackSubmitResponseSchema;var _0x26e949={};_0x26e949['metho'+'d']=_0x21cec4(0x192),_0x26e949['path']=_0x21cec4(0x26b)+_0x21cec4(0x20f)+_0x21cec4(0x40d)+_0x21cec4(0x392),_0x26e949[_0x21cec4(0x1d4)+'stSch'+_0x21cec4(0x2e7)]=feedbackListRequestSchema,_0x26e949['respo'+'nseSc'+'hema']=feedbackListResponseSchema;var feedbackEndpoints={'submit':new Endpoint(_0x158af7),'list':new Endpoint(_0x26e949),'detail':_0x3502a0=>new Endpoint({'method':_0x21cec4(0x3cd),'path':_0x21cec4(0x26b)+'feedb'+_0x21cec4(0x328)+_0x3502a0,'requestSchema':feedbackDetailRequestSchema,'responseSchema':feedbackDetailResponseSchema})},skills_exports={},_0x549652={};_0x549652['Skill'+_0x21cec4(0x1b4)+'nt']=()=>SkillsClient,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x191)+_0x21cec4(0x40e)+_0x21cec4(0x400)+_0x21cec4(0x175)]=()=>skillArchiveFormatSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x489)+_0x21cec4(0x4a4)+_0x21cec4(0x175)]=()=>skillListItemSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x24b)+_0x21cec4(0x3f3)+_0x21cec4(0x176)+'ema']=()=>skillOwnerSummarySchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x2d0)+_0x21cec4(0x21e)+'ma']=()=>skillSourceSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x266)+_0x21cec4(0x36e)+'ma']=()=>skillStatusSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x298)+_0x21cec4(0x2d8)]=()=>skillTypeSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x466)+_0x21cec4(0x302)+_0x21cec4(0x3d3)+_0x21cec4(0x2d8)]=()=>skillVersionSummarySchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x1f0)+_0x21cec4(0x345)+_0x21cec4(0x28d)+'a']=()=>skillVisibilitySchema,_0x549652['skill'+_0x21cec4(0x4be)+_0x21cec4(0x161)+_0x21cec4(0x1a0)+_0x21cec4(0x2d8)]=()=>skillsDetailRequestSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x4be)+_0x21cec4(0x38c)+_0x21cec4(0x34c)+'Schem'+'a']=()=>skillsDetailResponseSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x321)+_0x21cec4(0x458)+_0x21cec4(0x1b6)+_0x21cec4(0x3a3)+'ema']=()=>skillsDownloadResponseSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x34b)+_0x21cec4(0x3ce)]=()=>skillsEndpoints,_0x549652[_0x21cec4(0x4d4)+'sList'+_0x21cec4(0x137)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=()=>skillsListRequestSchema,_0x549652[_0x21cec4(0x4d4)+_0x21cec4(0x446)+_0x21cec4(0x2d1)+'nseSc'+_0x21cec4(0x175)]=()=>skillsListResponseSchema,__export(skills_exports,_0x549652);function parseDownloadFileName(_0xd6a35e,_0x2c80bf){var _0x850823=_0x21cec4;if(!_0xd6a35e)return _0x2c80bf;const _0x2a5ea2=_0xd6a35e[_0x850823(0x3c3)](/filename\*=UTF-8''([^;]+)/i);if(_0x2a5ea2?.[0x177d+0x1c1b*0x1+0x3397*-0x1])try{return decodeURIComponent(_0x2a5ea2[-0x1acc+-0x156b+-0x181c*-0x2]);}catch{return _0x2a5ea2[0x597*0x1+-0x487+-0x10f];}const _0x351316=_0xd6a35e[_0x850823(0x3c3)](/filename="?([^"]+)"?/i);return _0x351316?.[0x2*-0xd3a+0x7d*0x31+0x18*0x1b]??_0x2c80bf;}function _0x4c8f(_0x5e6d9d,_0x533ac7){_0x5e6d9d=_0x5e6d9d-(0x8e*-0x21+0x73d+0xc46);var _0x51860a=_0x4001();var _0x2f6546=_0x51860a[_0x5e6d9d];if(_0x4c8f['jlgRYb']===undefined){var _0x115bac=function(_0x4c32c2){var _0x1f0da3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x11427e='',_0x5a1bd0='';for(var _0x3d3e34=0x1784+0x4f3+-0x1c77,_0x5e0339,_0xa848af,_0x2e7759=0xc*0x10c+0x68f*-0x1+0x1*-0x601;_0xa848af=_0x4c32c2['charAt'](_0x2e7759++);~_0xa848af&&(_0x5e0339=_0x3d3e34%(0x1*0x3e0+-0x19b5*-0x1+-0x1d91)?_0x5e0339*(-0xd5b*0x1+-0x1*-0x10a3+0xc2*-0x4)+_0xa848af:_0xa848af,_0x3d3e34++%(0x4c*0x6d+-0x4c9+0x583*-0x5))?_0x11427e+=String['fromCharCode'](0x2c2*-0xb+0x20b+0x1d4a&_0x5e0339>>(-(-0x8*0x137+-0x839+0x11f3)*_0x3d3e34&-0x3*0x89+0x2141*-0x1+0x1171*0x2)):-0x2019+0x154c*0x1+0xacd){_0xa848af=_0x1f0da3['indexOf'](_0xa848af);}for(var _0x1d1434=-0xcb*0xb+0xf41*0x2+-0x15c9,_0x2a8394=_0x11427e['length'];_0x1d1434<_0x2a8394;_0x1d1434++){_0x5a1bd0+='%'+('00'+_0x11427e['charCodeAt'](_0x1d1434)['toString'](-0x1*0x1ad6+0xa3*-0x12+0x265c))['slice'](-(0x838+-0x2442+0x1c0c));}return decodeURIComponent(_0x5a1bd0);};_0x4c8f['MGWxfs']=_0x115bac,_0x4c8f['aEghPc']={},_0x4c8f['jlgRYb']=!![];}var _0x7dc032=_0x51860a[0x176d+0x5bd*0x3+-0xa29*0x4],_0x115386=_0x5e6d9d+_0x7dc032,_0x410ad7=_0x4c8f['aEghPc'][_0x115386];return!_0x410ad7?(_0x2f6546=_0x4c8f['MGWxfs'](_0x2f6546),_0x4c8f['aEghPc'][_0x115386]=_0x2f6546):_0x2f6546=_0x410ad7,_0x2f6546;}var SkillsClient=class{[_0x21cec4(0x318)];constructor(_0x31bba2){var _0x2c063e=_0x21cec4;this[_0x2c063e(0x318)]=_0x31bba2;}async[_0x21cec4(0x505)](_0x4b78d7){var _0x1c7382=_0x21cec4;const _0x31cfaf=await this[_0x1c7382(0x318)][_0x1c7382(0x1a1)+_0x1c7382(0x3a4)+_0x1c7382(0x2ab)]();return this[_0x1c7382(0x318)][_0x1c7382(0x1d4)+'st'](this[_0x1c7382(0x318)][_0x1c7382(0x24a)+_0x1c7382(0x1c1)]['skill'+'s']['list'],{'baseUrl':this['sdk'][_0x1c7382(0x475)+_0x1c7382(0x2bc)](),'headers':_0x31cfaf,'body':_0x4b78d7??{}});}async[_0x21cec4(0x2cb)+'l'](_0xdd387b){var _0xe88536=_0x21cec4;const _0x4e889d=await this[_0xe88536(0x318)][_0xe88536(0x1a1)+'AuthH'+_0xe88536(0x2ab)]();return this[_0xe88536(0x318)][_0xe88536(0x1d4)+'st'](this[_0xe88536(0x318)][_0xe88536(0x24a)+_0xe88536(0x1c1)][_0xe88536(0x4d4)+'s']['detai'+'l'](_0xdd387b),{'baseUrl':this[_0xe88536(0x318)][_0xe88536(0x475)+_0xe88536(0x2bc)](),'headers':_0x4e889d,'body':void(0xd10+-0x1c3+-0xb4d)});}async[_0x21cec4(0x15e)+_0x21cec4(0x30e)](_0x4b7a9a){var _0x4557bc=_0x21cec4;const _0x4c3998=await this['sdk'][_0x4557bc(0x1a1)+_0x4557bc(0x3a4)+_0x4557bc(0x2ab)](),_0x4a03fb=this[_0x4557bc(0x318)][_0x4557bc(0x475)+'seUrl']()+(_0x4557bc(0x26b)+'skill'+'s/')+_0x4b7a9a+(_0x4557bc(0x4c5)+'load');var _0x51654f={};_0x51654f[_0x4557bc(0x18b)+'d']=_0x4557bc(0x3cd),_0x51654f[_0x4557bc(0x229)+'rs']=_0x4c3998;const _0x2e7695=await fetch(_0x4a03fb,_0x51654f);if(!_0x2e7695['ok']){const _0x561a61=await _0x2e7695[_0x4557bc(0x216)]()[_0x4557bc(0x16c)](()=>({'message':_0x4557bc(0x3d9)+_0x4557bc(0x231)+'load\x20'+_0x4557bc(0x36a)+'d'}));throw new Error(_0x561a61['messa'+'ge']??'Skill'+_0x4557bc(0x231)+_0x4557bc(0x18a)+_0x4557bc(0x36a)+'d');}return{'fileName':parseDownloadFileName(_0x2e7695['heade'+'rs'][_0x4557bc(0x46b)](_0x4557bc(0x213)+_0x4557bc(0x288)+_0x4557bc(0x29c)+_0x4557bc(0x1c3)),_0x4b7a9a+(_0x4557bc(0x3c0)+'l')),'contentType':_0x2e7695[_0x4557bc(0x229)+'rs']['get'](_0x4557bc(0x213)+_0x4557bc(0x415)+'pe')??'appli'+'catio'+_0x4557bc(0x398)+_0x4557bc(0x160)+_0x4557bc(0x4ac),'data':await _0x2e7695[_0x4557bc(0x363)+_0x4557bc(0x4c2)+'r']()};}},skillTypeSchema=z['enum'](['devel'+_0x21cec4(0x3b8)+'t',_0x21cec4(0x3ff)+_0x21cec4(0x26d),'ai',_0x21cec4(0x261)+'er',_0x21cec4(0x1b2),_0x21cec4(0x418)+'ng','desig'+'n',_0x21cec4(0x2f1)]),skillSourceSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x2b8)+_0x21cec4(0x367)+_0x21cec4(0x14c),_0x21cec4(0x174)+_0x21cec4(0x4f4)+'d']),skillVisibilitySchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x20a)+'c',_0x21cec4(0x1a9)+'te']),skillStatusSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x472)+'e',_0x21cec4(0x344)+_0x21cec4(0x487)]),skillArchiveFormatSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x4d4),_0x21cec4(0x39a),_0x21cec4(0x3dd)]),skillOwnerSummarySchema=z['objec'+'t']({'id':z[_0x21cec4(0x327)+'g'](),'name':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x332)+_0x21cec4(0x4d0)](),'email':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x332)+'ble']()}),skillVersionSummarySchema=z[_0x21cec4(0x13a)+'t']({'id':z[_0x21cec4(0x327)+'g'](),'version':z[_0x21cec4(0x327)+'g'](),'archiveFormat':skillArchiveFormatSchema,'fileName':z[_0x21cec4(0x327)+'g'](),'fileSize':z[_0x21cec4(0x4f1)+'r'](),'changelog':z['strin'+'g']()[_0x21cec4(0x332)+_0x21cec4(0x4d0)](),'createdAt':z[_0x21cec4(0x327)+'g']()}),skillListItemSchema=z[_0x21cec4(0x13a)+'t']({'id':z[_0x21cec4(0x327)+'g'](),'slug':z[_0x21cec4(0x327)+'g'](),'name':z[_0x21cec4(0x327)+'g'](),'summary':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x332)+_0x21cec4(0x4d0)](),'type':skillTypeSchema,'tags':z['array'](z[_0x21cec4(0x327)+'g']()),'source':skillSourceSchema,'visibility':skillVisibilitySchema,'status':skillStatusSchema,'owner':skillOwnerSummarySchema[_0x21cec4(0x332)+'ble'](),'latestVersion':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x332)+_0x21cec4(0x4d0)](),'downloadCount':z['numbe'+'r'](),'currentVersion':skillVersionSummarySchema[_0x21cec4(0x332)+_0x21cec4(0x4d0)](),'createdAt':z[_0x21cec4(0x327)+'g'](),'updatedAt':z[_0x21cec4(0x327)+'g']()}),skillsListRequestSchema=z[_0x21cec4(0x13a)+'t']({'page':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()[_0x21cec4(0x2db)](0x1d5d+-0x234c+-0x130*-0x5)['defau'+'lt'](0x1c7b+0x4*-0x68f+0x23e*-0x1),'pageSize':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)]()[_0x21cec4(0x2db)](0x3*-0x275+0x29*-0x67+0x17df)[_0x21cec4(0x4aa)](-0x1c5*0xd+-0x699+0xb*0x2ba)[_0x21cec4(0x28a)+'lt'](0x1*0xa09+-0xd0e*-0x2+0x1*-0x2419),'keyword':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'type':skillTypeSchema[_0x21cec4(0x211)+_0x21cec4(0x44f)]()}),skillsListResponseSchema=z['objec'+'t']({'items':z[_0x21cec4(0x363)](skillListItemSchema),'page':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)](),'pageSize':z[_0x21cec4(0x4f1)+'r']()[_0x21cec4(0x4bd)](),'total':z[_0x21cec4(0x4f1)+'r']()['int']()}),skillsDetailRequestSchema=z[_0x21cec4(0x31a)](),skillsDetailResponseSchema=z[_0x21cec4(0x13a)+'t']({'skill':skillListItemSchema['exten'+'d']({'manifestJson':z[_0x21cec4(0x201)+'wn']()[_0x21cec4(0x332)+_0x21cec4(0x4d0)](),'readmeMarkdown':z['strin'+'g']()['nulla'+_0x21cec4(0x4d0)](),'versions':z[_0x21cec4(0x363)](skillVersionSummarySchema)})}),skillsDownloadResponseSchema=z[_0x21cec4(0x13a)+'t']({'fileName':z[_0x21cec4(0x327)+'g'](),'contentType':z[_0x21cec4(0x327)+'g'](),'data':z[_0x21cec4(0x244)+'m'](_0x406085=>_0x406085 instanceof ArrayBuffer)}),_0x542181={};_0x542181[_0x21cec4(0x18b)+'d']='POST',_0x542181[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x4d4)+_0x21cec4(0x4a3)+'t',_0x542181[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=skillsListRequestSchema,_0x542181[_0x21cec4(0x2fa)+_0x21cec4(0x172)+'hema']=skillsListResponseSchema;var skillsEndpoints={'list':new Endpoint(_0x542181),'detail':_0x5a0f39=>new Endpoint({'method':_0x21cec4(0x3cd),'path':_0x21cec4(0x26b)+'skill'+'s/'+_0x5a0f39,'requestSchema':skillsDetailRequestSchema,'responseSchema':skillsDetailResponseSchema})},user_exports={},_0x23dc3b={};_0x23dc3b[_0x21cec4(0x385)+_0x21cec4(0x323)]=()=>UserClient,_0x23dc3b[_0x21cec4(0x4ff)+_0x21cec4(0x412)+'nts']=()=>userEndpoints,_0x23dc3b['userM'+_0x21cec4(0x255)+_0x21cec4(0x507)+_0x21cec4(0x158)+_0x21cec4(0x2d8)]=()=>userMembershipLevelSchema,_0x23dc3b[_0x21cec4(0x17d)+_0x21cec4(0x1a8)+_0x21cec4(0x4c9)+_0x21cec4(0x28d)+'a']=()=>userSelfRequestSchema,_0x23dc3b['userS'+_0x21cec4(0x1a8)+_0x21cec4(0x409)+_0x21cec4(0x21e)+'ma']=()=>userSelfResponseSchema,_0x23dc3b[_0x21cec4(0x17d)+_0x21cec4(0x4f9)+_0x21cec4(0x175)]=()=>userSelfSchema,__export(user_exports,_0x23dc3b);var UserClient=class{[_0x21cec4(0x318)];constructor(_0x36df20){this['sdk']=_0x36df20;}async[_0x21cec4(0x45e)](){var _0x149bc0=_0x21cec4;const _0x57a063=await this[_0x149bc0(0x318)][_0x149bc0(0x1a1)+_0x149bc0(0x3a4)+_0x149bc0(0x2ab)]();return this[_0x149bc0(0x318)][_0x149bc0(0x1d4)+'st'](this[_0x149bc0(0x318)][_0x149bc0(0x24a)+_0x149bc0(0x1c1)][_0x149bc0(0x2da)][_0x149bc0(0x45e)],{'baseUrl':this[_0x149bc0(0x318)][_0x149bc0(0x475)+'seUrl'](),'headers':_0x57a063,'body':void(-0x2533*-0x1+-0x175*-0x1+-0x26a8)});}},userMembershipLevelSchema=z[_0x21cec4(0x3b7)]([_0x21cec4(0x411),_0x21cec4(0x2cf),'pro',_0x21cec4(0x4d9)+'um',_0x21cec4(0x179)+'ity']),userSelfSchema=z[_0x21cec4(0x13a)+'t']({'id':z[_0x21cec4(0x327)+'g'](),'email':z[_0x21cec4(0x327)+'g']()['optio'+'nal'](),'name':z[_0x21cec4(0x327)+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'avatarUrl':z['strin'+'g']()[_0x21cec4(0x211)+_0x21cec4(0x44f)](),'provider':z[_0x21cec4(0x327)+'g'](),'membershipLevel':userMembershipLevelSchema,'creditsBalance':z[_0x21cec4(0x4f1)+'r'](),'createdAt':z['strin'+'g'](),'updatedAt':z['strin'+'g']()}),userSelfRequestSchema=z[_0x21cec4(0x31a)](),_0x4dca0a={};_0x4dca0a[_0x21cec4(0x2da)]=userSelfSchema;var userSelfResponseSchema=z[_0x21cec4(0x13a)+'t'](_0x4dca0a),_0x577d78={};_0x577d78[_0x21cec4(0x18b)+'d']=_0x21cec4(0x3cd),_0x577d78[_0x21cec4(0x1fa)]=_0x21cec4(0x26b)+_0x21cec4(0x2df)+_0x21cec4(0x45e),_0x577d78[_0x21cec4(0x1d4)+_0x21cec4(0x4b4)+_0x21cec4(0x2e7)]=userSelfRequestSchema,_0x577d78[_0x21cec4(0x2fa)+_0x21cec4(0x172)+_0x21cec4(0x175)]=userSelfResponseSchema;var userEndpoints={'self':new Endpoint(_0x577d78)},SaaSContract=class{[_0x21cec4(0x2e8)]=authEndpoints;['ai']=aiEndpoints;[_0x21cec4(0x272)+'ls']=aiToolsEndpoints;[_0x21cec4(0x2dc)+_0x21cec4(0x1ed)]=auxiliaryEndpoints;[_0x21cec4(0x20f)+_0x21cec4(0x330)]=feedbackEndpoints;[_0x21cec4(0x4d4)+'s']=skillsEndpoints;[_0x21cec4(0x2da)]=userEndpoints;},contract=new SaaSContract();function setHeader(_0xec8490,_0x1f4b30,_0x10d79a){var _0x480bb9=_0x21cec4;_0xec8490[_0x1f4b30[_0x480bb9(0x23a)+_0x480bb9(0x22c)+'e']()]=_0x10d79a;}function normalizeHeaders(_0x47c8cc){var _0x261f28=_0x21cec4;const _0x52a100={};if(!_0x47c8cc)return _0x52a100;if(Array['isArr'+'ay'](_0x47c8cc)){for(const [_0x1dfd8c,_0x13f985]of _0x47c8cc){setHeader(_0x52a100,_0x1dfd8c,_0x13f985);}return _0x52a100;}if(typeof _0x47c8cc[_0x261f28(0x235)+'ch']===_0x261f28(0x35a)+_0x261f28(0x171))return _0x47c8cc['forEa'+'ch']((_0x1b60ed,_0x47bf48)=>{setHeader(_0x52a100,_0x47bf48,_0x1b60ed);}),_0x52a100;for(const [_0x280ee2,_0x2b09fc]of Object[_0x261f28(0x3f5)+'es'](_0x47c8cc)){typeof _0x2b09fc===_0x261f28(0x327)+'g'&&setHeader(_0x52a100,_0x280ee2,_0x2b09fc);}return _0x52a100;}function mergeHeaders(..._0x17754e){var _0x29ec4f=_0x21cec4;const _0x5b3313={};for(const _0xb8897e of _0x17754e){const _0x77d9ea=normalizeHeaders(_0xb8897e);for(const [_0x3e9066,_0x13932c]of Object[_0x29ec4f(0x3f5)+'es'](_0x77d9ea)){_0x5b3313[_0x3e9066]=_0x13932c;}}return _0x5b3313;}var SaaSHttpError=class extends Error{[_0x21cec4(0x29b)+'s'];['statu'+_0x21cec4(0x4dc)];['paylo'+'ad'];constructor(_0x1b5eef,_0x473dfe){var _0x2f2f00=_0x21cec4;super(_0x1b5eef),this[_0x2f2f00(0x22d)]=_0x2f2f00(0x3af)+_0x2f2f00(0x47d)+'ror',this[_0x2f2f00(0x29b)+'s']=_0x473dfe['statu'+'s'],this[_0x2f2f00(0x29b)+_0x2f2f00(0x4dc)]=_0x473dfe[_0x2f2f00(0x29b)+_0x2f2f00(0x4dc)],this[_0x2f2f00(0x2cd)+'ad']=_0x473dfe[_0x2f2f00(0x2cd)+'ad'];}},SaaSSchemaError=class extends Error{[_0x21cec4(0x3aa)+'s'];constructor(_0x34798b,_0x5561a3){var _0x4f98ce=_0x21cec4;super(_0x34798b),this[_0x4f98ce(0x22d)]=_0x4f98ce(0x3ed)+_0x4f98ce(0x2d8)+_0x4f98ce(0x27b),this[_0x4f98ce(0x3aa)+'s']=_0x5561a3;}},SaaSNetworkError=class extends Error{[_0x21cec4(0x2fe)];constructor(_0x8848fe,_0x32e36c){var _0x42e8e6=_0x21cec4;super(_0x8848fe),this['name']=_0x42e8e6(0x44e)+'etwor'+_0x42e8e6(0x3de)+'r',this[_0x42e8e6(0x2fe)]=_0x32e36c;}};function logSdkError(_0x1f0472){var _0x2128f4=_0x21cec4;try{console[_0x2128f4(0x30b)](_0x2128f4(0x432)+'\x20requ'+_0x2128f4(0x360)+_0x2128f4(0x3f7),_0x1f0472);}catch{}}async function request(_0x585342,_0x53f6c3,_0x387e51){var _0x42ed56=_0x21cec4;const _0x17b62d=new URL(_0x53f6c3['path'],_0x387e51[_0x42ed56(0x3eb)+'rl']);let _0x318a3f;try{_0x318a3f=_0x53f6c3['parse'+_0x42ed56(0x137)+'st'](_0x387e51[_0x42ed56(0x3ab)]);}catch(_0x4c3698){const _0x514002=_0x4c3698&&typeof _0x4c3698===_0x42ed56(0x13a)+'t'?_0x4c3698['issue'+'s']:void(-0x414*-0x9+-0x1*-0x14d1+0x13*-0x307);logSdkError({'message':_0x42ed56(0x137)+_0x42ed56(0x38d)+_0x42ed56(0x29d)+_0x42ed56(0x2d9)+_0x42ed56(0x26d)+_0x42ed56(0x430)+'ed','url':_0x17b62d[_0x42ed56(0x2c6)+_0x42ed56(0x233)](),'method':_0x53f6c3[_0x42ed56(0x18b)+'d'],'payload':_0x387e51[_0x42ed56(0x3ab)],'error':_0x4c3698});throw new SaaSSchemaError(_0x42ed56(0x137)+_0x42ed56(0x38d)+'hema\x20'+'valid'+_0x42ed56(0x26d)+_0x42ed56(0x430)+'ed',_0x514002);}const _0x592228=mergeHeaders(_0x387e51[_0x42ed56(0x229)+'rs']);var _0x894d7={};_0x894d7[_0x42ed56(0x18b)+'d']=_0x53f6c3['metho'+'d'],_0x894d7[_0x42ed56(0x229)+'rs']=_0x592228;const _0x48142f=_0x894d7;_0x318a3f!==void(-0x9*0x1b+-0xa81+0xb74)&&(!_0x592228[_0x42ed56(0x213)+_0x42ed56(0x415)+'pe']&&(_0x592228['conte'+_0x42ed56(0x415)+'pe']=_0x42ed56(0x2e6)+_0x42ed56(0x1d3)+_0x42ed56(0x45d)+'n'),_0x48142f[_0x42ed56(0x3ab)]=JSON[_0x42ed56(0x327)+_0x42ed56(0x193)](_0x318a3f));let _0x36f7a0;try{_0x36f7a0=await _0x585342(_0x17b62d['toStr'+_0x42ed56(0x233)](),_0x48142f);}catch(_0x12513e){logSdkError({'message':_0x42ed56(0x186)+_0x42ed56(0x4b3)+'quest'+_0x42ed56(0x430)+'ed','url':_0x17b62d[_0x42ed56(0x2c6)+_0x42ed56(0x233)](),'method':_0x53f6c3['metho'+'d'],'error':_0x12513e});throw new SaaSNetworkError(_0x42ed56(0x186)+'rk\x20re'+_0x42ed56(0x4c9)+_0x42ed56(0x430)+'ed',_0x12513e);}const _0x4aabb2=await _0x36f7a0[_0x42ed56(0x2c1)]();let _0xb8803b;if(_0x53f6c3[_0x42ed56(0x2fa)+_0x42ed56(0x3be)+'pe']===_0x42ed56(0x2c1))_0xb8803b=_0x4aabb2;else{if(_0x4aabb2)try{_0xb8803b=JSON[_0x42ed56(0x27d)](_0x4aabb2);}catch{logSdkError({'message':_0x42ed56(0x2d1)+_0x42ed56(0x3d2)+_0x42ed56(0x19a)+_0x42ed56(0x3f0)+'d\x20JSO'+'N','url':_0x17b62d[_0x42ed56(0x2c6)+_0x42ed56(0x233)](),'method':_0x53f6c3[_0x42ed56(0x18b)+'d'],'status':_0x36f7a0['statu'+'s'],'statusText':_0x36f7a0[_0x42ed56(0x29b)+_0x42ed56(0x4dc)],'payload':_0x4aabb2});var _0x467153={};_0x467153[_0x42ed56(0x29b)+'s']=_0x36f7a0[_0x42ed56(0x29b)+'s'],_0x467153[_0x42ed56(0x29b)+_0x42ed56(0x4dc)]=_0x36f7a0['statu'+_0x42ed56(0x4dc)],_0x467153['paylo'+'ad']=_0x4aabb2;throw new SaaSHttpError(_0x42ed56(0x2d1)+_0x42ed56(0x3d2)+'s\x20not'+_0x42ed56(0x3f0)+_0x42ed56(0x281)+'N',_0x467153);}}let _0x145b46;try{_0x145b46=_0x53f6c3['parse'+_0x42ed56(0x2d1)+_0x42ed56(0x14b)](_0xb8803b);}catch(_0x1d8639){const _0x345bbc=_0x1d8639&&typeof _0x1d8639===_0x42ed56(0x13a)+'t'?_0x1d8639[_0x42ed56(0x3aa)+'s']:void(-0x985+0x15fc+-0x1*0xc77);logSdkError({'message':_0x42ed56(0x2d1)+_0x42ed56(0x356)+_0x42ed56(0x2d8)+_0x42ed56(0x3f0)+_0x42ed56(0x151)+_0x42ed56(0x444)+_0x42ed56(0x487),'url':_0x17b62d['toStr'+_0x42ed56(0x233)](),'method':_0x53f6c3[_0x42ed56(0x18b)+'d'],'status':_0x36f7a0['statu'+'s'],'statusText':_0x36f7a0[_0x42ed56(0x29b)+_0x42ed56(0x4dc)],'payload':_0xb8803b,'error':_0x1d8639});throw new SaaSSchemaError(_0x42ed56(0x2d1)+_0x42ed56(0x356)+_0x42ed56(0x2d8)+'\x20vali'+_0x42ed56(0x151)+_0x42ed56(0x444)+_0x42ed56(0x487),_0x345bbc);}if(!_0x36f7a0['ok']){logSdkError({'message':_0x42ed56(0x137)+_0x42ed56(0x3d4)+'iled','url':_0x17b62d['toStr'+_0x42ed56(0x233)](),'method':_0x53f6c3[_0x42ed56(0x18b)+'d'],'status':_0x36f7a0[_0x42ed56(0x29b)+'s'],'statusText':_0x36f7a0['statu'+_0x42ed56(0x4dc)],'payload':_0x145b46});var _0x47f7eb={};_0x47f7eb[_0x42ed56(0x29b)+'s']=_0x36f7a0[_0x42ed56(0x29b)+'s'],_0x47f7eb['statu'+_0x42ed56(0x4dc)]=_0x36f7a0[_0x42ed56(0x29b)+_0x42ed56(0x4dc)],_0x47f7eb[_0x42ed56(0x2cd)+'ad']=_0x145b46;throw new SaaSHttpError(_0x42ed56(0x137)+_0x42ed56(0x3d4)+_0x42ed56(0x1d7),_0x47f7eb);}return _0x145b46;}var BaseSaaSClient=class{[_0x21cec4(0x24a)+_0x21cec4(0x1c1)];['baseU'+'rl'];[_0x21cec4(0x4d6)+'cessT'+_0x21cec4(0x163)];['fetch'+'er'];[_0x21cec4(0x229)+'rs'];constructor(_0x30e9b1){var _0x431966=_0x21cec4;this[_0x431966(0x3eb)+'rl']=_0x30e9b1[_0x431966(0x3eb)+'rl'],this[_0x431966(0x4d6)+'cessT'+_0x431966(0x163)]=_0x30e9b1[_0x431966(0x4d6)+_0x431966(0x388)+_0x431966(0x163)],this[_0x431966(0x26f)+'er']=_0x30e9b1[_0x431966(0x26f)+'er']??fetch,this['heade'+'rs']=_0x30e9b1[_0x431966(0x229)+'rs'],this[_0x431966(0x24a)+'act']=_0x30e9b1[_0x431966(0x24a)+_0x431966(0x1c1)];}async[_0x21cec4(0x1d4)+'st'](_0x3de7b2,_0x21a003){var _0x3a77ac=_0x21cec4;const _0x259b22=mergeHeaders(this[_0x3a77ac(0x229)+'rs'],_0x21a003[_0x3a77ac(0x229)+'rs']);return request(this[_0x3a77ac(0x26f)+'er'],_0x3de7b2,{'baseUrl':_0x21a003['baseU'+'rl']??this[_0x3a77ac(0x3eb)+'rl'],'headers':_0x259b22,'body':_0x21a003[_0x3a77ac(0x3ab)]});}async[_0x21cec4(0x1a1)+_0x21cec4(0x3a4)+_0x21cec4(0x2ab)](){var _0x5d91ac=_0x21cec4;if(!this[_0x5d91ac(0x4d6)+_0x5d91ac(0x388)+_0x5d91ac(0x163)])return{};const _0x430e77=await this[_0x5d91ac(0x4d6)+_0x5d91ac(0x388)+_0x5d91ac(0x163)]();if(!_0x430e77)return{};var _0x234578={};return _0x234578[_0x5d91ac(0x196)+_0x5d91ac(0x2a7)+_0x5d91ac(0x171)]='Beare'+'r\x20'+_0x430e77,_0x234578;}['getBa'+_0x21cec4(0x2bc)](){var _0x2d4d49=_0x21cec4;return this[_0x2d4d49(0x3eb)+'rl'];}},SaaSClient=class extends BaseSaaSClient{[_0x21cec4(0x2e8)];['ai'];[_0x21cec4(0x272)+'ls'];[_0x21cec4(0x2dc)+_0x21cec4(0x1ed)];[_0x21cec4(0x20f)+_0x21cec4(0x330)];[_0x21cec4(0x4d4)+'s'];[_0x21cec4(0x2da)];constructor(_0x42b3f5){var _0xbc7ffa=_0x21cec4,_0x8faccf={..._0x42b3f5};_0x8faccf[_0xbc7ffa(0x24a)+_0xbc7ffa(0x1c1)]=_0x42b3f5[_0xbc7ffa(0x24a)+_0xbc7ffa(0x1c1)]??contract,super(_0x8faccf),this['auth']=new AuthClient(this),this['ai']=new AiClient(this),this[_0xbc7ffa(0x272)+'ls']=new AiToolsClient(this),this[_0xbc7ffa(0x2dc)+_0xbc7ffa(0x1ed)]=new AuxiliaryClient(this),this[_0xbc7ffa(0x20f)+_0xbc7ffa(0x330)]=new FeedbackClient(this),this[_0xbc7ffa(0x4d4)+'s']=new SkillsClient(this),this[_0xbc7ffa(0x2da)]=new UserClient(this);}};function createTrpcClient(_0x4825a8){var _0x37735f=_0x21cec4;return createTRPCClient({'links':[httpBatchLink({'url':new URL(_0x37735f(0x36f),_0x4825a8[_0x37735f(0x3eb)+'rl'])[_0x37735f(0x2c6)+'ing'](),'headers':async()=>{var _0x16b227=_0x37735f;const _0x534216=_0x4825a8[_0x16b227(0x4d6)+_0x16b227(0x388)+'oken']?await _0x4825a8['getAc'+_0x16b227(0x388)+_0x16b227(0x163)]():'',_0x2a3918=_0x534216?{'Authorization':_0x16b227(0x2a3)+'r\x20'+_0x534216}:{};return mergeHeaders(_0x4825a8[_0x16b227(0x229)+'rs'],_0x2a3918);}})]});}export{AI_MODEL_CAPABILITY_INPUT_KEYS,AI_MODEL_CAPABILITY_OUTPUT_KEYS,AI_MODEL_TAGS,AI_MODEL_TAG_LABELS,AiClient,AiToolsClient,AuthClient,AuxiliaryClient,Endpoint,FeedbackClient,SaaSClient,SaaSHttpError,SaaSNetworkError,SaaSSchemaError,SkillsClient,UserClient,aiAudioOutputSchema,aiAudioRequestSchema,aiChatCompletionsRequestSchema,aiChatModelSchema,aiChatModelsPayloadSchema,aiChatModelsResponseSchema,aiChatModelsSuccessSchema,aiChatSessionMetadataSchema,aiClientMetadataSchema,aiEndpoints,aiErrorResponseSchema,aiImageInputsSchema,aiImageOutputSchema,aiImageRequestSchema,aiMediaInputSchema,aiModelCapabilitiesInputSchema,aiModelCapabilitiesOutputSchema,aiModelCapabilitiesSchema,aiModelCapabilityCommonSchema,aiModelParameterFieldSchema,aiModelParamsSchema,aiModelSchema,aiModelsPayloadSchema,aiModelsRequestSchema,aiModelsResponseSchema,aiModelsSuccessSchema,aiModelsUpdatedAtDataSchema,aiModelsUpdatedAtResponseSchema,aiModelsUpdatedAtSuccessSchema,ai_exports as aiModule,aiProviderTemplateModelSchema,aiProviderTemplateSchema,aiProviderTemplatesPayloadSchema,aiProviderTemplatesRequestSchema,aiProviderTemplatesResponseSchema,aiProviderTemplatesSuccessSchema,aiResponsesRequestSchema,aiTaskCancelDataSchema,aiTaskCancelRequestSchema,aiTaskCancelResponseSchema,aiTaskCancelSuccessSchema,aiTaskCreatedDataSchema,aiTaskCreatedResponseSchema,aiTaskCreatedSuccessSchema,aiTaskDataSchema,aiTaskErrorSchema,aiTaskRequestSchema,aiTaskResponseSchema,aiTaskResultTypeSchema,aiTaskStatusSchema,aiTaskSuccessSchema,aiToolsEndpoints,ai_tools_exports as aiToolsModule,aiVideoInputsSchema,aiVideoOutputSchema,aiVideoRequestSchema,analyzeSkillsRequestSchema,analyzeSkillsResponseSchema,authEndpoints,authExchangeRequestSchema,authExchangeResponseSchema,authLogoutRequestSchema,authLogoutResponseSchema,auth_exports as authModule,authRefreshErrorSchema,authRefreshRequestSchema,authRefreshResponseSchema,authRefreshSuccessSchema,authRefreshUserSchema,auxiliaryEndpoints,auxiliaryInferRequestSchema,auxiliaryInferResponseSchema,auxiliary_exports as auxiliaryModule,auxiliaryQuotaResponseSchema,contract,createTrpcClient,digitalHumanRequestSchema,feedbackDetailPayloadSchema,feedbackDetailRequestSchema,feedbackDetailResponseSchema,feedbackEndpoints,feedbackItemSchema,feedbackListPayloadSchema,feedbackListRequestSchema,feedbackListResponseSchema,feedback_exports as feedbackModule,feedbackSaasStatusSchema,feedbackSourceSchema,feedbackSubmitErrorSchema,feedbackSubmitRequestSchema,feedbackSubmitResponseSchema,feedbackTypeSchema,imageEditRequestSchema,imageGenerateRequestSchema,mediaAspectRatioSchema,mediaFeatureSchema,mediaGenerateBaseSchema,mediaGenerateRequestSchema,mediaModelsQuerySchema,mediaQualitySchema,mediaResolutionSchema,mediaTaskGroupDataSchema,mediaTaskGroupResponseSchema,mediaTaskGroupSuccessSchema,mediaTaskItemSchema,mediaTaskStatusSchema,mergeHeaders,normalizeHeaders,outpaintRequestSchema,posterRequestSchema,recommendActionsRequestSchema,recommendActionsResponseSchema,request,skillArchiveFormatSchema,skillListItemSchema,skillOwnerSummarySchema,skillSourceSchema,skillStatusSchema,skillTypeSchema,skillVersionSummarySchema,skillVisibilitySchema,skillsDetailRequestSchema,skillsDetailResponseSchema,skillsDownloadResponseSchema,skillsEndpoints,skillsListRequestSchema,skillsListResponseSchema,skills_exports as skillsModule,summarizeRequestSchema,summarizeResponseSchema,ttsRequestSchema,upscaleRequestSchema,userEndpoints,userMembershipLevelSchema,user_exports as userModule,userSelfRequestSchema,userSelfResponseSchema,userSelfSchema,videoGenerateRequestSchema};
|