@renai-labs/sdk 0.1.15 → 0.1.16
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/README.md +3 -3
- package/dist/generated/@tanstack/react-query.gen.d.ts +57 -1
- package/dist/generated/@tanstack/react-query.gen.js +47 -0
- package/dist/generated/internal/types.gen.d.ts +156 -73
- package/dist/generated/sdk.gen.d.ts +11 -1
- package/dist/generated/sdk.gen.js +17 -0
- package/dist/generated/types.gen.d.ts +70 -23
- package/dist/generated/zod.gen.d.ts +91 -64
- package/dist/generated/zod.gen.js +34 -23
- package/package.json +2 -2
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type ProjectGitRepo = {
|
|
5
|
-
url: string;
|
|
6
|
-
baseBranch?: string;
|
|
7
|
-
mountPath?: string;
|
|
8
|
-
};
|
|
9
4
|
export type PermissionConfig = {
|
|
10
5
|
__originalKeys?: Array<string>;
|
|
11
6
|
read?: "allow" | "deny" | "ask" | {
|
|
@@ -139,7 +134,7 @@ export type BlueprintProjectEntry = {
|
|
|
139
134
|
schedule: string;
|
|
140
135
|
timezone: string | null;
|
|
141
136
|
cronTriggerId: string;
|
|
142
|
-
agentId: string;
|
|
137
|
+
agentId: string | null;
|
|
143
138
|
}>;
|
|
144
139
|
};
|
|
145
140
|
export type BlueprintTemplate = {
|
|
@@ -280,7 +275,6 @@ export type TelegramChatMapping = {
|
|
|
280
275
|
chatTitle: string | null;
|
|
281
276
|
chatType: string | null;
|
|
282
277
|
projectId: string;
|
|
283
|
-
defaultProjectAgentId: string | null;
|
|
284
278
|
claimedByUserId: string | null;
|
|
285
279
|
fallbackSenderUserId: string | null;
|
|
286
280
|
allowedSenders: Array<string>;
|
|
@@ -295,7 +289,6 @@ export type TelegramChat = {
|
|
|
295
289
|
chatTitle: string | null;
|
|
296
290
|
chatType: string | null;
|
|
297
291
|
projectId: string;
|
|
298
|
-
defaultProjectAgentId: string | null;
|
|
299
292
|
claimedByUserId: string | null;
|
|
300
293
|
fallbackSenderUserId: string | null;
|
|
301
294
|
allowedSenders: Array<string>;
|
|
@@ -322,7 +315,6 @@ export type ProjectEmailResponse = {
|
|
|
322
315
|
orgId: string;
|
|
323
316
|
podId: string;
|
|
324
317
|
projectId: string;
|
|
325
|
-
defaultProjectAgentId: string | null;
|
|
326
318
|
fallbackSenderUserId: string | null;
|
|
327
319
|
localPart: string;
|
|
328
320
|
createdAt: string;
|
|
@@ -335,7 +327,6 @@ export type SlackChannel = {
|
|
|
335
327
|
id: string;
|
|
336
328
|
name: string;
|
|
337
329
|
projectId: string | null;
|
|
338
|
-
defaultProjectAgentId: string | null;
|
|
339
330
|
fallbackSenderUserId: string | null;
|
|
340
331
|
projectName: string | null;
|
|
341
332
|
};
|
|
@@ -365,7 +356,7 @@ export type WebhookTriggerCreateResult = {
|
|
|
365
356
|
export type WebhookTrigger = {
|
|
366
357
|
id: string;
|
|
367
358
|
projectId: string;
|
|
368
|
-
projectAgentId: string;
|
|
359
|
+
projectAgentId: string | null;
|
|
369
360
|
senderUserId: string;
|
|
370
361
|
provider: "generic";
|
|
371
362
|
providerInstallId: string | null;
|
|
@@ -381,7 +372,7 @@ export type WebhookTrigger = {
|
|
|
381
372
|
export type CronTrigger = {
|
|
382
373
|
id: string;
|
|
383
374
|
projectId: string;
|
|
384
|
-
projectAgentId: string;
|
|
375
|
+
projectAgentId: string | null;
|
|
385
376
|
senderUserId: string;
|
|
386
377
|
inputMessage: string;
|
|
387
378
|
schedule: string;
|
|
@@ -861,6 +852,12 @@ export type AuthRequirementMcp = {
|
|
|
861
852
|
satisfied: boolean;
|
|
862
853
|
neededByAgentIds: Array<string>;
|
|
863
854
|
};
|
|
855
|
+
export type SessionTracesResponse = {
|
|
856
|
+
configured: boolean;
|
|
857
|
+
traces: Array<{
|
|
858
|
+
[key: string]: unknown;
|
|
859
|
+
}>;
|
|
860
|
+
};
|
|
864
861
|
export type SessionMessagesPage = {
|
|
865
862
|
items: Array<ReplayMessage>;
|
|
866
863
|
pageNumber: number;
|
|
@@ -979,11 +976,18 @@ export type Project = {
|
|
|
979
976
|
description: string | null;
|
|
980
977
|
slug: string;
|
|
981
978
|
permission: PermissionConfig;
|
|
982
|
-
|
|
979
|
+
gitRepos: Array<ProjectGitRepo>;
|
|
983
980
|
createdAt: string;
|
|
984
981
|
updatedAt: string;
|
|
985
982
|
archivedAt: string | null;
|
|
986
983
|
};
|
|
984
|
+
export type ProjectGitRepo = {
|
|
985
|
+
name: string;
|
|
986
|
+
url: string;
|
|
987
|
+
baseBranch?: string;
|
|
988
|
+
description?: string;
|
|
989
|
+
hidden?: boolean;
|
|
990
|
+
};
|
|
987
991
|
export type PodSandboxStatusResponse = {
|
|
988
992
|
status: "provisioning";
|
|
989
993
|
workflowId: string;
|
|
@@ -5703,7 +5707,7 @@ export type ProjectCreateData = {
|
|
|
5703
5707
|
name: string;
|
|
5704
5708
|
description?: string;
|
|
5705
5709
|
permission?: PermissionConfig;
|
|
5706
|
-
|
|
5710
|
+
gitRepos?: Array<ProjectGitRepo>;
|
|
5707
5711
|
};
|
|
5708
5712
|
path?: never;
|
|
5709
5713
|
query?: {
|
|
@@ -5794,7 +5798,7 @@ export type ProjectUpdateData = {
|
|
|
5794
5798
|
name?: string;
|
|
5795
5799
|
description?: string;
|
|
5796
5800
|
permission?: PermissionConfig;
|
|
5797
|
-
|
|
5801
|
+
gitRepos?: Array<ProjectGitRepo>;
|
|
5798
5802
|
};
|
|
5799
5803
|
path: {
|
|
5800
5804
|
id: string;
|
|
@@ -7165,6 +7169,53 @@ export type SessionMessagesListResponses = {
|
|
|
7165
7169
|
200: SessionMessagesPage;
|
|
7166
7170
|
};
|
|
7167
7171
|
export type SessionMessagesListResponse = SessionMessagesListResponses[keyof SessionMessagesListResponses];
|
|
7172
|
+
export type SessionTracesListData = {
|
|
7173
|
+
body?: never;
|
|
7174
|
+
path: {
|
|
7175
|
+
id: string;
|
|
7176
|
+
};
|
|
7177
|
+
query?: {
|
|
7178
|
+
/**
|
|
7179
|
+
* Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
|
|
7180
|
+
*/
|
|
7181
|
+
scope?: "user";
|
|
7182
|
+
limit?: number;
|
|
7183
|
+
page?: number;
|
|
7184
|
+
/**
|
|
7185
|
+
* Langfuse field groups to include: core (always), io, scores, observations, metrics
|
|
7186
|
+
*/
|
|
7187
|
+
fields?: string;
|
|
7188
|
+
};
|
|
7189
|
+
url: "/api/sessions/{id}/traces";
|
|
7190
|
+
};
|
|
7191
|
+
export type SessionTracesListErrors = {
|
|
7192
|
+
/**
|
|
7193
|
+
* Unauthorized
|
|
7194
|
+
*/
|
|
7195
|
+
401: {
|
|
7196
|
+
error: string;
|
|
7197
|
+
};
|
|
7198
|
+
/**
|
|
7199
|
+
* Forbidden
|
|
7200
|
+
*/
|
|
7201
|
+
403: {
|
|
7202
|
+
error: string;
|
|
7203
|
+
};
|
|
7204
|
+
/**
|
|
7205
|
+
* Not found
|
|
7206
|
+
*/
|
|
7207
|
+
404: {
|
|
7208
|
+
error: string;
|
|
7209
|
+
};
|
|
7210
|
+
};
|
|
7211
|
+
export type SessionTracesListError = SessionTracesListErrors[keyof SessionTracesListErrors];
|
|
7212
|
+
export type SessionTracesListResponses = {
|
|
7213
|
+
/**
|
|
7214
|
+
* Session traces
|
|
7215
|
+
*/
|
|
7216
|
+
200: SessionTracesResponse;
|
|
7217
|
+
};
|
|
7218
|
+
export type SessionTracesListResponse = SessionTracesListResponses[keyof SessionTracesListResponses];
|
|
7168
7219
|
export type SessionAuthRequirementsData = {
|
|
7169
7220
|
body?: never;
|
|
7170
7221
|
path: {
|
|
@@ -8286,7 +8337,7 @@ export type TriggerListResponse = TriggerListResponses[keyof TriggerListResponse
|
|
|
8286
8337
|
export type TriggerCreateData = {
|
|
8287
8338
|
body?: {
|
|
8288
8339
|
projectId: string;
|
|
8289
|
-
projectAgentId
|
|
8340
|
+
projectAgentId?: string | null;
|
|
8290
8341
|
senderUserId?: string;
|
|
8291
8342
|
inputMessage: string;
|
|
8292
8343
|
schedule: string;
|
|
@@ -8380,7 +8431,7 @@ export type TriggerGetResponses = {
|
|
|
8380
8431
|
export type TriggerGetResponse = TriggerGetResponses[keyof TriggerGetResponses];
|
|
8381
8432
|
export type TriggerUpdateData = {
|
|
8382
8433
|
body?: {
|
|
8383
|
-
projectAgentId?: string;
|
|
8434
|
+
projectAgentId?: string | null;
|
|
8384
8435
|
senderUserId?: string;
|
|
8385
8436
|
inputMessage?: string;
|
|
8386
8437
|
schedule?: string;
|
|
@@ -8522,7 +8573,7 @@ export type WebhookTriggerListResponse = WebhookTriggerListResponses[keyof Webho
|
|
|
8522
8573
|
export type WebhookTriggerCreateData = {
|
|
8523
8574
|
body?: {
|
|
8524
8575
|
projectId: string;
|
|
8525
|
-
projectAgentId
|
|
8576
|
+
projectAgentId?: string | null;
|
|
8526
8577
|
senderUserId: string;
|
|
8527
8578
|
provider: "generic";
|
|
8528
8579
|
providerInstallId: string | null;
|
|
@@ -8618,7 +8669,7 @@ export type WebhookTriggerGetResponses = {
|
|
|
8618
8669
|
export type WebhookTriggerGetResponse = WebhookTriggerGetResponses[keyof WebhookTriggerGetResponses];
|
|
8619
8670
|
export type WebhookTriggerUpdateData = {
|
|
8620
8671
|
body?: {
|
|
8621
|
-
projectAgentId?: string;
|
|
8672
|
+
projectAgentId?: string | null;
|
|
8622
8673
|
senderUserId?: string;
|
|
8623
8674
|
scopeFilter?: {
|
|
8624
8675
|
channelId?: string;
|
|
@@ -8903,7 +8954,6 @@ export type SlackChannelUnsetResponse = SlackChannelUnsetResponses[keyof SlackCh
|
|
|
8903
8954
|
export type SlackChannelSetData = {
|
|
8904
8955
|
body?: {
|
|
8905
8956
|
projectId: string;
|
|
8906
|
-
defaultProjectAgentId: string | null;
|
|
8907
8957
|
fallbackSenderUserId: string | null;
|
|
8908
8958
|
};
|
|
8909
8959
|
path: {
|
|
@@ -9027,7 +9077,6 @@ export type EmailUnsetResponses = {
|
|
|
9027
9077
|
export type EmailUnsetResponse = EmailUnsetResponses[keyof EmailUnsetResponses];
|
|
9028
9078
|
export type EmailSetData = {
|
|
9029
9079
|
body?: {
|
|
9030
|
-
defaultProjectAgentId?: string | null;
|
|
9031
9080
|
fallbackSenderUserId?: string | null;
|
|
9032
9081
|
};
|
|
9033
9082
|
path: {
|
|
@@ -9177,7 +9226,6 @@ export type TelegramUnlinkResponse = TelegramUnlinkResponses[keyof TelegramUnlin
|
|
|
9177
9226
|
export type TelegramClaimCodeData = {
|
|
9178
9227
|
body?: {
|
|
9179
9228
|
projectId: string;
|
|
9180
|
-
defaultProjectAgentId?: string | null;
|
|
9181
9229
|
fallbackSenderUserId?: string | null;
|
|
9182
9230
|
};
|
|
9183
9231
|
path?: never;
|
|
@@ -9301,7 +9349,6 @@ export type TelegramChatUnsetResponse = TelegramChatUnsetResponses[keyof Telegra
|
|
|
9301
9349
|
export type TelegramChatSetData = {
|
|
9302
9350
|
body?: {
|
|
9303
9351
|
projectId: string;
|
|
9304
|
-
defaultProjectAgentId?: string | null;
|
|
9305
9352
|
fallbackSenderUserId?: string | null;
|
|
9306
9353
|
allowedSenders?: Array<string>;
|
|
9307
9354
|
blockedSenders?: Array<string>;
|