@seamapi/types 1.19.1 → 1.21.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.
package/dist/connect.cjs CHANGED
@@ -146,7 +146,7 @@ var openapi_default = {
146
146
  external_type: { enum: ["pti_user"], type: "string" },
147
147
  external_type_display_name: { type: "string" },
148
148
  full_name: { type: "string" },
149
- is_being_deleted: { type: "boolean" },
149
+ is_suspended: { type: "boolean" },
150
150
  phone_number: { nullable: true, type: "string" },
151
151
  workspace_id: { format: "uuid", type: "string" }
152
152
  },
@@ -158,7 +158,7 @@ var openapi_default = {
158
158
  "display_name",
159
159
  "external_type",
160
160
  "external_type_display_name",
161
- "is_being_deleted"
161
+ "is_suspended"
162
162
  ],
163
163
  type: "object"
164
164
  },
@@ -1778,16 +1778,19 @@ var openapi_default = {
1778
1778
  }
1779
1779
  },
1780
1780
  "/access_codes/generate_code": {
1781
- get: {
1782
- operationId: "accessCodesGenerateCodeGet",
1783
- parameters: [
1784
- {
1785
- in: "query",
1786
- name: "device_id",
1787
- required: true,
1788
- schema: { format: "uuid", type: "string" }
1781
+ post: {
1782
+ operationId: "accessCodesGenerateCodePost",
1783
+ requestBody: {
1784
+ content: {
1785
+ "application/json": {
1786
+ schema: {
1787
+ properties: { device_id: { format: "uuid", type: "string" } },
1788
+ required: ["device_id"],
1789
+ type: "object"
1790
+ }
1791
+ }
1789
1792
  }
1790
- ],
1793
+ },
1791
1794
  responses: {
1792
1795
  200: {
1793
1796
  content: {
@@ -2499,6 +2502,71 @@ var openapi_default = {
2499
2502
  }
2500
2503
  },
2501
2504
  "/access_codes/update": {
2505
+ patch: {
2506
+ operationId: "accessCodesUpdatePatch",
2507
+ requestBody: {
2508
+ content: {
2509
+ "application/json": {
2510
+ schema: {
2511
+ properties: {
2512
+ access_code_id: { format: "uuid", type: "string" },
2513
+ allow_external_modification: { type: "boolean" },
2514
+ attempt_for_offline_device: {
2515
+ default: true,
2516
+ type: "boolean"
2517
+ },
2518
+ code: {
2519
+ maxLength: 8,
2520
+ minLength: 4,
2521
+ pattern: "^\\d+$",
2522
+ type: "string"
2523
+ },
2524
+ device_id: { format: "uuid", type: "string" },
2525
+ ends_at: { type: "string" },
2526
+ is_managed: { type: "boolean" },
2527
+ name: { type: "string" },
2528
+ prefer_native_scheduling: { type: "boolean" },
2529
+ starts_at: { type: "string" },
2530
+ sync: { default: false, type: "boolean" },
2531
+ type: { enum: ["ongoing", "time_bound"], type: "string" },
2532
+ use_backup_access_code_pool: { type: "boolean" }
2533
+ },
2534
+ required: ["access_code_id"],
2535
+ type: "object"
2536
+ }
2537
+ }
2538
+ }
2539
+ },
2540
+ responses: {
2541
+ 200: {
2542
+ content: {
2543
+ "application/json": {
2544
+ schema: {
2545
+ properties: {
2546
+ action_attempt: {
2547
+ $ref: "#/components/schemas/action_attempt"
2548
+ },
2549
+ ok: { type: "boolean" }
2550
+ },
2551
+ required: ["action_attempt", "ok"],
2552
+ type: "object"
2553
+ }
2554
+ }
2555
+ },
2556
+ description: "OK"
2557
+ },
2558
+ 400: { description: "Bad Request" },
2559
+ 401: { description: "Unauthorized" }
2560
+ },
2561
+ security: [
2562
+ { access_token: [], seam_workspace: [] },
2563
+ { seam_client_session_token: [] },
2564
+ { client_session_token: [] }
2565
+ ],
2566
+ summary: "/access_codes/update",
2567
+ tags: ["/access_codes"],
2568
+ "x-fern-ignore": true
2569
+ },
2502
2570
  post: {
2503
2571
  operationId: "accessCodesUpdatePost",
2504
2572
  requestBody: {
@@ -2633,8 +2701,8 @@ var openapi_default = {
2633
2701
  }
2634
2702
  },
2635
2703
  "/acs/access_groups/add_user": {
2636
- patch: {
2637
- operationId: "acsAccessGroupsAddUserPatch",
2704
+ post: {
2705
+ operationId: "acsAccessGroupsAddUserPost",
2638
2706
  requestBody: {
2639
2707
  content: {
2640
2708
  "application/json": {
@@ -2672,10 +2740,11 @@ var openapi_default = {
2672
2740
  ],
2673
2741
  summary: "/acs/access_groups/add_user",
2674
2742
  tags: [],
2675
- "x-fern-ignore": true
2743
+ "x-fern-sdk-group-name": ["acs", "access_groups"],
2744
+ "x-fern-sdk-method-name": "add_user"
2676
2745
  },
2677
- post: {
2678
- operationId: "acsAccessGroupsAddUserPost",
2746
+ put: {
2747
+ operationId: "acsAccessGroupsAddUserPut",
2679
2748
  requestBody: {
2680
2749
  content: {
2681
2750
  "application/json": {
@@ -2713,8 +2782,7 @@ var openapi_default = {
2713
2782
  ],
2714
2783
  summary: "/acs/access_groups/add_user",
2715
2784
  tags: [],
2716
- "x-fern-sdk-group-name": ["acs", "access_groups"],
2717
- "x-fern-sdk-method-name": "add_user"
2785
+ "x-fern-ignore": true
2718
2786
  }
2719
2787
  },
2720
2788
  "/acs/access_groups/create": {
@@ -3428,8 +3496,8 @@ var openapi_default = {
3428
3496
  }
3429
3497
  },
3430
3498
  "/acs/users/add_to_access_group": {
3431
- patch: {
3432
- operationId: "acsUsersAddToAccessGroupPatch",
3499
+ post: {
3500
+ operationId: "acsUsersAddToAccessGroupPost",
3433
3501
  requestBody: {
3434
3502
  content: {
3435
3503
  "application/json": {
@@ -3456,10 +3524,11 @@ var openapi_default = {
3456
3524
  ],
3457
3525
  summary: "/acs/users/add_to_access_group",
3458
3526
  tags: [],
3459
- "x-fern-ignore": true
3527
+ "x-fern-sdk-group-name": ["acs", "users"],
3528
+ "x-fern-sdk-method-name": "add_to_access_group"
3460
3529
  },
3461
- post: {
3462
- operationId: "acsUsersAddToAccessGroupPost",
3530
+ put: {
3531
+ operationId: "acsUsersAddToAccessGroupPut",
3463
3532
  requestBody: {
3464
3533
  content: {
3465
3534
  "application/json": {
@@ -3486,8 +3555,7 @@ var openapi_default = {
3486
3555
  ],
3487
3556
  summary: "/acs/users/add_to_access_group",
3488
3557
  tags: [],
3489
- "x-fern-sdk-group-name": ["acs", "users"],
3490
- "x-fern-sdk-method-name": "add_to_access_group"
3558
+ "x-fern-ignore": true
3491
3559
  }
3492
3560
  },
3493
3561
  "/acs/users/create": {
@@ -5636,6 +5704,12 @@ var openapi_default = {
5636
5704
  "device.tampered",
5637
5705
  "device.low_battery",
5638
5706
  "device.battery_status_changed",
5707
+ "device.third_party_integration_detected",
5708
+ "device.third_party_integration_no_longer_detected",
5709
+ "device.salto.privacy_mode_activated",
5710
+ "device.salto.privacy_mode_deactivated",
5711
+ "device.connection_became_flaky",
5712
+ "device.connection_stabilized",
5639
5713
  "access_code.created",
5640
5714
  "access_code.changed",
5641
5715
  "access_code.scheduled_on_device",
@@ -5677,6 +5751,12 @@ var openapi_default = {
5677
5751
  "device.tampered",
5678
5752
  "device.low_battery",
5679
5753
  "device.battery_status_changed",
5754
+ "device.third_party_integration_detected",
5755
+ "device.third_party_integration_no_longer_detected",
5756
+ "device.salto.privacy_mode_activated",
5757
+ "device.salto.privacy_mode_deactivated",
5758
+ "device.connection_became_flaky",
5759
+ "device.connection_stabilized",
5680
5760
  "access_code.created",
5681
5761
  "access_code.changed",
5682
5762
  "access_code.scheduled_on_device",
@@ -6448,6 +6528,58 @@ var openapi_default = {
6448
6528
  }
6449
6529
  },
6450
6530
  "/noise_sensors/noise_thresholds/update": {
6531
+ patch: {
6532
+ operationId: "noiseSensorsNoiseThresholdsUpdatePatch",
6533
+ requestBody: {
6534
+ content: {
6535
+ "application/json": {
6536
+ schema: {
6537
+ properties: {
6538
+ device_id: { format: "uuid", type: "string" },
6539
+ ends_daily_at: { type: "string" },
6540
+ name: { type: "string" },
6541
+ noise_threshold_decibels: { type: "number" },
6542
+ noise_threshold_id: { format: "uuid", type: "string" },
6543
+ noise_threshold_nrs: { type: "number" },
6544
+ starts_daily_at: { type: "string" },
6545
+ sync: { default: false, type: "boolean" }
6546
+ },
6547
+ required: ["noise_threshold_id", "device_id"],
6548
+ type: "object"
6549
+ }
6550
+ }
6551
+ }
6552
+ },
6553
+ responses: {
6554
+ 200: {
6555
+ content: {
6556
+ "application/json": {
6557
+ schema: {
6558
+ properties: {
6559
+ action_attempt: {
6560
+ $ref: "#/components/schemas/action_attempt"
6561
+ },
6562
+ ok: { type: "boolean" }
6563
+ },
6564
+ required: ["action_attempt", "ok"],
6565
+ type: "object"
6566
+ }
6567
+ }
6568
+ },
6569
+ description: "OK"
6570
+ },
6571
+ 400: { description: "Bad Request" },
6572
+ 401: { description: "Unauthorized" }
6573
+ },
6574
+ security: [
6575
+ { access_token: [], seam_workspace: [] },
6576
+ { seam_client_session_token: [] },
6577
+ { client_session_token: [] }
6578
+ ],
6579
+ summary: "/noise_sensors/noise_thresholds/update",
6580
+ tags: ["/noise_sensors"],
6581
+ "x-fern-ignore": true
6582
+ },
6451
6583
  post: {
6452
6584
  operationId: "noiseSensorsNoiseThresholdsUpdatePost",
6453
6585
  requestBody: {
@@ -6863,6 +6995,73 @@ var openapi_default = {
6863
6995
  }
6864
6996
  },
6865
6997
  "/thermostats/climate_setting_schedules/update": {
6998
+ patch: {
6999
+ operationId: "thermostatsClimateSettingSchedulesUpdatePatch",
7000
+ requestBody: {
7001
+ content: {
7002
+ "application/json": {
7003
+ schema: {
7004
+ properties: {
7005
+ automatic_cooling_enabled: { type: "boolean" },
7006
+ automatic_heating_enabled: { type: "boolean" },
7007
+ climate_setting_schedule_id: {
7008
+ format: "uuid",
7009
+ type: "string"
7010
+ },
7011
+ cooling_set_point_celsius: { type: "number" },
7012
+ cooling_set_point_fahrenheit: { type: "number" },
7013
+ heating_set_point_celsius: { type: "number" },
7014
+ heating_set_point_fahrenheit: { type: "number" },
7015
+ hvac_mode_setting: {
7016
+ enum: ["off", "heat", "cool", "heat_cool"],
7017
+ type: "string"
7018
+ },
7019
+ manual_override_allowed: { type: "boolean" },
7020
+ name: { type: "string" },
7021
+ schedule_ends_at: { type: "string" },
7022
+ schedule_starts_at: { type: "string" },
7023
+ schedule_type: {
7024
+ default: "time_bound",
7025
+ enum: ["time_bound"],
7026
+ type: "string"
7027
+ }
7028
+ },
7029
+ required: ["climate_setting_schedule_id"],
7030
+ type: "object"
7031
+ }
7032
+ }
7033
+ }
7034
+ },
7035
+ responses: {
7036
+ 200: {
7037
+ content: {
7038
+ "application/json": {
7039
+ schema: {
7040
+ properties: {
7041
+ climate_setting_schedule: {
7042
+ $ref: "#/components/schemas/climate_setting_schedule"
7043
+ },
7044
+ ok: { type: "boolean" }
7045
+ },
7046
+ required: ["climate_setting_schedule", "ok"],
7047
+ type: "object"
7048
+ }
7049
+ }
7050
+ },
7051
+ description: "OK"
7052
+ },
7053
+ 400: { description: "Bad Request" },
7054
+ 401: { description: "Unauthorized" }
7055
+ },
7056
+ security: [
7057
+ { access_token: [], seam_workspace: [] },
7058
+ { seam_client_session_token: [] },
7059
+ { client_session_token: [] }
7060
+ ],
7061
+ summary: "/thermostats/climate_setting_schedules/update",
7062
+ tags: [],
7063
+ "x-fern-ignore": true
7064
+ },
6866
7065
  post: {
6867
7066
  operationId: "thermostatsClimateSettingSchedulesUpdatePost",
6868
7067
  requestBody: {
@@ -7464,6 +7663,62 @@ var openapi_default = {
7464
7663
  }
7465
7664
  },
7466
7665
  "/thermostats/update": {
7666
+ patch: {
7667
+ operationId: "thermostatsUpdatePatch",
7668
+ requestBody: {
7669
+ content: {
7670
+ "application/json": {
7671
+ schema: {
7672
+ properties: {
7673
+ default_climate_setting: {
7674
+ properties: {
7675
+ automatic_cooling_enabled: { type: "boolean" },
7676
+ automatic_heating_enabled: { type: "boolean" },
7677
+ cooling_set_point_celsius: { type: "number" },
7678
+ cooling_set_point_fahrenheit: { type: "number" },
7679
+ heating_set_point_celsius: { type: "number" },
7680
+ heating_set_point_fahrenheit: { type: "number" },
7681
+ hvac_mode_setting: {
7682
+ enum: ["off", "heat", "cool", "heat_cool"],
7683
+ type: "string"
7684
+ },
7685
+ manual_override_allowed: { type: "boolean" }
7686
+ },
7687
+ type: "object"
7688
+ },
7689
+ device_id: { format: "uuid", type: "string" }
7690
+ },
7691
+ required: ["device_id", "default_climate_setting"],
7692
+ type: "object"
7693
+ }
7694
+ }
7695
+ }
7696
+ },
7697
+ responses: {
7698
+ 200: {
7699
+ content: {
7700
+ "application/json": {
7701
+ schema: {
7702
+ properties: { ok: { type: "boolean" } },
7703
+ required: ["ok"],
7704
+ type: "object"
7705
+ }
7706
+ }
7707
+ },
7708
+ description: "OK"
7709
+ },
7710
+ 400: { description: "Bad Request" },
7711
+ 401: { description: "Unauthorized" }
7712
+ },
7713
+ security: [
7714
+ { access_token: [], seam_workspace: [] },
7715
+ { seam_client_session_token: [] },
7716
+ { client_session_token: [] }
7717
+ ],
7718
+ summary: "/thermostats/update",
7719
+ tags: [],
7720
+ "x-fern-ignore": true
7721
+ },
7467
7722
  post: {
7468
7723
  operationId: "thermostatsUpdatePost",
7469
7724
  requestBody: {
@@ -7692,6 +7947,39 @@ var openapi_default = {
7692
7947
  ],
7693
7948
  summary: "/webhooks/list",
7694
7949
  tags: ["/webhooks"],
7950
+ "x-fern-ignore": true
7951
+ },
7952
+ post: {
7953
+ operationId: "webhooksListPost",
7954
+ responses: {
7955
+ 200: {
7956
+ content: {
7957
+ "application/json": {
7958
+ schema: {
7959
+ properties: {
7960
+ ok: { type: "boolean" },
7961
+ webhooks: {
7962
+ items: { $ref: "#/components/schemas/webhook" },
7963
+ type: "array"
7964
+ }
7965
+ },
7966
+ required: ["webhooks", "ok"],
7967
+ type: "object"
7968
+ }
7969
+ }
7970
+ },
7971
+ description: "OK"
7972
+ },
7973
+ 400: { description: "Bad Request" },
7974
+ 401: { description: "Unauthorized" }
7975
+ },
7976
+ security: [
7977
+ { access_token: [], seam_workspace: [] },
7978
+ { seam_client_session_token: [] },
7979
+ { client_session_token: [] }
7980
+ ],
7981
+ summary: "/webhooks/list",
7982
+ tags: ["/webhooks"],
7695
7983
  "x-fern-sdk-group-name": ["webhooks"],
7696
7984
  "x-fern-sdk-method-name": "list",
7697
7985
  "x-fern-sdk-return-value": "webhooks"
@@ -7726,6 +8014,36 @@ var openapi_default = {
7726
8014
  ],
7727
8015
  summary: "/workspaces/get",
7728
8016
  tags: ["/workspaces"],
8017
+ "x-fern-ignore": true
8018
+ },
8019
+ post: {
8020
+ operationId: "workspacesGetPost",
8021
+ responses: {
8022
+ 200: {
8023
+ content: {
8024
+ "application/json": {
8025
+ schema: {
8026
+ properties: {
8027
+ ok: { type: "boolean" },
8028
+ workspace: { $ref: "#/components/schemas/workspace" }
8029
+ },
8030
+ required: ["ok"],
8031
+ type: "object"
8032
+ }
8033
+ }
8034
+ },
8035
+ description: "OK"
8036
+ },
8037
+ 400: { description: "Bad Request" },
8038
+ 401: { description: "Unauthorized" }
8039
+ },
8040
+ security: [
8041
+ { access_token: [], seam_workspace: [] },
8042
+ { seam_client_session_token: [] },
8043
+ { client_session_token: [] }
8044
+ ],
8045
+ summary: "/workspaces/get",
8046
+ tags: ["/workspaces"],
7729
8047
  "x-fern-sdk-group-name": ["workspaces"],
7730
8048
  "x-fern-sdk-method-name": "get",
7731
8049
  "x-fern-sdk-return-value": "workspace"
@@ -7763,6 +8081,39 @@ var openapi_default = {
7763
8081
  ],
7764
8082
  summary: "/workspaces/list",
7765
8083
  tags: ["/workspaces"],
8084
+ "x-fern-ignore": true
8085
+ },
8086
+ post: {
8087
+ operationId: "workspacesListPost",
8088
+ responses: {
8089
+ 200: {
8090
+ content: {
8091
+ "application/json": {
8092
+ schema: {
8093
+ properties: {
8094
+ ok: { type: "boolean" },
8095
+ workspaces: {
8096
+ items: { $ref: "#/components/schemas/workspace" },
8097
+ type: "array"
8098
+ }
8099
+ },
8100
+ required: ["workspaces", "ok"],
8101
+ type: "object"
8102
+ }
8103
+ }
8104
+ },
8105
+ description: "OK"
8106
+ },
8107
+ 400: { description: "Bad Request" },
8108
+ 401: { description: "Unauthorized" }
8109
+ },
8110
+ security: [
8111
+ { access_token: [], seam_workspace: [] },
8112
+ { seam_client_session_token: [] },
8113
+ { client_session_token: [] }
8114
+ ],
8115
+ summary: "/workspaces/list",
8116
+ tags: ["/workspaces"],
7766
8117
  "x-fern-sdk-group-name": ["workspaces"],
7767
8118
  "x-fern-sdk-method-name": "list",
7768
8119
  "x-fern-sdk-return-value": "workspace"