@renai-labs/sdk 0.1.10 → 0.1.12

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.
@@ -289,6 +289,58 @@ export const zVault = z.object({
289
289
  .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))$/)
290
290
  .nullable(),
291
291
  });
292
+ export const zTelegramChatMapping = z.object({
293
+ id: z.string(),
294
+ chatId: z.string(),
295
+ topicId: z.string(),
296
+ chatTitle: z.string().nullable(),
297
+ chatType: z.string().nullable(),
298
+ projectId: z.string(),
299
+ defaultProjectAgentId: z.string().nullable(),
300
+ claimedByUserId: z.string().nullable(),
301
+ fallbackSenderUserId: z.string().nullable(),
302
+ allowedSenders: z.array(z.string()),
303
+ blockedSenders: z.array(z.string()),
304
+ createdAt: z.iso
305
+ .datetime()
306
+ .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))$/),
307
+ updatedAt: z.iso
308
+ .datetime()
309
+ .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))$/),
310
+ });
311
+ export const zTelegramChat = z.object({
312
+ id: z.string(),
313
+ chatId: z.string(),
314
+ topicId: z.string(),
315
+ chatTitle: z.string().nullable(),
316
+ chatType: z.string().nullable(),
317
+ projectId: z.string(),
318
+ defaultProjectAgentId: z.string().nullable(),
319
+ claimedByUserId: z.string().nullable(),
320
+ fallbackSenderUserId: z.string().nullable(),
321
+ allowedSenders: z.array(z.string()),
322
+ blockedSenders: z.array(z.string()),
323
+ createdAt: z.iso
324
+ .datetime()
325
+ .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))$/),
326
+ updatedAt: z.iso
327
+ .datetime()
328
+ .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))$/),
329
+ projectName: z.string().nullable(),
330
+ });
331
+ export const zTelegramClaimCode = z.object({
332
+ code: z.string(),
333
+ groupUrl: z.url(),
334
+ dmUrl: z.url(),
335
+ });
336
+ export const zTelegramLinkStatus = z.object({
337
+ linked: z.boolean(),
338
+ telegramUserId: z.string().nullable(),
339
+ });
340
+ export const zTelegramLinkCode = z.object({
341
+ code: z.string(),
342
+ url: z.url(),
343
+ });
292
344
  export const zProjectEmailResponse = z.object({
293
345
  id: z.string(),
294
346
  orgId: z.string(),
@@ -618,6 +670,16 @@ export const zTopology = z.object({
618
670
  notes: z.string().optional(),
619
671
  }))
620
672
  .optional(),
673
+ emails: z
674
+ .array(z.object({
675
+ id: z.string().regex(/^[a-z]+_[A-Za-z0-9]+$/),
676
+ project: z.string().regex(/^[a-z0-9][a-z0-9-]*$/),
677
+ localPart: z.string(),
678
+ address: z
679
+ .email()
680
+ .regex(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/),
681
+ }))
682
+ .optional(),
621
683
  });
622
684
  export const zSkillVersion = z.object({
623
685
  id: z.string(),
@@ -3630,6 +3692,74 @@ export const zEmailSetQuery = z.object({
3630
3692
  * The project's email mailbox
3631
3693
  */
3632
3694
  export const zEmailSetResponse = zProjectEmailResponse;
3695
+ export const zTelegramLinkCodeQuery = z.object({
3696
+ scope: z.enum(["user"]).optional(),
3697
+ });
3698
+ /**
3699
+ * Link code
3700
+ */
3701
+ export const zTelegramLinkCodeResponse = zTelegramLinkCode;
3702
+ export const zTelegramMeQuery = z.object({
3703
+ scope: z.enum(["user"]).optional(),
3704
+ });
3705
+ /**
3706
+ * Link status
3707
+ */
3708
+ export const zTelegramMeResponse = zTelegramLinkStatus;
3709
+ export const zTelegramUnlinkQuery = z.object({
3710
+ scope: z.enum(["user"]).optional(),
3711
+ });
3712
+ /**
3713
+ * Unlinked
3714
+ */
3715
+ export const zTelegramUnlinkResponse = z.void();
3716
+ export const zTelegramClaimCodeBody = z.object({
3717
+ projectId: z.string().min(1),
3718
+ defaultProjectAgentId: z.string().min(1).nullish().default(null),
3719
+ });
3720
+ export const zTelegramClaimCodeQuery = z.object({
3721
+ scope: z.enum(["user"]).optional(),
3722
+ });
3723
+ /**
3724
+ * Claim code
3725
+ */
3726
+ export const zTelegramClaimCodeResponse = zTelegramClaimCode;
3727
+ export const zTelegramChatListQuery = z.object({
3728
+ scope: z.enum(["user"]).optional(),
3729
+ });
3730
+ /**
3731
+ * Mapped chats
3732
+ */
3733
+ export const zTelegramChatListResponse = z.array(zTelegramChat);
3734
+ export const zTelegramChatUnsetPath = z.object({
3735
+ chatId: z.string().min(1),
3736
+ });
3737
+ export const zTelegramChatUnsetQuery = z.object({
3738
+ scope: z.enum(["user"]).optional(),
3739
+ topicId: z.string().optional().default(""),
3740
+ });
3741
+ /**
3742
+ * Removed
3743
+ */
3744
+ export const zTelegramChatUnsetResponse = z.void();
3745
+ export const zTelegramChatSetBody = z.object({
3746
+ projectId: z.string(),
3747
+ defaultProjectAgentId: z.string().nullish().default(null),
3748
+ fallbackSenderUserId: z.string().nullish().default(null),
3749
+ allowedSenders: z.array(z.string()).optional().default([]),
3750
+ blockedSenders: z.array(z.string()).optional().default([]),
3751
+ });
3752
+ export const zTelegramChatSetPath = z.object({
3753
+ chatId: z.string().min(1),
3754
+ });
3755
+ export const zTelegramChatSetQuery = z.object({
3756
+ scope: z.enum(["user"]).optional(),
3757
+ topicId: z.string().optional().default(""),
3758
+ });
3759
+ /**
3760
+ * Updated mapping
3761
+ */
3762
+ export const zTelegramChatSetResponse = zTelegramChatMapping;
3633
3763
  export const zVaultListQuery = z.object({
3634
3764
  scope: z.enum(["user"]).optional(),
3635
3765
  limit: z.number().gte(1).lte(1000).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renai-labs/sdk",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "TypeScript SDK for the Ren API, generated from OpenAPI.",
5
5
  "license": "MIT",
6
6
  "author": "Ren Labs, Inc.",