@renai-labs/sdk 0.1.18 → 0.1.20
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 +597 -35
- package/dist/generated/@tanstack/react-query.gen.js +521 -17
- package/dist/generated/internal/types.gen.d.ts +319 -1
- package/dist/generated/sdk.gen.d.ts +167 -17
- package/dist/generated/sdk.gen.js +349 -19
- package/dist/generated/types.gen.d.ts +2063 -1509
- package/dist/generated/zod.gen.d.ts +8497 -4855
- package/dist/generated/zod.gen.js +882 -783
- package/package.json +2 -2
|
@@ -115,7 +115,7 @@ export const agentCreateMutation = (options) => {
|
|
|
115
115
|
return mutationOptions;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
|
-
* Search agents across
|
|
118
|
+
* Search agents across private, org, and published tiers
|
|
119
119
|
*/
|
|
120
120
|
export const agentSearchMutation = (options) => {
|
|
121
121
|
const mutationOptions = {
|
|
@@ -210,6 +210,22 @@ export const agentPublishMutation = (options) => {
|
|
|
210
210
|
};
|
|
211
211
|
return mutationOptions;
|
|
212
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
* Promote a private agent to org scope in place, cascading to its private dependencies
|
|
215
|
+
*/
|
|
216
|
+
export const agentPromoteMutation = (options) => {
|
|
217
|
+
const mutationOptions = {
|
|
218
|
+
mutationFn: async (fnOptions) => {
|
|
219
|
+
const { data } = await RenClient.__registry.get().agent.promote({
|
|
220
|
+
...options,
|
|
221
|
+
...fnOptions,
|
|
222
|
+
throwOnError: true,
|
|
223
|
+
});
|
|
224
|
+
return data;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
return mutationOptions;
|
|
228
|
+
};
|
|
213
229
|
/**
|
|
214
230
|
* Deprecate an agent
|
|
215
231
|
*/
|
|
@@ -392,6 +408,22 @@ export const blueprintCreateMutation = (options) => {
|
|
|
392
408
|
};
|
|
393
409
|
return mutationOptions;
|
|
394
410
|
};
|
|
411
|
+
/**
|
|
412
|
+
* Create or update a blueprint from a raw Spec
|
|
413
|
+
*/
|
|
414
|
+
export const blueprintPushMutation = (options) => {
|
|
415
|
+
const mutationOptions = {
|
|
416
|
+
mutationFn: async (fnOptions) => {
|
|
417
|
+
const { data } = await RenClient.__registry.get().blueprint.push({
|
|
418
|
+
...options,
|
|
419
|
+
...fnOptions,
|
|
420
|
+
throwOnError: true,
|
|
421
|
+
});
|
|
422
|
+
return data;
|
|
423
|
+
},
|
|
424
|
+
};
|
|
425
|
+
return mutationOptions;
|
|
426
|
+
};
|
|
395
427
|
/**
|
|
396
428
|
* Install a blueprint into a pod
|
|
397
429
|
*/
|
|
@@ -520,6 +552,53 @@ export const billingGetOptions = (options) => queryOptions({
|
|
|
520
552
|
},
|
|
521
553
|
queryKey: billingGetQueryKey(options),
|
|
522
554
|
});
|
|
555
|
+
export const billingUsageQueryKey = (options) => createQueryKey("billingUsage", options);
|
|
556
|
+
/**
|
|
557
|
+
* Get organization-wide credit usage
|
|
558
|
+
*
|
|
559
|
+
* Total Ren credits consumed across the organization over a bounded time range, broken down by a chosen dimension (user, member, agent, model, session, project, pod, or source) with a per-day trend. Requires an explicit `start`/`end` range (max 92 days). Served from the local hourly usage rollup; values may lag live spend by up to roughly one hour plus a meter cycle.
|
|
560
|
+
*/
|
|
561
|
+
export const billingUsageOptions = (options) => queryOptions({
|
|
562
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
563
|
+
const { data } = await RenClient.__registry.get().billing.usage({
|
|
564
|
+
...options,
|
|
565
|
+
...queryKey[0],
|
|
566
|
+
signal,
|
|
567
|
+
throwOnError: true,
|
|
568
|
+
});
|
|
569
|
+
return data;
|
|
570
|
+
},
|
|
571
|
+
queryKey: billingUsageQueryKey(options),
|
|
572
|
+
});
|
|
573
|
+
export const billingUsageInfiniteQueryKey = (options) => createQueryKey("billingUsage", options, true);
|
|
574
|
+
/**
|
|
575
|
+
* Get organization-wide credit usage
|
|
576
|
+
*
|
|
577
|
+
* Total Ren credits consumed across the organization over a bounded time range, broken down by a chosen dimension (user, member, agent, model, session, project, pod, or source) with a per-day trend. Requires an explicit `start`/`end` range (max 92 days). Served from the local hourly usage rollup; values may lag live spend by up to roughly one hour plus a meter cycle.
|
|
578
|
+
*/
|
|
579
|
+
export const billingUsageInfiniteOptions = (options) => infiniteQueryOptions(
|
|
580
|
+
// @ts-ignore
|
|
581
|
+
{
|
|
582
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
583
|
+
// @ts-ignore
|
|
584
|
+
const page = typeof pageParam === "object"
|
|
585
|
+
? pageParam
|
|
586
|
+
: {
|
|
587
|
+
query: {
|
|
588
|
+
start: pageParam,
|
|
589
|
+
},
|
|
590
|
+
};
|
|
591
|
+
const params = createInfiniteParams(queryKey, page);
|
|
592
|
+
const { data } = await RenClient.__registry.get().billing.usage({
|
|
593
|
+
...options,
|
|
594
|
+
...params,
|
|
595
|
+
signal,
|
|
596
|
+
throwOnError: true,
|
|
597
|
+
});
|
|
598
|
+
return data;
|
|
599
|
+
},
|
|
600
|
+
queryKey: billingUsageInfiniteQueryKey(options),
|
|
601
|
+
});
|
|
523
602
|
export const billingInvoicesQueryKey = (options) => createQueryKey("billingInvoices", options);
|
|
524
603
|
/**
|
|
525
604
|
* List invoices for the organization
|
|
@@ -563,13 +642,13 @@ export const billingInvoicesInfiniteOptions = (options) => infiniteQueryOptions(
|
|
|
563
642
|
},
|
|
564
643
|
queryKey: billingInvoicesInfiniteQueryKey(options),
|
|
565
644
|
});
|
|
566
|
-
export const
|
|
645
|
+
export const billingInvoicePaymentUrlQueryKey = (options) => createQueryKey("billingInvoicePaymentUrl", options);
|
|
567
646
|
/**
|
|
568
|
-
*
|
|
647
|
+
* Get a payment URL for an invoice
|
|
569
648
|
*/
|
|
570
|
-
export const
|
|
649
|
+
export const billingInvoicePaymentUrlOptions = (options) => queryOptions({
|
|
571
650
|
queryFn: async ({ queryKey, signal }) => {
|
|
572
|
-
const { data } = await RenClient.__registry.get().billing.
|
|
651
|
+
const { data } = await RenClient.__registry.get().billing.invoicePaymentUrl({
|
|
573
652
|
...options,
|
|
574
653
|
...queryKey[0],
|
|
575
654
|
signal,
|
|
@@ -577,15 +656,15 @@ export const billingDailyUsageOptions = (options) => queryOptions({
|
|
|
577
656
|
});
|
|
578
657
|
return data;
|
|
579
658
|
},
|
|
580
|
-
queryKey:
|
|
659
|
+
queryKey: billingInvoicePaymentUrlQueryKey(options),
|
|
581
660
|
});
|
|
582
|
-
export const
|
|
661
|
+
export const billingPlansQueryKey = (options) => createQueryKey("billingPlans", options);
|
|
583
662
|
/**
|
|
584
|
-
*
|
|
663
|
+
* List available subscription plans
|
|
585
664
|
*/
|
|
586
|
-
export const
|
|
665
|
+
export const billingPlansOptions = (options) => queryOptions({
|
|
587
666
|
queryFn: async ({ queryKey, signal }) => {
|
|
588
|
-
const { data } = await RenClient.__registry.get().billing.
|
|
667
|
+
const { data } = await RenClient.__registry.get().billing.plans({
|
|
589
668
|
...options,
|
|
590
669
|
...queryKey[0],
|
|
591
670
|
signal,
|
|
@@ -593,15 +672,63 @@ export const billingInvoicePaymentUrlOptions = (options) => queryOptions({
|
|
|
593
672
|
});
|
|
594
673
|
return data;
|
|
595
674
|
},
|
|
596
|
-
queryKey:
|
|
675
|
+
queryKey: billingPlansQueryKey(options),
|
|
676
|
+
});
|
|
677
|
+
/**
|
|
678
|
+
* Start a subscription-plan checkout
|
|
679
|
+
*/
|
|
680
|
+
export const billingSubscribeMutation = (options) => {
|
|
681
|
+
const mutationOptions = {
|
|
682
|
+
mutationFn: async (fnOptions) => {
|
|
683
|
+
const { data } = await RenClient.__registry.get().billing.subscribe({
|
|
684
|
+
...options,
|
|
685
|
+
...fnOptions,
|
|
686
|
+
throwOnError: true,
|
|
687
|
+
});
|
|
688
|
+
return data;
|
|
689
|
+
},
|
|
690
|
+
};
|
|
691
|
+
return mutationOptions;
|
|
692
|
+
};
|
|
693
|
+
export const billingPortalQueryKey = (options) => createQueryKey("billingPortal", options);
|
|
694
|
+
/**
|
|
695
|
+
* Get a customer-portal URL to manage the plan
|
|
696
|
+
*/
|
|
697
|
+
export const billingPortalOptions = (options) => queryOptions({
|
|
698
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
699
|
+
const { data } = await RenClient.__registry.get().billing.portal({
|
|
700
|
+
...options,
|
|
701
|
+
...queryKey[0],
|
|
702
|
+
signal,
|
|
703
|
+
throwOnError: true,
|
|
704
|
+
});
|
|
705
|
+
return data;
|
|
706
|
+
},
|
|
707
|
+
queryKey: billingPortalQueryKey(options),
|
|
597
708
|
});
|
|
598
709
|
/**
|
|
599
|
-
*
|
|
710
|
+
* Upgrade or downgrade the current subscription plan
|
|
711
|
+
*/
|
|
712
|
+
export const billingChangePlanMutation = (options) => {
|
|
713
|
+
const mutationOptions = {
|
|
714
|
+
mutationFn: async (fnOptions) => {
|
|
715
|
+
const { data } = await RenClient.__registry.get().billing.changePlan({
|
|
716
|
+
...options,
|
|
717
|
+
...fnOptions,
|
|
718
|
+
throwOnError: true,
|
|
719
|
+
});
|
|
720
|
+
return data;
|
|
721
|
+
},
|
|
722
|
+
};
|
|
723
|
+
return mutationOptions;
|
|
724
|
+
};
|
|
725
|
+
/**
|
|
726
|
+
* Cancel the subscription at the next renewal
|
|
600
727
|
*/
|
|
601
|
-
export const
|
|
728
|
+
export const billingCancelMutation = (options) => {
|
|
602
729
|
const mutationOptions = {
|
|
603
730
|
mutationFn: async (fnOptions) => {
|
|
604
|
-
const { data } = await RenClient.__registry.get().billing.
|
|
731
|
+
const { data } = await RenClient.__registry.get().billing.cancel({
|
|
605
732
|
...options,
|
|
606
733
|
...fnOptions,
|
|
607
734
|
throwOnError: true,
|
|
@@ -937,6 +1064,22 @@ export const fileStoreFilesFinalizeUploadMutation = (options) => {
|
|
|
937
1064
|
};
|
|
938
1065
|
return mutationOptions;
|
|
939
1066
|
};
|
|
1067
|
+
export const invitationPreviewQueryKey = (options) => createQueryKey("invitationPreview", options);
|
|
1068
|
+
/**
|
|
1069
|
+
* Preview an organization invitation
|
|
1070
|
+
*/
|
|
1071
|
+
export const invitationPreviewOptions = (options) => queryOptions({
|
|
1072
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1073
|
+
const { data } = await RenClient.__registry.get().invitation.preview({
|
|
1074
|
+
...options,
|
|
1075
|
+
...queryKey[0],
|
|
1076
|
+
signal,
|
|
1077
|
+
throwOnError: true,
|
|
1078
|
+
});
|
|
1079
|
+
return data;
|
|
1080
|
+
},
|
|
1081
|
+
queryKey: invitationPreviewQueryKey(options),
|
|
1082
|
+
});
|
|
940
1083
|
/**
|
|
941
1084
|
* Disconnect the org's GitHub App installation
|
|
942
1085
|
*/
|
|
@@ -1205,7 +1348,7 @@ export const mcpCreateMutation = (options) => {
|
|
|
1205
1348
|
return mutationOptions;
|
|
1206
1349
|
};
|
|
1207
1350
|
/**
|
|
1208
|
-
* Search MCPs across
|
|
1351
|
+
* Search MCPs across private, org, and published tiers
|
|
1209
1352
|
*/
|
|
1210
1353
|
export const mcpSearchMutation = (options) => {
|
|
1211
1354
|
const mutationOptions = {
|
|
@@ -1300,6 +1443,22 @@ export const mcpPublishMutation = (options) => {
|
|
|
1300
1443
|
};
|
|
1301
1444
|
return mutationOptions;
|
|
1302
1445
|
};
|
|
1446
|
+
/**
|
|
1447
|
+
* Promote a private MCP to org scope in place
|
|
1448
|
+
*/
|
|
1449
|
+
export const mcpPromoteMutation = (options) => {
|
|
1450
|
+
const mutationOptions = {
|
|
1451
|
+
mutationFn: async (fnOptions) => {
|
|
1452
|
+
const { data } = await RenClient.__registry.get().mcp.promote({
|
|
1453
|
+
...options,
|
|
1454
|
+
...fnOptions,
|
|
1455
|
+
throwOnError: true,
|
|
1456
|
+
});
|
|
1457
|
+
return data;
|
|
1458
|
+
},
|
|
1459
|
+
};
|
|
1460
|
+
return mutationOptions;
|
|
1461
|
+
};
|
|
1303
1462
|
/**
|
|
1304
1463
|
* Deprecate an MCP
|
|
1305
1464
|
*/
|
|
@@ -1380,6 +1539,42 @@ export const meGetOptions = (options) => queryOptions({
|
|
|
1380
1539
|
},
|
|
1381
1540
|
queryKey: meGetQueryKey(options),
|
|
1382
1541
|
});
|
|
1542
|
+
/**
|
|
1543
|
+
* Update the active member persona
|
|
1544
|
+
*
|
|
1545
|
+
* Sets the authenticated user's persona for their active organization membership.
|
|
1546
|
+
*/
|
|
1547
|
+
export const meUpdatePersonaMutation = (options) => {
|
|
1548
|
+
const mutationOptions = {
|
|
1549
|
+
mutationFn: async (fnOptions) => {
|
|
1550
|
+
const { data } = await RenClient.__registry.get().me.updatePersona({
|
|
1551
|
+
...options,
|
|
1552
|
+
...fnOptions,
|
|
1553
|
+
throwOnError: true,
|
|
1554
|
+
});
|
|
1555
|
+
return data;
|
|
1556
|
+
},
|
|
1557
|
+
};
|
|
1558
|
+
return mutationOptions;
|
|
1559
|
+
};
|
|
1560
|
+
/**
|
|
1561
|
+
* Mark member onboarding complete
|
|
1562
|
+
*
|
|
1563
|
+
* Stamps the authenticated member as onboarded for their active organization.
|
|
1564
|
+
*/
|
|
1565
|
+
export const meCompleteOnboardingMutation = (options) => {
|
|
1566
|
+
const mutationOptions = {
|
|
1567
|
+
mutationFn: async (fnOptions) => {
|
|
1568
|
+
const { data } = await RenClient.__registry.get().me.completeOnboarding({
|
|
1569
|
+
...options,
|
|
1570
|
+
...fnOptions,
|
|
1571
|
+
throwOnError: true,
|
|
1572
|
+
});
|
|
1573
|
+
return data;
|
|
1574
|
+
},
|
|
1575
|
+
};
|
|
1576
|
+
return mutationOptions;
|
|
1577
|
+
};
|
|
1383
1578
|
export const memoryStoreListQueryKey = (options) => createQueryKey("memoryStoreList", options);
|
|
1384
1579
|
/**
|
|
1385
1580
|
* List memory stores
|
|
@@ -1619,6 +1814,54 @@ export const onboardingSetupPersonalOrgMutation = (options) => {
|
|
|
1619
1814
|
};
|
|
1620
1815
|
return mutationOptions;
|
|
1621
1816
|
};
|
|
1817
|
+
export const orgGetQueryKey = (options) => createQueryKey("orgGet", options);
|
|
1818
|
+
/**
|
|
1819
|
+
* Get organization settings
|
|
1820
|
+
*/
|
|
1821
|
+
export const orgGetOptions = (options) => queryOptions({
|
|
1822
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1823
|
+
const { data } = await RenClient.__registry.get().org.get({
|
|
1824
|
+
...options,
|
|
1825
|
+
...queryKey[0],
|
|
1826
|
+
signal,
|
|
1827
|
+
throwOnError: true,
|
|
1828
|
+
});
|
|
1829
|
+
return data;
|
|
1830
|
+
},
|
|
1831
|
+
queryKey: orgGetQueryKey(options),
|
|
1832
|
+
});
|
|
1833
|
+
/**
|
|
1834
|
+
* Update organization settings
|
|
1835
|
+
*/
|
|
1836
|
+
export const orgUpdateMutation = (options) => {
|
|
1837
|
+
const mutationOptions = {
|
|
1838
|
+
mutationFn: async (fnOptions) => {
|
|
1839
|
+
const { data } = await RenClient.__registry.get().org.update({
|
|
1840
|
+
...options,
|
|
1841
|
+
...fnOptions,
|
|
1842
|
+
throwOnError: true,
|
|
1843
|
+
});
|
|
1844
|
+
return data;
|
|
1845
|
+
},
|
|
1846
|
+
};
|
|
1847
|
+
return mutationOptions;
|
|
1848
|
+
};
|
|
1849
|
+
/**
|
|
1850
|
+
* Upload an organization logo
|
|
1851
|
+
*/
|
|
1852
|
+
export const organizationLogoUploadMutation = (options) => {
|
|
1853
|
+
const mutationOptions = {
|
|
1854
|
+
mutationFn: async (fnOptions) => {
|
|
1855
|
+
const { data } = await RenClient.__registry.get().organizationLogo.upload({
|
|
1856
|
+
...options,
|
|
1857
|
+
...fnOptions,
|
|
1858
|
+
throwOnError: true,
|
|
1859
|
+
});
|
|
1860
|
+
return data;
|
|
1861
|
+
},
|
|
1862
|
+
};
|
|
1863
|
+
return mutationOptions;
|
|
1864
|
+
};
|
|
1622
1865
|
export const patListQueryKey = (options) => createQueryKey("patList", options);
|
|
1623
1866
|
/**
|
|
1624
1867
|
* List personal access tokens
|
|
@@ -1758,6 +2001,24 @@ export const podUpdateMutation = (options) => {
|
|
|
1758
2001
|
};
|
|
1759
2002
|
return mutationOptions;
|
|
1760
2003
|
};
|
|
2004
|
+
export const podUsageQueryKey = (options) => createQueryKey("podUsage", options);
|
|
2005
|
+
/**
|
|
2006
|
+
* Get total credit usage for a pod
|
|
2007
|
+
*
|
|
2008
|
+
* Total Ren credits consumed across the whole pod, served from the local hourly usage rollup.
|
|
2009
|
+
*/
|
|
2010
|
+
export const podUsageOptions = (options) => queryOptions({
|
|
2011
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2012
|
+
const { data } = await RenClient.__registry.get().pod.usage({
|
|
2013
|
+
...options,
|
|
2014
|
+
...queryKey[0],
|
|
2015
|
+
signal,
|
|
2016
|
+
throwOnError: true,
|
|
2017
|
+
});
|
|
2018
|
+
return data;
|
|
2019
|
+
},
|
|
2020
|
+
queryKey: podUsageQueryKey(options),
|
|
2021
|
+
});
|
|
1761
2022
|
/**
|
|
1762
2023
|
* Archive a pod
|
|
1763
2024
|
*/
|
|
@@ -2015,6 +2276,53 @@ export const projectUpdateMutation = (options) => {
|
|
|
2015
2276
|
};
|
|
2016
2277
|
return mutationOptions;
|
|
2017
2278
|
};
|
|
2279
|
+
export const projectUsageQueryKey = (options) => createQueryKey("projectUsage", options);
|
|
2280
|
+
/**
|
|
2281
|
+
* Get a project's credit usage
|
|
2282
|
+
*
|
|
2283
|
+
* Ren credits consumed within the project, with a per-day trend, a breakdown by usage source and operation, and an optional grouped breakdown (e.g. `groupBy=session` for per-session costs). `start`/`end` bound the range (max 92 days); omit both for all-time. Served from the local hourly usage rollup.
|
|
2284
|
+
*/
|
|
2285
|
+
export const projectUsageOptions = (options) => queryOptions({
|
|
2286
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2287
|
+
const { data } = await RenClient.__registry.get().project.usage({
|
|
2288
|
+
...options,
|
|
2289
|
+
...queryKey[0],
|
|
2290
|
+
signal,
|
|
2291
|
+
throwOnError: true,
|
|
2292
|
+
});
|
|
2293
|
+
return data;
|
|
2294
|
+
},
|
|
2295
|
+
queryKey: projectUsageQueryKey(options),
|
|
2296
|
+
});
|
|
2297
|
+
export const projectUsageInfiniteQueryKey = (options) => createQueryKey("projectUsage", options, true);
|
|
2298
|
+
/**
|
|
2299
|
+
* Get a project's credit usage
|
|
2300
|
+
*
|
|
2301
|
+
* Ren credits consumed within the project, with a per-day trend, a breakdown by usage source and operation, and an optional grouped breakdown (e.g. `groupBy=session` for per-session costs). `start`/`end` bound the range (max 92 days); omit both for all-time. Served from the local hourly usage rollup.
|
|
2302
|
+
*/
|
|
2303
|
+
export const projectUsageInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2304
|
+
// @ts-ignore
|
|
2305
|
+
{
|
|
2306
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2307
|
+
// @ts-ignore
|
|
2308
|
+
const page = typeof pageParam === "object"
|
|
2309
|
+
? pageParam
|
|
2310
|
+
: {
|
|
2311
|
+
query: {
|
|
2312
|
+
start: pageParam,
|
|
2313
|
+
},
|
|
2314
|
+
};
|
|
2315
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2316
|
+
const { data } = await RenClient.__registry.get().project.usage({
|
|
2317
|
+
...options,
|
|
2318
|
+
...params,
|
|
2319
|
+
signal,
|
|
2320
|
+
throwOnError: true,
|
|
2321
|
+
});
|
|
2322
|
+
return data;
|
|
2323
|
+
},
|
|
2324
|
+
queryKey: projectUsageInfiniteQueryKey(options),
|
|
2325
|
+
});
|
|
2018
2326
|
export const projectAgentListQueryKey = (options) => createQueryKey("projectAgentList", options);
|
|
2019
2327
|
/**
|
|
2020
2328
|
* List agents attached to a project
|
|
@@ -2175,6 +2483,102 @@ export const projectMemoryStoreRemoveMutation = (options) => {
|
|
|
2175
2483
|
};
|
|
2176
2484
|
return mutationOptions;
|
|
2177
2485
|
};
|
|
2486
|
+
export const projectSkillListQueryKey = (options) => createQueryKey("projectSkillList", options);
|
|
2487
|
+
/**
|
|
2488
|
+
* List skills attached to a project
|
|
2489
|
+
*/
|
|
2490
|
+
export const projectSkillListOptions = (options) => queryOptions({
|
|
2491
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2492
|
+
const { data } = await RenClient.__registry.get().project.skill.list({
|
|
2493
|
+
...options,
|
|
2494
|
+
...queryKey[0],
|
|
2495
|
+
signal,
|
|
2496
|
+
throwOnError: true,
|
|
2497
|
+
});
|
|
2498
|
+
return data;
|
|
2499
|
+
},
|
|
2500
|
+
queryKey: projectSkillListQueryKey(options),
|
|
2501
|
+
});
|
|
2502
|
+
/**
|
|
2503
|
+
* Attach a skill to a project
|
|
2504
|
+
*/
|
|
2505
|
+
export const projectSkillAddMutation = (options) => {
|
|
2506
|
+
const mutationOptions = {
|
|
2507
|
+
mutationFn: async (fnOptions) => {
|
|
2508
|
+
const { data } = await RenClient.__registry.get().project.skill.add({
|
|
2509
|
+
...options,
|
|
2510
|
+
...fnOptions,
|
|
2511
|
+
throwOnError: true,
|
|
2512
|
+
});
|
|
2513
|
+
return data;
|
|
2514
|
+
},
|
|
2515
|
+
};
|
|
2516
|
+
return mutationOptions;
|
|
2517
|
+
};
|
|
2518
|
+
/**
|
|
2519
|
+
* Detach a skill from a project
|
|
2520
|
+
*/
|
|
2521
|
+
export const projectSkillRemoveMutation = (options) => {
|
|
2522
|
+
const mutationOptions = {
|
|
2523
|
+
mutationFn: async (fnOptions) => {
|
|
2524
|
+
const { data } = await RenClient.__registry.get().project.skill.remove({
|
|
2525
|
+
...options,
|
|
2526
|
+
...fnOptions,
|
|
2527
|
+
throwOnError: true,
|
|
2528
|
+
});
|
|
2529
|
+
return data;
|
|
2530
|
+
},
|
|
2531
|
+
};
|
|
2532
|
+
return mutationOptions;
|
|
2533
|
+
};
|
|
2534
|
+
export const projectMcpListQueryKey = (options) => createQueryKey("projectMcpList", options);
|
|
2535
|
+
/**
|
|
2536
|
+
* List MCPs attached to a project
|
|
2537
|
+
*/
|
|
2538
|
+
export const projectMcpListOptions = (options) => queryOptions({
|
|
2539
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2540
|
+
const { data } = await RenClient.__registry.get().project.mcp.list({
|
|
2541
|
+
...options,
|
|
2542
|
+
...queryKey[0],
|
|
2543
|
+
signal,
|
|
2544
|
+
throwOnError: true,
|
|
2545
|
+
});
|
|
2546
|
+
return data;
|
|
2547
|
+
},
|
|
2548
|
+
queryKey: projectMcpListQueryKey(options),
|
|
2549
|
+
});
|
|
2550
|
+
/**
|
|
2551
|
+
* Attach an MCP to a project
|
|
2552
|
+
*/
|
|
2553
|
+
export const projectMcpAddMutation = (options) => {
|
|
2554
|
+
const mutationOptions = {
|
|
2555
|
+
mutationFn: async (fnOptions) => {
|
|
2556
|
+
const { data } = await RenClient.__registry.get().project.mcp.add({
|
|
2557
|
+
...options,
|
|
2558
|
+
...fnOptions,
|
|
2559
|
+
throwOnError: true,
|
|
2560
|
+
});
|
|
2561
|
+
return data;
|
|
2562
|
+
},
|
|
2563
|
+
};
|
|
2564
|
+
return mutationOptions;
|
|
2565
|
+
};
|
|
2566
|
+
/**
|
|
2567
|
+
* Detach an MCP from a project
|
|
2568
|
+
*/
|
|
2569
|
+
export const projectMcpRemoveMutation = (options) => {
|
|
2570
|
+
const mutationOptions = {
|
|
2571
|
+
mutationFn: async (fnOptions) => {
|
|
2572
|
+
const { data } = await RenClient.__registry.get().project.mcp.remove({
|
|
2573
|
+
...options,
|
|
2574
|
+
...fnOptions,
|
|
2575
|
+
throwOnError: true,
|
|
2576
|
+
});
|
|
2577
|
+
return data;
|
|
2578
|
+
},
|
|
2579
|
+
};
|
|
2580
|
+
return mutationOptions;
|
|
2581
|
+
};
|
|
2178
2582
|
/**
|
|
2179
2583
|
* Archive a project
|
|
2180
2584
|
*/
|
|
@@ -2471,6 +2875,8 @@ export const sessionListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
|
2471
2875
|
});
|
|
2472
2876
|
/**
|
|
2473
2877
|
* Create a session
|
|
2878
|
+
*
|
|
2879
|
+
* Starts an async, sandbox-warming session creation job and returns a jobId to poll via session.createStatus.
|
|
2474
2880
|
*/
|
|
2475
2881
|
export const sessionCreateMutation = (options) => {
|
|
2476
2882
|
const mutationOptions = {
|
|
@@ -2485,6 +2891,22 @@ export const sessionCreateMutation = (options) => {
|
|
|
2485
2891
|
};
|
|
2486
2892
|
return mutationOptions;
|
|
2487
2893
|
};
|
|
2894
|
+
export const sessionCreateStatusQueryKey = (options) => createQueryKey("sessionCreateStatus", options);
|
|
2895
|
+
/**
|
|
2896
|
+
* Poll a session creation job
|
|
2897
|
+
*/
|
|
2898
|
+
export const sessionCreateStatusOptions = (options) => queryOptions({
|
|
2899
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2900
|
+
const { data } = await RenClient.__registry.get().session.createStatus({
|
|
2901
|
+
...options,
|
|
2902
|
+
...queryKey[0],
|
|
2903
|
+
signal,
|
|
2904
|
+
throwOnError: true,
|
|
2905
|
+
});
|
|
2906
|
+
return data;
|
|
2907
|
+
},
|
|
2908
|
+
queryKey: sessionCreateStatusQueryKey(options),
|
|
2909
|
+
});
|
|
2488
2910
|
export const sessionGetQueryKey = (options) => createQueryKey("sessionGet", options);
|
|
2489
2911
|
/**
|
|
2490
2912
|
* Get a session
|
|
@@ -2598,6 +3020,24 @@ export const sessionTracesListInfiniteOptions = (options) => infiniteQueryOption
|
|
|
2598
3020
|
},
|
|
2599
3021
|
queryKey: sessionTracesListInfiniteQueryKey(options),
|
|
2600
3022
|
});
|
|
3023
|
+
export const sessionUsageQueryKey = (options) => createQueryKey("sessionUsage", options);
|
|
3024
|
+
/**
|
|
3025
|
+
* Get a session's credit usage
|
|
3026
|
+
*
|
|
3027
|
+
* Total Ren credits consumed by this session and all of its child/subagent sessions, with a breakdown by usage source and operation. Served from the local hourly usage rollup; the value may lag live spend by up to roughly one hour plus a meter cycle.
|
|
3028
|
+
*/
|
|
3029
|
+
export const sessionUsageOptions = (options) => queryOptions({
|
|
3030
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3031
|
+
const { data } = await RenClient.__registry.get().session.usage({
|
|
3032
|
+
...options,
|
|
3033
|
+
...queryKey[0],
|
|
3034
|
+
signal,
|
|
3035
|
+
throwOnError: true,
|
|
3036
|
+
});
|
|
3037
|
+
return data;
|
|
3038
|
+
},
|
|
3039
|
+
queryKey: sessionUsageQueryKey(options),
|
|
3040
|
+
});
|
|
2601
3041
|
export const sessionAuthRequirementsQueryKey = (options) => createQueryKey("sessionAuthRequirements", options);
|
|
2602
3042
|
/**
|
|
2603
3043
|
* Compute MCP and skill credential requirements for a session
|
|
@@ -2722,7 +3162,7 @@ export const skillCreateMutation = (options) => {
|
|
|
2722
3162
|
return mutationOptions;
|
|
2723
3163
|
};
|
|
2724
3164
|
/**
|
|
2725
|
-
* Search skills across
|
|
3165
|
+
* Search skills across private, org, and published tiers
|
|
2726
3166
|
*/
|
|
2727
3167
|
export const skillSearchMutation = (options) => {
|
|
2728
3168
|
const mutationOptions = {
|
|
@@ -2865,6 +3305,22 @@ export const skillCopyMutation = (options) => {
|
|
|
2865
3305
|
};
|
|
2866
3306
|
return mutationOptions;
|
|
2867
3307
|
};
|
|
3308
|
+
/**
|
|
3309
|
+
* Promote a private skill to org scope in place
|
|
3310
|
+
*/
|
|
3311
|
+
export const skillPromoteMutation = (options) => {
|
|
3312
|
+
const mutationOptions = {
|
|
3313
|
+
mutationFn: async (fnOptions) => {
|
|
3314
|
+
const { data } = await RenClient.__registry.get().skill.promote({
|
|
3315
|
+
...options,
|
|
3316
|
+
...fnOptions,
|
|
3317
|
+
throwOnError: true,
|
|
3318
|
+
});
|
|
3319
|
+
return data;
|
|
3320
|
+
},
|
|
3321
|
+
};
|
|
3322
|
+
return mutationOptions;
|
|
3323
|
+
};
|
|
2868
3324
|
export const skillVersionListQueryKey = (options) => createQueryKey("skillVersionList", options);
|
|
2869
3325
|
/**
|
|
2870
3326
|
* List skill versions
|
|
@@ -3309,6 +3765,22 @@ export const slackInstallMutation = (options) => {
|
|
|
3309
3765
|
};
|
|
3310
3766
|
return mutationOptions;
|
|
3311
3767
|
};
|
|
3768
|
+
export const slackOnboardingResolveQueryKey = (options) => createQueryKey("slackOnboardingResolve", options);
|
|
3769
|
+
/**
|
|
3770
|
+
* Resolve the next onboarding step after Sign in with Slack
|
|
3771
|
+
*/
|
|
3772
|
+
export const slackOnboardingResolveOptions = (options) => queryOptions({
|
|
3773
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3774
|
+
const { data } = await RenClient.__registry.get().slack.onboarding.resolve({
|
|
3775
|
+
...options,
|
|
3776
|
+
...queryKey[0],
|
|
3777
|
+
signal,
|
|
3778
|
+
throwOnError: true,
|
|
3779
|
+
});
|
|
3780
|
+
return data;
|
|
3781
|
+
},
|
|
3782
|
+
queryKey: slackOnboardingResolveQueryKey(options),
|
|
3783
|
+
});
|
|
3312
3784
|
export const slackStatusQueryKey = (options) => createQueryKey("slackStatus", options);
|
|
3313
3785
|
/**
|
|
3314
3786
|
* Report whether Slack is installed for the caller's org
|
|
@@ -3614,7 +4086,7 @@ export const linearMappingsListOptions = (options) => queryOptions({
|
|
|
3614
4086
|
queryKey: linearMappingsListQueryKey(options),
|
|
3615
4087
|
});
|
|
3616
4088
|
/**
|
|
3617
|
-
* Map a Linear project to a Ren project
|
|
4089
|
+
* Map a Linear project to a Ren project (idempotent upsert)
|
|
3618
4090
|
*/
|
|
3619
4091
|
export const linearMappingsCreateMutation = (options) => {
|
|
3620
4092
|
const mutationOptions = {
|
|
@@ -3891,6 +4363,22 @@ export const credentialArchiveMutation = (options) => {
|
|
|
3891
4363
|
};
|
|
3892
4364
|
return mutationOptions;
|
|
3893
4365
|
};
|
|
4366
|
+
/**
|
|
4367
|
+
* Copy or move a credential to another vault
|
|
4368
|
+
*/
|
|
4369
|
+
export const credentialTransferMutation = (options) => {
|
|
4370
|
+
const mutationOptions = {
|
|
4371
|
+
mutationFn: async (fnOptions) => {
|
|
4372
|
+
const { data } = await RenClient.__registry.get().credential.transfer({
|
|
4373
|
+
...options,
|
|
4374
|
+
...fnOptions,
|
|
4375
|
+
throwOnError: true,
|
|
4376
|
+
});
|
|
4377
|
+
return data;
|
|
4378
|
+
},
|
|
4379
|
+
};
|
|
4380
|
+
return mutationOptions;
|
|
4381
|
+
};
|
|
3894
4382
|
/**
|
|
3895
4383
|
* Begin SDK-delegated OAuth flow against an MCP
|
|
3896
4384
|
*/
|
|
@@ -4116,6 +4604,22 @@ export const registryBlueprintGetOptions = (options) => queryOptions({
|
|
|
4116
4604
|
},
|
|
4117
4605
|
queryKey: registryBlueprintGetQueryKey(options),
|
|
4118
4606
|
});
|
|
4607
|
+
export const registryPublisherGetQueryKey = (options) => createQueryKey("registryPublisherGet", options);
|
|
4608
|
+
/**
|
|
4609
|
+
* Get a registry publisher by slug
|
|
4610
|
+
*/
|
|
4611
|
+
export const registryPublisherGetOptions = (options) => queryOptions({
|
|
4612
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
4613
|
+
const { data } = await RenClient.__registry.get().registry.publisher.get({
|
|
4614
|
+
...options,
|
|
4615
|
+
...queryKey[0],
|
|
4616
|
+
signal,
|
|
4617
|
+
throwOnError: true,
|
|
4618
|
+
});
|
|
4619
|
+
return data;
|
|
4620
|
+
},
|
|
4621
|
+
queryKey: registryPublisherGetQueryKey(options),
|
|
4622
|
+
});
|
|
4119
4623
|
export const registryReplayGetQueryKey = (options) => createQueryKey("registryReplayGet", options);
|
|
4120
4624
|
/**
|
|
4121
4625
|
* Get a registry replay by slug
|