@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.
@@ -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),
@@ -824,6 +819,7 @@ export const zSessionMessagesPage = z.object({
824
819
  export const zSessionUrlResponse = z.object({
825
820
  url: z.string(),
826
821
  authedUrl: z.string(),
822
+ serverUrl: z.string(),
827
823
  serverPassword: z.string(),
828
824
  username: z.string(),
829
825
  });
@@ -965,6 +961,13 @@ export const zProjectAgent = z.object({
965
961
  .datetime()
966
962
  .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
963
  });
964
+ export const zProjectGitRepo = z.object({
965
+ name: z.string().min(1),
966
+ url: z.string().min(1),
967
+ baseBranch: z.string().min(1).optional(),
968
+ description: z.string().optional(),
969
+ hidden: z.boolean().optional(),
970
+ });
968
971
  export const zProject = z.object({
969
972
  id: z.string(),
970
973
  orgId: z.string(),
@@ -974,7 +977,7 @@ export const zProject = z.object({
974
977
  description: z.string().nullable(),
975
978
  slug: z.string(),
976
979
  permission: zPermissionConfig,
977
- gitRepo: zProjectGitRepo.nullable(),
980
+ gitRepos: z.array(zProjectGitRepo),
978
981
  createdAt: z.iso
979
982
  .datetime()
980
983
  .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 +2773,7 @@ export const zProjectCreateBody = z.object({
2770
2773
  name: z.string().min(1).max(256),
2771
2774
  description: z.string().optional().default(""),
2772
2775
  permission: zPermissionConfig.optional(),
2773
- gitRepo: zProjectGitRepo.nullish().default(null),
2776
+ gitRepos: z.array(zProjectGitRepo).optional().default([]),
2774
2777
  });
2775
2778
  export const zProjectCreateQuery = z.object({
2776
2779
  scope: z.enum(["user"]).optional(),
@@ -2793,7 +2796,7 @@ export const zProjectUpdateBody = z.object({
2793
2796
  name: z.string().min(1).max(256).optional(),
2794
2797
  description: z.string().optional(),
2795
2798
  permission: zPermissionConfig.optional(),
2796
- gitRepo: zProjectGitRepo.nullish(),
2799
+ gitRepos: z.array(zProjectGitRepo).optional(),
2797
2800
  });
2798
2801
  export const zProjectUpdatePath = z.object({
2799
2802
  id: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
@@ -3172,6 +3175,19 @@ export const zSessionMessagesListQuery = z.object({
3172
3175
  * Paginated session messages
3173
3176
  */
3174
3177
  export const zSessionMessagesListResponse = zSessionMessagesPage;
3178
+ export const zSessionTracesListPath = z.object({
3179
+ id: z.string().min(1),
3180
+ });
3181
+ export const zSessionTracesListQuery = z.object({
3182
+ scope: z.enum(["user"]).optional(),
3183
+ limit: z.int().gt(0).lte(100).optional(),
3184
+ page: z.int().gt(0).lte(9007199254740991).optional(),
3185
+ fields: z.string().min(1).optional(),
3186
+ });
3187
+ /**
3188
+ * Session traces
3189
+ */
3190
+ export const zSessionTracesListResponse = zSessionTracesResponse;
3175
3191
  export const zSessionAuthRequirementsPath = z.object({
3176
3192
  id: z.string().min(1),
3177
3193
  });
@@ -3487,7 +3503,7 @@ export const zTriggerListQuery = z.object({
3487
3503
  export const zTriggerListResponse = z.array(zCronTrigger);
3488
3504
  export const zTriggerCreateBody = z.object({
3489
3505
  projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
3490
- projectAgentId: z.string(),
3506
+ projectAgentId: z.string().nullish().default(null),
3491
3507
  senderUserId: z.string().optional(),
3492
3508
  inputMessage: z.string(),
3493
3509
  schedule: z.string(),
@@ -3513,7 +3529,7 @@ export const zTriggerGetQuery = z.object({
3513
3529
  */
3514
3530
  export const zTriggerGetResponse = zCronTrigger;
3515
3531
  export const zTriggerUpdateBody = z.object({
3516
- projectAgentId: z.string().optional(),
3532
+ projectAgentId: z.string().nullish(),
3517
3533
  senderUserId: z.string().optional(),
3518
3534
  inputMessage: z.string().optional(),
3519
3535
  schedule: z.string().optional(),
@@ -3557,7 +3573,7 @@ export const zWebhookTriggerListQuery = z.object({
3557
3573
  export const zWebhookTriggerListResponse = z.array(zWebhookTrigger);
3558
3574
  export const zWebhookTriggerCreateBody = z.object({
3559
3575
  projectId: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
3560
- projectAgentId: z.string(),
3576
+ projectAgentId: z.string().nullish().default(null),
3561
3577
  senderUserId: z.string(),
3562
3578
  provider: z.enum(["generic"]),
3563
3579
  providerInstallId: z.string().nullable(),
@@ -3587,7 +3603,7 @@ export const zWebhookTriggerGetQuery = z.object({
3587
3603
  */
3588
3604
  export const zWebhookTriggerGetResponse = zWebhookTrigger;
3589
3605
  export const zWebhookTriggerUpdateBody = z.object({
3590
- projectAgentId: z.string().optional(),
3606
+ projectAgentId: z.string().nullish(),
3591
3607
  senderUserId: z.string().optional(),
3592
3608
  scopeFilter: z
3593
3609
  .object({
@@ -3661,7 +3677,6 @@ export const zSlackChannelUnsetQuery = z.object({
3661
3677
  export const zSlackChannelUnsetResponse = zSlackInstallationResponse;
3662
3678
  export const zSlackChannelSetBody = z.object({
3663
3679
  projectId: z.string(),
3664
- defaultProjectAgentId: z.string().nullable(),
3665
3680
  fallbackSenderUserId: z.string().nullable(),
3666
3681
  });
3667
3682
  export const zSlackChannelSetPath = z.object({
@@ -3692,7 +3707,6 @@ export const zEmailUnsetQuery = z.object({
3692
3707
  */
3693
3708
  export const zEmailUnsetResponse = z.void();
3694
3709
  export const zEmailSetBody = z.object({
3695
- defaultProjectAgentId: z.string().nullish().default(null),
3696
3710
  fallbackSenderUserId: z.string().nullish().default(null),
3697
3711
  });
3698
3712
  export const zEmailSetPath = z.object({
@@ -3728,7 +3742,6 @@ export const zTelegramUnlinkQuery = z.object({
3728
3742
  export const zTelegramUnlinkResponse = z.void();
3729
3743
  export const zTelegramClaimCodeBody = z.object({
3730
3744
  projectId: z.string().min(1),
3731
- defaultProjectAgentId: z.string().min(1).nullish().default(null),
3732
3745
  fallbackSenderUserId: z.string().min(1).nullish().default(null),
3733
3746
  });
3734
3747
  export const zTelegramClaimCodeQuery = z.object({
@@ -3758,7 +3771,6 @@ export const zTelegramChatUnsetQuery = z.object({
3758
3771
  export const zTelegramChatUnsetResponse = z.void();
3759
3772
  export const zTelegramChatSetBody = z.object({
3760
3773
  projectId: z.string(),
3761
- defaultProjectAgentId: z.string().nullish().default(null),
3762
3774
  fallbackSenderUserId: z.string().nullish().default(null),
3763
3775
  allowedSenders: z.array(z.string()).optional().default([]),
3764
3776
  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.15",
3
+ "version": "0.1.17",
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.14.31"
84
+ "@opencode-ai/sdk": "1.17.9"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@hey-api/openapi-ts": "0.96.0",