@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
@@ -35736,6 +35736,26 @@ export interface Routes {
35736
35736
  }
35737
35737
  }
35738
35738
  }
35739
+ '/seam/bridge/v1/bridge_connected_systems/list': {
35740
+ route: '/seam/bridge/v1/bridge_connected_systems/list'
35741
+ method: 'GET' | 'POST'
35742
+ queryParams: {}
35743
+ jsonBody: {}
35744
+ commonParams: {}
35745
+ formData: {}
35746
+ jsonResponse: {
35747
+ bridge_connected_systems: Array<{
35748
+ bridge_id: string
35749
+ bridge_created_at: string
35750
+ connected_account_id: string
35751
+ connected_account_created_at: string
35752
+ acs_system_id: string
35753
+ acs_system_display_name: string
35754
+ workspace_id: string
35755
+ workspace_display_name: string
35756
+ }>
35757
+ }
35758
+ }
35739
35759
  '/thermostats/activate_climate_preset': {
35740
35760
  route: '/thermostats/activate_climate_preset'
35741
35761
  method: 'POST'
@@ -46988,6 +47008,81 @@ export interface Routes {
46988
47008
  formData: {}
46989
47009
  jsonResponse: {}
46990
47010
  }
47011
+ '/unstable_access_grants/create': {
47012
+ route: '/unstable_access_grants/create'
47013
+ method: 'POST'
47014
+ queryParams: {}
47015
+ jsonBody: {}
47016
+ commonParams: (
47017
+ | {
47018
+ /** ID of user identity for whom access is being granted. */
47019
+ user_identity_id?: string | undefined
47020
+ }
47021
+ | {
47022
+ /** When used, creates a new user identity with the given details, and grants them access. */
47023
+ user_identity?:
47024
+ | {
47025
+ /** Unique email address for the user identity. */
47026
+ email_address?: (string | null) | undefined
47027
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
47028
+ phone_number?: (string | null) | undefined
47029
+ full_name?: (string | null) | undefined
47030
+ }
47031
+ | undefined
47032
+ }
47033
+ ) & {
47034
+ /** Set of IDs of existing locations to which access is being granted. */
47035
+ location_ids?: string[] | undefined
47036
+ /** When used, creates a new location with the given entrances and devices, and gives the user access to this location. */
47037
+ location?:
47038
+ | {
47039
+ /** 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. */
47040
+ acs_entrance_ids?: string[]
47041
+ /** 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. */
47042
+ device_ids?: string[]
47043
+ }
47044
+ | undefined
47045
+ desired_access_methods: Array<{
47046
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
47047
+ mode: 'code' | 'card' | 'mobile_key'
47048
+ }>
47049
+ /** 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. */
47050
+ starts_at?: string | undefined
47051
+ /** 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`. */
47052
+ ends_at?: string | undefined
47053
+ }
47054
+ formData: {}
47055
+ jsonResponse: {
47056
+ /** */
47057
+ access_grant: {
47058
+ /** Unique identifier for the Seam workspace associated with the access grant. */
47059
+ workspace_id: string
47060
+ /** ID of the access grant. */
47061
+ access_grant_id: string
47062
+ /** ID of user identity to which access is being granted. */
47063
+ user_identity_id: string
47064
+ /** IDs of the locations to which access is being given. */
47065
+ location_ids: string[]
47066
+ /** Access methods associated with this access grant. */
47067
+ access_methods: Array<{
47068
+ /** Key for the access method - unique within an access grant. */
47069
+ access_method_key: string
47070
+ /** Display name of the access method. */
47071
+ display_name: string
47072
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
47073
+ mode: 'code' | 'card' | 'mobile_key'
47074
+ /** Date and time at which the access method was created. */
47075
+ created_at: string
47076
+ /** Date and time at which the access method was issued. */
47077
+ issued_at: string | null
47078
+ }>
47079
+ /** Display name of the access grant. */
47080
+ display_name: string
47081
+ /** Date and time at which the access grant was created. */
47082
+ created_at: string
47083
+ }
47084
+ }
47085
+ }
46991
47086
  '/unstable_locations/add_devices': {
46992
47087
  route: '/unstable_locations/add_devices'
46993
47088
  method: 'POST' | 'PUT'
@@ -49733,6 +49828,7 @@ export interface Routes {
49733
49828
  webview_primary_button_color?: string | undefined
49734
49829
  webview_primary_button_text_color?: string | undefined
49735
49830
  webview_logo_shape?: ('circle' | 'square') | undefined
49831
+ webview_success_message?: string | undefined
49736
49832
  }
49737
49833
  commonParams: {}
49738
49834
  formData: {}