@seamapi/types 1.1085.0 → 1.1087.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 (31) hide show
  1. package/lib/seam/connect/model-types.d.ts +1 -1
  2. package/lib/seam/connect/models/events/devices.d.ts +12 -6
  3. package/lib/seam/connect/models/events/devices.js +7 -3
  4. package/lib/seam/connect/models/events/devices.js.map +1 -1
  5. package/lib/seam/connect/models/events/seam-event.d.ts +6 -3
  6. package/lib/seam/connect/models/index.d.ts +1 -0
  7. package/lib/seam/connect/models/index.js +1 -0
  8. package/lib/seam/connect/models/index.js.map +1 -1
  9. package/lib/seam/connect/models/instant-keys/instant-key-preview.d.ts +6 -6
  10. package/lib/seam/connect/models/media/index.d.ts +1 -0
  11. package/lib/seam/connect/models/media/index.js +2 -0
  12. package/lib/seam/connect/models/media/index.js.map +1 -0
  13. package/lib/seam/connect/models/media/media.d.ts +36 -0
  14. package/lib/seam/connect/models/media/media.js +44 -0
  15. package/lib/seam/connect/models/media/media.js.map +1 -0
  16. package/lib/seam/connect/openapi.js +186 -4
  17. package/lib/seam/connect/openapi.js.map +1 -1
  18. package/lib/seam/connect/route-types.d.ts +67 -10
  19. package/lib/seam/connect/schemas.d.ts +1 -1
  20. package/lib/seam/connect/schemas.js +1 -1
  21. package/lib/seam/connect/schemas.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  24. package/src/lib/seam/connect/model-types.ts +1 -0
  25. package/src/lib/seam/connect/models/events/devices.ts +9 -3
  26. package/src/lib/seam/connect/models/index.ts +1 -0
  27. package/src/lib/seam/connect/models/media/index.ts +1 -0
  28. package/src/lib/seam/connect/models/media/media.ts +55 -0
  29. package/src/lib/seam/connect/openapi.ts +194 -4
  30. package/src/lib/seam/connect/route-types.ts +71 -17
  31. package/src/lib/seam/connect/schemas.ts +1 -0
@@ -62748,10 +62748,8 @@ export type Routes = {
62748
62748
  image_url?: string | undefined
62749
62749
  /** URL to a short video clip captured at the time of activation. */
62750
62750
  video_url?: string | undefined
62751
- /** Status of the recorded clip and thumbnail for this activation, when the camera supports event recordings. `pending` while Seam retrieves the recording, `available` once it is stored, `unavailable` if no recording covers the activation, and `failed` if retrieval failed. */
62752
- media_status?:
62753
- | ('pending' | 'available' | 'unavailable' | 'failed')
62754
- | undefined
62751
+ /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */
62752
+ media_ids?: string[] | undefined
62755
62753
  }
62756
62754
  | {
62757
62755
  /** ID of the event. */
@@ -62787,6 +62785,8 @@ export type Routes = {
62787
62785
  image_url?: string | undefined
62788
62786
  /** URL to a short video clip captured at the time the doorbell was pressed. */
62789
62787
  video_url?: string | undefined
62788
+ /** IDs of the media, such as a video clip and a thumbnail image, captured when the doorbell was pressed. Use `/media/get` to retrieve each one. */
62789
+ media_ids?: string[] | undefined
62790
62790
  }
62791
62791
  | {
62792
62792
  /** ID of the event. */
@@ -67045,9 +67045,8 @@ export type Routes = {
67045
67045
  image_url?: string | undefined
67046
67046
  /** URL to a short video clip captured at the time of activation. */
67047
67047
  video_url?: string | undefined
67048
- /** Status of the recorded clip and thumbnail for this activation, when the camera supports event recordings. `pending` while Seam retrieves the recording, `available` once it is stored, `unavailable` if no recording covers the activation, and `failed` if retrieval failed. */
67049
- media_status?:
67050
- ('pending' | 'available' | 'unavailable' | 'failed') | undefined
67048
+ /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */
67049
+ media_ids?: string[] | undefined
67051
67050
  }
67052
67051
  | {
67053
67052
  /** ID of the event. */
@@ -67083,6 +67082,8 @@ export type Routes = {
67083
67082
  image_url?: string | undefined
67084
67083
  /** URL to a short video clip captured at the time the doorbell was pressed. */
67085
67084
  video_url?: string | undefined
67085
+ /** IDs of the media, such as a video clip and a thumbnail image, captured when the doorbell was pressed. Use `/media/get` to retrieve each one. */
67086
+ media_ids?: string[] | undefined
67086
67087
  }
67087
67088
  | {
67088
67089
  /** ID of the event. */
@@ -85914,6 +85915,45 @@ export type Routes = {
85914
85915
  }
85915
85916
  maxDuration: undefined
85916
85917
  }
85918
+ '/media/get': {
85919
+ route: '/media/get'
85920
+ method: 'GET' | 'POST'
85921
+ queryParams: {}
85922
+ jsonBody: {}
85923
+ commonParams: {
85924
+ /** ID of the media that you want to get. */
85925
+ media_id: string
85926
+ /** Response format. `json` returns the media object. `redirect` responds with a `302` redirect to the media's download URL, so you can use this endpoint directly as the source of an image or video. */
85927
+ format?: 'json' | 'redirect'
85928
+ }
85929
+ formData: {}
85930
+ jsonResponse: {
85931
+ /** Represents a piece of media, such as a video clip or a thumbnail image, that a device captured for an event. Media is in beta. */
85932
+ media: {
85933
+ /** ID of the media. */
85934
+ media_id: string
85935
+ /** ID of the workspace that contains the media. */
85936
+ workspace_id: string
85937
+ /** ID of the device that captured the media. */
85938
+ device_id: string | null
85939
+ /** ID of the event that the media belongs to. */
85940
+ event_id: string | null
85941
+ /** Type of the media: a video clip or a still image. */
85942
+ media_type: 'video' | 'image'
85943
+ /** MIME type of the media, such as `video/mp4` or `image/jpeg`. */
85944
+ content_type: string | null
85945
+ /** Status of the media. `pending` means that Seam is still retrieving the media. `available` means that `url` can be used to download it. `unavailable` means that no media exists for the event, and `failed` means that Seam could not retrieve it. */
85946
+ status: 'pending' | 'available' | 'unavailable' | 'failed'
85947
+ /** Short-lived URL from which you can download the media. Null unless `status` is `available`. The URL expires after about five minutes. Call `/media/get` again for a new URL. */
85948
+ url: string | null
85949
+ /** Date and time at which the media stops being available. Null when Seam does not know when the media expires. */
85950
+ expires_at: string | null
85951
+ /** Date and time at which the media was created. */
85952
+ created_at: string
85953
+ }
85954
+ }
85955
+ maxDuration: undefined
85956
+ }
85917
85957
  '/noise_sensors/list': {
85918
85958
  route: '/noise_sensors/list'
85919
85959
  method: 'GET' | 'POST'
@@ -100586,6 +100626,9 @@ export type Routes = {
100586
100626
  prefer_guest_phone_last4_as_code?: boolean | undefined
100587
100627
  allow_shared_email_and_phone_across_user_identities?:
100588
100628
  boolean | undefined
100629
+ access_starts_minutes_before_reservation?:
100630
+ number | undefined
100631
+ access_ends_minutes_after_reservation?: number | undefined
100589
100632
  }
100590
100633
  }
100591
100634
  | undefined
@@ -100699,6 +100742,9 @@ export type Routes = {
100699
100742
  prefer_guest_phone_last4_as_code?: boolean | undefined
100700
100743
  allow_shared_email_and_phone_across_user_identities?:
100701
100744
  boolean | undefined
100745
+ access_starts_minutes_before_reservation?:
100746
+ number | undefined
100747
+ access_ends_minutes_after_reservation?: number | undefined
100702
100748
  }
100703
100749
  } | null)
100704
100750
  | undefined
@@ -101167,6 +101213,9 @@ export type Routes = {
101167
101213
  prefer_guest_phone_last4_as_code?: boolean | undefined
101168
101214
  allow_shared_email_and_phone_across_user_identities?:
101169
101215
  boolean | undefined
101216
+ access_starts_minutes_before_reservation?:
101217
+ number | undefined
101218
+ access_ends_minutes_after_reservation?: number | undefined
101170
101219
  }
101171
101220
  }
101172
101221
  | undefined
@@ -101280,6 +101329,9 @@ export type Routes = {
101280
101329
  prefer_guest_phone_last4_as_code?: boolean | undefined
101281
101330
  allow_shared_email_and_phone_across_user_identities?:
101282
101331
  boolean | undefined
101332
+ access_starts_minutes_before_reservation?:
101333
+ number | undefined
101334
+ access_ends_minutes_after_reservation?: number | undefined
101283
101335
  }
101284
101336
  } | null)
101285
101337
  | undefined
@@ -105585,9 +105637,8 @@ export type Routes = {
105585
105637
  image_url?: string | undefined
105586
105638
  /** URL to a short video clip captured at the time of activation. */
105587
105639
  video_url?: string | undefined
105588
- /** Status of the recorded clip and thumbnail for this activation, when the camera supports event recordings. `pending` while Seam retrieves the recording, `available` once it is stored, `unavailable` if no recording covers the activation, and `failed` if retrieval failed. */
105589
- media_status?:
105590
- ('pending' | 'available' | 'unavailable' | 'failed') | undefined
105640
+ /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */
105641
+ media_ids?: string[] | undefined
105591
105642
  }
105592
105643
  | {
105593
105644
  /** ID of the event. */
@@ -105623,6 +105674,8 @@ export type Routes = {
105623
105674
  image_url?: string | undefined
105624
105675
  /** URL to a short video clip captured at the time the doorbell was pressed. */
105625
105676
  video_url?: string | undefined
105677
+ /** IDs of the media, such as a video clip and a thumbnail image, captured when the doorbell was pressed. Use `/media/get` to retrieve each one. */
105678
+ media_ids?: string[] | undefined
105626
105679
  }
105627
105680
  | {
105628
105681
  /** ID of the event. */
@@ -112226,9 +112279,8 @@ export type Routes = {
112226
112279
  image_url?: string | undefined
112227
112280
  /** URL to a short video clip captured at the time of activation. */
112228
112281
  video_url?: string | undefined
112229
- /** Status of the recorded clip and thumbnail for this activation, when the camera supports event recordings. `pending` while Seam retrieves the recording, `available` once it is stored, `unavailable` if no recording covers the activation, and `failed` if retrieval failed. */
112230
- media_status?:
112231
- ('pending' | 'available' | 'unavailable' | 'failed') | undefined
112282
+ /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */
112283
+ media_ids?: string[] | undefined
112232
112284
  }
112233
112285
  | {
112234
112286
  /** ID of the event. */
@@ -112264,6 +112316,8 @@ export type Routes = {
112264
112316
  image_url?: string | undefined
112265
112317
  /** URL to a short video clip captured at the time the doorbell was pressed. */
112266
112318
  video_url?: string | undefined
112319
+ /** IDs of the media, such as a video clip and a thumbnail image, captured when the doorbell was pressed. Use `/media/get` to retrieve each one. */
112320
+ media_ids?: string[] | undefined
112267
112321
  }
112268
112322
  | {
112269
112323
  /** ID of the event. */
@@ -160555,10 +160609,8 @@ export type Routes = {
160555
160609
  image_url?: string | undefined
160556
160610
  /** URL to a short video clip captured at the time of activation. */
160557
160611
  video_url?: string | undefined
160558
- /** Status of the recorded clip and thumbnail for this activation, when the camera supports event recordings. `pending` while Seam retrieves the recording, `available` once it is stored, `unavailable` if no recording covers the activation, and `failed` if retrieval failed. */
160559
- media_status?:
160560
- | ('pending' | 'available' | 'unavailable' | 'failed')
160561
- | undefined
160612
+ /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */
160613
+ media_ids?: string[] | undefined
160562
160614
  }
160563
160615
  | {
160564
160616
  /** ID of the event. */
@@ -160594,6 +160646,8 @@ export type Routes = {
160594
160646
  image_url?: string | undefined
160595
160647
  /** URL to a short video clip captured at the time the doorbell was pressed. */
160596
160648
  video_url?: string | undefined
160649
+ /** IDs of the media, such as a video clip and a thumbnail image, captured when the doorbell was pressed. Use `/media/get` to retrieve each one. */
160650
+ media_ids?: string[] | undefined
160597
160651
  }
160598
160652
  | {
160599
160653
  /** ID of the event. */
@@ -25,6 +25,7 @@ export {
25
25
  device_provider,
26
26
  instant_key,
27
27
  magic_link,
28
+ media,
28
29
  noise_threshold,
29
30
  pagination,
30
31
  seam_event,