@renai-labs/sdk 0.1.25 → 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 +256 -52
- package/dist/generated/@tanstack/react-query.gen.js +235 -4
- package/dist/generated/internal/types.gen.d.ts +125 -125
- package/dist/generated/sdk.gen.d.ts +92 -6
- package/dist/generated/sdk.gen.js +180 -6
- package/dist/generated/types.gen.d.ts +1769 -907
- package/dist/generated/zod.gen.d.ts +901 -31
- package/dist/generated/zod.gen.js +286 -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
|
|
@@ -1364,12 +1396,92 @@ export const inferenceSubscriptionsListOptions = (options) => queryOptions({
|
|
|
1364
1396
|
queryKey: inferenceSubscriptionsListQueryKey(options),
|
|
1365
1397
|
});
|
|
1366
1398
|
/**
|
|
1367
|
-
*
|
|
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
|
|
1368
1416
|
*/
|
|
1369
|
-
export const
|
|
1417
|
+
export const inferenceSubscriptionsOauthCompleteMutation = (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.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({
|
|
1373
1485
|
...options,
|
|
1374
1486
|
...fnOptions,
|
|
1375
1487
|
throwOnError: true,
|
|
@@ -2050,7 +2162,7 @@ export const modelListOptions = (options) => queryOptions({
|
|
|
2050
2162
|
/**
|
|
2051
2163
|
* Start onboarding chat with Ren agent
|
|
2052
2164
|
*
|
|
2053
|
-
*
|
|
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.
|
|
2054
2166
|
*/
|
|
2055
2167
|
export const onboardingStartMutation = (options) => {
|
|
2056
2168
|
const mutationOptions = {
|
|
@@ -3964,6 +4076,125 @@ export const skillVersionArchiveMutation = (options) => {
|
|
|
3964
4076
|
};
|
|
3965
4077
|
return mutationOptions;
|
|
3966
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
|
+
};
|
|
3967
4198
|
export const topologyGetQueryKey = (options) => createQueryKey("topologyGet", options);
|
|
3968
4199
|
/**
|
|
3969
4200
|
* Get agent-stack topology
|