mtmsdk 0.0.47 → 0.0.49
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.
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +2 -2
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +14 -328
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +14 -341
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +2 -80
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +1 -135
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +10 -437
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +8 -308
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +4 -232
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/index.d.ts +2 -2
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js +1 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +1 -5
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +0 -4
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +0 -6
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +0 -5
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +0 -5
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/index.d.ts +2 -2
- package/dist/mtmai_api/index.d.ts.map +1 -1
- package/dist/mtmai_api/index.js +1 -1
- package/dist/mtmai_api/index.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +96 -96
- package/dist/openclaw/client-info.d.ts +0 -18
- package/dist/openclaw/client-info.d.ts.map +1 -1
- package/dist/openclaw/client-info.js +0 -6
- package/dist/openclaw/client-info.js.map +1 -1
- package/dist/openclaw/device-auth-utils.d.ts +3 -4
- package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
- package/dist/openclaw/device-auth-utils.js +4 -8
- package/dist/openclaw/device-auth-utils.js.map +1 -1
- package/dist/openclaw/device-auth.d.ts.map +1 -1
- package/dist/openclaw/device-auth.js +5 -2
- package/dist/openclaw/device-auth.js.map +1 -1
- package/dist/openclaw/device-identity.js +2 -2
- package/dist/openclaw/device-identity.js.map +1 -1
- package/dist/openclaw/gateway.d.ts +19 -5
- package/dist/openclaw/gateway.d.ts.map +1 -1
- package/dist/openclaw/gateway.js +75 -37
- package/dist/openclaw/gateway.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
- package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbmng/index.d.ts +2 -2
- package/dist/sbmng/index.d.ts.map +1 -1
- package/dist/sbmng/index.js +1 -1
- package/dist/sbmng/index.js.map +1 -1
- package/dist/sbmng/schemas.gen.d.ts +97 -34
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +120 -49
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +7 -3
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +11 -3
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +82 -30
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/schema/index.d.ts +0 -8
- package/dist/supabase/schema/index.d.ts.map +1 -1
- package/dist/supabase/schema/index.js +0 -5
- package/dist/supabase/schema/index.js.map +1 -1
- package/dist/supabase/supabase-client.d.ts +900 -719
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +1836 -1474
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
- package/dist/types/database.schemas.d.ts +999 -920
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +739 -435
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +919 -736
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js +18 -2
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +35 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -3
- package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
- package/src/gomtmapi/index.ts +2 -2
- package/src/gomtmapi/schemas.gen.ts +14 -356
- package/src/gomtmapi/sdk.gen.ts +2 -144
- package/src/gomtmapi/types.gen.ts +10 -492
- package/src/gomtmapi/zod.gen.ts +4 -263
- package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
- package/src/mtgate_api/index.ts +2 -2
- package/src/mtgate_api/sdk.gen.ts +1 -6
- package/src/mtgate_api/types.gen.ts +0 -7
- package/src/mtgate_api/zod.gen.ts +0 -6
- package/src/mtmai_api/index.ts +2 -2
- package/src/openclaw/client-info.ts +0 -9
- package/src/openclaw/device-auth-utils.ts +7 -12
- package/src/openclaw/device-auth.ts +5 -2
- package/src/openclaw/device-identity.ts +2 -2
- package/src/openclaw/gateway.ts +96 -50
- package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
- package/src/sbmng/index.ts +2 -2
- package/src/sbmng/schemas.gen.ts +121 -49
- package/src/sbmng/sdk.gen.ts +13 -4
- package/src/sbmng/types.gen.ts +87 -30
- package/src/supabase/schema/index.ts +0 -5
- package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
- package/src/types/database.schemas.ts +948 -598
- package/src/types/database.types.ts +864 -674
- package/src/types/index.ts +20 -4
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
- package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
- package/dist/api_hatchet/client/client.gen.d.ts +0 -3
- package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/client.gen.js +0 -236
- package/dist/api_hatchet/client/client.gen.js.map +0 -1
- package/dist/api_hatchet/client/index.d.ts +0 -9
- package/dist/api_hatchet/client/index.d.ts.map +0 -1
- package/dist/api_hatchet/client/index.js +0 -7
- package/dist/api_hatchet/client/index.js.map +0 -1
- package/dist/api_hatchet/client/types.gen.d.ts +0 -118
- package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/types.gen.js +0 -3
- package/dist/api_hatchet/client/types.gen.js.map +0 -1
- package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
- package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/utils.gen.js +0 -232
- package/dist/api_hatchet/client/utils.gen.js.map +0 -1
- package/dist/api_hatchet/client.gen.d.ts +0 -13
- package/dist/api_hatchet/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client.gen.js +0 -4
- package/dist/api_hatchet/client.gen.js.map +0 -1
- package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
- package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/auth.gen.js +0 -15
- package/dist/api_hatchet/core/auth.gen.js.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
- package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/params.gen.d.ts +0 -44
- package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/params.gen.js +0 -101
- package/dist/api_hatchet/core/params.gen.js.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
- package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
- package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
- package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
- package/dist/api_hatchet/core/types.gen.d.ts +0 -79
- package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/types.gen.js +0 -3
- package/dist/api_hatchet/core/types.gen.js.map +0 -1
- package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
- package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/utils.gen.js +0 -88
- package/dist/api_hatchet/core/utils.gen.js.map +0 -1
- package/dist/api_hatchet/index.d.ts +0 -3
- package/dist/api_hatchet/index.d.ts.map +0 -1
- package/dist/api_hatchet/index.js +0 -4
- package/dist/api_hatchet/index.js.map +0 -1
- package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
- package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
- package/dist/api_hatchet/schemas.gen.js +0 -4743
- package/dist/api_hatchet/schemas.gen.js.map +0 -1
- package/dist/api_hatchet/sdk.gen.d.ts +0 -784
- package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
- package/dist/api_hatchet/sdk.gen.js +0 -1849
- package/dist/api_hatchet/sdk.gen.js.map +0 -1
- package/dist/api_hatchet/types.gen.d.ts +0 -6861
- package/dist/api_hatchet/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/types.gen.js +0 -209
- package/dist/api_hatchet/types.gen.js.map +0 -1
- package/dist/api_hatchet/zod.gen.d.ts +0 -10429
- package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
- package/dist/api_hatchet/zod.gen.js +0 -2766
- package/dist/api_hatchet/zod.gen.js.map +0 -1
- package/dist/openclaw/uuid.d.ts +0 -6
- package/dist/openclaw/uuid.d.ts.map +0 -1
- package/dist/openclaw/uuid.js +0 -39
- package/dist/openclaw/uuid.js.map +0 -1
- package/dist/types/rpc.schemas.d.ts +0 -52
- package/dist/types/rpc.schemas.d.ts.map +0 -1
- package/dist/types/rpc.schemas.js +0 -108
- package/dist/types/rpc.schemas.js.map +0 -1
- package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
- package/src/api_hatchet/client/client.gen.ts +0 -311
- package/src/api_hatchet/client/index.ts +0 -25
- package/src/api_hatchet/client/types.gen.ts +0 -241
- package/src/api_hatchet/client/utils.gen.ts +0 -332
- package/src/api_hatchet/client.gen.ts +0 -16
- package/src/api_hatchet/core/auth.gen.ts +0 -42
- package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
- package/src/api_hatchet/core/params.gen.ts +0 -176
- package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
- package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
- package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
- package/src/api_hatchet/core/types.gen.ts +0 -118
- package/src/api_hatchet/core/utils.gen.ts +0 -143
- package/src/api_hatchet/index.ts +0 -4
- package/src/api_hatchet/schemas.gen.ts +0 -4961
- package/src/api_hatchet/sdk.gen.ts +0 -1994
- package/src/api_hatchet/types.gen.ts +0 -7688
- package/src/api_hatchet/zod.gen.ts +0 -3230
- package/src/openclaw/uuid.ts +0 -48
- package/src/types/rpc.schemas.ts +0 -142
|
@@ -59,42 +59,6 @@ export const AddContactResponseSchema = {
|
|
|
59
59
|
type: 'object'
|
|
60
60
|
} as const;
|
|
61
61
|
|
|
62
|
-
export const AgentRunReqSchema = {
|
|
63
|
-
description: 'AgentRunReq schema',
|
|
64
|
-
properties: {
|
|
65
|
-
payload: {
|
|
66
|
-
additionalProperties: {},
|
|
67
|
-
type: 'object'
|
|
68
|
-
},
|
|
69
|
-
target_worker_id: {
|
|
70
|
-
nullable: true,
|
|
71
|
-
type: 'string'
|
|
72
|
-
},
|
|
73
|
-
type: {
|
|
74
|
-
type: 'string'
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
required: [
|
|
78
|
-
'type'
|
|
79
|
-
],
|
|
80
|
-
type: 'object'
|
|
81
|
-
} as const;
|
|
82
|
-
|
|
83
|
-
export const AgentRunRespSchema = {
|
|
84
|
-
description: 'AgentRunResp schema',
|
|
85
|
-
properties: {
|
|
86
|
-
data: {},
|
|
87
|
-
error: {
|
|
88
|
-
nullable: true,
|
|
89
|
-
type: 'string'
|
|
90
|
-
},
|
|
91
|
-
status: {
|
|
92
|
-
type: 'string'
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
type: 'object'
|
|
96
|
-
} as const;
|
|
97
|
-
|
|
98
62
|
export const AuthResponseSchema = {
|
|
99
63
|
description: 'AuthResponse schema',
|
|
100
64
|
properties: {
|
|
@@ -207,43 +171,6 @@ export const BrowserOpenRespSchema = {
|
|
|
207
171
|
type: 'object'
|
|
208
172
|
} as const;
|
|
209
173
|
|
|
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
|
-
|
|
247
174
|
export const CheckUpdateResponseSchema = {
|
|
248
175
|
description: 'CheckUpdateResponse schema',
|
|
249
176
|
properties: {
|
|
@@ -268,66 +195,19 @@ export const CodeRunResultSchema = {
|
|
|
268
195
|
format: 'double',
|
|
269
196
|
type: 'number'
|
|
270
197
|
},
|
|
271
|
-
|
|
272
|
-
description: '
|
|
273
|
-
|
|
274
|
-
type: 'string'
|
|
198
|
+
exitCode: {
|
|
199
|
+
description: '进程退出码',
|
|
200
|
+
type: 'integer'
|
|
275
201
|
},
|
|
276
|
-
|
|
277
|
-
description: '
|
|
202
|
+
stderr: {
|
|
203
|
+
description: '标准错误输出',
|
|
278
204
|
nullable: true,
|
|
279
205
|
type: 'string'
|
|
280
206
|
},
|
|
281
|
-
|
|
282
|
-
description: '
|
|
283
|
-
nullable: true
|
|
284
|
-
},
|
|
285
|
-
status: {
|
|
286
|
-
description: '运行状态: success | error',
|
|
287
|
-
type: 'string'
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
type: 'object'
|
|
291
|
-
} as const;
|
|
292
|
-
|
|
293
|
-
export const EditFileRequestSchema = {
|
|
294
|
-
description: 'EditFileRequest schema',
|
|
295
|
-
properties: {
|
|
296
|
-
file_path: {
|
|
297
|
-
description: 'Absolute path to the file',
|
|
298
|
-
type: 'string'
|
|
299
|
-
},
|
|
300
|
-
new_string: {
|
|
301
|
-
description: 'The new string to replace with.',
|
|
302
|
-
type: 'string'
|
|
303
|
-
},
|
|
304
|
-
old_string: {
|
|
305
|
-
description: 'The exact string to replace. If empty, creates a new file.',
|
|
306
|
-
type: 'string'
|
|
307
|
-
},
|
|
308
|
-
replace_all: {
|
|
309
|
-
description: 'If true, replace all occurrences. If false, fails if multiple matches found.',
|
|
310
|
-
type: 'boolean'
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
required: [
|
|
314
|
-
'file_path'
|
|
315
|
-
],
|
|
316
|
-
type: 'object'
|
|
317
|
-
} as const;
|
|
318
|
-
|
|
319
|
-
export const EditFileResponseSchema = {
|
|
320
|
-
description: 'EditFileResponse schema',
|
|
321
|
-
properties: {
|
|
322
|
-
diff: {
|
|
207
|
+
stdout: {
|
|
208
|
+
description: '标准输出',
|
|
323
209
|
nullable: true,
|
|
324
210
|
type: 'string'
|
|
325
|
-
},
|
|
326
|
-
message: {
|
|
327
|
-
type: 'string'
|
|
328
|
-
},
|
|
329
|
-
success: {
|
|
330
|
-
type: 'boolean'
|
|
331
211
|
}
|
|
332
212
|
},
|
|
333
213
|
type: 'object'
|
|
@@ -388,93 +268,6 @@ export const HTTPErrorSchema = {
|
|
|
388
268
|
type: 'object'
|
|
389
269
|
} as const;
|
|
390
270
|
|
|
391
|
-
export const HumanActionReqSchema = {
|
|
392
|
-
description: 'HumanActionReq schema',
|
|
393
|
-
properties: {
|
|
394
|
-
action_type: {
|
|
395
|
-
description: 'The type of action required (e.g., \'add_resource\', \'check_resource\')',
|
|
396
|
-
type: 'string'
|
|
397
|
-
},
|
|
398
|
-
message: {
|
|
399
|
-
description: 'Explanation to the user why this action is needed',
|
|
400
|
-
type: 'string'
|
|
401
|
-
},
|
|
402
|
-
resource_id: {
|
|
403
|
-
description: 'The specific ID of the resource that failed or needs attention',
|
|
404
|
-
nullable: true,
|
|
405
|
-
type: 'string'
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
required: [
|
|
409
|
-
'action_type',
|
|
410
|
-
'message'
|
|
411
|
-
],
|
|
412
|
-
type: 'object'
|
|
413
|
-
} as const;
|
|
414
|
-
|
|
415
|
-
export const HumanActionRespSchema = {
|
|
416
|
-
description: 'HumanActionResp schema',
|
|
417
|
-
properties: {
|
|
418
|
-
client_action: {
|
|
419
|
-
additionalProperties: {
|
|
420
|
-
type: 'string'
|
|
421
|
-
},
|
|
422
|
-
nullable: true,
|
|
423
|
-
type: 'object'
|
|
424
|
-
},
|
|
425
|
-
message: {
|
|
426
|
-
type: 'string'
|
|
427
|
-
},
|
|
428
|
-
status: {
|
|
429
|
-
type: 'string'
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
type: 'object'
|
|
433
|
-
} as const;
|
|
434
|
-
|
|
435
|
-
export const ListDirRequestSchema = {
|
|
436
|
-
description: 'ListDirRequest schema',
|
|
437
|
-
properties: {
|
|
438
|
-
path: {
|
|
439
|
-
description: 'Directory path to list',
|
|
440
|
-
type: 'string'
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
required: [
|
|
444
|
-
'path'
|
|
445
|
-
],
|
|
446
|
-
type: 'object'
|
|
447
|
-
} as const;
|
|
448
|
-
|
|
449
|
-
export const ListDirResponseSchema = {
|
|
450
|
-
description: 'ListDirResponse schema',
|
|
451
|
-
properties: {
|
|
452
|
-
entries: {
|
|
453
|
-
items: {
|
|
454
|
-
properties: {
|
|
455
|
-
is_dir: {
|
|
456
|
-
type: 'boolean'
|
|
457
|
-
},
|
|
458
|
-
name: {
|
|
459
|
-
type: 'string'
|
|
460
|
-
},
|
|
461
|
-
size: {
|
|
462
|
-
format: 'int64',
|
|
463
|
-
type: 'integer'
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
type: 'object'
|
|
467
|
-
},
|
|
468
|
-
type: 'array'
|
|
469
|
-
},
|
|
470
|
-
error: {
|
|
471
|
-
nullable: true,
|
|
472
|
-
type: 'string'
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
type: 'object'
|
|
476
|
-
} as const;
|
|
477
|
-
|
|
478
271
|
export const NapcatStatusSchema = {
|
|
479
272
|
description: 'NapcatStatus schema',
|
|
480
273
|
properties: {
|
|
@@ -553,58 +346,12 @@ export const PerformUpgradeResponseSchema = {
|
|
|
553
346
|
type: 'object'
|
|
554
347
|
} as const;
|
|
555
348
|
|
|
556
|
-
export const ReadFilesRequestSchema = {
|
|
557
|
-
description: 'ReadFilesRequest schema',
|
|
558
|
-
properties: {
|
|
559
|
-
paths: {
|
|
560
|
-
description: 'List of file paths or glob patterns',
|
|
561
|
-
items: {
|
|
562
|
-
type: 'string'
|
|
563
|
-
},
|
|
564
|
-
type: 'array'
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
required: [
|
|
568
|
-
'paths'
|
|
569
|
-
],
|
|
570
|
-
type: 'object'
|
|
571
|
-
} as const;
|
|
572
|
-
|
|
573
|
-
export const ReadFilesResponseSchema = {
|
|
574
|
-
description: 'ReadFilesResponse schema',
|
|
575
|
-
properties: {
|
|
576
|
-
results: {
|
|
577
|
-
items: {
|
|
578
|
-
properties: {
|
|
579
|
-
content: {
|
|
580
|
-
nullable: true,
|
|
581
|
-
type: 'string'
|
|
582
|
-
},
|
|
583
|
-
error: {
|
|
584
|
-
nullable: true,
|
|
585
|
-
type: 'string'
|
|
586
|
-
},
|
|
587
|
-
file_path: {
|
|
588
|
-
type: 'string'
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
type: 'object'
|
|
592
|
-
},
|
|
593
|
-
type: 'array'
|
|
594
|
-
},
|
|
595
|
-
summary: {
|
|
596
|
-
type: 'string'
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
type: 'object'
|
|
600
|
-
} as const;
|
|
601
|
-
|
|
602
349
|
export const RunCodeReqSchema = {
|
|
603
350
|
description: 'RunCodeReq schema',
|
|
604
351
|
properties: {
|
|
605
352
|
codeType: {
|
|
606
|
-
description: '代码类型: python | browserjs',
|
|
607
|
-
example: 'python,js',
|
|
353
|
+
description: '代码类型: python | bash | sh | nodejs | browserjs',
|
|
354
|
+
example: 'python,js,bash',
|
|
608
355
|
minLength: 2,
|
|
609
356
|
type: 'string'
|
|
610
357
|
},
|
|
@@ -614,9 +361,11 @@ export const RunCodeReqSchema = {
|
|
|
614
361
|
minLength: 1,
|
|
615
362
|
type: 'string'
|
|
616
363
|
},
|
|
617
|
-
|
|
618
|
-
additionalProperties: {
|
|
619
|
-
|
|
364
|
+
env: {
|
|
365
|
+
additionalProperties: {
|
|
366
|
+
type: 'string'
|
|
367
|
+
},
|
|
368
|
+
description: '环境变量',
|
|
620
369
|
nullable: true,
|
|
621
370
|
type: 'object'
|
|
622
371
|
},
|
|
@@ -634,45 +383,6 @@ export const RunCodeReqSchema = {
|
|
|
634
383
|
type: 'object'
|
|
635
384
|
} as const;
|
|
636
385
|
|
|
637
|
-
export const SearchFilesRequestSchema = {
|
|
638
|
-
description: 'SearchFilesRequest schema',
|
|
639
|
-
properties: {
|
|
640
|
-
glob: {
|
|
641
|
-
description: 'File pattern to include e.g. *.go',
|
|
642
|
-
type: 'string'
|
|
643
|
-
},
|
|
644
|
-
path: {
|
|
645
|
-
description: 'Directory to search in',
|
|
646
|
-
type: 'string'
|
|
647
|
-
},
|
|
648
|
-
pattern: {
|
|
649
|
-
description: 'Regex pattern to search',
|
|
650
|
-
type: 'string'
|
|
651
|
-
}
|
|
652
|
-
},
|
|
653
|
-
required: [
|
|
654
|
-
'pattern'
|
|
655
|
-
],
|
|
656
|
-
type: 'object'
|
|
657
|
-
} as const;
|
|
658
|
-
|
|
659
|
-
export const SearchFilesResponseSchema = {
|
|
660
|
-
description: 'SearchFilesResponse schema',
|
|
661
|
-
properties: {
|
|
662
|
-
error: {
|
|
663
|
-
nullable: true,
|
|
664
|
-
type: 'string'
|
|
665
|
-
},
|
|
666
|
-
matches: {
|
|
667
|
-
items: {
|
|
668
|
-
type: 'string'
|
|
669
|
-
},
|
|
670
|
-
type: 'array'
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
type: 'object'
|
|
674
|
-
} as const;
|
|
675
|
-
|
|
676
386
|
export const SendCodeRequestSchema = {
|
|
677
387
|
description: 'SendCodeRequest schema',
|
|
678
388
|
properties: {
|
|
@@ -855,57 +565,6 @@ export const StatusResponseSchema = {
|
|
|
855
565
|
type: 'object'
|
|
856
566
|
} as const;
|
|
857
567
|
|
|
858
|
-
export const TaskExecuteRequestSchema = {
|
|
859
|
-
description: 'TaskExecuteRequest schema',
|
|
860
|
-
properties: {
|
|
861
|
-
code: {
|
|
862
|
-
type: 'string'
|
|
863
|
-
},
|
|
864
|
-
code_type: {
|
|
865
|
-
type: 'string'
|
|
866
|
-
},
|
|
867
|
-
meta: {
|
|
868
|
-
additionalProperties: {},
|
|
869
|
-
nullable: true,
|
|
870
|
-
type: 'object'
|
|
871
|
-
},
|
|
872
|
-
task_id: {
|
|
873
|
-
type: 'string'
|
|
874
|
-
},
|
|
875
|
-
timeout_seconds: {
|
|
876
|
-
type: 'integer'
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
type: 'object'
|
|
880
|
-
} as const;
|
|
881
|
-
|
|
882
|
-
export const TaskExecuteResponseSchema = {
|
|
883
|
-
description: 'TaskExecuteResponse schema',
|
|
884
|
-
properties: {
|
|
885
|
-
error: {
|
|
886
|
-
nullable: true,
|
|
887
|
-
type: 'string'
|
|
888
|
-
},
|
|
889
|
-
output: {
|
|
890
|
-
nullable: true,
|
|
891
|
-
type: 'string'
|
|
892
|
-
},
|
|
893
|
-
result: {
|
|
894
|
-
additionalProperties: {},
|
|
895
|
-
nullable: true,
|
|
896
|
-
type: 'object'
|
|
897
|
-
},
|
|
898
|
-
success: {
|
|
899
|
-
type: 'boolean'
|
|
900
|
-
},
|
|
901
|
-
task_id: {
|
|
902
|
-
nullable: true,
|
|
903
|
-
type: 'string'
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
type: 'object'
|
|
907
|
-
} as const;
|
|
908
|
-
|
|
909
568
|
export const UserInfoRequestSchema = {
|
|
910
569
|
description: 'UserInfoRequest schema',
|
|
911
570
|
properties: {
|
|
@@ -929,7 +588,6 @@ export const UserInfoRequestSchema = {
|
|
|
929
588
|
|
|
930
589
|
export const stringSchema = {
|
|
931
590
|
description: 'string schema',
|
|
932
|
-
nullable: true,
|
|
933
591
|
type: 'string'
|
|
934
592
|
} as const;
|
|
935
593
|
|
package/src/gomtmapi/sdk.gen.ts
CHANGED
|
@@ -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 {
|
|
5
|
+
import type { BrowserActionData, BrowserActionErrors, BrowserActionResponses, BrowserOpenData, BrowserOpenErrors, BrowserOpenResponses, CodeRunData, CodeRunErrors, CodeRunResponses, GetApiSystemStatusData, GetApiSystemStatusErrors, GetApiSystemStatusResponses, 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';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
8
8
|
/**
|
|
@@ -18,30 +18,6 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
18
18
|
meta?: Record<string, unknown>;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* agent run
|
|
23
|
-
*
|
|
24
|
-
* #### Controller:
|
|
25
|
-
*
|
|
26
|
-
* `github.com/codeh007/gomtm/pkg/routes/api/agent.(*AgentService).AgentRun`
|
|
27
|
-
*
|
|
28
|
-
* #### Middlewares:
|
|
29
|
-
*
|
|
30
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
31
|
-
*
|
|
32
|
-
* ---
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
export const agentRun = <ThrowOnError extends boolean = false>(options: Options<AgentRunData, ThrowOnError>) => (options.client ?? client).post<AgentRunResponses, AgentRunErrors, ThrowOnError>({
|
|
37
|
-
url: '/api/agent/run',
|
|
38
|
-
...options,
|
|
39
|
-
headers: {
|
|
40
|
-
'Content-Type': '*/*',
|
|
41
|
-
...options.headers
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
21
|
/**
|
|
46
22
|
* handle action submit
|
|
47
23
|
*
|
|
@@ -70,62 +46,6 @@ export const browserOpen = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
70
46
|
}
|
|
71
47
|
});
|
|
72
48
|
|
|
73
|
-
/**
|
|
74
|
-
* edit file
|
|
75
|
-
*
|
|
76
|
-
* Replace text in a file. Matches exact 'old_string'. Use 'replace_all=true' for multiple occurrences.
|
|
77
|
-
*/
|
|
78
|
-
export const coddingToolEditFile = <ThrowOnError extends boolean = false>(options: Options<CoddingToolEditFileData, ThrowOnError>) => (options.client ?? client).post<CoddingToolEditFileResponses, CoddingToolEditFileErrors, ThrowOnError>({
|
|
79
|
-
url: '/api/codding_tool/edit_file',
|
|
80
|
-
...options,
|
|
81
|
-
headers: {
|
|
82
|
-
'Content-Type': '*/*',
|
|
83
|
-
...options.headers
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* list dir
|
|
89
|
-
*
|
|
90
|
-
* List files and directories in a given path.
|
|
91
|
-
*/
|
|
92
|
-
export const coddingToolListDir = <ThrowOnError extends boolean = false>(options: Options<CoddingToolListDirData, ThrowOnError>) => (options.client ?? client).post<CoddingToolListDirResponses, CoddingToolListDirErrors, ThrowOnError>({
|
|
93
|
-
url: '/api/codding_tool/list_dir',
|
|
94
|
-
...options,
|
|
95
|
-
headers: {
|
|
96
|
-
'Content-Type': '*/*',
|
|
97
|
-
...options.headers
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* read files
|
|
103
|
-
*
|
|
104
|
-
* Read content of multiple files. Supports simple glob patterns.
|
|
105
|
-
*/
|
|
106
|
-
export const coddingToolReadFiles = <ThrowOnError extends boolean = false>(options: Options<CoddingToolReadFilesData, ThrowOnError>) => (options.client ?? client).post<CoddingToolReadFilesResponses, CoddingToolReadFilesErrors, ThrowOnError>({
|
|
107
|
-
url: '/api/codding_tool/read_files',
|
|
108
|
-
...options,
|
|
109
|
-
headers: {
|
|
110
|
-
'Content-Type': '*/*',
|
|
111
|
-
...options.headers
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* search files
|
|
117
|
-
*
|
|
118
|
-
* Search for a pattern in files using grep.
|
|
119
|
-
*/
|
|
120
|
-
export const coddingToolSearchFiles = <ThrowOnError extends boolean = false>(options: Options<CoddingToolSearchFilesData, ThrowOnError>) => (options.client ?? client).post<CoddingToolSearchFilesResponses, CoddingToolSearchFilesErrors, ThrowOnError>({
|
|
121
|
-
url: '/api/codding_tool/search_files',
|
|
122
|
-
...options,
|
|
123
|
-
headers: {
|
|
124
|
-
'Content-Type': '*/*',
|
|
125
|
-
...options.headers
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
|
|
129
49
|
/**
|
|
130
50
|
* run code
|
|
131
51
|
*
|
|
@@ -167,20 +87,6 @@ export const codeRun = <ThrowOnError extends boolean = false>(options: Options<C
|
|
|
167
87
|
*/
|
|
168
88
|
export const postApiDbQueryQuery = <ThrowOnError extends boolean = false>(options?: Options<PostApiDbQueryQueryData, ThrowOnError>) => (options?.client ?? client).post<PostApiDbQueryQueryResponses, PostApiDbQueryQueryErrors, ThrowOnError>({ url: '/api/db_query/query', ...options });
|
|
169
89
|
|
|
170
|
-
/**
|
|
171
|
-
* request action
|
|
172
|
-
*
|
|
173
|
-
* Request specific manual actions from the user when automated attempts fail.
|
|
174
|
-
*/
|
|
175
|
-
export const humanRequestAction = <ThrowOnError extends boolean = false>(options: Options<HumanRequestActionData, ThrowOnError>) => (options.client ?? client).post<HumanRequestActionResponses, HumanRequestActionErrors, ThrowOnError>({
|
|
176
|
-
url: '/api/human/action',
|
|
177
|
-
...options,
|
|
178
|
-
headers: {
|
|
179
|
-
'Content-Type': '*/*',
|
|
180
|
-
...options.headers
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
|
|
184
90
|
/**
|
|
185
91
|
* Start napcat service
|
|
186
92
|
*
|
|
@@ -310,58 +216,10 @@ export const postApiSystemPerformUpgrade = <ThrowOnError extends boolean = false
|
|
|
310
216
|
*
|
|
311
217
|
* ---
|
|
312
218
|
*
|
|
313
|
-
* 返回完整的实例运行状态 (v6: 合并 info + health)。数据库通过
|
|
219
|
+
* 返回完整的实例运行状态 (v6: 合并 info + health)。数据库通过 HTTP 探测读取该端点,并据此调和 servers.state。
|
|
314
220
|
*/
|
|
315
221
|
export const getApiSystemStatus = <ThrowOnError extends boolean = false>(options?: Options<GetApiSystemStatusData, ThrowOnError>) => (options?.client ?? client).get<GetApiSystemStatusResponses, GetApiSystemStatusErrors, ThrowOnError>({ url: '/api/system/status', ...options });
|
|
316
222
|
|
|
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
|
-
...options,
|
|
359
|
-
headers: {
|
|
360
|
-
'Content-Type': '*/*',
|
|
361
|
-
...options.headers
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
|
|
365
223
|
/**
|
|
366
224
|
* password
|
|
367
225
|
*
|