@seamapi/http 1.32.0 → 1.33.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 (46) hide show
  1. package/dist/connect.cjs +242 -201
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +428 -85
  4. package/lib/seam/connect/resolve-action-attempt.d.ts +488 -52
  5. package/lib/seam/connect/routes/access-codes.d.ts +4 -0
  6. package/lib/seam/connect/routes/access-codes.js +8 -0
  7. package/lib/seam/connect/routes/access-codes.js.map +1 -1
  8. package/lib/seam/connect/routes/acs-encoders.d.ts +4 -0
  9. package/lib/seam/connect/routes/acs-encoders.js +9 -0
  10. package/lib/seam/connect/routes/acs-encoders.js.map +1 -1
  11. package/lib/seam/connect/routes/connected-accounts.d.ts +4 -0
  12. package/lib/seam/connect/routes/connected-accounts.js +8 -0
  13. package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
  14. package/lib/seam/connect/routes/index.d.ts +2 -2
  15. package/lib/seam/connect/routes/index.js +2 -2
  16. package/lib/seam/connect/routes/index.js.map +1 -1
  17. package/lib/seam/connect/routes/{networks.d.ts → thermostats-daily-programs.d.ts} +19 -15
  18. package/lib/seam/connect/routes/{networks.js → thermostats-daily-programs.js} +23 -14
  19. package/lib/seam/connect/routes/thermostats-daily-programs.js.map +1 -0
  20. package/lib/seam/connect/routes/thermostats.d.ts +6 -0
  21. package/lib/seam/connect/routes/thermostats.js +13 -0
  22. package/lib/seam/connect/routes/thermostats.js.map +1 -1
  23. package/lib/seam/connect/routes/{bridges.d.ts → unstable-partner.d.ts} +8 -18
  24. package/lib/seam/connect/routes/{bridges.js → unstable-partner.js} +8 -25
  25. package/lib/seam/connect/routes/unstable-partner.js.map +1 -0
  26. package/lib/seam/connect/routes/workspaces.d.ts +4 -0
  27. package/lib/seam/connect/routes/workspaces.js +8 -0
  28. package/lib/seam/connect/routes/workspaces.js.map +1 -1
  29. package/lib/seam/connect/seam-http.d.ts +1 -2
  30. package/lib/seam/connect/seam-http.js +1 -4
  31. package/lib/seam/connect/seam-http.js.map +1 -1
  32. package/lib/version.d.ts +1 -1
  33. package/lib/version.js +1 -1
  34. package/package.json +4 -4
  35. package/src/lib/seam/connect/routes/access-codes.ts +20 -0
  36. package/src/lib/seam/connect/routes/acs-encoders.ts +25 -0
  37. package/src/lib/seam/connect/routes/connected-accounts.ts +18 -0
  38. package/src/lib/seam/connect/routes/index.ts +2 -2
  39. package/src/lib/seam/connect/routes/{networks.ts → thermostats-daily-programs.ts} +64 -31
  40. package/src/lib/seam/connect/routes/thermostats.ts +33 -0
  41. package/src/lib/seam/connect/routes/{bridges.ts → unstable-partner.ts} +14 -53
  42. package/src/lib/seam/connect/routes/workspaces.ts +17 -0
  43. package/src/lib/seam/connect/seam-http.ts +0 -5
  44. package/src/lib/version.ts +1 -1
  45. package/lib/seam/connect/routes/bridges.js.map +0 -1
  46. package/lib/seam/connect/routes/networks.js.map +0 -1
package/dist/connect.cjs CHANGED
@@ -1336,6 +1336,14 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1336
1336
  responseKey: "access_code"
1337
1337
  });
1338
1338
  }
1339
+ reportDeviceConstraints(body) {
1340
+ return new SeamHttpRequest(this, {
1341
+ pathname: "/access_codes/report_device_constraints",
1342
+ method: "post",
1343
+ body,
1344
+ responseKey: void 0
1345
+ });
1346
+ }
1339
1347
  update(body) {
1340
1348
  return new SeamHttpRequest(this, {
1341
1349
  pathname: "/access_codes/update",
@@ -1827,6 +1835,15 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
1827
1835
  get simulate() {
1828
1836
  return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults);
1829
1837
  }
1838
+ encodeAccessMethod(body, options = {}) {
1839
+ return new SeamHttpRequest(this, {
1840
+ pathname: "/acs/encoders/encode_access_method",
1841
+ method: "post",
1842
+ body,
1843
+ responseKey: "action_attempt",
1844
+ options
1845
+ });
1846
+ }
1830
1847
  encodeCredential(body, options = {}) {
1831
1848
  return new SeamHttpRequest(this, {
1832
1849
  pathname: "/acs/encoders/encode_credential",
@@ -2452,104 +2469,6 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2452
2469
  }
2453
2470
  };
2454
2471
 
2455
- // src/lib/seam/connect/routes/bridges.ts
2456
- var SeamHttpBridges = class _SeamHttpBridges {
2457
- constructor(apiKeyOrOptions = {}) {
2458
- const options = parseOptions(apiKeyOrOptions);
2459
- this.client = "client" in options ? options.client : createClient(options);
2460
- this.defaults = limitToSeamHttpRequestOptions(options);
2461
- }
2462
- static fromClient(client, options = {}) {
2463
- const constructorOptions = { ...options, client };
2464
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
2465
- throw new SeamHttpInvalidOptionsError("Missing client");
2466
- }
2467
- return new _SeamHttpBridges(constructorOptions);
2468
- }
2469
- static fromApiKey(apiKey, options = {}) {
2470
- const constructorOptions = { ...options, apiKey };
2471
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
2472
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
2473
- }
2474
- return new _SeamHttpBridges(constructorOptions);
2475
- }
2476
- static fromClientSessionToken(clientSessionToken, options = {}) {
2477
- const constructorOptions = { ...options, clientSessionToken };
2478
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
2479
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
2480
- }
2481
- return new _SeamHttpBridges(constructorOptions);
2482
- }
2483
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
2484
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
2485
- const clientOptions = parseOptions({ ...options, publishableKey });
2486
- if (isSeamHttpOptionsWithClient(clientOptions)) {
2487
- throw new SeamHttpInvalidOptionsError(
2488
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2489
- );
2490
- }
2491
- const client = createClient(clientOptions);
2492
- const clientSessions = SeamHttpClientSessions.fromClient(client);
2493
- const { token } = await clientSessions.getOrCreate({
2494
- user_identifier_key: userIdentifierKey
2495
- });
2496
- return _SeamHttpBridges.fromClientSessionToken(token, options);
2497
- }
2498
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
2499
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
2500
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
2501
- throw new SeamHttpInvalidOptionsError(
2502
- "Missing consoleSessionToken or workspaceId"
2503
- );
2504
- }
2505
- return new _SeamHttpBridges(constructorOptions);
2506
- }
2507
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
2508
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
2509
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
2510
- throw new SeamHttpInvalidOptionsError(
2511
- "Missing personalAccessToken or workspaceId"
2512
- );
2513
- }
2514
- return new _SeamHttpBridges(constructorOptions);
2515
- }
2516
- createPaginator(request) {
2517
- return new SeamPaginator(this, request);
2518
- }
2519
- async updateClientSessionToken(clientSessionToken) {
2520
- const { headers } = this.client.defaults;
2521
- const authHeaders = getAuthHeadersForClientSessionToken({
2522
- clientSessionToken
2523
- });
2524
- for (const key of Object.keys(authHeaders)) {
2525
- if (headers[key] == null) {
2526
- throw new Error(
2527
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
2528
- );
2529
- }
2530
- }
2531
- this.client.defaults.headers = { ...headers, ...authHeaders };
2532
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
2533
- await clientSessions.get();
2534
- }
2535
- get(body) {
2536
- return new SeamHttpRequest(this, {
2537
- pathname: "/bridges/get",
2538
- method: "post",
2539
- body,
2540
- responseKey: "bridge"
2541
- });
2542
- }
2543
- list(body) {
2544
- return new SeamHttpRequest(this, {
2545
- pathname: "/bridges/list",
2546
- method: "post",
2547
- body,
2548
- responseKey: "bridges"
2549
- });
2550
- }
2551
- };
2552
-
2553
2472
  // src/lib/seam/connect/routes/connect-webviews.ts
2554
2473
  var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2555
2474
  constructor(apiKeyOrOptions = {}) {
@@ -2768,6 +2687,14 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
2768
2687
  responseKey: "connected_accounts"
2769
2688
  });
2770
2689
  }
2690
+ sync(body) {
2691
+ return new SeamHttpRequest(this, {
2692
+ pathname: "/connected_accounts/sync",
2693
+ method: "post",
2694
+ body,
2695
+ responseKey: void 0
2696
+ });
2697
+ }
2771
2698
  update(body) {
2772
2699
  return new SeamHttpRequest(this, {
2773
2700
  pathname: "/connected_accounts/update",
@@ -3324,104 +3251,6 @@ var SeamHttpLocks = class _SeamHttpLocks {
3324
3251
  }
3325
3252
  };
3326
3253
 
3327
- // src/lib/seam/connect/routes/networks.ts
3328
- var SeamHttpNetworks = class _SeamHttpNetworks {
3329
- constructor(apiKeyOrOptions = {}) {
3330
- const options = parseOptions(apiKeyOrOptions);
3331
- this.client = "client" in options ? options.client : createClient(options);
3332
- this.defaults = limitToSeamHttpRequestOptions(options);
3333
- }
3334
- static fromClient(client, options = {}) {
3335
- const constructorOptions = { ...options, client };
3336
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
3337
- throw new SeamHttpInvalidOptionsError("Missing client");
3338
- }
3339
- return new _SeamHttpNetworks(constructorOptions);
3340
- }
3341
- static fromApiKey(apiKey, options = {}) {
3342
- const constructorOptions = { ...options, apiKey };
3343
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
3344
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
3345
- }
3346
- return new _SeamHttpNetworks(constructorOptions);
3347
- }
3348
- static fromClientSessionToken(clientSessionToken, options = {}) {
3349
- const constructorOptions = { ...options, clientSessionToken };
3350
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
3351
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
3352
- }
3353
- return new _SeamHttpNetworks(constructorOptions);
3354
- }
3355
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
3356
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
3357
- const clientOptions = parseOptions({ ...options, publishableKey });
3358
- if (isSeamHttpOptionsWithClient(clientOptions)) {
3359
- throw new SeamHttpInvalidOptionsError(
3360
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3361
- );
3362
- }
3363
- const client = createClient(clientOptions);
3364
- const clientSessions = SeamHttpClientSessions.fromClient(client);
3365
- const { token } = await clientSessions.getOrCreate({
3366
- user_identifier_key: userIdentifierKey
3367
- });
3368
- return _SeamHttpNetworks.fromClientSessionToken(token, options);
3369
- }
3370
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
3371
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
3372
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
3373
- throw new SeamHttpInvalidOptionsError(
3374
- "Missing consoleSessionToken or workspaceId"
3375
- );
3376
- }
3377
- return new _SeamHttpNetworks(constructorOptions);
3378
- }
3379
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
3380
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
3381
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
3382
- throw new SeamHttpInvalidOptionsError(
3383
- "Missing personalAccessToken or workspaceId"
3384
- );
3385
- }
3386
- return new _SeamHttpNetworks(constructorOptions);
3387
- }
3388
- createPaginator(request) {
3389
- return new SeamPaginator(this, request);
3390
- }
3391
- async updateClientSessionToken(clientSessionToken) {
3392
- const { headers } = this.client.defaults;
3393
- const authHeaders = getAuthHeadersForClientSessionToken({
3394
- clientSessionToken
3395
- });
3396
- for (const key of Object.keys(authHeaders)) {
3397
- if (headers[key] == null) {
3398
- throw new Error(
3399
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
3400
- );
3401
- }
3402
- }
3403
- this.client.defaults.headers = { ...headers, ...authHeaders };
3404
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
3405
- await clientSessions.get();
3406
- }
3407
- get(body) {
3408
- return new SeamHttpRequest(this, {
3409
- pathname: "/networks/get",
3410
- method: "post",
3411
- body,
3412
- responseKey: "network"
3413
- });
3414
- }
3415
- list(body) {
3416
- return new SeamHttpRequest(this, {
3417
- pathname: "/networks/list",
3418
- method: "post",
3419
- body,
3420
- responseKey: "networks"
3421
- });
3422
- }
3423
- };
3424
-
3425
3254
  // src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts
3426
3255
  var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresholds {
3427
3256
  constructor(apiKeyOrOptions = {}) {
@@ -3935,6 +3764,116 @@ var SeamHttpPhones = class _SeamHttpPhones {
3935
3764
  }
3936
3765
  };
3937
3766
 
3767
+ // src/lib/seam/connect/routes/thermostats-daily-programs.ts
3768
+ var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
3769
+ constructor(apiKeyOrOptions = {}) {
3770
+ const options = parseOptions(apiKeyOrOptions);
3771
+ this.client = "client" in options ? options.client : createClient(options);
3772
+ this.defaults = limitToSeamHttpRequestOptions(options);
3773
+ }
3774
+ static fromClient(client, options = {}) {
3775
+ const constructorOptions = { ...options, client };
3776
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
3777
+ throw new SeamHttpInvalidOptionsError("Missing client");
3778
+ }
3779
+ return new _SeamHttpThermostatsDailyPrograms(constructorOptions);
3780
+ }
3781
+ static fromApiKey(apiKey, options = {}) {
3782
+ const constructorOptions = { ...options, apiKey };
3783
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
3784
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
3785
+ }
3786
+ return new _SeamHttpThermostatsDailyPrograms(constructorOptions);
3787
+ }
3788
+ static fromClientSessionToken(clientSessionToken, options = {}) {
3789
+ const constructorOptions = { ...options, clientSessionToken };
3790
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
3791
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
3792
+ }
3793
+ return new _SeamHttpThermostatsDailyPrograms(constructorOptions);
3794
+ }
3795
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
3796
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
3797
+ const clientOptions = parseOptions({ ...options, publishableKey });
3798
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
3799
+ throw new SeamHttpInvalidOptionsError(
3800
+ "The client option cannot be used with SeamHttp.fromPublishableKey"
3801
+ );
3802
+ }
3803
+ const client = createClient(clientOptions);
3804
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
3805
+ const { token } = await clientSessions.getOrCreate({
3806
+ user_identifier_key: userIdentifierKey
3807
+ });
3808
+ return _SeamHttpThermostatsDailyPrograms.fromClientSessionToken(
3809
+ token,
3810
+ options
3811
+ );
3812
+ }
3813
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
3814
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
3815
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
3816
+ throw new SeamHttpInvalidOptionsError(
3817
+ "Missing consoleSessionToken or workspaceId"
3818
+ );
3819
+ }
3820
+ return new _SeamHttpThermostatsDailyPrograms(constructorOptions);
3821
+ }
3822
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
3823
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
3824
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
3825
+ throw new SeamHttpInvalidOptionsError(
3826
+ "Missing personalAccessToken or workspaceId"
3827
+ );
3828
+ }
3829
+ return new _SeamHttpThermostatsDailyPrograms(constructorOptions);
3830
+ }
3831
+ createPaginator(request) {
3832
+ return new SeamPaginator(this, request);
3833
+ }
3834
+ async updateClientSessionToken(clientSessionToken) {
3835
+ const { headers } = this.client.defaults;
3836
+ const authHeaders = getAuthHeadersForClientSessionToken({
3837
+ clientSessionToken
3838
+ });
3839
+ for (const key of Object.keys(authHeaders)) {
3840
+ if (headers[key] == null) {
3841
+ throw new Error(
3842
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
3843
+ );
3844
+ }
3845
+ }
3846
+ this.client.defaults.headers = { ...headers, ...authHeaders };
3847
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
3848
+ await clientSessions.get();
3849
+ }
3850
+ create(body) {
3851
+ return new SeamHttpRequest(this, {
3852
+ pathname: "/thermostats/daily_programs/create",
3853
+ method: "post",
3854
+ body,
3855
+ responseKey: "thermostat_daily_program"
3856
+ });
3857
+ }
3858
+ delete(body) {
3859
+ return new SeamHttpRequest(this, {
3860
+ pathname: "/thermostats/daily_programs/delete",
3861
+ method: "post",
3862
+ body,
3863
+ responseKey: void 0
3864
+ });
3865
+ }
3866
+ update(body, options = {}) {
3867
+ return new SeamHttpRequest(this, {
3868
+ pathname: "/thermostats/daily_programs/update",
3869
+ method: "post",
3870
+ body,
3871
+ responseKey: "action_attempt",
3872
+ options
3873
+ });
3874
+ }
3875
+ };
3876
+
3938
3877
  // src/lib/seam/connect/routes/thermostats-schedules.ts
3939
3878
  var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
3940
3879
  constructor(apiKeyOrOptions = {}) {
@@ -4241,6 +4180,12 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4241
4180
  get simulate() {
4242
4181
  return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults);
4243
4182
  }
4183
+ get dailyPrograms() {
4184
+ return SeamHttpThermostatsDailyPrograms.fromClient(
4185
+ this.client,
4186
+ this.defaults
4187
+ );
4188
+ }
4244
4189
  activateClimatePreset(body, options = {}) {
4245
4190
  return new SeamHttpRequest(this, {
4246
4191
  pathname: "/thermostats/activate_climate_preset",
@@ -4352,6 +4297,97 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4352
4297
  responseKey: void 0
4353
4298
  });
4354
4299
  }
4300
+ updateWeeklyProgram(body, options = {}) {
4301
+ return new SeamHttpRequest(this, {
4302
+ pathname: "/thermostats/update_weekly_program",
4303
+ method: "post",
4304
+ body,
4305
+ responseKey: "action_attempt",
4306
+ options
4307
+ });
4308
+ }
4309
+ };
4310
+
4311
+ // src/lib/seam/connect/routes/unstable-partner.ts
4312
+ var SeamHttpUnstablePartner = class _SeamHttpUnstablePartner {
4313
+ constructor(apiKeyOrOptions = {}) {
4314
+ const options = parseOptions(apiKeyOrOptions);
4315
+ this.client = "client" in options ? options.client : createClient(options);
4316
+ this.defaults = limitToSeamHttpRequestOptions(options);
4317
+ }
4318
+ static fromClient(client, options = {}) {
4319
+ const constructorOptions = { ...options, client };
4320
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
4321
+ throw new SeamHttpInvalidOptionsError("Missing client");
4322
+ }
4323
+ return new _SeamHttpUnstablePartner(constructorOptions);
4324
+ }
4325
+ static fromApiKey(apiKey, options = {}) {
4326
+ const constructorOptions = { ...options, apiKey };
4327
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
4328
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
4329
+ }
4330
+ return new _SeamHttpUnstablePartner(constructorOptions);
4331
+ }
4332
+ static fromClientSessionToken(clientSessionToken, options = {}) {
4333
+ const constructorOptions = { ...options, clientSessionToken };
4334
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
4335
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
4336
+ }
4337
+ return new _SeamHttpUnstablePartner(constructorOptions);
4338
+ }
4339
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
4340
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
4341
+ const clientOptions = parseOptions({ ...options, publishableKey });
4342
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
4343
+ throw new SeamHttpInvalidOptionsError(
4344
+ "The client option cannot be used with SeamHttp.fromPublishableKey"
4345
+ );
4346
+ }
4347
+ const client = createClient(clientOptions);
4348
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
4349
+ const { token } = await clientSessions.getOrCreate({
4350
+ user_identifier_key: userIdentifierKey
4351
+ });
4352
+ return _SeamHttpUnstablePartner.fromClientSessionToken(token, options);
4353
+ }
4354
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
4355
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
4356
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
4357
+ throw new SeamHttpInvalidOptionsError(
4358
+ "Missing consoleSessionToken or workspaceId"
4359
+ );
4360
+ }
4361
+ return new _SeamHttpUnstablePartner(constructorOptions);
4362
+ }
4363
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
4364
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
4365
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
4366
+ throw new SeamHttpInvalidOptionsError(
4367
+ "Missing personalAccessToken or workspaceId"
4368
+ );
4369
+ }
4370
+ return new _SeamHttpUnstablePartner(constructorOptions);
4371
+ }
4372
+ createPaginator(request) {
4373
+ return new SeamPaginator(this, request);
4374
+ }
4375
+ async updateClientSessionToken(clientSessionToken) {
4376
+ const { headers } = this.client.defaults;
4377
+ const authHeaders = getAuthHeadersForClientSessionToken({
4378
+ clientSessionToken
4379
+ });
4380
+ for (const key of Object.keys(authHeaders)) {
4381
+ if (headers[key] == null) {
4382
+ throw new Error(
4383
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
4384
+ );
4385
+ }
4386
+ }
4387
+ this.client.defaults.headers = { ...headers, ...authHeaders };
4388
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
4389
+ await clientSessions.get();
4390
+ }
4355
4391
  };
4356
4392
 
4357
4393
  // src/lib/seam/connect/routes/user-identities-enrollment-automations.ts
@@ -4898,6 +4934,14 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
4898
4934
  options
4899
4935
  });
4900
4936
  }
4937
+ update(body) {
4938
+ return new SeamHttpRequest(this, {
4939
+ pathname: "/workspaces/update",
4940
+ method: "post",
4941
+ body,
4942
+ responseKey: void 0
4943
+ });
4944
+ }
4901
4945
  };
4902
4946
 
4903
4947
  // src/lib/seam/connect/seam-http.ts
@@ -5008,9 +5052,6 @@ var _SeamHttp = class _SeamHttp {
5008
5052
  get locks() {
5009
5053
  return SeamHttpLocks.fromClient(this.client, this.defaults);
5010
5054
  }
5011
- get networks() {
5012
- return SeamHttpNetworks.fromClient(this.client, this.defaults);
5013
- }
5014
5055
  get noiseSensors() {
5015
5056
  return SeamHttpNoiseSensors.fromClient(this.client, this.defaults);
5016
5057
  }
@@ -5091,7 +5132,6 @@ exports.SeamHttpAcsSystems = SeamHttpAcsSystems;
5091
5132
  exports.SeamHttpAcsUsers = SeamHttpAcsUsers;
5092
5133
  exports.SeamHttpActionAttempts = SeamHttpActionAttempts;
5093
5134
  exports.SeamHttpApiError = SeamHttpApiError;
5094
- exports.SeamHttpBridges = SeamHttpBridges;
5095
5135
  exports.SeamHttpClientSessions = SeamHttpClientSessions;
5096
5136
  exports.SeamHttpConnectWebviews = SeamHttpConnectWebviews;
5097
5137
  exports.SeamHttpConnectedAccounts = SeamHttpConnectedAccounts;
@@ -5105,7 +5145,6 @@ exports.SeamHttpInvalidTokenError = SeamHttpInvalidTokenError;
5105
5145
  exports.SeamHttpLocks = SeamHttpLocks;
5106
5146
  exports.SeamHttpMultiWorkspace = SeamHttpMultiWorkspace;
5107
5147
  exports.SeamHttpMultiWorkspaceInvalidOptionsError = SeamHttpMultiWorkspaceInvalidOptionsError;
5108
- exports.SeamHttpNetworks = SeamHttpNetworks;
5109
5148
  exports.SeamHttpNoiseSensors = SeamHttpNoiseSensors;
5110
5149
  exports.SeamHttpNoiseSensorsNoiseThresholds = SeamHttpNoiseSensorsNoiseThresholds;
5111
5150
  exports.SeamHttpNoiseSensorsSimulate = SeamHttpNoiseSensorsSimulate;
@@ -5113,9 +5152,11 @@ exports.SeamHttpPhones = SeamHttpPhones;
5113
5152
  exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
5114
5153
  exports.SeamHttpRequest = SeamHttpRequest;
5115
5154
  exports.SeamHttpThermostats = SeamHttpThermostats;
5155
+ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
5116
5156
  exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
5117
5157
  exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
5118
5158
  exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
5159
+ exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
5119
5160
  exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
5120
5161
  exports.SeamHttpUserIdentitiesEnrollmentAutomations = SeamHttpUserIdentitiesEnrollmentAutomations;
5121
5162
  exports.SeamHttpWebhooks = SeamHttpWebhooks;