@renai-labs/sdk 0.1.24 → 0.1.26
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 +332 -52
- package/dist/generated/@tanstack/react-query.gen.js +347 -4
- package/dist/generated/internal/types.gen.d.ts +133 -126
- package/dist/generated/sdk.gen.d.ts +132 -6
- package/dist/generated/sdk.gen.js +264 -6
- package/dist/generated/types.gen.d.ts +2620 -1450
- package/dist/generated/zod.gen.d.ts +4839 -3909
- package/dist/generated/zod.gen.js +618 -284
- package/package.json +2 -2
|
@@ -27,6 +27,38 @@ const createQueryKey = (id, options, infinite, tags) => {
|
|
|
27
27
|
}
|
|
28
28
|
return [params];
|
|
29
29
|
};
|
|
30
|
+
export const activationGetQueryKey = (options) => createQueryKey("activationGet", options);
|
|
31
|
+
/**
|
|
32
|
+
* Get the organization's onboarding checklist state
|
|
33
|
+
*/
|
|
34
|
+
export const activationGetOptions = (options) => queryOptions({
|
|
35
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
36
|
+
const { data } = await RenClient.__registry.get().activation.get({
|
|
37
|
+
...options,
|
|
38
|
+
...queryKey[0],
|
|
39
|
+
signal,
|
|
40
|
+
throwOnError: true,
|
|
41
|
+
});
|
|
42
|
+
return data;
|
|
43
|
+
},
|
|
44
|
+
queryKey: activationGetQueryKey(options),
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Dismiss the organization's onboarding checklist
|
|
48
|
+
*/
|
|
49
|
+
export const activationDismissMutation = (options) => {
|
|
50
|
+
const mutationOptions = {
|
|
51
|
+
mutationFn: async (fnOptions) => {
|
|
52
|
+
const { data } = await RenClient.__registry.get().activation.dismiss({
|
|
53
|
+
...options,
|
|
54
|
+
...fnOptions,
|
|
55
|
+
throwOnError: true,
|
|
56
|
+
});
|
|
57
|
+
return data;
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
return mutationOptions;
|
|
61
|
+
};
|
|
30
62
|
export const agentListQueryKey = (options) => createQueryKey("agentList", options);
|
|
31
63
|
/**
|
|
32
64
|
* List and search agents
|
|
@@ -395,12 +427,12 @@ export const blueprintPushMutation = (options) => {
|
|
|
395
427
|
return mutationOptions;
|
|
396
428
|
};
|
|
397
429
|
/**
|
|
398
|
-
*
|
|
430
|
+
* Add a blueprint to the caller's workspace
|
|
399
431
|
*/
|
|
400
|
-
export const
|
|
432
|
+
export const blueprintAddMutation = (options) => {
|
|
401
433
|
const mutationOptions = {
|
|
402
434
|
mutationFn: async (fnOptions) => {
|
|
403
|
-
const { data } = await RenClient.__registry.get().blueprint.
|
|
435
|
+
const { data } = await RenClient.__registry.get().blueprint.add({
|
|
404
436
|
...options,
|
|
405
437
|
...fnOptions,
|
|
406
438
|
throwOnError: true,
|
|
@@ -1347,6 +1379,198 @@ export const googleConnectMutation = (options) => {
|
|
|
1347
1379
|
};
|
|
1348
1380
|
return mutationOptions;
|
|
1349
1381
|
};
|
|
1382
|
+
export const inferenceSubscriptionsListQueryKey = (options) => createQueryKey("inferenceSubscriptionsList", options);
|
|
1383
|
+
/**
|
|
1384
|
+
* List organization subscription seats
|
|
1385
|
+
*/
|
|
1386
|
+
export const inferenceSubscriptionsListOptions = (options) => queryOptions({
|
|
1387
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1388
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.list({
|
|
1389
|
+
...options,
|
|
1390
|
+
...queryKey[0],
|
|
1391
|
+
signal,
|
|
1392
|
+
throwOnError: true,
|
|
1393
|
+
});
|
|
1394
|
+
return data;
|
|
1395
|
+
},
|
|
1396
|
+
queryKey: inferenceSubscriptionsListQueryKey(options),
|
|
1397
|
+
});
|
|
1398
|
+
/**
|
|
1399
|
+
* Begin connecting an Anthropic subscription over OAuth
|
|
1400
|
+
*/
|
|
1401
|
+
export const inferenceSubscriptionsOauthStartMutation = (options) => {
|
|
1402
|
+
const mutationOptions = {
|
|
1403
|
+
mutationFn: async (fnOptions) => {
|
|
1404
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.oauth.start({
|
|
1405
|
+
...options,
|
|
1406
|
+
...fnOptions,
|
|
1407
|
+
throwOnError: true,
|
|
1408
|
+
});
|
|
1409
|
+
return data;
|
|
1410
|
+
},
|
|
1411
|
+
};
|
|
1412
|
+
return mutationOptions;
|
|
1413
|
+
};
|
|
1414
|
+
/**
|
|
1415
|
+
* Finish connecting an Anthropic subscription over OAuth
|
|
1416
|
+
*/
|
|
1417
|
+
export const inferenceSubscriptionsOauthCompleteMutation = (options) => {
|
|
1418
|
+
const mutationOptions = {
|
|
1419
|
+
mutationFn: async (fnOptions) => {
|
|
1420
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.oauth.complete({
|
|
1421
|
+
...options,
|
|
1422
|
+
...fnOptions,
|
|
1423
|
+
throwOnError: true,
|
|
1424
|
+
});
|
|
1425
|
+
return data;
|
|
1426
|
+
},
|
|
1427
|
+
};
|
|
1428
|
+
return mutationOptions;
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* Begin connecting a Codex subscription with a device code
|
|
1432
|
+
*/
|
|
1433
|
+
export const inferenceSubscriptionsCodexDeviceStartMutation = (options) => {
|
|
1434
|
+
const mutationOptions = {
|
|
1435
|
+
mutationFn: async (fnOptions) => {
|
|
1436
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.codex.device.start({
|
|
1437
|
+
...options,
|
|
1438
|
+
...fnOptions,
|
|
1439
|
+
throwOnError: true,
|
|
1440
|
+
});
|
|
1441
|
+
return data;
|
|
1442
|
+
},
|
|
1443
|
+
};
|
|
1444
|
+
return mutationOptions;
|
|
1445
|
+
};
|
|
1446
|
+
export const inferenceSubscriptionsCodexDevicePollQueryKey = (options) => createQueryKey("inferenceSubscriptionsCodexDevicePoll", options);
|
|
1447
|
+
/**
|
|
1448
|
+
* Check whether a Codex device authorization has been approved
|
|
1449
|
+
*/
|
|
1450
|
+
export const inferenceSubscriptionsCodexDevicePollOptions = (options) => queryOptions({
|
|
1451
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1452
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.codex.device.poll({
|
|
1453
|
+
...options,
|
|
1454
|
+
...queryKey[0],
|
|
1455
|
+
signal,
|
|
1456
|
+
throwOnError: true,
|
|
1457
|
+
});
|
|
1458
|
+
return data;
|
|
1459
|
+
},
|
|
1460
|
+
queryKey: inferenceSubscriptionsCodexDevicePollQueryKey(options),
|
|
1461
|
+
});
|
|
1462
|
+
export const inferenceHarnessesCodexCatalogQueryKey = (options) => createQueryKey("inferenceHarnessesCodexCatalog", options);
|
|
1463
|
+
/**
|
|
1464
|
+
* List the Codex models Ren publishes, and the reasoning efforts each accepts
|
|
1465
|
+
*/
|
|
1466
|
+
export const inferenceHarnessesCodexCatalogOptions = (options) => queryOptions({
|
|
1467
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1468
|
+
const { data } = await RenClient.__registry.get().inference.harnesses.codex.catalog({
|
|
1469
|
+
...options,
|
|
1470
|
+
...queryKey[0],
|
|
1471
|
+
signal,
|
|
1472
|
+
throwOnError: true,
|
|
1473
|
+
});
|
|
1474
|
+
return data;
|
|
1475
|
+
},
|
|
1476
|
+
queryKey: inferenceHarnessesCodexCatalogQueryKey(options),
|
|
1477
|
+
});
|
|
1478
|
+
/**
|
|
1479
|
+
* Connect a Codex subscription with a workspace access token
|
|
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
|
|
1496
|
+
*/
|
|
1497
|
+
export const inferenceSubscriptionsRemoveMutation = (options) => {
|
|
1498
|
+
const mutationOptions = {
|
|
1499
|
+
mutationFn: async (fnOptions) => {
|
|
1500
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.remove({
|
|
1501
|
+
...options,
|
|
1502
|
+
...fnOptions,
|
|
1503
|
+
throwOnError: true,
|
|
1504
|
+
});
|
|
1505
|
+
return data;
|
|
1506
|
+
},
|
|
1507
|
+
};
|
|
1508
|
+
return mutationOptions;
|
|
1509
|
+
};
|
|
1510
|
+
/**
|
|
1511
|
+
* Rename a subscription seat
|
|
1512
|
+
*/
|
|
1513
|
+
export const inferenceSubscriptionsRenameMutation = (options) => {
|
|
1514
|
+
const mutationOptions = {
|
|
1515
|
+
mutationFn: async (fnOptions) => {
|
|
1516
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.rename({
|
|
1517
|
+
...options,
|
|
1518
|
+
...fnOptions,
|
|
1519
|
+
throwOnError: true,
|
|
1520
|
+
});
|
|
1521
|
+
return data;
|
|
1522
|
+
},
|
|
1523
|
+
};
|
|
1524
|
+
return mutationOptions;
|
|
1525
|
+
};
|
|
1526
|
+
export const inferenceKeysListQueryKey = (options) => createQueryKey("inferenceKeysList", options);
|
|
1527
|
+
/**
|
|
1528
|
+
* List inference keys
|
|
1529
|
+
*/
|
|
1530
|
+
export const inferenceKeysListOptions = (options) => queryOptions({
|
|
1531
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1532
|
+
const { data } = await RenClient.__registry.get().inference.keys.list({
|
|
1533
|
+
...options,
|
|
1534
|
+
...queryKey[0],
|
|
1535
|
+
signal,
|
|
1536
|
+
throwOnError: true,
|
|
1537
|
+
});
|
|
1538
|
+
return data;
|
|
1539
|
+
},
|
|
1540
|
+
queryKey: inferenceKeysListQueryKey(options),
|
|
1541
|
+
});
|
|
1542
|
+
/**
|
|
1543
|
+
* Create an inference key
|
|
1544
|
+
*/
|
|
1545
|
+
export const inferenceKeysCreateMutation = (options) => {
|
|
1546
|
+
const mutationOptions = {
|
|
1547
|
+
mutationFn: async (fnOptions) => {
|
|
1548
|
+
const { data } = await RenClient.__registry.get().inference.keys.create({
|
|
1549
|
+
...options,
|
|
1550
|
+
...fnOptions,
|
|
1551
|
+
throwOnError: true,
|
|
1552
|
+
});
|
|
1553
|
+
return data;
|
|
1554
|
+
},
|
|
1555
|
+
};
|
|
1556
|
+
return mutationOptions;
|
|
1557
|
+
};
|
|
1558
|
+
/**
|
|
1559
|
+
* Revoke an inference key
|
|
1560
|
+
*/
|
|
1561
|
+
export const inferenceKeysRevokeMutation = (options) => {
|
|
1562
|
+
const mutationOptions = {
|
|
1563
|
+
mutationFn: async (fnOptions) => {
|
|
1564
|
+
const { data } = await RenClient.__registry.get().inference.keys.revoke({
|
|
1565
|
+
...options,
|
|
1566
|
+
...fnOptions,
|
|
1567
|
+
throwOnError: true,
|
|
1568
|
+
});
|
|
1569
|
+
return data;
|
|
1570
|
+
},
|
|
1571
|
+
};
|
|
1572
|
+
return mutationOptions;
|
|
1573
|
+
};
|
|
1350
1574
|
export const oauthAppListQueryKey = (options) => createQueryKey("oauthAppList", options);
|
|
1351
1575
|
/**
|
|
1352
1576
|
* List the org's OAuth apps
|
|
@@ -1938,7 +2162,7 @@ export const modelListOptions = (options) => queryOptions({
|
|
|
1938
2162
|
/**
|
|
1939
2163
|
* Start onboarding chat with Ren agent
|
|
1940
2164
|
*
|
|
1941
|
-
*
|
|
2165
|
+
* Starts a background session-creation job on the user's private pod Ren project and prepares the initial prompt with selected MCP/skill context. Poll session.createStatus with the returned jobId.
|
|
1942
2166
|
*/
|
|
1943
2167
|
export const onboardingStartMutation = (options) => {
|
|
1944
2168
|
const mutationOptions = {
|
|
@@ -3852,6 +4076,125 @@ export const skillVersionArchiveMutation = (options) => {
|
|
|
3852
4076
|
};
|
|
3853
4077
|
return mutationOptions;
|
|
3854
4078
|
};
|
|
4079
|
+
export const taskListQueryKey = (options) => createQueryKey("taskList", options);
|
|
4080
|
+
/**
|
|
4081
|
+
* List tasks
|
|
4082
|
+
*
|
|
4083
|
+
* The actionable set by default: `open` and `in_progress` tasks the caller can see, newest first. Pass `includeDone=true` for the full history, including `dismissed` items — do that before creating a task so a previously rejected suggestion is not resurrected.
|
|
4084
|
+
*/
|
|
4085
|
+
export const taskListOptions = (options) => queryOptions({
|
|
4086
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
4087
|
+
const { data } = await RenClient.__registry.get().task.list({
|
|
4088
|
+
...options,
|
|
4089
|
+
...queryKey[0],
|
|
4090
|
+
signal,
|
|
4091
|
+
throwOnError: true,
|
|
4092
|
+
});
|
|
4093
|
+
return data;
|
|
4094
|
+
},
|
|
4095
|
+
queryKey: taskListQueryKey(options),
|
|
4096
|
+
});
|
|
4097
|
+
export const taskListInfiniteQueryKey = (options) => createQueryKey("taskList", options, true);
|
|
4098
|
+
/**
|
|
4099
|
+
* List tasks
|
|
4100
|
+
*
|
|
4101
|
+
* The actionable set by default: `open` and `in_progress` tasks the caller can see, newest first. Pass `includeDone=true` for the full history, including `dismissed` items — do that before creating a task so a previously rejected suggestion is not resurrected.
|
|
4102
|
+
*/
|
|
4103
|
+
export const taskListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
4104
|
+
// @ts-ignore
|
|
4105
|
+
{
|
|
4106
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
4107
|
+
// @ts-ignore
|
|
4108
|
+
const page = typeof pageParam === "object"
|
|
4109
|
+
? pageParam
|
|
4110
|
+
: {
|
|
4111
|
+
query: {
|
|
4112
|
+
offset: pageParam,
|
|
4113
|
+
},
|
|
4114
|
+
};
|
|
4115
|
+
const params = createInfiniteParams(queryKey, page);
|
|
4116
|
+
const { data } = await RenClient.__registry.get().task.list({
|
|
4117
|
+
...options,
|
|
4118
|
+
...params,
|
|
4119
|
+
signal,
|
|
4120
|
+
throwOnError: true,
|
|
4121
|
+
});
|
|
4122
|
+
return data;
|
|
4123
|
+
},
|
|
4124
|
+
queryKey: taskListInfiniteQueryKey(options),
|
|
4125
|
+
});
|
|
4126
|
+
/**
|
|
4127
|
+
* Create a task
|
|
4128
|
+
*
|
|
4129
|
+
* Create an action item. Org-visible by default; `visibility: "private"` keeps it to the calling user. Set `projectId` to bind it to a project (its pod is filled in automatically), or `podId` alone for a pod-wide task.
|
|
4130
|
+
*/
|
|
4131
|
+
export const taskCreateMutation = (options) => {
|
|
4132
|
+
const mutationOptions = {
|
|
4133
|
+
mutationFn: async (fnOptions) => {
|
|
4134
|
+
const { data } = await RenClient.__registry.get().task.create({
|
|
4135
|
+
...options,
|
|
4136
|
+
...fnOptions,
|
|
4137
|
+
throwOnError: true,
|
|
4138
|
+
});
|
|
4139
|
+
return data;
|
|
4140
|
+
},
|
|
4141
|
+
};
|
|
4142
|
+
return mutationOptions;
|
|
4143
|
+
};
|
|
4144
|
+
/**
|
|
4145
|
+
* Archive a task
|
|
4146
|
+
*
|
|
4147
|
+
* Soft delete. The task leaves every list; its activity log survives.
|
|
4148
|
+
*/
|
|
4149
|
+
export const taskArchiveMutation = (options) => {
|
|
4150
|
+
const mutationOptions = {
|
|
4151
|
+
mutationFn: async (fnOptions) => {
|
|
4152
|
+
const { data } = await RenClient.__registry.get().task.archive({
|
|
4153
|
+
...options,
|
|
4154
|
+
...fnOptions,
|
|
4155
|
+
throwOnError: true,
|
|
4156
|
+
});
|
|
4157
|
+
return data;
|
|
4158
|
+
},
|
|
4159
|
+
};
|
|
4160
|
+
return mutationOptions;
|
|
4161
|
+
};
|
|
4162
|
+
export const taskGetQueryKey = (options) => createQueryKey("taskGet", options);
|
|
4163
|
+
/**
|
|
4164
|
+
* Get a task
|
|
4165
|
+
*
|
|
4166
|
+
* Fetch one task by id, with its activity trail embedded by default. The trail says who created the task and records every status change and reassignment along with the actor behind it — read it before editing a task you did not create, so you do not undo somebody else's decision. Pass `includeEvents=false` when you only need the task's current state. Returns 404 when the task is outside the caller's visibility.
|
|
4167
|
+
*/
|
|
4168
|
+
export const taskGetOptions = (options) => queryOptions({
|
|
4169
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
4170
|
+
const { data } = await RenClient.__registry.get().task.get({
|
|
4171
|
+
...options,
|
|
4172
|
+
...queryKey[0],
|
|
4173
|
+
signal,
|
|
4174
|
+
throwOnError: true,
|
|
4175
|
+
});
|
|
4176
|
+
return data;
|
|
4177
|
+
},
|
|
4178
|
+
queryKey: taskGetQueryKey(options),
|
|
4179
|
+
});
|
|
4180
|
+
/**
|
|
4181
|
+
* Update a task
|
|
4182
|
+
*
|
|
4183
|
+
* Partial patch of any mutable field — the single way to change a task. An omitted field is left alone; an explicit `null` clears one, so `assignedToUserId: null` unassigns the human owner and `assignedToProjectAgentId: null` unassigns the agent. Set `status` to `done` when the work is finished, or to `dismissed` to reject a suggestion — a dismissed task stays queryable, so it is not proposed again. The activity log stays precise: a patch touching only `status` records `task.status_changed` and one touching only the assignees records `task.assigned`.
|
|
4184
|
+
*/
|
|
4185
|
+
export const taskUpdateMutation = (options) => {
|
|
4186
|
+
const mutationOptions = {
|
|
4187
|
+
mutationFn: async (fnOptions) => {
|
|
4188
|
+
const { data } = await RenClient.__registry.get().task.update({
|
|
4189
|
+
...options,
|
|
4190
|
+
...fnOptions,
|
|
4191
|
+
throwOnError: true,
|
|
4192
|
+
});
|
|
4193
|
+
return data;
|
|
4194
|
+
},
|
|
4195
|
+
};
|
|
4196
|
+
return mutationOptions;
|
|
4197
|
+
};
|
|
3855
4198
|
export const topologyGetQueryKey = (options) => createQueryKey("topologyGet", options);
|
|
3856
4199
|
/**
|
|
3857
4200
|
* Get agent-stack topology
|