@homespot-sdk/core 0.0.354 → 0.0.355

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.
@@ -191,10 +191,9 @@ export type AddressRequest = {
191
191
  subdistrict: string;
192
192
  street: string;
193
193
  };
194
- export type CreateAgencyRequest = {
194
+ export type AmendAgencyDetailsRequest = {
195
195
  name: string;
196
196
  email: string;
197
- seats: number;
198
197
  subdomain: string;
199
198
  phone: string;
200
199
  address: AddressRequest;
@@ -287,6 +286,20 @@ export type SubscriptionCheckoutResponse = {
287
286
  agencyId?: string;
288
287
  subscriptionId?: string;
289
288
  };
289
+ export type ChangePlanRequest = {
290
+ plan: 'STARTER' | 'PRO' | 'ENTERPRISE';
291
+ billingCycle: 'MONTHLY' | 'ANNUAL';
292
+ };
293
+ export type CheckoutRequest = {
294
+ /**
295
+ * Required only when starting a new subscription
296
+ */
297
+ plan?: 'STARTER' | 'PRO' | 'ENTERPRISE';
298
+ /**
299
+ * Required only when starting a new subscription
300
+ */
301
+ billingCycle?: 'MONTHLY' | 'ANNUAL';
302
+ };
290
303
  export type IdResponseInteger = {
291
304
  id: number;
292
305
  };
@@ -310,7 +323,7 @@ export type ConnectWhatsAppRequest = {
310
323
  export type OauthConnectionResponse = {
311
324
  agencyId: string;
312
325
  userId: string;
313
- provider: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
326
+ provider: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
314
327
  status: 'ACTIVE' | 'REVOKED';
315
328
  pagePicture?: string;
316
329
  pageName?: string;
@@ -602,6 +615,15 @@ export type MemberPeekResponse = {
602
615
  phone?: string;
603
616
  email: string;
604
617
  };
618
+ export type Participant = {
619
+ memberId: string;
620
+ firstName: string;
621
+ lastName: string;
622
+ photo?: string;
623
+ phone?: string;
624
+ email: string;
625
+ owner: boolean;
626
+ };
605
627
  export type PropertyLink = {
606
628
  propertyId: number;
607
629
  contactId: number;
@@ -627,14 +649,13 @@ export type TaskDetailResponse = {
627
649
  commissionType: 'NOT_SET' | 'FIXED' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
628
650
  commissionValue?: number;
629
651
  expectedCloseDate?: Date;
630
- owner?: MemberPeekResponse;
631
652
  outcome?: 'WON' | 'LOST';
632
653
  lostReason?: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
633
654
  closedAt?: Date;
634
655
  createdBy?: string;
635
656
  createdAt: Date;
636
657
  contacts: Array<ContactLink>;
637
- participants: Array<MemberPeekResponse>;
658
+ participants: Array<Participant>;
638
659
  interests: Array<InterestLink>;
639
660
  properties: Array<PropertyLink>;
640
661
  todoGroups: Array<TodoGroup>;
@@ -745,6 +766,60 @@ export type StageCardsResponse = {
745
766
  members: Array<MemberPeekResponse>;
746
767
  data: CursorPageTaskCardResponse;
747
768
  };
769
+ export type SubscriptionResponse = {
770
+ subscriptionId: string;
771
+ plan: 'STARTER' | 'PRO' | 'ENTERPRISE';
772
+ billingCycle: 'MONTHLY' | 'ANNUAL';
773
+ /**
774
+ * Per-cycle price in minor units (tetri)
775
+ */
776
+ priceMinorUnits: number;
777
+ currency: string;
778
+ seats: number;
779
+ monthlyContactLimit: number;
780
+ trialDays: number;
781
+ status: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED';
782
+ /**
783
+ * Whether the agency is currently entitled to the workspace
784
+ */
785
+ live: boolean;
786
+ trialEndsAt?: Date;
787
+ paidThroughAt?: Date;
788
+ /**
789
+ * When the current entitlement ends, before grace; null while pending or once expired
790
+ */
791
+ accessEndsAt?: Date;
792
+ pastDueSince?: Date;
793
+ lastChargedAt?: Date;
794
+ createdAt: Date;
795
+ activatedAt?: Date;
796
+ cancelledAt?: Date;
797
+ /**
798
+ * When the most recently issued checkout link stops being payable
799
+ */
800
+ checkoutExpiresAt?: Date;
801
+ };
802
+ export type PaymentResponse = {
803
+ id: string;
804
+ subscriptionId: string;
805
+ flittPaymentId: string;
806
+ flittOrderId: string;
807
+ /**
808
+ * Flitt's verdict: approved / declined / reversed / expired …
809
+ */
810
+ orderStatus: string;
811
+ tranType?: string;
812
+ /**
813
+ * What the platform did with it
814
+ */
815
+ outcome: 'APPLIED' | 'TRIAL_STARTED' | 'DUPLICATE' | 'NOT_APPLIED_CANCELLED' | 'REJECTED_AMOUNT' | 'REJECTED_CURRENCY' | 'IGNORED_TRANSACTION_TYPE' | 'DECLINED' | 'REVERSED' | 'REVERSAL_IGNORED' | 'RECORDED';
816
+ amountMinorUnits?: number;
817
+ currency?: string;
818
+ responseCode?: string;
819
+ responseDescription?: string;
820
+ orderTime?: Date;
821
+ receivedAt: Date;
822
+ };
748
823
  export type Bucket = {
749
824
  count: number;
750
825
  value: number;
@@ -803,7 +878,7 @@ export type Segment = {
803
878
  share: number;
804
879
  };
805
880
  export type ChannelSeries = {
806
- channel: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
881
+ channel: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
807
882
  points: Array<number>;
808
883
  total: number;
809
884
  };
@@ -1095,7 +1170,7 @@ export type ContactAssigned = {
1095
1170
  contactName?: string;
1096
1171
  from?: MemberId;
1097
1172
  by?: MemberId;
1098
- source?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
1173
+ source?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
1099
1174
  kind: 'CONTACT_ASSIGNED';
1100
1175
  };
1101
1176
  export type ContactId = {
@@ -1122,7 +1197,7 @@ export type MemberId = {
1122
1197
  export type NewMessage = {
1123
1198
  contactId?: ContactId;
1124
1199
  conversationId?: ConversationId;
1125
- channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
1200
+ channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
1126
1201
  preview?: string;
1127
1202
  displayName?: string;
1128
1203
  kind: 'NEW_MESSAGE';
@@ -1145,15 +1220,39 @@ export type NotificationFeed = {
1145
1220
  export type NotificationView = {
1146
1221
  id: string;
1147
1222
  seq: number;
1148
- type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED';
1223
+ type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED' | 'SUBSCRIPTION_PAYMENT_FAILED' | 'SUBSCRIPTION_ENDING' | 'SUBSCRIPTION_EXPIRED' | 'SUBSCRIPTION_PAYMENT_REVERSED';
1149
1224
  targetId?: string;
1150
- payload: AgentCommented | ContactAssigned | ListingExpired | NewMessage | NewSeekerRating | TaskCommented;
1225
+ payload: AgentCommented | ContactAssigned | ListingExpired | NewMessage | NewSeekerRating | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
1151
1226
  createdAt: Date;
1152
1227
  read: boolean;
1153
1228
  };
1154
1229
  export type PropertyId = {
1155
1230
  value?: number;
1156
1231
  };
1232
+ export type SubscriptionEnding = {
1233
+ subscriptionId?: SubscriptionId;
1234
+ status?: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED';
1235
+ endsAt?: Date;
1236
+ kind: 'SUBSCRIPTION_ENDING';
1237
+ };
1238
+ export type SubscriptionExpired = {
1239
+ subscriptionId?: SubscriptionId;
1240
+ kind: 'SUBSCRIPTION_EXPIRED';
1241
+ };
1242
+ export type SubscriptionId = {
1243
+ value?: string;
1244
+ };
1245
+ export type SubscriptionPaymentFailed = {
1246
+ subscriptionId?: SubscriptionId;
1247
+ reason?: string;
1248
+ accessUntil?: Date;
1249
+ kind: 'SUBSCRIPTION_PAYMENT_FAILED';
1250
+ };
1251
+ export type SubscriptionPaymentReversed = {
1252
+ subscriptionId?: SubscriptionId;
1253
+ paymentId?: string;
1254
+ kind: 'SUBSCRIPTION_PAYMENT_REVERSED';
1255
+ };
1157
1256
  export type TaskCommented = {
1158
1257
  commentId?: CommentId;
1159
1258
  taskId?: TaskId;
@@ -1179,6 +1278,11 @@ export type MemberViewResponse = {
1179
1278
  roleId: number;
1180
1279
  roleName: string;
1181
1280
  joinedAt: Date;
1281
+ /**
1282
+ * ACTIVE, or INACTIVE for a removed member
1283
+ */
1284
+ status: string;
1285
+ removedAt?: Date;
1182
1286
  };
1183
1287
  export type Pageable = {
1184
1288
  page?: number;
@@ -1339,7 +1443,7 @@ export type InboxResponse = {
1339
1443
  unreadCount?: number;
1340
1444
  lastMessagePreview?: string;
1341
1445
  direction?: 'INBOUND' | 'OUTBOUND';
1342
- channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
1446
+ channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
1343
1447
  contactId?: number;
1344
1448
  isReachable?: boolean;
1345
1449
  windowExpiresAt?: Date;
@@ -1403,7 +1507,7 @@ export type ContactGridResponse = {
1403
1507
  title?: string;
1404
1508
  personalDetails: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
1405
1509
  gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
1406
- sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
1510
+ sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
1407
1511
  sourceLink?: string;
1408
1512
  isSearching: boolean;
1409
1513
  isListing: boolean;
@@ -1474,7 +1578,7 @@ export type ContactPropertyResponse = {
1474
1578
  listings: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
1475
1579
  };
1476
1580
  export type SourceResponse = {
1477
- sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
1581
+ sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
1478
1582
  sourceLink?: string;
1479
1583
  };
1480
1584
  export type AssignedAgent = {
@@ -2497,7 +2601,7 @@ export type PutBoardByBoardIdRenameResponses = {
2497
2601
  };
2498
2602
  export type PutBoardByBoardIdRenameResponse = PutBoardByBoardIdRenameResponses[keyof PutBoardByBoardIdRenameResponses];
2499
2603
  export type PutAgencyByAgencyIdDetailsData = {
2500
- body: CreateAgencyRequest;
2604
+ body: AmendAgencyDetailsRequest;
2501
2605
  path: {
2502
2606
  agencyId: string;
2503
2607
  };
@@ -2511,21 +2615,6 @@ export type PutAgencyByAgencyIdDetailsResponses = {
2511
2615
  204: void;
2512
2616
  };
2513
2617
  export type PutAgencyByAgencyIdDetailsResponse = PutAgencyByAgencyIdDetailsResponses[keyof PutAgencyByAgencyIdDetailsResponses];
2514
- export type PutAgencyByAgencyIdActivateData = {
2515
- body?: never;
2516
- path: {
2517
- agencyId: string;
2518
- };
2519
- query?: never;
2520
- url: '/agency/{agencyId}/activate';
2521
- };
2522
- export type PutAgencyByAgencyIdActivateResponses = {
2523
- /**
2524
- * No Content
2525
- */
2526
- 204: void;
2527
- };
2528
- export type PutAgencyByAgencyIdActivateResponse = PutAgencyByAgencyIdActivateResponses[keyof PutAgencyByAgencyIdActivateResponses];
2529
2618
  export type PutAgencySettingsInfoData = {
2530
2619
  body: UpdateAgencyInfoRequest;
2531
2620
  path?: never;
@@ -2859,6 +2948,51 @@ export type PostSubscriptionsResponses = {
2859
2948
  201: SubscriptionCheckoutResponse;
2860
2949
  };
2861
2950
  export type PostSubscriptionsResponse = PostSubscriptionsResponses[keyof PostSubscriptionsResponses];
2951
+ export type PostSubscriptionsByAgencyIdResumeData = {
2952
+ body?: never;
2953
+ path: {
2954
+ agencyId: string;
2955
+ };
2956
+ query?: never;
2957
+ url: '/subscriptions/{agencyId}/resume';
2958
+ };
2959
+ export type PostSubscriptionsByAgencyIdResumeResponses = {
2960
+ /**
2961
+ * No Content
2962
+ */
2963
+ 204: void;
2964
+ };
2965
+ export type PostSubscriptionsByAgencyIdResumeResponse = PostSubscriptionsByAgencyIdResumeResponses[keyof PostSubscriptionsByAgencyIdResumeResponses];
2966
+ export type PostSubscriptionsByAgencyIdPlanData = {
2967
+ body: ChangePlanRequest;
2968
+ path: {
2969
+ agencyId: string;
2970
+ };
2971
+ query?: never;
2972
+ url: '/subscriptions/{agencyId}/plan';
2973
+ };
2974
+ export type PostSubscriptionsByAgencyIdPlanResponses = {
2975
+ /**
2976
+ * Created
2977
+ */
2978
+ 201: SubscriptionCheckoutResponse;
2979
+ };
2980
+ export type PostSubscriptionsByAgencyIdPlanResponse = PostSubscriptionsByAgencyIdPlanResponses[keyof PostSubscriptionsByAgencyIdPlanResponses];
2981
+ export type PostSubscriptionsByAgencyIdCheckoutData = {
2982
+ body?: CheckoutRequest;
2983
+ path: {
2984
+ agencyId: string;
2985
+ };
2986
+ query?: never;
2987
+ url: '/subscriptions/{agencyId}/checkout';
2988
+ };
2989
+ export type PostSubscriptionsByAgencyIdCheckoutResponses = {
2990
+ /**
2991
+ * Created
2992
+ */
2993
+ 201: SubscriptionCheckoutResponse;
2994
+ };
2995
+ export type PostSubscriptionsByAgencyIdCheckoutResponse = PostSubscriptionsByAgencyIdCheckoutResponses[keyof PostSubscriptionsByAgencyIdCheckoutResponses];
2862
2996
  export type GetRolesData = {
2863
2997
  body?: never;
2864
2998
  path?: never;
@@ -2898,6 +3032,21 @@ export type PostRolesResponses = {
2898
3032
  201: IdResponseInteger;
2899
3033
  };
2900
3034
  export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
3035
+ export type PostPublicWebhooksTiktokData = {
3036
+ body: string;
3037
+ headers?: {
3038
+ 'Tiktok-Signature'?: string;
3039
+ };
3040
+ path?: never;
3041
+ query?: never;
3042
+ url: '/public/webhooks/tiktok';
3043
+ };
3044
+ export type PostPublicWebhooksTiktokResponses = {
3045
+ /**
3046
+ * OK
3047
+ */
3048
+ 200: unknown;
3049
+ };
2901
3050
  export type PostPublicWebhooksTelegramData = {
2902
3051
  body: string;
2903
3052
  headers?: {
@@ -3574,7 +3723,7 @@ export type GetContactData = {
3574
3723
  contactPhone?: string;
3575
3724
  contactEmail?: string;
3576
3725
  title?: string;
3577
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
3726
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN'>;
3578
3727
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
3579
3728
  createdFrom?: Date;
3580
3729
  createdTo?: Date;
@@ -3726,32 +3875,6 @@ export type PostApiAdminSubscriptionsProvisionResponses = {
3726
3875
  201: AdminProvisionResponse;
3727
3876
  };
3728
3877
  export type PostApiAdminSubscriptionsProvisionResponse = PostApiAdminSubscriptionsProvisionResponses[keyof PostApiAdminSubscriptionsProvisionResponses];
3729
- export type GetAgencyData = {
3730
- body?: never;
3731
- path?: never;
3732
- query?: never;
3733
- url: '/agency';
3734
- };
3735
- export type GetAgencyResponses = {
3736
- /**
3737
- * OK
3738
- */
3739
- 200: AgencyProfileResponse;
3740
- };
3741
- export type GetAgencyResponse = GetAgencyResponses[keyof GetAgencyResponses];
3742
- export type PostAgencyData = {
3743
- body: CreateAgencyRequest;
3744
- path?: never;
3745
- query?: never;
3746
- url: '/agency';
3747
- };
3748
- export type PostAgencyResponses = {
3749
- /**
3750
- * Created
3751
- */
3752
- 201: IdResponseUuid;
3753
- };
3754
- export type PostAgencyResponse = PostAgencyResponses[keyof PostAgencyResponses];
3755
3878
  export type PatchTaskByTaskIdPositionData = {
3756
3879
  body: PositionTaskRequest;
3757
3880
  path: {
@@ -3868,6 +3991,51 @@ export type GetTaskBoardByBoardIdCardsResponses = {
3868
3991
  200: StageCardsResponse;
3869
3992
  };
3870
3993
  export type GetTaskBoardByBoardIdCardsResponse = GetTaskBoardByBoardIdCardsResponses[keyof GetTaskBoardByBoardIdCardsResponses];
3994
+ export type DeleteSubscriptionsByAgencyIdData = {
3995
+ body?: never;
3996
+ path: {
3997
+ agencyId: string;
3998
+ };
3999
+ query?: never;
4000
+ url: '/subscriptions/{agencyId}';
4001
+ };
4002
+ export type DeleteSubscriptionsByAgencyIdResponses = {
4003
+ /**
4004
+ * No Content
4005
+ */
4006
+ 204: void;
4007
+ };
4008
+ export type DeleteSubscriptionsByAgencyIdResponse = DeleteSubscriptionsByAgencyIdResponses[keyof DeleteSubscriptionsByAgencyIdResponses];
4009
+ export type GetSubscriptionsByAgencyIdData = {
4010
+ body?: never;
4011
+ path: {
4012
+ agencyId: string;
4013
+ };
4014
+ query?: never;
4015
+ url: '/subscriptions/{agencyId}';
4016
+ };
4017
+ export type GetSubscriptionsByAgencyIdResponses = {
4018
+ /**
4019
+ * OK
4020
+ */
4021
+ 200: SubscriptionResponse;
4022
+ };
4023
+ export type GetSubscriptionsByAgencyIdResponse = GetSubscriptionsByAgencyIdResponses[keyof GetSubscriptionsByAgencyIdResponses];
4024
+ export type GetSubscriptionsByAgencyIdPaymentsData = {
4025
+ body?: never;
4026
+ path: {
4027
+ agencyId: string;
4028
+ };
4029
+ query?: never;
4030
+ url: '/subscriptions/{agencyId}/payments';
4031
+ };
4032
+ export type GetSubscriptionsByAgencyIdPaymentsResponses = {
4033
+ /**
4034
+ * OK
4035
+ */
4036
+ 200: Array<PaymentResponse>;
4037
+ };
4038
+ export type GetSubscriptionsByAgencyIdPaymentsResponse = GetSubscriptionsByAgencyIdPaymentsResponses[keyof GetSubscriptionsByAgencyIdPaymentsResponses];
3871
4039
  export type GetStatsPipelineCommissionData = {
3872
4040
  body?: never;
3873
4041
  path?: never;
@@ -4001,22 +4169,24 @@ export type GetPublicPermissionsResponses = {
4001
4169
  200: Array<GroupedPermissionsResponse>;
4002
4170
  };
4003
4171
  export type GetPublicPermissionsResponse = GetPublicPermissionsResponses[keyof GetPublicPermissionsResponses];
4004
- export type GetPublicOauthGoogleCallbackData = {
4172
+ export type GetPublicOauthCallbackData = {
4005
4173
  body?: never;
4006
4174
  path?: never;
4007
- query: {
4008
- code: string;
4009
- state: string;
4175
+ query?: {
4176
+ code?: string;
4177
+ state?: string;
4178
+ error?: string;
4179
+ error_description?: string;
4010
4180
  };
4011
- url: '/public/oauth/google/callback';
4181
+ url: '/public/oauth/callback';
4012
4182
  };
4013
- export type GetPublicOauthGoogleCallbackResponses = {
4183
+ export type GetPublicOauthCallbackResponses = {
4014
4184
  /**
4015
4185
  * OK
4016
4186
  */
4017
4187
  200: unknown;
4018
4188
  };
4019
- export type GetPublicOauthCallbackData = {
4189
+ export type GetPublicOauthTiktokAccountCallbackData = {
4020
4190
  body?: never;
4021
4191
  path?: never;
4022
4192
  query?: {
@@ -4025,9 +4195,24 @@ export type GetPublicOauthCallbackData = {
4025
4195
  error?: string;
4026
4196
  error_description?: string;
4027
4197
  };
4028
- url: '/public/oauth/callback';
4198
+ url: '/public/oauth/tiktok/account/callback';
4029
4199
  };
4030
- export type GetPublicOauthCallbackResponses = {
4200
+ export type GetPublicOauthTiktokAccountCallbackResponses = {
4201
+ /**
4202
+ * OK
4203
+ */
4204
+ 200: unknown;
4205
+ };
4206
+ export type GetPublicOauthGoogleCallbackData = {
4207
+ body?: never;
4208
+ path?: never;
4209
+ query: {
4210
+ code: string;
4211
+ state: string;
4212
+ };
4213
+ url: '/public/oauth/google/callback';
4214
+ };
4215
+ export type GetPublicOauthGoogleCallbackResponses = {
4031
4216
  /**
4032
4217
  * OK
4033
4218
  */
@@ -4169,7 +4354,7 @@ export type GetOauthResponse = GetOauthResponses[keyof GetOauthResponses];
4169
4354
  export type DeleteOauthByChannelData = {
4170
4355
  body?: never;
4171
4356
  path: {
4172
- channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
4357
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
4173
4358
  };
4174
4359
  query?: never;
4175
4360
  url: '/oauth/{channel}';
@@ -4183,7 +4368,7 @@ export type DeleteOauthByChannelResponses = {
4183
4368
  export type GetOauthByChannelData = {
4184
4369
  body?: never;
4185
4370
  path: {
4186
- channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
4371
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
4187
4372
  };
4188
4373
  query?: never;
4189
4374
  url: '/oauth/{channel}';
@@ -4198,7 +4383,7 @@ export type GetOauthByChannelResponse = GetOauthByChannelResponses[keyof GetOaut
4198
4383
  export type GetOauthByChannelAuthorizeData = {
4199
4384
  body?: never;
4200
4385
  path: {
4201
- channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
4386
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
4202
4387
  };
4203
4388
  query?: never;
4204
4389
  url: '/oauth/{channel}/authorize';
@@ -4292,6 +4477,7 @@ export type GetMemberData = {
4292
4477
  query?: {
4293
4478
  roleId?: number;
4294
4479
  permission?: 'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL';
4480
+ includeRemoved?: boolean;
4295
4481
  /**
4296
4482
  * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
4297
4483
  */
@@ -4724,7 +4910,7 @@ export type GetContactGroupsData = {
4724
4910
  contactPhone?: string;
4725
4911
  contactEmail?: string;
4726
4912
  title?: string;
4727
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
4913
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN'>;
4728
4914
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
4729
4915
  createdFrom?: Date;
4730
4916
  createdTo?: Date;
@@ -4771,6 +4957,19 @@ export type GetBoardByBoardIdResponses = {
4771
4957
  200: BoardResponse;
4772
4958
  };
4773
4959
  export type GetBoardByBoardIdResponse = GetBoardByBoardIdResponses[keyof GetBoardByBoardIdResponses];
4960
+ export type GetAgencyData = {
4961
+ body?: never;
4962
+ path?: never;
4963
+ query?: never;
4964
+ url: '/agency';
4965
+ };
4966
+ export type GetAgencyResponses = {
4967
+ /**
4968
+ * OK
4969
+ */
4970
+ 200: AgencyProfileResponse;
4971
+ };
4972
+ export type GetAgencyResponse = GetAgencyResponses[keyof GetAgencyResponses];
4774
4973
  export type GetAgencyByAgencyIdOwnerData = {
4775
4974
  body?: never;
4776
4975
  path: {