@renai-labs/sdk 0.1.27 → 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 +164 -88
- package/dist/generated/@tanstack/react-query.gen.js +87 -55
- package/dist/generated/internal/types.gen.d.ts +249 -125
- package/dist/generated/sdk.gen.d.ts +39 -31
- package/dist/generated/sdk.gen.js +62 -61
- package/dist/generated/types.gen.d.ts +1250 -1084
- package/dist/generated/zod.gen.d.ts +1043 -442
- package/dist/generated/zod.gen.js +220 -122
- 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,15 +1393,15 @@ export const inferenceSubscriptionsListOptions = (options) => queryOptions({
|
|
|
1393
1393
|
});
|
|
1394
1394
|
return data;
|
|
1395
1395
|
},
|
|
1396
|
-
queryKey:
|
|
1396
|
+
queryKey: inferenceProvidersListQueryKey(options),
|
|
1397
1397
|
});
|
|
1398
|
-
export const
|
|
1398
|
+
export const inferenceConnectionsListQueryKey = (options) => createQueryKey("inferenceConnectionsList", options);
|
|
1399
1399
|
/**
|
|
1400
|
-
*
|
|
1400
|
+
* List organization inference connections and subscriptions
|
|
1401
1401
|
*/
|
|
1402
|
-
export const
|
|
1402
|
+
export const inferenceConnectionsListOptions = (options) => queryOptions({
|
|
1403
1403
|
queryFn: async ({ queryKey, signal }) => {
|
|
1404
|
-
const { data } = await RenClient.__registry.get().inference.
|
|
1404
|
+
const { data } = await RenClient.__registry.get().inference.connections.list({
|
|
1405
1405
|
...options,
|
|
1406
1406
|
...queryKey[0],
|
|
1407
1407
|
signal,
|
|
@@ -1409,31 +1409,31 @@ export const inferenceSubscriptionsBudgetOptions = (options) => queryOptions({
|
|
|
1409
1409
|
});
|
|
1410
1410
|
return data;
|
|
1411
1411
|
},
|
|
1412
|
-
queryKey:
|
|
1412
|
+
queryKey: inferenceConnectionsListQueryKey(options),
|
|
1413
1413
|
});
|
|
1414
|
+
export const inferenceConnectionsGetQueryKey = (options) => createQueryKey("inferenceConnectionsGet", options);
|
|
1414
1415
|
/**
|
|
1415
|
-
*
|
|
1416
|
+
* Read one inference connection
|
|
1416
1417
|
*/
|
|
1417
|
-
export const
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
};
|
|
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
|
+
});
|
|
1430
1430
|
/**
|
|
1431
|
-
*
|
|
1431
|
+
* Begin connecting any inference service, whatever the provider asks for
|
|
1432
1432
|
*/
|
|
1433
|
-
export const
|
|
1433
|
+
export const inferenceAuthorizationsBeginMutation = (options) => {
|
|
1434
1434
|
const mutationOptions = {
|
|
1435
1435
|
mutationFn: async (fnOptions) => {
|
|
1436
|
-
const { data } = await RenClient.__registry.get().inference.
|
|
1436
|
+
const { data } = await RenClient.__registry.get().inference.authorizations.begin({
|
|
1437
1437
|
...options,
|
|
1438
1438
|
...fnOptions,
|
|
1439
1439
|
throwOnError: true,
|
|
@@ -1443,13 +1443,29 @@ export const inferenceSubscriptionsOauthCompleteMutation = (options) => {
|
|
|
1443
1443
|
};
|
|
1444
1444
|
return mutationOptions;
|
|
1445
1445
|
};
|
|
1446
|
+
export const inferenceAuthorizationsPollQueryKey = (options) => createQueryKey("inferenceAuthorizationsPoll", options);
|
|
1446
1447
|
/**
|
|
1447
|
-
*
|
|
1448
|
+
* Check whether a connection attempt has been approved
|
|
1448
1449
|
*/
|
|
1449
|
-
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) => {
|
|
1450
1466
|
const mutationOptions = {
|
|
1451
1467
|
mutationFn: async (fnOptions) => {
|
|
1452
|
-
const { data } = await RenClient.__registry.get().inference.
|
|
1468
|
+
const { data } = await RenClient.__registry.get().inference.authorizations.complete({
|
|
1453
1469
|
...options,
|
|
1454
1470
|
...fnOptions,
|
|
1455
1471
|
throwOnError: true,
|
|
@@ -1459,13 +1475,29 @@ export const inferenceSubscriptionsCodexDeviceStartMutation = (options) => {
|
|
|
1459
1475
|
};
|
|
1460
1476
|
return mutationOptions;
|
|
1461
1477
|
};
|
|
1462
|
-
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);
|
|
1463
1495
|
/**
|
|
1464
|
-
*
|
|
1496
|
+
* Estimate pooled subscription capacity
|
|
1465
1497
|
*/
|
|
1466
|
-
export const
|
|
1498
|
+
export const inferenceSubscriptionsBudgetOptions = (options) => queryOptions({
|
|
1467
1499
|
queryFn: async ({ queryKey, signal }) => {
|
|
1468
|
-
const { data } = await RenClient.__registry.get().inference.subscriptions.
|
|
1500
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.budget({
|
|
1469
1501
|
...options,
|
|
1470
1502
|
...queryKey[0],
|
|
1471
1503
|
signal,
|
|
@@ -1473,7 +1505,7 @@ export const inferenceSubscriptionsCodexDevicePollOptions = (options) => queryOp
|
|
|
1473
1505
|
});
|
|
1474
1506
|
return data;
|
|
1475
1507
|
},
|
|
1476
|
-
queryKey:
|
|
1508
|
+
queryKey: inferenceSubscriptionsBudgetQueryKey(options),
|
|
1477
1509
|
});
|
|
1478
1510
|
export const inferenceHarnessesCodexCatalogQueryKey = (options) => createQueryKey("inferenceHarnessesCodexCatalog", options);
|
|
1479
1511
|
/**
|
|
@@ -1492,23 +1524,7 @@ export const inferenceHarnessesCodexCatalogOptions = (options) => queryOptions({
|
|
|
1492
1524
|
queryKey: inferenceHarnessesCodexCatalogQueryKey(options),
|
|
1493
1525
|
});
|
|
1494
1526
|
/**
|
|
1495
|
-
*
|
|
1496
|
-
*/
|
|
1497
|
-
export const inferenceSubscriptionsConnectCodexMutation = (options) => {
|
|
1498
|
-
const mutationOptions = {
|
|
1499
|
-
mutationFn: async (fnOptions) => {
|
|
1500
|
-
const { data } = await RenClient.__registry.get().inference.subscriptions.connectCodex({
|
|
1501
|
-
...options,
|
|
1502
|
-
...fnOptions,
|
|
1503
|
-
throwOnError: true,
|
|
1504
|
-
});
|
|
1505
|
-
return data;
|
|
1506
|
-
},
|
|
1507
|
-
};
|
|
1508
|
-
return mutationOptions;
|
|
1509
|
-
};
|
|
1510
|
-
/**
|
|
1511
|
-
* Remove a subscription seat
|
|
1527
|
+
* Remove a subscription
|
|
1512
1528
|
*/
|
|
1513
1529
|
export const inferenceSubscriptionsRemoveMutation = (options) => {
|
|
1514
1530
|
const mutationOptions = {
|
|
@@ -1524,7 +1540,7 @@ export const inferenceSubscriptionsRemoveMutation = (options) => {
|
|
|
1524
1540
|
return mutationOptions;
|
|
1525
1541
|
};
|
|
1526
1542
|
/**
|
|
1527
|
-
* Rename a subscription
|
|
1543
|
+
* Rename a subscription
|
|
1528
1544
|
*/
|
|
1529
1545
|
export const inferenceSubscriptionsRenameMutation = (options) => {
|
|
1530
1546
|
const mutationOptions = {
|
|
@@ -2175,6 +2191,22 @@ export const modelListOptions = (options) => queryOptions({
|
|
|
2175
2191
|
},
|
|
2176
2192
|
queryKey: modelListQueryKey(options),
|
|
2177
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
|
+
};
|
|
2178
2210
|
/**
|
|
2179
2211
|
* Start onboarding chat with Ren agent
|
|
2180
2212
|
*
|