@seamapi/types 1.207.0 → 1.209.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.207.0",
3
+ "version": "1.209.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,6 +13,27 @@ export const acs_user_external_type = z.enum([
13
13
 
14
14
  export type AcsUserExternalType = z.infer<typeof acs_user_external_type>
15
15
 
16
+ const common_acs_users_warning = z.object({
17
+ created_at: z.string().datetime(),
18
+ message: z.string(),
19
+ })
20
+
21
+ const acs_users_being_deleted = common_acs_users_warning.extend({
22
+ warning_code: z.literal('being_deleted'),
23
+ })
24
+
25
+ export const acs_users_warning_map = z.object({
26
+ being_deleted: acs_users_being_deleted.optional().nullable(),
27
+ })
28
+
29
+ export const acs_users_warning =
30
+ // TODO: once we have more than one warning we should use z.union
31
+ // z.union([
32
+ acs_users_being_deleted
33
+ // ])
34
+
35
+ export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
36
+
16
37
  const user_fields = z.object({
17
38
  full_name: z.string().optional(),
18
39
  email: z.string().email().optional().describe(`
@@ -45,6 +66,7 @@ export const acs_user = z
45
66
  .datetime()
46
67
  .optional(),
47
68
  is_latest_desired_state_synced_with_provider: z.boolean().optional(),
69
+ warnings: z.array(acs_users_warning),
48
70
  })
49
71
  .merge(user_fields)
50
72
 
@@ -657,6 +657,18 @@ export default {
657
657
  user_identity_full_name: { nullable: true, type: 'string' },
658
658
  user_identity_id: { type: 'string' },
659
659
  user_identity_phone_number: { nullable: true, type: 'string' },
660
+ warnings: {
661
+ items: {
662
+ properties: {
663
+ created_at: { format: 'date-time', type: 'string' },
664
+ message: { type: 'string' },
665
+ warning_code: { enum: ['being_deleted'], type: 'string' },
666
+ },
667
+ required: ['created_at', 'message', 'warning_code'],
668
+ type: 'object',
669
+ },
670
+ type: 'array',
671
+ },
660
672
  workspace_id: { format: 'uuid', type: 'string' },
661
673
  },
662
674
  required: [
@@ -666,6 +678,7 @@ export default {
666
678
  'created_at',
667
679
  'display_name',
668
680
  'is_suspended',
681
+ 'warnings',
669
682
  ],
670
683
  type: 'object',
671
684
  },
@@ -10337,6 +10350,254 @@ export default {
10337
10350
  'x-fern-sdk-return-value': 'networks',
10338
10351
  },
10339
10352
  },
10353
+ '/noise_sensors/list': {
10354
+ post: {
10355
+ operationId: 'noiseSensorsListPost',
10356
+ requestBody: {
10357
+ content: {
10358
+ 'application/json': {
10359
+ schema: {
10360
+ properties: {
10361
+ connect_webview_id: { format: 'uuid', type: 'string' },
10362
+ connected_account_id: {
10363
+ description:
10364
+ 'List all devices owned by this connected account',
10365
+ format: 'uuid',
10366
+ type: 'string',
10367
+ },
10368
+ connected_account_ids: {
10369
+ items: { format: 'uuid', type: 'string' },
10370
+ type: 'array',
10371
+ },
10372
+ created_before: { format: 'date-time', type: 'string' },
10373
+ custom_metadata_has: {
10374
+ additionalProperties: {
10375
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
10376
+ },
10377
+ type: 'object',
10378
+ },
10379
+ device_ids: {
10380
+ items: { format: 'uuid', type: 'string' },
10381
+ type: 'array',
10382
+ },
10383
+ device_type: {
10384
+ oneOf: [
10385
+ {
10386
+ enum: [
10387
+ 'akuvox_lock',
10388
+ 'august_lock',
10389
+ 'brivo_access_point',
10390
+ 'butterflymx_panel',
10391
+ 'avigilon_alta_entry',
10392
+ 'doorking_lock',
10393
+ 'genie_door',
10394
+ 'igloo_lock',
10395
+ 'linear_lock',
10396
+ 'lockly_lock',
10397
+ 'kwikset_lock',
10398
+ 'nuki_lock',
10399
+ 'salto_lock',
10400
+ 'schlage_lock',
10401
+ 'seam_relay',
10402
+ 'smartthings_lock',
10403
+ 'wyze_lock',
10404
+ 'yale_lock',
10405
+ 'two_n_intercom',
10406
+ 'controlbyweb_device',
10407
+ 'ttlock_lock',
10408
+ 'igloohome_lock',
10409
+ 'hubitat_lock',
10410
+ 'four_suites_door',
10411
+ 'dormakaba_oracode_door',
10412
+ 'tedee_lock',
10413
+ ],
10414
+ type: 'string',
10415
+ },
10416
+ {
10417
+ enum: ['noiseaware_activity_zone', 'minut_sensor'],
10418
+ type: 'string',
10419
+ },
10420
+ {
10421
+ enum: [
10422
+ 'ecobee_thermostat',
10423
+ 'nest_thermostat',
10424
+ 'honeywell_resideo_thermostat',
10425
+ ],
10426
+ type: 'string',
10427
+ },
10428
+ { enum: ['ios_phone', 'android_phone'], type: 'string' },
10429
+ ],
10430
+ },
10431
+ device_types: {
10432
+ items: {
10433
+ oneOf: [
10434
+ {
10435
+ enum: [
10436
+ 'akuvox_lock',
10437
+ 'august_lock',
10438
+ 'brivo_access_point',
10439
+ 'butterflymx_panel',
10440
+ 'avigilon_alta_entry',
10441
+ 'doorking_lock',
10442
+ 'genie_door',
10443
+ 'igloo_lock',
10444
+ 'linear_lock',
10445
+ 'lockly_lock',
10446
+ 'kwikset_lock',
10447
+ 'nuki_lock',
10448
+ 'salto_lock',
10449
+ 'schlage_lock',
10450
+ 'seam_relay',
10451
+ 'smartthings_lock',
10452
+ 'wyze_lock',
10453
+ 'yale_lock',
10454
+ 'two_n_intercom',
10455
+ 'controlbyweb_device',
10456
+ 'ttlock_lock',
10457
+ 'igloohome_lock',
10458
+ 'hubitat_lock',
10459
+ 'four_suites_door',
10460
+ 'dormakaba_oracode_door',
10461
+ 'tedee_lock',
10462
+ ],
10463
+ type: 'string',
10464
+ },
10465
+ {
10466
+ enum: ['noiseaware_activity_zone', 'minut_sensor'],
10467
+ type: 'string',
10468
+ },
10469
+ {
10470
+ enum: [
10471
+ 'ecobee_thermostat',
10472
+ 'nest_thermostat',
10473
+ 'honeywell_resideo_thermostat',
10474
+ ],
10475
+ type: 'string',
10476
+ },
10477
+ {
10478
+ enum: ['ios_phone', 'android_phone'],
10479
+ type: 'string',
10480
+ },
10481
+ ],
10482
+ },
10483
+ type: 'array',
10484
+ },
10485
+ exclude_if: {
10486
+ items: {
10487
+ enum: [
10488
+ 'can_remotely_unlock',
10489
+ 'can_remotely_lock',
10490
+ 'can_program_offline_access_codes',
10491
+ 'can_program_online_access_codes',
10492
+ 'can_simulate_removal',
10493
+ 'can_simulate_connection',
10494
+ 'can_simulate_disconnection',
10495
+ ],
10496
+ type: 'string',
10497
+ },
10498
+ type: 'array',
10499
+ },
10500
+ include_if: {
10501
+ items: {
10502
+ enum: [
10503
+ 'can_remotely_unlock',
10504
+ 'can_remotely_lock',
10505
+ 'can_program_offline_access_codes',
10506
+ 'can_program_online_access_codes',
10507
+ 'can_simulate_removal',
10508
+ 'can_simulate_connection',
10509
+ 'can_simulate_disconnection',
10510
+ ],
10511
+ type: 'string',
10512
+ },
10513
+ type: 'array',
10514
+ },
10515
+ limit: { default: 500, format: 'float', type: 'number' },
10516
+ manufacturer: {
10517
+ enum: [
10518
+ 'akuvox',
10519
+ 'august',
10520
+ 'avigilon_alta',
10521
+ 'brivo',
10522
+ 'butterflymx',
10523
+ 'doorking',
10524
+ 'four_suites',
10525
+ 'genie',
10526
+ 'igloo',
10527
+ 'keywe',
10528
+ 'kwikset',
10529
+ 'linear',
10530
+ 'lockly',
10531
+ 'nuki',
10532
+ 'philia',
10533
+ 'salto',
10534
+ 'samsung',
10535
+ 'schlage',
10536
+ 'seam',
10537
+ 'unknown',
10538
+ 'wyze',
10539
+ 'yale',
10540
+ 'minut',
10541
+ 'two_n',
10542
+ 'ttlock',
10543
+ 'nest',
10544
+ 'igloohome',
10545
+ 'ecobee',
10546
+ 'hubitat',
10547
+ 'controlbyweb',
10548
+ 'smartthings',
10549
+ 'dormakaba_oracode',
10550
+ 'tedee',
10551
+ 'honeywell_resideo',
10552
+ ],
10553
+ type: 'string',
10554
+ },
10555
+ user_identifier_key: { type: 'string' },
10556
+ },
10557
+ type: 'object',
10558
+ },
10559
+ },
10560
+ },
10561
+ },
10562
+ responses: {
10563
+ 200: {
10564
+ content: {
10565
+ 'application/json': {
10566
+ schema: {
10567
+ properties: {
10568
+ devices: {
10569
+ items: { $ref: '#/components/schemas/device' },
10570
+ type: 'array',
10571
+ },
10572
+ noise_sensors: {
10573
+ items: { $ref: '#/components/schemas/device' },
10574
+ type: 'array',
10575
+ },
10576
+ ok: { type: 'boolean' },
10577
+ },
10578
+ required: ['noise_sensors', 'devices', 'ok'],
10579
+ type: 'object',
10580
+ },
10581
+ },
10582
+ },
10583
+ description: 'OK',
10584
+ },
10585
+ 400: { description: 'Bad Request' },
10586
+ 401: { description: 'Unauthorized' },
10587
+ },
10588
+ security: [
10589
+ { client_session: [] },
10590
+ { pat_with_workspace: [] },
10591
+ { console_session: [] },
10592
+ { api_key: [] },
10593
+ ],
10594
+ summary: '/noise_sensors/list',
10595
+ tags: ['/noise_sensors'],
10596
+ 'x-fern-sdk-group-name': ['noise_sensors'],
10597
+ 'x-fern-sdk-method-name': 'list',
10598
+ 'x-fern-sdk-return-value': 'devices',
10599
+ },
10600
+ },
10340
10601
  '/noise_sensors/noise_thresholds/create': {
10341
10602
  post: {
10342
10603
  operationId: 'noiseSensorsNoiseThresholdsCreatePost',