@sweepbright/api-client 0.36.1 → 0.37.0

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 (49) hide show
  1. package/dist/client.d.ts +154 -0
  2. package/dist/client.js +114 -0
  3. package/dist/client.js.map +1 -0
  4. package/dist/common/sleep.js +1 -2
  5. package/dist/common/sleep.js.map +1 -1
  6. package/dist/entities/property.d.ts +0 -1
  7. package/dist/index.d.ts +1 -23
  8. package/dist/index.js +4 -115
  9. package/dist/index.js.map +1 -1
  10. package/dist/oauth-manager/AuthenticationService_PrivateAPI.js +1 -1
  11. package/dist/oauth-manager/AuthenticationService_PrivateAPI.js.map +1 -1
  12. package/dist/oauth-manager/SweepbrightOAuthManager.js.map +1 -1
  13. package/dist/oauth-manager/TokensRepository_Memory.js.map +1 -1
  14. package/dist/oauth-manager/TokensRepository_Redis.js.map +1 -1
  15. package/dist/oauth-manager/TokensRepository_RedisWithMemoryFallback.js.map +1 -1
  16. package/dist/oauth-manager/factories/createOAuthManager.js +24 -20
  17. package/dist/oauth-manager/factories/createOAuthManager.js.map +1 -1
  18. package/dist/oauth-manager/playground/one.js.map +1 -1
  19. package/dist/resources/channel_accounts.d.ts +2 -2
  20. package/dist/resources/channel_accounts.js +1 -1
  21. package/dist/resources/channel_accounts.js.map +1 -1
  22. package/dist/resources/channels.d.ts +1 -1
  23. package/dist/resources/channels.js +1 -1
  24. package/dist/resources/channels.js.map +1 -1
  25. package/dist/resources/companies.d.ts +1 -1
  26. package/dist/resources/companies.js +1 -1
  27. package/dist/resources/companies.js.map +1 -1
  28. package/dist/resources/contact_preferences.d.ts +1 -1
  29. package/dist/resources/contact_preferences.js +1 -1
  30. package/dist/resources/contact_preferences.js.map +1 -1
  31. package/dist/resources/contacts.d.ts +3 -3
  32. package/dist/resources/contacts.js +1 -1
  33. package/dist/resources/contacts.js.map +1 -1
  34. package/dist/resources/estates.d.ts +5 -5
  35. package/dist/resources/estates.js +1 -1
  36. package/dist/resources/estates.js.map +1 -1
  37. package/dist/resources/leads.d.ts +4 -4
  38. package/dist/resources/leads.js +1 -1
  39. package/dist/resources/leads.js.map +1 -1
  40. package/dist/resources/negotiators.js +1 -1
  41. package/dist/resources/negotiators.js.map +1 -1
  42. package/dist/resources/offices.js +1 -1
  43. package/dist/resources/offices.js.map +1 -1
  44. package/dist/schemas/officeSchema.d.ts +346 -346
  45. package/dist/types.d.ts +27 -0
  46. package/dist/types.js.map +1 -1
  47. package/dist/utils.js +2 -3
  48. package/dist/utils.js.map +1 -1
  49. package/package.json +17 -22
@@ -466,9 +466,9 @@ export declare const officeSettingsSchema: z.ZodObject<{
466
466
  locale: z.ZodString;
467
467
  office_id: z.ZodString;
468
468
  }, "strip", z.ZodTypeAny, {
469
- id: number;
470
469
  first_name: string;
471
470
  last_name: string;
471
+ id: number;
472
472
  full_name: string;
473
473
  role_id: string;
474
474
  created_at: string;
@@ -481,9 +481,9 @@ export declare const officeSettingsSchema: z.ZodObject<{
481
481
  launchdarkly_hash?: string | null | undefined;
482
482
  appointment_service_url?: string | null | undefined;
483
483
  }, {
484
- id: number;
485
484
  first_name: string;
486
485
  last_name: string;
486
+ id: number;
487
487
  full_name: string;
488
488
  role_id: string;
489
489
  created_at: string;
@@ -503,9 +503,9 @@ export declare const officeSettingsSchema: z.ZodObject<{
503
503
  country: string;
504
504
  visit_duration: number;
505
505
  default_assignee: {
506
- id: number;
507
506
  first_name: string;
508
507
  last_name: string;
508
+ id: number;
509
509
  full_name: string;
510
510
  role_id: string;
511
511
  created_at: string;
@@ -526,9 +526,9 @@ export declare const officeSettingsSchema: z.ZodObject<{
526
526
  country: string;
527
527
  visit_duration: number;
528
528
  default_assignee: {
529
- id: number;
530
529
  first_name: string;
531
530
  last_name: string;
531
+ id: number;
532
532
  full_name: string;
533
533
  role_id: string;
534
534
  created_at: string;
@@ -567,9 +567,9 @@ export declare const officeSettingsDataSchema: z.ZodObject<{
567
567
  locale: z.ZodString;
568
568
  office_id: z.ZodString;
569
569
  }, "strip", z.ZodTypeAny, {
570
- id: number;
571
570
  first_name: string;
572
571
  last_name: string;
572
+ id: number;
573
573
  full_name: string;
574
574
  role_id: string;
575
575
  created_at: string;
@@ -582,9 +582,9 @@ export declare const officeSettingsDataSchema: z.ZodObject<{
582
582
  launchdarkly_hash?: string | null | undefined;
583
583
  appointment_service_url?: string | null | undefined;
584
584
  }, {
585
- id: number;
586
585
  first_name: string;
587
586
  last_name: string;
587
+ id: number;
588
588
  full_name: string;
589
589
  role_id: string;
590
590
  created_at: string;
@@ -604,9 +604,9 @@ export declare const officeSettingsDataSchema: z.ZodObject<{
604
604
  country: string;
605
605
  visit_duration: number;
606
606
  default_assignee: {
607
- id: number;
608
607
  first_name: string;
609
608
  last_name: string;
609
+ id: number;
610
610
  full_name: string;
611
611
  role_id: string;
612
612
  created_at: string;
@@ -627,9 +627,9 @@ export declare const officeSettingsDataSchema: z.ZodObject<{
627
627
  country: string;
628
628
  visit_duration: number;
629
629
  default_assignee: {
630
- id: number;
631
630
  first_name: string;
632
631
  last_name: string;
632
+ id: number;
633
633
  full_name: string;
634
634
  role_id: string;
635
635
  created_at: string;
@@ -652,9 +652,9 @@ export declare const officeSettingsDataSchema: z.ZodObject<{
652
652
  country: string;
653
653
  visit_duration: number;
654
654
  default_assignee: {
655
- id: number;
656
655
  first_name: string;
657
656
  last_name: string;
657
+ id: number;
658
658
  full_name: string;
659
659
  role_id: string;
660
660
  created_at: string;
@@ -677,9 +677,9 @@ export declare const officeSettingsDataSchema: z.ZodObject<{
677
677
  country: string;
678
678
  visit_duration: number;
679
679
  default_assignee: {
680
- id: number;
681
680
  first_name: string;
682
681
  last_name: string;
682
+ id: number;
683
683
  full_name: string;
684
684
  role_id: string;
685
685
  created_at: string;
@@ -1298,6 +1298,23 @@ export declare const companySchema: z.ZodObject<{
1298
1298
  };
1299
1299
  }>;
1300
1300
  }, "strip", z.ZodTypeAny, {
1301
+ intercom_app_id: string;
1302
+ id: string;
1303
+ created_at: string;
1304
+ locale: string;
1305
+ name: string;
1306
+ member_count: number;
1307
+ member_allowed: number;
1308
+ contacts_count: number;
1309
+ channels_count: number;
1310
+ plan: {
1311
+ data: {
1312
+ id: string;
1313
+ max_users: number;
1314
+ price: Record<string, any>;
1315
+ interval: string;
1316
+ };
1317
+ };
1301
1318
  settings: {
1302
1319
  data: {
1303
1320
  email: string;
@@ -1388,11 +1405,22 @@ export declare const companySchema: z.ZodObject<{
1388
1405
  unassigned_leads_admin_id?: number | null | undefined;
1389
1406
  };
1390
1407
  };
1391
- name: string;
1408
+ updated_at?: string | null | undefined;
1409
+ referrer?: {} | null | undefined;
1410
+ disabled_at?: string | null | undefined;
1411
+ photo?: {
1412
+ data: {
1413
+ url: string;
1414
+ uploaded_at: string;
1415
+ photo_file_id: string;
1416
+ };
1417
+ } | null | undefined;
1418
+ }, {
1392
1419
  intercom_app_id: string;
1393
1420
  id: string;
1394
1421
  created_at: string;
1395
1422
  locale: string;
1423
+ name: string;
1396
1424
  member_count: number;
1397
1425
  member_allowed: number;
1398
1426
  contacts_count: number;
@@ -1405,17 +1433,6 @@ export declare const companySchema: z.ZodObject<{
1405
1433
  interval: string;
1406
1434
  };
1407
1435
  };
1408
- referrer?: {} | null | undefined;
1409
- disabled_at?: string | null | undefined;
1410
- updated_at?: string | null | undefined;
1411
- photo?: {
1412
- data: {
1413
- url: string;
1414
- uploaded_at: string;
1415
- photo_file_id: string;
1416
- };
1417
- } | null | undefined;
1418
- }, {
1419
1436
  settings: {
1420
1437
  data: {
1421
1438
  email: string;
@@ -1506,26 +1523,9 @@ export declare const companySchema: z.ZodObject<{
1506
1523
  unassigned_leads_admin_id?: number | null | undefined;
1507
1524
  };
1508
1525
  };
1509
- name: string;
1510
- intercom_app_id: string;
1511
- id: string;
1512
- created_at: string;
1513
- locale: string;
1514
- member_count: number;
1515
- member_allowed: number;
1516
- contacts_count: number;
1517
- channels_count: number;
1518
- plan: {
1519
- data: {
1520
- id: string;
1521
- max_users: number;
1522
- price: Record<string, any>;
1523
- interval: string;
1524
- };
1525
- };
1526
+ updated_at?: string | null | undefined;
1526
1527
  referrer?: {} | null | undefined;
1527
1528
  disabled_at?: string | null | undefined;
1528
- updated_at?: string | null | undefined;
1529
1529
  photo?: {
1530
1530
  data: {
1531
1531
  url: string;
@@ -2050,6 +2050,23 @@ export declare const companyDataSchema: z.ZodObject<{
2050
2050
  };
2051
2051
  }>;
2052
2052
  }, "strip", z.ZodTypeAny, {
2053
+ intercom_app_id: string;
2054
+ id: string;
2055
+ created_at: string;
2056
+ locale: string;
2057
+ name: string;
2058
+ member_count: number;
2059
+ member_allowed: number;
2060
+ contacts_count: number;
2061
+ channels_count: number;
2062
+ plan: {
2063
+ data: {
2064
+ id: string;
2065
+ max_users: number;
2066
+ price: Record<string, any>;
2067
+ interval: string;
2068
+ };
2069
+ };
2053
2070
  settings: {
2054
2071
  data: {
2055
2072
  email: string;
@@ -2140,11 +2157,22 @@ export declare const companyDataSchema: z.ZodObject<{
2140
2157
  unassigned_leads_admin_id?: number | null | undefined;
2141
2158
  };
2142
2159
  };
2143
- name: string;
2160
+ updated_at?: string | null | undefined;
2161
+ referrer?: {} | null | undefined;
2162
+ disabled_at?: string | null | undefined;
2163
+ photo?: {
2164
+ data: {
2165
+ url: string;
2166
+ uploaded_at: string;
2167
+ photo_file_id: string;
2168
+ };
2169
+ } | null | undefined;
2170
+ }, {
2144
2171
  intercom_app_id: string;
2145
2172
  id: string;
2146
2173
  created_at: string;
2147
2174
  locale: string;
2175
+ name: string;
2148
2176
  member_count: number;
2149
2177
  member_allowed: number;
2150
2178
  contacts_count: number;
@@ -2157,17 +2185,6 @@ export declare const companyDataSchema: z.ZodObject<{
2157
2185
  interval: string;
2158
2186
  };
2159
2187
  };
2160
- referrer?: {} | null | undefined;
2161
- disabled_at?: string | null | undefined;
2162
- updated_at?: string | null | undefined;
2163
- photo?: {
2164
- data: {
2165
- url: string;
2166
- uploaded_at: string;
2167
- photo_file_id: string;
2168
- };
2169
- } | null | undefined;
2170
- }, {
2171
2188
  settings: {
2172
2189
  data: {
2173
2190
  email: string;
@@ -2258,11 +2275,24 @@ export declare const companyDataSchema: z.ZodObject<{
2258
2275
  unassigned_leads_admin_id?: number | null | undefined;
2259
2276
  };
2260
2277
  };
2261
- name: string;
2278
+ updated_at?: string | null | undefined;
2279
+ referrer?: {} | null | undefined;
2280
+ disabled_at?: string | null | undefined;
2281
+ photo?: {
2282
+ data: {
2283
+ url: string;
2284
+ uploaded_at: string;
2285
+ photo_file_id: string;
2286
+ };
2287
+ } | null | undefined;
2288
+ }>;
2289
+ }, "strip", z.ZodTypeAny, {
2290
+ data: {
2262
2291
  intercom_app_id: string;
2263
2292
  id: string;
2264
2293
  created_at: string;
2265
2294
  locale: string;
2295
+ name: string;
2266
2296
  member_count: number;
2267
2297
  member_allowed: number;
2268
2298
  contacts_count: number;
@@ -2275,19 +2305,6 @@ export declare const companyDataSchema: z.ZodObject<{
2275
2305
  interval: string;
2276
2306
  };
2277
2307
  };
2278
- referrer?: {} | null | undefined;
2279
- disabled_at?: string | null | undefined;
2280
- updated_at?: string | null | undefined;
2281
- photo?: {
2282
- data: {
2283
- url: string;
2284
- uploaded_at: string;
2285
- photo_file_id: string;
2286
- };
2287
- } | null | undefined;
2288
- }>;
2289
- }, "strip", z.ZodTypeAny, {
2290
- data: {
2291
2308
  settings: {
2292
2309
  data: {
2293
2310
  email: string;
@@ -2378,11 +2395,24 @@ export declare const companyDataSchema: z.ZodObject<{
2378
2395
  unassigned_leads_admin_id?: number | null | undefined;
2379
2396
  };
2380
2397
  };
2381
- name: string;
2398
+ updated_at?: string | null | undefined;
2399
+ referrer?: {} | null | undefined;
2400
+ disabled_at?: string | null | undefined;
2401
+ photo?: {
2402
+ data: {
2403
+ url: string;
2404
+ uploaded_at: string;
2405
+ photo_file_id: string;
2406
+ };
2407
+ } | null | undefined;
2408
+ };
2409
+ }, {
2410
+ data: {
2382
2411
  intercom_app_id: string;
2383
2412
  id: string;
2384
2413
  created_at: string;
2385
2414
  locale: string;
2415
+ name: string;
2386
2416
  member_count: number;
2387
2417
  member_allowed: number;
2388
2418
  contacts_count: number;
@@ -2395,19 +2425,6 @@ export declare const companyDataSchema: z.ZodObject<{
2395
2425
  interval: string;
2396
2426
  };
2397
2427
  };
2398
- referrer?: {} | null | undefined;
2399
- disabled_at?: string | null | undefined;
2400
- updated_at?: string | null | undefined;
2401
- photo?: {
2402
- data: {
2403
- url: string;
2404
- uploaded_at: string;
2405
- photo_file_id: string;
2406
- };
2407
- } | null | undefined;
2408
- };
2409
- }, {
2410
- data: {
2411
2428
  settings: {
2412
2429
  data: {
2413
2430
  email: string;
@@ -2498,26 +2515,9 @@ export declare const companyDataSchema: z.ZodObject<{
2498
2515
  unassigned_leads_admin_id?: number | null | undefined;
2499
2516
  };
2500
2517
  };
2501
- name: string;
2502
- intercom_app_id: string;
2503
- id: string;
2504
- created_at: string;
2505
- locale: string;
2506
- member_count: number;
2507
- member_allowed: number;
2508
- contacts_count: number;
2509
- channels_count: number;
2510
- plan: {
2511
- data: {
2512
- id: string;
2513
- max_users: number;
2514
- price: Record<string, any>;
2515
- interval: string;
2516
- };
2517
- };
2518
+ updated_at?: string | null | undefined;
2518
2519
  referrer?: {} | null | undefined;
2519
2520
  disabled_at?: string | null | undefined;
2520
- updated_at?: string | null | undefined;
2521
2521
  photo?: {
2522
2522
  data: {
2523
2523
  url: string;
@@ -3048,6 +3048,23 @@ export declare const officeSchema: z.ZodObject<{
3048
3048
  };
3049
3049
  }>;
3050
3050
  }, "strip", z.ZodTypeAny, {
3051
+ intercom_app_id: string;
3052
+ id: string;
3053
+ created_at: string;
3054
+ locale: string;
3055
+ name: string;
3056
+ member_count: number;
3057
+ member_allowed: number;
3058
+ contacts_count: number;
3059
+ channels_count: number;
3060
+ plan: {
3061
+ data: {
3062
+ id: string;
3063
+ max_users: number;
3064
+ price: Record<string, any>;
3065
+ interval: string;
3066
+ };
3067
+ };
3051
3068
  settings: {
3052
3069
  data: {
3053
3070
  email: string;
@@ -3138,11 +3155,22 @@ export declare const officeSchema: z.ZodObject<{
3138
3155
  unassigned_leads_admin_id?: number | null | undefined;
3139
3156
  };
3140
3157
  };
3141
- name: string;
3158
+ updated_at?: string | null | undefined;
3159
+ referrer?: {} | null | undefined;
3160
+ disabled_at?: string | null | undefined;
3161
+ photo?: {
3162
+ data: {
3163
+ url: string;
3164
+ uploaded_at: string;
3165
+ photo_file_id: string;
3166
+ };
3167
+ } | null | undefined;
3168
+ }, {
3142
3169
  intercom_app_id: string;
3143
3170
  id: string;
3144
3171
  created_at: string;
3145
3172
  locale: string;
3173
+ name: string;
3146
3174
  member_count: number;
3147
3175
  member_allowed: number;
3148
3176
  contacts_count: number;
@@ -3155,17 +3183,6 @@ export declare const officeSchema: z.ZodObject<{
3155
3183
  interval: string;
3156
3184
  };
3157
3185
  };
3158
- referrer?: {} | null | undefined;
3159
- disabled_at?: string | null | undefined;
3160
- updated_at?: string | null | undefined;
3161
- photo?: {
3162
- data: {
3163
- url: string;
3164
- uploaded_at: string;
3165
- photo_file_id: string;
3166
- };
3167
- } | null | undefined;
3168
- }, {
3169
3186
  settings: {
3170
3187
  data: {
3171
3188
  email: string;
@@ -3256,11 +3273,24 @@ export declare const officeSchema: z.ZodObject<{
3256
3273
  unassigned_leads_admin_id?: number | null | undefined;
3257
3274
  };
3258
3275
  };
3259
- name: string;
3276
+ updated_at?: string | null | undefined;
3277
+ referrer?: {} | null | undefined;
3278
+ disabled_at?: string | null | undefined;
3279
+ photo?: {
3280
+ data: {
3281
+ url: string;
3282
+ uploaded_at: string;
3283
+ photo_file_id: string;
3284
+ };
3285
+ } | null | undefined;
3286
+ }>;
3287
+ }, "strip", z.ZodTypeAny, {
3288
+ data: {
3260
3289
  intercom_app_id: string;
3261
3290
  id: string;
3262
3291
  created_at: string;
3263
3292
  locale: string;
3293
+ name: string;
3264
3294
  member_count: number;
3265
3295
  member_allowed: number;
3266
3296
  contacts_count: number;
@@ -3273,19 +3303,6 @@ export declare const officeSchema: z.ZodObject<{
3273
3303
  interval: string;
3274
3304
  };
3275
3305
  };
3276
- referrer?: {} | null | undefined;
3277
- disabled_at?: string | null | undefined;
3278
- updated_at?: string | null | undefined;
3279
- photo?: {
3280
- data: {
3281
- url: string;
3282
- uploaded_at: string;
3283
- photo_file_id: string;
3284
- };
3285
- } | null | undefined;
3286
- }>;
3287
- }, "strip", z.ZodTypeAny, {
3288
- data: {
3289
3306
  settings: {
3290
3307
  data: {
3291
3308
  email: string;
@@ -3376,11 +3393,24 @@ export declare const officeSchema: z.ZodObject<{
3376
3393
  unassigned_leads_admin_id?: number | null | undefined;
3377
3394
  };
3378
3395
  };
3379
- name: string;
3396
+ updated_at?: string | null | undefined;
3397
+ referrer?: {} | null | undefined;
3398
+ disabled_at?: string | null | undefined;
3399
+ photo?: {
3400
+ data: {
3401
+ url: string;
3402
+ uploaded_at: string;
3403
+ photo_file_id: string;
3404
+ };
3405
+ } | null | undefined;
3406
+ };
3407
+ }, {
3408
+ data: {
3380
3409
  intercom_app_id: string;
3381
3410
  id: string;
3382
3411
  created_at: string;
3383
3412
  locale: string;
3413
+ name: string;
3384
3414
  member_count: number;
3385
3415
  member_allowed: number;
3386
3416
  contacts_count: number;
@@ -3393,19 +3423,6 @@ export declare const officeSchema: z.ZodObject<{
3393
3423
  interval: string;
3394
3424
  };
3395
3425
  };
3396
- referrer?: {} | null | undefined;
3397
- disabled_at?: string | null | undefined;
3398
- updated_at?: string | null | undefined;
3399
- photo?: {
3400
- data: {
3401
- url: string;
3402
- uploaded_at: string;
3403
- photo_file_id: string;
3404
- };
3405
- } | null | undefined;
3406
- };
3407
- }, {
3408
- data: {
3409
3426
  settings: {
3410
3427
  data: {
3411
3428
  email: string;
@@ -3496,26 +3513,9 @@ export declare const officeSchema: z.ZodObject<{
3496
3513
  unassigned_leads_admin_id?: number | null | undefined;
3497
3514
  };
3498
3515
  };
3499
- name: string;
3500
- intercom_app_id: string;
3501
- id: string;
3502
- created_at: string;
3503
- locale: string;
3504
- member_count: number;
3505
- member_allowed: number;
3506
- contacts_count: number;
3507
- channels_count: number;
3508
- plan: {
3509
- data: {
3510
- id: string;
3511
- max_users: number;
3512
- price: Record<string, any>;
3513
- interval: string;
3514
- };
3515
- };
3516
+ updated_at?: string | null | undefined;
3516
3517
  referrer?: {} | null | undefined;
3517
3518
  disabled_at?: string | null | undefined;
3518
- updated_at?: string | null | undefined;
3519
3519
  photo?: {
3520
3520
  data: {
3521
3521
  url: string;
@@ -3549,9 +3549,9 @@ export declare const officeSchema: z.ZodObject<{
3549
3549
  locale: z.ZodString;
3550
3550
  office_id: z.ZodString;
3551
3551
  }, "strip", z.ZodTypeAny, {
3552
- id: number;
3553
3552
  first_name: string;
3554
3553
  last_name: string;
3554
+ id: number;
3555
3555
  full_name: string;
3556
3556
  role_id: string;
3557
3557
  created_at: string;
@@ -3564,9 +3564,9 @@ export declare const officeSchema: z.ZodObject<{
3564
3564
  launchdarkly_hash?: string | null | undefined;
3565
3565
  appointment_service_url?: string | null | undefined;
3566
3566
  }, {
3567
- id: number;
3568
3567
  first_name: string;
3569
3568
  last_name: string;
3569
+ id: number;
3570
3570
  full_name: string;
3571
3571
  role_id: string;
3572
3572
  created_at: string;
@@ -3586,9 +3586,9 @@ export declare const officeSchema: z.ZodObject<{
3586
3586
  country: string;
3587
3587
  visit_duration: number;
3588
3588
  default_assignee: {
3589
- id: number;
3590
3589
  first_name: string;
3591
3590
  last_name: string;
3591
+ id: number;
3592
3592
  full_name: string;
3593
3593
  role_id: string;
3594
3594
  created_at: string;
@@ -3609,9 +3609,9 @@ export declare const officeSchema: z.ZodObject<{
3609
3609
  country: string;
3610
3610
  visit_duration: number;
3611
3611
  default_assignee: {
3612
- id: number;
3613
3612
  first_name: string;
3614
3613
  last_name: string;
3614
+ id: number;
3615
3615
  full_name: string;
3616
3616
  role_id: string;
3617
3617
  created_at: string;
@@ -3634,9 +3634,9 @@ export declare const officeSchema: z.ZodObject<{
3634
3634
  country: string;
3635
3635
  visit_duration: number;
3636
3636
  default_assignee: {
3637
- id: number;
3638
3637
  first_name: string;
3639
3638
  last_name: string;
3639
+ id: number;
3640
3640
  full_name: string;
3641
3641
  role_id: string;
3642
3642
  created_at: string;
@@ -3659,9 +3659,9 @@ export declare const officeSchema: z.ZodObject<{
3659
3659
  country: string;
3660
3660
  visit_duration: number;
3661
3661
  default_assignee: {
3662
- id: number;
3663
3662
  first_name: string;
3664
3663
  last_name: string;
3664
+ id: number;
3665
3665
  full_name: string;
3666
3666
  role_id: string;
3667
3667
  created_at: string;
@@ -3678,12 +3678,29 @@ export declare const officeSchema: z.ZodObject<{
3678
3678
  };
3679
3679
  }>>>;
3680
3680
  }, "strip", z.ZodTypeAny, {
3681
- name: string;
3682
3681
  id: string;
3682
+ name: string;
3683
3683
  contacts_count: number;
3684
3684
  properties_count: number;
3685
3685
  company?: {
3686
3686
  data: {
3687
+ intercom_app_id: string;
3688
+ id: string;
3689
+ created_at: string;
3690
+ locale: string;
3691
+ name: string;
3692
+ member_count: number;
3693
+ member_allowed: number;
3694
+ contacts_count: number;
3695
+ channels_count: number;
3696
+ plan: {
3697
+ data: {
3698
+ id: string;
3699
+ max_users: number;
3700
+ price: Record<string, any>;
3701
+ interval: string;
3702
+ };
3703
+ };
3687
3704
  settings: {
3688
3705
  data: {
3689
3706
  email: string;
@@ -3774,26 +3791,9 @@ export declare const officeSchema: z.ZodObject<{
3774
3791
  unassigned_leads_admin_id?: number | null | undefined;
3775
3792
  };
3776
3793
  };
3777
- name: string;
3778
- intercom_app_id: string;
3779
- id: string;
3780
- created_at: string;
3781
- locale: string;
3782
- member_count: number;
3783
- member_allowed: number;
3784
- contacts_count: number;
3785
- channels_count: number;
3786
- plan: {
3787
- data: {
3788
- id: string;
3789
- max_users: number;
3790
- price: Record<string, any>;
3791
- interval: string;
3792
- };
3793
- };
3794
+ updated_at?: string | null | undefined;
3794
3795
  referrer?: {} | null | undefined;
3795
3796
  disabled_at?: string | null | undefined;
3796
- updated_at?: string | null | undefined;
3797
3797
  photo?: {
3798
3798
  data: {
3799
3799
  url: string;
@@ -3811,9 +3811,9 @@ export declare const officeSchema: z.ZodObject<{
3811
3811
  country: string;
3812
3812
  visit_duration: number;
3813
3813
  default_assignee: {
3814
- id: number;
3815
3814
  first_name: string;
3816
3815
  last_name: string;
3816
+ id: number;
3817
3817
  full_name: string;
3818
3818
  role_id: string;
3819
3819
  created_at: string;
@@ -3830,12 +3830,29 @@ export declare const officeSchema: z.ZodObject<{
3830
3830
  };
3831
3831
  } | null | undefined;
3832
3832
  }, {
3833
- name: string;
3834
3833
  id: string;
3834
+ name: string;
3835
3835
  contacts_count: number;
3836
3836
  properties_count: number;
3837
3837
  company?: {
3838
3838
  data: {
3839
+ intercom_app_id: string;
3840
+ id: string;
3841
+ created_at: string;
3842
+ locale: string;
3843
+ name: string;
3844
+ member_count: number;
3845
+ member_allowed: number;
3846
+ contacts_count: number;
3847
+ channels_count: number;
3848
+ plan: {
3849
+ data: {
3850
+ id: string;
3851
+ max_users: number;
3852
+ price: Record<string, any>;
3853
+ interval: string;
3854
+ };
3855
+ };
3839
3856
  settings: {
3840
3857
  data: {
3841
3858
  email: string;
@@ -3926,26 +3943,9 @@ export declare const officeSchema: z.ZodObject<{
3926
3943
  unassigned_leads_admin_id?: number | null | undefined;
3927
3944
  };
3928
3945
  };
3929
- name: string;
3930
- intercom_app_id: string;
3931
- id: string;
3932
- created_at: string;
3933
- locale: string;
3934
- member_count: number;
3935
- member_allowed: number;
3936
- contacts_count: number;
3937
- channels_count: number;
3938
- plan: {
3939
- data: {
3940
- id: string;
3941
- max_users: number;
3942
- price: Record<string, any>;
3943
- interval: string;
3944
- };
3945
- };
3946
+ updated_at?: string | null | undefined;
3946
3947
  referrer?: {} | null | undefined;
3947
3948
  disabled_at?: string | null | undefined;
3948
- updated_at?: string | null | undefined;
3949
3949
  photo?: {
3950
3950
  data: {
3951
3951
  url: string;
@@ -3963,9 +3963,9 @@ export declare const officeSchema: z.ZodObject<{
3963
3963
  country: string;
3964
3964
  visit_duration: number;
3965
3965
  default_assignee: {
3966
- id: number;
3967
3966
  first_name: string;
3968
3967
  last_name: string;
3968
+ id: number;
3969
3969
  full_name: string;
3970
3970
  role_id: string;
3971
3971
  created_at: string;
@@ -4504,6 +4504,23 @@ export declare const officeDataSchema: z.ZodObject<{
4504
4504
  };
4505
4505
  }>;
4506
4506
  }, "strip", z.ZodTypeAny, {
4507
+ intercom_app_id: string;
4508
+ id: string;
4509
+ created_at: string;
4510
+ locale: string;
4511
+ name: string;
4512
+ member_count: number;
4513
+ member_allowed: number;
4514
+ contacts_count: number;
4515
+ channels_count: number;
4516
+ plan: {
4517
+ data: {
4518
+ id: string;
4519
+ max_users: number;
4520
+ price: Record<string, any>;
4521
+ interval: string;
4522
+ };
4523
+ };
4507
4524
  settings: {
4508
4525
  data: {
4509
4526
  email: string;
@@ -4594,11 +4611,22 @@ export declare const officeDataSchema: z.ZodObject<{
4594
4611
  unassigned_leads_admin_id?: number | null | undefined;
4595
4612
  };
4596
4613
  };
4597
- name: string;
4614
+ updated_at?: string | null | undefined;
4615
+ referrer?: {} | null | undefined;
4616
+ disabled_at?: string | null | undefined;
4617
+ photo?: {
4618
+ data: {
4619
+ url: string;
4620
+ uploaded_at: string;
4621
+ photo_file_id: string;
4622
+ };
4623
+ } | null | undefined;
4624
+ }, {
4598
4625
  intercom_app_id: string;
4599
4626
  id: string;
4600
4627
  created_at: string;
4601
4628
  locale: string;
4629
+ name: string;
4602
4630
  member_count: number;
4603
4631
  member_allowed: number;
4604
4632
  contacts_count: number;
@@ -4611,17 +4639,6 @@ export declare const officeDataSchema: z.ZodObject<{
4611
4639
  interval: string;
4612
4640
  };
4613
4641
  };
4614
- referrer?: {} | null | undefined;
4615
- disabled_at?: string | null | undefined;
4616
- updated_at?: string | null | undefined;
4617
- photo?: {
4618
- data: {
4619
- url: string;
4620
- uploaded_at: string;
4621
- photo_file_id: string;
4622
- };
4623
- } | null | undefined;
4624
- }, {
4625
4642
  settings: {
4626
4643
  data: {
4627
4644
  email: string;
@@ -4712,11 +4729,24 @@ export declare const officeDataSchema: z.ZodObject<{
4712
4729
  unassigned_leads_admin_id?: number | null | undefined;
4713
4730
  };
4714
4731
  };
4715
- name: string;
4732
+ updated_at?: string | null | undefined;
4733
+ referrer?: {} | null | undefined;
4734
+ disabled_at?: string | null | undefined;
4735
+ photo?: {
4736
+ data: {
4737
+ url: string;
4738
+ uploaded_at: string;
4739
+ photo_file_id: string;
4740
+ };
4741
+ } | null | undefined;
4742
+ }>;
4743
+ }, "strip", z.ZodTypeAny, {
4744
+ data: {
4716
4745
  intercom_app_id: string;
4717
4746
  id: string;
4718
4747
  created_at: string;
4719
4748
  locale: string;
4749
+ name: string;
4720
4750
  member_count: number;
4721
4751
  member_allowed: number;
4722
4752
  contacts_count: number;
@@ -4729,19 +4759,6 @@ export declare const officeDataSchema: z.ZodObject<{
4729
4759
  interval: string;
4730
4760
  };
4731
4761
  };
4732
- referrer?: {} | null | undefined;
4733
- disabled_at?: string | null | undefined;
4734
- updated_at?: string | null | undefined;
4735
- photo?: {
4736
- data: {
4737
- url: string;
4738
- uploaded_at: string;
4739
- photo_file_id: string;
4740
- };
4741
- } | null | undefined;
4742
- }>;
4743
- }, "strip", z.ZodTypeAny, {
4744
- data: {
4745
4762
  settings: {
4746
4763
  data: {
4747
4764
  email: string;
@@ -4832,11 +4849,24 @@ export declare const officeDataSchema: z.ZodObject<{
4832
4849
  unassigned_leads_admin_id?: number | null | undefined;
4833
4850
  };
4834
4851
  };
4835
- name: string;
4852
+ updated_at?: string | null | undefined;
4853
+ referrer?: {} | null | undefined;
4854
+ disabled_at?: string | null | undefined;
4855
+ photo?: {
4856
+ data: {
4857
+ url: string;
4858
+ uploaded_at: string;
4859
+ photo_file_id: string;
4860
+ };
4861
+ } | null | undefined;
4862
+ };
4863
+ }, {
4864
+ data: {
4836
4865
  intercom_app_id: string;
4837
4866
  id: string;
4838
4867
  created_at: string;
4839
4868
  locale: string;
4869
+ name: string;
4840
4870
  member_count: number;
4841
4871
  member_allowed: number;
4842
4872
  contacts_count: number;
@@ -4849,19 +4879,6 @@ export declare const officeDataSchema: z.ZodObject<{
4849
4879
  interval: string;
4850
4880
  };
4851
4881
  };
4852
- referrer?: {} | null | undefined;
4853
- disabled_at?: string | null | undefined;
4854
- updated_at?: string | null | undefined;
4855
- photo?: {
4856
- data: {
4857
- url: string;
4858
- uploaded_at: string;
4859
- photo_file_id: string;
4860
- };
4861
- } | null | undefined;
4862
- };
4863
- }, {
4864
- data: {
4865
4882
  settings: {
4866
4883
  data: {
4867
4884
  email: string;
@@ -4952,26 +4969,9 @@ export declare const officeDataSchema: z.ZodObject<{
4952
4969
  unassigned_leads_admin_id?: number | null | undefined;
4953
4970
  };
4954
4971
  };
4955
- name: string;
4956
- intercom_app_id: string;
4957
- id: string;
4958
- created_at: string;
4959
- locale: string;
4960
- member_count: number;
4961
- member_allowed: number;
4962
- contacts_count: number;
4963
- channels_count: number;
4964
- plan: {
4965
- data: {
4966
- id: string;
4967
- max_users: number;
4968
- price: Record<string, any>;
4969
- interval: string;
4970
- };
4971
- };
4972
+ updated_at?: string | null | undefined;
4972
4973
  referrer?: {} | null | undefined;
4973
4974
  disabled_at?: string | null | undefined;
4974
- updated_at?: string | null | undefined;
4975
4975
  photo?: {
4976
4976
  data: {
4977
4977
  url: string;
@@ -5005,9 +5005,9 @@ export declare const officeDataSchema: z.ZodObject<{
5005
5005
  locale: z.ZodString;
5006
5006
  office_id: z.ZodString;
5007
5007
  }, "strip", z.ZodTypeAny, {
5008
- id: number;
5009
5008
  first_name: string;
5010
5009
  last_name: string;
5010
+ id: number;
5011
5011
  full_name: string;
5012
5012
  role_id: string;
5013
5013
  created_at: string;
@@ -5020,9 +5020,9 @@ export declare const officeDataSchema: z.ZodObject<{
5020
5020
  launchdarkly_hash?: string | null | undefined;
5021
5021
  appointment_service_url?: string | null | undefined;
5022
5022
  }, {
5023
- id: number;
5024
5023
  first_name: string;
5025
5024
  last_name: string;
5025
+ id: number;
5026
5026
  full_name: string;
5027
5027
  role_id: string;
5028
5028
  created_at: string;
@@ -5042,9 +5042,9 @@ export declare const officeDataSchema: z.ZodObject<{
5042
5042
  country: string;
5043
5043
  visit_duration: number;
5044
5044
  default_assignee: {
5045
- id: number;
5046
5045
  first_name: string;
5047
5046
  last_name: string;
5047
+ id: number;
5048
5048
  full_name: string;
5049
5049
  role_id: string;
5050
5050
  created_at: string;
@@ -5065,9 +5065,9 @@ export declare const officeDataSchema: z.ZodObject<{
5065
5065
  country: string;
5066
5066
  visit_duration: number;
5067
5067
  default_assignee: {
5068
- id: number;
5069
5068
  first_name: string;
5070
5069
  last_name: string;
5070
+ id: number;
5071
5071
  full_name: string;
5072
5072
  role_id: string;
5073
5073
  created_at: string;
@@ -5090,9 +5090,9 @@ export declare const officeDataSchema: z.ZodObject<{
5090
5090
  country: string;
5091
5091
  visit_duration: number;
5092
5092
  default_assignee: {
5093
- id: number;
5094
5093
  first_name: string;
5095
5094
  last_name: string;
5095
+ id: number;
5096
5096
  full_name: string;
5097
5097
  role_id: string;
5098
5098
  created_at: string;
@@ -5115,9 +5115,9 @@ export declare const officeDataSchema: z.ZodObject<{
5115
5115
  country: string;
5116
5116
  visit_duration: number;
5117
5117
  default_assignee: {
5118
- id: number;
5119
5118
  first_name: string;
5120
5119
  last_name: string;
5120
+ id: number;
5121
5121
  full_name: string;
5122
5122
  role_id: string;
5123
5123
  created_at: string;
@@ -5134,12 +5134,29 @@ export declare const officeDataSchema: z.ZodObject<{
5134
5134
  };
5135
5135
  }>>>;
5136
5136
  }, "strip", z.ZodTypeAny, {
5137
- name: string;
5138
5137
  id: string;
5138
+ name: string;
5139
5139
  contacts_count: number;
5140
5140
  properties_count: number;
5141
5141
  company?: {
5142
5142
  data: {
5143
+ intercom_app_id: string;
5144
+ id: string;
5145
+ created_at: string;
5146
+ locale: string;
5147
+ name: string;
5148
+ member_count: number;
5149
+ member_allowed: number;
5150
+ contacts_count: number;
5151
+ channels_count: number;
5152
+ plan: {
5153
+ data: {
5154
+ id: string;
5155
+ max_users: number;
5156
+ price: Record<string, any>;
5157
+ interval: string;
5158
+ };
5159
+ };
5143
5160
  settings: {
5144
5161
  data: {
5145
5162
  email: string;
@@ -5230,26 +5247,9 @@ export declare const officeDataSchema: z.ZodObject<{
5230
5247
  unassigned_leads_admin_id?: number | null | undefined;
5231
5248
  };
5232
5249
  };
5233
- name: string;
5234
- intercom_app_id: string;
5235
- id: string;
5236
- created_at: string;
5237
- locale: string;
5238
- member_count: number;
5239
- member_allowed: number;
5240
- contacts_count: number;
5241
- channels_count: number;
5242
- plan: {
5243
- data: {
5244
- id: string;
5245
- max_users: number;
5246
- price: Record<string, any>;
5247
- interval: string;
5248
- };
5249
- };
5250
+ updated_at?: string | null | undefined;
5250
5251
  referrer?: {} | null | undefined;
5251
5252
  disabled_at?: string | null | undefined;
5252
- updated_at?: string | null | undefined;
5253
5253
  photo?: {
5254
5254
  data: {
5255
5255
  url: string;
@@ -5267,9 +5267,9 @@ export declare const officeDataSchema: z.ZodObject<{
5267
5267
  country: string;
5268
5268
  visit_duration: number;
5269
5269
  default_assignee: {
5270
- id: number;
5271
5270
  first_name: string;
5272
5271
  last_name: string;
5272
+ id: number;
5273
5273
  full_name: string;
5274
5274
  role_id: string;
5275
5275
  created_at: string;
@@ -5286,12 +5286,29 @@ export declare const officeDataSchema: z.ZodObject<{
5286
5286
  };
5287
5287
  } | null | undefined;
5288
5288
  }, {
5289
- name: string;
5290
5289
  id: string;
5290
+ name: string;
5291
5291
  contacts_count: number;
5292
5292
  properties_count: number;
5293
5293
  company?: {
5294
5294
  data: {
5295
+ intercom_app_id: string;
5296
+ id: string;
5297
+ created_at: string;
5298
+ locale: string;
5299
+ name: string;
5300
+ member_count: number;
5301
+ member_allowed: number;
5302
+ contacts_count: number;
5303
+ channels_count: number;
5304
+ plan: {
5305
+ data: {
5306
+ id: string;
5307
+ max_users: number;
5308
+ price: Record<string, any>;
5309
+ interval: string;
5310
+ };
5311
+ };
5295
5312
  settings: {
5296
5313
  data: {
5297
5314
  email: string;
@@ -5382,26 +5399,9 @@ export declare const officeDataSchema: z.ZodObject<{
5382
5399
  unassigned_leads_admin_id?: number | null | undefined;
5383
5400
  };
5384
5401
  };
5385
- name: string;
5386
- intercom_app_id: string;
5387
- id: string;
5388
- created_at: string;
5389
- locale: string;
5390
- member_count: number;
5391
- member_allowed: number;
5392
- contacts_count: number;
5393
- channels_count: number;
5394
- plan: {
5395
- data: {
5396
- id: string;
5397
- max_users: number;
5398
- price: Record<string, any>;
5399
- interval: string;
5400
- };
5401
- };
5402
+ updated_at?: string | null | undefined;
5402
5403
  referrer?: {} | null | undefined;
5403
5404
  disabled_at?: string | null | undefined;
5404
- updated_at?: string | null | undefined;
5405
5405
  photo?: {
5406
5406
  data: {
5407
5407
  url: string;
@@ -5419,9 +5419,9 @@ export declare const officeDataSchema: z.ZodObject<{
5419
5419
  country: string;
5420
5420
  visit_duration: number;
5421
5421
  default_assignee: {
5422
- id: number;
5423
5422
  first_name: string;
5424
5423
  last_name: string;
5424
+ id: number;
5425
5425
  full_name: string;
5426
5426
  role_id: string;
5427
5427
  created_at: string;
@@ -5440,12 +5440,29 @@ export declare const officeDataSchema: z.ZodObject<{
5440
5440
  }>;
5441
5441
  }, "strip", z.ZodTypeAny, {
5442
5442
  data: {
5443
- name: string;
5444
5443
  id: string;
5444
+ name: string;
5445
5445
  contacts_count: number;
5446
5446
  properties_count: number;
5447
5447
  company?: {
5448
5448
  data: {
5449
+ intercom_app_id: string;
5450
+ id: string;
5451
+ created_at: string;
5452
+ locale: string;
5453
+ name: string;
5454
+ member_count: number;
5455
+ member_allowed: number;
5456
+ contacts_count: number;
5457
+ channels_count: number;
5458
+ plan: {
5459
+ data: {
5460
+ id: string;
5461
+ max_users: number;
5462
+ price: Record<string, any>;
5463
+ interval: string;
5464
+ };
5465
+ };
5449
5466
  settings: {
5450
5467
  data: {
5451
5468
  email: string;
@@ -5536,26 +5553,9 @@ export declare const officeDataSchema: z.ZodObject<{
5536
5553
  unassigned_leads_admin_id?: number | null | undefined;
5537
5554
  };
5538
5555
  };
5539
- name: string;
5540
- intercom_app_id: string;
5541
- id: string;
5542
- created_at: string;
5543
- locale: string;
5544
- member_count: number;
5545
- member_allowed: number;
5546
- contacts_count: number;
5547
- channels_count: number;
5548
- plan: {
5549
- data: {
5550
- id: string;
5551
- max_users: number;
5552
- price: Record<string, any>;
5553
- interval: string;
5554
- };
5555
- };
5556
+ updated_at?: string | null | undefined;
5556
5557
  referrer?: {} | null | undefined;
5557
5558
  disabled_at?: string | null | undefined;
5558
- updated_at?: string | null | undefined;
5559
5559
  photo?: {
5560
5560
  data: {
5561
5561
  url: string;
@@ -5573,9 +5573,9 @@ export declare const officeDataSchema: z.ZodObject<{
5573
5573
  country: string;
5574
5574
  visit_duration: number;
5575
5575
  default_assignee: {
5576
- id: number;
5577
5576
  first_name: string;
5578
5577
  last_name: string;
5578
+ id: number;
5579
5579
  full_name: string;
5580
5580
  role_id: string;
5581
5581
  created_at: string;
@@ -5594,12 +5594,29 @@ export declare const officeDataSchema: z.ZodObject<{
5594
5594
  };
5595
5595
  }, {
5596
5596
  data: {
5597
- name: string;
5598
5597
  id: string;
5598
+ name: string;
5599
5599
  contacts_count: number;
5600
5600
  properties_count: number;
5601
5601
  company?: {
5602
5602
  data: {
5603
+ intercom_app_id: string;
5604
+ id: string;
5605
+ created_at: string;
5606
+ locale: string;
5607
+ name: string;
5608
+ member_count: number;
5609
+ member_allowed: number;
5610
+ contacts_count: number;
5611
+ channels_count: number;
5612
+ plan: {
5613
+ data: {
5614
+ id: string;
5615
+ max_users: number;
5616
+ price: Record<string, any>;
5617
+ interval: string;
5618
+ };
5619
+ };
5603
5620
  settings: {
5604
5621
  data: {
5605
5622
  email: string;
@@ -5690,26 +5707,9 @@ export declare const officeDataSchema: z.ZodObject<{
5690
5707
  unassigned_leads_admin_id?: number | null | undefined;
5691
5708
  };
5692
5709
  };
5693
- name: string;
5694
- intercom_app_id: string;
5695
- id: string;
5696
- created_at: string;
5697
- locale: string;
5698
- member_count: number;
5699
- member_allowed: number;
5700
- contacts_count: number;
5701
- channels_count: number;
5702
- plan: {
5703
- data: {
5704
- id: string;
5705
- max_users: number;
5706
- price: Record<string, any>;
5707
- interval: string;
5708
- };
5709
- };
5710
+ updated_at?: string | null | undefined;
5710
5711
  referrer?: {} | null | undefined;
5711
5712
  disabled_at?: string | null | undefined;
5712
- updated_at?: string | null | undefined;
5713
5713
  photo?: {
5714
5714
  data: {
5715
5715
  url: string;
@@ -5727,9 +5727,9 @@ export declare const officeDataSchema: z.ZodObject<{
5727
5727
  country: string;
5728
5728
  visit_duration: number;
5729
5729
  default_assignee: {
5730
- id: number;
5731
5730
  first_name: string;
5732
5731
  last_name: string;
5732
+ id: number;
5733
5733
  full_name: string;
5734
5734
  role_id: string;
5735
5735
  created_at: string;