@renai-labs/sdk 0.1.25 → 0.1.27
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 +284 -52
- package/dist/generated/@tanstack/react-query.gen.js +251 -4
- package/dist/generated/internal/types.gen.d.ts +125 -125
- package/dist/generated/sdk.gen.d.ts +96 -6
- package/dist/generated/sdk.gen.js +186 -6
- package/dist/generated/types.gen.d.ts +2140 -1171
- package/dist/generated/zod.gen.d.ts +1060 -31
- package/dist/generated/zod.gen.js +362 -19
- package/package.json +1 -1
|
@@ -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
|
|
@@ -1363,13 +1395,109 @@ export const inferenceSubscriptionsListOptions = (options) => queryOptions({
|
|
|
1363
1395
|
},
|
|
1364
1396
|
queryKey: inferenceSubscriptionsListQueryKey(options),
|
|
1365
1397
|
});
|
|
1398
|
+
export const inferenceSubscriptionsBudgetQueryKey = (options) => createQueryKey("inferenceSubscriptionsBudget", options);
|
|
1366
1399
|
/**
|
|
1367
|
-
*
|
|
1400
|
+
* Estimate pooled subscription capacity
|
|
1368
1401
|
*/
|
|
1369
|
-
export const
|
|
1402
|
+
export const inferenceSubscriptionsBudgetOptions = (options) => queryOptions({
|
|
1403
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1404
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.budget({
|
|
1405
|
+
...options,
|
|
1406
|
+
...queryKey[0],
|
|
1407
|
+
signal,
|
|
1408
|
+
throwOnError: true,
|
|
1409
|
+
});
|
|
1410
|
+
return data;
|
|
1411
|
+
},
|
|
1412
|
+
queryKey: inferenceSubscriptionsBudgetQueryKey(options),
|
|
1413
|
+
});
|
|
1414
|
+
/**
|
|
1415
|
+
* Begin connecting an Anthropic subscription over OAuth
|
|
1416
|
+
*/
|
|
1417
|
+
export const inferenceSubscriptionsOauthStartMutation = (options) => {
|
|
1370
1418
|
const mutationOptions = {
|
|
1371
1419
|
mutationFn: async (fnOptions) => {
|
|
1372
|
-
const { data } = await RenClient.__registry.get().inference.subscriptions.
|
|
1420
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.oauth.start({
|
|
1421
|
+
...options,
|
|
1422
|
+
...fnOptions,
|
|
1423
|
+
throwOnError: true,
|
|
1424
|
+
});
|
|
1425
|
+
return data;
|
|
1426
|
+
},
|
|
1427
|
+
};
|
|
1428
|
+
return mutationOptions;
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* Finish connecting an Anthropic subscription over OAuth
|
|
1432
|
+
*/
|
|
1433
|
+
export const inferenceSubscriptionsOauthCompleteMutation = (options) => {
|
|
1434
|
+
const mutationOptions = {
|
|
1435
|
+
mutationFn: async (fnOptions) => {
|
|
1436
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.oauth.complete({
|
|
1437
|
+
...options,
|
|
1438
|
+
...fnOptions,
|
|
1439
|
+
throwOnError: true,
|
|
1440
|
+
});
|
|
1441
|
+
return data;
|
|
1442
|
+
},
|
|
1443
|
+
};
|
|
1444
|
+
return mutationOptions;
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* Begin connecting a Codex subscription with a device code
|
|
1448
|
+
*/
|
|
1449
|
+
export const inferenceSubscriptionsCodexDeviceStartMutation = (options) => {
|
|
1450
|
+
const mutationOptions = {
|
|
1451
|
+
mutationFn: async (fnOptions) => {
|
|
1452
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.codex.device.start({
|
|
1453
|
+
...options,
|
|
1454
|
+
...fnOptions,
|
|
1455
|
+
throwOnError: true,
|
|
1456
|
+
});
|
|
1457
|
+
return data;
|
|
1458
|
+
},
|
|
1459
|
+
};
|
|
1460
|
+
return mutationOptions;
|
|
1461
|
+
};
|
|
1462
|
+
export const inferenceSubscriptionsCodexDevicePollQueryKey = (options) => createQueryKey("inferenceSubscriptionsCodexDevicePoll", options);
|
|
1463
|
+
/**
|
|
1464
|
+
* Check whether a Codex device authorization has been approved
|
|
1465
|
+
*/
|
|
1466
|
+
export const inferenceSubscriptionsCodexDevicePollOptions = (options) => queryOptions({
|
|
1467
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1468
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.codex.device.poll({
|
|
1469
|
+
...options,
|
|
1470
|
+
...queryKey[0],
|
|
1471
|
+
signal,
|
|
1472
|
+
throwOnError: true,
|
|
1473
|
+
});
|
|
1474
|
+
return data;
|
|
1475
|
+
},
|
|
1476
|
+
queryKey: inferenceSubscriptionsCodexDevicePollQueryKey(options),
|
|
1477
|
+
});
|
|
1478
|
+
export const inferenceHarnessesCodexCatalogQueryKey = (options) => createQueryKey("inferenceHarnessesCodexCatalog", options);
|
|
1479
|
+
/**
|
|
1480
|
+
* List the Codex models Ren publishes, and the reasoning efforts each accepts
|
|
1481
|
+
*/
|
|
1482
|
+
export const inferenceHarnessesCodexCatalogOptions = (options) => queryOptions({
|
|
1483
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1484
|
+
const { data } = await RenClient.__registry.get().inference.harnesses.codex.catalog({
|
|
1485
|
+
...options,
|
|
1486
|
+
...queryKey[0],
|
|
1487
|
+
signal,
|
|
1488
|
+
throwOnError: true,
|
|
1489
|
+
});
|
|
1490
|
+
return data;
|
|
1491
|
+
},
|
|
1492
|
+
queryKey: inferenceHarnessesCodexCatalogQueryKey(options),
|
|
1493
|
+
});
|
|
1494
|
+
/**
|
|
1495
|
+
* Connect a Codex subscription with a workspace access token
|
|
1496
|
+
*/
|
|
1497
|
+
export const inferenceSubscriptionsConnectCodexMutation = (options) => {
|
|
1498
|
+
const mutationOptions = {
|
|
1499
|
+
mutationFn: async (fnOptions) => {
|
|
1500
|
+
const { data } = await RenClient.__registry.get().inference.subscriptions.connectCodex({
|
|
1373
1501
|
...options,
|
|
1374
1502
|
...fnOptions,
|
|
1375
1503
|
throwOnError: true,
|
|
@@ -2050,7 +2178,7 @@ export const modelListOptions = (options) => queryOptions({
|
|
|
2050
2178
|
/**
|
|
2051
2179
|
* Start onboarding chat with Ren agent
|
|
2052
2180
|
*
|
|
2053
|
-
*
|
|
2181
|
+
* 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.
|
|
2054
2182
|
*/
|
|
2055
2183
|
export const onboardingStartMutation = (options) => {
|
|
2056
2184
|
const mutationOptions = {
|
|
@@ -3964,6 +4092,125 @@ export const skillVersionArchiveMutation = (options) => {
|
|
|
3964
4092
|
};
|
|
3965
4093
|
return mutationOptions;
|
|
3966
4094
|
};
|
|
4095
|
+
export const taskListQueryKey = (options) => createQueryKey("taskList", options);
|
|
4096
|
+
/**
|
|
4097
|
+
* List tasks
|
|
4098
|
+
*
|
|
4099
|
+
* 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.
|
|
4100
|
+
*/
|
|
4101
|
+
export const taskListOptions = (options) => queryOptions({
|
|
4102
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
4103
|
+
const { data } = await RenClient.__registry.get().task.list({
|
|
4104
|
+
...options,
|
|
4105
|
+
...queryKey[0],
|
|
4106
|
+
signal,
|
|
4107
|
+
throwOnError: true,
|
|
4108
|
+
});
|
|
4109
|
+
return data;
|
|
4110
|
+
},
|
|
4111
|
+
queryKey: taskListQueryKey(options),
|
|
4112
|
+
});
|
|
4113
|
+
export const taskListInfiniteQueryKey = (options) => createQueryKey("taskList", options, true);
|
|
4114
|
+
/**
|
|
4115
|
+
* List tasks
|
|
4116
|
+
*
|
|
4117
|
+
* 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.
|
|
4118
|
+
*/
|
|
4119
|
+
export const taskListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
4120
|
+
// @ts-ignore
|
|
4121
|
+
{
|
|
4122
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
4123
|
+
// @ts-ignore
|
|
4124
|
+
const page = typeof pageParam === "object"
|
|
4125
|
+
? pageParam
|
|
4126
|
+
: {
|
|
4127
|
+
query: {
|
|
4128
|
+
offset: pageParam,
|
|
4129
|
+
},
|
|
4130
|
+
};
|
|
4131
|
+
const params = createInfiniteParams(queryKey, page);
|
|
4132
|
+
const { data } = await RenClient.__registry.get().task.list({
|
|
4133
|
+
...options,
|
|
4134
|
+
...params,
|
|
4135
|
+
signal,
|
|
4136
|
+
throwOnError: true,
|
|
4137
|
+
});
|
|
4138
|
+
return data;
|
|
4139
|
+
},
|
|
4140
|
+
queryKey: taskListInfiniteQueryKey(options),
|
|
4141
|
+
});
|
|
4142
|
+
/**
|
|
4143
|
+
* Create a task
|
|
4144
|
+
*
|
|
4145
|
+
* 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.
|
|
4146
|
+
*/
|
|
4147
|
+
export const taskCreateMutation = (options) => {
|
|
4148
|
+
const mutationOptions = {
|
|
4149
|
+
mutationFn: async (fnOptions) => {
|
|
4150
|
+
const { data } = await RenClient.__registry.get().task.create({
|
|
4151
|
+
...options,
|
|
4152
|
+
...fnOptions,
|
|
4153
|
+
throwOnError: true,
|
|
4154
|
+
});
|
|
4155
|
+
return data;
|
|
4156
|
+
},
|
|
4157
|
+
};
|
|
4158
|
+
return mutationOptions;
|
|
4159
|
+
};
|
|
4160
|
+
/**
|
|
4161
|
+
* Archive a task
|
|
4162
|
+
*
|
|
4163
|
+
* Soft delete. The task leaves every list; its activity log survives.
|
|
4164
|
+
*/
|
|
4165
|
+
export const taskArchiveMutation = (options) => {
|
|
4166
|
+
const mutationOptions = {
|
|
4167
|
+
mutationFn: async (fnOptions) => {
|
|
4168
|
+
const { data } = await RenClient.__registry.get().task.archive({
|
|
4169
|
+
...options,
|
|
4170
|
+
...fnOptions,
|
|
4171
|
+
throwOnError: true,
|
|
4172
|
+
});
|
|
4173
|
+
return data;
|
|
4174
|
+
},
|
|
4175
|
+
};
|
|
4176
|
+
return mutationOptions;
|
|
4177
|
+
};
|
|
4178
|
+
export const taskGetQueryKey = (options) => createQueryKey("taskGet", options);
|
|
4179
|
+
/**
|
|
4180
|
+
* Get a task
|
|
4181
|
+
*
|
|
4182
|
+
* 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.
|
|
4183
|
+
*/
|
|
4184
|
+
export const taskGetOptions = (options) => queryOptions({
|
|
4185
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
4186
|
+
const { data } = await RenClient.__registry.get().task.get({
|
|
4187
|
+
...options,
|
|
4188
|
+
...queryKey[0],
|
|
4189
|
+
signal,
|
|
4190
|
+
throwOnError: true,
|
|
4191
|
+
});
|
|
4192
|
+
return data;
|
|
4193
|
+
},
|
|
4194
|
+
queryKey: taskGetQueryKey(options),
|
|
4195
|
+
});
|
|
4196
|
+
/**
|
|
4197
|
+
* Update a task
|
|
4198
|
+
*
|
|
4199
|
+
* 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`.
|
|
4200
|
+
*/
|
|
4201
|
+
export const taskUpdateMutation = (options) => {
|
|
4202
|
+
const mutationOptions = {
|
|
4203
|
+
mutationFn: async (fnOptions) => {
|
|
4204
|
+
const { data } = await RenClient.__registry.get().task.update({
|
|
4205
|
+
...options,
|
|
4206
|
+
...fnOptions,
|
|
4207
|
+
throwOnError: true,
|
|
4208
|
+
});
|
|
4209
|
+
return data;
|
|
4210
|
+
},
|
|
4211
|
+
};
|
|
4212
|
+
return mutationOptions;
|
|
4213
|
+
};
|
|
3967
4214
|
export const topologyGetQueryKey = (options) => createQueryKey("topologyGet", options);
|
|
3968
4215
|
/**
|
|
3969
4216
|
* Get agent-stack topology
|