@renai-labs/sdk 0.1.22 → 0.1.24
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 +101 -17
- package/dist/generated/@tanstack/react-query.gen.js +40 -0
- package/dist/generated/internal/types.gen.d.ts +526 -0
- package/dist/generated/sdk.gen.d.ts +19 -1
- package/dist/generated/sdk.gen.js +34 -0
- package/dist/generated/types.gen.d.ts +3589 -224
- package/dist/generated/zod.gen.d.ts +2895 -1654
- package/dist/generated/zod.gen.js +401 -263
- package/package.json +1 -1
|
@@ -2287,6 +2287,24 @@ export const podCredentialListOptions = (options) => queryOptions({
|
|
|
2287
2287
|
},
|
|
2288
2288
|
queryKey: podCredentialListQueryKey(options),
|
|
2289
2289
|
});
|
|
2290
|
+
export const podAuthRequirementsQueryKey = (options) => createQueryKey("podAuthRequirements", options);
|
|
2291
|
+
/**
|
|
2292
|
+
* List the credentials this pod's agents, skills and MCPs require
|
|
2293
|
+
*
|
|
2294
|
+
* Read-only. Aggregated across every project in the pod, so it answers 'what does this team still need' without picking a session. `satisfied` is evaluated against the pod's whole vault chain, so a credential held at org level counts as met. `neededBy` names the skills and MCPs that asked for each one.
|
|
2295
|
+
*/
|
|
2296
|
+
export const podAuthRequirementsOptions = (options) => queryOptions({
|
|
2297
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2298
|
+
const { data } = await RenClient.__registry.get().pod.authRequirements({
|
|
2299
|
+
...options,
|
|
2300
|
+
...queryKey[0],
|
|
2301
|
+
signal,
|
|
2302
|
+
throwOnError: true,
|
|
2303
|
+
});
|
|
2304
|
+
return data;
|
|
2305
|
+
},
|
|
2306
|
+
queryKey: podAuthRequirementsQueryKey(options),
|
|
2307
|
+
});
|
|
2290
2308
|
/**
|
|
2291
2309
|
* Kick off provisioning for the pod's sandbox
|
|
2292
2310
|
*
|
|
@@ -3241,6 +3259,8 @@ export const resourceIconUploadMutation = (options) => {
|
|
|
3241
3259
|
export const sessionListQueryKey = (options) => createQueryKey("sessionList", options);
|
|
3242
3260
|
/**
|
|
3243
3261
|
* List sessions
|
|
3262
|
+
*
|
|
3263
|
+
* Scoped to the calling user: pods they are a member of, then the projects visible to them in those pods. Requires a user-attributed token.
|
|
3244
3264
|
*/
|
|
3245
3265
|
export const sessionListOptions = (options) => queryOptions({
|
|
3246
3266
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -3257,6 +3277,8 @@ export const sessionListOptions = (options) => queryOptions({
|
|
|
3257
3277
|
export const sessionListInfiniteQueryKey = (options) => createQueryKey("sessionList", options, true);
|
|
3258
3278
|
/**
|
|
3259
3279
|
* List sessions
|
|
3280
|
+
*
|
|
3281
|
+
* Scoped to the calling user: pods they are a member of, then the projects visible to them in those pods. Requires a user-attributed token.
|
|
3260
3282
|
*/
|
|
3261
3283
|
export const sessionListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
3262
3284
|
// @ts-ignore
|
|
@@ -3617,6 +3639,24 @@ export const skillArchiveMutation = (options) => {
|
|
|
3617
3639
|
};
|
|
3618
3640
|
return mutationOptions;
|
|
3619
3641
|
};
|
|
3642
|
+
/**
|
|
3643
|
+
* Update a git skill's source pointer
|
|
3644
|
+
*
|
|
3645
|
+
* Repoints a git-backed skill at a different repository, ref or subdirectory. Git skills are versionless — GitHub owns their history — so this replaces the pointer in place rather than cutting a version, and existing pins keep resolving. The new pointer is validated by mirroring it, and a published skill's repository must still be publicly cloneable. File-backed skills have no pointer; use versions instead.
|
|
3646
|
+
*/
|
|
3647
|
+
export const skillSourceUpdateMutation = (options) => {
|
|
3648
|
+
const mutationOptions = {
|
|
3649
|
+
mutationFn: async (fnOptions) => {
|
|
3650
|
+
const { data } = await RenClient.__registry.get().skill.source.update({
|
|
3651
|
+
...options,
|
|
3652
|
+
...fnOptions,
|
|
3653
|
+
throwOnError: true,
|
|
3654
|
+
});
|
|
3655
|
+
return data;
|
|
3656
|
+
},
|
|
3657
|
+
};
|
|
3658
|
+
return mutationOptions;
|
|
3659
|
+
};
|
|
3620
3660
|
/**
|
|
3621
3661
|
* Publish a skill
|
|
3622
3662
|
*
|