@seamapi/types 1.50.0 → 1.52.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.
@@ -490,6 +490,8 @@ export default {
490
490
  device: {
491
491
  properties: {
492
492
  capabilities_supported: {
493
+ description:
494
+ 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
493
495
  items: {
494
496
  enum: [
495
497
  'access_code',
@@ -502,10 +504,25 @@ export default {
502
504
  },
503
505
  type: 'array',
504
506
  },
505
- connected_account_id: { format: 'uuid', type: 'string' },
506
- created_at: { format: 'date-time', type: 'string' },
507
- device_id: { format: 'uuid', type: 'string' },
507
+ connected_account_id: {
508
+ description:
509
+ 'Unique identifier for the account associated with the device.',
510
+ format: 'uuid',
511
+ type: 'string',
512
+ },
513
+ created_at: {
514
+ description:
515
+ 'Date and time at which the device object was created.',
516
+ format: 'date-time',
517
+ type: 'string',
518
+ },
519
+ device_id: {
520
+ description: 'Unique identifier for the device.',
521
+ format: 'uuid',
522
+ type: 'string',
523
+ },
508
524
  device_type: {
525
+ description: 'Type of the device.',
509
526
  oneOf: [
510
527
  {
511
528
  enum: [
@@ -548,6 +565,8 @@ export default {
548
565
  ],
549
566
  },
550
567
  errors: {
568
+ description:
569
+ 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
551
570
  items: {
552
571
  properties: {
553
572
  error_code: { type: 'string' },
@@ -558,12 +577,23 @@ export default {
558
577
  },
559
578
  type: 'array',
560
579
  },
561
- is_managed: { enum: [true], type: 'boolean' },
580
+ is_managed: {
581
+ description: 'Indicates whether Seam manages the device.',
582
+ enum: [true],
583
+ type: 'boolean',
584
+ },
562
585
  location: {
586
+ description: 'Location information for the device.',
563
587
  nullable: true,
564
588
  properties: {
565
- location_name: { type: 'string' },
566
- timezone: { type: 'string' },
589
+ location_name: {
590
+ description: 'Name of the device location.',
591
+ type: 'string',
592
+ },
593
+ timezone: {
594
+ description: 'Time zone of the device location.',
595
+ type: 'string',
596
+ },
567
597
  },
568
598
  type: 'object',
569
599
  },
@@ -574,6 +604,8 @@ export default {
574
604
  {
575
605
  properties: {
576
606
  battery: {
607
+ description:
608
+ 'Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage.',
577
609
  properties: {
578
610
  level: { maximum: 1, minimum: 0, type: 'number' },
579
611
  status: {
@@ -584,43 +616,92 @@ export default {
584
616
  required: ['level', 'status'],
585
617
  type: 'object',
586
618
  },
587
- battery_level: { maximum: 1, minimum: 0, type: 'number' },
588
- has_direct_power: { type: 'boolean' },
589
- image_alt_text: { type: 'string' },
590
- image_url: { format: 'uri', type: 'string' },
591
- manufacturer: { type: 'string' },
619
+ battery_level: {
620
+ description:
621
+ 'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.',
622
+ maximum: 1,
623
+ minimum: 0,
624
+ type: 'number',
625
+ },
626
+ has_direct_power: {
627
+ description:
628
+ 'Indicates whether the device has direct power.',
629
+ type: 'boolean',
630
+ },
631
+ image_alt_text: {
632
+ description: 'Alt text for the device image.',
633
+ type: 'string',
634
+ },
635
+ image_url: {
636
+ description: 'Image URL for the device.',
637
+ format: 'uri',
638
+ type: 'string',
639
+ },
640
+ manufacturer: {
641
+ description: 'Manufacturer of the device.',
642
+ type: 'string',
643
+ },
592
644
  model: {
593
645
  properties: {
594
- accessory_keypad_supported: { type: 'boolean' },
595
- display_name: { type: 'string' },
596
- manufacturer_display_name: { type: 'string' },
597
- offline_access_codes_supported: { type: 'boolean' },
598
- online_access_codes_supported: { type: 'boolean' },
646
+ accessory_keypad_supported: {
647
+ description:
648
+ 'Indicates whether the device supports an accessory keypad.',
649
+ type: 'boolean',
650
+ },
651
+ display_name: {
652
+ description: 'Display name of the device model.',
653
+ type: 'string',
654
+ },
655
+ manufacturer_display_name: {
656
+ description:
657
+ 'Display name that corresponds to the manufacturer-specific terminology for the device.',
658
+ type: 'string',
659
+ },
660
+ offline_access_codes_supported: {
661
+ description:
662
+ 'Indicates whether the device supports offline access codes.',
663
+ type: 'boolean',
664
+ },
665
+ online_access_codes_supported: {
666
+ description:
667
+ 'Indicates whether the device supports online access codes.',
668
+ type: 'boolean',
669
+ },
599
670
  },
600
671
  required: ['display_name', 'manufacturer_display_name'],
601
672
  type: 'object',
602
673
  },
603
- name: { type: 'string' },
674
+ name: {
675
+ description:
676
+ 'Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
677
+ type: 'string',
678
+ },
604
679
  offline_access_codes_enabled: {
605
680
  description:
606
- 'Currently possible to use offline access codes',
681
+ 'Indicates whether it is currently possible to use offline access codes for the device.',
682
+ type: 'boolean',
683
+ },
684
+ online: {
685
+ description: 'Indicates whether the device is online.',
607
686
  type: 'boolean',
608
687
  },
609
- online: { type: 'boolean' },
610
688
  online_access_codes_enabled: {
611
689
  description:
612
- 'Currently possible to use online access codes',
690
+ 'Indicates whether it is currently possible to use online access codes for the device.',
613
691
  type: 'boolean',
614
692
  },
615
- serial_number: { type: 'string' },
693
+ serial_number: {
694
+ description: 'Serial number of the device.',
695
+ type: 'string',
696
+ },
616
697
  supports_accessory_keypad: {
617
698
  description:
618
- 'Deprecated: use model.offline_access_codes_enabled.',
699
+ 'Deprecated: Use model.offline_access_codes_enabled.',
619
700
  type: 'boolean',
620
701
  },
621
702
  supports_offline_access_codes: {
622
703
  description:
623
- 'Deprecated: use model.accessory_keypad_supported.',
704
+ 'Deprecated: Use model.accessory_keypad_supported.',
624
705
  type: 'boolean',
625
706
  },
626
707
  },
@@ -1433,8 +1514,11 @@ export default {
1433
1514
  ],
1434
1515
  },
1435
1516
  ],
1517
+ description: 'Properties of the device.',
1436
1518
  },
1437
1519
  warnings: {
1520
+ description:
1521
+ 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
1438
1522
  items: {
1439
1523
  properties: {
1440
1524
  message: { type: 'string' },
@@ -1445,7 +1529,12 @@ export default {
1445
1529
  },
1446
1530
  type: 'array',
1447
1531
  },
1448
- workspace_id: { format: 'uuid', type: 'string' },
1532
+ workspace_id: {
1533
+ description:
1534
+ 'Unique identifier for the Seam workspace associated with the device.',
1535
+ format: 'uuid',
1536
+ type: 'string',
1537
+ },
1449
1538
  },
1450
1539
  required: [
1451
1540
  'device_id',
@@ -1605,6 +1694,8 @@ export default {
1605
1694
  unmanaged_device: {
1606
1695
  properties: {
1607
1696
  capabilities_supported: {
1697
+ description:
1698
+ 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
1608
1699
  items: {
1609
1700
  enum: [
1610
1701
  'access_code',
@@ -1617,10 +1708,25 @@ export default {
1617
1708
  },
1618
1709
  type: 'array',
1619
1710
  },
1620
- connected_account_id: { format: 'uuid', type: 'string' },
1621
- created_at: { format: 'date-time', type: 'string' },
1622
- device_id: { format: 'uuid', type: 'string' },
1711
+ connected_account_id: {
1712
+ description:
1713
+ 'Unique identifier for the account associated with the device.',
1714
+ format: 'uuid',
1715
+ type: 'string',
1716
+ },
1717
+ created_at: {
1718
+ description:
1719
+ 'Date and time at which the device object was created.',
1720
+ format: 'date-time',
1721
+ type: 'string',
1722
+ },
1723
+ device_id: {
1724
+ description: 'Unique identifier for the device.',
1725
+ format: 'uuid',
1726
+ type: 'string',
1727
+ },
1623
1728
  device_type: {
1729
+ description: 'Type of the device.',
1624
1730
  oneOf: [
1625
1731
  {
1626
1732
  enum: [
@@ -1663,6 +1769,8 @@ export default {
1663
1769
  ],
1664
1770
  },
1665
1771
  errors: {
1772
+ description:
1773
+ 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
1666
1774
  items: {
1667
1775
  properties: {
1668
1776
  error_code: { type: 'string' },
@@ -1694,6 +1802,8 @@ export default {
1694
1802
  type: 'object',
1695
1803
  },
1696
1804
  warnings: {
1805
+ description:
1806
+ 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
1697
1807
  items: {
1698
1808
  properties: {
1699
1809
  message: { type: 'string' },
@@ -1704,7 +1814,12 @@ export default {
1704
1814
  },
1705
1815
  type: 'array',
1706
1816
  },
1707
- workspace_id: { format: 'uuid', type: 'string' },
1817
+ workspace_id: {
1818
+ description:
1819
+ 'Unique identifier for the Seam workspace associated with the device.',
1820
+ format: 'uuid',
1821
+ type: 'string',
1822
+ },
1708
1823
  },
1709
1824
  required: [
1710
1825
  'device_id',
@@ -1763,6 +1878,16 @@ export default {
1763
1878
  name: 'client-session-token',
1764
1879
  type: 'apiKey',
1765
1880
  },
1881
+ console_session: {
1882
+ bearerFormat: 'Console Session Token',
1883
+ scheme: 'bearer',
1884
+ type: 'http',
1885
+ },
1886
+ pat_with_workspace: {
1887
+ bearerFormat: 'API Token',
1888
+ scheme: 'bearer',
1889
+ type: 'http',
1890
+ },
1766
1891
  seam_client_session_token: {
1767
1892
  in: 'header',
1768
1893
  name: 'seam-client-session-token',
@@ -3934,6 +4059,86 @@ export default {
3934
4059
  'x-fern-sdk-method-name': 'unassign',
3935
4060
  },
3936
4061
  },
4062
+ '/acs/credentials/update': {
4063
+ post: {
4064
+ operationId: 'acsCredentialsUpdatePost',
4065
+ requestBody: {
4066
+ content: {
4067
+ 'application/json': {
4068
+ schema: {
4069
+ properties: {
4070
+ code: { pattern: '^\\d+$', type: 'string' },
4071
+ name: { maxLength: 10, type: 'string' },
4072
+ },
4073
+ type: 'object',
4074
+ },
4075
+ },
4076
+ },
4077
+ },
4078
+ responses: {
4079
+ 200: {
4080
+ content: {
4081
+ 'application/json': {
4082
+ schema: {
4083
+ properties: {
4084
+ acs_credential: {
4085
+ properties: {
4086
+ acs_credential_id: { format: 'uuid', type: 'string' },
4087
+ acs_credential_pool_id: {
4088
+ format: 'uuid',
4089
+ type: 'string',
4090
+ },
4091
+ acs_system_id: { format: 'uuid', type: 'string' },
4092
+ acs_user_id: { format: 'uuid', type: 'string' },
4093
+ code: { nullable: true, type: 'string' },
4094
+ created_at: { format: 'date-time', type: 'string' },
4095
+ display_name: { minLength: 1, type: 'string' },
4096
+ external_type: {
4097
+ enum: [
4098
+ 'pti_card',
4099
+ 'brivo_credential',
4100
+ 'hid_credential',
4101
+ ],
4102
+ type: 'string',
4103
+ },
4104
+ external_type_display_name: { type: 'string' },
4105
+ workspace_id: { format: 'uuid', type: 'string' },
4106
+ },
4107
+ required: [
4108
+ 'acs_credential_id',
4109
+ 'acs_system_id',
4110
+ 'display_name',
4111
+ 'code',
4112
+ 'external_type',
4113
+ 'external_type_display_name',
4114
+ 'created_at',
4115
+ 'workspace_id',
4116
+ ],
4117
+ type: 'object',
4118
+ },
4119
+ ok: { type: 'boolean' },
4120
+ },
4121
+ required: ['acs_credential', 'ok'],
4122
+ type: 'object',
4123
+ },
4124
+ },
4125
+ },
4126
+ description: 'OK',
4127
+ },
4128
+ 400: { description: 'Bad Request' },
4129
+ 401: { description: 'Unauthorized' },
4130
+ },
4131
+ security: [
4132
+ { access_token: [], seam_workspace: [] },
4133
+ { seam_client_session_token: [] },
4134
+ { client_session_token: [] },
4135
+ ],
4136
+ summary: '/acs/credentials/update',
4137
+ tags: [],
4138
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
4139
+ 'x-fern-sdk-method-name': 'update',
4140
+ },
4141
+ },
3937
4142
  '/acs/entrances/get': {
3938
4143
  post: {
3939
4144
  operationId: 'acsEntrancesGetPost',
@@ -4921,9 +5126,10 @@ export default {
4921
5126
  401: { description: 'Unauthorized' },
4922
5127
  },
4923
5128
  security: [
4924
- { access_token: [], seam_workspace: [] },
4925
- { seam_client_session_token: [] },
4926
- { client_session_token: [] },
5129
+ { client_session: [] },
5130
+ { pat_with_workspace: [] },
5131
+ { console_session: [] },
5132
+ { api_key: [] },
4927
5133
  ],
4928
5134
  summary: '/client_sessions/get',
4929
5135
  tags: ['/client_sessions'],
@@ -5302,6 +5508,7 @@ export default {
5302
5508
  'pti',
5303
5509
  'wyze',
5304
5510
  'seam_passport',
5511
+ 'visionline',
5305
5512
  'yale_access',
5306
5513
  'hid_cm',
5307
5514
  ],
@@ -8758,6 +8965,8 @@ export default {
8758
8965
  nullable: true,
8759
8966
  type: 'string',
8760
8967
  },
8968
+ first_name: { nullable: true, type: 'string' },
8969
+ last_name: { nullable: true, type: 'string' },
8761
8970
  user_identity_key: { nullable: true, type: 'string' },
8762
8971
  },
8763
8972
  type: 'object',
@@ -8780,6 +8989,8 @@ export default {
8780
8989
  nullable: true,
8781
8990
  type: 'string',
8782
8991
  },
8992
+ first_name: { nullable: true, type: 'string' },
8993
+ last_name: { nullable: true, type: 'string' },
8783
8994
  user_identity_id: { format: 'uuid', type: 'string' },
8784
8995
  user_identity_key: { nullable: true, type: 'string' },
8785
8996
  workspace_id: { format: 'uuid', type: 'string' },
@@ -8853,6 +9064,8 @@ export default {
8853
9064
  nullable: true,
8854
9065
  type: 'string',
8855
9066
  },
9067
+ first_name: { nullable: true, type: 'string' },
9068
+ last_name: { nullable: true, type: 'string' },
8856
9069
  user_identity_id: { format: 'uuid', type: 'string' },
8857
9070
  user_identity_key: { nullable: true, type: 'string' },
8858
9071
  workspace_id: { format: 'uuid', type: 'string' },