@renai-labs/sdk 0.1.14 → 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 +63 -1
- package/dist/generated/@tanstack/react-query.gen.js +65 -0
- package/dist/generated/internal/types.gen.d.ts +185 -67
- package/dist/generated/sdk.gen.d.ts +17 -1
- package/dist/generated/sdk.gen.js +28 -0
- package/dist/generated/types.gen.d.ts +120 -23
- package/dist/generated/zod.gen.d.ts +114 -64
- package/dist/generated/zod.gen.js +47 -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))$/),
|
|
@@ -1024,6 +1026,9 @@ export const zPodSandboxStatusResponse = z.union([
|
|
|
1024
1026
|
reason: z.string(),
|
|
1025
1027
|
}),
|
|
1026
1028
|
]);
|
|
1029
|
+
export const zPodSandboxTeardownResponse = z.object({
|
|
1030
|
+
status: z.enum(["destroyed", "absent"]),
|
|
1031
|
+
});
|
|
1027
1032
|
export const zPodSandboxProvisionResponse = z.object({
|
|
1028
1033
|
workflowId: z.string(),
|
|
1029
1034
|
status: z.literal("provisioning"),
|
|
@@ -2728,6 +2733,16 @@ export const zPodSandboxProvisionQuery = z.object({
|
|
|
2728
2733
|
* Workflow started or joined
|
|
2729
2734
|
*/
|
|
2730
2735
|
export const zPodSandboxProvisionResponse2 = zPodSandboxProvisionResponse;
|
|
2736
|
+
export const zPodSandboxTeardownPath = z.object({
|
|
2737
|
+
podId: z.string().regex(/^pod_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2738
|
+
});
|
|
2739
|
+
export const zPodSandboxTeardownQuery = z.object({
|
|
2740
|
+
scope: z.enum(["user"]).optional(),
|
|
2741
|
+
});
|
|
2742
|
+
/**
|
|
2743
|
+
* Teardown result
|
|
2744
|
+
*/
|
|
2745
|
+
export const zPodSandboxTeardownResponse2 = zPodSandboxTeardownResponse;
|
|
2731
2746
|
export const zPodSandboxStatusPath = z.object({
|
|
2732
2747
|
podId: z.string().regex(/^pod_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2733
2748
|
});
|
|
@@ -2757,7 +2772,7 @@ export const zProjectCreateBody = z.object({
|
|
|
2757
2772
|
name: z.string().min(1).max(256),
|
|
2758
2773
|
description: z.string().optional().default(""),
|
|
2759
2774
|
permission: zPermissionConfig.optional(),
|
|
2760
|
-
|
|
2775
|
+
gitRepos: z.array(zProjectGitRepo).optional().default([]),
|
|
2761
2776
|
});
|
|
2762
2777
|
export const zProjectCreateQuery = z.object({
|
|
2763
2778
|
scope: z.enum(["user"]).optional(),
|
|
@@ -2780,7 +2795,7 @@ export const zProjectUpdateBody = z.object({
|
|
|
2780
2795
|
name: z.string().min(1).max(256).optional(),
|
|
2781
2796
|
description: z.string().optional(),
|
|
2782
2797
|
permission: zPermissionConfig.optional(),
|
|
2783
|
-
|
|
2798
|
+
gitRepos: z.array(zProjectGitRepo).optional(),
|
|
2784
2799
|
});
|
|
2785
2800
|
export const zProjectUpdatePath = z.object({
|
|
2786
2801
|
id: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
@@ -3159,6 +3174,19 @@ export const zSessionMessagesListQuery = z.object({
|
|
|
3159
3174
|
* Paginated session messages
|
|
3160
3175
|
*/
|
|
3161
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;
|
|
3162
3190
|
export const zSessionAuthRequirementsPath = z.object({
|
|
3163
3191
|
id: z.string().min(1),
|
|
3164
3192
|
});
|
|
@@ -3474,7 +3502,7 @@ export const zTriggerListQuery = z.object({
|
|
|
3474
3502
|
export const zTriggerListResponse = z.array(zCronTrigger);
|
|
3475
3503
|
export const zTriggerCreateBody = z.object({
|
|
3476
3504
|
projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3477
|
-
projectAgentId: z.string(),
|
|
3505
|
+
projectAgentId: z.string().nullish().default(null),
|
|
3478
3506
|
senderUserId: z.string().optional(),
|
|
3479
3507
|
inputMessage: z.string(),
|
|
3480
3508
|
schedule: z.string(),
|
|
@@ -3500,7 +3528,7 @@ export const zTriggerGetQuery = z.object({
|
|
|
3500
3528
|
*/
|
|
3501
3529
|
export const zTriggerGetResponse = zCronTrigger;
|
|
3502
3530
|
export const zTriggerUpdateBody = z.object({
|
|
3503
|
-
projectAgentId: z.string().
|
|
3531
|
+
projectAgentId: z.string().nullish(),
|
|
3504
3532
|
senderUserId: z.string().optional(),
|
|
3505
3533
|
inputMessage: z.string().optional(),
|
|
3506
3534
|
schedule: z.string().optional(),
|
|
@@ -3544,7 +3572,7 @@ export const zWebhookTriggerListQuery = z.object({
|
|
|
3544
3572
|
export const zWebhookTriggerListResponse = z.array(zWebhookTrigger);
|
|
3545
3573
|
export const zWebhookTriggerCreateBody = z.object({
|
|
3546
3574
|
projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3547
|
-
projectAgentId: z.string(),
|
|
3575
|
+
projectAgentId: z.string().nullish().default(null),
|
|
3548
3576
|
senderUserId: z.string(),
|
|
3549
3577
|
provider: z.enum(["generic"]),
|
|
3550
3578
|
providerInstallId: z.string().nullable(),
|
|
@@ -3574,7 +3602,7 @@ export const zWebhookTriggerGetQuery = z.object({
|
|
|
3574
3602
|
*/
|
|
3575
3603
|
export const zWebhookTriggerGetResponse = zWebhookTrigger;
|
|
3576
3604
|
export const zWebhookTriggerUpdateBody = z.object({
|
|
3577
|
-
projectAgentId: z.string().
|
|
3605
|
+
projectAgentId: z.string().nullish(),
|
|
3578
3606
|
senderUserId: z.string().optional(),
|
|
3579
3607
|
scopeFilter: z
|
|
3580
3608
|
.object({
|
|
@@ -3648,7 +3676,6 @@ export const zSlackChannelUnsetQuery = z.object({
|
|
|
3648
3676
|
export const zSlackChannelUnsetResponse = zSlackInstallationResponse;
|
|
3649
3677
|
export const zSlackChannelSetBody = z.object({
|
|
3650
3678
|
projectId: z.string(),
|
|
3651
|
-
defaultProjectAgentId: z.string().nullable(),
|
|
3652
3679
|
fallbackSenderUserId: z.string().nullable(),
|
|
3653
3680
|
});
|
|
3654
3681
|
export const zSlackChannelSetPath = z.object({
|
|
@@ -3679,7 +3706,6 @@ export const zEmailUnsetQuery = z.object({
|
|
|
3679
3706
|
*/
|
|
3680
3707
|
export const zEmailUnsetResponse = z.void();
|
|
3681
3708
|
export const zEmailSetBody = z.object({
|
|
3682
|
-
defaultProjectAgentId: z.string().nullish().default(null),
|
|
3683
3709
|
fallbackSenderUserId: z.string().nullish().default(null),
|
|
3684
3710
|
});
|
|
3685
3711
|
export const zEmailSetPath = z.object({
|
|
@@ -3715,7 +3741,6 @@ export const zTelegramUnlinkQuery = z.object({
|
|
|
3715
3741
|
export const zTelegramUnlinkResponse = z.void();
|
|
3716
3742
|
export const zTelegramClaimCodeBody = z.object({
|
|
3717
3743
|
projectId: z.string().min(1),
|
|
3718
|
-
defaultProjectAgentId: z.string().min(1).nullish().default(null),
|
|
3719
3744
|
fallbackSenderUserId: z.string().min(1).nullish().default(null),
|
|
3720
3745
|
});
|
|
3721
3746
|
export const zTelegramClaimCodeQuery = z.object({
|
|
@@ -3745,7 +3770,6 @@ export const zTelegramChatUnsetQuery = z.object({
|
|
|
3745
3770
|
export const zTelegramChatUnsetResponse = z.void();
|
|
3746
3771
|
export const zTelegramChatSetBody = z.object({
|
|
3747
3772
|
projectId: z.string(),
|
|
3748
|
-
defaultProjectAgentId: z.string().nullish().default(null),
|
|
3749
3773
|
fallbackSenderUserId: z.string().nullish().default(null),
|
|
3750
3774
|
allowedSenders: z.array(z.string()).optional().default([]),
|
|
3751
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",
|