@seamapi/http 0.26.0 → 0.28.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/README.md +8 -5
- package/dist/connect.cjs +190 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +48 -9
- package/lib/seam/connect/routes/access-codes-simulate.d.ts +21 -0
- package/lib/seam/connect/routes/access-codes-simulate.js +88 -0
- package/lib/seam/connect/routes/access-codes-simulate.js.map +1 -0
- package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +1 -1
- package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-codes.d.ts +3 -1
- package/lib/seam/connect/routes/access-codes.js +4 -0
- package/lib/seam/connect/routes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/acs-access-groups.d.ts +1 -1
- package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs-credential-pools.d.ts +1 -1
- package/lib/seam/connect/routes/acs-credential-pools.js.map +1 -1
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.d.ts +1 -1
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.js.map +1 -1
- package/lib/seam/connect/routes/acs-credentials.d.ts +4 -4
- package/lib/seam/connect/routes/acs-credentials.js +3 -3
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs-entrances.d.ts +1 -1
- package/lib/seam/connect/routes/acs-entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs-systems.d.ts +1 -1
- package/lib/seam/connect/routes/acs-systems.js.map +1 -1
- package/lib/seam/connect/routes/acs-users.d.ts +1 -1
- package/lib/seam/connect/routes/acs-users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts.d.ts +1 -1
- package/lib/seam/connect/routes/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions.d.ts +2 -2
- package/lib/seam/connect/routes/client-sessions.js +1 -1
- package/lib/seam/connect/routes/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews.d.ts +1 -1
- package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts.d.ts +1 -1
- package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/devices-simulate.d.ts +1 -1
- package/lib/seam/connect/routes/devices-simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices-unmanaged.d.ts +1 -1
- package/lib/seam/connect/routes/devices-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/devices.d.ts +1 -1
- package/lib/seam/connect/routes/devices.js.map +1 -1
- package/lib/seam/connect/routes/events.d.ts +1 -1
- package/lib/seam/connect/routes/events.js.map +1 -1
- package/lib/seam/connect/routes/index.d.ts +2 -0
- package/lib/seam/connect/routes/index.js +2 -0
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/locks.d.ts +1 -1
- package/lib/seam/connect/routes/locks.js.map +1 -1
- package/lib/seam/connect/routes/networks.d.ts +1 -1
- package/lib/seam/connect/routes/networks.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +1 -1
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors-simulate.d.ts +21 -0
- package/lib/seam/connect/routes/noise-sensors-simulate.js +88 -0
- package/lib/seam/connect/routes/noise-sensors-simulate.js.map +1 -0
- package/lib/seam/connect/routes/noise-sensors.d.ts +2 -0
- package/lib/seam/connect/routes/noise-sensors.js +4 -0
- package/lib/seam/connect/routes/noise-sensors.js.map +1 -1
- package/lib/seam/connect/routes/phones-simulate.d.ts +1 -1
- package/lib/seam/connect/routes/phones-simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones.d.ts +1 -1
- package/lib/seam/connect/routes/phones.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +1 -1
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +1 -1
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities-enrollment-automations.d.ts +1 -1
- package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +1 -1
- package/lib/seam/connect/routes/user-identities.d.ts +2 -2
- package/lib/seam/connect/routes/user-identities.js +1 -1
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks.d.ts +1 -1
- package/lib/seam/connect/routes/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces.d.ts +3 -3
- package/lib/seam/connect/routes/workspaces.js +3 -2
- package/lib/seam/connect/routes/workspaces.js.map +1 -1
- package/lib/types.d.ts +3 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -8
- package/src/lib/seam/connect/routes/access-codes-simulate.ts +182 -0
- package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +1 -1
- package/src/lib/seam/connect/routes/access-codes.ts +6 -1
- package/src/lib/seam/connect/routes/acs-access-groups.ts +1 -1
- package/src/lib/seam/connect/routes/acs-credential-pools.ts +1 -1
- package/src/lib/seam/connect/routes/acs-credential-provisioning-automations.ts +1 -1
- package/src/lib/seam/connect/routes/acs-credentials.ts +7 -11
- package/src/lib/seam/connect/routes/acs-entrances.ts +1 -1
- package/src/lib/seam/connect/routes/acs-systems.ts +1 -1
- package/src/lib/seam/connect/routes/acs-users.ts +1 -1
- package/src/lib/seam/connect/routes/action-attempts.ts +1 -1
- package/src/lib/seam/connect/routes/client-sessions.ts +3 -3
- package/src/lib/seam/connect/routes/connect-webviews.ts +1 -1
- package/src/lib/seam/connect/routes/connected-accounts.ts +1 -1
- package/src/lib/seam/connect/routes/devices-simulate.ts +1 -1
- package/src/lib/seam/connect/routes/devices-unmanaged.ts +1 -1
- package/src/lib/seam/connect/routes/devices.ts +1 -1
- package/src/lib/seam/connect/routes/events.ts +1 -1
- package/src/lib/seam/connect/routes/index.ts +2 -0
- package/src/lib/seam/connect/routes/locks.ts +1 -1
- package/src/lib/seam/connect/routes/networks.ts +1 -1
- package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +1 -1
- package/src/lib/seam/connect/routes/noise-sensors-simulate.ts +176 -0
- package/src/lib/seam/connect/routes/noise-sensors.ts +5 -0
- package/src/lib/seam/connect/routes/phones-simulate.ts +1 -1
- package/src/lib/seam/connect/routes/phones.ts +1 -1
- package/src/lib/seam/connect/routes/thermostats-climate-setting-schedules.ts +1 -1
- package/src/lib/seam/connect/routes/thermostats.ts +1 -1
- package/src/lib/seam/connect/routes/user-identities-enrollment-automations.ts +1 -1
- package/src/lib/seam/connect/routes/user-identities.ts +3 -6
- package/src/lib/seam/connect/routes/webhooks.ts +1 -1
- package/src/lib/seam/connect/routes/workspaces.ts +9 -4
- package/src/lib/types.ts +8 -0
- package/src/lib/version.ts +1 -1
package/README.md
CHANGED
|
@@ -28,10 +28,11 @@ The underlying HTTP client is [Axios].
|
|
|
28
28
|
|
|
29
29
|
## Installation
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
> [!IMPORTANT]
|
|
32
|
+
> This is a low-level package meant for applications and libraries with particular dependency requirements.
|
|
33
|
+
> Before using this package, ensure you understand the installation and updating instructions.
|
|
34
|
+
> This SDK is entirely contained in the [seam package].
|
|
35
|
+
> Seam recommends using that package instead for simpler dependency management.
|
|
35
36
|
|
|
36
37
|
Add this as a dependency to your project using [npm] with
|
|
37
38
|
|
|
@@ -76,7 +77,8 @@ $ npm install -D @seamapi/types@latest
|
|
|
76
77
|
|
|
77
78
|
### Examples
|
|
78
79
|
|
|
79
|
-
|
|
80
|
+
> [!NOTE]
|
|
81
|
+
> These examples assume `SEAM_API_KEY` is set in your environment.
|
|
80
82
|
|
|
81
83
|
#### List devices
|
|
82
84
|
|
|
@@ -104,6 +106,7 @@ Authentication may be configured by passing the corresponding
|
|
|
104
106
|
options directly to the `SeamHttp` constructor,
|
|
105
107
|
or with the more ergonomic static factory methods.
|
|
106
108
|
|
|
109
|
+
> [!NOTE]
|
|
107
110
|
> Publishable Key authentication is not supported by the constructor
|
|
108
111
|
> and must be configured using `SeamHttp.fromPublishableKey`.
|
|
109
112
|
|
package/dist/connect.cjs
CHANGED
|
@@ -857,7 +857,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
|
857
857
|
path: "/client_sessions/grant_access",
|
|
858
858
|
method: "post",
|
|
859
859
|
body,
|
|
860
|
-
responseKey:
|
|
860
|
+
responseKey: void 0
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
list(body) {
|
|
@@ -878,6 +878,93 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
|
|
881
|
+
// src/lib/seam/connect/routes/access-codes-simulate.ts
|
|
882
|
+
var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
|
|
883
|
+
constructor(apiKeyOrOptions = {}) {
|
|
884
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
885
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
886
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
887
|
+
}
|
|
888
|
+
static fromClient(client, options = {}) {
|
|
889
|
+
const constructorOptions = { ...options, client };
|
|
890
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
891
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
892
|
+
}
|
|
893
|
+
return new _SeamHttpAccessCodesSimulate(constructorOptions);
|
|
894
|
+
}
|
|
895
|
+
static fromApiKey(apiKey, options = {}) {
|
|
896
|
+
const constructorOptions = { ...options, apiKey };
|
|
897
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
898
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
899
|
+
}
|
|
900
|
+
return new _SeamHttpAccessCodesSimulate(constructorOptions);
|
|
901
|
+
}
|
|
902
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
903
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
904
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
905
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
906
|
+
}
|
|
907
|
+
return new _SeamHttpAccessCodesSimulate(constructorOptions);
|
|
908
|
+
}
|
|
909
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
910
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
911
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
912
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
913
|
+
throw new SeamHttpInvalidOptionsError(
|
|
914
|
+
"The client option cannot be used with SeamHttp.fromPublishableKey"
|
|
915
|
+
);
|
|
916
|
+
}
|
|
917
|
+
const client = createClient(clientOptions);
|
|
918
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
919
|
+
const { token } = await clientSessions.getOrCreate({
|
|
920
|
+
user_identifier_key: userIdentifierKey
|
|
921
|
+
});
|
|
922
|
+
return _SeamHttpAccessCodesSimulate.fromClientSessionToken(token, options);
|
|
923
|
+
}
|
|
924
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
925
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
926
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
927
|
+
throw new SeamHttpInvalidOptionsError(
|
|
928
|
+
"Missing consoleSessionToken or workspaceId"
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
return new _SeamHttpAccessCodesSimulate(constructorOptions);
|
|
932
|
+
}
|
|
933
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
934
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
935
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
936
|
+
throw new SeamHttpInvalidOptionsError(
|
|
937
|
+
"Missing personalAccessToken or workspaceId"
|
|
938
|
+
);
|
|
939
|
+
}
|
|
940
|
+
return new _SeamHttpAccessCodesSimulate(constructorOptions);
|
|
941
|
+
}
|
|
942
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
943
|
+
const { headers } = this.client.defaults;
|
|
944
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
945
|
+
clientSessionToken
|
|
946
|
+
});
|
|
947
|
+
for (const key of Object.keys(authHeaders)) {
|
|
948
|
+
if (headers[key] == null) {
|
|
949
|
+
throw new Error(
|
|
950
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
951
|
+
);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
955
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
956
|
+
await clientSessions.get();
|
|
957
|
+
}
|
|
958
|
+
createUnmanagedAccessCode(body) {
|
|
959
|
+
return new SeamHttpRequest(this, {
|
|
960
|
+
path: "/access_codes/simulate/create_unmanaged_access_code",
|
|
961
|
+
method: "post",
|
|
962
|
+
body,
|
|
963
|
+
responseKey: "access_code"
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
|
|
881
968
|
// src/lib/seam/connect/routes/access-codes-unmanaged.ts
|
|
882
969
|
var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
|
|
883
970
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -1077,6 +1164,9 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1077
1164
|
get unmanaged() {
|
|
1078
1165
|
return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults);
|
|
1079
1166
|
}
|
|
1167
|
+
get simulate() {
|
|
1168
|
+
return SeamHttpAccessCodesSimulate.fromClient(this.client, this.defaults);
|
|
1169
|
+
}
|
|
1080
1170
|
create(body) {
|
|
1081
1171
|
return new SeamHttpRequest(this, {
|
|
1082
1172
|
path: "/access_codes/create",
|
|
@@ -1521,7 +1611,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1521
1611
|
path: "/acs/credentials/assign",
|
|
1522
1612
|
method: "post",
|
|
1523
1613
|
body,
|
|
1524
|
-
responseKey:
|
|
1614
|
+
responseKey: void 0
|
|
1525
1615
|
});
|
|
1526
1616
|
}
|
|
1527
1617
|
create(body) {
|
|
@@ -1561,7 +1651,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1561
1651
|
path: "/acs/credentials/unassign",
|
|
1562
1652
|
method: "post",
|
|
1563
1653
|
body,
|
|
1564
|
-
responseKey:
|
|
1654
|
+
responseKey: void 0
|
|
1565
1655
|
});
|
|
1566
1656
|
}
|
|
1567
1657
|
update(body) {
|
|
@@ -1569,7 +1659,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1569
1659
|
path: "/acs/credentials/update",
|
|
1570
1660
|
method: "post",
|
|
1571
1661
|
body,
|
|
1572
|
-
responseKey:
|
|
1662
|
+
responseKey: void 0
|
|
1573
1663
|
});
|
|
1574
1664
|
}
|
|
1575
1665
|
};
|
|
@@ -3108,6 +3198,93 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
|
|
|
3108
3198
|
}
|
|
3109
3199
|
};
|
|
3110
3200
|
|
|
3201
|
+
// src/lib/seam/connect/routes/noise-sensors-simulate.ts
|
|
3202
|
+
var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
|
|
3203
|
+
constructor(apiKeyOrOptions = {}) {
|
|
3204
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
3205
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
3206
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
3207
|
+
}
|
|
3208
|
+
static fromClient(client, options = {}) {
|
|
3209
|
+
const constructorOptions = { ...options, client };
|
|
3210
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
3211
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
3212
|
+
}
|
|
3213
|
+
return new _SeamHttpNoiseSensorsSimulate(constructorOptions);
|
|
3214
|
+
}
|
|
3215
|
+
static fromApiKey(apiKey, options = {}) {
|
|
3216
|
+
const constructorOptions = { ...options, apiKey };
|
|
3217
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
3218
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
3219
|
+
}
|
|
3220
|
+
return new _SeamHttpNoiseSensorsSimulate(constructorOptions);
|
|
3221
|
+
}
|
|
3222
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
3223
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
3224
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
3225
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
3226
|
+
}
|
|
3227
|
+
return new _SeamHttpNoiseSensorsSimulate(constructorOptions);
|
|
3228
|
+
}
|
|
3229
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
3230
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
3231
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3232
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3233
|
+
throw new SeamHttpInvalidOptionsError(
|
|
3234
|
+
"The client option cannot be used with SeamHttp.fromPublishableKey"
|
|
3235
|
+
);
|
|
3236
|
+
}
|
|
3237
|
+
const client = createClient(clientOptions);
|
|
3238
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
3239
|
+
const { token } = await clientSessions.getOrCreate({
|
|
3240
|
+
user_identifier_key: userIdentifierKey
|
|
3241
|
+
});
|
|
3242
|
+
return _SeamHttpNoiseSensorsSimulate.fromClientSessionToken(token, options);
|
|
3243
|
+
}
|
|
3244
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
3245
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
3246
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
3247
|
+
throw new SeamHttpInvalidOptionsError(
|
|
3248
|
+
"Missing consoleSessionToken or workspaceId"
|
|
3249
|
+
);
|
|
3250
|
+
}
|
|
3251
|
+
return new _SeamHttpNoiseSensorsSimulate(constructorOptions);
|
|
3252
|
+
}
|
|
3253
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
3254
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
3255
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
3256
|
+
throw new SeamHttpInvalidOptionsError(
|
|
3257
|
+
"Missing personalAccessToken or workspaceId"
|
|
3258
|
+
);
|
|
3259
|
+
}
|
|
3260
|
+
return new _SeamHttpNoiseSensorsSimulate(constructorOptions);
|
|
3261
|
+
}
|
|
3262
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
3263
|
+
const { headers } = this.client.defaults;
|
|
3264
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
3265
|
+
clientSessionToken
|
|
3266
|
+
});
|
|
3267
|
+
for (const key of Object.keys(authHeaders)) {
|
|
3268
|
+
if (headers[key] == null) {
|
|
3269
|
+
throw new Error(
|
|
3270
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
3271
|
+
);
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
3275
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3276
|
+
await clientSessions.get();
|
|
3277
|
+
}
|
|
3278
|
+
triggerNoiseThreshold(body) {
|
|
3279
|
+
return new SeamHttpRequest(this, {
|
|
3280
|
+
path: "/noise_sensors/simulate/trigger_noise_threshold",
|
|
3281
|
+
method: "post",
|
|
3282
|
+
body,
|
|
3283
|
+
responseKey: void 0
|
|
3284
|
+
});
|
|
3285
|
+
}
|
|
3286
|
+
};
|
|
3287
|
+
|
|
3111
3288
|
// src/lib/seam/connect/routes/noise-sensors.ts
|
|
3112
3289
|
var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
3113
3290
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -3191,6 +3368,9 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
|
3191
3368
|
this.defaults
|
|
3192
3369
|
);
|
|
3193
3370
|
}
|
|
3371
|
+
get simulate() {
|
|
3372
|
+
return SeamHttpNoiseSensorsSimulate.fromClient(this.client, this.defaults);
|
|
3373
|
+
}
|
|
3194
3374
|
};
|
|
3195
3375
|
|
|
3196
3376
|
// src/lib/seam/connect/routes/phones-simulate.ts
|
|
@@ -3904,7 +4084,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
3904
4084
|
path: "/user_identities/list_accessible_devices",
|
|
3905
4085
|
method: "post",
|
|
3906
4086
|
body,
|
|
3907
|
-
responseKey: "
|
|
4087
|
+
responseKey: "devices"
|
|
3908
4088
|
});
|
|
3909
4089
|
}
|
|
3910
4090
|
listAcsSystems(body) {
|
|
@@ -4169,12 +4349,13 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
4169
4349
|
responseKey: "workspaces"
|
|
4170
4350
|
});
|
|
4171
4351
|
}
|
|
4172
|
-
resetSandbox(body) {
|
|
4352
|
+
resetSandbox(body, options = {}) {
|
|
4173
4353
|
return new SeamHttpRequest(this, {
|
|
4174
4354
|
path: "/workspaces/reset_sandbox",
|
|
4175
4355
|
method: "post",
|
|
4176
4356
|
body,
|
|
4177
|
-
responseKey:
|
|
4357
|
+
responseKey: "action_attempt",
|
|
4358
|
+
options
|
|
4178
4359
|
});
|
|
4179
4360
|
}
|
|
4180
4361
|
};
|
|
@@ -4355,6 +4536,7 @@ exports.SeamActionAttemptFailedError = SeamActionAttemptFailedError;
|
|
|
4355
4536
|
exports.SeamActionAttemptTimeoutError = SeamActionAttemptTimeoutError;
|
|
4356
4537
|
exports.SeamHttp = SeamHttp;
|
|
4357
4538
|
exports.SeamHttpAccessCodes = SeamHttpAccessCodes;
|
|
4539
|
+
exports.SeamHttpAccessCodesSimulate = SeamHttpAccessCodesSimulate;
|
|
4358
4540
|
exports.SeamHttpAccessCodesUnmanaged = SeamHttpAccessCodesUnmanaged;
|
|
4359
4541
|
exports.SeamHttpAcs = SeamHttpAcs;
|
|
4360
4542
|
exports.SeamHttpAcsAccessGroups = SeamHttpAcsAccessGroups;
|
|
@@ -4382,6 +4564,7 @@ exports.SeamHttpMultiWorkspaceInvalidOptionsError = SeamHttpMultiWorkspaceInvali
|
|
|
4382
4564
|
exports.SeamHttpNetworks = SeamHttpNetworks;
|
|
4383
4565
|
exports.SeamHttpNoiseSensors = SeamHttpNoiseSensors;
|
|
4384
4566
|
exports.SeamHttpNoiseSensorsNoiseThresholds = SeamHttpNoiseSensorsNoiseThresholds;
|
|
4567
|
+
exports.SeamHttpNoiseSensorsSimulate = SeamHttpNoiseSensorsSimulate;
|
|
4385
4568
|
exports.SeamHttpPhones = SeamHttpPhones;
|
|
4386
4569
|
exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
|
|
4387
4570
|
exports.SeamHttpRequest = SeamHttpRequest;
|