@seamapi/http 1.57.0 → 1.59.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 (43) hide show
  1. package/dist/connect.cjs +200 -328
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +90 -146
  4. package/dist/index.cjs +202 -330
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/index.d.ts +0 -1
  8. package/lib/seam/connect/routes/index.js +0 -1
  9. package/lib/seam/connect/routes/index.js.map +1 -1
  10. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +8 -12
  11. package/lib/seam/connect/routes/seam-http-endpoints.js +39 -91
  12. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  13. package/lib/seam/connect/routes/seam-http.d.ts +0 -2
  14. package/lib/seam/connect/routes/seam-http.js +0 -4
  15. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  16. package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.d.ts +86 -0
  17. package/lib/seam/connect/routes/{unstable-locations/unstable-locations.js → workspaces/customization-profiles/customization-profiles.js} +29 -92
  18. package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js.map +1 -0
  19. package/lib/seam/connect/routes/workspaces/customization-profiles/index.d.ts +1 -0
  20. package/lib/seam/connect/routes/{unstable-locations → workspaces/customization-profiles}/index.js +1 -1
  21. package/lib/seam/connect/routes/workspaces/customization-profiles/index.js.map +1 -0
  22. package/lib/seam/connect/routes/workspaces/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/workspaces/index.js +1 -0
  24. package/lib/seam/connect/routes/workspaces/index.js.map +1 -1
  25. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +2 -0
  26. package/lib/seam/connect/routes/workspaces/workspaces.js +4 -0
  27. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  28. package/lib/version.d.ts +1 -1
  29. package/lib/version.js +1 -1
  30. package/package.json +3 -3
  31. package/src/lib/seam/connect/routes/index.ts +0 -1
  32. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +110 -201
  33. package/src/lib/seam/connect/routes/seam-http.ts +0 -5
  34. package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +361 -0
  35. package/src/lib/seam/connect/routes/{unstable-locations → workspaces/customization-profiles}/index.ts +1 -1
  36. package/src/lib/seam/connect/routes/workspaces/index.ts +1 -0
  37. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +9 -0
  38. package/src/lib/version.ts +1 -1
  39. package/lib/seam/connect/routes/unstable-locations/index.d.ts +0 -1
  40. package/lib/seam/connect/routes/unstable-locations/index.js.map +0 -1
  41. package/lib/seam/connect/routes/unstable-locations/unstable-locations.d.ts +0 -138
  42. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js.map +0 -1
  43. package/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts +0 -544
@@ -707,36 +707,6 @@ import {
707
707
  type ThermostatsSimulateTemperatureReachedParameters,
708
708
  type ThermostatsSimulateTemperatureReachedRequest,
709
709
  } from './thermostats/simulate/index.js'
710
- import {
711
- SeamHttpUnstableLocations,
712
- type UnstableLocationsAddAcsEntrancesOptions,
713
- type UnstableLocationsAddAcsEntrancesParameters,
714
- type UnstableLocationsAddAcsEntrancesRequest,
715
- type UnstableLocationsAddDevicesOptions,
716
- type UnstableLocationsAddDevicesParameters,
717
- type UnstableLocationsAddDevicesRequest,
718
- type UnstableLocationsCreateOptions,
719
- type UnstableLocationsCreateParameters,
720
- type UnstableLocationsCreateRequest,
721
- type UnstableLocationsDeleteOptions,
722
- type UnstableLocationsDeleteParameters,
723
- type UnstableLocationsDeleteRequest,
724
- type UnstableLocationsGetOptions,
725
- type UnstableLocationsGetParameters,
726
- type UnstableLocationsGetRequest,
727
- type UnstableLocationsListOptions,
728
- type UnstableLocationsListParameters,
729
- type UnstableLocationsListRequest,
730
- type UnstableLocationsRemoveAcsEntrancesOptions,
731
- type UnstableLocationsRemoveAcsEntrancesParameters,
732
- type UnstableLocationsRemoveAcsEntrancesRequest,
733
- type UnstableLocationsRemoveDevicesOptions,
734
- type UnstableLocationsRemoveDevicesParameters,
735
- type UnstableLocationsRemoveDevicesRequest,
736
- type UnstableLocationsUpdateOptions,
737
- type UnstableLocationsUpdateParameters,
738
- type UnstableLocationsUpdateRequest,
739
- } from './unstable-locations/index.js'
740
710
  import {
741
711
  SeamHttpUnstablePartnerBuildingBlocks,
742
712
  type UnstablePartnerBuildingBlocksConnectAccountsOptions,
@@ -827,6 +797,24 @@ import {
827
797
  type WebhooksUpdateParameters,
828
798
  type WebhooksUpdateRequest,
829
799
  } from './webhooks/index.js'
800
+ import {
801
+ SeamHttpWorkspacesCustomizationProfiles,
802
+ type WorkspacesCustomizationProfilesCreateOptions,
803
+ type WorkspacesCustomizationProfilesCreateParameters,
804
+ type WorkspacesCustomizationProfilesCreateRequest,
805
+ type WorkspacesCustomizationProfilesGetOptions,
806
+ type WorkspacesCustomizationProfilesGetParameters,
807
+ type WorkspacesCustomizationProfilesGetRequest,
808
+ type WorkspacesCustomizationProfilesListOptions,
809
+ type WorkspacesCustomizationProfilesListParameters,
810
+ type WorkspacesCustomizationProfilesListRequest,
811
+ type WorkspacesCustomizationProfilesUpdateOptions,
812
+ type WorkspacesCustomizationProfilesUpdateParameters,
813
+ type WorkspacesCustomizationProfilesUpdateRequest,
814
+ type WorkspacesCustomizationProfilesUploadImagesOptions,
815
+ type WorkspacesCustomizationProfilesUploadImagesParameters,
816
+ type WorkspacesCustomizationProfilesUploadImagesRequest,
817
+ } from './workspaces/customization-profiles/index.js'
830
818
  import {
831
819
  SeamHttpWorkspaces,
832
820
  type WorkspacesCreateOptions,
@@ -3458,168 +3446,6 @@ export class SeamHttpEndpoints {
3458
3446
  }
3459
3447
  }
3460
3448
 
3461
- get ['/unstable_locations/add_acs_entrances'](): (
3462
- parameters?: UnstableLocationsAddAcsEntrancesParameters,
3463
- options?: UnstableLocationsAddAcsEntrancesOptions,
3464
- ) => UnstableLocationsAddAcsEntrancesRequest {
3465
- const { client, defaults } = this
3466
- if (!this.defaults.isUndocumentedApiEnabled) {
3467
- throw new Error(
3468
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3469
- )
3470
- }
3471
- return function unstableLocationsAddAcsEntrances(
3472
- ...args: Parameters<SeamHttpUnstableLocations['addAcsEntrances']>
3473
- ): ReturnType<SeamHttpUnstableLocations['addAcsEntrances']> {
3474
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3475
- return seam.addAcsEntrances(...args)
3476
- }
3477
- }
3478
-
3479
- get ['/unstable_locations/add_devices'](): (
3480
- parameters?: UnstableLocationsAddDevicesParameters,
3481
- options?: UnstableLocationsAddDevicesOptions,
3482
- ) => UnstableLocationsAddDevicesRequest {
3483
- const { client, defaults } = this
3484
- if (!this.defaults.isUndocumentedApiEnabled) {
3485
- throw new Error(
3486
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3487
- )
3488
- }
3489
- return function unstableLocationsAddDevices(
3490
- ...args: Parameters<SeamHttpUnstableLocations['addDevices']>
3491
- ): ReturnType<SeamHttpUnstableLocations['addDevices']> {
3492
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3493
- return seam.addDevices(...args)
3494
- }
3495
- }
3496
-
3497
- get ['/unstable_locations/create'](): (
3498
- parameters?: UnstableLocationsCreateParameters,
3499
- options?: UnstableLocationsCreateOptions,
3500
- ) => UnstableLocationsCreateRequest {
3501
- const { client, defaults } = this
3502
- if (!this.defaults.isUndocumentedApiEnabled) {
3503
- throw new Error(
3504
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3505
- )
3506
- }
3507
- return function unstableLocationsCreate(
3508
- ...args: Parameters<SeamHttpUnstableLocations['create']>
3509
- ): ReturnType<SeamHttpUnstableLocations['create']> {
3510
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3511
- return seam.create(...args)
3512
- }
3513
- }
3514
-
3515
- get ['/unstable_locations/delete'](): (
3516
- parameters?: UnstableLocationsDeleteParameters,
3517
- options?: UnstableLocationsDeleteOptions,
3518
- ) => UnstableLocationsDeleteRequest {
3519
- const { client, defaults } = this
3520
- if (!this.defaults.isUndocumentedApiEnabled) {
3521
- throw new Error(
3522
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3523
- )
3524
- }
3525
- return function unstableLocationsDelete(
3526
- ...args: Parameters<SeamHttpUnstableLocations['delete']>
3527
- ): ReturnType<SeamHttpUnstableLocations['delete']> {
3528
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3529
- return seam.delete(...args)
3530
- }
3531
- }
3532
-
3533
- get ['/unstable_locations/get'](): (
3534
- parameters?: UnstableLocationsGetParameters,
3535
- options?: UnstableLocationsGetOptions,
3536
- ) => UnstableLocationsGetRequest {
3537
- const { client, defaults } = this
3538
- if (!this.defaults.isUndocumentedApiEnabled) {
3539
- throw new Error(
3540
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3541
- )
3542
- }
3543
- return function unstableLocationsGet(
3544
- ...args: Parameters<SeamHttpUnstableLocations['get']>
3545
- ): ReturnType<SeamHttpUnstableLocations['get']> {
3546
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3547
- return seam.get(...args)
3548
- }
3549
- }
3550
-
3551
- get ['/unstable_locations/list'](): (
3552
- parameters?: UnstableLocationsListParameters,
3553
- options?: UnstableLocationsListOptions,
3554
- ) => UnstableLocationsListRequest {
3555
- const { client, defaults } = this
3556
- if (!this.defaults.isUndocumentedApiEnabled) {
3557
- throw new Error(
3558
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3559
- )
3560
- }
3561
- return function unstableLocationsList(
3562
- ...args: Parameters<SeamHttpUnstableLocations['list']>
3563
- ): ReturnType<SeamHttpUnstableLocations['list']> {
3564
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3565
- return seam.list(...args)
3566
- }
3567
- }
3568
-
3569
- get ['/unstable_locations/remove_acs_entrances'](): (
3570
- parameters?: UnstableLocationsRemoveAcsEntrancesParameters,
3571
- options?: UnstableLocationsRemoveAcsEntrancesOptions,
3572
- ) => UnstableLocationsRemoveAcsEntrancesRequest {
3573
- const { client, defaults } = this
3574
- if (!this.defaults.isUndocumentedApiEnabled) {
3575
- throw new Error(
3576
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3577
- )
3578
- }
3579
- return function unstableLocationsRemoveAcsEntrances(
3580
- ...args: Parameters<SeamHttpUnstableLocations['removeAcsEntrances']>
3581
- ): ReturnType<SeamHttpUnstableLocations['removeAcsEntrances']> {
3582
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3583
- return seam.removeAcsEntrances(...args)
3584
- }
3585
- }
3586
-
3587
- get ['/unstable_locations/remove_devices'](): (
3588
- parameters?: UnstableLocationsRemoveDevicesParameters,
3589
- options?: UnstableLocationsRemoveDevicesOptions,
3590
- ) => UnstableLocationsRemoveDevicesRequest {
3591
- const { client, defaults } = this
3592
- if (!this.defaults.isUndocumentedApiEnabled) {
3593
- throw new Error(
3594
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3595
- )
3596
- }
3597
- return function unstableLocationsRemoveDevices(
3598
- ...args: Parameters<SeamHttpUnstableLocations['removeDevices']>
3599
- ): ReturnType<SeamHttpUnstableLocations['removeDevices']> {
3600
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3601
- return seam.removeDevices(...args)
3602
- }
3603
- }
3604
-
3605
- get ['/unstable_locations/update'](): (
3606
- parameters?: UnstableLocationsUpdateParameters,
3607
- options?: UnstableLocationsUpdateOptions,
3608
- ) => UnstableLocationsUpdateRequest {
3609
- const { client, defaults } = this
3610
- if (!this.defaults.isUndocumentedApiEnabled) {
3611
- throw new Error(
3612
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3613
- )
3614
- }
3615
- return function unstableLocationsUpdate(
3616
- ...args: Parameters<SeamHttpUnstableLocations['update']>
3617
- ): ReturnType<SeamHttpUnstableLocations['update']> {
3618
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults)
3619
- return seam.update(...args)
3620
- }
3621
- }
3622
-
3623
3449
  get ['/unstable_partner/building_blocks/connect_accounts'](): (
3624
3450
  parameters?: UnstablePartnerBuildingBlocksConnectAccountsParameters,
3625
3451
  options?: UnstablePartnerBuildingBlocksConnectAccountsOptions,
@@ -4112,6 +3938,93 @@ export class SeamHttpEndpoints {
4112
3938
  return seam.update(...args)
4113
3939
  }
4114
3940
  }
3941
+
3942
+ get ['/workspaces/customization_profiles/create'](): (
3943
+ parameters?: WorkspacesCustomizationProfilesCreateParameters,
3944
+ options?: WorkspacesCustomizationProfilesCreateOptions,
3945
+ ) => WorkspacesCustomizationProfilesCreateRequest {
3946
+ const { client, defaults } = this
3947
+ return function workspacesCustomizationProfilesCreate(
3948
+ ...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['create']>
3949
+ ): ReturnType<SeamHttpWorkspacesCustomizationProfiles['create']> {
3950
+ const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
3951
+ client,
3952
+ defaults,
3953
+ )
3954
+ return seam.create(...args)
3955
+ }
3956
+ }
3957
+
3958
+ get ['/workspaces/customization_profiles/get'](): (
3959
+ parameters?: WorkspacesCustomizationProfilesGetParameters,
3960
+ options?: WorkspacesCustomizationProfilesGetOptions,
3961
+ ) => WorkspacesCustomizationProfilesGetRequest {
3962
+ const { client, defaults } = this
3963
+ return function workspacesCustomizationProfilesGet(
3964
+ ...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['get']>
3965
+ ): ReturnType<SeamHttpWorkspacesCustomizationProfiles['get']> {
3966
+ const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
3967
+ client,
3968
+ defaults,
3969
+ )
3970
+ return seam.get(...args)
3971
+ }
3972
+ }
3973
+
3974
+ get ['/workspaces/customization_profiles/list'](): (
3975
+ parameters?: WorkspacesCustomizationProfilesListParameters,
3976
+ options?: WorkspacesCustomizationProfilesListOptions,
3977
+ ) => WorkspacesCustomizationProfilesListRequest {
3978
+ const { client, defaults } = this
3979
+ return function workspacesCustomizationProfilesList(
3980
+ ...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['list']>
3981
+ ): ReturnType<SeamHttpWorkspacesCustomizationProfiles['list']> {
3982
+ const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
3983
+ client,
3984
+ defaults,
3985
+ )
3986
+ return seam.list(...args)
3987
+ }
3988
+ }
3989
+
3990
+ get ['/workspaces/customization_profiles/update'](): (
3991
+ parameters?: WorkspacesCustomizationProfilesUpdateParameters,
3992
+ options?: WorkspacesCustomizationProfilesUpdateOptions,
3993
+ ) => WorkspacesCustomizationProfilesUpdateRequest {
3994
+ const { client, defaults } = this
3995
+ return function workspacesCustomizationProfilesUpdate(
3996
+ ...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['update']>
3997
+ ): ReturnType<SeamHttpWorkspacesCustomizationProfiles['update']> {
3998
+ const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
3999
+ client,
4000
+ defaults,
4001
+ )
4002
+ return seam.update(...args)
4003
+ }
4004
+ }
4005
+
4006
+ get ['/workspaces/customization_profiles/upload_images'](): (
4007
+ parameters?: WorkspacesCustomizationProfilesUploadImagesParameters,
4008
+ options?: WorkspacesCustomizationProfilesUploadImagesOptions,
4009
+ ) => WorkspacesCustomizationProfilesUploadImagesRequest {
4010
+ const { client, defaults } = this
4011
+ if (!this.defaults.isUndocumentedApiEnabled) {
4012
+ throw new Error(
4013
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
4014
+ )
4015
+ }
4016
+ return function workspacesCustomizationProfilesUploadImages(
4017
+ ...args: Parameters<
4018
+ SeamHttpWorkspacesCustomizationProfiles['uploadImages']
4019
+ >
4020
+ ): ReturnType<SeamHttpWorkspacesCustomizationProfiles['uploadImages']> {
4021
+ const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
4022
+ client,
4023
+ defaults,
4024
+ )
4025
+ return seam.uploadImages(...args)
4026
+ }
4027
+ }
4115
4028
  }
4116
4029
 
4117
4030
  export type SeamHttpEndpointQueryPaths =
@@ -4191,8 +4104,6 @@ export type SeamHttpEndpointQueryPaths =
4191
4104
  | '/thermostats/list'
4192
4105
  | '/thermostats/schedules/get'
4193
4106
  | '/thermostats/schedules/list'
4194
- | '/unstable_locations/get'
4195
- | '/unstable_locations/list'
4196
4107
  | '/unstable_partner/building_blocks/generate_magic_link'
4197
4108
  | '/user_identities/get'
4198
4109
  | '/user_identities/list'
@@ -4206,6 +4117,8 @@ export type SeamHttpEndpointQueryPaths =
4206
4117
  | '/workspaces/find_resources'
4207
4118
  | '/workspaces/get'
4208
4119
  | '/workspaces/list'
4120
+ | '/workspaces/customization_profiles/get'
4121
+ | '/workspaces/customization_profiles/list'
4209
4122
 
4210
4123
  export type SeamHttpEndpointPaginatedQueryPaths =
4211
4124
  | '/access_codes/list'
@@ -4319,13 +4232,6 @@ export type SeamHttpEndpointMutationPaths =
4319
4232
  | '/thermostats/schedules/update'
4320
4233
  | '/thermostats/simulate/hvac_mode_adjusted'
4321
4234
  | '/thermostats/simulate/temperature_reached'
4322
- | '/unstable_locations/add_acs_entrances'
4323
- | '/unstable_locations/add_devices'
4324
- | '/unstable_locations/create'
4325
- | '/unstable_locations/delete'
4326
- | '/unstable_locations/remove_acs_entrances'
4327
- | '/unstable_locations/remove_devices'
4328
- | '/unstable_locations/update'
4329
4235
  | '/unstable_partner/building_blocks/connect_accounts'
4330
4236
  | '/unstable_partner/building_blocks/manage_devices'
4331
4237
  | '/unstable_partner/building_blocks/organize_spaces'
@@ -4345,3 +4251,6 @@ export type SeamHttpEndpointMutationPaths =
4345
4251
  | '/workspaces/create'
4346
4252
  | '/workspaces/reset_sandbox'
4347
4253
  | '/workspaces/update'
4254
+ | '/workspaces/customization_profiles/create'
4255
+ | '/workspaces/customization_profiles/update'
4256
+ | '/workspaces/customization_profiles/upload_images'
@@ -50,7 +50,6 @@ import { SeamHttpNoiseSensors } from './noise-sensors/index.js'
50
50
  import { SeamHttpPhones } from './phones/index.js'
51
51
  import { SeamHttpSpaces } from './spaces/index.js'
52
52
  import { SeamHttpThermostats } from './thermostats/index.js'
53
- import { SeamHttpUnstableLocations } from './unstable-locations/index.js'
54
53
  import { SeamHttpUnstablePartner } from './unstable-partner/index.js'
55
54
  import { SeamHttpUserIdentities } from './user-identities/index.js'
56
55
  import { SeamHttpWebhooks } from './webhooks/index.js'
@@ -255,10 +254,6 @@ export class SeamHttp {
255
254
  return SeamHttpThermostats.fromClient(this.client, this.defaults)
256
255
  }
257
256
 
258
- get unstableLocations(): SeamHttpUnstableLocations {
259
- return SeamHttpUnstableLocations.fromClient(this.client, this.defaults)
260
- }
261
-
262
257
  get unstablePartner(): SeamHttpUnstablePartner {
263
258
  return SeamHttpUnstablePartner.fromClient(this.client, this.defaults)
264
259
  }