@renai-labs/sdk 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/@tanstack/react-query.gen.d.ts +286 -2
- package/dist/generated/@tanstack/react-query.gen.js +476 -1
- package/dist/generated/sdk.gen.d.ts +130 -2
- package/dist/generated/sdk.gen.js +315 -1
- package/dist/generated/types.gen.d.ts +2622 -1286
- package/dist/generated/zod.gen.d.ts +4085 -258
- package/dist/generated/zod.gen.js +513 -9
- package/package.json +1 -1
|
@@ -194,6 +194,54 @@ export const agentArchiveMutation = (options) => {
|
|
|
194
194
|
};
|
|
195
195
|
return mutationOptions;
|
|
196
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
* Publish an agent
|
|
199
|
+
*/
|
|
200
|
+
export const agentPublishMutation = (options) => {
|
|
201
|
+
const mutationOptions = {
|
|
202
|
+
mutationFn: async (fnOptions) => {
|
|
203
|
+
const { data } = await RenClient.__registry.get().agent.publish({
|
|
204
|
+
...options,
|
|
205
|
+
...fnOptions,
|
|
206
|
+
throwOnError: true,
|
|
207
|
+
});
|
|
208
|
+
return data;
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
return mutationOptions;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Deprecate an agent
|
|
215
|
+
*/
|
|
216
|
+
export const agentDeprecateMutation = (options) => {
|
|
217
|
+
const mutationOptions = {
|
|
218
|
+
mutationFn: async (fnOptions) => {
|
|
219
|
+
const { data } = await RenClient.__registry.get().agent.deprecate({
|
|
220
|
+
...options,
|
|
221
|
+
...fnOptions,
|
|
222
|
+
throwOnError: true,
|
|
223
|
+
});
|
|
224
|
+
return data;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
return mutationOptions;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Undeprecate an agent
|
|
231
|
+
*/
|
|
232
|
+
export const agentUndeprecateMutation = (options) => {
|
|
233
|
+
const mutationOptions = {
|
|
234
|
+
mutationFn: async (fnOptions) => {
|
|
235
|
+
const { data } = await RenClient.__registry.get().agent.undeprecate({
|
|
236
|
+
...options,
|
|
237
|
+
...fnOptions,
|
|
238
|
+
throwOnError: true,
|
|
239
|
+
});
|
|
240
|
+
return data;
|
|
241
|
+
},
|
|
242
|
+
};
|
|
243
|
+
return mutationOptions;
|
|
244
|
+
};
|
|
197
245
|
export const agentVersionListQueryKey = (options) => createQueryKey("agentVersionList", options);
|
|
198
246
|
/**
|
|
199
247
|
* List agent versions
|
|
@@ -285,6 +333,177 @@ export const agentVersionArchiveMutation = (options) => {
|
|
|
285
333
|
};
|
|
286
334
|
return mutationOptions;
|
|
287
335
|
};
|
|
336
|
+
export const blueprintListQueryKey = (options) => createQueryKey("blueprintList", options);
|
|
337
|
+
/**
|
|
338
|
+
* List blueprints
|
|
339
|
+
*/
|
|
340
|
+
export const blueprintListOptions = (options) => queryOptions({
|
|
341
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
342
|
+
const { data } = await RenClient.__registry.get().blueprint.list({
|
|
343
|
+
...options,
|
|
344
|
+
...queryKey[0],
|
|
345
|
+
signal,
|
|
346
|
+
throwOnError: true,
|
|
347
|
+
});
|
|
348
|
+
return data;
|
|
349
|
+
},
|
|
350
|
+
queryKey: blueprintListQueryKey(options),
|
|
351
|
+
});
|
|
352
|
+
export const blueprintListInfiniteQueryKey = (options) => createQueryKey("blueprintList", options, true);
|
|
353
|
+
/**
|
|
354
|
+
* List blueprints
|
|
355
|
+
*/
|
|
356
|
+
export const blueprintListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
357
|
+
// @ts-ignore
|
|
358
|
+
{
|
|
359
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
360
|
+
// @ts-ignore
|
|
361
|
+
const page = typeof pageParam === "object"
|
|
362
|
+
? pageParam
|
|
363
|
+
: {
|
|
364
|
+
query: {
|
|
365
|
+
offset: pageParam,
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
const params = createInfiniteParams(queryKey, page);
|
|
369
|
+
const { data } = await RenClient.__registry.get().blueprint.list({
|
|
370
|
+
...options,
|
|
371
|
+
...params,
|
|
372
|
+
signal,
|
|
373
|
+
throwOnError: true,
|
|
374
|
+
});
|
|
375
|
+
return data;
|
|
376
|
+
},
|
|
377
|
+
queryKey: blueprintListInfiniteQueryKey(options),
|
|
378
|
+
});
|
|
379
|
+
/**
|
|
380
|
+
* Create a blueprint
|
|
381
|
+
*/
|
|
382
|
+
export const blueprintCreateMutation = (options) => {
|
|
383
|
+
const mutationOptions = {
|
|
384
|
+
mutationFn: async (fnOptions) => {
|
|
385
|
+
const { data } = await RenClient.__registry.get().blueprint.create({
|
|
386
|
+
...options,
|
|
387
|
+
...fnOptions,
|
|
388
|
+
throwOnError: true,
|
|
389
|
+
});
|
|
390
|
+
return data;
|
|
391
|
+
},
|
|
392
|
+
};
|
|
393
|
+
return mutationOptions;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Install a blueprint into a pod
|
|
397
|
+
*/
|
|
398
|
+
export const blueprintInstallMutation = (options) => {
|
|
399
|
+
const mutationOptions = {
|
|
400
|
+
mutationFn: async (fnOptions) => {
|
|
401
|
+
const { data } = await RenClient.__registry.get().blueprint.install({
|
|
402
|
+
...options,
|
|
403
|
+
...fnOptions,
|
|
404
|
+
throwOnError: true,
|
|
405
|
+
});
|
|
406
|
+
return data;
|
|
407
|
+
},
|
|
408
|
+
};
|
|
409
|
+
return mutationOptions;
|
|
410
|
+
};
|
|
411
|
+
export const blueprintGetQueryKey = (options) => createQueryKey("blueprintGet", options);
|
|
412
|
+
/**
|
|
413
|
+
* Get a blueprint
|
|
414
|
+
*/
|
|
415
|
+
export const blueprintGetOptions = (options) => queryOptions({
|
|
416
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
417
|
+
const { data } = await RenClient.__registry.get().blueprint.get({
|
|
418
|
+
...options,
|
|
419
|
+
...queryKey[0],
|
|
420
|
+
signal,
|
|
421
|
+
throwOnError: true,
|
|
422
|
+
});
|
|
423
|
+
return data;
|
|
424
|
+
},
|
|
425
|
+
queryKey: blueprintGetQueryKey(options),
|
|
426
|
+
});
|
|
427
|
+
/**
|
|
428
|
+
* Update a blueprint
|
|
429
|
+
*/
|
|
430
|
+
export const blueprintUpdateMutation = (options) => {
|
|
431
|
+
const mutationOptions = {
|
|
432
|
+
mutationFn: async (fnOptions) => {
|
|
433
|
+
const { data } = await RenClient.__registry.get().blueprint.update({
|
|
434
|
+
...options,
|
|
435
|
+
...fnOptions,
|
|
436
|
+
throwOnError: true,
|
|
437
|
+
});
|
|
438
|
+
return data;
|
|
439
|
+
},
|
|
440
|
+
};
|
|
441
|
+
return mutationOptions;
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* Publish a blueprint
|
|
445
|
+
*/
|
|
446
|
+
export const blueprintPublishMutation = (options) => {
|
|
447
|
+
const mutationOptions = {
|
|
448
|
+
mutationFn: async (fnOptions) => {
|
|
449
|
+
const { data } = await RenClient.__registry.get().blueprint.publish({
|
|
450
|
+
...options,
|
|
451
|
+
...fnOptions,
|
|
452
|
+
throwOnError: true,
|
|
453
|
+
});
|
|
454
|
+
return data;
|
|
455
|
+
},
|
|
456
|
+
};
|
|
457
|
+
return mutationOptions;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Deprecate a blueprint
|
|
461
|
+
*/
|
|
462
|
+
export const blueprintDeprecateMutation = (options) => {
|
|
463
|
+
const mutationOptions = {
|
|
464
|
+
mutationFn: async (fnOptions) => {
|
|
465
|
+
const { data } = await RenClient.__registry.get().blueprint.deprecate({
|
|
466
|
+
...options,
|
|
467
|
+
...fnOptions,
|
|
468
|
+
throwOnError: true,
|
|
469
|
+
});
|
|
470
|
+
return data;
|
|
471
|
+
},
|
|
472
|
+
};
|
|
473
|
+
return mutationOptions;
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* Undeprecate a blueprint
|
|
477
|
+
*/
|
|
478
|
+
export const blueprintUndeprecateMutation = (options) => {
|
|
479
|
+
const mutationOptions = {
|
|
480
|
+
mutationFn: async (fnOptions) => {
|
|
481
|
+
const { data } = await RenClient.__registry.get().blueprint.undeprecate({
|
|
482
|
+
...options,
|
|
483
|
+
...fnOptions,
|
|
484
|
+
throwOnError: true,
|
|
485
|
+
});
|
|
486
|
+
return data;
|
|
487
|
+
},
|
|
488
|
+
};
|
|
489
|
+
return mutationOptions;
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* Archive a blueprint
|
|
493
|
+
*/
|
|
494
|
+
export const blueprintArchiveMutation = (options) => {
|
|
495
|
+
const mutationOptions = {
|
|
496
|
+
mutationFn: async (fnOptions) => {
|
|
497
|
+
const { data } = await RenClient.__registry.get().blueprint.archive({
|
|
498
|
+
...options,
|
|
499
|
+
...fnOptions,
|
|
500
|
+
throwOnError: true,
|
|
501
|
+
});
|
|
502
|
+
return data;
|
|
503
|
+
},
|
|
504
|
+
};
|
|
505
|
+
return mutationOptions;
|
|
506
|
+
};
|
|
288
507
|
export const billingGetQueryKey = (options) => createQueryKey("billingGet", options);
|
|
289
508
|
/**
|
|
290
509
|
* Get organization billing summary
|
|
@@ -937,6 +1156,54 @@ export const mcpArchiveMutation = (options) => {
|
|
|
937
1156
|
};
|
|
938
1157
|
return mutationOptions;
|
|
939
1158
|
};
|
|
1159
|
+
/**
|
|
1160
|
+
* Publish an MCP
|
|
1161
|
+
*/
|
|
1162
|
+
export const mcpPublishMutation = (options) => {
|
|
1163
|
+
const mutationOptions = {
|
|
1164
|
+
mutationFn: async (fnOptions) => {
|
|
1165
|
+
const { data } = await RenClient.__registry.get().mcp.publish({
|
|
1166
|
+
...options,
|
|
1167
|
+
...fnOptions,
|
|
1168
|
+
throwOnError: true,
|
|
1169
|
+
});
|
|
1170
|
+
return data;
|
|
1171
|
+
},
|
|
1172
|
+
};
|
|
1173
|
+
return mutationOptions;
|
|
1174
|
+
};
|
|
1175
|
+
/**
|
|
1176
|
+
* Deprecate an MCP
|
|
1177
|
+
*/
|
|
1178
|
+
export const mcpDeprecateMutation = (options) => {
|
|
1179
|
+
const mutationOptions = {
|
|
1180
|
+
mutationFn: async (fnOptions) => {
|
|
1181
|
+
const { data } = await RenClient.__registry.get().mcp.deprecate({
|
|
1182
|
+
...options,
|
|
1183
|
+
...fnOptions,
|
|
1184
|
+
throwOnError: true,
|
|
1185
|
+
});
|
|
1186
|
+
return data;
|
|
1187
|
+
},
|
|
1188
|
+
};
|
|
1189
|
+
return mutationOptions;
|
|
1190
|
+
};
|
|
1191
|
+
/**
|
|
1192
|
+
* Undeprecate an MCP
|
|
1193
|
+
*/
|
|
1194
|
+
export const mcpUndeprecateMutation = (options) => {
|
|
1195
|
+
const mutationOptions = {
|
|
1196
|
+
mutationFn: async (fnOptions) => {
|
|
1197
|
+
const { data } = await RenClient.__registry.get().mcp.undeprecate({
|
|
1198
|
+
...options,
|
|
1199
|
+
...fnOptions,
|
|
1200
|
+
throwOnError: true,
|
|
1201
|
+
});
|
|
1202
|
+
return data;
|
|
1203
|
+
},
|
|
1204
|
+
};
|
|
1205
|
+
return mutationOptions;
|
|
1206
|
+
};
|
|
940
1207
|
/**
|
|
941
1208
|
* Start OAuth for an MCP (or confirm it is already connected)
|
|
942
1209
|
*/
|
|
@@ -1209,7 +1476,7 @@ export const onboardingStartMutation = (options) => {
|
|
|
1209
1476
|
/**
|
|
1210
1477
|
* Set up personal organization
|
|
1211
1478
|
*
|
|
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.
|
|
1479
|
+
* Creates a personal organization for the authenticated user. Use when a new user has no membership yet — e.g. after skipping a pending invitation. Idempotent: returns the existing organization if the user already belongs to one. Name, slug, and logo are derived from the user's profile and email domain.
|
|
1213
1480
|
*/
|
|
1214
1481
|
export const onboardingSetupPersonalOrgMutation = (options) => {
|
|
1215
1482
|
const mutationOptions = {
|
|
@@ -1762,6 +2029,70 @@ export const projectArchiveMutation = (options) => {
|
|
|
1762
2029
|
};
|
|
1763
2030
|
return mutationOptions;
|
|
1764
2031
|
};
|
|
2032
|
+
export const publisherMeQueryKey = (options) => createQueryKey("publisherMe", options);
|
|
2033
|
+
/**
|
|
2034
|
+
* Get the caller's accessible publishers
|
|
2035
|
+
*/
|
|
2036
|
+
export const publisherMeOptions = (options) => queryOptions({
|
|
2037
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2038
|
+
const { data } = await RenClient.__registry.get().publisher.me({
|
|
2039
|
+
...options,
|
|
2040
|
+
...queryKey[0],
|
|
2041
|
+
signal,
|
|
2042
|
+
throwOnError: true,
|
|
2043
|
+
});
|
|
2044
|
+
return data;
|
|
2045
|
+
},
|
|
2046
|
+
queryKey: publisherMeQueryKey(options),
|
|
2047
|
+
});
|
|
2048
|
+
/**
|
|
2049
|
+
* Claim the caller's org publisher handle
|
|
2050
|
+
*/
|
|
2051
|
+
export const publisherClaimOrgMutation = (options) => {
|
|
2052
|
+
const mutationOptions = {
|
|
2053
|
+
mutationFn: async (fnOptions) => {
|
|
2054
|
+
const { data } = await RenClient.__registry.get().publisher.claimOrg({
|
|
2055
|
+
...options,
|
|
2056
|
+
...fnOptions,
|
|
2057
|
+
throwOnError: true,
|
|
2058
|
+
});
|
|
2059
|
+
return data;
|
|
2060
|
+
},
|
|
2061
|
+
};
|
|
2062
|
+
return mutationOptions;
|
|
2063
|
+
};
|
|
2064
|
+
export const publisherGetQueryKey = (options) => createQueryKey("publisherGet", options);
|
|
2065
|
+
/**
|
|
2066
|
+
* Get a publisher
|
|
2067
|
+
*/
|
|
2068
|
+
export const publisherGetOptions = (options) => queryOptions({
|
|
2069
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2070
|
+
const { data } = await RenClient.__registry.get().publisher.get({
|
|
2071
|
+
...options,
|
|
2072
|
+
...queryKey[0],
|
|
2073
|
+
signal,
|
|
2074
|
+
throwOnError: true,
|
|
2075
|
+
});
|
|
2076
|
+
return data;
|
|
2077
|
+
},
|
|
2078
|
+
queryKey: publisherGetQueryKey(options),
|
|
2079
|
+
});
|
|
2080
|
+
/**
|
|
2081
|
+
* Update publisher metadata
|
|
2082
|
+
*/
|
|
2083
|
+
export const publisherUpdateMutation = (options) => {
|
|
2084
|
+
const mutationOptions = {
|
|
2085
|
+
mutationFn: async (fnOptions) => {
|
|
2086
|
+
const { data } = await RenClient.__registry.get().publisher.update({
|
|
2087
|
+
...options,
|
|
2088
|
+
...fnOptions,
|
|
2089
|
+
throwOnError: true,
|
|
2090
|
+
});
|
|
2091
|
+
return data;
|
|
2092
|
+
},
|
|
2093
|
+
};
|
|
2094
|
+
return mutationOptions;
|
|
2095
|
+
};
|
|
1765
2096
|
export const replayListQueryKey = (options) => createQueryKey("replayList", options);
|
|
1766
2097
|
/**
|
|
1767
2098
|
* List replays
|
|
@@ -1837,6 +2168,22 @@ export const replayGetOptions = (options) => queryOptions({
|
|
|
1837
2168
|
},
|
|
1838
2169
|
queryKey: replayGetQueryKey(options),
|
|
1839
2170
|
});
|
|
2171
|
+
/**
|
|
2172
|
+
* Update a replay
|
|
2173
|
+
*/
|
|
2174
|
+
export const replayUpdateMutation = (options) => {
|
|
2175
|
+
const mutationOptions = {
|
|
2176
|
+
mutationFn: async (fnOptions) => {
|
|
2177
|
+
const { data } = await RenClient.__registry.get().replay.update({
|
|
2178
|
+
...options,
|
|
2179
|
+
...fnOptions,
|
|
2180
|
+
throwOnError: true,
|
|
2181
|
+
});
|
|
2182
|
+
return data;
|
|
2183
|
+
},
|
|
2184
|
+
};
|
|
2185
|
+
return mutationOptions;
|
|
2186
|
+
};
|
|
1840
2187
|
/**
|
|
1841
2188
|
* Archive a replay
|
|
1842
2189
|
*/
|
|
@@ -1853,6 +2200,54 @@ export const replayArchiveMutation = (options) => {
|
|
|
1853
2200
|
};
|
|
1854
2201
|
return mutationOptions;
|
|
1855
2202
|
};
|
|
2203
|
+
/**
|
|
2204
|
+
* Publish a replay
|
|
2205
|
+
*/
|
|
2206
|
+
export const replayPublishMutation = (options) => {
|
|
2207
|
+
const mutationOptions = {
|
|
2208
|
+
mutationFn: async (fnOptions) => {
|
|
2209
|
+
const { data } = await RenClient.__registry.get().replay.publish({
|
|
2210
|
+
...options,
|
|
2211
|
+
...fnOptions,
|
|
2212
|
+
throwOnError: true,
|
|
2213
|
+
});
|
|
2214
|
+
return data;
|
|
2215
|
+
},
|
|
2216
|
+
};
|
|
2217
|
+
return mutationOptions;
|
|
2218
|
+
};
|
|
2219
|
+
/**
|
|
2220
|
+
* Deprecate a replay
|
|
2221
|
+
*/
|
|
2222
|
+
export const replayDeprecateMutation = (options) => {
|
|
2223
|
+
const mutationOptions = {
|
|
2224
|
+
mutationFn: async (fnOptions) => {
|
|
2225
|
+
const { data } = await RenClient.__registry.get().replay.deprecate({
|
|
2226
|
+
...options,
|
|
2227
|
+
...fnOptions,
|
|
2228
|
+
throwOnError: true,
|
|
2229
|
+
});
|
|
2230
|
+
return data;
|
|
2231
|
+
},
|
|
2232
|
+
};
|
|
2233
|
+
return mutationOptions;
|
|
2234
|
+
};
|
|
2235
|
+
/**
|
|
2236
|
+
* Undeprecate a replay
|
|
2237
|
+
*/
|
|
2238
|
+
export const replayUndeprecateMutation = (options) => {
|
|
2239
|
+
const mutationOptions = {
|
|
2240
|
+
mutationFn: async (fnOptions) => {
|
|
2241
|
+
const { data } = await RenClient.__registry.get().replay.undeprecate({
|
|
2242
|
+
...options,
|
|
2243
|
+
...fnOptions,
|
|
2244
|
+
throwOnError: true,
|
|
2245
|
+
});
|
|
2246
|
+
return data;
|
|
2247
|
+
},
|
|
2248
|
+
};
|
|
2249
|
+
return mutationOptions;
|
|
2250
|
+
};
|
|
1856
2251
|
/**
|
|
1857
2252
|
* Share a chat session as a public replay
|
|
1858
2253
|
*/
|
|
@@ -1960,6 +2355,22 @@ export const sessionUpdateMutation = (options) => {
|
|
|
1960
2355
|
};
|
|
1961
2356
|
return mutationOptions;
|
|
1962
2357
|
};
|
|
2358
|
+
export const sessionMessagesListQueryKey = (options) => createQueryKey("sessionMessagesList", options);
|
|
2359
|
+
/**
|
|
2360
|
+
* List a session's messages
|
|
2361
|
+
*/
|
|
2362
|
+
export const sessionMessagesListOptions = (options) => queryOptions({
|
|
2363
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2364
|
+
const { data } = await RenClient.__registry.get().session.messages.list({
|
|
2365
|
+
...options,
|
|
2366
|
+
...queryKey[0],
|
|
2367
|
+
signal,
|
|
2368
|
+
throwOnError: true,
|
|
2369
|
+
});
|
|
2370
|
+
return data;
|
|
2371
|
+
},
|
|
2372
|
+
queryKey: sessionMessagesListQueryKey(options),
|
|
2373
|
+
});
|
|
1963
2374
|
export const sessionAuthRequirementsQueryKey = (options) => createQueryKey("sessionAuthRequirements", options);
|
|
1964
2375
|
/**
|
|
1965
2376
|
* Compute MCP and skill credential requirements for a session
|
|
@@ -2163,6 +2574,54 @@ export const skillArchiveMutation = (options) => {
|
|
|
2163
2574
|
};
|
|
2164
2575
|
return mutationOptions;
|
|
2165
2576
|
};
|
|
2577
|
+
/**
|
|
2578
|
+
* Publish a skill
|
|
2579
|
+
*/
|
|
2580
|
+
export const skillPublishMutation = (options) => {
|
|
2581
|
+
const mutationOptions = {
|
|
2582
|
+
mutationFn: async (fnOptions) => {
|
|
2583
|
+
const { data } = await RenClient.__registry.get().skill.publish({
|
|
2584
|
+
...options,
|
|
2585
|
+
...fnOptions,
|
|
2586
|
+
throwOnError: true,
|
|
2587
|
+
});
|
|
2588
|
+
return data;
|
|
2589
|
+
},
|
|
2590
|
+
};
|
|
2591
|
+
return mutationOptions;
|
|
2592
|
+
};
|
|
2593
|
+
/**
|
|
2594
|
+
* Deprecate a skill
|
|
2595
|
+
*/
|
|
2596
|
+
export const skillDeprecateMutation = (options) => {
|
|
2597
|
+
const mutationOptions = {
|
|
2598
|
+
mutationFn: async (fnOptions) => {
|
|
2599
|
+
const { data } = await RenClient.__registry.get().skill.deprecate({
|
|
2600
|
+
...options,
|
|
2601
|
+
...fnOptions,
|
|
2602
|
+
throwOnError: true,
|
|
2603
|
+
});
|
|
2604
|
+
return data;
|
|
2605
|
+
},
|
|
2606
|
+
};
|
|
2607
|
+
return mutationOptions;
|
|
2608
|
+
};
|
|
2609
|
+
/**
|
|
2610
|
+
* Undeprecate a skill
|
|
2611
|
+
*/
|
|
2612
|
+
export const skillUndeprecateMutation = (options) => {
|
|
2613
|
+
const mutationOptions = {
|
|
2614
|
+
mutationFn: async (fnOptions) => {
|
|
2615
|
+
const { data } = await RenClient.__registry.get().skill.undeprecate({
|
|
2616
|
+
...options,
|
|
2617
|
+
...fnOptions,
|
|
2618
|
+
throwOnError: true,
|
|
2619
|
+
});
|
|
2620
|
+
return data;
|
|
2621
|
+
},
|
|
2622
|
+
};
|
|
2623
|
+
return mutationOptions;
|
|
2624
|
+
};
|
|
2166
2625
|
/**
|
|
2167
2626
|
* Copy a skill
|
|
2168
2627
|
*/
|
|
@@ -3019,3 +3478,19 @@ export const registryReplayFilesPresignDownloadMutation = (options) => {
|
|
|
3019
3478
|
};
|
|
3020
3479
|
return mutationOptions;
|
|
3021
3480
|
};
|
|
3481
|
+
export const registryBlueprintGetQueryKey = (options) => createQueryKey("registryBlueprintGet", options);
|
|
3482
|
+
/**
|
|
3483
|
+
* Get a public blueprint by slug
|
|
3484
|
+
*/
|
|
3485
|
+
export const registryBlueprintGetOptions = (options) => queryOptions({
|
|
3486
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3487
|
+
const { data } = await RenClient.__registry.get().registry.blueprint.get({
|
|
3488
|
+
...options,
|
|
3489
|
+
...queryKey[0],
|
|
3490
|
+
signal,
|
|
3491
|
+
throwOnError: true,
|
|
3492
|
+
});
|
|
3493
|
+
return data;
|
|
3494
|
+
},
|
|
3495
|
+
queryKey: registryBlueprintGetQueryKey(options),
|
|
3496
|
+
});
|