@homespot-sdk/core 0.0.362 → 0.0.364

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.
Files changed (36) hide show
  1. package/dist/property/client.gen.d.ts.map +1 -1
  2. package/dist/property/client.gen.js +1 -3
  3. package/dist/property/client.gen.js.map +1 -1
  4. package/dist/property/types.gen.d.ts +1 -1
  5. package/dist/property/types.gen.d.ts.map +1 -1
  6. package/dist/rem/client.gen.d.ts.map +1 -1
  7. package/dist/rem/client.gen.js +1 -3
  8. package/dist/rem/client.gen.js.map +1 -1
  9. package/dist/rem/index.d.ts +2 -2
  10. package/dist/rem/index.d.ts.map +1 -1
  11. package/dist/rem/index.js +1 -1
  12. package/dist/rem/index.js.map +1 -1
  13. package/dist/rem/schemas.gen.d.ts +916 -67
  14. package/dist/rem/schemas.gen.d.ts.map +1 -1
  15. package/dist/rem/schemas.gen.js +1095 -90
  16. package/dist/rem/schemas.gen.js.map +1 -1
  17. package/dist/rem/sdk.gen.d.ts +20 -13
  18. package/dist/rem/sdk.gen.d.ts.map +1 -1
  19. package/dist/rem/sdk.gen.js +55 -11
  20. package/dist/rem/sdk.gen.js.map +1 -1
  21. package/dist/rem/transformers.gen.d.ts +3 -2
  22. package/dist/rem/transformers.gen.d.ts.map +1 -1
  23. package/dist/rem/transformers.gen.js +37 -4
  24. package/dist/rem/transformers.gen.js.map +1 -1
  25. package/dist/rem/types.gen.d.ts +561 -52
  26. package/dist/rem/types.gen.d.ts.map +1 -1
  27. package/dist/rem/zod.gen.d.ts +1513 -214
  28. package/dist/rem/zod.gen.d.ts.map +1 -1
  29. package/dist/rem/zod.gen.js +933 -70
  30. package/dist/rem/zod.gen.js.map +1 -1
  31. package/dist/utils/client.gen.d.ts.map +1 -1
  32. package/dist/utils/client.gen.js +1 -3
  33. package/dist/utils/client.gen.js.map +1 -1
  34. package/dist/utils/types.gen.d.ts +1 -1
  35. package/dist/utils/types.gen.d.ts.map +1 -1
  36. package/package.json +1 -1
@@ -348,6 +348,42 @@ export const zUploadAcknowledgmentResponse = z.object({
348
348
  success: z.array(z.string()),
349
349
  fail: z.array(z.string()),
350
350
  });
351
+ export const zPlanLimitResponse = z.object({
352
+ type: z.optional(z.url()),
353
+ title: z.optional(z.string()),
354
+ status: z.optional(z
355
+ .int()
356
+ .min(-2147483648, {
357
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
358
+ })
359
+ .max(2147483647, {
360
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
361
+ })),
362
+ detail: z.optional(z.string()),
363
+ instance: z.optional(z.url()),
364
+ limit: z.enum([
365
+ 'SEATS',
366
+ 'ACTIVE_LISTINGS',
367
+ 'SOCIAL_POSTS',
368
+ 'AGENCY_BRANDING',
369
+ ]),
370
+ used: z.optional(z
371
+ .int()
372
+ .min(-2147483648, {
373
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
374
+ })
375
+ .max(2147483647, {
376
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
377
+ })),
378
+ allowed: z.optional(z
379
+ .int()
380
+ .min(-2147483648, {
381
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
382
+ })
383
+ .max(2147483647, {
384
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
385
+ })),
386
+ });
351
387
  export const zConnectLinkResponse = z.object({
352
388
  link: z.optional(z.string()),
353
389
  expiresAt: z.optional(z.iso.datetime()),
@@ -421,8 +457,8 @@ export const zSubscriptionAddressRequest = z.object({
421
457
  street: z.string().min(0).max(255),
422
458
  });
423
459
  export const zSubscribeRequest = z.object({
424
- plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
425
- billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
460
+ plan: z.optional(z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE'])),
461
+ billingCycle: z.optional(z.enum(['MONTHLY', 'ANNUAL'])),
426
462
  name: z.string().min(1),
427
463
  email: z.email().min(1),
428
464
  phone: z.string().min(1),
@@ -444,11 +480,11 @@ export const zSubscriptionCheckoutResponse = z.object({
444
480
  ])),
445
481
  });
446
482
  export const zChangePlanRequest = z.object({
447
- plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
483
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
448
484
  billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
449
485
  });
450
486
  export const zCheckoutRequest = z.object({
451
- plan: z.optional(z.enum(['STARTER', 'PRO', 'ENTERPRISE'])),
487
+ plan: z.optional(z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE'])),
452
488
  billingCycle: z.optional(z.enum(['MONTHLY', 'ANNUAL'])),
453
489
  });
454
490
  export const zIdResponseInteger = z.object({
@@ -461,6 +497,150 @@ export const zIdResponseInteger = z.object({
461
497
  error: 'Invalid value: Expected int32 to be <= 2147483647',
462
498
  }),
463
499
  });
500
+ export const zAddressNames = z.object({
501
+ region: z.optional(z.record(z.string(), z.string())),
502
+ district: z.optional(z.record(z.string(), z.string())),
503
+ subdistrict: z.optional(z.record(z.string(), z.string())),
504
+ street: z.optional(z.record(z.string(), z.string())),
505
+ });
506
+ export const zCoordinates = z.object({
507
+ lat: z.optional(z.number()),
508
+ lng: z.optional(z.number()),
509
+ });
510
+ export const zAddressRef = z.object({
511
+ regionId: z.optional(z.coerce
512
+ .bigint()
513
+ .min(BigInt('-9223372036854775808'), {
514
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
515
+ })
516
+ .max(BigInt('9223372036854775807'), {
517
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
518
+ })),
519
+ districtId: z.optional(z.coerce
520
+ .bigint()
521
+ .min(BigInt('-9223372036854775808'), {
522
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
523
+ })
524
+ .max(BigInt('9223372036854775807'), {
525
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
526
+ })),
527
+ subdistrictId: z.optional(z.coerce
528
+ .bigint()
529
+ .min(BigInt('-9223372036854775808'), {
530
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
531
+ })
532
+ .max(BigInt('9223372036854775807'), {
533
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
534
+ })),
535
+ streetId: z.optional(z.coerce
536
+ .bigint()
537
+ .min(BigInt('-9223372036854775808'), {
538
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
539
+ })
540
+ .max(BigInt('9223372036854775807'), {
541
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
542
+ })),
543
+ names: z.optional(zAddressNames),
544
+ cadastreCode: z.optional(z.string()),
545
+ coordinates: z.optional(zCoordinates),
546
+ });
547
+ export const zOffer = z.object({
548
+ deal: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
549
+ price: z.number(),
550
+ });
551
+ export const zPhotoInternalRequest = z.object({
552
+ photo: z.string().min(0).max(255),
553
+ width: z.int().gte(10).lte(11000),
554
+ height: z.optional(z.int().gte(10).lte(11000)),
555
+ });
556
+ export const zPropertyCreationRequest = z.object({
557
+ draftId: z.uuid(),
558
+ contactId: z.optional(z.coerce
559
+ .bigint()
560
+ .min(BigInt('-9223372036854775808'), {
561
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
562
+ })
563
+ .max(BigInt('9223372036854775807'), {
564
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
565
+ })),
566
+ propertyType: z.enum([
567
+ 'HOUSE',
568
+ 'TOWN_HOUSE',
569
+ 'COUNTRY_HOUSE',
570
+ 'VILLA',
571
+ 'COTTAGE',
572
+ 'APARTMENT',
573
+ 'DUPLEX',
574
+ 'TRIPLEX',
575
+ 'SEMI_BASEMENT',
576
+ 'ATTIC',
577
+ 'AGRICULTURAL_LAND',
578
+ 'RESIDENTIAL_LAND',
579
+ 'HOTEL_ROOM',
580
+ 'MOTEL_ROOM',
581
+ 'CO_LIVING_SPACE',
582
+ 'OFFICE',
583
+ 'COMMERCIAL_SPACE',
584
+ 'CO_WORKING_SPACE',
585
+ 'WAREHOUSE',
586
+ 'GARAGE',
587
+ ]),
588
+ address: zAddressRef,
589
+ photoUrls: z.array(zPhotoInternalRequest).min(5).max(2147483647),
590
+ spaces: z.record(z.string(), z.array(z.number())),
591
+ totalArea: z.number(),
592
+ livingArea: z.optional(z.number()),
593
+ balconyArea: z.optional(z.number()),
594
+ status: z.optional(z.enum([
595
+ 'OLD_BUILDING',
596
+ 'NEW_BUILDING',
597
+ 'UNDER_CONSTRUCTION',
598
+ 'FINISHED',
599
+ ])),
600
+ condition: z.optional(z.enum([
601
+ 'NEWLY_RENOVATED',
602
+ 'OLD_RENOVATED',
603
+ 'CURRENT_RENOVATION',
604
+ 'REPAIRING',
605
+ 'WHITE_FRAME',
606
+ 'BLACK_FRAME',
607
+ 'GREEN_FRAME',
608
+ 'WHITE_PLUS',
609
+ ])),
610
+ totalFloors: z.optional(z
611
+ .int()
612
+ .min(-2147483648, {
613
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
614
+ })
615
+ .max(2147483647, {
616
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
617
+ })),
618
+ floorAt: z.optional(z
619
+ .int()
620
+ .min(-2147483648, {
621
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
622
+ })
623
+ .max(2147483647, {
624
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
625
+ })),
626
+ amenities: z.array(z
627
+ .int()
628
+ .min(-2147483648, {
629
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
630
+ })
631
+ .max(2147483647, {
632
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
633
+ })),
634
+ title: z.string().min(1),
635
+ description: z.record(z.string(), z.string()),
636
+ });
637
+ export const zSubmission = z.object({
638
+ property: zPropertyCreationRequest,
639
+ offer: z.optional(zOffer),
640
+ });
641
+ export const zPhotosRequest = z.object({
642
+ photos: z.array(zPhotoRequest).min(1).max(30),
643
+ });
464
644
  export const zContactInfoRequest = z.object({
465
645
  firstName: z.optional(z.string().min(1).max(20)),
466
646
  lastName: z.optional(z.string().min(1).max(20)),
@@ -852,14 +1032,9 @@ export const zAddTodoTemplateRequest = z.object({
852
1032
  title: z.string(),
853
1033
  applyToTasksInStage: z.boolean(),
854
1034
  });
855
- export const zProvisionAgencyRequest = z.object({
856
- ownerUserId: z.string(),
857
- name: z.string(),
858
- email: z.email(),
859
- phone: z.string(),
860
- subdomain: z.string(),
861
- address: zSubscriptionAddressRequest,
862
- plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
1035
+ export const zAdminCheckoutRequest = z.object({
1036
+ agencyId: z.uuid(),
1037
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
863
1038
  billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
864
1039
  priceMinorUnits: z.coerce
865
1040
  .bigint()
@@ -877,7 +1052,7 @@ export const zProvisionAgencyRequest = z.object({
877
1052
  .max(2147483647, {
878
1053
  error: 'Invalid value: Expected int32 to be <= 2147483647',
879
1054
  }),
880
- monthlyContactLimit: z
1055
+ activeListings: z
881
1056
  .int()
882
1057
  .min(-2147483648, {
883
1058
  error: 'Invalid value: Expected int32 to be >= -2147483648',
@@ -885,6 +1060,15 @@ export const zProvisionAgencyRequest = z.object({
885
1060
  .max(2147483647, {
886
1061
  error: 'Invalid value: Expected int32 to be <= 2147483647',
887
1062
  }),
1063
+ aiMessages: z
1064
+ .int()
1065
+ .min(-2147483648, {
1066
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1067
+ })
1068
+ .max(2147483647, {
1069
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1070
+ }),
1071
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
888
1072
  trialDays: z
889
1073
  .int()
890
1074
  .min(-2147483648, {
@@ -893,10 +1077,15 @@ export const zProvisionAgencyRequest = z.object({
893
1077
  .max(2147483647, {
894
1078
  error: 'Invalid value: Expected int32 to be <= 2147483647',
895
1079
  }),
1080
+ discountMonths: z.optional(z
1081
+ .int()
1082
+ .gte(2)
1083
+ .max(2147483647, {
1084
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1085
+ })),
896
1086
  });
897
- export const zAdminProvisionResponse = z.object({
1087
+ export const zAdminCheckoutResponse = z.object({
898
1088
  checkoutUrl: z.optional(z.string()),
899
- agencyId: z.optional(z.uuid()),
900
1089
  subscriptionId: z.optional(z.uuid()),
901
1090
  });
902
1091
  export const zPositionTaskRequest = z.object({
@@ -945,6 +1134,7 @@ export const zOrganizationSummaryViewResponse = z.object({
945
1134
  ]),
946
1135
  phone: z.string(),
947
1136
  isPhoneVerified: z.boolean(),
1137
+ isSeatLocked: z.boolean(),
948
1138
  });
949
1139
  export const zUserSummaryViewResponse = z.object({
950
1140
  email: z.string(),
@@ -1494,7 +1684,7 @@ export const zStageCardsResponse = z.object({
1494
1684
  });
1495
1685
  export const zSubscriptionResponse = z.object({
1496
1686
  subscriptionId: z.uuid(),
1497
- plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
1687
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
1498
1688
  billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
1499
1689
  priceMinorUnits: z.coerce
1500
1690
  .bigint()
@@ -1504,6 +1694,30 @@ export const zSubscriptionResponse = z.object({
1504
1694
  .max(BigInt('9223372036854775807'), {
1505
1695
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1506
1696
  }),
1697
+ netMinorUnits: z.coerce
1698
+ .bigint()
1699
+ .min(BigInt('-9223372036854775808'), {
1700
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1701
+ })
1702
+ .max(BigInt('9223372036854775807'), {
1703
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1704
+ }),
1705
+ vatMinorUnits: z.coerce
1706
+ .bigint()
1707
+ .min(BigInt('-9223372036854775808'), {
1708
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1709
+ })
1710
+ .max(BigInt('9223372036854775807'), {
1711
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1712
+ }),
1713
+ vatPercent: z
1714
+ .int()
1715
+ .min(-2147483648, {
1716
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1717
+ })
1718
+ .max(2147483647, {
1719
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1720
+ }),
1507
1721
  currency: z.string(),
1508
1722
  seats: z
1509
1723
  .int()
@@ -1513,7 +1727,7 @@ export const zSubscriptionResponse = z.object({
1513
1727
  .max(2147483647, {
1514
1728
  error: 'Invalid value: Expected int32 to be <= 2147483647',
1515
1729
  }),
1516
- monthlyContactLimit: z
1730
+ activeListings: z
1517
1731
  .int()
1518
1732
  .min(-2147483648, {
1519
1733
  error: 'Invalid value: Expected int32 to be >= -2147483648',
@@ -1521,6 +1735,15 @@ export const zSubscriptionResponse = z.object({
1521
1735
  .max(2147483647, {
1522
1736
  error: 'Invalid value: Expected int32 to be <= 2147483647',
1523
1737
  }),
1738
+ aiMessages: z
1739
+ .int()
1740
+ .min(-2147483648, {
1741
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1742
+ })
1743
+ .max(2147483647, {
1744
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1745
+ }),
1746
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
1524
1747
  trialDays: z
1525
1748
  .int()
1526
1749
  .min(-2147483648, {
@@ -1548,6 +1771,58 @@ export const zSubscriptionResponse = z.object({
1548
1771
  activatedAt: z.optional(z.iso.datetime()),
1549
1772
  cancelledAt: z.optional(z.iso.datetime()),
1550
1773
  checkoutExpiresAt: z.optional(z.iso.datetime()),
1774
+ discountEndsAt: z.optional(z.iso.datetime()),
1775
+ });
1776
+ export const zAiMessages = z.object({
1777
+ used: z.coerce
1778
+ .bigint()
1779
+ .min(BigInt('-9223372036854775808'), {
1780
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1781
+ })
1782
+ .max(BigInt('9223372036854775807'), {
1783
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1784
+ }),
1785
+ limit: z.coerce
1786
+ .bigint()
1787
+ .min(BigInt('-9223372036854775808'), {
1788
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1789
+ })
1790
+ .max(BigInt('9223372036854775807'), {
1791
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1792
+ }),
1793
+ resetsAt: z.optional(z.iso.datetime()),
1794
+ });
1795
+ export const zTrial = z.object({
1796
+ endsAt: z.iso.datetime(),
1797
+ });
1798
+ export const zUsage = z.object({
1799
+ used: z.coerce
1800
+ .bigint()
1801
+ .min(BigInt('-9223372036854775808'), {
1802
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1803
+ })
1804
+ .max(BigInt('9223372036854775807'), {
1805
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1806
+ }),
1807
+ limit: z.coerce
1808
+ .bigint()
1809
+ .min(BigInt('-9223372036854775808'), {
1810
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1811
+ })
1812
+ .max(BigInt('9223372036854775807'), {
1813
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1814
+ }),
1815
+ });
1816
+ export const zPlanResponse = z.object({
1817
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
1818
+ canManage: z.boolean(),
1819
+ trial: z.optional(zTrial),
1820
+ subscription: z.optional(zSubscriptionResponse),
1821
+ seats: zUsage,
1822
+ activeListings: zUsage,
1823
+ aiMessages: zAiMessages,
1824
+ boards: zUsage,
1825
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
1551
1826
  });
1552
1827
  export const zPaymentResponse = z.object({
1553
1828
  id: z.uuid(),
@@ -1578,6 +1853,30 @@ export const zPaymentResponse = z.object({
1578
1853
  .max(BigInt('9223372036854775807'), {
1579
1854
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1580
1855
  })),
1856
+ netMinorUnits: z.optional(z.coerce
1857
+ .bigint()
1858
+ .min(BigInt('-9223372036854775808'), {
1859
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1860
+ })
1861
+ .max(BigInt('9223372036854775807'), {
1862
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1863
+ })),
1864
+ vatMinorUnits: z.optional(z.coerce
1865
+ .bigint()
1866
+ .min(BigInt('-9223372036854775808'), {
1867
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1868
+ })
1869
+ .max(BigInt('9223372036854775807'), {
1870
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1871
+ })),
1872
+ vatPercent: z
1873
+ .int()
1874
+ .min(-2147483648, {
1875
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1876
+ })
1877
+ .max(2147483647, {
1878
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1879
+ }),
1581
1880
  currency: z.optional(z.string()),
1582
1881
  responseCode: z.optional(z.string()),
1583
1882
  responseDescription: z.optional(z.string()),
@@ -1807,6 +2106,125 @@ export const zPagedModelRoleResponse = z.object({
1807
2106
  content: z.optional(z.array(zRoleResponse)),
1808
2107
  page: z.optional(zPageMetadata),
1809
2108
  });
2109
+ export const zOwner = z.object({
2110
+ id: z.optional(z.coerce
2111
+ .bigint()
2112
+ .min(BigInt('-9223372036854775808'), {
2113
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2114
+ })
2115
+ .max(BigInt('9223372036854775807'), {
2116
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2117
+ })),
2118
+ name: z.optional(z.string()),
2119
+ phone: z.optional(z.string()),
2120
+ });
2121
+ export const zViewport = z.object({
2122
+ south: z.number(),
2123
+ west: z.number(),
2124
+ north: z.number(),
2125
+ east: z.number(),
2126
+ });
2127
+ export const zLocationSummary = z.object({
2128
+ id: z.coerce
2129
+ .bigint()
2130
+ .min(BigInt('-9223372036854775808'), {
2131
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2132
+ })
2133
+ .max(BigInt('9223372036854775807'), {
2134
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2135
+ }),
2136
+ parentId: z.optional(z.coerce
2137
+ .bigint()
2138
+ .min(BigInt('-9223372036854775808'), {
2139
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2140
+ })
2141
+ .max(BigInt('9223372036854775807'), {
2142
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2143
+ })),
2144
+ type: z.enum(['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET']),
2145
+ names: z.record(z.string(), z.string()),
2146
+ fullNames: z.record(z.string(), z.string()),
2147
+ viewport: zViewport,
2148
+ });
2149
+ export const zPrefill = z.object({
2150
+ owner: z.optional(zOwner),
2151
+ propertyType: z.optional(z.enum([
2152
+ 'HOUSE',
2153
+ 'TOWN_HOUSE',
2154
+ 'COUNTRY_HOUSE',
2155
+ 'VILLA',
2156
+ 'COTTAGE',
2157
+ 'APARTMENT',
2158
+ 'DUPLEX',
2159
+ 'TRIPLEX',
2160
+ 'SEMI_BASEMENT',
2161
+ 'ATTIC',
2162
+ 'AGRICULTURAL_LAND',
2163
+ 'RESIDENTIAL_LAND',
2164
+ 'HOTEL_ROOM',
2165
+ 'MOTEL_ROOM',
2166
+ 'CO_LIVING_SPACE',
2167
+ 'OFFICE',
2168
+ 'COMMERCIAL_SPACE',
2169
+ 'CO_WORKING_SPACE',
2170
+ 'WAREHOUSE',
2171
+ 'GARAGE',
2172
+ ])),
2173
+ place: z.optional(zLocationSummary),
2174
+ spaces: z.optional(z.record(z.string(), z.array(z.number()))),
2175
+ totalArea: z.optional(z.number()),
2176
+ livingArea: z.optional(z.number()),
2177
+ balconyArea: z.optional(z.number()),
2178
+ status: z.optional(z.enum([
2179
+ 'OLD_BUILDING',
2180
+ 'NEW_BUILDING',
2181
+ 'UNDER_CONSTRUCTION',
2182
+ 'FINISHED',
2183
+ ])),
2184
+ condition: z.optional(z.enum([
2185
+ 'NEWLY_RENOVATED',
2186
+ 'OLD_RENOVATED',
2187
+ 'CURRENT_RENOVATION',
2188
+ 'REPAIRING',
2189
+ 'WHITE_FRAME',
2190
+ 'BLACK_FRAME',
2191
+ 'GREEN_FRAME',
2192
+ 'WHITE_PLUS',
2193
+ ])),
2194
+ totalFloors: z.optional(z
2195
+ .int()
2196
+ .min(-2147483648, {
2197
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2198
+ })
2199
+ .max(2147483647, {
2200
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2201
+ })),
2202
+ floorAt: z.optional(z
2203
+ .int()
2204
+ .min(-2147483648, {
2205
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2206
+ })
2207
+ .max(2147483647, {
2208
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2209
+ })),
2210
+ amenities: z.optional(z.array(z
2211
+ .int()
2212
+ .min(-2147483648, {
2213
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2214
+ })
2215
+ .max(2147483647, {
2216
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2217
+ }))),
2218
+ title: z.optional(z.string()),
2219
+ description: z.optional(z.string()),
2220
+ offer: z.optional(zOffer),
2221
+ });
2222
+ export const zForm = z.object({
2223
+ id: z.optional(z.uuid()),
2224
+ state: z.optional(z.enum(['OPEN', 'SENT', 'REPLACED', 'EXPIRED'])),
2225
+ expiresAt: z.optional(z.iso.datetime()),
2226
+ prefill: z.optional(zPrefill),
2227
+ });
1810
2228
  export const zAddressResponse = z.object({
1811
2229
  region: zLocationResponse,
1812
2230
  district: zLocationResponse,
@@ -2004,6 +2422,7 @@ export const zInterestResponse = z.object({
2004
2422
  criteria: zCriteria,
2005
2423
  recommendationStats: zRecommendationStats,
2006
2424
  boundedBox: z.optional(zBoundingBox),
2425
+ agencyBranding: z.boolean(),
2007
2426
  recommendations: zPagedModelRecommendationsCardView,
2008
2427
  });
2009
2428
  export const zRecommendationDecisionResponse = z.object({
@@ -2011,6 +2430,95 @@ export const zRecommendationDecisionResponse = z.object({
2011
2430
  externalListingId: z.uuid(),
2012
2431
  decision: z.enum(['MAYBE', 'DISLIKE', 'LIKE']),
2013
2432
  });
2433
+ export const zAmount = z.object({
2434
+ netMinorUnits: z.coerce
2435
+ .bigint()
2436
+ .min(BigInt('-9223372036854775808'), {
2437
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2438
+ })
2439
+ .max(BigInt('9223372036854775807'), {
2440
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2441
+ }),
2442
+ vatMinorUnits: z.coerce
2443
+ .bigint()
2444
+ .min(BigInt('-9223372036854775808'), {
2445
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2446
+ })
2447
+ .max(BigInt('9223372036854775807'), {
2448
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2449
+ }),
2450
+ totalMinorUnits: z.coerce
2451
+ .bigint()
2452
+ .min(BigInt('-9223372036854775808'), {
2453
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2454
+ })
2455
+ .max(BigInt('9223372036854775807'), {
2456
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2457
+ }),
2458
+ });
2459
+ export const zPlanOffer = z.object({
2460
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
2461
+ monthly: zAmount,
2462
+ yearly: zAmount,
2463
+ seats: z
2464
+ .int()
2465
+ .min(-2147483648, {
2466
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2467
+ })
2468
+ .max(2147483647, {
2469
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2470
+ }),
2471
+ activeListings: z
2472
+ .int()
2473
+ .min(-2147483648, {
2474
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2475
+ })
2476
+ .max(2147483647, {
2477
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2478
+ }),
2479
+ aiMessages: z
2480
+ .int()
2481
+ .min(-2147483648, {
2482
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2483
+ })
2484
+ .max(2147483647, {
2485
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2486
+ }),
2487
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
2488
+ });
2489
+ export const zTrialOffer = z.object({
2490
+ days: z
2491
+ .int()
2492
+ .min(-2147483648, {
2493
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2494
+ })
2495
+ .max(2147483647, {
2496
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2497
+ }),
2498
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
2499
+ aiMessages: z
2500
+ .int()
2501
+ .min(-2147483648, {
2502
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2503
+ })
2504
+ .max(2147483647, {
2505
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2506
+ }),
2507
+ });
2508
+ export const zCatalogResponse = z.object({
2509
+ currency: z.string(),
2510
+ vatPercent: z
2511
+ .int()
2512
+ .min(-2147483648, {
2513
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2514
+ })
2515
+ .max(2147483647, {
2516
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2517
+ }),
2518
+ plans: z.array(zPlanOffer),
2519
+ enterpriseFromMonthly: zAmount,
2520
+ trial: zTrialOffer,
2521
+ });
2014
2522
  export const zPermissionResponse = z.object({
2015
2523
  permission: z.enum([
2016
2524
  'MANAGE_AGENCY',
@@ -2434,6 +2942,37 @@ export const zListingOwnerContactResponse = z.object({
2434
2942
  zContactPersonalDetailsVisible,
2435
2943
  ]),
2436
2944
  });
2945
+ export const zAiMessagesRunningLow = z.object({
2946
+ used: z.optional(z.coerce
2947
+ .bigint()
2948
+ .min(BigInt('-9223372036854775808'), {
2949
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2950
+ })
2951
+ .max(BigInt('9223372036854775807'), {
2952
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2953
+ })),
2954
+ allowance: z.optional(z
2955
+ .int()
2956
+ .min(-2147483648, {
2957
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2958
+ })
2959
+ .max(2147483647, {
2960
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2961
+ })),
2962
+ kind: z.enum(['AI_MESSAGES_RUNNING_LOW']),
2963
+ });
2964
+ export const zAiMessagesUsedUp = z.object({
2965
+ allowance: z.optional(z
2966
+ .int()
2967
+ .min(-2147483648, {
2968
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2969
+ })
2970
+ .max(2147483647, {
2971
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2972
+ })),
2973
+ renewsAt: z.optional(z.iso.datetime()),
2974
+ kind: z.enum(['AI_MESSAGES_USED_UP']),
2975
+ });
2437
2976
  export const zCommentId = z.object({
2438
2977
  value: z.optional(z.uuid()),
2439
2978
  });
@@ -2584,6 +3123,11 @@ export const zSocialPostFailed = z.object({
2584
3123
  export const zSubscriptionId = z.object({
2585
3124
  value: z.optional(z.uuid()),
2586
3125
  });
3126
+ export const zDiscountEnding = z.object({
3127
+ subscriptionId: z.optional(zSubscriptionId),
3128
+ endsAt: z.optional(z.iso.datetime()),
3129
+ kind: z.enum(['DISCOUNT_ENDING']),
3130
+ });
2587
3131
  export const zSubscriptionEnding = z.object({
2588
3132
  subscriptionId: z.optional(zSubscriptionId),
2589
3133
  status: z.optional(z.enum([
@@ -2633,6 +3177,13 @@ export const zTaskCommented = z.object({
2633
3177
  commentSnippet: z.optional(z.string()),
2634
3178
  kind: z.enum(['TASK_COMMENTED']),
2635
3179
  });
3180
+ export const zTrialEnded = z.object({
3181
+ kind: z.enum(['TRIAL_ENDED']),
3182
+ });
3183
+ export const zTrialEnding = z.object({
3184
+ endsAt: z.optional(z.iso.datetime()),
3185
+ kind: z.enum(['TRIAL_ENDING']),
3186
+ });
2636
3187
  export const zNotificationView = z.object({
2637
3188
  id: z.uuid(),
2638
3189
  seq: z.coerce
@@ -2656,6 +3207,11 @@ export const zNotificationView = z.object({
2656
3207
  'SUBSCRIPTION_ENDING',
2657
3208
  'SUBSCRIPTION_EXPIRED',
2658
3209
  'SUBSCRIPTION_PAYMENT_REVERSED',
3210
+ 'TRIAL_ENDING',
3211
+ 'TRIAL_ENDED',
3212
+ 'DISCOUNT_ENDING',
3213
+ 'AI_MESSAGES_RUNNING_LOW',
3214
+ 'AI_MESSAGES_USED_UP',
2659
3215
  'CHANNEL_REAUTH_REQUIRED',
2660
3216
  'SOCIAL_POST_FAILED',
2661
3217
  'SOCIAL_POST_COMMENTED',
@@ -2663,8 +3219,11 @@ export const zNotificationView = z.object({
2663
3219
  targetId: z.optional(z.string()),
2664
3220
  payload: z.union([
2665
3221
  zAgentCommented,
3222
+ zAiMessagesRunningLow,
3223
+ zAiMessagesUsedUp,
2666
3224
  zChannelReauthRequired,
2667
3225
  zContactAssigned,
3226
+ zDiscountEnding,
2668
3227
  zListingExpired,
2669
3228
  zMemberMentioned,
2670
3229
  zNewMessage,
@@ -2676,6 +3235,8 @@ export const zNotificationView = z.object({
2676
3235
  zSubscriptionPaymentFailed,
2677
3236
  zSubscriptionPaymentReversed,
2678
3237
  zTaskCommented,
3238
+ zTrialEnded,
3239
+ zTrialEnding,
2679
3240
  ]),
2680
3241
  count: z
2681
3242
  .int()
@@ -2865,6 +3426,14 @@ export const zPlatformView = z.object({
2865
3426
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2866
3427
  })),
2867
3428
  platform: z.optional(z.enum(['SS', 'MY_HOME'])),
3429
+ status: z.enum([
3430
+ 'PENDING',
3431
+ 'SYNDICATED',
3432
+ 'FAILED',
3433
+ 'EXPIRED',
3434
+ 'WITHDRAWING',
3435
+ 'WITHDRAWN',
3436
+ ]),
2868
3437
  expiresAt: z.optional(z.iso.date()),
2869
3438
  tier: z.optional(z.enum(['VIP', 'VIP_PLUS', 'SUPER_VIP'])),
2870
3439
  boostExpiresAt: z.optional(z.iso.date()),
@@ -2940,6 +3509,8 @@ export const zListingGridResponse = z.object({
2940
3509
  'CLOSED',
2941
3510
  ]),
2942
3511
  listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
3512
+ listingState: z.optional(z.enum(['OPEN', 'CLOSED'])),
3513
+ marketplaceStatus: z.optional(z.enum(['ACTIVE', 'PAUSED', 'EXPIRED'])),
2943
3514
  price: z.optional(z.number()),
2944
3515
  commissionType: z.optional(z.enum(['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'])),
2945
3516
  commission: z.optional(z.number()),
@@ -3058,10 +3629,29 @@ export const zInterestGridResponse = z.object({
3058
3629
  listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
3059
3630
  priceRange: z.optional(zPriceRange),
3060
3631
  bedrooms: z.optional(zRoomRange),
3632
+ bathrooms: z.optional(zRoomRange),
3061
3633
  totalArea: z.optional(zAreaRange),
3062
3634
  livingArea: z.optional(zAreaRange),
3063
3635
  address: z.optional(zAddressView),
3636
+ locationType: z.optional(z.enum(['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'])),
3637
+ locationId: z.optional(z.coerce
3638
+ .bigint()
3639
+ .min(BigInt('-9223372036854775808'), {
3640
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3641
+ })
3642
+ .max(BigInt('9223372036854775807'), {
3643
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3644
+ })),
3064
3645
  status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
3646
+ shareToken: z.uuid(),
3647
+ recommendationCount: z
3648
+ .int()
3649
+ .min(-2147483648, {
3650
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
3651
+ })
3652
+ .max(2147483647, {
3653
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
3654
+ }),
3065
3655
  });
3066
3656
  export const zPagedModelInterestGridResponse = z.object({
3067
3657
  content: z.optional(z.array(zInterestGridResponse)),
@@ -3209,7 +3799,84 @@ export const zComposerPhoto = z.object({
3209
3799
  .max(2147483647, {
3210
3800
  error: 'Invalid value: Expected int32 to be <= 2147483647',
3211
3801
  }),
3212
- height: z
3802
+ height: z
3803
+ .int()
3804
+ .min(-2147483648, {
3805
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
3806
+ })
3807
+ .max(2147483647, {
3808
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
3809
+ }),
3810
+ selectedByDefault: z.boolean(),
3811
+ });
3812
+ export const zComposerPreview = z.object({
3813
+ channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
3814
+ caption: z.string(),
3815
+ templateId: z.optional(z.uuid()),
3816
+ limits: zComposerLimits,
3817
+ ratios: z.array(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
3818
+ defaultRatio: z.optional(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
3819
+ photos: z.array(zComposerPhoto),
3820
+ access: z.enum(['ALLOWED', 'NOT_CONNECTED', 'RECONNECT_REQUIRED']),
3821
+ });
3822
+ export const zSocialCommentPost = z.object({
3823
+ postId: z.uuid(),
3824
+ channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
3825
+ status: z.enum(['PUBLISHING', 'PUBLISHED', 'FAILED', 'REMOVED']),
3826
+ permalink: z.string(),
3827
+ publishedAt: z.iso.datetime(),
3828
+ });
3829
+ export const zSocialCommentThreadResponse = z.object({
3830
+ post: zSocialCommentPost,
3831
+ comment: zSocialCommentResponse,
3832
+ replies: z.array(zSocialCommentResponse),
3833
+ answered: z.boolean(),
3834
+ });
3835
+ export const zCursorPageSocialCommentThreadResponse = z.object({
3836
+ items: z.optional(z.array(zSocialCommentThreadResponse)),
3837
+ nextCursor: z.optional(z.string()),
3838
+ hasNext: z.optional(z.boolean()),
3839
+ });
3840
+ export const zListingMatch = z.object({
3841
+ externalPropertyId: z.uuid(),
3842
+ externalListingId: z.uuid(),
3843
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
3844
+ price: z.number(),
3845
+ propertyType: z.enum([
3846
+ 'HOUSE',
3847
+ 'TOWN_HOUSE',
3848
+ 'COUNTRY_HOUSE',
3849
+ 'VILLA',
3850
+ 'COTTAGE',
3851
+ 'APARTMENT',
3852
+ 'DUPLEX',
3853
+ 'TRIPLEX',
3854
+ 'SEMI_BASEMENT',
3855
+ 'ATTIC',
3856
+ 'AGRICULTURAL_LAND',
3857
+ 'RESIDENTIAL_LAND',
3858
+ 'HOTEL_ROOM',
3859
+ 'MOTEL_ROOM',
3860
+ 'CO_LIVING_SPACE',
3861
+ 'OFFICE',
3862
+ 'COMMERCIAL_SPACE',
3863
+ 'CO_WORKING_SPACE',
3864
+ 'WAREHOUSE',
3865
+ 'GARAGE',
3866
+ ]),
3867
+ address: z.optional(z.string()),
3868
+ lat: z.number(),
3869
+ lng: z.number(),
3870
+ totalArea: z.number(),
3871
+ bedrooms: z
3872
+ .int()
3873
+ .min(-2147483648, {
3874
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
3875
+ })
3876
+ .max(2147483647, {
3877
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
3878
+ }),
3879
+ bathrooms: z
3213
3880
  .int()
3214
3881
  .min(-2147483648, {
3215
3882
  error: 'Invalid value: Expected int32 to be >= -2147483648',
@@ -3217,35 +3884,7 @@ export const zComposerPhoto = z.object({
3217
3884
  .max(2147483647, {
3218
3885
  error: 'Invalid value: Expected int32 to be <= 2147483647',
3219
3886
  }),
3220
- selectedByDefault: z.boolean(),
3221
- });
3222
- export const zComposerPreview = z.object({
3223
- channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
3224
- caption: z.string(),
3225
- templateId: z.optional(z.uuid()),
3226
- limits: zComposerLimits,
3227
- ratios: z.array(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
3228
- defaultRatio: z.optional(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
3229
- photos: z.array(zComposerPhoto),
3230
- access: z.enum(['ALLOWED', 'NOT_CONNECTED', 'RECONNECT_REQUIRED']),
3231
- });
3232
- export const zSocialCommentPost = z.object({
3233
- postId: z.uuid(),
3234
- channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
3235
- status: z.enum(['PUBLISHING', 'PUBLISHED', 'FAILED', 'REMOVED']),
3236
- permalink: z.string(),
3237
- publishedAt: z.iso.datetime(),
3238
- });
3239
- export const zSocialCommentThreadResponse = z.object({
3240
- post: zSocialCommentPost,
3241
- comment: zSocialCommentResponse,
3242
- replies: z.array(zSocialCommentResponse),
3243
- answered: z.boolean(),
3244
- });
3245
- export const zCursorPageSocialCommentThreadResponse = z.object({
3246
- items: z.optional(z.array(zSocialCommentThreadResponse)),
3247
- nextCursor: z.optional(z.string()),
3248
- hasNext: z.optional(z.boolean()),
3887
+ featuredPhotos: z.array(z.string()),
3249
3888
  });
3250
3889
  export const zContactGridResponse = z.object({
3251
3890
  id: z.coerce
@@ -4681,6 +5320,15 @@ export const zPostSubscriptionsResumeData = z.object({
4681
5320
  * No Content
4682
5321
  */
4683
5322
  export const zPostSubscriptionsResumeResponse = z.void();
5323
+ export const zGetSubscriptionsPlanData = z.object({
5324
+ body: z.optional(z.never()),
5325
+ path: z.optional(z.never()),
5326
+ query: z.optional(z.never()),
5327
+ });
5328
+ /**
5329
+ * OK
5330
+ */
5331
+ export const zGetSubscriptionsPlanResponse = zPlanResponse;
4684
5332
  export const zPostSubscriptionsPlanData = z.object({
4685
5333
  body: zChangePlanRequest,
4686
5334
  path: z.optional(z.never()),
@@ -4737,6 +5385,10 @@ export const zPostPublicWebhooksTelegramData = z.object({
4737
5385
  'X-Telegram-Bot-Api-Secret-Token': z.optional(z.string()),
4738
5386
  })),
4739
5387
  });
5388
+ /**
5389
+ * OK
5390
+ */
5391
+ export const zPostPublicWebhooksTelegramResponse = z.record(z.string(), z.unknown());
4740
5392
  export const zGetPublicWebhooksMetaWaData = z.object({
4741
5393
  body: z.optional(z.never()),
4742
5394
  path: z.optional(z.never()),
@@ -4805,6 +5457,48 @@ export const zPostPublicWebhooksFlittData = z.object({
4805
5457
  path: z.optional(z.never()),
4806
5458
  query: z.optional(z.never()),
4807
5459
  });
5460
+ export const zGetPublicTelegramPropertyFormsByFormIdData = z.object({
5461
+ body: z.optional(z.never()),
5462
+ path: z.object({
5463
+ formId: z.uuid(),
5464
+ }),
5465
+ query: z.optional(z.never()),
5466
+ headers: z.optional(z.object({
5467
+ 'X-Telegram-Init-Data': z.optional(z.string()),
5468
+ })),
5469
+ });
5470
+ /**
5471
+ * OK
5472
+ */
5473
+ export const zGetPublicTelegramPropertyFormsByFormIdResponse = zForm;
5474
+ export const zPostPublicTelegramPropertyFormsByFormIdData = z.object({
5475
+ body: zSubmission,
5476
+ path: z.object({
5477
+ formId: z.uuid(),
5478
+ }),
5479
+ query: z.optional(z.never()),
5480
+ headers: z.optional(z.object({
5481
+ 'X-Telegram-Init-Data': z.optional(z.string()),
5482
+ })),
5483
+ });
5484
+ /**
5485
+ * No Content
5486
+ */
5487
+ export const zPostPublicTelegramPropertyFormsByFormIdResponse = z.void();
5488
+ export const zPostPublicTelegramPropertyFormsByFormIdPhotosData = z.object({
5489
+ body: zPhotosRequest,
5490
+ path: z.object({
5491
+ formId: z.uuid(),
5492
+ }),
5493
+ query: z.optional(z.never()),
5494
+ headers: z.optional(z.object({
5495
+ 'X-Telegram-Init-Data': z.optional(z.string()),
5496
+ })),
5497
+ });
5498
+ /**
5499
+ * OK
5500
+ */
5501
+ export const zPostPublicTelegramPropertyFormsByFormIdPhotosResponse = z.array(zPresignedUrlResponse);
4808
5502
  export const zPostPublicRecomendationsByTokenListingsByExternalListingIdRateData = z.object({
4809
5503
  body: zRateRecommendationItemRequest,
4810
5504
  path: z.object({
@@ -5490,6 +6184,43 @@ export const zPostContactsByContactIdInterestsData = z.object({
5490
6184
  * Created
5491
6185
  */
5492
6186
  export const zPostContactsByContactIdInterestsResponse = zInterestId;
6187
+ export const zPostContactsByContactIdInterestsByInterestIdItemsFillData = z.object({
6188
+ body: z.optional(z.never()),
6189
+ path: z.object({
6190
+ contactId: z.coerce
6191
+ .bigint()
6192
+ .min(BigInt('-9223372036854775808'), {
6193
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
6194
+ })
6195
+ .max(BigInt('9223372036854775807'), {
6196
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
6197
+ }),
6198
+ interestId: z.coerce
6199
+ .bigint()
6200
+ .min(BigInt('-9223372036854775808'), {
6201
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
6202
+ })
6203
+ .max(BigInt('9223372036854775807'), {
6204
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
6205
+ }),
6206
+ }),
6207
+ query: z.optional(z.object({
6208
+ limit: z
6209
+ .optional(z
6210
+ .int()
6211
+ .min(-2147483648, {
6212
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
6213
+ })
6214
+ .max(2147483647, {
6215
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
6216
+ }))
6217
+ .default(20),
6218
+ })),
6219
+ });
6220
+ /**
6221
+ * OK
6222
+ */
6223
+ export const zPostContactsByContactIdInterestsByInterestIdItemsFillResponse = z.array(z.uuid());
5493
6224
  export const zDeleteContactsByContactIdCommentsData = z.object({
5494
6225
  body: z.optional(z.never()),
5495
6226
  path: z.object({
@@ -5562,6 +6293,14 @@ export const zGetContactData = z.object({
5562
6293
  hasOpenTask: z.optional(z.boolean()),
5563
6294
  assignedTo: z.optional(z.array(z.string())),
5564
6295
  createdBy: z.optional(z.string()),
6296
+ contactId: z.optional(z.coerce
6297
+ .bigint()
6298
+ .min(BigInt('-9223372036854775808'), {
6299
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
6300
+ })
6301
+ .max(BigInt('9223372036854775807'), {
6302
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
6303
+ })),
5565
6304
  contactName: z.optional(z.string()),
5566
6305
  contactPhone: z.optional(z.string()),
5567
6306
  contactEmail: z.optional(z.string()),
@@ -5580,6 +6319,8 @@ export const zGetContactData = z.object({
5580
6319
  contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
5581
6320
  createdFrom: z.optional(z.iso.date()),
5582
6321
  createdTo: z.optional(z.iso.date()),
6322
+ updatedFrom: z.optional(z.iso.date()),
6323
+ updatedTo: z.optional(z.iso.date()),
5583
6324
  page: z.optional(z.int().gte(0)).default(0),
5584
6325
  size: z.optional(z.int().gte(1)).default(20),
5585
6326
  sort: z.optional(z.array(z.string())),
@@ -5714,15 +6455,15 @@ export const zPostBoardByBoardIdStageByStageIdTemplateData = z.object({
5714
6455
  * Created
5715
6456
  */
5716
6457
  export const zPostBoardByBoardIdStageByStageIdTemplateResponse = zIdResponseUuid;
5717
- export const zPostApiAdminSubscriptionsProvisionData = z.object({
5718
- body: zProvisionAgencyRequest,
6458
+ export const zPostApiAdminSubscriptionsCheckoutData = z.object({
6459
+ body: zAdminCheckoutRequest,
5719
6460
  path: z.optional(z.never()),
5720
6461
  query: z.optional(z.never()),
5721
6462
  });
5722
6463
  /**
5723
6464
  * Created
5724
6465
  */
5725
- export const zPostApiAdminSubscriptionsProvisionResponse = zAdminProvisionResponse;
6466
+ export const zPostApiAdminSubscriptionsCheckoutResponse = zAdminCheckoutResponse;
5726
6467
  export const zPatchTaskByTaskIdPositionData = z.object({
5727
6468
  body: zPositionTaskRequest,
5728
6469
  path: z.object({
@@ -5892,6 +6633,22 @@ export const zGetStatsContactsAcquisitionData = z.object({
5892
6633
  * OK
5893
6634
  */
5894
6635
  export const zGetStatsContactsAcquisitionResponse = zContactAcquisitionResponse;
6636
+ export const zGetPublicTelegramPropertyFormsByFormIdOwnersData = z.object({
6637
+ body: z.optional(z.never()),
6638
+ path: z.object({
6639
+ formId: z.uuid(),
6640
+ }),
6641
+ query: z.object({
6642
+ query: z.string(),
6643
+ }),
6644
+ headers: z.optional(z.object({
6645
+ 'X-Telegram-Init-Data': z.optional(z.string()),
6646
+ })),
6647
+ });
6648
+ /**
6649
+ * OK
6650
+ */
6651
+ export const zGetPublicTelegramPropertyFormsByFormIdOwnersResponse = z.array(zOwner);
5895
6652
  export const zGetPublicRecomendationsByTokenItemsData = z.object({
5896
6653
  body: z.optional(z.never()),
5897
6654
  path: z.object({
@@ -5923,6 +6680,15 @@ export const zGetPublicRecomendationsByTokenDecisionsData = z.object({
5923
6680
  * OK
5924
6681
  */
5925
6682
  export const zGetPublicRecomendationsByTokenDecisionsResponse = z.array(zRecommendationDecisionResponse);
6683
+ export const zGetPublicPlansData = z.object({
6684
+ body: z.optional(z.never()),
6685
+ path: z.optional(z.never()),
6686
+ query: z.optional(z.never()),
6687
+ });
6688
+ /**
6689
+ * OK
6690
+ */
6691
+ export const zGetPublicPlansResponse = zCatalogResponse;
5926
6692
  export const zGetPublicPermissionsData = z.object({
5927
6693
  body: z.optional(z.never()),
5928
6694
  path: z.optional(z.never()),
@@ -6225,6 +6991,30 @@ export const zGetListingData = z.object({
6225
6991
  body: z.optional(z.never()),
6226
6992
  path: z.optional(z.never()),
6227
6993
  query: z.optional(z.object({
6994
+ propertyId: z.optional(z.coerce
6995
+ .bigint()
6996
+ .min(BigInt('-9223372036854775808'), {
6997
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
6998
+ })
6999
+ .max(BigInt('9223372036854775807'), {
7000
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7001
+ })),
7002
+ listingId: z.optional(z.coerce
7003
+ .bigint()
7004
+ .min(BigInt('-9223372036854775808'), {
7005
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7006
+ })
7007
+ .max(BigInt('9223372036854775807'), {
7008
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7009
+ })),
7010
+ ssId: z.optional(z.coerce
7011
+ .bigint()
7012
+ .min(BigInt('-9223372036854775808'), {
7013
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7014
+ })
7015
+ .max(BigInt('9223372036854775807'), {
7016
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7017
+ })),
6228
7018
  states: z.optional(z.array(z.enum([
6229
7019
  'IN_REGISTRATION',
6230
7020
  'UNLISTED',
@@ -6277,6 +7067,8 @@ export const zGetListingData = z.object({
6277
7067
  priceMax: z.optional(z.number()),
6278
7068
  createdFrom: z.optional(z.iso.datetime()),
6279
7069
  createdTo: z.optional(z.iso.datetime()),
7070
+ updatedFrom: z.optional(z.iso.datetime()),
7071
+ updatedTo: z.optional(z.iso.datetime()),
6280
7072
  platforms: z.optional(z.array(z.enum(['SS', 'MY_HOME']))),
6281
7073
  platformExpiresFrom: z.optional(z.iso.date()),
6282
7074
  platformExpiresTo: z.optional(z.iso.date()),
@@ -6293,24 +7085,6 @@ export const zGetListingData = z.object({
6293
7085
  * OK
6294
7086
  */
6295
7087
  export const zGetListingResponse = zPagedModelListingGridResponse;
6296
- export const zGetListingByPropertyIdData = z.object({
6297
- body: z.optional(z.never()),
6298
- path: z.object({
6299
- propertyId: z.coerce
6300
- .bigint()
6301
- .min(BigInt('-9223372036854775808'), {
6302
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
6303
- })
6304
- .max(BigInt('9223372036854775807'), {
6305
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
6306
- }),
6307
- }),
6308
- query: z.optional(z.never()),
6309
- });
6310
- /**
6311
- * OK
6312
- */
6313
- export const zGetListingByPropertyIdResponse = zListingGridResponse;
6314
7088
  export const zGetListingGroupsData = z.object({
6315
7089
  body: z.optional(z.never()),
6316
7090
  path: z.optional(z.never()),
@@ -6328,6 +7102,30 @@ export const zGetListingGroupsData = z.object({
6328
7102
  'CREATED_AT_WEEK',
6329
7103
  'CREATED_AT_MONTH',
6330
7104
  ]),
7105
+ propertyId: z.optional(z.coerce
7106
+ .bigint()
7107
+ .min(BigInt('-9223372036854775808'), {
7108
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7109
+ })
7110
+ .max(BigInt('9223372036854775807'), {
7111
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7112
+ })),
7113
+ listingId: z.optional(z.coerce
7114
+ .bigint()
7115
+ .min(BigInt('-9223372036854775808'), {
7116
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7117
+ })
7118
+ .max(BigInt('9223372036854775807'), {
7119
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7120
+ })),
7121
+ ssId: z.optional(z.coerce
7122
+ .bigint()
7123
+ .min(BigInt('-9223372036854775808'), {
7124
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7125
+ })
7126
+ .max(BigInt('9223372036854775807'), {
7127
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7128
+ })),
6331
7129
  states: z.optional(z.array(z.enum([
6332
7130
  'IN_REGISTRATION',
6333
7131
  'UNLISTED',
@@ -6380,6 +7178,8 @@ export const zGetListingGroupsData = z.object({
6380
7178
  priceMax: z.optional(z.number()),
6381
7179
  createdFrom: z.optional(z.iso.datetime()),
6382
7180
  createdTo: z.optional(z.iso.datetime()),
7181
+ updatedFrom: z.optional(z.iso.datetime()),
7182
+ updatedTo: z.optional(z.iso.datetime()),
6383
7183
  platforms: z.optional(z.array(z.enum(['SS', 'MY_HOME']))),
6384
7184
  platformExpiresFrom: z.optional(z.iso.date()),
6385
7185
  platformExpiresTo: z.optional(z.iso.date()),
@@ -6397,6 +7197,14 @@ export const zGetInterestData = z.object({
6397
7197
  body: z.optional(z.never()),
6398
7198
  path: z.optional(z.never()),
6399
7199
  query: z.optional(z.object({
7200
+ interestId: z.optional(z.coerce
7201
+ .bigint()
7202
+ .min(BigInt('-9223372036854775808'), {
7203
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7204
+ })
7205
+ .max(BigInt('9223372036854775807'), {
7206
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7207
+ })),
6400
7208
  statuses: z.optional(z.array(z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']))),
6401
7209
  listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
6402
7210
  propertyTypes: z.optional(z.array(z.enum([
@@ -6433,7 +7241,7 @@ export const zGetInterestData = z.object({
6433
7241
  contactName: z.optional(z.string()),
6434
7242
  contactPhone: z.optional(z.string()),
6435
7243
  assignedTo: z.optional(z.array(z.string())),
6436
- createdBy: z.optional(z.uuid()),
7244
+ createdBy: z.optional(z.array(z.string())),
6437
7245
  locationType: z.optional(z.enum(['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'])),
6438
7246
  locationId: z.optional(z.string()),
6439
7247
  priceMin: z.optional(z.number()),
@@ -6519,6 +7327,14 @@ export const zGetInterestGroupsData = z.object({
6519
7327
  'CREATED_AT_WEEK',
6520
7328
  'CREATED_AT_MONTH',
6521
7329
  ]),
7330
+ interestId: z.optional(z.coerce
7331
+ .bigint()
7332
+ .min(BigInt('-9223372036854775808'), {
7333
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7334
+ })
7335
+ .max(BigInt('9223372036854775807'), {
7336
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7337
+ })),
6522
7338
  statuses: z.optional(z.array(z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']))),
6523
7339
  listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
6524
7340
  propertyTypes: z.optional(z.array(z.enum([
@@ -6555,7 +7371,7 @@ export const zGetInterestGroupsData = z.object({
6555
7371
  contactName: z.optional(z.string()),
6556
7372
  contactPhone: z.optional(z.string()),
6557
7373
  assignedTo: z.optional(z.array(z.string())),
6558
- createdBy: z.optional(z.uuid()),
7374
+ createdBy: z.optional(z.array(z.string())),
6559
7375
  locationType: z.optional(z.enum(['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'])),
6560
7376
  locationId: z.optional(z.string()),
6561
7377
  priceMin: z.optional(z.number()),
@@ -6845,6 +7661,43 @@ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecision
6845
7661
  * OK
6846
7662
  */
6847
7663
  export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = z.array(zRecommendationDecisionResponse);
7664
+ export const zGetContactsByContactIdInterestsByInterestIdMatchesData = z.object({
7665
+ body: z.optional(z.never()),
7666
+ path: z.object({
7667
+ contactId: z.coerce
7668
+ .bigint()
7669
+ .min(BigInt('-9223372036854775808'), {
7670
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7671
+ })
7672
+ .max(BigInt('9223372036854775807'), {
7673
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7674
+ }),
7675
+ interestId: z.coerce
7676
+ .bigint()
7677
+ .min(BigInt('-9223372036854775808'), {
7678
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7679
+ })
7680
+ .max(BigInt('9223372036854775807'), {
7681
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7682
+ }),
7683
+ }),
7684
+ query: z.optional(z.object({
7685
+ limit: z
7686
+ .optional(z
7687
+ .int()
7688
+ .min(-2147483648, {
7689
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
7690
+ })
7691
+ .max(2147483647, {
7692
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
7693
+ }))
7694
+ .default(20),
7695
+ })),
7696
+ });
7697
+ /**
7698
+ * OK
7699
+ */
7700
+ export const zGetContactsByContactIdInterestsByInterestIdMatchesResponse = z.array(zListingMatch);
6848
7701
  export const zDeleteContactByContactIdData = z.object({
6849
7702
  body: z.optional(z.never()),
6850
7703
  path: z.object({
@@ -6941,6 +7794,14 @@ export const zGetContactGroupsData = z.object({
6941
7794
  hasOpenTask: z.optional(z.boolean()),
6942
7795
  assignedTo: z.optional(z.array(z.string())),
6943
7796
  createdBy: z.optional(z.string()),
7797
+ contactId: z.optional(z.coerce
7798
+ .bigint()
7799
+ .min(BigInt('-9223372036854775808'), {
7800
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7801
+ })
7802
+ .max(BigInt('9223372036854775807'), {
7803
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7804
+ })),
6944
7805
  contactName: z.optional(z.string()),
6945
7806
  contactPhone: z.optional(z.string()),
6946
7807
  contactEmail: z.optional(z.string()),
@@ -6959,6 +7820,8 @@ export const zGetContactGroupsData = z.object({
6959
7820
  contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
6960
7821
  createdFrom: z.optional(z.iso.date()),
6961
7822
  createdTo: z.optional(z.iso.date()),
7823
+ updatedFrom: z.optional(z.iso.date()),
7824
+ updatedTo: z.optional(z.iso.date()),
6962
7825
  }),
6963
7826
  });
6964
7827
  /**