mtmsdk 0.0.8 → 0.0.10

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 (238) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2883 -0
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +2990 -0
  4. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/gomtmapi/client/client.d.ts +3 -0
  6. package/dist/gomtmapi/client/client.d.ts.map +1 -0
  7. package/dist/gomtmapi/client/client.js +146 -0
  8. package/dist/gomtmapi/client/client.js.map +1 -0
  9. package/dist/gomtmapi/client/index.d.ts +8 -0
  10. package/dist/gomtmapi/client/index.d.ts.map +1 -0
  11. package/dist/gomtmapi/client/index.js +5 -0
  12. package/dist/gomtmapi/client/index.js.map +1 -0
  13. package/dist/gomtmapi/client/types.d.ts +120 -0
  14. package/dist/gomtmapi/client/types.d.ts.map +1 -0
  15. package/dist/gomtmapi/client/types.js +2 -0
  16. package/dist/gomtmapi/client/types.js.map +1 -0
  17. package/dist/gomtmapi/client/utils.d.ts +46 -0
  18. package/dist/gomtmapi/client/utils.d.ts.map +1 -0
  19. package/dist/gomtmapi/client/utils.js +285 -0
  20. package/dist/gomtmapi/client/utils.js.map +1 -0
  21. package/dist/gomtmapi/client.gen.d.ts +13 -0
  22. package/dist/gomtmapi/client.gen.d.ts.map +1 -0
  23. package/dist/gomtmapi/client.gen.js +4 -0
  24. package/dist/gomtmapi/client.gen.js.map +1 -0
  25. package/dist/gomtmapi/core/auth.d.ts +19 -0
  26. package/dist/gomtmapi/core/auth.d.ts.map +1 -0
  27. package/dist/gomtmapi/core/auth.js +14 -0
  28. package/dist/gomtmapi/core/auth.js.map +1 -0
  29. package/dist/gomtmapi/core/bodySerializer.d.ts +18 -0
  30. package/dist/gomtmapi/core/bodySerializer.d.ts.map +1 -0
  31. package/dist/gomtmapi/core/bodySerializer.js +54 -0
  32. package/dist/gomtmapi/core/bodySerializer.js.map +1 -0
  33. package/dist/gomtmapi/core/params.d.ts +24 -0
  34. package/dist/gomtmapi/core/params.d.ts.map +1 -0
  35. package/dist/gomtmapi/core/params.js +88 -0
  36. package/dist/gomtmapi/core/params.js.map +1 -0
  37. package/dist/gomtmapi/core/pathSerializer.d.ts +34 -0
  38. package/dist/gomtmapi/core/pathSerializer.d.ts.map +1 -0
  39. package/dist/gomtmapi/core/pathSerializer.js +114 -0
  40. package/dist/gomtmapi/core/pathSerializer.js.map +1 -0
  41. package/dist/gomtmapi/core/types.d.ts +74 -0
  42. package/dist/gomtmapi/core/types.d.ts.map +1 -0
  43. package/dist/gomtmapi/core/types.js +2 -0
  44. package/dist/gomtmapi/core/types.js.map +1 -0
  45. package/dist/gomtmapi/index.d.ts +3 -0
  46. package/dist/gomtmapi/index.d.ts.map +1 -0
  47. package/dist/gomtmapi/index.js +4 -0
  48. package/dist/gomtmapi/index.js.map +1 -0
  49. package/dist/gomtmapi/schemas.gen.d.ts +4385 -0
  50. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -0
  51. package/dist/gomtmapi/schemas.gen.js +4521 -0
  52. package/dist/gomtmapi/schemas.gen.js.map +1 -0
  53. package/dist/gomtmapi/sdk.gen.d.ts +574 -0
  54. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -0
  55. package/dist/gomtmapi/sdk.gen.js +2259 -0
  56. package/dist/gomtmapi/sdk.gen.js.map +1 -0
  57. package/dist/gomtmapi/types.gen.d.ts +6480 -0
  58. package/dist/gomtmapi/types.gen.d.ts.map +1 -0
  59. package/dist/gomtmapi/types.gen.js +70 -0
  60. package/dist/gomtmapi/types.gen.js.map +1 -0
  61. package/dist/gomtmapi/zod.gen.d.ts +5324 -0
  62. package/dist/gomtmapi/zod.gen.d.ts.map +1 -0
  63. package/dist/gomtmapi/zod.gen.js +2534 -0
  64. package/dist/gomtmapi/zod.gen.js.map +1 -0
  65. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +2260 -0
  66. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -0
  67. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +2413 -0
  68. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -0
  69. package/dist/gomtmapi_v2/client/client.d.ts +3 -0
  70. package/dist/gomtmapi_v2/client/client.d.ts.map +1 -0
  71. package/dist/gomtmapi_v2/client/client.js +146 -0
  72. package/dist/gomtmapi_v2/client/client.js.map +1 -0
  73. package/dist/gomtmapi_v2/client/index.d.ts +8 -0
  74. package/dist/gomtmapi_v2/client/index.d.ts.map +1 -0
  75. package/dist/gomtmapi_v2/client/index.js +5 -0
  76. package/dist/gomtmapi_v2/client/index.js.map +1 -0
  77. package/dist/gomtmapi_v2/client/types.d.ts +120 -0
  78. package/dist/gomtmapi_v2/client/types.d.ts.map +1 -0
  79. package/dist/gomtmapi_v2/client/types.js +2 -0
  80. package/dist/gomtmapi_v2/client/types.js.map +1 -0
  81. package/dist/gomtmapi_v2/client/utils.d.ts +46 -0
  82. package/dist/gomtmapi_v2/client/utils.d.ts.map +1 -0
  83. package/dist/gomtmapi_v2/client/utils.js +285 -0
  84. package/dist/gomtmapi_v2/client/utils.js.map +1 -0
  85. package/dist/gomtmapi_v2/client.gen.d.ts +13 -0
  86. package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -0
  87. package/dist/gomtmapi_v2/client.gen.js +4 -0
  88. package/dist/gomtmapi_v2/client.gen.js.map +1 -0
  89. package/dist/gomtmapi_v2/core/auth.d.ts +19 -0
  90. package/dist/gomtmapi_v2/core/auth.d.ts.map +1 -0
  91. package/dist/gomtmapi_v2/core/auth.js +14 -0
  92. package/dist/gomtmapi_v2/core/auth.js.map +1 -0
  93. package/dist/gomtmapi_v2/core/bodySerializer.d.ts +18 -0
  94. package/dist/gomtmapi_v2/core/bodySerializer.d.ts.map +1 -0
  95. package/dist/gomtmapi_v2/core/bodySerializer.js +54 -0
  96. package/dist/gomtmapi_v2/core/bodySerializer.js.map +1 -0
  97. package/dist/gomtmapi_v2/core/params.d.ts +24 -0
  98. package/dist/gomtmapi_v2/core/params.d.ts.map +1 -0
  99. package/dist/gomtmapi_v2/core/params.js +88 -0
  100. package/dist/gomtmapi_v2/core/params.js.map +1 -0
  101. package/dist/gomtmapi_v2/core/pathSerializer.d.ts +34 -0
  102. package/dist/gomtmapi_v2/core/pathSerializer.d.ts.map +1 -0
  103. package/dist/gomtmapi_v2/core/pathSerializer.js +114 -0
  104. package/dist/gomtmapi_v2/core/pathSerializer.js.map +1 -0
  105. package/dist/gomtmapi_v2/core/types.d.ts +74 -0
  106. package/dist/gomtmapi_v2/core/types.d.ts.map +1 -0
  107. package/dist/gomtmapi_v2/core/types.js +2 -0
  108. package/dist/gomtmapi_v2/core/types.js.map +1 -0
  109. package/dist/gomtmapi_v2/index.d.ts +3 -0
  110. package/dist/gomtmapi_v2/index.d.ts.map +1 -0
  111. package/dist/gomtmapi_v2/index.js +4 -0
  112. package/dist/gomtmapi_v2/index.js.map +1 -0
  113. package/dist/gomtmapi_v2/schemas.gen.d.ts +2371 -0
  114. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -0
  115. package/dist/gomtmapi_v2/schemas.gen.js +2372 -0
  116. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -0
  117. package/dist/gomtmapi_v2/sdk.gen.d.ts +974 -0
  118. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -0
  119. package/dist/gomtmapi_v2/sdk.gen.js +1345 -0
  120. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -0
  121. package/dist/gomtmapi_v2/types.gen.d.ts +2964 -0
  122. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -0
  123. package/dist/gomtmapi_v2/types.gen.js +3 -0
  124. package/dist/gomtmapi_v2/types.gen.js.map +1 -0
  125. package/dist/gomtmapi_v2/zod.gen.d.ts +2327 -0
  126. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -0
  127. package/dist/gomtmapi_v2/zod.gen.js +1768 -0
  128. package/dist/gomtmapi_v2/zod.gen.js.map +1 -0
  129. package/dist/index.d.ts +4 -1
  130. package/dist/index.d.ts.map +1 -1
  131. package/dist/index.js +4 -2
  132. package/dist/index.js.map +1 -1
  133. package/dist/lib/adk-utils.d.ts +24 -0
  134. package/dist/lib/adk-utils.d.ts.map +1 -0
  135. package/dist/lib/adk-utils.js +51 -0
  136. package/dist/lib/adk-utils.js.map +1 -0
  137. package/dist/lib/constants.d.ts +40 -0
  138. package/dist/lib/constants.d.ts.map +1 -0
  139. package/dist/lib/constants.js +40 -0
  140. package/dist/lib/constants.js.map +1 -0
  141. package/dist/lib/d1-utils.d.ts +5 -0
  142. package/dist/lib/d1-utils.d.ts.map +1 -0
  143. package/dist/lib/d1-utils.js +36 -0
  144. package/dist/lib/d1-utils.js.map +1 -0
  145. package/dist/lib/get-query-client.d.ts +3 -0
  146. package/dist/lib/get-query-client.d.ts.map +1 -0
  147. package/dist/lib/get-query-client.js +43 -0
  148. package/dist/lib/get-query-client.js.map +1 -0
  149. package/dist/lib/mtmutils.d.ts +2 -0
  150. package/dist/lib/mtmutils.d.ts.map +1 -0
  151. package/dist/lib/mtmutils.js +9 -0
  152. package/dist/lib/mtmutils.js.map +1 -0
  153. package/dist/mtgate_api/zod.gen.d.ts +48 -48
  154. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +1286 -0
  155. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -0
  156. package/dist/mtmai_api/@tanstack/react-query.gen.js +1321 -0
  157. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -0
  158. package/dist/mtmai_api/client/client.d.ts +3 -0
  159. package/dist/mtmai_api/client/client.d.ts.map +1 -0
  160. package/dist/mtmai_api/client/client.js +146 -0
  161. package/dist/mtmai_api/client/client.js.map +1 -0
  162. package/dist/mtmai_api/client/index.d.ts +8 -0
  163. package/dist/mtmai_api/client/index.d.ts.map +1 -0
  164. package/dist/mtmai_api/client/index.js +5 -0
  165. package/dist/mtmai_api/client/index.js.map +1 -0
  166. package/dist/mtmai_api/client/types.d.ts +120 -0
  167. package/dist/mtmai_api/client/types.d.ts.map +1 -0
  168. package/dist/mtmai_api/client/types.js +2 -0
  169. package/dist/mtmai_api/client/types.js.map +1 -0
  170. package/dist/mtmai_api/client/utils.d.ts +46 -0
  171. package/dist/mtmai_api/client/utils.d.ts.map +1 -0
  172. package/dist/mtmai_api/client/utils.js +285 -0
  173. package/dist/mtmai_api/client/utils.js.map +1 -0
  174. package/dist/mtmai_api/client.gen.d.ts +13 -0
  175. package/dist/mtmai_api/client.gen.d.ts.map +1 -0
  176. package/dist/mtmai_api/client.gen.js +4 -0
  177. package/dist/mtmai_api/client.gen.js.map +1 -0
  178. package/dist/mtmai_api/core/auth.d.ts +19 -0
  179. package/dist/mtmai_api/core/auth.d.ts.map +1 -0
  180. package/dist/mtmai_api/core/auth.js +14 -0
  181. package/dist/mtmai_api/core/auth.js.map +1 -0
  182. package/dist/mtmai_api/core/bodySerializer.d.ts +18 -0
  183. package/dist/mtmai_api/core/bodySerializer.d.ts.map +1 -0
  184. package/dist/mtmai_api/core/bodySerializer.js +54 -0
  185. package/dist/mtmai_api/core/bodySerializer.js.map +1 -0
  186. package/dist/mtmai_api/core/params.d.ts +24 -0
  187. package/dist/mtmai_api/core/params.d.ts.map +1 -0
  188. package/dist/mtmai_api/core/params.js +88 -0
  189. package/dist/mtmai_api/core/params.js.map +1 -0
  190. package/dist/mtmai_api/core/pathSerializer.d.ts +34 -0
  191. package/dist/mtmai_api/core/pathSerializer.d.ts.map +1 -0
  192. package/dist/mtmai_api/core/pathSerializer.js +114 -0
  193. package/dist/mtmai_api/core/pathSerializer.js.map +1 -0
  194. package/dist/mtmai_api/core/types.d.ts +74 -0
  195. package/dist/mtmai_api/core/types.d.ts.map +1 -0
  196. package/dist/mtmai_api/core/types.js +2 -0
  197. package/dist/mtmai_api/core/types.js.map +1 -0
  198. package/dist/mtmai_api/index.d.ts +3 -0
  199. package/dist/mtmai_api/index.d.ts.map +1 -0
  200. package/dist/mtmai_api/index.js +4 -0
  201. package/dist/mtmai_api/index.js.map +1 -0
  202. package/dist/mtmai_api/schemas.gen.d.ts +7364 -0
  203. package/dist/mtmai_api/schemas.gen.d.ts.map +1 -0
  204. package/dist/mtmai_api/schemas.gen.js +9574 -0
  205. package/dist/mtmai_api/schemas.gen.js.map +1 -0
  206. package/dist/mtmai_api/sdk.gen.d.ts +264 -0
  207. package/dist/mtmai_api/sdk.gen.d.ts.map +1 -0
  208. package/dist/mtmai_api/sdk.gen.js +598 -0
  209. package/dist/mtmai_api/sdk.gen.js.map +1 -0
  210. package/dist/mtmai_api/types.gen.d.ts +6376 -0
  211. package/dist/mtmai_api/types.gen.d.ts.map +1 -0
  212. package/dist/mtmai_api/types.gen.js +240 -0
  213. package/dist/mtmai_api/types.gen.js.map +1 -0
  214. package/dist/mtmai_api/zod.gen.d.ts +35067 -0
  215. package/dist/mtmai_api/zod.gen.d.ts.map +1 -0
  216. package/dist/mtmai_api/zod.gen.js +2930 -0
  217. package/dist/mtmai_api/zod.gen.js.map +1 -0
  218. package/dist/store/MtmsdkProvider.d.ts +15 -0
  219. package/dist/store/MtmsdkProvider.d.ts.map +1 -0
  220. package/dist/store/MtmsdkProvider.js +50 -0
  221. package/dist/store/MtmsdkProvider.js.map +1 -0
  222. package/dist/store/ReactQueryApiV2Provider.d.ts +10 -0
  223. package/dist/store/ReactQueryApiV2Provider.d.ts.map +1 -0
  224. package/dist/store/ReactQueryApiV2Provider.js +24 -0
  225. package/dist/store/ReactQueryApiV2Provider.js.map +1 -0
  226. package/dist/store/ReactQueryCfApiProvider.d.ts +9 -0
  227. package/dist/store/ReactQueryCfApiProvider.d.ts.map +1 -0
  228. package/dist/store/ReactQueryCfApiProvider.js +26 -0
  229. package/dist/store/ReactQueryCfApiProvider.js.map +1 -0
  230. package/dist/store/ReactQueryMtmaiApiProvider.d.ts +10 -0
  231. package/dist/store/ReactQueryMtmaiApiProvider.d.ts.map +1 -0
  232. package/dist/store/ReactQueryMtmaiApiProvider.js +23 -0
  233. package/dist/store/ReactQueryMtmaiApiProvider.js.map +1 -0
  234. package/dist/store/ReactQueryProvider.d.ts +10 -0
  235. package/dist/store/ReactQueryProvider.d.ts.map +1 -0
  236. package/dist/store/ReactQueryProvider.js +24 -0
  237. package/dist/store/ReactQueryProvider.js.map +1 -0
  238. package/package.json +69 -15
@@ -0,0 +1,1345 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client as _heyApiClient } from "./client.gen";
3
+ /**
4
+ * List agents
5
+ * #### Controller:
6
+ *
7
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).listAgents`
8
+ *
9
+ * #### Middlewares:
10
+ *
11
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
12
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
13
+ *
14
+ * ---
15
+ *
16
+ * Get a paginated list of agents for the current tenant
17
+ */
18
+ export const agentList = (options) => {
19
+ return (options?.client ?? _heyApiClient).get({
20
+ url: "/api/v2/agents",
21
+ ...options,
22
+ });
23
+ };
24
+ /**
25
+ * Create agent
26
+ * #### Controller:
27
+ *
28
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).createAgent`
29
+ *
30
+ * #### Middlewares:
31
+ *
32
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
33
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
34
+ *
35
+ * ---
36
+ *
37
+ * Create a new agent
38
+ */
39
+ export const agentCreate = (options) => {
40
+ return (options.client ?? _heyApiClient).post({
41
+ url: "/api/v2/agents",
42
+ ...options,
43
+ headers: {
44
+ "Content-Type": "*/*",
45
+ ...options.headers,
46
+ },
47
+ });
48
+ };
49
+ /**
50
+ * demo chat
51
+ * #### Controller:
52
+ *
53
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).demoChat`
54
+ *
55
+ * #### Middlewares:
56
+ *
57
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
58
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
59
+ *
60
+ * ---
61
+ *
62
+ *
63
+ */
64
+ export const getApiV2AgentsDemoChat = (options) => {
65
+ return (options?.client ?? _heyApiClient).get({
66
+ url: "/api/v2/agents/demo-chat",
67
+ ...options,
68
+ });
69
+ };
70
+ /**
71
+ * agent 事件提交
72
+ * #### Controller:
73
+ *
74
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).event`
75
+ *
76
+ * #### Middlewares:
77
+ *
78
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
79
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
80
+ *
81
+ * ---
82
+ *
83
+ * agen 事件提交
84
+ */
85
+ export const agentEvent = (options) => {
86
+ return (options.client ?? _heyApiClient).post({
87
+ url: "/api/v2/agents/event",
88
+ ...options,
89
+ headers: {
90
+ "Content-Type": "*/*",
91
+ ...options.headers,
92
+ },
93
+ });
94
+ };
95
+ /**
96
+ * agent 事件提交
97
+ * #### Controller:
98
+ *
99
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).listAgentSchedule`
100
+ *
101
+ * #### Middlewares:
102
+ *
103
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
104
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
105
+ *
106
+ * ---
107
+ *
108
+ * agen 事件提交
109
+ */
110
+ export const agentSchedule = (options) => {
111
+ return (options?.client ?? _heyApiClient).get({
112
+ url: "/api/v2/agents/schedule",
113
+ ...options,
114
+ });
115
+ };
116
+ /**
117
+ * Delete agent
118
+ * #### Controller:
119
+ *
120
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).deleteAgent`
121
+ *
122
+ * #### Middlewares:
123
+ *
124
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
125
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
126
+ *
127
+ * ---
128
+ *
129
+ * Delete an agent
130
+ */
131
+ export const agentDelete = (options) => {
132
+ return (options.client ?? _heyApiClient).delete({
133
+ url: "/api/v2/agents/{agentId}",
134
+ ...options,
135
+ });
136
+ };
137
+ /**
138
+ * Get agent
139
+ * #### Controller:
140
+ *
141
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).getAgent`
142
+ *
143
+ * #### Middlewares:
144
+ *
145
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
146
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
147
+ *
148
+ * ---
149
+ *
150
+ * Get a specific agent by ID
151
+ */
152
+ export const agentGet = (options) => {
153
+ return (options.client ?? _heyApiClient).get({
154
+ url: "/api/v2/agents/{agentId}",
155
+ ...options,
156
+ });
157
+ };
158
+ /**
159
+ * Update agent
160
+ * #### Controller:
161
+ *
162
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/agent.(*AgentService).updateAgent`
163
+ *
164
+ * #### Middlewares:
165
+ *
166
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
167
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
168
+ *
169
+ * ---
170
+ *
171
+ * Update an existing agent
172
+ */
173
+ export const agentUpdate = (options) => {
174
+ return (options.client ?? _heyApiClient).put({
175
+ url: "/api/v2/agents/{agentId}",
176
+ ...options,
177
+ headers: {
178
+ "Content-Type": "*/*",
179
+ ...options.headers,
180
+ },
181
+ });
182
+ };
183
+ /**
184
+ * List chatbots
185
+ * #### Controller:
186
+ *
187
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).listChatbots`
188
+ *
189
+ * #### Middlewares:
190
+ *
191
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
192
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
193
+ *
194
+ * ---
195
+ *
196
+ * Get a paginated list of chatbots for the current tenant
197
+ */
198
+ export const langchatChatbotsList = (options) => {
199
+ return (options?.client ?? _heyApiClient).get({
200
+ url: "/api/v2/langchat/chatbots",
201
+ ...options,
202
+ });
203
+ };
204
+ /**
205
+ * Create or update chatbot
206
+ * #### Controller:
207
+ *
208
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).upsertChatbot`
209
+ *
210
+ * #### Middlewares:
211
+ *
212
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
213
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
214
+ *
215
+ * ---
216
+ *
217
+ * Create a new chatbot or update an existing one
218
+ */
219
+ export const langchatChatbotsUpsert = (options) => {
220
+ return (options.client ?? _heyApiClient).post({
221
+ url: "/api/v2/langchat/chatbots",
222
+ ...options,
223
+ headers: {
224
+ "Content-Type": "*/*",
225
+ ...options.headers,
226
+ },
227
+ });
228
+ };
229
+ /**
230
+ * Login chatbot
231
+ * #### Controller:
232
+ *
233
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).loginChatbot`
234
+ *
235
+ * #### Middlewares:
236
+ *
237
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
238
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
239
+ *
240
+ * ---
241
+ *
242
+ * Trigger the chatbot login workflow
243
+ */
244
+ export const langchatChatbotsLogin = (options) => {
245
+ return (options.client ?? _heyApiClient).post({
246
+ url: "/api/v2/langchat/chatbots/login",
247
+ ...options,
248
+ headers: {
249
+ "Content-Type": "*/*",
250
+ ...options.headers,
251
+ },
252
+ });
253
+ };
254
+ /**
255
+ * Run chatbot
256
+ * #### Controller:
257
+ *
258
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).runChatbot`
259
+ *
260
+ * #### Middlewares:
261
+ *
262
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
263
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
264
+ *
265
+ * ---
266
+ *
267
+ * Trigger the chatbot startup workflow
268
+ */
269
+ export const langchatChatbotsRun = (options) => {
270
+ return (options.client ?? _heyApiClient).post({
271
+ url: "/api/v2/langchat/chatbots/run",
272
+ ...options,
273
+ headers: {
274
+ "Content-Type": "*/*",
275
+ ...options.headers,
276
+ },
277
+ });
278
+ };
279
+ /**
280
+ * Delete chatbot
281
+ * #### Controller:
282
+ *
283
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).deleteChatbot`
284
+ *
285
+ * #### Middlewares:
286
+ *
287
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
288
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
289
+ *
290
+ * ---
291
+ *
292
+ * Delete a chatbot
293
+ */
294
+ export const langchatChatbotsDelete = (options) => {
295
+ return (options.client ?? _heyApiClient).delete({
296
+ url: "/api/v2/langchat/chatbots/{chatbotId}",
297
+ ...options,
298
+ });
299
+ };
300
+ /**
301
+ * Get chatbot
302
+ * #### Controller:
303
+ *
304
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).getChatbot`
305
+ *
306
+ * #### Middlewares:
307
+ *
308
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
309
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
310
+ *
311
+ * ---
312
+ *
313
+ * Get a specific chatbot by ID
314
+ */
315
+ export const langchatChatbotsGet = (options) => {
316
+ return (options.client ?? _heyApiClient).get({
317
+ url: "/api/v2/langchat/chatbots/{chatbotId}",
318
+ ...options,
319
+ });
320
+ };
321
+ /**
322
+ * Update chatbot
323
+ * #### Controller:
324
+ *
325
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).upsertChatbotByPath`
326
+ *
327
+ * #### Middlewares:
328
+ *
329
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
330
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
331
+ *
332
+ * ---
333
+ *
334
+ * Update an existing chatbot
335
+ */
336
+ export const langchatChatbotsUpdate = (options) => {
337
+ return (options.client ?? _heyApiClient).put({
338
+ url: "/api/v2/langchat/chatbots/{chatbotId}",
339
+ ...options,
340
+ headers: {
341
+ "Content-Type": "*/*",
342
+ ...options.headers,
343
+ },
344
+ });
345
+ };
346
+ /**
347
+ * List platform types
348
+ * #### Controller:
349
+ *
350
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/langchat.(*LangchatService).listPlatformTypes`
351
+ *
352
+ * #### Middlewares:
353
+ *
354
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
355
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
356
+ *
357
+ * ---
358
+ *
359
+ * Get available platform types
360
+ */
361
+ export const langchatPlatformTypes = (options) => {
362
+ return (options?.client ?? _heyApiClient).get({
363
+ url: "/api/v2/langchat/platform-types",
364
+ ...options,
365
+ });
366
+ };
367
+ /**
368
+ * Start napcat service
369
+ * #### Controller:
370
+ *
371
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).StartNapcat`
372
+ *
373
+ * #### Middlewares:
374
+ *
375
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
376
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
377
+ *
378
+ * ---
379
+ *
380
+ * Start napcat service with specified configuration
381
+ */
382
+ export const napcatStart = (options) => {
383
+ return (options.client ?? _heyApiClient).post({
384
+ url: "/api/v2/napcat/start",
385
+ ...options,
386
+ headers: {
387
+ "Content-Type": "*/*",
388
+ ...options.headers,
389
+ },
390
+ });
391
+ };
392
+ /**
393
+ * Get napcat status
394
+ * #### Controller:
395
+ *
396
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).GetStatus`
397
+ *
398
+ * #### Middlewares:
399
+ *
400
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
401
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
402
+ *
403
+ * ---
404
+ *
405
+ * Get current napcat running status
406
+ */
407
+ export const napcatGetStatus = (options) => {
408
+ return (options?.client ?? _heyApiClient).get({
409
+ url: "/api/v2/napcat/status",
410
+ ...options,
411
+ });
412
+ };
413
+ /**
414
+ * Proxy OneBot11 API GET requests
415
+ * #### Controller:
416
+ *
417
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
418
+ *
419
+ * #### Middlewares:
420
+ *
421
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
422
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
423
+ *
424
+ * ---
425
+ *
426
+ * Proxy all OneBot11 API GET requests to napcat HTTP server
427
+ */
428
+ export const napcatProxyOneBot11Get = (options) => {
429
+ return (options?.client ?? _heyApiClient).get({
430
+ url: "/api/v2/onebot11/*",
431
+ ...options,
432
+ });
433
+ };
434
+ /**
435
+ * Proxy OneBot11 API POST requests
436
+ * #### Controller:
437
+ *
438
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToNapcat`
439
+ *
440
+ * #### Middlewares:
441
+ *
442
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
443
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
444
+ *
445
+ * ---
446
+ *
447
+ * Proxy all OneBot11 API POST requests to napcat HTTP server
448
+ */
449
+ export const napcatProxyOneBot11Post = (options) => {
450
+ return (options?.client ?? _heyApiClient).post({
451
+ url: "/api/v2/onebot11/*",
452
+ ...options,
453
+ });
454
+ };
455
+ /**
456
+ * List OneBot11 messages
457
+ * #### Controller:
458
+ *
459
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListMessages`
460
+ *
461
+ * #### Middlewares:
462
+ *
463
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
464
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
465
+ *
466
+ * ---
467
+ *
468
+ * Get a list of OneBot11 messages with optional filtering
469
+ */
470
+ export const langchatChatbotsMessagesList = (options) => {
471
+ return (options?.client ?? _heyApiClient).get({
472
+ url: "/api/v2/onebot11/messages",
473
+ ...options,
474
+ });
475
+ };
476
+ /**
477
+ * Get OneBot11 message
478
+ * #### Controller:
479
+ *
480
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).GetMessage`
481
+ *
482
+ * #### Middlewares:
483
+ *
484
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
485
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
486
+ *
487
+ * ---
488
+ *
489
+ * Get a specific OneBot11 message by ID
490
+ */
491
+ export const langchatChatbotsMessagesGet = (options) => {
492
+ return (options.client ?? _heyApiClient).get({
493
+ url: "/api/v2/onebot11/messages/{id}",
494
+ ...options,
495
+ });
496
+ };
497
+ /**
498
+ * List OneBot11 sessions
499
+ * #### Controller:
500
+ *
501
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/onebot11.(*OneBot11Service).ListSessions`
502
+ *
503
+ * #### Middlewares:
504
+ *
505
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
506
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
507
+ *
508
+ * ---
509
+ *
510
+ * Get a list of OneBot11 sessions with optional filtering
511
+ */
512
+ export const langchatChatbotsSessionsList = (options) => {
513
+ return (options?.client ?? _heyApiClient).get({
514
+ url: "/api/v2/onebot11/sessions",
515
+ ...options,
516
+ });
517
+ };
518
+ /**
519
+ * List platform accounts
520
+ * #### Controller:
521
+ *
522
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listPAccounts`
523
+ *
524
+ * #### Middlewares:
525
+ *
526
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
527
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
528
+ *
529
+ * ---
530
+ *
531
+ * Get list of platform accounts with pagination
532
+ */
533
+ export const pAccountList = (options) => {
534
+ return (options?.client ?? _heyApiClient).get({
535
+ url: "/api/v2/paccounts",
536
+ ...options,
537
+ });
538
+ };
539
+ /**
540
+ * Create platform account
541
+ * #### Controller:
542
+ *
543
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createPAccount`
544
+ *
545
+ * #### Middlewares:
546
+ *
547
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
548
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
549
+ *
550
+ * ---
551
+ *
552
+ * Create a new platform account
553
+ */
554
+ export const pAccountCreate = (options) => {
555
+ return (options.client ?? _heyApiClient).post({
556
+ url: "/api/v2/paccounts",
557
+ ...options,
558
+ headers: {
559
+ "Content-Type": "*/*",
560
+ ...options.headers,
561
+ },
562
+ });
563
+ };
564
+ /**
565
+ * Export platform accounts
566
+ * #### Controller:
567
+ *
568
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).exportPAccounts`
569
+ *
570
+ * #### Middlewares:
571
+ *
572
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
573
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
574
+ *
575
+ * ---
576
+ *
577
+ * Export all platform accounts data
578
+ */
579
+ export const pAccountExport = (options) => {
580
+ return (options?.client ?? _heyApiClient).get({
581
+ url: "/api/v2/paccounts/export",
582
+ ...options,
583
+ });
584
+ };
585
+ /**
586
+ * Import platform accounts
587
+ * #### Controller:
588
+ *
589
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).importPAccounts`
590
+ *
591
+ * #### Middlewares:
592
+ *
593
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
594
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
595
+ *
596
+ * ---
597
+ *
598
+ * Import platform accounts data
599
+ */
600
+ export const pAccountImport = (options) => {
601
+ return (options.client ?? _heyApiClient).post({
602
+ url: "/api/v2/paccounts/import",
603
+ ...options,
604
+ headers: {
605
+ "Content-Type": "*/*",
606
+ ...options.headers,
607
+ },
608
+ });
609
+ };
610
+ /**
611
+ * Delete platform account
612
+ * #### Controller:
613
+ *
614
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).deletePAccount`
615
+ *
616
+ * #### Middlewares:
617
+ *
618
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
619
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
620
+ *
621
+ * ---
622
+ *
623
+ * Delete platform account by ID
624
+ */
625
+ export const pAccountDelete = (options) => {
626
+ return (options.client ?? _heyApiClient).delete({
627
+ url: "/api/v2/paccounts/{accountId}",
628
+ ...options,
629
+ });
630
+ };
631
+ /**
632
+ * Get platform account
633
+ * #### Controller:
634
+ *
635
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).getPAccount`
636
+ *
637
+ * #### Middlewares:
638
+ *
639
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
640
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
641
+ *
642
+ * ---
643
+ *
644
+ * Get platform account by ID
645
+ */
646
+ export const pAccountGet = (options) => {
647
+ return (options.client ?? _heyApiClient).get({
648
+ url: "/api/v2/paccounts/{accountId}",
649
+ ...options,
650
+ });
651
+ };
652
+ /**
653
+ * Update platform account
654
+ * #### Controller:
655
+ *
656
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).updatePAccount`
657
+ *
658
+ * #### Middlewares:
659
+ *
660
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
661
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
662
+ *
663
+ * ---
664
+ *
665
+ * Update platform account by ID
666
+ */
667
+ export const pAccountUpdate = (options) => {
668
+ return (options.client ?? _heyApiClient).put({
669
+ url: "/api/v2/paccounts/{accountId}",
670
+ ...options,
671
+ headers: {
672
+ "Content-Type": "*/*",
673
+ ...options.headers,
674
+ },
675
+ });
676
+ };
677
+ /**
678
+ * List browser configs
679
+ * #### Controller:
680
+ *
681
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listBrowserConfigs`
682
+ *
683
+ * #### Middlewares:
684
+ *
685
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
686
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
687
+ *
688
+ * ---
689
+ *
690
+ * List browser configurations for platform account
691
+ */
692
+ export const pAccountListBrowserConfigs = (options) => {
693
+ return (options.client ?? _heyApiClient).get({
694
+ url: "/api/v2/paccounts/{accountId}/browser/configs",
695
+ ...options,
696
+ });
697
+ };
698
+ /**
699
+ * Create browser config
700
+ * #### Controller:
701
+ *
702
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createBrowserConfig`
703
+ *
704
+ * #### Middlewares:
705
+ *
706
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
707
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
708
+ *
709
+ * ---
710
+ *
711
+ * Create browser configuration for platform account
712
+ */
713
+ export const pAccountCreateBrowserConfig = (options) => {
714
+ return (options.client ?? _heyApiClient).post({
715
+ url: "/api/v2/paccounts/{accountId}/browser/configs",
716
+ ...options,
717
+ headers: {
718
+ "Content-Type": "*/*",
719
+ ...options.headers,
720
+ },
721
+ });
722
+ };
723
+ /**
724
+ * Launch browser for account
725
+ * #### Controller:
726
+ *
727
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).launchBrowser`
728
+ *
729
+ * #### Middlewares:
730
+ *
731
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
732
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
733
+ *
734
+ * ---
735
+ *
736
+ * Launch browser session for platform account
737
+ */
738
+ export const pAccountLaunchBrowser = (options) => {
739
+ return (options.client ?? _heyApiClient).post({
740
+ url: "/api/v2/paccounts/{accountId}/browser/launch",
741
+ ...options,
742
+ });
743
+ };
744
+ /**
745
+ * List sessions
746
+ * #### Controller:
747
+ *
748
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).listSessions`
749
+ *
750
+ * #### Middlewares:
751
+ *
752
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
753
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
754
+ *
755
+ * ---
756
+ *
757
+ * List sessions for platform account
758
+ */
759
+ export const pAccountListSessions = (options) => {
760
+ return (options.client ?? _heyApiClient).get({
761
+ url: "/api/v2/paccounts/{accountId}/sessions",
762
+ ...options,
763
+ });
764
+ };
765
+ /**
766
+ * Create session
767
+ * #### Controller:
768
+ *
769
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).createSession`
770
+ *
771
+ * #### Middlewares:
772
+ *
773
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
774
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
775
+ *
776
+ * ---
777
+ *
778
+ * Create session for platform account
779
+ */
780
+ export const pAccountCreateSession = (options) => {
781
+ return (options.client ?? _heyApiClient).post({
782
+ url: "/api/v2/paccounts/{accountId}/sessions",
783
+ ...options,
784
+ headers: {
785
+ "Content-Type": "*/*",
786
+ ...options.headers,
787
+ },
788
+ });
789
+ };
790
+ /**
791
+ * Delete session
792
+ * #### Controller:
793
+ *
794
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).deleteSession`
795
+ *
796
+ * #### Middlewares:
797
+ *
798
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
799
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
800
+ *
801
+ * ---
802
+ *
803
+ * Delete session by ID
804
+ */
805
+ export const pAccountDeleteSession = (options) => {
806
+ return (options.client ?? _heyApiClient).delete({
807
+ url: "/api/v2/paccounts/{accountId}/sessions/{sessionId}",
808
+ ...options,
809
+ });
810
+ };
811
+ /**
812
+ * Get session
813
+ * #### Controller:
814
+ *
815
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).getSession`
816
+ *
817
+ * #### Middlewares:
818
+ *
819
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
820
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
821
+ *
822
+ * ---
823
+ *
824
+ * Get session by ID
825
+ */
826
+ export const pAccountGetSession = (options) => {
827
+ return (options.client ?? _heyApiClient).get({
828
+ url: "/api/v2/paccounts/{accountId}/sessions/{sessionId}",
829
+ ...options,
830
+ });
831
+ };
832
+ /**
833
+ * Update session
834
+ * #### Controller:
835
+ *
836
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/paccount.(*PAccountService).updateSession`
837
+ *
838
+ * #### Middlewares:
839
+ *
840
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
841
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
842
+ *
843
+ * ---
844
+ *
845
+ * Update session by ID
846
+ */
847
+ export const pAccountUpdateSession = (options) => {
848
+ return (options.client ?? _heyApiClient).put({
849
+ url: "/api/v2/paccounts/{accountId}/sessions/{sessionId}",
850
+ ...options,
851
+ headers: {
852
+ "Content-Type": "*/*",
853
+ ...options.headers,
854
+ },
855
+ });
856
+ };
857
+ /**
858
+ * List platforms
859
+ * #### Controller:
860
+ *
861
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).listPlatforms`
862
+ *
863
+ * #### Middlewares:
864
+ *
865
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
866
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
867
+ *
868
+ * ---
869
+ *
870
+ * Get list of platforms with pagination
871
+ */
872
+ export const platformList = (options) => {
873
+ return (options?.client ?? _heyApiClient).get({
874
+ url: "/api/v2/platforms",
875
+ ...options,
876
+ });
877
+ };
878
+ /**
879
+ * Create platform
880
+ * #### Controller:
881
+ *
882
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).createPlatform`
883
+ *
884
+ * #### Middlewares:
885
+ *
886
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
887
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
888
+ *
889
+ * ---
890
+ *
891
+ * Create a new platform
892
+ */
893
+ export const platformCreate = (options) => {
894
+ return (options.client ?? _heyApiClient).post({
895
+ url: "/api/v2/platforms",
896
+ ...options,
897
+ headers: {
898
+ "Content-Type": "*/*",
899
+ ...options.headers,
900
+ },
901
+ });
902
+ };
903
+ /**
904
+ * Export platforms
905
+ * #### Controller:
906
+ *
907
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).exportPlatforms`
908
+ *
909
+ * #### Middlewares:
910
+ *
911
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
912
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
913
+ *
914
+ * ---
915
+ *
916
+ * Export all platforms data
917
+ */
918
+ export const platformExport = (options) => {
919
+ return (options?.client ?? _heyApiClient).get({
920
+ url: "/api/v2/platforms/export",
921
+ ...options,
922
+ });
923
+ };
924
+ /**
925
+ * Import platforms
926
+ * #### Controller:
927
+ *
928
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).importPlatforms`
929
+ *
930
+ * #### Middlewares:
931
+ *
932
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
933
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
934
+ *
935
+ * ---
936
+ *
937
+ * Import platforms data
938
+ */
939
+ export const platformImport = (options) => {
940
+ return (options.client ?? _heyApiClient).post({
941
+ url: "/api/v2/platforms/import",
942
+ ...options,
943
+ headers: {
944
+ "Content-Type": "*/*",
945
+ ...options.headers,
946
+ },
947
+ });
948
+ };
949
+ /**
950
+ * Delete platform
951
+ * #### Controller:
952
+ *
953
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).deletePlatform`
954
+ *
955
+ * #### Middlewares:
956
+ *
957
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
958
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
959
+ *
960
+ * ---
961
+ *
962
+ * Delete platform by ID
963
+ */
964
+ export const platformDelete = (options) => {
965
+ return (options.client ?? _heyApiClient).delete({
966
+ url: "/api/v2/platforms/{platformId}",
967
+ ...options,
968
+ });
969
+ };
970
+ /**
971
+ * Get platform
972
+ * #### Controller:
973
+ *
974
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).getPlatform`
975
+ *
976
+ * #### Middlewares:
977
+ *
978
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
979
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
980
+ *
981
+ * ---
982
+ *
983
+ * Get platform by ID
984
+ */
985
+ export const platformGet = (options) => {
986
+ return (options.client ?? _heyApiClient).get({
987
+ url: "/api/v2/platforms/{platformId}",
988
+ ...options,
989
+ });
990
+ };
991
+ /**
992
+ * Update platform
993
+ * #### Controller:
994
+ *
995
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/platform.(*PlatformService).updatePlatform`
996
+ *
997
+ * #### Middlewares:
998
+ *
999
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1000
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1001
+ *
1002
+ * ---
1003
+ *
1004
+ * Update platform by ID
1005
+ */
1006
+ export const platformUpdate = (options) => {
1007
+ return (options.client ?? _heyApiClient).put({
1008
+ url: "/api/v2/platforms/{platformId}",
1009
+ ...options,
1010
+ headers: {
1011
+ "Content-Type": "*/*",
1012
+ ...options.headers,
1013
+ },
1014
+ });
1015
+ };
1016
+ /**
1017
+ * List proxies
1018
+ * #### Controller:
1019
+ *
1020
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).ListProxies`
1021
+ *
1022
+ * #### Middlewares:
1023
+ *
1024
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1025
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1026
+ *
1027
+ * ---
1028
+ *
1029
+ * Get a paginated list of proxies for the current tenant
1030
+ */
1031
+ export const proxyList = (options) => {
1032
+ return (options?.client ?? _heyApiClient).get({
1033
+ url: "/api/v2/proxies",
1034
+ ...options,
1035
+ });
1036
+ };
1037
+ /**
1038
+ * Upsert proxy
1039
+ * #### Controller:
1040
+ *
1041
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).UpsertProxy`
1042
+ *
1043
+ * #### Middlewares:
1044
+ *
1045
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1046
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1047
+ *
1048
+ * ---
1049
+ *
1050
+ * Create or update a proxy
1051
+ */
1052
+ export const proxyUpsert = (options) => {
1053
+ return (options.client ?? _heyApiClient).put({
1054
+ url: "/api/v2/proxies/upsert",
1055
+ ...options,
1056
+ headers: {
1057
+ "Content-Type": "*/*",
1058
+ ...options.headers,
1059
+ },
1060
+ });
1061
+ };
1062
+ /**
1063
+ * Delete proxy
1064
+ * #### Controller:
1065
+ *
1066
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).DeleteProxy`
1067
+ *
1068
+ * #### Middlewares:
1069
+ *
1070
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1071
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1072
+ *
1073
+ * ---
1074
+ *
1075
+ * Delete a proxy
1076
+ */
1077
+ export const proxyDelete = (options) => {
1078
+ return (options.client ?? _heyApiClient).delete({
1079
+ url: "/api/v2/proxies/{proxyId}",
1080
+ ...options,
1081
+ });
1082
+ };
1083
+ /**
1084
+ * Get proxy
1085
+ * #### Controller:
1086
+ *
1087
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/proxy.(*ProxyService).GetProxy`
1088
+ *
1089
+ * #### Middlewares:
1090
+ *
1091
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1092
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1093
+ *
1094
+ * ---
1095
+ *
1096
+ * Get a specific proxy by ID
1097
+ */
1098
+ export const proxyGet = (options) => {
1099
+ return (options.client ?? _heyApiClient).get({
1100
+ url: "/api/v2/proxies/{proxyId}",
1101
+ ...options,
1102
+ });
1103
+ };
1104
+ /**
1105
+ * Start Napcat sandbox
1106
+ * #### Controller:
1107
+ *
1108
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).startNapcatSandbox`
1109
+ *
1110
+ * #### Middlewares:
1111
+ *
1112
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1113
+ *
1114
+ * ---
1115
+ *
1116
+ * Start a Napcat sandbox instance
1117
+ */
1118
+ export const sandboxStartNapcat = (options) => {
1119
+ return (options.client ?? _heyApiClient).post({
1120
+ url: "/api/v2/sandbox/",
1121
+ ...options,
1122
+ headers: {
1123
+ "Content-Type": "*/*",
1124
+ ...options.headers,
1125
+ },
1126
+ });
1127
+ };
1128
+ /**
1129
+ * Check sandbox status
1130
+ * #### Controller:
1131
+ *
1132
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).checkSandboxStatus`
1133
+ *
1134
+ * #### Middlewares:
1135
+ *
1136
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1137
+ *
1138
+ * ---
1139
+ *
1140
+ * Check the status of specified sandbox instances
1141
+ */
1142
+ export const napcatCheckStatus = (options) => {
1143
+ return (options.client ?? _heyApiClient).post({
1144
+ url: "/api/v2/sandbox/check-status",
1145
+ ...options,
1146
+ headers: {
1147
+ "Content-Type": "*/*",
1148
+ ...options.headers,
1149
+ },
1150
+ });
1151
+ };
1152
+ /**
1153
+ * List sandbox services
1154
+ * #### Controller:
1155
+ *
1156
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).listSbServices`
1157
+ *
1158
+ * #### Middlewares:
1159
+ *
1160
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1161
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1162
+ *
1163
+ * ---
1164
+ *
1165
+ * Get a paginated list of sandbox services for the current tenant
1166
+ */
1167
+ export const sbServiceList = (options) => {
1168
+ return (options?.client ?? _heyApiClient).get({
1169
+ url: "/api/v2/sbservices",
1170
+ ...options,
1171
+ });
1172
+ };
1173
+ /**
1174
+ * Create sandbox service
1175
+ * #### Controller:
1176
+ *
1177
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).createSbService`
1178
+ *
1179
+ * #### Middlewares:
1180
+ *
1181
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1182
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1183
+ *
1184
+ * ---
1185
+ *
1186
+ * Create a new sandbox service
1187
+ */
1188
+ export const sbServiceCreate = (options) => {
1189
+ return (options.client ?? _heyApiClient).post({
1190
+ url: "/api/v2/sbservices",
1191
+ ...options,
1192
+ headers: {
1193
+ "Content-Type": "*/*",
1194
+ ...options.headers,
1195
+ },
1196
+ });
1197
+ };
1198
+ /**
1199
+ * Get available service types
1200
+ * #### Controller:
1201
+ *
1202
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).getServiceTypes`
1203
+ *
1204
+ * #### Middlewares:
1205
+ *
1206
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1207
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1208
+ *
1209
+ * ---
1210
+ *
1211
+ * Get a list of available service types for sandbox services
1212
+ */
1213
+ export const sbServiceGetServiceTypes = (options) => {
1214
+ return (options?.client ?? _heyApiClient).get({
1215
+ url: "/api/v2/sbservices/service-types",
1216
+ ...options,
1217
+ });
1218
+ };
1219
+ /**
1220
+ * Delete sandbox service
1221
+ * #### Controller:
1222
+ *
1223
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).deleteSbService`
1224
+ *
1225
+ * #### Middlewares:
1226
+ *
1227
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1228
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1229
+ *
1230
+ * ---
1231
+ *
1232
+ * Delete a sandbox service
1233
+ */
1234
+ export const sbServiceDelete = (options) => {
1235
+ return (options.client ?? _heyApiClient).delete({
1236
+ url: "/api/v2/sbservices/{serviceId}",
1237
+ ...options,
1238
+ });
1239
+ };
1240
+ /**
1241
+ * Get sandbox service
1242
+ * #### Controller:
1243
+ *
1244
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/sbservice.(*SbServiceService).getSbService`
1245
+ *
1246
+ * #### Middlewares:
1247
+ *
1248
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1249
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1250
+ *
1251
+ * ---
1252
+ *
1253
+ * Get a specific sandbox service by ID
1254
+ */
1255
+ export const sbServiceGet = (options) => {
1256
+ return (options.client ?? _heyApiClient).get({
1257
+ url: "/api/v2/sbservices/{serviceId}",
1258
+ ...options,
1259
+ });
1260
+ };
1261
+ /**
1262
+ * Get current session
1263
+ * #### Controller:
1264
+ *
1265
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/session.(*SessionService).getSession`
1266
+ *
1267
+ * #### Middlewares:
1268
+ *
1269
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1270
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1271
+ *
1272
+ * ---
1273
+ *
1274
+ * Get current user session information including user ID and tenant ID
1275
+ */
1276
+ export const sessionGetCurrent = (options) => {
1277
+ return (options?.client ?? _heyApiClient).get({
1278
+ url: "/api/v2/session/current",
1279
+ ...options,
1280
+ });
1281
+ };
1282
+ /**
1283
+ * Get current user
1284
+ * #### Controller:
1285
+ *
1286
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/users.(*UserService).getCurrentUser`
1287
+ *
1288
+ * #### Middlewares:
1289
+ *
1290
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1291
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1292
+ *
1293
+ * ---
1294
+ *
1295
+ * Get current user information
1296
+ */
1297
+ export const userGetCurrent = (options) => {
1298
+ return (options?.client ?? _heyApiClient).get({
1299
+ url: "/api/v2/users/current",
1300
+ ...options,
1301
+ });
1302
+ };
1303
+ /**
1304
+ * Proxy WebUI GET requests
1305
+ * #### Controller:
1306
+ *
1307
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1308
+ *
1309
+ * #### Middlewares:
1310
+ *
1311
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1312
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1313
+ *
1314
+ * ---
1315
+ *
1316
+ * Proxy all WebUI GET requests to napcat WebUI server
1317
+ */
1318
+ export const napcatProxyWebUiget = (options) => {
1319
+ return (options?.client ?? _heyApiClient).get({
1320
+ url: "/api/v2/webui/*",
1321
+ ...options,
1322
+ });
1323
+ };
1324
+ /**
1325
+ * Proxy WebUI POST requests
1326
+ * #### Controller:
1327
+ *
1328
+ * `github.com/codeh007/gomtm/mtm/api/v2/handlers/napcat.(*NapcatService).ProxyToWebUI`
1329
+ *
1330
+ * #### Middlewares:
1331
+ *
1332
+ * - `github.com/go-fuego/fuego.defaultLogger.middleware`
1333
+ * - `github.com/codeh007/gomtm/mtm/api/v2.NewServer.AuthMiddleware.func4`
1334
+ *
1335
+ * ---
1336
+ *
1337
+ * Proxy all WebUI POST requests to napcat WebUI server
1338
+ */
1339
+ export const napcatProxyWebUipost = (options) => {
1340
+ return (options?.client ?? _heyApiClient).post({
1341
+ url: "/api/v2/webui/*",
1342
+ ...options,
1343
+ });
1344
+ };
1345
+ //# sourceMappingURL=sdk.gen.js.map