mtmsdk 0.0.45 → 0.0.47

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 (195) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +45 -45
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +69 -69
  4. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  5. package/dist/gomtmapi/index.d.ts +2 -2
  6. package/dist/gomtmapi/index.d.ts.map +1 -1
  7. package/dist/gomtmapi/index.js +1 -1
  8. package/dist/gomtmapi/index.js.map +1 -1
  9. package/dist/gomtmapi/schemas.gen.d.ts +91 -52
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +91 -56
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +41 -41
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +55 -55
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +120 -131
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +96 -74
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +67 -58
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4 -101
  24. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -14
  26. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  27. package/dist/mtgate_api/index.d.ts +2 -2
  28. package/dist/mtgate_api/index.d.ts.map +1 -1
  29. package/dist/mtgate_api/index.js +1 -1
  30. package/dist/mtgate_api/index.js.map +1 -1
  31. package/dist/mtgate_api/schemas.gen.d.ts +0 -31
  32. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  33. package/dist/mtgate_api/schemas.gen.js +0 -46
  34. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  35. package/dist/mtgate_api/sdk.gen.d.ts +1 -2
  36. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  37. package/dist/mtgate_api/sdk.gen.js +0 -1
  38. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  39. package/dist/mtgate_api/types.gen.d.ts +1 -73
  40. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  41. package/dist/mtgate_api/zod.gen.d.ts +0 -77
  42. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  43. package/dist/mtgate_api/zod.gen.js +0 -47
  44. package/dist/mtgate_api/zod.gen.js.map +1 -1
  45. package/dist/openclaw/gateway.d.ts.map +1 -1
  46. package/dist/openclaw/gateway.js +1 -5
  47. package/dist/openclaw/gateway.js.map +1 -1
  48. package/dist/sbmng/schemas.gen.d.ts +15 -2
  49. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  50. package/dist/sbmng/schemas.gen.js +55 -2
  51. package/dist/sbmng/schemas.gen.js.map +1 -1
  52. package/dist/sbmng/types.gen.d.ts +5 -2
  53. package/dist/sbmng/types.gen.d.ts.map +1 -1
  54. package/dist/supabase/schema/index.d.ts +0 -9
  55. package/dist/supabase/schema/index.d.ts.map +1 -1
  56. package/dist/supabase/schema/index.js +0 -13
  57. package/dist/supabase/schema/index.js.map +1 -1
  58. package/dist/supabase/supabase-client.d.ts +985 -739
  59. package/dist/supabase/supabase-client.d.ts.map +1 -1
  60. package/dist/supabase/supabase.d.ts +2182 -1689
  61. package/dist/supabase/supabase.d.ts.map +1 -1
  62. package/dist/supabase/supabase.js.map +1 -1
  63. package/dist/types/database.schemas.d.ts +1322 -743
  64. package/dist/types/database.schemas.d.ts.map +1 -1
  65. package/dist/types/database.schemas.js +822 -610
  66. package/dist/types/database.schemas.js.map +1 -1
  67. package/dist/types/database.types.d.ts +1004 -734
  68. package/dist/types/database.types.d.ts.map +1 -1
  69. package/dist/types/database.types.js +16 -1
  70. package/dist/types/database.types.js.map +1 -1
  71. package/dist/types/index.d.ts +32 -48
  72. package/dist/types/index.d.ts.map +1 -1
  73. package/dist/types/index.js +0 -25
  74. package/dist/types/index.js.map +1 -1
  75. package/dist/types/rpc.schemas.d.ts +1 -13
  76. package/dist/types/rpc.schemas.d.ts.map +1 -1
  77. package/dist/types/rpc.schemas.js +7 -21
  78. package/dist/types/rpc.schemas.js.map +1 -1
  79. package/package.json +3 -4
  80. package/src/gomtmapi/@tanstack/react-query.gen.ts +73 -73
  81. package/src/gomtmapi/index.ts +2 -2
  82. package/src/gomtmapi/schemas.gen.ts +92 -58
  83. package/src/gomtmapi/sdk.gen.ts +58 -58
  84. package/src/gomtmapi/types.gen.ts +131 -143
  85. package/src/gomtmapi/zod.gen.ts +72 -64
  86. package/src/mtgate_api/@tanstack/react-query.gen.ts +3 -18
  87. package/src/mtgate_api/index.ts +2 -2
  88. package/src/mtgate_api/schemas.gen.ts +0 -47
  89. package/src/mtgate_api/sdk.gen.ts +1 -3
  90. package/src/mtgate_api/types.gen.ts +1 -79
  91. package/src/mtgate_api/zod.gen.ts +0 -52
  92. package/src/openclaw/gateway.ts +5 -10
  93. package/src/sbmng/schemas.gen.ts +55 -2
  94. package/src/sbmng/types.gen.ts +5 -2
  95. package/src/supabase/schema/index.ts +0 -20
  96. package/src/supabase/supabase.ts +4 -2
  97. package/src/types/database.schemas.ts +956 -732
  98. package/src/types/database.types.ts +977 -707
  99. package/src/types/index.ts +33 -66
  100. package/src/types/rpc.schemas.ts +8 -23
  101. package/dist/sbapi/@tanstack/react-query.gen.d.ts +0 -3280
  102. package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +0 -1
  103. package/dist/sbapi/@tanstack/react-query.gen.js +0 -6084
  104. package/dist/sbapi/@tanstack/react-query.gen.js.map +0 -1
  105. package/dist/sbapi/client/client.gen.d.ts +0 -3
  106. package/dist/sbapi/client/client.gen.d.ts.map +0 -1
  107. package/dist/sbapi/client/client.gen.js +0 -236
  108. package/dist/sbapi/client/client.gen.js.map +0 -1
  109. package/dist/sbapi/client/index.d.ts +0 -9
  110. package/dist/sbapi/client/index.d.ts.map +0 -1
  111. package/dist/sbapi/client/index.js +0 -7
  112. package/dist/sbapi/client/index.js.map +0 -1
  113. package/dist/sbapi/client/types.gen.d.ts +0 -118
  114. package/dist/sbapi/client/types.gen.d.ts.map +0 -1
  115. package/dist/sbapi/client/types.gen.js +0 -3
  116. package/dist/sbapi/client/types.gen.js.map +0 -1
  117. package/dist/sbapi/client/utils.gen.d.ts +0 -34
  118. package/dist/sbapi/client/utils.gen.d.ts.map +0 -1
  119. package/dist/sbapi/client/utils.gen.js +0 -232
  120. package/dist/sbapi/client/utils.gen.js.map +0 -1
  121. package/dist/sbapi/client.gen.d.ts +0 -13
  122. package/dist/sbapi/client.gen.d.ts.map +0 -1
  123. package/dist/sbapi/client.gen.js +0 -4
  124. package/dist/sbapi/client.gen.js.map +0 -1
  125. package/dist/sbapi/core/auth.gen.d.ts +0 -19
  126. package/dist/sbapi/core/auth.gen.d.ts.map +0 -1
  127. package/dist/sbapi/core/auth.gen.js +0 -15
  128. package/dist/sbapi/core/auth.gen.js.map +0 -1
  129. package/dist/sbapi/core/bodySerializer.gen.d.ts +0 -26
  130. package/dist/sbapi/core/bodySerializer.gen.d.ts.map +0 -1
  131. package/dist/sbapi/core/bodySerializer.gen.js +0 -58
  132. package/dist/sbapi/core/bodySerializer.gen.js.map +0 -1
  133. package/dist/sbapi/core/params.gen.d.ts +0 -44
  134. package/dist/sbapi/core/params.gen.d.ts.map +0 -1
  135. package/dist/sbapi/core/params.gen.js +0 -101
  136. package/dist/sbapi/core/params.gen.js.map +0 -1
  137. package/dist/sbapi/core/pathSerializer.gen.d.ts +0 -34
  138. package/dist/sbapi/core/pathSerializer.gen.d.ts.map +0 -1
  139. package/dist/sbapi/core/pathSerializer.gen.js +0 -115
  140. package/dist/sbapi/core/pathSerializer.gen.js.map +0 -1
  141. package/dist/sbapi/core/queryKeySerializer.gen.d.ts +0 -19
  142. package/dist/sbapi/core/queryKeySerializer.gen.d.ts.map +0 -1
  143. package/dist/sbapi/core/queryKeySerializer.gen.js +0 -100
  144. package/dist/sbapi/core/queryKeySerializer.gen.js.map +0 -1
  145. package/dist/sbapi/core/serverSentEvents.gen.d.ts +0 -72
  146. package/dist/sbapi/core/serverSentEvents.gen.d.ts.map +0 -1
  147. package/dist/sbapi/core/serverSentEvents.gen.js +0 -138
  148. package/dist/sbapi/core/serverSentEvents.gen.js.map +0 -1
  149. package/dist/sbapi/core/types.gen.d.ts +0 -79
  150. package/dist/sbapi/core/types.gen.d.ts.map +0 -1
  151. package/dist/sbapi/core/types.gen.js +0 -3
  152. package/dist/sbapi/core/types.gen.js.map +0 -1
  153. package/dist/sbapi/core/utils.gen.d.ts +0 -20
  154. package/dist/sbapi/core/utils.gen.d.ts.map +0 -1
  155. package/dist/sbapi/core/utils.gen.js +0 -88
  156. package/dist/sbapi/core/utils.gen.js.map +0 -1
  157. package/dist/sbapi/index.d.ts +0 -3
  158. package/dist/sbapi/index.d.ts.map +0 -1
  159. package/dist/sbapi/index.js +0 -3
  160. package/dist/sbapi/index.js.map +0 -1
  161. package/dist/sbapi/schemas.gen.d.ts +0 -2322
  162. package/dist/sbapi/schemas.gen.d.ts.map +0 -1
  163. package/dist/sbapi/schemas.gen.js +0 -2596
  164. package/dist/sbapi/schemas.gen.js.map +0 -1
  165. package/dist/sbapi/sdk.gen.d.ts +0 -834
  166. package/dist/sbapi/sdk.gen.d.ts.map +0 -1
  167. package/dist/sbapi/sdk.gen.js +0 -2466
  168. package/dist/sbapi/sdk.gen.js.map +0 -1
  169. package/dist/sbapi/types.gen.d.ts +0 -11726
  170. package/dist/sbapi/types.gen.d.ts.map +0 -1
  171. package/dist/sbapi/types.gen.js +0 -3
  172. package/dist/sbapi/types.gen.js.map +0 -1
  173. package/dist/sbapi/zod.gen.d.ts +0 -8147
  174. package/dist/sbapi/zod.gen.d.ts.map +0 -1
  175. package/dist/sbapi/zod.gen.js +0 -6585
  176. package/dist/sbapi/zod.gen.js.map +0 -1
  177. package/src/sbapi/@tanstack/react-query.gen.ts +0 -6591
  178. package/src/sbapi/client/client.gen.ts +0 -311
  179. package/src/sbapi/client/index.ts +0 -25
  180. package/src/sbapi/client/types.gen.ts +0 -241
  181. package/src/sbapi/client/utils.gen.ts +0 -332
  182. package/src/sbapi/client.gen.ts +0 -16
  183. package/src/sbapi/core/auth.gen.ts +0 -42
  184. package/src/sbapi/core/bodySerializer.gen.ts +0 -100
  185. package/src/sbapi/core/params.gen.ts +0 -176
  186. package/src/sbapi/core/pathSerializer.gen.ts +0 -181
  187. package/src/sbapi/core/queryKeySerializer.gen.ts +0 -136
  188. package/src/sbapi/core/serverSentEvents.gen.ts +0 -266
  189. package/src/sbapi/core/types.gen.ts +0 -118
  190. package/src/sbapi/core/utils.gen.ts +0 -143
  191. package/src/sbapi/index.ts +0 -4
  192. package/src/sbapi/schemas.gen.ts +0 -2643
  193. package/src/sbapi/sdk.gen.ts +0 -2822
  194. package/src/sbapi/types.gen.ts +0 -12503
  195. package/src/sbapi/zod.gen.ts +0 -7021
@@ -207,6 +207,43 @@ export const BrowserOpenRespSchema = {
207
207
  type: 'object'
208
208
  } as const;
209
209
 
210
+ export const ChatCompletionRequestSchema = {
211
+ description: 'ChatCompletionRequest schema',
212
+ properties: {
213
+ max_tokens: {
214
+ nullable: true,
215
+ type: 'integer'
216
+ },
217
+ messages: {
218
+ items: {
219
+ properties: {
220
+ content: {
221
+ type: 'string'
222
+ },
223
+ role: {
224
+ type: 'string'
225
+ }
226
+ },
227
+ type: 'object'
228
+ },
229
+ type: 'array'
230
+ },
231
+ model: {
232
+ type: 'string'
233
+ },
234
+ stream: {
235
+ nullable: true,
236
+ type: 'boolean'
237
+ },
238
+ temperature: {
239
+ format: 'float',
240
+ nullable: true,
241
+ type: 'number'
242
+ }
243
+ },
244
+ type: 'object'
245
+ } as const;
246
+
210
247
  export const CheckUpdateResponseSchema = {
211
248
  description: 'CheckUpdateResponse schema',
212
249
  properties: {
@@ -755,40 +792,6 @@ export const SignInRequestSchema = {
755
792
  type: 'object'
756
793
  } as const;
757
794
 
758
- export const StartContainerRequestSchema = {
759
- description: 'StartContainerRequest schema',
760
- properties: {
761
- worker_id: {
762
- description: 'The ID of the instance to start',
763
- type: 'string'
764
- }
765
- },
766
- required: [
767
- 'worker_id'
768
- ],
769
- type: 'object'
770
- } as const;
771
-
772
- export const StartContainerResponseSchema = {
773
- description: 'StartContainerResponse schema',
774
- properties: {
775
- error: {
776
- description: 'Detailed error message if status is error',
777
- nullable: true,
778
- type: 'string'
779
- },
780
- output: {
781
- description: 'The combined stdout/stderr output from the SSH command',
782
- type: 'string'
783
- },
784
- status: {
785
- description: 'The status of the operation (success or error)',
786
- type: 'string'
787
- }
788
- },
789
- type: 'object'
790
- } as const;
791
-
792
795
  export const StartNapcatRequestSchema = {
793
796
  description: 'StartNapcatRequest schema',
794
797
  properties: {
@@ -816,56 +819,87 @@ export const StartNapcatRequestSchema = {
816
819
  type: 'object'
817
820
  } as const;
818
821
 
819
- export const StopContainerRequestSchema = {
820
- description: 'StopContainerRequest schema',
822
+ export const StatusResponseSchema = {
823
+ description: 'StatusResponse schema',
821
824
  properties: {
822
- worker_id: {
823
- description: 'The ID of the instance to stop',
825
+ go_version: {
826
+ type: 'string'
827
+ },
828
+ instance_id: {
829
+ type: 'string'
830
+ },
831
+ mem_alloc_mb: {
832
+ format: 'double',
833
+ type: 'number'
834
+ },
835
+ mode: {
836
+ type: 'string'
837
+ },
838
+ num_cpu: {
839
+ type: 'integer'
840
+ },
841
+ num_goroutine: {
842
+ type: 'integer'
843
+ },
844
+ status: {
845
+ type: 'string'
846
+ },
847
+ uptime: {
848
+ nullable: true,
849
+ type: 'string'
850
+ },
851
+ version: {
824
852
  type: 'string'
825
853
  }
826
854
  },
827
- required: [
828
- 'worker_id'
829
- ],
830
855
  type: 'object'
831
856
  } as const;
832
857
 
833
- export const StopContainerResponseSchema = {
834
- description: 'StopContainerResponse schema',
858
+ export const TaskExecuteRequestSchema = {
859
+ description: 'TaskExecuteRequest schema',
835
860
  properties: {
836
- error: {
837
- description: 'Detailed error message if status is error',
838
- nullable: true,
861
+ code: {
839
862
  type: 'string'
840
863
  },
841
- output: {
842
- description: 'The combined stdout/stderr output from the SSH command',
864
+ code_type: {
843
865
  type: 'string'
844
866
  },
845
- status: {
846
- description: 'The status of the operation (success or error)',
867
+ meta: {
868
+ additionalProperties: {},
869
+ nullable: true,
870
+ type: 'object'
871
+ },
872
+ task_id: {
847
873
  type: 'string'
874
+ },
875
+ timeout_seconds: {
876
+ type: 'integer'
848
877
  }
849
878
  },
850
879
  type: 'object'
851
880
  } as const;
852
881
 
853
- export const SystemInfoResponseSchema = {
854
- description: 'SystemInfoResponse schema',
882
+ export const TaskExecuteResponseSchema = {
883
+ description: 'TaskExecuteResponse schema',
855
884
  properties: {
856
- environment: {
885
+ error: {
886
+ nullable: true,
857
887
  type: 'string'
858
888
  },
859
- instance_id: {
889
+ output: {
890
+ nullable: true,
860
891
  type: 'string'
861
892
  },
862
- mode: {
863
- type: 'string'
893
+ result: {
894
+ additionalProperties: {},
895
+ nullable: true,
896
+ type: 'object'
864
897
  },
865
- tunnel_enabled: {
898
+ success: {
866
899
  type: 'boolean'
867
900
  },
868
- version: {
901
+ task_id: {
902
+ nullable: true,
869
903
  type: 'string'
870
904
  }
871
905
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type { Client, Options as Options2, TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
- import type { ActionsStartContainerData, ActionsStartContainerErrors, ActionsStartContainerResponses, ActionsStopContainerData, ActionsStopContainerErrors, ActionsStopContainerResponses, AgentRunData, AgentRunErrors, AgentRunResponses, BrowserActionData, BrowserActionErrors, BrowserActionResponses, BrowserOpenData, BrowserOpenErrors, BrowserOpenResponses, CoddingToolEditFileData, CoddingToolEditFileErrors, CoddingToolEditFileResponses, CoddingToolListDirData, CoddingToolListDirErrors, CoddingToolListDirResponses, CoddingToolReadFilesData, CoddingToolReadFilesErrors, CoddingToolReadFilesResponses, CoddingToolSearchFilesData, CoddingToolSearchFilesErrors, CoddingToolSearchFilesResponses, CodeRunData, CodeRunErrors, CodeRunResponses, GetApiSystemInfoData, GetApiSystemInfoErrors, GetApiSystemInfoResponses, HumanRequestActionData, HumanRequestActionErrors, HumanRequestActionResponses, NapcatGetStatusData, NapcatGetStatusErrors, NapcatGetStatusResponses, NapcatProxyOneBot11GetData, NapcatProxyOneBot11GetErrors, NapcatProxyOneBot11GetResponses, NapcatProxyOneBot11PostData, NapcatProxyOneBot11PostErrors, NapcatProxyOneBot11PostResponses, NapcatProxyWebUigetData, NapcatProxyWebUigetErrors, NapcatProxyWebUigetResponses, NapcatProxyWebUipostData, NapcatProxyWebUipostErrors, NapcatProxyWebUipostResponses, NapcatStartData, NapcatStartErrors, NapcatStartResponses, PostApiDbQueryQueryData, PostApiDbQueryQueryErrors, PostApiDbQueryQueryResponses, PostApiSystemCheckUpdateData, PostApiSystemCheckUpdateErrors, PostApiSystemCheckUpdateResponses, PostApiSystemPerformUpgradeData, PostApiSystemPerformUpgradeErrors, PostApiSystemPerformUpgradeResponses, PostApiV1TelegramAuthPasswordData, PostApiV1TelegramAuthPasswordErrors, PostApiV1TelegramAuthPasswordResponses, PostApiV1TelegramAuthSendCodeData, PostApiV1TelegramAuthSendCodeErrors, PostApiV1TelegramAuthSendCodeResponses, PostApiV1TelegramAuthSignInData, PostApiV1TelegramAuthSignInErrors, PostApiV1TelegramAuthSignInResponses, PostApiV1TelegramAuthUserInfoData, PostApiV1TelegramAuthUserInfoErrors, PostApiV1TelegramAuthUserInfoResponses, PostApiV1TelegramContactAddData, PostApiV1TelegramContactAddErrors, PostApiV1TelegramContactAddResponses, PostApiV1TelegramMessageSendData, PostApiV1TelegramMessageSendErrors, PostApiV1TelegramMessageSendResponses } from './types.gen';
5
+ import type { AgentRunData, AgentRunErrors, AgentRunResponses, BrowserActionData, BrowserActionErrors, BrowserActionResponses, BrowserOpenData, BrowserOpenErrors, BrowserOpenResponses, CoddingToolEditFileData, CoddingToolEditFileErrors, CoddingToolEditFileResponses, CoddingToolListDirData, CoddingToolListDirErrors, CoddingToolListDirResponses, CoddingToolReadFilesData, CoddingToolReadFilesErrors, CoddingToolReadFilesResponses, CoddingToolSearchFilesData, CoddingToolSearchFilesErrors, CoddingToolSearchFilesResponses, CodeRunData, CodeRunErrors, CodeRunResponses, GetApiSystemStatusData, GetApiSystemStatusErrors, GetApiSystemStatusResponses, HumanRequestActionData, HumanRequestActionErrors, HumanRequestActionResponses, NapcatGetStatusData, NapcatGetStatusErrors, NapcatGetStatusResponses, NapcatProxyOneBot11GetData, NapcatProxyOneBot11GetErrors, NapcatProxyOneBot11GetResponses, NapcatProxyOneBot11PostData, NapcatProxyOneBot11PostErrors, NapcatProxyOneBot11PostResponses, NapcatProxyWebUigetData, NapcatProxyWebUigetErrors, NapcatProxyWebUigetResponses, NapcatProxyWebUipostData, NapcatProxyWebUipostErrors, NapcatProxyWebUipostResponses, NapcatStartData, NapcatStartErrors, NapcatStartResponses, PostApiDbQueryQueryData, PostApiDbQueryQueryErrors, PostApiDbQueryQueryResponses, PostApiSystemCheckUpdateData, PostApiSystemCheckUpdateErrors, PostApiSystemCheckUpdateResponses, PostApiSystemPerformUpgradeData, PostApiSystemPerformUpgradeErrors, PostApiSystemPerformUpgradeResponses, PostApiV1GeminiChatCompletionsData, PostApiV1GeminiChatCompletionsErrors, PostApiV1GeminiChatCompletionsResponses, PostApiV1TaskExecuteData, PostApiV1TaskExecuteErrors, PostApiV1TaskExecuteResponses, PostApiV1TelegramAuthPasswordData, PostApiV1TelegramAuthPasswordErrors, PostApiV1TelegramAuthPasswordResponses, PostApiV1TelegramAuthSendCodeData, PostApiV1TelegramAuthSendCodeErrors, PostApiV1TelegramAuthSendCodeResponses, PostApiV1TelegramAuthSignInData, PostApiV1TelegramAuthSignInErrors, PostApiV1TelegramAuthSignInResponses, PostApiV1TelegramAuthUserInfoData, PostApiV1TelegramAuthUserInfoErrors, PostApiV1TelegramAuthUserInfoResponses, PostApiV1TelegramContactAddData, PostApiV1TelegramContactAddErrors, PostApiV1TelegramContactAddResponses, PostApiV1TelegramMessageSendData, PostApiV1TelegramMessageSendErrors, PostApiV1TelegramMessageSendResponses } from './types.gen';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
@@ -18,54 +18,6 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
18
18
  meta?: Record<string, unknown>;
19
19
  };
20
20
 
21
- /**
22
- * Start Container via SSH
23
- *
24
- * #### Controller:
25
- *
26
- * `github.com/codeh007/gomtm/pkg/routes/api/actions.(*ActionsService).HandleStartContainer`
27
- *
28
- * #### Middlewares:
29
- *
30
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
31
- *
32
- * ---
33
- *
34
- * Connects to the compute node via SSH and starts the gomtm worker container.
35
- */
36
- export const actionsStartContainer = <ThrowOnError extends boolean = false>(options: Options<ActionsStartContainerData, ThrowOnError>) => (options.client ?? client).post<ActionsStartContainerResponses, ActionsStartContainerErrors, ThrowOnError>({
37
- url: '/api/actions/start_container',
38
- ...options,
39
- headers: {
40
- 'Content-Type': '*/*',
41
- ...options.headers
42
- }
43
- });
44
-
45
- /**
46
- * Stop Container via SSH
47
- *
48
- * #### Controller:
49
- *
50
- * `github.com/codeh007/gomtm/pkg/routes/api/actions.(*ActionsService).HandleStopContainer`
51
- *
52
- * #### Middlewares:
53
- *
54
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
55
- *
56
- * ---
57
- *
58
- * Connects to the compute node via SSH and stops (removes) the gomtm worker container.
59
- */
60
- export const actionsStopContainer = <ThrowOnError extends boolean = false>(options: Options<ActionsStopContainerData, ThrowOnError>) => (options.client ?? client).post<ActionsStopContainerResponses, ActionsStopContainerErrors, ThrowOnError>({
61
- url: '/api/actions/stop_container',
62
- ...options,
63
- headers: {
64
- 'Content-Type': '*/*',
65
- ...options.headers
66
- }
67
- });
68
-
69
21
  /**
70
22
  * agent run
71
23
  *
@@ -322,11 +274,11 @@ export const napcatProxyOneBot11Post = <ThrowOnError extends boolean = false>(op
322
274
  export const postApiSystemCheckUpdate = <ThrowOnError extends boolean = false>(options?: Options<PostApiSystemCheckUpdateData, ThrowOnError>) => (options?.client ?? client).post<PostApiSystemCheckUpdateResponses, PostApiSystemCheckUpdateErrors, ThrowOnError>({ url: '/api/system/check_update', ...options });
323
275
 
324
276
  /**
325
- * Get system info
277
+ * Perform upgrade
326
278
  *
327
279
  * #### Controller:
328
280
  *
329
- * `github.com/codeh007/gomtm/pkg/routes/api/system.(*SystemService).GetSystemInfo`
281
+ * `github.com/codeh007/gomtm/pkg/routes/api/system.(*SystemService).PerformUpgrade`
330
282
  *
331
283
  * #### Middlewares:
332
284
  *
@@ -334,16 +286,23 @@ export const postApiSystemCheckUpdate = <ThrowOnError extends boolean = false>(o
334
286
  *
335
287
  * ---
336
288
  *
337
- * Get current system runtime information
289
+ * Upgrade gomtm to the specified version and restart
338
290
  */
339
- export const getApiSystemInfo = <ThrowOnError extends boolean = false>(options?: Options<GetApiSystemInfoData, ThrowOnError>) => (options?.client ?? client).get<GetApiSystemInfoResponses, GetApiSystemInfoErrors, ThrowOnError>({ url: '/api/system/info', ...options });
291
+ export const postApiSystemPerformUpgrade = <ThrowOnError extends boolean = false>(options: Options<PostApiSystemPerformUpgradeData, ThrowOnError>) => (options.client ?? client).post<PostApiSystemPerformUpgradeResponses, PostApiSystemPerformUpgradeErrors, ThrowOnError>({
292
+ url: '/api/system/perform_upgrade',
293
+ ...options,
294
+ headers: {
295
+ 'Content-Type': '*/*',
296
+ ...options.headers
297
+ }
298
+ });
340
299
 
341
300
  /**
342
- * Perform upgrade
301
+ * 实例状态
343
302
  *
344
303
  * #### Controller:
345
304
  *
346
- * `github.com/codeh007/gomtm/pkg/routes/api/system.(*SystemService).PerformUpgrade`
305
+ * `github.com/codeh007/gomtm/pkg/routes/api/system.(*SystemService).GetStatus`
347
306
  *
348
307
  * #### Middlewares:
349
308
  *
@@ -351,10 +310,51 @@ export const getApiSystemInfo = <ThrowOnError extends boolean = false>(options?:
351
310
  *
352
311
  * ---
353
312
  *
354
- * Upgrade gomtm to the specified version and restart
313
+ * 返回完整的实例运行状态 (v6: 合并 info + health)。数据库通过 pg_net.http_get 探测,结果存入 servers.state。
355
314
  */
356
- export const postApiSystemPerformUpgrade = <ThrowOnError extends boolean = false>(options: Options<PostApiSystemPerformUpgradeData, ThrowOnError>) => (options.client ?? client).post<PostApiSystemPerformUpgradeResponses, PostApiSystemPerformUpgradeErrors, ThrowOnError>({
357
- url: '/api/system/perform_upgrade',
315
+ export const getApiSystemStatus = <ThrowOnError extends boolean = false>(options?: Options<GetApiSystemStatusData, ThrowOnError>) => (options?.client ?? client).get<GetApiSystemStatusResponses, GetApiSystemStatusErrors, ThrowOnError>({ url: '/api/system/status', ...options });
316
+
317
+ /**
318
+ * handle chat completion
319
+ *
320
+ * #### Controller:
321
+ *
322
+ * `github.com/codeh007/gomtm/pkg/routes/api/gemini.(*Service).handleChatCompletion`
323
+ *
324
+ * #### Middlewares:
325
+ *
326
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
327
+ *
328
+ * ---
329
+ *
330
+ *
331
+ */
332
+ export const postApiV1GeminiChatCompletions = <ThrowOnError extends boolean = false>(options: Options<PostApiV1GeminiChatCompletionsData, ThrowOnError>) => (options.client ?? client).post<PostApiV1GeminiChatCompletionsResponses, PostApiV1GeminiChatCompletionsErrors, ThrowOnError>({
333
+ url: '/api/v1/gemini/chat/completions',
334
+ ...options,
335
+ headers: {
336
+ 'Content-Type': '*/*',
337
+ ...options.headers
338
+ }
339
+ });
340
+
341
+ /**
342
+ * 执行任务
343
+ *
344
+ * #### Controller:
345
+ *
346
+ * `github.com/codeh007/gomtm/pkg/routes/api/task_executor.(*Service).Execute`
347
+ *
348
+ * #### Middlewares:
349
+ *
350
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
351
+ *
352
+ * ---
353
+ *
354
+ * 接收来自数据库调度的任务并执行。支持 bash/python/agent 类型。
355
+ */
356
+ export const postApiV1TaskExecute = <ThrowOnError extends boolean = false>(options: Options<PostApiV1TaskExecuteData, ThrowOnError>) => (options.client ?? client).post<PostApiV1TaskExecuteResponses, PostApiV1TaskExecuteErrors, ThrowOnError>({
357
+ url: '/api/v1/task/execute',
358
358
  ...options,
359
359
  headers: {
360
360
  'Content-Type': '*/*',