@seamapi/http 1.35.0 → 1.35.1
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 +28 -20
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +21 -17
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +2 -2
- package/lib/seam/connect/routes/access-codes/access-codes.js +2 -2
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +4 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js +8 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +2 -2
- package/lib/seam/connect/routes/acs/credentials/credentials.js +2 -2
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +2 -2
- package/lib/seam/connect/routes/acs/encoders/encoders.js +2 -2
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/acs/users/users.d.ts +2 -2
- package/lib/seam/connect/routes/acs/users/users.js +2 -2
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +2 -2
- package/lib/seam/connect/routes/client-sessions/client-sessions.js +2 -2
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +2 -2
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +2 -2
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +2 -2
- package/lib/seam/connect/routes/devices/simulate/simulate.js +2 -2
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +2 -2
- package/lib/seam/connect/routes/phones/simulate/simulate.js +2 -2
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.d.ts +2 -2
- package/lib/seam/connect/routes/thermostats/thermostats.js +2 -2
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/user-identities.d.ts +2 -2
- package/lib/seam/connect/routes/user-identities/user-identities.js +2 -2
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +3 -3
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +17 -0
- package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +9 -4
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +8 -4
- package/src/lib/seam/connect/routes/acs/users/users.ts +3 -3
- package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +3 -5
- package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +8 -4
- package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +5 -3
- package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +3 -3
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +3 -3
- package/src/lib/seam/connect/routes/user-identities/user-identities.ts +8 -4
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -973,11 +973,11 @@ var _SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
|
973
973
|
responseKey: "client_sessions"
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
|
-
revoke(
|
|
976
|
+
revoke(body) {
|
|
977
977
|
return new SeamHttpRequest(this, {
|
|
978
978
|
pathname: "/client_sessions/revoke",
|
|
979
979
|
method: "POST",
|
|
980
|
-
body
|
|
980
|
+
body,
|
|
981
981
|
responseKey: void 0
|
|
982
982
|
});
|
|
983
983
|
}
|
|
@@ -1314,11 +1314,11 @@ var _SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1314
1314
|
responseKey: void 0
|
|
1315
1315
|
});
|
|
1316
1316
|
}
|
|
1317
|
-
generateCode(
|
|
1317
|
+
generateCode(params) {
|
|
1318
1318
|
return new SeamHttpRequest(this, {
|
|
1319
1319
|
pathname: "/access_codes/generate_code",
|
|
1320
1320
|
method: "POST",
|
|
1321
|
-
body,
|
|
1321
|
+
body: params,
|
|
1322
1322
|
responseKey: "generated_code"
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
@@ -1487,6 +1487,14 @@ var _SeamHttpAccessGrants = class _SeamHttpAccessGrants {
|
|
|
1487
1487
|
responseKey: "access_grants"
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
1490
|
+
update(body) {
|
|
1491
|
+
return new SeamHttpRequest(this, {
|
|
1492
|
+
pathname: "/access_grants/update",
|
|
1493
|
+
method: "PATCH",
|
|
1494
|
+
body,
|
|
1495
|
+
responseKey: void 0
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1490
1498
|
};
|
|
1491
1499
|
_SeamHttpAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
1492
1500
|
var SeamHttpAccessGrants = _SeamHttpAccessGrants;
|
|
@@ -1849,8 +1857,8 @@ var _SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1849
1857
|
list(params) {
|
|
1850
1858
|
return new SeamHttpRequest(this, {
|
|
1851
1859
|
pathname: "/acs/credentials/list",
|
|
1852
|
-
method: "
|
|
1853
|
-
|
|
1860
|
+
method: "GET",
|
|
1861
|
+
params,
|
|
1854
1862
|
responseKey: "acs_credentials"
|
|
1855
1863
|
});
|
|
1856
1864
|
}
|
|
@@ -2112,8 +2120,8 @@ var _SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2112
2120
|
list(params) {
|
|
2113
2121
|
return new SeamHttpRequest(this, {
|
|
2114
2122
|
pathname: "/acs/encoders/list",
|
|
2115
|
-
method: "
|
|
2116
|
-
|
|
2123
|
+
method: "GET",
|
|
2124
|
+
params,
|
|
2117
2125
|
responseKey: "acs_encoders"
|
|
2118
2126
|
});
|
|
2119
2127
|
}
|
|
@@ -2493,11 +2501,11 @@ var _SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2493
2501
|
responseKey: void 0
|
|
2494
2502
|
});
|
|
2495
2503
|
}
|
|
2496
|
-
revokeAccessToAllEntrances(
|
|
2504
|
+
revokeAccessToAllEntrances(body) {
|
|
2497
2505
|
return new SeamHttpRequest(this, {
|
|
2498
2506
|
pathname: "/acs/users/revoke_access_to_all_entrances",
|
|
2499
2507
|
method: "POST",
|
|
2500
|
-
body
|
|
2508
|
+
body,
|
|
2501
2509
|
responseKey: void 0
|
|
2502
2510
|
});
|
|
2503
2511
|
}
|
|
@@ -2943,8 +2951,8 @@ var _SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2943
2951
|
get(params) {
|
|
2944
2952
|
return new SeamHttpRequest(this, {
|
|
2945
2953
|
pathname: "/connected_accounts/get",
|
|
2946
|
-
method: "
|
|
2947
|
-
|
|
2954
|
+
method: "GET",
|
|
2955
|
+
params,
|
|
2948
2956
|
responseKey: "connected_account"
|
|
2949
2957
|
});
|
|
2950
2958
|
}
|
|
@@ -3073,11 +3081,11 @@ var _SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3073
3081
|
responseKey: void 0
|
|
3074
3082
|
});
|
|
3075
3083
|
}
|
|
3076
|
-
remove(
|
|
3084
|
+
remove(params) {
|
|
3077
3085
|
return new SeamHttpRequest(this, {
|
|
3078
3086
|
pathname: "/devices/simulate/remove",
|
|
3079
3087
|
method: "POST",
|
|
3080
|
-
body,
|
|
3088
|
+
body: params,
|
|
3081
3089
|
responseKey: void 0
|
|
3082
3090
|
});
|
|
3083
3091
|
}
|
|
@@ -3941,11 +3949,11 @@ var _SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
|
3941
3949
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3942
3950
|
await clientSessions.get();
|
|
3943
3951
|
}
|
|
3944
|
-
createSandboxPhone(
|
|
3952
|
+
createSandboxPhone(params) {
|
|
3945
3953
|
return new SeamHttpRequest(this, {
|
|
3946
3954
|
pathname: "/phones/simulate/create_sandbox_phone",
|
|
3947
3955
|
method: "POST",
|
|
3948
|
-
body,
|
|
3956
|
+
body: params,
|
|
3949
3957
|
responseKey: "phone"
|
|
3950
3958
|
});
|
|
3951
3959
|
}
|
|
@@ -4680,11 +4688,11 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4680
4688
|
responseKey: void 0
|
|
4681
4689
|
});
|
|
4682
4690
|
}
|
|
4683
|
-
deleteClimatePreset(
|
|
4691
|
+
deleteClimatePreset(params) {
|
|
4684
4692
|
return new SeamHttpRequest(this, {
|
|
4685
4693
|
pathname: "/thermostats/delete_climate_preset",
|
|
4686
4694
|
method: "POST",
|
|
4687
|
-
body,
|
|
4695
|
+
body: params,
|
|
4688
4696
|
responseKey: void 0
|
|
4689
4697
|
});
|
|
4690
4698
|
}
|
|
@@ -5020,8 +5028,8 @@ var _SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
5020
5028
|
get(params) {
|
|
5021
5029
|
return new SeamHttpRequest(this, {
|
|
5022
5030
|
pathname: "/user_identities/get",
|
|
5023
|
-
method: "
|
|
5024
|
-
|
|
5031
|
+
method: "GET",
|
|
5032
|
+
params,
|
|
5025
5033
|
responseKey: "user_identity"
|
|
5026
5034
|
});
|
|
5027
5035
|
}
|