@seamapi/types 1.364.0 → 1.366.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 (60) hide show
  1. package/dist/connect.cjs +1007 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2441 -178
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-access-group.js +1 -2
  8. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-credential.js +1 -2
  10. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  11. package/lib/seam/connect/models/acs/acs-system.d.ts +1 -1
  12. package/lib/seam/connect/models/acs/acs-system.js +2 -2
  13. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  14. package/lib/seam/connect/models/acs/{acs-user.d.ts → acs-users/acs-user.d.ts} +540 -18
  15. package/lib/seam/connect/models/acs/{acs-user.js → acs-users/acs-user.js} +10 -4
  16. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -0
  17. package/lib/seam/connect/models/acs/acs-users/index.d.ts +2 -0
  18. package/lib/seam/connect/models/acs/acs-users/index.js +3 -0
  19. package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -0
  20. package/lib/seam/connect/models/acs/acs-users/pending-modifications.d.ts +176 -0
  21. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +42 -0
  22. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +1 -0
  23. package/lib/seam/connect/models/acs/index.d.ts +1 -1
  24. package/lib/seam/connect/models/acs/index.js +1 -1
  25. package/lib/seam/connect/models/acs/index.js.map +1 -1
  26. package/lib/seam/connect/models/connected-accounts/connected-account.js +1 -2
  27. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  28. package/lib/seam/connect/models/devices/device.js +1 -2
  29. package/lib/seam/connect/models/devices/device.js.map +1 -1
  30. package/lib/seam/connect/models/index.d.ts +1 -0
  31. package/lib/seam/connect/models/index.js +1 -0
  32. package/lib/seam/connect/models/index.js.map +1 -1
  33. package/lib/seam/connect/models/locations/index.d.ts +1 -0
  34. package/lib/seam/connect/models/locations/index.js +2 -0
  35. package/lib/seam/connect/models/locations/index.js.map +1 -0
  36. package/lib/seam/connect/models/locations/location.d.ts +49 -0
  37. package/lib/seam/connect/models/locations/location.js +25 -0
  38. package/lib/seam/connect/models/locations/location.js.map +1 -0
  39. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  40. package/lib/seam/connect/openapi.d.ts +1271 -36
  41. package/lib/seam/connect/openapi.js +955 -0
  42. package/lib/seam/connect/openapi.js.map +1 -1
  43. package/lib/seam/connect/route-types.d.ts +506 -0
  44. package/package.json +1 -1
  45. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  46. package/src/lib/seam/connect/models/acs/acs-access-group.ts +1 -2
  47. package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -2
  48. package/src/lib/seam/connect/models/acs/acs-system.ts +2 -2
  49. package/src/lib/seam/connect/models/acs/{acs-user.ts → acs-users/acs-user.ts} +10 -4
  50. package/src/lib/seam/connect/models/acs/acs-users/index.ts +2 -0
  51. package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +56 -0
  52. package/src/lib/seam/connect/models/acs/index.ts +1 -1
  53. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +1 -2
  54. package/src/lib/seam/connect/models/devices/device.ts +1 -2
  55. package/src/lib/seam/connect/models/index.ts +1 -0
  56. package/src/lib/seam/connect/models/locations/index.ts +1 -0
  57. package/src/lib/seam/connect/models/locations/location.ts +30 -0
  58. package/src/lib/seam/connect/openapi.ts +976 -0
  59. package/src/lib/seam/connect/route-types.ts +567 -0
  60. package/lib/seam/connect/models/acs/acs-user.js.map +0 -1
@@ -7026,6 +7026,54 @@ export interface Routes {
7026
7026
  message: string;
7027
7027
  error_code: 'failed_to_delete_on_acs_system';
7028
7028
  }>;
7029
+ /** */
7030
+ pending_modifications?: Array<{
7031
+ created_at: string;
7032
+ modification_code: 'profile';
7033
+ modified_from: {
7034
+ email_address?: (string | null) | undefined;
7035
+ full_name?: (string | null) | undefined;
7036
+ phone_number?: ((string | undefined) | null) | undefined;
7037
+ };
7038
+ modified_to: {
7039
+ email_address?: (string | null) | undefined;
7040
+ full_name?: (string | null) | undefined;
7041
+ phone_number?: ((string | undefined) | null) | undefined;
7042
+ };
7043
+ } | {
7044
+ created_at: string;
7045
+ modification_code: 'access_schedule';
7046
+ modified_from: {
7047
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
7048
+ starts_at: string;
7049
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
7050
+ ends_at: string | null;
7051
+ };
7052
+ modified_to: {
7053
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
7054
+ starts_at: string;
7055
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
7056
+ ends_at: string | null;
7057
+ };
7058
+ } | {
7059
+ created_at: string;
7060
+ modification_code: 'suspension_state';
7061
+ modified_from: {
7062
+ is_suspended: boolean;
7063
+ };
7064
+ modified_to: {
7065
+ is_suspended: boolean;
7066
+ };
7067
+ } | {
7068
+ created_at: string;
7069
+ modification_code: 'acs_access_group_membership';
7070
+ modified_from: {
7071
+ acs_access_group_id: string | null;
7072
+ };
7073
+ modified_to: {
7074
+ acs_access_group_id: string | null;
7075
+ };
7076
+ }> | undefined;
7029
7077
  /** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
7030
7078
  full_name?: string | undefined;
7031
7079
  /**
@@ -11209,6 +11257,54 @@ export interface Routes {
11209
11257
  message: string;
11210
11258
  error_code: 'failed_to_delete_on_acs_system';
11211
11259
  }>;
11260
+ /** */
11261
+ pending_modifications?: Array<{
11262
+ created_at: string;
11263
+ modification_code: 'profile';
11264
+ modified_from: {
11265
+ email_address?: (string | null) | undefined;
11266
+ full_name?: (string | null) | undefined;
11267
+ phone_number?: ((string | undefined) | null) | undefined;
11268
+ };
11269
+ modified_to: {
11270
+ email_address?: (string | null) | undefined;
11271
+ full_name?: (string | null) | undefined;
11272
+ phone_number?: ((string | undefined) | null) | undefined;
11273
+ };
11274
+ } | {
11275
+ created_at: string;
11276
+ modification_code: 'access_schedule';
11277
+ modified_from: {
11278
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11279
+ starts_at: string;
11280
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11281
+ ends_at: string | null;
11282
+ };
11283
+ modified_to: {
11284
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11285
+ starts_at: string;
11286
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11287
+ ends_at: string | null;
11288
+ };
11289
+ } | {
11290
+ created_at: string;
11291
+ modification_code: 'suspension_state';
11292
+ modified_from: {
11293
+ is_suspended: boolean;
11294
+ };
11295
+ modified_to: {
11296
+ is_suspended: boolean;
11297
+ };
11298
+ } | {
11299
+ created_at: string;
11300
+ modification_code: 'acs_access_group_membership';
11301
+ modified_from: {
11302
+ acs_access_group_id: string | null;
11303
+ };
11304
+ modified_to: {
11305
+ acs_access_group_id: string | null;
11306
+ };
11307
+ }> | undefined;
11212
11308
  /** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
11213
11309
  full_name?: string | undefined;
11214
11310
  /**
@@ -11335,6 +11431,54 @@ export interface Routes {
11335
11431
  message: string;
11336
11432
  error_code: 'failed_to_delete_on_acs_system';
11337
11433
  }>;
11434
+ /** */
11435
+ pending_modifications?: Array<{
11436
+ created_at: string;
11437
+ modification_code: 'profile';
11438
+ modified_from: {
11439
+ email_address?: (string | null) | undefined;
11440
+ full_name?: (string | null) | undefined;
11441
+ phone_number?: ((string | undefined) | null) | undefined;
11442
+ };
11443
+ modified_to: {
11444
+ email_address?: (string | null) | undefined;
11445
+ full_name?: (string | null) | undefined;
11446
+ phone_number?: ((string | undefined) | null) | undefined;
11447
+ };
11448
+ } | {
11449
+ created_at: string;
11450
+ modification_code: 'access_schedule';
11451
+ modified_from: {
11452
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11453
+ starts_at: string;
11454
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11455
+ ends_at: string | null;
11456
+ };
11457
+ modified_to: {
11458
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11459
+ starts_at: string;
11460
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11461
+ ends_at: string | null;
11462
+ };
11463
+ } | {
11464
+ created_at: string;
11465
+ modification_code: 'suspension_state';
11466
+ modified_from: {
11467
+ is_suspended: boolean;
11468
+ };
11469
+ modified_to: {
11470
+ is_suspended: boolean;
11471
+ };
11472
+ } | {
11473
+ created_at: string;
11474
+ modification_code: 'acs_access_group_membership';
11475
+ modified_from: {
11476
+ acs_access_group_id: string | null;
11477
+ };
11478
+ modified_to: {
11479
+ acs_access_group_id: string | null;
11480
+ };
11481
+ }> | undefined;
11338
11482
  /** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
11339
11483
  full_name?: string | undefined;
11340
11484
  /**
@@ -11461,6 +11605,54 @@ export interface Routes {
11461
11605
  message: string;
11462
11606
  error_code: 'failed_to_delete_on_acs_system';
11463
11607
  }>;
11608
+ /** */
11609
+ pending_modifications?: Array<{
11610
+ created_at: string;
11611
+ modification_code: 'profile';
11612
+ modified_from: {
11613
+ email_address?: (string | null) | undefined;
11614
+ full_name?: (string | null) | undefined;
11615
+ phone_number?: ((string | undefined) | null) | undefined;
11616
+ };
11617
+ modified_to: {
11618
+ email_address?: (string | null) | undefined;
11619
+ full_name?: (string | null) | undefined;
11620
+ phone_number?: ((string | undefined) | null) | undefined;
11621
+ };
11622
+ } | {
11623
+ created_at: string;
11624
+ modification_code: 'access_schedule';
11625
+ modified_from: {
11626
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11627
+ starts_at: string;
11628
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11629
+ ends_at: string | null;
11630
+ };
11631
+ modified_to: {
11632
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11633
+ starts_at: string;
11634
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11635
+ ends_at: string | null;
11636
+ };
11637
+ } | {
11638
+ created_at: string;
11639
+ modification_code: 'suspension_state';
11640
+ modified_from: {
11641
+ is_suspended: boolean;
11642
+ };
11643
+ modified_to: {
11644
+ is_suspended: boolean;
11645
+ };
11646
+ } | {
11647
+ created_at: string;
11648
+ modification_code: 'acs_access_group_membership';
11649
+ modified_from: {
11650
+ acs_access_group_id: string | null;
11651
+ };
11652
+ modified_to: {
11653
+ acs_access_group_id: string | null;
11654
+ };
11655
+ }> | undefined;
11464
11656
  /** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
11465
11657
  full_name?: string | undefined;
11466
11658
  /**
@@ -11696,6 +11888,54 @@ export interface Routes {
11696
11888
  message: string;
11697
11889
  error_code: 'failed_to_delete_on_acs_system';
11698
11890
  }>;
11891
+ /** */
11892
+ pending_modifications?: Array<{
11893
+ created_at: string;
11894
+ modification_code: 'profile';
11895
+ modified_from: {
11896
+ email_address?: (string | null) | undefined;
11897
+ full_name?: (string | null) | undefined;
11898
+ phone_number?: ((string | undefined) | null) | undefined;
11899
+ };
11900
+ modified_to: {
11901
+ email_address?: (string | null) | undefined;
11902
+ full_name?: (string | null) | undefined;
11903
+ phone_number?: ((string | undefined) | null) | undefined;
11904
+ };
11905
+ } | {
11906
+ created_at: string;
11907
+ modification_code: 'access_schedule';
11908
+ modified_from: {
11909
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11910
+ starts_at: string;
11911
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11912
+ ends_at: string | null;
11913
+ };
11914
+ modified_to: {
11915
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11916
+ starts_at: string;
11917
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
11918
+ ends_at: string | null;
11919
+ };
11920
+ } | {
11921
+ created_at: string;
11922
+ modification_code: 'suspension_state';
11923
+ modified_from: {
11924
+ is_suspended: boolean;
11925
+ };
11926
+ modified_to: {
11927
+ is_suspended: boolean;
11928
+ };
11929
+ } | {
11930
+ created_at: string;
11931
+ modification_code: 'acs_access_group_membership';
11932
+ modified_from: {
11933
+ acs_access_group_id: string | null;
11934
+ };
11935
+ modified_to: {
11936
+ acs_access_group_id: string | null;
11937
+ };
11938
+ }> | undefined;
11699
11939
  /** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
11700
11940
  full_name?: string | undefined;
11701
11941
  /**
@@ -11812,6 +12052,54 @@ export interface Routes {
11812
12052
  message: string;
11813
12053
  error_code: 'failed_to_delete_on_acs_system';
11814
12054
  }>;
12055
+ /** */
12056
+ pending_modifications?: Array<{
12057
+ created_at: string;
12058
+ modification_code: 'profile';
12059
+ modified_from: {
12060
+ email_address?: (string | null) | undefined;
12061
+ full_name?: (string | null) | undefined;
12062
+ phone_number?: ((string | undefined) | null) | undefined;
12063
+ };
12064
+ modified_to: {
12065
+ email_address?: (string | null) | undefined;
12066
+ full_name?: (string | null) | undefined;
12067
+ phone_number?: ((string | undefined) | null) | undefined;
12068
+ };
12069
+ } | {
12070
+ created_at: string;
12071
+ modification_code: 'access_schedule';
12072
+ modified_from: {
12073
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
12074
+ starts_at: string;
12075
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
12076
+ ends_at: string | null;
12077
+ };
12078
+ modified_to: {
12079
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
12080
+ starts_at: string;
12081
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
12082
+ ends_at: string | null;
12083
+ };
12084
+ } | {
12085
+ created_at: string;
12086
+ modification_code: 'suspension_state';
12087
+ modified_from: {
12088
+ is_suspended: boolean;
12089
+ };
12090
+ modified_to: {
12091
+ is_suspended: boolean;
12092
+ };
12093
+ } | {
12094
+ created_at: string;
12095
+ modification_code: 'acs_access_group_membership';
12096
+ modified_from: {
12097
+ acs_access_group_id: string | null;
12098
+ };
12099
+ modified_to: {
12100
+ acs_access_group_id: string | null;
12101
+ };
12102
+ }> | undefined;
11815
12103
  /** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
11816
12104
  full_name?: string | undefined;
11817
12105
  /**
@@ -14994,6 +15282,8 @@ export interface Routes {
14994
15282
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
14995
15283
  /** */
14996
15284
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
15285
+ /** */
15286
+ unstable_location_id?: (string | null) | undefined;
14997
15287
  };
14998
15288
  formData: {};
14999
15289
  jsonResponse: {
@@ -16049,6 +16339,8 @@ export interface Routes {
16049
16339
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
16050
16340
  /** */
16051
16341
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
16342
+ /** */
16343
+ unstable_location_id?: (string | null) | undefined;
16052
16344
  };
16053
16345
  formData: {};
16054
16346
  jsonResponse: {
@@ -20264,6 +20556,8 @@ export interface Routes {
20264
20556
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
20265
20557
  /** */
20266
20558
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
20559
+ /** */
20560
+ unstable_location_id?: (string | null) | undefined;
20267
20561
  };
20268
20562
  formData: {};
20269
20563
  jsonResponse: {
@@ -23496,6 +23790,8 @@ export interface Routes {
23496
23790
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
23497
23791
  /** */
23498
23792
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
23793
+ /** */
23794
+ unstable_location_id?: (string | null) | undefined;
23499
23795
  };
23500
23796
  formData: {};
23501
23797
  jsonResponse: {
@@ -32297,6 +32593,8 @@ export interface Routes {
32297
32593
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
32298
32594
  /** */
32299
32595
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
32596
+ /** */
32597
+ unstable_location_id?: (string | null) | undefined;
32300
32598
  };
32301
32599
  formData: {};
32302
32600
  jsonResponse: {
@@ -36689,6 +36987,166 @@ export interface Routes {
36689
36987
  formData: {};
36690
36988
  jsonResponse: {};
36691
36989
  };
36990
+ '/unstable_locations/add_devices': {
36991
+ route: '/unstable_locations/add_devices';
36992
+ method: 'POST';
36993
+ queryParams: {};
36994
+ jsonBody: {
36995
+ location_id: string;
36996
+ device_ids: string[];
36997
+ };
36998
+ commonParams: {};
36999
+ formData: {};
37000
+ jsonResponse: {};
37001
+ };
37002
+ '/unstable_locations/create': {
37003
+ route: '/unstable_locations/create';
37004
+ method: 'POST';
37005
+ queryParams: {};
37006
+ jsonBody: {
37007
+ name: string;
37008
+ geolocation?: {
37009
+ latitude: number;
37010
+ longitude: number;
37011
+ } | undefined;
37012
+ time_zone?: string | undefined;
37013
+ };
37014
+ commonParams: {};
37015
+ formData: {};
37016
+ jsonResponse: {
37017
+ location: {
37018
+ /** Unique identifier for the location. */
37019
+ location_id: string;
37020
+ /** Unique identifier for the Seam workspace associated with the location. */
37021
+ workspace_id: string;
37022
+ /** Display name of the location. */
37023
+ display_name: string;
37024
+ /** Geographical location of the location. */
37025
+ geolocation?: {
37026
+ latitude: number;
37027
+ longitude: number;
37028
+ } | undefined;
37029
+ /** Time zone of the location. */
37030
+ time_zone?: string | undefined;
37031
+ /** Date and time at which the location object was created. */
37032
+ created_at: string;
37033
+ };
37034
+ };
37035
+ };
37036
+ '/unstable_locations/delete': {
37037
+ route: '/unstable_locations/delete';
37038
+ method: 'DELETE' | 'POST';
37039
+ queryParams: {};
37040
+ jsonBody: {
37041
+ location_id: string;
37042
+ };
37043
+ commonParams: {};
37044
+ formData: {};
37045
+ jsonResponse: {};
37046
+ };
37047
+ '/unstable_locations/get': {
37048
+ route: '/unstable_locations/get';
37049
+ method: 'GET' | 'POST';
37050
+ queryParams: {};
37051
+ jsonBody: {};
37052
+ commonParams: {
37053
+ location_id: string;
37054
+ };
37055
+ formData: {};
37056
+ jsonResponse: {
37057
+ location: {
37058
+ /** Unique identifier for the location. */
37059
+ location_id: string;
37060
+ /** Unique identifier for the Seam workspace associated with the location. */
37061
+ workspace_id: string;
37062
+ /** Display name of the location. */
37063
+ display_name: string;
37064
+ /** Geographical location of the location. */
37065
+ geolocation?: {
37066
+ latitude: number;
37067
+ longitude: number;
37068
+ } | undefined;
37069
+ /** Time zone of the location. */
37070
+ time_zone?: string | undefined;
37071
+ /** Date and time at which the location object was created. */
37072
+ created_at: string;
37073
+ };
37074
+ };
37075
+ };
37076
+ '/unstable_locations/list': {
37077
+ route: '/unstable_locations/list';
37078
+ method: 'GET' | 'POST';
37079
+ queryParams: {};
37080
+ jsonBody: {};
37081
+ commonParams: {};
37082
+ formData: {};
37083
+ jsonResponse: {
37084
+ locations: Array<{
37085
+ /** Unique identifier for the location. */
37086
+ location_id: string;
37087
+ /** Unique identifier for the Seam workspace associated with the location. */
37088
+ workspace_id: string;
37089
+ /** Display name of the location. */
37090
+ display_name: string;
37091
+ /** Geographical location of the location. */
37092
+ geolocation?: {
37093
+ latitude: number;
37094
+ longitude: number;
37095
+ } | undefined;
37096
+ /** Time zone of the location. */
37097
+ time_zone?: string | undefined;
37098
+ /** Date and time at which the location object was created. */
37099
+ created_at: string;
37100
+ }>;
37101
+ };
37102
+ };
37103
+ '/unstable_locations/remove_devices': {
37104
+ route: '/unstable_locations/remove_devices';
37105
+ method: 'POST';
37106
+ queryParams: {};
37107
+ jsonBody: {
37108
+ location_id: string;
37109
+ device_ids: string[];
37110
+ };
37111
+ commonParams: {};
37112
+ formData: {};
37113
+ jsonResponse: {};
37114
+ };
37115
+ '/unstable_locations/update': {
37116
+ route: '/unstable_locations/update';
37117
+ method: 'POST';
37118
+ queryParams: {};
37119
+ jsonBody: {
37120
+ location_id: string;
37121
+ name?: string | undefined;
37122
+ geolocation?: {
37123
+ latitude: number;
37124
+ longitude: number;
37125
+ } | undefined;
37126
+ time_zone?: string | undefined;
37127
+ };
37128
+ commonParams: {};
37129
+ formData: {};
37130
+ jsonResponse: {
37131
+ location: {
37132
+ /** Unique identifier for the location. */
37133
+ location_id: string;
37134
+ /** Unique identifier for the Seam workspace associated with the location. */
37135
+ workspace_id: string;
37136
+ /** Display name of the location. */
37137
+ display_name: string;
37138
+ /** Geographical location of the location. */
37139
+ geolocation?: {
37140
+ latitude: number;
37141
+ longitude: number;
37142
+ } | undefined;
37143
+ /** Time zone of the location. */
37144
+ time_zone?: string | undefined;
37145
+ /** Date and time at which the location object was created. */
37146
+ created_at: string;
37147
+ };
37148
+ };
37149
+ };
36692
37150
  '/user_identities/add_acs_user': {
36693
37151
  route: '/user_identities/add_acs_user';
36694
37152
  method: 'POST' | 'PUT';
@@ -38535,6 +38993,54 @@ export interface Routes {
38535
38993
  message: string;
38536
38994
  error_code: 'failed_to_delete_on_acs_system';
38537
38995
  }>;
38996
+ /** */
38997
+ pending_modifications?: Array<{
38998
+ created_at: string;
38999
+ modification_code: 'profile';
39000
+ modified_from: {
39001
+ email_address?: (string | null) | undefined;
39002
+ full_name?: (string | null) | undefined;
39003
+ phone_number?: ((string | undefined) | null) | undefined;
39004
+ };
39005
+ modified_to: {
39006
+ email_address?: (string | null) | undefined;
39007
+ full_name?: (string | null) | undefined;
39008
+ phone_number?: ((string | undefined) | null) | undefined;
39009
+ };
39010
+ } | {
39011
+ created_at: string;
39012
+ modification_code: 'access_schedule';
39013
+ modified_from: {
39014
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
39015
+ starts_at: string;
39016
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
39017
+ ends_at: string | null;
39018
+ };
39019
+ modified_to: {
39020
+ /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
39021
+ starts_at: string;
39022
+ /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
39023
+ ends_at: string | null;
39024
+ };
39025
+ } | {
39026
+ created_at: string;
39027
+ modification_code: 'suspension_state';
39028
+ modified_from: {
39029
+ is_suspended: boolean;
39030
+ };
39031
+ modified_to: {
39032
+ is_suspended: boolean;
39033
+ };
39034
+ } | {
39035
+ created_at: string;
39036
+ modification_code: 'acs_access_group_membership';
39037
+ modified_from: {
39038
+ acs_access_group_id: string | null;
39039
+ };
39040
+ modified_to: {
39041
+ acs_access_group_id: string | null;
39042
+ };
39043
+ }> | undefined;
38538
39044
  /** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
38539
39045
  full_name?: string | undefined;
38540
39046
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.364.0",
3
+ "version": "1.366.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -34,6 +34,8 @@ export {
34
34
  seam_event as event,
35
35
  seam_event_type as event_type,
36
36
  fan_mode_setting,
37
+ geolocation,
38
+ location,
37
39
  lock_device_type,
38
40
  access_code as managed_access_code,
39
41
  device as managed_device,
@@ -37,8 +37,7 @@ export const unknown_issue_with_acs_access_group =
37
37
  .describe(warning_code_description),
38
38
  })
39
39
  .describe(
40
- 'An unknown issue occurred while syncing the state of this access group with the provider. ' +
41
- 'This issue may affect the proper functioning of this access group.',
40
+ 'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.',
42
41
  )
43
42
 
44
43
  const acs_access_group_warning = unknown_issue_with_acs_access_group.describe(
@@ -86,8 +86,7 @@ export const unknown_issue_with_acs_credential = common_acs_credential_warning
86
86
  .describe(warning_code_description),
87
87
  })
88
88
  .describe(
89
- 'An unknown issue occurred while syncing the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) with the provider. ' +
90
- 'This issue may affect the proper functioning of the credential.',
89
+ 'An unknown issue occurred while syncing the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.',
91
90
  )
92
91
 
93
92
  const needs_to_be_reissued = common_acs_credential_warning
@@ -27,7 +27,7 @@ export const acs_system_capability_flags = z.object({
27
27
  ),
28
28
  })
29
29
 
30
- export const location = z.object({
30
+ export const acs_location = z.object({
31
31
  time_zone: z
32
32
  .string()
33
33
  .nullable()
@@ -274,7 +274,7 @@ export const acs_system = z
274
274
  deprecated: Use \`external_type_display_name\`.
275
275
  ---
276
276
  `),
277
- location,
277
+ location: acs_location,
278
278
  name: z
279
279
  .string()
280
280
  .describe(