@seamapi/types 1.369.2 → 1.370.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 (48) hide show
  1. package/dist/connect.cjs +370 -1
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +519 -28
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/access-grant.d.ts +57 -0
  8. package/lib/seam/connect/models/access-grants/access-grant.js +29 -0
  9. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -0
  10. package/lib/seam/connect/models/access-grants/access-method.d.ts +21 -0
  11. package/lib/seam/connect/models/access-grants/access-method.js +24 -0
  12. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -0
  13. package/lib/seam/connect/models/access-grants/index.d.ts +2 -0
  14. package/lib/seam/connect/models/access-grants/index.js +3 -0
  15. package/lib/seam/connect/models/access-grants/index.js.map +1 -0
  16. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.d.ts +4 -4
  17. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  18. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
  19. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +20 -20
  20. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  21. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
  22. package/lib/seam/connect/models/bridges/{bridge_client_session.js → bridge-client-session.js} +1 -1
  23. package/lib/seam/connect/models/bridges/{bridge_client_session.js.map → bridge-client-session.js.map} +1 -1
  24. package/lib/seam/connect/models/bridges/bridge-connected-system.d.ts +30 -0
  25. package/lib/seam/connect/models/bridges/bridge-connected-system.js +17 -0
  26. package/lib/seam/connect/models/bridges/bridge-connected-system.js.map +1 -0
  27. package/lib/seam/connect/models/bridges/index.d.ts +2 -1
  28. package/lib/seam/connect/models/bridges/index.js +2 -1
  29. package/lib/seam/connect/models/bridges/index.js.map +1 -1
  30. package/lib/seam/connect/models/index.d.ts +1 -0
  31. package/lib/seam/connect/models/index.js +1 -0
  32. package/lib/seam/connect/models/index.js.map +1 -1
  33. package/lib/seam/connect/openapi.d.ts +402 -0
  34. package/lib/seam/connect/openapi.js +369 -0
  35. package/lib/seam/connect/openapi.js.map +1 -1
  36. package/lib/seam/connect/route-types.d.ts +89 -0
  37. package/package.json +1 -1
  38. package/src/lib/seam/connect/internal/schemas.ts +3 -0
  39. package/src/lib/seam/connect/models/access-grants/access-grant.ts +34 -0
  40. package/src/lib/seam/connect/models/access-grants/access-method.ts +28 -0
  41. package/src/lib/seam/connect/models/access-grants/index.ts +2 -0
  42. package/src/lib/seam/connect/models/bridges/bridge-connected-system.ts +19 -0
  43. package/src/lib/seam/connect/models/bridges/index.ts +2 -1
  44. package/src/lib/seam/connect/models/index.ts +1 -0
  45. package/src/lib/seam/connect/openapi.ts +394 -0
  46. package/src/lib/seam/connect/route-types.ts +96 -0
  47. /package/lib/seam/connect/models/bridges/{bridge_client_session.d.ts → bridge-client-session.d.ts} +0 -0
  48. /package/src/lib/seam/connect/models/bridges/{bridge_client_session.ts → bridge-client-session.ts} +0 -0
@@ -24652,6 +24652,147 @@ export default {
24652
24652
  'x-undocumented': 'Seam Bridge Client only.',
24653
24653
  },
24654
24654
  },
24655
+ '/seam/bridge/v1/bridge_connected_systems/list': {
24656
+ get: {
24657
+ description: 'Returns the bridge connected systems associated with the session token used.',
24658
+ operationId: 'seamBridgeV1BridgeConnectedSystemsListGet',
24659
+ responses: {
24660
+ 200: {
24661
+ content: {
24662
+ 'application/json': {
24663
+ schema: {
24664
+ properties: {
24665
+ bridge_connected_systems: {
24666
+ items: {
24667
+ properties: {
24668
+ acs_system_display_name: { type: 'string' },
24669
+ acs_system_id: { format: 'uuid', type: 'string' },
24670
+ bridge_created_at: {
24671
+ format: 'date-time',
24672
+ type: 'string',
24673
+ },
24674
+ bridge_id: { format: 'uuid', type: 'string' },
24675
+ connected_account_created_at: {
24676
+ format: 'date-time',
24677
+ type: 'string',
24678
+ },
24679
+ connected_account_id: {
24680
+ format: 'uuid',
24681
+ type: 'string',
24682
+ },
24683
+ workspace_display_name: { type: 'string' },
24684
+ workspace_id: { format: 'uuid', type: 'string' },
24685
+ },
24686
+ required: [
24687
+ 'bridge_id',
24688
+ 'bridge_created_at',
24689
+ 'connected_account_id',
24690
+ 'connected_account_created_at',
24691
+ 'acs_system_id',
24692
+ 'acs_system_display_name',
24693
+ 'workspace_id',
24694
+ 'workspace_display_name',
24695
+ ],
24696
+ type: 'object',
24697
+ 'x-route-path': '/seam/bridge/v1/bridge_connected_systems',
24698
+ 'x-undocumented': 'Seam Bridge Client only.',
24699
+ },
24700
+ type: 'array',
24701
+ },
24702
+ ok: { type: 'boolean' },
24703
+ },
24704
+ required: ['bridge_connected_systems', 'ok'],
24705
+ type: 'object',
24706
+ },
24707
+ },
24708
+ },
24709
+ description: 'OK',
24710
+ },
24711
+ 400: { description: 'Bad Request' },
24712
+ 401: { description: 'Unauthorized' },
24713
+ },
24714
+ security: [{ bridge_client_session: [] }],
24715
+ summary: '/seam/bridge/v1/bridge_connected_systems/list',
24716
+ tags: [],
24717
+ 'x-fern-ignore': true,
24718
+ 'x-response-key': 'bridge_connected_systems',
24719
+ 'x-title': 'List Bridge Connected Systems',
24720
+ 'x-undocumented': 'Seam Bridge Client only.',
24721
+ },
24722
+ post: {
24723
+ description: 'Returns the bridge connected systems associated with the session token used.',
24724
+ operationId: 'seamBridgeV1BridgeConnectedSystemsListPost',
24725
+ responses: {
24726
+ 200: {
24727
+ content: {
24728
+ 'application/json': {
24729
+ schema: {
24730
+ properties: {
24731
+ bridge_connected_systems: {
24732
+ items: {
24733
+ properties: {
24734
+ acs_system_display_name: { type: 'string' },
24735
+ acs_system_id: { format: 'uuid', type: 'string' },
24736
+ bridge_created_at: {
24737
+ format: 'date-time',
24738
+ type: 'string',
24739
+ },
24740
+ bridge_id: { format: 'uuid', type: 'string' },
24741
+ connected_account_created_at: {
24742
+ format: 'date-time',
24743
+ type: 'string',
24744
+ },
24745
+ connected_account_id: {
24746
+ format: 'uuid',
24747
+ type: 'string',
24748
+ },
24749
+ workspace_display_name: { type: 'string' },
24750
+ workspace_id: { format: 'uuid', type: 'string' },
24751
+ },
24752
+ required: [
24753
+ 'bridge_id',
24754
+ 'bridge_created_at',
24755
+ 'connected_account_id',
24756
+ 'connected_account_created_at',
24757
+ 'acs_system_id',
24758
+ 'acs_system_display_name',
24759
+ 'workspace_id',
24760
+ 'workspace_display_name',
24761
+ ],
24762
+ type: 'object',
24763
+ 'x-route-path': '/seam/bridge/v1/bridge_connected_systems',
24764
+ 'x-undocumented': 'Seam Bridge Client only.',
24765
+ },
24766
+ type: 'array',
24767
+ },
24768
+ ok: { type: 'boolean' },
24769
+ },
24770
+ required: ['bridge_connected_systems', 'ok'],
24771
+ type: 'object',
24772
+ },
24773
+ },
24774
+ },
24775
+ description: 'OK',
24776
+ },
24777
+ 400: { description: 'Bad Request' },
24778
+ 401: { description: 'Unauthorized' },
24779
+ },
24780
+ security: [{ bridge_client_session: [] }],
24781
+ summary: '/seam/bridge/v1/bridge_connected_systems/list',
24782
+ tags: [],
24783
+ 'x-fern-sdk-group-name': [
24784
+ 'seam',
24785
+ 'bridge',
24786
+ 'v1',
24787
+ 'bridge_connected_systems',
24788
+ ],
24789
+ 'x-fern-sdk-method-name': 'list',
24790
+ 'x-fern-sdk-return-value': 'bridge_connected_systems',
24791
+ 'x-response-key': 'bridge_connected_systems',
24792
+ 'x-title': 'List Bridge Connected Systems',
24793
+ 'x-undocumented': 'Seam Bridge Client only.',
24794
+ },
24795
+ },
24655
24796
  '/thermostats/activate_climate_preset': {
24656
24797
  post: {
24657
24798
  description: 'Activates a specified [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
@@ -26753,6 +26894,233 @@ export default {
26753
26894
  'x-title': 'Update a Climate Preset',
26754
26895
  },
26755
26896
  },
26897
+ '/unstable_access_grants/create': {
26898
+ post: {
26899
+ description: 'Creates a new access grant.',
26900
+ operationId: 'unstableAccessGrantsCreatePost',
26901
+ requestBody: {
26902
+ content: {
26903
+ 'application/json': {
26904
+ schema: {
26905
+ allOf: [
26906
+ {
26907
+ oneOf: [
26908
+ {
26909
+ properties: {
26910
+ user_identity_id: {
26911
+ description: 'ID of user identity for whom access is being granted.',
26912
+ format: 'uuid',
26913
+ type: 'string',
26914
+ },
26915
+ },
26916
+ type: 'object',
26917
+ },
26918
+ {
26919
+ properties: {
26920
+ user_identity: {
26921
+ description: 'When used, creates a new user identity with the given details, and grants them access.',
26922
+ properties: {
26923
+ email_address: {
26924
+ description: 'Unique email address for the user identity.',
26925
+ format: 'email',
26926
+ nullable: true,
26927
+ type: 'string',
26928
+ },
26929
+ full_name: {
26930
+ minLength: 1,
26931
+ nullable: true,
26932
+ type: 'string',
26933
+ },
26934
+ phone_number: {
26935
+ description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).',
26936
+ nullable: true,
26937
+ type: 'string',
26938
+ },
26939
+ },
26940
+ type: 'object',
26941
+ 'x-route-path': '/user_identities',
26942
+ },
26943
+ },
26944
+ type: 'object',
26945
+ },
26946
+ ],
26947
+ },
26948
+ {
26949
+ properties: {
26950
+ desired_access_methods: {
26951
+ items: {
26952
+ properties: {
26953
+ mode: {
26954
+ description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
26955
+ enum: ['code', 'card', 'mobile_key'],
26956
+ type: 'string',
26957
+ },
26958
+ },
26959
+ required: ['mode'],
26960
+ type: 'object',
26961
+ },
26962
+ type: 'array',
26963
+ },
26964
+ ends_at: {
26965
+ description: 'Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.',
26966
+ format: 'date-time',
26967
+ type: 'string',
26968
+ },
26969
+ location: {
26970
+ description: 'When used, creates a new location with the given entrances and devices, and gives the user access to this location.',
26971
+ properties: {
26972
+ acs_entrance_ids: {
26973
+ default: [],
26974
+ description: 'Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to add to the location to which access is being granted.',
26975
+ items: { format: 'uuid', type: 'string' },
26976
+ type: 'array',
26977
+ },
26978
+ device_ids: {
26979
+ default: [],
26980
+ description: 'Set of IDs of the [devices](https://docs.seam.co/latest/api/devices/list) to add to the location to which access is being granted.',
26981
+ items: { format: 'uuid', type: 'string' },
26982
+ type: 'array',
26983
+ },
26984
+ },
26985
+ type: 'object',
26986
+ },
26987
+ location_ids: {
26988
+ description: 'Set of IDs of existing locations to which access is being granted.',
26989
+ items: { format: 'uuid', type: 'string' },
26990
+ type: 'array',
26991
+ },
26992
+ starts_at: {
26993
+ description: 'Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
26994
+ format: 'date-time',
26995
+ type: 'string',
26996
+ },
26997
+ },
26998
+ required: ['desired_access_methods'],
26999
+ type: 'object',
27000
+ },
27001
+ ],
27002
+ },
27003
+ },
27004
+ },
27005
+ },
27006
+ responses: {
27007
+ 200: {
27008
+ content: {
27009
+ 'application/json': {
27010
+ schema: {
27011
+ properties: {
27012
+ access_grant: {
27013
+ properties: {
27014
+ access_grant_id: {
27015
+ description: 'ID of the access grant.',
27016
+ format: 'uuid',
27017
+ type: 'string',
27018
+ },
27019
+ access_methods: {
27020
+ description: 'Access methods associated with this access grant.',
27021
+ items: {
27022
+ properties: {
27023
+ access_method_key: {
27024
+ description: 'Key for the access method - unique within an access grant.',
27025
+ type: 'string',
27026
+ },
27027
+ created_at: {
27028
+ description: 'Date and time at which the access method was created.',
27029
+ format: 'date-time',
27030
+ type: 'string',
27031
+ },
27032
+ display_name: {
27033
+ description: 'Display name of the access method.',
27034
+ type: 'string',
27035
+ },
27036
+ issued_at: {
27037
+ description: 'Date and time at which the access method was issued.',
27038
+ format: 'date-time',
27039
+ nullable: true,
27040
+ type: 'string',
27041
+ },
27042
+ mode: {
27043
+ description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
27044
+ enum: ['code', 'card', 'mobile_key'],
27045
+ type: 'string',
27046
+ },
27047
+ },
27048
+ required: [
27049
+ 'access_method_key',
27050
+ 'display_name',
27051
+ 'mode',
27052
+ 'created_at',
27053
+ 'issued_at',
27054
+ ],
27055
+ type: 'object',
27056
+ 'x-undocumented': 'Unreleased.',
27057
+ },
27058
+ type: 'array',
27059
+ },
27060
+ created_at: {
27061
+ description: 'Date and time at which the access grant was created.',
27062
+ format: 'date-time',
27063
+ type: 'string',
27064
+ },
27065
+ display_name: {
27066
+ description: 'Display name of the access grant.',
27067
+ type: 'string',
27068
+ },
27069
+ location_ids: {
27070
+ description: 'IDs of the locations to which access is being given.',
27071
+ items: { format: 'uuid', type: 'string' },
27072
+ type: 'array',
27073
+ },
27074
+ user_identity_id: {
27075
+ description: 'ID of user identity to which access is being granted.',
27076
+ format: 'uuid',
27077
+ type: 'string',
27078
+ },
27079
+ workspace_id: {
27080
+ description: 'Unique identifier for the Seam workspace associated with the access grant.',
27081
+ format: 'uuid',
27082
+ type: 'string',
27083
+ },
27084
+ },
27085
+ required: [
27086
+ 'workspace_id',
27087
+ 'access_grant_id',
27088
+ 'user_identity_id',
27089
+ 'location_ids',
27090
+ 'access_methods',
27091
+ 'display_name',
27092
+ 'created_at',
27093
+ ],
27094
+ type: 'object',
27095
+ 'x-undocumented': 'Unreleased.',
27096
+ },
27097
+ ok: { type: 'boolean' },
27098
+ },
27099
+ required: ['access_grant', 'ok'],
27100
+ type: 'object',
27101
+ },
27102
+ },
27103
+ },
27104
+ description: 'OK',
27105
+ },
27106
+ 400: { description: 'Bad Request' },
27107
+ 401: { description: 'Unauthorized' },
27108
+ },
27109
+ security: [
27110
+ { pat_with_workspace: [] },
27111
+ { console_session_with_workspace: [] },
27112
+ { api_key: [] },
27113
+ ],
27114
+ summary: '/unstable_access_grants/create',
27115
+ tags: [],
27116
+ 'x-fern-sdk-group-name': ['unstable_access_grants'],
27117
+ 'x-fern-sdk-method-name': 'create',
27118
+ 'x-fern-sdk-return-value': 'access_grant',
27119
+ 'x-response-key': 'access_grant',
27120
+ 'x-title': 'Create an Access Grant',
27121
+ 'x-undocumented': 'Unreleased.',
27122
+ },
27123
+ },
26756
27124
  '/unstable_locations/add_devices': {
26757
27125
  post: {
26758
27126
  description: 'Add devices to a specific location. If a device already belongs to a location it will be moved.',
@@ -29007,6 +29375,7 @@ export default {
29007
29375
  },
29008
29376
  webview_primary_button_color: { type: 'string' },
29009
29377
  webview_primary_button_text_color: { type: 'string' },
29378
+ webview_success_message: { type: 'string' },
29010
29379
  },
29011
29380
  required: ['name'],
29012
29381
  type: 'object',