@renai-labs/sdk 0.1.0
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/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/auth.d.ts +8 -0
- package/dist/auth.js +10 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.js +14 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +3308 -0
- package/dist/generated/@tanstack/react-query.gen.js +3431 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/client.gen.js +235 -0
- package/dist/generated/client/index.d.ts +8 -0
- package/dist/generated/client/index.js +6 -0
- package/dist/generated/client/types.gen.d.ts +117 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +33 -0
- package/dist/generated/client/utils.gen.js +228 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/client.gen.js +3 -0
- package/dist/generated/core/auth.gen.d.ts +18 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/pathSerializer.gen.js +106 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/serverSentEvents.gen.js +132 -0
- package/dist/generated/core/types.gen.d.ts +78 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/sdk.gen.d.ts +885 -0
- package/dist/generated/sdk.gen.js +1614 -0
- package/dist/generated/types.gen.d.ts +6898 -0
- package/dist/generated/types.gen.js +2 -0
- package/dist/generated/zod.gen.d.ts +4873 -0
- package/dist/generated/zod.gen.js +2212 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/session.d.ts +92 -0
- package/dist/session.js +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,3431 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
|
|
3
|
+
import { client } from '../client.gen';
|
|
4
|
+
import { RenClient } from '../sdk.gen';
|
|
5
|
+
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
|
+
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
7
|
+
if (infinite) {
|
|
8
|
+
params._infinite = infinite;
|
|
9
|
+
}
|
|
10
|
+
if (tags) {
|
|
11
|
+
params.tags = tags;
|
|
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 composioMcpListQueryKey = (options) => createQueryKey('composioMcpList', options);
|
|
28
|
+
/**
|
|
29
|
+
* List Composio MCPs
|
|
30
|
+
*/
|
|
31
|
+
export const composioMcpListOptions = (options) => queryOptions({
|
|
32
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
33
|
+
const { data } = await RenClient.__registry.get().composio.mcp.list({
|
|
34
|
+
...options,
|
|
35
|
+
...queryKey[0],
|
|
36
|
+
signal,
|
|
37
|
+
throwOnError: true
|
|
38
|
+
});
|
|
39
|
+
return data;
|
|
40
|
+
},
|
|
41
|
+
queryKey: composioMcpListQueryKey(options)
|
|
42
|
+
});
|
|
43
|
+
const createInfiniteParams = (queryKey, page) => {
|
|
44
|
+
const params = { ...queryKey[0] };
|
|
45
|
+
if (page.body) {
|
|
46
|
+
params.body = {
|
|
47
|
+
...queryKey[0].body,
|
|
48
|
+
...page.body
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (page.headers) {
|
|
52
|
+
params.headers = {
|
|
53
|
+
...queryKey[0].headers,
|
|
54
|
+
...page.headers
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (page.path) {
|
|
58
|
+
params.path = {
|
|
59
|
+
...queryKey[0].path,
|
|
60
|
+
...page.path
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (page.query) {
|
|
64
|
+
params.query = {
|
|
65
|
+
...queryKey[0].query,
|
|
66
|
+
...page.query
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return params;
|
|
70
|
+
};
|
|
71
|
+
export const composioMcpListInfiniteQueryKey = (options) => createQueryKey('composioMcpList', options, true);
|
|
72
|
+
/**
|
|
73
|
+
* List Composio MCPs
|
|
74
|
+
*/
|
|
75
|
+
export const composioMcpListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
{
|
|
78
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
81
|
+
query: {
|
|
82
|
+
offset: pageParam
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const params = createInfiniteParams(queryKey, page);
|
|
86
|
+
const { data } = await RenClient.__registry.get().composio.mcp.list({
|
|
87
|
+
...options,
|
|
88
|
+
...params,
|
|
89
|
+
signal,
|
|
90
|
+
throwOnError: true
|
|
91
|
+
});
|
|
92
|
+
return data;
|
|
93
|
+
},
|
|
94
|
+
queryKey: composioMcpListInfiniteQueryKey(options)
|
|
95
|
+
});
|
|
96
|
+
export const composioMcpGetQueryKey = (options) => createQueryKey('composioMcpGet', options);
|
|
97
|
+
/**
|
|
98
|
+
* Get a Composio MCP
|
|
99
|
+
*/
|
|
100
|
+
export const composioMcpGetOptions = (options) => queryOptions({
|
|
101
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
102
|
+
const { data } = await RenClient.__registry.get().composio.mcp.get({
|
|
103
|
+
...options,
|
|
104
|
+
...queryKey[0],
|
|
105
|
+
signal,
|
|
106
|
+
throwOnError: true
|
|
107
|
+
});
|
|
108
|
+
return data;
|
|
109
|
+
},
|
|
110
|
+
queryKey: composioMcpGetQueryKey(options)
|
|
111
|
+
});
|
|
112
|
+
export const composioConnectionListQueryKey = (options) => createQueryKey('composioConnectionList', options);
|
|
113
|
+
/**
|
|
114
|
+
* List Composio connections for the owner
|
|
115
|
+
*/
|
|
116
|
+
export const composioConnectionListOptions = (options) => queryOptions({
|
|
117
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
118
|
+
const { data } = await RenClient.__registry.get().composio.connection.list({
|
|
119
|
+
...options,
|
|
120
|
+
...queryKey[0],
|
|
121
|
+
signal,
|
|
122
|
+
throwOnError: true
|
|
123
|
+
});
|
|
124
|
+
return data;
|
|
125
|
+
},
|
|
126
|
+
queryKey: composioConnectionListQueryKey(options)
|
|
127
|
+
});
|
|
128
|
+
export const composioConnectionListInfiniteQueryKey = (options) => createQueryKey('composioConnectionList', options, true);
|
|
129
|
+
/**
|
|
130
|
+
* List Composio connections for the owner
|
|
131
|
+
*/
|
|
132
|
+
export const composioConnectionListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
{
|
|
135
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
138
|
+
query: {
|
|
139
|
+
offset: pageParam
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
const params = createInfiniteParams(queryKey, page);
|
|
143
|
+
const { data } = await RenClient.__registry.get().composio.connection.list({
|
|
144
|
+
...options,
|
|
145
|
+
...params,
|
|
146
|
+
signal,
|
|
147
|
+
throwOnError: true
|
|
148
|
+
});
|
|
149
|
+
return data;
|
|
150
|
+
},
|
|
151
|
+
queryKey: composioConnectionListInfiniteQueryKey(options)
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* Initiate a Composio connection (link + pending row, or reuse active)
|
|
155
|
+
*/
|
|
156
|
+
export const composioConnectionInitiateMutation = (options) => {
|
|
157
|
+
const mutationOptions = {
|
|
158
|
+
mutationFn: async (fnOptions) => {
|
|
159
|
+
const { data } = await RenClient.__registry.get().composio.connection.initiate({
|
|
160
|
+
...options,
|
|
161
|
+
...fnOptions,
|
|
162
|
+
throwOnError: true
|
|
163
|
+
});
|
|
164
|
+
return data;
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
return mutationOptions;
|
|
168
|
+
};
|
|
169
|
+
export const composioConnectionGetQueryKey = (options) => createQueryKey('composioConnectionGet', options);
|
|
170
|
+
/**
|
|
171
|
+
* Get a Composio connection
|
|
172
|
+
*/
|
|
173
|
+
export const composioConnectionGetOptions = (options) => queryOptions({
|
|
174
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
175
|
+
const { data } = await RenClient.__registry.get().composio.connection.get({
|
|
176
|
+
...options,
|
|
177
|
+
...queryKey[0],
|
|
178
|
+
signal,
|
|
179
|
+
throwOnError: true
|
|
180
|
+
});
|
|
181
|
+
return data;
|
|
182
|
+
},
|
|
183
|
+
queryKey: composioConnectionGetQueryKey(options)
|
|
184
|
+
});
|
|
185
|
+
/**
|
|
186
|
+
* Poll Composio and reconcile connection status (pending→active transition)
|
|
187
|
+
*/
|
|
188
|
+
export const composioConnectionRefreshMutation = (options) => {
|
|
189
|
+
const mutationOptions = {
|
|
190
|
+
mutationFn: async (fnOptions) => {
|
|
191
|
+
const { data } = await RenClient.__registry.get().composio.connection.refresh({
|
|
192
|
+
...options,
|
|
193
|
+
...fnOptions,
|
|
194
|
+
throwOnError: true
|
|
195
|
+
});
|
|
196
|
+
return data;
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
return mutationOptions;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Archive a Composio connection (best-effort revoke + local archive)
|
|
203
|
+
*/
|
|
204
|
+
export const composioConnectionArchiveMutation = (options) => {
|
|
205
|
+
const mutationOptions = {
|
|
206
|
+
mutationFn: async (fnOptions) => {
|
|
207
|
+
const { data } = await RenClient.__registry.get().composio.connection.archive({
|
|
208
|
+
...options,
|
|
209
|
+
...fnOptions,
|
|
210
|
+
throwOnError: true
|
|
211
|
+
});
|
|
212
|
+
return data;
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
return mutationOptions;
|
|
216
|
+
};
|
|
217
|
+
export const agentListQueryKey = (options) => createQueryKey('agentList', options);
|
|
218
|
+
/**
|
|
219
|
+
* List agents
|
|
220
|
+
*/
|
|
221
|
+
export const agentListOptions = (options) => queryOptions({
|
|
222
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
223
|
+
const { data } = await RenClient.__registry.get().agent.list({
|
|
224
|
+
...options,
|
|
225
|
+
...queryKey[0],
|
|
226
|
+
signal,
|
|
227
|
+
throwOnError: true
|
|
228
|
+
});
|
|
229
|
+
return data;
|
|
230
|
+
},
|
|
231
|
+
queryKey: agentListQueryKey(options)
|
|
232
|
+
});
|
|
233
|
+
export const agentListInfiniteQueryKey = (options) => createQueryKey('agentList', options, true);
|
|
234
|
+
/**
|
|
235
|
+
* List agents
|
|
236
|
+
*/
|
|
237
|
+
export const agentListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
238
|
+
// @ts-ignore
|
|
239
|
+
{
|
|
240
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
241
|
+
// @ts-ignore
|
|
242
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
243
|
+
query: {
|
|
244
|
+
offset: pageParam
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
const params = createInfiniteParams(queryKey, page);
|
|
248
|
+
const { data } = await RenClient.__registry.get().agent.list({
|
|
249
|
+
...options,
|
|
250
|
+
...params,
|
|
251
|
+
signal,
|
|
252
|
+
throwOnError: true
|
|
253
|
+
});
|
|
254
|
+
return data;
|
|
255
|
+
},
|
|
256
|
+
queryKey: agentListInfiniteQueryKey(options)
|
|
257
|
+
});
|
|
258
|
+
/**
|
|
259
|
+
* Create an agent
|
|
260
|
+
*/
|
|
261
|
+
export const agentCreateMutation = (options) => {
|
|
262
|
+
const mutationOptions = {
|
|
263
|
+
mutationFn: async (fnOptions) => {
|
|
264
|
+
const { data } = await RenClient.__registry.get().agent.create({
|
|
265
|
+
...options,
|
|
266
|
+
...fnOptions,
|
|
267
|
+
throwOnError: true
|
|
268
|
+
});
|
|
269
|
+
return data;
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
return mutationOptions;
|
|
273
|
+
};
|
|
274
|
+
export const agentGetBySlugQueryKey = (options) => createQueryKey('agentGetBySlug', options);
|
|
275
|
+
/**
|
|
276
|
+
* Get an agent by slug
|
|
277
|
+
*/
|
|
278
|
+
export const agentGetBySlugOptions = (options) => queryOptions({
|
|
279
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
280
|
+
const { data } = await RenClient.__registry.get().agent.getBySlug({
|
|
281
|
+
...options,
|
|
282
|
+
...queryKey[0],
|
|
283
|
+
signal,
|
|
284
|
+
throwOnError: true
|
|
285
|
+
});
|
|
286
|
+
return data;
|
|
287
|
+
},
|
|
288
|
+
queryKey: agentGetBySlugQueryKey(options)
|
|
289
|
+
});
|
|
290
|
+
export const agentGetQueryKey = (options) => createQueryKey('agentGet', options);
|
|
291
|
+
/**
|
|
292
|
+
* Get an agent
|
|
293
|
+
*/
|
|
294
|
+
export const agentGetOptions = (options) => queryOptions({
|
|
295
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
296
|
+
const { data } = await RenClient.__registry.get().agent.get({
|
|
297
|
+
...options,
|
|
298
|
+
...queryKey[0],
|
|
299
|
+
signal,
|
|
300
|
+
throwOnError: true
|
|
301
|
+
});
|
|
302
|
+
return data;
|
|
303
|
+
},
|
|
304
|
+
queryKey: agentGetQueryKey(options)
|
|
305
|
+
});
|
|
306
|
+
/**
|
|
307
|
+
* Update agent metadata
|
|
308
|
+
*/
|
|
309
|
+
export const agentUpdateMutation = (options) => {
|
|
310
|
+
const mutationOptions = {
|
|
311
|
+
mutationFn: async (fnOptions) => {
|
|
312
|
+
const { data } = await RenClient.__registry.get().agent.update({
|
|
313
|
+
...options,
|
|
314
|
+
...fnOptions,
|
|
315
|
+
throwOnError: true
|
|
316
|
+
});
|
|
317
|
+
return data;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
return mutationOptions;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Archive an agent
|
|
324
|
+
*/
|
|
325
|
+
export const agentArchiveMutation = (options) => {
|
|
326
|
+
const mutationOptions = {
|
|
327
|
+
mutationFn: async (fnOptions) => {
|
|
328
|
+
const { data } = await RenClient.__registry.get().agent.archive({
|
|
329
|
+
...options,
|
|
330
|
+
...fnOptions,
|
|
331
|
+
throwOnError: true
|
|
332
|
+
});
|
|
333
|
+
return data;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
return mutationOptions;
|
|
337
|
+
};
|
|
338
|
+
export const agentVersionListQueryKey = (options) => createQueryKey('agentVersionList', options);
|
|
339
|
+
/**
|
|
340
|
+
* List agent versions
|
|
341
|
+
*/
|
|
342
|
+
export const agentVersionListOptions = (options) => queryOptions({
|
|
343
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
344
|
+
const { data } = await RenClient.__registry.get().agent.version.list({
|
|
345
|
+
...options,
|
|
346
|
+
...queryKey[0],
|
|
347
|
+
signal,
|
|
348
|
+
throwOnError: true
|
|
349
|
+
});
|
|
350
|
+
return data;
|
|
351
|
+
},
|
|
352
|
+
queryKey: agentVersionListQueryKey(options)
|
|
353
|
+
});
|
|
354
|
+
export const agentVersionListInfiniteQueryKey = (options) => createQueryKey('agentVersionList', options, true);
|
|
355
|
+
/**
|
|
356
|
+
* List agent versions
|
|
357
|
+
*/
|
|
358
|
+
export const agentVersionListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
359
|
+
// @ts-ignore
|
|
360
|
+
{
|
|
361
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
362
|
+
// @ts-ignore
|
|
363
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
364
|
+
query: {
|
|
365
|
+
offset: pageParam
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
const params = createInfiniteParams(queryKey, page);
|
|
369
|
+
const { data } = await RenClient.__registry.get().agent.version.list({
|
|
370
|
+
...options,
|
|
371
|
+
...params,
|
|
372
|
+
signal,
|
|
373
|
+
throwOnError: true
|
|
374
|
+
});
|
|
375
|
+
return data;
|
|
376
|
+
},
|
|
377
|
+
queryKey: agentVersionListInfiniteQueryKey(options)
|
|
378
|
+
});
|
|
379
|
+
/**
|
|
380
|
+
* Create an agent version
|
|
381
|
+
*/
|
|
382
|
+
export const agentVersionCreateMutation = (options) => {
|
|
383
|
+
const mutationOptions = {
|
|
384
|
+
mutationFn: async (fnOptions) => {
|
|
385
|
+
const { data } = await RenClient.__registry.get().agent.version.create({
|
|
386
|
+
...options,
|
|
387
|
+
...fnOptions,
|
|
388
|
+
throwOnError: true
|
|
389
|
+
});
|
|
390
|
+
return data;
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
return mutationOptions;
|
|
394
|
+
};
|
|
395
|
+
export const agentVersionGetQueryKey = (options) => createQueryKey('agentVersionGet', options);
|
|
396
|
+
/**
|
|
397
|
+
* Get an agent version
|
|
398
|
+
*/
|
|
399
|
+
export const agentVersionGetOptions = (options) => queryOptions({
|
|
400
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
401
|
+
const { data } = await RenClient.__registry.get().agent.version.get({
|
|
402
|
+
...options,
|
|
403
|
+
...queryKey[0],
|
|
404
|
+
signal,
|
|
405
|
+
throwOnError: true
|
|
406
|
+
});
|
|
407
|
+
return data;
|
|
408
|
+
},
|
|
409
|
+
queryKey: agentVersionGetQueryKey(options)
|
|
410
|
+
});
|
|
411
|
+
/**
|
|
412
|
+
* Archive an agent version
|
|
413
|
+
*/
|
|
414
|
+
export const agentVersionArchiveMutation = (options) => {
|
|
415
|
+
const mutationOptions = {
|
|
416
|
+
mutationFn: async (fnOptions) => {
|
|
417
|
+
const { data } = await RenClient.__registry.get().agent.version.archive({
|
|
418
|
+
...options,
|
|
419
|
+
...fnOptions,
|
|
420
|
+
throwOnError: true
|
|
421
|
+
});
|
|
422
|
+
return data;
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
return mutationOptions;
|
|
426
|
+
};
|
|
427
|
+
export const dashboardGetQueryKey = (options) => createQueryKey('dashboardGet', options);
|
|
428
|
+
/**
|
|
429
|
+
* Get dashboard analytics
|
|
430
|
+
*/
|
|
431
|
+
export const dashboardGetOptions = (options) => queryOptions({
|
|
432
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
433
|
+
const { data } = await RenClient.__registry.get().dashboard.get({
|
|
434
|
+
...options,
|
|
435
|
+
...queryKey[0],
|
|
436
|
+
signal,
|
|
437
|
+
throwOnError: true
|
|
438
|
+
});
|
|
439
|
+
return data;
|
|
440
|
+
},
|
|
441
|
+
queryKey: dashboardGetQueryKey(options)
|
|
442
|
+
});
|
|
443
|
+
export const environmentListQueryKey = (options) => createQueryKey('environmentList', options);
|
|
444
|
+
/**
|
|
445
|
+
* List environments
|
|
446
|
+
*/
|
|
447
|
+
export const environmentListOptions = (options) => queryOptions({
|
|
448
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
449
|
+
const { data } = await RenClient.__registry.get().environment.list({
|
|
450
|
+
...options,
|
|
451
|
+
...queryKey[0],
|
|
452
|
+
signal,
|
|
453
|
+
throwOnError: true
|
|
454
|
+
});
|
|
455
|
+
return data;
|
|
456
|
+
},
|
|
457
|
+
queryKey: environmentListQueryKey(options)
|
|
458
|
+
});
|
|
459
|
+
export const environmentListInfiniteQueryKey = (options) => createQueryKey('environmentList', options, true);
|
|
460
|
+
/**
|
|
461
|
+
* List environments
|
|
462
|
+
*/
|
|
463
|
+
export const environmentListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
464
|
+
// @ts-ignore
|
|
465
|
+
{
|
|
466
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
467
|
+
// @ts-ignore
|
|
468
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
469
|
+
query: {
|
|
470
|
+
offset: pageParam
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
const params = createInfiniteParams(queryKey, page);
|
|
474
|
+
const { data } = await RenClient.__registry.get().environment.list({
|
|
475
|
+
...options,
|
|
476
|
+
...params,
|
|
477
|
+
signal,
|
|
478
|
+
throwOnError: true
|
|
479
|
+
});
|
|
480
|
+
return data;
|
|
481
|
+
},
|
|
482
|
+
queryKey: environmentListInfiniteQueryKey(options)
|
|
483
|
+
});
|
|
484
|
+
/**
|
|
485
|
+
* Create an environment
|
|
486
|
+
*/
|
|
487
|
+
export const environmentCreateMutation = (options) => {
|
|
488
|
+
const mutationOptions = {
|
|
489
|
+
mutationFn: async (fnOptions) => {
|
|
490
|
+
const { data } = await RenClient.__registry.get().environment.create({
|
|
491
|
+
...options,
|
|
492
|
+
...fnOptions,
|
|
493
|
+
throwOnError: true
|
|
494
|
+
});
|
|
495
|
+
return data;
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
return mutationOptions;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Delete an environment permanently
|
|
502
|
+
*/
|
|
503
|
+
export const environmentDeleteMutation = (options) => {
|
|
504
|
+
const mutationOptions = {
|
|
505
|
+
mutationFn: async (fnOptions) => {
|
|
506
|
+
const { data } = await RenClient.__registry.get().environment.delete({
|
|
507
|
+
...options,
|
|
508
|
+
...fnOptions,
|
|
509
|
+
throwOnError: true
|
|
510
|
+
});
|
|
511
|
+
return data;
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
return mutationOptions;
|
|
515
|
+
};
|
|
516
|
+
export const environmentGetQueryKey = (options) => createQueryKey('environmentGet', options);
|
|
517
|
+
/**
|
|
518
|
+
* Get an environment
|
|
519
|
+
*/
|
|
520
|
+
export const environmentGetOptions = (options) => queryOptions({
|
|
521
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
522
|
+
const { data } = await RenClient.__registry.get().environment.get({
|
|
523
|
+
...options,
|
|
524
|
+
...queryKey[0],
|
|
525
|
+
signal,
|
|
526
|
+
throwOnError: true
|
|
527
|
+
});
|
|
528
|
+
return data;
|
|
529
|
+
},
|
|
530
|
+
queryKey: environmentGetQueryKey(options)
|
|
531
|
+
});
|
|
532
|
+
/**
|
|
533
|
+
* Update an environment
|
|
534
|
+
*/
|
|
535
|
+
export const environmentUpdateMutation = (options) => {
|
|
536
|
+
const mutationOptions = {
|
|
537
|
+
mutationFn: async (fnOptions) => {
|
|
538
|
+
const { data } = await RenClient.__registry.get().environment.update({
|
|
539
|
+
...options,
|
|
540
|
+
...fnOptions,
|
|
541
|
+
throwOnError: true
|
|
542
|
+
});
|
|
543
|
+
return data;
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
return mutationOptions;
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Archive an environment
|
|
550
|
+
*/
|
|
551
|
+
export const environmentArchiveMutation = (options) => {
|
|
552
|
+
const mutationOptions = {
|
|
553
|
+
mutationFn: async (fnOptions) => {
|
|
554
|
+
const { data } = await RenClient.__registry.get().environment.archive({
|
|
555
|
+
...options,
|
|
556
|
+
...fnOptions,
|
|
557
|
+
throwOnError: true
|
|
558
|
+
});
|
|
559
|
+
return data;
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
return mutationOptions;
|
|
563
|
+
};
|
|
564
|
+
export const fileStoreListQueryKey = (options) => createQueryKey('fileStoreList', options);
|
|
565
|
+
/**
|
|
566
|
+
* List file stores
|
|
567
|
+
*/
|
|
568
|
+
export const fileStoreListOptions = (options) => queryOptions({
|
|
569
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
570
|
+
const { data } = await RenClient.__registry.get().fileStore.list({
|
|
571
|
+
...options,
|
|
572
|
+
...queryKey[0],
|
|
573
|
+
signal,
|
|
574
|
+
throwOnError: true
|
|
575
|
+
});
|
|
576
|
+
return data;
|
|
577
|
+
},
|
|
578
|
+
queryKey: fileStoreListQueryKey(options)
|
|
579
|
+
});
|
|
580
|
+
export const fileStoreListInfiniteQueryKey = (options) => createQueryKey('fileStoreList', options, true);
|
|
581
|
+
/**
|
|
582
|
+
* List file stores
|
|
583
|
+
*/
|
|
584
|
+
export const fileStoreListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
585
|
+
// @ts-ignore
|
|
586
|
+
{
|
|
587
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
588
|
+
// @ts-ignore
|
|
589
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
590
|
+
query: {
|
|
591
|
+
offset: pageParam
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
const params = createInfiniteParams(queryKey, page);
|
|
595
|
+
const { data } = await RenClient.__registry.get().fileStore.list({
|
|
596
|
+
...options,
|
|
597
|
+
...params,
|
|
598
|
+
signal,
|
|
599
|
+
throwOnError: true
|
|
600
|
+
});
|
|
601
|
+
return data;
|
|
602
|
+
},
|
|
603
|
+
queryKey: fileStoreListInfiniteQueryKey(options)
|
|
604
|
+
});
|
|
605
|
+
/**
|
|
606
|
+
* Create a file store
|
|
607
|
+
*/
|
|
608
|
+
export const fileStoreCreateMutation = (options) => {
|
|
609
|
+
const mutationOptions = {
|
|
610
|
+
mutationFn: async (fnOptions) => {
|
|
611
|
+
const { data } = await RenClient.__registry.get().fileStore.create({
|
|
612
|
+
...options,
|
|
613
|
+
...fnOptions,
|
|
614
|
+
throwOnError: true
|
|
615
|
+
});
|
|
616
|
+
return data;
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
return mutationOptions;
|
|
620
|
+
};
|
|
621
|
+
export const fileStoreGetQueryKey = (options) => createQueryKey('fileStoreGet', options);
|
|
622
|
+
/**
|
|
623
|
+
* Get a file store
|
|
624
|
+
*/
|
|
625
|
+
export const fileStoreGetOptions = (options) => queryOptions({
|
|
626
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
627
|
+
const { data } = await RenClient.__registry.get().fileStore.get({
|
|
628
|
+
...options,
|
|
629
|
+
...queryKey[0],
|
|
630
|
+
signal,
|
|
631
|
+
throwOnError: true
|
|
632
|
+
});
|
|
633
|
+
return data;
|
|
634
|
+
},
|
|
635
|
+
queryKey: fileStoreGetQueryKey(options)
|
|
636
|
+
});
|
|
637
|
+
/**
|
|
638
|
+
* Update a file store
|
|
639
|
+
*/
|
|
640
|
+
export const fileStoreUpdateMutation = (options) => {
|
|
641
|
+
const mutationOptions = {
|
|
642
|
+
mutationFn: async (fnOptions) => {
|
|
643
|
+
const { data } = await RenClient.__registry.get().fileStore.update({
|
|
644
|
+
...options,
|
|
645
|
+
...fnOptions,
|
|
646
|
+
throwOnError: true
|
|
647
|
+
});
|
|
648
|
+
return data;
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
return mutationOptions;
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* Archive a file store
|
|
655
|
+
*/
|
|
656
|
+
export const fileStoreArchiveMutation = (options) => {
|
|
657
|
+
const mutationOptions = {
|
|
658
|
+
mutationFn: async (fnOptions) => {
|
|
659
|
+
const { data } = await RenClient.__registry.get().fileStore.archive({
|
|
660
|
+
...options,
|
|
661
|
+
...fnOptions,
|
|
662
|
+
throwOnError: true
|
|
663
|
+
});
|
|
664
|
+
return data;
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
return mutationOptions;
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* Delete a file
|
|
671
|
+
*/
|
|
672
|
+
export const fileStoreFilesDeleteMutation = (options) => {
|
|
673
|
+
const mutationOptions = {
|
|
674
|
+
mutationFn: async (fnOptions) => {
|
|
675
|
+
const { data } = await RenClient.__registry.get().fileStore.files.delete({
|
|
676
|
+
...options,
|
|
677
|
+
...fnOptions,
|
|
678
|
+
throwOnError: true
|
|
679
|
+
});
|
|
680
|
+
return data;
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
return mutationOptions;
|
|
684
|
+
};
|
|
685
|
+
export const fileStoreFilesListQueryKey = (options) => createQueryKey('fileStoreFilesList', options);
|
|
686
|
+
/**
|
|
687
|
+
* List files in a file store
|
|
688
|
+
*/
|
|
689
|
+
export const fileStoreFilesListOptions = (options) => queryOptions({
|
|
690
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
691
|
+
const { data } = await RenClient.__registry.get().fileStore.files.list({
|
|
692
|
+
...options,
|
|
693
|
+
...queryKey[0],
|
|
694
|
+
signal,
|
|
695
|
+
throwOnError: true
|
|
696
|
+
});
|
|
697
|
+
return data;
|
|
698
|
+
},
|
|
699
|
+
queryKey: fileStoreFilesListQueryKey(options)
|
|
700
|
+
});
|
|
701
|
+
/**
|
|
702
|
+
* Upload file(s) via multipart/form-data
|
|
703
|
+
*
|
|
704
|
+
* Form fields: `files` (one or many), optional `path` (to override a single file's path), optional `prefix` (to prepend to all file names). For files >100MB, use /files/presign-upload.
|
|
705
|
+
*/
|
|
706
|
+
export const fileStoreFilesUploadMutation = (options) => {
|
|
707
|
+
const mutationOptions = {
|
|
708
|
+
mutationFn: async (fnOptions) => {
|
|
709
|
+
const { data } = await RenClient.__registry.get().fileStore.files.upload({
|
|
710
|
+
...options,
|
|
711
|
+
...fnOptions,
|
|
712
|
+
throwOnError: true
|
|
713
|
+
});
|
|
714
|
+
return data;
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
return mutationOptions;
|
|
718
|
+
};
|
|
719
|
+
export const fileStoreFilesPresignDownloadQueryKey = (options) => createQueryKey('fileStoreFilesPresignDownload', options);
|
|
720
|
+
/**
|
|
721
|
+
* Get a presigned GET URL for a file
|
|
722
|
+
*/
|
|
723
|
+
export const fileStoreFilesPresignDownloadOptions = (options) => queryOptions({
|
|
724
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
725
|
+
const { data } = await RenClient.__registry.get().fileStore.files.presignDownload({
|
|
726
|
+
...options,
|
|
727
|
+
...queryKey[0],
|
|
728
|
+
signal,
|
|
729
|
+
throwOnError: true
|
|
730
|
+
});
|
|
731
|
+
return data;
|
|
732
|
+
},
|
|
733
|
+
queryKey: fileStoreFilesPresignDownloadQueryKey(options)
|
|
734
|
+
});
|
|
735
|
+
/**
|
|
736
|
+
* Rename or move a file
|
|
737
|
+
*/
|
|
738
|
+
export const fileStoreFilesRenameMutation = (options) => {
|
|
739
|
+
const mutationOptions = {
|
|
740
|
+
mutationFn: async (fnOptions) => {
|
|
741
|
+
const { data } = await RenClient.__registry.get().fileStore.files.rename({
|
|
742
|
+
...options,
|
|
743
|
+
...fnOptions,
|
|
744
|
+
throwOnError: true
|
|
745
|
+
});
|
|
746
|
+
return data;
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
return mutationOptions;
|
|
750
|
+
};
|
|
751
|
+
/**
|
|
752
|
+
* Get a presigned PUT URL for a file
|
|
753
|
+
*/
|
|
754
|
+
export const fileStoreFilesPresignUploadMutation = (options) => {
|
|
755
|
+
const mutationOptions = {
|
|
756
|
+
mutationFn: async (fnOptions) => {
|
|
757
|
+
const { data } = await RenClient.__registry.get().fileStore.files.presignUpload({
|
|
758
|
+
...options,
|
|
759
|
+
...fnOptions,
|
|
760
|
+
throwOnError: true
|
|
761
|
+
});
|
|
762
|
+
return data;
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
return mutationOptions;
|
|
766
|
+
};
|
|
767
|
+
export const mcpListQueryKey = (options) => createQueryKey('mcpList', options);
|
|
768
|
+
/**
|
|
769
|
+
* List MCPs
|
|
770
|
+
*/
|
|
771
|
+
export const mcpListOptions = (options) => queryOptions({
|
|
772
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
773
|
+
const { data } = await RenClient.__registry.get().mcp.list({
|
|
774
|
+
...options,
|
|
775
|
+
...queryKey[0],
|
|
776
|
+
signal,
|
|
777
|
+
throwOnError: true
|
|
778
|
+
});
|
|
779
|
+
return data;
|
|
780
|
+
},
|
|
781
|
+
queryKey: mcpListQueryKey(options)
|
|
782
|
+
});
|
|
783
|
+
export const mcpListInfiniteQueryKey = (options) => createQueryKey('mcpList', options, true);
|
|
784
|
+
/**
|
|
785
|
+
* List MCPs
|
|
786
|
+
*/
|
|
787
|
+
export const mcpListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
788
|
+
// @ts-ignore
|
|
789
|
+
{
|
|
790
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
791
|
+
// @ts-ignore
|
|
792
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
793
|
+
query: {
|
|
794
|
+
offset: pageParam
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
const params = createInfiniteParams(queryKey, page);
|
|
798
|
+
const { data } = await RenClient.__registry.get().mcp.list({
|
|
799
|
+
...options,
|
|
800
|
+
...params,
|
|
801
|
+
signal,
|
|
802
|
+
throwOnError: true
|
|
803
|
+
});
|
|
804
|
+
return data;
|
|
805
|
+
},
|
|
806
|
+
queryKey: mcpListInfiniteQueryKey(options)
|
|
807
|
+
});
|
|
808
|
+
/**
|
|
809
|
+
* Create an MCP
|
|
810
|
+
*/
|
|
811
|
+
export const mcpCreateMutation = (options) => {
|
|
812
|
+
const mutationOptions = {
|
|
813
|
+
mutationFn: async (fnOptions) => {
|
|
814
|
+
const { data } = await RenClient.__registry.get().mcp.create({
|
|
815
|
+
...options,
|
|
816
|
+
...fnOptions,
|
|
817
|
+
throwOnError: true
|
|
818
|
+
});
|
|
819
|
+
return data;
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
return mutationOptions;
|
|
823
|
+
};
|
|
824
|
+
export const mcpGetBySlugQueryKey = (options) => createQueryKey('mcpGetBySlug', options);
|
|
825
|
+
/**
|
|
826
|
+
* Get an MCP by slug
|
|
827
|
+
*/
|
|
828
|
+
export const mcpGetBySlugOptions = (options) => queryOptions({
|
|
829
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
830
|
+
const { data } = await RenClient.__registry.get().mcp.getBySlug({
|
|
831
|
+
...options,
|
|
832
|
+
...queryKey[0],
|
|
833
|
+
signal,
|
|
834
|
+
throwOnError: true
|
|
835
|
+
});
|
|
836
|
+
return data;
|
|
837
|
+
},
|
|
838
|
+
queryKey: mcpGetBySlugQueryKey(options)
|
|
839
|
+
});
|
|
840
|
+
export const mcpGetQueryKey = (options) => createQueryKey('mcpGet', options);
|
|
841
|
+
/**
|
|
842
|
+
* Get an MCP
|
|
843
|
+
*/
|
|
844
|
+
export const mcpGetOptions = (options) => queryOptions({
|
|
845
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
846
|
+
const { data } = await RenClient.__registry.get().mcp.get({
|
|
847
|
+
...options,
|
|
848
|
+
...queryKey[0],
|
|
849
|
+
signal,
|
|
850
|
+
throwOnError: true
|
|
851
|
+
});
|
|
852
|
+
return data;
|
|
853
|
+
},
|
|
854
|
+
queryKey: mcpGetQueryKey(options)
|
|
855
|
+
});
|
|
856
|
+
/**
|
|
857
|
+
* Archive an MCP
|
|
858
|
+
*/
|
|
859
|
+
export const mcpArchiveMutation = (options) => {
|
|
860
|
+
const mutationOptions = {
|
|
861
|
+
mutationFn: async (fnOptions) => {
|
|
862
|
+
const { data } = await RenClient.__registry.get().mcp.archive({
|
|
863
|
+
...options,
|
|
864
|
+
...fnOptions,
|
|
865
|
+
throwOnError: true
|
|
866
|
+
});
|
|
867
|
+
return data;
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
return mutationOptions;
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* Start OAuth for an MCP (or confirm it is already connected)
|
|
874
|
+
*/
|
|
875
|
+
export const mcpOauthConnectMutation = (options) => {
|
|
876
|
+
const mutationOptions = {
|
|
877
|
+
mutationFn: async (fnOptions) => {
|
|
878
|
+
const { data } = await RenClient.__registry.get().mcp.oauth.connect({
|
|
879
|
+
...options,
|
|
880
|
+
...fnOptions,
|
|
881
|
+
throwOnError: true
|
|
882
|
+
});
|
|
883
|
+
return data;
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
return mutationOptions;
|
|
887
|
+
};
|
|
888
|
+
export const mcpOauthSessionQueryKey = (options) => createQueryKey('mcpOauthSession', options);
|
|
889
|
+
/**
|
|
890
|
+
* Poll an MCP OAuth session status
|
|
891
|
+
*/
|
|
892
|
+
export const mcpOauthSessionOptions = (options) => queryOptions({
|
|
893
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
894
|
+
const { data } = await RenClient.__registry.get().mcp.oauth.session({
|
|
895
|
+
...options,
|
|
896
|
+
...queryKey[0],
|
|
897
|
+
signal,
|
|
898
|
+
throwOnError: true
|
|
899
|
+
});
|
|
900
|
+
return data;
|
|
901
|
+
},
|
|
902
|
+
queryKey: mcpOauthSessionQueryKey(options)
|
|
903
|
+
});
|
|
904
|
+
export const memoryStoreListQueryKey = (options) => createQueryKey('memoryStoreList', options);
|
|
905
|
+
/**
|
|
906
|
+
* List memory stores
|
|
907
|
+
*/
|
|
908
|
+
export const memoryStoreListOptions = (options) => queryOptions({
|
|
909
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
910
|
+
const { data } = await RenClient.__registry.get().memoryStore.list({
|
|
911
|
+
...options,
|
|
912
|
+
...queryKey[0],
|
|
913
|
+
signal,
|
|
914
|
+
throwOnError: true
|
|
915
|
+
});
|
|
916
|
+
return data;
|
|
917
|
+
},
|
|
918
|
+
queryKey: memoryStoreListQueryKey(options)
|
|
919
|
+
});
|
|
920
|
+
export const memoryStoreListInfiniteQueryKey = (options) => createQueryKey('memoryStoreList', options, true);
|
|
921
|
+
/**
|
|
922
|
+
* List memory stores
|
|
923
|
+
*/
|
|
924
|
+
export const memoryStoreListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
925
|
+
// @ts-ignore
|
|
926
|
+
{
|
|
927
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
928
|
+
// @ts-ignore
|
|
929
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
930
|
+
query: {
|
|
931
|
+
offset: pageParam
|
|
932
|
+
}
|
|
933
|
+
};
|
|
934
|
+
const params = createInfiniteParams(queryKey, page);
|
|
935
|
+
const { data } = await RenClient.__registry.get().memoryStore.list({
|
|
936
|
+
...options,
|
|
937
|
+
...params,
|
|
938
|
+
signal,
|
|
939
|
+
throwOnError: true
|
|
940
|
+
});
|
|
941
|
+
return data;
|
|
942
|
+
},
|
|
943
|
+
queryKey: memoryStoreListInfiniteQueryKey(options)
|
|
944
|
+
});
|
|
945
|
+
/**
|
|
946
|
+
* Create a memory store
|
|
947
|
+
*/
|
|
948
|
+
export const memoryStoreCreateMutation = (options) => {
|
|
949
|
+
const mutationOptions = {
|
|
950
|
+
mutationFn: async (fnOptions) => {
|
|
951
|
+
const { data } = await RenClient.__registry.get().memoryStore.create({
|
|
952
|
+
...options,
|
|
953
|
+
...fnOptions,
|
|
954
|
+
throwOnError: true
|
|
955
|
+
});
|
|
956
|
+
return data;
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
return mutationOptions;
|
|
960
|
+
};
|
|
961
|
+
export const memoryStoreGetQueryKey = (options) => createQueryKey('memoryStoreGet', options);
|
|
962
|
+
/**
|
|
963
|
+
* Get a memory store
|
|
964
|
+
*/
|
|
965
|
+
export const memoryStoreGetOptions = (options) => queryOptions({
|
|
966
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
967
|
+
const { data } = await RenClient.__registry.get().memoryStore.get({
|
|
968
|
+
...options,
|
|
969
|
+
...queryKey[0],
|
|
970
|
+
signal,
|
|
971
|
+
throwOnError: true
|
|
972
|
+
});
|
|
973
|
+
return data;
|
|
974
|
+
},
|
|
975
|
+
queryKey: memoryStoreGetQueryKey(options)
|
|
976
|
+
});
|
|
977
|
+
/**
|
|
978
|
+
* Update a memory store
|
|
979
|
+
*/
|
|
980
|
+
export const memoryStoreUpdateMutation = (options) => {
|
|
981
|
+
const mutationOptions = {
|
|
982
|
+
mutationFn: async (fnOptions) => {
|
|
983
|
+
const { data } = await RenClient.__registry.get().memoryStore.update({
|
|
984
|
+
...options,
|
|
985
|
+
...fnOptions,
|
|
986
|
+
throwOnError: true
|
|
987
|
+
});
|
|
988
|
+
return data;
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
return mutationOptions;
|
|
992
|
+
};
|
|
993
|
+
/**
|
|
994
|
+
* Archive a memory store
|
|
995
|
+
*/
|
|
996
|
+
export const memoryStoreArchiveMutation = (options) => {
|
|
997
|
+
const mutationOptions = {
|
|
998
|
+
mutationFn: async (fnOptions) => {
|
|
999
|
+
const { data } = await RenClient.__registry.get().memoryStore.archive({
|
|
1000
|
+
...options,
|
|
1001
|
+
...fnOptions,
|
|
1002
|
+
throwOnError: true
|
|
1003
|
+
});
|
|
1004
|
+
return data;
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
return mutationOptions;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* Delete a file
|
|
1011
|
+
*/
|
|
1012
|
+
export const memoryStoreFilesDeleteMutation = (options) => {
|
|
1013
|
+
const mutationOptions = {
|
|
1014
|
+
mutationFn: async (fnOptions) => {
|
|
1015
|
+
const { data } = await RenClient.__registry.get().memoryStore.files.delete({
|
|
1016
|
+
...options,
|
|
1017
|
+
...fnOptions,
|
|
1018
|
+
throwOnError: true
|
|
1019
|
+
});
|
|
1020
|
+
return data;
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
return mutationOptions;
|
|
1024
|
+
};
|
|
1025
|
+
export const memoryStoreFilesListQueryKey = (options) => createQueryKey('memoryStoreFilesList', options);
|
|
1026
|
+
/**
|
|
1027
|
+
* List files in a memory store
|
|
1028
|
+
*/
|
|
1029
|
+
export const memoryStoreFilesListOptions = (options) => queryOptions({
|
|
1030
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1031
|
+
const { data } = await RenClient.__registry.get().memoryStore.files.list({
|
|
1032
|
+
...options,
|
|
1033
|
+
...queryKey[0],
|
|
1034
|
+
signal,
|
|
1035
|
+
throwOnError: true
|
|
1036
|
+
});
|
|
1037
|
+
return data;
|
|
1038
|
+
},
|
|
1039
|
+
queryKey: memoryStoreFilesListQueryKey(options)
|
|
1040
|
+
});
|
|
1041
|
+
/**
|
|
1042
|
+
* Upload file(s) via multipart/form-data
|
|
1043
|
+
*
|
|
1044
|
+
* Form fields: `files` (one or many), optional `path` (to override a single file's path), optional `prefix` (to prepend to all file names). For files >100MB, use /files/presign-upload.
|
|
1045
|
+
*/
|
|
1046
|
+
export const memoryStoreFilesUploadMutation = (options) => {
|
|
1047
|
+
const mutationOptions = {
|
|
1048
|
+
mutationFn: async (fnOptions) => {
|
|
1049
|
+
const { data } = await RenClient.__registry.get().memoryStore.files.upload({
|
|
1050
|
+
...options,
|
|
1051
|
+
...fnOptions,
|
|
1052
|
+
throwOnError: true
|
|
1053
|
+
});
|
|
1054
|
+
return data;
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
return mutationOptions;
|
|
1058
|
+
};
|
|
1059
|
+
export const memoryStoreFilesDownloadQueryKey = (options) => createQueryKey('memoryStoreFilesDownload', options);
|
|
1060
|
+
/**
|
|
1061
|
+
* Download a file (bytes proxied through API)
|
|
1062
|
+
*/
|
|
1063
|
+
export const memoryStoreFilesDownloadOptions = (options) => queryOptions({
|
|
1064
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1065
|
+
const { data } = await RenClient.__registry.get().memoryStore.files.download({
|
|
1066
|
+
...options,
|
|
1067
|
+
...queryKey[0],
|
|
1068
|
+
signal,
|
|
1069
|
+
throwOnError: true
|
|
1070
|
+
});
|
|
1071
|
+
return data;
|
|
1072
|
+
},
|
|
1073
|
+
queryKey: memoryStoreFilesDownloadQueryKey(options)
|
|
1074
|
+
});
|
|
1075
|
+
/**
|
|
1076
|
+
* Rename or move a file
|
|
1077
|
+
*/
|
|
1078
|
+
export const memoryStoreFilesRenameMutation = (options) => {
|
|
1079
|
+
const mutationOptions = {
|
|
1080
|
+
mutationFn: async (fnOptions) => {
|
|
1081
|
+
const { data } = await RenClient.__registry.get().memoryStore.files.rename({
|
|
1082
|
+
...options,
|
|
1083
|
+
...fnOptions,
|
|
1084
|
+
throwOnError: true
|
|
1085
|
+
});
|
|
1086
|
+
return data;
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
return mutationOptions;
|
|
1090
|
+
};
|
|
1091
|
+
export const patListQueryKey = (options) => createQueryKey('patList', options);
|
|
1092
|
+
/**
|
|
1093
|
+
* List personal access tokens
|
|
1094
|
+
*/
|
|
1095
|
+
export const patListOptions = (options) => queryOptions({
|
|
1096
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1097
|
+
const { data } = await RenClient.__registry.get().pat.list({
|
|
1098
|
+
...options,
|
|
1099
|
+
...queryKey[0],
|
|
1100
|
+
signal,
|
|
1101
|
+
throwOnError: true
|
|
1102
|
+
});
|
|
1103
|
+
return data;
|
|
1104
|
+
},
|
|
1105
|
+
queryKey: patListQueryKey(options)
|
|
1106
|
+
});
|
|
1107
|
+
/**
|
|
1108
|
+
* Create a personal access token
|
|
1109
|
+
*/
|
|
1110
|
+
export const patCreateMutation = (options) => {
|
|
1111
|
+
const mutationOptions = {
|
|
1112
|
+
mutationFn: async (fnOptions) => {
|
|
1113
|
+
const { data } = await RenClient.__registry.get().pat.create({
|
|
1114
|
+
...options,
|
|
1115
|
+
...fnOptions,
|
|
1116
|
+
throwOnError: true
|
|
1117
|
+
});
|
|
1118
|
+
return data;
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
return mutationOptions;
|
|
1122
|
+
};
|
|
1123
|
+
/**
|
|
1124
|
+
* Revoke a personal access token
|
|
1125
|
+
*/
|
|
1126
|
+
export const patRevokeMutation = (options) => {
|
|
1127
|
+
const mutationOptions = {
|
|
1128
|
+
mutationFn: async (fnOptions) => {
|
|
1129
|
+
const { data } = await RenClient.__registry.get().pat.revoke({
|
|
1130
|
+
...options,
|
|
1131
|
+
...fnOptions,
|
|
1132
|
+
throwOnError: true
|
|
1133
|
+
});
|
|
1134
|
+
return data;
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
return mutationOptions;
|
|
1138
|
+
};
|
|
1139
|
+
export const podListQueryKey = (options) => createQueryKey('podList', options);
|
|
1140
|
+
/**
|
|
1141
|
+
* List pods
|
|
1142
|
+
*/
|
|
1143
|
+
export const podListOptions = (options) => queryOptions({
|
|
1144
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1145
|
+
const { data } = await RenClient.__registry.get().pod.list({
|
|
1146
|
+
...options,
|
|
1147
|
+
...queryKey[0],
|
|
1148
|
+
signal,
|
|
1149
|
+
throwOnError: true
|
|
1150
|
+
});
|
|
1151
|
+
return data;
|
|
1152
|
+
},
|
|
1153
|
+
queryKey: podListQueryKey(options)
|
|
1154
|
+
});
|
|
1155
|
+
export const podListInfiniteQueryKey = (options) => createQueryKey('podList', options, true);
|
|
1156
|
+
/**
|
|
1157
|
+
* List pods
|
|
1158
|
+
*/
|
|
1159
|
+
export const podListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1160
|
+
// @ts-ignore
|
|
1161
|
+
{
|
|
1162
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1163
|
+
// @ts-ignore
|
|
1164
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1165
|
+
query: {
|
|
1166
|
+
offset: pageParam
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1170
|
+
const { data } = await RenClient.__registry.get().pod.list({
|
|
1171
|
+
...options,
|
|
1172
|
+
...params,
|
|
1173
|
+
signal,
|
|
1174
|
+
throwOnError: true
|
|
1175
|
+
});
|
|
1176
|
+
return data;
|
|
1177
|
+
},
|
|
1178
|
+
queryKey: podListInfiniteQueryKey(options)
|
|
1179
|
+
});
|
|
1180
|
+
/**
|
|
1181
|
+
* Create a pod
|
|
1182
|
+
*/
|
|
1183
|
+
export const podCreateMutation = (options) => {
|
|
1184
|
+
const mutationOptions = {
|
|
1185
|
+
mutationFn: async (fnOptions) => {
|
|
1186
|
+
const { data } = await RenClient.__registry.get().pod.create({
|
|
1187
|
+
...options,
|
|
1188
|
+
...fnOptions,
|
|
1189
|
+
throwOnError: true
|
|
1190
|
+
});
|
|
1191
|
+
return data;
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
return mutationOptions;
|
|
1195
|
+
};
|
|
1196
|
+
export const podGetQueryKey = (options) => createQueryKey('podGet', options);
|
|
1197
|
+
/**
|
|
1198
|
+
* Get a pod
|
|
1199
|
+
*/
|
|
1200
|
+
export const podGetOptions = (options) => queryOptions({
|
|
1201
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1202
|
+
const { data } = await RenClient.__registry.get().pod.get({
|
|
1203
|
+
...options,
|
|
1204
|
+
...queryKey[0],
|
|
1205
|
+
signal,
|
|
1206
|
+
throwOnError: true
|
|
1207
|
+
});
|
|
1208
|
+
return data;
|
|
1209
|
+
},
|
|
1210
|
+
queryKey: podGetQueryKey(options)
|
|
1211
|
+
});
|
|
1212
|
+
/**
|
|
1213
|
+
* Update a pod
|
|
1214
|
+
*/
|
|
1215
|
+
export const podUpdateMutation = (options) => {
|
|
1216
|
+
const mutationOptions = {
|
|
1217
|
+
mutationFn: async (fnOptions) => {
|
|
1218
|
+
const { data } = await RenClient.__registry.get().pod.update({
|
|
1219
|
+
...options,
|
|
1220
|
+
...fnOptions,
|
|
1221
|
+
throwOnError: true
|
|
1222
|
+
});
|
|
1223
|
+
return data;
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
return mutationOptions;
|
|
1227
|
+
};
|
|
1228
|
+
/**
|
|
1229
|
+
* Archive a pod
|
|
1230
|
+
*/
|
|
1231
|
+
export const podArchiveMutation = (options) => {
|
|
1232
|
+
const mutationOptions = {
|
|
1233
|
+
mutationFn: async (fnOptions) => {
|
|
1234
|
+
const { data } = await RenClient.__registry.get().pod.archive({
|
|
1235
|
+
...options,
|
|
1236
|
+
...fnOptions,
|
|
1237
|
+
throwOnError: true
|
|
1238
|
+
});
|
|
1239
|
+
return data;
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
return mutationOptions;
|
|
1243
|
+
};
|
|
1244
|
+
export const podMemberListQueryKey = (options) => createQueryKey('podMemberList', options);
|
|
1245
|
+
/**
|
|
1246
|
+
* List pod members
|
|
1247
|
+
*/
|
|
1248
|
+
export const podMemberListOptions = (options) => queryOptions({
|
|
1249
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1250
|
+
const { data } = await RenClient.__registry.get().pod.member.list({
|
|
1251
|
+
...options,
|
|
1252
|
+
...queryKey[0],
|
|
1253
|
+
signal,
|
|
1254
|
+
throwOnError: true
|
|
1255
|
+
});
|
|
1256
|
+
return data;
|
|
1257
|
+
},
|
|
1258
|
+
queryKey: podMemberListQueryKey(options)
|
|
1259
|
+
});
|
|
1260
|
+
/**
|
|
1261
|
+
* Add a member to a pod
|
|
1262
|
+
*/
|
|
1263
|
+
export const podMemberAddMutation = (options) => {
|
|
1264
|
+
const mutationOptions = {
|
|
1265
|
+
mutationFn: async (fnOptions) => {
|
|
1266
|
+
const { data } = await RenClient.__registry.get().pod.member.add({
|
|
1267
|
+
...options,
|
|
1268
|
+
...fnOptions,
|
|
1269
|
+
throwOnError: true
|
|
1270
|
+
});
|
|
1271
|
+
return data;
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
return mutationOptions;
|
|
1275
|
+
};
|
|
1276
|
+
/**
|
|
1277
|
+
* Remove a member from a pod
|
|
1278
|
+
*/
|
|
1279
|
+
export const podMemberRemoveMutation = (options) => {
|
|
1280
|
+
const mutationOptions = {
|
|
1281
|
+
mutationFn: async (fnOptions) => {
|
|
1282
|
+
const { data } = await RenClient.__registry.get().pod.member.remove({
|
|
1283
|
+
...options,
|
|
1284
|
+
...fnOptions,
|
|
1285
|
+
throwOnError: true
|
|
1286
|
+
});
|
|
1287
|
+
return data;
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
return mutationOptions;
|
|
1291
|
+
};
|
|
1292
|
+
export const podVaultListQueryKey = (options) => createQueryKey('podVaultList', options);
|
|
1293
|
+
/**
|
|
1294
|
+
* List pod vaults (ordered by priority)
|
|
1295
|
+
*/
|
|
1296
|
+
export const podVaultListOptions = (options) => queryOptions({
|
|
1297
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1298
|
+
const { data } = await RenClient.__registry.get().pod.vault.list({
|
|
1299
|
+
...options,
|
|
1300
|
+
...queryKey[0],
|
|
1301
|
+
signal,
|
|
1302
|
+
throwOnError: true
|
|
1303
|
+
});
|
|
1304
|
+
return data;
|
|
1305
|
+
},
|
|
1306
|
+
queryKey: podVaultListQueryKey(options)
|
|
1307
|
+
});
|
|
1308
|
+
/**
|
|
1309
|
+
* Add a vault to a pod
|
|
1310
|
+
*/
|
|
1311
|
+
export const podVaultAddMutation = (options) => {
|
|
1312
|
+
const mutationOptions = {
|
|
1313
|
+
mutationFn: async (fnOptions) => {
|
|
1314
|
+
const { data } = await RenClient.__registry.get().pod.vault.add({
|
|
1315
|
+
...options,
|
|
1316
|
+
...fnOptions,
|
|
1317
|
+
throwOnError: true
|
|
1318
|
+
});
|
|
1319
|
+
return data;
|
|
1320
|
+
}
|
|
1321
|
+
};
|
|
1322
|
+
return mutationOptions;
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* Remove a vault from a pod
|
|
1326
|
+
*/
|
|
1327
|
+
export const podVaultRemoveMutation = (options) => {
|
|
1328
|
+
const mutationOptions = {
|
|
1329
|
+
mutationFn: async (fnOptions) => {
|
|
1330
|
+
const { data } = await RenClient.__registry.get().pod.vault.remove({
|
|
1331
|
+
...options,
|
|
1332
|
+
...fnOptions,
|
|
1333
|
+
throwOnError: true
|
|
1334
|
+
});
|
|
1335
|
+
return data;
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
return mutationOptions;
|
|
1339
|
+
};
|
|
1340
|
+
export const podSandboxCurrentQueryKey = (options) => createQueryKey('podSandboxCurrent', options);
|
|
1341
|
+
/**
|
|
1342
|
+
* Get the current sandbox for this pod
|
|
1343
|
+
*/
|
|
1344
|
+
export const podSandboxCurrentOptions = (options) => queryOptions({
|
|
1345
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1346
|
+
const { data } = await RenClient.__registry.get().pod.sandbox.current({
|
|
1347
|
+
...options,
|
|
1348
|
+
...queryKey[0],
|
|
1349
|
+
signal,
|
|
1350
|
+
throwOnError: true
|
|
1351
|
+
});
|
|
1352
|
+
return data;
|
|
1353
|
+
},
|
|
1354
|
+
queryKey: podSandboxCurrentQueryKey(options)
|
|
1355
|
+
});
|
|
1356
|
+
/**
|
|
1357
|
+
* Provision a sandbox for this pod (idempotent)
|
|
1358
|
+
*
|
|
1359
|
+
* Returns the existing active sandbox if one is linked; otherwise creates one.
|
|
1360
|
+
*/
|
|
1361
|
+
export const podSandboxProvisionMutation = (options) => {
|
|
1362
|
+
const mutationOptions = {
|
|
1363
|
+
mutationFn: async (fnOptions) => {
|
|
1364
|
+
const { data } = await RenClient.__registry.get().pod.sandbox.provision({
|
|
1365
|
+
...options,
|
|
1366
|
+
...fnOptions,
|
|
1367
|
+
throwOnError: true
|
|
1368
|
+
});
|
|
1369
|
+
return data;
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
return mutationOptions;
|
|
1373
|
+
};
|
|
1374
|
+
export const podProjectListQueryKey = (options) => createQueryKey('podProjectList', options);
|
|
1375
|
+
/**
|
|
1376
|
+
* List projects
|
|
1377
|
+
*/
|
|
1378
|
+
export const podProjectListOptions = (options) => queryOptions({
|
|
1379
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1380
|
+
const { data } = await RenClient.__registry.get().pod.project.list({
|
|
1381
|
+
...options,
|
|
1382
|
+
...queryKey[0],
|
|
1383
|
+
signal,
|
|
1384
|
+
throwOnError: true
|
|
1385
|
+
});
|
|
1386
|
+
return data;
|
|
1387
|
+
},
|
|
1388
|
+
queryKey: podProjectListQueryKey(options)
|
|
1389
|
+
});
|
|
1390
|
+
export const podProjectListInfiniteQueryKey = (options) => createQueryKey('podProjectList', options, true);
|
|
1391
|
+
/**
|
|
1392
|
+
* List projects
|
|
1393
|
+
*/
|
|
1394
|
+
export const podProjectListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1395
|
+
// @ts-ignore
|
|
1396
|
+
{
|
|
1397
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1398
|
+
// @ts-ignore
|
|
1399
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1400
|
+
query: {
|
|
1401
|
+
offset: pageParam
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1405
|
+
const { data } = await RenClient.__registry.get().pod.project.list({
|
|
1406
|
+
...options,
|
|
1407
|
+
...params,
|
|
1408
|
+
signal,
|
|
1409
|
+
throwOnError: true
|
|
1410
|
+
});
|
|
1411
|
+
return data;
|
|
1412
|
+
},
|
|
1413
|
+
queryKey: podProjectListInfiniteQueryKey(options)
|
|
1414
|
+
});
|
|
1415
|
+
/**
|
|
1416
|
+
* Create a project
|
|
1417
|
+
*/
|
|
1418
|
+
export const podProjectCreateMutation = (options) => {
|
|
1419
|
+
const mutationOptions = {
|
|
1420
|
+
mutationFn: async (fnOptions) => {
|
|
1421
|
+
const { data } = await RenClient.__registry.get().pod.project.create({
|
|
1422
|
+
...options,
|
|
1423
|
+
...fnOptions,
|
|
1424
|
+
throwOnError: true
|
|
1425
|
+
});
|
|
1426
|
+
return data;
|
|
1427
|
+
}
|
|
1428
|
+
};
|
|
1429
|
+
return mutationOptions;
|
|
1430
|
+
};
|
|
1431
|
+
export const podProjectGetQueryKey = (options) => createQueryKey('podProjectGet', options);
|
|
1432
|
+
/**
|
|
1433
|
+
* Get a project
|
|
1434
|
+
*/
|
|
1435
|
+
export const podProjectGetOptions = (options) => queryOptions({
|
|
1436
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1437
|
+
const { data } = await RenClient.__registry.get().pod.project.get({
|
|
1438
|
+
...options,
|
|
1439
|
+
...queryKey[0],
|
|
1440
|
+
signal,
|
|
1441
|
+
throwOnError: true
|
|
1442
|
+
});
|
|
1443
|
+
return data;
|
|
1444
|
+
},
|
|
1445
|
+
queryKey: podProjectGetQueryKey(options)
|
|
1446
|
+
});
|
|
1447
|
+
/**
|
|
1448
|
+
* Update a project
|
|
1449
|
+
*/
|
|
1450
|
+
export const podProjectUpdateMutation = (options) => {
|
|
1451
|
+
const mutationOptions = {
|
|
1452
|
+
mutationFn: async (fnOptions) => {
|
|
1453
|
+
const { data } = await RenClient.__registry.get().pod.project.update({
|
|
1454
|
+
...options,
|
|
1455
|
+
...fnOptions,
|
|
1456
|
+
throwOnError: true
|
|
1457
|
+
});
|
|
1458
|
+
return data;
|
|
1459
|
+
}
|
|
1460
|
+
};
|
|
1461
|
+
return mutationOptions;
|
|
1462
|
+
};
|
|
1463
|
+
/**
|
|
1464
|
+
* Archive a project
|
|
1465
|
+
*/
|
|
1466
|
+
export const podProjectArchiveMutation = (options) => {
|
|
1467
|
+
const mutationOptions = {
|
|
1468
|
+
mutationFn: async (fnOptions) => {
|
|
1469
|
+
const { data } = await RenClient.__registry.get().pod.project.archive({
|
|
1470
|
+
...options,
|
|
1471
|
+
...fnOptions,
|
|
1472
|
+
throwOnError: true
|
|
1473
|
+
});
|
|
1474
|
+
return data;
|
|
1475
|
+
}
|
|
1476
|
+
};
|
|
1477
|
+
return mutationOptions;
|
|
1478
|
+
};
|
|
1479
|
+
export const podProjectAgentListQueryKey = (options) => createQueryKey('podProjectAgentList', options);
|
|
1480
|
+
/**
|
|
1481
|
+
* List project agents
|
|
1482
|
+
*/
|
|
1483
|
+
export const podProjectAgentListOptions = (options) => queryOptions({
|
|
1484
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1485
|
+
const { data } = await RenClient.__registry.get().pod.project.agent.list({
|
|
1486
|
+
...options,
|
|
1487
|
+
...queryKey[0],
|
|
1488
|
+
signal,
|
|
1489
|
+
throwOnError: true
|
|
1490
|
+
});
|
|
1491
|
+
return data;
|
|
1492
|
+
},
|
|
1493
|
+
queryKey: podProjectAgentListQueryKey(options)
|
|
1494
|
+
});
|
|
1495
|
+
/**
|
|
1496
|
+
* Add an agent to a project
|
|
1497
|
+
*/
|
|
1498
|
+
export const podProjectAgentAddMutation = (options) => {
|
|
1499
|
+
const mutationOptions = {
|
|
1500
|
+
mutationFn: async (fnOptions) => {
|
|
1501
|
+
const { data } = await RenClient.__registry.get().pod.project.agent.add({
|
|
1502
|
+
...options,
|
|
1503
|
+
...fnOptions,
|
|
1504
|
+
throwOnError: true
|
|
1505
|
+
});
|
|
1506
|
+
return data;
|
|
1507
|
+
}
|
|
1508
|
+
};
|
|
1509
|
+
return mutationOptions;
|
|
1510
|
+
};
|
|
1511
|
+
/**
|
|
1512
|
+
* Remove an agent from a project
|
|
1513
|
+
*/
|
|
1514
|
+
export const podProjectAgentRemoveMutation = (options) => {
|
|
1515
|
+
const mutationOptions = {
|
|
1516
|
+
mutationFn: async (fnOptions) => {
|
|
1517
|
+
const { data } = await RenClient.__registry.get().pod.project.agent.remove({
|
|
1518
|
+
...options,
|
|
1519
|
+
...fnOptions,
|
|
1520
|
+
throwOnError: true
|
|
1521
|
+
});
|
|
1522
|
+
return data;
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
return mutationOptions;
|
|
1526
|
+
};
|
|
1527
|
+
export const podProjectFileStoreListQueryKey = (options) => createQueryKey('podProjectFileStoreList', options);
|
|
1528
|
+
/**
|
|
1529
|
+
* List project file stores
|
|
1530
|
+
*/
|
|
1531
|
+
export const podProjectFileStoreListOptions = (options) => queryOptions({
|
|
1532
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1533
|
+
const { data } = await RenClient.__registry.get().pod.project.fileStore.list({
|
|
1534
|
+
...options,
|
|
1535
|
+
...queryKey[0],
|
|
1536
|
+
signal,
|
|
1537
|
+
throwOnError: true
|
|
1538
|
+
});
|
|
1539
|
+
return data;
|
|
1540
|
+
},
|
|
1541
|
+
queryKey: podProjectFileStoreListQueryKey(options)
|
|
1542
|
+
});
|
|
1543
|
+
/**
|
|
1544
|
+
* Attach a file store to a project
|
|
1545
|
+
*/
|
|
1546
|
+
export const podProjectFileStoreAddMutation = (options) => {
|
|
1547
|
+
const mutationOptions = {
|
|
1548
|
+
mutationFn: async (fnOptions) => {
|
|
1549
|
+
const { data } = await RenClient.__registry.get().pod.project.fileStore.add({
|
|
1550
|
+
...options,
|
|
1551
|
+
...fnOptions,
|
|
1552
|
+
throwOnError: true
|
|
1553
|
+
});
|
|
1554
|
+
return data;
|
|
1555
|
+
}
|
|
1556
|
+
};
|
|
1557
|
+
return mutationOptions;
|
|
1558
|
+
};
|
|
1559
|
+
/**
|
|
1560
|
+
* Detach a file store from a project
|
|
1561
|
+
*/
|
|
1562
|
+
export const podProjectFileStoreRemoveMutation = (options) => {
|
|
1563
|
+
const mutationOptions = {
|
|
1564
|
+
mutationFn: async (fnOptions) => {
|
|
1565
|
+
const { data } = await RenClient.__registry.get().pod.project.fileStore.remove({
|
|
1566
|
+
...options,
|
|
1567
|
+
...fnOptions,
|
|
1568
|
+
throwOnError: true
|
|
1569
|
+
});
|
|
1570
|
+
return data;
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
return mutationOptions;
|
|
1574
|
+
};
|
|
1575
|
+
export const podProjectMemoryStoreListQueryKey = (options) => createQueryKey('podProjectMemoryStoreList', options);
|
|
1576
|
+
/**
|
|
1577
|
+
* List project memory stores
|
|
1578
|
+
*/
|
|
1579
|
+
export const podProjectMemoryStoreListOptions = (options) => queryOptions({
|
|
1580
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1581
|
+
const { data } = await RenClient.__registry.get().pod.project.memoryStore.list({
|
|
1582
|
+
...options,
|
|
1583
|
+
...queryKey[0],
|
|
1584
|
+
signal,
|
|
1585
|
+
throwOnError: true
|
|
1586
|
+
});
|
|
1587
|
+
return data;
|
|
1588
|
+
},
|
|
1589
|
+
queryKey: podProjectMemoryStoreListQueryKey(options)
|
|
1590
|
+
});
|
|
1591
|
+
/**
|
|
1592
|
+
* Attach a memory store to a project
|
|
1593
|
+
*/
|
|
1594
|
+
export const podProjectMemoryStoreAddMutation = (options) => {
|
|
1595
|
+
const mutationOptions = {
|
|
1596
|
+
mutationFn: async (fnOptions) => {
|
|
1597
|
+
const { data } = await RenClient.__registry.get().pod.project.memoryStore.add({
|
|
1598
|
+
...options,
|
|
1599
|
+
...fnOptions,
|
|
1600
|
+
throwOnError: true
|
|
1601
|
+
});
|
|
1602
|
+
return data;
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
return mutationOptions;
|
|
1606
|
+
};
|
|
1607
|
+
/**
|
|
1608
|
+
* Detach a memory store from a project
|
|
1609
|
+
*/
|
|
1610
|
+
export const podProjectMemoryStoreRemoveMutation = (options) => {
|
|
1611
|
+
const mutationOptions = {
|
|
1612
|
+
mutationFn: async (fnOptions) => {
|
|
1613
|
+
const { data } = await RenClient.__registry.get().pod.project.memoryStore.remove({
|
|
1614
|
+
...options,
|
|
1615
|
+
...fnOptions,
|
|
1616
|
+
throwOnError: true
|
|
1617
|
+
});
|
|
1618
|
+
return data;
|
|
1619
|
+
}
|
|
1620
|
+
};
|
|
1621
|
+
return mutationOptions;
|
|
1622
|
+
};
|
|
1623
|
+
export const podProjectRoutineListQueryKey = (options) => createQueryKey('podProjectRoutineList', options);
|
|
1624
|
+
/**
|
|
1625
|
+
* List routines for a project
|
|
1626
|
+
*/
|
|
1627
|
+
export const podProjectRoutineListOptions = (options) => queryOptions({
|
|
1628
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1629
|
+
const { data } = await RenClient.__registry.get().pod.project.routine.list({
|
|
1630
|
+
...options,
|
|
1631
|
+
...queryKey[0],
|
|
1632
|
+
signal,
|
|
1633
|
+
throwOnError: true
|
|
1634
|
+
});
|
|
1635
|
+
return data;
|
|
1636
|
+
},
|
|
1637
|
+
queryKey: podProjectRoutineListQueryKey(options)
|
|
1638
|
+
});
|
|
1639
|
+
export const podProjectRoutineListInfiniteQueryKey = (options) => createQueryKey('podProjectRoutineList', options, true);
|
|
1640
|
+
/**
|
|
1641
|
+
* List routines for a project
|
|
1642
|
+
*/
|
|
1643
|
+
export const podProjectRoutineListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1644
|
+
// @ts-ignore
|
|
1645
|
+
{
|
|
1646
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1647
|
+
// @ts-ignore
|
|
1648
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1649
|
+
query: {
|
|
1650
|
+
offset: pageParam
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1654
|
+
const { data } = await RenClient.__registry.get().pod.project.routine.list({
|
|
1655
|
+
...options,
|
|
1656
|
+
...params,
|
|
1657
|
+
signal,
|
|
1658
|
+
throwOnError: true
|
|
1659
|
+
});
|
|
1660
|
+
return data;
|
|
1661
|
+
},
|
|
1662
|
+
queryKey: podProjectRoutineListInfiniteQueryKey(options)
|
|
1663
|
+
});
|
|
1664
|
+
export const podProjectRoutinesRunsListAllQueryKey = (options) => createQueryKey('podProjectRoutinesRunsListAll', options);
|
|
1665
|
+
/**
|
|
1666
|
+
* List routine runs across a project
|
|
1667
|
+
*/
|
|
1668
|
+
export const podProjectRoutinesRunsListAllOptions = (options) => queryOptions({
|
|
1669
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1670
|
+
const { data } = await RenClient.__registry.get().pod.project.routines.runs.listAll({
|
|
1671
|
+
...options,
|
|
1672
|
+
...queryKey[0],
|
|
1673
|
+
signal,
|
|
1674
|
+
throwOnError: true
|
|
1675
|
+
});
|
|
1676
|
+
return data;
|
|
1677
|
+
},
|
|
1678
|
+
queryKey: podProjectRoutinesRunsListAllQueryKey(options)
|
|
1679
|
+
});
|
|
1680
|
+
export const podProjectRoutinesRunsListAllInfiniteQueryKey = (options) => createQueryKey('podProjectRoutinesRunsListAll', options, true);
|
|
1681
|
+
/**
|
|
1682
|
+
* List routine runs across a project
|
|
1683
|
+
*/
|
|
1684
|
+
export const podProjectRoutinesRunsListAllInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1685
|
+
// @ts-ignore
|
|
1686
|
+
{
|
|
1687
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1688
|
+
// @ts-ignore
|
|
1689
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1690
|
+
query: {
|
|
1691
|
+
offset: pageParam
|
|
1692
|
+
}
|
|
1693
|
+
};
|
|
1694
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1695
|
+
const { data } = await RenClient.__registry.get().pod.project.routines.runs.listAll({
|
|
1696
|
+
...options,
|
|
1697
|
+
...params,
|
|
1698
|
+
signal,
|
|
1699
|
+
throwOnError: true
|
|
1700
|
+
});
|
|
1701
|
+
return data;
|
|
1702
|
+
},
|
|
1703
|
+
queryKey: podProjectRoutinesRunsListAllInfiniteQueryKey(options)
|
|
1704
|
+
});
|
|
1705
|
+
export const podSessionListQueryKey = (options) => createQueryKey('podSessionList', options);
|
|
1706
|
+
/**
|
|
1707
|
+
* List sessions
|
|
1708
|
+
*/
|
|
1709
|
+
export const podSessionListOptions = (options) => queryOptions({
|
|
1710
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1711
|
+
const { data } = await RenClient.__registry.get().pod.session.list({
|
|
1712
|
+
...options,
|
|
1713
|
+
...queryKey[0],
|
|
1714
|
+
signal,
|
|
1715
|
+
throwOnError: true
|
|
1716
|
+
});
|
|
1717
|
+
return data;
|
|
1718
|
+
},
|
|
1719
|
+
queryKey: podSessionListQueryKey(options)
|
|
1720
|
+
});
|
|
1721
|
+
export const podSessionListInfiniteQueryKey = (options) => createQueryKey('podSessionList', options, true);
|
|
1722
|
+
/**
|
|
1723
|
+
* List sessions
|
|
1724
|
+
*/
|
|
1725
|
+
export const podSessionListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1726
|
+
// @ts-ignore
|
|
1727
|
+
{
|
|
1728
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1729
|
+
// @ts-ignore
|
|
1730
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1731
|
+
query: {
|
|
1732
|
+
offset: pageParam
|
|
1733
|
+
}
|
|
1734
|
+
};
|
|
1735
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1736
|
+
const { data } = await RenClient.__registry.get().pod.session.list({
|
|
1737
|
+
...options,
|
|
1738
|
+
...params,
|
|
1739
|
+
signal,
|
|
1740
|
+
throwOnError: true
|
|
1741
|
+
});
|
|
1742
|
+
return data;
|
|
1743
|
+
},
|
|
1744
|
+
queryKey: podSessionListInfiniteQueryKey(options)
|
|
1745
|
+
});
|
|
1746
|
+
/**
|
|
1747
|
+
* Create a session
|
|
1748
|
+
*/
|
|
1749
|
+
export const podSessionCreateMutation = (options) => {
|
|
1750
|
+
const mutationOptions = {
|
|
1751
|
+
mutationFn: async (fnOptions) => {
|
|
1752
|
+
const { data } = await RenClient.__registry.get().pod.session.create({
|
|
1753
|
+
...options,
|
|
1754
|
+
...fnOptions,
|
|
1755
|
+
throwOnError: true
|
|
1756
|
+
});
|
|
1757
|
+
return data;
|
|
1758
|
+
}
|
|
1759
|
+
};
|
|
1760
|
+
return mutationOptions;
|
|
1761
|
+
};
|
|
1762
|
+
export const podSessionGetQueryKey = (options) => createQueryKey('podSessionGet', options);
|
|
1763
|
+
/**
|
|
1764
|
+
* Get a session
|
|
1765
|
+
*/
|
|
1766
|
+
export const podSessionGetOptions = (options) => queryOptions({
|
|
1767
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1768
|
+
const { data } = await RenClient.__registry.get().pod.session.get({
|
|
1769
|
+
...options,
|
|
1770
|
+
...queryKey[0],
|
|
1771
|
+
signal,
|
|
1772
|
+
throwOnError: true
|
|
1773
|
+
});
|
|
1774
|
+
return data;
|
|
1775
|
+
},
|
|
1776
|
+
queryKey: podSessionGetQueryKey(options)
|
|
1777
|
+
});
|
|
1778
|
+
/**
|
|
1779
|
+
* Update a session
|
|
1780
|
+
*/
|
|
1781
|
+
export const podSessionUpdateMutation = (options) => {
|
|
1782
|
+
const mutationOptions = {
|
|
1783
|
+
mutationFn: async (fnOptions) => {
|
|
1784
|
+
const { data } = await RenClient.__registry.get().pod.session.update({
|
|
1785
|
+
...options,
|
|
1786
|
+
...fnOptions,
|
|
1787
|
+
throwOnError: true
|
|
1788
|
+
});
|
|
1789
|
+
return data;
|
|
1790
|
+
}
|
|
1791
|
+
};
|
|
1792
|
+
return mutationOptions;
|
|
1793
|
+
};
|
|
1794
|
+
/**
|
|
1795
|
+
* Archive a session
|
|
1796
|
+
*/
|
|
1797
|
+
export const podSessionArchiveMutation = (options) => {
|
|
1798
|
+
const mutationOptions = {
|
|
1799
|
+
mutationFn: async (fnOptions) => {
|
|
1800
|
+
const { data } = await RenClient.__registry.get().pod.session.archive({
|
|
1801
|
+
...options,
|
|
1802
|
+
...fnOptions,
|
|
1803
|
+
throwOnError: true
|
|
1804
|
+
});
|
|
1805
|
+
return data;
|
|
1806
|
+
}
|
|
1807
|
+
};
|
|
1808
|
+
return mutationOptions;
|
|
1809
|
+
};
|
|
1810
|
+
export const podSessionMessageListQueryKey = (options) => createQueryKey('podSessionMessageList', options);
|
|
1811
|
+
/**
|
|
1812
|
+
* List session messages
|
|
1813
|
+
*/
|
|
1814
|
+
export const podSessionMessageListOptions = (options) => queryOptions({
|
|
1815
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1816
|
+
const { data } = await RenClient.__registry.get().pod.session.message.list({
|
|
1817
|
+
...options,
|
|
1818
|
+
...queryKey[0],
|
|
1819
|
+
signal,
|
|
1820
|
+
throwOnError: true
|
|
1821
|
+
});
|
|
1822
|
+
return data;
|
|
1823
|
+
},
|
|
1824
|
+
queryKey: podSessionMessageListQueryKey(options)
|
|
1825
|
+
});
|
|
1826
|
+
export const podSessionMessageListInfiniteQueryKey = (options) => createQueryKey('podSessionMessageList', options, true);
|
|
1827
|
+
/**
|
|
1828
|
+
* List session messages
|
|
1829
|
+
*/
|
|
1830
|
+
export const podSessionMessageListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1831
|
+
// @ts-ignore
|
|
1832
|
+
{
|
|
1833
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1834
|
+
// @ts-ignore
|
|
1835
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1836
|
+
query: {
|
|
1837
|
+
offset: pageParam
|
|
1838
|
+
}
|
|
1839
|
+
};
|
|
1840
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1841
|
+
const { data } = await RenClient.__registry.get().pod.session.message.list({
|
|
1842
|
+
...options,
|
|
1843
|
+
...params,
|
|
1844
|
+
signal,
|
|
1845
|
+
throwOnError: true
|
|
1846
|
+
});
|
|
1847
|
+
return data;
|
|
1848
|
+
},
|
|
1849
|
+
queryKey: podSessionMessageListInfiniteQueryKey(options)
|
|
1850
|
+
});
|
|
1851
|
+
export const podRoutineListQueryKey = (options) => createQueryKey('podRoutineList', options);
|
|
1852
|
+
/**
|
|
1853
|
+
* List routines
|
|
1854
|
+
*/
|
|
1855
|
+
export const podRoutineListOptions = (options) => queryOptions({
|
|
1856
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1857
|
+
const { data } = await RenClient.__registry.get().pod.routine.list({
|
|
1858
|
+
...options,
|
|
1859
|
+
...queryKey[0],
|
|
1860
|
+
signal,
|
|
1861
|
+
throwOnError: true
|
|
1862
|
+
});
|
|
1863
|
+
return data;
|
|
1864
|
+
},
|
|
1865
|
+
queryKey: podRoutineListQueryKey(options)
|
|
1866
|
+
});
|
|
1867
|
+
export const podRoutineListInfiniteQueryKey = (options) => createQueryKey('podRoutineList', options, true);
|
|
1868
|
+
/**
|
|
1869
|
+
* List routines
|
|
1870
|
+
*/
|
|
1871
|
+
export const podRoutineListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1872
|
+
// @ts-ignore
|
|
1873
|
+
{
|
|
1874
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1875
|
+
// @ts-ignore
|
|
1876
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1877
|
+
query: {
|
|
1878
|
+
offset: pageParam
|
|
1879
|
+
}
|
|
1880
|
+
};
|
|
1881
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1882
|
+
const { data } = await RenClient.__registry.get().pod.routine.list({
|
|
1883
|
+
...options,
|
|
1884
|
+
...params,
|
|
1885
|
+
signal,
|
|
1886
|
+
throwOnError: true
|
|
1887
|
+
});
|
|
1888
|
+
return data;
|
|
1889
|
+
},
|
|
1890
|
+
queryKey: podRoutineListInfiniteQueryKey(options)
|
|
1891
|
+
});
|
|
1892
|
+
/**
|
|
1893
|
+
* Create a routine
|
|
1894
|
+
*/
|
|
1895
|
+
export const podRoutineCreateMutation = (options) => {
|
|
1896
|
+
const mutationOptions = {
|
|
1897
|
+
mutationFn: async (fnOptions) => {
|
|
1898
|
+
const { data } = await RenClient.__registry.get().pod.routine.create({
|
|
1899
|
+
...options,
|
|
1900
|
+
...fnOptions,
|
|
1901
|
+
throwOnError: true
|
|
1902
|
+
});
|
|
1903
|
+
return data;
|
|
1904
|
+
}
|
|
1905
|
+
};
|
|
1906
|
+
return mutationOptions;
|
|
1907
|
+
};
|
|
1908
|
+
export const podRoutineGetQueryKey = (options) => createQueryKey('podRoutineGet', options);
|
|
1909
|
+
/**
|
|
1910
|
+
* Get a routine
|
|
1911
|
+
*/
|
|
1912
|
+
export const podRoutineGetOptions = (options) => queryOptions({
|
|
1913
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1914
|
+
const { data } = await RenClient.__registry.get().pod.routine.get({
|
|
1915
|
+
...options,
|
|
1916
|
+
...queryKey[0],
|
|
1917
|
+
signal,
|
|
1918
|
+
throwOnError: true
|
|
1919
|
+
});
|
|
1920
|
+
return data;
|
|
1921
|
+
},
|
|
1922
|
+
queryKey: podRoutineGetQueryKey(options)
|
|
1923
|
+
});
|
|
1924
|
+
/**
|
|
1925
|
+
* Update a routine
|
|
1926
|
+
*/
|
|
1927
|
+
export const podRoutineUpdateMutation = (options) => {
|
|
1928
|
+
const mutationOptions = {
|
|
1929
|
+
mutationFn: async (fnOptions) => {
|
|
1930
|
+
const { data } = await RenClient.__registry.get().pod.routine.update({
|
|
1931
|
+
...options,
|
|
1932
|
+
...fnOptions,
|
|
1933
|
+
throwOnError: true
|
|
1934
|
+
});
|
|
1935
|
+
return data;
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
return mutationOptions;
|
|
1939
|
+
};
|
|
1940
|
+
/**
|
|
1941
|
+
* Archive a routine
|
|
1942
|
+
*/
|
|
1943
|
+
export const podRoutineArchiveMutation = (options) => {
|
|
1944
|
+
const mutationOptions = {
|
|
1945
|
+
mutationFn: async (fnOptions) => {
|
|
1946
|
+
const { data } = await RenClient.__registry.get().pod.routine.archive({
|
|
1947
|
+
...options,
|
|
1948
|
+
...fnOptions,
|
|
1949
|
+
throwOnError: true
|
|
1950
|
+
});
|
|
1951
|
+
return data;
|
|
1952
|
+
}
|
|
1953
|
+
};
|
|
1954
|
+
return mutationOptions;
|
|
1955
|
+
};
|
|
1956
|
+
/**
|
|
1957
|
+
* Pause a routine
|
|
1958
|
+
*/
|
|
1959
|
+
export const podRoutinePauseMutation = (options) => {
|
|
1960
|
+
const mutationOptions = {
|
|
1961
|
+
mutationFn: async (fnOptions) => {
|
|
1962
|
+
const { data } = await RenClient.__registry.get().pod.routine.pause({
|
|
1963
|
+
...options,
|
|
1964
|
+
...fnOptions,
|
|
1965
|
+
throwOnError: true
|
|
1966
|
+
});
|
|
1967
|
+
return data;
|
|
1968
|
+
}
|
|
1969
|
+
};
|
|
1970
|
+
return mutationOptions;
|
|
1971
|
+
};
|
|
1972
|
+
/**
|
|
1973
|
+
* Resume a routine
|
|
1974
|
+
*/
|
|
1975
|
+
export const podRoutineResumeMutation = (options) => {
|
|
1976
|
+
const mutationOptions = {
|
|
1977
|
+
mutationFn: async (fnOptions) => {
|
|
1978
|
+
const { data } = await RenClient.__registry.get().pod.routine.resume({
|
|
1979
|
+
...options,
|
|
1980
|
+
...fnOptions,
|
|
1981
|
+
throwOnError: true
|
|
1982
|
+
});
|
|
1983
|
+
return data;
|
|
1984
|
+
}
|
|
1985
|
+
};
|
|
1986
|
+
return mutationOptions;
|
|
1987
|
+
};
|
|
1988
|
+
export const podRoutineCronTriggerListQueryKey = (options) => createQueryKey('podRoutineCronTriggerList', options);
|
|
1989
|
+
/**
|
|
1990
|
+
* List cron triggers
|
|
1991
|
+
*/
|
|
1992
|
+
export const podRoutineCronTriggerListOptions = (options) => queryOptions({
|
|
1993
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1994
|
+
const { data } = await RenClient.__registry.get().pod.routine.cronTrigger.list({
|
|
1995
|
+
...options,
|
|
1996
|
+
...queryKey[0],
|
|
1997
|
+
signal,
|
|
1998
|
+
throwOnError: true
|
|
1999
|
+
});
|
|
2000
|
+
return data;
|
|
2001
|
+
},
|
|
2002
|
+
queryKey: podRoutineCronTriggerListQueryKey(options)
|
|
2003
|
+
});
|
|
2004
|
+
export const podRoutineCronTriggerListInfiniteQueryKey = (options) => createQueryKey('podRoutineCronTriggerList', options, true);
|
|
2005
|
+
/**
|
|
2006
|
+
* List cron triggers
|
|
2007
|
+
*/
|
|
2008
|
+
export const podRoutineCronTriggerListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2009
|
+
// @ts-ignore
|
|
2010
|
+
{
|
|
2011
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2012
|
+
// @ts-ignore
|
|
2013
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2014
|
+
query: {
|
|
2015
|
+
offset: pageParam
|
|
2016
|
+
}
|
|
2017
|
+
};
|
|
2018
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2019
|
+
const { data } = await RenClient.__registry.get().pod.routine.cronTrigger.list({
|
|
2020
|
+
...options,
|
|
2021
|
+
...params,
|
|
2022
|
+
signal,
|
|
2023
|
+
throwOnError: true
|
|
2024
|
+
});
|
|
2025
|
+
return data;
|
|
2026
|
+
},
|
|
2027
|
+
queryKey: podRoutineCronTriggerListInfiniteQueryKey(options)
|
|
2028
|
+
});
|
|
2029
|
+
/**
|
|
2030
|
+
* Create a cron trigger
|
|
2031
|
+
*/
|
|
2032
|
+
export const podRoutineCronTriggerCreateMutation = (options) => {
|
|
2033
|
+
const mutationOptions = {
|
|
2034
|
+
mutationFn: async (fnOptions) => {
|
|
2035
|
+
const { data } = await RenClient.__registry.get().pod.routine.cronTrigger.create({
|
|
2036
|
+
...options,
|
|
2037
|
+
...fnOptions,
|
|
2038
|
+
throwOnError: true
|
|
2039
|
+
});
|
|
2040
|
+
return data;
|
|
2041
|
+
}
|
|
2042
|
+
};
|
|
2043
|
+
return mutationOptions;
|
|
2044
|
+
};
|
|
2045
|
+
export const podRoutineCronTriggerGetQueryKey = (options) => createQueryKey('podRoutineCronTriggerGet', options);
|
|
2046
|
+
/**
|
|
2047
|
+
* Get a cron trigger
|
|
2048
|
+
*/
|
|
2049
|
+
export const podRoutineCronTriggerGetOptions = (options) => queryOptions({
|
|
2050
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2051
|
+
const { data } = await RenClient.__registry.get().pod.routine.cronTrigger.get({
|
|
2052
|
+
...options,
|
|
2053
|
+
...queryKey[0],
|
|
2054
|
+
signal,
|
|
2055
|
+
throwOnError: true
|
|
2056
|
+
});
|
|
2057
|
+
return data;
|
|
2058
|
+
},
|
|
2059
|
+
queryKey: podRoutineCronTriggerGetQueryKey(options)
|
|
2060
|
+
});
|
|
2061
|
+
/**
|
|
2062
|
+
* Update a cron trigger
|
|
2063
|
+
*/
|
|
2064
|
+
export const podRoutineCronTriggerUpdateMutation = (options) => {
|
|
2065
|
+
const mutationOptions = {
|
|
2066
|
+
mutationFn: async (fnOptions) => {
|
|
2067
|
+
const { data } = await RenClient.__registry.get().pod.routine.cronTrigger.update({
|
|
2068
|
+
...options,
|
|
2069
|
+
...fnOptions,
|
|
2070
|
+
throwOnError: true
|
|
2071
|
+
});
|
|
2072
|
+
return data;
|
|
2073
|
+
}
|
|
2074
|
+
};
|
|
2075
|
+
return mutationOptions;
|
|
2076
|
+
};
|
|
2077
|
+
/**
|
|
2078
|
+
* Archive a cron trigger
|
|
2079
|
+
*/
|
|
2080
|
+
export const podRoutineCronTriggerArchiveMutation = (options) => {
|
|
2081
|
+
const mutationOptions = {
|
|
2082
|
+
mutationFn: async (fnOptions) => {
|
|
2083
|
+
const { data } = await RenClient.__registry.get().pod.routine.cronTrigger.archive({
|
|
2084
|
+
...options,
|
|
2085
|
+
...fnOptions,
|
|
2086
|
+
throwOnError: true
|
|
2087
|
+
});
|
|
2088
|
+
return data;
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
return mutationOptions;
|
|
2092
|
+
};
|
|
2093
|
+
export const podRoutineWebhookTriggerListQueryKey = (options) => createQueryKey('podRoutineWebhookTriggerList', options);
|
|
2094
|
+
/**
|
|
2095
|
+
* List webhook triggers
|
|
2096
|
+
*/
|
|
2097
|
+
export const podRoutineWebhookTriggerListOptions = (options) => queryOptions({
|
|
2098
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2099
|
+
const { data } = await RenClient.__registry.get().pod.routine.webhookTrigger.list({
|
|
2100
|
+
...options,
|
|
2101
|
+
...queryKey[0],
|
|
2102
|
+
signal,
|
|
2103
|
+
throwOnError: true
|
|
2104
|
+
});
|
|
2105
|
+
return data;
|
|
2106
|
+
},
|
|
2107
|
+
queryKey: podRoutineWebhookTriggerListQueryKey(options)
|
|
2108
|
+
});
|
|
2109
|
+
export const podRoutineWebhookTriggerListInfiniteQueryKey = (options) => createQueryKey('podRoutineWebhookTriggerList', options, true);
|
|
2110
|
+
/**
|
|
2111
|
+
* List webhook triggers
|
|
2112
|
+
*/
|
|
2113
|
+
export const podRoutineWebhookTriggerListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2114
|
+
// @ts-ignore
|
|
2115
|
+
{
|
|
2116
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2117
|
+
// @ts-ignore
|
|
2118
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2119
|
+
query: {
|
|
2120
|
+
offset: pageParam
|
|
2121
|
+
}
|
|
2122
|
+
};
|
|
2123
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2124
|
+
const { data } = await RenClient.__registry.get().pod.routine.webhookTrigger.list({
|
|
2125
|
+
...options,
|
|
2126
|
+
...params,
|
|
2127
|
+
signal,
|
|
2128
|
+
throwOnError: true
|
|
2129
|
+
});
|
|
2130
|
+
return data;
|
|
2131
|
+
},
|
|
2132
|
+
queryKey: podRoutineWebhookTriggerListInfiniteQueryKey(options)
|
|
2133
|
+
});
|
|
2134
|
+
/**
|
|
2135
|
+
* Create a webhook trigger
|
|
2136
|
+
*/
|
|
2137
|
+
export const podRoutineWebhookTriggerCreateMutation = (options) => {
|
|
2138
|
+
const mutationOptions = {
|
|
2139
|
+
mutationFn: async (fnOptions) => {
|
|
2140
|
+
const { data } = await RenClient.__registry.get().pod.routine.webhookTrigger.create({
|
|
2141
|
+
...options,
|
|
2142
|
+
...fnOptions,
|
|
2143
|
+
throwOnError: true
|
|
2144
|
+
});
|
|
2145
|
+
return data;
|
|
2146
|
+
}
|
|
2147
|
+
};
|
|
2148
|
+
return mutationOptions;
|
|
2149
|
+
};
|
|
2150
|
+
export const podRoutineWebhookTriggerGetQueryKey = (options) => createQueryKey('podRoutineWebhookTriggerGet', options);
|
|
2151
|
+
/**
|
|
2152
|
+
* Get a webhook trigger
|
|
2153
|
+
*/
|
|
2154
|
+
export const podRoutineWebhookTriggerGetOptions = (options) => queryOptions({
|
|
2155
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2156
|
+
const { data } = await RenClient.__registry.get().pod.routine.webhookTrigger.get({
|
|
2157
|
+
...options,
|
|
2158
|
+
...queryKey[0],
|
|
2159
|
+
signal,
|
|
2160
|
+
throwOnError: true
|
|
2161
|
+
});
|
|
2162
|
+
return data;
|
|
2163
|
+
},
|
|
2164
|
+
queryKey: podRoutineWebhookTriggerGetQueryKey(options)
|
|
2165
|
+
});
|
|
2166
|
+
/**
|
|
2167
|
+
* Update a webhook trigger
|
|
2168
|
+
*/
|
|
2169
|
+
export const podRoutineWebhookTriggerUpdateMutation = (options) => {
|
|
2170
|
+
const mutationOptions = {
|
|
2171
|
+
mutationFn: async (fnOptions) => {
|
|
2172
|
+
const { data } = await RenClient.__registry.get().pod.routine.webhookTrigger.update({
|
|
2173
|
+
...options,
|
|
2174
|
+
...fnOptions,
|
|
2175
|
+
throwOnError: true
|
|
2176
|
+
});
|
|
2177
|
+
return data;
|
|
2178
|
+
}
|
|
2179
|
+
};
|
|
2180
|
+
return mutationOptions;
|
|
2181
|
+
};
|
|
2182
|
+
/**
|
|
2183
|
+
* Archive a webhook trigger
|
|
2184
|
+
*/
|
|
2185
|
+
export const podRoutineWebhookTriggerArchiveMutation = (options) => {
|
|
2186
|
+
const mutationOptions = {
|
|
2187
|
+
mutationFn: async (fnOptions) => {
|
|
2188
|
+
const { data } = await RenClient.__registry.get().pod.routine.webhookTrigger.archive({
|
|
2189
|
+
...options,
|
|
2190
|
+
...fnOptions,
|
|
2191
|
+
throwOnError: true
|
|
2192
|
+
});
|
|
2193
|
+
return data;
|
|
2194
|
+
}
|
|
2195
|
+
};
|
|
2196
|
+
return mutationOptions;
|
|
2197
|
+
};
|
|
2198
|
+
export const podRoutineApiTriggerListQueryKey = (options) => createQueryKey('podRoutineApiTriggerList', options);
|
|
2199
|
+
/**
|
|
2200
|
+
* List API triggers
|
|
2201
|
+
*/
|
|
2202
|
+
export const podRoutineApiTriggerListOptions = (options) => queryOptions({
|
|
2203
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2204
|
+
const { data } = await RenClient.__registry.get().pod.routine.apiTrigger.list({
|
|
2205
|
+
...options,
|
|
2206
|
+
...queryKey[0],
|
|
2207
|
+
signal,
|
|
2208
|
+
throwOnError: true
|
|
2209
|
+
});
|
|
2210
|
+
return data;
|
|
2211
|
+
},
|
|
2212
|
+
queryKey: podRoutineApiTriggerListQueryKey(options)
|
|
2213
|
+
});
|
|
2214
|
+
export const podRoutineApiTriggerListInfiniteQueryKey = (options) => createQueryKey('podRoutineApiTriggerList', options, true);
|
|
2215
|
+
/**
|
|
2216
|
+
* List API triggers
|
|
2217
|
+
*/
|
|
2218
|
+
export const podRoutineApiTriggerListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2219
|
+
// @ts-ignore
|
|
2220
|
+
{
|
|
2221
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2222
|
+
// @ts-ignore
|
|
2223
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2224
|
+
query: {
|
|
2225
|
+
offset: pageParam
|
|
2226
|
+
}
|
|
2227
|
+
};
|
|
2228
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2229
|
+
const { data } = await RenClient.__registry.get().pod.routine.apiTrigger.list({
|
|
2230
|
+
...options,
|
|
2231
|
+
...params,
|
|
2232
|
+
signal,
|
|
2233
|
+
throwOnError: true
|
|
2234
|
+
});
|
|
2235
|
+
return data;
|
|
2236
|
+
},
|
|
2237
|
+
queryKey: podRoutineApiTriggerListInfiniteQueryKey(options)
|
|
2238
|
+
});
|
|
2239
|
+
/**
|
|
2240
|
+
* Create an API trigger
|
|
2241
|
+
*
|
|
2242
|
+
* Server generates a single-use plaintext token. The token is returned ONCE in this response and never again — only its sha256 hash is stored.
|
|
2243
|
+
*/
|
|
2244
|
+
export const podRoutineApiTriggerCreateMutation = (options) => {
|
|
2245
|
+
const mutationOptions = {
|
|
2246
|
+
mutationFn: async (fnOptions) => {
|
|
2247
|
+
const { data } = await RenClient.__registry.get().pod.routine.apiTrigger.create({
|
|
2248
|
+
...options,
|
|
2249
|
+
...fnOptions,
|
|
2250
|
+
throwOnError: true
|
|
2251
|
+
});
|
|
2252
|
+
return data;
|
|
2253
|
+
}
|
|
2254
|
+
};
|
|
2255
|
+
return mutationOptions;
|
|
2256
|
+
};
|
|
2257
|
+
/**
|
|
2258
|
+
* Rotate an API trigger token
|
|
2259
|
+
*
|
|
2260
|
+
* Generates a new token, replaces the stored hash, returns the plaintext once.
|
|
2261
|
+
*/
|
|
2262
|
+
export const podRoutineApiTriggerRotateMutation = (options) => {
|
|
2263
|
+
const mutationOptions = {
|
|
2264
|
+
mutationFn: async (fnOptions) => {
|
|
2265
|
+
const { data } = await RenClient.__registry.get().pod.routine.apiTrigger.rotate({
|
|
2266
|
+
...options,
|
|
2267
|
+
...fnOptions,
|
|
2268
|
+
throwOnError: true
|
|
2269
|
+
});
|
|
2270
|
+
return data;
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
return mutationOptions;
|
|
2274
|
+
};
|
|
2275
|
+
export const podRoutineApiTriggerGetQueryKey = (options) => createQueryKey('podRoutineApiTriggerGet', options);
|
|
2276
|
+
/**
|
|
2277
|
+
* Get an API trigger
|
|
2278
|
+
*/
|
|
2279
|
+
export const podRoutineApiTriggerGetOptions = (options) => queryOptions({
|
|
2280
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2281
|
+
const { data } = await RenClient.__registry.get().pod.routine.apiTrigger.get({
|
|
2282
|
+
...options,
|
|
2283
|
+
...queryKey[0],
|
|
2284
|
+
signal,
|
|
2285
|
+
throwOnError: true
|
|
2286
|
+
});
|
|
2287
|
+
return data;
|
|
2288
|
+
},
|
|
2289
|
+
queryKey: podRoutineApiTriggerGetQueryKey(options)
|
|
2290
|
+
});
|
|
2291
|
+
/**
|
|
2292
|
+
* Update an API trigger
|
|
2293
|
+
*/
|
|
2294
|
+
export const podRoutineApiTriggerUpdateMutation = (options) => {
|
|
2295
|
+
const mutationOptions = {
|
|
2296
|
+
mutationFn: async (fnOptions) => {
|
|
2297
|
+
const { data } = await RenClient.__registry.get().pod.routine.apiTrigger.update({
|
|
2298
|
+
...options,
|
|
2299
|
+
...fnOptions,
|
|
2300
|
+
throwOnError: true
|
|
2301
|
+
});
|
|
2302
|
+
return data;
|
|
2303
|
+
}
|
|
2304
|
+
};
|
|
2305
|
+
return mutationOptions;
|
|
2306
|
+
};
|
|
2307
|
+
/**
|
|
2308
|
+
* Archive an API trigger
|
|
2309
|
+
*/
|
|
2310
|
+
export const podRoutineApiTriggerArchiveMutation = (options) => {
|
|
2311
|
+
const mutationOptions = {
|
|
2312
|
+
mutationFn: async (fnOptions) => {
|
|
2313
|
+
const { data } = await RenClient.__registry.get().pod.routine.apiTrigger.archive({
|
|
2314
|
+
...options,
|
|
2315
|
+
...fnOptions,
|
|
2316
|
+
throwOnError: true
|
|
2317
|
+
});
|
|
2318
|
+
return data;
|
|
2319
|
+
}
|
|
2320
|
+
};
|
|
2321
|
+
return mutationOptions;
|
|
2322
|
+
};
|
|
2323
|
+
export const podRoutineRunsListQueryKey = (options) => createQueryKey('podRoutineRunsList', options);
|
|
2324
|
+
/**
|
|
2325
|
+
* List routine runs
|
|
2326
|
+
*/
|
|
2327
|
+
export const podRoutineRunsListOptions = (options) => queryOptions({
|
|
2328
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2329
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.list({
|
|
2330
|
+
...options,
|
|
2331
|
+
...queryKey[0],
|
|
2332
|
+
signal,
|
|
2333
|
+
throwOnError: true
|
|
2334
|
+
});
|
|
2335
|
+
return data;
|
|
2336
|
+
},
|
|
2337
|
+
queryKey: podRoutineRunsListQueryKey(options)
|
|
2338
|
+
});
|
|
2339
|
+
export const podRoutineRunsListInfiniteQueryKey = (options) => createQueryKey('podRoutineRunsList', options, true);
|
|
2340
|
+
/**
|
|
2341
|
+
* List routine runs
|
|
2342
|
+
*/
|
|
2343
|
+
export const podRoutineRunsListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2344
|
+
// @ts-ignore
|
|
2345
|
+
{
|
|
2346
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2347
|
+
// @ts-ignore
|
|
2348
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2349
|
+
query: {
|
|
2350
|
+
offset: pageParam
|
|
2351
|
+
}
|
|
2352
|
+
};
|
|
2353
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2354
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.list({
|
|
2355
|
+
...options,
|
|
2356
|
+
...params,
|
|
2357
|
+
signal,
|
|
2358
|
+
throwOnError: true
|
|
2359
|
+
});
|
|
2360
|
+
return data;
|
|
2361
|
+
},
|
|
2362
|
+
queryKey: podRoutineRunsListInfiniteQueryKey(options)
|
|
2363
|
+
});
|
|
2364
|
+
/**
|
|
2365
|
+
* Create a routine run
|
|
2366
|
+
*/
|
|
2367
|
+
export const podRoutineRunsCreateMutation = (options) => {
|
|
2368
|
+
const mutationOptions = {
|
|
2369
|
+
mutationFn: async (fnOptions) => {
|
|
2370
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.create({
|
|
2371
|
+
...options,
|
|
2372
|
+
...fnOptions,
|
|
2373
|
+
throwOnError: true
|
|
2374
|
+
});
|
|
2375
|
+
return data;
|
|
2376
|
+
}
|
|
2377
|
+
};
|
|
2378
|
+
return mutationOptions;
|
|
2379
|
+
};
|
|
2380
|
+
export const podRoutineRunsGetQueryKey = (options) => createQueryKey('podRoutineRunsGet', options);
|
|
2381
|
+
/**
|
|
2382
|
+
* Get a routine run
|
|
2383
|
+
*/
|
|
2384
|
+
export const podRoutineRunsGetOptions = (options) => queryOptions({
|
|
2385
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2386
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.get({
|
|
2387
|
+
...options,
|
|
2388
|
+
...queryKey[0],
|
|
2389
|
+
signal,
|
|
2390
|
+
throwOnError: true
|
|
2391
|
+
});
|
|
2392
|
+
return data;
|
|
2393
|
+
},
|
|
2394
|
+
queryKey: podRoutineRunsGetQueryKey(options)
|
|
2395
|
+
});
|
|
2396
|
+
/**
|
|
2397
|
+
* Mark a routine run as started
|
|
2398
|
+
*/
|
|
2399
|
+
export const podRoutineRunsStartMutation = (options) => {
|
|
2400
|
+
const mutationOptions = {
|
|
2401
|
+
mutationFn: async (fnOptions) => {
|
|
2402
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.start({
|
|
2403
|
+
...options,
|
|
2404
|
+
...fnOptions,
|
|
2405
|
+
throwOnError: true
|
|
2406
|
+
});
|
|
2407
|
+
return data;
|
|
2408
|
+
}
|
|
2409
|
+
};
|
|
2410
|
+
return mutationOptions;
|
|
2411
|
+
};
|
|
2412
|
+
/**
|
|
2413
|
+
* Mark a routine run as completed
|
|
2414
|
+
*/
|
|
2415
|
+
export const podRoutineRunsCompleteMutation = (options) => {
|
|
2416
|
+
const mutationOptions = {
|
|
2417
|
+
mutationFn: async (fnOptions) => {
|
|
2418
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.complete({
|
|
2419
|
+
...options,
|
|
2420
|
+
...fnOptions,
|
|
2421
|
+
throwOnError: true
|
|
2422
|
+
});
|
|
2423
|
+
return data;
|
|
2424
|
+
}
|
|
2425
|
+
};
|
|
2426
|
+
return mutationOptions;
|
|
2427
|
+
};
|
|
2428
|
+
/**
|
|
2429
|
+
* Mark a routine run as failed
|
|
2430
|
+
*/
|
|
2431
|
+
export const podRoutineRunsFailMutation = (options) => {
|
|
2432
|
+
const mutationOptions = {
|
|
2433
|
+
mutationFn: async (fnOptions) => {
|
|
2434
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.fail({
|
|
2435
|
+
...options,
|
|
2436
|
+
...fnOptions,
|
|
2437
|
+
throwOnError: true
|
|
2438
|
+
});
|
|
2439
|
+
return data;
|
|
2440
|
+
}
|
|
2441
|
+
};
|
|
2442
|
+
return mutationOptions;
|
|
2443
|
+
};
|
|
2444
|
+
/**
|
|
2445
|
+
* Cancel a routine run
|
|
2446
|
+
*/
|
|
2447
|
+
export const podRoutineRunsCancelMutation = (options) => {
|
|
2448
|
+
const mutationOptions = {
|
|
2449
|
+
mutationFn: async (fnOptions) => {
|
|
2450
|
+
const { data } = await RenClient.__registry.get().pod.routine.runs.cancel({
|
|
2451
|
+
...options,
|
|
2452
|
+
...fnOptions,
|
|
2453
|
+
throwOnError: true
|
|
2454
|
+
});
|
|
2455
|
+
return data;
|
|
2456
|
+
}
|
|
2457
|
+
};
|
|
2458
|
+
return mutationOptions;
|
|
2459
|
+
};
|
|
2460
|
+
export const podRoutinesRunsListAllQueryKey = (options) => createQueryKey('podRoutinesRunsListAll', options);
|
|
2461
|
+
/**
|
|
2462
|
+
* List routine runs across pod
|
|
2463
|
+
*/
|
|
2464
|
+
export const podRoutinesRunsListAllOptions = (options) => queryOptions({
|
|
2465
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2466
|
+
const { data } = await RenClient.__registry.get().pod.routines.runs.listAll({
|
|
2467
|
+
...options,
|
|
2468
|
+
...queryKey[0],
|
|
2469
|
+
signal,
|
|
2470
|
+
throwOnError: true
|
|
2471
|
+
});
|
|
2472
|
+
return data;
|
|
2473
|
+
},
|
|
2474
|
+
queryKey: podRoutinesRunsListAllQueryKey(options)
|
|
2475
|
+
});
|
|
2476
|
+
export const podRoutinesRunsListAllInfiniteQueryKey = (options) => createQueryKey('podRoutinesRunsListAll', options, true);
|
|
2477
|
+
/**
|
|
2478
|
+
* List routine runs across pod
|
|
2479
|
+
*/
|
|
2480
|
+
export const podRoutinesRunsListAllInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2481
|
+
// @ts-ignore
|
|
2482
|
+
{
|
|
2483
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2484
|
+
// @ts-ignore
|
|
2485
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2486
|
+
query: {
|
|
2487
|
+
offset: pageParam
|
|
2488
|
+
}
|
|
2489
|
+
};
|
|
2490
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2491
|
+
const { data } = await RenClient.__registry.get().pod.routines.runs.listAll({
|
|
2492
|
+
...options,
|
|
2493
|
+
...params,
|
|
2494
|
+
signal,
|
|
2495
|
+
throwOnError: true
|
|
2496
|
+
});
|
|
2497
|
+
return data;
|
|
2498
|
+
},
|
|
2499
|
+
queryKey: podRoutinesRunsListAllInfiniteQueryKey(options)
|
|
2500
|
+
});
|
|
2501
|
+
export const replayListQueryKey = (options) => createQueryKey('replayList', options);
|
|
2502
|
+
/**
|
|
2503
|
+
* List replays
|
|
2504
|
+
*/
|
|
2505
|
+
export const replayListOptions = (options) => queryOptions({
|
|
2506
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2507
|
+
const { data } = await RenClient.__registry.get().replay.list({
|
|
2508
|
+
...options,
|
|
2509
|
+
...queryKey[0],
|
|
2510
|
+
signal,
|
|
2511
|
+
throwOnError: true
|
|
2512
|
+
});
|
|
2513
|
+
return data;
|
|
2514
|
+
},
|
|
2515
|
+
queryKey: replayListQueryKey(options)
|
|
2516
|
+
});
|
|
2517
|
+
export const replayListInfiniteQueryKey = (options) => createQueryKey('replayList', options, true);
|
|
2518
|
+
/**
|
|
2519
|
+
* List replays
|
|
2520
|
+
*/
|
|
2521
|
+
export const replayListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2522
|
+
// @ts-ignore
|
|
2523
|
+
{
|
|
2524
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2525
|
+
// @ts-ignore
|
|
2526
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2527
|
+
query: {
|
|
2528
|
+
offset: pageParam
|
|
2529
|
+
}
|
|
2530
|
+
};
|
|
2531
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2532
|
+
const { data } = await RenClient.__registry.get().replay.list({
|
|
2533
|
+
...options,
|
|
2534
|
+
...params,
|
|
2535
|
+
signal,
|
|
2536
|
+
throwOnError: true
|
|
2537
|
+
});
|
|
2538
|
+
return data;
|
|
2539
|
+
},
|
|
2540
|
+
queryKey: replayListInfiniteQueryKey(options)
|
|
2541
|
+
});
|
|
2542
|
+
/**
|
|
2543
|
+
* Create a replay
|
|
2544
|
+
*/
|
|
2545
|
+
export const replayCreateMutation = (options) => {
|
|
2546
|
+
const mutationOptions = {
|
|
2547
|
+
mutationFn: async (fnOptions) => {
|
|
2548
|
+
const { data } = await RenClient.__registry.get().replay.create({
|
|
2549
|
+
...options,
|
|
2550
|
+
...fnOptions,
|
|
2551
|
+
throwOnError: true
|
|
2552
|
+
});
|
|
2553
|
+
return data;
|
|
2554
|
+
}
|
|
2555
|
+
};
|
|
2556
|
+
return mutationOptions;
|
|
2557
|
+
};
|
|
2558
|
+
export const replayGetQueryKey = (options) => createQueryKey('replayGet', options);
|
|
2559
|
+
/**
|
|
2560
|
+
* Get a replay
|
|
2561
|
+
*/
|
|
2562
|
+
export const replayGetOptions = (options) => queryOptions({
|
|
2563
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2564
|
+
const { data } = await RenClient.__registry.get().replay.get({
|
|
2565
|
+
...options,
|
|
2566
|
+
...queryKey[0],
|
|
2567
|
+
signal,
|
|
2568
|
+
throwOnError: true
|
|
2569
|
+
});
|
|
2570
|
+
return data;
|
|
2571
|
+
},
|
|
2572
|
+
queryKey: replayGetQueryKey(options)
|
|
2573
|
+
});
|
|
2574
|
+
/**
|
|
2575
|
+
* Archive a replay
|
|
2576
|
+
*/
|
|
2577
|
+
export const replayArchiveMutation = (options) => {
|
|
2578
|
+
const mutationOptions = {
|
|
2579
|
+
mutationFn: async (fnOptions) => {
|
|
2580
|
+
const { data } = await RenClient.__registry.get().replay.archive({
|
|
2581
|
+
...options,
|
|
2582
|
+
...fnOptions,
|
|
2583
|
+
throwOnError: true
|
|
2584
|
+
});
|
|
2585
|
+
return data;
|
|
2586
|
+
}
|
|
2587
|
+
};
|
|
2588
|
+
return mutationOptions;
|
|
2589
|
+
};
|
|
2590
|
+
export const routinesRunsListAllQueryKey = (options) => createQueryKey('routinesRunsListAll', options);
|
|
2591
|
+
/**
|
|
2592
|
+
* List routine runs across user
|
|
2593
|
+
*/
|
|
2594
|
+
export const routinesRunsListAllOptions = (options) => queryOptions({
|
|
2595
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2596
|
+
const { data } = await RenClient.__registry.get().routines.runs.listAll({
|
|
2597
|
+
...options,
|
|
2598
|
+
...queryKey[0],
|
|
2599
|
+
signal,
|
|
2600
|
+
throwOnError: true
|
|
2601
|
+
});
|
|
2602
|
+
return data;
|
|
2603
|
+
},
|
|
2604
|
+
queryKey: routinesRunsListAllQueryKey(options)
|
|
2605
|
+
});
|
|
2606
|
+
export const routinesRunsListAllInfiniteQueryKey = (options) => createQueryKey('routinesRunsListAll', options, true);
|
|
2607
|
+
/**
|
|
2608
|
+
* List routine runs across user
|
|
2609
|
+
*/
|
|
2610
|
+
export const routinesRunsListAllInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2611
|
+
// @ts-ignore
|
|
2612
|
+
{
|
|
2613
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2614
|
+
// @ts-ignore
|
|
2615
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2616
|
+
query: {
|
|
2617
|
+
offset: pageParam
|
|
2618
|
+
}
|
|
2619
|
+
};
|
|
2620
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2621
|
+
const { data } = await RenClient.__registry.get().routines.runs.listAll({
|
|
2622
|
+
...options,
|
|
2623
|
+
...params,
|
|
2624
|
+
signal,
|
|
2625
|
+
throwOnError: true
|
|
2626
|
+
});
|
|
2627
|
+
return data;
|
|
2628
|
+
},
|
|
2629
|
+
queryKey: routinesRunsListAllInfiniteQueryKey(options)
|
|
2630
|
+
});
|
|
2631
|
+
export const sessionListQueryKey = (options) => createQueryKey('sessionList', options);
|
|
2632
|
+
/**
|
|
2633
|
+
* List sessions across pods for the authenticated user
|
|
2634
|
+
*/
|
|
2635
|
+
export const sessionListOptions = (options) => queryOptions({
|
|
2636
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2637
|
+
const { data } = await RenClient.__registry.get().session.list({
|
|
2638
|
+
...options,
|
|
2639
|
+
...queryKey[0],
|
|
2640
|
+
signal,
|
|
2641
|
+
throwOnError: true
|
|
2642
|
+
});
|
|
2643
|
+
return data;
|
|
2644
|
+
},
|
|
2645
|
+
queryKey: sessionListQueryKey(options)
|
|
2646
|
+
});
|
|
2647
|
+
export const sessionListInfiniteQueryKey = (options) => createQueryKey('sessionList', options, true);
|
|
2648
|
+
/**
|
|
2649
|
+
* List sessions across pods for the authenticated user
|
|
2650
|
+
*/
|
|
2651
|
+
export const sessionListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2652
|
+
// @ts-ignore
|
|
2653
|
+
{
|
|
2654
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2655
|
+
// @ts-ignore
|
|
2656
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2657
|
+
query: {
|
|
2658
|
+
offset: pageParam
|
|
2659
|
+
}
|
|
2660
|
+
};
|
|
2661
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2662
|
+
const { data } = await RenClient.__registry.get().session.list({
|
|
2663
|
+
...options,
|
|
2664
|
+
...params,
|
|
2665
|
+
signal,
|
|
2666
|
+
throwOnError: true
|
|
2667
|
+
});
|
|
2668
|
+
return data;
|
|
2669
|
+
},
|
|
2670
|
+
queryKey: sessionListInfiniteQueryKey(options)
|
|
2671
|
+
});
|
|
2672
|
+
export const sessionGetQueryKey = (options) => createQueryKey('sessionGet', options);
|
|
2673
|
+
/**
|
|
2674
|
+
* Get a session by org scope
|
|
2675
|
+
*/
|
|
2676
|
+
export const sessionGetOptions = (options) => queryOptions({
|
|
2677
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2678
|
+
const { data } = await RenClient.__registry.get().session.get({
|
|
2679
|
+
...options,
|
|
2680
|
+
...queryKey[0],
|
|
2681
|
+
signal,
|
|
2682
|
+
throwOnError: true
|
|
2683
|
+
});
|
|
2684
|
+
return data;
|
|
2685
|
+
},
|
|
2686
|
+
queryKey: sessionGetQueryKey(options)
|
|
2687
|
+
});
|
|
2688
|
+
export const skillListQueryKey = (options) => createQueryKey('skillList', options);
|
|
2689
|
+
/**
|
|
2690
|
+
* List skills
|
|
2691
|
+
*/
|
|
2692
|
+
export const skillListOptions = (options) => queryOptions({
|
|
2693
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2694
|
+
const { data } = await RenClient.__registry.get().skill.list({
|
|
2695
|
+
...options,
|
|
2696
|
+
...queryKey[0],
|
|
2697
|
+
signal,
|
|
2698
|
+
throwOnError: true
|
|
2699
|
+
});
|
|
2700
|
+
return data;
|
|
2701
|
+
},
|
|
2702
|
+
queryKey: skillListQueryKey(options)
|
|
2703
|
+
});
|
|
2704
|
+
export const skillListInfiniteQueryKey = (options) => createQueryKey('skillList', options, true);
|
|
2705
|
+
/**
|
|
2706
|
+
* List skills
|
|
2707
|
+
*/
|
|
2708
|
+
export const skillListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2709
|
+
// @ts-ignore
|
|
2710
|
+
{
|
|
2711
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2712
|
+
// @ts-ignore
|
|
2713
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2714
|
+
query: {
|
|
2715
|
+
offset: pageParam
|
|
2716
|
+
}
|
|
2717
|
+
};
|
|
2718
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2719
|
+
const { data } = await RenClient.__registry.get().skill.list({
|
|
2720
|
+
...options,
|
|
2721
|
+
...params,
|
|
2722
|
+
signal,
|
|
2723
|
+
throwOnError: true
|
|
2724
|
+
});
|
|
2725
|
+
return data;
|
|
2726
|
+
},
|
|
2727
|
+
queryKey: skillListInfiniteQueryKey(options)
|
|
2728
|
+
});
|
|
2729
|
+
/**
|
|
2730
|
+
* Create a skill
|
|
2731
|
+
*/
|
|
2732
|
+
export const skillCreateMutation = (options) => {
|
|
2733
|
+
const mutationOptions = {
|
|
2734
|
+
mutationFn: async (fnOptions) => {
|
|
2735
|
+
const { data } = await RenClient.__registry.get().skill.create({
|
|
2736
|
+
...options,
|
|
2737
|
+
...fnOptions,
|
|
2738
|
+
throwOnError: true
|
|
2739
|
+
});
|
|
2740
|
+
return data;
|
|
2741
|
+
}
|
|
2742
|
+
};
|
|
2743
|
+
return mutationOptions;
|
|
2744
|
+
};
|
|
2745
|
+
export const skillGetBySlugQueryKey = (options) => createQueryKey('skillGetBySlug', options);
|
|
2746
|
+
/**
|
|
2747
|
+
* Get a skill by slug
|
|
2748
|
+
*/
|
|
2749
|
+
export const skillGetBySlugOptions = (options) => queryOptions({
|
|
2750
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2751
|
+
const { data } = await RenClient.__registry.get().skill.getBySlug({
|
|
2752
|
+
...options,
|
|
2753
|
+
...queryKey[0],
|
|
2754
|
+
signal,
|
|
2755
|
+
throwOnError: true
|
|
2756
|
+
});
|
|
2757
|
+
return data;
|
|
2758
|
+
},
|
|
2759
|
+
queryKey: skillGetBySlugQueryKey(options)
|
|
2760
|
+
});
|
|
2761
|
+
export const skillGetQueryKey = (options) => createQueryKey('skillGet', options);
|
|
2762
|
+
/**
|
|
2763
|
+
* Get a skill
|
|
2764
|
+
*/
|
|
2765
|
+
export const skillGetOptions = (options) => queryOptions({
|
|
2766
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2767
|
+
const { data } = await RenClient.__registry.get().skill.get({
|
|
2768
|
+
...options,
|
|
2769
|
+
...queryKey[0],
|
|
2770
|
+
signal,
|
|
2771
|
+
throwOnError: true
|
|
2772
|
+
});
|
|
2773
|
+
return data;
|
|
2774
|
+
},
|
|
2775
|
+
queryKey: skillGetQueryKey(options)
|
|
2776
|
+
});
|
|
2777
|
+
/**
|
|
2778
|
+
* Update skill metadata
|
|
2779
|
+
*/
|
|
2780
|
+
export const skillUpdateMutation = (options) => {
|
|
2781
|
+
const mutationOptions = {
|
|
2782
|
+
mutationFn: async (fnOptions) => {
|
|
2783
|
+
const { data } = await RenClient.__registry.get().skill.update({
|
|
2784
|
+
...options,
|
|
2785
|
+
...fnOptions,
|
|
2786
|
+
throwOnError: true
|
|
2787
|
+
});
|
|
2788
|
+
return data;
|
|
2789
|
+
}
|
|
2790
|
+
};
|
|
2791
|
+
return mutationOptions;
|
|
2792
|
+
};
|
|
2793
|
+
/**
|
|
2794
|
+
* Archive a skill
|
|
2795
|
+
*/
|
|
2796
|
+
export const skillArchiveMutation = (options) => {
|
|
2797
|
+
const mutationOptions = {
|
|
2798
|
+
mutationFn: async (fnOptions) => {
|
|
2799
|
+
const { data } = await RenClient.__registry.get().skill.archive({
|
|
2800
|
+
...options,
|
|
2801
|
+
...fnOptions,
|
|
2802
|
+
throwOnError: true
|
|
2803
|
+
});
|
|
2804
|
+
return data;
|
|
2805
|
+
}
|
|
2806
|
+
};
|
|
2807
|
+
return mutationOptions;
|
|
2808
|
+
};
|
|
2809
|
+
/**
|
|
2810
|
+
* Copy a skill
|
|
2811
|
+
*/
|
|
2812
|
+
export const skillCopyMutation = (options) => {
|
|
2813
|
+
const mutationOptions = {
|
|
2814
|
+
mutationFn: async (fnOptions) => {
|
|
2815
|
+
const { data } = await RenClient.__registry.get().skill.copy({
|
|
2816
|
+
...options,
|
|
2817
|
+
...fnOptions,
|
|
2818
|
+
throwOnError: true
|
|
2819
|
+
});
|
|
2820
|
+
return data;
|
|
2821
|
+
}
|
|
2822
|
+
};
|
|
2823
|
+
return mutationOptions;
|
|
2824
|
+
};
|
|
2825
|
+
export const skillVersionListQueryKey = (options) => createQueryKey('skillVersionList', options);
|
|
2826
|
+
/**
|
|
2827
|
+
* List skill versions
|
|
2828
|
+
*/
|
|
2829
|
+
export const skillVersionListOptions = (options) => queryOptions({
|
|
2830
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2831
|
+
const { data } = await RenClient.__registry.get().skill.version.list({
|
|
2832
|
+
...options,
|
|
2833
|
+
...queryKey[0],
|
|
2834
|
+
signal,
|
|
2835
|
+
throwOnError: true
|
|
2836
|
+
});
|
|
2837
|
+
return data;
|
|
2838
|
+
},
|
|
2839
|
+
queryKey: skillVersionListQueryKey(options)
|
|
2840
|
+
});
|
|
2841
|
+
export const skillVersionListInfiniteQueryKey = (options) => createQueryKey('skillVersionList', options, true);
|
|
2842
|
+
/**
|
|
2843
|
+
* List skill versions
|
|
2844
|
+
*/
|
|
2845
|
+
export const skillVersionListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2846
|
+
// @ts-ignore
|
|
2847
|
+
{
|
|
2848
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2849
|
+
// @ts-ignore
|
|
2850
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2851
|
+
query: {
|
|
2852
|
+
offset: pageParam
|
|
2853
|
+
}
|
|
2854
|
+
};
|
|
2855
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2856
|
+
const { data } = await RenClient.__registry.get().skill.version.list({
|
|
2857
|
+
...options,
|
|
2858
|
+
...params,
|
|
2859
|
+
signal,
|
|
2860
|
+
throwOnError: true
|
|
2861
|
+
});
|
|
2862
|
+
return data;
|
|
2863
|
+
},
|
|
2864
|
+
queryKey: skillVersionListInfiniteQueryKey(options)
|
|
2865
|
+
});
|
|
2866
|
+
/**
|
|
2867
|
+
* Create a skill version
|
|
2868
|
+
*/
|
|
2869
|
+
export const skillVersionCreateMutation = (options) => {
|
|
2870
|
+
const mutationOptions = {
|
|
2871
|
+
mutationFn: async (fnOptions) => {
|
|
2872
|
+
const { data } = await RenClient.__registry.get().skill.version.create({
|
|
2873
|
+
...options,
|
|
2874
|
+
...fnOptions,
|
|
2875
|
+
throwOnError: true
|
|
2876
|
+
});
|
|
2877
|
+
return data;
|
|
2878
|
+
}
|
|
2879
|
+
};
|
|
2880
|
+
return mutationOptions;
|
|
2881
|
+
};
|
|
2882
|
+
export const skillVersionGetQueryKey = (options) => createQueryKey('skillVersionGet', options);
|
|
2883
|
+
/**
|
|
2884
|
+
* Get a skill version
|
|
2885
|
+
*/
|
|
2886
|
+
export const skillVersionGetOptions = (options) => queryOptions({
|
|
2887
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2888
|
+
const { data } = await RenClient.__registry.get().skill.version.get({
|
|
2889
|
+
...options,
|
|
2890
|
+
...queryKey[0],
|
|
2891
|
+
signal,
|
|
2892
|
+
throwOnError: true
|
|
2893
|
+
});
|
|
2894
|
+
return data;
|
|
2895
|
+
},
|
|
2896
|
+
queryKey: skillVersionGetQueryKey(options)
|
|
2897
|
+
});
|
|
2898
|
+
export const skillVersionDataQueryKey = (options) => createQueryKey('skillVersionData', options);
|
|
2899
|
+
/**
|
|
2900
|
+
* Read skill version data
|
|
2901
|
+
*/
|
|
2902
|
+
export const skillVersionDataOptions = (options) => queryOptions({
|
|
2903
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2904
|
+
const { data } = await RenClient.__registry.get().skill.version.data({
|
|
2905
|
+
...options,
|
|
2906
|
+
...queryKey[0],
|
|
2907
|
+
signal,
|
|
2908
|
+
throwOnError: true
|
|
2909
|
+
});
|
|
2910
|
+
return data;
|
|
2911
|
+
},
|
|
2912
|
+
queryKey: skillVersionDataQueryKey(options)
|
|
2913
|
+
});
|
|
2914
|
+
/**
|
|
2915
|
+
* Archive a skill version
|
|
2916
|
+
*/
|
|
2917
|
+
export const skillVersionArchiveMutation = (options) => {
|
|
2918
|
+
const mutationOptions = {
|
|
2919
|
+
mutationFn: async (fnOptions) => {
|
|
2920
|
+
const { data } = await RenClient.__registry.get().skill.version.archive({
|
|
2921
|
+
...options,
|
|
2922
|
+
...fnOptions,
|
|
2923
|
+
throwOnError: true
|
|
2924
|
+
});
|
|
2925
|
+
return data;
|
|
2926
|
+
}
|
|
2927
|
+
};
|
|
2928
|
+
return mutationOptions;
|
|
2929
|
+
};
|
|
2930
|
+
export const vaultListQueryKey = (options) => createQueryKey('vaultList', options);
|
|
2931
|
+
/**
|
|
2932
|
+
* List vaults
|
|
2933
|
+
*/
|
|
2934
|
+
export const vaultListOptions = (options) => queryOptions({
|
|
2935
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2936
|
+
const { data } = await RenClient.__registry.get().vault.list({
|
|
2937
|
+
...options,
|
|
2938
|
+
...queryKey[0],
|
|
2939
|
+
signal,
|
|
2940
|
+
throwOnError: true
|
|
2941
|
+
});
|
|
2942
|
+
return data;
|
|
2943
|
+
},
|
|
2944
|
+
queryKey: vaultListQueryKey(options)
|
|
2945
|
+
});
|
|
2946
|
+
export const vaultListInfiniteQueryKey = (options) => createQueryKey('vaultList', options, true);
|
|
2947
|
+
/**
|
|
2948
|
+
* List vaults
|
|
2949
|
+
*/
|
|
2950
|
+
export const vaultListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2951
|
+
// @ts-ignore
|
|
2952
|
+
{
|
|
2953
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2954
|
+
// @ts-ignore
|
|
2955
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2956
|
+
query: {
|
|
2957
|
+
offset: pageParam
|
|
2958
|
+
}
|
|
2959
|
+
};
|
|
2960
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2961
|
+
const { data } = await RenClient.__registry.get().vault.list({
|
|
2962
|
+
...options,
|
|
2963
|
+
...params,
|
|
2964
|
+
signal,
|
|
2965
|
+
throwOnError: true
|
|
2966
|
+
});
|
|
2967
|
+
return data;
|
|
2968
|
+
},
|
|
2969
|
+
queryKey: vaultListInfiniteQueryKey(options)
|
|
2970
|
+
});
|
|
2971
|
+
/**
|
|
2972
|
+
* Create a vault
|
|
2973
|
+
*/
|
|
2974
|
+
export const vaultCreateMutation = (options) => {
|
|
2975
|
+
const mutationOptions = {
|
|
2976
|
+
mutationFn: async (fnOptions) => {
|
|
2977
|
+
const { data } = await RenClient.__registry.get().vault.create({
|
|
2978
|
+
...options,
|
|
2979
|
+
...fnOptions,
|
|
2980
|
+
throwOnError: true
|
|
2981
|
+
});
|
|
2982
|
+
return data;
|
|
2983
|
+
}
|
|
2984
|
+
};
|
|
2985
|
+
return mutationOptions;
|
|
2986
|
+
};
|
|
2987
|
+
/**
|
|
2988
|
+
* Delete a vault permanently
|
|
2989
|
+
*/
|
|
2990
|
+
export const vaultDeleteMutation = (options) => {
|
|
2991
|
+
const mutationOptions = {
|
|
2992
|
+
mutationFn: async (fnOptions) => {
|
|
2993
|
+
const { data } = await RenClient.__registry.get().vault.delete({
|
|
2994
|
+
...options,
|
|
2995
|
+
...fnOptions,
|
|
2996
|
+
throwOnError: true
|
|
2997
|
+
});
|
|
2998
|
+
return data;
|
|
2999
|
+
}
|
|
3000
|
+
};
|
|
3001
|
+
return mutationOptions;
|
|
3002
|
+
};
|
|
3003
|
+
export const vaultGetQueryKey = (options) => createQueryKey('vaultGet', options);
|
|
3004
|
+
/**
|
|
3005
|
+
* Get a vault
|
|
3006
|
+
*/
|
|
3007
|
+
export const vaultGetOptions = (options) => queryOptions({
|
|
3008
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3009
|
+
const { data } = await RenClient.__registry.get().vault.get({
|
|
3010
|
+
...options,
|
|
3011
|
+
...queryKey[0],
|
|
3012
|
+
signal,
|
|
3013
|
+
throwOnError: true
|
|
3014
|
+
});
|
|
3015
|
+
return data;
|
|
3016
|
+
},
|
|
3017
|
+
queryKey: vaultGetQueryKey(options)
|
|
3018
|
+
});
|
|
3019
|
+
/**
|
|
3020
|
+
* Update a vault (name, description)
|
|
3021
|
+
*/
|
|
3022
|
+
export const vaultUpdateMutation = (options) => {
|
|
3023
|
+
const mutationOptions = {
|
|
3024
|
+
mutationFn: async (fnOptions) => {
|
|
3025
|
+
const { data } = await RenClient.__registry.get().vault.update({
|
|
3026
|
+
...options,
|
|
3027
|
+
...fnOptions,
|
|
3028
|
+
throwOnError: true
|
|
3029
|
+
});
|
|
3030
|
+
return data;
|
|
3031
|
+
}
|
|
3032
|
+
};
|
|
3033
|
+
return mutationOptions;
|
|
3034
|
+
};
|
|
3035
|
+
/**
|
|
3036
|
+
* Archive a vault
|
|
3037
|
+
*/
|
|
3038
|
+
export const vaultArchiveMutation = (options) => {
|
|
3039
|
+
const mutationOptions = {
|
|
3040
|
+
mutationFn: async (fnOptions) => {
|
|
3041
|
+
const { data } = await RenClient.__registry.get().vault.archive({
|
|
3042
|
+
...options,
|
|
3043
|
+
...fnOptions,
|
|
3044
|
+
throwOnError: true
|
|
3045
|
+
});
|
|
3046
|
+
return data;
|
|
3047
|
+
}
|
|
3048
|
+
};
|
|
3049
|
+
return mutationOptions;
|
|
3050
|
+
};
|
|
3051
|
+
export const credentialListQueryKey = (options) => createQueryKey('credentialList', options);
|
|
3052
|
+
/**
|
|
3053
|
+
* List credentials
|
|
3054
|
+
*/
|
|
3055
|
+
export const credentialListOptions = (options) => queryOptions({
|
|
3056
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3057
|
+
const { data } = await RenClient.__registry.get().credential.list({
|
|
3058
|
+
...options,
|
|
3059
|
+
...queryKey[0],
|
|
3060
|
+
signal,
|
|
3061
|
+
throwOnError: true
|
|
3062
|
+
});
|
|
3063
|
+
return data;
|
|
3064
|
+
},
|
|
3065
|
+
queryKey: credentialListQueryKey(options)
|
|
3066
|
+
});
|
|
3067
|
+
export const credentialListInfiniteQueryKey = (options) => createQueryKey('credentialList', options, true);
|
|
3068
|
+
/**
|
|
3069
|
+
* List credentials
|
|
3070
|
+
*/
|
|
3071
|
+
export const credentialListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
3072
|
+
// @ts-ignore
|
|
3073
|
+
{
|
|
3074
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
3075
|
+
// @ts-ignore
|
|
3076
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
3077
|
+
query: {
|
|
3078
|
+
offset: pageParam
|
|
3079
|
+
}
|
|
3080
|
+
};
|
|
3081
|
+
const params = createInfiniteParams(queryKey, page);
|
|
3082
|
+
const { data } = await RenClient.__registry.get().credential.list({
|
|
3083
|
+
...options,
|
|
3084
|
+
...params,
|
|
3085
|
+
signal,
|
|
3086
|
+
throwOnError: true
|
|
3087
|
+
});
|
|
3088
|
+
return data;
|
|
3089
|
+
},
|
|
3090
|
+
queryKey: credentialListInfiniteQueryKey(options)
|
|
3091
|
+
});
|
|
3092
|
+
/**
|
|
3093
|
+
* Create a credential
|
|
3094
|
+
*/
|
|
3095
|
+
export const credentialCreateMutation = (options) => {
|
|
3096
|
+
const mutationOptions = {
|
|
3097
|
+
mutationFn: async (fnOptions) => {
|
|
3098
|
+
const { data } = await RenClient.__registry.get().credential.create({
|
|
3099
|
+
...options,
|
|
3100
|
+
...fnOptions,
|
|
3101
|
+
throwOnError: true
|
|
3102
|
+
});
|
|
3103
|
+
return data;
|
|
3104
|
+
}
|
|
3105
|
+
};
|
|
3106
|
+
return mutationOptions;
|
|
3107
|
+
};
|
|
3108
|
+
/**
|
|
3109
|
+
* Delete a credential permanently
|
|
3110
|
+
*/
|
|
3111
|
+
export const credentialDeleteMutation = (options) => {
|
|
3112
|
+
const mutationOptions = {
|
|
3113
|
+
mutationFn: async (fnOptions) => {
|
|
3114
|
+
const { data } = await RenClient.__registry.get().credential.delete({
|
|
3115
|
+
...options,
|
|
3116
|
+
...fnOptions,
|
|
3117
|
+
throwOnError: true
|
|
3118
|
+
});
|
|
3119
|
+
return data;
|
|
3120
|
+
}
|
|
3121
|
+
};
|
|
3122
|
+
return mutationOptions;
|
|
3123
|
+
};
|
|
3124
|
+
export const credentialGetQueryKey = (options) => createQueryKey('credentialGet', options);
|
|
3125
|
+
/**
|
|
3126
|
+
* Get a credential
|
|
3127
|
+
*/
|
|
3128
|
+
export const credentialGetOptions = (options) => queryOptions({
|
|
3129
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3130
|
+
const { data } = await RenClient.__registry.get().credential.get({
|
|
3131
|
+
...options,
|
|
3132
|
+
...queryKey[0],
|
|
3133
|
+
signal,
|
|
3134
|
+
throwOnError: true
|
|
3135
|
+
});
|
|
3136
|
+
return data;
|
|
3137
|
+
},
|
|
3138
|
+
queryKey: credentialGetQueryKey(options)
|
|
3139
|
+
});
|
|
3140
|
+
/**
|
|
3141
|
+
* Update a credential (rename or rotate value)
|
|
3142
|
+
*/
|
|
3143
|
+
export const credentialUpdateMutation = (options) => {
|
|
3144
|
+
const mutationOptions = {
|
|
3145
|
+
mutationFn: async (fnOptions) => {
|
|
3146
|
+
const { data } = await RenClient.__registry.get().credential.update({
|
|
3147
|
+
...options,
|
|
3148
|
+
...fnOptions,
|
|
3149
|
+
throwOnError: true
|
|
3150
|
+
});
|
|
3151
|
+
return data;
|
|
3152
|
+
}
|
|
3153
|
+
};
|
|
3154
|
+
return mutationOptions;
|
|
3155
|
+
};
|
|
3156
|
+
/**
|
|
3157
|
+
* Archive a credential
|
|
3158
|
+
*/
|
|
3159
|
+
export const credentialArchiveMutation = (options) => {
|
|
3160
|
+
const mutationOptions = {
|
|
3161
|
+
mutationFn: async (fnOptions) => {
|
|
3162
|
+
const { data } = await RenClient.__registry.get().credential.archive({
|
|
3163
|
+
...options,
|
|
3164
|
+
...fnOptions,
|
|
3165
|
+
throwOnError: true
|
|
3166
|
+
});
|
|
3167
|
+
return data;
|
|
3168
|
+
}
|
|
3169
|
+
};
|
|
3170
|
+
return mutationOptions;
|
|
3171
|
+
};
|
|
3172
|
+
/**
|
|
3173
|
+
* Begin SDK-delegated OAuth flow against an MCP
|
|
3174
|
+
*/
|
|
3175
|
+
export const credentialOauthStartMutation = (options) => {
|
|
3176
|
+
const mutationOptions = {
|
|
3177
|
+
mutationFn: async (fnOptions) => {
|
|
3178
|
+
const { data } = await RenClient.__registry.get().credential.oauth.start({
|
|
3179
|
+
...options,
|
|
3180
|
+
...fnOptions,
|
|
3181
|
+
throwOnError: true
|
|
3182
|
+
});
|
|
3183
|
+
return data;
|
|
3184
|
+
}
|
|
3185
|
+
};
|
|
3186
|
+
return mutationOptions;
|
|
3187
|
+
};
|
|
3188
|
+
export const credentialOauthSessionQueryKey = (options) => createQueryKey('credentialOauthSession', options);
|
|
3189
|
+
/**
|
|
3190
|
+
* Poll an OAuth session's status
|
|
3191
|
+
*/
|
|
3192
|
+
export const credentialOauthSessionOptions = (options) => queryOptions({
|
|
3193
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3194
|
+
const { data } = await RenClient.__registry.get().credential.oauth.session({
|
|
3195
|
+
...options,
|
|
3196
|
+
...queryKey[0],
|
|
3197
|
+
signal,
|
|
3198
|
+
throwOnError: true
|
|
3199
|
+
});
|
|
3200
|
+
return data;
|
|
3201
|
+
},
|
|
3202
|
+
queryKey: credentialOauthSessionQueryKey(options)
|
|
3203
|
+
});
|
|
3204
|
+
export const registryAgentListQueryKey = (options) => createQueryKey('registryAgentList', options);
|
|
3205
|
+
/**
|
|
3206
|
+
* List registry agents
|
|
3207
|
+
*/
|
|
3208
|
+
export const registryAgentListOptions = (options) => queryOptions({
|
|
3209
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3210
|
+
const { data } = await RenClient.__registry.get().registry.agent.list({
|
|
3211
|
+
...options,
|
|
3212
|
+
...queryKey[0],
|
|
3213
|
+
signal,
|
|
3214
|
+
throwOnError: true
|
|
3215
|
+
});
|
|
3216
|
+
return data;
|
|
3217
|
+
},
|
|
3218
|
+
queryKey: registryAgentListQueryKey(options)
|
|
3219
|
+
});
|
|
3220
|
+
export const registryAgentListInfiniteQueryKey = (options) => createQueryKey('registryAgentList', options, true);
|
|
3221
|
+
/**
|
|
3222
|
+
* List registry agents
|
|
3223
|
+
*/
|
|
3224
|
+
export const registryAgentListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
3225
|
+
// @ts-ignore
|
|
3226
|
+
{
|
|
3227
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
3228
|
+
// @ts-ignore
|
|
3229
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
3230
|
+
query: {
|
|
3231
|
+
offset: pageParam
|
|
3232
|
+
}
|
|
3233
|
+
};
|
|
3234
|
+
const params = createInfiniteParams(queryKey, page);
|
|
3235
|
+
const { data } = await RenClient.__registry.get().registry.agent.list({
|
|
3236
|
+
...options,
|
|
3237
|
+
...params,
|
|
3238
|
+
signal,
|
|
3239
|
+
throwOnError: true
|
|
3240
|
+
});
|
|
3241
|
+
return data;
|
|
3242
|
+
},
|
|
3243
|
+
queryKey: registryAgentListInfiniteQueryKey(options)
|
|
3244
|
+
});
|
|
3245
|
+
export const registryAgentGetQueryKey = (options) => createQueryKey('registryAgentGet', options);
|
|
3246
|
+
/**
|
|
3247
|
+
* Get a registry agent
|
|
3248
|
+
*/
|
|
3249
|
+
export const registryAgentGetOptions = (options) => queryOptions({
|
|
3250
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3251
|
+
const { data } = await RenClient.__registry.get().registry.agent.get({
|
|
3252
|
+
...options,
|
|
3253
|
+
...queryKey[0],
|
|
3254
|
+
signal,
|
|
3255
|
+
throwOnError: true
|
|
3256
|
+
});
|
|
3257
|
+
return data;
|
|
3258
|
+
},
|
|
3259
|
+
queryKey: registryAgentGetQueryKey(options)
|
|
3260
|
+
});
|
|
3261
|
+
export const registrySkillListQueryKey = (options) => createQueryKey('registrySkillList', options);
|
|
3262
|
+
/**
|
|
3263
|
+
* List registry skills
|
|
3264
|
+
*/
|
|
3265
|
+
export const registrySkillListOptions = (options) => queryOptions({
|
|
3266
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3267
|
+
const { data } = await RenClient.__registry.get().registry.skill.list({
|
|
3268
|
+
...options,
|
|
3269
|
+
...queryKey[0],
|
|
3270
|
+
signal,
|
|
3271
|
+
throwOnError: true
|
|
3272
|
+
});
|
|
3273
|
+
return data;
|
|
3274
|
+
},
|
|
3275
|
+
queryKey: registrySkillListQueryKey(options)
|
|
3276
|
+
});
|
|
3277
|
+
export const registrySkillListInfiniteQueryKey = (options) => createQueryKey('registrySkillList', options, true);
|
|
3278
|
+
/**
|
|
3279
|
+
* List registry skills
|
|
3280
|
+
*/
|
|
3281
|
+
export const registrySkillListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
3282
|
+
// @ts-ignore
|
|
3283
|
+
{
|
|
3284
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
3285
|
+
// @ts-ignore
|
|
3286
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
3287
|
+
query: {
|
|
3288
|
+
offset: pageParam
|
|
3289
|
+
}
|
|
3290
|
+
};
|
|
3291
|
+
const params = createInfiniteParams(queryKey, page);
|
|
3292
|
+
const { data } = await RenClient.__registry.get().registry.skill.list({
|
|
3293
|
+
...options,
|
|
3294
|
+
...params,
|
|
3295
|
+
signal,
|
|
3296
|
+
throwOnError: true
|
|
3297
|
+
});
|
|
3298
|
+
return data;
|
|
3299
|
+
},
|
|
3300
|
+
queryKey: registrySkillListInfiniteQueryKey(options)
|
|
3301
|
+
});
|
|
3302
|
+
export const registrySkillGetQueryKey = (options) => createQueryKey('registrySkillGet', options);
|
|
3303
|
+
/**
|
|
3304
|
+
* Get a registry skill
|
|
3305
|
+
*/
|
|
3306
|
+
export const registrySkillGetOptions = (options) => queryOptions({
|
|
3307
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3308
|
+
const { data } = await RenClient.__registry.get().registry.skill.get({
|
|
3309
|
+
...options,
|
|
3310
|
+
...queryKey[0],
|
|
3311
|
+
signal,
|
|
3312
|
+
throwOnError: true
|
|
3313
|
+
});
|
|
3314
|
+
return data;
|
|
3315
|
+
},
|
|
3316
|
+
queryKey: registrySkillGetQueryKey(options)
|
|
3317
|
+
});
|
|
3318
|
+
export const registryMcpListQueryKey = (options) => createQueryKey('registryMcpList', options);
|
|
3319
|
+
/**
|
|
3320
|
+
* List registry MCPs
|
|
3321
|
+
*/
|
|
3322
|
+
export const registryMcpListOptions = (options) => queryOptions({
|
|
3323
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3324
|
+
const { data } = await RenClient.__registry.get().registry.mcp.list({
|
|
3325
|
+
...options,
|
|
3326
|
+
...queryKey[0],
|
|
3327
|
+
signal,
|
|
3328
|
+
throwOnError: true
|
|
3329
|
+
});
|
|
3330
|
+
return data;
|
|
3331
|
+
},
|
|
3332
|
+
queryKey: registryMcpListQueryKey(options)
|
|
3333
|
+
});
|
|
3334
|
+
export const registryMcpListInfiniteQueryKey = (options) => createQueryKey('registryMcpList', options, true);
|
|
3335
|
+
/**
|
|
3336
|
+
* List registry MCPs
|
|
3337
|
+
*/
|
|
3338
|
+
export const registryMcpListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
3339
|
+
// @ts-ignore
|
|
3340
|
+
{
|
|
3341
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
3342
|
+
// @ts-ignore
|
|
3343
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
3344
|
+
query: {
|
|
3345
|
+
offset: pageParam
|
|
3346
|
+
}
|
|
3347
|
+
};
|
|
3348
|
+
const params = createInfiniteParams(queryKey, page);
|
|
3349
|
+
const { data } = await RenClient.__registry.get().registry.mcp.list({
|
|
3350
|
+
...options,
|
|
3351
|
+
...params,
|
|
3352
|
+
signal,
|
|
3353
|
+
throwOnError: true
|
|
3354
|
+
});
|
|
3355
|
+
return data;
|
|
3356
|
+
},
|
|
3357
|
+
queryKey: registryMcpListInfiniteQueryKey(options)
|
|
3358
|
+
});
|
|
3359
|
+
export const registryMcpGetQueryKey = (options) => createQueryKey('registryMcpGet', options);
|
|
3360
|
+
/**
|
|
3361
|
+
* Get a registry MCP
|
|
3362
|
+
*/
|
|
3363
|
+
export const registryMcpGetOptions = (options) => queryOptions({
|
|
3364
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3365
|
+
const { data } = await RenClient.__registry.get().registry.mcp.get({
|
|
3366
|
+
...options,
|
|
3367
|
+
...queryKey[0],
|
|
3368
|
+
signal,
|
|
3369
|
+
throwOnError: true
|
|
3370
|
+
});
|
|
3371
|
+
return data;
|
|
3372
|
+
},
|
|
3373
|
+
queryKey: registryMcpGetQueryKey(options)
|
|
3374
|
+
});
|
|
3375
|
+
export const registryComposioMcpListQueryKey = (options) => createQueryKey('registryComposioMcpList', options);
|
|
3376
|
+
/**
|
|
3377
|
+
* List Composio MCPs
|
|
3378
|
+
*/
|
|
3379
|
+
export const registryComposioMcpListOptions = (options) => queryOptions({
|
|
3380
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3381
|
+
const { data } = await RenClient.__registry.get().registry.composioMcp.list({
|
|
3382
|
+
...options,
|
|
3383
|
+
...queryKey[0],
|
|
3384
|
+
signal,
|
|
3385
|
+
throwOnError: true
|
|
3386
|
+
});
|
|
3387
|
+
return data;
|
|
3388
|
+
},
|
|
3389
|
+
queryKey: registryComposioMcpListQueryKey(options)
|
|
3390
|
+
});
|
|
3391
|
+
export const registryComposioMcpListInfiniteQueryKey = (options) => createQueryKey('registryComposioMcpList', options, true);
|
|
3392
|
+
/**
|
|
3393
|
+
* List Composio MCPs
|
|
3394
|
+
*/
|
|
3395
|
+
export const registryComposioMcpListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
3396
|
+
// @ts-ignore
|
|
3397
|
+
{
|
|
3398
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
3399
|
+
// @ts-ignore
|
|
3400
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
3401
|
+
query: {
|
|
3402
|
+
offset: pageParam
|
|
3403
|
+
}
|
|
3404
|
+
};
|
|
3405
|
+
const params = createInfiniteParams(queryKey, page);
|
|
3406
|
+
const { data } = await RenClient.__registry.get().registry.composioMcp.list({
|
|
3407
|
+
...options,
|
|
3408
|
+
...params,
|
|
3409
|
+
signal,
|
|
3410
|
+
throwOnError: true
|
|
3411
|
+
});
|
|
3412
|
+
return data;
|
|
3413
|
+
},
|
|
3414
|
+
queryKey: registryComposioMcpListInfiniteQueryKey(options)
|
|
3415
|
+
});
|
|
3416
|
+
export const registryComposioMcpGetQueryKey = (options) => createQueryKey('registryComposioMcpGet', options);
|
|
3417
|
+
/**
|
|
3418
|
+
* Get a Composio MCP
|
|
3419
|
+
*/
|
|
3420
|
+
export const registryComposioMcpGetOptions = (options) => queryOptions({
|
|
3421
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3422
|
+
const { data } = await RenClient.__registry.get().registry.composioMcp.get({
|
|
3423
|
+
...options,
|
|
3424
|
+
...queryKey[0],
|
|
3425
|
+
signal,
|
|
3426
|
+
throwOnError: true
|
|
3427
|
+
});
|
|
3428
|
+
return data;
|
|
3429
|
+
},
|
|
3430
|
+
queryKey: registryComposioMcpGetQueryKey(options)
|
|
3431
|
+
});
|