@seamapi/http 1.56.0 → 1.58.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 +0 -698
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3 -278
  4. package/dist/index.cjs +0 -704
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/index.d.ts +0 -3
  8. package/lib/seam/connect/routes/index.js +0 -3
  9. package/lib/seam/connect/routes/index.js.map +1 -1
  10. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +2 -21
  11. package/lib/seam/connect/routes/seam-http-endpoints.js +0 -163
  12. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  13. package/lib/seam/connect/routes/seam-http.d.ts +0 -6
  14. package/lib/seam/connect/routes/seam-http.js +0 -12
  15. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  16. package/lib/version.d.ts +1 -1
  17. package/lib/version.js +1 -1
  18. package/package.json +3 -3
  19. package/src/lib/seam/connect/routes/index.ts +0 -3
  20. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -361
  21. package/src/lib/seam/connect/routes/seam-http.ts +0 -15
  22. package/src/lib/version.ts +1 -1
  23. package/lib/seam/connect/routes/unstable-access-grants/index.d.ts +0 -1
  24. package/lib/seam/connect/routes/unstable-access-grants/index.js +0 -6
  25. package/lib/seam/connect/routes/unstable-access-grants/index.js.map +0 -1
  26. package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.d.ts +0 -73
  27. package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js +0 -138
  28. package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js.map +0 -1
  29. package/lib/seam/connect/routes/unstable-access-methods/index.d.ts +0 -1
  30. package/lib/seam/connect/routes/unstable-access-methods/index.js +0 -6
  31. package/lib/seam/connect/routes/unstable-access-methods/index.js.map +0 -1
  32. package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.d.ts +0 -60
  33. package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js +0 -126
  34. package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js.map +0 -1
  35. package/lib/seam/connect/routes/unstable-locations/index.d.ts +0 -1
  36. package/lib/seam/connect/routes/unstable-locations/index.js +0 -6
  37. package/lib/seam/connect/routes/unstable-locations/index.js.map +0 -1
  38. package/lib/seam/connect/routes/unstable-locations/unstable-locations.d.ts +0 -138
  39. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js +0 -198
  40. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js.map +0 -1
  41. package/src/lib/seam/connect/routes/unstable-access-grants/index.ts +0 -6
  42. package/src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts +0 -333
  43. package/src/lib/seam/connect/routes/unstable-access-methods/index.ts +0 -6
  44. package/src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts +0 -295
  45. package/src/lib/seam/connect/routes/unstable-locations/index.ts +0 -6
  46. package/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts +0 -544
package/dist/index.cjs CHANGED
@@ -121,9 +121,6 @@ __export(index_exports, {
121
121
  SeamHttpThermostatsSchedules: () => SeamHttpThermostatsSchedules,
122
122
  SeamHttpThermostatsSimulate: () => SeamHttpThermostatsSimulate,
123
123
  SeamHttpUnauthorizedError: () => SeamHttpUnauthorizedError,
124
- SeamHttpUnstableAccessGrants: () => SeamHttpUnstableAccessGrants,
125
- SeamHttpUnstableAccessMethods: () => SeamHttpUnstableAccessMethods,
126
- SeamHttpUnstableLocations: () => SeamHttpUnstableLocations,
127
124
  SeamHttpUnstablePartner: () => SeamHttpUnstablePartner,
128
125
  SeamHttpUnstablePartnerBuildingBlocks: () => SeamHttpUnstablePartnerBuildingBlocks,
129
126
  SeamHttpUserIdentities: () => SeamHttpUserIdentities,
@@ -223,9 +220,6 @@ __export(connect_exports, {
223
220
  SeamHttpThermostatsSchedules: () => SeamHttpThermostatsSchedules,
224
221
  SeamHttpThermostatsSimulate: () => SeamHttpThermostatsSimulate,
225
222
  SeamHttpUnauthorizedError: () => SeamHttpUnauthorizedError,
226
- SeamHttpUnstableAccessGrants: () => SeamHttpUnstableAccessGrants,
227
- SeamHttpUnstableAccessMethods: () => SeamHttpUnstableAccessMethods,
228
- SeamHttpUnstableLocations: () => SeamHttpUnstableLocations,
229
223
  SeamHttpUnstablePartner: () => SeamHttpUnstablePartner,
230
224
  SeamHttpUnstablePartnerBuildingBlocks: () => SeamHttpUnstablePartnerBuildingBlocks,
231
225
  SeamHttpUserIdentities: () => SeamHttpUserIdentities,
@@ -7359,500 +7353,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
7359
7353
  _SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
7360
7354
  var SeamHttpThermostats = _SeamHttpThermostats;
7361
7355
 
7362
- // src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts
7363
- var _SeamHttpUnstableAccessGrants = class _SeamHttpUnstableAccessGrants {
7364
- constructor(apiKeyOrOptions = {}) {
7365
- this.ltsVersion = seamApiLtsVersion;
7366
- const options = parseOptions(apiKeyOrOptions);
7367
- if (!options.isUndocumentedApiEnabled) {
7368
- throw new Error(
7369
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7370
- );
7371
- }
7372
- this.client = "client" in options ? options.client : createClient(options);
7373
- this.defaults = limitToSeamHttpRequestOptions(options);
7374
- }
7375
- static fromClient(client, options = {}) {
7376
- const constructorOptions = { ...options, client };
7377
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
7378
- throw new SeamHttpInvalidOptionsError("Missing client");
7379
- }
7380
- return new _SeamHttpUnstableAccessGrants(constructorOptions);
7381
- }
7382
- static fromApiKey(apiKey, options = {}) {
7383
- const constructorOptions = { ...options, apiKey };
7384
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
7385
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
7386
- }
7387
- return new _SeamHttpUnstableAccessGrants(constructorOptions);
7388
- }
7389
- static fromClientSessionToken(clientSessionToken, options = {}) {
7390
- const constructorOptions = { ...options, clientSessionToken };
7391
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
7392
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
7393
- }
7394
- return new _SeamHttpUnstableAccessGrants(constructorOptions);
7395
- }
7396
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
7397
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
7398
- const clientOptions = parseOptions({ ...options, publishableKey });
7399
- if (isSeamHttpOptionsWithClient(clientOptions)) {
7400
- throw new SeamHttpInvalidOptionsError(
7401
- "The client option cannot be used with SeamHttpUnstableAccessGrants.fromPublishableKey"
7402
- );
7403
- }
7404
- const client = createClient(clientOptions);
7405
- const clientSessions = SeamHttpClientSessions.fromClient(client);
7406
- const { token } = await clientSessions.getOrCreate({
7407
- user_identifier_key: userIdentifierKey
7408
- });
7409
- return _SeamHttpUnstableAccessGrants.fromClientSessionToken(token, options);
7410
- }
7411
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
7412
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
7413
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
7414
- throw new SeamHttpInvalidOptionsError(
7415
- "Missing consoleSessionToken or workspaceId"
7416
- );
7417
- }
7418
- return new _SeamHttpUnstableAccessGrants(constructorOptions);
7419
- }
7420
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
7421
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
7422
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
7423
- throw new SeamHttpInvalidOptionsError(
7424
- "Missing personalAccessToken or workspaceId"
7425
- );
7426
- }
7427
- return new _SeamHttpUnstableAccessGrants(constructorOptions);
7428
- }
7429
- createPaginator(request) {
7430
- return new SeamPaginator(this, request);
7431
- }
7432
- async updateClientSessionToken(clientSessionToken) {
7433
- const { headers } = this.client.defaults;
7434
- const authHeaders = getAuthHeadersForClientSessionToken({
7435
- clientSessionToken
7436
- });
7437
- for (const key of Object.keys(authHeaders)) {
7438
- if (headers[key] == null) {
7439
- throw new Error(
7440
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
7441
- );
7442
- }
7443
- }
7444
- this.client.defaults.headers = { ...headers, ...authHeaders };
7445
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7446
- await clientSessions.get();
7447
- }
7448
- create(parameters, options = {}) {
7449
- if (!this.defaults.isUndocumentedApiEnabled) {
7450
- throw new Error(
7451
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7452
- );
7453
- }
7454
- return new SeamHttpRequest(this, {
7455
- pathname: "/unstable_access_grants/create",
7456
- method: "POST",
7457
- body: parameters,
7458
- responseKey: "access_grant",
7459
- options
7460
- });
7461
- }
7462
- delete(parameters, options = {}) {
7463
- if (!this.defaults.isUndocumentedApiEnabled) {
7464
- throw new Error(
7465
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7466
- );
7467
- }
7468
- return new SeamHttpRequest(this, {
7469
- pathname: "/unstable_access_grants/delete",
7470
- method: "POST",
7471
- body: parameters,
7472
- responseKey: void 0,
7473
- options
7474
- });
7475
- }
7476
- get(parameters, options = {}) {
7477
- if (!this.defaults.isUndocumentedApiEnabled) {
7478
- throw new Error(
7479
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7480
- );
7481
- }
7482
- return new SeamHttpRequest(this, {
7483
- pathname: "/unstable_access_grants/get",
7484
- method: "POST",
7485
- body: parameters,
7486
- responseKey: "access_grant",
7487
- options
7488
- });
7489
- }
7490
- list(parameters, options = {}) {
7491
- if (!this.defaults.isUndocumentedApiEnabled) {
7492
- throw new Error(
7493
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7494
- );
7495
- }
7496
- return new SeamHttpRequest(this, {
7497
- pathname: "/unstable_access_grants/list",
7498
- method: "POST",
7499
- body: parameters,
7500
- responseKey: "access_grants",
7501
- options
7502
- });
7503
- }
7504
- };
7505
- _SeamHttpUnstableAccessGrants.ltsVersion = seamApiLtsVersion;
7506
- var SeamHttpUnstableAccessGrants = _SeamHttpUnstableAccessGrants;
7507
-
7508
- // src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts
7509
- var _SeamHttpUnstableAccessMethods = class _SeamHttpUnstableAccessMethods {
7510
- constructor(apiKeyOrOptions = {}) {
7511
- this.ltsVersion = seamApiLtsVersion;
7512
- const options = parseOptions(apiKeyOrOptions);
7513
- if (!options.isUndocumentedApiEnabled) {
7514
- throw new Error(
7515
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7516
- );
7517
- }
7518
- this.client = "client" in options ? options.client : createClient(options);
7519
- this.defaults = limitToSeamHttpRequestOptions(options);
7520
- }
7521
- static fromClient(client, options = {}) {
7522
- const constructorOptions = { ...options, client };
7523
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
7524
- throw new SeamHttpInvalidOptionsError("Missing client");
7525
- }
7526
- return new _SeamHttpUnstableAccessMethods(constructorOptions);
7527
- }
7528
- static fromApiKey(apiKey, options = {}) {
7529
- const constructorOptions = { ...options, apiKey };
7530
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
7531
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
7532
- }
7533
- return new _SeamHttpUnstableAccessMethods(constructorOptions);
7534
- }
7535
- static fromClientSessionToken(clientSessionToken, options = {}) {
7536
- const constructorOptions = { ...options, clientSessionToken };
7537
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
7538
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
7539
- }
7540
- return new _SeamHttpUnstableAccessMethods(constructorOptions);
7541
- }
7542
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
7543
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
7544
- const clientOptions = parseOptions({ ...options, publishableKey });
7545
- if (isSeamHttpOptionsWithClient(clientOptions)) {
7546
- throw new SeamHttpInvalidOptionsError(
7547
- "The client option cannot be used with SeamHttpUnstableAccessMethods.fromPublishableKey"
7548
- );
7549
- }
7550
- const client = createClient(clientOptions);
7551
- const clientSessions = SeamHttpClientSessions.fromClient(client);
7552
- const { token } = await clientSessions.getOrCreate({
7553
- user_identifier_key: userIdentifierKey
7554
- });
7555
- return _SeamHttpUnstableAccessMethods.fromClientSessionToken(token, options);
7556
- }
7557
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
7558
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
7559
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
7560
- throw new SeamHttpInvalidOptionsError(
7561
- "Missing consoleSessionToken or workspaceId"
7562
- );
7563
- }
7564
- return new _SeamHttpUnstableAccessMethods(constructorOptions);
7565
- }
7566
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
7567
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
7568
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
7569
- throw new SeamHttpInvalidOptionsError(
7570
- "Missing personalAccessToken or workspaceId"
7571
- );
7572
- }
7573
- return new _SeamHttpUnstableAccessMethods(constructorOptions);
7574
- }
7575
- createPaginator(request) {
7576
- return new SeamPaginator(this, request);
7577
- }
7578
- async updateClientSessionToken(clientSessionToken) {
7579
- const { headers } = this.client.defaults;
7580
- const authHeaders = getAuthHeadersForClientSessionToken({
7581
- clientSessionToken
7582
- });
7583
- for (const key of Object.keys(authHeaders)) {
7584
- if (headers[key] == null) {
7585
- throw new Error(
7586
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
7587
- );
7588
- }
7589
- }
7590
- this.client.defaults.headers = { ...headers, ...authHeaders };
7591
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7592
- await clientSessions.get();
7593
- }
7594
- delete(parameters, options = {}) {
7595
- if (!this.defaults.isUndocumentedApiEnabled) {
7596
- throw new Error(
7597
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7598
- );
7599
- }
7600
- return new SeamHttpRequest(this, {
7601
- pathname: "/unstable_access_methods/delete",
7602
- method: "POST",
7603
- body: parameters,
7604
- responseKey: void 0,
7605
- options
7606
- });
7607
- }
7608
- get(parameters, options = {}) {
7609
- if (!this.defaults.isUndocumentedApiEnabled) {
7610
- throw new Error(
7611
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7612
- );
7613
- }
7614
- return new SeamHttpRequest(this, {
7615
- pathname: "/unstable_access_methods/get",
7616
- method: "POST",
7617
- body: parameters,
7618
- responseKey: "access_method",
7619
- options
7620
- });
7621
- }
7622
- list(parameters, options = {}) {
7623
- if (!this.defaults.isUndocumentedApiEnabled) {
7624
- throw new Error(
7625
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7626
- );
7627
- }
7628
- return new SeamHttpRequest(this, {
7629
- pathname: "/unstable_access_methods/list",
7630
- method: "POST",
7631
- body: parameters,
7632
- responseKey: "access_methods",
7633
- options
7634
- });
7635
- }
7636
- };
7637
- _SeamHttpUnstableAccessMethods.ltsVersion = seamApiLtsVersion;
7638
- var SeamHttpUnstableAccessMethods = _SeamHttpUnstableAccessMethods;
7639
-
7640
- // src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts
7641
- var _SeamHttpUnstableLocations = class _SeamHttpUnstableLocations {
7642
- constructor(apiKeyOrOptions = {}) {
7643
- this.ltsVersion = seamApiLtsVersion;
7644
- const options = parseOptions(apiKeyOrOptions);
7645
- if (!options.isUndocumentedApiEnabled) {
7646
- throw new Error(
7647
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7648
- );
7649
- }
7650
- this.client = "client" in options ? options.client : createClient(options);
7651
- this.defaults = limitToSeamHttpRequestOptions(options);
7652
- }
7653
- static fromClient(client, options = {}) {
7654
- const constructorOptions = { ...options, client };
7655
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
7656
- throw new SeamHttpInvalidOptionsError("Missing client");
7657
- }
7658
- return new _SeamHttpUnstableLocations(constructorOptions);
7659
- }
7660
- static fromApiKey(apiKey, options = {}) {
7661
- const constructorOptions = { ...options, apiKey };
7662
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
7663
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
7664
- }
7665
- return new _SeamHttpUnstableLocations(constructorOptions);
7666
- }
7667
- static fromClientSessionToken(clientSessionToken, options = {}) {
7668
- const constructorOptions = { ...options, clientSessionToken };
7669
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
7670
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
7671
- }
7672
- return new _SeamHttpUnstableLocations(constructorOptions);
7673
- }
7674
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
7675
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
7676
- const clientOptions = parseOptions({ ...options, publishableKey });
7677
- if (isSeamHttpOptionsWithClient(clientOptions)) {
7678
- throw new SeamHttpInvalidOptionsError(
7679
- "The client option cannot be used with SeamHttpUnstableLocations.fromPublishableKey"
7680
- );
7681
- }
7682
- const client = createClient(clientOptions);
7683
- const clientSessions = SeamHttpClientSessions.fromClient(client);
7684
- const { token } = await clientSessions.getOrCreate({
7685
- user_identifier_key: userIdentifierKey
7686
- });
7687
- return _SeamHttpUnstableLocations.fromClientSessionToken(token, options);
7688
- }
7689
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
7690
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
7691
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
7692
- throw new SeamHttpInvalidOptionsError(
7693
- "Missing consoleSessionToken or workspaceId"
7694
- );
7695
- }
7696
- return new _SeamHttpUnstableLocations(constructorOptions);
7697
- }
7698
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
7699
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
7700
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
7701
- throw new SeamHttpInvalidOptionsError(
7702
- "Missing personalAccessToken or workspaceId"
7703
- );
7704
- }
7705
- return new _SeamHttpUnstableLocations(constructorOptions);
7706
- }
7707
- createPaginator(request) {
7708
- return new SeamPaginator(this, request);
7709
- }
7710
- async updateClientSessionToken(clientSessionToken) {
7711
- const { headers } = this.client.defaults;
7712
- const authHeaders = getAuthHeadersForClientSessionToken({
7713
- clientSessionToken
7714
- });
7715
- for (const key of Object.keys(authHeaders)) {
7716
- if (headers[key] == null) {
7717
- throw new Error(
7718
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
7719
- );
7720
- }
7721
- }
7722
- this.client.defaults.headers = { ...headers, ...authHeaders };
7723
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7724
- await clientSessions.get();
7725
- }
7726
- addAcsEntrances(parameters, options = {}) {
7727
- if (!this.defaults.isUndocumentedApiEnabled) {
7728
- throw new Error(
7729
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7730
- );
7731
- }
7732
- return new SeamHttpRequest(this, {
7733
- pathname: "/unstable_locations/add_acs_entrances",
7734
- method: "PUT",
7735
- body: parameters,
7736
- responseKey: void 0,
7737
- options
7738
- });
7739
- }
7740
- addDevices(parameters, options = {}) {
7741
- if (!this.defaults.isUndocumentedApiEnabled) {
7742
- throw new Error(
7743
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7744
- );
7745
- }
7746
- return new SeamHttpRequest(this, {
7747
- pathname: "/unstable_locations/add_devices",
7748
- method: "PUT",
7749
- body: parameters,
7750
- responseKey: void 0,
7751
- options
7752
- });
7753
- }
7754
- create(parameters, options = {}) {
7755
- if (!this.defaults.isUndocumentedApiEnabled) {
7756
- throw new Error(
7757
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7758
- );
7759
- }
7760
- return new SeamHttpRequest(this, {
7761
- pathname: "/unstable_locations/create",
7762
- method: "POST",
7763
- body: parameters,
7764
- responseKey: "location",
7765
- options
7766
- });
7767
- }
7768
- delete(parameters, options = {}) {
7769
- if (!this.defaults.isUndocumentedApiEnabled) {
7770
- throw new Error(
7771
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7772
- );
7773
- }
7774
- return new SeamHttpRequest(this, {
7775
- pathname: "/unstable_locations/delete",
7776
- method: "POST",
7777
- body: parameters,
7778
- responseKey: void 0,
7779
- options
7780
- });
7781
- }
7782
- get(parameters, options = {}) {
7783
- if (!this.defaults.isUndocumentedApiEnabled) {
7784
- throw new Error(
7785
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7786
- );
7787
- }
7788
- return new SeamHttpRequest(this, {
7789
- pathname: "/unstable_locations/get",
7790
- method: "POST",
7791
- body: parameters,
7792
- responseKey: "location",
7793
- options
7794
- });
7795
- }
7796
- list(parameters, options = {}) {
7797
- if (!this.defaults.isUndocumentedApiEnabled) {
7798
- throw new Error(
7799
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7800
- );
7801
- }
7802
- return new SeamHttpRequest(this, {
7803
- pathname: "/unstable_locations/list",
7804
- method: "GET",
7805
- params: parameters,
7806
- responseKey: "locations",
7807
- options
7808
- });
7809
- }
7810
- removeAcsEntrances(parameters, options = {}) {
7811
- if (!this.defaults.isUndocumentedApiEnabled) {
7812
- throw new Error(
7813
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7814
- );
7815
- }
7816
- return new SeamHttpRequest(this, {
7817
- pathname: "/unstable_locations/remove_acs_entrances",
7818
- method: "POST",
7819
- body: parameters,
7820
- responseKey: void 0,
7821
- options
7822
- });
7823
- }
7824
- removeDevices(parameters, options = {}) {
7825
- if (!this.defaults.isUndocumentedApiEnabled) {
7826
- throw new Error(
7827
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7828
- );
7829
- }
7830
- return new SeamHttpRequest(this, {
7831
- pathname: "/unstable_locations/remove_devices",
7832
- method: "POST",
7833
- body: parameters,
7834
- responseKey: void 0,
7835
- options
7836
- });
7837
- }
7838
- update(parameters, options = {}) {
7839
- if (!this.defaults.isUndocumentedApiEnabled) {
7840
- throw new Error(
7841
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7842
- );
7843
- }
7844
- return new SeamHttpRequest(this, {
7845
- pathname: "/unstable_locations/update",
7846
- method: "PATCH",
7847
- body: parameters,
7848
- responseKey: "location",
7849
- options
7850
- });
7851
- }
7852
- };
7853
- _SeamHttpUnstableLocations.ltsVersion = seamApiLtsVersion;
7854
- var SeamHttpUnstableLocations = _SeamHttpUnstableLocations;
7855
-
7856
7356
  // src/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.ts
7857
7357
  var _SeamHttpUnstablePartnerBuildingBlocks = class _SeamHttpUnstablePartnerBuildingBlocks {
7858
7358
  constructor(apiKeyOrOptions = {}) {
@@ -8864,15 +8364,6 @@ var _SeamHttp = class _SeamHttp {
8864
8364
  get thermostats() {
8865
8365
  return SeamHttpThermostats.fromClient(this.client, this.defaults);
8866
8366
  }
8867
- get unstableAccessGrants() {
8868
- return SeamHttpUnstableAccessGrants.fromClient(this.client, this.defaults);
8869
- }
8870
- get unstableAccessMethods() {
8871
- return SeamHttpUnstableAccessMethods.fromClient(this.client, this.defaults);
8872
- }
8873
- get unstableLocations() {
8874
- return SeamHttpUnstableLocations.fromClient(this.client, this.defaults);
8875
- }
8876
8367
  get unstablePartner() {
8877
8368
  return SeamHttpUnstablePartner.fromClient(this.client, this.defaults);
8878
8369
  }
@@ -10364,198 +9855,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10364
9855
  return seam.temperatureReached(...args);
10365
9856
  };
10366
9857
  }
10367
- get ["/unstable_access_grants/create"]() {
10368
- const { client, defaults } = this;
10369
- if (!this.defaults.isUndocumentedApiEnabled) {
10370
- throw new Error(
10371
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10372
- );
10373
- }
10374
- return function unstableAccessGrantsCreate(...args) {
10375
- const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
10376
- return seam.create(...args);
10377
- };
10378
- }
10379
- get ["/unstable_access_grants/delete"]() {
10380
- const { client, defaults } = this;
10381
- if (!this.defaults.isUndocumentedApiEnabled) {
10382
- throw new Error(
10383
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10384
- );
10385
- }
10386
- return function unstableAccessGrantsDelete(...args) {
10387
- const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
10388
- return seam.delete(...args);
10389
- };
10390
- }
10391
- get ["/unstable_access_grants/get"]() {
10392
- const { client, defaults } = this;
10393
- if (!this.defaults.isUndocumentedApiEnabled) {
10394
- throw new Error(
10395
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10396
- );
10397
- }
10398
- return function unstableAccessGrantsGet(...args) {
10399
- const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
10400
- return seam.get(...args);
10401
- };
10402
- }
10403
- get ["/unstable_access_grants/list"]() {
10404
- const { client, defaults } = this;
10405
- if (!this.defaults.isUndocumentedApiEnabled) {
10406
- throw new Error(
10407
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10408
- );
10409
- }
10410
- return function unstableAccessGrantsList(...args) {
10411
- const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
10412
- return seam.list(...args);
10413
- };
10414
- }
10415
- get ["/unstable_access_methods/delete"]() {
10416
- const { client, defaults } = this;
10417
- if (!this.defaults.isUndocumentedApiEnabled) {
10418
- throw new Error(
10419
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10420
- );
10421
- }
10422
- return function unstableAccessMethodsDelete(...args) {
10423
- const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
10424
- return seam.delete(...args);
10425
- };
10426
- }
10427
- get ["/unstable_access_methods/get"]() {
10428
- const { client, defaults } = this;
10429
- if (!this.defaults.isUndocumentedApiEnabled) {
10430
- throw new Error(
10431
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10432
- );
10433
- }
10434
- return function unstableAccessMethodsGet(...args) {
10435
- const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
10436
- return seam.get(...args);
10437
- };
10438
- }
10439
- get ["/unstable_access_methods/list"]() {
10440
- const { client, defaults } = this;
10441
- if (!this.defaults.isUndocumentedApiEnabled) {
10442
- throw new Error(
10443
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10444
- );
10445
- }
10446
- return function unstableAccessMethodsList(...args) {
10447
- const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
10448
- return seam.list(...args);
10449
- };
10450
- }
10451
- get ["/unstable_locations/add_acs_entrances"]() {
10452
- const { client, defaults } = this;
10453
- if (!this.defaults.isUndocumentedApiEnabled) {
10454
- throw new Error(
10455
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10456
- );
10457
- }
10458
- return function unstableLocationsAddAcsEntrances(...args) {
10459
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10460
- return seam.addAcsEntrances(...args);
10461
- };
10462
- }
10463
- get ["/unstable_locations/add_devices"]() {
10464
- const { client, defaults } = this;
10465
- if (!this.defaults.isUndocumentedApiEnabled) {
10466
- throw new Error(
10467
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10468
- );
10469
- }
10470
- return function unstableLocationsAddDevices(...args) {
10471
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10472
- return seam.addDevices(...args);
10473
- };
10474
- }
10475
- get ["/unstable_locations/create"]() {
10476
- const { client, defaults } = this;
10477
- if (!this.defaults.isUndocumentedApiEnabled) {
10478
- throw new Error(
10479
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10480
- );
10481
- }
10482
- return function unstableLocationsCreate(...args) {
10483
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10484
- return seam.create(...args);
10485
- };
10486
- }
10487
- get ["/unstable_locations/delete"]() {
10488
- const { client, defaults } = this;
10489
- if (!this.defaults.isUndocumentedApiEnabled) {
10490
- throw new Error(
10491
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10492
- );
10493
- }
10494
- return function unstableLocationsDelete(...args) {
10495
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10496
- return seam.delete(...args);
10497
- };
10498
- }
10499
- get ["/unstable_locations/get"]() {
10500
- const { client, defaults } = this;
10501
- if (!this.defaults.isUndocumentedApiEnabled) {
10502
- throw new Error(
10503
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10504
- );
10505
- }
10506
- return function unstableLocationsGet(...args) {
10507
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10508
- return seam.get(...args);
10509
- };
10510
- }
10511
- get ["/unstable_locations/list"]() {
10512
- const { client, defaults } = this;
10513
- if (!this.defaults.isUndocumentedApiEnabled) {
10514
- throw new Error(
10515
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10516
- );
10517
- }
10518
- return function unstableLocationsList(...args) {
10519
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10520
- return seam.list(...args);
10521
- };
10522
- }
10523
- get ["/unstable_locations/remove_acs_entrances"]() {
10524
- const { client, defaults } = this;
10525
- if (!this.defaults.isUndocumentedApiEnabled) {
10526
- throw new Error(
10527
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10528
- );
10529
- }
10530
- return function unstableLocationsRemoveAcsEntrances(...args) {
10531
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10532
- return seam.removeAcsEntrances(...args);
10533
- };
10534
- }
10535
- get ["/unstable_locations/remove_devices"]() {
10536
- const { client, defaults } = this;
10537
- if (!this.defaults.isUndocumentedApiEnabled) {
10538
- throw new Error(
10539
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10540
- );
10541
- }
10542
- return function unstableLocationsRemoveDevices(...args) {
10543
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10544
- return seam.removeDevices(...args);
10545
- };
10546
- }
10547
- get ["/unstable_locations/update"]() {
10548
- const { client, defaults } = this;
10549
- if (!this.defaults.isUndocumentedApiEnabled) {
10550
- throw new Error(
10551
- "Cannot use undocumented API without isUndocumentedApiEnabled"
10552
- );
10553
- }
10554
- return function unstableLocationsUpdate(...args) {
10555
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
10556
- return seam.update(...args);
10557
- };
10558
- }
10559
9858
  get ["/unstable_partner/building_blocks/connect_accounts"]() {
10560
9859
  const { client, defaults } = this;
10561
9860
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -11023,9 +10322,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
11023
10322
  exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
11024
10323
  exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
11025
10324
  exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
11026
- exports.SeamHttpUnstableAccessGrants = SeamHttpUnstableAccessGrants;
11027
- exports.SeamHttpUnstableAccessMethods = SeamHttpUnstableAccessMethods;
11028
- exports.SeamHttpUnstableLocations = SeamHttpUnstableLocations;
11029
10325
  exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
11030
10326
  exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
11031
10327
  exports.SeamHttpUserIdentities = SeamHttpUserIdentities;