@renai-labs/sdk 0.1.0 → 0.1.1

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