mtmsdk 0.0.13 → 0.0.15

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 (135) hide show
  1. package/dist/gomtmapi/zod.gen.d.ts +17 -17
  2. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +61 -0
  3. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  4. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +61 -0
  5. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  6. package/dist/gomtmapi_v2/client/index.d.ts +1 -0
  7. package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
  8. package/dist/gomtmapi_v2/client/index.js +1 -0
  9. package/dist/gomtmapi_v2/client/index.js.map +1 -1
  10. package/dist/gomtmapi_v2/client/utils.gen.d.ts +1 -1
  11. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -1
  12. package/dist/gomtmapi_v2/client/utils.gen.js +7 -6
  13. package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -1
  14. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts +12 -4
  15. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +1 -1
  16. package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +1 -1
  17. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts +19 -0
  18. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts.map +1 -0
  19. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js +100 -0
  20. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js.map +1 -0
  21. package/dist/gomtmapi_v2/sdk.gen.d.ts +59 -0
  22. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  23. package/dist/gomtmapi_v2/sdk.gen.js +59 -0
  24. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  25. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +983 -929
  26. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  27. package/dist/mtgate_api/@tanstack/react-query.gen.js +876 -387
  28. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  29. package/dist/mtgate_api/client/index.d.ts +1 -0
  30. package/dist/mtgate_api/client/index.d.ts.map +1 -1
  31. package/dist/mtgate_api/client/index.js +1 -0
  32. package/dist/mtgate_api/client/index.js.map +1 -1
  33. package/dist/mtgate_api/client/utils.gen.d.ts +1 -1
  34. package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -1
  35. package/dist/mtgate_api/client/utils.gen.js +7 -6
  36. package/dist/mtgate_api/client/utils.gen.js.map +1 -1
  37. package/dist/mtgate_api/core/bodySerializer.gen.d.ts +12 -4
  38. package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +1 -1
  39. package/dist/mtgate_api/core/bodySerializer.gen.js.map +1 -1
  40. package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts +19 -0
  41. package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts.map +1 -0
  42. package/dist/mtgate_api/core/queryKeySerializer.gen.js +100 -0
  43. package/dist/mtgate_api/core/queryKeySerializer.gen.js.map +1 -0
  44. package/dist/mtgate_api/schemas.gen.d.ts +2258 -483
  45. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  46. package/dist/mtgate_api/schemas.gen.js +2344 -492
  47. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  48. package/dist/mtgate_api/sdk.gen.d.ts +94 -26
  49. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  50. package/dist/mtgate_api/sdk.gen.js +554 -100
  51. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  52. package/dist/mtgate_api/types.gen.d.ts +3608 -1167
  53. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  54. package/dist/mtgate_api/types.gen.js +3 -0
  55. package/dist/mtgate_api/types.gen.js.map +1 -1
  56. package/dist/mtgate_api/zod.gen.d.ts +4374 -1328
  57. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  58. package/dist/mtgate_api/zod.gen.js +2078 -629
  59. package/dist/mtgate_api/zod.gen.js.map +1 -1
  60. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +23 -0
  61. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
  62. package/dist/mtmai_api/@tanstack/react-query.gen.js +23 -0
  63. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
  64. package/dist/mtmai_api/client/index.d.ts +1 -0
  65. package/dist/mtmai_api/client/index.d.ts.map +1 -1
  66. package/dist/mtmai_api/client/index.js +1 -0
  67. package/dist/mtmai_api/client/index.js.map +1 -1
  68. package/dist/mtmai_api/client/utils.gen.d.ts +1 -1
  69. package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -1
  70. package/dist/mtmai_api/client/utils.gen.js +7 -6
  71. package/dist/mtmai_api/client/utils.gen.js.map +1 -1
  72. package/dist/mtmai_api/core/bodySerializer.gen.d.ts +12 -4
  73. package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +1 -1
  74. package/dist/mtmai_api/core/bodySerializer.gen.js.map +1 -1
  75. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +19 -0
  76. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +1 -0
  77. package/dist/mtmai_api/core/queryKeySerializer.gen.js +100 -0
  78. package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +1 -0
  79. package/dist/mtmai_api/sdk.gen.d.ts +23 -0
  80. package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
  81. package/dist/mtmai_api/sdk.gen.js +23 -0
  82. package/dist/mtmai_api/sdk.gen.js.map +1 -1
  83. package/dist/mtmai_api/types.gen.d.ts +552 -0
  84. package/dist/mtmai_api/types.gen.d.ts.map +1 -1
  85. package/dist/mtmai_api/types.gen.js +19 -0
  86. package/dist/mtmai_api/types.gen.js.map +1 -1
  87. package/dist/mtmai_api/zod.gen.d.ts +18866 -18674
  88. package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
  89. package/dist/mtmai_api/zod.gen.js +1826 -1634
  90. package/dist/mtmai_api/zod.gen.js.map +1 -1
  91. package/package.json +28 -5
  92. package/dist/components/MustAdmin.d.ts +0 -14
  93. package/dist/components/MustAdmin.d.ts.map +0 -1
  94. package/dist/components/MustAdmin.js +0 -37
  95. package/dist/components/MustAdmin.js.map +0 -1
  96. package/dist/lib/adk-utils.d.ts +0 -19
  97. package/dist/lib/adk-utils.d.ts.map +0 -1
  98. package/dist/lib/adk-utils.js +0 -50
  99. package/dist/lib/adk-utils.js.map +0 -1
  100. package/dist/lib/auth-client.d.ts +0 -5965
  101. package/dist/lib/auth-client.d.ts.map +0 -1
  102. package/dist/lib/auth-client.js +0 -29
  103. package/dist/lib/auth-client.js.map +0 -1
  104. package/dist/lib/get-query-client.d.ts +0 -3
  105. package/dist/lib/get-query-client.d.ts.map +0 -1
  106. package/dist/lib/get-query-client.js +0 -23
  107. package/dist/lib/get-query-client.js.map +0 -1
  108. package/dist/lib/mtgate_client_ss.d.ts +0 -10
  109. package/dist/lib/mtgate_client_ss.d.ts.map +0 -1
  110. package/dist/lib/mtgate_client_ss.js +0 -24
  111. package/dist/lib/mtgate_client_ss.js.map +0 -1
  112. package/dist/store/AuthProviders.d.ts +0 -8
  113. package/dist/store/AuthProviders.d.ts.map +0 -1
  114. package/dist/store/AuthProviders.js +0 -34
  115. package/dist/store/AuthProviders.js.map +0 -1
  116. package/dist/store/GomtmProvider.d.ts +0 -10
  117. package/dist/store/GomtmProvider.d.ts.map +0 -1
  118. package/dist/store/GomtmProvider.js +0 -24
  119. package/dist/store/GomtmProvider.js.map +0 -1
  120. package/dist/store/GomtmV1Provider.d.ts +0 -10
  121. package/dist/store/GomtmV1Provider.d.ts.map +0 -1
  122. package/dist/store/GomtmV1Provider.js +0 -24
  123. package/dist/store/GomtmV1Provider.js.map +0 -1
  124. package/dist/store/MtgateProvider.d.ts +0 -6015
  125. package/dist/store/MtgateProvider.d.ts.map +0 -1
  126. package/dist/store/MtgateProvider.js +0 -76
  127. package/dist/store/MtgateProvider.js.map +0 -1
  128. package/dist/store/MtmsdkProvider.d.ts +0 -16
  129. package/dist/store/MtmsdkProvider.d.ts.map +0 -1
  130. package/dist/store/MtmsdkProvider.js +0 -47
  131. package/dist/store/MtmsdkProvider.js.map +0 -1
  132. package/dist/store/ReactQueryMtmaiApiProvider.d.ts +0 -10
  133. package/dist/store/ReactQueryMtmaiApiProvider.d.ts.map +0 -1
  134. package/dist/store/ReactQueryMtmaiApiProvider.js +0 -23
  135. package/dist/store/ReactQueryMtmaiApiProvider.js.map +0 -1
@@ -16,12 +16,6 @@ export const agentChatbotCreate = (options) => {
16
16
  },
17
17
  });
18
18
  };
19
- export const agentChatbotDelete = (options) => {
20
- return (options.client ?? client).delete({
21
- url: "/api/cf/agents/chatbot/chatbot/{id}",
22
- ...options,
23
- });
24
- };
25
19
  export const agentChatbotGet = (options) => {
26
20
  return (options.client ?? client).get({
27
21
  url: "/api/cf/agents/chatbot/chatbot/{id}",
@@ -38,31 +32,59 @@ export const agentChatbotUpdate = (options) => {
38
32
  },
39
33
  });
40
34
  };
35
+ export const agentChatbotDelete = (options) => {
36
+ return (options?.client ?? client).post({
37
+ url: "/api/cf/agents/chatbot/chatbot/delete",
38
+ ...options,
39
+ headers: {
40
+ "Content-Type": "application/json",
41
+ ...options?.headers,
42
+ },
43
+ });
44
+ };
41
45
  export const workerAgentStartNapcat = (options) => {
42
46
  return (options?.client ?? client).get({
43
47
  url: "/api/cf/agents/worker-agent/agents/worker-agent/start-napcat",
44
48
  ...options,
45
49
  });
46
50
  };
47
- export const agentHandlerGetInfo = (options) => {
48
- return (options?.client ?? client).post({
49
- url: "/api/cf/agents/agents-handlers/agent_info",
51
+ export const agentGomtmAgentGetState = (options) => {
52
+ return (options.client ?? client).get({
53
+ url: "/api/cf/agents/gomtm-agent/{name}",
54
+ ...options,
55
+ });
56
+ };
57
+ export const agentGomtmAgentSetState = (options) => {
58
+ return (options.client ?? client).post({
59
+ url: "/api/cf/agents/gomtm-agent/{name}/state",
50
60
  ...options,
51
61
  headers: {
52
62
  "Content-Type": "application/json",
53
- ...options?.headers,
63
+ ...options.headers,
54
64
  },
55
65
  });
56
66
  };
57
- export const a2aGetAgentCard = (options) => {
67
+ export const agentTypesList = (options) => {
68
+ return (options?.client ?? client).get({
69
+ url: "/api/cf/agent-types",
70
+ ...options,
71
+ });
72
+ };
73
+ export const agentsList = (options) => {
58
74
  return (options.client ?? client).get({
59
- url: "/api/cf/agents/a2a/{agent}/.well-known/agent-card.json",
75
+ url: "/api/cf/agents/{orgId}/list",
60
76
  ...options,
61
77
  });
62
78
  };
63
- export const a2aRpc = (options) => {
64
- return (options.client ?? client).post({
65
- url: "/api/cf/agents/a2a/{agent}",
79
+ export const agentsGet = (options) => {
80
+ return (options.client ?? client).get({
81
+ url: "/api/cf/agents/{orgId}/{id}",
82
+ ...options,
83
+ });
84
+ };
85
+ export const agentsUpdate = (options) => {
86
+ return (options.client ?? client).put({
87
+ url: "/api/cf/agents/{orgId}/{id}",
66
88
  ...options,
67
89
  headers: {
68
90
  "Content-Type": "application/json",
@@ -70,37 +92,41 @@ export const a2aRpc = (options) => {
70
92
  },
71
93
  });
72
94
  };
73
- export const browsersList = (options) => {
74
- return (options?.client ?? client).get({
75
- url: "/api/cf/browsers",
95
+ export const agentsCreate = (options) => {
96
+ return (options.client ?? client).post({
97
+ url: "/api/cf/agents/{orgId}",
76
98
  ...options,
99
+ headers: {
100
+ "Content-Type": "application/json",
101
+ ...options.headers,
102
+ },
77
103
  });
78
104
  };
79
- export const browsersCreate = (options) => {
80
- return (options?.client ?? client).post({
81
- url: "/api/cf/browsers",
105
+ export const agentsDelete = (options) => {
106
+ return (options.client ?? client).post({
107
+ url: "/api/cf/agents/{orgId}/delete",
82
108
  ...options,
83
109
  headers: {
84
110
  "Content-Type": "application/json",
85
- ...options?.headers,
111
+ ...options.headers,
86
112
  },
87
113
  });
88
114
  };
89
- export const browsersDelete = (options) => {
90
- return (options.client ?? client).delete({
91
- url: "/api/cf/browsers/{browserId}",
115
+ export const browsersList = (options) => {
116
+ return (options.client ?? client).get({
117
+ url: "/api/cf/browsers/{orgId}/list",
92
118
  ...options,
93
119
  });
94
120
  };
95
121
  export const browsersGet = (options) => {
96
122
  return (options.client ?? client).get({
97
- url: "/api/cf/browsers/{browserId}",
123
+ url: "/api/cf/browsers/{orgId}/{browserId}",
98
124
  ...options,
99
125
  });
100
126
  };
101
127
  export const browsersUpdate = (options) => {
102
128
  return (options.client ?? client).put({
103
- url: "/api/cf/browsers/{browserId}",
129
+ url: "/api/cf/browsers/{orgId}/{browserId}",
104
130
  ...options,
105
131
  headers: {
106
132
  "Content-Type": "application/json",
@@ -108,37 +134,41 @@ export const browsersUpdate = (options) => {
108
134
  },
109
135
  });
110
136
  };
111
- export const pAccountsList = (options) => {
112
- return (options.client ?? client).get({
113
- url: "/api/cf/p-accounts",
137
+ export const browsersCreate = (options) => {
138
+ return (options.client ?? client).post({
139
+ url: "/api/cf/browsers/{orgId}",
114
140
  ...options,
141
+ headers: {
142
+ "Content-Type": "application/json",
143
+ ...options.headers,
144
+ },
115
145
  });
116
146
  };
117
- export const pAccountsCreate = (options) => {
118
- return (options?.client ?? client).post({
119
- url: "/api/cf/p-accounts",
147
+ export const browsersDelete = (options) => {
148
+ return (options.client ?? client).post({
149
+ url: "/api/cf/browsers/{orgId}/delete",
120
150
  ...options,
121
151
  headers: {
122
152
  "Content-Type": "application/json",
123
- ...options?.headers,
153
+ ...options.headers,
124
154
  },
125
155
  });
126
156
  };
127
- export const pAccountsDelete = (options) => {
128
- return (options.client ?? client).delete({
129
- url: "/api/cf/p-accounts/{id}",
157
+ export const pAccountsList = (options) => {
158
+ return (options.client ?? client).get({
159
+ url: "/api/cf/p-accounts/{orgId}/list",
130
160
  ...options,
131
161
  });
132
162
  };
133
163
  export const pAccountsGet = (options) => {
134
164
  return (options.client ?? client).get({
135
- url: "/api/cf/p-accounts/{id}",
165
+ url: "/api/cf/p-accounts/{orgId}/{id}",
136
166
  ...options,
137
167
  });
138
168
  };
139
169
  export const pAccountsUpdate = (options) => {
140
170
  return (options.client ?? client).put({
141
- url: "/api/cf/p-accounts/{id}",
171
+ url: "/api/cf/p-accounts/{orgId}/{id}",
142
172
  ...options,
143
173
  headers: {
144
174
  "Content-Type": "application/json",
@@ -146,37 +176,41 @@ export const pAccountsUpdate = (options) => {
146
176
  },
147
177
  });
148
178
  };
149
- export const platformsList = (options) => {
150
- return (options?.client ?? client).get({
151
- url: "/api/cf/platforms",
179
+ export const pAccountsCreate = (options) => {
180
+ return (options.client ?? client).post({
181
+ url: "/api/cf/p-accounts/{orgId}",
152
182
  ...options,
183
+ headers: {
184
+ "Content-Type": "application/json",
185
+ ...options.headers,
186
+ },
153
187
  });
154
188
  };
155
- export const platformsCreate = (options) => {
156
- return (options?.client ?? client).post({
157
- url: "/api/cf/platforms",
189
+ export const pAccountsDelete = (options) => {
190
+ return (options.client ?? client).post({
191
+ url: "/api/cf/p-accounts/{orgId}/delete",
158
192
  ...options,
159
193
  headers: {
160
194
  "Content-Type": "application/json",
161
- ...options?.headers,
195
+ ...options.headers,
162
196
  },
163
197
  });
164
198
  };
165
- export const platformsDelete = (options) => {
166
- return (options.client ?? client).delete({
167
- url: "/api/cf/platforms/{id}",
199
+ export const platformsList = (options) => {
200
+ return (options.client ?? client).get({
201
+ url: "/api/cf/platforms/{orgId}/list",
168
202
  ...options,
169
203
  });
170
204
  };
171
205
  export const platformsGet = (options) => {
172
206
  return (options.client ?? client).get({
173
- url: "/api/cf/platforms/{id}",
207
+ url: "/api/cf/platforms/{orgId}/{id}",
174
208
  ...options,
175
209
  });
176
210
  };
177
211
  export const platformsUpdate = (options) => {
178
212
  return (options.client ?? client).put({
179
- url: "/api/cf/platforms/{id}",
213
+ url: "/api/cf/platforms/{orgId}/{id}",
180
214
  ...options,
181
215
  headers: {
182
216
  "Content-Type": "application/json",
@@ -184,53 +218,61 @@ export const platformsUpdate = (options) => {
184
218
  },
185
219
  });
186
220
  };
187
- export const proxiesList = (options) => {
188
- return (options?.client ?? client).get({
189
- url: "/api/cf/proxies",
221
+ export const platformsDelete = (options) => {
222
+ return (options.client ?? client).post({
223
+ url: "/api/cf/platforms/{orgId}/delete",
190
224
  ...options,
225
+ headers: {
226
+ "Content-Type": "application/json",
227
+ ...options.headers,
228
+ },
191
229
  });
192
230
  };
193
- export const proxiesDelete = (options) => {
194
- return (options.client ?? client).delete({
195
- url: "/api/cf/proxies/{proxyId}",
231
+ export const platformsCreate = (options) => {
232
+ return (options.client ?? client).post({
233
+ url: "/api/cf/platforms/{orgId}",
234
+ ...options,
235
+ headers: {
236
+ "Content-Type": "application/json",
237
+ ...options.headers,
238
+ },
239
+ });
240
+ };
241
+ export const proxiesList = (options) => {
242
+ return (options.client ?? client).get({
243
+ url: "/api/cf/proxies/{orgId}/list",
196
244
  ...options,
197
245
  });
198
246
  };
199
247
  export const proxiesGet = (options) => {
200
248
  return (options.client ?? client).get({
201
- url: "/api/cf/proxies/{proxyId}",
249
+ url: "/api/cf/proxies/{orgId}/{proxyId}",
202
250
  ...options,
203
251
  });
204
252
  };
205
- export const proxiesUpsert = (options) => {
206
- return (options?.client ?? client).put({
207
- url: "/api/cf/proxies/upsert",
253
+ export const proxiesDelete = (options) => {
254
+ return (options.client ?? client).post({
255
+ url: "/api/cf/proxies/{orgId}/delete",
208
256
  ...options,
209
257
  headers: {
210
258
  "Content-Type": "application/json",
211
- ...options?.headers,
259
+ ...options.headers,
212
260
  },
213
261
  });
214
262
  };
215
- export const sandboxList = (options) => {
216
- return (options?.client ?? client).get({
217
- url: "/api/cf/sandboxes",
218
- ...options,
219
- });
220
- };
221
- export const sandboxCreate = (options) => {
222
- return (options?.client ?? client).post({
223
- url: "/api/cf/sandboxes",
263
+ export const proxiesUpsert = (options) => {
264
+ return (options.client ?? client).put({
265
+ url: "/api/cf/proxies/{orgId}/upsert",
224
266
  ...options,
225
267
  headers: {
226
268
  "Content-Type": "application/json",
227
- ...options?.headers,
269
+ ...options.headers,
228
270
  },
229
271
  });
230
272
  };
231
- export const sandboxDelete = (options) => {
232
- return (options.client ?? client).delete({
233
- url: "/api/cf/sandboxes/{id}",
273
+ export const sandboxList = (options) => {
274
+ return (options.client ?? client).get({
275
+ url: "/api/cf/sandboxes/{orgId}/list",
234
276
  ...options,
235
277
  });
236
278
  };
@@ -250,6 +292,26 @@ export const sandboxUpdate = (options) => {
250
292
  },
251
293
  });
252
294
  };
295
+ export const sandboxCreate = (options) => {
296
+ return (options?.client ?? client).post({
297
+ url: "/api/cf/sandboxes",
298
+ ...options,
299
+ headers: {
300
+ "Content-Type": "application/json",
301
+ ...options?.headers,
302
+ },
303
+ });
304
+ };
305
+ export const sandboxDelete = (options) => {
306
+ return (options?.client ?? client).post({
307
+ url: "/api/cf/sandboxes/delete",
308
+ ...options,
309
+ headers: {
310
+ "Content-Type": "application/json",
311
+ ...options?.headers,
312
+ },
313
+ });
314
+ };
253
315
  export const sandboxStart = (options) => {
254
316
  return (options.client ?? client).post({
255
317
  url: "/api/cf/sandboxes/{id}/start",
@@ -276,12 +338,162 @@ export const dashuiGet = (options) => {
276
338
  ...options,
277
339
  });
278
340
  };
341
+ export const hatchetListWorkflows = (options) => {
342
+ return (options.client ?? client).get({
343
+ url: "/api/cf/hatchet/workflows/{tenantId}",
344
+ ...options,
345
+ });
346
+ };
347
+ export const hatchetGetWorkflow = (options) => {
348
+ return (options.client ?? client).get({
349
+ url: "/api/cf/hatchet/workflows/{workflowId}/detail",
350
+ ...options,
351
+ });
352
+ };
353
+ export const hatchetTriggerWorkflow = (options) => {
354
+ return (options.client ?? client).post({
355
+ url: "/api/cf/hatchet/workflows/{workflowId}/trigger",
356
+ ...options,
357
+ headers: {
358
+ "Content-Type": "application/json",
359
+ ...options.headers,
360
+ },
361
+ });
362
+ };
363
+ export const hatchetListWorkflowsAuto = (options) => {
364
+ return (options?.client ?? client).get({
365
+ url: "/api/cf/hatchet/workflows",
366
+ ...options,
367
+ });
368
+ };
369
+ export const organizationsList = (options) => {
370
+ return (options?.client ?? client).get({
371
+ url: "/api/cf/organizations",
372
+ ...options,
373
+ });
374
+ };
375
+ export const organizationsCreate = (options) => {
376
+ return (options?.client ?? client).post({
377
+ url: "/api/cf/organizations",
378
+ ...options,
379
+ headers: {
380
+ "Content-Type": "application/json",
381
+ ...options?.headers,
382
+ },
383
+ });
384
+ };
385
+ export const organizationsGet = (options) => {
386
+ return (options.client ?? client).get({
387
+ url: "/api/cf/organizations/{orgId}",
388
+ ...options,
389
+ });
390
+ };
391
+ export const organizationsUpdate = (options) => {
392
+ return (options.client ?? client).put({
393
+ url: "/api/cf/organizations/{orgId}",
394
+ ...options,
395
+ headers: {
396
+ "Content-Type": "application/json",
397
+ ...options.headers,
398
+ },
399
+ });
400
+ };
401
+ export const organizationsDelete = (options) => {
402
+ return (options?.client ?? client).post({
403
+ url: "/api/cf/organizations/delete",
404
+ ...options,
405
+ headers: {
406
+ "Content-Type": "application/json",
407
+ ...options?.headers,
408
+ },
409
+ });
410
+ };
411
+ export const organizationsInviteMember = (options) => {
412
+ return (options.client ?? client).post({
413
+ url: "/api/cf/organizations/{orgId}/invite",
414
+ ...options,
415
+ headers: {
416
+ "Content-Type": "application/json",
417
+ ...options.headers,
418
+ },
419
+ });
420
+ };
421
+ export const organizationsListMembers = (options) => {
422
+ return (options.client ?? client).get({
423
+ url: "/api/cf/organizations/{orgId}/members",
424
+ ...options,
425
+ });
426
+ };
427
+ export const organizationsListInvitations = (options) => {
428
+ return (options.client ?? client).get({
429
+ url: "/api/cf/organizations/{orgId}/invitations",
430
+ ...options,
431
+ });
432
+ };
433
+ export const organizationsRemoveMembers = (options) => {
434
+ return (options.client ?? client).post({
435
+ url: "/api/cf/organizations/{orgId}/members/delete",
436
+ ...options,
437
+ headers: {
438
+ "Content-Type": "application/json",
439
+ ...options.headers,
440
+ },
441
+ });
442
+ };
443
+ export const organizationsUpdateMemberRole = (options) => {
444
+ return (options.client ?? client).put({
445
+ url: "/api/cf/organizations/{orgId}/members/{userId}/role",
446
+ ...options,
447
+ headers: {
448
+ "Content-Type": "application/json",
449
+ ...options.headers,
450
+ },
451
+ });
452
+ };
453
+ export const organizationsAcceptInvitation = (options) => {
454
+ return (options.client ?? client).post({
455
+ url: "/api/cf/invitations/{orgId}/accept",
456
+ ...options,
457
+ });
458
+ };
459
+ export const organizationsRejectInvitation = (options) => {
460
+ return (options.client ?? client).post({
461
+ url: "/api/cf/invitations/{orgId}/reject",
462
+ ...options,
463
+ });
464
+ };
465
+ export const organizationsCancelInvitations = (options) => {
466
+ return (options?.client ?? client).post({
467
+ url: "/api/cf/invitations/delete",
468
+ ...options,
469
+ headers: {
470
+ "Content-Type": "application/json",
471
+ ...options?.headers,
472
+ },
473
+ });
474
+ };
279
475
  export const sysConfig = (options) => {
280
476
  return (options?.client ?? client).get({
281
477
  url: "/api/cf/sys/config",
282
478
  ...options,
283
479
  });
284
480
  };
481
+ export const sysGetSettings = (options) => {
482
+ return (options?.client ?? client).get({
483
+ url: "/api/cf/sys/settings",
484
+ ...options,
485
+ });
486
+ };
487
+ export const sysSaveSettings = (options) => {
488
+ return (options?.client ?? client).post({
489
+ url: "/api/cf/sys/settings",
490
+ ...options,
491
+ headers: {
492
+ "Content-Type": "application/json",
493
+ ...options?.headers,
494
+ },
495
+ });
496
+ };
285
497
  export const setupStatus = (options) => {
286
498
  return (options?.client ?? client).get({
287
499
  url: "/api/cf/setup/status",
@@ -300,25 +512,45 @@ export const setupInitialize = (options) => {
300
512
  };
301
513
  export const configGomtmGet = (options) => {
302
514
  return (options?.client ?? client).get({
303
- url: "/api/cf/configs/gomtm_config/{name}",
515
+ url: "/api/cf/configs/gomtm_config/{id}",
304
516
  ...options,
305
517
  });
306
518
  };
307
- export const singboxConfigGet = (options) => {
519
+ export const configMtgateProfilesList = (options) => {
520
+ return (options?.client ?? client).get({
521
+ url: "/api/cf/configs/mtgate_profiles",
522
+ ...options,
523
+ });
524
+ };
525
+ export const configMtgateProfilesCreate = (options) => {
526
+ return (options?.client ?? client).post({
527
+ url: "/api/cf/configs/mtgate_profiles",
528
+ ...options,
529
+ headers: {
530
+ "Content-Type": "application/json",
531
+ ...options?.headers,
532
+ },
533
+ });
534
+ };
535
+ export const configMtgateProfilesGet = (options) => {
308
536
  return (options.client ?? client).get({
309
- url: "/api/cf/tunnel/singbox/{name}",
537
+ url: "/api/cf/configs/mtgate_profiles/{id}",
310
538
  ...options,
311
539
  });
312
540
  };
313
- export const siteList = (options) => {
314
- return (options?.client ?? client).get({
315
- url: "/api/cf/site",
541
+ export const configMtgateProfilesUpdate = (options) => {
542
+ return (options.client ?? client).put({
543
+ url: "/api/cf/configs/mtgate_profiles/{id}",
316
544
  ...options,
545
+ headers: {
546
+ "Content-Type": "application/json",
547
+ ...options.headers,
548
+ },
317
549
  });
318
550
  };
319
- export const siteCreate = (options) => {
551
+ export const configMtgateProfilesDelete = (options) => {
320
552
  return (options?.client ?? client).post({
321
- url: "/api/cf/site",
553
+ url: "/api/cf/configs/mtgate_profiles/delete",
322
554
  ...options,
323
555
  headers: {
324
556
  "Content-Type": "application/json",
@@ -326,21 +558,67 @@ export const siteCreate = (options) => {
326
558
  },
327
559
  });
328
560
  };
329
- export const siteDelete = (options) => {
330
- return (options.client ?? client).delete({
331
- url: "/api/cf/site/{id}",
561
+ export const configMtgateProfilesExport = (options) => {
562
+ return (options?.client ?? client).post({
563
+ url: "/api/cf/configs/mtgate_profiles/export",
332
564
  ...options,
565
+ headers: {
566
+ "Content-Type": "application/json",
567
+ ...options?.headers,
568
+ },
569
+ });
570
+ };
571
+ export const configMtgateProfilesImport = (options) => {
572
+ return (options?.client ?? client).post({
573
+ url: "/api/cf/configs/mtgate_profiles/import",
574
+ ...options,
575
+ headers: {
576
+ "Content-Type": "application/json",
577
+ ...options?.headers,
578
+ },
579
+ });
580
+ };
581
+ export const singboxConfigGet = (options) => {
582
+ return (options.client ?? client).get({
583
+ url: "/api/cf/tunnel/singbox/{name}",
584
+ ...options,
585
+ });
586
+ };
587
+ export const sitesList = (options) => {
588
+ return (options.client ?? client).get({
589
+ url: "/api/cf/sites/{orgId}/list",
590
+ ...options,
591
+ });
592
+ };
593
+ export const sitesCreate = (options) => {
594
+ return (options.client ?? client).post({
595
+ url: "/api/cf/sites/{orgId}",
596
+ ...options,
597
+ headers: {
598
+ "Content-Type": "application/json",
599
+ ...options.headers,
600
+ },
333
601
  });
334
602
  };
335
- export const siteGet = (options) => {
603
+ export const sitesGet = (options) => {
336
604
  return (options.client ?? client).get({
337
- url: "/api/cf/site/{id}",
605
+ url: "/api/cf/sites/{orgId}/{id}",
338
606
  ...options,
339
607
  });
340
608
  };
341
- export const siteUpdate = (options) => {
609
+ export const sitesUpdate = (options) => {
342
610
  return (options.client ?? client).put({
343
- url: "/api/cf/site/{id}",
611
+ url: "/api/cf/sites/{orgId}/{id}",
612
+ ...options,
613
+ headers: {
614
+ "Content-Type": "application/json",
615
+ ...options.headers,
616
+ },
617
+ });
618
+ };
619
+ export const sitesDelete = (options) => {
620
+ return (options.client ?? client).post({
621
+ url: "/api/cf/sites/{orgId}/delete",
344
622
  ...options,
345
623
  headers: {
346
624
  "Content-Type": "application/json",
@@ -364,12 +642,6 @@ export const blogPostsCreate = (options) => {
364
642
  },
365
643
  });
366
644
  };
367
- export const blogPostsDelete = (options) => {
368
- return (options.client ?? client).delete({
369
- url: "/api/cf/posts/{id}",
370
- ...options,
371
- });
372
- };
373
645
  export const blogPostsGetById = (options) => {
374
646
  return (options.client ?? client).get({
375
647
  url: "/api/cf/posts/{id}",
@@ -392,15 +664,25 @@ export const blogPostsGetBySlug = (options) => {
392
664
  ...options,
393
665
  });
394
666
  };
667
+ export const blogPostsDelete = (options) => {
668
+ return (options?.client ?? client).post({
669
+ url: "/api/cf/posts/delete",
670
+ ...options,
671
+ headers: {
672
+ "Content-Type": "application/json",
673
+ ...options?.headers,
674
+ },
675
+ });
676
+ };
395
677
  export const sitehostList = (options) => {
396
678
  return (options.client ?? client).get({
397
- url: "/api/cf/site-hosts/{id}",
679
+ url: "/api/cf/site-hosts/{orgId}/{siteId}",
398
680
  ...options,
399
681
  });
400
682
  };
401
683
  export const sitehostCreate = (options) => {
402
684
  return (options.client ?? client).post({
403
- url: "/api/cf/site-hosts/{id}",
685
+ url: "/api/cf/site-hosts/{orgId}/{siteId}",
404
686
  ...options,
405
687
  headers: {
406
688
  "Content-Type": "application/json",
@@ -409,13 +691,18 @@ export const sitehostCreate = (options) => {
409
691
  });
410
692
  };
411
693
  export const sitehostDelete = (options) => {
412
- return (options.client ?? client).delete({
413
- url: "/api/cf/site-hosts/{id}/{hostId}",
694
+ return (options.client ?? client).post({
695
+ url: "/api/cf/site-hosts/{orgId}/delete",
414
696
  ...options,
697
+ headers: {
698
+ "Content-Type": "application/json",
699
+ ...options.headers,
700
+ },
415
701
  });
416
702
  };
417
703
  /**
418
704
  * 创建ADK会话
705
+ *
419
706
  * 创建新的ADK会话实例
420
707
  */
421
708
  export const adkSessionCreate = (options) => {
@@ -430,6 +717,7 @@ export const adkSessionCreate = (options) => {
430
717
  };
431
718
  /**
432
719
  * 获取ADK会话
720
+ *
433
721
  * 根据会话ID获取ADK会话详情
434
722
  */
435
723
  export const adkSessionGet = (options) => {
@@ -444,6 +732,7 @@ export const adkSessionGet = (options) => {
444
732
  };
445
733
  /**
446
734
  * 列出ADK会话
735
+ *
447
736
  * 获取指定应用和用户的所有ADK会话列表
448
737
  */
449
738
  export const adkSessionList = (options) => {
@@ -454,6 +743,7 @@ export const adkSessionList = (options) => {
454
743
  };
455
744
  /**
456
745
  * 删除ADK会话
746
+ *
457
747
  * 删除指定的ADK会话
458
748
  */
459
749
  export const adkSessionDelete = (options) => {
@@ -468,6 +758,7 @@ export const adkSessionDelete = (options) => {
468
758
  };
469
759
  /**
470
760
  * 向ADK会话添加事件
761
+ *
471
762
  * 向指定的ADK会话添加新事件
472
763
  */
473
764
  export const adkSessionAppendEvent = (options) => {
@@ -482,6 +773,7 @@ export const adkSessionAppendEvent = (options) => {
482
773
  };
483
774
  /**
484
775
  * 保存ADK Artifact
776
+ *
485
777
  * 保存新的ADK Artifact版本
486
778
  */
487
779
  export const adkArtifactSave = (options) => {
@@ -496,6 +788,7 @@ export const adkArtifactSave = (options) => {
496
788
  };
497
789
  /**
498
790
  * 加载ADK Artifact
791
+ *
499
792
  * 根据参数加载ADK Artifact
500
793
  */
501
794
  export const adkArtifactLoad = (options) => {
@@ -510,6 +803,7 @@ export const adkArtifactLoad = (options) => {
510
803
  };
511
804
  /**
512
805
  * 列出ADK Artifacts
806
+ *
513
807
  * 获取ADK artifacts列表(包含完整信息)
514
808
  */
515
809
  export const adkArtifactList = (options) => {
@@ -520,6 +814,7 @@ export const adkArtifactList = (options) => {
520
814
  };
521
815
  /**
522
816
  * 列出ADK Artifact文件名
817
+ *
523
818
  * 获取指定会话的所有artifact文件名列表
524
819
  */
525
820
  export const adkArtifactListKeys = (options) => {
@@ -530,6 +825,7 @@ export const adkArtifactListKeys = (options) => {
530
825
  };
531
826
  /**
532
827
  * 删除ADK Artifact
828
+ *
533
829
  * 删除指定的ADK Artifact
534
830
  */
535
831
  export const adkArtifactDelete = (options) => {
@@ -544,6 +840,7 @@ export const adkArtifactDelete = (options) => {
544
840
  };
545
841
  /**
546
842
  * 列出ADK Artifact版本
843
+ *
547
844
  * 获取指定artifact的所有版本列表
548
845
  */
549
846
  export const adkArtifactListVersions = (options) => {
@@ -554,6 +851,7 @@ export const adkArtifactListVersions = (options) => {
554
851
  };
555
852
  /**
556
853
  * 添加会话到内存
854
+ *
557
855
  * 将会话及其事件添加到内存服务中
558
856
  */
559
857
  export const adkMemoryAddSession = (options) => {
@@ -568,6 +866,7 @@ export const adkMemoryAddSession = (options) => {
568
866
  };
569
867
  /**
570
868
  * 列出ADK记忆
869
+ *
571
870
  * 获取ADK记忆列表
572
871
  */
573
872
  export const adkMemoryList = (options) => {
@@ -578,6 +877,7 @@ export const adkMemoryList = (options) => {
578
877
  };
579
878
  /**
580
879
  * 搜索内存
880
+ *
581
881
  * 根据查询条件搜索内存中的相关内容
582
882
  */
583
883
  export const adkMemorySearch = (options) => {
@@ -592,6 +892,7 @@ export const adkMemorySearch = (options) => {
592
892
  };
593
893
  /**
594
894
  * 保存ADK任务
895
+ *
595
896
  * 保存或更新ADK任务实例
596
897
  */
597
898
  export const adkTaskSave = (options) => {
@@ -606,6 +907,7 @@ export const adkTaskSave = (options) => {
606
907
  };
607
908
  /**
608
909
  * 获取ADK任务
910
+ *
609
911
  * 根据任务ID获取ADK任务详情
610
912
  */
611
913
  export const adkTaskGet = (options) => {
@@ -620,6 +922,7 @@ export const adkTaskGet = (options) => {
620
922
  };
621
923
  /**
622
924
  * 列出ADK任务
925
+ *
623
926
  * 获取ADK任务列表
624
927
  */
625
928
  export const adkTaskList = (options) => {
@@ -630,6 +933,7 @@ export const adkTaskList = (options) => {
630
933
  };
631
934
  /**
632
935
  * 删除ADK任务
936
+ *
633
937
  * 删除指定的ADK任务
634
938
  */
635
939
  export const adkTaskDelete = (options) => {
@@ -642,4 +946,154 @@ export const adkTaskDelete = (options) => {
642
946
  },
643
947
  });
644
948
  };
949
+ export const mtWorkerList = (options) => {
950
+ return (options?.client ?? client).get({
951
+ url: "/api/cf/mtworker/list",
952
+ ...options,
953
+ });
954
+ };
955
+ export const mtWorkerGet = (options) => {
956
+ return (options.client ?? client).get({
957
+ url: "/api/cf/mtworker/{id}",
958
+ ...options,
959
+ });
960
+ };
961
+ export const mtWorkerUpdate = (options) => {
962
+ return (options.client ?? client).put({
963
+ url: "/api/cf/mtworker/{id}",
964
+ ...options,
965
+ headers: {
966
+ "Content-Type": "application/json",
967
+ ...options.headers,
968
+ },
969
+ });
970
+ };
971
+ export const mtWorkerCreate = (options) => {
972
+ return (options?.client ?? client).post({
973
+ url: "/api/cf/mtworker",
974
+ ...options,
975
+ headers: {
976
+ "Content-Type": "application/json",
977
+ ...options?.headers,
978
+ },
979
+ });
980
+ };
981
+ export const mtWorkerDelete = (options) => {
982
+ return (options?.client ?? client).post({
983
+ url: "/api/cf/mtworker/delete",
984
+ ...options,
985
+ headers: {
986
+ "Content-Type": "application/json",
987
+ ...options?.headers,
988
+ },
989
+ });
990
+ };
991
+ export const mtWorkerHeartbeat = (options) => {
992
+ return (options.client ?? client).post({
993
+ url: "/api/cf/mtworker/{id}/heartbeat",
994
+ ...options,
995
+ });
996
+ };
997
+ export const hatchetWorkerDeleteConfig = (options) => {
998
+ return (options.client ?? client).delete({
999
+ url: "/api/cf/hatchet-worker/config/{id}",
1000
+ ...options,
1001
+ });
1002
+ };
1003
+ export const hatchetWorkerGetConfig = (options) => {
1004
+ return (options.client ?? client).get({
1005
+ url: "/api/cf/hatchet-worker/config/{id}",
1006
+ ...options,
1007
+ });
1008
+ };
1009
+ export const hatchetWorkerSaveConfig = (options) => {
1010
+ return (options?.client ?? client).post({
1011
+ url: "/api/cf/hatchet-worker/config",
1012
+ ...options,
1013
+ headers: {
1014
+ "Content-Type": "application/json",
1015
+ ...options?.headers,
1016
+ },
1017
+ });
1018
+ };
1019
+ export const mtWorkersList = (options) => {
1020
+ return (options.client ?? client).get({
1021
+ url: "/api/cf/mtworkers/{orgId}/list",
1022
+ ...options,
1023
+ });
1024
+ };
1025
+ export const mtWorkersGet = (options) => {
1026
+ return (options.client ?? client).get({
1027
+ url: "/api/cf/mtworkers/{orgId}/{id}",
1028
+ ...options,
1029
+ });
1030
+ };
1031
+ export const mtWorkersUpdate = (options) => {
1032
+ return (options.client ?? client).put({
1033
+ url: "/api/cf/mtworkers/{orgId}/{id}",
1034
+ ...options,
1035
+ headers: {
1036
+ "Content-Type": "application/json",
1037
+ ...options.headers,
1038
+ },
1039
+ });
1040
+ };
1041
+ export const mtWorkersCreate = (options) => {
1042
+ return (options.client ?? client).post({
1043
+ url: "/api/cf/mtworkers/{orgId}",
1044
+ ...options,
1045
+ headers: {
1046
+ "Content-Type": "application/json",
1047
+ ...options.headers,
1048
+ },
1049
+ });
1050
+ };
1051
+ export const mtWorkersDelete = (options) => {
1052
+ return (options.client ?? client).post({
1053
+ url: "/api/cf/mtworkers/{orgId}/delete",
1054
+ ...options,
1055
+ headers: {
1056
+ "Content-Type": "application/json",
1057
+ ...options.headers,
1058
+ },
1059
+ });
1060
+ };
1061
+ export const mtWorkersHeartbeat = (options) => {
1062
+ return (options.client ?? client).post({
1063
+ url: "/api/cf/mtworkers/{orgId}/{id}/heartbeat",
1064
+ ...options,
1065
+ });
1066
+ };
1067
+ export const orgWorkersList = (options) => {
1068
+ return (options.client ?? client).get({
1069
+ url: "/api/cf/org-workers/{orgId}/list",
1070
+ ...options,
1071
+ });
1072
+ };
1073
+ export const orgWorkersDelete = (options) => {
1074
+ return (options.client ?? client).post({
1075
+ url: "/api/cf/org-workers/{orgId}/delete",
1076
+ ...options,
1077
+ headers: {
1078
+ "Content-Type": "application/json",
1079
+ ...options.headers,
1080
+ },
1081
+ });
1082
+ };
1083
+ export const orgWorkersGet = (options) => {
1084
+ return (options.client ?? client).get({
1085
+ url: "/api/cf/org-workers/{orgId}/{workerId}",
1086
+ ...options,
1087
+ });
1088
+ };
1089
+ export const orgWorkersSave = (options) => {
1090
+ return (options.client ?? client).patch({
1091
+ url: "/api/cf/org-workers/{orgId}/save",
1092
+ ...options,
1093
+ headers: {
1094
+ "Content-Type": "application/json",
1095
+ ...options.headers,
1096
+ },
1097
+ });
1098
+ };
645
1099
  //# sourceMappingURL=sdk.gen.js.map