@seamapi/types 1.243.0 → 1.244.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
@@ -1361,17 +1361,17 @@ var acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error.exten
1361
1361
  `Indicates that the user could not be subscribed on Salto KS because the subscription limit has been exceeded.`
1362
1362
  );
1363
1363
  var acs_users_failed_to_create_on_acs_system = common_acs_user_error.extend({
1364
- warning_code: zod.z.literal("failed_to_create_on_acs_system")
1364
+ error_code: zod.z.literal("failed_to_create_on_acs_system")
1365
1365
  }).describe(
1366
1366
  `Indicates that the user was not created on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`
1367
1367
  );
1368
1368
  var acs_users_failed_to_update_on_acs_system = common_acs_user_error.extend({
1369
- warning_code: zod.z.literal("failed_to_update_on_acs_system")
1369
+ error_code: zod.z.literal("failed_to_update_on_acs_system")
1370
1370
  }).describe(
1371
1371
  `Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`
1372
1372
  );
1373
1373
  var acs_users_failed_to_delete_on_acs_system = common_acs_user_error.extend({
1374
- warning_code: zod.z.literal("failed_to_delete_on_acs_system")
1374
+ error_code: zod.z.literal("failed_to_delete_on_acs_system")
1375
1375
  }).describe(
1376
1376
  `Indicates that the user was not deleted on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`
1377
1377
  );
@@ -1407,11 +1407,7 @@ zod.z.object({
1407
1407
  being_deleted: acs_users_being_deleted.optional().nullable(),
1408
1408
  salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable()
1409
1409
  });
1410
- var acs_users_warnings = zod.z.union([
1411
- acs_users_being_deleted,
1412
- acs_users_failed_to_update_on_acs_system,
1413
- acs_users_salto_ks_user_not_subscribed
1414
- ]).describe("Warning associated with the `acs_user`.");
1410
+ var acs_users_warnings = zod.z.union([acs_users_being_deleted, acs_users_salto_ks_user_not_subscribed]).describe("Warning associated with the `acs_user`.");
1415
1411
  var user_fields = zod.z.object({
1416
1412
  full_name: zod.z.string().optional(),
1417
1413
  email: zod.z.string().email().optional().describe(`
@@ -3109,16 +3105,16 @@ var openapi_default = {
3109
3105
  format: "date-time",
3110
3106
  type: "string"
3111
3107
  },
3112
- message: {
3113
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3108
+ error_code: {
3109
+ enum: ["failed_to_create_on_acs_system"],
3114
3110
  type: "string"
3115
3111
  },
3116
- warning_code: {
3117
- enum: ["failed_to_create_on_acs_system"],
3112
+ message: {
3113
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3118
3114
  type: "string"
3119
3115
  }
3120
3116
  },
3121
- required: ["created_at", "message", "warning_code"],
3117
+ required: ["created_at", "message", "error_code"],
3122
3118
  type: "object"
3123
3119
  },
3124
3120
  {
@@ -3129,16 +3125,16 @@ var openapi_default = {
3129
3125
  format: "date-time",
3130
3126
  type: "string"
3131
3127
  },
3132
- message: {
3133
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3128
+ error_code: {
3129
+ enum: ["failed_to_update_on_acs_system"],
3134
3130
  type: "string"
3135
3131
  },
3136
- warning_code: {
3137
- enum: ["failed_to_update_on_acs_system"],
3132
+ message: {
3133
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3138
3134
  type: "string"
3139
3135
  }
3140
3136
  },
3141
- required: ["created_at", "message", "warning_code"],
3137
+ required: ["created_at", "message", "error_code"],
3142
3138
  type: "object"
3143
3139
  },
3144
3140
  {
@@ -3149,16 +3145,16 @@ var openapi_default = {
3149
3145
  format: "date-time",
3150
3146
  type: "string"
3151
3147
  },
3152
- message: {
3153
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3148
+ error_code: {
3149
+ enum: ["failed_to_delete_on_acs_system"],
3154
3150
  type: "string"
3155
3151
  },
3156
- warning_code: {
3157
- enum: ["failed_to_delete_on_acs_system"],
3152
+ message: {
3153
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3158
3154
  type: "string"
3159
3155
  }
3160
3156
  },
3161
- required: ["created_at", "message", "warning_code"],
3157
+ required: ["created_at", "message", "error_code"],
3162
3158
  type: "object"
3163
3159
  }
3164
3160
  ]
@@ -3204,26 +3200,6 @@ var openapi_default = {
3204
3200
  required: ["created_at", "message", "warning_code"],
3205
3201
  type: "object"
3206
3202
  },
3207
- {
3208
- description: "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.",
3209
- properties: {
3210
- created_at: {
3211
- description: "Date and time at which Seam created the error.",
3212
- format: "date-time",
3213
- type: "string"
3214
- },
3215
- message: {
3216
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3217
- type: "string"
3218
- },
3219
- warning_code: {
3220
- enum: ["failed_to_update_on_acs_system"],
3221
- type: "string"
3222
- }
3223
- },
3224
- required: ["created_at", "message", "warning_code"],
3225
- type: "object"
3226
- },
3227
3203
  {
3228
3204
  description: "Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn\u2019t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.",
3229
3205
  properties: {
@@ -4465,6 +4441,33 @@ var openapi_default = {
4465
4441
  ],
4466
4442
  type: "object"
4467
4443
  },
4444
+ climate_preset: {
4445
+ properties: {
4446
+ can_delete: { type: "boolean" },
4447
+ can_edit: { type: "boolean" },
4448
+ climate_preset_key: { type: "string" },
4449
+ cooling_set_point_celsius: { format: "float", type: "number" },
4450
+ cooling_set_point_fahrenheit: { format: "float", type: "number" },
4451
+ display_name: { type: "string" },
4452
+ fan_mode_setting: { enum: ["auto", "on"], type: "string" },
4453
+ heating_set_point_celsius: { format: "float", type: "number" },
4454
+ heating_set_point_fahrenheit: { format: "float", type: "number" },
4455
+ hvac_mode_setting: {
4456
+ enum: ["off", "heat", "cool", "heat_cool"],
4457
+ type: "string"
4458
+ },
4459
+ manual_override_allowed: { type: "boolean" },
4460
+ name: { default: null, nullable: true, type: "string" }
4461
+ },
4462
+ required: [
4463
+ "climate_preset_key",
4464
+ "can_edit",
4465
+ "can_delete",
4466
+ "display_name",
4467
+ "manual_override_allowed"
4468
+ ],
4469
+ type: "object"
4470
+ },
4468
4471
  connect_webview: {
4469
4472
  properties: {
4470
4473
  accepted_devices: {
@@ -10310,19 +10313,19 @@ var openapi_default = {
10310
10313
  format: "date-time",
10311
10314
  type: "string"
10312
10315
  },
10313
- message: {
10314
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10316
+ error_code: {
10317
+ enum: ["failed_to_create_on_acs_system"],
10315
10318
  type: "string"
10316
10319
  },
10317
- warning_code: {
10318
- enum: ["failed_to_create_on_acs_system"],
10320
+ message: {
10321
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10319
10322
  type: "string"
10320
10323
  }
10321
10324
  },
10322
10325
  required: [
10323
10326
  "created_at",
10324
10327
  "message",
10325
- "warning_code"
10328
+ "error_code"
10326
10329
  ],
10327
10330
  type: "object"
10328
10331
  },
@@ -10334,19 +10337,19 @@ var openapi_default = {
10334
10337
  format: "date-time",
10335
10338
  type: "string"
10336
10339
  },
10337
- message: {
10338
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10340
+ error_code: {
10341
+ enum: ["failed_to_update_on_acs_system"],
10339
10342
  type: "string"
10340
10343
  },
10341
- warning_code: {
10342
- enum: ["failed_to_update_on_acs_system"],
10344
+ message: {
10345
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10343
10346
  type: "string"
10344
10347
  }
10345
10348
  },
10346
10349
  required: [
10347
10350
  "created_at",
10348
10351
  "message",
10349
- "warning_code"
10352
+ "error_code"
10350
10353
  ],
10351
10354
  type: "object"
10352
10355
  },
@@ -10358,19 +10361,19 @@ var openapi_default = {
10358
10361
  format: "date-time",
10359
10362
  type: "string"
10360
10363
  },
10361
- message: {
10362
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10364
+ error_code: {
10365
+ enum: ["failed_to_delete_on_acs_system"],
10363
10366
  type: "string"
10364
10367
  },
10365
- warning_code: {
10366
- enum: ["failed_to_delete_on_acs_system"],
10368
+ message: {
10369
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10367
10370
  type: "string"
10368
10371
  }
10369
10372
  },
10370
10373
  required: [
10371
10374
  "created_at",
10372
10375
  "message",
10373
- "warning_code"
10376
+ "error_code"
10374
10377
  ],
10375
10378
  type: "object"
10376
10379
  }
@@ -10438,30 +10441,6 @@ var openapi_default = {
10438
10441
  ],
10439
10442
  type: "object"
10440
10443
  },
10441
- {
10442
- description: "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.",
10443
- properties: {
10444
- created_at: {
10445
- description: "Date and time at which Seam created the error.",
10446
- format: "date-time",
10447
- type: "string"
10448
- },
10449
- message: {
10450
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10451
- type: "string"
10452
- },
10453
- warning_code: {
10454
- enum: ["failed_to_update_on_acs_system"],
10455
- type: "string"
10456
- }
10457
- },
10458
- required: [
10459
- "created_at",
10460
- "message",
10461
- "warning_code"
10462
- ],
10463
- type: "object"
10464
- },
10465
10444
  {
10466
10445
  description: "Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn\u2019t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.",
10467
10446
  properties: {
@@ -10629,19 +10608,19 @@ var openapi_default = {
10629
10608
  format: "date-time",
10630
10609
  type: "string"
10631
10610
  },
10632
- message: {
10633
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10611
+ error_code: {
10612
+ enum: ["failed_to_create_on_acs_system"],
10634
10613
  type: "string"
10635
10614
  },
10636
- warning_code: {
10637
- enum: ["failed_to_create_on_acs_system"],
10615
+ message: {
10616
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10638
10617
  type: "string"
10639
10618
  }
10640
10619
  },
10641
10620
  required: [
10642
10621
  "created_at",
10643
10622
  "message",
10644
- "warning_code"
10623
+ "error_code"
10645
10624
  ],
10646
10625
  type: "object"
10647
10626
  },
@@ -10653,19 +10632,19 @@ var openapi_default = {
10653
10632
  format: "date-time",
10654
10633
  type: "string"
10655
10634
  },
10656
- message: {
10657
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10635
+ error_code: {
10636
+ enum: ["failed_to_update_on_acs_system"],
10658
10637
  type: "string"
10659
10638
  },
10660
- warning_code: {
10661
- enum: ["failed_to_update_on_acs_system"],
10639
+ message: {
10640
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10662
10641
  type: "string"
10663
10642
  }
10664
10643
  },
10665
10644
  required: [
10666
10645
  "created_at",
10667
10646
  "message",
10668
- "warning_code"
10647
+ "error_code"
10669
10648
  ],
10670
10649
  type: "object"
10671
10650
  },
@@ -10677,19 +10656,19 @@ var openapi_default = {
10677
10656
  format: "date-time",
10678
10657
  type: "string"
10679
10658
  },
10680
- message: {
10681
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10659
+ error_code: {
10660
+ enum: ["failed_to_delete_on_acs_system"],
10682
10661
  type: "string"
10683
10662
  },
10684
- warning_code: {
10685
- enum: ["failed_to_delete_on_acs_system"],
10663
+ message: {
10664
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10686
10665
  type: "string"
10687
10666
  }
10688
10667
  },
10689
10668
  required: [
10690
10669
  "created_at",
10691
10670
  "message",
10692
- "warning_code"
10671
+ "error_code"
10693
10672
  ],
10694
10673
  type: "object"
10695
10674
  }
@@ -10757,30 +10736,6 @@ var openapi_default = {
10757
10736
  ],
10758
10737
  type: "object"
10759
10738
  },
10760
- {
10761
- description: "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.",
10762
- properties: {
10763
- created_at: {
10764
- description: "Date and time at which Seam created the error.",
10765
- format: "date-time",
10766
- type: "string"
10767
- },
10768
- message: {
10769
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10770
- type: "string"
10771
- },
10772
- warning_code: {
10773
- enum: ["failed_to_update_on_acs_system"],
10774
- type: "string"
10775
- }
10776
- },
10777
- required: [
10778
- "created_at",
10779
- "message",
10780
- "warning_code"
10781
- ],
10782
- type: "object"
10783
- },
10784
10739
  {
10785
10740
  description: "Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn\u2019t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.",
10786
10741
  properties: {
@@ -14911,46 +14866,7 @@ var openapi_default = {
14911
14866
  schema: {
14912
14867
  properties: {
14913
14868
  climate_preset: {
14914
- properties: {
14915
- can_delete: { type: "boolean" },
14916
- can_edit: { type: "boolean" },
14917
- climate_preset_key: { type: "string" },
14918
- cooling_set_point_celsius: {
14919
- format: "float",
14920
- type: "number"
14921
- },
14922
- cooling_set_point_fahrenheit: {
14923
- format: "float",
14924
- type: "number"
14925
- },
14926
- display_name: { type: "string" },
14927
- fan_mode_setting: {
14928
- enum: ["auto", "on"],
14929
- type: "string"
14930
- },
14931
- heating_set_point_celsius: {
14932
- format: "float",
14933
- type: "number"
14934
- },
14935
- heating_set_point_fahrenheit: {
14936
- format: "float",
14937
- type: "number"
14938
- },
14939
- hvac_mode_setting: {
14940
- enum: ["off", "heat", "cool", "heat_cool"],
14941
- type: "string"
14942
- },
14943
- manual_override_allowed: { type: "boolean" },
14944
- name: { default: null, nullable: true, type: "string" }
14945
- },
14946
- required: [
14947
- "climate_preset_key",
14948
- "can_edit",
14949
- "can_delete",
14950
- "display_name",
14951
- "manual_override_allowed"
14952
- ],
14953
- type: "object"
14869
+ $ref: "#/components/schemas/climate_preset"
14954
14870
  },
14955
14871
  ok: { type: "boolean" }
14956
14872
  },
@@ -15966,46 +15882,7 @@ var openapi_default = {
15966
15882
  schema: {
15967
15883
  properties: {
15968
15884
  climate_preset: {
15969
- properties: {
15970
- can_delete: { type: "boolean" },
15971
- can_edit: { type: "boolean" },
15972
- climate_preset_key: { type: "string" },
15973
- cooling_set_point_celsius: {
15974
- format: "float",
15975
- type: "number"
15976
- },
15977
- cooling_set_point_fahrenheit: {
15978
- format: "float",
15979
- type: "number"
15980
- },
15981
- display_name: { type: "string" },
15982
- fan_mode_setting: {
15983
- enum: ["auto", "on"],
15984
- type: "string"
15985
- },
15986
- heating_set_point_celsius: {
15987
- format: "float",
15988
- type: "number"
15989
- },
15990
- heating_set_point_fahrenheit: {
15991
- format: "float",
15992
- type: "number"
15993
- },
15994
- hvac_mode_setting: {
15995
- enum: ["off", "heat", "cool", "heat_cool"],
15996
- type: "string"
15997
- },
15998
- manual_override_allowed: { type: "boolean" },
15999
- name: { default: null, nullable: true, type: "string" }
16000
- },
16001
- required: [
16002
- "climate_preset_key",
16003
- "can_edit",
16004
- "can_delete",
16005
- "display_name",
16006
- "manual_override_allowed"
16007
- ],
16008
- type: "object"
15885
+ $ref: "#/components/schemas/climate_preset"
16009
15886
  },
16010
15887
  ok: { type: "boolean" }
16011
15888
  },
@@ -16078,46 +15955,7 @@ var openapi_default = {
16078
15955
  schema: {
16079
15956
  properties: {
16080
15957
  climate_preset: {
16081
- properties: {
16082
- can_delete: { type: "boolean" },
16083
- can_edit: { type: "boolean" },
16084
- climate_preset_key: { type: "string" },
16085
- cooling_set_point_celsius: {
16086
- format: "float",
16087
- type: "number"
16088
- },
16089
- cooling_set_point_fahrenheit: {
16090
- format: "float",
16091
- type: "number"
16092
- },
16093
- display_name: { type: "string" },
16094
- fan_mode_setting: {
16095
- enum: ["auto", "on"],
16096
- type: "string"
16097
- },
16098
- heating_set_point_celsius: {
16099
- format: "float",
16100
- type: "number"
16101
- },
16102
- heating_set_point_fahrenheit: {
16103
- format: "float",
16104
- type: "number"
16105
- },
16106
- hvac_mode_setting: {
16107
- enum: ["off", "heat", "cool", "heat_cool"],
16108
- type: "string"
16109
- },
16110
- manual_override_allowed: { type: "boolean" },
16111
- name: { default: null, nullable: true, type: "string" }
16112
- },
16113
- required: [
16114
- "climate_preset_key",
16115
- "can_edit",
16116
- "can_delete",
16117
- "display_name",
16118
- "manual_override_allowed"
16119
- ],
16120
- type: "object"
15958
+ $ref: "#/components/schemas/climate_preset"
16121
15959
  },
16122
15960
  ok: { type: "boolean" }
16123
15961
  },