@seamapi/types 1.305.0 → 1.307.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 (30) hide show
  1. package/dist/connect.cjs +78 -28
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +271 -95
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +13 -13
  5. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +13 -13
  6. package/lib/seam/connect/models/action-attempts/scan-credential.js +7 -2
  7. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
  8. package/lib/seam/connect/models/devices/device-metadata.d.ts +23 -0
  9. package/lib/seam/connect/models/devices/device-metadata.js +5 -0
  10. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  11. package/lib/seam/connect/models/devices/device-provider.d.ts +1 -0
  12. package/lib/seam/connect/models/devices/device-provider.js +1 -0
  13. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  14. package/lib/seam/connect/models/devices/device-type.d.ts +1 -0
  15. package/lib/seam/connect/models/devices/device-type.js +1 -0
  16. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  17. package/lib/seam/connect/models/devices/device.d.ts +36 -3
  18. package/lib/seam/connect/models/devices/phone.d.ts +24 -1
  19. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +26 -3
  20. package/lib/seam/connect/openapi.d.ts +56 -2
  21. package/lib/seam/connect/openapi.js +44 -2
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +139 -74
  24. package/package.json +2 -2
  25. package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +7 -4
  26. package/src/lib/seam/connect/models/devices/device-metadata.ts +6 -0
  27. package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
  28. package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
  29. package/src/lib/seam/connect/openapi.ts +44 -2
  30. package/src/lib/seam/connect/route-types.ts +207 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.305.0",
3
+ "version": "1.307.0",
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.21.4"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.29.0",
95
+ "@seamapi/blueprint": "^0.30.0",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -25,16 +25,19 @@ const error = z.union([
25
25
  ])
26
26
 
27
27
  const warning = z.object({
28
- warning_code: z.literal('acs_credential_on_encoder_out_of_sync'),
28
+ warning_code: z.union([
29
+ z.literal('acs_credential_on_encoder_out_of_sync'),
30
+ z.literal('acs_credential_on_seam_not_found'),
31
+ ]),
29
32
  warning_message: z.string(),
30
33
  })
31
34
 
32
35
  const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
33
36
 
34
37
  const result = z.object({
35
- acs_credential_on_encoder: acs_credential_on_encoder.describe(
36
- 'Snapshot of credential data read from physical encoder.',
37
- ),
38
+ acs_credential_on_encoder: acs_credential_on_encoder
39
+ .nullable()
40
+ .describe('Snapshot of credential data read from physical encoder.'),
38
41
  acs_credential_on_seam: acs_credential_on_seam
39
42
  .nullable()
40
43
  .describe('Matching acs_credential currently encoded on this card.'),
@@ -266,6 +266,12 @@ export const device_metadata = z
266
266
  assa_abloy_vostio_metadata: z.object({
267
267
  encoder_name: z.string(),
268
268
  }),
269
+
270
+ tado_metadata: z.object({
271
+ serial_number: z.string(),
272
+ device_name: z.string(),
273
+ device_type: z.string(),
274
+ }),
269
275
  })
270
276
  .partial()
271
277
 
@@ -46,6 +46,7 @@ export const DEVICE_PROVIDERS = {
46
46
  AKILES: 'akiles',
47
47
  VOSTIO: 'assa_abloy_vostio',
48
48
  ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: 'assa_abloy_vostio_credential_service',
49
+ TADO: 'tado',
49
50
  } as const
50
51
 
51
52
  export type DeviceProviderName =
@@ -68,6 +68,7 @@ export const THERMOSTAT_DEVICE_TYPE = {
68
68
  ECOBEE_THERMOSTAT: 'ecobee_thermostat',
69
69
  NEST_THERMOSTAT: 'nest_thermostat',
70
70
  HONEYWELL_RESIDEO_THERMOSTAT: 'honeywell_resideo_thermostat',
71
+ TADO_THERMOSTAT: 'tado_thermostat',
71
72
  } as const
72
73
 
73
74
  type ThermostatDeviceTypeFromMapping =
@@ -1542,6 +1542,7 @@ export default {
1542
1542
  acs_credential_on_encoder: {
1543
1543
  description:
1544
1544
  'Snapshot of credential data read from physical encoder.',
1545
+ nullable: true,
1545
1546
  properties: {
1546
1547
  card_number: {
1547
1548
  description:
@@ -2229,7 +2230,10 @@ export default {
2229
2230
  items: {
2230
2231
  properties: {
2231
2232
  warning_code: {
2232
- enum: ['acs_credential_on_encoder_out_of_sync'],
2233
+ enum: [
2234
+ 'acs_credential_on_encoder_out_of_sync',
2235
+ 'acs_credential_on_seam_not_found',
2236
+ ],
2233
2237
  type: 'string',
2234
2238
  },
2235
2239
  warning_message: { type: 'string' },
@@ -4426,6 +4430,7 @@ export default {
4426
4430
  'ecobee_thermostat',
4427
4431
  'nest_thermostat',
4428
4432
  'honeywell_resideo_thermostat',
4433
+ 'tado_thermostat',
4429
4434
  ],
4430
4435
  type: 'string',
4431
4436
  },
@@ -5125,6 +5130,19 @@ export default {
5125
5130
  required: ['device_id', 'device_name'],
5126
5131
  type: 'object',
5127
5132
  },
5133
+ tado_metadata: {
5134
+ properties: {
5135
+ device_name: { type: 'string' },
5136
+ device_type: { type: 'string' },
5137
+ serial_number: { type: 'string' },
5138
+ },
5139
+ required: [
5140
+ 'serial_number',
5141
+ 'device_name',
5142
+ 'device_type',
5143
+ ],
5144
+ type: 'object',
5145
+ },
5128
5146
  tedee_metadata: {
5129
5147
  properties: {
5130
5148
  bridge_id: { format: 'float', type: 'number' },
@@ -5835,6 +5853,7 @@ export default {
5835
5853
  'akiles',
5836
5854
  'assa_abloy_vostio',
5837
5855
  'assa_abloy_vostio_credential_service',
5856
+ 'tado',
5838
5857
  ],
5839
5858
  type: 'string',
5840
5859
  },
@@ -6437,6 +6456,7 @@ export default {
6437
6456
  'ecobee_thermostat',
6438
6457
  'nest_thermostat',
6439
6458
  'honeywell_resideo_thermostat',
6459
+ 'tado_thermostat',
6440
6460
  ],
6441
6461
  type: 'string',
6442
6462
  },
@@ -13474,6 +13494,7 @@ export default {
13474
13494
  'akiles',
13475
13495
  'assa_abloy_vostio',
13476
13496
  'assa_abloy_vostio_credential_service',
13497
+ 'tado',
13477
13498
  'yale_access',
13478
13499
  'hid_cm',
13479
13500
  'google_nest',
@@ -14128,6 +14149,7 @@ export default {
14128
14149
  'ecobee_thermostat',
14129
14150
  'nest_thermostat',
14130
14151
  'honeywell_resideo_thermostat',
14152
+ 'tado_thermostat',
14131
14153
  ],
14132
14154
  type: 'string',
14133
14155
  },
@@ -14180,6 +14202,7 @@ export default {
14180
14202
  'ecobee_thermostat',
14181
14203
  'nest_thermostat',
14182
14204
  'honeywell_resideo_thermostat',
14205
+ 'tado_thermostat',
14183
14206
  ],
14184
14207
  type: 'string',
14185
14208
  },
@@ -14276,6 +14299,7 @@ export default {
14276
14299
  'tedee',
14277
14300
  'honeywell_resideo',
14278
14301
  'akiles',
14302
+ 'tado',
14279
14303
  ],
14280
14304
  type: 'string',
14281
14305
  },
@@ -14652,6 +14676,7 @@ export default {
14652
14676
  'ecobee_thermostat',
14653
14677
  'nest_thermostat',
14654
14678
  'honeywell_resideo_thermostat',
14679
+ 'tado_thermostat',
14655
14680
  ],
14656
14681
  type: 'string',
14657
14682
  },
@@ -14704,6 +14729,7 @@ export default {
14704
14729
  'ecobee_thermostat',
14705
14730
  'nest_thermostat',
14706
14731
  'honeywell_resideo_thermostat',
14732
+ 'tado_thermostat',
14707
14733
  ],
14708
14734
  type: 'string',
14709
14735
  },
@@ -14800,6 +14826,7 @@ export default {
14800
14826
  'tedee',
14801
14827
  'honeywell_resideo',
14802
14828
  'akiles',
14829
+ 'tado',
14803
14830
  ],
14804
14831
  type: 'string',
14805
14832
  },
@@ -15481,6 +15508,7 @@ export default {
15481
15508
  'ecobee_thermostat',
15482
15509
  'nest_thermostat',
15483
15510
  'honeywell_resideo_thermostat',
15511
+ 'tado_thermostat',
15484
15512
  ],
15485
15513
  type: 'string',
15486
15514
  },
@@ -15533,6 +15561,7 @@ export default {
15533
15561
  'ecobee_thermostat',
15534
15562
  'nest_thermostat',
15535
15563
  'honeywell_resideo_thermostat',
15564
+ 'tado_thermostat',
15536
15565
  ],
15537
15566
  type: 'string',
15538
15567
  },
@@ -15629,6 +15658,7 @@ export default {
15629
15658
  'tedee',
15630
15659
  'honeywell_resideo',
15631
15660
  'akiles',
15661
+ 'tado',
15632
15662
  ],
15633
15663
  type: 'string',
15634
15664
  },
@@ -15966,6 +15996,7 @@ export default {
15966
15996
  'ecobee_thermostat',
15967
15997
  'nest_thermostat',
15968
15998
  'honeywell_resideo_thermostat',
15999
+ 'tado_thermostat',
15969
16000
  ],
15970
16001
  type: 'string',
15971
16002
  },
@@ -16018,6 +16049,7 @@ export default {
16018
16049
  'ecobee_thermostat',
16019
16050
  'nest_thermostat',
16020
16051
  'honeywell_resideo_thermostat',
16052
+ 'tado_thermostat',
16021
16053
  ],
16022
16054
  type: 'string',
16023
16055
  },
@@ -16114,6 +16146,7 @@ export default {
16114
16146
  'tedee',
16115
16147
  'honeywell_resideo',
16116
16148
  'akiles',
16149
+ 'tado',
16117
16150
  ],
16118
16151
  type: 'string',
16119
16152
  },
@@ -17372,6 +17405,7 @@ export default {
17372
17405
  'ecobee_thermostat',
17373
17406
  'nest_thermostat',
17374
17407
  'honeywell_resideo_thermostat',
17408
+ 'tado_thermostat',
17375
17409
  ],
17376
17410
  type: 'string',
17377
17411
  },
@@ -17424,6 +17458,7 @@ export default {
17424
17458
  'ecobee_thermostat',
17425
17459
  'nest_thermostat',
17426
17460
  'honeywell_resideo_thermostat',
17461
+ 'tado_thermostat',
17427
17462
  ],
17428
17463
  type: 'string',
17429
17464
  },
@@ -17520,6 +17555,7 @@ export default {
17520
17555
  'tedee',
17521
17556
  'honeywell_resideo',
17522
17557
  'akiles',
17558
+ 'tado',
17523
17559
  ],
17524
17560
  type: 'string',
17525
17561
  },
@@ -20240,7 +20276,11 @@ export default {
20240
20276
  400: { description: 'Bad Request' },
20241
20277
  401: { description: 'Unauthorized' },
20242
20278
  },
20243
- security: [{ pat_without_workspace: [] }],
20279
+ security: [
20280
+ { pat_without_workspace: [] },
20281
+ { console_session: [] },
20282
+ { user_session_without_workspace: [] },
20283
+ ],
20244
20284
  summary: '/workspaces/create',
20245
20285
  tags: ['/workspaces'],
20246
20286
  'x-fern-sdk-group-name': ['workspaces'],
@@ -20349,6 +20389,7 @@ export default {
20349
20389
  { user_session_without_workspace: [] },
20350
20390
  { api_key: [] },
20351
20391
  { client_session: [] },
20392
+ { console_session: [] },
20352
20393
  ],
20353
20394
  summary: '/workspaces/list',
20354
20395
  tags: ['/workspaces'],
@@ -20386,6 +20427,7 @@ export default {
20386
20427
  { user_session_without_workspace: [] },
20387
20428
  { api_key: [] },
20388
20429
  { client_session: [] },
20430
+ { console_session: [] },
20389
20431
  ],
20390
20432
  summary: '/workspaces/list',
20391
20433
  tags: ['/workspaces'],