@homespot-sdk/core 1.0.5 → 1.0.6

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 (46) hide show
  1. package/README.md +17 -4
  2. package/dist/property/index.d.ts +2 -2
  3. package/dist/property/index.d.ts.map +1 -1
  4. package/dist/property/index.js +1 -1
  5. package/dist/property/index.js.map +1 -1
  6. package/dist/property/schemas.gen.d.ts +160 -0
  7. package/dist/property/schemas.gen.d.ts.map +1 -1
  8. package/dist/property/schemas.gen.js +177 -0
  9. package/dist/property/schemas.gen.js.map +1 -1
  10. package/dist/property/sdk.gen.d.ts +30 -1
  11. package/dist/property/sdk.gen.d.ts.map +1 -1
  12. package/dist/property/sdk.gen.js +74 -1
  13. package/dist/property/sdk.gen.js.map +1 -1
  14. package/dist/property/transformers.gen.d.ts +5 -1
  15. package/dist/property/transformers.gen.d.ts.map +1 -1
  16. package/dist/property/transformers.gen.js +31 -0
  17. package/dist/property/transformers.gen.js.map +1 -1
  18. package/dist/property/types.gen.d.ts +191 -0
  19. package/dist/property/types.gen.d.ts.map +1 -1
  20. package/dist/property/zod.gen.d.ts +276 -0
  21. package/dist/property/zod.gen.d.ts.map +1 -1
  22. package/dist/property/zod.gen.js +146 -0
  23. package/dist/property/zod.gen.js.map +1 -1
  24. package/dist/rem/index.d.ts +2 -2
  25. package/dist/rem/index.d.ts.map +1 -1
  26. package/dist/rem/index.js +1 -1
  27. package/dist/rem/index.js.map +1 -1
  28. package/dist/rem/schemas.gen.d.ts +122 -1
  29. package/dist/rem/schemas.gen.d.ts.map +1 -1
  30. package/dist/rem/schemas.gen.js +140 -0
  31. package/dist/rem/schemas.gen.js.map +1 -1
  32. package/dist/rem/sdk.gen.d.ts +31 -1
  33. package/dist/rem/sdk.gen.d.ts.map +1 -1
  34. package/dist/rem/sdk.gen.js +44 -1
  35. package/dist/rem/sdk.gen.js.map +1 -1
  36. package/dist/rem/transformers.gen.d.ts +2 -1
  37. package/dist/rem/transformers.gen.d.ts.map +1 -1
  38. package/dist/rem/transformers.gen.js +10 -0
  39. package/dist/rem/transformers.gen.js.map +1 -1
  40. package/dist/rem/types.gen.d.ts +98 -2
  41. package/dist/rem/types.gen.d.ts.map +1 -1
  42. package/dist/rem/zod.gen.d.ts +217 -26
  43. package/dist/rem/zod.gen.d.ts.map +1 -1
  44. package/dist/rem/zod.gen.js +91 -0
  45. package/dist/rem/zod.gen.js.map +1 -1
  46. package/package.json +1 -1
@@ -492,6 +492,9 @@ export type OauthConnectionResponse = {
492
492
  pageName?: string;
493
493
  createdAt: Date;
494
494
  updatedAt: Date;
495
+ /**
496
+ * When the agency disconnected it, or another agency took it over; null while it is the agency's, including when it only needs reconnecting
497
+ */
495
498
  revokedAt?: Date;
496
499
  canPublish: boolean;
497
500
  canReadComments: boolean;
@@ -558,6 +561,27 @@ export type AgencyPrincipalDto = {
558
561
  isOwner?: boolean;
559
562
  phoneVerified?: boolean;
560
563
  };
564
+ export type ConnectStep = {
565
+ kind: string;
566
+ };
567
+ export type DeepLink = Omit<ConnectStep, 'kind'> & {
568
+ url: string;
569
+ expiresAt: Date;
570
+ kind: 'DeepLink';
571
+ };
572
+ export type Popup = Omit<ConnectStep, 'kind'> & {
573
+ appId: string;
574
+ configId: string;
575
+ graphApiVersion: string;
576
+ kind: 'Popup';
577
+ };
578
+ export type Redirect = Omit<ConnectStep, 'kind'> & {
579
+ url: string;
580
+ kind: 'Redirect';
581
+ };
582
+ export type Requested = Omit<ConnectStep, 'kind'> & {
583
+ kind: 'Requested';
584
+ };
561
585
  export type SendMessageRequest = {
562
586
  text: string;
563
587
  };
@@ -1893,9 +1917,9 @@ export type NotificationFeed = {
1893
1917
  export type NotificationView = {
1894
1918
  id: string;
1895
1919
  seq: number;
1896
- type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'MEMBER_MENTIONED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED' | 'SUBSCRIPTION_PAYMENT_FAILED' | 'SUBSCRIPTION_ENDING' | 'SUBSCRIPTION_EXPIRED' | 'SUBSCRIPTION_PAYMENT_REVERSED' | 'DISCOUNT_ENDING' | 'AI_MESSAGES_RUNNING_LOW' | 'AI_MESSAGES_USED_UP' | 'CHANNEL_REAUTH_REQUIRED' | 'CHANNEL_TAKEN_OVER' | 'SOCIAL_POST_FAILED' | 'SOCIAL_POST_COMMENTED';
1920
+ type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'MEMBER_MENTIONED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED' | 'SUBSCRIPTION_PAYMENT_FAILED' | 'SUBSCRIPTION_ENDING' | 'SUBSCRIPTION_EXPIRED' | 'SUBSCRIPTION_PAYMENT_REVERSED' | 'DISCOUNT_ENDING' | 'AI_MESSAGES_RUNNING_LOW' | 'AI_MESSAGES_USED_UP' | 'CHANNEL_REAUTH_REQUIRED' | 'CHANNEL_TAKEN_OVER' | 'PORTAL_ACCESS_CHANGED' | 'SOCIAL_POST_FAILED' | 'SOCIAL_POST_COMMENTED';
1897
1921
  targetId?: string;
1898
- payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ChannelTakenOver | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
1922
+ payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ChannelTakenOver | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | PortalAccessChanged | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
1899
1923
  /**
1900
1924
  * How many times this came while unread; the payload is the latest. For SOCIAL_POST_COMMENTED: the new comments on the post since its notification was last read. Starts again at 1 once read
1901
1925
  */
@@ -1903,6 +1927,11 @@ export type NotificationView = {
1903
1927
  createdAt: Date;
1904
1928
  read: boolean;
1905
1929
  };
1930
+ export type PortalAccessChanged = {
1931
+ portal?: 'SS' | 'MY_HOME';
1932
+ granted?: boolean;
1933
+ kind: 'PORTAL_ACCESS_CHANGED';
1934
+ };
1906
1935
  export type PropertyId = {
1907
1936
  value?: number;
1908
1937
  };
@@ -2151,6 +2180,30 @@ export type RoomRange = {
2151
2180
  min?: number;
2152
2181
  max?: number;
2153
2182
  };
2183
+ export type IntegrationView = {
2184
+ key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
2185
+ scope: 'AGENCY' | 'PERSONAL';
2186
+ /**
2187
+ * RECONNECT_REQUIRED: still the agency's, but HomeSpot can't use it until it is connected again; UNAVAILABLE: HomeSpot can't connect it yet
2188
+ */
2189
+ state: 'CONNECTED' | 'RECONNECT_REQUIRED' | 'NOT_CONNECTED' | 'PENDING' | 'UNAVAILABLE';
2190
+ /**
2191
+ * Whether the caller may connect, reconnect or disconnect it
2192
+ */
2193
+ canManage: boolean;
2194
+ /**
2195
+ * The page, account or number it is connected to; null when it isn't connected, and for Telegram
2196
+ */
2197
+ accountName?: string;
2198
+ /**
2199
+ * That account's picture, when the platform gives one
2200
+ */
2201
+ accountPicture?: string;
2202
+ /**
2203
+ * When it was connected; null when it isn't
2204
+ */
2205
+ connectedAt?: Date;
2206
+ };
2154
2207
  export type CursorPageInboxResponse = {
2155
2208
  items?: Array<InboxResponse>;
2156
2209
  nextCursor?: string;
@@ -4446,6 +4499,21 @@ export type PostInternalPrincipleResponses = {
4446
4499
  200: AgencyPrincipalDto;
4447
4500
  };
4448
4501
  export type PostInternalPrincipleResponse = PostInternalPrincipleResponses[keyof PostInternalPrincipleResponses];
4502
+ export type PostIntegrationsByKeyConnectData = {
4503
+ body?: never;
4504
+ path: {
4505
+ key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
4506
+ };
4507
+ query?: never;
4508
+ url: '/integrations/{key}/connect';
4509
+ };
4510
+ export type PostIntegrationsByKeyConnectResponses = {
4511
+ /**
4512
+ * OK
4513
+ */
4514
+ 200: DeepLink | Popup | Redirect | Requested;
4515
+ };
4516
+ export type PostIntegrationsByKeyConnectResponse = PostIntegrationsByKeyConnectResponses[keyof PostIntegrationsByKeyConnectResponses];
4449
4517
  export type PostGuideVideosByIdStartData = {
4450
4518
  body?: never;
4451
4519
  path: {
@@ -5967,6 +6035,19 @@ export type GetInterestGroupsResponses = {
5967
6035
  200: Array<GroupCount>;
5968
6036
  };
5969
6037
  export type GetInterestGroupsResponse = GetInterestGroupsResponses[keyof GetInterestGroupsResponses];
6038
+ export type GetIntegrationsData = {
6039
+ body?: never;
6040
+ path?: never;
6041
+ query?: never;
6042
+ url: '/integrations';
6043
+ };
6044
+ export type GetIntegrationsResponses = {
6045
+ /**
6046
+ * OK
6047
+ */
6048
+ 200: Array<IntegrationView>;
6049
+ };
6050
+ export type GetIntegrationsResponse = GetIntegrationsResponses[keyof GetIntegrationsResponses];
5970
6051
  export type GetInboxData = {
5971
6052
  body?: never;
5972
6053
  path?: never;
@@ -6489,6 +6570,21 @@ export type DeleteMemberByMemberIdResponses = {
6489
6570
  204: void;
6490
6571
  };
6491
6572
  export type DeleteMemberByMemberIdResponse = DeleteMemberByMemberIdResponses[keyof DeleteMemberByMemberIdResponses];
6573
+ export type DeleteIntegrationsByKeyData = {
6574
+ body?: never;
6575
+ path: {
6576
+ key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
6577
+ };
6578
+ query?: never;
6579
+ url: '/integrations/{key}';
6580
+ };
6581
+ export type DeleteIntegrationsByKeyResponses = {
6582
+ /**
6583
+ * No Content
6584
+ */
6585
+ 204: void;
6586
+ };
6587
+ export type DeleteIntegrationsByKeyResponse = DeleteIntegrationsByKeyResponses[keyof DeleteIntegrationsByKeyResponses];
6492
6588
  export type DeleteConversationsByConversationIdPresenceData = {
6493
6589
  body?: never;
6494
6590
  path: {