@seamapi/http 1.53.0 → 1.55.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 (43) hide show
  1. package/dist/connect.cjs +236 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +47 -2
  4. package/dist/index.cjs +238 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/seam/customer/v1/events/events.d.ts +34 -0
  8. package/lib/seam/connect/routes/seam/customer/v1/events/events.js +102 -0
  9. package/lib/seam/connect/routes/seam/customer/v1/events/events.js.map +1 -0
  10. package/lib/seam/connect/routes/seam/customer/v1/events/index.d.ts +1 -0
  11. package/lib/seam/connect/routes/seam/customer/v1/events/index.js +6 -0
  12. package/lib/seam/connect/routes/seam/customer/v1/events/index.js.map +1 -0
  13. package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +1 -0
  14. package/lib/seam/connect/routes/seam/customer/v1/index.js +1 -0
  15. package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
  16. package/lib/seam/connect/routes/seam/customer/v1/settings/settings.d.ts +14 -1
  17. package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js +12 -0
  18. package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
  19. package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +2 -0
  20. package/lib/seam/connect/routes/seam/customer/v1/v1.js +4 -0
  21. package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
  22. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -2
  23. package/lib/seam/connect/routes/seam-http-endpoints.js +45 -0
  24. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  25. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +12 -0
  26. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
  27. package/lib/seam/connect/routes/thermostats/thermostats.js +3 -0
  28. package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
  29. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js +15 -0
  30. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -1
  31. package/lib/version.d.ts +1 -1
  32. package/lib/version.js +1 -1
  33. package/package.json +3 -3
  34. package/src/lib/seam/connect/routes/seam/customer/v1/events/events.ts +211 -0
  35. package/src/lib/seam/connect/routes/seam/customer/v1/events/index.ts +6 -0
  36. package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +1 -0
  37. package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +47 -1
  38. package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +5 -0
  39. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +87 -0
  40. package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +20 -0
  41. package/src/lib/seam/connect/routes/thermostats/thermostats.ts +5 -0
  42. package/src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts +25 -0
  43. package/src/lib/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"enrollment-automations.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,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ACJ,CAAC;IAED,GAAG,CACD,UAA6D,EAC7D,UAAyD,EAAE;QAE3D,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,6CAA6C;YACvD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uBAAuB;YACpC,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CACJ,UAAgE,EAChE,UAA4D,EAAE;QAE9D,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,gDAAgD;YAC1D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uBAAuB;YACpC,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,UAA8D,EAC9D,UAA0D,EAAE;QAE5D,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,8CAA8C;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AAhLM,sDAAU,GAAG,iBAAiB,AAApB,CAAoB"}
1
+ {"version":3,"file":"enrollment-automations.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CA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Q,EAAE,8CAA8C;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AAzMM,sDAAU,GAAG,iBAAiB,AAApB,CAAoB"}
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const seamapiJavascriptHttpVersion = "1.53.0";
1
+ declare const seamapiJavascriptHttpVersion = "1.55.0";
2
2
  export default seamapiJavascriptHttpVersion;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.53.0';
1
+ const seamapiJavascriptHttpVersion = '1.55.0';
2
2
  export default seamapiJavascriptHttpVersion;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/http",
3
- "version": "1.53.0",
3
+ "version": "1.55.0",
4
4
  "description": "JavaScript HTTP client for the Seam API written in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -85,7 +85,7 @@
85
85
  "npm": ">=10.1.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@seamapi/types": "^1.465.0"
88
+ "@seamapi/types": "^1.468.0"
89
89
  },
90
90
  "peerDependenciesMeta": {
91
91
  "@seamapi/types": {
@@ -101,7 +101,7 @@
101
101
  "@seamapi/blueprint": "^0.51.1",
102
102
  "@seamapi/fake-seam-connect": "^1.77.0",
103
103
  "@seamapi/smith": "^0.4.4",
104
- "@seamapi/types": "1.465.0",
104
+ "@seamapi/types": "1.468.0",
105
105
  "@swc/core": "^1.11.29",
106
106
  "@types/eslint": "^8.44.2",
107
107
  "@types/jsonwebtoken": "^9.0.6",
@@ -0,0 +1,211 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
+
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
9
+ import {
10
+ getAuthHeadersForClientSessionToken,
11
+ warnOnInsecureuserIdentifierKey,
12
+ } from 'lib/seam/connect/auth.js'
13
+ import { type Client, createClient } from 'lib/seam/connect/client.js'
14
+ import {
15
+ isSeamHttpOptionsWithApiKey,
16
+ isSeamHttpOptionsWithClient,
17
+ isSeamHttpOptionsWithClientSessionToken,
18
+ isSeamHttpOptionsWithConsoleSessionToken,
19
+ isSeamHttpOptionsWithPersonalAccessToken,
20
+ type SeamHttpFromPublishableKeyOptions,
21
+ SeamHttpInvalidOptionsError,
22
+ type SeamHttpOptions,
23
+ type SeamHttpOptionsWithApiKey,
24
+ type SeamHttpOptionsWithClient,
25
+ type SeamHttpOptionsWithClientSessionToken,
26
+ type SeamHttpOptionsWithConsoleSessionToken,
27
+ type SeamHttpOptionsWithPersonalAccessToken,
28
+ type SeamHttpRequestOptions,
29
+ } from 'lib/seam/connect/options.js'
30
+ import {
31
+ limitToSeamHttpRequestOptions,
32
+ parseOptions,
33
+ } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
35
+ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
36
+ import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
37
+ import type { SetNonNullable } from 'lib/types.js'
38
+
39
+ export class SeamHttpSeamCustomerV1Events {
40
+ client: Client
41
+ readonly defaults: Required<SeamHttpRequestOptions>
42
+ readonly ltsVersion = seamApiLtsVersion
43
+ static ltsVersion = seamApiLtsVersion
44
+
45
+ constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
46
+ const options = parseOptions(apiKeyOrOptions)
47
+ if (!options.isUndocumentedApiEnabled) {
48
+ throw new Error(
49
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
50
+ )
51
+ }
52
+ this.client = 'client' in options ? options.client : createClient(options)
53
+ this.defaults = limitToSeamHttpRequestOptions(options)
54
+ }
55
+
56
+ static fromClient(
57
+ client: SeamHttpOptionsWithClient['client'],
58
+ options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
59
+ ): SeamHttpSeamCustomerV1Events {
60
+ const constructorOptions = { ...options, client }
61
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
62
+ throw new SeamHttpInvalidOptionsError('Missing client')
63
+ }
64
+ return new SeamHttpSeamCustomerV1Events(constructorOptions)
65
+ }
66
+
67
+ static fromApiKey(
68
+ apiKey: SeamHttpOptionsWithApiKey['apiKey'],
69
+ options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
70
+ ): SeamHttpSeamCustomerV1Events {
71
+ const constructorOptions = { ...options, apiKey }
72
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
73
+ throw new SeamHttpInvalidOptionsError('Missing apiKey')
74
+ }
75
+ return new SeamHttpSeamCustomerV1Events(constructorOptions)
76
+ }
77
+
78
+ static fromClientSessionToken(
79
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
80
+ options: Omit<
81
+ SeamHttpOptionsWithClientSessionToken,
82
+ 'clientSessionToken'
83
+ > = {},
84
+ ): SeamHttpSeamCustomerV1Events {
85
+ const constructorOptions = { ...options, clientSessionToken }
86
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
87
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
88
+ }
89
+ return new SeamHttpSeamCustomerV1Events(constructorOptions)
90
+ }
91
+
92
+ static async fromPublishableKey(
93
+ publishableKey: string,
94
+ userIdentifierKey: string,
95
+ options: SeamHttpFromPublishableKeyOptions = {},
96
+ ): Promise<SeamHttpSeamCustomerV1Events> {
97
+ warnOnInsecureuserIdentifierKey(userIdentifierKey)
98
+ const clientOptions = parseOptions({ ...options, publishableKey })
99
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
100
+ throw new SeamHttpInvalidOptionsError(
101
+ 'The client option cannot be used with SeamHttpSeamCustomerV1Events.fromPublishableKey',
102
+ )
103
+ }
104
+ const client = createClient(clientOptions)
105
+ const clientSessions = SeamHttpClientSessions.fromClient(client)
106
+ const { token } = await clientSessions.getOrCreate({
107
+ user_identifier_key: userIdentifierKey,
108
+ })
109
+ return SeamHttpSeamCustomerV1Events.fromClientSessionToken(token, options)
110
+ }
111
+
112
+ static fromConsoleSessionToken(
113
+ consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
114
+ workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
115
+ options: Omit<
116
+ SeamHttpOptionsWithConsoleSessionToken,
117
+ 'consoleSessionToken' | 'workspaceId'
118
+ > = {},
119
+ ): SeamHttpSeamCustomerV1Events {
120
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId }
121
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
122
+ throw new SeamHttpInvalidOptionsError(
123
+ 'Missing consoleSessionToken or workspaceId',
124
+ )
125
+ }
126
+ return new SeamHttpSeamCustomerV1Events(constructorOptions)
127
+ }
128
+
129
+ static fromPersonalAccessToken(
130
+ personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
131
+ workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
132
+ options: Omit<
133
+ SeamHttpOptionsWithPersonalAccessToken,
134
+ 'personalAccessToken' | 'workspaceId'
135
+ > = {},
136
+ ): SeamHttpSeamCustomerV1Events {
137
+ const constructorOptions = { ...options, personalAccessToken, workspaceId }
138
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
139
+ throw new SeamHttpInvalidOptionsError(
140
+ 'Missing personalAccessToken or workspaceId',
141
+ )
142
+ }
143
+ return new SeamHttpSeamCustomerV1Events(constructorOptions)
144
+ }
145
+
146
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
147
+ request: SeamHttpRequest<TResponse, TResponseKey>,
148
+ ): SeamPaginator<TResponse, TResponseKey> {
149
+ return new SeamPaginator<TResponse, TResponseKey>(this, request)
150
+ }
151
+
152
+ async updateClientSessionToken(
153
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
154
+ ): Promise<void> {
155
+ const { headers } = this.client.defaults
156
+ const authHeaders = getAuthHeadersForClientSessionToken({
157
+ clientSessionToken,
158
+ })
159
+ for (const key of Object.keys(authHeaders)) {
160
+ if (headers[key] == null) {
161
+ throw new Error(
162
+ 'Cannot update a clientSessionToken on a client created without a clientSessionToken',
163
+ )
164
+ }
165
+ }
166
+ this.client.defaults.headers = { ...headers, ...authHeaders }
167
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client)
168
+ await clientSessions.get()
169
+ }
170
+
171
+ list(
172
+ parameters?: SeamCustomerV1EventsListParameters,
173
+ options: SeamCustomerV1EventsListOptions = {},
174
+ ): SeamCustomerV1EventsListRequest {
175
+ if (!this.defaults.isUndocumentedApiEnabled) {
176
+ throw new Error(
177
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
178
+ )
179
+ }
180
+ return new SeamHttpRequest(this, {
181
+ pathname: '/seam/customer/v1/events/list',
182
+ method: 'POST',
183
+ body: parameters,
184
+ responseKey: 'events',
185
+ options,
186
+ })
187
+ }
188
+ }
189
+
190
+ export type SeamCustomerV1EventsListParameters =
191
+ RouteRequestBody<'/seam/customer/v1/events/list'>
192
+
193
+ /**
194
+ * @deprecated Use SeamCustomerV1EventsListParameters instead.
195
+ */
196
+ export type SeamCustomerV1EventsListParams = SeamCustomerV1EventsListParameters
197
+
198
+ /**
199
+ * @deprecated Use SeamCustomerV1EventsListRequest instead.
200
+ */
201
+ export type SeamCustomerV1EventsListResponse = SetNonNullable<
202
+ Required<RouteResponse<'/seam/customer/v1/events/list'>>
203
+ >
204
+
205
+ export type SeamCustomerV1EventsListRequest = SeamHttpRequest<
206
+ SeamCustomerV1EventsListResponse,
207
+ 'events'
208
+ >
209
+
210
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
211
+ export interface SeamCustomerV1EventsListOptions {}
@@ -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
+
6
+ export * from './events.js'
@@ -5,6 +5,7 @@
5
5
 
6
6
  export * from './automation-runs/index.js'
7
7
  export * from './automations/index.js'
8
+ export * from './events/index.js'
8
9
  export * from './portals/index.js'
9
10
  export * from './settings/index.js'
10
11
  export * from './v1.js'
@@ -3,7 +3,11 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
- import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
6
+ import type {
7
+ RouteRequestBody,
8
+ RouteRequestParams,
9
+ RouteResponse,
10
+ } from '@seamapi/types/connect'
7
11
 
8
12
  import { seamApiLtsVersion } from 'lib/lts-version.js'
9
13
  import {
@@ -168,6 +172,24 @@ export class SeamHttpSeamCustomerV1Settings {
168
172
  await clientSessions.get()
169
173
  }
170
174
 
175
+ get(
176
+ parameters?: SeamCustomerV1SettingsGetParameters,
177
+ options: SeamCustomerV1SettingsGetOptions = {},
178
+ ): SeamCustomerV1SettingsGetRequest {
179
+ if (!this.defaults.isUndocumentedApiEnabled) {
180
+ throw new Error(
181
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
182
+ )
183
+ }
184
+ return new SeamHttpRequest(this, {
185
+ pathname: '/seam/customer/v1/settings/get',
186
+ method: 'GET',
187
+ params: parameters,
188
+ responseKey: 'business_vertical',
189
+ options,
190
+ })
191
+ }
192
+
171
193
  update(
172
194
  parameters?: SeamCustomerV1SettingsUpdateParameters,
173
195
  options: SeamCustomerV1SettingsUpdateOptions = {},
@@ -187,6 +209,30 @@ export class SeamHttpSeamCustomerV1Settings {
187
209
  }
188
210
  }
189
211
 
212
+ export type SeamCustomerV1SettingsGetParameters =
213
+ RouteRequestParams<'/seam/customer/v1/settings/get'>
214
+
215
+ /**
216
+ * @deprecated Use SeamCustomerV1SettingsGetParameters instead.
217
+ */
218
+ export type SeamCustomerV1SettingsGetParams =
219
+ SeamCustomerV1SettingsGetParameters
220
+
221
+ /**
222
+ * @deprecated Use SeamCustomerV1SettingsGetRequest instead.
223
+ */
224
+ export type SeamCustomerV1SettingsGetResponse = SetNonNullable<
225
+ Required<RouteResponse<'/seam/customer/v1/settings/get'>>
226
+ >
227
+
228
+ export type SeamCustomerV1SettingsGetRequest = SeamHttpRequest<
229
+ SeamCustomerV1SettingsGetResponse,
230
+ 'business_vertical'
231
+ >
232
+
233
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
234
+ export interface SeamCustomerV1SettingsGetOptions {}
235
+
190
236
  export type SeamCustomerV1SettingsUpdateParameters =
191
237
  RouteRequestBody<'/seam/customer/v1/settings/update'>
192
238
 
@@ -35,6 +35,7 @@ import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
35
 
36
36
  import { SeamHttpSeamCustomerV1AutomationRuns } from './automation-runs/index.js'
37
37
  import { SeamHttpSeamCustomerV1Automations } from './automations/index.js'
38
+ import { SeamHttpSeamCustomerV1Events } from './events/index.js'
38
39
  import { SeamHttpSeamCustomerV1Portals } from './portals/index.js'
39
40
  import { SeamHttpSeamCustomerV1Settings } from './settings/index.js'
40
41
 
@@ -184,6 +185,10 @@ export class SeamHttpSeamCustomerV1 {
184
185
  )
185
186
  }
186
187
 
188
+ get events(): SeamHttpSeamCustomerV1Events {
189
+ return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults)
190
+ }
191
+
187
192
  get portals(): SeamHttpSeamCustomerV1Portals {
188
193
  return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults)
189
194
  }
@@ -560,6 +560,12 @@ import {
560
560
  type SeamCustomerV1AutomationsUpdateRequest,
561
561
  SeamHttpSeamCustomerV1Automations,
562
562
  } from './seam/customer/v1/automations/index.js'
563
+ import {
564
+ type SeamCustomerV1EventsListOptions,
565
+ type SeamCustomerV1EventsListParameters,
566
+ type SeamCustomerV1EventsListRequest,
567
+ SeamHttpSeamCustomerV1Events,
568
+ } from './seam/customer/v1/events/index.js'
563
569
  import {
564
570
  type SeamCustomerV1PortalsGetOptions,
565
571
  type SeamCustomerV1PortalsGetParameters,
@@ -567,6 +573,9 @@ import {
567
573
  SeamHttpSeamCustomerV1Portals,
568
574
  } from './seam/customer/v1/portals/index.js'
569
575
  import {
576
+ type SeamCustomerV1SettingsGetOptions,
577
+ type SeamCustomerV1SettingsGetParameters,
578
+ type SeamCustomerV1SettingsGetRequest,
570
579
  type SeamCustomerV1SettingsUpdateOptions,
571
580
  type SeamCustomerV1SettingsUpdateParameters,
572
581
  type SeamCustomerV1SettingsUpdateRequest,
@@ -2923,6 +2932,24 @@ export class SeamHttpEndpoints {
2923
2932
  }
2924
2933
  }
2925
2934
 
2935
+ get ['/seam/customer/v1/events/list'](): (
2936
+ parameters?: SeamCustomerV1EventsListParameters,
2937
+ options?: SeamCustomerV1EventsListOptions,
2938
+ ) => SeamCustomerV1EventsListRequest {
2939
+ const { client, defaults } = this
2940
+ if (!this.defaults.isUndocumentedApiEnabled) {
2941
+ throw new Error(
2942
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2943
+ )
2944
+ }
2945
+ return function seamCustomerV1EventsList(
2946
+ ...args: Parameters<SeamHttpSeamCustomerV1Events['list']>
2947
+ ): ReturnType<SeamHttpSeamCustomerV1Events['list']> {
2948
+ const seam = SeamHttpSeamCustomerV1Events.fromClient(client, defaults)
2949
+ return seam.list(...args)
2950
+ }
2951
+ }
2952
+
2926
2953
  get ['/seam/customer/v1/portals/get'](): (
2927
2954
  parameters?: SeamCustomerV1PortalsGetParameters,
2928
2955
  options?: SeamCustomerV1PortalsGetOptions,
@@ -2941,6 +2968,24 @@ export class SeamHttpEndpoints {
2941
2968
  }
2942
2969
  }
2943
2970
 
2971
+ get ['/seam/customer/v1/settings/get'](): (
2972
+ parameters?: SeamCustomerV1SettingsGetParameters,
2973
+ options?: SeamCustomerV1SettingsGetOptions,
2974
+ ) => SeamCustomerV1SettingsGetRequest {
2975
+ const { client, defaults } = this
2976
+ if (!this.defaults.isUndocumentedApiEnabled) {
2977
+ throw new Error(
2978
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2979
+ )
2980
+ }
2981
+ return function seamCustomerV1SettingsGet(
2982
+ ...args: Parameters<SeamHttpSeamCustomerV1Settings['get']>
2983
+ ): ReturnType<SeamHttpSeamCustomerV1Settings['get']> {
2984
+ const seam = SeamHttpSeamCustomerV1Settings.fromClient(client, defaults)
2985
+ return seam.get(...args)
2986
+ }
2987
+ }
2988
+
2944
2989
  get ['/seam/customer/v1/settings/update'](): (
2945
2990
  parameters?: SeamCustomerV1SettingsUpdateParameters,
2946
2991
  options?: SeamCustomerV1SettingsUpdateOptions,
@@ -3302,6 +3347,11 @@ export class SeamHttpEndpoints {
3302
3347
  options?: ThermostatsUpdateWeeklyProgramOptions,
3303
3348
  ) => ThermostatsUpdateWeeklyProgramRequest {
3304
3349
  const { client, defaults } = this
3350
+ if (!this.defaults.isUndocumentedApiEnabled) {
3351
+ throw new Error(
3352
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3353
+ )
3354
+ }
3305
3355
  return function thermostatsUpdateWeeklyProgram(
3306
3356
  ...args: Parameters<SeamHttpThermostats['updateWeeklyProgram']>
3307
3357
  ): ReturnType<SeamHttpThermostats['updateWeeklyProgram']> {
@@ -3315,6 +3365,11 @@ export class SeamHttpEndpoints {
3315
3365
  options?: ThermostatsDailyProgramsCreateOptions,
3316
3366
  ) => ThermostatsDailyProgramsCreateRequest {
3317
3367
  const { client, defaults } = this
3368
+ if (!this.defaults.isUndocumentedApiEnabled) {
3369
+ throw new Error(
3370
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3371
+ )
3372
+ }
3318
3373
  return function thermostatsDailyProgramsCreate(
3319
3374
  ...args: Parameters<SeamHttpThermostatsDailyPrograms['create']>
3320
3375
  ): ReturnType<SeamHttpThermostatsDailyPrograms['create']> {
@@ -3328,6 +3383,11 @@ export class SeamHttpEndpoints {
3328
3383
  options?: ThermostatsDailyProgramsDeleteOptions,
3329
3384
  ) => ThermostatsDailyProgramsDeleteRequest {
3330
3385
  const { client, defaults } = this
3386
+ if (!this.defaults.isUndocumentedApiEnabled) {
3387
+ throw new Error(
3388
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3389
+ )
3390
+ }
3331
3391
  return function thermostatsDailyProgramsDelete(
3332
3392
  ...args: Parameters<SeamHttpThermostatsDailyPrograms['delete']>
3333
3393
  ): ReturnType<SeamHttpThermostatsDailyPrograms['delete']> {
@@ -3341,6 +3401,11 @@ export class SeamHttpEndpoints {
3341
3401
  options?: ThermostatsDailyProgramsUpdateOptions,
3342
3402
  ) => ThermostatsDailyProgramsUpdateRequest {
3343
3403
  const { client, defaults } = this
3404
+ if (!this.defaults.isUndocumentedApiEnabled) {
3405
+ throw new Error(
3406
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3407
+ )
3408
+ }
3344
3409
  return function thermostatsDailyProgramsUpdate(
3345
3410
  ...args: Parameters<SeamHttpThermostatsDailyPrograms['update']>
3346
3411
  ): ReturnType<SeamHttpThermostatsDailyPrograms['update']> {
@@ -3994,6 +4059,11 @@ export class SeamHttpEndpoints {
3994
4059
  options?: UserIdentitiesEnrollmentAutomationsDeleteOptions,
3995
4060
  ) => UserIdentitiesEnrollmentAutomationsDeleteRequest {
3996
4061
  const { client, defaults } = this
4062
+ if (!this.defaults.isUndocumentedApiEnabled) {
4063
+ throw new Error(
4064
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
4065
+ )
4066
+ }
3997
4067
  return function userIdentitiesEnrollmentAutomationsDelete(
3998
4068
  ...args: Parameters<SeamHttpUserIdentitiesEnrollmentAutomations['delete']>
3999
4069
  ): ReturnType<SeamHttpUserIdentitiesEnrollmentAutomations['delete']> {
@@ -4010,6 +4080,11 @@ export class SeamHttpEndpoints {
4010
4080
  options?: UserIdentitiesEnrollmentAutomationsGetOptions,
4011
4081
  ) => UserIdentitiesEnrollmentAutomationsGetRequest {
4012
4082
  const { client, defaults } = this
4083
+ if (!this.defaults.isUndocumentedApiEnabled) {
4084
+ throw new Error(
4085
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
4086
+ )
4087
+ }
4013
4088
  return function userIdentitiesEnrollmentAutomationsGet(
4014
4089
  ...args: Parameters<SeamHttpUserIdentitiesEnrollmentAutomations['get']>
4015
4090
  ): ReturnType<SeamHttpUserIdentitiesEnrollmentAutomations['get']> {
@@ -4026,6 +4101,11 @@ export class SeamHttpEndpoints {
4026
4101
  options?: UserIdentitiesEnrollmentAutomationsLaunchOptions,
4027
4102
  ) => UserIdentitiesEnrollmentAutomationsLaunchRequest {
4028
4103
  const { client, defaults } = this
4104
+ if (!this.defaults.isUndocumentedApiEnabled) {
4105
+ throw new Error(
4106
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
4107
+ )
4108
+ }
4029
4109
  return function userIdentitiesEnrollmentAutomationsLaunch(
4030
4110
  ...args: Parameters<SeamHttpUserIdentitiesEnrollmentAutomations['launch']>
4031
4111
  ): ReturnType<SeamHttpUserIdentitiesEnrollmentAutomations['launch']> {
@@ -4042,6 +4122,11 @@ export class SeamHttpEndpoints {
4042
4122
  options?: UserIdentitiesEnrollmentAutomationsListOptions,
4043
4123
  ) => UserIdentitiesEnrollmentAutomationsListRequest {
4044
4124
  const { client, defaults } = this
4125
+ if (!this.defaults.isUndocumentedApiEnabled) {
4126
+ throw new Error(
4127
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
4128
+ )
4129
+ }
4045
4130
  return function userIdentitiesEnrollmentAutomationsList(
4046
4131
  ...args: Parameters<SeamHttpUserIdentitiesEnrollmentAutomations['list']>
4047
4132
  ): ReturnType<SeamHttpUserIdentitiesEnrollmentAutomations['list']> {
@@ -4268,7 +4353,9 @@ export type SeamHttpEndpointQueryPaths =
4268
4353
  | '/seam/console/v1/get_resource_locator'
4269
4354
  | '/seam/customer/v1/automation_runs/list'
4270
4355
  | '/seam/customer/v1/automations/get'
4356
+ | '/seam/customer/v1/events/list'
4271
4357
  | '/seam/customer/v1/portals/get'
4358
+ | '/seam/customer/v1/settings/get'
4272
4359
  | '/seam/partner/v1/building_blocks/spaces/auto_map'
4273
4360
  | '/spaces/get'
4274
4361
  | '/spaces/get_related'
@@ -44,6 +44,11 @@ export class SeamHttpThermostatsDailyPrograms {
44
44
 
45
45
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
46
46
  const options = parseOptions(apiKeyOrOptions)
47
+ if (!options.isUndocumentedApiEnabled) {
48
+ throw new Error(
49
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
50
+ )
51
+ }
47
52
  this.client = 'client' in options ? options.client : createClient(options)
48
53
  this.defaults = limitToSeamHttpRequestOptions(options)
49
54
  }
@@ -170,6 +175,11 @@ export class SeamHttpThermostatsDailyPrograms {
170
175
  parameters?: ThermostatsDailyProgramsCreateParameters,
171
176
  options: ThermostatsDailyProgramsCreateOptions = {},
172
177
  ): ThermostatsDailyProgramsCreateRequest {
178
+ if (!this.defaults.isUndocumentedApiEnabled) {
179
+ throw new Error(
180
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
181
+ )
182
+ }
173
183
  return new SeamHttpRequest(this, {
174
184
  pathname: '/thermostats/daily_programs/create',
175
185
  method: 'POST',
@@ -183,6 +193,11 @@ export class SeamHttpThermostatsDailyPrograms {
183
193
  parameters?: ThermostatsDailyProgramsDeleteParameters,
184
194
  options: ThermostatsDailyProgramsDeleteOptions = {},
185
195
  ): ThermostatsDailyProgramsDeleteRequest {
196
+ if (!this.defaults.isUndocumentedApiEnabled) {
197
+ throw new Error(
198
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
199
+ )
200
+ }
186
201
  return new SeamHttpRequest(this, {
187
202
  pathname: '/thermostats/daily_programs/delete',
188
203
  method: 'POST',
@@ -196,6 +211,11 @@ export class SeamHttpThermostatsDailyPrograms {
196
211
  parameters?: ThermostatsDailyProgramsUpdateParameters,
197
212
  options: ThermostatsDailyProgramsUpdateOptions = {},
198
213
  ): ThermostatsDailyProgramsUpdateRequest {
214
+ if (!this.defaults.isUndocumentedApiEnabled) {
215
+ throw new Error(
216
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
217
+ )
218
+ }
199
219
  return new SeamHttpRequest(this, {
200
220
  pathname: '/thermostats/daily_programs/update',
201
221
  method: 'PATCH',
@@ -373,6 +373,11 @@ export class SeamHttpThermostats {
373
373
  parameters?: ThermostatsUpdateWeeklyProgramParameters,
374
374
  options: ThermostatsUpdateWeeklyProgramOptions = {},
375
375
  ): ThermostatsUpdateWeeklyProgramRequest {
376
+ if (!this.defaults.isUndocumentedApiEnabled) {
377
+ throw new Error(
378
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
379
+ )
380
+ }
376
381
  return new SeamHttpRequest(this, {
377
382
  pathname: '/thermostats/update_weekly_program',
378
383
  method: 'POST',
@@ -44,6 +44,11 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
44
44
 
45
45
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
46
46
  const options = parseOptions(apiKeyOrOptions)
47
+ if (!options.isUndocumentedApiEnabled) {
48
+ throw new Error(
49
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
50
+ )
51
+ }
47
52
  this.client = 'client' in options ? options.client : createClient(options)
48
53
  this.defaults = limitToSeamHttpRequestOptions(options)
49
54
  }
@@ -170,6 +175,11 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
170
175
  parameters?: UserIdentitiesEnrollmentAutomationsDeleteParameters,
171
176
  options: UserIdentitiesEnrollmentAutomationsDeleteOptions = {},
172
177
  ): UserIdentitiesEnrollmentAutomationsDeleteRequest {
178
+ if (!this.defaults.isUndocumentedApiEnabled) {
179
+ throw new Error(
180
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
181
+ )
182
+ }
173
183
  return new SeamHttpRequest(this, {
174
184
  pathname: '/user_identities/enrollment_automations/delete',
175
185
  method: 'POST',
@@ -183,6 +193,11 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
183
193
  parameters?: UserIdentitiesEnrollmentAutomationsGetParameters,
184
194
  options: UserIdentitiesEnrollmentAutomationsGetOptions = {},
185
195
  ): UserIdentitiesEnrollmentAutomationsGetRequest {
196
+ if (!this.defaults.isUndocumentedApiEnabled) {
197
+ throw new Error(
198
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
199
+ )
200
+ }
186
201
  return new SeamHttpRequest(this, {
187
202
  pathname: '/user_identities/enrollment_automations/get',
188
203
  method: 'POST',
@@ -196,6 +211,11 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
196
211
  parameters?: UserIdentitiesEnrollmentAutomationsLaunchParameters,
197
212
  options: UserIdentitiesEnrollmentAutomationsLaunchOptions = {},
198
213
  ): UserIdentitiesEnrollmentAutomationsLaunchRequest {
214
+ if (!this.defaults.isUndocumentedApiEnabled) {
215
+ throw new Error(
216
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
217
+ )
218
+ }
199
219
  return new SeamHttpRequest(this, {
200
220
  pathname: '/user_identities/enrollment_automations/launch',
201
221
  method: 'POST',
@@ -209,6 +229,11 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
209
229
  parameters?: UserIdentitiesEnrollmentAutomationsListParameters,
210
230
  options: UserIdentitiesEnrollmentAutomationsListOptions = {},
211
231
  ): UserIdentitiesEnrollmentAutomationsListRequest {
232
+ if (!this.defaults.isUndocumentedApiEnabled) {
233
+ throw new Error(
234
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
235
+ )
236
+ }
212
237
  return new SeamHttpRequest(this, {
213
238
  pathname: '/user_identities/enrollment_automations/list',
214
239
  method: 'POST',