@renai-labs/sdk 0.1.19 → 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.
@@ -115,7 +115,7 @@ export const agentCreateMutation = (options) => {
115
115
  return mutationOptions;
116
116
  };
117
117
  /**
118
- * Search agents across user, org, and registry scopes
118
+ * Search agents across private, org, and published tiers
119
119
  */
120
120
  export const agentSearchMutation = (options) => {
121
121
  const mutationOptions = {
@@ -211,12 +211,12 @@ export const agentPublishMutation = (options) => {
211
211
  return mutationOptions;
212
212
  };
213
213
  /**
214
- * Copy a private agent into org-wide scope, cloning its private dependencies
214
+ * Promote a private agent to org scope in place, cascading to its private dependencies
215
215
  */
216
- export const agentCopyToOrgMutation = (options) => {
216
+ export const agentPromoteMutation = (options) => {
217
217
  const mutationOptions = {
218
218
  mutationFn: async (fnOptions) => {
219
- const { data } = await RenClient.__registry.get().agent.copyToOrg({
219
+ const { data } = await RenClient.__registry.get().agent.promote({
220
220
  ...options,
221
221
  ...fnOptions,
222
222
  throwOnError: true,
@@ -408,6 +408,22 @@ export const blueprintCreateMutation = (options) => {
408
408
  };
409
409
  return mutationOptions;
410
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
+ };
411
427
  /**
412
428
  * Install a blueprint into a pod
413
429
  */
@@ -536,6 +552,53 @@ export const billingGetOptions = (options) => queryOptions({
536
552
  },
537
553
  queryKey: billingGetQueryKey(options),
538
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
+ });
539
602
  export const billingInvoicesQueryKey = (options) => createQueryKey("billingInvoices", options);
540
603
  /**
541
604
  * List invoices for the organization
@@ -579,13 +642,13 @@ export const billingInvoicesInfiniteOptions = (options) => infiniteQueryOptions(
579
642
  },
580
643
  queryKey: billingInvoicesInfiniteQueryKey(options),
581
644
  });
582
- export const billingDailyUsageQueryKey = (options) => createQueryKey("billingDailyUsage", options);
645
+ export const billingInvoicePaymentUrlQueryKey = (options) => createQueryKey("billingInvoicePaymentUrl", options);
583
646
  /**
584
- * Daily credit usage
647
+ * Get a payment URL for an invoice
585
648
  */
586
- export const billingDailyUsageOptions = (options) => queryOptions({
649
+ export const billingInvoicePaymentUrlOptions = (options) => queryOptions({
587
650
  queryFn: async ({ queryKey, signal }) => {
588
- const { data } = await RenClient.__registry.get().billing.dailyUsage({
651
+ const { data } = await RenClient.__registry.get().billing.invoicePaymentUrl({
589
652
  ...options,
590
653
  ...queryKey[0],
591
654
  signal,
@@ -593,15 +656,15 @@ export const billingDailyUsageOptions = (options) => queryOptions({
593
656
  });
594
657
  return data;
595
658
  },
596
- queryKey: billingDailyUsageQueryKey(options),
659
+ queryKey: billingInvoicePaymentUrlQueryKey(options),
597
660
  });
598
- export const billingInvoicePaymentUrlQueryKey = (options) => createQueryKey("billingInvoicePaymentUrl", options);
661
+ export const billingPlansQueryKey = (options) => createQueryKey("billingPlans", options);
599
662
  /**
600
- * Get a payment URL for an invoice
663
+ * List available subscription plans
601
664
  */
602
- export const billingInvoicePaymentUrlOptions = (options) => queryOptions({
665
+ export const billingPlansOptions = (options) => queryOptions({
603
666
  queryFn: async ({ queryKey, signal }) => {
604
- const { data } = await RenClient.__registry.get().billing.invoicePaymentUrl({
667
+ const { data } = await RenClient.__registry.get().billing.plans({
605
668
  ...options,
606
669
  ...queryKey[0],
607
670
  signal,
@@ -609,15 +672,63 @@ export const billingInvoicePaymentUrlOptions = (options) => queryOptions({
609
672
  });
610
673
  return data;
611
674
  },
612
- queryKey: billingInvoicePaymentUrlQueryKey(options),
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),
613
708
  });
614
709
  /**
615
- * Change subscription plan
710
+ * Upgrade or downgrade the current subscription plan
616
711
  */
617
- export const billingUpdatePlanMutation = (options) => {
712
+ export const billingChangePlanMutation = (options) => {
618
713
  const mutationOptions = {
619
714
  mutationFn: async (fnOptions) => {
620
- const { data } = await RenClient.__registry.get().billing.updatePlan({
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
727
+ */
728
+ export const billingCancelMutation = (options) => {
729
+ const mutationOptions = {
730
+ mutationFn: async (fnOptions) => {
731
+ const { data } = await RenClient.__registry.get().billing.cancel({
621
732
  ...options,
622
733
  ...fnOptions,
623
734
  throwOnError: true,
@@ -953,6 +1064,22 @@ export const fileStoreFilesFinalizeUploadMutation = (options) => {
953
1064
  };
954
1065
  return mutationOptions;
955
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
+ });
956
1083
  /**
957
1084
  * Disconnect the org's GitHub App installation
958
1085
  */
@@ -1221,7 +1348,7 @@ export const mcpCreateMutation = (options) => {
1221
1348
  return mutationOptions;
1222
1349
  };
1223
1350
  /**
1224
- * Search MCPs across user, org, and registry scopes
1351
+ * Search MCPs across private, org, and published tiers
1225
1352
  */
1226
1353
  export const mcpSearchMutation = (options) => {
1227
1354
  const mutationOptions = {
@@ -1317,12 +1444,12 @@ export const mcpPublishMutation = (options) => {
1317
1444
  return mutationOptions;
1318
1445
  };
1319
1446
  /**
1320
- * Copy a private MCP into org-wide scope
1447
+ * Promote a private MCP to org scope in place
1321
1448
  */
1322
- export const mcpCopyToOrgMutation = (options) => {
1449
+ export const mcpPromoteMutation = (options) => {
1323
1450
  const mutationOptions = {
1324
1451
  mutationFn: async (fnOptions) => {
1325
- const { data } = await RenClient.__registry.get().mcp.copyToOrg({
1452
+ const { data } = await RenClient.__registry.get().mcp.promote({
1326
1453
  ...options,
1327
1454
  ...fnOptions,
1328
1455
  throwOnError: true,
@@ -1412,6 +1539,42 @@ export const meGetOptions = (options) => queryOptions({
1412
1539
  },
1413
1540
  queryKey: meGetQueryKey(options),
1414
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
+ };
1415
1578
  export const memoryStoreListQueryKey = (options) => createQueryKey("memoryStoreList", options);
1416
1579
  /**
1417
1580
  * List memory stores
@@ -1651,6 +1814,54 @@ export const onboardingSetupPersonalOrgMutation = (options) => {
1651
1814
  };
1652
1815
  return mutationOptions;
1653
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
+ };
1654
1865
  export const patListQueryKey = (options) => createQueryKey("patList", options);
1655
1866
  /**
1656
1867
  * List personal access tokens
@@ -1790,6 +2001,24 @@ export const podUpdateMutation = (options) => {
1790
2001
  };
1791
2002
  return mutationOptions;
1792
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
+ });
1793
2022
  /**
1794
2023
  * Archive a pod
1795
2024
  */
@@ -2047,6 +2276,53 @@ export const projectUpdateMutation = (options) => {
2047
2276
  };
2048
2277
  return mutationOptions;
2049
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
+ });
2050
2326
  export const projectAgentListQueryKey = (options) => createQueryKey("projectAgentList", options);
2051
2327
  /**
2052
2328
  * List agents attached to a project
@@ -2207,6 +2483,102 @@ export const projectMemoryStoreRemoveMutation = (options) => {
2207
2483
  };
2208
2484
  return mutationOptions;
2209
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
+ };
2210
2582
  /**
2211
2583
  * Archive a project
2212
2584
  */
@@ -2503,6 +2875,8 @@ export const sessionListInfiniteOptions = (options) => infiniteQueryOptions(
2503
2875
  });
2504
2876
  /**
2505
2877
  * Create a session
2878
+ *
2879
+ * Starts an async, sandbox-warming session creation job and returns a jobId to poll via session.createStatus.
2506
2880
  */
2507
2881
  export const sessionCreateMutation = (options) => {
2508
2882
  const mutationOptions = {
@@ -2517,6 +2891,22 @@ export const sessionCreateMutation = (options) => {
2517
2891
  };
2518
2892
  return mutationOptions;
2519
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
+ });
2520
2910
  export const sessionGetQueryKey = (options) => createQueryKey("sessionGet", options);
2521
2911
  /**
2522
2912
  * Get a session
@@ -2630,6 +3020,24 @@ export const sessionTracesListInfiniteOptions = (options) => infiniteQueryOption
2630
3020
  },
2631
3021
  queryKey: sessionTracesListInfiniteQueryKey(options),
2632
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
+ });
2633
3041
  export const sessionAuthRequirementsQueryKey = (options) => createQueryKey("sessionAuthRequirements", options);
2634
3042
  /**
2635
3043
  * Compute MCP and skill credential requirements for a session
@@ -2754,7 +3162,7 @@ export const skillCreateMutation = (options) => {
2754
3162
  return mutationOptions;
2755
3163
  };
2756
3164
  /**
2757
- * Search skills across user, org, and registry scopes
3165
+ * Search skills across private, org, and published tiers
2758
3166
  */
2759
3167
  export const skillSearchMutation = (options) => {
2760
3168
  const mutationOptions = {
@@ -2898,12 +3306,12 @@ export const skillCopyMutation = (options) => {
2898
3306
  return mutationOptions;
2899
3307
  };
2900
3308
  /**
2901
- * Copy a private skill into org-wide scope
3309
+ * Promote a private skill to org scope in place
2902
3310
  */
2903
- export const skillCopyToOrgMutation = (options) => {
3311
+ export const skillPromoteMutation = (options) => {
2904
3312
  const mutationOptions = {
2905
3313
  mutationFn: async (fnOptions) => {
2906
- const { data } = await RenClient.__registry.get().skill.copyToOrg({
3314
+ const { data } = await RenClient.__registry.get().skill.promote({
2907
3315
  ...options,
2908
3316
  ...fnOptions,
2909
3317
  throwOnError: true,
@@ -3357,6 +3765,22 @@ export const slackInstallMutation = (options) => {
3357
3765
  };
3358
3766
  return mutationOptions;
3359
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
+ });
3360
3784
  export const slackStatusQueryKey = (options) => createQueryKey("slackStatus", options);
3361
3785
  /**
3362
3786
  * Report whether Slack is installed for the caller's org
@@ -3662,7 +4086,7 @@ export const linearMappingsListOptions = (options) => queryOptions({
3662
4086
  queryKey: linearMappingsListQueryKey(options),
3663
4087
  });
3664
4088
  /**
3665
- * Map a Linear project to a Ren project
4089
+ * Map a Linear project to a Ren project (idempotent upsert)
3666
4090
  */
3667
4091
  export const linearMappingsCreateMutation = (options) => {
3668
4092
  const mutationOptions = {
@@ -3939,6 +4363,22 @@ export const credentialArchiveMutation = (options) => {
3939
4363
  };
3940
4364
  return mutationOptions;
3941
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
+ };
3942
4382
  /**
3943
4383
  * Begin SDK-delegated OAuth flow against an MCP
3944
4384
  */
@@ -4164,6 +4604,22 @@ export const registryBlueprintGetOptions = (options) => queryOptions({
4164
4604
  },
4165
4605
  queryKey: registryBlueprintGetQueryKey(options),
4166
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
+ });
4167
4623
  export const registryReplayGetQueryKey = (options) => createQueryKey("registryReplayGet", options);
4168
4624
  /**
4169
4625
  * Get a registry replay by slug