mtmsdk 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +3 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4377 -0
  6. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -0
  7. package/dist/mtgate_api/@tanstack/react-query.gen.js +2373 -0
  8. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -0
  9. package/dist/mtgate_api/client/client.d.ts +3 -0
  10. package/dist/mtgate_api/client/client.d.ts.map +1 -0
  11. package/dist/mtgate_api/client/client.js +146 -0
  12. package/dist/mtgate_api/client/client.js.map +1 -0
  13. package/dist/mtgate_api/client/index.d.ts +8 -0
  14. package/dist/mtgate_api/client/index.d.ts.map +1 -0
  15. package/dist/mtgate_api/client/index.js +5 -0
  16. package/dist/mtgate_api/client/index.js.map +1 -0
  17. package/dist/mtgate_api/client/types.d.ts +120 -0
  18. package/dist/mtgate_api/client/types.d.ts.map +1 -0
  19. package/dist/mtgate_api/client/types.js +2 -0
  20. package/dist/mtgate_api/client/types.js.map +1 -0
  21. package/dist/mtgate_api/client/utils.d.ts +46 -0
  22. package/dist/mtgate_api/client/utils.d.ts.map +1 -0
  23. package/dist/mtgate_api/client/utils.js +285 -0
  24. package/dist/mtgate_api/client/utils.js.map +1 -0
  25. package/dist/mtgate_api/client.gen.d.ts +13 -0
  26. package/dist/mtgate_api/client.gen.d.ts.map +1 -0
  27. package/dist/mtgate_api/client.gen.js +6 -0
  28. package/dist/mtgate_api/client.gen.js.map +1 -0
  29. package/dist/mtgate_api/core/auth.d.ts +19 -0
  30. package/dist/mtgate_api/core/auth.d.ts.map +1 -0
  31. package/dist/mtgate_api/core/auth.js +14 -0
  32. package/dist/mtgate_api/core/auth.js.map +1 -0
  33. package/dist/mtgate_api/core/bodySerializer.d.ts +18 -0
  34. package/dist/mtgate_api/core/bodySerializer.d.ts.map +1 -0
  35. package/dist/mtgate_api/core/bodySerializer.js +54 -0
  36. package/dist/mtgate_api/core/bodySerializer.js.map +1 -0
  37. package/dist/mtgate_api/core/params.d.ts +24 -0
  38. package/dist/mtgate_api/core/params.d.ts.map +1 -0
  39. package/dist/mtgate_api/core/params.js +88 -0
  40. package/dist/mtgate_api/core/params.js.map +1 -0
  41. package/dist/mtgate_api/core/pathSerializer.d.ts +34 -0
  42. package/dist/mtgate_api/core/pathSerializer.d.ts.map +1 -0
  43. package/dist/mtgate_api/core/pathSerializer.js +114 -0
  44. package/dist/mtgate_api/core/pathSerializer.js.map +1 -0
  45. package/dist/mtgate_api/core/types.d.ts +74 -0
  46. package/dist/mtgate_api/core/types.d.ts.map +1 -0
  47. package/dist/mtgate_api/core/types.js +2 -0
  48. package/dist/mtgate_api/core/types.js.map +1 -0
  49. package/dist/mtgate_api/index.d.ts +3 -0
  50. package/dist/mtgate_api/index.d.ts.map +1 -0
  51. package/dist/mtgate_api/index.js +4 -0
  52. package/dist/mtgate_api/index.js.map +1 -0
  53. package/dist/mtgate_api/schemas.gen.d.ts +1504 -0
  54. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -0
  55. package/dist/mtgate_api/schemas.gen.js +1544 -0
  56. package/dist/mtgate_api/schemas.gen.js.map +1 -0
  57. package/dist/mtgate_api/sdk.gen.d.ts +184 -0
  58. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -0
  59. package/dist/mtgate_api/sdk.gen.js +791 -0
  60. package/dist/mtgate_api/sdk.gen.js.map +1 -0
  61. package/dist/mtgate_api/types.gen.d.ts +3012 -0
  62. package/dist/mtgate_api/types.gen.d.ts.map +1 -0
  63. package/dist/mtgate_api/types.gen.js +9 -0
  64. package/dist/mtgate_api/types.gen.js.map +1 -0
  65. package/dist/mtgate_api/zod.gen.d.ts +3158 -0
  66. package/dist/mtgate_api/zod.gen.d.ts.map +1 -0
  67. package/dist/mtgate_api/zod.gen.js +2171 -0
  68. package/dist/mtgate_api/zod.gen.js.map +1 -0
  69. package/package.json +61 -0
@@ -0,0 +1,3012 @@
1
+ export type Agent = {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ deletedAt?: string;
6
+ tenantId: string;
7
+ name: string;
8
+ description?: string;
9
+ status: string;
10
+ config?: {
11
+ [key: string]: unknown;
12
+ };
13
+ state?: {
14
+ [key: string]: unknown;
15
+ };
16
+ };
17
+ export type AgentListResponse = {
18
+ agents: Array<Agent>;
19
+ total: number;
20
+ };
21
+ export type AgentGetResponse = {
22
+ agent?: Agent;
23
+ };
24
+ export type AgentCreateRequest = {
25
+ name: string;
26
+ description?: string;
27
+ status?: "active" | "inactive" | "error";
28
+ config?: {
29
+ [key: string]: unknown;
30
+ };
31
+ state?: {
32
+ [key: string]: unknown;
33
+ };
34
+ tenantId: string;
35
+ };
36
+ export type AgentChatbotUpdateBodyConfig = {
37
+ name?: string;
38
+ description?: string;
39
+ status?: "active" | "inactive" | "error";
40
+ config?: {
41
+ [key: string]: unknown;
42
+ };
43
+ state?: {
44
+ [key: string]: unknown;
45
+ };
46
+ };
47
+ export type AgentHandlerInfo = {
48
+ /**
49
+ * Agent name
50
+ */
51
+ agentName: string;
52
+ /**
53
+ * Agent ID
54
+ */
55
+ agentId: string;
56
+ /**
57
+ * Agent state
58
+ */
59
+ state?: unknown;
60
+ };
61
+ export type ApiError = {
62
+ code?: number;
63
+ message?: string;
64
+ stack?: string;
65
+ cause?: string;
66
+ field?: string;
67
+ description?: string;
68
+ docs_link?: string;
69
+ };
70
+ export type AgentHandlerGetInfoBody = {
71
+ /**
72
+ * Agent ID
73
+ */
74
+ agentId: string;
75
+ };
76
+ export type RegisterInput = {
77
+ email: string;
78
+ password: string;
79
+ name: string;
80
+ };
81
+ export type User = {
82
+ id: string;
83
+ email: string;
84
+ name?: string;
85
+ role?: string;
86
+ avatarUrl?: string;
87
+ };
88
+ export type UserListResponse = {
89
+ rows: Array<{
90
+ id: string;
91
+ email: string;
92
+ emailVerified: boolean;
93
+ name?: string;
94
+ role: "ADMIN" | "USER" | "GUEST";
95
+ createdAt: string;
96
+ updatedAt: string;
97
+ }>;
98
+ total: number;
99
+ limit: number;
100
+ offset: number;
101
+ };
102
+ export type UserCreateRequest = {
103
+ email: string;
104
+ password: string;
105
+ name?: string;
106
+ role?: "ADMIN" | "USER" | "GUEST";
107
+ };
108
+ export type UserUpdateResponse = {
109
+ id: string;
110
+ email: string;
111
+ emailVerified: boolean;
112
+ name?: string;
113
+ role: "ADMIN" | "USER" | "GUEST";
114
+ metadata: {
115
+ id: string;
116
+ createdAt: string;
117
+ updatedAt: string;
118
+ };
119
+ };
120
+ export type SysConfig = {
121
+ id: string;
122
+ name: string;
123
+ age: number;
124
+ };
125
+ export type ApiCommonDeleteResponse = {
126
+ id?: string;
127
+ message?: string;
128
+ };
129
+ export type ProxyGetResponse = {
130
+ id: string;
131
+ name: string;
132
+ description?: string;
133
+ url: string;
134
+ type?: string;
135
+ provider?: string;
136
+ country_code?: string;
137
+ port?: number;
138
+ enabled: boolean;
139
+ created_at: string;
140
+ updated_at?: string;
141
+ };
142
+ export type ProxyListResponse = {
143
+ proxies: Array<ProxyGetResponse>;
144
+ pagination: {
145
+ page: number;
146
+ limit: number;
147
+ total_count: number;
148
+ total_pages: number;
149
+ };
150
+ };
151
+ export type ProxyUpsertRequest = {
152
+ id?: string;
153
+ name?: string;
154
+ description?: string;
155
+ url: string;
156
+ };
157
+ export type Sandbox = {
158
+ id: string;
159
+ createdAt: string;
160
+ updatedAt: string;
161
+ deletedAt?: string;
162
+ tenantId: string;
163
+ name: string;
164
+ description: string;
165
+ deployType: string;
166
+ serverUrl: string;
167
+ status: string;
168
+ state: {
169
+ [key: string]: unknown;
170
+ };
171
+ config: {
172
+ [key: string]: unknown;
173
+ };
174
+ };
175
+ export type SandboxList = {
176
+ services: Array<Sandbox>;
177
+ total: number;
178
+ };
179
+ export type SandboxGet = {
180
+ service?: Sandbox;
181
+ };
182
+ export type SandboxStart = {
183
+ message: string;
184
+ serviceId: string;
185
+ };
186
+ export type Api401Response = {
187
+ message?: string;
188
+ };
189
+ export type Api403Response = {
190
+ message?: string;
191
+ };
192
+ export type Chatbot = {
193
+ id: string;
194
+ title: string;
195
+ description: string | null;
196
+ config?: unknown;
197
+ state?: unknown;
198
+ };
199
+ export type ChatbotListResponse = {
200
+ rows: Array<Chatbot>;
201
+ total: number;
202
+ };
203
+ /**
204
+ * 导航菜单项
205
+ */
206
+ export type NavItem = {
207
+ /**
208
+ * 菜单标题
209
+ */
210
+ title: string;
211
+ /**
212
+ * 菜单链接
213
+ */
214
+ url?: string;
215
+ /**
216
+ * 图标名称
217
+ */
218
+ icon?: string;
219
+ /**
220
+ * 徽章文本
221
+ */
222
+ badge?: string;
223
+ /**
224
+ * 是否仅在调试模式下显示
225
+ */
226
+ debugOnly?: boolean;
227
+ /**
228
+ * 子菜单项
229
+ */
230
+ children?: Array<NavItem>;
231
+ };
232
+ export type SingboxConfig = {
233
+ configUrl?: string;
234
+ containerOnly?: boolean;
235
+ };
236
+ export type TunnelConfig = {
237
+ cloudflareToken: string;
238
+ tunnelName?: string;
239
+ localPort: number;
240
+ singbox: SingboxConfig;
241
+ };
242
+ export type OnionConfig = {
243
+ privateKey?: string;
244
+ };
245
+ export type VncService = {
246
+ enabled?: boolean;
247
+ port?: number;
248
+ display?: string;
249
+ password?: string;
250
+ resolution?: string;
251
+ colorDepth?: number;
252
+ onionConfig?: OnionConfig;
253
+ };
254
+ export type HelloOnionWebService = {
255
+ enabled?: boolean;
256
+ port?: number;
257
+ onionConfig?: OnionConfig;
258
+ };
259
+ export type MainApiService = {
260
+ enabled?: boolean;
261
+ port?: number;
262
+ onionConfig?: OnionConfig;
263
+ };
264
+ export type GomtmConfig = {
265
+ tunnel?: TunnelConfig;
266
+ vnc?: VncService;
267
+ helloOnionWeb?: HelloOnionWebService;
268
+ mainApi?: MainApiService;
269
+ };
270
+ export type SiteCreateRequest = {
271
+ title: string;
272
+ description?: string;
273
+ enabled?: boolean;
274
+ automationEnabled?: boolean;
275
+ state?: {
276
+ [key: string]: unknown;
277
+ };
278
+ };
279
+ export type SiteUpdateRequest = {
280
+ title?: string;
281
+ description?: string;
282
+ enabled?: boolean;
283
+ automationEnabled?: boolean;
284
+ state?: {
285
+ [key: string]: unknown;
286
+ };
287
+ };
288
+ export type BlogPostCreateRequest = {
289
+ title?: string;
290
+ content: string;
291
+ description?: string;
292
+ slug?: string;
293
+ status?: string;
294
+ state?: string;
295
+ publishDate?: string;
296
+ siteId: string;
297
+ image?: string;
298
+ settings?: string;
299
+ };
300
+ export type BlogPostUpdateRequest = {
301
+ title?: string;
302
+ content?: string;
303
+ description?: string;
304
+ slug?: string;
305
+ status?: string;
306
+ state?: string;
307
+ publishDate?: string;
308
+ image?: string;
309
+ settings?: string;
310
+ };
311
+ export type SiteHostCreateRequest = {
312
+ host: string;
313
+ };
314
+ export type AdkSessionState = {
315
+ [key: string]: unknown;
316
+ };
317
+ export type AdkSession = {
318
+ id: string;
319
+ app_name: string;
320
+ user_id: string;
321
+ state?: AdkSessionState;
322
+ events?: Array<unknown>;
323
+ last_update_time?: number;
324
+ };
325
+ export type AdkSessionCreateReq = {
326
+ app_name: string;
327
+ user_id: string;
328
+ state?: AdkSessionState;
329
+ session_id?: string;
330
+ };
331
+ export type AdkSessionGet = {
332
+ id: string;
333
+ app_name: string;
334
+ user_id: string;
335
+ state?: AdkSessionState;
336
+ events?: Array<unknown>;
337
+ last_update_time?: number;
338
+ };
339
+ export type AdkSessionGetReq = {
340
+ app_name: string;
341
+ user_id: string;
342
+ session_id: string;
343
+ num_recent_events?: string;
344
+ after_timestamp?: string;
345
+ };
346
+ export type AdkSessionList = {
347
+ sessions: Array<AdkSession>;
348
+ };
349
+ export type AdkSessionDelete = {
350
+ success: boolean;
351
+ };
352
+ export type AdkSessionDeleteReq = {
353
+ app_name: string;
354
+ user_id: string;
355
+ session_id: string;
356
+ };
357
+ export type AdkSessionAppendEventResult = {
358
+ timestamp: number;
359
+ };
360
+ export type AdkEvent = {
361
+ invocation_id: string;
362
+ author: string;
363
+ actions?: unknown;
364
+ long_running_tool_ids?: Array<string>;
365
+ branch?: string;
366
+ id: string;
367
+ timestamp: number;
368
+ content?: unknown;
369
+ partial?: boolean;
370
+ turn_complete?: boolean;
371
+ error_code?: string;
372
+ error_message?: string;
373
+ interrupted?: boolean;
374
+ grounding_metadata?: unknown;
375
+ custom_metadata?: unknown;
376
+ };
377
+ export type AdkSessionAppendEventBody = {
378
+ session: AdkSession;
379
+ event: AdkEvent;
380
+ };
381
+ export type AdkArtifactSave = {
382
+ version: number;
383
+ };
384
+ export type AdkArtifactSaveRequest = {
385
+ app_name: string;
386
+ user_id: string;
387
+ session_id: string;
388
+ filename: string;
389
+ content_type?: string;
390
+ content_data?: unknown;
391
+ };
392
+ export type AdkArtifactResponse = {
393
+ app_name: string;
394
+ user_id: string;
395
+ session_id: string;
396
+ filename: string;
397
+ version: number;
398
+ content_type?: string;
399
+ content_data?: unknown;
400
+ created_at: string;
401
+ updated_at: string;
402
+ };
403
+ export type AdkArtifactLoadRequest = {
404
+ app_name: string;
405
+ user_id: string;
406
+ session_id: string;
407
+ filename: string;
408
+ version?: number;
409
+ };
410
+ export type AdkArtifactSummary = {
411
+ app_name: string;
412
+ user_id: string;
413
+ session_id: string;
414
+ filename: string;
415
+ version: number;
416
+ content_type?: string;
417
+ size?: number;
418
+ created_at: string;
419
+ updated_at: string;
420
+ };
421
+ export type AdkArtifactList = {
422
+ artifacts: Array<AdkArtifactSummary>;
423
+ total: number;
424
+ };
425
+ export type AdkArtifactListKeys = {
426
+ filenames: Array<string>;
427
+ };
428
+ export type AdkArtifactDeleteRequest = {
429
+ app_name: string;
430
+ user_id: string;
431
+ session_id: string;
432
+ filename: string;
433
+ };
434
+ export type AdkArtifactListVersions = {
435
+ versions: Array<number>;
436
+ };
437
+ export type AdkTaskSave = {
438
+ success: boolean;
439
+ };
440
+ export type Message = {
441
+ kind: "message";
442
+ messageId: string;
443
+ role: "agent" | "user";
444
+ parts: Array<unknown>;
445
+ contextId?: string;
446
+ taskId?: string;
447
+ extensions?: Array<string>;
448
+ referenceTaskIds?: Array<string>;
449
+ metadata?: {
450
+ [key: string]: unknown;
451
+ };
452
+ };
453
+ export type TaskState = "submitted" | "running" | "completed" | "failed" | "cancelled";
454
+ export declare const TaskState: {
455
+ readonly SUBMITTED: "submitted";
456
+ readonly RUNNING: "running";
457
+ readonly COMPLETED: "completed";
458
+ readonly FAILED: "failed";
459
+ readonly CANCELLED: "cancelled";
460
+ };
461
+ export type TaskStatus = {
462
+ message?: Message;
463
+ state: TaskState;
464
+ timestamp?: string;
465
+ };
466
+ export type Artifact = {
467
+ artifactId: string;
468
+ name?: string;
469
+ description?: string;
470
+ parts: Array<unknown>;
471
+ extensions?: Array<string>;
472
+ metadata?: {
473
+ [key: string]: unknown;
474
+ };
475
+ };
476
+ export type AdkTaskSaveRequest = {
477
+ id: string;
478
+ context_id: string;
479
+ kind?: string;
480
+ status: TaskStatus;
481
+ artifacts?: Array<Artifact>;
482
+ history?: Array<Message>;
483
+ metadata?: {
484
+ [key: string]: unknown;
485
+ };
486
+ };
487
+ export type Task = {
488
+ id: string;
489
+ context_id: string;
490
+ kind?: string;
491
+ status: TaskStatus;
492
+ artifacts?: Array<Artifact>;
493
+ history?: Array<Message>;
494
+ metadata?: {
495
+ [key: string]: unknown;
496
+ };
497
+ };
498
+ export type AdkTaskGet = Task | unknown;
499
+ export type AdkTaskGetRequest = {
500
+ task_id: string;
501
+ };
502
+ export type AdkTaskList = {
503
+ tasks: Array<Task>;
504
+ };
505
+ export type AdkTaskDelete = {
506
+ success: boolean;
507
+ };
508
+ export type AdkTaskDeleteRequest = {
509
+ task_id: string;
510
+ };
511
+ export type AgentChatbotListData = {
512
+ body?: never;
513
+ path?: never;
514
+ query?: {
515
+ tenantId?: string;
516
+ limit?: number;
517
+ offset?: number | null;
518
+ };
519
+ url: "/api/cf/agents/chatbot/chatbot";
520
+ };
521
+ export type AgentChatbotListResponses = {
522
+ /**
523
+ * Retrieve the agents list
524
+ */
525
+ 200: AgentListResponse;
526
+ };
527
+ export type AgentChatbotListResponse = AgentChatbotListResponses[keyof AgentChatbotListResponses];
528
+ export type AgentChatbotCreateData = {
529
+ body?: AgentCreateRequest;
530
+ path?: never;
531
+ query?: never;
532
+ url: "/api/cf/agents/chatbot/chatbot";
533
+ };
534
+ export type AgentChatbotCreateResponses = {
535
+ /**
536
+ * Create new agent
537
+ */
538
+ 200: Agent;
539
+ };
540
+ export type AgentChatbotCreateResponse = AgentChatbotCreateResponses[keyof AgentChatbotCreateResponses];
541
+ export type AgentChatbotDeleteData = {
542
+ body?: never;
543
+ path: {
544
+ id: string;
545
+ };
546
+ query?: never;
547
+ url: "/api/cf/agents/chatbot/chatbot/{id}";
548
+ };
549
+ export type AgentChatbotDeleteResponses = {
550
+ /**
551
+ * Delete the agent
552
+ */
553
+ 200: AgentGetResponse;
554
+ };
555
+ export type AgentChatbotDeleteResponse = AgentChatbotDeleteResponses[keyof AgentChatbotDeleteResponses];
556
+ export type AgentChatbotGetData = {
557
+ body?: never;
558
+ path: {
559
+ id: string;
560
+ };
561
+ query?: never;
562
+ url: "/api/cf/agents/chatbot/chatbot/{id}";
563
+ };
564
+ export type AgentChatbotGetResponses = {
565
+ /**
566
+ * Retrieve the agent
567
+ */
568
+ 200: AgentGetResponse;
569
+ };
570
+ export type AgentChatbotGetResponse = AgentChatbotGetResponses[keyof AgentChatbotGetResponses];
571
+ export type AgentChatbotUpdateData = {
572
+ body?: AgentChatbotUpdateBodyConfig;
573
+ path: {
574
+ id: string;
575
+ };
576
+ query?: never;
577
+ url: "/api/cf/agents/chatbot/chatbot/{id}";
578
+ };
579
+ export type AgentChatbotUpdateResponses = {
580
+ /**
581
+ * Update agent
582
+ */
583
+ 200: Agent;
584
+ };
585
+ export type AgentChatbotUpdateResponse = AgentChatbotUpdateResponses[keyof AgentChatbotUpdateResponses];
586
+ export type WorkerAgentStartNapcatData = {
587
+ body?: never;
588
+ path?: never;
589
+ query?: {
590
+ tenantId?: string;
591
+ limit?: number;
592
+ offset?: number | null;
593
+ };
594
+ url: "/api/cf/agents/worker-agent/agents/worker-agent/start-napcat";
595
+ };
596
+ export type WorkerAgentStartNapcatResponses = {
597
+ /**
598
+ * Retrieve the agents list
599
+ */
600
+ 200: AgentListResponse;
601
+ };
602
+ export type WorkerAgentStartNapcatResponse = WorkerAgentStartNapcatResponses[keyof WorkerAgentStartNapcatResponses];
603
+ export type AgentHandlerGetInfoData = {
604
+ body?: AgentHandlerGetInfoBody;
605
+ path?: never;
606
+ query?: never;
607
+ url: "/api/cf/agents/agents-handlers/agent_info";
608
+ };
609
+ export type AgentHandlerGetInfoErrors = {
610
+ /**
611
+ * not founded
612
+ */
613
+ 404: {
614
+ [key: string]: unknown;
615
+ };
616
+ /**
617
+ * Internal server error
618
+ */
619
+ 500: ApiError;
620
+ };
621
+ export type AgentHandlerGetInfoError = AgentHandlerGetInfoErrors[keyof AgentHandlerGetInfoErrors];
622
+ export type AgentHandlerGetInfoResponses = {
623
+ /**
624
+ * Agent information retrieved successfully
625
+ */
626
+ 200: AgentHandlerInfo;
627
+ };
628
+ export type AgentHandlerGetInfoResponse = AgentHandlerGetInfoResponses[keyof AgentHandlerGetInfoResponses];
629
+ export type A2aGetAgentCardData = {
630
+ body?: never;
631
+ path: {
632
+ /**
633
+ * Agent name
634
+ */
635
+ agent: string;
636
+ };
637
+ query?: never;
638
+ url: "/api/cf/agents/{agent}/.well-known/agent-card.json";
639
+ };
640
+ export type A2aGetAgentCardErrors = {
641
+ /**
642
+ * Agent not found
643
+ */
644
+ 404: {
645
+ error: string;
646
+ };
647
+ };
648
+ export type A2aGetAgentCardError = A2aGetAgentCardErrors[keyof A2aGetAgentCardErrors];
649
+ export type A2aGetAgentCardResponses = {
650
+ /**
651
+ * Agent card retrieved successfully
652
+ */
653
+ 200: unknown;
654
+ };
655
+ export type A2aRpcData = {
656
+ /**
657
+ * JSON-RPC 2.0 request
658
+ */
659
+ body?: unknown;
660
+ path: {
661
+ /**
662
+ * Agent name
663
+ */
664
+ agent: string;
665
+ };
666
+ query?: never;
667
+ url: "/api/cf/agents/{agent}";
668
+ };
669
+ export type A2aRpcErrors = {
670
+ /**
671
+ * Internal server error
672
+ */
673
+ 500: ApiError;
674
+ };
675
+ export type A2aRpcError = A2aRpcErrors[keyof A2aRpcErrors];
676
+ export type A2aRpcResponses = {
677
+ /**
678
+ * JSON-RPC 2.0 response or SSE stream
679
+ */
680
+ 200: unknown;
681
+ };
682
+ export type AgentsMtmaiDemoData = {
683
+ body?: {
684
+ /**
685
+ * 用户邮箱
686
+ */
687
+ email: string;
688
+ /**
689
+ * 用户密码
690
+ */
691
+ password: string;
692
+ /**
693
+ * 用户全名
694
+ */
695
+ full_name: string;
696
+ };
697
+ path?: never;
698
+ query?: never;
699
+ url: "/api/cf/mtmai-demo";
700
+ };
701
+ export type AgentsMtmaiDemoErrors = {
702
+ /**
703
+ * 请求参数错误
704
+ */
705
+ 400: {
706
+ error: string;
707
+ };
708
+ /**
709
+ * Internal server error
710
+ */
711
+ 500: ApiError;
712
+ };
713
+ export type AgentsMtmaiDemoError = AgentsMtmaiDemoErrors[keyof AgentsMtmaiDemoErrors];
714
+ export type AgentsMtmaiDemoResponses = {
715
+ /**
716
+ * 成功调用mtmai demo
717
+ */
718
+ 200: {
719
+ /**
720
+ * 操作结果消息
721
+ */
722
+ message: string;
723
+ /**
724
+ * 操作是否成功
725
+ */
726
+ success: boolean;
727
+ };
728
+ };
729
+ export type AgentsMtmaiDemoResponse = AgentsMtmaiDemoResponses[keyof AgentsMtmaiDemoResponses];
730
+ export type AuthRegisterData = {
731
+ body?: RegisterInput;
732
+ path?: never;
733
+ query?: never;
734
+ url: "/api/cf/auth/register";
735
+ };
736
+ export type AuthRegisterResponses = {
737
+ /**
738
+ * 注册结果
739
+ */
740
+ 200: {
741
+ success: boolean;
742
+ message?: string;
743
+ };
744
+ };
745
+ export type AuthRegisterResponse = AuthRegisterResponses[keyof AuthRegisterResponses];
746
+ export type AuthLoginData = {
747
+ body?: {
748
+ email: string;
749
+ password: string;
750
+ };
751
+ path?: never;
752
+ query?: never;
753
+ url: "/api/cf/auth/login";
754
+ };
755
+ export type AuthLoginResponses = {
756
+ /**
757
+ * 登录结果
758
+ */
759
+ 200: {
760
+ success: boolean;
761
+ user?: User;
762
+ token?: string;
763
+ message?: string;
764
+ };
765
+ };
766
+ export type AuthLoginResponse = AuthLoginResponses[keyof AuthLoginResponses];
767
+ export type AuthVerifyData = {
768
+ body?: {
769
+ token: string;
770
+ };
771
+ path?: never;
772
+ query?: never;
773
+ url: "/api/cf/auth/verify";
774
+ };
775
+ export type AuthVerifyResponses = {
776
+ /**
777
+ * 验证结果
778
+ */
779
+ 200: {
780
+ valid: boolean;
781
+ user?: User;
782
+ };
783
+ };
784
+ export type AuthVerifyResponse = AuthVerifyResponses[keyof AuthVerifyResponses];
785
+ export type AuthSessionData = {
786
+ body?: never;
787
+ path?: never;
788
+ query?: never;
789
+ url: "/api/cf/auth/session";
790
+ };
791
+ export type AuthSessionResponses = {
792
+ /**
793
+ * 获取当前用户会话信息,包含用户ID和租户ID。如果用户未登录,则返回空对象。
794
+ */
795
+ 200: {
796
+ uid?: string;
797
+ tid?: string;
798
+ user?: User;
799
+ };
800
+ };
801
+ export type AuthSessionResponse = AuthSessionResponses[keyof AuthSessionResponses];
802
+ export type UsersListData = {
803
+ body?: never;
804
+ path?: never;
805
+ query?: {
806
+ search?: string;
807
+ limit?: number;
808
+ offset?: number | null;
809
+ };
810
+ url: "/api/cf/users";
811
+ };
812
+ export type UsersListErrors = {
813
+ /**
814
+ * Internal server error
815
+ */
816
+ 500: ApiError;
817
+ };
818
+ export type UsersListError = UsersListErrors[keyof UsersListErrors];
819
+ export type UsersListResponses = {
820
+ /**
821
+ * 获取用户列表
822
+ */
823
+ 200: UserListResponse;
824
+ };
825
+ export type UsersListResponse = UsersListResponses[keyof UsersListResponses];
826
+ export type UsersCreateData = {
827
+ body?: UserCreateRequest;
828
+ path?: never;
829
+ query?: never;
830
+ url: "/api/cf/users";
831
+ };
832
+ export type UsersCreateErrors = {
833
+ /**
834
+ * Bad request
835
+ */
836
+ 400: ApiError;
837
+ };
838
+ export type UsersCreateError = UsersCreateErrors[keyof UsersCreateErrors];
839
+ export type UsersCreateResponses = {
840
+ /**
841
+ * 用户创建成功
842
+ */
843
+ 201: {
844
+ id: string;
845
+ email: string;
846
+ emailVerified: boolean;
847
+ name?: string;
848
+ role: "ADMIN" | "USER" | "GUEST";
849
+ metadata: {
850
+ id: string;
851
+ createdAt: string;
852
+ updatedAt: string;
853
+ };
854
+ };
855
+ };
856
+ export type UsersCreateResponse = UsersCreateResponses[keyof UsersCreateResponses];
857
+ export type UsersDeleteData = {
858
+ body?: never;
859
+ path: {
860
+ id: string;
861
+ };
862
+ query?: never;
863
+ url: "/api/cf/users/{id}";
864
+ };
865
+ export type UsersDeleteErrors = {
866
+ /**
867
+ * 用户不存在
868
+ */
869
+ 404: {
870
+ error: string;
871
+ };
872
+ };
873
+ export type UsersDeleteError = UsersDeleteErrors[keyof UsersDeleteErrors];
874
+ export type UsersDeleteResponses = {
875
+ /**
876
+ * 用户删除成功
877
+ */
878
+ 204: void;
879
+ };
880
+ export type UsersDeleteResponse = UsersDeleteResponses[keyof UsersDeleteResponses];
881
+ export type UsersGetData = {
882
+ body?: never;
883
+ path: {
884
+ id: string;
885
+ };
886
+ query?: never;
887
+ url: "/api/cf/users/{id}";
888
+ };
889
+ export type UsersGetErrors = {
890
+ /**
891
+ * 用户不存在
892
+ */
893
+ 404: {
894
+ error: string;
895
+ };
896
+ /**
897
+ * Internal server error
898
+ */
899
+ 500: ApiError;
900
+ };
901
+ export type UsersGetError = UsersGetErrors[keyof UsersGetErrors];
902
+ export type UsersGetResponses = {
903
+ /**
904
+ * 获取用户详情
905
+ */
906
+ 200: User & {
907
+ id: string;
908
+ email: string;
909
+ emailVerified: boolean;
910
+ name?: string;
911
+ role: "ADMIN" | "USER" | "GUEST";
912
+ metadata: {
913
+ id: string;
914
+ createdAt: string;
915
+ updatedAt: string;
916
+ };
917
+ };
918
+ };
919
+ export type UsersGetResponse = UsersGetResponses[keyof UsersGetResponses];
920
+ export type UsersUpdateData = {
921
+ body?: {
922
+ email?: string;
923
+ name?: string;
924
+ role?: "ADMIN" | "USER" | "GUEST";
925
+ password?: string;
926
+ };
927
+ path: {
928
+ id: string;
929
+ };
930
+ query?: never;
931
+ url: "/api/cf/users/{id}";
932
+ };
933
+ export type UsersUpdateErrors = {
934
+ /**
935
+ * 请求参数错误
936
+ */
937
+ 400: {
938
+ error: string;
939
+ };
940
+ /**
941
+ * 用户不存在
942
+ */
943
+ 404: {
944
+ error: string;
945
+ };
946
+ };
947
+ export type UsersUpdateError = UsersUpdateErrors[keyof UsersUpdateErrors];
948
+ export type UsersUpdateResponses = {
949
+ /**
950
+ * 用户更新成功
951
+ */
952
+ 200: UserUpdateResponse;
953
+ };
954
+ export type UsersUpdateResponse = UsersUpdateResponses[keyof UsersUpdateResponses];
955
+ export type SysConfigGetData = {
956
+ body?: never;
957
+ path?: never;
958
+ query?: never;
959
+ url: "/api/cf/sysconfig";
960
+ };
961
+ export type SysConfigGetResponses = {
962
+ /**
963
+ * Retrieve the system config
964
+ */
965
+ 200: SysConfig;
966
+ };
967
+ export type SysConfigGetResponse = SysConfigGetResponses[keyof SysConfigGetResponses];
968
+ export type PAccountsListData = {
969
+ body?: never;
970
+ path?: never;
971
+ query: {
972
+ tenantId: string;
973
+ limit?: number;
974
+ offset?: number | null;
975
+ search?: string;
976
+ };
977
+ url: "/api/cf/p-accounts";
978
+ };
979
+ export type PAccountsListResponses = {
980
+ /**
981
+ * 获取平台账号列表
982
+ */
983
+ 200: {
984
+ pAccounts: Array<{
985
+ id: string;
986
+ tenantId: string;
987
+ createdAt: string;
988
+ updatedAt: string;
989
+ deletedAt?: string;
990
+ name?: string;
991
+ description?: string;
992
+ platformId: string;
993
+ tags?: Array<string>;
994
+ enabled: boolean;
995
+ state?: {
996
+ [key: string]: unknown;
997
+ };
998
+ config?: {
999
+ [key: string]: unknown;
1000
+ };
1001
+ error?: string;
1002
+ icon?: string;
1003
+ platform?: {
1004
+ id: string;
1005
+ name: string;
1006
+ description?: string;
1007
+ url?: string;
1008
+ loginUrl?: string;
1009
+ };
1010
+ }>;
1011
+ total: number;
1012
+ };
1013
+ };
1014
+ export type PAccountsListResponse = PAccountsListResponses[keyof PAccountsListResponses];
1015
+ export type PAccountsCreateData = {
1016
+ body?: {
1017
+ name: string;
1018
+ description?: string;
1019
+ platformId: string;
1020
+ enabled?: boolean;
1021
+ tags?: Array<string>;
1022
+ config?: {
1023
+ [key: string]: unknown;
1024
+ };
1025
+ icon?: string;
1026
+ };
1027
+ path?: never;
1028
+ query?: never;
1029
+ url: "/api/cf/p-accounts";
1030
+ };
1031
+ export type PAccountsCreateErrors = {
1032
+ /**
1033
+ * not founded
1034
+ */
1035
+ 404: {
1036
+ [key: string]: unknown;
1037
+ };
1038
+ };
1039
+ export type PAccountsCreateError = PAccountsCreateErrors[keyof PAccountsCreateErrors];
1040
+ export type PAccountsCreateResponses = {
1041
+ /**
1042
+ * 平台账号创建成功
1043
+ */
1044
+ 201: {
1045
+ pAccount?: {
1046
+ id: string;
1047
+ tenantId: string;
1048
+ createdAt: string;
1049
+ updatedAt: string;
1050
+ deletedAt?: string;
1051
+ name?: string;
1052
+ description?: string;
1053
+ platformId: string;
1054
+ tags?: Array<string>;
1055
+ enabled: boolean;
1056
+ state?: {
1057
+ [key: string]: unknown;
1058
+ };
1059
+ config?: {
1060
+ [key: string]: unknown;
1061
+ };
1062
+ error?: string;
1063
+ icon?: string;
1064
+ platform?: {
1065
+ id: string;
1066
+ name: string;
1067
+ description?: string;
1068
+ url?: string;
1069
+ loginUrl?: string;
1070
+ };
1071
+ };
1072
+ };
1073
+ };
1074
+ export type PAccountsCreateResponse = PAccountsCreateResponses[keyof PAccountsCreateResponses];
1075
+ export type PAccountsDeleteData = {
1076
+ body?: never;
1077
+ path: {
1078
+ id: string;
1079
+ };
1080
+ query?: never;
1081
+ url: "/api/cf/p-accounts/{id}";
1082
+ };
1083
+ export type PAccountsDeleteErrors = {
1084
+ /**
1085
+ * not founded
1086
+ */
1087
+ 404: {
1088
+ [key: string]: unknown;
1089
+ };
1090
+ };
1091
+ export type PAccountsDeleteError = PAccountsDeleteErrors[keyof PAccountsDeleteErrors];
1092
+ export type PAccountsDeleteResponses = {
1093
+ /**
1094
+ * 平台账号删除成功
1095
+ */
1096
+ 200: ApiCommonDeleteResponse;
1097
+ };
1098
+ export type PAccountsDeleteResponse = PAccountsDeleteResponses[keyof PAccountsDeleteResponses];
1099
+ export type PAccountsGetData = {
1100
+ body?: never;
1101
+ path: {
1102
+ id: string;
1103
+ };
1104
+ query?: never;
1105
+ url: "/api/cf/p-accounts/{id}";
1106
+ };
1107
+ export type PAccountsGetErrors = {
1108
+ /**
1109
+ * not founded
1110
+ */
1111
+ 404: {
1112
+ [key: string]: unknown;
1113
+ };
1114
+ };
1115
+ export type PAccountsGetError = PAccountsGetErrors[keyof PAccountsGetErrors];
1116
+ export type PAccountsGetResponses = {
1117
+ /**
1118
+ * 获取平台账号详情
1119
+ */
1120
+ 200: {
1121
+ pAccount?: {
1122
+ id: string;
1123
+ tenantId: string;
1124
+ createdAt: string;
1125
+ updatedAt: string;
1126
+ deletedAt?: string;
1127
+ name?: string;
1128
+ description?: string;
1129
+ platformId: string;
1130
+ tags?: Array<string>;
1131
+ enabled: boolean;
1132
+ state?: {
1133
+ [key: string]: unknown;
1134
+ };
1135
+ config?: {
1136
+ [key: string]: unknown;
1137
+ };
1138
+ error?: string;
1139
+ icon?: string;
1140
+ platform?: {
1141
+ id: string;
1142
+ name: string;
1143
+ description?: string;
1144
+ url?: string;
1145
+ loginUrl?: string;
1146
+ };
1147
+ };
1148
+ };
1149
+ };
1150
+ export type PAccountsGetResponse = PAccountsGetResponses[keyof PAccountsGetResponses];
1151
+ export type PAccountsUpdateData = {
1152
+ body?: {
1153
+ name?: string;
1154
+ description?: string;
1155
+ platformId?: string;
1156
+ enabled?: boolean;
1157
+ tags?: Array<string>;
1158
+ config?: {
1159
+ [key: string]: unknown;
1160
+ };
1161
+ icon?: string;
1162
+ };
1163
+ path: {
1164
+ id: string;
1165
+ };
1166
+ query?: never;
1167
+ url: "/api/cf/p-accounts/{id}";
1168
+ };
1169
+ export type PAccountsUpdateErrors = {
1170
+ /**
1171
+ * 请求参数错误
1172
+ */
1173
+ 400: ApiError;
1174
+ /**
1175
+ * not founded
1176
+ */
1177
+ 404: {
1178
+ [key: string]: unknown;
1179
+ };
1180
+ };
1181
+ export type PAccountsUpdateError = PAccountsUpdateErrors[keyof PAccountsUpdateErrors];
1182
+ export type PAccountsUpdateResponses = {
1183
+ /**
1184
+ * 平台账号更新成功
1185
+ */
1186
+ 200: {
1187
+ pAccount?: {
1188
+ id: string;
1189
+ tenantId: string;
1190
+ createdAt: string;
1191
+ updatedAt: string;
1192
+ deletedAt?: string;
1193
+ name?: string;
1194
+ description?: string;
1195
+ platformId: string;
1196
+ tags?: Array<string>;
1197
+ enabled: boolean;
1198
+ state?: {
1199
+ [key: string]: unknown;
1200
+ };
1201
+ config?: {
1202
+ [key: string]: unknown;
1203
+ };
1204
+ error?: string;
1205
+ icon?: string;
1206
+ platform?: {
1207
+ id: string;
1208
+ name: string;
1209
+ description?: string;
1210
+ url?: string;
1211
+ loginUrl?: string;
1212
+ };
1213
+ };
1214
+ };
1215
+ };
1216
+ export type PAccountsUpdateResponse = PAccountsUpdateResponses[keyof PAccountsUpdateResponses];
1217
+ export type PlatformsListData = {
1218
+ body?: never;
1219
+ path?: never;
1220
+ query?: {
1221
+ search?: string;
1222
+ limit?: number;
1223
+ offset?: number | null;
1224
+ };
1225
+ url: "/api/cf/platforms";
1226
+ };
1227
+ export type PlatformsListResponses = {
1228
+ /**
1229
+ * Retrieve the platforms list
1230
+ */
1231
+ 200: {
1232
+ platforms: Array<{
1233
+ id: string;
1234
+ tenantId: string;
1235
+ name: string;
1236
+ description?: string;
1237
+ url?: string;
1238
+ loginUrl?: string;
1239
+ properties?: {
1240
+ [key: string]: unknown;
1241
+ };
1242
+ tags?: Array<string>;
1243
+ createdAt: string;
1244
+ updatedAt: string;
1245
+ deletedAt?: string;
1246
+ }>;
1247
+ total: number;
1248
+ limit: number;
1249
+ offset: number;
1250
+ };
1251
+ };
1252
+ export type PlatformsListResponse = PlatformsListResponses[keyof PlatformsListResponses];
1253
+ export type PlatformsCreateData = {
1254
+ body?: {
1255
+ id?: string;
1256
+ name: string;
1257
+ description?: string;
1258
+ url?: string;
1259
+ loginUrl?: string;
1260
+ type?: string;
1261
+ status?: string;
1262
+ config?: {
1263
+ [key: string]: unknown;
1264
+ };
1265
+ tags?: Array<string>;
1266
+ };
1267
+ path?: never;
1268
+ query?: never;
1269
+ url: "/api/cf/platforms";
1270
+ };
1271
+ export type PlatformsCreateResponses = {
1272
+ /**
1273
+ * Create new platform
1274
+ */
1275
+ 200: {
1276
+ id: string;
1277
+ tenantId: string;
1278
+ name: string;
1279
+ description?: string;
1280
+ url?: string;
1281
+ loginUrl?: string;
1282
+ properties?: {
1283
+ [key: string]: unknown;
1284
+ };
1285
+ tags?: Array<string>;
1286
+ createdAt: string;
1287
+ updatedAt: string;
1288
+ deletedAt?: string;
1289
+ };
1290
+ };
1291
+ export type PlatformsCreateResponse = PlatformsCreateResponses[keyof PlatformsCreateResponses];
1292
+ export type PlatformsDeleteData = {
1293
+ body?: never;
1294
+ path: {
1295
+ id: string;
1296
+ };
1297
+ query?: never;
1298
+ url: "/api/cf/platforms/{id}";
1299
+ };
1300
+ export type PlatformsDeleteResponses = {
1301
+ /**
1302
+ * Delete the platform
1303
+ */
1304
+ 200: {
1305
+ id: string;
1306
+ name: string;
1307
+ description?: string;
1308
+ url?: string;
1309
+ loginUrl?: string;
1310
+ type?: string;
1311
+ status?: string;
1312
+ config?: {
1313
+ [key: string]: unknown;
1314
+ };
1315
+ tags?: Array<string>;
1316
+ metadata: {
1317
+ id: string;
1318
+ createdAt: string;
1319
+ updatedAt: string;
1320
+ };
1321
+ };
1322
+ };
1323
+ export type PlatformsDeleteResponse = PlatformsDeleteResponses[keyof PlatformsDeleteResponses];
1324
+ export type PlatformsGetData = {
1325
+ body?: never;
1326
+ path: {
1327
+ id: string;
1328
+ };
1329
+ query?: never;
1330
+ url: "/api/cf/platforms/{id}";
1331
+ };
1332
+ export type PlatformsGetResponses = {
1333
+ /**
1334
+ * Retrieve the platform
1335
+ */
1336
+ 200: {
1337
+ id: string;
1338
+ name: string;
1339
+ description?: string;
1340
+ url?: string;
1341
+ loginUrl?: string;
1342
+ type?: string;
1343
+ status?: string;
1344
+ config?: {
1345
+ [key: string]: unknown;
1346
+ };
1347
+ tags?: Array<string>;
1348
+ metadata: {
1349
+ id: string;
1350
+ createdAt: string;
1351
+ updatedAt: string;
1352
+ };
1353
+ };
1354
+ };
1355
+ export type PlatformsGetResponse = PlatformsGetResponses[keyof PlatformsGetResponses];
1356
+ export type PlatformsUpdateData = {
1357
+ body?: {
1358
+ name?: string;
1359
+ description?: string;
1360
+ url?: string;
1361
+ loginUrl?: string;
1362
+ type?: string;
1363
+ status?: string;
1364
+ config?: {
1365
+ [key: string]: unknown;
1366
+ };
1367
+ tags?: Array<string>;
1368
+ };
1369
+ path: {
1370
+ id: string;
1371
+ };
1372
+ query?: never;
1373
+ url: "/api/cf/platforms/{id}";
1374
+ };
1375
+ export type PlatformsUpdateResponses = {
1376
+ /**
1377
+ * Update platform
1378
+ */
1379
+ 200: {
1380
+ id: string;
1381
+ tenantId: string;
1382
+ name: string;
1383
+ description?: string;
1384
+ url?: string;
1385
+ loginUrl?: string;
1386
+ properties?: {
1387
+ [key: string]: unknown;
1388
+ };
1389
+ tags?: Array<string>;
1390
+ createdAt: string;
1391
+ updatedAt: string;
1392
+ deletedAt?: string;
1393
+ };
1394
+ };
1395
+ export type PlatformsUpdateResponse = PlatformsUpdateResponses[keyof PlatformsUpdateResponses];
1396
+ export type ProxiesListData = {
1397
+ body?: never;
1398
+ path?: never;
1399
+ query?: {
1400
+ search?: string;
1401
+ limit?: number;
1402
+ offset?: number | null;
1403
+ enabled?: boolean | null;
1404
+ type?: string;
1405
+ provider?: string;
1406
+ };
1407
+ url: "/api/cf/proxies";
1408
+ };
1409
+ export type ProxiesListResponses = {
1410
+ /**
1411
+ * Retrieve the proxies list
1412
+ */
1413
+ 200: ProxyListResponse;
1414
+ };
1415
+ export type ProxiesListResponse = ProxiesListResponses[keyof ProxiesListResponses];
1416
+ export type ProxiesDeleteData = {
1417
+ body?: never;
1418
+ path: {
1419
+ proxyId: string;
1420
+ };
1421
+ query?: never;
1422
+ url: "/api/cf/proxies/{proxyId}";
1423
+ };
1424
+ export type ProxiesDeleteResponses = {
1425
+ /**
1426
+ * Delete the proxy
1427
+ */
1428
+ 200: ProxyGetResponse;
1429
+ };
1430
+ export type ProxiesDeleteResponse = ProxiesDeleteResponses[keyof ProxiesDeleteResponses];
1431
+ export type ProxiesGetData = {
1432
+ body?: never;
1433
+ path: {
1434
+ proxyId: string;
1435
+ };
1436
+ query?: never;
1437
+ url: "/api/cf/proxies/{proxyId}";
1438
+ };
1439
+ export type ProxiesGetResponses = {
1440
+ /**
1441
+ * Retrieve the proxy
1442
+ */
1443
+ 200: ProxyGetResponse;
1444
+ };
1445
+ export type ProxiesGetResponse = ProxiesGetResponses[keyof ProxiesGetResponses];
1446
+ export type ProxiesUpsertData = {
1447
+ body?: ProxyUpsertRequest;
1448
+ path?: never;
1449
+ query?: never;
1450
+ url: "/api/cf/proxies/upsert";
1451
+ };
1452
+ export type ProxiesUpsertResponses = {
1453
+ /**
1454
+ * Create or update proxy
1455
+ */
1456
+ 200: ProxyGetResponse;
1457
+ };
1458
+ export type ProxiesUpsertResponse = ProxiesUpsertResponses[keyof ProxiesUpsertResponses];
1459
+ export type SandboxListData = {
1460
+ body?: never;
1461
+ path?: never;
1462
+ query?: {
1463
+ limit?: number;
1464
+ offset?: number | null;
1465
+ status?: string;
1466
+ deployType?: string;
1467
+ name?: string;
1468
+ };
1469
+ url: "/api/cf/sandboxes";
1470
+ };
1471
+ export type SandboxListErrors = {
1472
+ /**
1473
+ * Internal server error
1474
+ */
1475
+ 500: ApiError;
1476
+ };
1477
+ export type SandboxListError = SandboxListErrors[keyof SandboxListErrors];
1478
+ export type SandboxListResponses = {
1479
+ /**
1480
+ * 获取沙盒服务列表
1481
+ */
1482
+ 200: SandboxList;
1483
+ };
1484
+ export type SandboxListResponse = SandboxListResponses[keyof SandboxListResponses];
1485
+ export type SandboxCreateData = {
1486
+ body?: {
1487
+ name: string;
1488
+ description?: string;
1489
+ deployType?: string;
1490
+ serverUrl?: string;
1491
+ status?: string;
1492
+ config?: {
1493
+ [key: string]: unknown;
1494
+ };
1495
+ state?: {
1496
+ [key: string]: unknown;
1497
+ };
1498
+ };
1499
+ path?: never;
1500
+ query?: never;
1501
+ url: "/api/cf/sandboxes";
1502
+ };
1503
+ export type SandboxCreateErrors = {
1504
+ /**
1505
+ * 请求参数错误
1506
+ */
1507
+ 400: {
1508
+ error: string;
1509
+ };
1510
+ /**
1511
+ * Internal server error
1512
+ */
1513
+ 500: ApiError;
1514
+ };
1515
+ export type SandboxCreateError = SandboxCreateErrors[keyof SandboxCreateErrors];
1516
+ export type SandboxCreateResponses = {
1517
+ /**
1518
+ * 沙盒服务创建成功
1519
+ */
1520
+ 201: Sandbox;
1521
+ };
1522
+ export type SandboxCreateResponse = SandboxCreateResponses[keyof SandboxCreateResponses];
1523
+ export type SandboxDeleteData = {
1524
+ body?: never;
1525
+ path: {
1526
+ id: string;
1527
+ };
1528
+ query?: never;
1529
+ url: "/api/cf/sandboxes/{id}";
1530
+ };
1531
+ export type SandboxDeleteErrors = {
1532
+ /**
1533
+ * 沙盒服务未找到
1534
+ */
1535
+ 404: {
1536
+ error: string;
1537
+ };
1538
+ /**
1539
+ * Internal server error
1540
+ */
1541
+ 500: ApiError;
1542
+ };
1543
+ export type SandboxDeleteError = SandboxDeleteErrors[keyof SandboxDeleteErrors];
1544
+ export type SandboxDeleteResponses = {
1545
+ /**
1546
+ * 沙盒服务删除成功
1547
+ */
1548
+ 200: {
1549
+ success: boolean;
1550
+ };
1551
+ };
1552
+ export type SandboxDeleteResponse = SandboxDeleteResponses[keyof SandboxDeleteResponses];
1553
+ export type SandboxGetData = {
1554
+ body?: never;
1555
+ path: {
1556
+ id: string;
1557
+ };
1558
+ query?: never;
1559
+ url: "/api/cf/sandboxes/{id}";
1560
+ };
1561
+ export type SandboxGetErrors = {
1562
+ /**
1563
+ * 沙盒服务未找到
1564
+ */
1565
+ 404: {
1566
+ error: string;
1567
+ };
1568
+ /**
1569
+ * Internal server error
1570
+ */
1571
+ 500: ApiError;
1572
+ };
1573
+ export type SandboxGetError = SandboxGetErrors[keyof SandboxGetErrors];
1574
+ export type SandboxGetResponses = {
1575
+ /**
1576
+ * 获取沙盒服务详情
1577
+ */
1578
+ 200: SandboxGet;
1579
+ };
1580
+ export type SandboxGetResponse = SandboxGetResponses[keyof SandboxGetResponses];
1581
+ export type SandboxUpdateData = {
1582
+ body?: {
1583
+ name?: string;
1584
+ description?: string;
1585
+ deployType?: string;
1586
+ serverUrl?: string;
1587
+ status?: string;
1588
+ config?: {
1589
+ [key: string]: unknown;
1590
+ };
1591
+ state?: {
1592
+ [key: string]: unknown;
1593
+ };
1594
+ };
1595
+ path: {
1596
+ id: string;
1597
+ };
1598
+ query?: never;
1599
+ url: "/api/cf/sandboxes/{id}";
1600
+ };
1601
+ export type SandboxUpdateErrors = {
1602
+ /**
1603
+ * 沙盒服务未找到
1604
+ */
1605
+ 404: {
1606
+ error: string;
1607
+ };
1608
+ /**
1609
+ * Internal server error
1610
+ */
1611
+ 500: ApiError;
1612
+ };
1613
+ export type SandboxUpdateError = SandboxUpdateErrors[keyof SandboxUpdateErrors];
1614
+ export type SandboxUpdateResponses = {
1615
+ /**
1616
+ * 沙盒服务更新成功
1617
+ */
1618
+ 200: Sandbox;
1619
+ };
1620
+ export type SandboxUpdateResponse = SandboxUpdateResponses[keyof SandboxUpdateResponses];
1621
+ export type SandboxStartData = {
1622
+ body?: {
1623
+ serviceType?: string;
1624
+ config?: {
1625
+ [key: string]: unknown;
1626
+ };
1627
+ };
1628
+ path: {
1629
+ id: string;
1630
+ };
1631
+ query?: never;
1632
+ url: "/api/cf/sandboxes/{id}/start";
1633
+ };
1634
+ export type SandboxStartErrors = {
1635
+ /**
1636
+ * 沙盒服务未找到
1637
+ */
1638
+ 404: {
1639
+ error: string;
1640
+ };
1641
+ /**
1642
+ * Internal server error
1643
+ */
1644
+ 500: ApiError;
1645
+ };
1646
+ export type SandboxStartError = SandboxStartErrors[keyof SandboxStartErrors];
1647
+ export type SandboxStartResponses = {
1648
+ /**
1649
+ * 沙盒服务启动请求已提交
1650
+ */
1651
+ 200: SandboxStart;
1652
+ };
1653
+ export type SandboxStartResponse = SandboxStartResponses[keyof SandboxStartResponses];
1654
+ export type SandboxCallbackData = {
1655
+ body?: {
1656
+ sandboxId: string;
1657
+ status: string;
1658
+ serverUrl?: string;
1659
+ error?: string;
1660
+ };
1661
+ path: {
1662
+ id: string;
1663
+ };
1664
+ query?: never;
1665
+ url: "/api/cf/sandboxes/{id}/callback";
1666
+ };
1667
+ export type SandboxCallbackErrors = {
1668
+ /**
1669
+ * 沙盒服务未找到
1670
+ */
1671
+ 404: {
1672
+ error: string;
1673
+ };
1674
+ /**
1675
+ * Internal server error
1676
+ */
1677
+ 500: ApiError;
1678
+ };
1679
+ export type SandboxCallbackError = SandboxCallbackErrors[keyof SandboxCallbackErrors];
1680
+ export type SandboxCallbackResponses = {
1681
+ /**
1682
+ * 回调处理成功
1683
+ */
1684
+ 200: {
1685
+ success: boolean;
1686
+ };
1687
+ };
1688
+ export type SandboxCallbackResponse = SandboxCallbackResponses[keyof SandboxCallbackResponses];
1689
+ export type TenantsListData = {
1690
+ body?: never;
1691
+ path?: never;
1692
+ query?: {
1693
+ search?: string;
1694
+ limit?: number;
1695
+ offset?: number | null;
1696
+ };
1697
+ url: "/api/cf/tenants";
1698
+ };
1699
+ export type TenantsListErrors = {
1700
+ /**
1701
+ * Unauthorized
1702
+ */
1703
+ 401: Api401Response;
1704
+ /**
1705
+ * Internal server error
1706
+ */
1707
+ 500: ApiError;
1708
+ };
1709
+ export type TenantsListError = TenantsListErrors[keyof TenantsListErrors];
1710
+ export type TenantsListResponses = {
1711
+ /**
1712
+ * 获取租户列表
1713
+ */
1714
+ 200: {
1715
+ tenants: Array<{
1716
+ id: string;
1717
+ name: string;
1718
+ slug: string;
1719
+ createdAt: string;
1720
+ updatedAt: string;
1721
+ analyticsOptOut: boolean;
1722
+ alertMemberEmails: boolean;
1723
+ dataRetentionPeriod: string;
1724
+ memberCount?: number;
1725
+ }>;
1726
+ total: number;
1727
+ };
1728
+ };
1729
+ export type TenantsListResponse = TenantsListResponses[keyof TenantsListResponses];
1730
+ export type TenantsCreateData = {
1731
+ body?: {
1732
+ name: string;
1733
+ slug: string;
1734
+ analyticsOptOut?: boolean;
1735
+ alertMemberEmails?: boolean;
1736
+ dataRetentionPeriod?: string;
1737
+ };
1738
+ path?: never;
1739
+ query?: never;
1740
+ url: "/api/cf/tenants";
1741
+ };
1742
+ export type TenantsCreateErrors = {
1743
+ /**
1744
+ * Unauthorized
1745
+ */
1746
+ 401: Api401Response;
1747
+ /**
1748
+ * not founded
1749
+ */
1750
+ 404: {
1751
+ [key: string]: unknown;
1752
+ };
1753
+ };
1754
+ export type TenantsCreateError = TenantsCreateErrors[keyof TenantsCreateErrors];
1755
+ export type TenantsCreateResponses = {
1756
+ /**
1757
+ * 租户创建成功
1758
+ */
1759
+ 201: {
1760
+ id: string;
1761
+ name: string;
1762
+ slug: string;
1763
+ createdAt: string;
1764
+ updatedAt: string;
1765
+ analyticsOptOut: boolean;
1766
+ alertMemberEmails: boolean;
1767
+ dataRetentionPeriod: string;
1768
+ memberCount?: number;
1769
+ };
1770
+ };
1771
+ export type TenantsCreateResponse = TenantsCreateResponses[keyof TenantsCreateResponses];
1772
+ export type TenantsDeleteData = {
1773
+ body?: never;
1774
+ headers: {
1775
+ authorization: string;
1776
+ };
1777
+ path: {
1778
+ tenantId: string;
1779
+ };
1780
+ query?: never;
1781
+ url: "/api/cf/tenants/{tenantId}";
1782
+ };
1783
+ export type TenantsDeleteErrors = {
1784
+ /**
1785
+ * Unauthorized
1786
+ */
1787
+ 401: Api401Response;
1788
+ /**
1789
+ * Forbidden
1790
+ */
1791
+ 403: Api403Response;
1792
+ };
1793
+ export type TenantsDeleteError = TenantsDeleteErrors[keyof TenantsDeleteErrors];
1794
+ export type TenantsDeleteResponses = {
1795
+ /**
1796
+ * 租户删除成功
1797
+ */
1798
+ 200: {
1799
+ success: boolean;
1800
+ };
1801
+ };
1802
+ export type TenantsDeleteResponse = TenantsDeleteResponses[keyof TenantsDeleteResponses];
1803
+ export type TenantsGetData = {
1804
+ body?: never;
1805
+ path: {
1806
+ tenantId: string;
1807
+ };
1808
+ query?: never;
1809
+ url: "/api/cf/tenants/{tenantId}";
1810
+ };
1811
+ export type TenantsGetErrors = {
1812
+ /**
1813
+ * Unauthorized
1814
+ */
1815
+ 401: Api401Response;
1816
+ /**
1817
+ * not founded
1818
+ */
1819
+ 404: {
1820
+ [key: string]: unknown;
1821
+ };
1822
+ };
1823
+ export type TenantsGetError = TenantsGetErrors[keyof TenantsGetErrors];
1824
+ export type TenantsGetResponses = {
1825
+ /**
1826
+ * 获取租户详情
1827
+ */
1828
+ 200: {
1829
+ tenant?: {
1830
+ id: string;
1831
+ name: string;
1832
+ slug: string;
1833
+ createdAt: string;
1834
+ updatedAt: string;
1835
+ analyticsOptOut: boolean;
1836
+ alertMemberEmails: boolean;
1837
+ dataRetentionPeriod: string;
1838
+ memberCount?: number;
1839
+ };
1840
+ };
1841
+ };
1842
+ export type TenantsGetResponse = TenantsGetResponses[keyof TenantsGetResponses];
1843
+ export type TenantsUpdateData = {
1844
+ body?: {
1845
+ name?: string;
1846
+ slug?: string;
1847
+ analyticsOptOut?: boolean;
1848
+ alertMemberEmails?: boolean;
1849
+ dataRetentionPeriod?: string;
1850
+ };
1851
+ headers: {
1852
+ authorization: string;
1853
+ };
1854
+ path: {
1855
+ tenantId: string;
1856
+ };
1857
+ query?: never;
1858
+ url: "/api/cf/tenants/{tenantId}";
1859
+ };
1860
+ export type TenantsUpdateErrors = {
1861
+ /**
1862
+ * Bad request
1863
+ */
1864
+ 400: ApiError;
1865
+ /**
1866
+ * Unauthorized
1867
+ */
1868
+ 401: Api401Response;
1869
+ /**
1870
+ * Forbidden
1871
+ */
1872
+ 403: Api403Response;
1873
+ };
1874
+ export type TenantsUpdateError = TenantsUpdateErrors[keyof TenantsUpdateErrors];
1875
+ export type TenantsUpdateResponses = {
1876
+ /**
1877
+ * 租户更新成功
1878
+ */
1879
+ 200: {
1880
+ id: string;
1881
+ name: string;
1882
+ slug: string;
1883
+ createdAt: string;
1884
+ updatedAt: string;
1885
+ analyticsOptOut: boolean;
1886
+ alertMemberEmails: boolean;
1887
+ dataRetentionPeriod: string;
1888
+ memberCount?: number;
1889
+ };
1890
+ };
1891
+ export type TenantsUpdateResponse = TenantsUpdateResponses[keyof TenantsUpdateResponses];
1892
+ export type CloudflareChatbotListData = {
1893
+ body?: never;
1894
+ path?: never;
1895
+ query?: {
1896
+ title?: string;
1897
+ limit?: number | null;
1898
+ };
1899
+ url: "/api/cf/cf/chatbot";
1900
+ };
1901
+ export type CloudflareChatbotListResponses = {
1902
+ /**
1903
+ * Retrieve the system config
1904
+ */
1905
+ 200: ChatbotListResponse;
1906
+ };
1907
+ export type CloudflareChatbotListResponse = CloudflareChatbotListResponses[keyof CloudflareChatbotListResponses];
1908
+ export type CloudflareChatbotCreateData = {
1909
+ body?: Chatbot;
1910
+ path?: never;
1911
+ query?: never;
1912
+ url: "/api/cf/cf/chatbot";
1913
+ };
1914
+ export type CloudflareChatbotCreateResponses = {
1915
+ /**
1916
+ * add new chatbot
1917
+ */
1918
+ 200: Chatbot;
1919
+ };
1920
+ export type CloudflareChatbotCreateResponse = CloudflareChatbotCreateResponses[keyof CloudflareChatbotCreateResponses];
1921
+ export type CloudflareChatbotDeleteData = {
1922
+ body?: never;
1923
+ path: {
1924
+ id: string;
1925
+ };
1926
+ query?: never;
1927
+ url: "/api/cf/cf/chatbot/{id}";
1928
+ };
1929
+ export type CloudflareChatbotDeleteResponses = {
1930
+ /**
1931
+ * delete the chatbot
1932
+ */
1933
+ 200: Chatbot;
1934
+ };
1935
+ export type CloudflareChatbotDeleteResponse = CloudflareChatbotDeleteResponses[keyof CloudflareChatbotDeleteResponses];
1936
+ export type CloudflareChatbotGetData = {
1937
+ body?: never;
1938
+ path: {
1939
+ id: string;
1940
+ };
1941
+ query?: never;
1942
+ url: "/api/cf/cf/chatbot/{id}";
1943
+ };
1944
+ export type CloudflareChatbotGetResponses = {
1945
+ /**
1946
+ * Retrieve the system config
1947
+ */
1948
+ 200: Chatbot;
1949
+ };
1950
+ export type CloudflareChatbotGetResponse = CloudflareChatbotGetResponses[keyof CloudflareChatbotGetResponses];
1951
+ export type BlogPostsListData = {
1952
+ body?: never;
1953
+ path?: never;
1954
+ query?: {
1955
+ limit?: string;
1956
+ offset?: string;
1957
+ status?: "PUBLISHED" | "DRAFT" | "ARCHIVED";
1958
+ state?: string;
1959
+ siteId?: string;
1960
+ search?: string;
1961
+ };
1962
+ url: "/api/cf/cf/posts";
1963
+ };
1964
+ export type BlogPostsListErrors = {
1965
+ /**
1966
+ * Unauthorized
1967
+ */
1968
+ 401: Api401Response;
1969
+ /**
1970
+ * Internal server error
1971
+ */
1972
+ 500: ApiError;
1973
+ };
1974
+ export type BlogPostsListError = BlogPostsListErrors[keyof BlogPostsListErrors];
1975
+ export type BlogPostsListResponses = {
1976
+ /**
1977
+ * 获取博客文章列表成功
1978
+ */
1979
+ 200: {
1980
+ posts: Array<{
1981
+ id: string;
1982
+ state: string;
1983
+ publishDate?: string;
1984
+ content: string;
1985
+ tenantId: string;
1986
+ authorId: string;
1987
+ siteId: string;
1988
+ title?: string;
1989
+ description?: string;
1990
+ parentPostId?: string;
1991
+ releaseId?: string;
1992
+ releaseURL?: string;
1993
+ settings?: string;
1994
+ image?: string;
1995
+ lastMessageId?: string;
1996
+ error?: string;
1997
+ createdAt: string;
1998
+ updatedAt: string;
1999
+ deletedAt?: string;
2000
+ status: string;
2001
+ slug: string;
2002
+ }>;
2003
+ total: number;
2004
+ limit: number;
2005
+ offset: number;
2006
+ };
2007
+ };
2008
+ export type BlogPostsListResponse = BlogPostsListResponses[keyof BlogPostsListResponses];
2009
+ export type TunnelListData = {
2010
+ body?: never;
2011
+ path?: never;
2012
+ query?: never;
2013
+ url: "/api/cf/cf/tunnel/list";
2014
+ };
2015
+ export type TunnelListResponses = {
2016
+ 200: {
2017
+ message?: string;
2018
+ };
2019
+ };
2020
+ export type TunnelListResponse = TunnelListResponses[keyof TunnelListResponses];
2021
+ export type TunnelGetData = {
2022
+ body?: never;
2023
+ path?: never;
2024
+ query?: never;
2025
+ url: "/api/cf/cf/tunnel/get";
2026
+ };
2027
+ export type TunnelGetResponses = {
2028
+ 200: {
2029
+ message?: string;
2030
+ };
2031
+ };
2032
+ export type TunnelGetResponse = TunnelGetResponses[keyof TunnelGetResponses];
2033
+ export type DashuiGetData = {
2034
+ body?: never;
2035
+ path?: never;
2036
+ query?: never;
2037
+ url: "/api/cf/dashui-data";
2038
+ };
2039
+ export type DashuiGetErrors = {
2040
+ /**
2041
+ * 用户未认证
2042
+ */
2043
+ 401: {
2044
+ message: string;
2045
+ };
2046
+ };
2047
+ export type DashuiGetError = DashuiGetErrors[keyof DashuiGetErrors];
2048
+ export type DashuiGetResponses = {
2049
+ /**
2050
+ * 获取侧边栏导航菜单
2051
+ */
2052
+ 200: {
2053
+ navItems: Array<NavItem>;
2054
+ };
2055
+ };
2056
+ export type DashuiGetResponse = DashuiGetResponses[keyof DashuiGetResponses];
2057
+ export type SysConfigData = {
2058
+ body?: never;
2059
+ path?: never;
2060
+ query?: never;
2061
+ url: "/api/cf/sys/config";
2062
+ };
2063
+ export type SysConfigResponses = {
2064
+ /**
2065
+ * 获取系统关键配置信息.
2066
+ */
2067
+ 200: {
2068
+ /**
2069
+ * 用户数量
2070
+ */
2071
+ len: number;
2072
+ };
2073
+ };
2074
+ export type SysConfigResponse = SysConfigResponses[keyof SysConfigResponses];
2075
+ export type WorkflowTriggerData = {
2076
+ body?: never;
2077
+ path?: never;
2078
+ query?: {
2079
+ limit?: number;
2080
+ offset?: number | null;
2081
+ status?: string;
2082
+ deployType?: string;
2083
+ name?: string;
2084
+ };
2085
+ url: "/api/cf/workflows";
2086
+ };
2087
+ export type WorkflowTriggerErrors = {
2088
+ /**
2089
+ * Internal server error
2090
+ */
2091
+ 500: ApiError;
2092
+ };
2093
+ export type WorkflowTriggerError = WorkflowTriggerErrors[keyof WorkflowTriggerErrors];
2094
+ export type WorkflowTriggerResponses = {
2095
+ /**
2096
+ * 获取沙盒服务列表
2097
+ */
2098
+ 200: SandboxList;
2099
+ };
2100
+ export type WorkflowTriggerResponse = WorkflowTriggerResponses[keyof WorkflowTriggerResponses];
2101
+ export type SetupStatusData = {
2102
+ body?: never;
2103
+ path?: never;
2104
+ query?: never;
2105
+ url: "/api/cf/setup/status";
2106
+ };
2107
+ export type SetupStatusResponses = {
2108
+ /**
2109
+ * 系统初始化状态
2110
+ */
2111
+ 200: {
2112
+ isInitialized: boolean;
2113
+ message: string;
2114
+ };
2115
+ };
2116
+ export type SetupStatusResponse = SetupStatusResponses[keyof SetupStatusResponses];
2117
+ export type SetupInitializeData = {
2118
+ body?: {
2119
+ email: string;
2120
+ password: string;
2121
+ };
2122
+ path?: never;
2123
+ query?: never;
2124
+ url: "/api/cf/setup";
2125
+ };
2126
+ export type SetupInitializeErrors = {
2127
+ /**
2128
+ * Bad request
2129
+ */
2130
+ 400: ApiError;
2131
+ };
2132
+ export type SetupInitializeError = SetupInitializeErrors[keyof SetupInitializeErrors];
2133
+ export type SetupInitializeResponses = {
2134
+ /**
2135
+ * 初始化结果
2136
+ */
2137
+ 200: {
2138
+ success: boolean;
2139
+ message: string;
2140
+ };
2141
+ };
2142
+ export type SetupInitializeResponse = SetupInitializeResponses[keyof SetupInitializeResponses];
2143
+ export type ConfigGomtmGetData = {
2144
+ body?: never;
2145
+ path: {
2146
+ name: string;
2147
+ };
2148
+ query?: never;
2149
+ url: "/api/cf/configs/gomtm_config/{name}";
2150
+ };
2151
+ export type ConfigGomtmGetResponses = {
2152
+ /**
2153
+ * Retrieve the gomtm server config
2154
+ */
2155
+ 200: GomtmConfig;
2156
+ };
2157
+ export type ConfigGomtmGetResponse = ConfigGomtmGetResponses[keyof ConfigGomtmGetResponses];
2158
+ export type SingboxConfigGetData = {
2159
+ body?: never;
2160
+ path: {
2161
+ name: string;
2162
+ };
2163
+ query?: never;
2164
+ url: "/api/cf/tunnel/singbox/{name}";
2165
+ };
2166
+ export type SingboxConfigGetResponses = {
2167
+ /**
2168
+ * Retrieve the gomtm server config
2169
+ */
2170
+ 200: unknown;
2171
+ };
2172
+ export type SiteListData = {
2173
+ body?: never;
2174
+ path?: never;
2175
+ query?: {
2176
+ limit?: string;
2177
+ offset?: string;
2178
+ enabled?: string;
2179
+ search?: string;
2180
+ };
2181
+ url: "/api/cf/site";
2182
+ };
2183
+ export type SiteListResponses = {
2184
+ /**
2185
+ * 获取站点列表
2186
+ */
2187
+ 200: {
2188
+ sites: Array<{
2189
+ id: string;
2190
+ title: string;
2191
+ description?: string;
2192
+ tenantId: string;
2193
+ enabled: boolean;
2194
+ createdAt: string;
2195
+ updatedAt: string;
2196
+ state?: {
2197
+ [key: string]: unknown;
2198
+ };
2199
+ automationEnabled: boolean;
2200
+ }>;
2201
+ total: number;
2202
+ limit: number;
2203
+ offset: number;
2204
+ };
2205
+ };
2206
+ export type SiteListResponse = SiteListResponses[keyof SiteListResponses];
2207
+ export type SiteCreateData = {
2208
+ body?: SiteCreateRequest;
2209
+ path?: never;
2210
+ query?: never;
2211
+ url: "/api/cf/site";
2212
+ };
2213
+ export type SiteCreateResponses = {
2214
+ /**
2215
+ * 站点创建
2216
+ */
2217
+ 201: {
2218
+ id: string;
2219
+ title: string;
2220
+ description?: string;
2221
+ tenantId: string;
2222
+ enabled: boolean;
2223
+ createdAt: string;
2224
+ updatedAt: string;
2225
+ state?: {
2226
+ [key: string]: unknown;
2227
+ };
2228
+ automationEnabled: boolean;
2229
+ };
2230
+ };
2231
+ export type SiteCreateResponse = SiteCreateResponses[keyof SiteCreateResponses];
2232
+ export type SiteDeleteData = {
2233
+ body?: never;
2234
+ path: {
2235
+ id: string;
2236
+ };
2237
+ query?: never;
2238
+ url: "/api/cf/site/{id}";
2239
+ };
2240
+ export type SiteDeleteErrors = {
2241
+ /**
2242
+ * not founded
2243
+ */
2244
+ 404: {
2245
+ [key: string]: unknown;
2246
+ };
2247
+ /**
2248
+ * Internal server error
2249
+ */
2250
+ 500: ApiError;
2251
+ };
2252
+ export type SiteDeleteError = SiteDeleteErrors[keyof SiteDeleteErrors];
2253
+ export type SiteDeleteResponses = {
2254
+ /**
2255
+ * 站点删除
2256
+ */
2257
+ 204: void;
2258
+ };
2259
+ export type SiteDeleteResponse = SiteDeleteResponses[keyof SiteDeleteResponses];
2260
+ export type SiteGetData = {
2261
+ body?: never;
2262
+ path: {
2263
+ id: string;
2264
+ };
2265
+ query?: never;
2266
+ url: "/api/cf/site/{id}";
2267
+ };
2268
+ export type SiteGetErrors = {
2269
+ /**
2270
+ * not founded
2271
+ */
2272
+ 404: {
2273
+ [key: string]: unknown;
2274
+ };
2275
+ /**
2276
+ * Internal server error
2277
+ */
2278
+ 500: ApiError;
2279
+ };
2280
+ export type SiteGetError = SiteGetErrors[keyof SiteGetErrors];
2281
+ export type SiteGetResponses = {
2282
+ /**
2283
+ * 获取站点
2284
+ */
2285
+ 200: {
2286
+ id: string;
2287
+ title: string;
2288
+ description?: string;
2289
+ tenantId: string;
2290
+ enabled: boolean;
2291
+ createdAt: string;
2292
+ updatedAt: string;
2293
+ state?: {
2294
+ [key: string]: unknown;
2295
+ };
2296
+ automationEnabled: boolean;
2297
+ };
2298
+ };
2299
+ export type SiteGetResponse = SiteGetResponses[keyof SiteGetResponses];
2300
+ export type SiteUpdateData = {
2301
+ body?: SiteUpdateRequest;
2302
+ path: {
2303
+ id: string;
2304
+ };
2305
+ query?: never;
2306
+ url: "/api/cf/{id}";
2307
+ };
2308
+ export type SiteUpdateErrors = {
2309
+ /**
2310
+ * not founded
2311
+ */
2312
+ 404: {
2313
+ [key: string]: unknown;
2314
+ };
2315
+ /**
2316
+ * Internal server error
2317
+ */
2318
+ 500: ApiError;
2319
+ };
2320
+ export type SiteUpdateError = SiteUpdateErrors[keyof SiteUpdateErrors];
2321
+ export type SiteUpdateResponses = {
2322
+ /**
2323
+ * 站点更新成功
2324
+ */
2325
+ 200: {
2326
+ id: string;
2327
+ title: string;
2328
+ description?: string;
2329
+ tenantId: string;
2330
+ enabled: boolean;
2331
+ createdAt: string;
2332
+ updatedAt: string;
2333
+ state?: {
2334
+ [key: string]: unknown;
2335
+ };
2336
+ automationEnabled: boolean;
2337
+ };
2338
+ };
2339
+ export type SiteUpdateResponse = SiteUpdateResponses[keyof SiteUpdateResponses];
2340
+ export type BlogPostsList2Data = {
2341
+ body?: never;
2342
+ path?: never;
2343
+ query?: {
2344
+ limit?: string;
2345
+ offset?: string;
2346
+ status?: string;
2347
+ state?: string;
2348
+ siteId?: string;
2349
+ search?: string;
2350
+ };
2351
+ url: "/api/cf/posts";
2352
+ };
2353
+ export type BlogPostsList2Responses = {
2354
+ /**
2355
+ * 获取博客文章列表成功
2356
+ */
2357
+ 200: {
2358
+ posts: Array<{
2359
+ id: string;
2360
+ createdAt: string;
2361
+ updatedAt: string;
2362
+ title?: string;
2363
+ content: string;
2364
+ description?: string;
2365
+ slug: string;
2366
+ status: string;
2367
+ state: string;
2368
+ publishDate?: string;
2369
+ siteId: string;
2370
+ tenantId: string;
2371
+ authorId: string;
2372
+ image?: string;
2373
+ settings?: string;
2374
+ deletedAt?: string;
2375
+ parentPostId?: string;
2376
+ releaseId?: string;
2377
+ releaseURL?: string;
2378
+ lastMessageId?: string;
2379
+ error?: string;
2380
+ }>;
2381
+ total: number;
2382
+ limit: number;
2383
+ offset: number;
2384
+ };
2385
+ };
2386
+ export type BlogPostsList2Response = BlogPostsList2Responses[keyof BlogPostsList2Responses];
2387
+ export type BlogPostsCreateData = {
2388
+ body?: BlogPostCreateRequest;
2389
+ path?: never;
2390
+ query?: never;
2391
+ url: "/api/cf/posts";
2392
+ };
2393
+ export type BlogPostsCreateErrors = {
2394
+ /**
2395
+ * Bad request
2396
+ */
2397
+ 400: ApiError;
2398
+ /**
2399
+ * Unauthorized
2400
+ */
2401
+ 401: Api401Response;
2402
+ };
2403
+ export type BlogPostsCreateError = BlogPostsCreateErrors[keyof BlogPostsCreateErrors];
2404
+ export type BlogPostsCreateResponses = {
2405
+ /**
2406
+ * 创建博客文章成功
2407
+ */
2408
+ 201: {
2409
+ id: string;
2410
+ createdAt: string;
2411
+ updatedAt: string;
2412
+ title?: string;
2413
+ content: string;
2414
+ description?: string;
2415
+ slug: string;
2416
+ status: string;
2417
+ state: string;
2418
+ publishDate?: string;
2419
+ siteId: string;
2420
+ tenantId: string;
2421
+ authorId: string;
2422
+ image?: string;
2423
+ settings?: string;
2424
+ deletedAt?: string;
2425
+ parentPostId?: string;
2426
+ releaseId?: string;
2427
+ releaseURL?: string;
2428
+ lastMessageId?: string;
2429
+ error?: string;
2430
+ };
2431
+ };
2432
+ export type BlogPostsCreateResponse = BlogPostsCreateResponses[keyof BlogPostsCreateResponses];
2433
+ export type BlogPostsDeleteData = {
2434
+ body?: never;
2435
+ path: {
2436
+ id: string;
2437
+ };
2438
+ query?: never;
2439
+ url: "/api/cf/posts/{id}";
2440
+ };
2441
+ export type BlogPostsDeleteErrors = {
2442
+ /**
2443
+ * not founded
2444
+ */
2445
+ 404: {
2446
+ [key: string]: unknown;
2447
+ };
2448
+ /**
2449
+ * Internal server error
2450
+ */
2451
+ 500: ApiError;
2452
+ };
2453
+ export type BlogPostsDeleteError = BlogPostsDeleteErrors[keyof BlogPostsDeleteErrors];
2454
+ export type BlogPostsDeleteResponses = {
2455
+ /**
2456
+ * 删除博客文章成功
2457
+ */
2458
+ 204: void;
2459
+ };
2460
+ export type BlogPostsDeleteResponse = BlogPostsDeleteResponses[keyof BlogPostsDeleteResponses];
2461
+ export type BlogPostsGetByIdData = {
2462
+ body?: never;
2463
+ path: {
2464
+ id: string;
2465
+ };
2466
+ query?: never;
2467
+ url: "/api/cf/posts/{id}";
2468
+ };
2469
+ export type BlogPostsGetByIdErrors = {
2470
+ /**
2471
+ * not founded
2472
+ */
2473
+ 404: {
2474
+ [key: string]: unknown;
2475
+ };
2476
+ /**
2477
+ * Internal server error
2478
+ */
2479
+ 500: ApiError;
2480
+ };
2481
+ export type BlogPostsGetByIdError = BlogPostsGetByIdErrors[keyof BlogPostsGetByIdErrors];
2482
+ export type BlogPostsGetByIdResponses = {
2483
+ /**
2484
+ * 获取博客文章成功
2485
+ */
2486
+ 200: {
2487
+ id: string;
2488
+ createdAt: string;
2489
+ updatedAt: string;
2490
+ title?: string;
2491
+ content: string;
2492
+ description?: string;
2493
+ slug: string;
2494
+ status: string;
2495
+ state: string;
2496
+ publishDate?: string;
2497
+ siteId: string;
2498
+ tenantId: string;
2499
+ authorId: string;
2500
+ image?: string;
2501
+ settings?: string;
2502
+ deletedAt?: string;
2503
+ parentPostId?: string;
2504
+ releaseId?: string;
2505
+ releaseURL?: string;
2506
+ lastMessageId?: string;
2507
+ error?: string;
2508
+ };
2509
+ };
2510
+ export type BlogPostsGetByIdResponse = BlogPostsGetByIdResponses[keyof BlogPostsGetByIdResponses];
2511
+ export type BlogPostsUpdateData = {
2512
+ body?: BlogPostUpdateRequest;
2513
+ path: {
2514
+ id: string;
2515
+ };
2516
+ query?: never;
2517
+ url: "/api/cf/posts/{id}";
2518
+ };
2519
+ export type BlogPostsUpdateErrors = {
2520
+ /**
2521
+ * not founded
2522
+ */
2523
+ 404: {
2524
+ [key: string]: unknown;
2525
+ };
2526
+ };
2527
+ export type BlogPostsUpdateError = BlogPostsUpdateErrors[keyof BlogPostsUpdateErrors];
2528
+ export type BlogPostsUpdateResponses = {
2529
+ /**
2530
+ * 更新博客文章成功
2531
+ */
2532
+ 200: {
2533
+ id: string;
2534
+ createdAt: string;
2535
+ updatedAt: string;
2536
+ title?: string;
2537
+ content: string;
2538
+ description?: string;
2539
+ slug: string;
2540
+ status: string;
2541
+ state: string;
2542
+ publishDate?: string;
2543
+ siteId: string;
2544
+ tenantId: string;
2545
+ authorId: string;
2546
+ image?: string;
2547
+ settings?: string;
2548
+ deletedAt?: string;
2549
+ parentPostId?: string;
2550
+ releaseId?: string;
2551
+ releaseURL?: string;
2552
+ lastMessageId?: string;
2553
+ error?: string;
2554
+ };
2555
+ };
2556
+ export type BlogPostsUpdateResponse = BlogPostsUpdateResponses[keyof BlogPostsUpdateResponses];
2557
+ export type BlogPostsGetBySlugData = {
2558
+ body?: never;
2559
+ path: {
2560
+ slug: string;
2561
+ };
2562
+ query?: never;
2563
+ url: "/api/cf/posts/slug/{slug}";
2564
+ };
2565
+ export type BlogPostsGetBySlugErrors = {
2566
+ /**
2567
+ * not founded
2568
+ */
2569
+ 404: {
2570
+ [key: string]: unknown;
2571
+ };
2572
+ /**
2573
+ * Internal server error
2574
+ */
2575
+ 500: ApiError;
2576
+ };
2577
+ export type BlogPostsGetBySlugError = BlogPostsGetBySlugErrors[keyof BlogPostsGetBySlugErrors];
2578
+ export type BlogPostsGetBySlugResponses = {
2579
+ /**
2580
+ * 获取博客文章成功
2581
+ */
2582
+ 200: {
2583
+ id: string;
2584
+ createdAt: string;
2585
+ updatedAt: string;
2586
+ title?: string;
2587
+ content: string;
2588
+ description?: string;
2589
+ slug: string;
2590
+ status: string;
2591
+ state: string;
2592
+ publishDate?: string;
2593
+ siteId: string;
2594
+ tenantId: string;
2595
+ authorId: string;
2596
+ image?: string;
2597
+ settings?: string;
2598
+ deletedAt?: string;
2599
+ parentPostId?: string;
2600
+ releaseId?: string;
2601
+ releaseURL?: string;
2602
+ lastMessageId?: string;
2603
+ error?: string;
2604
+ };
2605
+ };
2606
+ export type BlogPostsGetBySlugResponse = BlogPostsGetBySlugResponses[keyof BlogPostsGetBySlugResponses];
2607
+ export type SitehostListData = {
2608
+ body?: never;
2609
+ path: {
2610
+ id: string;
2611
+ };
2612
+ query?: never;
2613
+ url: "/api/cf/site-hosts/{id}";
2614
+ };
2615
+ export type SitehostListErrors = {
2616
+ /**
2617
+ * not founded
2618
+ */
2619
+ 404: {
2620
+ [key: string]: unknown;
2621
+ };
2622
+ };
2623
+ export type SitehostListError = SitehostListErrors[keyof SitehostListErrors];
2624
+ export type SitehostListResponses = {
2625
+ /**
2626
+ * 获取站点域名列表成功
2627
+ */
2628
+ 200: {
2629
+ hosts: Array<{
2630
+ id: string;
2631
+ siteId: string;
2632
+ host: string;
2633
+ createdAt: string;
2634
+ updatedAt: string;
2635
+ }>;
2636
+ total: number;
2637
+ };
2638
+ };
2639
+ export type SitehostListResponse = SitehostListResponses[keyof SitehostListResponses];
2640
+ export type SitehostCreateData = {
2641
+ body?: SiteHostCreateRequest;
2642
+ path: {
2643
+ id: string;
2644
+ };
2645
+ query?: never;
2646
+ url: "/api/cf/site-hosts/{id}";
2647
+ };
2648
+ export type SitehostCreateErrors = {
2649
+ /**
2650
+ * Bad request
2651
+ */
2652
+ 400: ApiError;
2653
+ /**
2654
+ * 用户未登录
2655
+ */
2656
+ 401: ApiError;
2657
+ /**
2658
+ * not founded
2659
+ */
2660
+ 404: {
2661
+ [key: string]: unknown;
2662
+ };
2663
+ };
2664
+ export type SitehostCreateError = SitehostCreateErrors[keyof SitehostCreateErrors];
2665
+ export type SitehostCreateResponses = {
2666
+ /**
2667
+ * 域名添加成功
2668
+ */
2669
+ 201: {
2670
+ id: string;
2671
+ siteId: string;
2672
+ host: string;
2673
+ createdAt: string;
2674
+ updatedAt: string;
2675
+ };
2676
+ };
2677
+ export type SitehostCreateResponse = SitehostCreateResponses[keyof SitehostCreateResponses];
2678
+ export type SitehostDeleteData = {
2679
+ body?: never;
2680
+ path: {
2681
+ id: string;
2682
+ hostId: string;
2683
+ };
2684
+ query?: never;
2685
+ url: "/api/cf/site-hosts/{id}/{hostId}";
2686
+ };
2687
+ export type SitehostDeleteErrors = {
2688
+ /**
2689
+ * not founded
2690
+ */
2691
+ 404: {
2692
+ [key: string]: unknown;
2693
+ };
2694
+ };
2695
+ export type SitehostDeleteError = SitehostDeleteErrors[keyof SitehostDeleteErrors];
2696
+ export type SitehostDeleteResponses = {
2697
+ /**
2698
+ * 域名删除成功
2699
+ */
2700
+ 204: void;
2701
+ };
2702
+ export type SitehostDeleteResponse = SitehostDeleteResponses[keyof SitehostDeleteResponses];
2703
+ export type AdkSessionCreateData = {
2704
+ body?: AdkSessionCreateReq;
2705
+ path?: never;
2706
+ query?: never;
2707
+ url: "/api/cf/adk/session/create";
2708
+ };
2709
+ export type AdkSessionCreateResponses = {
2710
+ /**
2711
+ * 会话创建成功
2712
+ */
2713
+ 200: AdkSession;
2714
+ };
2715
+ export type AdkSessionCreateResponse = AdkSessionCreateResponses[keyof AdkSessionCreateResponses];
2716
+ export type AdkSessionGetData = {
2717
+ body?: AdkSessionGetReq;
2718
+ path?: never;
2719
+ query?: never;
2720
+ url: "/api/cf/adk/session/get";
2721
+ };
2722
+ export type AdkSessionGetResponses = {
2723
+ /**
2724
+ * 会话获取成功
2725
+ */
2726
+ 200: AdkSessionGet;
2727
+ };
2728
+ export type AdkSessionGetResponse = AdkSessionGetResponses[keyof AdkSessionGetResponses];
2729
+ export type AdkSessionListData = {
2730
+ body?: never;
2731
+ path?: never;
2732
+ query?: {
2733
+ app_name?: string;
2734
+ user_id?: string;
2735
+ limit?: number;
2736
+ offset?: number | null;
2737
+ };
2738
+ url: "/api/cf/adk/session/list";
2739
+ };
2740
+ export type AdkSessionListResponses = {
2741
+ /**
2742
+ * 会话列表获取成功
2743
+ */
2744
+ 200: AdkSessionList;
2745
+ };
2746
+ export type AdkSessionListResponse = AdkSessionListResponses[keyof AdkSessionListResponses];
2747
+ export type AdkSessionDeleteData = {
2748
+ body?: AdkSessionDeleteReq;
2749
+ path?: never;
2750
+ query?: never;
2751
+ url: "/api/cf/adk/session/delete";
2752
+ };
2753
+ export type AdkSessionDeleteResponses = {
2754
+ /**
2755
+ * 会话删除成功
2756
+ */
2757
+ 200: AdkSessionDelete;
2758
+ };
2759
+ export type AdkSessionDeleteResponse = AdkSessionDeleteResponses[keyof AdkSessionDeleteResponses];
2760
+ export type AdkSessionAppendEventData = {
2761
+ body?: AdkSessionAppendEventBody;
2762
+ path?: never;
2763
+ query?: never;
2764
+ url: "/api/cf/adk/session/append-event";
2765
+ };
2766
+ export type AdkSessionAppendEventResponses = {
2767
+ /**
2768
+ * 事件添加成功
2769
+ */
2770
+ 200: AdkSessionAppendEventResult;
2771
+ };
2772
+ export type AdkSessionAppendEventResponse = AdkSessionAppendEventResponses[keyof AdkSessionAppendEventResponses];
2773
+ export type AdkArtifactSaveData = {
2774
+ body?: AdkArtifactSaveRequest;
2775
+ path?: never;
2776
+ query?: never;
2777
+ url: "/api/cf/adk/artifact/save";
2778
+ };
2779
+ export type AdkArtifactSaveResponses = {
2780
+ /**
2781
+ * Artifact保存成功
2782
+ */
2783
+ 200: AdkArtifactSave;
2784
+ };
2785
+ export type AdkArtifactSaveResponse = AdkArtifactSaveResponses[keyof AdkArtifactSaveResponses];
2786
+ export type AdkArtifactLoadData = {
2787
+ body?: AdkArtifactLoadRequest;
2788
+ path?: never;
2789
+ query?: never;
2790
+ url: "/api/cf/adk/artifact/load";
2791
+ };
2792
+ export type AdkArtifactLoadResponses = {
2793
+ /**
2794
+ * Artifact加载成功
2795
+ */
2796
+ 200: AdkArtifactResponse;
2797
+ };
2798
+ export type AdkArtifactLoadResponse = AdkArtifactLoadResponses[keyof AdkArtifactLoadResponses];
2799
+ export type AdkArtifactListData = {
2800
+ body?: never;
2801
+ path?: never;
2802
+ query?: {
2803
+ app_name?: string;
2804
+ user_id?: string;
2805
+ session_id?: string;
2806
+ limit?: number;
2807
+ offset?: number | null;
2808
+ };
2809
+ url: "/api/cf/adk/artifact/list";
2810
+ };
2811
+ export type AdkArtifactListResponses = {
2812
+ /**
2813
+ * Artifacts列表获取成功
2814
+ */
2815
+ 200: AdkArtifactList;
2816
+ };
2817
+ export type AdkArtifactListResponse = AdkArtifactListResponses[keyof AdkArtifactListResponses];
2818
+ export type AdkArtifactListKeysData = {
2819
+ body?: never;
2820
+ path?: never;
2821
+ query: {
2822
+ app_name: string;
2823
+ user_id: string;
2824
+ session_id: string;
2825
+ };
2826
+ url: "/api/cf/adk/artifact/list-keys";
2827
+ };
2828
+ export type AdkArtifactListKeysResponses = {
2829
+ /**
2830
+ * 文件名列表获取成功
2831
+ */
2832
+ 200: AdkArtifactListKeys;
2833
+ };
2834
+ export type AdkArtifactListKeysResponse = AdkArtifactListKeysResponses[keyof AdkArtifactListKeysResponses];
2835
+ export type AdkArtifactDeleteData = {
2836
+ body?: AdkArtifactDeleteRequest;
2837
+ path?: never;
2838
+ query?: never;
2839
+ url: "/api/cf/adk/artifact/delete";
2840
+ };
2841
+ export type AdkArtifactDeleteResponses = {
2842
+ /**
2843
+ * Artifact删除成功
2844
+ */
2845
+ 200: {
2846
+ success: boolean;
2847
+ };
2848
+ };
2849
+ export type AdkArtifactDeleteResponse = AdkArtifactDeleteResponses[keyof AdkArtifactDeleteResponses];
2850
+ export type AdkArtifactListVersionsData = {
2851
+ body?: never;
2852
+ path?: never;
2853
+ query: {
2854
+ app_name: string;
2855
+ user_id: string;
2856
+ session_id: string;
2857
+ filename: string;
2858
+ };
2859
+ url: "/api/cf/adk/artifact/list-versions";
2860
+ };
2861
+ export type AdkArtifactListVersionsResponses = {
2862
+ /**
2863
+ * 版本列表获取成功
2864
+ */
2865
+ 200: AdkArtifactListVersions;
2866
+ };
2867
+ export type AdkArtifactListVersionsResponse = AdkArtifactListVersionsResponses[keyof AdkArtifactListVersionsResponses];
2868
+ export type AdkMemoryAddSessionData = {
2869
+ body?: {
2870
+ app_name: string;
2871
+ user_id: string;
2872
+ session_id: string;
2873
+ events: Array<{
2874
+ id: string;
2875
+ invocation_id: string;
2876
+ author: string;
2877
+ timestamp: number;
2878
+ branch?: string;
2879
+ actions?: unknown;
2880
+ content?: unknown;
2881
+ long_running_tool_ids?: Array<string>;
2882
+ partial?: boolean;
2883
+ turn_complete?: boolean;
2884
+ error_code?: string;
2885
+ error_message?: string;
2886
+ interrupted?: boolean;
2887
+ grounding_metadata?: unknown;
2888
+ custom_metadata?: unknown;
2889
+ }>;
2890
+ };
2891
+ path?: never;
2892
+ query?: never;
2893
+ url: "/api/cf/adk/memory/add-session";
2894
+ };
2895
+ export type AdkMemoryAddSessionResponses = {
2896
+ /**
2897
+ * 会话添加成功
2898
+ */
2899
+ 200: {
2900
+ success: boolean;
2901
+ };
2902
+ };
2903
+ export type AdkMemoryAddSessionResponse = AdkMemoryAddSessionResponses[keyof AdkMemoryAddSessionResponses];
2904
+ export type AdkMemoryListData = {
2905
+ body?: never;
2906
+ path?: never;
2907
+ query?: {
2908
+ app_name?: string;
2909
+ user_id?: string;
2910
+ limit?: number;
2911
+ offset?: number | null;
2912
+ };
2913
+ url: "/api/cf/adk/memory/list";
2914
+ };
2915
+ export type AdkMemoryListResponses = {
2916
+ /**
2917
+ * 记忆列表获取成功
2918
+ */
2919
+ 200: {
2920
+ memories: Array<{
2921
+ content?: unknown;
2922
+ author?: string;
2923
+ timestamp?: string;
2924
+ }>;
2925
+ total: number;
2926
+ };
2927
+ };
2928
+ export type AdkMemoryListResponse = AdkMemoryListResponses[keyof AdkMemoryListResponses];
2929
+ export type AdkMemorySearchData = {
2930
+ body?: {
2931
+ app_name: string;
2932
+ user_id: string;
2933
+ query: string;
2934
+ };
2935
+ path?: never;
2936
+ query?: never;
2937
+ url: "/api/cf/adk/memory/search";
2938
+ };
2939
+ export type AdkMemorySearchResponses = {
2940
+ /**
2941
+ * 搜索结果
2942
+ */
2943
+ 200: {
2944
+ memories: Array<{
2945
+ content?: unknown;
2946
+ author?: string;
2947
+ timestamp?: string;
2948
+ }>;
2949
+ };
2950
+ };
2951
+ export type AdkMemorySearchResponse = AdkMemorySearchResponses[keyof AdkMemorySearchResponses];
2952
+ export type AdkTaskSaveData = {
2953
+ body?: AdkTaskSaveRequest;
2954
+ path?: never;
2955
+ query?: never;
2956
+ url: "/api/cf/adk/task/save";
2957
+ };
2958
+ export type AdkTaskSaveResponses = {
2959
+ /**
2960
+ * 任务保存成功
2961
+ */
2962
+ 200: AdkTaskSave;
2963
+ };
2964
+ export type AdkTaskSaveResponse = AdkTaskSaveResponses[keyof AdkTaskSaveResponses];
2965
+ export type AdkTaskGetData = {
2966
+ body?: AdkTaskGetRequest;
2967
+ path?: never;
2968
+ query?: never;
2969
+ url: "/api/cf/adk/task/get";
2970
+ };
2971
+ export type AdkTaskGetResponses = {
2972
+ /**
2973
+ * 任务获取成功
2974
+ */
2975
+ 200: AdkTaskGet;
2976
+ };
2977
+ export type AdkTaskGetResponse = AdkTaskGetResponses[keyof AdkTaskGetResponses];
2978
+ export type AdkTaskListData = {
2979
+ body?: never;
2980
+ path?: never;
2981
+ query?: {
2982
+ context_id?: string;
2983
+ status?: string;
2984
+ limit?: number | null;
2985
+ offset?: number | null;
2986
+ };
2987
+ url: "/api/cf/adk/task/list";
2988
+ };
2989
+ export type AdkTaskListResponses = {
2990
+ /**
2991
+ * 任务列表获取成功
2992
+ */
2993
+ 200: AdkTaskList;
2994
+ };
2995
+ export type AdkTaskListResponse = AdkTaskListResponses[keyof AdkTaskListResponses];
2996
+ export type AdkTaskDeleteData = {
2997
+ body?: AdkTaskDeleteRequest;
2998
+ path?: never;
2999
+ query?: never;
3000
+ url: "/api/cf/adk/task/delete";
3001
+ };
3002
+ export type AdkTaskDeleteResponses = {
3003
+ /**
3004
+ * 任务删除成功
3005
+ */
3006
+ 200: AdkTaskDelete;
3007
+ };
3008
+ export type AdkTaskDeleteResponse = AdkTaskDeleteResponses[keyof AdkTaskDeleteResponses];
3009
+ export type ClientOptions = {
3010
+ baseUrl: "https://mtgate-3.yuepa8.com" | (string & {});
3011
+ };
3012
+ //# sourceMappingURL=types.gen.d.ts.map