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