@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 +229 -35
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +542 -60
- package/lib/seam/connect/openapi.d.ts +215 -23
- package/lib/seam/connect/openapi.js +228 -34
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +327 -37
- package/lib/seam/connect/unstable/models/devices/managed-device.js +83 -33
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/unstable/models/user-identity.d.ts +6 -0
- package/lib/seam/connect/unstable/models/user-identity.js +2 -0
- package/lib/seam/connect/unstable/models/user-identity.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +248 -34
- package/src/lib/seam/connect/route-types.ts +327 -36
- package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +111 -41
- package/src/lib/seam/connect/unstable/models/user-identity.ts +2 -0
|
@@ -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: {
|
|
506
|
-
|
|
507
|
-
|
|
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: {
|
|
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: {
|
|
566
|
-
|
|
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: {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
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: {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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: {
|
|
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
|
-
'
|
|
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
|
-
'
|
|
690
|
+
'Indicates whether it is currently possible to use online access codes for the device.',
|
|
613
691
|
type: 'boolean',
|
|
614
692
|
},
|
|
615
|
-
serial_number: {
|
|
693
|
+
serial_number: {
|
|
694
|
+
description: 'Serial number of the device.',
|
|
695
|
+
type: 'string',
|
|
696
|
+
},
|
|
616
697
|
supports_accessory_keypad: {
|
|
617
698
|
description:
|
|
618
|
-
'Deprecated:
|
|
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:
|
|
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: {
|
|
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: {
|
|
1621
|
-
|
|
1622
|
-
|
|
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: {
|
|
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',
|
|
@@ -3765,9 +3890,10 @@ export default {
|
|
|
3765
3890
|
401: { description: 'Unauthorized' },
|
|
3766
3891
|
},
|
|
3767
3892
|
security: [
|
|
3768
|
-
{
|
|
3769
|
-
{
|
|
3770
|
-
{
|
|
3893
|
+
{ api_key: [] },
|
|
3894
|
+
{ client_session: [] },
|
|
3895
|
+
{ pat_with_workspace: [] },
|
|
3896
|
+
{ console_session: [] },
|
|
3771
3897
|
],
|
|
3772
3898
|
summary: '/acs/credentials/list',
|
|
3773
3899
|
tags: [],
|
|
@@ -3934,6 +4060,86 @@ export default {
|
|
|
3934
4060
|
'x-fern-sdk-method-name': 'unassign',
|
|
3935
4061
|
},
|
|
3936
4062
|
},
|
|
4063
|
+
'/acs/credentials/update': {
|
|
4064
|
+
post: {
|
|
4065
|
+
operationId: 'acsCredentialsUpdatePost',
|
|
4066
|
+
requestBody: {
|
|
4067
|
+
content: {
|
|
4068
|
+
'application/json': {
|
|
4069
|
+
schema: {
|
|
4070
|
+
properties: {
|
|
4071
|
+
code: { pattern: '^\\d+$', type: 'string' },
|
|
4072
|
+
name: { maxLength: 10, type: 'string' },
|
|
4073
|
+
},
|
|
4074
|
+
type: 'object',
|
|
4075
|
+
},
|
|
4076
|
+
},
|
|
4077
|
+
},
|
|
4078
|
+
},
|
|
4079
|
+
responses: {
|
|
4080
|
+
200: {
|
|
4081
|
+
content: {
|
|
4082
|
+
'application/json': {
|
|
4083
|
+
schema: {
|
|
4084
|
+
properties: {
|
|
4085
|
+
acs_credential: {
|
|
4086
|
+
properties: {
|
|
4087
|
+
acs_credential_id: { format: 'uuid', type: 'string' },
|
|
4088
|
+
acs_credential_pool_id: {
|
|
4089
|
+
format: 'uuid',
|
|
4090
|
+
type: 'string',
|
|
4091
|
+
},
|
|
4092
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
4093
|
+
acs_user_id: { format: 'uuid', type: 'string' },
|
|
4094
|
+
code: { nullable: true, type: 'string' },
|
|
4095
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
4096
|
+
display_name: { minLength: 1, type: 'string' },
|
|
4097
|
+
external_type: {
|
|
4098
|
+
enum: [
|
|
4099
|
+
'pti_card',
|
|
4100
|
+
'brivo_credential',
|
|
4101
|
+
'hid_credential',
|
|
4102
|
+
],
|
|
4103
|
+
type: 'string',
|
|
4104
|
+
},
|
|
4105
|
+
external_type_display_name: { type: 'string' },
|
|
4106
|
+
workspace_id: { format: 'uuid', type: 'string' },
|
|
4107
|
+
},
|
|
4108
|
+
required: [
|
|
4109
|
+
'acs_credential_id',
|
|
4110
|
+
'acs_system_id',
|
|
4111
|
+
'display_name',
|
|
4112
|
+
'code',
|
|
4113
|
+
'external_type',
|
|
4114
|
+
'external_type_display_name',
|
|
4115
|
+
'created_at',
|
|
4116
|
+
'workspace_id',
|
|
4117
|
+
],
|
|
4118
|
+
type: 'object',
|
|
4119
|
+
},
|
|
4120
|
+
ok: { type: 'boolean' },
|
|
4121
|
+
},
|
|
4122
|
+
required: ['acs_credential', 'ok'],
|
|
4123
|
+
type: 'object',
|
|
4124
|
+
},
|
|
4125
|
+
},
|
|
4126
|
+
},
|
|
4127
|
+
description: 'OK',
|
|
4128
|
+
},
|
|
4129
|
+
400: { description: 'Bad Request' },
|
|
4130
|
+
401: { description: 'Unauthorized' },
|
|
4131
|
+
},
|
|
4132
|
+
security: [
|
|
4133
|
+
{ access_token: [], seam_workspace: [] },
|
|
4134
|
+
{ seam_client_session_token: [] },
|
|
4135
|
+
{ client_session_token: [] },
|
|
4136
|
+
],
|
|
4137
|
+
summary: '/acs/credentials/update',
|
|
4138
|
+
tags: [],
|
|
4139
|
+
'x-fern-sdk-group-name': ['acs', 'credentials'],
|
|
4140
|
+
'x-fern-sdk-method-name': 'update',
|
|
4141
|
+
},
|
|
4142
|
+
},
|
|
3937
4143
|
'/acs/entrances/get': {
|
|
3938
4144
|
post: {
|
|
3939
4145
|
operationId: 'acsEntrancesGetPost',
|
|
@@ -4921,9 +5127,10 @@ export default {
|
|
|
4921
5127
|
401: { description: 'Unauthorized' },
|
|
4922
5128
|
},
|
|
4923
5129
|
security: [
|
|
4924
|
-
{
|
|
4925
|
-
{
|
|
4926
|
-
{
|
|
5130
|
+
{ client_session: [] },
|
|
5131
|
+
{ pat_with_workspace: [] },
|
|
5132
|
+
{ console_session: [] },
|
|
5133
|
+
{ api_key: [] },
|
|
4927
5134
|
],
|
|
4928
5135
|
summary: '/client_sessions/get',
|
|
4929
5136
|
tags: ['/client_sessions'],
|
|
@@ -5302,6 +5509,7 @@ export default {
|
|
|
5302
5509
|
'pti',
|
|
5303
5510
|
'wyze',
|
|
5304
5511
|
'seam_passport',
|
|
5512
|
+
'visionline',
|
|
5305
5513
|
'yale_access',
|
|
5306
5514
|
'hid_cm',
|
|
5307
5515
|
],
|
|
@@ -8758,6 +8966,8 @@ export default {
|
|
|
8758
8966
|
nullable: true,
|
|
8759
8967
|
type: 'string',
|
|
8760
8968
|
},
|
|
8969
|
+
first_name: { nullable: true, type: 'string' },
|
|
8970
|
+
last_name: { nullable: true, type: 'string' },
|
|
8761
8971
|
user_identity_key: { nullable: true, type: 'string' },
|
|
8762
8972
|
},
|
|
8763
8973
|
type: 'object',
|
|
@@ -8780,6 +8990,8 @@ export default {
|
|
|
8780
8990
|
nullable: true,
|
|
8781
8991
|
type: 'string',
|
|
8782
8992
|
},
|
|
8993
|
+
first_name: { nullable: true, type: 'string' },
|
|
8994
|
+
last_name: { nullable: true, type: 'string' },
|
|
8783
8995
|
user_identity_id: { format: 'uuid', type: 'string' },
|
|
8784
8996
|
user_identity_key: { nullable: true, type: 'string' },
|
|
8785
8997
|
workspace_id: { format: 'uuid', type: 'string' },
|
|
@@ -8853,6 +9065,8 @@ export default {
|
|
|
8853
9065
|
nullable: true,
|
|
8854
9066
|
type: 'string',
|
|
8855
9067
|
},
|
|
9068
|
+
first_name: { nullable: true, type: 'string' },
|
|
9069
|
+
last_name: { nullable: true, type: 'string' },
|
|
8856
9070
|
user_identity_id: { format: 'uuid', type: 'string' },
|
|
8857
9071
|
user_identity_key: { nullable: true, type: 'string' },
|
|
8858
9072
|
workspace_id: { format: 'uuid', type: 'string' },
|