@renai-labs/sdk 0.1.15 → 0.1.17
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 +58 -2
- package/dist/generated/@tanstack/react-query.gen.js +48 -1
- package/dist/generated/internal/types.gen.d.ts +156 -73
- package/dist/generated/sdk.gen.d.ts +12 -2
- package/dist/generated/sdk.gen.js +18 -1
- package/dist/generated/types.gen.d.ts +71 -23
- package/dist/generated/zod.gen.d.ts +93 -64
- package/dist/generated/zod.gen.js +35 -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;
|
|
@@ -870,6 +867,7 @@ export type SessionMessagesPage = {
|
|
|
870
867
|
export type SessionUrlResponse = {
|
|
871
868
|
url: string;
|
|
872
869
|
authedUrl: string;
|
|
870
|
+
serverUrl: string;
|
|
873
871
|
serverPassword: string;
|
|
874
872
|
username: string;
|
|
875
873
|
};
|
|
@@ -979,11 +977,18 @@ export type Project = {
|
|
|
979
977
|
description: string | null;
|
|
980
978
|
slug: string;
|
|
981
979
|
permission: PermissionConfig;
|
|
982
|
-
|
|
980
|
+
gitRepos: Array<ProjectGitRepo>;
|
|
983
981
|
createdAt: string;
|
|
984
982
|
updatedAt: string;
|
|
985
983
|
archivedAt: string | null;
|
|
986
984
|
};
|
|
985
|
+
export type ProjectGitRepo = {
|
|
986
|
+
name: string;
|
|
987
|
+
url: string;
|
|
988
|
+
baseBranch?: string;
|
|
989
|
+
description?: string;
|
|
990
|
+
hidden?: boolean;
|
|
991
|
+
};
|
|
987
992
|
export type PodSandboxStatusResponse = {
|
|
988
993
|
status: "provisioning";
|
|
989
994
|
workflowId: string;
|
|
@@ -5703,7 +5708,7 @@ export type ProjectCreateData = {
|
|
|
5703
5708
|
name: string;
|
|
5704
5709
|
description?: string;
|
|
5705
5710
|
permission?: PermissionConfig;
|
|
5706
|
-
|
|
5711
|
+
gitRepos?: Array<ProjectGitRepo>;
|
|
5707
5712
|
};
|
|
5708
5713
|
path?: never;
|
|
5709
5714
|
query?: {
|
|
@@ -5794,7 +5799,7 @@ export type ProjectUpdateData = {
|
|
|
5794
5799
|
name?: string;
|
|
5795
5800
|
description?: string;
|
|
5796
5801
|
permission?: PermissionConfig;
|
|
5797
|
-
|
|
5802
|
+
gitRepos?: Array<ProjectGitRepo>;
|
|
5798
5803
|
};
|
|
5799
5804
|
path: {
|
|
5800
5805
|
id: string;
|
|
@@ -7165,6 +7170,53 @@ export type SessionMessagesListResponses = {
|
|
|
7165
7170
|
200: SessionMessagesPage;
|
|
7166
7171
|
};
|
|
7167
7172
|
export type SessionMessagesListResponse = SessionMessagesListResponses[keyof SessionMessagesListResponses];
|
|
7173
|
+
export type SessionTracesListData = {
|
|
7174
|
+
body?: never;
|
|
7175
|
+
path: {
|
|
7176
|
+
id: string;
|
|
7177
|
+
};
|
|
7178
|
+
query?: {
|
|
7179
|
+
/**
|
|
7180
|
+
* Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
|
|
7181
|
+
*/
|
|
7182
|
+
scope?: "user";
|
|
7183
|
+
limit?: number;
|
|
7184
|
+
page?: number;
|
|
7185
|
+
/**
|
|
7186
|
+
* Langfuse field groups to include: core (always), io, scores, observations, metrics
|
|
7187
|
+
*/
|
|
7188
|
+
fields?: string;
|
|
7189
|
+
};
|
|
7190
|
+
url: "/api/sessions/{id}/traces";
|
|
7191
|
+
};
|
|
7192
|
+
export type SessionTracesListErrors = {
|
|
7193
|
+
/**
|
|
7194
|
+
* Unauthorized
|
|
7195
|
+
*/
|
|
7196
|
+
401: {
|
|
7197
|
+
error: string;
|
|
7198
|
+
};
|
|
7199
|
+
/**
|
|
7200
|
+
* Forbidden
|
|
7201
|
+
*/
|
|
7202
|
+
403: {
|
|
7203
|
+
error: string;
|
|
7204
|
+
};
|
|
7205
|
+
/**
|
|
7206
|
+
* Not found
|
|
7207
|
+
*/
|
|
7208
|
+
404: {
|
|
7209
|
+
error: string;
|
|
7210
|
+
};
|
|
7211
|
+
};
|
|
7212
|
+
export type SessionTracesListError = SessionTracesListErrors[keyof SessionTracesListErrors];
|
|
7213
|
+
export type SessionTracesListResponses = {
|
|
7214
|
+
/**
|
|
7215
|
+
* Session traces
|
|
7216
|
+
*/
|
|
7217
|
+
200: SessionTracesResponse;
|
|
7218
|
+
};
|
|
7219
|
+
export type SessionTracesListResponse = SessionTracesListResponses[keyof SessionTracesListResponses];
|
|
7168
7220
|
export type SessionAuthRequirementsData = {
|
|
7169
7221
|
body?: never;
|
|
7170
7222
|
path: {
|
|
@@ -8286,7 +8338,7 @@ export type TriggerListResponse = TriggerListResponses[keyof TriggerListResponse
|
|
|
8286
8338
|
export type TriggerCreateData = {
|
|
8287
8339
|
body?: {
|
|
8288
8340
|
projectId: string;
|
|
8289
|
-
projectAgentId
|
|
8341
|
+
projectAgentId?: string | null;
|
|
8290
8342
|
senderUserId?: string;
|
|
8291
8343
|
inputMessage: string;
|
|
8292
8344
|
schedule: string;
|
|
@@ -8380,7 +8432,7 @@ export type TriggerGetResponses = {
|
|
|
8380
8432
|
export type TriggerGetResponse = TriggerGetResponses[keyof TriggerGetResponses];
|
|
8381
8433
|
export type TriggerUpdateData = {
|
|
8382
8434
|
body?: {
|
|
8383
|
-
projectAgentId?: string;
|
|
8435
|
+
projectAgentId?: string | null;
|
|
8384
8436
|
senderUserId?: string;
|
|
8385
8437
|
inputMessage?: string;
|
|
8386
8438
|
schedule?: string;
|
|
@@ -8522,7 +8574,7 @@ export type WebhookTriggerListResponse = WebhookTriggerListResponses[keyof Webho
|
|
|
8522
8574
|
export type WebhookTriggerCreateData = {
|
|
8523
8575
|
body?: {
|
|
8524
8576
|
projectId: string;
|
|
8525
|
-
projectAgentId
|
|
8577
|
+
projectAgentId?: string | null;
|
|
8526
8578
|
senderUserId: string;
|
|
8527
8579
|
provider: "generic";
|
|
8528
8580
|
providerInstallId: string | null;
|
|
@@ -8618,7 +8670,7 @@ export type WebhookTriggerGetResponses = {
|
|
|
8618
8670
|
export type WebhookTriggerGetResponse = WebhookTriggerGetResponses[keyof WebhookTriggerGetResponses];
|
|
8619
8671
|
export type WebhookTriggerUpdateData = {
|
|
8620
8672
|
body?: {
|
|
8621
|
-
projectAgentId?: string;
|
|
8673
|
+
projectAgentId?: string | null;
|
|
8622
8674
|
senderUserId?: string;
|
|
8623
8675
|
scopeFilter?: {
|
|
8624
8676
|
channelId?: string;
|
|
@@ -8903,7 +8955,6 @@ export type SlackChannelUnsetResponse = SlackChannelUnsetResponses[keyof SlackCh
|
|
|
8903
8955
|
export type SlackChannelSetData = {
|
|
8904
8956
|
body?: {
|
|
8905
8957
|
projectId: string;
|
|
8906
|
-
defaultProjectAgentId: string | null;
|
|
8907
8958
|
fallbackSenderUserId: string | null;
|
|
8908
8959
|
};
|
|
8909
8960
|
path: {
|
|
@@ -9027,7 +9078,6 @@ export type EmailUnsetResponses = {
|
|
|
9027
9078
|
export type EmailUnsetResponse = EmailUnsetResponses[keyof EmailUnsetResponses];
|
|
9028
9079
|
export type EmailSetData = {
|
|
9029
9080
|
body?: {
|
|
9030
|
-
defaultProjectAgentId?: string | null;
|
|
9031
9081
|
fallbackSenderUserId?: string | null;
|
|
9032
9082
|
};
|
|
9033
9083
|
path: {
|
|
@@ -9177,7 +9227,6 @@ export type TelegramUnlinkResponse = TelegramUnlinkResponses[keyof TelegramUnlin
|
|
|
9177
9227
|
export type TelegramClaimCodeData = {
|
|
9178
9228
|
body?: {
|
|
9179
9229
|
projectId: string;
|
|
9180
|
-
defaultProjectAgentId?: string | null;
|
|
9181
9230
|
fallbackSenderUserId?: string | null;
|
|
9182
9231
|
};
|
|
9183
9232
|
path?: never;
|
|
@@ -9301,7 +9350,6 @@ export type TelegramChatUnsetResponse = TelegramChatUnsetResponses[keyof Telegra
|
|
|
9301
9350
|
export type TelegramChatSetData = {
|
|
9302
9351
|
body?: {
|
|
9303
9352
|
projectId: string;
|
|
9304
|
-
defaultProjectAgentId?: string | null;
|
|
9305
9353
|
fallbackSenderUserId?: string | null;
|
|
9306
9354
|
allowedSenders?: Array<string>;
|
|
9307
9355
|
blockedSenders?: Array<string>;
|