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,1544 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export const AgentSchema = {
3
+ type: "object",
4
+ properties: {
5
+ id: {
6
+ type: "string",
7
+ format: "uuid",
8
+ },
9
+ createdAt: {
10
+ type: "string",
11
+ format: "date",
12
+ },
13
+ updatedAt: {
14
+ type: "string",
15
+ format: "date",
16
+ },
17
+ deletedAt: {
18
+ type: "string",
19
+ format: "date",
20
+ },
21
+ tenantId: {
22
+ type: "string",
23
+ format: "uuid",
24
+ },
25
+ name: {
26
+ type: "string",
27
+ },
28
+ description: {
29
+ type: "string",
30
+ },
31
+ status: {
32
+ type: "string",
33
+ },
34
+ config: {
35
+ type: "object",
36
+ additionalProperties: {
37
+ nullable: true,
38
+ },
39
+ },
40
+ state: {
41
+ type: "object",
42
+ additionalProperties: {
43
+ nullable: true,
44
+ },
45
+ },
46
+ },
47
+ required: ["id", "createdAt", "updatedAt", "tenantId", "name", "status"],
48
+ };
49
+ export const AgentListResponseSchema = {
50
+ type: "object",
51
+ properties: {
52
+ agents: {
53
+ type: "array",
54
+ items: {
55
+ $ref: "#/components/schemas/Agent",
56
+ },
57
+ },
58
+ total: {
59
+ type: "number",
60
+ },
61
+ },
62
+ required: ["agents", "total"],
63
+ };
64
+ export const AgentGetResponseSchema = {
65
+ type: "object",
66
+ properties: {
67
+ agent: {
68
+ $ref: "#/components/schemas/Agent",
69
+ },
70
+ },
71
+ };
72
+ export const AgentCreateRequestSchema = {
73
+ type: "object",
74
+ properties: {
75
+ name: {
76
+ type: "string",
77
+ minLength: 1,
78
+ maxLength: 255,
79
+ },
80
+ description: {
81
+ type: "string",
82
+ },
83
+ status: {
84
+ type: "string",
85
+ enum: ["active", "inactive", "error"],
86
+ default: "inactive",
87
+ },
88
+ config: {
89
+ type: "object",
90
+ additionalProperties: {
91
+ nullable: true,
92
+ },
93
+ },
94
+ state: {
95
+ type: "object",
96
+ additionalProperties: {
97
+ nullable: true,
98
+ },
99
+ },
100
+ tenantId: {
101
+ type: "string",
102
+ format: "uuid",
103
+ },
104
+ },
105
+ required: ["name", "tenantId"],
106
+ };
107
+ export const AgentChatbotUpdateBodyConfigSchema = {
108
+ type: "object",
109
+ properties: {
110
+ name: {
111
+ type: "string",
112
+ minLength: 1,
113
+ maxLength: 255,
114
+ },
115
+ description: {
116
+ type: "string",
117
+ },
118
+ status: {
119
+ type: "string",
120
+ enum: ["active", "inactive", "error"],
121
+ },
122
+ config: {
123
+ type: "object",
124
+ additionalProperties: {
125
+ nullable: true,
126
+ },
127
+ },
128
+ state: {
129
+ type: "object",
130
+ additionalProperties: {
131
+ nullable: true,
132
+ },
133
+ },
134
+ },
135
+ };
136
+ export const AgentHandlerInfoSchema = {
137
+ type: "object",
138
+ properties: {
139
+ agentName: {
140
+ type: "string",
141
+ description: "Agent name",
142
+ },
143
+ agentId: {
144
+ type: "string",
145
+ description: "Agent ID",
146
+ },
147
+ state: {
148
+ nullable: true,
149
+ description: "Agent state",
150
+ },
151
+ },
152
+ required: ["agentName", "agentId"],
153
+ };
154
+ export const ApiErrorSchema = {
155
+ type: "object",
156
+ properties: {
157
+ code: {
158
+ type: "integer",
159
+ },
160
+ message: {
161
+ type: "string",
162
+ },
163
+ stack: {
164
+ type: "string",
165
+ },
166
+ cause: {
167
+ type: "string",
168
+ },
169
+ field: {
170
+ type: "string",
171
+ },
172
+ description: {
173
+ type: "string",
174
+ },
175
+ docs_link: {
176
+ type: "string",
177
+ },
178
+ },
179
+ };
180
+ export const AgentHandlerGetInfoBodySchema = {
181
+ type: "object",
182
+ properties: {
183
+ agentId: {
184
+ type: "string",
185
+ description: "Agent ID",
186
+ },
187
+ },
188
+ required: ["agentId"],
189
+ };
190
+ export const RegisterInputSchema = {
191
+ type: "object",
192
+ properties: {
193
+ email: {
194
+ type: "string",
195
+ format: "email",
196
+ },
197
+ password: {
198
+ type: "string",
199
+ minLength: 6,
200
+ },
201
+ name: {
202
+ type: "string",
203
+ minLength: 1,
204
+ },
205
+ },
206
+ required: ["email", "password", "name"],
207
+ };
208
+ export const UserSchema = {
209
+ type: "object",
210
+ properties: {
211
+ id: {
212
+ type: "string",
213
+ },
214
+ email: {
215
+ type: "string",
216
+ },
217
+ name: {
218
+ type: "string",
219
+ },
220
+ role: {
221
+ type: "string",
222
+ default: "USER",
223
+ },
224
+ avatarUrl: {
225
+ type: "string",
226
+ },
227
+ },
228
+ required: ["id", "email"],
229
+ };
230
+ export const UserListResponseSchema = {
231
+ type: "object",
232
+ properties: {
233
+ rows: {
234
+ type: "array",
235
+ items: {
236
+ type: "object",
237
+ properties: {
238
+ id: {
239
+ type: "string",
240
+ },
241
+ email: {
242
+ type: "string",
243
+ },
244
+ emailVerified: {
245
+ type: "boolean",
246
+ },
247
+ name: {
248
+ type: "string",
249
+ },
250
+ role: {
251
+ type: "string",
252
+ enum: ["ADMIN", "USER", "GUEST"],
253
+ },
254
+ createdAt: {
255
+ type: "string",
256
+ },
257
+ updatedAt: {
258
+ type: "string",
259
+ },
260
+ },
261
+ required: [
262
+ "id",
263
+ "email",
264
+ "emailVerified",
265
+ "role",
266
+ "createdAt",
267
+ "updatedAt",
268
+ ],
269
+ },
270
+ },
271
+ total: {
272
+ type: "number",
273
+ },
274
+ limit: {
275
+ type: "number",
276
+ },
277
+ offset: {
278
+ type: "number",
279
+ },
280
+ },
281
+ required: ["rows", "total", "limit", "offset"],
282
+ };
283
+ export const UserCreateRequestSchema = {
284
+ type: "object",
285
+ properties: {
286
+ email: {
287
+ type: "string",
288
+ format: "email",
289
+ },
290
+ password: {
291
+ type: "string",
292
+ minLength: 6,
293
+ },
294
+ name: {
295
+ type: "string",
296
+ },
297
+ role: {
298
+ type: "string",
299
+ enum: ["ADMIN", "USER", "GUEST"],
300
+ default: "USER",
301
+ },
302
+ },
303
+ required: ["email", "password"],
304
+ };
305
+ export const UserUpdateResponseSchema = {
306
+ type: "object",
307
+ properties: {
308
+ id: {
309
+ type: "string",
310
+ },
311
+ email: {
312
+ type: "string",
313
+ },
314
+ emailVerified: {
315
+ type: "boolean",
316
+ },
317
+ name: {
318
+ type: "string",
319
+ },
320
+ role: {
321
+ type: "string",
322
+ enum: ["ADMIN", "USER", "GUEST"],
323
+ },
324
+ metadata: {
325
+ type: "object",
326
+ properties: {
327
+ id: {
328
+ type: "string",
329
+ },
330
+ createdAt: {
331
+ type: "string",
332
+ },
333
+ updatedAt: {
334
+ type: "string",
335
+ },
336
+ },
337
+ required: ["id", "createdAt", "updatedAt"],
338
+ },
339
+ },
340
+ required: ["id", "email", "emailVerified", "role", "metadata"],
341
+ };
342
+ export const SysConfigSchema = {
343
+ type: "object",
344
+ properties: {
345
+ id: {
346
+ type: "string",
347
+ example: "123",
348
+ },
349
+ name: {
350
+ type: "string",
351
+ example: "John Doe",
352
+ },
353
+ age: {
354
+ type: "number",
355
+ example: 42,
356
+ },
357
+ },
358
+ required: ["id", "name", "age"],
359
+ };
360
+ export const ApiCommonDeleteResponseSchema = {
361
+ type: "object",
362
+ properties: {
363
+ id: {
364
+ type: "string",
365
+ },
366
+ message: {
367
+ type: "string",
368
+ },
369
+ },
370
+ };
371
+ export const ProxyGetResponseSchema = {
372
+ type: "object",
373
+ properties: {
374
+ id: {
375
+ type: "string",
376
+ },
377
+ name: {
378
+ type: "string",
379
+ },
380
+ description: {
381
+ type: "string",
382
+ },
383
+ url: {
384
+ type: "string",
385
+ },
386
+ type: {
387
+ type: "string",
388
+ },
389
+ provider: {
390
+ type: "string",
391
+ },
392
+ country_code: {
393
+ type: "string",
394
+ },
395
+ port: {
396
+ type: "number",
397
+ },
398
+ enabled: {
399
+ type: "boolean",
400
+ },
401
+ created_at: {
402
+ type: "string",
403
+ format: "date",
404
+ },
405
+ updated_at: {
406
+ type: "string",
407
+ format: "date",
408
+ },
409
+ },
410
+ required: ["id", "name", "url", "enabled", "created_at"],
411
+ };
412
+ export const ProxyListResponseSchema = {
413
+ type: "object",
414
+ properties: {
415
+ proxies: {
416
+ type: "array",
417
+ items: {
418
+ $ref: "#/components/schemas/ProxyGetResponse",
419
+ },
420
+ },
421
+ pagination: {
422
+ type: "object",
423
+ properties: {
424
+ page: {
425
+ type: "number",
426
+ },
427
+ limit: {
428
+ type: "number",
429
+ },
430
+ total_count: {
431
+ type: "number",
432
+ },
433
+ total_pages: {
434
+ type: "number",
435
+ },
436
+ },
437
+ required: ["page", "limit", "total_count", "total_pages"],
438
+ },
439
+ },
440
+ required: ["proxies", "pagination"],
441
+ };
442
+ export const ProxyUpsertRequestSchema = {
443
+ type: "object",
444
+ properties: {
445
+ id: {
446
+ type: "string",
447
+ },
448
+ name: {
449
+ type: "string",
450
+ minLength: 1,
451
+ },
452
+ description: {
453
+ type: "string",
454
+ },
455
+ url: {
456
+ type: "string",
457
+ minLength: 1,
458
+ format: "uri",
459
+ },
460
+ },
461
+ required: ["url"],
462
+ };
463
+ export const SandboxSchema = {
464
+ type: "object",
465
+ properties: {
466
+ id: {
467
+ type: "string",
468
+ format: "uuid",
469
+ },
470
+ createdAt: {
471
+ type: "string",
472
+ },
473
+ updatedAt: {
474
+ type: "string",
475
+ },
476
+ deletedAt: {
477
+ type: "string",
478
+ },
479
+ tenantId: {
480
+ type: "string",
481
+ format: "uuid",
482
+ },
483
+ name: {
484
+ type: "string",
485
+ },
486
+ description: {
487
+ type: "string",
488
+ },
489
+ deployType: {
490
+ type: "string",
491
+ },
492
+ serverUrl: {
493
+ type: "string",
494
+ },
495
+ status: {
496
+ type: "string",
497
+ },
498
+ state: {
499
+ type: "object",
500
+ additionalProperties: {
501
+ nullable: true,
502
+ },
503
+ },
504
+ config: {
505
+ type: "object",
506
+ additionalProperties: {
507
+ nullable: true,
508
+ },
509
+ },
510
+ },
511
+ required: [
512
+ "id",
513
+ "createdAt",
514
+ "updatedAt",
515
+ "tenantId",
516
+ "name",
517
+ "description",
518
+ "deployType",
519
+ "serverUrl",
520
+ "status",
521
+ "state",
522
+ "config",
523
+ ],
524
+ };
525
+ export const SandboxListSchema = {
526
+ type: "object",
527
+ properties: {
528
+ services: {
529
+ type: "array",
530
+ items: {
531
+ $ref: "#/components/schemas/Sandbox",
532
+ },
533
+ },
534
+ total: {
535
+ type: "number",
536
+ },
537
+ },
538
+ required: ["services", "total"],
539
+ };
540
+ export const SandboxGetSchema = {
541
+ type: "object",
542
+ properties: {
543
+ service: {
544
+ $ref: "#/components/schemas/Sandbox",
545
+ },
546
+ },
547
+ };
548
+ export const SandboxStartSchema = {
549
+ type: "object",
550
+ properties: {
551
+ message: {
552
+ type: "string",
553
+ },
554
+ serviceId: {
555
+ type: "string",
556
+ },
557
+ },
558
+ required: ["message", "serviceId"],
559
+ };
560
+ export const Api401ResponseSchema = {
561
+ type: "object",
562
+ properties: {
563
+ message: {
564
+ type: "string",
565
+ default: "unauthorized",
566
+ },
567
+ },
568
+ };
569
+ export const Api403ResponseSchema = {
570
+ type: "object",
571
+ properties: {
572
+ message: {
573
+ type: "string",
574
+ default: "forbidden",
575
+ },
576
+ },
577
+ };
578
+ export const ChatbotSchema = {
579
+ type: "object",
580
+ properties: {
581
+ id: {
582
+ type: "string",
583
+ },
584
+ title: {
585
+ type: "string",
586
+ },
587
+ description: {
588
+ type: "string",
589
+ nullable: true,
590
+ },
591
+ config: {
592
+ nullable: true,
593
+ },
594
+ state: {
595
+ nullable: true,
596
+ },
597
+ },
598
+ required: ["id", "title", "description"],
599
+ };
600
+ export const ChatbotListResponseSchema = {
601
+ type: "object",
602
+ properties: {
603
+ rows: {
604
+ type: "array",
605
+ items: {
606
+ $ref: "#/components/schemas/Chatbot",
607
+ },
608
+ },
609
+ total: {
610
+ type: "number",
611
+ },
612
+ },
613
+ required: ["rows", "total"],
614
+ };
615
+ export const NavItemSchema = {
616
+ type: "object",
617
+ properties: {
618
+ title: {
619
+ type: "string",
620
+ description: "菜单标题",
621
+ },
622
+ url: {
623
+ type: "string",
624
+ description: "菜单链接",
625
+ },
626
+ icon: {
627
+ type: "string",
628
+ description: "图标名称",
629
+ },
630
+ badge: {
631
+ type: "string",
632
+ description: "徽章文本",
633
+ },
634
+ debugOnly: {
635
+ type: "boolean",
636
+ description: "是否仅在调试模式下显示",
637
+ },
638
+ children: {
639
+ type: "array",
640
+ items: {
641
+ $ref: "#/components/schemas/NavItem",
642
+ },
643
+ description: "子菜单项",
644
+ },
645
+ },
646
+ required: ["title"],
647
+ description: "导航菜单项",
648
+ };
649
+ export const SingboxConfigSchema = {
650
+ type: "object",
651
+ properties: {
652
+ configUrl: {
653
+ type: "string",
654
+ },
655
+ containerOnly: {
656
+ type: "boolean",
657
+ default: false,
658
+ },
659
+ },
660
+ };
661
+ export const TunnelConfigSchema = {
662
+ type: "object",
663
+ properties: {
664
+ cloudflareToken: {
665
+ type: "string",
666
+ minLength: 1,
667
+ },
668
+ tunnelName: {
669
+ type: "string",
670
+ },
671
+ localPort: {
672
+ type: "integer",
673
+ minimum: 1,
674
+ maximum: 65535,
675
+ },
676
+ singbox: {
677
+ $ref: "#/components/schemas/SingboxConfig",
678
+ },
679
+ },
680
+ required: ["cloudflareToken", "localPort", "singbox"],
681
+ };
682
+ export const OnionConfigSchema = {
683
+ type: "object",
684
+ properties: {
685
+ privateKey: {
686
+ type: "string",
687
+ },
688
+ },
689
+ };
690
+ export const VncServiceSchema = {
691
+ type: "object",
692
+ properties: {
693
+ enabled: {
694
+ type: "boolean",
695
+ default: false,
696
+ },
697
+ port: {
698
+ type: "number",
699
+ default: 8444,
700
+ },
701
+ display: {
702
+ type: "string",
703
+ default: ":1",
704
+ },
705
+ password: {
706
+ type: "string",
707
+ },
708
+ resolution: {
709
+ type: "string",
710
+ },
711
+ colorDepth: {
712
+ type: "number",
713
+ },
714
+ onionConfig: {
715
+ $ref: "#/components/schemas/OnionConfig",
716
+ },
717
+ },
718
+ };
719
+ export const HelloOnionWebServiceSchema = {
720
+ type: "object",
721
+ properties: {
722
+ enabled: {
723
+ type: "boolean",
724
+ default: false,
725
+ },
726
+ port: {
727
+ type: "number",
728
+ default: 8053,
729
+ },
730
+ onionConfig: {
731
+ $ref: "#/components/schemas/OnionConfig",
732
+ },
733
+ },
734
+ };
735
+ export const MainApiServiceSchema = {
736
+ type: "object",
737
+ properties: {
738
+ enabled: {
739
+ type: "boolean",
740
+ default: false,
741
+ },
742
+ port: {
743
+ type: "number",
744
+ default: 8000,
745
+ },
746
+ onionConfig: {
747
+ $ref: "#/components/schemas/OnionConfig",
748
+ },
749
+ },
750
+ };
751
+ export const GomtmConfigSchema = {
752
+ type: "object",
753
+ properties: {
754
+ tunnel: {
755
+ $ref: "#/components/schemas/TunnelConfig",
756
+ },
757
+ vnc: {
758
+ $ref: "#/components/schemas/VncService",
759
+ },
760
+ helloOnionWeb: {
761
+ $ref: "#/components/schemas/HelloOnionWebService",
762
+ },
763
+ mainApi: {
764
+ $ref: "#/components/schemas/MainApiService",
765
+ },
766
+ },
767
+ };
768
+ export const SiteCreateRequestSchema = {
769
+ type: "object",
770
+ properties: {
771
+ title: {
772
+ type: "string",
773
+ minLength: 1,
774
+ },
775
+ description: {
776
+ type: "string",
777
+ },
778
+ enabled: {
779
+ type: "boolean",
780
+ default: true,
781
+ },
782
+ automationEnabled: {
783
+ type: "boolean",
784
+ default: false,
785
+ },
786
+ state: {
787
+ type: "object",
788
+ additionalProperties: {
789
+ nullable: true,
790
+ },
791
+ default: {},
792
+ },
793
+ },
794
+ required: ["title"],
795
+ };
796
+ export const SiteUpdateRequestSchema = {
797
+ type: "object",
798
+ properties: {
799
+ title: {
800
+ type: "string",
801
+ minLength: 1,
802
+ },
803
+ description: {
804
+ type: "string",
805
+ },
806
+ enabled: {
807
+ type: "boolean",
808
+ },
809
+ automationEnabled: {
810
+ type: "boolean",
811
+ },
812
+ state: {
813
+ type: "object",
814
+ additionalProperties: {
815
+ nullable: true,
816
+ },
817
+ },
818
+ },
819
+ };
820
+ export const BlogPostCreateRequestSchema = {
821
+ type: "object",
822
+ properties: {
823
+ title: {
824
+ type: "string",
825
+ minLength: 1,
826
+ },
827
+ content: {
828
+ type: "string",
829
+ minLength: 1,
830
+ },
831
+ description: {
832
+ type: "string",
833
+ },
834
+ slug: {
835
+ type: "string",
836
+ },
837
+ status: {
838
+ type: "string",
839
+ default: "DRAFT",
840
+ },
841
+ state: {
842
+ type: "string",
843
+ default: "QUEUE",
844
+ },
845
+ publishDate: {
846
+ type: "string",
847
+ },
848
+ siteId: {
849
+ type: "string",
850
+ minLength: 1,
851
+ },
852
+ image: {
853
+ type: "string",
854
+ },
855
+ settings: {
856
+ type: "string",
857
+ },
858
+ },
859
+ required: ["content", "siteId"],
860
+ };
861
+ export const BlogPostUpdateRequestSchema = {
862
+ type: "object",
863
+ properties: {
864
+ title: {
865
+ type: "string",
866
+ minLength: 1,
867
+ },
868
+ content: {
869
+ type: "string",
870
+ },
871
+ description: {
872
+ type: "string",
873
+ },
874
+ slug: {
875
+ type: "string",
876
+ },
877
+ status: {
878
+ type: "string",
879
+ },
880
+ state: {
881
+ type: "string",
882
+ },
883
+ publishDate: {
884
+ type: "string",
885
+ },
886
+ image: {
887
+ type: "string",
888
+ },
889
+ settings: {
890
+ type: "string",
891
+ },
892
+ },
893
+ };
894
+ export const SiteHostCreateRequestSchema = {
895
+ type: "object",
896
+ properties: {
897
+ host: {
898
+ type: "string",
899
+ minLength: 1,
900
+ },
901
+ },
902
+ required: ["host"],
903
+ };
904
+ export const AdkSessionStateSchema = {
905
+ type: "object",
906
+ additionalProperties: {
907
+ nullable: true,
908
+ },
909
+ default: {},
910
+ };
911
+ export const AdkSessionSchema = {
912
+ type: "object",
913
+ properties: {
914
+ id: {
915
+ type: "string",
916
+ },
917
+ app_name: {
918
+ type: "string",
919
+ },
920
+ user_id: {
921
+ type: "string",
922
+ },
923
+ state: {
924
+ $ref: "#/components/schemas/AdkSessionState",
925
+ },
926
+ events: {
927
+ type: "array",
928
+ items: {
929
+ nullable: true,
930
+ },
931
+ default: [],
932
+ },
933
+ last_update_time: {
934
+ type: "number",
935
+ },
936
+ },
937
+ required: ["id", "app_name", "user_id"],
938
+ };
939
+ export const AdkSessionCreateReqSchema = {
940
+ type: "object",
941
+ properties: {
942
+ app_name: {
943
+ type: "string",
944
+ },
945
+ user_id: {
946
+ type: "string",
947
+ },
948
+ state: {
949
+ $ref: "#/components/schemas/AdkSessionState",
950
+ },
951
+ session_id: {
952
+ type: "string",
953
+ },
954
+ },
955
+ required: ["app_name", "user_id"],
956
+ };
957
+ export const AdkSessionGetSchema = {
958
+ type: "object",
959
+ properties: {
960
+ id: {
961
+ type: "string",
962
+ },
963
+ app_name: {
964
+ type: "string",
965
+ },
966
+ user_id: {
967
+ type: "string",
968
+ },
969
+ state: {
970
+ $ref: "#/components/schemas/AdkSessionState",
971
+ },
972
+ events: {
973
+ type: "array",
974
+ items: {
975
+ nullable: true,
976
+ },
977
+ default: [],
978
+ },
979
+ last_update_time: {
980
+ type: "number",
981
+ },
982
+ },
983
+ required: ["id", "app_name", "user_id"],
984
+ };
985
+ export const AdkSessionGetReqSchema = {
986
+ type: "object",
987
+ properties: {
988
+ app_name: {
989
+ type: "string",
990
+ },
991
+ user_id: {
992
+ type: "string",
993
+ },
994
+ session_id: {
995
+ type: "string",
996
+ },
997
+ num_recent_events: {
998
+ type: "string",
999
+ },
1000
+ after_timestamp: {
1001
+ type: "string",
1002
+ },
1003
+ },
1004
+ required: ["app_name", "user_id", "session_id"],
1005
+ };
1006
+ export const AdkSessionListSchema = {
1007
+ type: "object",
1008
+ properties: {
1009
+ sessions: {
1010
+ type: "array",
1011
+ items: {
1012
+ $ref: "#/components/schemas/AdkSession",
1013
+ },
1014
+ },
1015
+ },
1016
+ required: ["sessions"],
1017
+ };
1018
+ export const AdkSessionDeleteSchema = {
1019
+ type: "object",
1020
+ properties: {
1021
+ success: {
1022
+ type: "boolean",
1023
+ },
1024
+ },
1025
+ required: ["success"],
1026
+ };
1027
+ export const AdkSessionDeleteReqSchema = {
1028
+ type: "object",
1029
+ properties: {
1030
+ app_name: {
1031
+ type: "string",
1032
+ },
1033
+ user_id: {
1034
+ type: "string",
1035
+ },
1036
+ session_id: {
1037
+ type: "string",
1038
+ },
1039
+ },
1040
+ required: ["app_name", "user_id", "session_id"],
1041
+ };
1042
+ export const AdkSessionAppendEventResultSchema = {
1043
+ type: "object",
1044
+ properties: {
1045
+ timestamp: {
1046
+ type: "number",
1047
+ },
1048
+ },
1049
+ required: ["timestamp"],
1050
+ };
1051
+ export const AdkEventSchema = {
1052
+ type: "object",
1053
+ properties: {
1054
+ invocation_id: {
1055
+ type: "string",
1056
+ },
1057
+ author: {
1058
+ type: "string",
1059
+ },
1060
+ actions: {
1061
+ nullable: true,
1062
+ },
1063
+ long_running_tool_ids: {
1064
+ type: "array",
1065
+ items: {
1066
+ type: "string",
1067
+ },
1068
+ },
1069
+ branch: {
1070
+ type: "string",
1071
+ },
1072
+ id: {
1073
+ type: "string",
1074
+ },
1075
+ timestamp: {
1076
+ type: "number",
1077
+ },
1078
+ content: {
1079
+ nullable: true,
1080
+ },
1081
+ partial: {
1082
+ type: "boolean",
1083
+ },
1084
+ turn_complete: {
1085
+ type: "boolean",
1086
+ },
1087
+ error_code: {
1088
+ type: "string",
1089
+ },
1090
+ error_message: {
1091
+ type: "string",
1092
+ },
1093
+ interrupted: {
1094
+ type: "boolean",
1095
+ },
1096
+ grounding_metadata: {
1097
+ nullable: true,
1098
+ },
1099
+ custom_metadata: {
1100
+ nullable: true,
1101
+ },
1102
+ },
1103
+ required: ["invocation_id", "author", "id", "timestamp"],
1104
+ };
1105
+ export const AdkSessionAppendEventBodySchema = {
1106
+ type: "object",
1107
+ properties: {
1108
+ session: {
1109
+ $ref: "#/components/schemas/AdkSession",
1110
+ },
1111
+ event: {
1112
+ $ref: "#/components/schemas/AdkEvent",
1113
+ },
1114
+ },
1115
+ required: ["session", "event"],
1116
+ };
1117
+ export const AdkArtifactSaveSchema = {
1118
+ type: "object",
1119
+ properties: {
1120
+ version: {
1121
+ type: "integer",
1122
+ },
1123
+ },
1124
+ required: ["version"],
1125
+ };
1126
+ export const AdkArtifactSaveRequestSchema = {
1127
+ type: "object",
1128
+ properties: {
1129
+ app_name: {
1130
+ type: "string",
1131
+ },
1132
+ user_id: {
1133
+ type: "string",
1134
+ },
1135
+ session_id: {
1136
+ type: "string",
1137
+ },
1138
+ filename: {
1139
+ type: "string",
1140
+ },
1141
+ content_type: {
1142
+ type: "string",
1143
+ },
1144
+ content_data: {
1145
+ nullable: true,
1146
+ },
1147
+ },
1148
+ required: ["app_name", "user_id", "session_id", "filename"],
1149
+ };
1150
+ export const AdkArtifactResponseSchema = {
1151
+ type: "object",
1152
+ properties: {
1153
+ app_name: {
1154
+ type: "string",
1155
+ },
1156
+ user_id: {
1157
+ type: "string",
1158
+ },
1159
+ session_id: {
1160
+ type: "string",
1161
+ },
1162
+ filename: {
1163
+ type: "string",
1164
+ },
1165
+ version: {
1166
+ type: "integer",
1167
+ },
1168
+ content_type: {
1169
+ type: "string",
1170
+ },
1171
+ content_data: {
1172
+ nullable: true,
1173
+ },
1174
+ created_at: {
1175
+ type: "string",
1176
+ },
1177
+ updated_at: {
1178
+ type: "string",
1179
+ },
1180
+ },
1181
+ required: [
1182
+ "app_name",
1183
+ "user_id",
1184
+ "session_id",
1185
+ "filename",
1186
+ "version",
1187
+ "created_at",
1188
+ "updated_at",
1189
+ ],
1190
+ };
1191
+ export const AdkArtifactLoadRequestSchema = {
1192
+ type: "object",
1193
+ properties: {
1194
+ app_name: {
1195
+ type: "string",
1196
+ },
1197
+ user_id: {
1198
+ type: "string",
1199
+ },
1200
+ session_id: {
1201
+ type: "string",
1202
+ },
1203
+ filename: {
1204
+ type: "string",
1205
+ },
1206
+ version: {
1207
+ type: "integer",
1208
+ },
1209
+ },
1210
+ required: ["app_name", "user_id", "session_id", "filename"],
1211
+ };
1212
+ export const AdkArtifactSummarySchema = {
1213
+ type: "object",
1214
+ properties: {
1215
+ app_name: {
1216
+ type: "string",
1217
+ },
1218
+ user_id: {
1219
+ type: "string",
1220
+ },
1221
+ session_id: {
1222
+ type: "string",
1223
+ },
1224
+ filename: {
1225
+ type: "string",
1226
+ },
1227
+ version: {
1228
+ type: "integer",
1229
+ },
1230
+ content_type: {
1231
+ type: "string",
1232
+ },
1233
+ size: {
1234
+ type: "integer",
1235
+ },
1236
+ created_at: {
1237
+ type: "string",
1238
+ },
1239
+ updated_at: {
1240
+ type: "string",
1241
+ },
1242
+ },
1243
+ required: [
1244
+ "app_name",
1245
+ "user_id",
1246
+ "session_id",
1247
+ "filename",
1248
+ "version",
1249
+ "created_at",
1250
+ "updated_at",
1251
+ ],
1252
+ };
1253
+ export const AdkArtifactListSchema = {
1254
+ type: "object",
1255
+ properties: {
1256
+ artifacts: {
1257
+ type: "array",
1258
+ items: {
1259
+ $ref: "#/components/schemas/AdkArtifactSummary",
1260
+ },
1261
+ },
1262
+ total: {
1263
+ type: "integer",
1264
+ },
1265
+ },
1266
+ required: ["artifacts", "total"],
1267
+ };
1268
+ export const AdkArtifactListKeysSchema = {
1269
+ type: "object",
1270
+ properties: {
1271
+ filenames: {
1272
+ type: "array",
1273
+ items: {
1274
+ type: "string",
1275
+ },
1276
+ },
1277
+ },
1278
+ required: ["filenames"],
1279
+ };
1280
+ export const AdkArtifactDeleteRequestSchema = {
1281
+ type: "object",
1282
+ properties: {
1283
+ app_name: {
1284
+ type: "string",
1285
+ },
1286
+ user_id: {
1287
+ type: "string",
1288
+ },
1289
+ session_id: {
1290
+ type: "string",
1291
+ },
1292
+ filename: {
1293
+ type: "string",
1294
+ },
1295
+ },
1296
+ required: ["app_name", "user_id", "session_id", "filename"],
1297
+ };
1298
+ export const AdkArtifactListVersionsSchema = {
1299
+ type: "object",
1300
+ properties: {
1301
+ versions: {
1302
+ type: "array",
1303
+ items: {
1304
+ type: "integer",
1305
+ },
1306
+ },
1307
+ },
1308
+ required: ["versions"],
1309
+ };
1310
+ export const AdkTaskSaveSchema = {
1311
+ type: "object",
1312
+ properties: {
1313
+ success: {
1314
+ type: "boolean",
1315
+ },
1316
+ },
1317
+ required: ["success"],
1318
+ };
1319
+ export const MessageSchema = {
1320
+ type: "object",
1321
+ properties: {
1322
+ kind: {
1323
+ type: "string",
1324
+ enum: ["message"],
1325
+ },
1326
+ messageId: {
1327
+ type: "string",
1328
+ },
1329
+ role: {
1330
+ type: "string",
1331
+ enum: ["agent", "user"],
1332
+ },
1333
+ parts: {
1334
+ type: "array",
1335
+ items: {
1336
+ nullable: true,
1337
+ },
1338
+ },
1339
+ contextId: {
1340
+ type: "string",
1341
+ },
1342
+ taskId: {
1343
+ type: "string",
1344
+ },
1345
+ extensions: {
1346
+ type: "array",
1347
+ items: {
1348
+ type: "string",
1349
+ },
1350
+ },
1351
+ referenceTaskIds: {
1352
+ type: "array",
1353
+ items: {
1354
+ type: "string",
1355
+ },
1356
+ },
1357
+ metadata: {
1358
+ type: "object",
1359
+ additionalProperties: {
1360
+ nullable: true,
1361
+ },
1362
+ },
1363
+ },
1364
+ required: ["kind", "messageId", "role", "parts"],
1365
+ };
1366
+ export const TaskStateSchema = {
1367
+ type: "string",
1368
+ enum: ["submitted", "running", "completed", "failed", "cancelled"],
1369
+ };
1370
+ export const TaskStatusSchema = {
1371
+ type: "object",
1372
+ properties: {
1373
+ message: {
1374
+ $ref: "#/components/schemas/Message",
1375
+ },
1376
+ state: {
1377
+ $ref: "#/components/schemas/TaskState",
1378
+ },
1379
+ timestamp: {
1380
+ type: "string",
1381
+ },
1382
+ },
1383
+ required: ["state"],
1384
+ };
1385
+ export const ArtifactSchema = {
1386
+ type: "object",
1387
+ properties: {
1388
+ artifactId: {
1389
+ type: "string",
1390
+ },
1391
+ name: {
1392
+ type: "string",
1393
+ },
1394
+ description: {
1395
+ type: "string",
1396
+ },
1397
+ parts: {
1398
+ type: "array",
1399
+ items: {
1400
+ nullable: true,
1401
+ },
1402
+ },
1403
+ extensions: {
1404
+ type: "array",
1405
+ items: {
1406
+ type: "string",
1407
+ },
1408
+ },
1409
+ metadata: {
1410
+ type: "object",
1411
+ additionalProperties: {
1412
+ nullable: true,
1413
+ },
1414
+ },
1415
+ },
1416
+ required: ["artifactId", "parts"],
1417
+ };
1418
+ export const AdkTaskSaveRequestSchema = {
1419
+ type: "object",
1420
+ properties: {
1421
+ id: {
1422
+ type: "string",
1423
+ },
1424
+ context_id: {
1425
+ type: "string",
1426
+ },
1427
+ kind: {
1428
+ type: "string",
1429
+ default: "task",
1430
+ },
1431
+ status: {
1432
+ $ref: "#/components/schemas/TaskStatus",
1433
+ },
1434
+ artifacts: {
1435
+ type: "array",
1436
+ items: {
1437
+ $ref: "#/components/schemas/Artifact",
1438
+ },
1439
+ },
1440
+ history: {
1441
+ type: "array",
1442
+ items: {
1443
+ $ref: "#/components/schemas/Message",
1444
+ },
1445
+ },
1446
+ metadata: {
1447
+ type: "object",
1448
+ additionalProperties: {
1449
+ nullable: true,
1450
+ },
1451
+ },
1452
+ },
1453
+ required: ["id", "context_id", "status"],
1454
+ };
1455
+ export const TaskSchema = {
1456
+ type: "object",
1457
+ properties: {
1458
+ id: {
1459
+ type: "string",
1460
+ },
1461
+ context_id: {
1462
+ type: "string",
1463
+ },
1464
+ kind: {
1465
+ type: "string",
1466
+ default: "task",
1467
+ },
1468
+ status: {
1469
+ $ref: "#/components/schemas/TaskStatus",
1470
+ },
1471
+ artifacts: {
1472
+ type: "array",
1473
+ items: {
1474
+ $ref: "#/components/schemas/Artifact",
1475
+ },
1476
+ },
1477
+ history: {
1478
+ type: "array",
1479
+ items: {
1480
+ $ref: "#/components/schemas/Message",
1481
+ },
1482
+ },
1483
+ metadata: {
1484
+ type: "object",
1485
+ additionalProperties: {
1486
+ nullable: true,
1487
+ },
1488
+ },
1489
+ },
1490
+ required: ["id", "context_id", "status"],
1491
+ };
1492
+ export const AdkTaskGetSchema = {
1493
+ anyOf: [
1494
+ {
1495
+ $ref: "#/components/schemas/Task",
1496
+ },
1497
+ {
1498
+ nullable: true,
1499
+ },
1500
+ {
1501
+ nullable: true,
1502
+ },
1503
+ ],
1504
+ };
1505
+ export const AdkTaskGetRequestSchema = {
1506
+ type: "object",
1507
+ properties: {
1508
+ task_id: {
1509
+ type: "string",
1510
+ },
1511
+ },
1512
+ required: ["task_id"],
1513
+ };
1514
+ export const AdkTaskListSchema = {
1515
+ type: "object",
1516
+ properties: {
1517
+ tasks: {
1518
+ type: "array",
1519
+ items: {
1520
+ $ref: "#/components/schemas/Task",
1521
+ },
1522
+ },
1523
+ },
1524
+ required: ["tasks"],
1525
+ };
1526
+ export const AdkTaskDeleteSchema = {
1527
+ type: "object",
1528
+ properties: {
1529
+ success: {
1530
+ type: "boolean",
1531
+ },
1532
+ },
1533
+ required: ["success"],
1534
+ };
1535
+ export const AdkTaskDeleteRequestSchema = {
1536
+ type: "object",
1537
+ properties: {
1538
+ task_id: {
1539
+ type: "string",
1540
+ },
1541
+ },
1542
+ required: ["task_id"],
1543
+ };
1544
+ //# sourceMappingURL=schemas.gen.js.map