@renai-labs/sdk 0.1.26 → 0.1.28
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 +185 -81
- package/dist/generated/@tanstack/react-query.gen.js +98 -50
- package/dist/generated/internal/types.gen.d.ts +249 -125
- package/dist/generated/sdk.gen.d.ts +41 -29
- package/dist/generated/sdk.gen.js +65 -58
- package/dist/generated/types.gen.d.ts +1277 -1004
- package/dist/generated/zod.gen.d.ts +1078 -318
- package/dist/generated/zod.gen.js +225 -51
- package/package.json +1 -1
|
@@ -558,7 +558,7 @@ export const billingUsageQueryKey = (options) => createQueryKey("billingUsage",
|
|
|
558
558
|
/**
|
|
559
559
|
* Get organization-wide credit usage
|
|
560
560
|
*
|
|
561
|
-
*
|
|
561
|
+
* Ren-billed 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. Inference served by the organization's own connected subscription costs Ren nothing and is excluded. 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.
|
|
562
562
|
*/
|
|
563
563
|
export const billingUsageOptions = (options) => queryOptions({
|
|
564
564
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -576,7 +576,7 @@ export const billingUsageInfiniteQueryKey = (options) => createQueryKey("billing
|
|
|
576
576
|
/**
|
|
577
577
|
* Get organization-wide credit usage
|
|
578
578
|
*
|
|
579
|
-
*
|
|
579
|
+
* Ren-billed 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. Inference served by the organization's own connected subscription costs Ren nothing and is excluded. 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.
|
|
580
580
|
*/
|
|
581
581
|
export const billingUsageInfiniteOptions = (options) => infiniteQueryOptions(
|
|
582
582
|
// @ts-ignore
|
|
@@ -1379,13 +1379,13 @@ export const googleConnectMutation = (options) => {
|
|
|
1379
1379
|
};
|
|
1380
1380
|
return mutationOptions;
|
|
1381
1381
|
};
|
|
1382
|
-
export const
|
|
1382
|
+
export const inferenceProvidersListQueryKey = (options) => createQueryKey("inferenceProvidersList", options);
|
|
1383
1383
|
/**
|
|
1384
|
-
* List
|
|
1384
|
+
* List available inference services and authentication methods
|
|
1385
1385
|
*/
|
|
1386
|
-
export const
|
|
1386
|
+
export const inferenceProvidersListOptions = (options) => queryOptions({
|
|
1387
1387
|
queryFn: async ({ queryKey, signal }) => {
|
|
1388
|
-
const { data } = await RenClient.__registry.get().inference.
|
|
1388
|
+
const { data } = await RenClient.__registry.get().inference.providers.list({
|
|
1389
1389
|
...options,
|
|
1390
1390
|
...queryKey[0],
|
|
1391
1391
|
signal,
|
|
@@ -1393,31 +1393,47 @@ export const inferenceSubscriptionsListOptions = (options) => queryOptions({
|
|
|
1393
1393
|
});
|
|
1394
1394
|
return data;
|
|
1395
1395
|
},
|
|
1396
|
-
queryKey:
|
|
1396
|
+
queryKey: inferenceProvidersListQueryKey(options),
|
|
1397
1397
|
});
|
|
1398
|
+
export const inferenceConnectionsListQueryKey = (options) => createQueryKey("inferenceConnectionsList", options);
|
|
1398
1399
|
/**
|
|
1399
|
-
*
|
|
1400
|
+
* List organization inference connections and subscriptions
|
|
1400
1401
|
*/
|
|
1401
|
-
export const
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1402
|
+
export const inferenceConnectionsListOptions = (options) => queryOptions({
|
|
1403
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1404
|
+
const { data } = await RenClient.__registry.get().inference.connections.list({
|
|
1405
|
+
...options,
|
|
1406
|
+
...queryKey[0],
|
|
1407
|
+
signal,
|
|
1408
|
+
throwOnError: true,
|
|
1409
|
+
});
|
|
1410
|
+
return data;
|
|
1411
|
+
},
|
|
1412
|
+
queryKey: inferenceConnectionsListQueryKey(options),
|
|
1413
|
+
});
|
|
1414
|
+
export const inferenceConnectionsGetQueryKey = (options) => createQueryKey("inferenceConnectionsGet", options);
|
|
1415
|
+
/**
|
|
1416
|
+
* Read one inference connection
|
|
1417
|
+
*/
|
|
1418
|
+
export const inferenceConnectionsGetOptions = (options) => queryOptions({
|
|
1419
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1420
|
+
const { data } = await RenClient.__registry.get().inference.connections.get({
|
|
1421
|
+
...options,
|
|
1422
|
+
...queryKey[0],
|
|
1423
|
+
signal,
|
|
1424
|
+
throwOnError: true,
|
|
1425
|
+
});
|
|
1426
|
+
return data;
|
|
1427
|
+
},
|
|
1428
|
+
queryKey: inferenceConnectionsGetQueryKey(options),
|
|
1429
|
+
});
|
|
1414
1430
|
/**
|
|
1415
|
-
*
|
|
1431
|
+
* Begin connecting any inference service, whatever the provider asks for
|
|
1416
1432
|
*/
|
|
1417
|
-
export const
|
|
1433
|
+
export const inferenceAuthorizationsBeginMutation = (options) => {
|
|
1418
1434
|
const mutationOptions = {
|
|
1419
1435
|
mutationFn: async (fnOptions) => {
|
|
1420
|
-
const { data } = await RenClient.__registry.get().inference.
|
|
1436
|
+
const { data } = await RenClient.__registry.get().inference.authorizations.begin({
|
|
1421
1437
|
...options,
|
|
1422
1438
|
...fnOptions,
|
|
1423
1439
|
throwOnError: true,
|
|
@@ -1427,13 +1443,29 @@ export const inferenceSubscriptionsOauthCompleteMutation = (options) => {
|
|
|
1427
1443
|
};
|
|
1428
1444
|
return mutationOptions;
|
|
1429
1445
|
};
|
|
1446
|
+
export const inferenceAuthorizationsPollQueryKey = (options) => createQueryKey("inferenceAuthorizationsPoll", options);
|
|
1430
1447
|
/**
|
|
1431
|
-
*
|
|
1448
|
+
* Check whether a connection attempt has been approved
|
|
1432
1449
|
*/
|
|
1433
|
-
export const
|
|
1450
|
+
export const inferenceAuthorizationsPollOptions = (options) => queryOptions({
|
|
1451
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1452
|
+
const { data } = await RenClient.__registry.get().inference.authorizations.poll({
|
|
1453
|
+
...options,
|
|
1454
|
+
...queryKey[0],
|
|
1455
|
+
signal,
|
|
1456
|
+
throwOnError: true,
|
|
1457
|
+
});
|
|
1458
|
+
return data;
|
|
1459
|
+
},
|
|
1460
|
+
queryKey: inferenceAuthorizationsPollQueryKey(options),
|
|
1461
|
+
});
|
|
1462
|
+
/**
|
|
1463
|
+
* Finish a connection attempt that asked for a pasted code
|
|
1464
|
+
*/
|
|
1465
|
+
export const inferenceAuthorizationsCompleteMutation = (options) => {
|
|
1434
1466
|
const mutationOptions = {
|
|
1435
1467
|
mutationFn: async (fnOptions) => {
|
|
1436
|
-
const { data } = await RenClient.__registry.get().inference.
|
|
1468
|
+
const { data } = await RenClient.__registry.get().inference.authorizations.complete({
|
|
1437
1469
|
...options,
|
|
1438
1470
|
...fnOptions,
|
|
1439
1471
|
throwOnError: true,
|
|
@@ -1443,13 +1475,29 @@ export const inferenceSubscriptionsCodexDeviceStartMutation = (options) => {
|
|
|
1443
1475
|
};
|
|
1444
1476
|
return mutationOptions;
|
|
1445
1477
|
};
|
|
1446
|
-
export const
|
|
1478
|
+
export const inferenceSubscriptionsListQueryKey = (options) => createQueryKey("inferenceSubscriptionsList", options);
|
|
1479
|
+
/**
|
|
1480
|
+
* List organization subscriptions
|
|
1481
|
+
*/
|
|
1482
|
+
export const inferenceSubscriptionsListOptions = (options) => queryOptions({
|
|
1483
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1484
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.list({
|
|
1485
|
+
...options,
|
|
1486
|
+
...queryKey[0],
|
|
1487
|
+
signal,
|
|
1488
|
+
throwOnError: true,
|
|
1489
|
+
});
|
|
1490
|
+
return data;
|
|
1491
|
+
},
|
|
1492
|
+
queryKey: inferenceSubscriptionsListQueryKey(options),
|
|
1493
|
+
});
|
|
1494
|
+
export const inferenceSubscriptionsBudgetQueryKey = (options) => createQueryKey("inferenceSubscriptionsBudget", options);
|
|
1447
1495
|
/**
|
|
1448
|
-
*
|
|
1496
|
+
* Estimate pooled subscription capacity
|
|
1449
1497
|
*/
|
|
1450
|
-
export const
|
|
1498
|
+
export const inferenceSubscriptionsBudgetOptions = (options) => queryOptions({
|
|
1451
1499
|
queryFn: async ({ queryKey, signal }) => {
|
|
1452
|
-
const { data } = await RenClient.__registry.get().inference.subscriptions.
|
|
1500
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.budget({
|
|
1453
1501
|
...options,
|
|
1454
1502
|
...queryKey[0],
|
|
1455
1503
|
signal,
|
|
@@ -1457,7 +1505,7 @@ export const inferenceSubscriptionsCodexDevicePollOptions = (options) => queryOp
|
|
|
1457
1505
|
});
|
|
1458
1506
|
return data;
|
|
1459
1507
|
},
|
|
1460
|
-
queryKey:
|
|
1508
|
+
queryKey: inferenceSubscriptionsBudgetQueryKey(options),
|
|
1461
1509
|
});
|
|
1462
1510
|
export const inferenceHarnessesCodexCatalogQueryKey = (options) => createQueryKey("inferenceHarnessesCodexCatalog", options);
|
|
1463
1511
|
/**
|
|
@@ -1476,23 +1524,7 @@ export const inferenceHarnessesCodexCatalogOptions = (options) => queryOptions({
|
|
|
1476
1524
|
queryKey: inferenceHarnessesCodexCatalogQueryKey(options),
|
|
1477
1525
|
});
|
|
1478
1526
|
/**
|
|
1479
|
-
*
|
|
1480
|
-
*/
|
|
1481
|
-
export const inferenceSubscriptionsConnectCodexMutation = (options) => {
|
|
1482
|
-
const mutationOptions = {
|
|
1483
|
-
mutationFn: async (fnOptions) => {
|
|
1484
|
-
const { data } = await RenClient.__registry.get().inference.subscriptions.connectCodex({
|
|
1485
|
-
...options,
|
|
1486
|
-
...fnOptions,
|
|
1487
|
-
throwOnError: true,
|
|
1488
|
-
});
|
|
1489
|
-
return data;
|
|
1490
|
-
},
|
|
1491
|
-
};
|
|
1492
|
-
return mutationOptions;
|
|
1493
|
-
};
|
|
1494
|
-
/**
|
|
1495
|
-
* Remove a subscription seat
|
|
1527
|
+
* Remove a subscription
|
|
1496
1528
|
*/
|
|
1497
1529
|
export const inferenceSubscriptionsRemoveMutation = (options) => {
|
|
1498
1530
|
const mutationOptions = {
|
|
@@ -1508,7 +1540,7 @@ export const inferenceSubscriptionsRemoveMutation = (options) => {
|
|
|
1508
1540
|
return mutationOptions;
|
|
1509
1541
|
};
|
|
1510
1542
|
/**
|
|
1511
|
-
* Rename a subscription
|
|
1543
|
+
* Rename a subscription
|
|
1512
1544
|
*/
|
|
1513
1545
|
export const inferenceSubscriptionsRenameMutation = (options) => {
|
|
1514
1546
|
const mutationOptions = {
|
|
@@ -2159,6 +2191,22 @@ export const modelListOptions = (options) => queryOptions({
|
|
|
2159
2191
|
},
|
|
2160
2192
|
queryKey: modelListQueryKey(options),
|
|
2161
2193
|
});
|
|
2194
|
+
/**
|
|
2195
|
+
* Claim onboarding composer credits
|
|
2196
|
+
*/
|
|
2197
|
+
export const onboardingRewardMutation = (options) => {
|
|
2198
|
+
const mutationOptions = {
|
|
2199
|
+
mutationFn: async (fnOptions) => {
|
|
2200
|
+
const { data } = await RenClient.__registry.get().onboarding.reward({
|
|
2201
|
+
...options,
|
|
2202
|
+
...fnOptions,
|
|
2203
|
+
throwOnError: true,
|
|
2204
|
+
});
|
|
2205
|
+
return data;
|
|
2206
|
+
},
|
|
2207
|
+
};
|
|
2208
|
+
return mutationOptions;
|
|
2209
|
+
};
|
|
2162
2210
|
/**
|
|
2163
2211
|
* Start onboarding chat with Ren agent
|
|
2164
2212
|
*
|