@seamapi/http 1.49.0 → 1.51.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.
- package/dist/connect.cjs +313 -117
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +106 -59
- package/dist/index.cjs +319 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +16 -16
- package/lib/seam/connect/routes/index.d.ts +1 -1
- package/lib/seam/connect/routes/index.js +1 -1
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/index.d.ts +1 -0
- package/lib/seam/connect/routes/instant-keys/index.js +6 -0
- package/lib/seam/connect/routes/instant-keys/index.js.map +1 -0
- package/lib/seam/connect/routes/{networks/networks.d.ts → instant-keys/instant-keys.d.ts} +15 -28
- package/lib/seam/connect/routes/{networks/networks.js → instant-keys/instant-keys.js} +12 -30
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/console.d.ts +21 -0
- package/lib/seam/connect/routes/seam/console/console.js +93 -0
- package/lib/seam/connect/routes/seam/console/console.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/console/index.js +7 -0
- package/lib/seam/connect/routes/seam/console/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/{networks → seam/console/v1}/index.js +1 -1
- package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +34 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js +102 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -0
- package/lib/seam/connect/routes/seam/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/index.js +1 -0
- package/lib/seam/connect/routes/seam/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +7 -5
- package/lib/seam/connect/routes/seam-http-endpoints.js +29 -21
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +2 -2
- package/lib/seam/connect/routes/seam-http.js +4 -4
- package/lib/seam/connect/routes/seam-http.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +13 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +12 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/index.ts +1 -1
- package/src/lib/seam/connect/routes/instant-keys/index.ts +6 -0
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +200 -0
- package/src/lib/seam/connect/routes/seam/console/console.ts +173 -0
- package/src/lib/seam/connect/routes/seam/console/index.ts +7 -0
- package/src/lib/seam/connect/routes/{networks → seam/console/v1}/index.ts +1 -1
- package/src/lib/seam/connect/routes/{networks/networks.ts → seam/console/v1/v1.ts} +35 -70
- package/src/lib/seam/connect/routes/seam/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +67 -47
- package/src/lib/seam/connect/routes/seam-http.ts +5 -5
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +41 -0
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/networks/index.d.ts +0 -1
- package/lib/seam/connect/routes/networks/index.js.map +0 -1
- package/lib/seam/connect/routes/networks/networks.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -92,19 +92,21 @@ __export(index_exports, {
|
|
|
92
92
|
SeamHttpEndpoints: () => SeamHttpEndpoints,
|
|
93
93
|
SeamHttpEndpointsWithoutWorkspace: () => SeamHttpEndpointsWithoutWorkspace,
|
|
94
94
|
SeamHttpEvents: () => SeamHttpEvents,
|
|
95
|
+
SeamHttpInstantKeys: () => SeamHttpInstantKeys,
|
|
95
96
|
SeamHttpInvalidInputError: () => SeamHttpInvalidInputError,
|
|
96
97
|
SeamHttpInvalidOptionsError: () => SeamHttpInvalidOptionsError,
|
|
97
98
|
SeamHttpInvalidTokenError: () => SeamHttpInvalidTokenError,
|
|
98
99
|
SeamHttpLocks: () => SeamHttpLocks,
|
|
99
100
|
SeamHttpLocksSimulate: () => SeamHttpLocksSimulate,
|
|
100
101
|
SeamHttpMultiWorkspace: () => SeamHttpMultiWorkspace,
|
|
101
|
-
SeamHttpNetworks: () => SeamHttpNetworks,
|
|
102
102
|
SeamHttpNoiseSensors: () => SeamHttpNoiseSensors,
|
|
103
103
|
SeamHttpNoiseSensorsNoiseThresholds: () => SeamHttpNoiseSensorsNoiseThresholds,
|
|
104
104
|
SeamHttpNoiseSensorsSimulate: () => SeamHttpNoiseSensorsSimulate,
|
|
105
105
|
SeamHttpPhones: () => SeamHttpPhones,
|
|
106
106
|
SeamHttpPhonesSimulate: () => SeamHttpPhonesSimulate,
|
|
107
107
|
SeamHttpRequest: () => SeamHttpRequest,
|
|
108
|
+
SeamHttpSeamConsole: () => SeamHttpSeamConsole,
|
|
109
|
+
SeamHttpSeamConsoleV1: () => SeamHttpSeamConsoleV1,
|
|
108
110
|
SeamHttpSeamCustomerV1: () => SeamHttpSeamCustomerV1,
|
|
109
111
|
SeamHttpSeamCustomerV1AutomationRuns: () => SeamHttpSeamCustomerV1AutomationRuns,
|
|
110
112
|
SeamHttpSeamCustomerV1Automations: () => SeamHttpSeamCustomerV1Automations,
|
|
@@ -191,19 +193,21 @@ __export(connect_exports, {
|
|
|
191
193
|
SeamHttpEndpoints: () => SeamHttpEndpoints,
|
|
192
194
|
SeamHttpEndpointsWithoutWorkspace: () => SeamHttpEndpointsWithoutWorkspace,
|
|
193
195
|
SeamHttpEvents: () => SeamHttpEvents,
|
|
196
|
+
SeamHttpInstantKeys: () => SeamHttpInstantKeys,
|
|
194
197
|
SeamHttpInvalidInputError: () => SeamHttpInvalidInputError,
|
|
195
198
|
SeamHttpInvalidOptionsError: () => SeamHttpInvalidOptionsError,
|
|
196
199
|
SeamHttpInvalidTokenError: () => SeamHttpInvalidTokenError,
|
|
197
200
|
SeamHttpLocks: () => SeamHttpLocks,
|
|
198
201
|
SeamHttpLocksSimulate: () => SeamHttpLocksSimulate,
|
|
199
202
|
SeamHttpMultiWorkspace: () => SeamHttpMultiWorkspace,
|
|
200
|
-
SeamHttpNetworks: () => SeamHttpNetworks,
|
|
201
203
|
SeamHttpNoiseSensors: () => SeamHttpNoiseSensors,
|
|
202
204
|
SeamHttpNoiseSensorsNoiseThresholds: () => SeamHttpNoiseSensorsNoiseThresholds,
|
|
203
205
|
SeamHttpNoiseSensorsSimulate: () => SeamHttpNoiseSensorsSimulate,
|
|
204
206
|
SeamHttpPhones: () => SeamHttpPhones,
|
|
205
207
|
SeamHttpPhonesSimulate: () => SeamHttpPhonesSimulate,
|
|
206
208
|
SeamHttpRequest: () => SeamHttpRequest,
|
|
209
|
+
SeamHttpSeamConsole: () => SeamHttpSeamConsole,
|
|
210
|
+
SeamHttpSeamConsoleV1: () => SeamHttpSeamConsoleV1,
|
|
207
211
|
SeamHttpSeamCustomerV1: () => SeamHttpSeamCustomerV1,
|
|
208
212
|
SeamHttpSeamCustomerV1AutomationRuns: () => SeamHttpSeamCustomerV1AutomationRuns,
|
|
209
213
|
SeamHttpSeamCustomerV1Automations: () => SeamHttpSeamCustomerV1Automations,
|
|
@@ -4633,8 +4637,8 @@ var _SeamHttpEvents = class _SeamHttpEvents {
|
|
|
4633
4637
|
_SeamHttpEvents.ltsVersion = seamApiLtsVersion;
|
|
4634
4638
|
var SeamHttpEvents = _SeamHttpEvents;
|
|
4635
4639
|
|
|
4636
|
-
// src/lib/seam/connect/routes/
|
|
4637
|
-
var
|
|
4640
|
+
// src/lib/seam/connect/routes/instant-keys/instant-keys.ts
|
|
4641
|
+
var _SeamHttpInstantKeys = class _SeamHttpInstantKeys {
|
|
4638
4642
|
constructor(apiKeyOrOptions = {}) {
|
|
4639
4643
|
this.ltsVersion = seamApiLtsVersion;
|
|
4640
4644
|
const options = parseOptions(apiKeyOrOptions);
|
|
@@ -4646,28 +4650,28 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4646
4650
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
4647
4651
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
4648
4652
|
}
|
|
4649
|
-
return new
|
|
4653
|
+
return new _SeamHttpInstantKeys(constructorOptions);
|
|
4650
4654
|
}
|
|
4651
4655
|
static fromApiKey(apiKey, options = {}) {
|
|
4652
4656
|
const constructorOptions = { ...options, apiKey };
|
|
4653
4657
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
4654
4658
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
4655
4659
|
}
|
|
4656
|
-
return new
|
|
4660
|
+
return new _SeamHttpInstantKeys(constructorOptions);
|
|
4657
4661
|
}
|
|
4658
4662
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
4659
4663
|
const constructorOptions = { ...options, clientSessionToken };
|
|
4660
4664
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
4661
4665
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
4662
4666
|
}
|
|
4663
|
-
return new
|
|
4667
|
+
return new _SeamHttpInstantKeys(constructorOptions);
|
|
4664
4668
|
}
|
|
4665
4669
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
4666
4670
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
4667
4671
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4668
4672
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4669
4673
|
throw new SeamHttpInvalidOptionsError(
|
|
4670
|
-
"The client option cannot be used with
|
|
4674
|
+
"The client option cannot be used with SeamHttpInstantKeys.fromPublishableKey"
|
|
4671
4675
|
);
|
|
4672
4676
|
}
|
|
4673
4677
|
const client = createClient(clientOptions);
|
|
@@ -4675,7 +4679,7 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4675
4679
|
const { token } = await clientSessions.getOrCreate({
|
|
4676
4680
|
user_identifier_key: userIdentifierKey
|
|
4677
4681
|
});
|
|
4678
|
-
return
|
|
4682
|
+
return _SeamHttpInstantKeys.fromClientSessionToken(token, options);
|
|
4679
4683
|
}
|
|
4680
4684
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
4681
4685
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -4684,7 +4688,7 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4684
4688
|
"Missing consoleSessionToken or workspaceId"
|
|
4685
4689
|
);
|
|
4686
4690
|
}
|
|
4687
|
-
return new
|
|
4691
|
+
return new _SeamHttpInstantKeys(constructorOptions);
|
|
4688
4692
|
}
|
|
4689
4693
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
4690
4694
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -4693,7 +4697,7 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4693
4697
|
"Missing personalAccessToken or workspaceId"
|
|
4694
4698
|
);
|
|
4695
4699
|
}
|
|
4696
|
-
return new
|
|
4700
|
+
return new _SeamHttpInstantKeys(constructorOptions);
|
|
4697
4701
|
}
|
|
4698
4702
|
createPaginator(request) {
|
|
4699
4703
|
return new SeamPaginator(this, request);
|
|
@@ -4714,30 +4718,21 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4714
4718
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4715
4719
|
await clientSessions.get();
|
|
4716
4720
|
}
|
|
4717
|
-
|
|
4718
|
-
return new SeamHttpRequest(this, {
|
|
4719
|
-
pathname: "/locks/simulate/keypad_code_entry",
|
|
4720
|
-
method: "POST",
|
|
4721
|
-
body: parameters,
|
|
4722
|
-
responseKey: "action_attempt",
|
|
4723
|
-
options
|
|
4724
|
-
});
|
|
4725
|
-
}
|
|
4726
|
-
manualLockViaKeypad(parameters, options = {}) {
|
|
4721
|
+
list(parameters, options = {}) {
|
|
4727
4722
|
return new SeamHttpRequest(this, {
|
|
4728
|
-
pathname: "/
|
|
4723
|
+
pathname: "/instant_keys/list",
|
|
4729
4724
|
method: "POST",
|
|
4730
4725
|
body: parameters,
|
|
4731
|
-
responseKey: "
|
|
4726
|
+
responseKey: "instant_keys",
|
|
4732
4727
|
options
|
|
4733
4728
|
});
|
|
4734
4729
|
}
|
|
4735
4730
|
};
|
|
4736
|
-
|
|
4737
|
-
var
|
|
4731
|
+
_SeamHttpInstantKeys.ltsVersion = seamApiLtsVersion;
|
|
4732
|
+
var SeamHttpInstantKeys = _SeamHttpInstantKeys;
|
|
4738
4733
|
|
|
4739
|
-
// src/lib/seam/connect/routes/locks/
|
|
4740
|
-
var
|
|
4734
|
+
// src/lib/seam/connect/routes/locks/simulate/simulate.ts
|
|
4735
|
+
var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
4741
4736
|
constructor(apiKeyOrOptions = {}) {
|
|
4742
4737
|
this.ltsVersion = seamApiLtsVersion;
|
|
4743
4738
|
const options = parseOptions(apiKeyOrOptions);
|
|
@@ -4749,28 +4744,28 @@ var _SeamHttpLocks = class _SeamHttpLocks {
|
|
|
4749
4744
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
4750
4745
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
4751
4746
|
}
|
|
4752
|
-
return new
|
|
4747
|
+
return new _SeamHttpLocksSimulate(constructorOptions);
|
|
4753
4748
|
}
|
|
4754
4749
|
static fromApiKey(apiKey, options = {}) {
|
|
4755
4750
|
const constructorOptions = { ...options, apiKey };
|
|
4756
4751
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
4757
4752
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
4758
4753
|
}
|
|
4759
|
-
return new
|
|
4754
|
+
return new _SeamHttpLocksSimulate(constructorOptions);
|
|
4760
4755
|
}
|
|
4761
4756
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
4762
4757
|
const constructorOptions = { ...options, clientSessionToken };
|
|
4763
4758
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
4764
4759
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
4765
4760
|
}
|
|
4766
|
-
return new
|
|
4761
|
+
return new _SeamHttpLocksSimulate(constructorOptions);
|
|
4767
4762
|
}
|
|
4768
4763
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
4769
4764
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
4770
4765
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4771
4766
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4772
4767
|
throw new SeamHttpInvalidOptionsError(
|
|
4773
|
-
"The client option cannot be used with
|
|
4768
|
+
"The client option cannot be used with SeamHttpLocksSimulate.fromPublishableKey"
|
|
4774
4769
|
);
|
|
4775
4770
|
}
|
|
4776
4771
|
const client = createClient(clientOptions);
|
|
@@ -4778,7 +4773,7 @@ var _SeamHttpLocks = class _SeamHttpLocks {
|
|
|
4778
4773
|
const { token } = await clientSessions.getOrCreate({
|
|
4779
4774
|
user_identifier_key: userIdentifierKey
|
|
4780
4775
|
});
|
|
4781
|
-
return
|
|
4776
|
+
return _SeamHttpLocksSimulate.fromClientSessionToken(token, options);
|
|
4782
4777
|
}
|
|
4783
4778
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
4784
4779
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -4787,7 +4782,7 @@ var _SeamHttpLocks = class _SeamHttpLocks {
|
|
|
4787
4782
|
"Missing consoleSessionToken or workspaceId"
|
|
4788
4783
|
);
|
|
4789
4784
|
}
|
|
4790
|
-
return new
|
|
4785
|
+
return new _SeamHttpLocksSimulate(constructorOptions);
|
|
4791
4786
|
}
|
|
4792
4787
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
4793
4788
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -4796,7 +4791,7 @@ var _SeamHttpLocks = class _SeamHttpLocks {
|
|
|
4796
4791
|
"Missing personalAccessToken or workspaceId"
|
|
4797
4792
|
);
|
|
4798
4793
|
}
|
|
4799
|
-
return new
|
|
4794
|
+
return new _SeamHttpLocksSimulate(constructorOptions);
|
|
4800
4795
|
}
|
|
4801
4796
|
createPaginator(request) {
|
|
4802
4797
|
return new SeamPaginator(this, request);
|
|
@@ -4817,39 +4812,18 @@ var _SeamHttpLocks = class _SeamHttpLocks {
|
|
|
4817
4812
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4818
4813
|
await clientSessions.get();
|
|
4819
4814
|
}
|
|
4820
|
-
|
|
4821
|
-
return SeamHttpLocksSimulate.fromClient(this.client, this.defaults);
|
|
4822
|
-
}
|
|
4823
|
-
get(parameters, options = {}) {
|
|
4824
|
-
return new SeamHttpRequest(this, {
|
|
4825
|
-
pathname: "/locks/get",
|
|
4826
|
-
method: "POST",
|
|
4827
|
-
body: parameters,
|
|
4828
|
-
responseKey: "device",
|
|
4829
|
-
options
|
|
4830
|
-
});
|
|
4831
|
-
}
|
|
4832
|
-
list(parameters, options = {}) {
|
|
4833
|
-
return new SeamHttpRequest(this, {
|
|
4834
|
-
pathname: "/locks/list",
|
|
4835
|
-
method: "POST",
|
|
4836
|
-
body: parameters,
|
|
4837
|
-
responseKey: "devices",
|
|
4838
|
-
options
|
|
4839
|
-
});
|
|
4840
|
-
}
|
|
4841
|
-
lockDoor(parameters, options = {}) {
|
|
4815
|
+
keypadCodeEntry(parameters, options = {}) {
|
|
4842
4816
|
return new SeamHttpRequest(this, {
|
|
4843
|
-
pathname: "/locks/
|
|
4817
|
+
pathname: "/locks/simulate/keypad_code_entry",
|
|
4844
4818
|
method: "POST",
|
|
4845
4819
|
body: parameters,
|
|
4846
4820
|
responseKey: "action_attempt",
|
|
4847
4821
|
options
|
|
4848
4822
|
});
|
|
4849
4823
|
}
|
|
4850
|
-
|
|
4824
|
+
manualLockViaKeypad(parameters, options = {}) {
|
|
4851
4825
|
return new SeamHttpRequest(this, {
|
|
4852
|
-
pathname: "/locks/
|
|
4826
|
+
pathname: "/locks/simulate/manual_lock_via_keypad",
|
|
4853
4827
|
method: "POST",
|
|
4854
4828
|
body: parameters,
|
|
4855
4829
|
responseKey: "action_attempt",
|
|
@@ -4857,19 +4831,14 @@ var _SeamHttpLocks = class _SeamHttpLocks {
|
|
|
4857
4831
|
});
|
|
4858
4832
|
}
|
|
4859
4833
|
};
|
|
4860
|
-
|
|
4861
|
-
var
|
|
4834
|
+
_SeamHttpLocksSimulate.ltsVersion = seamApiLtsVersion;
|
|
4835
|
+
var SeamHttpLocksSimulate = _SeamHttpLocksSimulate;
|
|
4862
4836
|
|
|
4863
|
-
// src/lib/seam/connect/routes/
|
|
4864
|
-
var
|
|
4837
|
+
// src/lib/seam/connect/routes/locks/locks.ts
|
|
4838
|
+
var _SeamHttpLocks = class _SeamHttpLocks {
|
|
4865
4839
|
constructor(apiKeyOrOptions = {}) {
|
|
4866
4840
|
this.ltsVersion = seamApiLtsVersion;
|
|
4867
4841
|
const options = parseOptions(apiKeyOrOptions);
|
|
4868
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
4869
|
-
throw new Error(
|
|
4870
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4871
|
-
);
|
|
4872
|
-
}
|
|
4873
4842
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4874
4843
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4875
4844
|
}
|
|
@@ -4878,28 +4847,28 @@ var _SeamHttpNetworks = class _SeamHttpNetworks {
|
|
|
4878
4847
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
4879
4848
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
4880
4849
|
}
|
|
4881
|
-
return new
|
|
4850
|
+
return new _SeamHttpLocks(constructorOptions);
|
|
4882
4851
|
}
|
|
4883
4852
|
static fromApiKey(apiKey, options = {}) {
|
|
4884
4853
|
const constructorOptions = { ...options, apiKey };
|
|
4885
4854
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
4886
4855
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
4887
4856
|
}
|
|
4888
|
-
return new
|
|
4857
|
+
return new _SeamHttpLocks(constructorOptions);
|
|
4889
4858
|
}
|
|
4890
4859
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
4891
4860
|
const constructorOptions = { ...options, clientSessionToken };
|
|
4892
4861
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
4893
4862
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
4894
4863
|
}
|
|
4895
|
-
return new
|
|
4864
|
+
return new _SeamHttpLocks(constructorOptions);
|
|
4896
4865
|
}
|
|
4897
4866
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
4898
4867
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
4899
4868
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4900
4869
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4901
4870
|
throw new SeamHttpInvalidOptionsError(
|
|
4902
|
-
"The client option cannot be used with
|
|
4871
|
+
"The client option cannot be used with SeamHttpLocks.fromPublishableKey"
|
|
4903
4872
|
);
|
|
4904
4873
|
}
|
|
4905
4874
|
const client = createClient(clientOptions);
|
|
@@ -4907,7 +4876,7 @@ var _SeamHttpNetworks = class _SeamHttpNetworks {
|
|
|
4907
4876
|
const { token } = await clientSessions.getOrCreate({
|
|
4908
4877
|
user_identifier_key: userIdentifierKey
|
|
4909
4878
|
});
|
|
4910
|
-
return
|
|
4879
|
+
return _SeamHttpLocks.fromClientSessionToken(token, options);
|
|
4911
4880
|
}
|
|
4912
4881
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
4913
4882
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -4916,7 +4885,7 @@ var _SeamHttpNetworks = class _SeamHttpNetworks {
|
|
|
4916
4885
|
"Missing consoleSessionToken or workspaceId"
|
|
4917
4886
|
);
|
|
4918
4887
|
}
|
|
4919
|
-
return new
|
|
4888
|
+
return new _SeamHttpLocks(constructorOptions);
|
|
4920
4889
|
}
|
|
4921
4890
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
4922
4891
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -4925,7 +4894,7 @@ var _SeamHttpNetworks = class _SeamHttpNetworks {
|
|
|
4925
4894
|
"Missing personalAccessToken or workspaceId"
|
|
4926
4895
|
);
|
|
4927
4896
|
}
|
|
4928
|
-
return new
|
|
4897
|
+
return new _SeamHttpLocks(constructorOptions);
|
|
4929
4898
|
}
|
|
4930
4899
|
createPaginator(request) {
|
|
4931
4900
|
return new SeamPaginator(this, request);
|
|
@@ -4946,37 +4915,48 @@ var _SeamHttpNetworks = class _SeamHttpNetworks {
|
|
|
4946
4915
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4947
4916
|
await clientSessions.get();
|
|
4948
4917
|
}
|
|
4918
|
+
get simulate() {
|
|
4919
|
+
return SeamHttpLocksSimulate.fromClient(this.client, this.defaults);
|
|
4920
|
+
}
|
|
4949
4921
|
get(parameters, options = {}) {
|
|
4950
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4951
|
-
throw new Error(
|
|
4952
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4953
|
-
);
|
|
4954
|
-
}
|
|
4955
4922
|
return new SeamHttpRequest(this, {
|
|
4956
|
-
pathname: "/
|
|
4923
|
+
pathname: "/locks/get",
|
|
4957
4924
|
method: "POST",
|
|
4958
4925
|
body: parameters,
|
|
4959
|
-
responseKey: "
|
|
4926
|
+
responseKey: "device",
|
|
4960
4927
|
options
|
|
4961
4928
|
});
|
|
4962
4929
|
}
|
|
4963
4930
|
list(parameters, options = {}) {
|
|
4964
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4965
|
-
throw new Error(
|
|
4966
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4967
|
-
);
|
|
4968
|
-
}
|
|
4969
4931
|
return new SeamHttpRequest(this, {
|
|
4970
|
-
pathname: "/
|
|
4932
|
+
pathname: "/locks/list",
|
|
4933
|
+
method: "POST",
|
|
4934
|
+
body: parameters,
|
|
4935
|
+
responseKey: "devices",
|
|
4936
|
+
options
|
|
4937
|
+
});
|
|
4938
|
+
}
|
|
4939
|
+
lockDoor(parameters, options = {}) {
|
|
4940
|
+
return new SeamHttpRequest(this, {
|
|
4941
|
+
pathname: "/locks/lock_door",
|
|
4942
|
+
method: "POST",
|
|
4943
|
+
body: parameters,
|
|
4944
|
+
responseKey: "action_attempt",
|
|
4945
|
+
options
|
|
4946
|
+
});
|
|
4947
|
+
}
|
|
4948
|
+
unlockDoor(parameters, options = {}) {
|
|
4949
|
+
return new SeamHttpRequest(this, {
|
|
4950
|
+
pathname: "/locks/unlock_door",
|
|
4971
4951
|
method: "POST",
|
|
4972
4952
|
body: parameters,
|
|
4973
|
-
responseKey: "
|
|
4953
|
+
responseKey: "action_attempt",
|
|
4974
4954
|
options
|
|
4975
4955
|
});
|
|
4976
4956
|
}
|
|
4977
4957
|
};
|
|
4978
|
-
|
|
4979
|
-
var
|
|
4958
|
+
_SeamHttpLocks.ltsVersion = seamApiLtsVersion;
|
|
4959
|
+
var SeamHttpLocks = _SeamHttpLocks;
|
|
4980
4960
|
|
|
4981
4961
|
// src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts
|
|
4982
4962
|
var _SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresholds {
|
|
@@ -5517,6 +5497,203 @@ var _SeamHttpPhones = class _SeamHttpPhones {
|
|
|
5517
5497
|
_SeamHttpPhones.ltsVersion = seamApiLtsVersion;
|
|
5518
5498
|
var SeamHttpPhones = _SeamHttpPhones;
|
|
5519
5499
|
|
|
5500
|
+
// src/lib/seam/connect/routes/seam/console/v1/v1.ts
|
|
5501
|
+
var _SeamHttpSeamConsoleV1 = class _SeamHttpSeamConsoleV1 {
|
|
5502
|
+
constructor(apiKeyOrOptions = {}) {
|
|
5503
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5504
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
5505
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
5506
|
+
throw new Error(
|
|
5507
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5508
|
+
);
|
|
5509
|
+
}
|
|
5510
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
5511
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
5512
|
+
}
|
|
5513
|
+
static fromClient(client, options = {}) {
|
|
5514
|
+
const constructorOptions = { ...options, client };
|
|
5515
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
5516
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
5517
|
+
}
|
|
5518
|
+
return new _SeamHttpSeamConsoleV1(constructorOptions);
|
|
5519
|
+
}
|
|
5520
|
+
static fromApiKey(apiKey, options = {}) {
|
|
5521
|
+
const constructorOptions = { ...options, apiKey };
|
|
5522
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
5523
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
5524
|
+
}
|
|
5525
|
+
return new _SeamHttpSeamConsoleV1(constructorOptions);
|
|
5526
|
+
}
|
|
5527
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
5528
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
5529
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
5530
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
5531
|
+
}
|
|
5532
|
+
return new _SeamHttpSeamConsoleV1(constructorOptions);
|
|
5533
|
+
}
|
|
5534
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
5535
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
5536
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5537
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5538
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5539
|
+
"The client option cannot be used with SeamHttpSeamConsoleV1.fromPublishableKey"
|
|
5540
|
+
);
|
|
5541
|
+
}
|
|
5542
|
+
const client = createClient(clientOptions);
|
|
5543
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
5544
|
+
const { token } = await clientSessions.getOrCreate({
|
|
5545
|
+
user_identifier_key: userIdentifierKey
|
|
5546
|
+
});
|
|
5547
|
+
return _SeamHttpSeamConsoleV1.fromClientSessionToken(token, options);
|
|
5548
|
+
}
|
|
5549
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
5550
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
5551
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
5552
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5553
|
+
"Missing consoleSessionToken or workspaceId"
|
|
5554
|
+
);
|
|
5555
|
+
}
|
|
5556
|
+
return new _SeamHttpSeamConsoleV1(constructorOptions);
|
|
5557
|
+
}
|
|
5558
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
5559
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
5560
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
5561
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5562
|
+
"Missing personalAccessToken or workspaceId"
|
|
5563
|
+
);
|
|
5564
|
+
}
|
|
5565
|
+
return new _SeamHttpSeamConsoleV1(constructorOptions);
|
|
5566
|
+
}
|
|
5567
|
+
createPaginator(request) {
|
|
5568
|
+
return new SeamPaginator(this, request);
|
|
5569
|
+
}
|
|
5570
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
5571
|
+
const { headers } = this.client.defaults;
|
|
5572
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
5573
|
+
clientSessionToken
|
|
5574
|
+
});
|
|
5575
|
+
for (const key of Object.keys(authHeaders)) {
|
|
5576
|
+
if (headers[key] == null) {
|
|
5577
|
+
throw new Error(
|
|
5578
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
5579
|
+
);
|
|
5580
|
+
}
|
|
5581
|
+
}
|
|
5582
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
5583
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5584
|
+
await clientSessions.get();
|
|
5585
|
+
}
|
|
5586
|
+
getResourceLocator(parameters, options = {}) {
|
|
5587
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5588
|
+
throw new Error(
|
|
5589
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5590
|
+
);
|
|
5591
|
+
}
|
|
5592
|
+
return new SeamHttpRequest(this, {
|
|
5593
|
+
pathname: "/seam/console/v1/get_resource_locator",
|
|
5594
|
+
method: "GET",
|
|
5595
|
+
params: parameters,
|
|
5596
|
+
responseKey: "resource_locator",
|
|
5597
|
+
options
|
|
5598
|
+
});
|
|
5599
|
+
}
|
|
5600
|
+
};
|
|
5601
|
+
_SeamHttpSeamConsoleV1.ltsVersion = seamApiLtsVersion;
|
|
5602
|
+
var SeamHttpSeamConsoleV1 = _SeamHttpSeamConsoleV1;
|
|
5603
|
+
|
|
5604
|
+
// src/lib/seam/connect/routes/seam/console/console.ts
|
|
5605
|
+
var _SeamHttpSeamConsole = class _SeamHttpSeamConsole {
|
|
5606
|
+
constructor(apiKeyOrOptions = {}) {
|
|
5607
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5608
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
5609
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
5610
|
+
throw new Error(
|
|
5611
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5612
|
+
);
|
|
5613
|
+
}
|
|
5614
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
5615
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
5616
|
+
}
|
|
5617
|
+
static fromClient(client, options = {}) {
|
|
5618
|
+
const constructorOptions = { ...options, client };
|
|
5619
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
5620
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
5621
|
+
}
|
|
5622
|
+
return new _SeamHttpSeamConsole(constructorOptions);
|
|
5623
|
+
}
|
|
5624
|
+
static fromApiKey(apiKey, options = {}) {
|
|
5625
|
+
const constructorOptions = { ...options, apiKey };
|
|
5626
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
5627
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
5628
|
+
}
|
|
5629
|
+
return new _SeamHttpSeamConsole(constructorOptions);
|
|
5630
|
+
}
|
|
5631
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
5632
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
5633
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
5634
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
5635
|
+
}
|
|
5636
|
+
return new _SeamHttpSeamConsole(constructorOptions);
|
|
5637
|
+
}
|
|
5638
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
5639
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
5640
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5641
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5642
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5643
|
+
"The client option cannot be used with SeamHttpSeamConsole.fromPublishableKey"
|
|
5644
|
+
);
|
|
5645
|
+
}
|
|
5646
|
+
const client = createClient(clientOptions);
|
|
5647
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
5648
|
+
const { token } = await clientSessions.getOrCreate({
|
|
5649
|
+
user_identifier_key: userIdentifierKey
|
|
5650
|
+
});
|
|
5651
|
+
return _SeamHttpSeamConsole.fromClientSessionToken(token, options);
|
|
5652
|
+
}
|
|
5653
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
5654
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
5655
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
5656
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5657
|
+
"Missing consoleSessionToken or workspaceId"
|
|
5658
|
+
);
|
|
5659
|
+
}
|
|
5660
|
+
return new _SeamHttpSeamConsole(constructorOptions);
|
|
5661
|
+
}
|
|
5662
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
5663
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
5664
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
5665
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5666
|
+
"Missing personalAccessToken or workspaceId"
|
|
5667
|
+
);
|
|
5668
|
+
}
|
|
5669
|
+
return new _SeamHttpSeamConsole(constructorOptions);
|
|
5670
|
+
}
|
|
5671
|
+
createPaginator(request) {
|
|
5672
|
+
return new SeamPaginator(this, request);
|
|
5673
|
+
}
|
|
5674
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
5675
|
+
const { headers } = this.client.defaults;
|
|
5676
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
5677
|
+
clientSessionToken
|
|
5678
|
+
});
|
|
5679
|
+
for (const key of Object.keys(authHeaders)) {
|
|
5680
|
+
if (headers[key] == null) {
|
|
5681
|
+
throw new Error(
|
|
5682
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
5683
|
+
);
|
|
5684
|
+
}
|
|
5685
|
+
}
|
|
5686
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
5687
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5688
|
+
await clientSessions.get();
|
|
5689
|
+
}
|
|
5690
|
+
get v1() {
|
|
5691
|
+
return SeamHttpSeamConsoleV1.fromClient(this.client, this.defaults);
|
|
5692
|
+
}
|
|
5693
|
+
};
|
|
5694
|
+
_SeamHttpSeamConsole.ltsVersion = seamApiLtsVersion;
|
|
5695
|
+
var SeamHttpSeamConsole = _SeamHttpSeamConsole;
|
|
5696
|
+
|
|
5520
5697
|
// src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts
|
|
5521
5698
|
var _SeamHttpSeamCustomerV1AutomationRuns = class _SeamHttpSeamCustomerV1AutomationRuns {
|
|
5522
5699
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -8332,6 +8509,20 @@ var _SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
8332
8509
|
options
|
|
8333
8510
|
});
|
|
8334
8511
|
}
|
|
8512
|
+
findResources(parameters, options = {}) {
|
|
8513
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8514
|
+
throw new Error(
|
|
8515
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8516
|
+
);
|
|
8517
|
+
}
|
|
8518
|
+
return new SeamHttpRequest(this, {
|
|
8519
|
+
pathname: "/workspaces/find_resources",
|
|
8520
|
+
method: "GET",
|
|
8521
|
+
params: parameters,
|
|
8522
|
+
responseKey: "batch",
|
|
8523
|
+
options
|
|
8524
|
+
});
|
|
8525
|
+
}
|
|
8335
8526
|
get(parameters, options = {}) {
|
|
8336
8527
|
return new SeamHttpRequest(this, {
|
|
8337
8528
|
pathname: "/workspaces/get",
|
|
@@ -8489,12 +8680,12 @@ var _SeamHttp = class _SeamHttp {
|
|
|
8489
8680
|
get events() {
|
|
8490
8681
|
return SeamHttpEvents.fromClient(this.client, this.defaults);
|
|
8491
8682
|
}
|
|
8683
|
+
get instantKeys() {
|
|
8684
|
+
return SeamHttpInstantKeys.fromClient(this.client, this.defaults);
|
|
8685
|
+
}
|
|
8492
8686
|
get locks() {
|
|
8493
8687
|
return SeamHttpLocks.fromClient(this.client, this.defaults);
|
|
8494
8688
|
}
|
|
8495
|
-
get networks() {
|
|
8496
|
-
return SeamHttpNetworks.fromClient(this.client, this.defaults);
|
|
8497
|
-
}
|
|
8498
8689
|
get noiseSensors() {
|
|
8499
8690
|
return SeamHttpNoiseSensors.fromClient(this.client, this.defaults);
|
|
8500
8691
|
}
|
|
@@ -9467,6 +9658,13 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9467
9658
|
return seam.list(...args);
|
|
9468
9659
|
};
|
|
9469
9660
|
}
|
|
9661
|
+
get ["/instant_keys/list"]() {
|
|
9662
|
+
const { client, defaults } = this;
|
|
9663
|
+
return function instantKeysList(...args) {
|
|
9664
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults);
|
|
9665
|
+
return seam.list(...args);
|
|
9666
|
+
};
|
|
9667
|
+
}
|
|
9470
9668
|
get ["/locks/get"]() {
|
|
9471
9669
|
const { client, defaults } = this;
|
|
9472
9670
|
return function locksGet(...args) {
|
|
@@ -9509,30 +9707,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9509
9707
|
return seam.manualLockViaKeypad(...args);
|
|
9510
9708
|
};
|
|
9511
9709
|
}
|
|
9512
|
-
get ["/networks/get"]() {
|
|
9513
|
-
const { client, defaults } = this;
|
|
9514
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9515
|
-
throw new Error(
|
|
9516
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9517
|
-
);
|
|
9518
|
-
}
|
|
9519
|
-
return function networksGet(...args) {
|
|
9520
|
-
const seam = SeamHttpNetworks.fromClient(client, defaults);
|
|
9521
|
-
return seam.get(...args);
|
|
9522
|
-
};
|
|
9523
|
-
}
|
|
9524
|
-
get ["/networks/list"]() {
|
|
9525
|
-
const { client, defaults } = this;
|
|
9526
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9527
|
-
throw new Error(
|
|
9528
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9529
|
-
);
|
|
9530
|
-
}
|
|
9531
|
-
return function networksList(...args) {
|
|
9532
|
-
const seam = SeamHttpNetworks.fromClient(client, defaults);
|
|
9533
|
-
return seam.list(...args);
|
|
9534
|
-
};
|
|
9535
|
-
}
|
|
9536
9710
|
get ["/noise_sensors/list"]() {
|
|
9537
9711
|
const { client, defaults } = this;
|
|
9538
9712
|
return function noiseSensorsList(...args) {
|
|
@@ -9625,6 +9799,18 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9625
9799
|
return seam.createSandboxPhone(...args);
|
|
9626
9800
|
};
|
|
9627
9801
|
}
|
|
9802
|
+
get ["/seam/console/v1/get_resource_locator"]() {
|
|
9803
|
+
const { client, defaults } = this;
|
|
9804
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9805
|
+
throw new Error(
|
|
9806
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9807
|
+
);
|
|
9808
|
+
}
|
|
9809
|
+
return function seamConsoleV1GetResourceLocator(...args) {
|
|
9810
|
+
const seam = SeamHttpSeamConsoleV1.fromClient(client, defaults);
|
|
9811
|
+
return seam.getResourceLocator(...args);
|
|
9812
|
+
};
|
|
9813
|
+
}
|
|
9628
9814
|
get ["/seam/customer/v1/automation_runs/list"]() {
|
|
9629
9815
|
const { client, defaults } = this;
|
|
9630
9816
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -10399,6 +10585,18 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10399
10585
|
return seam.create(...args);
|
|
10400
10586
|
};
|
|
10401
10587
|
}
|
|
10588
|
+
get ["/workspaces/find_resources"]() {
|
|
10589
|
+
const { client, defaults } = this;
|
|
10590
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10591
|
+
throw new Error(
|
|
10592
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10593
|
+
);
|
|
10594
|
+
}
|
|
10595
|
+
return function workspacesFindResources(...args) {
|
|
10596
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
10597
|
+
return seam.findResources(...args);
|
|
10598
|
+
};
|
|
10599
|
+
}
|
|
10402
10600
|
get ["/workspaces/get"]() {
|
|
10403
10601
|
const { client, defaults } = this;
|
|
10404
10602
|
return function workspacesGet(...args) {
|
|
@@ -10572,19 +10770,21 @@ exports.SeamHttpDevicesUnmanaged = SeamHttpDevicesUnmanaged;
|
|
|
10572
10770
|
exports.SeamHttpEndpoints = SeamHttpEndpoints;
|
|
10573
10771
|
exports.SeamHttpEndpointsWithoutWorkspace = SeamHttpEndpointsWithoutWorkspace;
|
|
10574
10772
|
exports.SeamHttpEvents = SeamHttpEvents;
|
|
10773
|
+
exports.SeamHttpInstantKeys = SeamHttpInstantKeys;
|
|
10575
10774
|
exports.SeamHttpInvalidInputError = SeamHttpInvalidInputError;
|
|
10576
10775
|
exports.SeamHttpInvalidOptionsError = SeamHttpInvalidOptionsError;
|
|
10577
10776
|
exports.SeamHttpInvalidTokenError = SeamHttpInvalidTokenError;
|
|
10578
10777
|
exports.SeamHttpLocks = SeamHttpLocks;
|
|
10579
10778
|
exports.SeamHttpLocksSimulate = SeamHttpLocksSimulate;
|
|
10580
10779
|
exports.SeamHttpMultiWorkspace = SeamHttpMultiWorkspace;
|
|
10581
|
-
exports.SeamHttpNetworks = SeamHttpNetworks;
|
|
10582
10780
|
exports.SeamHttpNoiseSensors = SeamHttpNoiseSensors;
|
|
10583
10781
|
exports.SeamHttpNoiseSensorsNoiseThresholds = SeamHttpNoiseSensorsNoiseThresholds;
|
|
10584
10782
|
exports.SeamHttpNoiseSensorsSimulate = SeamHttpNoiseSensorsSimulate;
|
|
10585
10783
|
exports.SeamHttpPhones = SeamHttpPhones;
|
|
10586
10784
|
exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
|
|
10587
10785
|
exports.SeamHttpRequest = SeamHttpRequest;
|
|
10786
|
+
exports.SeamHttpSeamConsole = SeamHttpSeamConsole;
|
|
10787
|
+
exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
|
|
10588
10788
|
exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
|
|
10589
10789
|
exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationRuns;
|
|
10590
10790
|
exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
|