@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
@@ -2903,13 +2903,12 @@ export default {
2903
2903
  description:
2904
2904
  'Hotek-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
2905
2905
  properties: {
2906
- display_name: {
2906
+ common_area_name: {
2907
2907
  description: 'Display name of the entrance.',
2908
2908
  type: 'string',
2909
2909
  },
2910
- door_type: {
2911
- description: 'Type of door.',
2912
- enum: ['common_area', 'guest'],
2910
+ common_area_number: {
2911
+ description: 'Display name of the entrance.',
2913
2912
  type: 'string',
2914
2913
  },
2915
2914
  room_number: {
@@ -2917,7 +2916,6 @@ export default {
2917
2916
  type: 'string',
2918
2917
  },
2919
2918
  },
2920
- required: ['room_number', 'display_name', 'door_type'],
2921
2919
  type: 'object',
2922
2920
  },
2923
2921
  latch_metadata: {
@@ -19937,13 +19935,12 @@ export default {
19937
19935
  description:
19938
19936
  'Hotek-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
19939
19937
  properties: {
19940
- display_name: {
19938
+ common_area_name: {
19941
19939
  description: 'Display name of the entrance.',
19942
19940
  type: 'string',
19943
19941
  },
19944
- door_type: {
19945
- description: 'Type of door.',
19946
- enum: ['common_area', 'guest'],
19942
+ common_area_number: {
19943
+ description: 'Display name of the entrance.',
19947
19944
  type: 'string',
19948
19945
  },
19949
19946
  room_number: {
@@ -19951,11 +19948,6 @@ export default {
19951
19948
  type: 'string',
19952
19949
  },
19953
19950
  },
19954
- required: [
19955
- 'room_number',
19956
- 'display_name',
19957
- 'door_type',
19958
- ],
19959
19951
  type: 'object',
19960
19952
  },
19961
19953
  latch_metadata: {
@@ -20872,6 +20864,36 @@ export default {
20872
20864
  'x-draft': 'Early access.',
20873
20865
  'x-route-path': '/spaces',
20874
20866
  },
20867
+ staff_member: {
20868
+ description: 'Represents a staff member for a specific customer.',
20869
+ properties: {
20870
+ email_address: {
20871
+ description: 'Email address associated with the user identity.',
20872
+ type: 'string',
20873
+ },
20874
+ name: {
20875
+ description: 'Your display name for this user identity resource.',
20876
+ type: 'string',
20877
+ },
20878
+ phone_number: {
20879
+ description: 'Phone number associated with the user identity.',
20880
+ type: 'string',
20881
+ },
20882
+ site_keys: {
20883
+ description:
20884
+ 'List of unique identifiers for the sites the staff member is associated with.',
20885
+ items: { type: 'string' },
20886
+ type: 'array',
20887
+ },
20888
+ staff_member_key: {
20889
+ description: 'Your unique identifier for the staff.',
20890
+ type: 'string',
20891
+ },
20892
+ },
20893
+ required: ['name', 'staff_member_key', 'site_keys'],
20894
+ type: 'object',
20895
+ 'x-route-path': '/seam/customer/v1/staff_members',
20896
+ },
20875
20897
  thermostat_daily_program: {
20876
20898
  description:
20877
20899
  '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.',
@@ -36365,6 +36387,119 @@ export default {
36365
36387
  'x-title': 'List Compatible Credential Manager ACS Systems',
36366
36388
  },
36367
36389
  },
36390
+ '/acs/systems/report_devices': {
36391
+ post: {
36392
+ description:
36393
+ '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',
36394
+ operationId: 'acsSystemsReportDevicesPost',
36395
+ requestBody: {
36396
+ content: {
36397
+ 'application/json': {
36398
+ schema: {
36399
+ properties: {
36400
+ acs_encoders: {
36401
+ default: [],
36402
+ description: 'Array of ACS encoders to report',
36403
+ items: {
36404
+ properties: {
36405
+ hotek_metadata: {
36406
+ properties: {
36407
+ encoder_number: {
36408
+ description:
36409
+ 'The encoder number determined by the USB port connection.',
36410
+ type: 'string',
36411
+ },
36412
+ },
36413
+ required: ['encoder_number'],
36414
+ type: 'object',
36415
+ },
36416
+ is_removed: {
36417
+ default: false,
36418
+ description: 'Whether the encoder is removed',
36419
+ type: 'boolean',
36420
+ },
36421
+ },
36422
+ required: ['hotek_metadata'],
36423
+ type: 'object',
36424
+ },
36425
+ type: 'array',
36426
+ },
36427
+ acs_entrances: {
36428
+ default: [],
36429
+ description: 'Array of ACS entrances to report',
36430
+ items: {
36431
+ properties: {
36432
+ hotek_metadata: {
36433
+ description:
36434
+ 'Hotek-specific metadata associated with the entrance.',
36435
+ properties: {
36436
+ common_area_name: {
36437
+ description: 'The common area name',
36438
+ type: 'string',
36439
+ },
36440
+ common_area_number: {
36441
+ description: 'The room number identifier',
36442
+ type: 'string',
36443
+ },
36444
+ room_number: {
36445
+ description: 'The room number identifier',
36446
+ type: 'string',
36447
+ },
36448
+ },
36449
+ type: 'object',
36450
+ },
36451
+ is_removed: {
36452
+ default: false,
36453
+ description: 'Whether the entrance is removed',
36454
+ type: 'boolean',
36455
+ },
36456
+ },
36457
+ required: ['hotek_metadata'],
36458
+ type: 'object',
36459
+ },
36460
+ type: 'array',
36461
+ },
36462
+ acs_system_id: {
36463
+ description: 'ID of the ACS system to report resources for',
36464
+ format: 'uuid',
36465
+ type: 'string',
36466
+ },
36467
+ },
36468
+ required: ['acs_system_id'],
36469
+ type: 'object',
36470
+ },
36471
+ },
36472
+ },
36473
+ },
36474
+ responses: {
36475
+ 200: {
36476
+ content: {
36477
+ 'application/json': {
36478
+ schema: {
36479
+ properties: { ok: { type: 'boolean' } },
36480
+ required: ['ok'],
36481
+ type: 'object',
36482
+ },
36483
+ },
36484
+ },
36485
+ description: 'OK',
36486
+ },
36487
+ 400: { description: 'Bad Request' },
36488
+ 401: { description: 'Unauthorized' },
36489
+ },
36490
+ security: [
36491
+ { pat_with_workspace: [] },
36492
+ { console_session_with_workspace: [] },
36493
+ { api_key: [] },
36494
+ ],
36495
+ summary: '/acs/systems/report_devices',
36496
+ tags: ['/acs'],
36497
+ 'x-fern-sdk-group-name': ['acs', 'systems'],
36498
+ 'x-fern-sdk-method-name': 'report_devices',
36499
+ 'x-response-key': null,
36500
+ 'x-title': 'Report ACS Resources',
36501
+ },
36502
+ },
36368
36503
  '/acs/users/add_to_access_group': {
36369
36504
  post: {
36370
36505
  description:
@@ -41552,6 +41687,49 @@ export default {
41552
41687
  },
41553
41688
  type: 'array',
41554
41689
  },
41690
+ staff_members: {
41691
+ description: 'List of staff members.',
41692
+ items: {
41693
+ description:
41694
+ 'Represents a staff member for a specific customer.',
41695
+ properties: {
41696
+ email_address: {
41697
+ description:
41698
+ 'Email address associated with the user identity.',
41699
+ type: 'string',
41700
+ },
41701
+ name: {
41702
+ description:
41703
+ 'Your display name for this user identity resource.',
41704
+ type: 'string',
41705
+ },
41706
+ phone_number: {
41707
+ description:
41708
+ 'Phone number associated with the user identity.',
41709
+ type: 'string',
41710
+ },
41711
+ site_keys: {
41712
+ description:
41713
+ 'List of unique identifiers for the sites the staff member is associated with.',
41714
+ items: { type: 'string' },
41715
+ type: 'array',
41716
+ },
41717
+ staff_member_key: {
41718
+ description:
41719
+ 'Your unique identifier for the staff.',
41720
+ type: 'string',
41721
+ },
41722
+ },
41723
+ required: [
41724
+ 'name',
41725
+ 'staff_member_key',
41726
+ 'site_keys',
41727
+ ],
41728
+ type: 'object',
41729
+ 'x-route-path': '/seam/customer/v1/staff_members',
41730
+ },
41731
+ type: 'array',
41732
+ },
41555
41733
  tenants: {
41556
41734
  description: 'List of tenants.',
41557
41735
  items: {
@@ -42627,6 +42805,44 @@ export default {
42627
42805
  },
42628
42806
  type: 'array',
42629
42807
  },
42808
+ staff_members: {
42809
+ description: 'List of staff members.',
42810
+ items: {
42811
+ description:
42812
+ 'Represents a staff member for a specific customer.',
42813
+ properties: {
42814
+ email_address: {
42815
+ description:
42816
+ 'Email address associated with the user identity.',
42817
+ type: 'string',
42818
+ },
42819
+ name: {
42820
+ description:
42821
+ 'Your display name for this user identity resource.',
42822
+ type: 'string',
42823
+ },
42824
+ phone_number: {
42825
+ description:
42826
+ 'Phone number associated with the user identity.',
42827
+ type: 'string',
42828
+ },
42829
+ site_keys: {
42830
+ description:
42831
+ 'List of unique identifiers for the sites the staff member is associated with.',
42832
+ items: { type: 'string' },
42833
+ type: 'array',
42834
+ },
42835
+ staff_member_key: {
42836
+ description: 'Your unique identifier for the staff.',
42837
+ type: 'string',
42838
+ },
42839
+ },
42840
+ required: ['name', 'staff_member_key', 'site_keys'],
42841
+ type: 'object',
42842
+ 'x-route-path': '/seam/customer/v1/staff_members',
42843
+ },
42844
+ type: 'array',
42845
+ },
42630
42846
  tenants: {
42631
42847
  description: 'List of tenants.',
42632
42848
  items: {
@@ -53677,6 +53893,172 @@ export default {
53677
53893
  'x-title': 'List Spaces',
53678
53894
  },
53679
53895
  },
53896
+ '/seam/customer/v1/staff_members/list': {
53897
+ get: {
53898
+ description:
53899
+ '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.',
53900
+ operationId: 'seamCustomerV1StaffMembersListGet',
53901
+ parameters: [
53902
+ {
53903
+ in: 'query',
53904
+ name: 'space_key',
53905
+ schema: {
53906
+ description: 'Filter staff members by space key.',
53907
+ type: 'string',
53908
+ },
53909
+ },
53910
+ {
53911
+ in: 'query',
53912
+ name: 'space_id',
53913
+ schema: {
53914
+ description: 'Filter staff members by space ID (UUID).',
53915
+ format: 'uuid',
53916
+ type: 'string',
53917
+ },
53918
+ },
53919
+ {
53920
+ in: 'query',
53921
+ name: 'limit',
53922
+ schema: {
53923
+ default: 500,
53924
+ description: 'Maximum number of records to return per page.',
53925
+ exclusiveMinimum: true,
53926
+ minimum: 0,
53927
+ type: 'integer',
53928
+ },
53929
+ },
53930
+ {
53931
+ in: 'query',
53932
+ name: 'created_before',
53933
+ schema: {
53934
+ description:
53935
+ 'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
53936
+ format: 'date-time',
53937
+ type: 'string',
53938
+ },
53939
+ },
53940
+ {
53941
+ in: 'query',
53942
+ name: 'page_cursor',
53943
+ schema: {
53944
+ description:
53945
+ "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
53946
+ nullable: true,
53947
+ type: 'string',
53948
+ },
53949
+ },
53950
+ ],
53951
+ responses: {
53952
+ 200: {
53953
+ content: {
53954
+ 'application/json': {
53955
+ schema: {
53956
+ properties: {
53957
+ ok: { type: 'boolean' },
53958
+ pagination: { $ref: '#/components/schemas/pagination' },
53959
+ staff_members: {
53960
+ items: { $ref: '#/components/schemas/staff_member' },
53961
+ type: 'array',
53962
+ },
53963
+ },
53964
+ required: ['staff_members', 'pagination', 'ok'],
53965
+ type: 'object',
53966
+ },
53967
+ },
53968
+ },
53969
+ description: 'OK',
53970
+ },
53971
+ 400: { description: 'Bad Request' },
53972
+ 401: { description: 'Unauthorized' },
53973
+ },
53974
+ security: [{ client_session_with_customer: [] }],
53975
+ summary: '/seam/customer/v1/staff_members/list',
53976
+ tags: [],
53977
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
53978
+ 'x-fern-sdk-method-name': 'list',
53979
+ 'x-fern-sdk-return-value': 'staff_members',
53980
+ 'x-response-key': 'staff_members',
53981
+ 'x-title': 'List Staff Members for Customer Space',
53982
+ 'x-undocumented': 'Internal endpoint for customer portals.',
53983
+ },
53984
+ post: {
53985
+ description:
53986
+ '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.',
53987
+ operationId: 'seamCustomerV1StaffMembersListPost',
53988
+ requestBody: {
53989
+ content: {
53990
+ 'application/json': {
53991
+ schema: {
53992
+ properties: {
53993
+ created_before: {
53994
+ description:
53995
+ 'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
53996
+ format: 'date-time',
53997
+ type: 'string',
53998
+ },
53999
+ limit: {
54000
+ default: 500,
54001
+ description:
54002
+ 'Maximum number of records to return per page.',
54003
+ exclusiveMinimum: true,
54004
+ minimum: 0,
54005
+ type: 'integer',
54006
+ },
54007
+ page_cursor: {
54008
+ description:
54009
+ "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
54010
+ nullable: true,
54011
+ type: 'string',
54012
+ },
54013
+ space_id: {
54014
+ description: 'Filter staff members by space ID (UUID).',
54015
+ format: 'uuid',
54016
+ type: 'string',
54017
+ },
54018
+ space_key: {
54019
+ description: 'Filter staff members by space key.',
54020
+ type: 'string',
54021
+ },
54022
+ },
54023
+ type: 'object',
54024
+ },
54025
+ },
54026
+ },
54027
+ },
54028
+ responses: {
54029
+ 200: {
54030
+ content: {
54031
+ 'application/json': {
54032
+ schema: {
54033
+ properties: {
54034
+ ok: { type: 'boolean' },
54035
+ pagination: { $ref: '#/components/schemas/pagination' },
54036
+ staff_members: {
54037
+ items: { $ref: '#/components/schemas/staff_member' },
54038
+ type: 'array',
54039
+ },
54040
+ },
54041
+ required: ['staff_members', 'pagination', 'ok'],
54042
+ type: 'object',
54043
+ },
54044
+ },
54045
+ },
54046
+ description: 'OK',
54047
+ },
54048
+ 400: { description: 'Bad Request' },
54049
+ 401: { description: 'Unauthorized' },
54050
+ },
54051
+ security: [{ client_session_with_customer: [] }],
54052
+ summary: '/seam/customer/v1/staff_members/list',
54053
+ tags: [],
54054
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
54055
+ 'x-fern-sdk-method-name': 'list',
54056
+ 'x-fern-sdk-return-value': 'staff_members',
54057
+ 'x-response-key': 'staff_members',
54058
+ 'x-title': 'List Staff Members for Customer Space',
54059
+ 'x-undocumented': 'Internal endpoint for customer portals.',
54060
+ },
54061
+ },
53680
54062
  '/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]': {
53681
54063
  post: {
53682
54064
  description: