@homespot-sdk/core 0.0.361 → 0.0.363

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.
@@ -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({
@@ -730,6 +766,7 @@ export const zSocialCommentSender = z.object({
730
766
  });
731
767
  export const zSocialCommentResponse = z.object({
732
768
  commentId: z.uuid(),
769
+ parentCommentId: z.optional(z.uuid()),
733
770
  author: z.optional(zSocialCommentAuthor),
734
771
  text: z.optional(z.string()),
735
772
  commentedAt: z.iso.datetime(),
@@ -851,14 +888,9 @@ export const zAddTodoTemplateRequest = z.object({
851
888
  title: z.string(),
852
889
  applyToTasksInStage: z.boolean(),
853
890
  });
854
- export const zProvisionAgencyRequest = z.object({
855
- ownerUserId: z.string(),
856
- name: z.string(),
857
- email: z.email(),
858
- phone: z.string(),
859
- subdomain: z.string(),
860
- address: zSubscriptionAddressRequest,
861
- plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
891
+ export const zAdminCheckoutRequest = z.object({
892
+ agencyId: z.uuid(),
893
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
862
894
  billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
863
895
  priceMinorUnits: z.coerce
864
896
  .bigint()
@@ -876,7 +908,7 @@ export const zProvisionAgencyRequest = z.object({
876
908
  .max(2147483647, {
877
909
  error: 'Invalid value: Expected int32 to be <= 2147483647',
878
910
  }),
879
- monthlyContactLimit: z
911
+ activeListings: z
880
912
  .int()
881
913
  .min(-2147483648, {
882
914
  error: 'Invalid value: Expected int32 to be >= -2147483648',
@@ -884,6 +916,15 @@ export const zProvisionAgencyRequest = z.object({
884
916
  .max(2147483647, {
885
917
  error: 'Invalid value: Expected int32 to be <= 2147483647',
886
918
  }),
919
+ aiMessages: z
920
+ .int()
921
+ .min(-2147483648, {
922
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
923
+ })
924
+ .max(2147483647, {
925
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
926
+ }),
927
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
887
928
  trialDays: z
888
929
  .int()
889
930
  .min(-2147483648, {
@@ -892,10 +933,15 @@ export const zProvisionAgencyRequest = z.object({
892
933
  .max(2147483647, {
893
934
  error: 'Invalid value: Expected int32 to be <= 2147483647',
894
935
  }),
936
+ discountMonths: z.optional(z
937
+ .int()
938
+ .gte(2)
939
+ .max(2147483647, {
940
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
941
+ })),
895
942
  });
896
- export const zAdminProvisionResponse = z.object({
943
+ export const zAdminCheckoutResponse = z.object({
897
944
  checkoutUrl: z.optional(z.string()),
898
- agencyId: z.optional(z.uuid()),
899
945
  subscriptionId: z.optional(z.uuid()),
900
946
  });
901
947
  export const zPositionTaskRequest = z.object({
@@ -944,6 +990,7 @@ export const zOrganizationSummaryViewResponse = z.object({
944
990
  ]),
945
991
  phone: z.string(),
946
992
  isPhoneVerified: z.boolean(),
993
+ isSeatLocked: z.boolean(),
947
994
  });
948
995
  export const zUserSummaryViewResponse = z.object({
949
996
  email: z.string(),
@@ -1493,7 +1540,7 @@ export const zStageCardsResponse = z.object({
1493
1540
  });
1494
1541
  export const zSubscriptionResponse = z.object({
1495
1542
  subscriptionId: z.uuid(),
1496
- plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
1543
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
1497
1544
  billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
1498
1545
  priceMinorUnits: z.coerce
1499
1546
  .bigint()
@@ -1503,6 +1550,30 @@ export const zSubscriptionResponse = z.object({
1503
1550
  .max(BigInt('9223372036854775807'), {
1504
1551
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1505
1552
  }),
1553
+ netMinorUnits: z.coerce
1554
+ .bigint()
1555
+ .min(BigInt('-9223372036854775808'), {
1556
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1557
+ })
1558
+ .max(BigInt('9223372036854775807'), {
1559
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1560
+ }),
1561
+ vatMinorUnits: z.coerce
1562
+ .bigint()
1563
+ .min(BigInt('-9223372036854775808'), {
1564
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1565
+ })
1566
+ .max(BigInt('9223372036854775807'), {
1567
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1568
+ }),
1569
+ vatPercent: z
1570
+ .int()
1571
+ .min(-2147483648, {
1572
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1573
+ })
1574
+ .max(2147483647, {
1575
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1576
+ }),
1506
1577
  currency: z.string(),
1507
1578
  seats: z
1508
1579
  .int()
@@ -1512,7 +1583,15 @@ export const zSubscriptionResponse = z.object({
1512
1583
  .max(2147483647, {
1513
1584
  error: 'Invalid value: Expected int32 to be <= 2147483647',
1514
1585
  }),
1515
- monthlyContactLimit: z
1586
+ activeListings: z
1587
+ .int()
1588
+ .min(-2147483648, {
1589
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1590
+ })
1591
+ .max(2147483647, {
1592
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1593
+ }),
1594
+ aiMessages: z
1516
1595
  .int()
1517
1596
  .min(-2147483648, {
1518
1597
  error: 'Invalid value: Expected int32 to be >= -2147483648',
@@ -1520,6 +1599,7 @@ export const zSubscriptionResponse = z.object({
1520
1599
  .max(2147483647, {
1521
1600
  error: 'Invalid value: Expected int32 to be <= 2147483647',
1522
1601
  }),
1602
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
1523
1603
  trialDays: z
1524
1604
  .int()
1525
1605
  .min(-2147483648, {
@@ -1547,6 +1627,58 @@ export const zSubscriptionResponse = z.object({
1547
1627
  activatedAt: z.optional(z.iso.datetime()),
1548
1628
  cancelledAt: z.optional(z.iso.datetime()),
1549
1629
  checkoutExpiresAt: z.optional(z.iso.datetime()),
1630
+ discountEndsAt: z.optional(z.iso.datetime()),
1631
+ });
1632
+ export const zAiMessages = z.object({
1633
+ used: z.coerce
1634
+ .bigint()
1635
+ .min(BigInt('-9223372036854775808'), {
1636
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1637
+ })
1638
+ .max(BigInt('9223372036854775807'), {
1639
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1640
+ }),
1641
+ limit: z.coerce
1642
+ .bigint()
1643
+ .min(BigInt('-9223372036854775808'), {
1644
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1645
+ })
1646
+ .max(BigInt('9223372036854775807'), {
1647
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1648
+ }),
1649
+ resetsAt: z.optional(z.iso.datetime()),
1650
+ });
1651
+ export const zTrial = z.object({
1652
+ endsAt: z.iso.datetime(),
1653
+ });
1654
+ export const zUsage = z.object({
1655
+ used: z.coerce
1656
+ .bigint()
1657
+ .min(BigInt('-9223372036854775808'), {
1658
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1659
+ })
1660
+ .max(BigInt('9223372036854775807'), {
1661
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1662
+ }),
1663
+ limit: z.coerce
1664
+ .bigint()
1665
+ .min(BigInt('-9223372036854775808'), {
1666
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1667
+ })
1668
+ .max(BigInt('9223372036854775807'), {
1669
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1670
+ }),
1671
+ });
1672
+ export const zPlanResponse = z.object({
1673
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
1674
+ canManage: z.boolean(),
1675
+ trial: z.optional(zTrial),
1676
+ subscription: z.optional(zSubscriptionResponse),
1677
+ seats: zUsage,
1678
+ activeListings: zUsage,
1679
+ aiMessages: zAiMessages,
1680
+ boards: zUsage,
1681
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
1550
1682
  });
1551
1683
  export const zPaymentResponse = z.object({
1552
1684
  id: z.uuid(),
@@ -1577,6 +1709,30 @@ export const zPaymentResponse = z.object({
1577
1709
  .max(BigInt('9223372036854775807'), {
1578
1710
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1579
1711
  })),
1712
+ netMinorUnits: z.optional(z.coerce
1713
+ .bigint()
1714
+ .min(BigInt('-9223372036854775808'), {
1715
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1716
+ })
1717
+ .max(BigInt('9223372036854775807'), {
1718
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1719
+ })),
1720
+ vatMinorUnits: z.optional(z.coerce
1721
+ .bigint()
1722
+ .min(BigInt('-9223372036854775808'), {
1723
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1724
+ })
1725
+ .max(BigInt('9223372036854775807'), {
1726
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1727
+ })),
1728
+ vatPercent: z
1729
+ .int()
1730
+ .min(-2147483648, {
1731
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1732
+ })
1733
+ .max(2147483647, {
1734
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1735
+ }),
1580
1736
  currency: z.optional(z.string()),
1581
1737
  responseCode: z.optional(z.string()),
1582
1738
  responseDescription: z.optional(z.string()),
@@ -2003,6 +2159,7 @@ export const zInterestResponse = z.object({
2003
2159
  criteria: zCriteria,
2004
2160
  recommendationStats: zRecommendationStats,
2005
2161
  boundedBox: z.optional(zBoundingBox),
2162
+ agencyBranding: z.boolean(),
2006
2163
  recommendations: zPagedModelRecommendationsCardView,
2007
2164
  });
2008
2165
  export const zRecommendationDecisionResponse = z.object({
@@ -2010,6 +2167,95 @@ export const zRecommendationDecisionResponse = z.object({
2010
2167
  externalListingId: z.uuid(),
2011
2168
  decision: z.enum(['MAYBE', 'DISLIKE', 'LIKE']),
2012
2169
  });
2170
+ export const zAmount = z.object({
2171
+ netMinorUnits: z.coerce
2172
+ .bigint()
2173
+ .min(BigInt('-9223372036854775808'), {
2174
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2175
+ })
2176
+ .max(BigInt('9223372036854775807'), {
2177
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2178
+ }),
2179
+ vatMinorUnits: z.coerce
2180
+ .bigint()
2181
+ .min(BigInt('-9223372036854775808'), {
2182
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2183
+ })
2184
+ .max(BigInt('9223372036854775807'), {
2185
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2186
+ }),
2187
+ totalMinorUnits: z.coerce
2188
+ .bigint()
2189
+ .min(BigInt('-9223372036854775808'), {
2190
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2191
+ })
2192
+ .max(BigInt('9223372036854775807'), {
2193
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2194
+ }),
2195
+ });
2196
+ export const zPlanOffer = z.object({
2197
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
2198
+ monthly: zAmount,
2199
+ yearly: zAmount,
2200
+ seats: z
2201
+ .int()
2202
+ .min(-2147483648, {
2203
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2204
+ })
2205
+ .max(2147483647, {
2206
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2207
+ }),
2208
+ activeListings: z
2209
+ .int()
2210
+ .min(-2147483648, {
2211
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2212
+ })
2213
+ .max(2147483647, {
2214
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2215
+ }),
2216
+ aiMessages: z
2217
+ .int()
2218
+ .min(-2147483648, {
2219
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2220
+ })
2221
+ .max(2147483647, {
2222
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2223
+ }),
2224
+ features: z.array(z.enum(['SOCIAL_POSTS', 'AGENCY_BRANDING'])),
2225
+ });
2226
+ export const zTrialOffer = z.object({
2227
+ days: z
2228
+ .int()
2229
+ .min(-2147483648, {
2230
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2231
+ })
2232
+ .max(2147483647, {
2233
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2234
+ }),
2235
+ plan: z.enum(['FREE', 'PLUS', 'PRO', 'ENTERPRISE']),
2236
+ aiMessages: z
2237
+ .int()
2238
+ .min(-2147483648, {
2239
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2240
+ })
2241
+ .max(2147483647, {
2242
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2243
+ }),
2244
+ });
2245
+ export const zCatalogResponse = z.object({
2246
+ currency: z.string(),
2247
+ vatPercent: z
2248
+ .int()
2249
+ .min(-2147483648, {
2250
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2251
+ })
2252
+ .max(2147483647, {
2253
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2254
+ }),
2255
+ plans: z.array(zPlanOffer),
2256
+ enterpriseFromMonthly: zAmount,
2257
+ trial: zTrialOffer,
2258
+ });
2013
2259
  export const zPermissionResponse = z.object({
2014
2260
  permission: z.enum([
2015
2261
  'MANAGE_AGENCY',
@@ -2433,6 +2679,37 @@ export const zListingOwnerContactResponse = z.object({
2433
2679
  zContactPersonalDetailsVisible,
2434
2680
  ]),
2435
2681
  });
2682
+ export const zAiMessagesRunningLow = z.object({
2683
+ used: z.optional(z.coerce
2684
+ .bigint()
2685
+ .min(BigInt('-9223372036854775808'), {
2686
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2687
+ })
2688
+ .max(BigInt('9223372036854775807'), {
2689
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2690
+ })),
2691
+ allowance: z.optional(z
2692
+ .int()
2693
+ .min(-2147483648, {
2694
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2695
+ })
2696
+ .max(2147483647, {
2697
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2698
+ })),
2699
+ kind: z.enum(['AI_MESSAGES_RUNNING_LOW']),
2700
+ });
2701
+ export const zAiMessagesUsedUp = z.object({
2702
+ allowance: z.optional(z
2703
+ .int()
2704
+ .min(-2147483648, {
2705
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2706
+ })
2707
+ .max(2147483647, {
2708
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2709
+ })),
2710
+ renewsAt: z.optional(z.iso.datetime()),
2711
+ kind: z.enum(['AI_MESSAGES_USED_UP']),
2712
+ });
2436
2713
  export const zCommentId = z.object({
2437
2714
  value: z.optional(z.uuid()),
2438
2715
  });
@@ -2583,6 +2860,11 @@ export const zSocialPostFailed = z.object({
2583
2860
  export const zSubscriptionId = z.object({
2584
2861
  value: z.optional(z.uuid()),
2585
2862
  });
2863
+ export const zDiscountEnding = z.object({
2864
+ subscriptionId: z.optional(zSubscriptionId),
2865
+ endsAt: z.optional(z.iso.datetime()),
2866
+ kind: z.enum(['DISCOUNT_ENDING']),
2867
+ });
2586
2868
  export const zSubscriptionEnding = z.object({
2587
2869
  subscriptionId: z.optional(zSubscriptionId),
2588
2870
  status: z.optional(z.enum([
@@ -2632,6 +2914,13 @@ export const zTaskCommented = z.object({
2632
2914
  commentSnippet: z.optional(z.string()),
2633
2915
  kind: z.enum(['TASK_COMMENTED']),
2634
2916
  });
2917
+ export const zTrialEnded = z.object({
2918
+ kind: z.enum(['TRIAL_ENDED']),
2919
+ });
2920
+ export const zTrialEnding = z.object({
2921
+ endsAt: z.optional(z.iso.datetime()),
2922
+ kind: z.enum(['TRIAL_ENDING']),
2923
+ });
2635
2924
  export const zNotificationView = z.object({
2636
2925
  id: z.uuid(),
2637
2926
  seq: z.coerce
@@ -2655,6 +2944,11 @@ export const zNotificationView = z.object({
2655
2944
  'SUBSCRIPTION_ENDING',
2656
2945
  'SUBSCRIPTION_EXPIRED',
2657
2946
  'SUBSCRIPTION_PAYMENT_REVERSED',
2947
+ 'TRIAL_ENDING',
2948
+ 'TRIAL_ENDED',
2949
+ 'DISCOUNT_ENDING',
2950
+ 'AI_MESSAGES_RUNNING_LOW',
2951
+ 'AI_MESSAGES_USED_UP',
2658
2952
  'CHANNEL_REAUTH_REQUIRED',
2659
2953
  'SOCIAL_POST_FAILED',
2660
2954
  'SOCIAL_POST_COMMENTED',
@@ -2662,8 +2956,11 @@ export const zNotificationView = z.object({
2662
2956
  targetId: z.optional(z.string()),
2663
2957
  payload: z.union([
2664
2958
  zAgentCommented,
2959
+ zAiMessagesRunningLow,
2960
+ zAiMessagesUsedUp,
2665
2961
  zChannelReauthRequired,
2666
2962
  zContactAssigned,
2963
+ zDiscountEnding,
2667
2964
  zListingExpired,
2668
2965
  zMemberMentioned,
2669
2966
  zNewMessage,
@@ -2675,6 +2972,8 @@ export const zNotificationView = z.object({
2675
2972
  zSubscriptionPaymentFailed,
2676
2973
  zSubscriptionPaymentReversed,
2677
2974
  zTaskCommented,
2975
+ zTrialEnded,
2976
+ zTrialEnding,
2678
2977
  ]),
2679
2978
  count: z
2680
2979
  .int()
@@ -2864,6 +3163,14 @@ export const zPlatformView = z.object({
2864
3163
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2865
3164
  })),
2866
3165
  platform: z.optional(z.enum(['SS', 'MY_HOME'])),
3166
+ status: z.enum([
3167
+ 'PENDING',
3168
+ 'SYNDICATED',
3169
+ 'FAILED',
3170
+ 'EXPIRED',
3171
+ 'WITHDRAWING',
3172
+ 'WITHDRAWN',
3173
+ ]),
2867
3174
  expiresAt: z.optional(z.iso.date()),
2868
3175
  tier: z.optional(z.enum(['VIP', 'VIP_PLUS', 'SUPER_VIP'])),
2869
3176
  boostExpiresAt: z.optional(z.iso.date()),
@@ -2939,6 +3246,8 @@ export const zListingGridResponse = z.object({
2939
3246
  'CLOSED',
2940
3247
  ]),
2941
3248
  listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
3249
+ listingState: z.optional(z.enum(['OPEN', 'CLOSED'])),
3250
+ marketplaceStatus: z.optional(z.enum(['ACTIVE', 'PAUSED', 'EXPIRED'])),
2942
3251
  price: z.optional(z.number()),
2943
3252
  commissionType: z.optional(z.enum(['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'])),
2944
3253
  commission: z.optional(z.number()),
@@ -3057,10 +3366,29 @@ export const zInterestGridResponse = z.object({
3057
3366
  listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
3058
3367
  priceRange: z.optional(zPriceRange),
3059
3368
  bedrooms: z.optional(zRoomRange),
3369
+ bathrooms: z.optional(zRoomRange),
3060
3370
  totalArea: z.optional(zAreaRange),
3061
3371
  livingArea: z.optional(zAreaRange),
3062
3372
  address: z.optional(zAddressView),
3373
+ locationType: z.optional(z.enum(['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'])),
3374
+ locationId: z.optional(z.coerce
3375
+ .bigint()
3376
+ .min(BigInt('-9223372036854775808'), {
3377
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3378
+ })
3379
+ .max(BigInt('9223372036854775807'), {
3380
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3381
+ })),
3063
3382
  status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
3383
+ shareToken: z.uuid(),
3384
+ recommendationCount: z
3385
+ .int()
3386
+ .min(-2147483648, {
3387
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
3388
+ })
3389
+ .max(2147483647, {
3390
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
3391
+ }),
3064
3392
  });
3065
3393
  export const zPagedModelInterestGridResponse = z.object({
3066
3394
  content: z.optional(z.array(zInterestGridResponse)),
@@ -3246,6 +3574,55 @@ export const zCursorPageSocialCommentThreadResponse = z.object({
3246
3574
  nextCursor: z.optional(z.string()),
3247
3575
  hasNext: z.optional(z.boolean()),
3248
3576
  });
3577
+ export const zListingMatch = z.object({
3578
+ externalPropertyId: z.uuid(),
3579
+ externalListingId: z.uuid(),
3580
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
3581
+ price: z.number(),
3582
+ propertyType: z.enum([
3583
+ 'HOUSE',
3584
+ 'TOWN_HOUSE',
3585
+ 'COUNTRY_HOUSE',
3586
+ 'VILLA',
3587
+ 'COTTAGE',
3588
+ 'APARTMENT',
3589
+ 'DUPLEX',
3590
+ 'TRIPLEX',
3591
+ 'SEMI_BASEMENT',
3592
+ 'ATTIC',
3593
+ 'AGRICULTURAL_LAND',
3594
+ 'RESIDENTIAL_LAND',
3595
+ 'HOTEL_ROOM',
3596
+ 'MOTEL_ROOM',
3597
+ 'CO_LIVING_SPACE',
3598
+ 'OFFICE',
3599
+ 'COMMERCIAL_SPACE',
3600
+ 'CO_WORKING_SPACE',
3601
+ 'WAREHOUSE',
3602
+ 'GARAGE',
3603
+ ]),
3604
+ address: z.optional(z.string()),
3605
+ lat: z.number(),
3606
+ lng: z.number(),
3607
+ totalArea: z.number(),
3608
+ bedrooms: z
3609
+ .int()
3610
+ .min(-2147483648, {
3611
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
3612
+ })
3613
+ .max(2147483647, {
3614
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
3615
+ }),
3616
+ bathrooms: z
3617
+ .int()
3618
+ .min(-2147483648, {
3619
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
3620
+ })
3621
+ .max(2147483647, {
3622
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
3623
+ }),
3624
+ featuredPhotos: z.array(z.string()),
3625
+ });
3249
3626
  export const zContactGridResponse = z.object({
3250
3627
  id: z.coerce
3251
3628
  .bigint()
@@ -4680,6 +5057,15 @@ export const zPostSubscriptionsResumeData = z.object({
4680
5057
  * No Content
4681
5058
  */
4682
5059
  export const zPostSubscriptionsResumeResponse = z.void();
5060
+ export const zGetSubscriptionsPlanData = z.object({
5061
+ body: z.optional(z.never()),
5062
+ path: z.optional(z.never()),
5063
+ query: z.optional(z.never()),
5064
+ });
5065
+ /**
5066
+ * OK
5067
+ */
5068
+ export const zGetSubscriptionsPlanResponse = zPlanResponse;
4683
5069
  export const zPostSubscriptionsPlanData = z.object({
4684
5070
  body: zChangePlanRequest,
4685
5071
  path: z.optional(z.never()),
@@ -4736,6 +5122,10 @@ export const zPostPublicWebhooksTelegramData = z.object({
4736
5122
  'X-Telegram-Bot-Api-Secret-Token': z.optional(z.string()),
4737
5123
  })),
4738
5124
  });
5125
+ /**
5126
+ * OK
5127
+ */
5128
+ export const zPostPublicWebhooksTelegramResponse = z.record(z.string(), z.unknown());
4739
5129
  export const zGetPublicWebhooksMetaWaData = z.object({
4740
5130
  body: z.optional(z.never()),
4741
5131
  path: z.optional(z.never()),
@@ -5489,6 +5879,43 @@ export const zPostContactsByContactIdInterestsData = z.object({
5489
5879
  * Created
5490
5880
  */
5491
5881
  export const zPostContactsByContactIdInterestsResponse = zInterestId;
5882
+ export const zPostContactsByContactIdInterestsByInterestIdItemsFillData = z.object({
5883
+ body: z.optional(z.never()),
5884
+ path: z.object({
5885
+ contactId: z.coerce
5886
+ .bigint()
5887
+ .min(BigInt('-9223372036854775808'), {
5888
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5889
+ })
5890
+ .max(BigInt('9223372036854775807'), {
5891
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5892
+ }),
5893
+ interestId: z.coerce
5894
+ .bigint()
5895
+ .min(BigInt('-9223372036854775808'), {
5896
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5897
+ })
5898
+ .max(BigInt('9223372036854775807'), {
5899
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5900
+ }),
5901
+ }),
5902
+ query: z.optional(z.object({
5903
+ limit: z
5904
+ .optional(z
5905
+ .int()
5906
+ .min(-2147483648, {
5907
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5908
+ })
5909
+ .max(2147483647, {
5910
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5911
+ }))
5912
+ .default(20),
5913
+ })),
5914
+ });
5915
+ /**
5916
+ * OK
5917
+ */
5918
+ export const zPostContactsByContactIdInterestsByInterestIdItemsFillResponse = z.array(z.uuid());
5492
5919
  export const zDeleteContactsByContactIdCommentsData = z.object({
5493
5920
  body: z.optional(z.never()),
5494
5921
  path: z.object({
@@ -5713,15 +6140,15 @@ export const zPostBoardByBoardIdStageByStageIdTemplateData = z.object({
5713
6140
  * Created
5714
6141
  */
5715
6142
  export const zPostBoardByBoardIdStageByStageIdTemplateResponse = zIdResponseUuid;
5716
- export const zPostApiAdminSubscriptionsProvisionData = z.object({
5717
- body: zProvisionAgencyRequest,
6143
+ export const zPostApiAdminSubscriptionsCheckoutData = z.object({
6144
+ body: zAdminCheckoutRequest,
5718
6145
  path: z.optional(z.never()),
5719
6146
  query: z.optional(z.never()),
5720
6147
  });
5721
6148
  /**
5722
6149
  * Created
5723
6150
  */
5724
- export const zPostApiAdminSubscriptionsProvisionResponse = zAdminProvisionResponse;
6151
+ export const zPostApiAdminSubscriptionsCheckoutResponse = zAdminCheckoutResponse;
5725
6152
  export const zPatchTaskByTaskIdPositionData = z.object({
5726
6153
  body: zPositionTaskRequest,
5727
6154
  path: z.object({
@@ -5922,6 +6349,15 @@ export const zGetPublicRecomendationsByTokenDecisionsData = z.object({
5922
6349
  * OK
5923
6350
  */
5924
6351
  export const zGetPublicRecomendationsByTokenDecisionsResponse = z.array(zRecommendationDecisionResponse);
6352
+ export const zGetPublicPlansData = z.object({
6353
+ body: z.optional(z.never()),
6354
+ path: z.optional(z.never()),
6355
+ query: z.optional(z.never()),
6356
+ });
6357
+ /**
6358
+ * OK
6359
+ */
6360
+ export const zGetPublicPlansResponse = zCatalogResponse;
5925
6361
  export const zGetPublicPermissionsData = z.object({
5926
6362
  body: z.optional(z.never()),
5927
6363
  path: z.optional(z.never()),
@@ -6292,24 +6728,6 @@ export const zGetListingData = z.object({
6292
6728
  * OK
6293
6729
  */
6294
6730
  export const zGetListingResponse = zPagedModelListingGridResponse;
6295
- export const zGetListingByPropertyIdData = z.object({
6296
- body: z.optional(z.never()),
6297
- path: z.object({
6298
- propertyId: z.coerce
6299
- .bigint()
6300
- .min(BigInt('-9223372036854775808'), {
6301
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
6302
- })
6303
- .max(BigInt('9223372036854775807'), {
6304
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
6305
- }),
6306
- }),
6307
- query: z.optional(z.never()),
6308
- });
6309
- /**
6310
- * OK
6311
- */
6312
- export const zGetListingByPropertyIdResponse = zListingGridResponse;
6313
6731
  export const zGetListingGroupsData = z.object({
6314
6732
  body: z.optional(z.never()),
6315
6733
  path: z.optional(z.never()),
@@ -6844,6 +7262,43 @@ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecision
6844
7262
  * OK
6845
7263
  */
6846
7264
  export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = z.array(zRecommendationDecisionResponse);
7265
+ export const zGetContactsByContactIdInterestsByInterestIdMatchesData = z.object({
7266
+ body: z.optional(z.never()),
7267
+ path: z.object({
7268
+ contactId: z.coerce
7269
+ .bigint()
7270
+ .min(BigInt('-9223372036854775808'), {
7271
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7272
+ })
7273
+ .max(BigInt('9223372036854775807'), {
7274
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7275
+ }),
7276
+ interestId: z.coerce
7277
+ .bigint()
7278
+ .min(BigInt('-9223372036854775808'), {
7279
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
7280
+ })
7281
+ .max(BigInt('9223372036854775807'), {
7282
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
7283
+ }),
7284
+ }),
7285
+ query: z.optional(z.object({
7286
+ limit: z
7287
+ .optional(z
7288
+ .int()
7289
+ .min(-2147483648, {
7290
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
7291
+ })
7292
+ .max(2147483647, {
7293
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
7294
+ }))
7295
+ .default(20),
7296
+ })),
7297
+ });
7298
+ /**
7299
+ * OK
7300
+ */
7301
+ export const zGetContactsByContactIdInterestsByInterestIdMatchesResponse = z.array(zListingMatch);
6847
7302
  export const zDeleteContactByContactIdData = z.object({
6848
7303
  body: z.optional(z.never()),
6849
7304
  path: z.object({