@seamapi/types 1.604.0 → 1.606.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 (33) hide show
  1. package/dist/connect.cjs +424 -17
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +626 -95
  4. package/dist/index.cjs +424 -17
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-entrance.d.ts +19 -19
  7. package/lib/seam/connect/models/acs/metadata/hotek.d.ts +9 -9
  8. package/lib/seam/connect/models/acs/metadata/hotek.js +3 -2
  9. package/lib/seam/connect/models/acs/metadata/hotek.js.map +1 -1
  10. package/lib/seam/connect/models/acs/metadata/visionline.d.ts +2 -2
  11. package/lib/seam/connect/models/batch.d.ts +135 -135
  12. package/lib/seam/connect/models/customer/customer-data.d.ts +34 -0
  13. package/lib/seam/connect/models/customer/customer-data.js +5 -1
  14. package/lib/seam/connect/models/customer/customer-data.js.map +1 -1
  15. package/lib/seam/connect/models/customer/user-identity-resources.d.ts +39 -0
  16. package/lib/seam/connect/models/customer/user-identity-resources.js +15 -0
  17. package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -1
  18. package/lib/seam/connect/models/phones/phone-session.d.ts +78 -78
  19. package/lib/seam/connect/openapi.d.ts +415 -8
  20. package/lib/seam/connect/openapi.js +374 -14
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +142 -40
  23. package/lib/seam/connect/schemas.d.ts +1 -1
  24. package/lib/seam/connect/schemas.js +1 -1
  25. package/lib/seam/connect/schemas.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  28. package/src/lib/seam/connect/models/acs/metadata/hotek.ts +3 -2
  29. package/src/lib/seam/connect/models/customer/customer-data.ts +5 -0
  30. package/src/lib/seam/connect/models/customer/user-identity-resources.ts +18 -0
  31. package/src/lib/seam/connect/openapi.ts +396 -14
  32. package/src/lib/seam/connect/route-types.ts +150 -40
  33. package/src/lib/seam/connect/schemas.ts +1 -0
@@ -2526,13 +2526,12 @@ export default {
2526
2526
  hotek_metadata: {
2527
2527
  description: 'Hotek-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
2528
2528
  properties: {
2529
- display_name: {
2529
+ common_area_name: {
2530
2530
  description: 'Display name of the entrance.',
2531
2531
  type: 'string',
2532
2532
  },
2533
- door_type: {
2534
- description: 'Type of door.',
2535
- enum: ['common_area', 'guest'],
2533
+ common_area_number: {
2534
+ description: 'Display name of the entrance.',
2536
2535
  type: 'string',
2537
2536
  },
2538
2537
  room_number: {
@@ -2540,7 +2539,6 @@ export default {
2540
2539
  type: 'string',
2541
2540
  },
2542
2541
  },
2543
- required: ['room_number', 'display_name', 'door_type'],
2544
2542
  type: 'object',
2545
2543
  },
2546
2544
  latch_metadata: {
@@ -17955,13 +17953,12 @@ export default {
17955
17953
  hotek_metadata: {
17956
17954
  description: 'Hotek-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
17957
17955
  properties: {
17958
- display_name: {
17956
+ common_area_name: {
17959
17957
  description: 'Display name of the entrance.',
17960
17958
  type: 'string',
17961
17959
  },
17962
- door_type: {
17963
- description: 'Type of door.',
17964
- enum: ['common_area', 'guest'],
17960
+ common_area_number: {
17961
+ description: 'Display name of the entrance.',
17965
17962
  type: 'string',
17966
17963
  },
17967
17964
  room_number: {
@@ -17969,11 +17966,6 @@ export default {
17969
17966
  type: 'string',
17970
17967
  },
17971
17968
  },
17972
- required: [
17973
- 'room_number',
17974
- 'display_name',
17975
- 'door_type',
17976
- ],
17977
17969
  type: 'object',
17978
17970
  },
17979
17971
  latch_metadata: {
@@ -18778,6 +18770,35 @@ export default {
18778
18770
  'x-draft': 'Early access.',
18779
18771
  'x-route-path': '/spaces',
18780
18772
  },
18773
+ staff_member: {
18774
+ description: 'Represents a staff member for a specific customer.',
18775
+ properties: {
18776
+ email_address: {
18777
+ description: 'Email address associated with the user identity.',
18778
+ type: 'string',
18779
+ },
18780
+ name: {
18781
+ description: 'Your display name for this user identity resource.',
18782
+ type: 'string',
18783
+ },
18784
+ phone_number: {
18785
+ description: 'Phone number associated with the user identity.',
18786
+ type: 'string',
18787
+ },
18788
+ site_keys: {
18789
+ description: 'List of unique identifiers for the sites the staff member is associated with.',
18790
+ items: { type: 'string' },
18791
+ type: 'array',
18792
+ },
18793
+ staff_member_key: {
18794
+ description: 'Your unique identifier for the staff.',
18795
+ type: 'string',
18796
+ },
18797
+ },
18798
+ required: ['name', 'staff_member_key', 'site_keys'],
18799
+ type: 'object',
18800
+ 'x-route-path': '/seam/customer/v1/staff_members',
18801
+ },
18781
18802
  thermostat_daily_program: {
18782
18803
  description: 'Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.',
18783
18804
  properties: {
@@ -33047,6 +33068,116 @@ export default {
33047
33068
  'x-title': 'List Compatible Credential Manager ACS Systems',
33048
33069
  },
33049
33070
  },
33071
+ '/acs/systems/report_devices': {
33072
+ post: {
33073
+ description: 'Reports ACS system resources including encoders and entrances with their metadata.\n\nThis endpoint allows reporting of:\n- ACS encoders with removal status and encoder port metadata\n- ACS entrances with room number metadata',
33074
+ operationId: 'acsSystemsReportDevicesPost',
33075
+ requestBody: {
33076
+ content: {
33077
+ 'application/json': {
33078
+ schema: {
33079
+ properties: {
33080
+ acs_encoders: {
33081
+ default: [],
33082
+ description: 'Array of ACS encoders to report',
33083
+ items: {
33084
+ properties: {
33085
+ hotek_metadata: {
33086
+ properties: {
33087
+ encoder_number: {
33088
+ description: 'The encoder number determined by the USB port connection.',
33089
+ type: 'string',
33090
+ },
33091
+ },
33092
+ required: ['encoder_number'],
33093
+ type: 'object',
33094
+ },
33095
+ is_removed: {
33096
+ default: false,
33097
+ description: 'Whether the encoder is removed',
33098
+ type: 'boolean',
33099
+ },
33100
+ },
33101
+ required: ['hotek_metadata'],
33102
+ type: 'object',
33103
+ },
33104
+ type: 'array',
33105
+ },
33106
+ acs_entrances: {
33107
+ default: [],
33108
+ description: 'Array of ACS entrances to report',
33109
+ items: {
33110
+ properties: {
33111
+ hotek_metadata: {
33112
+ description: 'Hotek-specific metadata associated with the entrance.',
33113
+ properties: {
33114
+ common_area_name: {
33115
+ description: 'The common area name',
33116
+ type: 'string',
33117
+ },
33118
+ common_area_number: {
33119
+ description: 'The room number identifier',
33120
+ type: 'string',
33121
+ },
33122
+ room_number: {
33123
+ description: 'The room number identifier',
33124
+ type: 'string',
33125
+ },
33126
+ },
33127
+ type: 'object',
33128
+ },
33129
+ is_removed: {
33130
+ default: false,
33131
+ description: 'Whether the entrance is removed',
33132
+ type: 'boolean',
33133
+ },
33134
+ },
33135
+ required: ['hotek_metadata'],
33136
+ type: 'object',
33137
+ },
33138
+ type: 'array',
33139
+ },
33140
+ acs_system_id: {
33141
+ description: 'ID of the ACS system to report resources for',
33142
+ format: 'uuid',
33143
+ type: 'string',
33144
+ },
33145
+ },
33146
+ required: ['acs_system_id'],
33147
+ type: 'object',
33148
+ },
33149
+ },
33150
+ },
33151
+ },
33152
+ responses: {
33153
+ 200: {
33154
+ content: {
33155
+ 'application/json': {
33156
+ schema: {
33157
+ properties: { ok: { type: 'boolean' } },
33158
+ required: ['ok'],
33159
+ type: 'object',
33160
+ },
33161
+ },
33162
+ },
33163
+ description: 'OK',
33164
+ },
33165
+ 400: { description: 'Bad Request' },
33166
+ 401: { description: 'Unauthorized' },
33167
+ },
33168
+ security: [
33169
+ { pat_with_workspace: [] },
33170
+ { console_session_with_workspace: [] },
33171
+ { api_key: [] },
33172
+ ],
33173
+ summary: '/acs/systems/report_devices',
33174
+ tags: ['/acs'],
33175
+ 'x-fern-sdk-group-name': ['acs', 'systems'],
33176
+ 'x-fern-sdk-method-name': 'report_devices',
33177
+ 'x-response-key': null,
33178
+ 'x-title': 'Report ACS Resources',
33179
+ },
33180
+ },
33050
33181
  '/acs/users/add_to_access_group': {
33051
33182
  post: {
33052
33183
  description: 'Adds a specified [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to a specified [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).',
@@ -37870,6 +38001,43 @@ export default {
37870
38001
  },
37871
38002
  type: 'array',
37872
38003
  },
38004
+ staff_members: {
38005
+ description: 'List of staff members.',
38006
+ items: {
38007
+ description: 'Represents a staff member for a specific customer.',
38008
+ properties: {
38009
+ email_address: {
38010
+ description: 'Email address associated with the user identity.',
38011
+ type: 'string',
38012
+ },
38013
+ name: {
38014
+ description: 'Your display name for this user identity resource.',
38015
+ type: 'string',
38016
+ },
38017
+ phone_number: {
38018
+ description: 'Phone number associated with the user identity.',
38019
+ type: 'string',
38020
+ },
38021
+ site_keys: {
38022
+ description: 'List of unique identifiers for the sites the staff member is associated with.',
38023
+ items: { type: 'string' },
38024
+ type: 'array',
38025
+ },
38026
+ staff_member_key: {
38027
+ description: 'Your unique identifier for the staff.',
38028
+ type: 'string',
38029
+ },
38030
+ },
38031
+ required: [
38032
+ 'name',
38033
+ 'staff_member_key',
38034
+ 'site_keys',
38035
+ ],
38036
+ type: 'object',
38037
+ 'x-route-path': '/seam/customer/v1/staff_members',
38038
+ },
38039
+ type: 'array',
38040
+ },
37873
38041
  tenants: {
37874
38042
  description: 'List of tenants.',
37875
38043
  items: {
@@ -38849,6 +39017,39 @@ export default {
38849
39017
  },
38850
39018
  type: 'array',
38851
39019
  },
39020
+ staff_members: {
39021
+ description: 'List of staff members.',
39022
+ items: {
39023
+ description: 'Represents a staff member for a specific customer.',
39024
+ properties: {
39025
+ email_address: {
39026
+ description: 'Email address associated with the user identity.',
39027
+ type: 'string',
39028
+ },
39029
+ name: {
39030
+ description: 'Your display name for this user identity resource.',
39031
+ type: 'string',
39032
+ },
39033
+ phone_number: {
39034
+ description: 'Phone number associated with the user identity.',
39035
+ type: 'string',
39036
+ },
39037
+ site_keys: {
39038
+ description: 'List of unique identifiers for the sites the staff member is associated with.',
39039
+ items: { type: 'string' },
39040
+ type: 'array',
39041
+ },
39042
+ staff_member_key: {
39043
+ description: 'Your unique identifier for the staff.',
39044
+ type: 'string',
39045
+ },
39046
+ },
39047
+ required: ['name', 'staff_member_key', 'site_keys'],
39048
+ type: 'object',
39049
+ 'x-route-path': '/seam/customer/v1/staff_members',
39050
+ },
39051
+ type: 'array',
39052
+ },
38852
39053
  tenants: {
38853
39054
  description: 'List of tenants.',
38854
39055
  items: {
@@ -49488,6 +49689,165 @@ export default {
49488
49689
  'x-title': 'List Spaces',
49489
49690
  },
49490
49691
  },
49692
+ '/seam/customer/v1/staff_members/list': {
49693
+ get: {
49694
+ description: 'Returns a list of staff members for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.\nProvided space_key or space_id can be a child space, in which case the staff members for the parent space will be returned.',
49695
+ operationId: 'seamCustomerV1StaffMembersListGet',
49696
+ parameters: [
49697
+ {
49698
+ in: 'query',
49699
+ name: 'space_key',
49700
+ schema: {
49701
+ description: 'Filter staff members by space key.',
49702
+ type: 'string',
49703
+ },
49704
+ },
49705
+ {
49706
+ in: 'query',
49707
+ name: 'space_id',
49708
+ schema: {
49709
+ description: 'Filter staff members by space ID (UUID).',
49710
+ format: 'uuid',
49711
+ type: 'string',
49712
+ },
49713
+ },
49714
+ {
49715
+ in: 'query',
49716
+ name: 'limit',
49717
+ schema: {
49718
+ default: 500,
49719
+ description: 'Maximum number of records to return per page.',
49720
+ exclusiveMinimum: true,
49721
+ minimum: 0,
49722
+ type: 'integer',
49723
+ },
49724
+ },
49725
+ {
49726
+ in: 'query',
49727
+ name: 'created_before',
49728
+ schema: {
49729
+ description: 'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
49730
+ format: 'date-time',
49731
+ type: 'string',
49732
+ },
49733
+ },
49734
+ {
49735
+ in: 'query',
49736
+ name: 'page_cursor',
49737
+ schema: {
49738
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
49739
+ nullable: true,
49740
+ type: 'string',
49741
+ },
49742
+ },
49743
+ ],
49744
+ responses: {
49745
+ 200: {
49746
+ content: {
49747
+ 'application/json': {
49748
+ schema: {
49749
+ properties: {
49750
+ ok: { type: 'boolean' },
49751
+ pagination: { $ref: '#/components/schemas/pagination' },
49752
+ staff_members: {
49753
+ items: { $ref: '#/components/schemas/staff_member' },
49754
+ type: 'array',
49755
+ },
49756
+ },
49757
+ required: ['staff_members', 'pagination', 'ok'],
49758
+ type: 'object',
49759
+ },
49760
+ },
49761
+ },
49762
+ description: 'OK',
49763
+ },
49764
+ 400: { description: 'Bad Request' },
49765
+ 401: { description: 'Unauthorized' },
49766
+ },
49767
+ security: [{ client_session_with_customer: [] }],
49768
+ summary: '/seam/customer/v1/staff_members/list',
49769
+ tags: [],
49770
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
49771
+ 'x-fern-sdk-method-name': 'list',
49772
+ 'x-fern-sdk-return-value': 'staff_members',
49773
+ 'x-response-key': 'staff_members',
49774
+ 'x-title': 'List Staff Members for Customer Space',
49775
+ 'x-undocumented': 'Internal endpoint for customer portals.',
49776
+ },
49777
+ post: {
49778
+ description: 'Returns a list of staff members for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.\nProvided space_key or space_id can be a child space, in which case the staff members for the parent space will be returned.',
49779
+ operationId: 'seamCustomerV1StaffMembersListPost',
49780
+ requestBody: {
49781
+ content: {
49782
+ 'application/json': {
49783
+ schema: {
49784
+ properties: {
49785
+ created_before: {
49786
+ description: 'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
49787
+ format: 'date-time',
49788
+ type: 'string',
49789
+ },
49790
+ limit: {
49791
+ default: 500,
49792
+ description: 'Maximum number of records to return per page.',
49793
+ exclusiveMinimum: true,
49794
+ minimum: 0,
49795
+ type: 'integer',
49796
+ },
49797
+ page_cursor: {
49798
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
49799
+ nullable: true,
49800
+ type: 'string',
49801
+ },
49802
+ space_id: {
49803
+ description: 'Filter staff members by space ID (UUID).',
49804
+ format: 'uuid',
49805
+ type: 'string',
49806
+ },
49807
+ space_key: {
49808
+ description: 'Filter staff members by space key.',
49809
+ type: 'string',
49810
+ },
49811
+ },
49812
+ type: 'object',
49813
+ },
49814
+ },
49815
+ },
49816
+ },
49817
+ responses: {
49818
+ 200: {
49819
+ content: {
49820
+ 'application/json': {
49821
+ schema: {
49822
+ properties: {
49823
+ ok: { type: 'boolean' },
49824
+ pagination: { $ref: '#/components/schemas/pagination' },
49825
+ staff_members: {
49826
+ items: { $ref: '#/components/schemas/staff_member' },
49827
+ type: 'array',
49828
+ },
49829
+ },
49830
+ required: ['staff_members', 'pagination', 'ok'],
49831
+ type: 'object',
49832
+ },
49833
+ },
49834
+ },
49835
+ description: 'OK',
49836
+ },
49837
+ 400: { description: 'Bad Request' },
49838
+ 401: { description: 'Unauthorized' },
49839
+ },
49840
+ security: [{ client_session_with_customer: [] }],
49841
+ summary: '/seam/customer/v1/staff_members/list',
49842
+ tags: [],
49843
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
49844
+ 'x-fern-sdk-method-name': 'list',
49845
+ 'x-fern-sdk-return-value': 'staff_members',
49846
+ 'x-response-key': 'staff_members',
49847
+ 'x-title': 'List Staff Members for Customer Space',
49848
+ 'x-undocumented': 'Internal endpoint for customer portals.',
49849
+ },
49850
+ },
49491
49851
  '/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]': {
49492
49852
  post: {
49493
49853
  description: 'Receives webhook events from external connector APIs and processes them into partner resources.',