mtmsdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4377 -0
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/mtgate_api/@tanstack/react-query.gen.js +2373 -0
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -0
- package/dist/mtgate_api/client/client.d.ts +3 -0
- package/dist/mtgate_api/client/client.d.ts.map +1 -0
- package/dist/mtgate_api/client/client.js +146 -0
- package/dist/mtgate_api/client/client.js.map +1 -0
- package/dist/mtgate_api/client/index.d.ts +8 -0
- package/dist/mtgate_api/client/index.d.ts.map +1 -0
- package/dist/mtgate_api/client/index.js +5 -0
- package/dist/mtgate_api/client/index.js.map +1 -0
- package/dist/mtgate_api/client/types.d.ts +120 -0
- package/dist/mtgate_api/client/types.d.ts.map +1 -0
- package/dist/mtgate_api/client/types.js +2 -0
- package/dist/mtgate_api/client/types.js.map +1 -0
- package/dist/mtgate_api/client/utils.d.ts +46 -0
- package/dist/mtgate_api/client/utils.d.ts.map +1 -0
- package/dist/mtgate_api/client/utils.js +285 -0
- package/dist/mtgate_api/client/utils.js.map +1 -0
- package/dist/mtgate_api/client.gen.d.ts +13 -0
- package/dist/mtgate_api/client.gen.d.ts.map +1 -0
- package/dist/mtgate_api/client.gen.js +6 -0
- package/dist/mtgate_api/client.gen.js.map +1 -0
- package/dist/mtgate_api/core/auth.d.ts +19 -0
- package/dist/mtgate_api/core/auth.d.ts.map +1 -0
- package/dist/mtgate_api/core/auth.js +14 -0
- package/dist/mtgate_api/core/auth.js.map +1 -0
- package/dist/mtgate_api/core/bodySerializer.d.ts +18 -0
- package/dist/mtgate_api/core/bodySerializer.d.ts.map +1 -0
- package/dist/mtgate_api/core/bodySerializer.js +54 -0
- package/dist/mtgate_api/core/bodySerializer.js.map +1 -0
- package/dist/mtgate_api/core/params.d.ts +24 -0
- package/dist/mtgate_api/core/params.d.ts.map +1 -0
- package/dist/mtgate_api/core/params.js +88 -0
- package/dist/mtgate_api/core/params.js.map +1 -0
- package/dist/mtgate_api/core/pathSerializer.d.ts +34 -0
- package/dist/mtgate_api/core/pathSerializer.d.ts.map +1 -0
- package/dist/mtgate_api/core/pathSerializer.js +114 -0
- package/dist/mtgate_api/core/pathSerializer.js.map +1 -0
- package/dist/mtgate_api/core/types.d.ts +74 -0
- package/dist/mtgate_api/core/types.d.ts.map +1 -0
- package/dist/mtgate_api/core/types.js +2 -0
- package/dist/mtgate_api/core/types.js.map +1 -0
- package/dist/mtgate_api/index.d.ts +3 -0
- package/dist/mtgate_api/index.d.ts.map +1 -0
- package/dist/mtgate_api/index.js +4 -0
- package/dist/mtgate_api/index.js.map +1 -0
- package/dist/mtgate_api/schemas.gen.d.ts +1504 -0
- package/dist/mtgate_api/schemas.gen.d.ts.map +1 -0
- package/dist/mtgate_api/schemas.gen.js +1544 -0
- package/dist/mtgate_api/schemas.gen.js.map +1 -0
- package/dist/mtgate_api/sdk.gen.d.ts +184 -0
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -0
- package/dist/mtgate_api/sdk.gen.js +791 -0
- package/dist/mtgate_api/sdk.gen.js.map +1 -0
- package/dist/mtgate_api/types.gen.d.ts +3012 -0
- package/dist/mtgate_api/types.gen.d.ts.map +1 -0
- package/dist/mtgate_api/types.gen.js +9 -0
- package/dist/mtgate_api/types.gen.js.map +1 -0
- package/dist/mtgate_api/zod.gen.d.ts +3158 -0
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -0
- package/dist/mtgate_api/zod.gen.js +2171 -0
- package/dist/mtgate_api/zod.gen.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,2373 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { agentChatbotList, agentChatbotCreate, agentChatbotDelete, agentChatbotGet, agentChatbotUpdate, workerAgentStartNapcat, agentHandlerGetInfo, a2aGetAgentCard, a2aRpc, agentsMtmaiDemo, authRegister, authLogin, authVerify, authSession, usersList, usersCreate, usersDelete, usersGet, usersUpdate, sysConfigGet, pAccountsList, pAccountsCreate, pAccountsDelete, pAccountsGet, pAccountsUpdate, platformsList, platformsCreate, platformsDelete, platformsGet, platformsUpdate, proxiesList, proxiesDelete, proxiesGet, proxiesUpsert, sandboxList, sandboxCreate, sandboxDelete, sandboxGet, sandboxUpdate, sandboxStart, sandboxCallback, tenantsList, tenantsCreate, tenantsDelete, tenantsGet, tenantsUpdate, cloudflareChatbotList, cloudflareChatbotCreate, cloudflareChatbotDelete, cloudflareChatbotGet, blogPostsList, tunnelList, tunnelGet, dashuiGet, sysConfig, workflowTrigger, setupStatus, setupInitialize, configGomtmGet, singboxConfigGet, siteList, siteCreate, siteDelete, siteGet, siteUpdate, blogPostsList2, blogPostsCreate, blogPostsDelete, blogPostsGetById, blogPostsUpdate, blogPostsGetBySlug, sitehostList, sitehostCreate, sitehostDelete, adkSessionCreate, adkSessionGet, adkSessionList, adkSessionDelete, adkSessionAppendEvent, adkArtifactSave, adkArtifactLoad, adkArtifactList, adkArtifactListKeys, adkArtifactDelete, adkArtifactListVersions, adkMemoryAddSession, adkMemoryList, adkMemorySearch, adkTaskSave, adkTaskGet, adkTaskList, adkTaskDelete, } from "../sdk.gen";
|
|
3
|
+
import { queryOptions, infiniteQueryOptions, } from "@tanstack/react-query";
|
|
4
|
+
import { client as _heyApiClient } from "../client.gen";
|
|
5
|
+
const createQueryKey = (id, options, infinite) => {
|
|
6
|
+
const params = {
|
|
7
|
+
_id: id,
|
|
8
|
+
baseUrl: (options?.client ?? _heyApiClient).getConfig().baseUrl,
|
|
9
|
+
};
|
|
10
|
+
if (infinite) {
|
|
11
|
+
params._infinite = infinite;
|
|
12
|
+
}
|
|
13
|
+
if (options?.body) {
|
|
14
|
+
params.body = options.body;
|
|
15
|
+
}
|
|
16
|
+
if (options?.headers) {
|
|
17
|
+
params.headers = options.headers;
|
|
18
|
+
}
|
|
19
|
+
if (options?.path) {
|
|
20
|
+
params.path = options.path;
|
|
21
|
+
}
|
|
22
|
+
if (options?.query) {
|
|
23
|
+
params.query = options.query;
|
|
24
|
+
}
|
|
25
|
+
return [params];
|
|
26
|
+
};
|
|
27
|
+
export const agentChatbotListQueryKey = (options) => createQueryKey("agentChatbotList", options);
|
|
28
|
+
export const agentChatbotListOptions = (options) => {
|
|
29
|
+
return queryOptions({
|
|
30
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
31
|
+
const { data } = await agentChatbotList({
|
|
32
|
+
...options,
|
|
33
|
+
...queryKey[0],
|
|
34
|
+
signal,
|
|
35
|
+
throwOnError: true,
|
|
36
|
+
});
|
|
37
|
+
return data;
|
|
38
|
+
},
|
|
39
|
+
queryKey: agentChatbotListQueryKey(options),
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
const createInfiniteParams = (queryKey, page) => {
|
|
43
|
+
const params = {
|
|
44
|
+
...queryKey[0],
|
|
45
|
+
};
|
|
46
|
+
if (page.body) {
|
|
47
|
+
params.body = {
|
|
48
|
+
...queryKey[0].body,
|
|
49
|
+
...page.body,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if (page.headers) {
|
|
53
|
+
params.headers = {
|
|
54
|
+
...queryKey[0].headers,
|
|
55
|
+
...page.headers,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (page.path) {
|
|
59
|
+
params.path = {
|
|
60
|
+
...queryKey[0].path,
|
|
61
|
+
...page.path,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
if (page.query) {
|
|
65
|
+
params.query = {
|
|
66
|
+
...queryKey[0].query,
|
|
67
|
+
...page.query,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return params;
|
|
71
|
+
};
|
|
72
|
+
export const agentChatbotListInfiniteQueryKey = (options) => createQueryKey("agentChatbotList", options, true);
|
|
73
|
+
export const agentChatbotListInfiniteOptions = (options) => {
|
|
74
|
+
return infiniteQueryOptions(
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
{
|
|
77
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
const page = typeof pageParam === "object"
|
|
80
|
+
? pageParam
|
|
81
|
+
: {
|
|
82
|
+
query: {
|
|
83
|
+
offset: pageParam,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
const params = createInfiniteParams(queryKey, page);
|
|
87
|
+
const { data } = await agentChatbotList({
|
|
88
|
+
...options,
|
|
89
|
+
...params,
|
|
90
|
+
signal,
|
|
91
|
+
throwOnError: true,
|
|
92
|
+
});
|
|
93
|
+
return data;
|
|
94
|
+
},
|
|
95
|
+
queryKey: agentChatbotListInfiniteQueryKey(options),
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
export const agentChatbotCreateQueryKey = (options) => createQueryKey("agentChatbotCreate", options);
|
|
99
|
+
export const agentChatbotCreateOptions = (options) => {
|
|
100
|
+
return queryOptions({
|
|
101
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
102
|
+
const { data } = await agentChatbotCreate({
|
|
103
|
+
...options,
|
|
104
|
+
...queryKey[0],
|
|
105
|
+
signal,
|
|
106
|
+
throwOnError: true,
|
|
107
|
+
});
|
|
108
|
+
return data;
|
|
109
|
+
},
|
|
110
|
+
queryKey: agentChatbotCreateQueryKey(options),
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
export const agentChatbotCreateMutation = (options) => {
|
|
114
|
+
const mutationOptions = {
|
|
115
|
+
mutationFn: async (localOptions) => {
|
|
116
|
+
const { data } = await agentChatbotCreate({
|
|
117
|
+
...options,
|
|
118
|
+
...localOptions,
|
|
119
|
+
throwOnError: true,
|
|
120
|
+
});
|
|
121
|
+
return data;
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
return mutationOptions;
|
|
125
|
+
};
|
|
126
|
+
export const agentChatbotDeleteMutation = (options) => {
|
|
127
|
+
const mutationOptions = {
|
|
128
|
+
mutationFn: async (localOptions) => {
|
|
129
|
+
const { data } = await agentChatbotDelete({
|
|
130
|
+
...options,
|
|
131
|
+
...localOptions,
|
|
132
|
+
throwOnError: true,
|
|
133
|
+
});
|
|
134
|
+
return data;
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
return mutationOptions;
|
|
138
|
+
};
|
|
139
|
+
export const agentChatbotGetQueryKey = (options) => createQueryKey("agentChatbotGet", options);
|
|
140
|
+
export const agentChatbotGetOptions = (options) => {
|
|
141
|
+
return queryOptions({
|
|
142
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
143
|
+
const { data } = await agentChatbotGet({
|
|
144
|
+
...options,
|
|
145
|
+
...queryKey[0],
|
|
146
|
+
signal,
|
|
147
|
+
throwOnError: true,
|
|
148
|
+
});
|
|
149
|
+
return data;
|
|
150
|
+
},
|
|
151
|
+
queryKey: agentChatbotGetQueryKey(options),
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
export const agentChatbotUpdateMutation = (options) => {
|
|
155
|
+
const mutationOptions = {
|
|
156
|
+
mutationFn: async (localOptions) => {
|
|
157
|
+
const { data } = await agentChatbotUpdate({
|
|
158
|
+
...options,
|
|
159
|
+
...localOptions,
|
|
160
|
+
throwOnError: true,
|
|
161
|
+
});
|
|
162
|
+
return data;
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
return mutationOptions;
|
|
166
|
+
};
|
|
167
|
+
export const workerAgentStartNapcatQueryKey = (options) => createQueryKey("workerAgentStartNapcat", options);
|
|
168
|
+
export const workerAgentStartNapcatOptions = (options) => {
|
|
169
|
+
return queryOptions({
|
|
170
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
171
|
+
const { data } = await workerAgentStartNapcat({
|
|
172
|
+
...options,
|
|
173
|
+
...queryKey[0],
|
|
174
|
+
signal,
|
|
175
|
+
throwOnError: true,
|
|
176
|
+
});
|
|
177
|
+
return data;
|
|
178
|
+
},
|
|
179
|
+
queryKey: workerAgentStartNapcatQueryKey(options),
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
export const workerAgentStartNapcatInfiniteQueryKey = (options) => createQueryKey("workerAgentStartNapcat", options, true);
|
|
183
|
+
export const workerAgentStartNapcatInfiniteOptions = (options) => {
|
|
184
|
+
return infiniteQueryOptions(
|
|
185
|
+
// @ts-ignore
|
|
186
|
+
{
|
|
187
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
const page = typeof pageParam === "object"
|
|
190
|
+
? pageParam
|
|
191
|
+
: {
|
|
192
|
+
query: {
|
|
193
|
+
offset: pageParam,
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
const params = createInfiniteParams(queryKey, page);
|
|
197
|
+
const { data } = await workerAgentStartNapcat({
|
|
198
|
+
...options,
|
|
199
|
+
...params,
|
|
200
|
+
signal,
|
|
201
|
+
throwOnError: true,
|
|
202
|
+
});
|
|
203
|
+
return data;
|
|
204
|
+
},
|
|
205
|
+
queryKey: workerAgentStartNapcatInfiniteQueryKey(options),
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
export const agentHandlerGetInfoQueryKey = (options) => createQueryKey("agentHandlerGetInfo", options);
|
|
209
|
+
export const agentHandlerGetInfoOptions = (options) => {
|
|
210
|
+
return queryOptions({
|
|
211
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
212
|
+
const { data } = await agentHandlerGetInfo({
|
|
213
|
+
...options,
|
|
214
|
+
...queryKey[0],
|
|
215
|
+
signal,
|
|
216
|
+
throwOnError: true,
|
|
217
|
+
});
|
|
218
|
+
return data;
|
|
219
|
+
},
|
|
220
|
+
queryKey: agentHandlerGetInfoQueryKey(options),
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
export const agentHandlerGetInfoMutation = (options) => {
|
|
224
|
+
const mutationOptions = {
|
|
225
|
+
mutationFn: async (localOptions) => {
|
|
226
|
+
const { data } = await agentHandlerGetInfo({
|
|
227
|
+
...options,
|
|
228
|
+
...localOptions,
|
|
229
|
+
throwOnError: true,
|
|
230
|
+
});
|
|
231
|
+
return data;
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
return mutationOptions;
|
|
235
|
+
};
|
|
236
|
+
export const a2aGetAgentCardQueryKey = (options) => createQueryKey("a2aGetAgentCard", options);
|
|
237
|
+
export const a2aGetAgentCardOptions = (options) => {
|
|
238
|
+
return queryOptions({
|
|
239
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
240
|
+
const { data } = await a2aGetAgentCard({
|
|
241
|
+
...options,
|
|
242
|
+
...queryKey[0],
|
|
243
|
+
signal,
|
|
244
|
+
throwOnError: true,
|
|
245
|
+
});
|
|
246
|
+
return data;
|
|
247
|
+
},
|
|
248
|
+
queryKey: a2aGetAgentCardQueryKey(options),
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
export const a2aRpcQueryKey = (options) => createQueryKey("a2aRpc", options);
|
|
252
|
+
export const a2aRpcOptions = (options) => {
|
|
253
|
+
return queryOptions({
|
|
254
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
255
|
+
const { data } = await a2aRpc({
|
|
256
|
+
...options,
|
|
257
|
+
...queryKey[0],
|
|
258
|
+
signal,
|
|
259
|
+
throwOnError: true,
|
|
260
|
+
});
|
|
261
|
+
return data;
|
|
262
|
+
},
|
|
263
|
+
queryKey: a2aRpcQueryKey(options),
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
export const a2aRpcMutation = (options) => {
|
|
267
|
+
const mutationOptions = {
|
|
268
|
+
mutationFn: async (localOptions) => {
|
|
269
|
+
const { data } = await a2aRpc({
|
|
270
|
+
...options,
|
|
271
|
+
...localOptions,
|
|
272
|
+
throwOnError: true,
|
|
273
|
+
});
|
|
274
|
+
return data;
|
|
275
|
+
},
|
|
276
|
+
};
|
|
277
|
+
return mutationOptions;
|
|
278
|
+
};
|
|
279
|
+
export const agentsMtmaiDemoQueryKey = (options) => createQueryKey("agentsMtmaiDemo", options);
|
|
280
|
+
/**
|
|
281
|
+
* 调用mtmai demo功能
|
|
282
|
+
* 通过honoapi调用mtmai,mtmai内部调用honoapi客户端添加新用户
|
|
283
|
+
*/
|
|
284
|
+
export const agentsMtmaiDemoOptions = (options) => {
|
|
285
|
+
return queryOptions({
|
|
286
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
287
|
+
const { data } = await agentsMtmaiDemo({
|
|
288
|
+
...options,
|
|
289
|
+
...queryKey[0],
|
|
290
|
+
signal,
|
|
291
|
+
throwOnError: true,
|
|
292
|
+
});
|
|
293
|
+
return data;
|
|
294
|
+
},
|
|
295
|
+
queryKey: agentsMtmaiDemoQueryKey(options),
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* 调用mtmai demo功能
|
|
300
|
+
* 通过honoapi调用mtmai,mtmai内部调用honoapi客户端添加新用户
|
|
301
|
+
*/
|
|
302
|
+
export const agentsMtmaiDemoMutation = (options) => {
|
|
303
|
+
const mutationOptions = {
|
|
304
|
+
mutationFn: async (localOptions) => {
|
|
305
|
+
const { data } = await agentsMtmaiDemo({
|
|
306
|
+
...options,
|
|
307
|
+
...localOptions,
|
|
308
|
+
throwOnError: true,
|
|
309
|
+
});
|
|
310
|
+
return data;
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
return mutationOptions;
|
|
314
|
+
};
|
|
315
|
+
export const authRegisterQueryKey = (options) => createQueryKey("authRegister", options);
|
|
316
|
+
export const authRegisterOptions = (options) => {
|
|
317
|
+
return queryOptions({
|
|
318
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
319
|
+
const { data } = await authRegister({
|
|
320
|
+
...options,
|
|
321
|
+
...queryKey[0],
|
|
322
|
+
signal,
|
|
323
|
+
throwOnError: true,
|
|
324
|
+
});
|
|
325
|
+
return data;
|
|
326
|
+
},
|
|
327
|
+
queryKey: authRegisterQueryKey(options),
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
export const authRegisterMutation = (options) => {
|
|
331
|
+
const mutationOptions = {
|
|
332
|
+
mutationFn: async (localOptions) => {
|
|
333
|
+
const { data } = await authRegister({
|
|
334
|
+
...options,
|
|
335
|
+
...localOptions,
|
|
336
|
+
throwOnError: true,
|
|
337
|
+
});
|
|
338
|
+
return data;
|
|
339
|
+
},
|
|
340
|
+
};
|
|
341
|
+
return mutationOptions;
|
|
342
|
+
};
|
|
343
|
+
export const authLoginQueryKey = (options) => createQueryKey("authLogin", options);
|
|
344
|
+
export const authLoginOptions = (options) => {
|
|
345
|
+
return queryOptions({
|
|
346
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
347
|
+
const { data } = await authLogin({
|
|
348
|
+
...options,
|
|
349
|
+
...queryKey[0],
|
|
350
|
+
signal,
|
|
351
|
+
throwOnError: true,
|
|
352
|
+
});
|
|
353
|
+
return data;
|
|
354
|
+
},
|
|
355
|
+
queryKey: authLoginQueryKey(options),
|
|
356
|
+
});
|
|
357
|
+
};
|
|
358
|
+
export const authLoginMutation = (options) => {
|
|
359
|
+
const mutationOptions = {
|
|
360
|
+
mutationFn: async (localOptions) => {
|
|
361
|
+
const { data } = await authLogin({
|
|
362
|
+
...options,
|
|
363
|
+
...localOptions,
|
|
364
|
+
throwOnError: true,
|
|
365
|
+
});
|
|
366
|
+
return data;
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
return mutationOptions;
|
|
370
|
+
};
|
|
371
|
+
export const authVerifyQueryKey = (options) => createQueryKey("authVerify", options);
|
|
372
|
+
export const authVerifyOptions = (options) => {
|
|
373
|
+
return queryOptions({
|
|
374
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
375
|
+
const { data } = await authVerify({
|
|
376
|
+
...options,
|
|
377
|
+
...queryKey[0],
|
|
378
|
+
signal,
|
|
379
|
+
throwOnError: true,
|
|
380
|
+
});
|
|
381
|
+
return data;
|
|
382
|
+
},
|
|
383
|
+
queryKey: authVerifyQueryKey(options),
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
export const authVerifyMutation = (options) => {
|
|
387
|
+
const mutationOptions = {
|
|
388
|
+
mutationFn: async (localOptions) => {
|
|
389
|
+
const { data } = await authVerify({
|
|
390
|
+
...options,
|
|
391
|
+
...localOptions,
|
|
392
|
+
throwOnError: true,
|
|
393
|
+
});
|
|
394
|
+
return data;
|
|
395
|
+
},
|
|
396
|
+
};
|
|
397
|
+
return mutationOptions;
|
|
398
|
+
};
|
|
399
|
+
export const authSessionQueryKey = (options) => createQueryKey("authSession", options);
|
|
400
|
+
export const authSessionOptions = (options) => {
|
|
401
|
+
return queryOptions({
|
|
402
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
403
|
+
const { data } = await authSession({
|
|
404
|
+
...options,
|
|
405
|
+
...queryKey[0],
|
|
406
|
+
signal,
|
|
407
|
+
throwOnError: true,
|
|
408
|
+
});
|
|
409
|
+
return data;
|
|
410
|
+
},
|
|
411
|
+
queryKey: authSessionQueryKey(options),
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
export const usersListQueryKey = (options) => createQueryKey("usersList", options);
|
|
415
|
+
export const usersListOptions = (options) => {
|
|
416
|
+
return queryOptions({
|
|
417
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
418
|
+
const { data } = await usersList({
|
|
419
|
+
...options,
|
|
420
|
+
...queryKey[0],
|
|
421
|
+
signal,
|
|
422
|
+
throwOnError: true,
|
|
423
|
+
});
|
|
424
|
+
return data;
|
|
425
|
+
},
|
|
426
|
+
queryKey: usersListQueryKey(options),
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
export const usersListInfiniteQueryKey = (options) => createQueryKey("usersList", options, true);
|
|
430
|
+
export const usersListInfiniteOptions = (options) => {
|
|
431
|
+
return infiniteQueryOptions(
|
|
432
|
+
// @ts-ignore
|
|
433
|
+
{
|
|
434
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
435
|
+
// @ts-ignore
|
|
436
|
+
const page = typeof pageParam === "object"
|
|
437
|
+
? pageParam
|
|
438
|
+
: {
|
|
439
|
+
query: {
|
|
440
|
+
offset: pageParam,
|
|
441
|
+
},
|
|
442
|
+
};
|
|
443
|
+
const params = createInfiniteParams(queryKey, page);
|
|
444
|
+
const { data } = await usersList({
|
|
445
|
+
...options,
|
|
446
|
+
...params,
|
|
447
|
+
signal,
|
|
448
|
+
throwOnError: true,
|
|
449
|
+
});
|
|
450
|
+
return data;
|
|
451
|
+
},
|
|
452
|
+
queryKey: usersListInfiniteQueryKey(options),
|
|
453
|
+
});
|
|
454
|
+
};
|
|
455
|
+
export const usersCreateQueryKey = (options) => createQueryKey("usersCreate", options);
|
|
456
|
+
export const usersCreateOptions = (options) => {
|
|
457
|
+
return queryOptions({
|
|
458
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
459
|
+
const { data } = await usersCreate({
|
|
460
|
+
...options,
|
|
461
|
+
...queryKey[0],
|
|
462
|
+
signal,
|
|
463
|
+
throwOnError: true,
|
|
464
|
+
});
|
|
465
|
+
return data;
|
|
466
|
+
},
|
|
467
|
+
queryKey: usersCreateQueryKey(options),
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
export const usersCreateMutation = (options) => {
|
|
471
|
+
const mutationOptions = {
|
|
472
|
+
mutationFn: async (localOptions) => {
|
|
473
|
+
const { data } = await usersCreate({
|
|
474
|
+
...options,
|
|
475
|
+
...localOptions,
|
|
476
|
+
throwOnError: true,
|
|
477
|
+
});
|
|
478
|
+
return data;
|
|
479
|
+
},
|
|
480
|
+
};
|
|
481
|
+
return mutationOptions;
|
|
482
|
+
};
|
|
483
|
+
export const usersDeleteMutation = (options) => {
|
|
484
|
+
const mutationOptions = {
|
|
485
|
+
mutationFn: async (localOptions) => {
|
|
486
|
+
const { data } = await usersDelete({
|
|
487
|
+
...options,
|
|
488
|
+
...localOptions,
|
|
489
|
+
throwOnError: true,
|
|
490
|
+
});
|
|
491
|
+
return data;
|
|
492
|
+
},
|
|
493
|
+
};
|
|
494
|
+
return mutationOptions;
|
|
495
|
+
};
|
|
496
|
+
export const usersGetQueryKey = (options) => createQueryKey("usersGet", options);
|
|
497
|
+
export const usersGetOptions = (options) => {
|
|
498
|
+
return queryOptions({
|
|
499
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
500
|
+
const { data } = await usersGet({
|
|
501
|
+
...options,
|
|
502
|
+
...queryKey[0],
|
|
503
|
+
signal,
|
|
504
|
+
throwOnError: true,
|
|
505
|
+
});
|
|
506
|
+
return data;
|
|
507
|
+
},
|
|
508
|
+
queryKey: usersGetQueryKey(options),
|
|
509
|
+
});
|
|
510
|
+
};
|
|
511
|
+
export const usersUpdateMutation = (options) => {
|
|
512
|
+
const mutationOptions = {
|
|
513
|
+
mutationFn: async (localOptions) => {
|
|
514
|
+
const { data } = await usersUpdate({
|
|
515
|
+
...options,
|
|
516
|
+
...localOptions,
|
|
517
|
+
throwOnError: true,
|
|
518
|
+
});
|
|
519
|
+
return data;
|
|
520
|
+
},
|
|
521
|
+
};
|
|
522
|
+
return mutationOptions;
|
|
523
|
+
};
|
|
524
|
+
export const sysConfigGetQueryKey = (options) => createQueryKey("sysConfigGet", options);
|
|
525
|
+
export const sysConfigGetOptions = (options) => {
|
|
526
|
+
return queryOptions({
|
|
527
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
528
|
+
const { data } = await sysConfigGet({
|
|
529
|
+
...options,
|
|
530
|
+
...queryKey[0],
|
|
531
|
+
signal,
|
|
532
|
+
throwOnError: true,
|
|
533
|
+
});
|
|
534
|
+
return data;
|
|
535
|
+
},
|
|
536
|
+
queryKey: sysConfigGetQueryKey(options),
|
|
537
|
+
});
|
|
538
|
+
};
|
|
539
|
+
export const pAccountsListQueryKey = (options) => createQueryKey("pAccountsList", options);
|
|
540
|
+
export const pAccountsListOptions = (options) => {
|
|
541
|
+
return queryOptions({
|
|
542
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
543
|
+
const { data } = await pAccountsList({
|
|
544
|
+
...options,
|
|
545
|
+
...queryKey[0],
|
|
546
|
+
signal,
|
|
547
|
+
throwOnError: true,
|
|
548
|
+
});
|
|
549
|
+
return data;
|
|
550
|
+
},
|
|
551
|
+
queryKey: pAccountsListQueryKey(options),
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
export const pAccountsListInfiniteQueryKey = (options) => createQueryKey("pAccountsList", options, true);
|
|
555
|
+
export const pAccountsListInfiniteOptions = (options) => {
|
|
556
|
+
return infiniteQueryOptions(
|
|
557
|
+
// @ts-ignore
|
|
558
|
+
{
|
|
559
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
560
|
+
// @ts-ignore
|
|
561
|
+
const page = typeof pageParam === "object"
|
|
562
|
+
? pageParam
|
|
563
|
+
: {
|
|
564
|
+
query: {
|
|
565
|
+
offset: pageParam,
|
|
566
|
+
},
|
|
567
|
+
};
|
|
568
|
+
const params = createInfiniteParams(queryKey, page);
|
|
569
|
+
const { data } = await pAccountsList({
|
|
570
|
+
...options,
|
|
571
|
+
...params,
|
|
572
|
+
signal,
|
|
573
|
+
throwOnError: true,
|
|
574
|
+
});
|
|
575
|
+
return data;
|
|
576
|
+
},
|
|
577
|
+
queryKey: pAccountsListInfiniteQueryKey(options),
|
|
578
|
+
});
|
|
579
|
+
};
|
|
580
|
+
export const pAccountsCreateQueryKey = (options) => createQueryKey("pAccountsCreate", options);
|
|
581
|
+
export const pAccountsCreateOptions = (options) => {
|
|
582
|
+
return queryOptions({
|
|
583
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
584
|
+
const { data } = await pAccountsCreate({
|
|
585
|
+
...options,
|
|
586
|
+
...queryKey[0],
|
|
587
|
+
signal,
|
|
588
|
+
throwOnError: true,
|
|
589
|
+
});
|
|
590
|
+
return data;
|
|
591
|
+
},
|
|
592
|
+
queryKey: pAccountsCreateQueryKey(options),
|
|
593
|
+
});
|
|
594
|
+
};
|
|
595
|
+
export const pAccountsCreateMutation = (options) => {
|
|
596
|
+
const mutationOptions = {
|
|
597
|
+
mutationFn: async (localOptions) => {
|
|
598
|
+
const { data } = await pAccountsCreate({
|
|
599
|
+
...options,
|
|
600
|
+
...localOptions,
|
|
601
|
+
throwOnError: true,
|
|
602
|
+
});
|
|
603
|
+
return data;
|
|
604
|
+
},
|
|
605
|
+
};
|
|
606
|
+
return mutationOptions;
|
|
607
|
+
};
|
|
608
|
+
export const pAccountsDeleteMutation = (options) => {
|
|
609
|
+
const mutationOptions = {
|
|
610
|
+
mutationFn: async (localOptions) => {
|
|
611
|
+
const { data } = await pAccountsDelete({
|
|
612
|
+
...options,
|
|
613
|
+
...localOptions,
|
|
614
|
+
throwOnError: true,
|
|
615
|
+
});
|
|
616
|
+
return data;
|
|
617
|
+
},
|
|
618
|
+
};
|
|
619
|
+
return mutationOptions;
|
|
620
|
+
};
|
|
621
|
+
export const pAccountsGetQueryKey = (options) => createQueryKey("pAccountsGet", options);
|
|
622
|
+
export const pAccountsGetOptions = (options) => {
|
|
623
|
+
return queryOptions({
|
|
624
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
625
|
+
const { data } = await pAccountsGet({
|
|
626
|
+
...options,
|
|
627
|
+
...queryKey[0],
|
|
628
|
+
signal,
|
|
629
|
+
throwOnError: true,
|
|
630
|
+
});
|
|
631
|
+
return data;
|
|
632
|
+
},
|
|
633
|
+
queryKey: pAccountsGetQueryKey(options),
|
|
634
|
+
});
|
|
635
|
+
};
|
|
636
|
+
export const pAccountsUpdateMutation = (options) => {
|
|
637
|
+
const mutationOptions = {
|
|
638
|
+
mutationFn: async (localOptions) => {
|
|
639
|
+
const { data } = await pAccountsUpdate({
|
|
640
|
+
...options,
|
|
641
|
+
...localOptions,
|
|
642
|
+
throwOnError: true,
|
|
643
|
+
});
|
|
644
|
+
return data;
|
|
645
|
+
},
|
|
646
|
+
};
|
|
647
|
+
return mutationOptions;
|
|
648
|
+
};
|
|
649
|
+
export const platformsListQueryKey = (options) => createQueryKey("platformsList", options);
|
|
650
|
+
export const platformsListOptions = (options) => {
|
|
651
|
+
return queryOptions({
|
|
652
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
653
|
+
const { data } = await platformsList({
|
|
654
|
+
...options,
|
|
655
|
+
...queryKey[0],
|
|
656
|
+
signal,
|
|
657
|
+
throwOnError: true,
|
|
658
|
+
});
|
|
659
|
+
return data;
|
|
660
|
+
},
|
|
661
|
+
queryKey: platformsListQueryKey(options),
|
|
662
|
+
});
|
|
663
|
+
};
|
|
664
|
+
export const platformsListInfiniteQueryKey = (options) => createQueryKey("platformsList", options, true);
|
|
665
|
+
export const platformsListInfiniteOptions = (options) => {
|
|
666
|
+
return infiniteQueryOptions(
|
|
667
|
+
// @ts-ignore
|
|
668
|
+
{
|
|
669
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
670
|
+
// @ts-ignore
|
|
671
|
+
const page = typeof pageParam === "object"
|
|
672
|
+
? pageParam
|
|
673
|
+
: {
|
|
674
|
+
query: {
|
|
675
|
+
offset: pageParam,
|
|
676
|
+
},
|
|
677
|
+
};
|
|
678
|
+
const params = createInfiniteParams(queryKey, page);
|
|
679
|
+
const { data } = await platformsList({
|
|
680
|
+
...options,
|
|
681
|
+
...params,
|
|
682
|
+
signal,
|
|
683
|
+
throwOnError: true,
|
|
684
|
+
});
|
|
685
|
+
return data;
|
|
686
|
+
},
|
|
687
|
+
queryKey: platformsListInfiniteQueryKey(options),
|
|
688
|
+
});
|
|
689
|
+
};
|
|
690
|
+
export const platformsCreateQueryKey = (options) => createQueryKey("platformsCreate", options);
|
|
691
|
+
export const platformsCreateOptions = (options) => {
|
|
692
|
+
return queryOptions({
|
|
693
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
694
|
+
const { data } = await platformsCreate({
|
|
695
|
+
...options,
|
|
696
|
+
...queryKey[0],
|
|
697
|
+
signal,
|
|
698
|
+
throwOnError: true,
|
|
699
|
+
});
|
|
700
|
+
return data;
|
|
701
|
+
},
|
|
702
|
+
queryKey: platformsCreateQueryKey(options),
|
|
703
|
+
});
|
|
704
|
+
};
|
|
705
|
+
export const platformsCreateMutation = (options) => {
|
|
706
|
+
const mutationOptions = {
|
|
707
|
+
mutationFn: async (localOptions) => {
|
|
708
|
+
const { data } = await platformsCreate({
|
|
709
|
+
...options,
|
|
710
|
+
...localOptions,
|
|
711
|
+
throwOnError: true,
|
|
712
|
+
});
|
|
713
|
+
return data;
|
|
714
|
+
},
|
|
715
|
+
};
|
|
716
|
+
return mutationOptions;
|
|
717
|
+
};
|
|
718
|
+
export const platformsDeleteMutation = (options) => {
|
|
719
|
+
const mutationOptions = {
|
|
720
|
+
mutationFn: async (localOptions) => {
|
|
721
|
+
const { data } = await platformsDelete({
|
|
722
|
+
...options,
|
|
723
|
+
...localOptions,
|
|
724
|
+
throwOnError: true,
|
|
725
|
+
});
|
|
726
|
+
return data;
|
|
727
|
+
},
|
|
728
|
+
};
|
|
729
|
+
return mutationOptions;
|
|
730
|
+
};
|
|
731
|
+
export const platformsGetQueryKey = (options) => createQueryKey("platformsGet", options);
|
|
732
|
+
export const platformsGetOptions = (options) => {
|
|
733
|
+
return queryOptions({
|
|
734
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
735
|
+
const { data } = await platformsGet({
|
|
736
|
+
...options,
|
|
737
|
+
...queryKey[0],
|
|
738
|
+
signal,
|
|
739
|
+
throwOnError: true,
|
|
740
|
+
});
|
|
741
|
+
return data;
|
|
742
|
+
},
|
|
743
|
+
queryKey: platformsGetQueryKey(options),
|
|
744
|
+
});
|
|
745
|
+
};
|
|
746
|
+
export const platformsUpdateMutation = (options) => {
|
|
747
|
+
const mutationOptions = {
|
|
748
|
+
mutationFn: async (localOptions) => {
|
|
749
|
+
const { data } = await platformsUpdate({
|
|
750
|
+
...options,
|
|
751
|
+
...localOptions,
|
|
752
|
+
throwOnError: true,
|
|
753
|
+
});
|
|
754
|
+
return data;
|
|
755
|
+
},
|
|
756
|
+
};
|
|
757
|
+
return mutationOptions;
|
|
758
|
+
};
|
|
759
|
+
export const proxiesListQueryKey = (options) => createQueryKey("proxiesList", options);
|
|
760
|
+
export const proxiesListOptions = (options) => {
|
|
761
|
+
return queryOptions({
|
|
762
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
763
|
+
const { data } = await proxiesList({
|
|
764
|
+
...options,
|
|
765
|
+
...queryKey[0],
|
|
766
|
+
signal,
|
|
767
|
+
throwOnError: true,
|
|
768
|
+
});
|
|
769
|
+
return data;
|
|
770
|
+
},
|
|
771
|
+
queryKey: proxiesListQueryKey(options),
|
|
772
|
+
});
|
|
773
|
+
};
|
|
774
|
+
export const proxiesListInfiniteQueryKey = (options) => createQueryKey("proxiesList", options, true);
|
|
775
|
+
export const proxiesListInfiniteOptions = (options) => {
|
|
776
|
+
return infiniteQueryOptions(
|
|
777
|
+
// @ts-ignore
|
|
778
|
+
{
|
|
779
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
780
|
+
// @ts-ignore
|
|
781
|
+
const page = typeof pageParam === "object"
|
|
782
|
+
? pageParam
|
|
783
|
+
: {
|
|
784
|
+
query: {
|
|
785
|
+
offset: pageParam,
|
|
786
|
+
},
|
|
787
|
+
};
|
|
788
|
+
const params = createInfiniteParams(queryKey, page);
|
|
789
|
+
const { data } = await proxiesList({
|
|
790
|
+
...options,
|
|
791
|
+
...params,
|
|
792
|
+
signal,
|
|
793
|
+
throwOnError: true,
|
|
794
|
+
});
|
|
795
|
+
return data;
|
|
796
|
+
},
|
|
797
|
+
queryKey: proxiesListInfiniteQueryKey(options),
|
|
798
|
+
});
|
|
799
|
+
};
|
|
800
|
+
export const proxiesDeleteMutation = (options) => {
|
|
801
|
+
const mutationOptions = {
|
|
802
|
+
mutationFn: async (localOptions) => {
|
|
803
|
+
const { data } = await proxiesDelete({
|
|
804
|
+
...options,
|
|
805
|
+
...localOptions,
|
|
806
|
+
throwOnError: true,
|
|
807
|
+
});
|
|
808
|
+
return data;
|
|
809
|
+
},
|
|
810
|
+
};
|
|
811
|
+
return mutationOptions;
|
|
812
|
+
};
|
|
813
|
+
export const proxiesGetQueryKey = (options) => createQueryKey("proxiesGet", options);
|
|
814
|
+
export const proxiesGetOptions = (options) => {
|
|
815
|
+
return queryOptions({
|
|
816
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
817
|
+
const { data } = await proxiesGet({
|
|
818
|
+
...options,
|
|
819
|
+
...queryKey[0],
|
|
820
|
+
signal,
|
|
821
|
+
throwOnError: true,
|
|
822
|
+
});
|
|
823
|
+
return data;
|
|
824
|
+
},
|
|
825
|
+
queryKey: proxiesGetQueryKey(options),
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
export const proxiesUpsertMutation = (options) => {
|
|
829
|
+
const mutationOptions = {
|
|
830
|
+
mutationFn: async (localOptions) => {
|
|
831
|
+
const { data } = await proxiesUpsert({
|
|
832
|
+
...options,
|
|
833
|
+
...localOptions,
|
|
834
|
+
throwOnError: true,
|
|
835
|
+
});
|
|
836
|
+
return data;
|
|
837
|
+
},
|
|
838
|
+
};
|
|
839
|
+
return mutationOptions;
|
|
840
|
+
};
|
|
841
|
+
export const sandboxListQueryKey = (options) => createQueryKey("sandboxList", options);
|
|
842
|
+
export const sandboxListOptions = (options) => {
|
|
843
|
+
return queryOptions({
|
|
844
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
845
|
+
const { data } = await sandboxList({
|
|
846
|
+
...options,
|
|
847
|
+
...queryKey[0],
|
|
848
|
+
signal,
|
|
849
|
+
throwOnError: true,
|
|
850
|
+
});
|
|
851
|
+
return data;
|
|
852
|
+
},
|
|
853
|
+
queryKey: sandboxListQueryKey(options),
|
|
854
|
+
});
|
|
855
|
+
};
|
|
856
|
+
export const sandboxListInfiniteQueryKey = (options) => createQueryKey("sandboxList", options, true);
|
|
857
|
+
export const sandboxListInfiniteOptions = (options) => {
|
|
858
|
+
return infiniteQueryOptions(
|
|
859
|
+
// @ts-ignore
|
|
860
|
+
{
|
|
861
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
862
|
+
// @ts-ignore
|
|
863
|
+
const page = typeof pageParam === "object"
|
|
864
|
+
? pageParam
|
|
865
|
+
: {
|
|
866
|
+
query: {
|
|
867
|
+
offset: pageParam,
|
|
868
|
+
},
|
|
869
|
+
};
|
|
870
|
+
const params = createInfiniteParams(queryKey, page);
|
|
871
|
+
const { data } = await sandboxList({
|
|
872
|
+
...options,
|
|
873
|
+
...params,
|
|
874
|
+
signal,
|
|
875
|
+
throwOnError: true,
|
|
876
|
+
});
|
|
877
|
+
return data;
|
|
878
|
+
},
|
|
879
|
+
queryKey: sandboxListInfiniteQueryKey(options),
|
|
880
|
+
});
|
|
881
|
+
};
|
|
882
|
+
export const sandboxCreateQueryKey = (options) => createQueryKey("sandboxCreate", options);
|
|
883
|
+
export const sandboxCreateOptions = (options) => {
|
|
884
|
+
return queryOptions({
|
|
885
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
886
|
+
const { data } = await sandboxCreate({
|
|
887
|
+
...options,
|
|
888
|
+
...queryKey[0],
|
|
889
|
+
signal,
|
|
890
|
+
throwOnError: true,
|
|
891
|
+
});
|
|
892
|
+
return data;
|
|
893
|
+
},
|
|
894
|
+
queryKey: sandboxCreateQueryKey(options),
|
|
895
|
+
});
|
|
896
|
+
};
|
|
897
|
+
export const sandboxCreateMutation = (options) => {
|
|
898
|
+
const mutationOptions = {
|
|
899
|
+
mutationFn: async (localOptions) => {
|
|
900
|
+
const { data } = await sandboxCreate({
|
|
901
|
+
...options,
|
|
902
|
+
...localOptions,
|
|
903
|
+
throwOnError: true,
|
|
904
|
+
});
|
|
905
|
+
return data;
|
|
906
|
+
},
|
|
907
|
+
};
|
|
908
|
+
return mutationOptions;
|
|
909
|
+
};
|
|
910
|
+
export const sandboxDeleteMutation = (options) => {
|
|
911
|
+
const mutationOptions = {
|
|
912
|
+
mutationFn: async (localOptions) => {
|
|
913
|
+
const { data } = await sandboxDelete({
|
|
914
|
+
...options,
|
|
915
|
+
...localOptions,
|
|
916
|
+
throwOnError: true,
|
|
917
|
+
});
|
|
918
|
+
return data;
|
|
919
|
+
},
|
|
920
|
+
};
|
|
921
|
+
return mutationOptions;
|
|
922
|
+
};
|
|
923
|
+
export const sandboxGetQueryKey = (options) => createQueryKey("sandboxGet", options);
|
|
924
|
+
export const sandboxGetOptions = (options) => {
|
|
925
|
+
return queryOptions({
|
|
926
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
927
|
+
const { data } = await sandboxGet({
|
|
928
|
+
...options,
|
|
929
|
+
...queryKey[0],
|
|
930
|
+
signal,
|
|
931
|
+
throwOnError: true,
|
|
932
|
+
});
|
|
933
|
+
return data;
|
|
934
|
+
},
|
|
935
|
+
queryKey: sandboxGetQueryKey(options),
|
|
936
|
+
});
|
|
937
|
+
};
|
|
938
|
+
export const sandboxUpdateMutation = (options) => {
|
|
939
|
+
const mutationOptions = {
|
|
940
|
+
mutationFn: async (localOptions) => {
|
|
941
|
+
const { data } = await sandboxUpdate({
|
|
942
|
+
...options,
|
|
943
|
+
...localOptions,
|
|
944
|
+
throwOnError: true,
|
|
945
|
+
});
|
|
946
|
+
return data;
|
|
947
|
+
},
|
|
948
|
+
};
|
|
949
|
+
return mutationOptions;
|
|
950
|
+
};
|
|
951
|
+
export const sandboxStartQueryKey = (options) => createQueryKey("sandboxStart", options);
|
|
952
|
+
export const sandboxStartOptions = (options) => {
|
|
953
|
+
return queryOptions({
|
|
954
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
955
|
+
const { data } = await sandboxStart({
|
|
956
|
+
...options,
|
|
957
|
+
...queryKey[0],
|
|
958
|
+
signal,
|
|
959
|
+
throwOnError: true,
|
|
960
|
+
});
|
|
961
|
+
return data;
|
|
962
|
+
},
|
|
963
|
+
queryKey: sandboxStartQueryKey(options),
|
|
964
|
+
});
|
|
965
|
+
};
|
|
966
|
+
export const sandboxStartMutation = (options) => {
|
|
967
|
+
const mutationOptions = {
|
|
968
|
+
mutationFn: async (localOptions) => {
|
|
969
|
+
const { data } = await sandboxStart({
|
|
970
|
+
...options,
|
|
971
|
+
...localOptions,
|
|
972
|
+
throwOnError: true,
|
|
973
|
+
});
|
|
974
|
+
return data;
|
|
975
|
+
},
|
|
976
|
+
};
|
|
977
|
+
return mutationOptions;
|
|
978
|
+
};
|
|
979
|
+
export const sandboxCallbackQueryKey = (options) => createQueryKey("sandboxCallback", options);
|
|
980
|
+
export const sandboxCallbackOptions = (options) => {
|
|
981
|
+
return queryOptions({
|
|
982
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
983
|
+
const { data } = await sandboxCallback({
|
|
984
|
+
...options,
|
|
985
|
+
...queryKey[0],
|
|
986
|
+
signal,
|
|
987
|
+
throwOnError: true,
|
|
988
|
+
});
|
|
989
|
+
return data;
|
|
990
|
+
},
|
|
991
|
+
queryKey: sandboxCallbackQueryKey(options),
|
|
992
|
+
});
|
|
993
|
+
};
|
|
994
|
+
export const sandboxCallbackMutation = (options) => {
|
|
995
|
+
const mutationOptions = {
|
|
996
|
+
mutationFn: async (localOptions) => {
|
|
997
|
+
const { data } = await sandboxCallback({
|
|
998
|
+
...options,
|
|
999
|
+
...localOptions,
|
|
1000
|
+
throwOnError: true,
|
|
1001
|
+
});
|
|
1002
|
+
return data;
|
|
1003
|
+
},
|
|
1004
|
+
};
|
|
1005
|
+
return mutationOptions;
|
|
1006
|
+
};
|
|
1007
|
+
export const tenantsListQueryKey = (options) => createQueryKey("tenantsList", options);
|
|
1008
|
+
export const tenantsListOptions = (options) => {
|
|
1009
|
+
return queryOptions({
|
|
1010
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1011
|
+
const { data } = await tenantsList({
|
|
1012
|
+
...options,
|
|
1013
|
+
...queryKey[0],
|
|
1014
|
+
signal,
|
|
1015
|
+
throwOnError: true,
|
|
1016
|
+
});
|
|
1017
|
+
return data;
|
|
1018
|
+
},
|
|
1019
|
+
queryKey: tenantsListQueryKey(options),
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1022
|
+
export const tenantsListInfiniteQueryKey = (options) => createQueryKey("tenantsList", options, true);
|
|
1023
|
+
export const tenantsListInfiniteOptions = (options) => {
|
|
1024
|
+
return infiniteQueryOptions(
|
|
1025
|
+
// @ts-ignore
|
|
1026
|
+
{
|
|
1027
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1028
|
+
// @ts-ignore
|
|
1029
|
+
const page = typeof pageParam === "object"
|
|
1030
|
+
? pageParam
|
|
1031
|
+
: {
|
|
1032
|
+
query: {
|
|
1033
|
+
offset: pageParam,
|
|
1034
|
+
},
|
|
1035
|
+
};
|
|
1036
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1037
|
+
const { data } = await tenantsList({
|
|
1038
|
+
...options,
|
|
1039
|
+
...params,
|
|
1040
|
+
signal,
|
|
1041
|
+
throwOnError: true,
|
|
1042
|
+
});
|
|
1043
|
+
return data;
|
|
1044
|
+
},
|
|
1045
|
+
queryKey: tenantsListInfiniteQueryKey(options),
|
|
1046
|
+
});
|
|
1047
|
+
};
|
|
1048
|
+
export const tenantsCreateQueryKey = (options) => createQueryKey("tenantsCreate", options);
|
|
1049
|
+
export const tenantsCreateOptions = (options) => {
|
|
1050
|
+
return queryOptions({
|
|
1051
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1052
|
+
const { data } = await tenantsCreate({
|
|
1053
|
+
...options,
|
|
1054
|
+
...queryKey[0],
|
|
1055
|
+
signal,
|
|
1056
|
+
throwOnError: true,
|
|
1057
|
+
});
|
|
1058
|
+
return data;
|
|
1059
|
+
},
|
|
1060
|
+
queryKey: tenantsCreateQueryKey(options),
|
|
1061
|
+
});
|
|
1062
|
+
};
|
|
1063
|
+
export const tenantsCreateMutation = (options) => {
|
|
1064
|
+
const mutationOptions = {
|
|
1065
|
+
mutationFn: async (localOptions) => {
|
|
1066
|
+
const { data } = await tenantsCreate({
|
|
1067
|
+
...options,
|
|
1068
|
+
...localOptions,
|
|
1069
|
+
throwOnError: true,
|
|
1070
|
+
});
|
|
1071
|
+
return data;
|
|
1072
|
+
},
|
|
1073
|
+
};
|
|
1074
|
+
return mutationOptions;
|
|
1075
|
+
};
|
|
1076
|
+
export const tenantsDeleteMutation = (options) => {
|
|
1077
|
+
const mutationOptions = {
|
|
1078
|
+
mutationFn: async (localOptions) => {
|
|
1079
|
+
const { data } = await tenantsDelete({
|
|
1080
|
+
...options,
|
|
1081
|
+
...localOptions,
|
|
1082
|
+
throwOnError: true,
|
|
1083
|
+
});
|
|
1084
|
+
return data;
|
|
1085
|
+
},
|
|
1086
|
+
};
|
|
1087
|
+
return mutationOptions;
|
|
1088
|
+
};
|
|
1089
|
+
export const tenantsGetQueryKey = (options) => createQueryKey("tenantsGet", options);
|
|
1090
|
+
export const tenantsGetOptions = (options) => {
|
|
1091
|
+
return queryOptions({
|
|
1092
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1093
|
+
const { data } = await tenantsGet({
|
|
1094
|
+
...options,
|
|
1095
|
+
...queryKey[0],
|
|
1096
|
+
signal,
|
|
1097
|
+
throwOnError: true,
|
|
1098
|
+
});
|
|
1099
|
+
return data;
|
|
1100
|
+
},
|
|
1101
|
+
queryKey: tenantsGetQueryKey(options),
|
|
1102
|
+
});
|
|
1103
|
+
};
|
|
1104
|
+
export const tenantsUpdateMutation = (options) => {
|
|
1105
|
+
const mutationOptions = {
|
|
1106
|
+
mutationFn: async (localOptions) => {
|
|
1107
|
+
const { data } = await tenantsUpdate({
|
|
1108
|
+
...options,
|
|
1109
|
+
...localOptions,
|
|
1110
|
+
throwOnError: true,
|
|
1111
|
+
});
|
|
1112
|
+
return data;
|
|
1113
|
+
},
|
|
1114
|
+
};
|
|
1115
|
+
return mutationOptions;
|
|
1116
|
+
};
|
|
1117
|
+
export const cloudflareChatbotListQueryKey = (options) => createQueryKey("cloudflareChatbotList", options);
|
|
1118
|
+
export const cloudflareChatbotListOptions = (options) => {
|
|
1119
|
+
return queryOptions({
|
|
1120
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1121
|
+
const { data } = await cloudflareChatbotList({
|
|
1122
|
+
...options,
|
|
1123
|
+
...queryKey[0],
|
|
1124
|
+
signal,
|
|
1125
|
+
throwOnError: true,
|
|
1126
|
+
});
|
|
1127
|
+
return data;
|
|
1128
|
+
},
|
|
1129
|
+
queryKey: cloudflareChatbotListQueryKey(options),
|
|
1130
|
+
});
|
|
1131
|
+
};
|
|
1132
|
+
export const cloudflareChatbotCreateQueryKey = (options) => createQueryKey("cloudflareChatbotCreate", options);
|
|
1133
|
+
export const cloudflareChatbotCreateOptions = (options) => {
|
|
1134
|
+
return queryOptions({
|
|
1135
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1136
|
+
const { data } = await cloudflareChatbotCreate({
|
|
1137
|
+
...options,
|
|
1138
|
+
...queryKey[0],
|
|
1139
|
+
signal,
|
|
1140
|
+
throwOnError: true,
|
|
1141
|
+
});
|
|
1142
|
+
return data;
|
|
1143
|
+
},
|
|
1144
|
+
queryKey: cloudflareChatbotCreateQueryKey(options),
|
|
1145
|
+
});
|
|
1146
|
+
};
|
|
1147
|
+
export const cloudflareChatbotCreateMutation = (options) => {
|
|
1148
|
+
const mutationOptions = {
|
|
1149
|
+
mutationFn: async (localOptions) => {
|
|
1150
|
+
const { data } = await cloudflareChatbotCreate({
|
|
1151
|
+
...options,
|
|
1152
|
+
...localOptions,
|
|
1153
|
+
throwOnError: true,
|
|
1154
|
+
});
|
|
1155
|
+
return data;
|
|
1156
|
+
},
|
|
1157
|
+
};
|
|
1158
|
+
return mutationOptions;
|
|
1159
|
+
};
|
|
1160
|
+
export const cloudflareChatbotDeleteMutation = (options) => {
|
|
1161
|
+
const mutationOptions = {
|
|
1162
|
+
mutationFn: async (localOptions) => {
|
|
1163
|
+
const { data } = await cloudflareChatbotDelete({
|
|
1164
|
+
...options,
|
|
1165
|
+
...localOptions,
|
|
1166
|
+
throwOnError: true,
|
|
1167
|
+
});
|
|
1168
|
+
return data;
|
|
1169
|
+
},
|
|
1170
|
+
};
|
|
1171
|
+
return mutationOptions;
|
|
1172
|
+
};
|
|
1173
|
+
export const cloudflareChatbotGetQueryKey = (options) => createQueryKey("cloudflareChatbotGet", options);
|
|
1174
|
+
export const cloudflareChatbotGetOptions = (options) => {
|
|
1175
|
+
return queryOptions({
|
|
1176
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1177
|
+
const { data } = await cloudflareChatbotGet({
|
|
1178
|
+
...options,
|
|
1179
|
+
...queryKey[0],
|
|
1180
|
+
signal,
|
|
1181
|
+
throwOnError: true,
|
|
1182
|
+
});
|
|
1183
|
+
return data;
|
|
1184
|
+
},
|
|
1185
|
+
queryKey: cloudflareChatbotGetQueryKey(options),
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1188
|
+
export const blogPostsListQueryKey = (options) => createQueryKey("blogPostsList", options);
|
|
1189
|
+
export const blogPostsListOptions = (options) => {
|
|
1190
|
+
return queryOptions({
|
|
1191
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1192
|
+
const { data } = await blogPostsList({
|
|
1193
|
+
...options,
|
|
1194
|
+
...queryKey[0],
|
|
1195
|
+
signal,
|
|
1196
|
+
throwOnError: true,
|
|
1197
|
+
});
|
|
1198
|
+
return data;
|
|
1199
|
+
},
|
|
1200
|
+
queryKey: blogPostsListQueryKey(options),
|
|
1201
|
+
});
|
|
1202
|
+
};
|
|
1203
|
+
export const blogPostsListInfiniteQueryKey = (options) => createQueryKey("blogPostsList", options, true);
|
|
1204
|
+
export const blogPostsListInfiniteOptions = (options) => {
|
|
1205
|
+
return infiniteQueryOptions(
|
|
1206
|
+
// @ts-ignore
|
|
1207
|
+
{
|
|
1208
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1209
|
+
// @ts-ignore
|
|
1210
|
+
const page = typeof pageParam === "object"
|
|
1211
|
+
? pageParam
|
|
1212
|
+
: {
|
|
1213
|
+
query: {
|
|
1214
|
+
offset: pageParam,
|
|
1215
|
+
},
|
|
1216
|
+
};
|
|
1217
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1218
|
+
const { data } = await blogPostsList({
|
|
1219
|
+
...options,
|
|
1220
|
+
...params,
|
|
1221
|
+
signal,
|
|
1222
|
+
throwOnError: true,
|
|
1223
|
+
});
|
|
1224
|
+
return data;
|
|
1225
|
+
},
|
|
1226
|
+
queryKey: blogPostsListInfiniteQueryKey(options),
|
|
1227
|
+
});
|
|
1228
|
+
};
|
|
1229
|
+
export const tunnelListQueryKey = (options) => createQueryKey("tunnelList", options);
|
|
1230
|
+
export const tunnelListOptions = (options) => {
|
|
1231
|
+
return queryOptions({
|
|
1232
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1233
|
+
const { data } = await tunnelList({
|
|
1234
|
+
...options,
|
|
1235
|
+
...queryKey[0],
|
|
1236
|
+
signal,
|
|
1237
|
+
throwOnError: true,
|
|
1238
|
+
});
|
|
1239
|
+
return data;
|
|
1240
|
+
},
|
|
1241
|
+
queryKey: tunnelListQueryKey(options),
|
|
1242
|
+
});
|
|
1243
|
+
};
|
|
1244
|
+
export const tunnelGetQueryKey = (options) => createQueryKey("tunnelGet", options);
|
|
1245
|
+
export const tunnelGetOptions = (options) => {
|
|
1246
|
+
return queryOptions({
|
|
1247
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1248
|
+
const { data } = await tunnelGet({
|
|
1249
|
+
...options,
|
|
1250
|
+
...queryKey[0],
|
|
1251
|
+
signal,
|
|
1252
|
+
throwOnError: true,
|
|
1253
|
+
});
|
|
1254
|
+
return data;
|
|
1255
|
+
},
|
|
1256
|
+
queryKey: tunnelGetQueryKey(options),
|
|
1257
|
+
});
|
|
1258
|
+
};
|
|
1259
|
+
export const dashuiGetQueryKey = (options) => createQueryKey("dashuiGet", options);
|
|
1260
|
+
export const dashuiGetOptions = (options) => {
|
|
1261
|
+
return queryOptions({
|
|
1262
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1263
|
+
const { data } = await dashuiGet({
|
|
1264
|
+
...options,
|
|
1265
|
+
...queryKey[0],
|
|
1266
|
+
signal,
|
|
1267
|
+
throwOnError: true,
|
|
1268
|
+
});
|
|
1269
|
+
return data;
|
|
1270
|
+
},
|
|
1271
|
+
queryKey: dashuiGetQueryKey(options),
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
export const sysConfigQueryKey = (options) => createQueryKey("sysConfig", options);
|
|
1275
|
+
export const sysConfigOptions = (options) => {
|
|
1276
|
+
return queryOptions({
|
|
1277
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1278
|
+
const { data } = await sysConfig({
|
|
1279
|
+
...options,
|
|
1280
|
+
...queryKey[0],
|
|
1281
|
+
signal,
|
|
1282
|
+
throwOnError: true,
|
|
1283
|
+
});
|
|
1284
|
+
return data;
|
|
1285
|
+
},
|
|
1286
|
+
queryKey: sysConfigQueryKey(options),
|
|
1287
|
+
});
|
|
1288
|
+
};
|
|
1289
|
+
export const workflowTriggerQueryKey = (options) => createQueryKey("workflowTrigger", options);
|
|
1290
|
+
export const workflowTriggerOptions = (options) => {
|
|
1291
|
+
return queryOptions({
|
|
1292
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1293
|
+
const { data } = await workflowTrigger({
|
|
1294
|
+
...options,
|
|
1295
|
+
...queryKey[0],
|
|
1296
|
+
signal,
|
|
1297
|
+
throwOnError: true,
|
|
1298
|
+
});
|
|
1299
|
+
return data;
|
|
1300
|
+
},
|
|
1301
|
+
queryKey: workflowTriggerQueryKey(options),
|
|
1302
|
+
});
|
|
1303
|
+
};
|
|
1304
|
+
export const workflowTriggerInfiniteQueryKey = (options) => createQueryKey("workflowTrigger", options, true);
|
|
1305
|
+
export const workflowTriggerInfiniteOptions = (options) => {
|
|
1306
|
+
return infiniteQueryOptions(
|
|
1307
|
+
// @ts-ignore
|
|
1308
|
+
{
|
|
1309
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1310
|
+
// @ts-ignore
|
|
1311
|
+
const page = typeof pageParam === "object"
|
|
1312
|
+
? pageParam
|
|
1313
|
+
: {
|
|
1314
|
+
query: {
|
|
1315
|
+
offset: pageParam,
|
|
1316
|
+
},
|
|
1317
|
+
};
|
|
1318
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1319
|
+
const { data } = await workflowTrigger({
|
|
1320
|
+
...options,
|
|
1321
|
+
...params,
|
|
1322
|
+
signal,
|
|
1323
|
+
throwOnError: true,
|
|
1324
|
+
});
|
|
1325
|
+
return data;
|
|
1326
|
+
},
|
|
1327
|
+
queryKey: workflowTriggerInfiniteQueryKey(options),
|
|
1328
|
+
});
|
|
1329
|
+
};
|
|
1330
|
+
export const workflowTriggerMutation = (options) => {
|
|
1331
|
+
const mutationOptions = {
|
|
1332
|
+
mutationFn: async (localOptions) => {
|
|
1333
|
+
const { data } = await workflowTrigger({
|
|
1334
|
+
...options,
|
|
1335
|
+
...localOptions,
|
|
1336
|
+
throwOnError: true,
|
|
1337
|
+
});
|
|
1338
|
+
return data;
|
|
1339
|
+
},
|
|
1340
|
+
};
|
|
1341
|
+
return mutationOptions;
|
|
1342
|
+
};
|
|
1343
|
+
export const setupStatusQueryKey = (options) => createQueryKey("setupStatus", options);
|
|
1344
|
+
export const setupStatusOptions = (options) => {
|
|
1345
|
+
return queryOptions({
|
|
1346
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1347
|
+
const { data } = await setupStatus({
|
|
1348
|
+
...options,
|
|
1349
|
+
...queryKey[0],
|
|
1350
|
+
signal,
|
|
1351
|
+
throwOnError: true,
|
|
1352
|
+
});
|
|
1353
|
+
return data;
|
|
1354
|
+
},
|
|
1355
|
+
queryKey: setupStatusQueryKey(options),
|
|
1356
|
+
});
|
|
1357
|
+
};
|
|
1358
|
+
export const setupInitializeQueryKey = (options) => createQueryKey("setupInitialize", options);
|
|
1359
|
+
export const setupInitializeOptions = (options) => {
|
|
1360
|
+
return queryOptions({
|
|
1361
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1362
|
+
const { data } = await setupInitialize({
|
|
1363
|
+
...options,
|
|
1364
|
+
...queryKey[0],
|
|
1365
|
+
signal,
|
|
1366
|
+
throwOnError: true,
|
|
1367
|
+
});
|
|
1368
|
+
return data;
|
|
1369
|
+
},
|
|
1370
|
+
queryKey: setupInitializeQueryKey(options),
|
|
1371
|
+
});
|
|
1372
|
+
};
|
|
1373
|
+
export const setupInitializeMutation = (options) => {
|
|
1374
|
+
const mutationOptions = {
|
|
1375
|
+
mutationFn: async (localOptions) => {
|
|
1376
|
+
const { data } = await setupInitialize({
|
|
1377
|
+
...options,
|
|
1378
|
+
...localOptions,
|
|
1379
|
+
throwOnError: true,
|
|
1380
|
+
});
|
|
1381
|
+
return data;
|
|
1382
|
+
},
|
|
1383
|
+
};
|
|
1384
|
+
return mutationOptions;
|
|
1385
|
+
};
|
|
1386
|
+
export const configGomtmGetQueryKey = (options) => createQueryKey("configGomtmGet", options);
|
|
1387
|
+
export const configGomtmGetOptions = (options) => {
|
|
1388
|
+
return queryOptions({
|
|
1389
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1390
|
+
const { data } = await configGomtmGet({
|
|
1391
|
+
...options,
|
|
1392
|
+
...queryKey[0],
|
|
1393
|
+
signal,
|
|
1394
|
+
throwOnError: true,
|
|
1395
|
+
});
|
|
1396
|
+
return data;
|
|
1397
|
+
},
|
|
1398
|
+
queryKey: configGomtmGetQueryKey(options),
|
|
1399
|
+
});
|
|
1400
|
+
};
|
|
1401
|
+
export const singboxConfigGetQueryKey = (options) => createQueryKey("singboxConfigGet", options);
|
|
1402
|
+
export const singboxConfigGetOptions = (options) => {
|
|
1403
|
+
return queryOptions({
|
|
1404
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1405
|
+
const { data } = await singboxConfigGet({
|
|
1406
|
+
...options,
|
|
1407
|
+
...queryKey[0],
|
|
1408
|
+
signal,
|
|
1409
|
+
throwOnError: true,
|
|
1410
|
+
});
|
|
1411
|
+
return data;
|
|
1412
|
+
},
|
|
1413
|
+
queryKey: singboxConfigGetQueryKey(options),
|
|
1414
|
+
});
|
|
1415
|
+
};
|
|
1416
|
+
export const siteListQueryKey = (options) => createQueryKey("siteList", options);
|
|
1417
|
+
export const siteListOptions = (options) => {
|
|
1418
|
+
return queryOptions({
|
|
1419
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1420
|
+
const { data } = await siteList({
|
|
1421
|
+
...options,
|
|
1422
|
+
...queryKey[0],
|
|
1423
|
+
signal,
|
|
1424
|
+
throwOnError: true,
|
|
1425
|
+
});
|
|
1426
|
+
return data;
|
|
1427
|
+
},
|
|
1428
|
+
queryKey: siteListQueryKey(options),
|
|
1429
|
+
});
|
|
1430
|
+
};
|
|
1431
|
+
export const siteListInfiniteQueryKey = (options) => createQueryKey("siteList", options, true);
|
|
1432
|
+
export const siteListInfiniteOptions = (options) => {
|
|
1433
|
+
return infiniteQueryOptions(
|
|
1434
|
+
// @ts-ignore
|
|
1435
|
+
{
|
|
1436
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1437
|
+
// @ts-ignore
|
|
1438
|
+
const page = typeof pageParam === "object"
|
|
1439
|
+
? pageParam
|
|
1440
|
+
: {
|
|
1441
|
+
query: {
|
|
1442
|
+
offset: pageParam,
|
|
1443
|
+
},
|
|
1444
|
+
};
|
|
1445
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1446
|
+
const { data } = await siteList({
|
|
1447
|
+
...options,
|
|
1448
|
+
...params,
|
|
1449
|
+
signal,
|
|
1450
|
+
throwOnError: true,
|
|
1451
|
+
});
|
|
1452
|
+
return data;
|
|
1453
|
+
},
|
|
1454
|
+
queryKey: siteListInfiniteQueryKey(options),
|
|
1455
|
+
});
|
|
1456
|
+
};
|
|
1457
|
+
export const siteCreateQueryKey = (options) => createQueryKey("siteCreate", options);
|
|
1458
|
+
export const siteCreateOptions = (options) => {
|
|
1459
|
+
return queryOptions({
|
|
1460
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1461
|
+
const { data } = await siteCreate({
|
|
1462
|
+
...options,
|
|
1463
|
+
...queryKey[0],
|
|
1464
|
+
signal,
|
|
1465
|
+
throwOnError: true,
|
|
1466
|
+
});
|
|
1467
|
+
return data;
|
|
1468
|
+
},
|
|
1469
|
+
queryKey: siteCreateQueryKey(options),
|
|
1470
|
+
});
|
|
1471
|
+
};
|
|
1472
|
+
export const siteCreateMutation = (options) => {
|
|
1473
|
+
const mutationOptions = {
|
|
1474
|
+
mutationFn: async (localOptions) => {
|
|
1475
|
+
const { data } = await siteCreate({
|
|
1476
|
+
...options,
|
|
1477
|
+
...localOptions,
|
|
1478
|
+
throwOnError: true,
|
|
1479
|
+
});
|
|
1480
|
+
return data;
|
|
1481
|
+
},
|
|
1482
|
+
};
|
|
1483
|
+
return mutationOptions;
|
|
1484
|
+
};
|
|
1485
|
+
export const siteDeleteMutation = (options) => {
|
|
1486
|
+
const mutationOptions = {
|
|
1487
|
+
mutationFn: async (localOptions) => {
|
|
1488
|
+
const { data } = await siteDelete({
|
|
1489
|
+
...options,
|
|
1490
|
+
...localOptions,
|
|
1491
|
+
throwOnError: true,
|
|
1492
|
+
});
|
|
1493
|
+
return data;
|
|
1494
|
+
},
|
|
1495
|
+
};
|
|
1496
|
+
return mutationOptions;
|
|
1497
|
+
};
|
|
1498
|
+
export const siteGetQueryKey = (options) => createQueryKey("siteGet", options);
|
|
1499
|
+
export const siteGetOptions = (options) => {
|
|
1500
|
+
return queryOptions({
|
|
1501
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1502
|
+
const { data } = await siteGet({
|
|
1503
|
+
...options,
|
|
1504
|
+
...queryKey[0],
|
|
1505
|
+
signal,
|
|
1506
|
+
throwOnError: true,
|
|
1507
|
+
});
|
|
1508
|
+
return data;
|
|
1509
|
+
},
|
|
1510
|
+
queryKey: siteGetQueryKey(options),
|
|
1511
|
+
});
|
|
1512
|
+
};
|
|
1513
|
+
export const siteUpdateMutation = (options) => {
|
|
1514
|
+
const mutationOptions = {
|
|
1515
|
+
mutationFn: async (localOptions) => {
|
|
1516
|
+
const { data } = await siteUpdate({
|
|
1517
|
+
...options,
|
|
1518
|
+
...localOptions,
|
|
1519
|
+
throwOnError: true,
|
|
1520
|
+
});
|
|
1521
|
+
return data;
|
|
1522
|
+
},
|
|
1523
|
+
};
|
|
1524
|
+
return mutationOptions;
|
|
1525
|
+
};
|
|
1526
|
+
export const blogPostsList2QueryKey = (options) => createQueryKey("blogPostsList2", options);
|
|
1527
|
+
export const blogPostsList2Options = (options) => {
|
|
1528
|
+
return queryOptions({
|
|
1529
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1530
|
+
const { data } = await blogPostsList2({
|
|
1531
|
+
...options,
|
|
1532
|
+
...queryKey[0],
|
|
1533
|
+
signal,
|
|
1534
|
+
throwOnError: true,
|
|
1535
|
+
});
|
|
1536
|
+
return data;
|
|
1537
|
+
},
|
|
1538
|
+
queryKey: blogPostsList2QueryKey(options),
|
|
1539
|
+
});
|
|
1540
|
+
};
|
|
1541
|
+
export const blogPostsList2InfiniteQueryKey = (options) => createQueryKey("blogPostsList2", options, true);
|
|
1542
|
+
export const blogPostsList2InfiniteOptions = (options) => {
|
|
1543
|
+
return infiniteQueryOptions(
|
|
1544
|
+
// @ts-ignore
|
|
1545
|
+
{
|
|
1546
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1547
|
+
// @ts-ignore
|
|
1548
|
+
const page = typeof pageParam === "object"
|
|
1549
|
+
? pageParam
|
|
1550
|
+
: {
|
|
1551
|
+
query: {
|
|
1552
|
+
offset: pageParam,
|
|
1553
|
+
},
|
|
1554
|
+
};
|
|
1555
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1556
|
+
const { data } = await blogPostsList2({
|
|
1557
|
+
...options,
|
|
1558
|
+
...params,
|
|
1559
|
+
signal,
|
|
1560
|
+
throwOnError: true,
|
|
1561
|
+
});
|
|
1562
|
+
return data;
|
|
1563
|
+
},
|
|
1564
|
+
queryKey: blogPostsList2InfiniteQueryKey(options),
|
|
1565
|
+
});
|
|
1566
|
+
};
|
|
1567
|
+
export const blogPostsCreateQueryKey = (options) => createQueryKey("blogPostsCreate", options);
|
|
1568
|
+
export const blogPostsCreateOptions = (options) => {
|
|
1569
|
+
return queryOptions({
|
|
1570
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1571
|
+
const { data } = await blogPostsCreate({
|
|
1572
|
+
...options,
|
|
1573
|
+
...queryKey[0],
|
|
1574
|
+
signal,
|
|
1575
|
+
throwOnError: true,
|
|
1576
|
+
});
|
|
1577
|
+
return data;
|
|
1578
|
+
},
|
|
1579
|
+
queryKey: blogPostsCreateQueryKey(options),
|
|
1580
|
+
});
|
|
1581
|
+
};
|
|
1582
|
+
export const blogPostsCreateMutation = (options) => {
|
|
1583
|
+
const mutationOptions = {
|
|
1584
|
+
mutationFn: async (localOptions) => {
|
|
1585
|
+
const { data } = await blogPostsCreate({
|
|
1586
|
+
...options,
|
|
1587
|
+
...localOptions,
|
|
1588
|
+
throwOnError: true,
|
|
1589
|
+
});
|
|
1590
|
+
return data;
|
|
1591
|
+
},
|
|
1592
|
+
};
|
|
1593
|
+
return mutationOptions;
|
|
1594
|
+
};
|
|
1595
|
+
export const blogPostsDeleteMutation = (options) => {
|
|
1596
|
+
const mutationOptions = {
|
|
1597
|
+
mutationFn: async (localOptions) => {
|
|
1598
|
+
const { data } = await blogPostsDelete({
|
|
1599
|
+
...options,
|
|
1600
|
+
...localOptions,
|
|
1601
|
+
throwOnError: true,
|
|
1602
|
+
});
|
|
1603
|
+
return data;
|
|
1604
|
+
},
|
|
1605
|
+
};
|
|
1606
|
+
return mutationOptions;
|
|
1607
|
+
};
|
|
1608
|
+
export const blogPostsGetByIdQueryKey = (options) => createQueryKey("blogPostsGetById", options);
|
|
1609
|
+
export const blogPostsGetByIdOptions = (options) => {
|
|
1610
|
+
return queryOptions({
|
|
1611
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1612
|
+
const { data } = await blogPostsGetById({
|
|
1613
|
+
...options,
|
|
1614
|
+
...queryKey[0],
|
|
1615
|
+
signal,
|
|
1616
|
+
throwOnError: true,
|
|
1617
|
+
});
|
|
1618
|
+
return data;
|
|
1619
|
+
},
|
|
1620
|
+
queryKey: blogPostsGetByIdQueryKey(options),
|
|
1621
|
+
});
|
|
1622
|
+
};
|
|
1623
|
+
export const blogPostsUpdateMutation = (options) => {
|
|
1624
|
+
const mutationOptions = {
|
|
1625
|
+
mutationFn: async (localOptions) => {
|
|
1626
|
+
const { data } = await blogPostsUpdate({
|
|
1627
|
+
...options,
|
|
1628
|
+
...localOptions,
|
|
1629
|
+
throwOnError: true,
|
|
1630
|
+
});
|
|
1631
|
+
return data;
|
|
1632
|
+
},
|
|
1633
|
+
};
|
|
1634
|
+
return mutationOptions;
|
|
1635
|
+
};
|
|
1636
|
+
export const blogPostsGetBySlugQueryKey = (options) => createQueryKey("blogPostsGetBySlug", options);
|
|
1637
|
+
export const blogPostsGetBySlugOptions = (options) => {
|
|
1638
|
+
return queryOptions({
|
|
1639
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1640
|
+
const { data } = await blogPostsGetBySlug({
|
|
1641
|
+
...options,
|
|
1642
|
+
...queryKey[0],
|
|
1643
|
+
signal,
|
|
1644
|
+
throwOnError: true,
|
|
1645
|
+
});
|
|
1646
|
+
return data;
|
|
1647
|
+
},
|
|
1648
|
+
queryKey: blogPostsGetBySlugQueryKey(options),
|
|
1649
|
+
});
|
|
1650
|
+
};
|
|
1651
|
+
export const sitehostListQueryKey = (options) => createQueryKey("sitehostList", options);
|
|
1652
|
+
export const sitehostListOptions = (options) => {
|
|
1653
|
+
return queryOptions({
|
|
1654
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1655
|
+
const { data } = await sitehostList({
|
|
1656
|
+
...options,
|
|
1657
|
+
...queryKey[0],
|
|
1658
|
+
signal,
|
|
1659
|
+
throwOnError: true,
|
|
1660
|
+
});
|
|
1661
|
+
return data;
|
|
1662
|
+
},
|
|
1663
|
+
queryKey: sitehostListQueryKey(options),
|
|
1664
|
+
});
|
|
1665
|
+
};
|
|
1666
|
+
export const sitehostCreateQueryKey = (options) => createQueryKey("sitehostCreate", options);
|
|
1667
|
+
export const sitehostCreateOptions = (options) => {
|
|
1668
|
+
return queryOptions({
|
|
1669
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1670
|
+
const { data } = await sitehostCreate({
|
|
1671
|
+
...options,
|
|
1672
|
+
...queryKey[0],
|
|
1673
|
+
signal,
|
|
1674
|
+
throwOnError: true,
|
|
1675
|
+
});
|
|
1676
|
+
return data;
|
|
1677
|
+
},
|
|
1678
|
+
queryKey: sitehostCreateQueryKey(options),
|
|
1679
|
+
});
|
|
1680
|
+
};
|
|
1681
|
+
export const sitehostCreateMutation = (options) => {
|
|
1682
|
+
const mutationOptions = {
|
|
1683
|
+
mutationFn: async (localOptions) => {
|
|
1684
|
+
const { data } = await sitehostCreate({
|
|
1685
|
+
...options,
|
|
1686
|
+
...localOptions,
|
|
1687
|
+
throwOnError: true,
|
|
1688
|
+
});
|
|
1689
|
+
return data;
|
|
1690
|
+
},
|
|
1691
|
+
};
|
|
1692
|
+
return mutationOptions;
|
|
1693
|
+
};
|
|
1694
|
+
export const sitehostDeleteMutation = (options) => {
|
|
1695
|
+
const mutationOptions = {
|
|
1696
|
+
mutationFn: async (localOptions) => {
|
|
1697
|
+
const { data } = await sitehostDelete({
|
|
1698
|
+
...options,
|
|
1699
|
+
...localOptions,
|
|
1700
|
+
throwOnError: true,
|
|
1701
|
+
});
|
|
1702
|
+
return data;
|
|
1703
|
+
},
|
|
1704
|
+
};
|
|
1705
|
+
return mutationOptions;
|
|
1706
|
+
};
|
|
1707
|
+
export const adkSessionCreateQueryKey = (options) => createQueryKey("adkSessionCreate", options);
|
|
1708
|
+
/**
|
|
1709
|
+
* 创建ADK会话
|
|
1710
|
+
* 创建新的ADK会话实例
|
|
1711
|
+
*/
|
|
1712
|
+
export const adkSessionCreateOptions = (options) => {
|
|
1713
|
+
return queryOptions({
|
|
1714
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1715
|
+
const { data } = await adkSessionCreate({
|
|
1716
|
+
...options,
|
|
1717
|
+
...queryKey[0],
|
|
1718
|
+
signal,
|
|
1719
|
+
throwOnError: true,
|
|
1720
|
+
});
|
|
1721
|
+
return data;
|
|
1722
|
+
},
|
|
1723
|
+
queryKey: adkSessionCreateQueryKey(options),
|
|
1724
|
+
});
|
|
1725
|
+
};
|
|
1726
|
+
/**
|
|
1727
|
+
* 创建ADK会话
|
|
1728
|
+
* 创建新的ADK会话实例
|
|
1729
|
+
*/
|
|
1730
|
+
export const adkSessionCreateMutation = (options) => {
|
|
1731
|
+
const mutationOptions = {
|
|
1732
|
+
mutationFn: async (localOptions) => {
|
|
1733
|
+
const { data } = await adkSessionCreate({
|
|
1734
|
+
...options,
|
|
1735
|
+
...localOptions,
|
|
1736
|
+
throwOnError: true,
|
|
1737
|
+
});
|
|
1738
|
+
return data;
|
|
1739
|
+
},
|
|
1740
|
+
};
|
|
1741
|
+
return mutationOptions;
|
|
1742
|
+
};
|
|
1743
|
+
export const adkSessionGetQueryKey = (options) => createQueryKey("adkSessionGet", options);
|
|
1744
|
+
/**
|
|
1745
|
+
* 获取ADK会话
|
|
1746
|
+
* 根据会话ID获取ADK会话详情
|
|
1747
|
+
*/
|
|
1748
|
+
export const adkSessionGetOptions = (options) => {
|
|
1749
|
+
return queryOptions({
|
|
1750
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1751
|
+
const { data } = await adkSessionGet({
|
|
1752
|
+
...options,
|
|
1753
|
+
...queryKey[0],
|
|
1754
|
+
signal,
|
|
1755
|
+
throwOnError: true,
|
|
1756
|
+
});
|
|
1757
|
+
return data;
|
|
1758
|
+
},
|
|
1759
|
+
queryKey: adkSessionGetQueryKey(options),
|
|
1760
|
+
});
|
|
1761
|
+
};
|
|
1762
|
+
/**
|
|
1763
|
+
* 获取ADK会话
|
|
1764
|
+
* 根据会话ID获取ADK会话详情
|
|
1765
|
+
*/
|
|
1766
|
+
export const adkSessionGetMutation = (options) => {
|
|
1767
|
+
const mutationOptions = {
|
|
1768
|
+
mutationFn: async (localOptions) => {
|
|
1769
|
+
const { data } = await adkSessionGet({
|
|
1770
|
+
...options,
|
|
1771
|
+
...localOptions,
|
|
1772
|
+
throwOnError: true,
|
|
1773
|
+
});
|
|
1774
|
+
return data;
|
|
1775
|
+
},
|
|
1776
|
+
};
|
|
1777
|
+
return mutationOptions;
|
|
1778
|
+
};
|
|
1779
|
+
export const adkSessionListQueryKey = (options) => createQueryKey("adkSessionList", options);
|
|
1780
|
+
/**
|
|
1781
|
+
* 列出ADK会话
|
|
1782
|
+
* 获取指定应用和用户的所有ADK会话列表
|
|
1783
|
+
*/
|
|
1784
|
+
export const adkSessionListOptions = (options) => {
|
|
1785
|
+
return queryOptions({
|
|
1786
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1787
|
+
const { data } = await adkSessionList({
|
|
1788
|
+
...options,
|
|
1789
|
+
...queryKey[0],
|
|
1790
|
+
signal,
|
|
1791
|
+
throwOnError: true,
|
|
1792
|
+
});
|
|
1793
|
+
return data;
|
|
1794
|
+
},
|
|
1795
|
+
queryKey: adkSessionListQueryKey(options),
|
|
1796
|
+
});
|
|
1797
|
+
};
|
|
1798
|
+
export const adkSessionListInfiniteQueryKey = (options) => createQueryKey("adkSessionList", options, true);
|
|
1799
|
+
/**
|
|
1800
|
+
* 列出ADK会话
|
|
1801
|
+
* 获取指定应用和用户的所有ADK会话列表
|
|
1802
|
+
*/
|
|
1803
|
+
export const adkSessionListInfiniteOptions = (options) => {
|
|
1804
|
+
return infiniteQueryOptions(
|
|
1805
|
+
// @ts-ignore
|
|
1806
|
+
{
|
|
1807
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1808
|
+
// @ts-ignore
|
|
1809
|
+
const page = typeof pageParam === "object"
|
|
1810
|
+
? pageParam
|
|
1811
|
+
: {
|
|
1812
|
+
query: {
|
|
1813
|
+
offset: pageParam,
|
|
1814
|
+
},
|
|
1815
|
+
};
|
|
1816
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1817
|
+
const { data } = await adkSessionList({
|
|
1818
|
+
...options,
|
|
1819
|
+
...params,
|
|
1820
|
+
signal,
|
|
1821
|
+
throwOnError: true,
|
|
1822
|
+
});
|
|
1823
|
+
return data;
|
|
1824
|
+
},
|
|
1825
|
+
queryKey: adkSessionListInfiniteQueryKey(options),
|
|
1826
|
+
});
|
|
1827
|
+
};
|
|
1828
|
+
export const adkSessionDeleteQueryKey = (options) => createQueryKey("adkSessionDelete", options);
|
|
1829
|
+
/**
|
|
1830
|
+
* 删除ADK会话
|
|
1831
|
+
* 删除指定的ADK会话
|
|
1832
|
+
*/
|
|
1833
|
+
export const adkSessionDeleteOptions = (options) => {
|
|
1834
|
+
return queryOptions({
|
|
1835
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1836
|
+
const { data } = await adkSessionDelete({
|
|
1837
|
+
...options,
|
|
1838
|
+
...queryKey[0],
|
|
1839
|
+
signal,
|
|
1840
|
+
throwOnError: true,
|
|
1841
|
+
});
|
|
1842
|
+
return data;
|
|
1843
|
+
},
|
|
1844
|
+
queryKey: adkSessionDeleteQueryKey(options),
|
|
1845
|
+
});
|
|
1846
|
+
};
|
|
1847
|
+
/**
|
|
1848
|
+
* 删除ADK会话
|
|
1849
|
+
* 删除指定的ADK会话
|
|
1850
|
+
*/
|
|
1851
|
+
export const adkSessionDeleteMutation = (options) => {
|
|
1852
|
+
const mutationOptions = {
|
|
1853
|
+
mutationFn: async (localOptions) => {
|
|
1854
|
+
const { data } = await adkSessionDelete({
|
|
1855
|
+
...options,
|
|
1856
|
+
...localOptions,
|
|
1857
|
+
throwOnError: true,
|
|
1858
|
+
});
|
|
1859
|
+
return data;
|
|
1860
|
+
},
|
|
1861
|
+
};
|
|
1862
|
+
return mutationOptions;
|
|
1863
|
+
};
|
|
1864
|
+
export const adkSessionAppendEventQueryKey = (options) => createQueryKey("adkSessionAppendEvent", options);
|
|
1865
|
+
/**
|
|
1866
|
+
* 向ADK会话添加事件
|
|
1867
|
+
* 向指定的ADK会话添加新事件
|
|
1868
|
+
*/
|
|
1869
|
+
export const adkSessionAppendEventOptions = (options) => {
|
|
1870
|
+
return queryOptions({
|
|
1871
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1872
|
+
const { data } = await adkSessionAppendEvent({
|
|
1873
|
+
...options,
|
|
1874
|
+
...queryKey[0],
|
|
1875
|
+
signal,
|
|
1876
|
+
throwOnError: true,
|
|
1877
|
+
});
|
|
1878
|
+
return data;
|
|
1879
|
+
},
|
|
1880
|
+
queryKey: adkSessionAppendEventQueryKey(options),
|
|
1881
|
+
});
|
|
1882
|
+
};
|
|
1883
|
+
/**
|
|
1884
|
+
* 向ADK会话添加事件
|
|
1885
|
+
* 向指定的ADK会话添加新事件
|
|
1886
|
+
*/
|
|
1887
|
+
export const adkSessionAppendEventMutation = (options) => {
|
|
1888
|
+
const mutationOptions = {
|
|
1889
|
+
mutationFn: async (localOptions) => {
|
|
1890
|
+
const { data } = await adkSessionAppendEvent({
|
|
1891
|
+
...options,
|
|
1892
|
+
...localOptions,
|
|
1893
|
+
throwOnError: true,
|
|
1894
|
+
});
|
|
1895
|
+
return data;
|
|
1896
|
+
},
|
|
1897
|
+
};
|
|
1898
|
+
return mutationOptions;
|
|
1899
|
+
};
|
|
1900
|
+
export const adkArtifactSaveQueryKey = (options) => createQueryKey("adkArtifactSave", options);
|
|
1901
|
+
/**
|
|
1902
|
+
* 保存ADK Artifact
|
|
1903
|
+
* 保存新的ADK Artifact版本
|
|
1904
|
+
*/
|
|
1905
|
+
export const adkArtifactSaveOptions = (options) => {
|
|
1906
|
+
return queryOptions({
|
|
1907
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1908
|
+
const { data } = await adkArtifactSave({
|
|
1909
|
+
...options,
|
|
1910
|
+
...queryKey[0],
|
|
1911
|
+
signal,
|
|
1912
|
+
throwOnError: true,
|
|
1913
|
+
});
|
|
1914
|
+
return data;
|
|
1915
|
+
},
|
|
1916
|
+
queryKey: adkArtifactSaveQueryKey(options),
|
|
1917
|
+
});
|
|
1918
|
+
};
|
|
1919
|
+
/**
|
|
1920
|
+
* 保存ADK Artifact
|
|
1921
|
+
* 保存新的ADK Artifact版本
|
|
1922
|
+
*/
|
|
1923
|
+
export const adkArtifactSaveMutation = (options) => {
|
|
1924
|
+
const mutationOptions = {
|
|
1925
|
+
mutationFn: async (localOptions) => {
|
|
1926
|
+
const { data } = await adkArtifactSave({
|
|
1927
|
+
...options,
|
|
1928
|
+
...localOptions,
|
|
1929
|
+
throwOnError: true,
|
|
1930
|
+
});
|
|
1931
|
+
return data;
|
|
1932
|
+
},
|
|
1933
|
+
};
|
|
1934
|
+
return mutationOptions;
|
|
1935
|
+
};
|
|
1936
|
+
export const adkArtifactLoadQueryKey = (options) => createQueryKey("adkArtifactLoad", options);
|
|
1937
|
+
/**
|
|
1938
|
+
* 加载ADK Artifact
|
|
1939
|
+
* 根据参数加载ADK Artifact
|
|
1940
|
+
*/
|
|
1941
|
+
export const adkArtifactLoadOptions = (options) => {
|
|
1942
|
+
return queryOptions({
|
|
1943
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1944
|
+
const { data } = await adkArtifactLoad({
|
|
1945
|
+
...options,
|
|
1946
|
+
...queryKey[0],
|
|
1947
|
+
signal,
|
|
1948
|
+
throwOnError: true,
|
|
1949
|
+
});
|
|
1950
|
+
return data;
|
|
1951
|
+
},
|
|
1952
|
+
queryKey: adkArtifactLoadQueryKey(options),
|
|
1953
|
+
});
|
|
1954
|
+
};
|
|
1955
|
+
/**
|
|
1956
|
+
* 加载ADK Artifact
|
|
1957
|
+
* 根据参数加载ADK Artifact
|
|
1958
|
+
*/
|
|
1959
|
+
export const adkArtifactLoadMutation = (options) => {
|
|
1960
|
+
const mutationOptions = {
|
|
1961
|
+
mutationFn: async (localOptions) => {
|
|
1962
|
+
const { data } = await adkArtifactLoad({
|
|
1963
|
+
...options,
|
|
1964
|
+
...localOptions,
|
|
1965
|
+
throwOnError: true,
|
|
1966
|
+
});
|
|
1967
|
+
return data;
|
|
1968
|
+
},
|
|
1969
|
+
};
|
|
1970
|
+
return mutationOptions;
|
|
1971
|
+
};
|
|
1972
|
+
export const adkArtifactListQueryKey = (options) => createQueryKey("adkArtifactList", options);
|
|
1973
|
+
/**
|
|
1974
|
+
* 列出ADK Artifacts
|
|
1975
|
+
* 获取ADK artifacts列表(包含完整信息)
|
|
1976
|
+
*/
|
|
1977
|
+
export const adkArtifactListOptions = (options) => {
|
|
1978
|
+
return queryOptions({
|
|
1979
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1980
|
+
const { data } = await adkArtifactList({
|
|
1981
|
+
...options,
|
|
1982
|
+
...queryKey[0],
|
|
1983
|
+
signal,
|
|
1984
|
+
throwOnError: true,
|
|
1985
|
+
});
|
|
1986
|
+
return data;
|
|
1987
|
+
},
|
|
1988
|
+
queryKey: adkArtifactListQueryKey(options),
|
|
1989
|
+
});
|
|
1990
|
+
};
|
|
1991
|
+
export const adkArtifactListInfiniteQueryKey = (options) => createQueryKey("adkArtifactList", options, true);
|
|
1992
|
+
/**
|
|
1993
|
+
* 列出ADK Artifacts
|
|
1994
|
+
* 获取ADK artifacts列表(包含完整信息)
|
|
1995
|
+
*/
|
|
1996
|
+
export const adkArtifactListInfiniteOptions = (options) => {
|
|
1997
|
+
return infiniteQueryOptions(
|
|
1998
|
+
// @ts-ignore
|
|
1999
|
+
{
|
|
2000
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2001
|
+
// @ts-ignore
|
|
2002
|
+
const page = typeof pageParam === "object"
|
|
2003
|
+
? pageParam
|
|
2004
|
+
: {
|
|
2005
|
+
query: {
|
|
2006
|
+
offset: pageParam,
|
|
2007
|
+
},
|
|
2008
|
+
};
|
|
2009
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2010
|
+
const { data } = await adkArtifactList({
|
|
2011
|
+
...options,
|
|
2012
|
+
...params,
|
|
2013
|
+
signal,
|
|
2014
|
+
throwOnError: true,
|
|
2015
|
+
});
|
|
2016
|
+
return data;
|
|
2017
|
+
},
|
|
2018
|
+
queryKey: adkArtifactListInfiniteQueryKey(options),
|
|
2019
|
+
});
|
|
2020
|
+
};
|
|
2021
|
+
export const adkArtifactListKeysQueryKey = (options) => createQueryKey("adkArtifactListKeys", options);
|
|
2022
|
+
/**
|
|
2023
|
+
* 列出ADK Artifact文件名
|
|
2024
|
+
* 获取指定会话的所有artifact文件名列表
|
|
2025
|
+
*/
|
|
2026
|
+
export const adkArtifactListKeysOptions = (options) => {
|
|
2027
|
+
return queryOptions({
|
|
2028
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2029
|
+
const { data } = await adkArtifactListKeys({
|
|
2030
|
+
...options,
|
|
2031
|
+
...queryKey[0],
|
|
2032
|
+
signal,
|
|
2033
|
+
throwOnError: true,
|
|
2034
|
+
});
|
|
2035
|
+
return data;
|
|
2036
|
+
},
|
|
2037
|
+
queryKey: adkArtifactListKeysQueryKey(options),
|
|
2038
|
+
});
|
|
2039
|
+
};
|
|
2040
|
+
export const adkArtifactDeleteQueryKey = (options) => createQueryKey("adkArtifactDelete", options);
|
|
2041
|
+
/**
|
|
2042
|
+
* 删除ADK Artifact
|
|
2043
|
+
* 删除指定的ADK Artifact
|
|
2044
|
+
*/
|
|
2045
|
+
export const adkArtifactDeleteOptions = (options) => {
|
|
2046
|
+
return queryOptions({
|
|
2047
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2048
|
+
const { data } = await adkArtifactDelete({
|
|
2049
|
+
...options,
|
|
2050
|
+
...queryKey[0],
|
|
2051
|
+
signal,
|
|
2052
|
+
throwOnError: true,
|
|
2053
|
+
});
|
|
2054
|
+
return data;
|
|
2055
|
+
},
|
|
2056
|
+
queryKey: adkArtifactDeleteQueryKey(options),
|
|
2057
|
+
});
|
|
2058
|
+
};
|
|
2059
|
+
/**
|
|
2060
|
+
* 删除ADK Artifact
|
|
2061
|
+
* 删除指定的ADK Artifact
|
|
2062
|
+
*/
|
|
2063
|
+
export const adkArtifactDeleteMutation = (options) => {
|
|
2064
|
+
const mutationOptions = {
|
|
2065
|
+
mutationFn: async (localOptions) => {
|
|
2066
|
+
const { data } = await adkArtifactDelete({
|
|
2067
|
+
...options,
|
|
2068
|
+
...localOptions,
|
|
2069
|
+
throwOnError: true,
|
|
2070
|
+
});
|
|
2071
|
+
return data;
|
|
2072
|
+
},
|
|
2073
|
+
};
|
|
2074
|
+
return mutationOptions;
|
|
2075
|
+
};
|
|
2076
|
+
export const adkArtifactListVersionsQueryKey = (options) => createQueryKey("adkArtifactListVersions", options);
|
|
2077
|
+
/**
|
|
2078
|
+
* 列出ADK Artifact版本
|
|
2079
|
+
* 获取指定artifact的所有版本列表
|
|
2080
|
+
*/
|
|
2081
|
+
export const adkArtifactListVersionsOptions = (options) => {
|
|
2082
|
+
return queryOptions({
|
|
2083
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2084
|
+
const { data } = await adkArtifactListVersions({
|
|
2085
|
+
...options,
|
|
2086
|
+
...queryKey[0],
|
|
2087
|
+
signal,
|
|
2088
|
+
throwOnError: true,
|
|
2089
|
+
});
|
|
2090
|
+
return data;
|
|
2091
|
+
},
|
|
2092
|
+
queryKey: adkArtifactListVersionsQueryKey(options),
|
|
2093
|
+
});
|
|
2094
|
+
};
|
|
2095
|
+
export const adkMemoryAddSessionQueryKey = (options) => createQueryKey("adkMemoryAddSession", options);
|
|
2096
|
+
/**
|
|
2097
|
+
* 添加会话到内存
|
|
2098
|
+
* 将会话及其事件添加到内存服务中
|
|
2099
|
+
*/
|
|
2100
|
+
export const adkMemoryAddSessionOptions = (options) => {
|
|
2101
|
+
return queryOptions({
|
|
2102
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2103
|
+
const { data } = await adkMemoryAddSession({
|
|
2104
|
+
...options,
|
|
2105
|
+
...queryKey[0],
|
|
2106
|
+
signal,
|
|
2107
|
+
throwOnError: true,
|
|
2108
|
+
});
|
|
2109
|
+
return data;
|
|
2110
|
+
},
|
|
2111
|
+
queryKey: adkMemoryAddSessionQueryKey(options),
|
|
2112
|
+
});
|
|
2113
|
+
};
|
|
2114
|
+
/**
|
|
2115
|
+
* 添加会话到内存
|
|
2116
|
+
* 将会话及其事件添加到内存服务中
|
|
2117
|
+
*/
|
|
2118
|
+
export const adkMemoryAddSessionMutation = (options) => {
|
|
2119
|
+
const mutationOptions = {
|
|
2120
|
+
mutationFn: async (localOptions) => {
|
|
2121
|
+
const { data } = await adkMemoryAddSession({
|
|
2122
|
+
...options,
|
|
2123
|
+
...localOptions,
|
|
2124
|
+
throwOnError: true,
|
|
2125
|
+
});
|
|
2126
|
+
return data;
|
|
2127
|
+
},
|
|
2128
|
+
};
|
|
2129
|
+
return mutationOptions;
|
|
2130
|
+
};
|
|
2131
|
+
export const adkMemoryListQueryKey = (options) => createQueryKey("adkMemoryList", options);
|
|
2132
|
+
/**
|
|
2133
|
+
* 列出ADK记忆
|
|
2134
|
+
* 获取ADK记忆列表
|
|
2135
|
+
*/
|
|
2136
|
+
export const adkMemoryListOptions = (options) => {
|
|
2137
|
+
return queryOptions({
|
|
2138
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2139
|
+
const { data } = await adkMemoryList({
|
|
2140
|
+
...options,
|
|
2141
|
+
...queryKey[0],
|
|
2142
|
+
signal,
|
|
2143
|
+
throwOnError: true,
|
|
2144
|
+
});
|
|
2145
|
+
return data;
|
|
2146
|
+
},
|
|
2147
|
+
queryKey: adkMemoryListQueryKey(options),
|
|
2148
|
+
});
|
|
2149
|
+
};
|
|
2150
|
+
export const adkMemoryListInfiniteQueryKey = (options) => createQueryKey("adkMemoryList", options, true);
|
|
2151
|
+
/**
|
|
2152
|
+
* 列出ADK记忆
|
|
2153
|
+
* 获取ADK记忆列表
|
|
2154
|
+
*/
|
|
2155
|
+
export const adkMemoryListInfiniteOptions = (options) => {
|
|
2156
|
+
return infiniteQueryOptions(
|
|
2157
|
+
// @ts-ignore
|
|
2158
|
+
{
|
|
2159
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2160
|
+
// @ts-ignore
|
|
2161
|
+
const page = typeof pageParam === "object"
|
|
2162
|
+
? pageParam
|
|
2163
|
+
: {
|
|
2164
|
+
query: {
|
|
2165
|
+
offset: pageParam,
|
|
2166
|
+
},
|
|
2167
|
+
};
|
|
2168
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2169
|
+
const { data } = await adkMemoryList({
|
|
2170
|
+
...options,
|
|
2171
|
+
...params,
|
|
2172
|
+
signal,
|
|
2173
|
+
throwOnError: true,
|
|
2174
|
+
});
|
|
2175
|
+
return data;
|
|
2176
|
+
},
|
|
2177
|
+
queryKey: adkMemoryListInfiniteQueryKey(options),
|
|
2178
|
+
});
|
|
2179
|
+
};
|
|
2180
|
+
export const adkMemorySearchQueryKey = (options) => createQueryKey("adkMemorySearch", options);
|
|
2181
|
+
/**
|
|
2182
|
+
* 搜索内存
|
|
2183
|
+
* 根据查询条件搜索内存中的相关内容
|
|
2184
|
+
*/
|
|
2185
|
+
export const adkMemorySearchOptions = (options) => {
|
|
2186
|
+
return queryOptions({
|
|
2187
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2188
|
+
const { data } = await adkMemorySearch({
|
|
2189
|
+
...options,
|
|
2190
|
+
...queryKey[0],
|
|
2191
|
+
signal,
|
|
2192
|
+
throwOnError: true,
|
|
2193
|
+
});
|
|
2194
|
+
return data;
|
|
2195
|
+
},
|
|
2196
|
+
queryKey: adkMemorySearchQueryKey(options),
|
|
2197
|
+
});
|
|
2198
|
+
};
|
|
2199
|
+
/**
|
|
2200
|
+
* 搜索内存
|
|
2201
|
+
* 根据查询条件搜索内存中的相关内容
|
|
2202
|
+
*/
|
|
2203
|
+
export const adkMemorySearchMutation = (options) => {
|
|
2204
|
+
const mutationOptions = {
|
|
2205
|
+
mutationFn: async (localOptions) => {
|
|
2206
|
+
const { data } = await adkMemorySearch({
|
|
2207
|
+
...options,
|
|
2208
|
+
...localOptions,
|
|
2209
|
+
throwOnError: true,
|
|
2210
|
+
});
|
|
2211
|
+
return data;
|
|
2212
|
+
},
|
|
2213
|
+
};
|
|
2214
|
+
return mutationOptions;
|
|
2215
|
+
};
|
|
2216
|
+
export const adkTaskSaveQueryKey = (options) => createQueryKey("adkTaskSave", options);
|
|
2217
|
+
/**
|
|
2218
|
+
* 保存ADK任务
|
|
2219
|
+
* 保存或更新ADK任务实例
|
|
2220
|
+
*/
|
|
2221
|
+
export const adkTaskSaveOptions = (options) => {
|
|
2222
|
+
return queryOptions({
|
|
2223
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2224
|
+
const { data } = await adkTaskSave({
|
|
2225
|
+
...options,
|
|
2226
|
+
...queryKey[0],
|
|
2227
|
+
signal,
|
|
2228
|
+
throwOnError: true,
|
|
2229
|
+
});
|
|
2230
|
+
return data;
|
|
2231
|
+
},
|
|
2232
|
+
queryKey: adkTaskSaveQueryKey(options),
|
|
2233
|
+
});
|
|
2234
|
+
};
|
|
2235
|
+
/**
|
|
2236
|
+
* 保存ADK任务
|
|
2237
|
+
* 保存或更新ADK任务实例
|
|
2238
|
+
*/
|
|
2239
|
+
export const adkTaskSaveMutation = (options) => {
|
|
2240
|
+
const mutationOptions = {
|
|
2241
|
+
mutationFn: async (localOptions) => {
|
|
2242
|
+
const { data } = await adkTaskSave({
|
|
2243
|
+
...options,
|
|
2244
|
+
...localOptions,
|
|
2245
|
+
throwOnError: true,
|
|
2246
|
+
});
|
|
2247
|
+
return data;
|
|
2248
|
+
},
|
|
2249
|
+
};
|
|
2250
|
+
return mutationOptions;
|
|
2251
|
+
};
|
|
2252
|
+
export const adkTaskGetQueryKey = (options) => createQueryKey("adkTaskGet", options);
|
|
2253
|
+
/**
|
|
2254
|
+
* 获取ADK任务
|
|
2255
|
+
* 根据任务ID获取ADK任务详情
|
|
2256
|
+
*/
|
|
2257
|
+
export const adkTaskGetOptions = (options) => {
|
|
2258
|
+
return queryOptions({
|
|
2259
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2260
|
+
const { data } = await adkTaskGet({
|
|
2261
|
+
...options,
|
|
2262
|
+
...queryKey[0],
|
|
2263
|
+
signal,
|
|
2264
|
+
throwOnError: true,
|
|
2265
|
+
});
|
|
2266
|
+
return data;
|
|
2267
|
+
},
|
|
2268
|
+
queryKey: adkTaskGetQueryKey(options),
|
|
2269
|
+
});
|
|
2270
|
+
};
|
|
2271
|
+
/**
|
|
2272
|
+
* 获取ADK任务
|
|
2273
|
+
* 根据任务ID获取ADK任务详情
|
|
2274
|
+
*/
|
|
2275
|
+
export const adkTaskGetMutation = (options) => {
|
|
2276
|
+
const mutationOptions = {
|
|
2277
|
+
mutationFn: async (localOptions) => {
|
|
2278
|
+
const { data } = await adkTaskGet({
|
|
2279
|
+
...options,
|
|
2280
|
+
...localOptions,
|
|
2281
|
+
throwOnError: true,
|
|
2282
|
+
});
|
|
2283
|
+
return data;
|
|
2284
|
+
},
|
|
2285
|
+
};
|
|
2286
|
+
return mutationOptions;
|
|
2287
|
+
};
|
|
2288
|
+
export const adkTaskListQueryKey = (options) => createQueryKey("adkTaskList", options);
|
|
2289
|
+
/**
|
|
2290
|
+
* 列出ADK任务
|
|
2291
|
+
* 获取ADK任务列表
|
|
2292
|
+
*/
|
|
2293
|
+
export const adkTaskListOptions = (options) => {
|
|
2294
|
+
return queryOptions({
|
|
2295
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2296
|
+
const { data } = await adkTaskList({
|
|
2297
|
+
...options,
|
|
2298
|
+
...queryKey[0],
|
|
2299
|
+
signal,
|
|
2300
|
+
throwOnError: true,
|
|
2301
|
+
});
|
|
2302
|
+
return data;
|
|
2303
|
+
},
|
|
2304
|
+
queryKey: adkTaskListQueryKey(options),
|
|
2305
|
+
});
|
|
2306
|
+
};
|
|
2307
|
+
export const adkTaskListInfiniteQueryKey = (options) => createQueryKey("adkTaskList", options, true);
|
|
2308
|
+
/**
|
|
2309
|
+
* 列出ADK任务
|
|
2310
|
+
* 获取ADK任务列表
|
|
2311
|
+
*/
|
|
2312
|
+
export const adkTaskListInfiniteOptions = (options) => {
|
|
2313
|
+
return infiniteQueryOptions(
|
|
2314
|
+
// @ts-ignore
|
|
2315
|
+
{
|
|
2316
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2317
|
+
// @ts-ignore
|
|
2318
|
+
const page = typeof pageParam === "object"
|
|
2319
|
+
? pageParam
|
|
2320
|
+
: {
|
|
2321
|
+
query: {
|
|
2322
|
+
offset: pageParam,
|
|
2323
|
+
},
|
|
2324
|
+
};
|
|
2325
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2326
|
+
const { data } = await adkTaskList({
|
|
2327
|
+
...options,
|
|
2328
|
+
...params,
|
|
2329
|
+
signal,
|
|
2330
|
+
throwOnError: true,
|
|
2331
|
+
});
|
|
2332
|
+
return data;
|
|
2333
|
+
},
|
|
2334
|
+
queryKey: adkTaskListInfiniteQueryKey(options),
|
|
2335
|
+
});
|
|
2336
|
+
};
|
|
2337
|
+
export const adkTaskDeleteQueryKey = (options) => createQueryKey("adkTaskDelete", options);
|
|
2338
|
+
/**
|
|
2339
|
+
* 删除ADK任务
|
|
2340
|
+
* 删除指定的ADK任务
|
|
2341
|
+
*/
|
|
2342
|
+
export const adkTaskDeleteOptions = (options) => {
|
|
2343
|
+
return queryOptions({
|
|
2344
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2345
|
+
const { data } = await adkTaskDelete({
|
|
2346
|
+
...options,
|
|
2347
|
+
...queryKey[0],
|
|
2348
|
+
signal,
|
|
2349
|
+
throwOnError: true,
|
|
2350
|
+
});
|
|
2351
|
+
return data;
|
|
2352
|
+
},
|
|
2353
|
+
queryKey: adkTaskDeleteQueryKey(options),
|
|
2354
|
+
});
|
|
2355
|
+
};
|
|
2356
|
+
/**
|
|
2357
|
+
* 删除ADK任务
|
|
2358
|
+
* 删除指定的ADK任务
|
|
2359
|
+
*/
|
|
2360
|
+
export const adkTaskDeleteMutation = (options) => {
|
|
2361
|
+
const mutationOptions = {
|
|
2362
|
+
mutationFn: async (localOptions) => {
|
|
2363
|
+
const { data } = await adkTaskDelete({
|
|
2364
|
+
...options,
|
|
2365
|
+
...localOptions,
|
|
2366
|
+
throwOnError: true,
|
|
2367
|
+
});
|
|
2368
|
+
return data;
|
|
2369
|
+
},
|
|
2370
|
+
};
|
|
2371
|
+
return mutationOptions;
|
|
2372
|
+
};
|
|
2373
|
+
//# sourceMappingURL=react-query.gen.js.map
|