@seamapi/types 1.395.0 → 1.395.2

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 (71) hide show
  1. package/dist/connect.cjs +58 -80
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +705 -778
  4. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +0 -71
  5. package/lib/seam/connect/models/access-codes/managed-access-code.js +0 -9
  6. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  7. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +0 -26
  8. package/lib/seam/connect/models/access-grants/access-grant.d.ts +2 -2
  9. package/lib/seam/connect/models/access-grants/access-method.d.ts +2 -2
  10. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  11. package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +2 -2
  12. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.d.ts +4 -4
  13. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  14. package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
  15. package/lib/seam/connect/models/acs/acs-system.d.ts +2 -2
  16. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
  17. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -24
  18. package/lib/seam/connect/models/action-attempts/encode-access-method.d.ts +4 -4
  19. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  20. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
  21. package/lib/seam/connect/models/bridges/bridge-connected-system.d.ts +2 -2
  22. package/lib/seam/connect/models/bridges/bridge.d.ts +2 -2
  23. package/lib/seam/connect/models/client-sessions/client-session.d.ts +2 -2
  24. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -2
  25. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +25 -20
  26. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +25 -20
  27. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +2 -7
  28. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  29. package/lib/seam/connect/models/devices/device.d.ts +37 -30
  30. package/lib/seam/connect/models/devices/phone.d.ts +2 -2
  31. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +28 -23
  32. package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
  33. package/lib/seam/connect/models/events/access-grants.d.ts +20 -20
  34. package/lib/seam/connect/models/events/access-methods.d.ts +12 -12
  35. package/lib/seam/connect/models/events/acs/access-groups.d.ts +4 -4
  36. package/lib/seam/connect/models/events/acs/common.d.ts +2 -2
  37. package/lib/seam/connect/models/events/acs/credentials.d.ts +16 -16
  38. package/lib/seam/connect/models/events/acs/encoders.d.ts +8 -8
  39. package/lib/seam/connect/models/events/acs/entrances.d.ts +8 -8
  40. package/lib/seam/connect/models/events/acs/index.d.ts +28 -28
  41. package/lib/seam/connect/models/events/acs/systems.d.ts +12 -12
  42. package/lib/seam/connect/models/events/acs/users.d.ts +8 -8
  43. package/lib/seam/connect/models/events/action-attempts.d.ts +16 -16
  44. package/lib/seam/connect/models/events/client-sessions.d.ts +4 -4
  45. package/lib/seam/connect/models/events/common.d.ts +2 -2
  46. package/lib/seam/connect/models/events/connect-webviews.d.ts +8 -8
  47. package/lib/seam/connect/models/events/connected-accounts.d.ts +28 -28
  48. package/lib/seam/connect/models/events/devices.d.ts +132 -132
  49. package/lib/seam/connect/models/events/enrollment-automations.d.ts +4 -4
  50. package/lib/seam/connect/models/events/phones.d.ts +4 -4
  51. package/lib/seam/connect/models/events/seam-event.d.ts +176 -176
  52. package/lib/seam/connect/models/instant-keys/instant-key.d.ts +2 -2
  53. package/lib/seam/connect/models/locations/location.d.ts +2 -2
  54. package/lib/seam/connect/models/thermostats/thermostat-program.d.ts +6 -6
  55. package/lib/seam/connect/models/thermostats/thermostat-program.js +5 -5
  56. package/lib/seam/connect/models/thermostats/thermostat-program.js.map +1 -1
  57. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +6 -3
  58. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +5 -1
  59. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  60. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  61. package/lib/seam/connect/openapi.d.ts +35 -8
  62. package/lib/seam/connect/openapi.js +43 -65
  63. package/lib/seam/connect/openapi.js.map +1 -1
  64. package/lib/seam/connect/route-types.d.ts +136 -183
  65. package/package.json +2 -2
  66. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +0 -12
  67. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +2 -7
  68. package/src/lib/seam/connect/models/thermostats/thermostat-program.ts +7 -5
  69. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +7 -1
  70. package/src/lib/seam/connect/openapi.ts +47 -74
  71. package/src/lib/seam/connect/route-types.ts +617 -595
package/dist/connect.cjs CHANGED
@@ -165,14 +165,16 @@ var thermostat_daily_program_period = zod.z.object({
165
165
  var thermostat_daily_program = zod.z.object({
166
166
  thermostat_daily_program_id: zod.z.string().uuid().describe("ID of the thermostat daily program."),
167
167
  device_id: zod.z.string().uuid().describe("ID of the desired thermostat device."),
168
- name: zod.z.string().optional().describe("User-friendly name to identify the thermostat daily program."),
168
+ name: zod.z.string().nullable().describe("User-friendly name to identify the thermostat daily program."),
169
169
  periods: zod.z.array(thermostat_daily_program_period).describe("Array of thermostat daily program periods."),
170
+ workspace_id: zod.z.string().uuid().describe(
171
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program."
172
+ ),
170
173
  created_at: zod.z.string().datetime().describe(
171
174
  "Date and time at which the thermostat daily program was created."
172
175
  )
173
176
  });
174
177
  var thermostat_weekly_program = zod.z.object({
175
- device_id: zod.z.string().uuid().describe("ID of the thermostat device the weekly program is for."),
176
178
  monday_program_id: zod.z.string().uuid().nullable().describe("ID of the thermostat daily program to run on Mondays."),
177
179
  tuesday_program_id: zod.z.string().uuid().nullable().describe("ID of the thermostat daily program to run on Tuesdays."),
178
180
  wednesday_program_id: zod.z.string().uuid().nullable().describe("ID of the thermostat daily program to run on Wednesdays."),
@@ -191,7 +193,7 @@ var thermostat_schedule = zod.z.object({
191
193
  device_id: zod.z.string().uuid().describe(
192
194
  "ID of the desired [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) device."
193
195
  ),
194
- name: zod.z.string().optional().describe(
196
+ name: zod.z.string().nullable().describe(
195
197
  "User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules)."
196
198
  ),
197
199
  climate_preset_key: zod.z.string().describe(
@@ -209,6 +211,9 @@ var thermostat_schedule = zod.z.object({
209
211
  ends_at: zod.z.string().datetime().describe(
210
212
  "Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."
211
213
  ),
214
+ workspace_id: zod.z.string().uuid().describe(
215
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule."
216
+ ),
212
217
  created_at: zod.z.string().datetime().describe(
213
218
  "Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created."
214
219
  ),
@@ -262,8 +267,8 @@ var thermostat_capability_properties = zod.z.object({
262
267
  available_climate_presets: zod.z.array(climate_preset),
263
268
  fallback_climate_preset_key: zod.z.string().min(1).nullable().default(null),
264
269
  active_thermostat_schedule: thermostat_schedule.nullable().default(null),
265
- thermostat_daily_programs: zod.z.array(thermostat_daily_program).nullable().default(null),
266
- thermostat_weekly_program: thermostat_weekly_program.nullable().default(null),
270
+ thermostat_daily_programs: zod.z.array(thermostat_daily_program).optional(),
271
+ thermostat_weekly_program: thermostat_weekly_program.nullable().optional(),
267
272
  min_cooling_set_point_celsius: zod.z.number(),
268
273
  min_cooling_set_point_fahrenheit: zod.z.number(),
269
274
  max_cooling_set_point_celsius: zod.z.number(),
@@ -1470,9 +1475,6 @@ var kwikset_unable_to_confirm_deletion = common_access_code_error.extend({
1470
1475
  var igloohome_offline_access_code_no_variance_available = common_access_code_error.extend({
1471
1476
  error_code: zod.z.literal("igloohome_offline_access_code_no_variance_available").describe(error_code_description3)
1472
1477
  }).describe("Lock has reached maximum amount of codes.");
1473
- var schlage_lock_exceeds_maximum_number_of_access_codes = common_access_code_error.extend({
1474
- error_code: zod.z.literal("schlage_lock_exceeds_maximum_number_of_access_codes").describe(error_code_description3)
1475
- }).describe("Lock has reached maximum amount of codes.");
1476
1478
  var august_lock_invalid_code_length = common_access_code_error.extend({
1477
1479
  error_code: zod.z.literal("august_lock_invalid_code_length").describe(error_code_description3)
1478
1480
  }).describe("Invalid code length for August lock.");
@@ -1521,7 +1523,6 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
1521
1523
  igloohome_bridge_too_many_pending_jobs,
1522
1524
  igloohome_bridge_offline,
1523
1525
  igloohome_offline_access_code_no_variance_available,
1524
- schlage_lock_exceeds_maximum_number_of_access_codes,
1525
1526
  kwikset_unable_to_confirm_code,
1526
1527
  kwikset_unable_to_confirm_deletion,
1527
1528
  code_modified_external_to_seam_error,
@@ -1564,8 +1565,7 @@ zod.z.object({
1564
1565
  hubitat_no_free_positions_available: hubitat_no_free_positions_available.optional().nullable(),
1565
1566
  wyze_duplicate_code_name: wyze_duplicate_code_name.optional().nullable(),
1566
1567
  wyze_potential_duplicate_code: wyze_potential_duplicate_code.optional().nullable(),
1567
- dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level.optional().nullable(),
1568
- schlage_lock_exceeds_maximum_number_of_access_codes: schlage_lock_exceeds_maximum_number_of_access_codes.optional().nullable()
1568
+ dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level.optional().nullable()
1569
1569
  });
1570
1570
  var common_access_code_warning = zod.z.object({
1571
1571
  message: zod.z.string().describe(
@@ -4898,34 +4898,6 @@ var openapi_default = {
4898
4898
  required: ["message", "is_access_code_error", "error_code"],
4899
4899
  type: "object"
4900
4900
  },
4901
- {
4902
- description: "Lock has reached maximum amount of codes.",
4903
- properties: {
4904
- created_at: {
4905
- description: "Date and time at which Seam created the error.",
4906
- format: "date-time",
4907
- type: "string"
4908
- },
4909
- error_code: {
4910
- description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
4911
- enum: [
4912
- "schlage_lock_exceeds_maximum_number_of_access_codes"
4913
- ],
4914
- type: "string"
4915
- },
4916
- is_access_code_error: {
4917
- description: "Indicates that this is an access code error.",
4918
- enum: [true],
4919
- type: "boolean"
4920
- },
4921
- message: {
4922
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
4923
- type: "string"
4924
- }
4925
- },
4926
- required: ["message", "is_access_code_error", "error_code"],
4927
- type: "object"
4928
- },
4929
4901
  {
4930
4902
  description: "Unable to confirm that the access code is set on Kwikset device.",
4931
4903
  properties: {
@@ -12700,6 +12672,7 @@ var openapi_default = {
12700
12672
  },
12701
12673
  name: {
12702
12674
  description: "User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).",
12675
+ nullable: true,
12703
12676
  type: "string"
12704
12677
  },
12705
12678
  starts_at: {
@@ -12711,14 +12684,21 @@ var openapi_default = {
12711
12684
  description: "ID of the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).",
12712
12685
  format: "uuid",
12713
12686
  type: "string"
12687
+ },
12688
+ workspace_id: {
12689
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule.",
12690
+ format: "uuid",
12691
+ type: "string"
12714
12692
  }
12715
12693
  },
12716
12694
  required: [
12717
12695
  "thermostat_schedule_id",
12718
12696
  "device_id",
12697
+ "name",
12719
12698
  "climate_preset_key",
12720
12699
  "starts_at",
12721
12700
  "ends_at",
12701
+ "workspace_id",
12722
12702
  "created_at",
12723
12703
  "errors"
12724
12704
  ],
@@ -13052,7 +13032,6 @@ var openapi_default = {
13052
13032
  type: "object"
13053
13033
  },
13054
13034
  thermostat_daily_programs: {
13055
- default: null,
13056
13035
  items: {
13057
13036
  properties: {
13058
13037
  created_at: {
@@ -13067,6 +13046,7 @@ var openapi_default = {
13067
13046
  },
13068
13047
  name: {
13069
13048
  description: "User-friendly name to identify the thermostat daily program.",
13049
+ nullable: true,
13070
13050
  type: "string"
13071
13051
  },
13072
13052
  periods: {
@@ -13095,21 +13075,26 @@ var openapi_default = {
13095
13075
  description: "ID of the thermostat daily program.",
13096
13076
  format: "uuid",
13097
13077
  type: "string"
13078
+ },
13079
+ workspace_id: {
13080
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program.",
13081
+ format: "uuid",
13082
+ type: "string"
13098
13083
  }
13099
13084
  },
13100
13085
  required: [
13101
13086
  "thermostat_daily_program_id",
13102
13087
  "device_id",
13088
+ "name",
13103
13089
  "periods",
13090
+ "workspace_id",
13104
13091
  "created_at"
13105
13092
  ],
13106
13093
  type: "object"
13107
13094
  },
13108
- nullable: true,
13109
13095
  type: "array"
13110
13096
  },
13111
13097
  thermostat_weekly_program: {
13112
- default: null,
13113
13098
  nullable: true,
13114
13099
  properties: {
13115
13100
  created_at: {
@@ -13117,11 +13102,6 @@ var openapi_default = {
13117
13102
  format: "date-time",
13118
13103
  type: "string"
13119
13104
  },
13120
- device_id: {
13121
- description: "ID of the thermostat device the weekly program is for.",
13122
- format: "uuid",
13123
- type: "string"
13124
- },
13125
13105
  friday_program_id: {
13126
13106
  description: "ID of the thermostat daily program to run on Fridays.",
13127
13107
  format: "uuid",
@@ -13166,7 +13146,6 @@ var openapi_default = {
13166
13146
  }
13167
13147
  },
13168
13148
  required: [
13169
- "device_id",
13170
13149
  "monday_program_id",
13171
13150
  "tuesday_program_id",
13172
13151
  "wednesday_program_id",
@@ -18476,6 +18455,7 @@ var openapi_default = {
18476
18455
  },
18477
18456
  name: {
18478
18457
  description: "User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).",
18458
+ nullable: true,
18479
18459
  type: "string"
18480
18460
  },
18481
18461
  starts_at: {
@@ -18487,14 +18467,21 @@ var openapi_default = {
18487
18467
  description: "ID of the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).",
18488
18468
  format: "uuid",
18489
18469
  type: "string"
18470
+ },
18471
+ workspace_id: {
18472
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule.",
18473
+ format: "uuid",
18474
+ type: "string"
18490
18475
  }
18491
18476
  },
18492
18477
  required: [
18493
18478
  "thermostat_schedule_id",
18494
18479
  "device_id",
18480
+ "name",
18495
18481
  "climate_preset_key",
18496
18482
  "starts_at",
18497
18483
  "ends_at",
18484
+ "workspace_id",
18498
18485
  "created_at",
18499
18486
  "errors"
18500
18487
  ],
@@ -18825,34 +18812,6 @@ var openapi_default = {
18825
18812
  required: ["message", "is_access_code_error", "error_code"],
18826
18813
  type: "object"
18827
18814
  },
18828
- {
18829
- description: "Lock has reached maximum amount of codes.",
18830
- properties: {
18831
- created_at: {
18832
- description: "Date and time at which Seam created the error.",
18833
- format: "date-time",
18834
- type: "string"
18835
- },
18836
- error_code: {
18837
- description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
18838
- enum: [
18839
- "schlage_lock_exceeds_maximum_number_of_access_codes"
18840
- ],
18841
- type: "string"
18842
- },
18843
- is_access_code_error: {
18844
- description: "Indicates that this is an access code error.",
18845
- enum: [true],
18846
- type: "boolean"
18847
- },
18848
- message: {
18849
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
18850
- type: "string"
18851
- }
18852
- },
18853
- required: ["message", "is_access_code_error", "error_code"],
18854
- type: "object"
18855
- },
18856
18815
  {
18857
18816
  description: "Unable to confirm that the access code is set on Kwikset device.",
18858
18817
  properties: {
@@ -28292,7 +28251,8 @@ var openapi_default = {
28292
28251
  tags: ["/connected_accounts"],
28293
28252
  "x-fern-sdk-group-name": ["connected_accounts"],
28294
28253
  "x-fern-sdk-method-name": "delete",
28295
- "x-response-key": null
28254
+ "x-response-key": null,
28255
+ "x-title": "Delete a Connected Account"
28296
28256
  }
28297
28257
  },
28298
28258
  "/connected_accounts/get": {
@@ -28352,7 +28312,8 @@ var openapi_default = {
28352
28312
  "x-fern-sdk-group-name": ["connected_accounts"],
28353
28313
  "x-fern-sdk-method-name": "get",
28354
28314
  "x-fern-sdk-return-value": "connected_account",
28355
- "x-response-key": "connected_account"
28315
+ "x-response-key": "connected_account",
28316
+ "x-title": "Get a Connected Account"
28356
28317
  }
28357
28318
  },
28358
28319
  "/connected_accounts/list": {
@@ -28425,7 +28386,8 @@ var openapi_default = {
28425
28386
  "x-fern-sdk-group-name": ["connected_accounts"],
28426
28387
  "x-fern-sdk-method-name": "list",
28427
28388
  "x-fern-sdk-return-value": "connected_accounts",
28428
- "x-response-key": "connected_accounts"
28389
+ "x-response-key": "connected_accounts",
28390
+ "x-title": "List Connected Accounts"
28429
28391
  }
28430
28392
  },
28431
28393
  "/connected_accounts/update": {
@@ -28485,7 +28447,8 @@ var openapi_default = {
28485
28447
  tags: ["/connected_accounts"],
28486
28448
  "x-fern-sdk-group-name": ["connected_accounts"],
28487
28449
  "x-fern-sdk-method-name": "update",
28488
- "x-response-key": null
28450
+ "x-response-key": null,
28451
+ "x-title": "Update a Connected Account"
28489
28452
  }
28490
28453
  },
28491
28454
  "/devices/delete": {
@@ -32663,36 +32626,43 @@ var openapi_default = {
32663
32626
  friday_program_id: {
32664
32627
  description: "ID of the thermostat daily program to run on Fridays.",
32665
32628
  format: "uuid",
32629
+ nullable: true,
32666
32630
  type: "string"
32667
32631
  },
32668
32632
  monday_program_id: {
32669
32633
  description: "ID of the thermostat daily program to run on Mondays.",
32670
32634
  format: "uuid",
32635
+ nullable: true,
32671
32636
  type: "string"
32672
32637
  },
32673
32638
  saturday_program_id: {
32674
32639
  description: "ID of the thermostat daily program to run on Saturdays.",
32675
32640
  format: "uuid",
32641
+ nullable: true,
32676
32642
  type: "string"
32677
32643
  },
32678
32644
  sunday_program_id: {
32679
32645
  description: "ID of the thermostat daily program to run on Sundays.",
32680
32646
  format: "uuid",
32647
+ nullable: true,
32681
32648
  type: "string"
32682
32649
  },
32683
32650
  thursday_program_id: {
32684
32651
  description: "ID of the thermostat daily program to run on Thursdays.",
32685
32652
  format: "uuid",
32653
+ nullable: true,
32686
32654
  type: "string"
32687
32655
  },
32688
32656
  tuesday_program_id: {
32689
32657
  description: "ID of the thermostat daily program to run on Tuesdays.",
32690
32658
  format: "uuid",
32659
+ nullable: true,
32691
32660
  type: "string"
32692
32661
  },
32693
32662
  wednesday_program_id: {
32694
32663
  description: "ID of the thermostat daily program to run on Wednesdays.",
32695
32664
  format: "uuid",
32665
+ nullable: true,
32696
32666
  type: "string"
32697
32667
  }
32698
32668
  },
@@ -33035,6 +33005,7 @@ var openapi_default = {
33035
33005
  },
33036
33006
  name: {
33037
33007
  description: "User-friendly name to identify the thermostat daily program.",
33008
+ nullable: true,
33038
33009
  type: "string"
33039
33010
  },
33040
33011
  periods: {
@@ -33060,12 +33031,19 @@ var openapi_default = {
33060
33031
  description: "ID of the thermostat daily program.",
33061
33032
  format: "uuid",
33062
33033
  type: "string"
33034
+ },
33035
+ workspace_id: {
33036
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program.",
33037
+ format: "uuid",
33038
+ type: "string"
33063
33039
  }
33064
33040
  },
33065
33041
  required: [
33066
33042
  "thermostat_daily_program_id",
33067
33043
  "device_id",
33044
+ "name",
33068
33045
  "periods",
33046
+ "workspace_id",
33069
33047
  "created_at"
33070
33048
  ],
33071
33049
  type: "object"