@seamapi/types 1.395.1 → 1.395.3

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 +57 -18
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +694 -403
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/access-grants/access-grant.d.ts +2 -2
  6. package/lib/seam/connect/models/access-grants/access-method.d.ts +2 -2
  7. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  8. package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +2 -2
  9. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.d.ts +4 -4
  10. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  11. package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
  12. package/lib/seam/connect/models/acs/acs-system.d.ts +2 -2
  13. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
  14. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -24
  15. package/lib/seam/connect/models/action-attempts/encode-access-method.d.ts +4 -4
  16. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  17. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
  18. package/lib/seam/connect/models/bridges/bridge-connected-system.d.ts +2 -2
  19. package/lib/seam/connect/models/bridges/bridge.d.ts +2 -2
  20. package/lib/seam/connect/models/client-sessions/client-session.d.ts +2 -2
  21. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -2
  22. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +102 -12
  23. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  24. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +25 -20
  25. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +25 -20
  26. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +2 -7
  27. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  28. package/lib/seam/connect/models/devices/device.d.ts +37 -30
  29. package/lib/seam/connect/models/devices/phone.d.ts +2 -2
  30. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +28 -23
  31. package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
  32. package/lib/seam/connect/models/events/access-grants.d.ts +20 -20
  33. package/lib/seam/connect/models/events/access-methods.d.ts +12 -12
  34. package/lib/seam/connect/models/events/acs/access-groups.d.ts +4 -4
  35. package/lib/seam/connect/models/events/acs/common.d.ts +2 -2
  36. package/lib/seam/connect/models/events/acs/credentials.d.ts +16 -16
  37. package/lib/seam/connect/models/events/acs/encoders.d.ts +8 -8
  38. package/lib/seam/connect/models/events/acs/entrances.d.ts +8 -8
  39. package/lib/seam/connect/models/events/acs/index.d.ts +28 -28
  40. package/lib/seam/connect/models/events/acs/systems.d.ts +12 -12
  41. package/lib/seam/connect/models/events/acs/users.d.ts +8 -8
  42. package/lib/seam/connect/models/events/action-attempts.d.ts +16 -16
  43. package/lib/seam/connect/models/events/client-sessions.d.ts +4 -4
  44. package/lib/seam/connect/models/events/common.d.ts +2 -2
  45. package/lib/seam/connect/models/events/connect-webviews.d.ts +8 -8
  46. package/lib/seam/connect/models/events/connected-accounts.d.ts +28 -28
  47. package/lib/seam/connect/models/events/devices.d.ts +132 -132
  48. package/lib/seam/connect/models/events/enrollment-automations.d.ts +4 -4
  49. package/lib/seam/connect/models/events/phones.d.ts +4 -4
  50. package/lib/seam/connect/models/events/seam-event.d.ts +176 -176
  51. package/lib/seam/connect/models/instant-keys/instant-key.d.ts +2 -2
  52. package/lib/seam/connect/models/locations/location.d.ts +2 -2
  53. package/lib/seam/connect/models/thermostats/thermostat-program.d.ts +6 -6
  54. package/lib/seam/connect/models/thermostats/thermostat-program.js +5 -5
  55. package/lib/seam/connect/models/thermostats/thermostat-program.js.map +1 -1
  56. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +6 -3
  57. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +5 -1
  58. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  59. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  60. package/lib/seam/connect/openapi.d.ts +35 -8
  61. package/lib/seam/connect/openapi.js +43 -9
  62. package/lib/seam/connect/openapi.js.map +1 -1
  63. package/lib/seam/connect/route-types.d.ts +136 -102
  64. package/package.json +2 -2
  65. package/src/lib/seam/connect/model-types.ts +2 -0
  66. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +4 -0
  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 -10
  71. package/src/lib/seam/connect/route-types.ts +617 -505
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.395.1",
3
+ "version": "1.395.3",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.24.0"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.41.0",
95
+ "@seamapi/blueprint": "^0.42.0",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -12,6 +12,8 @@ export type {
12
12
  Bridge,
13
13
  ClientSession,
14
14
  ConnectedAccount,
15
+ ConnectedAccountError,
16
+ ConnectedAccountWarning,
15
17
  ConnectWebview,
16
18
  CustomMetadata,
17
19
  Device,
@@ -76,6 +76,10 @@ export const connected_account_error = z.discriminatedUnion('error_code', [
76
76
  salto_ks_subscription_limit_exceeded,
77
77
  ])
78
78
 
79
+ export type ConnectedAccountError = z.infer<typeof connected_account_error>
80
+
81
+ export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>
82
+
79
83
  const connected_account_error_map = z.object({
80
84
  account_disconnected: account_disconnected.nullable().optional(),
81
85
  invalid_credentials: invalid_credentials.nullable().optional(),
@@ -43,13 +43,8 @@ export const thermostat_capability_properties = z
43
43
  available_climate_presets: z.array(climate_preset),
44
44
  fallback_climate_preset_key: z.string().min(1).nullable().default(null),
45
45
  active_thermostat_schedule: thermostat_schedule.nullable().default(null),
46
- thermostat_daily_programs: z
47
- .array(thermostat_daily_program)
48
- .nullable()
49
- .default(null),
50
- thermostat_weekly_program: thermostat_weekly_program
51
- .nullable()
52
- .default(null),
46
+ thermostat_daily_programs: z.array(thermostat_daily_program).optional(),
47
+ thermostat_weekly_program: thermostat_weekly_program.nullable().optional(),
53
48
  min_cooling_set_point_celsius: z.number(),
54
49
  min_cooling_set_point_fahrenheit: z.number(),
55
50
  max_cooling_set_point_celsius: z.number(),
@@ -22,11 +22,17 @@ export const thermostat_daily_program = z.object({
22
22
  device_id: z.string().uuid().describe('ID of the desired thermostat device.'),
23
23
  name: z
24
24
  .string()
25
- .optional()
25
+ .nullable()
26
26
  .describe('User-friendly name to identify the thermostat daily program.'),
27
27
  periods: z
28
28
  .array(thermostat_daily_program_period)
29
29
  .describe('Array of thermostat daily program periods.'),
30
+ workspace_id: z
31
+ .string()
32
+ .uuid()
33
+ .describe(
34
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program.',
35
+ ),
30
36
  created_at: z
31
37
  .string()
32
38
  .datetime()
@@ -36,10 +42,6 @@ export const thermostat_daily_program = z.object({
36
42
  })
37
43
 
38
44
  export const thermostat_weekly_program = z.object({
39
- device_id: z
40
- .string()
41
- .uuid()
42
- .describe('ID of the thermostat device the weekly program is for.'),
43
45
  monday_program_id: z
44
46
  .string()
45
47
  .uuid()
@@ -15,7 +15,7 @@ export const thermostat_schedule = z.object({
15
15
  ),
16
16
  name: z
17
17
  .string()
18
- .optional()
18
+ .nullable()
19
19
  .describe(
20
20
  'User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
21
21
  ),
@@ -51,6 +51,12 @@ export const thermostat_schedule = z.object({
51
51
  .describe(
52
52
  '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.',
53
53
  ),
54
+ workspace_id: z
55
+ .string()
56
+ .uuid()
57
+ .describe(
58
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule.',
59
+ ),
54
60
  created_at: z
55
61
  .string()
56
62
  .datetime()
@@ -8906,6 +8906,7 @@ export default {
8906
8906
  name: {
8907
8907
  description:
8908
8908
  'User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
8909
+ nullable: true,
8909
8910
  type: 'string',
8910
8911
  },
8911
8912
  starts_at: {
@@ -8920,13 +8921,21 @@ export default {
8920
8921
  format: 'uuid',
8921
8922
  type: 'string',
8922
8923
  },
8924
+ workspace_id: {
8925
+ description:
8926
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule.',
8927
+ format: 'uuid',
8928
+ type: 'string',
8929
+ },
8923
8930
  },
8924
8931
  required: [
8925
8932
  'thermostat_schedule_id',
8926
8933
  'device_id',
8934
+ 'name',
8927
8935
  'climate_preset_key',
8928
8936
  'starts_at',
8929
8937
  'ends_at',
8938
+ 'workspace_id',
8930
8939
  'created_at',
8931
8940
  'errors',
8932
8941
  ],
@@ -9304,7 +9313,6 @@ export default {
9304
9313
  type: 'object',
9305
9314
  },
9306
9315
  thermostat_daily_programs: {
9307
- default: null,
9308
9316
  items: {
9309
9317
  properties: {
9310
9318
  created_at: {
@@ -9322,6 +9330,7 @@ export default {
9322
9330
  name: {
9323
9331
  description:
9324
9332
  'User-friendly name to identify the thermostat daily program.',
9333
+ nullable: true,
9325
9334
  type: 'string',
9326
9335
  },
9327
9336
  periods: {
@@ -9356,20 +9365,26 @@ export default {
9356
9365
  format: 'uuid',
9357
9366
  type: 'string',
9358
9367
  },
9368
+ workspace_id: {
9369
+ description:
9370
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program.',
9371
+ format: 'uuid',
9372
+ type: 'string',
9373
+ },
9359
9374
  },
9360
9375
  required: [
9361
9376
  'thermostat_daily_program_id',
9362
9377
  'device_id',
9378
+ 'name',
9363
9379
  'periods',
9380
+ 'workspace_id',
9364
9381
  'created_at',
9365
9382
  ],
9366
9383
  type: 'object',
9367
9384
  },
9368
- nullable: true,
9369
9385
  type: 'array',
9370
9386
  },
9371
9387
  thermostat_weekly_program: {
9372
- default: null,
9373
9388
  nullable: true,
9374
9389
  properties: {
9375
9390
  created_at: {
@@ -9378,12 +9393,6 @@ export default {
9378
9393
  format: 'date-time',
9379
9394
  type: 'string',
9380
9395
  },
9381
- device_id: {
9382
- description:
9383
- 'ID of the thermostat device the weekly program is for.',
9384
- format: 'uuid',
9385
- type: 'string',
9386
- },
9387
9396
  friday_program_id: {
9388
9397
  description:
9389
9398
  'ID of the thermostat daily program to run on Fridays.',
@@ -9435,7 +9444,6 @@ export default {
9435
9444
  },
9436
9445
  },
9437
9446
  required: [
9438
- 'device_id',
9439
9447
  'monday_program_id',
9440
9448
  'tuesday_program_id',
9441
9449
  'wednesday_program_id',
@@ -15149,6 +15157,7 @@ export default {
15149
15157
  name: {
15150
15158
  description:
15151
15159
  'User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
15160
+ nullable: true,
15152
15161
  type: 'string',
15153
15162
  },
15154
15163
  starts_at: {
@@ -15163,13 +15172,21 @@ export default {
15163
15172
  format: 'uuid',
15164
15173
  type: 'string',
15165
15174
  },
15175
+ workspace_id: {
15176
+ description:
15177
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat schedule.',
15178
+ format: 'uuid',
15179
+ type: 'string',
15180
+ },
15166
15181
  },
15167
15182
  required: [
15168
15183
  'thermostat_schedule_id',
15169
15184
  'device_id',
15185
+ 'name',
15170
15186
  'climate_preset_key',
15171
15187
  'starts_at',
15172
15188
  'ends_at',
15189
+ 'workspace_id',
15173
15190
  'created_at',
15174
15191
  'errors',
15175
15192
  ],
@@ -25586,6 +25603,7 @@ export default {
25586
25603
  'x-fern-sdk-group-name': ['connected_accounts'],
25587
25604
  'x-fern-sdk-method-name': 'delete',
25588
25605
  'x-response-key': null,
25606
+ 'x-title': 'Delete a Connected Account',
25589
25607
  },
25590
25608
  },
25591
25609
  '/connected_accounts/get': {
@@ -25646,6 +25664,7 @@ export default {
25646
25664
  'x-fern-sdk-method-name': 'get',
25647
25665
  'x-fern-sdk-return-value': 'connected_account',
25648
25666
  'x-response-key': 'connected_account',
25667
+ 'x-title': 'Get a Connected Account',
25649
25668
  },
25650
25669
  },
25651
25670
  '/connected_accounts/list': {
@@ -25723,6 +25742,7 @@ export default {
25723
25742
  'x-fern-sdk-method-name': 'list',
25724
25743
  'x-fern-sdk-return-value': 'connected_accounts',
25725
25744
  'x-response-key': 'connected_accounts',
25745
+ 'x-title': 'List Connected Accounts',
25726
25746
  },
25727
25747
  },
25728
25748
  '/connected_accounts/update': {
@@ -25783,6 +25803,7 @@ export default {
25783
25803
  'x-fern-sdk-group-name': ['connected_accounts'],
25784
25804
  'x-fern-sdk-method-name': 'update',
25785
25805
  'x-response-key': null,
25806
+ 'x-title': 'Update a Connected Account',
25786
25807
  },
25787
25808
  },
25788
25809
  '/devices/delete': {
@@ -30091,42 +30112,49 @@ export default {
30091
30112
  description:
30092
30113
  'ID of the thermostat daily program to run on Fridays.',
30093
30114
  format: 'uuid',
30115
+ nullable: true,
30094
30116
  type: 'string',
30095
30117
  },
30096
30118
  monday_program_id: {
30097
30119
  description:
30098
30120
  'ID of the thermostat daily program to run on Mondays.',
30099
30121
  format: 'uuid',
30122
+ nullable: true,
30100
30123
  type: 'string',
30101
30124
  },
30102
30125
  saturday_program_id: {
30103
30126
  description:
30104
30127
  'ID of the thermostat daily program to run on Saturdays.',
30105
30128
  format: 'uuid',
30129
+ nullable: true,
30106
30130
  type: 'string',
30107
30131
  },
30108
30132
  sunday_program_id: {
30109
30133
  description:
30110
30134
  'ID of the thermostat daily program to run on Sundays.',
30111
30135
  format: 'uuid',
30136
+ nullable: true,
30112
30137
  type: 'string',
30113
30138
  },
30114
30139
  thursday_program_id: {
30115
30140
  description:
30116
30141
  'ID of the thermostat daily program to run on Thursdays.',
30117
30142
  format: 'uuid',
30143
+ nullable: true,
30118
30144
  type: 'string',
30119
30145
  },
30120
30146
  tuesday_program_id: {
30121
30147
  description:
30122
30148
  'ID of the thermostat daily program to run on Tuesdays.',
30123
30149
  format: 'uuid',
30150
+ nullable: true,
30124
30151
  type: 'string',
30125
30152
  },
30126
30153
  wednesday_program_id: {
30127
30154
  description:
30128
30155
  'ID of the thermostat daily program to run on Wednesdays.',
30129
30156
  format: 'uuid',
30157
+ nullable: true,
30130
30158
  type: 'string',
30131
30159
  },
30132
30160
  },
@@ -30489,6 +30517,7 @@ export default {
30489
30517
  name: {
30490
30518
  description:
30491
30519
  'User-friendly name to identify the thermostat daily program.',
30520
+ nullable: true,
30492
30521
  type: 'string',
30493
30522
  },
30494
30523
  periods: {
@@ -30519,11 +30548,19 @@ export default {
30519
30548
  format: 'uuid',
30520
30549
  type: 'string',
30521
30550
  },
30551
+ workspace_id: {
30552
+ description:
30553
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program.',
30554
+ format: 'uuid',
30555
+ type: 'string',
30556
+ },
30522
30557
  },
30523
30558
  required: [
30524
30559
  'thermostat_daily_program_id',
30525
30560
  'device_id',
30561
+ 'name',
30526
30562
  'periods',
30563
+ 'workspace_id',
30527
30564
  'created_at',
30528
30565
  ],
30529
30566
  type: 'object',