@seamapi/types 1.51.0 → 1.52.1

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/dist/connect.cjs CHANGED
@@ -520,6 +520,7 @@ var openapi_default = {
520
520
  device: {
521
521
  properties: {
522
522
  capabilities_supported: {
523
+ description: '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.',
523
524
  items: {
524
525
  enum: [
525
526
  "access_code",
@@ -532,10 +533,23 @@ var openapi_default = {
532
533
  },
533
534
  type: "array"
534
535
  },
535
- connected_account_id: { format: "uuid", type: "string" },
536
- created_at: { format: "date-time", type: "string" },
537
- device_id: { format: "uuid", type: "string" },
536
+ connected_account_id: {
537
+ description: "Unique identifier for the account associated with the device.",
538
+ format: "uuid",
539
+ type: "string"
540
+ },
541
+ created_at: {
542
+ description: "Date and time at which the device object was created.",
543
+ format: "date-time",
544
+ type: "string"
545
+ },
546
+ device_id: {
547
+ description: "Unique identifier for the device.",
548
+ format: "uuid",
549
+ type: "string"
550
+ },
538
551
  device_type: {
552
+ description: "Type of the device.",
539
553
  oneOf: [
540
554
  {
541
555
  enum: [
@@ -578,6 +592,7 @@ var openapi_default = {
578
592
  ]
579
593
  },
580
594
  errors: {
595
+ description: '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.',
581
596
  items: {
582
597
  properties: {
583
598
  error_code: { type: "string" },
@@ -588,12 +603,23 @@ var openapi_default = {
588
603
  },
589
604
  type: "array"
590
605
  },
591
- is_managed: { enum: [true], type: "boolean" },
606
+ is_managed: {
607
+ description: "Indicates whether Seam manages the device.",
608
+ enum: [true],
609
+ type: "boolean"
610
+ },
592
611
  location: {
612
+ description: "Location information for the device.",
593
613
  nullable: true,
594
614
  properties: {
595
- location_name: { type: "string" },
596
- timezone: { type: "string" }
615
+ location_name: {
616
+ description: "Name of the device location.",
617
+ type: "string"
618
+ },
619
+ timezone: {
620
+ description: "Time zone of the device location.",
621
+ type: "string"
622
+ }
597
623
  },
598
624
  type: "object"
599
625
  },
@@ -604,6 +630,7 @@ var openapi_default = {
604
630
  {
605
631
  properties: {
606
632
  battery: {
633
+ description: '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.',
607
634
  properties: {
608
635
  level: { maximum: 1, minimum: 0, type: "number" },
609
636
  status: {
@@ -614,39 +641,81 @@ var openapi_default = {
614
641
  required: ["level", "status"],
615
642
  type: "object"
616
643
  },
617
- battery_level: { maximum: 1, minimum: 0, type: "number" },
618
- has_direct_power: { type: "boolean" },
619
- image_alt_text: { type: "string" },
620
- image_url: { format: "uri", type: "string" },
621
- manufacturer: { type: "string" },
644
+ battery_level: {
645
+ description: "Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.",
646
+ maximum: 1,
647
+ minimum: 0,
648
+ type: "number"
649
+ },
650
+ has_direct_power: {
651
+ description: "Indicates whether the device has direct power.",
652
+ type: "boolean"
653
+ },
654
+ image_alt_text: {
655
+ description: "Alt text for the device image.",
656
+ type: "string"
657
+ },
658
+ image_url: {
659
+ description: "Image URL for the device.",
660
+ format: "uri",
661
+ type: "string"
662
+ },
663
+ manufacturer: {
664
+ description: "Manufacturer of the device.",
665
+ type: "string"
666
+ },
622
667
  model: {
623
668
  properties: {
624
- accessory_keypad_supported: { type: "boolean" },
625
- display_name: { type: "string" },
626
- manufacturer_display_name: { type: "string" },
627
- offline_access_codes_supported: { type: "boolean" },
628
- online_access_codes_supported: { type: "boolean" }
669
+ accessory_keypad_supported: {
670
+ description: "Indicates whether the device supports an accessory keypad.",
671
+ type: "boolean"
672
+ },
673
+ display_name: {
674
+ description: "Display name of the device model.",
675
+ type: "string"
676
+ },
677
+ manufacturer_display_name: {
678
+ description: "Display name that corresponds to the manufacturer-specific terminology for the device.",
679
+ type: "string"
680
+ },
681
+ offline_access_codes_supported: {
682
+ description: "Indicates whether the device supports offline access codes.",
683
+ type: "boolean"
684
+ },
685
+ online_access_codes_supported: {
686
+ description: "Indicates whether the device supports online access codes.",
687
+ type: "boolean"
688
+ }
629
689
  },
630
690
  required: ["display_name", "manufacturer_display_name"],
631
691
  type: "object"
632
692
  },
633
- name: { type: "string" },
693
+ name: {
694
+ description: "Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices.",
695
+ type: "string"
696
+ },
634
697
  offline_access_codes_enabled: {
635
- description: "Currently possible to use offline access codes",
698
+ description: "Indicates whether it is currently possible to use offline access codes for the device.",
699
+ type: "boolean"
700
+ },
701
+ online: {
702
+ description: "Indicates whether the device is online.",
636
703
  type: "boolean"
637
704
  },
638
- online: { type: "boolean" },
639
705
  online_access_codes_enabled: {
640
- description: "Currently possible to use online access codes",
706
+ description: "Indicates whether it is currently possible to use online access codes for the device.",
641
707
  type: "boolean"
642
708
  },
643
- serial_number: { type: "string" },
709
+ serial_number: {
710
+ description: "Serial number of the device.",
711
+ type: "string"
712
+ },
644
713
  supports_accessory_keypad: {
645
- description: "Deprecated: use model.offline_access_codes_enabled.",
714
+ description: "Deprecated: Use model.offline_access_codes_enabled.",
646
715
  type: "boolean"
647
716
  },
648
717
  supports_offline_access_codes: {
649
- description: "Deprecated: use model.accessory_keypad_supported.",
718
+ description: "Deprecated: Use model.accessory_keypad_supported.",
650
719
  type: "boolean"
651
720
  }
652
721
  },
@@ -1458,9 +1527,11 @@ var openapi_default = {
1458
1527
  }
1459
1528
  ]
1460
1529
  }
1461
- ]
1530
+ ],
1531
+ description: "Properties of the device."
1462
1532
  },
1463
1533
  warnings: {
1534
+ description: '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.',
1464
1535
  items: {
1465
1536
  properties: {
1466
1537
  message: { type: "string" },
@@ -1471,7 +1542,11 @@ var openapi_default = {
1471
1542
  },
1472
1543
  type: "array"
1473
1544
  },
1474
- workspace_id: { format: "uuid", type: "string" }
1545
+ workspace_id: {
1546
+ description: "Unique identifier for the Seam workspace associated with the device.",
1547
+ format: "uuid",
1548
+ type: "string"
1549
+ }
1475
1550
  },
1476
1551
  required: [
1477
1552
  "device_id",
@@ -1623,6 +1698,7 @@ var openapi_default = {
1623
1698
  unmanaged_device: {
1624
1699
  properties: {
1625
1700
  capabilities_supported: {
1701
+ description: '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.',
1626
1702
  items: {
1627
1703
  enum: [
1628
1704
  "access_code",
@@ -1635,10 +1711,23 @@ var openapi_default = {
1635
1711
  },
1636
1712
  type: "array"
1637
1713
  },
1638
- connected_account_id: { format: "uuid", type: "string" },
1639
- created_at: { format: "date-time", type: "string" },
1640
- device_id: { format: "uuid", type: "string" },
1714
+ connected_account_id: {
1715
+ description: "Unique identifier for the account associated with the device.",
1716
+ format: "uuid",
1717
+ type: "string"
1718
+ },
1719
+ created_at: {
1720
+ description: "Date and time at which the device object was created.",
1721
+ format: "date-time",
1722
+ type: "string"
1723
+ },
1724
+ device_id: {
1725
+ description: "Unique identifier for the device.",
1726
+ format: "uuid",
1727
+ type: "string"
1728
+ },
1641
1729
  device_type: {
1730
+ description: "Type of the device.",
1642
1731
  oneOf: [
1643
1732
  {
1644
1733
  enum: [
@@ -1681,6 +1770,7 @@ var openapi_default = {
1681
1770
  ]
1682
1771
  },
1683
1772
  errors: {
1773
+ description: '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.',
1684
1774
  items: {
1685
1775
  properties: {
1686
1776
  error_code: { type: "string" },
@@ -1712,6 +1802,7 @@ var openapi_default = {
1712
1802
  type: "object"
1713
1803
  },
1714
1804
  warnings: {
1805
+ description: '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.',
1715
1806
  items: {
1716
1807
  properties: {
1717
1808
  message: { type: "string" },
@@ -1722,7 +1813,11 @@ var openapi_default = {
1722
1813
  },
1723
1814
  type: "array"
1724
1815
  },
1725
- workspace_id: { format: "uuid", type: "string" }
1816
+ workspace_id: {
1817
+ description: "Unique identifier for the Seam workspace associated with the device.",
1818
+ format: "uuid",
1819
+ type: "string"
1820
+ }
1726
1821
  },
1727
1822
  required: [
1728
1823
  "device_id",
@@ -1781,6 +1876,16 @@ var openapi_default = {
1781
1876
  name: "client-session-token",
1782
1877
  type: "apiKey"
1783
1878
  },
1879
+ console_session: {
1880
+ bearerFormat: "Console Session Token",
1881
+ scheme: "bearer",
1882
+ type: "http"
1883
+ },
1884
+ pat_with_workspace: {
1885
+ bearerFormat: "API Token",
1886
+ scheme: "bearer",
1887
+ type: "http"
1888
+ },
1784
1889
  seam_client_session_token: {
1785
1890
  in: "header",
1786
1891
  name: "seam-client-session-token",
@@ -3783,9 +3888,10 @@ var openapi_default = {
3783
3888
  401: { description: "Unauthorized" }
3784
3889
  },
3785
3890
  security: [
3786
- { access_token: [], seam_workspace: [] },
3787
- { seam_client_session_token: [] },
3788
- { client_session_token: [] }
3891
+ { api_key: [] },
3892
+ { client_session: [] },
3893
+ { pat_with_workspace: [] },
3894
+ { console_session: [] }
3789
3895
  ],
3790
3896
  summary: "/acs/credentials/list",
3791
3897
  tags: [],
@@ -3952,6 +4058,86 @@ var openapi_default = {
3952
4058
  "x-fern-sdk-method-name": "unassign"
3953
4059
  }
3954
4060
  },
4061
+ "/acs/credentials/update": {
4062
+ post: {
4063
+ operationId: "acsCredentialsUpdatePost",
4064
+ requestBody: {
4065
+ content: {
4066
+ "application/json": {
4067
+ schema: {
4068
+ properties: {
4069
+ code: { pattern: "^\\d+$", type: "string" },
4070
+ name: { maxLength: 10, type: "string" }
4071
+ },
4072
+ type: "object"
4073
+ }
4074
+ }
4075
+ }
4076
+ },
4077
+ responses: {
4078
+ 200: {
4079
+ content: {
4080
+ "application/json": {
4081
+ schema: {
4082
+ properties: {
4083
+ acs_credential: {
4084
+ properties: {
4085
+ acs_credential_id: { format: "uuid", type: "string" },
4086
+ acs_credential_pool_id: {
4087
+ format: "uuid",
4088
+ type: "string"
4089
+ },
4090
+ acs_system_id: { format: "uuid", type: "string" },
4091
+ acs_user_id: { format: "uuid", type: "string" },
4092
+ code: { nullable: true, type: "string" },
4093
+ created_at: { format: "date-time", type: "string" },
4094
+ display_name: { minLength: 1, type: "string" },
4095
+ external_type: {
4096
+ enum: [
4097
+ "pti_card",
4098
+ "brivo_credential",
4099
+ "hid_credential"
4100
+ ],
4101
+ type: "string"
4102
+ },
4103
+ external_type_display_name: { type: "string" },
4104
+ workspace_id: { format: "uuid", type: "string" }
4105
+ },
4106
+ required: [
4107
+ "acs_credential_id",
4108
+ "acs_system_id",
4109
+ "display_name",
4110
+ "code",
4111
+ "external_type",
4112
+ "external_type_display_name",
4113
+ "created_at",
4114
+ "workspace_id"
4115
+ ],
4116
+ type: "object"
4117
+ },
4118
+ ok: { type: "boolean" }
4119
+ },
4120
+ required: ["acs_credential", "ok"],
4121
+ type: "object"
4122
+ }
4123
+ }
4124
+ },
4125
+ description: "OK"
4126
+ },
4127
+ 400: { description: "Bad Request" },
4128
+ 401: { description: "Unauthorized" }
4129
+ },
4130
+ security: [
4131
+ { access_token: [], seam_workspace: [] },
4132
+ { seam_client_session_token: [] },
4133
+ { client_session_token: [] }
4134
+ ],
4135
+ summary: "/acs/credentials/update",
4136
+ tags: [],
4137
+ "x-fern-sdk-group-name": ["acs", "credentials"],
4138
+ "x-fern-sdk-method-name": "update"
4139
+ }
4140
+ },
3955
4141
  "/acs/entrances/get": {
3956
4142
  post: {
3957
4143
  operationId: "acsEntrancesGetPost",
@@ -4939,9 +5125,10 @@ var openapi_default = {
4939
5125
  401: { description: "Unauthorized" }
4940
5126
  },
4941
5127
  security: [
4942
- { access_token: [], seam_workspace: [] },
4943
- { seam_client_session_token: [] },
4944
- { client_session_token: [] }
5128
+ { client_session: [] },
5129
+ { pat_with_workspace: [] },
5130
+ { console_session: [] },
5131
+ { api_key: [] }
4945
5132
  ],
4946
5133
  summary: "/client_sessions/get",
4947
5134
  tags: ["/client_sessions"],
@@ -5320,6 +5507,7 @@ var openapi_default = {
5320
5507
  "pti",
5321
5508
  "wyze",
5322
5509
  "seam_passport",
5510
+ "visionline",
5323
5511
  "yale_access",
5324
5512
  "hid_cm"
5325
5513
  ],
@@ -8772,6 +8960,8 @@ var openapi_default = {
8772
8960
  nullable: true,
8773
8961
  type: "string"
8774
8962
  },
8963
+ first_name: { nullable: true, type: "string" },
8964
+ last_name: { nullable: true, type: "string" },
8775
8965
  user_identity_key: { nullable: true, type: "string" }
8776
8966
  },
8777
8967
  type: "object"
@@ -8794,6 +8984,8 @@ var openapi_default = {
8794
8984
  nullable: true,
8795
8985
  type: "string"
8796
8986
  },
8987
+ first_name: { nullable: true, type: "string" },
8988
+ last_name: { nullable: true, type: "string" },
8797
8989
  user_identity_id: { format: "uuid", type: "string" },
8798
8990
  user_identity_key: { nullable: true, type: "string" },
8799
8991
  workspace_id: { format: "uuid", type: "string" }
@@ -8867,6 +9059,8 @@ var openapi_default = {
8867
9059
  nullable: true,
8868
9060
  type: "string"
8869
9061
  },
9062
+ first_name: { nullable: true, type: "string" },
9063
+ last_name: { nullable: true, type: "string" },
8870
9064
  user_identity_id: { format: "uuid", type: "string" },
8871
9065
  user_identity_key: { nullable: true, type: "string" },
8872
9066
  workspace_id: { format: "uuid", type: "string" }