@seamapi/http 2.34.0 → 2.35.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 (68) hide show
  1. package/lib/resources/action-attempt.d.ts +63 -0
  2. package/lib/resources/camera-live-view-answer.d.ts +9 -0
  3. package/lib/resources/camera-live-view-answer.js +6 -0
  4. package/lib/resources/camera-live-view-answer.js.map +1 -0
  5. package/lib/resources/camera-live-view-session.d.ts +21 -0
  6. package/lib/resources/camera-live-view-session.js +6 -0
  7. package/lib/resources/camera-live-view-session.js.map +1 -0
  8. package/lib/resources/device-provider.d.ts +8 -0
  9. package/lib/resources/device.d.ts +8 -0
  10. package/lib/resources/event.d.ts +8 -0
  11. package/lib/resources/index.d.ts +3 -0
  12. package/lib/resources/media.d.ts +45 -0
  13. package/lib/resources/media.js +6 -0
  14. package/lib/resources/media.js.map +1 -0
  15. package/lib/resources/unmanaged-device.d.ts +8 -0
  16. package/lib/routes/cameras/cameras.d.ts +19 -0
  17. package/lib/routes/cameras/cameras.js +89 -0
  18. package/lib/routes/cameras/cameras.js.map +1 -0
  19. package/lib/routes/cameras/index.d.ts +2 -0
  20. package/lib/routes/cameras/index.js +7 -0
  21. package/lib/routes/cameras/index.js.map +1 -0
  22. package/lib/routes/cameras/live-views/index.d.ts +1 -0
  23. package/lib/routes/cameras/live-views/index.js +6 -0
  24. package/lib/routes/cameras/live-views/index.js.map +1 -0
  25. package/lib/routes/cameras/live-views/live-views.d.ts +100 -0
  26. package/lib/routes/cameras/live-views/live-views.js +144 -0
  27. package/lib/routes/cameras/live-views/live-views.js.map +1 -0
  28. package/lib/routes/index.d.ts +2 -0
  29. package/lib/routes/index.js +2 -0
  30. package/lib/routes/index.js.map +1 -1
  31. package/lib/routes/media/index.d.ts +1 -0
  32. package/lib/routes/media/index.js +6 -0
  33. package/lib/routes/media/index.js.map +1 -0
  34. package/lib/routes/media/media.d.ts +41 -0
  35. package/lib/routes/media/media.js +102 -0
  36. package/lib/routes/media/media.js.map +1 -0
  37. package/lib/routes/seam-http-endpoints.d.ts +31 -3
  38. package/lib/routes/seam-http-endpoints.js +58 -0
  39. package/lib/routes/seam-http-endpoints.js.map +1 -1
  40. package/lib/routes/seam-http.d.ts +4 -0
  41. package/lib/routes/seam-http.js +8 -0
  42. package/lib/routes/seam-http.js.map +1 -1
  43. package/lib/routes/thermostats/thermostats.d.ts +18 -0
  44. package/lib/routes/thermostats/thermostats.js +20 -0
  45. package/lib/routes/thermostats/thermostats.js.map +1 -1
  46. package/lib/version.d.ts +1 -1
  47. package/lib/version.js +1 -1
  48. package/package.json +2 -2
  49. package/src/lib/resources/action-attempt.ts +77 -0
  50. package/src/lib/resources/camera-live-view-answer.ts +14 -0
  51. package/src/lib/resources/camera-live-view-session.ts +29 -0
  52. package/src/lib/resources/device-provider.ts +8 -0
  53. package/src/lib/resources/device.ts +8 -0
  54. package/src/lib/resources/event.ts +8 -0
  55. package/src/lib/resources/index.ts +3 -0
  56. package/src/lib/resources/media.ts +54 -0
  57. package/src/lib/resources/unmanaged-device.ts +8 -0
  58. package/src/lib/routes/cameras/cameras.ts +165 -0
  59. package/src/lib/routes/cameras/index.ts +7 -0
  60. package/src/lib/routes/cameras/live-views/index.ts +6 -0
  61. package/src/lib/routes/cameras/live-views/live-views.ts +316 -0
  62. package/src/lib/routes/index.ts +2 -0
  63. package/src/lib/routes/media/index.ts +6 -0
  64. package/src/lib/routes/media/media.ts +203 -0
  65. package/src/lib/routes/seam-http-endpoints.ts +112 -0
  66. package/src/lib/routes/seam-http.ts +10 -0
  67. package/src/lib/routes/thermostats/thermostats.ts +49 -0
  68. package/src/lib/version.ts +1 -1
@@ -0,0 +1,144 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../auth.js';
6
+ import { createClient } from '../../../client.js';
7
+ import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../options.js';
8
+ import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../parse-options.js';
9
+ import { SeamHttpClientSessions } from '../../../routes/client-sessions/index.js';
10
+ import { SeamHttpRequest, } from '../../../seam-http-request.js';
11
+ import { SeamPaginator } from '../../../seam-paginator.js';
12
+ export class SeamHttpCamerasLiveViews {
13
+ client;
14
+ defaults;
15
+ constructor(apiKeyOrOptions = {}) {
16
+ const options = parseOptions(apiKeyOrOptions);
17
+ this.client = 'client' in options ? options.client : createClient(options);
18
+ this.defaults = limitToSeamHttpRequestOptions(options);
19
+ }
20
+ static fromClient(client, options = {}) {
21
+ const constructorOptions = { ...options, client };
22
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
23
+ throw new SeamHttpInvalidOptionsError('Missing client');
24
+ }
25
+ return new SeamHttpCamerasLiveViews(constructorOptions);
26
+ }
27
+ static fromApiKey(apiKey, options = {}) {
28
+ const constructorOptions = { ...options, apiKey };
29
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
30
+ throw new SeamHttpInvalidOptionsError('Missing apiKey');
31
+ }
32
+ return new SeamHttpCamerasLiveViews(constructorOptions);
33
+ }
34
+ static fromClientSessionToken(clientSessionToken, options = {}) {
35
+ const constructorOptions = { ...options, clientSessionToken };
36
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
37
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
38
+ }
39
+ return new SeamHttpCamerasLiveViews(constructorOptions);
40
+ }
41
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
42
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
43
+ const clientOptions = parseOptions({ ...options, publishableKey });
44
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
45
+ throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpCamerasLiveViews.fromPublishableKey');
46
+ }
47
+ const client = createClient(clientOptions);
48
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
49
+ const { token } = await clientSessions.getOrCreate({
50
+ user_identifier_key: userIdentifierKey,
51
+ });
52
+ return SeamHttpCamerasLiveViews.fromClientSessionToken(token, options);
53
+ }
54
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
55
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
56
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
57
+ throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
58
+ }
59
+ return new SeamHttpCamerasLiveViews(constructorOptions);
60
+ }
61
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
62
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
63
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
64
+ throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
65
+ }
66
+ return new SeamHttpCamerasLiveViews(constructorOptions);
67
+ }
68
+ createPaginator(request) {
69
+ return new SeamPaginator(request);
70
+ }
71
+ async updateClientSessionToken(clientSessionToken) {
72
+ const { headers } = this.client.defaults;
73
+ const authHeaders = getAuthHeadersForClientSessionToken({
74
+ clientSessionToken,
75
+ });
76
+ for (const key of Object.keys(authHeaders)) {
77
+ if (headers[key] == null) {
78
+ throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
79
+ }
80
+ }
81
+ this.client.defaults.headers = { ...headers, ...authHeaders };
82
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
83
+ await clientSessions.get();
84
+ }
85
+ /**
86
+ * Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.
87
+ *
88
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support. To check whether a camera supports live view, use `device.can_stream_live_video`.
89
+ */
90
+ create(parameters, options = {}) {
91
+ return new SeamHttpRequest(this, {
92
+ pathname: '/cameras/live_views/create',
93
+ method: 'POST',
94
+ body: parameters,
95
+ parameters,
96
+ hasRequiredParameters: true,
97
+ requiredParameterNames: ['device_id'],
98
+ atLeastOneParameterNames: [],
99
+ responseKey: 'camera_live_view_session',
100
+ options,
101
+ });
102
+ }
103
+ /**
104
+ * Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.
105
+ *
106
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support.
107
+ */
108
+ offer(parameters, options = {}) {
109
+ return new SeamHttpRequest(this, {
110
+ pathname: '/cameras/live_views/offer',
111
+ method: 'POST',
112
+ body: parameters,
113
+ parameters,
114
+ hasRequiredParameters: true,
115
+ requiredParameterNames: [
116
+ 'camera_live_view_session_id',
117
+ 'sdp_offer',
118
+ 'token',
119
+ ],
120
+ atLeastOneParameterNames: [],
121
+ responseKey: 'camera_live_view_answer',
122
+ options,
123
+ });
124
+ }
125
+ /**
126
+ * Stops a camera live view session that the current client session owns.
127
+ *
128
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support.
129
+ */
130
+ stop(parameters, options = {}) {
131
+ return new SeamHttpRequest(this, {
132
+ pathname: '/cameras/live_views/stop',
133
+ method: 'POST',
134
+ body: parameters,
135
+ parameters,
136
+ hasRequiredParameters: true,
137
+ requiredParameterNames: ['camera_live_view_session_id', 'token'],
138
+ atLeastOneParameterNames: [],
139
+ responseKey: undefined,
140
+ options,
141
+ });
142
+ }
143
+ }
144
+ //# sourceMappingURL=live-views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-views.js","sourceRoot":"","sources":["../../../../src/lib/routes/cameras/live-views/live-views.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,aAAa,CAAA;AACpB,OAAO,EAAe,YAAY,EAAE,MAAM,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EAAE,CAAA;IAC5B,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,UAA4C,EAC5C,UAAyC,EAAE;QAE3C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,4BAA4B;YACtC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,UAAU;YACV,qBAAqB,EAAE,IAAI;YAC3B,sBAAsB,EAAE,CAAC,WAAW,CAAC;YACrC,wBAAwB,EAAE,EAAE;YAC5B,WAAW,EAAE,0BAA0B;YACvC,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CACH,UAA2C,EAC3C,UAAwC,EAAE;QAE1C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,UAAU;YACV,qBAAqB,EAAE,IAAI;YAC3B,sBAAsB,EAAE;gBACtB,6BAA6B;gBAC7B,WAAW;gBACX,OAAO;aACR;YACD,wBAAwB,EAAE,EAAE;YAC5B,WAAW,EAAE,yBAAyB;YACtC,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,UAA0C,EAC1C,UAAuC,EAAE;QAEzC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,0BAA0B;YACpC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,UAAU;YACV,qBAAqB,EAAE,IAAI;YAC3B,sBAAsB,EAAE,CAAC,6BAA6B,EAAE,OAAO,CAAC;YAChE,wBAAwB,EAAE,EAAE;YAC5B,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -3,6 +3,7 @@ export * from './access-grants/index.js';
3
3
  export * from './access-methods/index.js';
4
4
  export * from './acs/index.js';
5
5
  export * from './action-attempts/index.js';
6
+ export * from './cameras/index.js';
6
7
  export * from './client-sessions/index.js';
7
8
  export * from './connect-webviews/index.js';
8
9
  export * from './connected-accounts/index.js';
@@ -11,6 +12,7 @@ export * from './devices/index.js';
11
12
  export * from './events/index.js';
12
13
  export * from './instant-keys/index.js';
13
14
  export * from './locks/index.js';
15
+ export * from './media/index.js';
14
16
  export * from './noise-sensors/index.js';
15
17
  export * from './phones/index.js';
16
18
  export * from './seam-http.js';
@@ -7,6 +7,7 @@ export * from './access-grants/index.js';
7
7
  export * from './access-methods/index.js';
8
8
  export * from './acs/index.js';
9
9
  export * from './action-attempts/index.js';
10
+ export * from './cameras/index.js';
10
11
  export * from './client-sessions/index.js';
11
12
  export * from './connect-webviews/index.js';
12
13
  export * from './connected-accounts/index.js';
@@ -15,6 +16,7 @@ export * from './devices/index.js';
15
16
  export * from './events/index.js';
16
17
  export * from './instant-keys/index.js';
17
18
  export * from './locks/index.js';
19
+ export * from './media/index.js';
18
20
  export * from './noise-sensors/index.js';
19
21
  export * from './phones/index.js';
20
22
  export * from './seam-http.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/routes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,4CAA4C,CAAA;AAC1D,cAAc,kCAAkC,CAAA;AAChD,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/routes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,4CAA4C,CAAA;AAC1D,cAAc,kCAAkC,CAAA;AAChD,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './media.js';
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+ export * from './media.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/routes/media/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,YAAY,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { type Client } from '../../client.js';
2
+ import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../options.js';
3
+ import type { Media } from '../../resources/media.js';
4
+ import { SeamHttpRequest, type SeamPaginatedRequest } from '../../seam-http-request.js';
5
+ import { SeamPaginator } from '../../seam-paginator.js';
6
+ export declare class SeamHttpMedia {
7
+ client: Client;
8
+ readonly defaults: Required<SeamHttpRequestOptions>;
9
+ constructor(apiKeyOrOptions?: string | SeamHttpOptions);
10
+ static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpMedia;
11
+ static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpMedia;
12
+ static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpMedia;
13
+ static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpMedia>;
14
+ static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpMedia;
15
+ static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpMedia;
16
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamPaginatedRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
17
+ updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
18
+ /**
19
+ * Returns a specified piece of media, such as a video clip or thumbnail image captured for a camera event, with a short-lived URL from which you can download it. Camera events list their media in `media_ids`. This endpoint is in beta.
20
+ */
21
+ get(parameters: MediaGetParameters, options?: MediaGetOptions): MediaGetRequest;
22
+ }
23
+ export type MediaGetParameters = {
24
+ /**
25
+ * 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.
26
+ */
27
+ format?: 'json' | 'redirect' | undefined;
28
+ /**
29
+ * ID of the media that you want to get.
30
+ */
31
+ media_id: string;
32
+ };
33
+ /**
34
+ * @deprecated Use MediaGetRequest instead.
35
+ */
36
+ export type MediaGetResponse = {
37
+ media: Media;
38
+ };
39
+ export type MediaGetRequest = SeamHttpRequest<MediaGetResponse, 'media'>;
40
+ export interface MediaGetOptions {
41
+ }
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../auth.js';
6
+ import { createClient } from '../../client.js';
7
+ import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../options.js';
8
+ import { limitToSeamHttpRequestOptions, parseOptions, } from '../../parse-options.js';
9
+ import { SeamHttpClientSessions } from '../../routes/client-sessions/index.js';
10
+ import { SeamHttpRequest, } from '../../seam-http-request.js';
11
+ import { SeamPaginator } from '../../seam-paginator.js';
12
+ export class SeamHttpMedia {
13
+ client;
14
+ defaults;
15
+ constructor(apiKeyOrOptions = {}) {
16
+ const options = parseOptions(apiKeyOrOptions);
17
+ this.client = 'client' in options ? options.client : createClient(options);
18
+ this.defaults = limitToSeamHttpRequestOptions(options);
19
+ }
20
+ static fromClient(client, options = {}) {
21
+ const constructorOptions = { ...options, client };
22
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
23
+ throw new SeamHttpInvalidOptionsError('Missing client');
24
+ }
25
+ return new SeamHttpMedia(constructorOptions);
26
+ }
27
+ static fromApiKey(apiKey, options = {}) {
28
+ const constructorOptions = { ...options, apiKey };
29
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
30
+ throw new SeamHttpInvalidOptionsError('Missing apiKey');
31
+ }
32
+ return new SeamHttpMedia(constructorOptions);
33
+ }
34
+ static fromClientSessionToken(clientSessionToken, options = {}) {
35
+ const constructorOptions = { ...options, clientSessionToken };
36
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
37
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
38
+ }
39
+ return new SeamHttpMedia(constructorOptions);
40
+ }
41
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
42
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
43
+ const clientOptions = parseOptions({ ...options, publishableKey });
44
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
45
+ throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpMedia.fromPublishableKey');
46
+ }
47
+ const client = createClient(clientOptions);
48
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
49
+ const { token } = await clientSessions.getOrCreate({
50
+ user_identifier_key: userIdentifierKey,
51
+ });
52
+ return SeamHttpMedia.fromClientSessionToken(token, options);
53
+ }
54
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
55
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
56
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
57
+ throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
58
+ }
59
+ return new SeamHttpMedia(constructorOptions);
60
+ }
61
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
62
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
63
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
64
+ throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
65
+ }
66
+ return new SeamHttpMedia(constructorOptions);
67
+ }
68
+ createPaginator(request) {
69
+ return new SeamPaginator(request);
70
+ }
71
+ async updateClientSessionToken(clientSessionToken) {
72
+ const { headers } = this.client.defaults;
73
+ const authHeaders = getAuthHeadersForClientSessionToken({
74
+ clientSessionToken,
75
+ });
76
+ for (const key of Object.keys(authHeaders)) {
77
+ if (headers[key] == null) {
78
+ throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
79
+ }
80
+ }
81
+ this.client.defaults.headers = { ...headers, ...authHeaders };
82
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
83
+ await clientSessions.get();
84
+ }
85
+ /**
86
+ * Returns a specified piece of media, such as a video clip or thumbnail image captured for a camera event, with a short-lived URL from which you can download it. Camera events list their media in `media_ids`. This endpoint is in beta.
87
+ */
88
+ get(parameters, options = {}) {
89
+ return new SeamHttpRequest(this, {
90
+ pathname: '/media/get',
91
+ method: 'GET',
92
+ params: parameters,
93
+ parameters,
94
+ hasRequiredParameters: true,
95
+ requiredParameterNames: ['media_id'],
96
+ atLeastOneParameterNames: [],
97
+ responseKey: 'media',
98
+ options,
99
+ });
100
+ }
101
+ }
102
+ //# sourceMappingURL=media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media.js","sourceRoot":"","sources":["../../../src/lib/routes/media/media.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,aAAa,CAAA;AACpB,OAAO,EAAe,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EACL,2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H,GAAG,CACD,UAA8B,EAC9B,UAA2B,EAAE;QAE7B,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,YAAY;YACtB,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,UAAU;YACV,qBAAqB,EAAE,IAAI;YAC3B,sBAAsB,EAAE,CAAC,UAAU,CAAC;YACpC,wBAAwB,EAAE,EAAE;YAC5B,WAAW,EAAE,OAAO;YACpB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -17,6 +17,7 @@ import { type AcsEntrancesGetOptions, type AcsEntrancesGetParameters, type AcsEn
17
17
  import { type AcsSystemsGetOptions, type AcsSystemsGetParameters, type AcsSystemsGetRequest, type AcsSystemsListCompatibleCredentialManagerAcsSystemsOptions, type AcsSystemsListCompatibleCredentialManagerAcsSystemsParameters, type AcsSystemsListCompatibleCredentialManagerAcsSystemsRequest, type AcsSystemsListOptions, type AcsSystemsListParameters, type AcsSystemsListRequest, type AcsSystemsReportDevicesOptions, type AcsSystemsReportDevicesParameters, type AcsSystemsReportDevicesRequest } from './acs/systems/index.js';
18
18
  import { type AcsUsersAddToAccessGroupOptions, type AcsUsersAddToAccessGroupParameters, type AcsUsersAddToAccessGroupRequest, type AcsUsersCreateOptions, type AcsUsersCreateParameters, type AcsUsersCreateRequest, type AcsUsersDeleteOptions, type AcsUsersDeleteParameters, type AcsUsersDeleteRequest, type AcsUsersGetOptions, type AcsUsersGetParameters, type AcsUsersGetRequest, type AcsUsersListAccessibleEntrancesOptions, type AcsUsersListAccessibleEntrancesParameters, type AcsUsersListAccessibleEntrancesRequest, type AcsUsersListOptions, type AcsUsersListParameters, type AcsUsersListRequest, type AcsUsersRemoveFromAccessGroupOptions, type AcsUsersRemoveFromAccessGroupParameters, type AcsUsersRemoveFromAccessGroupRequest, type AcsUsersRevokeAccessToAllEntrancesOptions, type AcsUsersRevokeAccessToAllEntrancesParameters, type AcsUsersRevokeAccessToAllEntrancesRequest, type AcsUsersSuspendOptions, type AcsUsersSuspendParameters, type AcsUsersSuspendRequest, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendParameters, type AcsUsersUnsuspendRequest, type AcsUsersUpdateOptions, type AcsUsersUpdateParameters, type AcsUsersUpdateRequest } from './acs/users/index.js';
19
19
  import { type ActionAttemptsGetOptions, type ActionAttemptsGetParameters, type ActionAttemptsGetRequest, type ActionAttemptsListOptions, type ActionAttemptsListParameters, type ActionAttemptsListRequest } from './action-attempts/index.js';
20
+ import { type CamerasLiveViewsCreateOptions, type CamerasLiveViewsCreateParameters, type CamerasLiveViewsCreateRequest, type CamerasLiveViewsOfferOptions, type CamerasLiveViewsOfferParameters, type CamerasLiveViewsOfferRequest, type CamerasLiveViewsStopOptions, type CamerasLiveViewsStopParameters, type CamerasLiveViewsStopRequest } from './cameras/live-views/index.js';
20
21
  import { type ClientSessionsCreateOptions, type ClientSessionsCreateParameters, type ClientSessionsCreateRequest, type ClientSessionsDeleteOptions, type ClientSessionsDeleteParameters, type ClientSessionsDeleteRequest, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateParameters, type ClientSessionsGetOrCreateRequest, type ClientSessionsGetParameters, type ClientSessionsGetRequest, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessParameters, type ClientSessionsGrantAccessRequest, type ClientSessionsListOptions, type ClientSessionsListParameters, type ClientSessionsListRequest, type ClientSessionsRevokeOptions, type ClientSessionsRevokeParameters, type ClientSessionsRevokeRequest } from './client-sessions/index.js';
21
22
  import { type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateParameters, type ConnectWebviewsCreateRequest, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteParameters, type ConnectWebviewsDeleteRequest, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParameters, type ConnectWebviewsGetRequest, type ConnectWebviewsListOptions, type ConnectWebviewsListParameters, type ConnectWebviewsListRequest } from './connect-webviews/index.js';
22
23
  import { type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteParameters, type ConnectedAccountsDeleteRequest, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParameters, type ConnectedAccountsGetRequest, type ConnectedAccountsListOptions, type ConnectedAccountsListParameters, type ConnectedAccountsListRequest, type ConnectedAccountsSyncOptions, type ConnectedAccountsSyncParameters, type ConnectedAccountsSyncRequest, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateParameters, type ConnectedAccountsUpdateRequest } from './connected-accounts/index.js';
@@ -29,6 +30,7 @@ import { type EventsGetOptions, type EventsGetParameters, type EventsGetRequest,
29
30
  import { type InstantKeysDeleteOptions, type InstantKeysDeleteParameters, type InstantKeysDeleteRequest, type InstantKeysGetOptions, type InstantKeysGetParameters, type InstantKeysGetRequest, type InstantKeysListOptions, type InstantKeysListParameters, type InstantKeysListRequest } from './instant-keys/index.js';
30
31
  import { type LocksConfigureAutoLockOptions, type LocksConfigureAutoLockParameters, type LocksConfigureAutoLockRequest, type LocksGetOptions, type LocksGetParameters, type LocksGetRequest, type LocksListOptions, type LocksListParameters, type LocksListRequest, type LocksLockDoorOptions, type LocksLockDoorParameters, type LocksLockDoorRequest, type LocksUnlockDoorOptions, type LocksUnlockDoorParameters, type LocksUnlockDoorRequest } from './locks/index.js';
31
32
  import { type LocksSimulateKeypadCodeEntryOptions, type LocksSimulateKeypadCodeEntryParameters, type LocksSimulateKeypadCodeEntryRequest, type LocksSimulateManualLockViaKeypadOptions, type LocksSimulateManualLockViaKeypadParameters, type LocksSimulateManualLockViaKeypadRequest } from './locks/simulate/index.js';
33
+ import { type MediaGetOptions, type MediaGetParameters, type MediaGetRequest } from './media/index.js';
32
34
  import { type NoiseSensorsListOptions, type NoiseSensorsListParameters, type NoiseSensorsListRequest } from './noise-sensors/index.js';
33
35
  import { type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateParameters, type NoiseSensorsNoiseThresholdsCreateRequest, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteParameters, type NoiseSensorsNoiseThresholdsDeleteRequest, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParameters, type NoiseSensorsNoiseThresholdsGetRequest, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParameters, type NoiseSensorsNoiseThresholdsListRequest, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateParameters, type NoiseSensorsNoiseThresholdsUpdateRequest } from './noise-sensors/noise-thresholds/index.js';
34
36
  import { type NoiseSensorsSimulateTriggerNoiseThresholdOptions, type NoiseSensorsSimulateTriggerNoiseThresholdParameters, type NoiseSensorsSimulateTriggerNoiseThresholdRequest } from './noise-sensors/simulate/index.js';
@@ -36,7 +38,7 @@ import { type PhonesDeactivateOptions, type PhonesDeactivateParameters, type Pho
36
38
  import { type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneParameters, type PhonesSimulateCreateSandboxPhoneRequest } from './phones/simulate/index.js';
37
39
  import { type SpacesAddAcsEntrancesOptions, type SpacesAddAcsEntrancesParameters, type SpacesAddAcsEntrancesRequest, type SpacesAddConnectedAccountOptions, type SpacesAddConnectedAccountParameters, type SpacesAddConnectedAccountRequest, type SpacesAddDevicesOptions, type SpacesAddDevicesParameters, type SpacesAddDevicesRequest, type SpacesCreateOptions, type SpacesCreateParameters, type SpacesCreateRequest, type SpacesDeleteOptions, type SpacesDeleteParameters, type SpacesDeleteRequest, type SpacesGetOptions, type SpacesGetParameters, type SpacesGetRelatedOptions, type SpacesGetRelatedParameters, type SpacesGetRelatedRequest, type SpacesGetRequest, type SpacesListOptions, type SpacesListParameters, type SpacesListRequest, type SpacesRemoveAcsEntrancesOptions, type SpacesRemoveAcsEntrancesParameters, type SpacesRemoveAcsEntrancesRequest, type SpacesRemoveConnectedAccountOptions, type SpacesRemoveConnectedAccountParameters, type SpacesRemoveConnectedAccountRequest, type SpacesRemoveDevicesOptions, type SpacesRemoveDevicesParameters, type SpacesRemoveDevicesRequest, type SpacesUpdateOptions, type SpacesUpdateParameters, type SpacesUpdateRequest } from './spaces/index.js';
38
40
  import { type ThermostatsDailyProgramsCreateOptions, type ThermostatsDailyProgramsCreateParameters, type ThermostatsDailyProgramsCreateRequest, type ThermostatsDailyProgramsDeleteOptions, type ThermostatsDailyProgramsDeleteParameters, type ThermostatsDailyProgramsDeleteRequest, type ThermostatsDailyProgramsUpdateOptions, type ThermostatsDailyProgramsUpdateParameters, type ThermostatsDailyProgramsUpdateRequest } from './thermostats/daily-programs/index.js';
39
- import { type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetParameters, type ThermostatsActivateClimatePresetRequest, type ThermostatsCoolOptions, type ThermostatsCoolParameters, type ThermostatsCoolRequest, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetParameters, type ThermostatsCreateClimatePresetRequest, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetParameters, type ThermostatsDeleteClimatePresetRequest, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolParameters, type ThermostatsHeatCoolRequest, type ThermostatsHeatOptions, type ThermostatsHeatParameters, type ThermostatsHeatRequest, type ThermostatsListOptions, type ThermostatsListParameters, type ThermostatsListRequest, type ThermostatsOffOptions, type ThermostatsOffParameters, type ThermostatsOffRequest, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetParameters, type ThermostatsSetFallbackClimatePresetRequest, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeParameters, type ThermostatsSetFanModeRequest, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeParameters, type ThermostatsSetHvacModeRequest, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdParameters, type ThermostatsSetTemperatureThresholdRequest, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetParameters, type ThermostatsUpdateClimatePresetRequest, type ThermostatsUpdateWeeklyProgramOptions, type ThermostatsUpdateWeeklyProgramParameters, type ThermostatsUpdateWeeklyProgramRequest } from './thermostats/index.js';
41
+ import { type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetParameters, type ThermostatsActivateClimatePresetRequest, type ThermostatsActivateWeeklyProgramOptions, type ThermostatsActivateWeeklyProgramParameters, type ThermostatsActivateWeeklyProgramRequest, type ThermostatsCoolOptions, type ThermostatsCoolParameters, type ThermostatsCoolRequest, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetParameters, type ThermostatsCreateClimatePresetRequest, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetParameters, type ThermostatsDeleteClimatePresetRequest, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolParameters, type ThermostatsHeatCoolRequest, type ThermostatsHeatOptions, type ThermostatsHeatParameters, type ThermostatsHeatRequest, type ThermostatsListOptions, type ThermostatsListParameters, type ThermostatsListRequest, type ThermostatsOffOptions, type ThermostatsOffParameters, type ThermostatsOffRequest, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetParameters, type ThermostatsSetFallbackClimatePresetRequest, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeParameters, type ThermostatsSetFanModeRequest, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeParameters, type ThermostatsSetHvacModeRequest, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdParameters, type ThermostatsSetTemperatureThresholdRequest, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetParameters, type ThermostatsUpdateClimatePresetRequest, type ThermostatsUpdateWeeklyProgramOptions, type ThermostatsUpdateWeeklyProgramParameters, type ThermostatsUpdateWeeklyProgramRequest } from './thermostats/index.js';
40
42
  import { type ThermostatsSchedulesCreateOptions, type ThermostatsSchedulesCreateParameters, type ThermostatsSchedulesCreateRequest, type ThermostatsSchedulesDeleteOptions, type ThermostatsSchedulesDeleteParameters, type ThermostatsSchedulesDeleteRequest, type ThermostatsSchedulesGetOptions, type ThermostatsSchedulesGetParameters, type ThermostatsSchedulesGetRequest, type ThermostatsSchedulesListOptions, type ThermostatsSchedulesListParameters, type ThermostatsSchedulesListRequest, type ThermostatsSchedulesUpdateOptions, type ThermostatsSchedulesUpdateParameters, type ThermostatsSchedulesUpdateRequest } from './thermostats/schedules/index.js';
41
43
  import { type ThermostatsSimulateHvacModeAdjustedOptions, type ThermostatsSimulateHvacModeAdjustedParameters, type ThermostatsSimulateHvacModeAdjustedRequest, type ThermostatsSimulateTemperatureReachedOptions, type ThermostatsSimulateTemperatureReachedParameters, type ThermostatsSimulateTemperatureReachedRequest } from './thermostats/simulate/index.js';
42
44
  import { type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserParameters, type UserIdentitiesAddAcsUserRequest, type UserIdentitiesCreateOptions, type UserIdentitiesCreateParameters, type UserIdentitiesCreateRequest, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteParameters, type UserIdentitiesDeleteRequest, type UserIdentitiesGenerateInstantKeyOptions, type UserIdentitiesGenerateInstantKeyParameters, type UserIdentitiesGenerateInstantKeyRequest, type UserIdentitiesGetOptions, type UserIdentitiesGetParameters, type UserIdentitiesGetRequest, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceParameters, type UserIdentitiesGrantAccessToDeviceRequest, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParameters, type UserIdentitiesListAccessibleDevicesRequest, type UserIdentitiesListAccessibleEntrancesOptions, type UserIdentitiesListAccessibleEntrancesParameters, type UserIdentitiesListAccessibleEntrancesRequest, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParameters, type UserIdentitiesListAcsSystemsRequest, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParameters, type UserIdentitiesListAcsUsersRequest, type UserIdentitiesListOptions, type UserIdentitiesListParameters, type UserIdentitiesListRequest, type UserIdentitiesMergeOptions, type UserIdentitiesMergeParameters, type UserIdentitiesMergeRequest, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserParameters, type UserIdentitiesRemoveAcsUserRequest, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceParameters, type UserIdentitiesRevokeAccessToDeviceRequest, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateParameters, type UserIdentitiesUpdateRequest } from './user-identities/index.js';
@@ -423,6 +425,24 @@ export declare class SeamHttpEndpoints {
423
425
  * Returns a list of the [action attempts](https://www.seam.co/docs/core-concepts/action-attempts) that you specify as an array of `action_attempt_id`s.
424
426
  */
425
427
  get '/action_attempts/list'(): (parameters?: ActionAttemptsListParameters, options?: ActionAttemptsListOptions) => ActionAttemptsListRequest;
428
+ /**
429
+ * Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.
430
+ *
431
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support. To check whether a camera supports live view, use `device.can_stream_live_video`.
432
+ */
433
+ get '/cameras/live_views/create'(): (parameters: CamerasLiveViewsCreateParameters, options?: CamerasLiveViewsCreateOptions) => CamerasLiveViewsCreateRequest;
434
+ /**
435
+ * Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.
436
+ *
437
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support.
438
+ */
439
+ get '/cameras/live_views/offer'(): (parameters: CamerasLiveViewsOfferParameters, options?: CamerasLiveViewsOfferOptions) => CamerasLiveViewsOfferRequest;
440
+ /**
441
+ * Stops a camera live view session that the current client session owns.
442
+ *
443
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support.
444
+ */
445
+ get '/cameras/live_views/stop'(): (parameters: CamerasLiveViewsStopParameters, options?: CamerasLiveViewsStopOptions) => CamerasLiveViewsStopRequest;
426
446
  /**
427
447
  * Creates a new [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).
428
448
  */
@@ -650,6 +670,10 @@ export declare class SeamHttpEndpoints {
650
670
  * Simulates a manual lock action using a keypad. You can only perform this action for [August](https://www.seam.co/docs/device-and-system-integration-guides/august-locks) devices within [sandbox workspaces](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).
651
671
  */
652
672
  get '/locks/simulate/manual_lock_via_keypad'(): (parameters: LocksSimulateManualLockViaKeypadParameters, options?: LocksSimulateManualLockViaKeypadOptions) => LocksSimulateManualLockViaKeypadRequest;
673
+ /**
674
+ * Returns a specified piece of media, such as a video clip or thumbnail image captured for a camera event, with a short-lived URL from which you can download it. Camera events list their media in `media_ids`. This endpoint is in beta.
675
+ */
676
+ get '/media/get'(): (parameters: MediaGetParameters, options?: MediaGetOptions) => MediaGetRequest;
653
677
  /**
654
678
  * Returns a list of all [noise sensors](https://www.seam.co/docs/capability-guides/noise-sensors).
655
679
  */
@@ -746,6 +770,10 @@ export declare class SeamHttpEndpoints {
746
770
  * Activates a specified [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).
747
771
  */
748
772
  get '/thermostats/activate_climate_preset'(): (parameters: ThermostatsActivateClimatePresetParameters, options?: ThermostatsActivateClimatePresetOptions) => ThermostatsActivateClimatePresetRequest;
773
+ /**
774
+ * Returns a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to its [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs), the schedule that is configured on the device itself, releasing any hold that Seam has set. Seam stops managing the thermostat's climate until you [activate a climate preset](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings), make a direct climate setting change, or one of the thermostat's [scheduled](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) presets reaches its activation time.
775
+ */
776
+ get '/thermostats/activate_weekly_program'(): (parameters: ThermostatsActivateWeeklyProgramParameters, options?: ThermostatsActivateWeeklyProgramOptions) => ThermostatsActivateWeeklyProgramRequest;
749
777
  /**
750
778
  * Sets a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to [cool mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings).
751
779
  */
@@ -963,6 +991,6 @@ export declare class SeamHttpEndpoints {
963
991
  */
964
992
  get '/workspaces/update'(): (parameters?: WorkspacesUpdateParameters, options?: WorkspacesUpdateOptions) => WorkspacesUpdateRequest;
965
993
  }
966
- export type SeamHttpEndpointQueryPaths = '/access_codes/generate_code' | '/access_codes/get' | '/access_codes/list' | '/access_codes/unmanaged/get' | '/access_codes/unmanaged/list' | '/access_grants/get' | '/access_grants/get_related' | '/access_grants/list' | '/access_grants/unmanaged/get' | '/access_grants/unmanaged/list' | '/access_methods/get' | '/access_methods/get_related' | '/access_methods/list' | '/access_methods/unmanaged/get' | '/access_methods/unmanaged/list' | '/acs/access_groups/get' | '/acs/access_groups/list' | '/acs/access_groups/list_accessible_entrances' | '/acs/access_groups/list_users' | '/acs/credentials/get' | '/acs/credentials/list' | '/acs/credentials/list_accessible_entrances' | '/acs/encoders/get' | '/acs/encoders/list' | '/acs/entrances/get' | '/acs/entrances/list' | '/acs/entrances/list_credentials_with_access' | '/acs/systems/get' | '/acs/systems/list' | '/acs/systems/list_compatible_credential_manager_acs_systems' | '/acs/users/get' | '/acs/users/list' | '/acs/users/list_accessible_entrances' | '/action_attempts/get' | '/action_attempts/list' | '/client_sessions/get' | '/client_sessions/list' | '/connect_webviews/get' | '/connect_webviews/list' | '/connected_accounts/get' | '/connected_accounts/list' | '/devices/get' | '/devices/list' | '/devices/list_device_providers' | '/devices/unmanaged/get' | '/devices/unmanaged/list' | '/events/get' | '/events/list' | '/instant_keys/get' | '/instant_keys/list' | '/locks/get' | '/locks/list' | '/noise_sensors/list' | '/noise_sensors/noise_thresholds/get' | '/noise_sensors/noise_thresholds/list' | '/phones/get' | '/phones/list' | '/spaces/get' | '/spaces/get_related' | '/spaces/list' | '/thermostats/list' | '/thermostats/schedules/get' | '/thermostats/schedules/list' | '/user_identities/get' | '/user_identities/list' | '/user_identities/list_accessible_devices' | '/user_identities/list_accessible_entrances' | '/user_identities/list_acs_systems' | '/user_identities/list_acs_users' | '/user_identities/unmanaged/get' | '/user_identities/unmanaged/list' | '/webhooks/get' | '/webhooks/list' | '/workspaces/get' | '/workspaces/list';
994
+ export type SeamHttpEndpointQueryPaths = '/access_codes/generate_code' | '/access_codes/get' | '/access_codes/list' | '/access_codes/unmanaged/get' | '/access_codes/unmanaged/list' | '/access_grants/get' | '/access_grants/get_related' | '/access_grants/list' | '/access_grants/unmanaged/get' | '/access_grants/unmanaged/list' | '/access_methods/get' | '/access_methods/get_related' | '/access_methods/list' | '/access_methods/unmanaged/get' | '/access_methods/unmanaged/list' | '/acs/access_groups/get' | '/acs/access_groups/list' | '/acs/access_groups/list_accessible_entrances' | '/acs/access_groups/list_users' | '/acs/credentials/get' | '/acs/credentials/list' | '/acs/credentials/list_accessible_entrances' | '/acs/encoders/get' | '/acs/encoders/list' | '/acs/entrances/get' | '/acs/entrances/list' | '/acs/entrances/list_credentials_with_access' | '/acs/systems/get' | '/acs/systems/list' | '/acs/systems/list_compatible_credential_manager_acs_systems' | '/acs/users/get' | '/acs/users/list' | '/acs/users/list_accessible_entrances' | '/action_attempts/get' | '/action_attempts/list' | '/client_sessions/get' | '/client_sessions/list' | '/connect_webviews/get' | '/connect_webviews/list' | '/connected_accounts/get' | '/connected_accounts/list' | '/devices/get' | '/devices/list' | '/devices/list_device_providers' | '/devices/unmanaged/get' | '/devices/unmanaged/list' | '/events/get' | '/events/list' | '/instant_keys/get' | '/instant_keys/list' | '/locks/get' | '/locks/list' | '/media/get' | '/noise_sensors/list' | '/noise_sensors/noise_thresholds/get' | '/noise_sensors/noise_thresholds/list' | '/phones/get' | '/phones/list' | '/spaces/get' | '/spaces/get_related' | '/spaces/list' | '/thermostats/list' | '/thermostats/schedules/get' | '/thermostats/schedules/list' | '/user_identities/get' | '/user_identities/list' | '/user_identities/list_accessible_devices' | '/user_identities/list_accessible_entrances' | '/user_identities/list_acs_systems' | '/user_identities/list_acs_users' | '/user_identities/unmanaged/get' | '/user_identities/unmanaged/list' | '/webhooks/get' | '/webhooks/list' | '/workspaces/get' | '/workspaces/list';
967
995
  export type SeamHttpEndpointPaginatedQueryPaths = '/access_codes/list' | '/access_codes/unmanaged/list' | '/access_grants/list' | '/access_grants/unmanaged/list' | '/access_methods/list' | '/acs/credentials/list' | '/acs/encoders/list' | '/acs/entrances/list' | '/acs/users/list' | '/action_attempts/list' | '/connect_webviews/list' | '/connected_accounts/list' | '/devices/list' | '/devices/unmanaged/list' | '/spaces/list' | '/user_identities/list' | '/user_identities/unmanaged/list';
968
- export type SeamHttpEndpointMutationPaths = '/access_codes/create' | '/access_codes/create_multiple' | '/access_codes/delete' | '/access_codes/pull_backup_access_code' | '/access_codes/report_device_constraints' | '/access_codes/update' | '/access_codes/update_multiple' | '/access_codes/simulate/create_unmanaged_access_code' | '/access_codes/unmanaged/convert_to_managed' | '/access_codes/unmanaged/delete' | '/access_codes/unmanaged/update' | '/access_grants/create' | '/access_grants/delete' | '/access_grants/request_access_methods' | '/access_grants/update' | '/access_grants/unmanaged/update' | '/access_methods/assign_card' | '/access_methods/delete' | '/access_methods/encode' | '/access_methods/unlock_door' | '/acs/access_groups/add_user' | '/acs/access_groups/delete' | '/acs/access_groups/remove_user' | '/acs/credentials/assign' | '/acs/credentials/create' | '/acs/credentials/delete' | '/acs/credentials/unassign' | '/acs/credentials/update' | '/acs/encoders/encode_credential' | '/acs/encoders/scan_credential' | '/acs/encoders/scan_to_assign_credential' | '/acs/encoders/simulate/next_credential_encode_will_fail' | '/acs/encoders/simulate/next_credential_encode_will_succeed' | '/acs/encoders/simulate/next_credential_scan_will_fail' | '/acs/encoders/simulate/next_credential_scan_will_succeed' | '/acs/entrances/grant_access' | '/acs/entrances/unlock' | '/acs/systems/report_devices' | '/acs/users/add_to_access_group' | '/acs/users/create' | '/acs/users/delete' | '/acs/users/remove_from_access_group' | '/acs/users/revoke_access_to_all_entrances' | '/acs/users/suspend' | '/acs/users/unsuspend' | '/acs/users/update' | '/client_sessions/create' | '/client_sessions/delete' | '/client_sessions/get_or_create' | '/client_sessions/grant_access' | '/client_sessions/revoke' | '/connect_webviews/create' | '/connect_webviews/delete' | '/connected_accounts/delete' | '/connected_accounts/sync' | '/connected_accounts/update' | '/connected_accounts/simulate/disconnect' | '/customers/create_portal' | '/customers/delete_data' | '/customers/push_data' | '/devices/report_provider_metadata' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/paid_subscription' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/instant_keys/delete' | '/locks/configure_auto_lock' | '/locks/lock_door' | '/locks/unlock_door' | '/locks/simulate/keypad_code_entry' | '/locks/simulate/manual_lock_via_keypad' | '/noise_sensors/noise_thresholds/create' | '/noise_sensors/noise_thresholds/delete' | '/noise_sensors/noise_thresholds/update' | '/noise_sensors/simulate/trigger_noise_threshold' | '/phones/deactivate' | '/phones/simulate/create_sandbox_phone' | '/spaces/add_acs_entrances' | '/spaces/add_connected_account' | '/spaces/add_devices' | '/spaces/create' | '/spaces/delete' | '/spaces/remove_acs_entrances' | '/spaces/remove_connected_account' | '/spaces/remove_devices' | '/spaces/update' | '/thermostats/activate_climate_preset' | '/thermostats/cool' | '/thermostats/create_climate_preset' | '/thermostats/delete_climate_preset' | '/thermostats/heat' | '/thermostats/heat_cool' | '/thermostats/off' | '/thermostats/set_fallback_climate_preset' | '/thermostats/set_fan_mode' | '/thermostats/set_hvac_mode' | '/thermostats/set_temperature_threshold' | '/thermostats/update_climate_preset' | '/thermostats/update_weekly_program' | '/thermostats/daily_programs/create' | '/thermostats/daily_programs/delete' | '/thermostats/daily_programs/update' | '/thermostats/schedules/create' | '/thermostats/schedules/delete' | '/thermostats/schedules/update' | '/thermostats/simulate/hvac_mode_adjusted' | '/thermostats/simulate/temperature_reached' | '/user_identities/add_acs_user' | '/user_identities/create' | '/user_identities/delete' | '/user_identities/generate_instant_key' | '/user_identities/grant_access_to_device' | '/user_identities/merge' | '/user_identities/remove_acs_user' | '/user_identities/revoke_access_to_device' | '/user_identities/update' | '/user_identities/unmanaged/update' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update';
996
+ export type SeamHttpEndpointMutationPaths = '/access_codes/create' | '/access_codes/create_multiple' | '/access_codes/delete' | '/access_codes/pull_backup_access_code' | '/access_codes/report_device_constraints' | '/access_codes/update' | '/access_codes/update_multiple' | '/access_codes/simulate/create_unmanaged_access_code' | '/access_codes/unmanaged/convert_to_managed' | '/access_codes/unmanaged/delete' | '/access_codes/unmanaged/update' | '/access_grants/create' | '/access_grants/delete' | '/access_grants/request_access_methods' | '/access_grants/update' | '/access_grants/unmanaged/update' | '/access_methods/assign_card' | '/access_methods/delete' | '/access_methods/encode' | '/access_methods/unlock_door' | '/acs/access_groups/add_user' | '/acs/access_groups/delete' | '/acs/access_groups/remove_user' | '/acs/credentials/assign' | '/acs/credentials/create' | '/acs/credentials/delete' | '/acs/credentials/unassign' | '/acs/credentials/update' | '/acs/encoders/encode_credential' | '/acs/encoders/scan_credential' | '/acs/encoders/scan_to_assign_credential' | '/acs/encoders/simulate/next_credential_encode_will_fail' | '/acs/encoders/simulate/next_credential_encode_will_succeed' | '/acs/encoders/simulate/next_credential_scan_will_fail' | '/acs/encoders/simulate/next_credential_scan_will_succeed' | '/acs/entrances/grant_access' | '/acs/entrances/unlock' | '/acs/systems/report_devices' | '/acs/users/add_to_access_group' | '/acs/users/create' | '/acs/users/delete' | '/acs/users/remove_from_access_group' | '/acs/users/revoke_access_to_all_entrances' | '/acs/users/suspend' | '/acs/users/unsuspend' | '/acs/users/update' | '/cameras/live_views/create' | '/cameras/live_views/offer' | '/cameras/live_views/stop' | '/client_sessions/create' | '/client_sessions/delete' | '/client_sessions/get_or_create' | '/client_sessions/grant_access' | '/client_sessions/revoke' | '/connect_webviews/create' | '/connect_webviews/delete' | '/connected_accounts/delete' | '/connected_accounts/sync' | '/connected_accounts/update' | '/connected_accounts/simulate/disconnect' | '/customers/create_portal' | '/customers/delete_data' | '/customers/push_data' | '/devices/report_provider_metadata' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/paid_subscription' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/instant_keys/delete' | '/locks/configure_auto_lock' | '/locks/lock_door' | '/locks/unlock_door' | '/locks/simulate/keypad_code_entry' | '/locks/simulate/manual_lock_via_keypad' | '/noise_sensors/noise_thresholds/create' | '/noise_sensors/noise_thresholds/delete' | '/noise_sensors/noise_thresholds/update' | '/noise_sensors/simulate/trigger_noise_threshold' | '/phones/deactivate' | '/phones/simulate/create_sandbox_phone' | '/spaces/add_acs_entrances' | '/spaces/add_connected_account' | '/spaces/add_devices' | '/spaces/create' | '/spaces/delete' | '/spaces/remove_acs_entrances' | '/spaces/remove_connected_account' | '/spaces/remove_devices' | '/spaces/update' | '/thermostats/activate_climate_preset' | '/thermostats/activate_weekly_program' | '/thermostats/cool' | '/thermostats/create_climate_preset' | '/thermostats/delete_climate_preset' | '/thermostats/heat' | '/thermostats/heat_cool' | '/thermostats/off' | '/thermostats/set_fallback_climate_preset' | '/thermostats/set_fan_mode' | '/thermostats/set_hvac_mode' | '/thermostats/set_temperature_threshold' | '/thermostats/update_climate_preset' | '/thermostats/update_weekly_program' | '/thermostats/daily_programs/create' | '/thermostats/daily_programs/delete' | '/thermostats/daily_programs/update' | '/thermostats/schedules/create' | '/thermostats/schedules/delete' | '/thermostats/schedules/update' | '/thermostats/simulate/hvac_mode_adjusted' | '/thermostats/simulate/temperature_reached' | '/user_identities/add_acs_user' | '/user_identities/create' | '/user_identities/delete' | '/user_identities/generate_instant_key' | '/user_identities/grant_access_to_device' | '/user_identities/merge' | '/user_identities/remove_acs_user' | '/user_identities/revoke_access_to_device' | '/user_identities/update' | '/user_identities/unmanaged/update' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update';
@@ -22,6 +22,7 @@ import { SeamHttpAcsEntrances, } from './acs/entrances/index.js';
22
22
  import { SeamHttpAcsSystems, } from './acs/systems/index.js';
23
23
  import { SeamHttpAcsUsers, } from './acs/users/index.js';
24
24
  import { SeamHttpActionAttempts, } from './action-attempts/index.js';
25
+ import { SeamHttpCamerasLiveViews, } from './cameras/live-views/index.js';
25
26
  import { SeamHttpClientSessions, } from './client-sessions/index.js';
26
27
  import { SeamHttpConnectWebviews, } from './connect-webviews/index.js';
27
28
  import { SeamHttpConnectedAccounts, } from './connected-accounts/index.js';
@@ -34,6 +35,7 @@ import { SeamHttpEvents, } from './events/index.js';
34
35
  import { SeamHttpInstantKeys, } from './instant-keys/index.js';
35
36
  import { SeamHttpLocks, } from './locks/index.js';
36
37
  import { SeamHttpLocksSimulate, } from './locks/simulate/index.js';
38
+ import { SeamHttpMedia, } from './media/index.js';
37
39
  import { SeamHttpNoiseSensors, } from './noise-sensors/index.js';
38
40
  import { SeamHttpNoiseSensorsNoiseThresholds, } from './noise-sensors/noise-thresholds/index.js';
39
41
  import { SeamHttpNoiseSensorsSimulate, } from './noise-sensors/simulate/index.js';
@@ -975,6 +977,42 @@ export class SeamHttpEndpoints {
975
977
  return seam.list(...args);
976
978
  };
977
979
  }
980
+ /**
981
+ * Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.
982
+ *
983
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support. To check whether a camera supports live view, use `device.can_stream_live_video`.
984
+ */
985
+ get '/cameras/live_views/create'() {
986
+ const { client, defaults } = this;
987
+ return function camerasLiveViewsCreate(...args) {
988
+ const seam = SeamHttpCamerasLiveViews.fromClient(client, defaults);
989
+ return seam.create(...args);
990
+ };
991
+ }
992
+ /**
993
+ * Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.
994
+ *
995
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support.
996
+ */
997
+ get '/cameras/live_views/offer'() {
998
+ const { client, defaults } = this;
999
+ return function camerasLiveViewsOffer(...args) {
1000
+ const seam = SeamHttpCamerasLiveViews.fromClient(client, defaults);
1001
+ return seam.offer(...args);
1002
+ };
1003
+ }
1004
+ /**
1005
+ * Stops a camera live view session that the current client session owns.
1006
+ *
1007
+ * Camera live view is in beta. To enable it for your workspace, contact Seam support.
1008
+ */
1009
+ get '/cameras/live_views/stop'() {
1010
+ const { client, defaults } = this;
1011
+ return function camerasLiveViewsStop(...args) {
1012
+ const seam = SeamHttpCamerasLiveViews.fromClient(client, defaults);
1013
+ return seam.stop(...args);
1014
+ };
1015
+ }
978
1016
  /**
979
1017
  * Creates a new [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).
980
1018
  */
@@ -1478,6 +1516,16 @@ export class SeamHttpEndpoints {
1478
1516
  return seam.manualLockViaKeypad(...args);
1479
1517
  };
1480
1518
  }
1519
+ /**
1520
+ * Returns a specified piece of media, such as a video clip or thumbnail image captured for a camera event, with a short-lived URL from which you can download it. Camera events list their media in `media_ids`. This endpoint is in beta.
1521
+ */
1522
+ get '/media/get'() {
1523
+ const { client, defaults } = this;
1524
+ return function mediaGet(...args) {
1525
+ const seam = SeamHttpMedia.fromClient(client, defaults);
1526
+ return seam.get(...args);
1527
+ };
1528
+ }
1481
1529
  /**
1482
1530
  * Returns a list of all [noise sensors](https://www.seam.co/docs/capability-guides/noise-sensors).
1483
1531
  */
@@ -1718,6 +1766,16 @@ export class SeamHttpEndpoints {
1718
1766
  return seam.activateClimatePreset(...args);
1719
1767
  };
1720
1768
  }
1769
+ /**
1770
+ * Returns a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to its [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs), the schedule that is configured on the device itself, releasing any hold that Seam has set. Seam stops managing the thermostat's climate until you [activate a climate preset](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings), make a direct climate setting change, or one of the thermostat's [scheduled](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) presets reaches its activation time.
1771
+ */
1772
+ get '/thermostats/activate_weekly_program'() {
1773
+ const { client, defaults } = this;
1774
+ return function thermostatsActivateWeeklyProgram(...args) {
1775
+ const seam = SeamHttpThermostats.fromClient(client, defaults);
1776
+ return seam.activateWeeklyProgram(...args);
1777
+ };
1778
+ }
1721
1779
  /**
1722
1780
  * Sets a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to [cool mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings).
1723
1781
  */