@seamapi/http 1.57.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 (30) hide show
  1. package/dist/connect.cjs +0 -328
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3 -146
  4. package/dist/index.cjs +0 -330
  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 -1
  8. package/lib/seam/connect/routes/index.js +0 -1
  9. package/lib/seam/connect/routes/index.js.map +1 -1
  10. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +2 -12
  11. package/lib/seam/connect/routes/seam-http-endpoints.js +0 -91
  12. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  13. package/lib/seam/connect/routes/seam-http.d.ts +0 -2
  14. package/lib/seam/connect/routes/seam-http.js +0 -4
  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 -1
  20. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -201
  21. package/src/lib/seam/connect/routes/seam-http.ts +0 -5
  22. package/src/lib/version.ts +1 -1
  23. package/lib/seam/connect/routes/unstable-locations/index.d.ts +0 -1
  24. package/lib/seam/connect/routes/unstable-locations/index.js +0 -6
  25. package/lib/seam/connect/routes/unstable-locations/index.js.map +0 -1
  26. package/lib/seam/connect/routes/unstable-locations/unstable-locations.d.ts +0 -138
  27. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js +0 -198
  28. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js.map +0 -1
  29. package/src/lib/seam/connect/routes/unstable-locations/index.ts +0 -6
  30. package/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts +0 -544
package/dist/connect.cjs CHANGED
@@ -7119,222 +7119,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
7119
7119
  _SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
7120
7120
  var SeamHttpThermostats = _SeamHttpThermostats;
7121
7121
 
7122
- // src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts
7123
- var _SeamHttpUnstableLocations = class _SeamHttpUnstableLocations {
7124
- constructor(apiKeyOrOptions = {}) {
7125
- this.ltsVersion = seamApiLtsVersion;
7126
- const options = parseOptions(apiKeyOrOptions);
7127
- if (!options.isUndocumentedApiEnabled) {
7128
- throw new Error(
7129
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7130
- );
7131
- }
7132
- this.client = "client" in options ? options.client : createClient(options);
7133
- this.defaults = limitToSeamHttpRequestOptions(options);
7134
- }
7135
- static fromClient(client, options = {}) {
7136
- const constructorOptions = { ...options, client };
7137
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
7138
- throw new SeamHttpInvalidOptionsError("Missing client");
7139
- }
7140
- return new _SeamHttpUnstableLocations(constructorOptions);
7141
- }
7142
- static fromApiKey(apiKey, options = {}) {
7143
- const constructorOptions = { ...options, apiKey };
7144
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
7145
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
7146
- }
7147
- return new _SeamHttpUnstableLocations(constructorOptions);
7148
- }
7149
- static fromClientSessionToken(clientSessionToken, options = {}) {
7150
- const constructorOptions = { ...options, clientSessionToken };
7151
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
7152
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
7153
- }
7154
- return new _SeamHttpUnstableLocations(constructorOptions);
7155
- }
7156
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
7157
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
7158
- const clientOptions = parseOptions({ ...options, publishableKey });
7159
- if (isSeamHttpOptionsWithClient(clientOptions)) {
7160
- throw new SeamHttpInvalidOptionsError(
7161
- "The client option cannot be used with SeamHttpUnstableLocations.fromPublishableKey"
7162
- );
7163
- }
7164
- const client = createClient(clientOptions);
7165
- const clientSessions = SeamHttpClientSessions.fromClient(client);
7166
- const { token } = await clientSessions.getOrCreate({
7167
- user_identifier_key: userIdentifierKey
7168
- });
7169
- return _SeamHttpUnstableLocations.fromClientSessionToken(token, options);
7170
- }
7171
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
7172
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
7173
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
7174
- throw new SeamHttpInvalidOptionsError(
7175
- "Missing consoleSessionToken or workspaceId"
7176
- );
7177
- }
7178
- return new _SeamHttpUnstableLocations(constructorOptions);
7179
- }
7180
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
7181
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
7182
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
7183
- throw new SeamHttpInvalidOptionsError(
7184
- "Missing personalAccessToken or workspaceId"
7185
- );
7186
- }
7187
- return new _SeamHttpUnstableLocations(constructorOptions);
7188
- }
7189
- createPaginator(request) {
7190
- return new SeamPaginator(this, request);
7191
- }
7192
- async updateClientSessionToken(clientSessionToken) {
7193
- const { headers } = this.client.defaults;
7194
- const authHeaders = getAuthHeadersForClientSessionToken({
7195
- clientSessionToken
7196
- });
7197
- for (const key of Object.keys(authHeaders)) {
7198
- if (headers[key] == null) {
7199
- throw new Error(
7200
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
7201
- );
7202
- }
7203
- }
7204
- this.client.defaults.headers = { ...headers, ...authHeaders };
7205
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7206
- await clientSessions.get();
7207
- }
7208
- addAcsEntrances(parameters, options = {}) {
7209
- if (!this.defaults.isUndocumentedApiEnabled) {
7210
- throw new Error(
7211
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7212
- );
7213
- }
7214
- return new SeamHttpRequest(this, {
7215
- pathname: "/unstable_locations/add_acs_entrances",
7216
- method: "PUT",
7217
- body: parameters,
7218
- responseKey: void 0,
7219
- options
7220
- });
7221
- }
7222
- addDevices(parameters, options = {}) {
7223
- if (!this.defaults.isUndocumentedApiEnabled) {
7224
- throw new Error(
7225
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7226
- );
7227
- }
7228
- return new SeamHttpRequest(this, {
7229
- pathname: "/unstable_locations/add_devices",
7230
- method: "PUT",
7231
- body: parameters,
7232
- responseKey: void 0,
7233
- options
7234
- });
7235
- }
7236
- create(parameters, options = {}) {
7237
- if (!this.defaults.isUndocumentedApiEnabled) {
7238
- throw new Error(
7239
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7240
- );
7241
- }
7242
- return new SeamHttpRequest(this, {
7243
- pathname: "/unstable_locations/create",
7244
- method: "POST",
7245
- body: parameters,
7246
- responseKey: "location",
7247
- options
7248
- });
7249
- }
7250
- delete(parameters, options = {}) {
7251
- if (!this.defaults.isUndocumentedApiEnabled) {
7252
- throw new Error(
7253
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7254
- );
7255
- }
7256
- return new SeamHttpRequest(this, {
7257
- pathname: "/unstable_locations/delete",
7258
- method: "POST",
7259
- body: parameters,
7260
- responseKey: void 0,
7261
- options
7262
- });
7263
- }
7264
- get(parameters, options = {}) {
7265
- if (!this.defaults.isUndocumentedApiEnabled) {
7266
- throw new Error(
7267
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7268
- );
7269
- }
7270
- return new SeamHttpRequest(this, {
7271
- pathname: "/unstable_locations/get",
7272
- method: "POST",
7273
- body: parameters,
7274
- responseKey: "location",
7275
- options
7276
- });
7277
- }
7278
- list(parameters, options = {}) {
7279
- if (!this.defaults.isUndocumentedApiEnabled) {
7280
- throw new Error(
7281
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7282
- );
7283
- }
7284
- return new SeamHttpRequest(this, {
7285
- pathname: "/unstable_locations/list",
7286
- method: "GET",
7287
- params: parameters,
7288
- responseKey: "locations",
7289
- options
7290
- });
7291
- }
7292
- removeAcsEntrances(parameters, options = {}) {
7293
- if (!this.defaults.isUndocumentedApiEnabled) {
7294
- throw new Error(
7295
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7296
- );
7297
- }
7298
- return new SeamHttpRequest(this, {
7299
- pathname: "/unstable_locations/remove_acs_entrances",
7300
- method: "POST",
7301
- body: parameters,
7302
- responseKey: void 0,
7303
- options
7304
- });
7305
- }
7306
- removeDevices(parameters, options = {}) {
7307
- if (!this.defaults.isUndocumentedApiEnabled) {
7308
- throw new Error(
7309
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7310
- );
7311
- }
7312
- return new SeamHttpRequest(this, {
7313
- pathname: "/unstable_locations/remove_devices",
7314
- method: "POST",
7315
- body: parameters,
7316
- responseKey: void 0,
7317
- options
7318
- });
7319
- }
7320
- update(parameters, options = {}) {
7321
- if (!this.defaults.isUndocumentedApiEnabled) {
7322
- throw new Error(
7323
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7324
- );
7325
- }
7326
- return new SeamHttpRequest(this, {
7327
- pathname: "/unstable_locations/update",
7328
- method: "PATCH",
7329
- body: parameters,
7330
- responseKey: "location",
7331
- options
7332
- });
7333
- }
7334
- };
7335
- _SeamHttpUnstableLocations.ltsVersion = seamApiLtsVersion;
7336
- var SeamHttpUnstableLocations = _SeamHttpUnstableLocations;
7337
-
7338
7122
  // src/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.ts
7339
7123
  var _SeamHttpUnstablePartnerBuildingBlocks = class _SeamHttpUnstablePartnerBuildingBlocks {
7340
7124
  constructor(apiKeyOrOptions = {}) {
@@ -8346,9 +8130,6 @@ var _SeamHttp = class _SeamHttp {
8346
8130
  get thermostats() {
8347
8131
  return SeamHttpThermostats.fromClient(this.client, this.defaults);
8348
8132
  }
8349
- get unstableLocations() {
8350
- return SeamHttpUnstableLocations.fromClient(this.client, this.defaults);
8351
- }
8352
8133
  get unstablePartner() {
8353
8134
  return SeamHttpUnstablePartner.fromClient(this.client, this.defaults);
8354
8135
  }
@@ -9840,114 +9621,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
9840
9621
  return seam.temperatureReached(...args);
9841
9622
  };
9842
9623
  }
9843
- get ["/unstable_locations/add_acs_entrances"]() {
9844
- const { client, defaults } = this;
9845
- if (!this.defaults.isUndocumentedApiEnabled) {
9846
- throw new Error(
9847
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9848
- );
9849
- }
9850
- return function unstableLocationsAddAcsEntrances(...args) {
9851
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9852
- return seam.addAcsEntrances(...args);
9853
- };
9854
- }
9855
- get ["/unstable_locations/add_devices"]() {
9856
- const { client, defaults } = this;
9857
- if (!this.defaults.isUndocumentedApiEnabled) {
9858
- throw new Error(
9859
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9860
- );
9861
- }
9862
- return function unstableLocationsAddDevices(...args) {
9863
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9864
- return seam.addDevices(...args);
9865
- };
9866
- }
9867
- get ["/unstable_locations/create"]() {
9868
- const { client, defaults } = this;
9869
- if (!this.defaults.isUndocumentedApiEnabled) {
9870
- throw new Error(
9871
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9872
- );
9873
- }
9874
- return function unstableLocationsCreate(...args) {
9875
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9876
- return seam.create(...args);
9877
- };
9878
- }
9879
- get ["/unstable_locations/delete"]() {
9880
- const { client, defaults } = this;
9881
- if (!this.defaults.isUndocumentedApiEnabled) {
9882
- throw new Error(
9883
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9884
- );
9885
- }
9886
- return function unstableLocationsDelete(...args) {
9887
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9888
- return seam.delete(...args);
9889
- };
9890
- }
9891
- get ["/unstable_locations/get"]() {
9892
- const { client, defaults } = this;
9893
- if (!this.defaults.isUndocumentedApiEnabled) {
9894
- throw new Error(
9895
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9896
- );
9897
- }
9898
- return function unstableLocationsGet(...args) {
9899
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9900
- return seam.get(...args);
9901
- };
9902
- }
9903
- get ["/unstable_locations/list"]() {
9904
- const { client, defaults } = this;
9905
- if (!this.defaults.isUndocumentedApiEnabled) {
9906
- throw new Error(
9907
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9908
- );
9909
- }
9910
- return function unstableLocationsList(...args) {
9911
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9912
- return seam.list(...args);
9913
- };
9914
- }
9915
- get ["/unstable_locations/remove_acs_entrances"]() {
9916
- const { client, defaults } = this;
9917
- if (!this.defaults.isUndocumentedApiEnabled) {
9918
- throw new Error(
9919
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9920
- );
9921
- }
9922
- return function unstableLocationsRemoveAcsEntrances(...args) {
9923
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9924
- return seam.removeAcsEntrances(...args);
9925
- };
9926
- }
9927
- get ["/unstable_locations/remove_devices"]() {
9928
- const { client, defaults } = this;
9929
- if (!this.defaults.isUndocumentedApiEnabled) {
9930
- throw new Error(
9931
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9932
- );
9933
- }
9934
- return function unstableLocationsRemoveDevices(...args) {
9935
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9936
- return seam.removeDevices(...args);
9937
- };
9938
- }
9939
- get ["/unstable_locations/update"]() {
9940
- const { client, defaults } = this;
9941
- if (!this.defaults.isUndocumentedApiEnabled) {
9942
- throw new Error(
9943
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9944
- );
9945
- }
9946
- return function unstableLocationsUpdate(...args) {
9947
- const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
9948
- return seam.update(...args);
9949
- };
9950
- }
9951
9624
  get ["/unstable_partner/building_blocks/connect_accounts"]() {
9952
9625
  const { client, defaults } = this;
9953
9626
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -10409,7 +10082,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
10409
10082
  exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
10410
10083
  exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
10411
10084
  exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
10412
- exports.SeamHttpUnstableLocations = SeamHttpUnstableLocations;
10413
10085
  exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
10414
10086
  exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
10415
10087
  exports.SeamHttpUserIdentities = SeamHttpUserIdentities;