@seamapi/http 1.49.0 → 1.50.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 (49) hide show
  1. package/dist/connect.cjs +237 -146
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +63 -47
  4. package/dist/index.cjs +241 -148
  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/console/console.d.ts +21 -0
  11. package/lib/seam/connect/routes/seam/console/console.js +93 -0
  12. package/lib/seam/connect/routes/seam/console/console.js.map +1 -0
  13. package/lib/seam/connect/routes/seam/console/index.d.ts +2 -0
  14. package/lib/seam/connect/routes/seam/console/index.js +7 -0
  15. package/lib/seam/connect/routes/seam/console/index.js.map +1 -0
  16. package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
  17. package/lib/seam/connect/routes/{networks → seam/console/v1}/index.js +1 -1
  18. package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -0
  19. package/lib/seam/connect/routes/{networks/networks.d.ts → seam/console/v1/v1.d.ts} +21 -34
  20. package/lib/seam/connect/routes/{networks/networks.js → seam/console/v1/v1.js} +23 -35
  21. package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -0
  22. package/lib/seam/connect/routes/seam/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/seam/index.js +1 -0
  24. package/lib/seam/connect/routes/seam/index.js.map +1 -1
  25. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -5
  26. package/lib/seam/connect/routes/seam-http-endpoints.js +21 -21
  27. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  28. package/lib/seam/connect/routes/seam-http.d.ts +0 -2
  29. package/lib/seam/connect/routes/seam-http.js +0 -4
  30. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  31. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +13 -0
  32. package/lib/seam/connect/routes/workspaces/workspaces.js +12 -0
  33. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  34. package/lib/version.d.ts +1 -1
  35. package/lib/version.js +1 -1
  36. package/package.json +3 -3
  37. package/src/lib/seam/connect/routes/index.ts +0 -1
  38. package/src/lib/seam/connect/routes/seam/console/console.ts +173 -0
  39. package/src/lib/seam/connect/routes/seam/console/index.ts +7 -0
  40. package/src/lib/seam/connect/routes/{networks → seam/console/v1}/index.ts +1 -1
  41. package/src/lib/seam/connect/routes/{networks/networks.ts → seam/console/v1/v1.ts} +35 -70
  42. package/src/lib/seam/connect/routes/seam/index.ts +1 -0
  43. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +47 -47
  44. package/src/lib/seam/connect/routes/seam-http.ts +0 -5
  45. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +41 -0
  46. package/src/lib/version.ts +1 -1
  47. package/lib/seam/connect/routes/networks/index.d.ts +0 -1
  48. package/lib/seam/connect/routes/networks/index.js.map +0 -1
  49. package/lib/seam/connect/routes/networks/networks.js.map +0 -1
package/dist/connect.cjs CHANGED
@@ -4626,124 +4626,6 @@ var _SeamHttpLocks = class _SeamHttpLocks {
4626
4626
  _SeamHttpLocks.ltsVersion = seamApiLtsVersion;
4627
4627
  var SeamHttpLocks = _SeamHttpLocks;
4628
4628
 
4629
- // src/lib/seam/connect/routes/networks/networks.ts
4630
- var _SeamHttpNetworks = class _SeamHttpNetworks {
4631
- constructor(apiKeyOrOptions = {}) {
4632
- this.ltsVersion = seamApiLtsVersion;
4633
- const options = parseOptions(apiKeyOrOptions);
4634
- if (!options.isUndocumentedApiEnabled) {
4635
- throw new Error(
4636
- "Cannot use undocumented API without isUndocumentedApiEnabled"
4637
- );
4638
- }
4639
- this.client = "client" in options ? options.client : createClient(options);
4640
- this.defaults = limitToSeamHttpRequestOptions(options);
4641
- }
4642
- static fromClient(client, options = {}) {
4643
- const constructorOptions = { ...options, client };
4644
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
4645
- throw new SeamHttpInvalidOptionsError("Missing client");
4646
- }
4647
- return new _SeamHttpNetworks(constructorOptions);
4648
- }
4649
- static fromApiKey(apiKey, options = {}) {
4650
- const constructorOptions = { ...options, apiKey };
4651
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
4652
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
4653
- }
4654
- return new _SeamHttpNetworks(constructorOptions);
4655
- }
4656
- static fromClientSessionToken(clientSessionToken, options = {}) {
4657
- const constructorOptions = { ...options, clientSessionToken };
4658
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
4659
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
4660
- }
4661
- return new _SeamHttpNetworks(constructorOptions);
4662
- }
4663
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
4664
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
4665
- const clientOptions = parseOptions({ ...options, publishableKey });
4666
- if (isSeamHttpOptionsWithClient(clientOptions)) {
4667
- throw new SeamHttpInvalidOptionsError(
4668
- "The client option cannot be used with SeamHttpNetworks.fromPublishableKey"
4669
- );
4670
- }
4671
- const client = createClient(clientOptions);
4672
- const clientSessions = SeamHttpClientSessions.fromClient(client);
4673
- const { token } = await clientSessions.getOrCreate({
4674
- user_identifier_key: userIdentifierKey
4675
- });
4676
- return _SeamHttpNetworks.fromClientSessionToken(token, options);
4677
- }
4678
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
4679
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
4680
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
4681
- throw new SeamHttpInvalidOptionsError(
4682
- "Missing consoleSessionToken or workspaceId"
4683
- );
4684
- }
4685
- return new _SeamHttpNetworks(constructorOptions);
4686
- }
4687
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
4688
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
4689
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
4690
- throw new SeamHttpInvalidOptionsError(
4691
- "Missing personalAccessToken or workspaceId"
4692
- );
4693
- }
4694
- return new _SeamHttpNetworks(constructorOptions);
4695
- }
4696
- createPaginator(request) {
4697
- return new SeamPaginator(this, request);
4698
- }
4699
- async updateClientSessionToken(clientSessionToken) {
4700
- const { headers } = this.client.defaults;
4701
- const authHeaders = getAuthHeadersForClientSessionToken({
4702
- clientSessionToken
4703
- });
4704
- for (const key of Object.keys(authHeaders)) {
4705
- if (headers[key] == null) {
4706
- throw new Error(
4707
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
4708
- );
4709
- }
4710
- }
4711
- this.client.defaults.headers = { ...headers, ...authHeaders };
4712
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
4713
- await clientSessions.get();
4714
- }
4715
- get(parameters, options = {}) {
4716
- if (!this.defaults.isUndocumentedApiEnabled) {
4717
- throw new Error(
4718
- "Cannot use undocumented API without isUndocumentedApiEnabled"
4719
- );
4720
- }
4721
- return new SeamHttpRequest(this, {
4722
- pathname: "/networks/get",
4723
- method: "POST",
4724
- body: parameters,
4725
- responseKey: "network",
4726
- options
4727
- });
4728
- }
4729
- list(parameters, options = {}) {
4730
- if (!this.defaults.isUndocumentedApiEnabled) {
4731
- throw new Error(
4732
- "Cannot use undocumented API without isUndocumentedApiEnabled"
4733
- );
4734
- }
4735
- return new SeamHttpRequest(this, {
4736
- pathname: "/networks/list",
4737
- method: "POST",
4738
- body: parameters,
4739
- responseKey: "networks",
4740
- options
4741
- });
4742
- }
4743
- };
4744
- _SeamHttpNetworks.ltsVersion = seamApiLtsVersion;
4745
- var SeamHttpNetworks = _SeamHttpNetworks;
4746
-
4747
4629
  // src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts
4748
4630
  var _SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresholds {
4749
4631
  constructor(apiKeyOrOptions = {}) {
@@ -5283,6 +5165,203 @@ var _SeamHttpPhones = class _SeamHttpPhones {
5283
5165
  _SeamHttpPhones.ltsVersion = seamApiLtsVersion;
5284
5166
  var SeamHttpPhones = _SeamHttpPhones;
5285
5167
 
5168
+ // src/lib/seam/connect/routes/seam/console/v1/v1.ts
5169
+ var _SeamHttpSeamConsoleV1 = class _SeamHttpSeamConsoleV1 {
5170
+ constructor(apiKeyOrOptions = {}) {
5171
+ this.ltsVersion = seamApiLtsVersion;
5172
+ const options = parseOptions(apiKeyOrOptions);
5173
+ if (!options.isUndocumentedApiEnabled) {
5174
+ throw new Error(
5175
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5176
+ );
5177
+ }
5178
+ this.client = "client" in options ? options.client : createClient(options);
5179
+ this.defaults = limitToSeamHttpRequestOptions(options);
5180
+ }
5181
+ static fromClient(client, options = {}) {
5182
+ const constructorOptions = { ...options, client };
5183
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5184
+ throw new SeamHttpInvalidOptionsError("Missing client");
5185
+ }
5186
+ return new _SeamHttpSeamConsoleV1(constructorOptions);
5187
+ }
5188
+ static fromApiKey(apiKey, options = {}) {
5189
+ const constructorOptions = { ...options, apiKey };
5190
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5191
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
5192
+ }
5193
+ return new _SeamHttpSeamConsoleV1(constructorOptions);
5194
+ }
5195
+ static fromClientSessionToken(clientSessionToken, options = {}) {
5196
+ const constructorOptions = { ...options, clientSessionToken };
5197
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5198
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5199
+ }
5200
+ return new _SeamHttpSeamConsoleV1(constructorOptions);
5201
+ }
5202
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5203
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
5204
+ const clientOptions = parseOptions({ ...options, publishableKey });
5205
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
5206
+ throw new SeamHttpInvalidOptionsError(
5207
+ "The client option cannot be used with SeamHttpSeamConsoleV1.fromPublishableKey"
5208
+ );
5209
+ }
5210
+ const client = createClient(clientOptions);
5211
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
5212
+ const { token } = await clientSessions.getOrCreate({
5213
+ user_identifier_key: userIdentifierKey
5214
+ });
5215
+ return _SeamHttpSeamConsoleV1.fromClientSessionToken(token, options);
5216
+ }
5217
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5218
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
5219
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
5220
+ throw new SeamHttpInvalidOptionsError(
5221
+ "Missing consoleSessionToken or workspaceId"
5222
+ );
5223
+ }
5224
+ return new _SeamHttpSeamConsoleV1(constructorOptions);
5225
+ }
5226
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5227
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
5228
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
5229
+ throw new SeamHttpInvalidOptionsError(
5230
+ "Missing personalAccessToken or workspaceId"
5231
+ );
5232
+ }
5233
+ return new _SeamHttpSeamConsoleV1(constructorOptions);
5234
+ }
5235
+ createPaginator(request) {
5236
+ return new SeamPaginator(this, request);
5237
+ }
5238
+ async updateClientSessionToken(clientSessionToken) {
5239
+ const { headers } = this.client.defaults;
5240
+ const authHeaders = getAuthHeadersForClientSessionToken({
5241
+ clientSessionToken
5242
+ });
5243
+ for (const key of Object.keys(authHeaders)) {
5244
+ if (headers[key] == null) {
5245
+ throw new Error(
5246
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
5247
+ );
5248
+ }
5249
+ }
5250
+ this.client.defaults.headers = { ...headers, ...authHeaders };
5251
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5252
+ await clientSessions.get();
5253
+ }
5254
+ getResourceType(parameters, options = {}) {
5255
+ if (!this.defaults.isUndocumentedApiEnabled) {
5256
+ throw new Error(
5257
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5258
+ );
5259
+ }
5260
+ return new SeamHttpRequest(this, {
5261
+ pathname: "/seam/console/v1/get_resource_type",
5262
+ method: "GET",
5263
+ params: parameters,
5264
+ responseKey: "resource_type",
5265
+ options
5266
+ });
5267
+ }
5268
+ };
5269
+ _SeamHttpSeamConsoleV1.ltsVersion = seamApiLtsVersion;
5270
+ var SeamHttpSeamConsoleV1 = _SeamHttpSeamConsoleV1;
5271
+
5272
+ // src/lib/seam/connect/routes/seam/console/console.ts
5273
+ var _SeamHttpSeamConsole = class _SeamHttpSeamConsole {
5274
+ constructor(apiKeyOrOptions = {}) {
5275
+ this.ltsVersion = seamApiLtsVersion;
5276
+ const options = parseOptions(apiKeyOrOptions);
5277
+ if (!options.isUndocumentedApiEnabled) {
5278
+ throw new Error(
5279
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5280
+ );
5281
+ }
5282
+ this.client = "client" in options ? options.client : createClient(options);
5283
+ this.defaults = limitToSeamHttpRequestOptions(options);
5284
+ }
5285
+ static fromClient(client, options = {}) {
5286
+ const constructorOptions = { ...options, client };
5287
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5288
+ throw new SeamHttpInvalidOptionsError("Missing client");
5289
+ }
5290
+ return new _SeamHttpSeamConsole(constructorOptions);
5291
+ }
5292
+ static fromApiKey(apiKey, options = {}) {
5293
+ const constructorOptions = { ...options, apiKey };
5294
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5295
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
5296
+ }
5297
+ return new _SeamHttpSeamConsole(constructorOptions);
5298
+ }
5299
+ static fromClientSessionToken(clientSessionToken, options = {}) {
5300
+ const constructorOptions = { ...options, clientSessionToken };
5301
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5302
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5303
+ }
5304
+ return new _SeamHttpSeamConsole(constructorOptions);
5305
+ }
5306
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5307
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
5308
+ const clientOptions = parseOptions({ ...options, publishableKey });
5309
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
5310
+ throw new SeamHttpInvalidOptionsError(
5311
+ "The client option cannot be used with SeamHttpSeamConsole.fromPublishableKey"
5312
+ );
5313
+ }
5314
+ const client = createClient(clientOptions);
5315
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
5316
+ const { token } = await clientSessions.getOrCreate({
5317
+ user_identifier_key: userIdentifierKey
5318
+ });
5319
+ return _SeamHttpSeamConsole.fromClientSessionToken(token, options);
5320
+ }
5321
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5322
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
5323
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
5324
+ throw new SeamHttpInvalidOptionsError(
5325
+ "Missing consoleSessionToken or workspaceId"
5326
+ );
5327
+ }
5328
+ return new _SeamHttpSeamConsole(constructorOptions);
5329
+ }
5330
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5331
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
5332
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
5333
+ throw new SeamHttpInvalidOptionsError(
5334
+ "Missing personalAccessToken or workspaceId"
5335
+ );
5336
+ }
5337
+ return new _SeamHttpSeamConsole(constructorOptions);
5338
+ }
5339
+ createPaginator(request) {
5340
+ return new SeamPaginator(this, request);
5341
+ }
5342
+ async updateClientSessionToken(clientSessionToken) {
5343
+ const { headers } = this.client.defaults;
5344
+ const authHeaders = getAuthHeadersForClientSessionToken({
5345
+ clientSessionToken
5346
+ });
5347
+ for (const key of Object.keys(authHeaders)) {
5348
+ if (headers[key] == null) {
5349
+ throw new Error(
5350
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
5351
+ );
5352
+ }
5353
+ }
5354
+ this.client.defaults.headers = { ...headers, ...authHeaders };
5355
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5356
+ await clientSessions.get();
5357
+ }
5358
+ get v1() {
5359
+ return SeamHttpSeamConsoleV1.fromClient(this.client, this.defaults);
5360
+ }
5361
+ };
5362
+ _SeamHttpSeamConsole.ltsVersion = seamApiLtsVersion;
5363
+ var SeamHttpSeamConsole = _SeamHttpSeamConsole;
5364
+
5286
5365
  // src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts
5287
5366
  var _SeamHttpSeamCustomerV1AutomationRuns = class _SeamHttpSeamCustomerV1AutomationRuns {
5288
5367
  constructor(apiKeyOrOptions = {}) {
@@ -8098,6 +8177,20 @@ var _SeamHttpWorkspaces = class _SeamHttpWorkspaces {
8098
8177
  options
8099
8178
  });
8100
8179
  }
8180
+ findResources(parameters, options = {}) {
8181
+ if (!this.defaults.isUndocumentedApiEnabled) {
8182
+ throw new Error(
8183
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8184
+ );
8185
+ }
8186
+ return new SeamHttpRequest(this, {
8187
+ pathname: "/workspaces/find_resources",
8188
+ method: "GET",
8189
+ params: parameters,
8190
+ responseKey: "batch",
8191
+ options
8192
+ });
8193
+ }
8101
8194
  get(parameters, options = {}) {
8102
8195
  return new SeamHttpRequest(this, {
8103
8196
  pathname: "/workspaces/get",
@@ -8258,9 +8351,6 @@ var _SeamHttp = class _SeamHttp {
8258
8351
  get locks() {
8259
8352
  return SeamHttpLocks.fromClient(this.client, this.defaults);
8260
8353
  }
8261
- get networks() {
8262
- return SeamHttpNetworks.fromClient(this.client, this.defaults);
8263
- }
8264
8354
  get noiseSensors() {
8265
8355
  return SeamHttpNoiseSensors.fromClient(this.client, this.defaults);
8266
8356
  }
@@ -9275,30 +9365,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
9275
9365
  return seam.manualLockViaKeypad(...args);
9276
9366
  };
9277
9367
  }
9278
- get ["/networks/get"]() {
9279
- const { client, defaults } = this;
9280
- if (!this.defaults.isUndocumentedApiEnabled) {
9281
- throw new Error(
9282
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9283
- );
9284
- }
9285
- return function networksGet(...args) {
9286
- const seam = SeamHttpNetworks.fromClient(client, defaults);
9287
- return seam.get(...args);
9288
- };
9289
- }
9290
- get ["/networks/list"]() {
9291
- const { client, defaults } = this;
9292
- if (!this.defaults.isUndocumentedApiEnabled) {
9293
- throw new Error(
9294
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9295
- );
9296
- }
9297
- return function networksList(...args) {
9298
- const seam = SeamHttpNetworks.fromClient(client, defaults);
9299
- return seam.list(...args);
9300
- };
9301
- }
9302
9368
  get ["/noise_sensors/list"]() {
9303
9369
  const { client, defaults } = this;
9304
9370
  return function noiseSensorsList(...args) {
@@ -9391,6 +9457,18 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
9391
9457
  return seam.createSandboxPhone(...args);
9392
9458
  };
9393
9459
  }
9460
+ get ["/seam/console/v1/get_resource_type"]() {
9461
+ const { client, defaults } = this;
9462
+ if (!this.defaults.isUndocumentedApiEnabled) {
9463
+ throw new Error(
9464
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
9465
+ );
9466
+ }
9467
+ return function seamConsoleV1GetResourceType(...args) {
9468
+ const seam = SeamHttpSeamConsoleV1.fromClient(client, defaults);
9469
+ return seam.getResourceType(...args);
9470
+ };
9471
+ }
9394
9472
  get ["/seam/customer/v1/automation_runs/list"]() {
9395
9473
  const { client, defaults } = this;
9396
9474
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -10165,6 +10243,18 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10165
10243
  return seam.create(...args);
10166
10244
  };
10167
10245
  }
10246
+ get ["/workspaces/find_resources"]() {
10247
+ const { client, defaults } = this;
10248
+ if (!this.defaults.isUndocumentedApiEnabled) {
10249
+ throw new Error(
10250
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10251
+ );
10252
+ }
10253
+ return function workspacesFindResources(...args) {
10254
+ const seam = SeamHttpWorkspaces.fromClient(client, defaults);
10255
+ return seam.findResources(...args);
10256
+ };
10257
+ }
10168
10258
  get ["/workspaces/get"]() {
10169
10259
  const { client, defaults } = this;
10170
10260
  return function workspacesGet(...args) {
@@ -10338,13 +10428,14 @@ exports.SeamHttpInvalidTokenError = SeamHttpInvalidTokenError;
10338
10428
  exports.SeamHttpLocks = SeamHttpLocks;
10339
10429
  exports.SeamHttpLocksSimulate = SeamHttpLocksSimulate;
10340
10430
  exports.SeamHttpMultiWorkspace = SeamHttpMultiWorkspace;
10341
- exports.SeamHttpNetworks = SeamHttpNetworks;
10342
10431
  exports.SeamHttpNoiseSensors = SeamHttpNoiseSensors;
10343
10432
  exports.SeamHttpNoiseSensorsNoiseThresholds = SeamHttpNoiseSensorsNoiseThresholds;
10344
10433
  exports.SeamHttpNoiseSensorsSimulate = SeamHttpNoiseSensorsSimulate;
10345
10434
  exports.SeamHttpPhones = SeamHttpPhones;
10346
10435
  exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
10347
10436
  exports.SeamHttpRequest = SeamHttpRequest;
10437
+ exports.SeamHttpSeamConsole = SeamHttpSeamConsole;
10438
+ exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
10348
10439
  exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
10349
10440
  exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationRuns;
10350
10441
  exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;