@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,10 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
export const zProjectGitRepo = z.object({
|
|
4
|
-
url: z.string().min(1),
|
|
5
|
-
baseBranch: z.string().min(1).optional(),
|
|
6
|
-
mountPath: z.string().min(1).optional(),
|
|
7
|
-
});
|
|
8
3
|
export const zPermissionConfig = z.union([
|
|
9
4
|
z.object({
|
|
10
5
|
__originalKeys: z.array(z.string()).optional(),
|
|
@@ -109,7 +104,7 @@ export const zBlueprintProjectEntry = z.object({
|
|
|
109
104
|
schedule: z.string(),
|
|
110
105
|
timezone: z.string().nullable(),
|
|
111
106
|
cronTriggerId: z.string(),
|
|
112
|
-
agentId: z.string(),
|
|
107
|
+
agentId: z.string().nullable(),
|
|
113
108
|
})),
|
|
114
109
|
});
|
|
115
110
|
export const zBlueprintTemplate = z.object({
|
|
@@ -296,7 +291,6 @@ export const zTelegramChatMapping = z.object({
|
|
|
296
291
|
chatTitle: z.string().nullable(),
|
|
297
292
|
chatType: z.string().nullable(),
|
|
298
293
|
projectId: z.string(),
|
|
299
|
-
defaultProjectAgentId: z.string().nullable(),
|
|
300
294
|
claimedByUserId: z.string().nullable(),
|
|
301
295
|
fallbackSenderUserId: z.string().nullable(),
|
|
302
296
|
allowedSenders: z.array(z.string()),
|
|
@@ -315,7 +309,6 @@ export const zTelegramChat = z.object({
|
|
|
315
309
|
chatTitle: z.string().nullable(),
|
|
316
310
|
chatType: z.string().nullable(),
|
|
317
311
|
projectId: z.string(),
|
|
318
|
-
defaultProjectAgentId: z.string().nullable(),
|
|
319
312
|
claimedByUserId: z.string().nullable(),
|
|
320
313
|
fallbackSenderUserId: z.string().nullable(),
|
|
321
314
|
allowedSenders: z.array(z.string()),
|
|
@@ -346,7 +339,6 @@ export const zProjectEmailResponse = z.object({
|
|
|
346
339
|
orgId: z.string(),
|
|
347
340
|
podId: z.string(),
|
|
348
341
|
projectId: z.string(),
|
|
349
|
-
defaultProjectAgentId: z.string().nullable(),
|
|
350
342
|
fallbackSenderUserId: z.string().nullable(),
|
|
351
343
|
localPart: z.string(),
|
|
352
344
|
createdAt: z.iso
|
|
@@ -366,7 +358,6 @@ export const zSlackChannel = z.object({
|
|
|
366
358
|
id: z.string(),
|
|
367
359
|
name: z.string(),
|
|
368
360
|
projectId: z.string().nullable(),
|
|
369
|
-
defaultProjectAgentId: z.string().nullable(),
|
|
370
361
|
fallbackSenderUserId: z.string().nullable(),
|
|
371
362
|
projectName: z.string().nullable(),
|
|
372
363
|
});
|
|
@@ -399,7 +390,7 @@ export const zSlackOAuthStartResult = z.object({
|
|
|
399
390
|
export const zWebhookTrigger = z.object({
|
|
400
391
|
id: z.string(),
|
|
401
392
|
projectId: z.string(),
|
|
402
|
-
projectAgentId: z.string(),
|
|
393
|
+
projectAgentId: z.string().nullable(),
|
|
403
394
|
senderUserId: z.string(),
|
|
404
395
|
provider: z.enum(["generic"]),
|
|
405
396
|
providerInstallId: z.string().nullable(),
|
|
@@ -428,7 +419,7 @@ export const zWebhookTriggerCreateResult = z.object({
|
|
|
428
419
|
export const zCronTrigger = z.object({
|
|
429
420
|
id: z.string(),
|
|
430
421
|
projectId: z.string(),
|
|
431
|
-
projectAgentId: z.string(),
|
|
422
|
+
projectAgentId: z.string().nullable(),
|
|
432
423
|
senderUserId: z.string(),
|
|
433
424
|
inputMessage: z.string(),
|
|
434
425
|
schedule: z.string(),
|
|
@@ -815,6 +806,10 @@ export const zAuthRequirements = z.object({
|
|
|
815
806
|
mcps: z.array(zAuthRequirementMcp),
|
|
816
807
|
envs: z.array(zAuthRequirementEnv),
|
|
817
808
|
});
|
|
809
|
+
export const zSessionTracesResponse = z.object({
|
|
810
|
+
configured: z.boolean(),
|
|
811
|
+
traces: z.array(z.record(z.string(), z.unknown())),
|
|
812
|
+
});
|
|
818
813
|
export const zSessionMessagesPage = z.object({
|
|
819
814
|
items: z.array(zReplayMessage),
|
|
820
815
|
pageNumber: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
@@ -965,6 +960,13 @@ export const zProjectAgent = z.object({
|
|
|
965
960
|
.datetime()
|
|
966
961
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
967
962
|
});
|
|
963
|
+
export const zProjectGitRepo = z.object({
|
|
964
|
+
name: z.string().min(1),
|
|
965
|
+
url: z.string().min(1),
|
|
966
|
+
baseBranch: z.string().min(1).optional(),
|
|
967
|
+
description: z.string().optional(),
|
|
968
|
+
hidden: z.boolean().optional(),
|
|
969
|
+
});
|
|
968
970
|
export const zProject = z.object({
|
|
969
971
|
id: z.string(),
|
|
970
972
|
orgId: z.string(),
|
|
@@ -974,7 +976,7 @@ export const zProject = z.object({
|
|
|
974
976
|
description: z.string().nullable(),
|
|
975
977
|
slug: z.string(),
|
|
976
978
|
permission: zPermissionConfig,
|
|
977
|
-
|
|
979
|
+
gitRepos: z.array(zProjectGitRepo),
|
|
978
980
|
createdAt: z.iso
|
|
979
981
|
.datetime()
|
|
980
982
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
@@ -2770,7 +2772,7 @@ export const zProjectCreateBody = z.object({
|
|
|
2770
2772
|
name: z.string().min(1).max(256),
|
|
2771
2773
|
description: z.string().optional().default(""),
|
|
2772
2774
|
permission: zPermissionConfig.optional(),
|
|
2773
|
-
|
|
2775
|
+
gitRepos: z.array(zProjectGitRepo).optional().default([]),
|
|
2774
2776
|
});
|
|
2775
2777
|
export const zProjectCreateQuery = z.object({
|
|
2776
2778
|
scope: z.enum(["user"]).optional(),
|
|
@@ -2793,7 +2795,7 @@ export const zProjectUpdateBody = z.object({
|
|
|
2793
2795
|
name: z.string().min(1).max(256).optional(),
|
|
2794
2796
|
description: z.string().optional(),
|
|
2795
2797
|
permission: zPermissionConfig.optional(),
|
|
2796
|
-
|
|
2798
|
+
gitRepos: z.array(zProjectGitRepo).optional(),
|
|
2797
2799
|
});
|
|
2798
2800
|
export const zProjectUpdatePath = z.object({
|
|
2799
2801
|
id: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
@@ -3172,6 +3174,19 @@ export const zSessionMessagesListQuery = z.object({
|
|
|
3172
3174
|
* Paginated session messages
|
|
3173
3175
|
*/
|
|
3174
3176
|
export const zSessionMessagesListResponse = zSessionMessagesPage;
|
|
3177
|
+
export const zSessionTracesListPath = z.object({
|
|
3178
|
+
id: z.string().min(1),
|
|
3179
|
+
});
|
|
3180
|
+
export const zSessionTracesListQuery = z.object({
|
|
3181
|
+
scope: z.enum(["user"]).optional(),
|
|
3182
|
+
limit: z.int().gt(0).lte(100).optional(),
|
|
3183
|
+
page: z.int().gt(0).lte(9007199254740991).optional(),
|
|
3184
|
+
fields: z.string().min(1).optional(),
|
|
3185
|
+
});
|
|
3186
|
+
/**
|
|
3187
|
+
* Session traces
|
|
3188
|
+
*/
|
|
3189
|
+
export const zSessionTracesListResponse = zSessionTracesResponse;
|
|
3175
3190
|
export const zSessionAuthRequirementsPath = z.object({
|
|
3176
3191
|
id: z.string().min(1),
|
|
3177
3192
|
});
|
|
@@ -3487,7 +3502,7 @@ export const zTriggerListQuery = z.object({
|
|
|
3487
3502
|
export const zTriggerListResponse = z.array(zCronTrigger);
|
|
3488
3503
|
export const zTriggerCreateBody = z.object({
|
|
3489
3504
|
projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3490
|
-
projectAgentId: z.string(),
|
|
3505
|
+
projectAgentId: z.string().nullish().default(null),
|
|
3491
3506
|
senderUserId: z.string().optional(),
|
|
3492
3507
|
inputMessage: z.string(),
|
|
3493
3508
|
schedule: z.string(),
|
|
@@ -3513,7 +3528,7 @@ export const zTriggerGetQuery = z.object({
|
|
|
3513
3528
|
*/
|
|
3514
3529
|
export const zTriggerGetResponse = zCronTrigger;
|
|
3515
3530
|
export const zTriggerUpdateBody = z.object({
|
|
3516
|
-
projectAgentId: z.string().
|
|
3531
|
+
projectAgentId: z.string().nullish(),
|
|
3517
3532
|
senderUserId: z.string().optional(),
|
|
3518
3533
|
inputMessage: z.string().optional(),
|
|
3519
3534
|
schedule: z.string().optional(),
|
|
@@ -3557,7 +3572,7 @@ export const zWebhookTriggerListQuery = z.object({
|
|
|
3557
3572
|
export const zWebhookTriggerListResponse = z.array(zWebhookTrigger);
|
|
3558
3573
|
export const zWebhookTriggerCreateBody = z.object({
|
|
3559
3574
|
projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3560
|
-
projectAgentId: z.string(),
|
|
3575
|
+
projectAgentId: z.string().nullish().default(null),
|
|
3561
3576
|
senderUserId: z.string(),
|
|
3562
3577
|
provider: z.enum(["generic"]),
|
|
3563
3578
|
providerInstallId: z.string().nullable(),
|
|
@@ -3587,7 +3602,7 @@ export const zWebhookTriggerGetQuery = z.object({
|
|
|
3587
3602
|
*/
|
|
3588
3603
|
export const zWebhookTriggerGetResponse = zWebhookTrigger;
|
|
3589
3604
|
export const zWebhookTriggerUpdateBody = z.object({
|
|
3590
|
-
projectAgentId: z.string().
|
|
3605
|
+
projectAgentId: z.string().nullish(),
|
|
3591
3606
|
senderUserId: z.string().optional(),
|
|
3592
3607
|
scopeFilter: z
|
|
3593
3608
|
.object({
|
|
@@ -3661,7 +3676,6 @@ export const zSlackChannelUnsetQuery = z.object({
|
|
|
3661
3676
|
export const zSlackChannelUnsetResponse = zSlackInstallationResponse;
|
|
3662
3677
|
export const zSlackChannelSetBody = z.object({
|
|
3663
3678
|
projectId: z.string(),
|
|
3664
|
-
defaultProjectAgentId: z.string().nullable(),
|
|
3665
3679
|
fallbackSenderUserId: z.string().nullable(),
|
|
3666
3680
|
});
|
|
3667
3681
|
export const zSlackChannelSetPath = z.object({
|
|
@@ -3692,7 +3706,6 @@ export const zEmailUnsetQuery = z.object({
|
|
|
3692
3706
|
*/
|
|
3693
3707
|
export const zEmailUnsetResponse = z.void();
|
|
3694
3708
|
export const zEmailSetBody = z.object({
|
|
3695
|
-
defaultProjectAgentId: z.string().nullish().default(null),
|
|
3696
3709
|
fallbackSenderUserId: z.string().nullish().default(null),
|
|
3697
3710
|
});
|
|
3698
3711
|
export const zEmailSetPath = z.object({
|
|
@@ -3728,7 +3741,6 @@ export const zTelegramUnlinkQuery = z.object({
|
|
|
3728
3741
|
export const zTelegramUnlinkResponse = z.void();
|
|
3729
3742
|
export const zTelegramClaimCodeBody = z.object({
|
|
3730
3743
|
projectId: z.string().min(1),
|
|
3731
|
-
defaultProjectAgentId: z.string().min(1).nullish().default(null),
|
|
3732
3744
|
fallbackSenderUserId: z.string().min(1).nullish().default(null),
|
|
3733
3745
|
});
|
|
3734
3746
|
export const zTelegramClaimCodeQuery = z.object({
|
|
@@ -3758,7 +3770,6 @@ export const zTelegramChatUnsetQuery = z.object({
|
|
|
3758
3770
|
export const zTelegramChatUnsetResponse = z.void();
|
|
3759
3771
|
export const zTelegramChatSetBody = z.object({
|
|
3760
3772
|
projectId: z.string(),
|
|
3761
|
-
defaultProjectAgentId: z.string().nullish().default(null),
|
|
3762
3773
|
fallbackSenderUserId: z.string().nullish().default(null),
|
|
3763
3774
|
allowedSenders: z.array(z.string()).optional().default([]),
|
|
3764
3775
|
blockedSenders: z.array(z.string()).optional().default([]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renai-labs/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "TypeScript SDK for the Ren API, generated from OpenAPI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ren Labs, Inc.",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@hey-api/client-fetch": "0.13.1",
|
|
84
|
-
"@opencode-ai/sdk": "1.
|
|
84
|
+
"@opencode-ai/sdk": "1.17.9"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@hey-api/openapi-ts": "0.96.0",
|