@seamapi/http 0.24.0 → 0.25.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 +15 -0
- package/dist/connect.cjs +762 -732
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +149 -126
- package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +6 -5
- package/lib/seam/connect/routes/access-codes-unmanaged.js +26 -22
- package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-codes.d.ts +9 -8
- package/lib/seam/connect/routes/access-codes.js +41 -38
- package/lib/seam/connect/routes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/acs-access-groups.d.ts +6 -5
- package/lib/seam/connect/routes/acs-access-groups.js +26 -23
- package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs-credential-pools.d.ts +2 -1
- package/lib/seam/connect/routes/acs-credential-pools.js +6 -5
- package/lib/seam/connect/routes/acs-credential-pools.js.map +1 -1
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.d.ts +2 -1
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.js +6 -5
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.js.map +1 -1
- package/lib/seam/connect/routes/acs-credentials.d.ts +8 -7
- package/lib/seam/connect/routes/acs-credentials.js +36 -34
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs-entrances.d.ts +5 -4
- package/lib/seam/connect/routes/acs-entrances.js +21 -19
- package/lib/seam/connect/routes/acs-entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs-systems.d.ts +3 -2
- package/lib/seam/connect/routes/acs-systems.js +11 -10
- package/lib/seam/connect/routes/acs-systems.js.map +1 -1
- package/lib/seam/connect/routes/acs-users.d.ts +12 -11
- package/lib/seam/connect/routes/acs-users.js +56 -48
- package/lib/seam/connect/routes/acs-users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts.d.ts +3 -2
- package/lib/seam/connect/routes/action-attempts.js +12 -18
- package/lib/seam/connect/routes/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions.d.ts +8 -7
- package/lib/seam/connect/routes/client-sessions.js +36 -33
- package/lib/seam/connect/routes/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews.d.ts +6 -5
- package/lib/seam/connect/routes/connect-webviews.js +25 -22
- package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts.d.ts +5 -4
- package/lib/seam/connect/routes/connected-accounts.js +21 -19
- package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/devices-simulate.d.ts +2 -1
- package/lib/seam/connect/routes/devices-simulate.js +6 -4
- package/lib/seam/connect/routes/devices-simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices-unmanaged.d.ts +4 -3
- package/lib/seam/connect/routes/devices-unmanaged.js +16 -14
- package/lib/seam/connect/routes/devices-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/devices.d.ts +6 -5
- package/lib/seam/connect/routes/devices.js +26 -23
- package/lib/seam/connect/routes/devices.js.map +1 -1
- package/lib/seam/connect/routes/events.d.ts +3 -2
- package/lib/seam/connect/routes/events.js +11 -10
- package/lib/seam/connect/routes/events.js.map +1 -1
- package/lib/seam/connect/routes/locks.d.ts +5 -4
- package/lib/seam/connect/routes/locks.js +23 -36
- package/lib/seam/connect/routes/locks.js.map +1 -1
- package/lib/seam/connect/routes/networks.d.ts +3 -2
- package/lib/seam/connect/routes/networks.js +11 -10
- package/lib/seam/connect/routes/networks.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +6 -5
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js +26 -23
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/phones-simulate.d.ts +2 -1
- package/lib/seam/connect/routes/phones-simulate.js +6 -5
- package/lib/seam/connect/routes/phones-simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones.d.ts +3 -2
- package/lib/seam/connect/routes/phones.js +11 -9
- package/lib/seam/connect/routes/phones.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +6 -5
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js +26 -23
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +9 -8
- package/lib/seam/connect/routes/thermostats.js +46 -76
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities-enrollment-automations.d.ts +5 -4
- package/lib/seam/connect/routes/user-identities-enrollment-automations.js +21 -19
- package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +1 -1
- package/lib/seam/connect/routes/user-identities.d.ts +13 -12
- package/lib/seam/connect/routes/user-identities.js +61 -54
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks.d.ts +6 -5
- package/lib/seam/connect/routes/webhooks.js +26 -23
- package/lib/seam/connect/routes/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces.d.ts +5 -4
- package/lib/seam/connect/routes/workspaces.js +21 -19
- package/lib/seam/connect/routes/workspaces.js.map +1 -1
- package/lib/seam/connect/seam-http-request.d.ts +26 -0
- package/lib/seam/connect/seam-http-request.js +87 -0
- package/lib/seam/connect/seam-http-request.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +37 -34
- package/src/lib/seam/connect/routes/access-codes.ts +56 -60
- package/src/lib/seam/connect/routes/acs-access-groups.ts +33 -32
- package/src/lib/seam/connect/routes/acs-credential-pools.ts +7 -7
- package/src/lib/seam/connect/routes/acs-credential-provisioning-automations.ts +11 -13
- package/src/lib/seam/connect/routes/acs-credentials.ts +42 -46
- package/src/lib/seam/connect/routes/acs-entrances.ts +31 -28
- package/src/lib/seam/connect/routes/acs-systems.ts +13 -14
- package/src/lib/seam/connect/routes/acs-users.ts +66 -61
- package/src/lib/seam/connect/routes/action-attempts.ts +14 -26
- package/src/lib/seam/connect/routes/client-sessions.ts +45 -49
- package/src/lib/seam/connect/routes/connect-webviews.ts +28 -28
- package/src/lib/seam/connect/routes/connected-accounts.ts +26 -29
- package/src/lib/seam/connect/routes/devices-simulate.ts +6 -4
- package/src/lib/seam/connect/routes/devices-unmanaged.ts +18 -18
- package/src/lib/seam/connect/routes/devices.ts +30 -31
- package/src/lib/seam/connect/routes/events.ts +11 -12
- package/src/lib/seam/connect/routes/locks.ts +25 -50
- package/src/lib/seam/connect/routes/networks.ts +14 -13
- package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +48 -38
- package/src/lib/seam/connect/routes/phones-simulate.ts +9 -10
- package/src/lib/seam/connect/routes/phones.ts +11 -10
- package/src/lib/seam/connect/routes/thermostats-climate-setting-schedules.ts +47 -55
- package/src/lib/seam/connect/routes/thermostats.ts +53 -110
- package/src/lib/seam/connect/routes/user-identities-enrollment-automations.ts +39 -48
- package/src/lib/seam/connect/routes/user-identities.ts +81 -78
- package/src/lib/seam/connect/routes/webhooks.ts +30 -28
- package/src/lib/seam/connect/routes/workspaces.ts +26 -25
- package/src/lib/seam/connect/seam-http-request.ts +144 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -11,6 +11,25 @@ var axios__default = /*#__PURE__*/_interopDefault(axios);
|
|
|
11
11
|
var axiosBetterStacktrace__default = /*#__PURE__*/_interopDefault(axiosBetterStacktrace);
|
|
12
12
|
var axiosRetry__default = /*#__PURE__*/_interopDefault(axiosRetry);
|
|
13
13
|
|
|
14
|
+
var __accessCheck = (obj, member, msg) => {
|
|
15
|
+
if (!member.has(obj))
|
|
16
|
+
throw TypeError("Cannot " + msg);
|
|
17
|
+
};
|
|
18
|
+
var __privateGet = (obj, member, getter) => {
|
|
19
|
+
__accessCheck(obj, member, "read from private field");
|
|
20
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
21
|
+
};
|
|
22
|
+
var __privateAdd = (obj, member, value) => {
|
|
23
|
+
if (member.has(obj))
|
|
24
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
25
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
26
|
+
};
|
|
27
|
+
var __privateSet = (obj, member, value, setter) => {
|
|
28
|
+
__accessCheck(obj, member, "write to private field");
|
|
29
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
30
|
+
return value;
|
|
31
|
+
};
|
|
32
|
+
|
|
14
33
|
// src/lib/lts-version.ts
|
|
15
34
|
var seamApiLtsVersion = "1.0.0";
|
|
16
35
|
|
|
@@ -634,6 +653,80 @@ var SeamActionAttemptTimeoutError = class extends SeamActionAttemptError {
|
|
|
634
653
|
};
|
|
635
654
|
var isSuccessfulActionAttempt = (actionAttempt) => actionAttempt.status === "success";
|
|
636
655
|
var isFailedActionAttempt = (actionAttempt) => actionAttempt.status === "error";
|
|
656
|
+
var _parent, _config;
|
|
657
|
+
var SeamHttpRequest = class {
|
|
658
|
+
constructor(parent, config) {
|
|
659
|
+
__privateAdd(this, _parent, void 0);
|
|
660
|
+
__privateAdd(this, _config, void 0);
|
|
661
|
+
__privateSet(this, _parent, parent);
|
|
662
|
+
__privateSet(this, _config, config);
|
|
663
|
+
}
|
|
664
|
+
get responseKey() {
|
|
665
|
+
return __privateGet(this, _config).responseKey;
|
|
666
|
+
}
|
|
667
|
+
get url() {
|
|
668
|
+
const { client } = __privateGet(this, _parent);
|
|
669
|
+
const { params } = __privateGet(this, _config);
|
|
670
|
+
const serializer = typeof client.defaults.paramsSerializer === "function" ? client.defaults.paramsSerializer : urlSearchParamsSerializer.serializeUrlSearchParams;
|
|
671
|
+
const origin = getUrlPrefix(client.defaults.baseURL ?? "");
|
|
672
|
+
const pathname = __privateGet(this, _config).path.startsWith("/") ? __privateGet(this, _config).path : `/${__privateGet(this, _config).path}`;
|
|
673
|
+
const path = params == null ? pathname : `${pathname}?${serializer(params)}`;
|
|
674
|
+
return new URL(`${origin}${path}`);
|
|
675
|
+
}
|
|
676
|
+
get method() {
|
|
677
|
+
return __privateGet(this, _config).method;
|
|
678
|
+
}
|
|
679
|
+
get body() {
|
|
680
|
+
return __privateGet(this, _config).body;
|
|
681
|
+
}
|
|
682
|
+
async execute() {
|
|
683
|
+
const { client } = __privateGet(this, _parent);
|
|
684
|
+
const response = await client.request({
|
|
685
|
+
url: __privateGet(this, _config).path,
|
|
686
|
+
method: __privateGet(this, _config).method,
|
|
687
|
+
data: __privateGet(this, _config).body,
|
|
688
|
+
params: __privateGet(this, _config).params
|
|
689
|
+
});
|
|
690
|
+
if (this.responseKey === void 0) {
|
|
691
|
+
return void 0;
|
|
692
|
+
}
|
|
693
|
+
const data = response.data[this.responseKey];
|
|
694
|
+
if (this.responseKey === "action_attempt") {
|
|
695
|
+
const waitForActionAttempt = __privateGet(this, _config).options?.waitForActionAttempt ?? __privateGet(this, _parent).defaults.waitForActionAttempt;
|
|
696
|
+
if (waitForActionAttempt !== false) {
|
|
697
|
+
return await resolveActionAttempt(
|
|
698
|
+
data,
|
|
699
|
+
SeamHttpActionAttempts.fromClient(client, {
|
|
700
|
+
...__privateGet(this, _parent).defaults,
|
|
701
|
+
waitForActionAttempt: false
|
|
702
|
+
}),
|
|
703
|
+
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
704
|
+
);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
return data;
|
|
708
|
+
}
|
|
709
|
+
then(onfulfilled, onrejected) {
|
|
710
|
+
return this.execute().then(onfulfilled, onrejected);
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
_parent = new WeakMap();
|
|
714
|
+
_config = new WeakMap();
|
|
715
|
+
var getUrlPrefix = (input) => {
|
|
716
|
+
if (URL.canParse(input)) {
|
|
717
|
+
const url = new URL(input).toString();
|
|
718
|
+
if (url.endsWith("/"))
|
|
719
|
+
return url.slice(0, -1);
|
|
720
|
+
return url;
|
|
721
|
+
}
|
|
722
|
+
if (globalThis.location != null) {
|
|
723
|
+
const pathname = input.startsWith("/") ? input : `/${input}`;
|
|
724
|
+
return new URL(`${globalThis.location.origin}${pathname}`).toString();
|
|
725
|
+
}
|
|
726
|
+
throw new Error(
|
|
727
|
+
`Cannot resolve origin from ${input} in a non-browser environment`
|
|
728
|
+
);
|
|
729
|
+
};
|
|
637
730
|
|
|
638
731
|
// src/lib/seam/connect/routes/client-sessions.ts
|
|
639
732
|
var SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
@@ -712,58 +805,60 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
|
712
805
|
const clientSessions = _SeamHttpClientSessions.fromClient(this.client);
|
|
713
806
|
await clientSessions.get();
|
|
714
807
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
808
|
+
create(body) {
|
|
809
|
+
return new SeamHttpRequest(this, {
|
|
810
|
+
path: "/client_sessions/create",
|
|
718
811
|
method: "post",
|
|
719
|
-
|
|
812
|
+
body,
|
|
813
|
+
responseKey: "client_session"
|
|
720
814
|
});
|
|
721
|
-
return data.client_session;
|
|
722
815
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
816
|
+
delete(body) {
|
|
817
|
+
return new SeamHttpRequest(this, {
|
|
818
|
+
path: "/client_sessions/delete",
|
|
726
819
|
method: "post",
|
|
727
|
-
|
|
820
|
+
body,
|
|
821
|
+
responseKey: void 0
|
|
728
822
|
});
|
|
729
823
|
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
824
|
+
get(body) {
|
|
825
|
+
return new SeamHttpRequest(this, {
|
|
826
|
+
path: "/client_sessions/get",
|
|
733
827
|
method: "post",
|
|
734
|
-
|
|
828
|
+
body,
|
|
829
|
+
responseKey: "client_session"
|
|
735
830
|
});
|
|
736
|
-
return data.client_session;
|
|
737
831
|
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
832
|
+
getOrCreate(body) {
|
|
833
|
+
return new SeamHttpRequest(this, {
|
|
834
|
+
path: "/client_sessions/get_or_create",
|
|
741
835
|
method: "post",
|
|
742
|
-
|
|
836
|
+
body,
|
|
837
|
+
responseKey: "client_session"
|
|
743
838
|
});
|
|
744
|
-
return data.client_session;
|
|
745
839
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
840
|
+
grantAccess(body) {
|
|
841
|
+
return new SeamHttpRequest(this, {
|
|
842
|
+
path: "/client_sessions/grant_access",
|
|
749
843
|
method: "post",
|
|
750
|
-
|
|
844
|
+
body,
|
|
845
|
+
responseKey: "client_session"
|
|
751
846
|
});
|
|
752
|
-
return data.client_session;
|
|
753
847
|
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
848
|
+
list(body) {
|
|
849
|
+
return new SeamHttpRequest(this, {
|
|
850
|
+
path: "/client_sessions/list",
|
|
757
851
|
method: "post",
|
|
758
|
-
|
|
852
|
+
body,
|
|
853
|
+
responseKey: "client_sessions"
|
|
759
854
|
});
|
|
760
|
-
return data.client_sessions;
|
|
761
855
|
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
856
|
+
revoke(body) {
|
|
857
|
+
return new SeamHttpRequest(this, {
|
|
858
|
+
path: "/client_sessions/revoke",
|
|
765
859
|
method: "post",
|
|
766
|
-
|
|
860
|
+
body,
|
|
861
|
+
responseKey: void 0
|
|
767
862
|
});
|
|
768
863
|
}
|
|
769
864
|
};
|
|
@@ -845,43 +940,44 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
|
|
|
845
940
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
846
941
|
await clientSessions.get();
|
|
847
942
|
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
943
|
+
convertToManaged(body) {
|
|
944
|
+
return new SeamHttpRequest(this, {
|
|
945
|
+
path: "/access_codes/unmanaged/convert_to_managed",
|
|
851
946
|
method: "post",
|
|
852
|
-
|
|
947
|
+
body,
|
|
948
|
+
responseKey: void 0
|
|
853
949
|
});
|
|
854
950
|
}
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
951
|
+
delete(body) {
|
|
952
|
+
return new SeamHttpRequest(this, {
|
|
953
|
+
path: "/access_codes/unmanaged/delete",
|
|
858
954
|
method: "post",
|
|
859
|
-
|
|
955
|
+
body,
|
|
956
|
+
responseKey: void 0
|
|
860
957
|
});
|
|
861
958
|
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
);
|
|
870
|
-
return data.access_code;
|
|
959
|
+
get(body) {
|
|
960
|
+
return new SeamHttpRequest(this, {
|
|
961
|
+
path: "/access_codes/unmanaged/get",
|
|
962
|
+
method: "post",
|
|
963
|
+
body,
|
|
964
|
+
responseKey: "access_code"
|
|
965
|
+
});
|
|
871
966
|
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
967
|
+
list(body) {
|
|
968
|
+
return new SeamHttpRequest(this, {
|
|
969
|
+
path: "/access_codes/unmanaged/list",
|
|
875
970
|
method: "post",
|
|
876
|
-
|
|
971
|
+
body,
|
|
972
|
+
responseKey: "access_codes"
|
|
877
973
|
});
|
|
878
|
-
return data.access_codes;
|
|
879
974
|
}
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
975
|
+
update(body) {
|
|
976
|
+
return new SeamHttpRequest(this, {
|
|
977
|
+
path: "/access_codes/unmanaged/update",
|
|
883
978
|
method: "post",
|
|
884
|
-
|
|
979
|
+
body,
|
|
980
|
+
responseKey: void 0
|
|
885
981
|
});
|
|
886
982
|
}
|
|
887
983
|
};
|
|
@@ -966,68 +1062,68 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
966
1062
|
get unmanaged() {
|
|
967
1063
|
return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults);
|
|
968
1064
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1065
|
+
create(body) {
|
|
1066
|
+
return new SeamHttpRequest(this, {
|
|
1067
|
+
path: "/access_codes/create",
|
|
972
1068
|
method: "post",
|
|
973
|
-
|
|
1069
|
+
body,
|
|
1070
|
+
responseKey: "access_code"
|
|
974
1071
|
});
|
|
975
|
-
return data.access_code;
|
|
976
1072
|
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1073
|
+
createMultiple(body) {
|
|
1074
|
+
return new SeamHttpRequest(this, {
|
|
1075
|
+
path: "/access_codes/create_multiple",
|
|
980
1076
|
method: "post",
|
|
981
|
-
|
|
1077
|
+
body,
|
|
1078
|
+
responseKey: "access_codes"
|
|
982
1079
|
});
|
|
983
|
-
return data.access_codes;
|
|
984
1080
|
}
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1081
|
+
delete(body) {
|
|
1082
|
+
return new SeamHttpRequest(this, {
|
|
1083
|
+
path: "/access_codes/delete",
|
|
988
1084
|
method: "post",
|
|
989
|
-
|
|
1085
|
+
body,
|
|
1086
|
+
responseKey: void 0
|
|
990
1087
|
});
|
|
991
1088
|
}
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
);
|
|
1000
|
-
return data.generated_code;
|
|
1089
|
+
generateCode(body) {
|
|
1090
|
+
return new SeamHttpRequest(this, {
|
|
1091
|
+
path: "/access_codes/generate_code",
|
|
1092
|
+
method: "post",
|
|
1093
|
+
body,
|
|
1094
|
+
responseKey: "generated_code"
|
|
1095
|
+
});
|
|
1001
1096
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1097
|
+
get(body) {
|
|
1098
|
+
return new SeamHttpRequest(this, {
|
|
1099
|
+
path: "/access_codes/get",
|
|
1005
1100
|
method: "post",
|
|
1006
|
-
|
|
1101
|
+
body,
|
|
1102
|
+
responseKey: "access_code"
|
|
1007
1103
|
});
|
|
1008
|
-
return data.access_code;
|
|
1009
1104
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1105
|
+
list(body) {
|
|
1106
|
+
return new SeamHttpRequest(this, {
|
|
1107
|
+
path: "/access_codes/list",
|
|
1013
1108
|
method: "post",
|
|
1014
|
-
|
|
1109
|
+
body,
|
|
1110
|
+
responseKey: "access_codes"
|
|
1015
1111
|
});
|
|
1016
|
-
return data.access_codes;
|
|
1017
1112
|
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1113
|
+
pullBackupAccessCode(body) {
|
|
1114
|
+
return new SeamHttpRequest(this, {
|
|
1115
|
+
path: "/access_codes/pull_backup_access_code",
|
|
1021
1116
|
method: "post",
|
|
1022
|
-
|
|
1117
|
+
body,
|
|
1118
|
+
responseKey: "backup_access_code"
|
|
1023
1119
|
});
|
|
1024
|
-
return data.backup_access_code;
|
|
1025
1120
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1121
|
+
update(body) {
|
|
1122
|
+
return new SeamHttpRequest(this, {
|
|
1123
|
+
path: "/access_codes/update",
|
|
1029
1124
|
method: "post",
|
|
1030
|
-
|
|
1125
|
+
body,
|
|
1126
|
+
responseKey: void 0
|
|
1031
1127
|
});
|
|
1032
1128
|
}
|
|
1033
1129
|
};
|
|
@@ -1109,42 +1205,44 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
|
|
|
1109
1205
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1110
1206
|
await clientSessions.get();
|
|
1111
1207
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1208
|
+
addUser(body) {
|
|
1209
|
+
return new SeamHttpRequest(this, {
|
|
1210
|
+
path: "/acs/access_groups/add_user",
|
|
1115
1211
|
method: "post",
|
|
1116
|
-
|
|
1212
|
+
body,
|
|
1213
|
+
responseKey: void 0
|
|
1117
1214
|
});
|
|
1118
1215
|
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1216
|
+
get(body) {
|
|
1217
|
+
return new SeamHttpRequest(this, {
|
|
1218
|
+
path: "/acs/access_groups/get",
|
|
1122
1219
|
method: "post",
|
|
1123
|
-
|
|
1220
|
+
body,
|
|
1221
|
+
responseKey: "acs_access_group"
|
|
1124
1222
|
});
|
|
1125
|
-
return data.acs_access_group;
|
|
1126
1223
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1224
|
+
list(body) {
|
|
1225
|
+
return new SeamHttpRequest(this, {
|
|
1226
|
+
path: "/acs/access_groups/list",
|
|
1130
1227
|
method: "post",
|
|
1131
|
-
|
|
1228
|
+
body,
|
|
1229
|
+
responseKey: "acs_access_groups"
|
|
1132
1230
|
});
|
|
1133
|
-
return data.acs_access_groups;
|
|
1134
1231
|
}
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1232
|
+
listUsers(body) {
|
|
1233
|
+
return new SeamHttpRequest(this, {
|
|
1234
|
+
path: "/acs/access_groups/list_users",
|
|
1138
1235
|
method: "post",
|
|
1139
|
-
|
|
1236
|
+
body,
|
|
1237
|
+
responseKey: "acs_users"
|
|
1140
1238
|
});
|
|
1141
|
-
return data.acs_users;
|
|
1142
1239
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1240
|
+
removeUser(body) {
|
|
1241
|
+
return new SeamHttpRequest(this, {
|
|
1242
|
+
path: "/acs/access_groups/remove_user",
|
|
1146
1243
|
method: "post",
|
|
1147
|
-
|
|
1244
|
+
body,
|
|
1245
|
+
responseKey: void 0
|
|
1148
1246
|
});
|
|
1149
1247
|
}
|
|
1150
1248
|
};
|
|
@@ -1226,13 +1324,13 @@ var SeamHttpAcsCredentialPools = class _SeamHttpAcsCredentialPools {
|
|
|
1226
1324
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1227
1325
|
await clientSessions.get();
|
|
1228
1326
|
}
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1327
|
+
list(body) {
|
|
1328
|
+
return new SeamHttpRequest(this, {
|
|
1329
|
+
path: "/acs/credential_pools/list",
|
|
1232
1330
|
method: "post",
|
|
1233
|
-
|
|
1331
|
+
body,
|
|
1332
|
+
responseKey: "acs_credential_pools"
|
|
1234
1333
|
});
|
|
1235
|
-
return data.acs_credential_pools;
|
|
1236
1334
|
}
|
|
1237
1335
|
};
|
|
1238
1336
|
|
|
@@ -1316,15 +1414,13 @@ var SeamHttpAcsCredentialProvisioningAutomations = class _SeamHttpAcsCredentialP
|
|
|
1316
1414
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1317
1415
|
await clientSessions.get();
|
|
1318
1416
|
}
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
);
|
|
1327
|
-
return data.acs_credential_provisioning_automation;
|
|
1417
|
+
launch(body) {
|
|
1418
|
+
return new SeamHttpRequest(this, {
|
|
1419
|
+
path: "/acs/credential_provisioning_automations/launch",
|
|
1420
|
+
method: "post",
|
|
1421
|
+
body,
|
|
1422
|
+
responseKey: "acs_credential_provisioning_automation"
|
|
1423
|
+
});
|
|
1328
1424
|
}
|
|
1329
1425
|
};
|
|
1330
1426
|
|
|
@@ -1405,60 +1501,61 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1405
1501
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1406
1502
|
await clientSessions.get();
|
|
1407
1503
|
}
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1504
|
+
assign(body) {
|
|
1505
|
+
return new SeamHttpRequest(this, {
|
|
1506
|
+
path: "/acs/credentials/assign",
|
|
1411
1507
|
method: "post",
|
|
1412
|
-
|
|
1508
|
+
body,
|
|
1509
|
+
responseKey: "acs_credential"
|
|
1413
1510
|
});
|
|
1414
|
-
return data.acs_credential;
|
|
1415
1511
|
}
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1512
|
+
create(body) {
|
|
1513
|
+
return new SeamHttpRequest(this, {
|
|
1514
|
+
path: "/acs/credentials/create",
|
|
1419
1515
|
method: "post",
|
|
1420
|
-
|
|
1516
|
+
body,
|
|
1517
|
+
responseKey: "acs_credential"
|
|
1421
1518
|
});
|
|
1422
|
-
return data.acs_credential;
|
|
1423
1519
|
}
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1520
|
+
delete(body) {
|
|
1521
|
+
return new SeamHttpRequest(this, {
|
|
1522
|
+
path: "/acs/credentials/delete",
|
|
1427
1523
|
method: "post",
|
|
1428
|
-
|
|
1524
|
+
body,
|
|
1525
|
+
responseKey: void 0
|
|
1429
1526
|
});
|
|
1430
1527
|
}
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1528
|
+
get(body) {
|
|
1529
|
+
return new SeamHttpRequest(this, {
|
|
1530
|
+
path: "/acs/credentials/get",
|
|
1434
1531
|
method: "post",
|
|
1435
|
-
|
|
1532
|
+
body,
|
|
1533
|
+
responseKey: "acs_credential"
|
|
1436
1534
|
});
|
|
1437
|
-
return data.acs_credential;
|
|
1438
1535
|
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1536
|
+
list(body) {
|
|
1537
|
+
return new SeamHttpRequest(this, {
|
|
1538
|
+
path: "/acs/credentials/list",
|
|
1442
1539
|
method: "post",
|
|
1443
|
-
|
|
1540
|
+
body,
|
|
1541
|
+
responseKey: "acs_credentials"
|
|
1444
1542
|
});
|
|
1445
|
-
return data.acs_credentials;
|
|
1446
1543
|
}
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1544
|
+
unassign(body) {
|
|
1545
|
+
return new SeamHttpRequest(this, {
|
|
1546
|
+
path: "/acs/credentials/unassign",
|
|
1450
1547
|
method: "post",
|
|
1451
|
-
|
|
1548
|
+
body,
|
|
1549
|
+
responseKey: "acs_credential"
|
|
1452
1550
|
});
|
|
1453
|
-
return data.acs_credential;
|
|
1454
1551
|
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1552
|
+
update(body) {
|
|
1553
|
+
return new SeamHttpRequest(this, {
|
|
1554
|
+
path: "/acs/credentials/update",
|
|
1458
1555
|
method: "post",
|
|
1459
|
-
|
|
1556
|
+
body,
|
|
1557
|
+
responseKey: "acs_credential"
|
|
1460
1558
|
});
|
|
1461
|
-
return data.acs_credential;
|
|
1462
1559
|
}
|
|
1463
1560
|
};
|
|
1464
1561
|
|
|
@@ -1539,36 +1636,37 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
1539
1636
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1540
1637
|
await clientSessions.get();
|
|
1541
1638
|
}
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1639
|
+
get(body) {
|
|
1640
|
+
return new SeamHttpRequest(this, {
|
|
1641
|
+
path: "/acs/entrances/get",
|
|
1545
1642
|
method: "post",
|
|
1546
|
-
|
|
1643
|
+
body,
|
|
1644
|
+
responseKey: "acs_entrance"
|
|
1547
1645
|
});
|
|
1548
|
-
return data.acs_entrance;
|
|
1549
1646
|
}
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1647
|
+
grantAccess(body) {
|
|
1648
|
+
return new SeamHttpRequest(this, {
|
|
1649
|
+
path: "/acs/entrances/grant_access",
|
|
1553
1650
|
method: "post",
|
|
1554
|
-
|
|
1651
|
+
body,
|
|
1652
|
+
responseKey: void 0
|
|
1555
1653
|
});
|
|
1556
1654
|
}
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1655
|
+
list(body) {
|
|
1656
|
+
return new SeamHttpRequest(this, {
|
|
1657
|
+
path: "/acs/entrances/list",
|
|
1560
1658
|
method: "post",
|
|
1561
|
-
|
|
1659
|
+
body,
|
|
1660
|
+
responseKey: "acs_entrances"
|
|
1562
1661
|
});
|
|
1563
|
-
return data.acs_entrances;
|
|
1564
1662
|
}
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1663
|
+
listCredentialsWithAccess(body) {
|
|
1664
|
+
return new SeamHttpRequest(this, {
|
|
1665
|
+
path: "/acs/entrances/list_credentials_with_access",
|
|
1568
1666
|
method: "post",
|
|
1569
|
-
|
|
1667
|
+
body,
|
|
1668
|
+
responseKey: "acs_credentials"
|
|
1570
1669
|
});
|
|
1571
|
-
return data.acs_credentials;
|
|
1572
1670
|
}
|
|
1573
1671
|
};
|
|
1574
1672
|
|
|
@@ -1649,21 +1747,21 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
1649
1747
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1650
1748
|
await clientSessions.get();
|
|
1651
1749
|
}
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1750
|
+
get(body) {
|
|
1751
|
+
return new SeamHttpRequest(this, {
|
|
1752
|
+
path: "/acs/systems/get",
|
|
1655
1753
|
method: "post",
|
|
1656
|
-
|
|
1754
|
+
body,
|
|
1755
|
+
responseKey: "acs_system"
|
|
1657
1756
|
});
|
|
1658
|
-
return data.acs_system;
|
|
1659
1757
|
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1758
|
+
list(body) {
|
|
1759
|
+
return new SeamHttpRequest(this, {
|
|
1760
|
+
path: "/acs/systems/list",
|
|
1663
1761
|
method: "post",
|
|
1664
|
-
|
|
1762
|
+
body,
|
|
1763
|
+
responseKey: "acs_systems"
|
|
1665
1764
|
});
|
|
1666
|
-
return data.acs_systems;
|
|
1667
1765
|
}
|
|
1668
1766
|
};
|
|
1669
1767
|
|
|
@@ -1744,85 +1842,92 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
1744
1842
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1745
1843
|
await clientSessions.get();
|
|
1746
1844
|
}
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1845
|
+
addToAccessGroup(body) {
|
|
1846
|
+
return new SeamHttpRequest(this, {
|
|
1847
|
+
path: "/acs/users/add_to_access_group",
|
|
1750
1848
|
method: "post",
|
|
1751
|
-
|
|
1849
|
+
body,
|
|
1850
|
+
responseKey: void 0
|
|
1752
1851
|
});
|
|
1753
1852
|
}
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1853
|
+
create(body) {
|
|
1854
|
+
return new SeamHttpRequest(this, {
|
|
1855
|
+
path: "/acs/users/create",
|
|
1757
1856
|
method: "post",
|
|
1758
|
-
|
|
1857
|
+
body,
|
|
1858
|
+
responseKey: "acs_user"
|
|
1759
1859
|
});
|
|
1760
|
-
return data.acs_user;
|
|
1761
1860
|
}
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1861
|
+
delete(body) {
|
|
1862
|
+
return new SeamHttpRequest(this, {
|
|
1863
|
+
path: "/acs/users/delete",
|
|
1765
1864
|
method: "post",
|
|
1766
|
-
|
|
1865
|
+
body,
|
|
1866
|
+
responseKey: void 0
|
|
1767
1867
|
});
|
|
1768
1868
|
}
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1869
|
+
get(body) {
|
|
1870
|
+
return new SeamHttpRequest(this, {
|
|
1871
|
+
path: "/acs/users/get",
|
|
1772
1872
|
method: "post",
|
|
1773
|
-
|
|
1873
|
+
body,
|
|
1874
|
+
responseKey: "acs_user"
|
|
1774
1875
|
});
|
|
1775
|
-
return data.acs_user;
|
|
1776
1876
|
}
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1877
|
+
list(body) {
|
|
1878
|
+
return new SeamHttpRequest(this, {
|
|
1879
|
+
path: "/acs/users/list",
|
|
1780
1880
|
method: "post",
|
|
1781
|
-
|
|
1881
|
+
body,
|
|
1882
|
+
responseKey: "acs_users"
|
|
1782
1883
|
});
|
|
1783
|
-
return data.acs_users;
|
|
1784
1884
|
}
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1885
|
+
listAccessibleEntrances(body) {
|
|
1886
|
+
return new SeamHttpRequest(this, {
|
|
1887
|
+
path: "/acs/users/list_accessible_entrances",
|
|
1788
1888
|
method: "post",
|
|
1789
|
-
|
|
1889
|
+
body,
|
|
1890
|
+
responseKey: "acs_entrances"
|
|
1790
1891
|
});
|
|
1791
|
-
return data.acs_entrances;
|
|
1792
1892
|
}
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1893
|
+
removeFromAccessGroup(body) {
|
|
1894
|
+
return new SeamHttpRequest(this, {
|
|
1895
|
+
path: "/acs/users/remove_from_access_group",
|
|
1796
1896
|
method: "post",
|
|
1797
|
-
|
|
1897
|
+
body,
|
|
1898
|
+
responseKey: void 0
|
|
1798
1899
|
});
|
|
1799
1900
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1901
|
+
revokeAccessToAllEntrances(body) {
|
|
1902
|
+
return new SeamHttpRequest(this, {
|
|
1903
|
+
path: "/acs/users/revoke_access_to_all_entrances",
|
|
1803
1904
|
method: "post",
|
|
1804
|
-
|
|
1905
|
+
body,
|
|
1906
|
+
responseKey: void 0
|
|
1805
1907
|
});
|
|
1806
1908
|
}
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1909
|
+
suspend(body) {
|
|
1910
|
+
return new SeamHttpRequest(this, {
|
|
1911
|
+
path: "/acs/users/suspend",
|
|
1810
1912
|
method: "post",
|
|
1811
|
-
|
|
1913
|
+
body,
|
|
1914
|
+
responseKey: void 0
|
|
1812
1915
|
});
|
|
1813
1916
|
}
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1917
|
+
unsuspend(body) {
|
|
1918
|
+
return new SeamHttpRequest(this, {
|
|
1919
|
+
path: "/acs/users/unsuspend",
|
|
1817
1920
|
method: "post",
|
|
1818
|
-
|
|
1921
|
+
body,
|
|
1922
|
+
responseKey: void 0
|
|
1819
1923
|
});
|
|
1820
1924
|
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1925
|
+
update(body) {
|
|
1926
|
+
return new SeamHttpRequest(this, {
|
|
1927
|
+
path: "/acs/users/update",
|
|
1824
1928
|
method: "post",
|
|
1825
|
-
|
|
1929
|
+
body,
|
|
1930
|
+
responseKey: void 0
|
|
1826
1931
|
});
|
|
1827
1932
|
}
|
|
1828
1933
|
};
|
|
@@ -2007,32 +2112,22 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
|
|
|
2007
2112
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2008
2113
|
await clientSessions.get();
|
|
2009
2114
|
}
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2115
|
+
get(body, options = {}) {
|
|
2116
|
+
return new SeamHttpRequest(this, {
|
|
2117
|
+
path: "/action_attempts/get",
|
|
2013
2118
|
method: "post",
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
return await resolveActionAttempt(
|
|
2019
|
-
data.action_attempt,
|
|
2020
|
-
_SeamHttpActionAttempts.fromClient(this.client, {
|
|
2021
|
-
...this.defaults,
|
|
2022
|
-
waitForActionAttempt: false
|
|
2023
|
-
}),
|
|
2024
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
2025
|
-
);
|
|
2026
|
-
}
|
|
2027
|
-
return data.action_attempt;
|
|
2119
|
+
body,
|
|
2120
|
+
responseKey: "action_attempt",
|
|
2121
|
+
options
|
|
2122
|
+
});
|
|
2028
2123
|
}
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2124
|
+
list(body) {
|
|
2125
|
+
return new SeamHttpRequest(this, {
|
|
2126
|
+
path: "/action_attempts/list",
|
|
2032
2127
|
method: "post",
|
|
2033
|
-
|
|
2128
|
+
body,
|
|
2129
|
+
responseKey: "action_attempts"
|
|
2034
2130
|
});
|
|
2035
|
-
return data.action_attempts;
|
|
2036
2131
|
}
|
|
2037
2132
|
};
|
|
2038
2133
|
|
|
@@ -2113,42 +2208,44 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
|
|
|
2113
2208
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2114
2209
|
await clientSessions.get();
|
|
2115
2210
|
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2211
|
+
create(body) {
|
|
2212
|
+
return new SeamHttpRequest(this, {
|
|
2213
|
+
path: "/connect_webviews/create",
|
|
2119
2214
|
method: "post",
|
|
2120
|
-
|
|
2215
|
+
body,
|
|
2216
|
+
responseKey: "connect_webview"
|
|
2121
2217
|
});
|
|
2122
|
-
return data.connect_webview;
|
|
2123
2218
|
}
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2219
|
+
delete(body) {
|
|
2220
|
+
return new SeamHttpRequest(this, {
|
|
2221
|
+
path: "/connect_webviews/delete",
|
|
2127
2222
|
method: "post",
|
|
2128
|
-
|
|
2223
|
+
body,
|
|
2224
|
+
responseKey: void 0
|
|
2129
2225
|
});
|
|
2130
2226
|
}
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2227
|
+
get(body) {
|
|
2228
|
+
return new SeamHttpRequest(this, {
|
|
2229
|
+
path: "/connect_webviews/get",
|
|
2134
2230
|
method: "post",
|
|
2135
|
-
|
|
2231
|
+
body,
|
|
2232
|
+
responseKey: "connect_webview"
|
|
2136
2233
|
});
|
|
2137
|
-
return data.connect_webview;
|
|
2138
2234
|
}
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2235
|
+
list(body) {
|
|
2236
|
+
return new SeamHttpRequest(this, {
|
|
2237
|
+
path: "/connect_webviews/list",
|
|
2142
2238
|
method: "post",
|
|
2143
|
-
|
|
2239
|
+
body,
|
|
2240
|
+
responseKey: "connect_webviews"
|
|
2144
2241
|
});
|
|
2145
|
-
return data.connect_webviews;
|
|
2146
2242
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2243
|
+
view(params) {
|
|
2244
|
+
return new SeamHttpRequest(this, {
|
|
2245
|
+
path: "/connect_webviews/view",
|
|
2150
2246
|
method: "get",
|
|
2151
|
-
params
|
|
2247
|
+
params,
|
|
2248
|
+
responseKey: void 0
|
|
2152
2249
|
});
|
|
2153
2250
|
}
|
|
2154
2251
|
};
|
|
@@ -2230,38 +2327,37 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2230
2327
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2231
2328
|
await clientSessions.get();
|
|
2232
2329
|
}
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2330
|
+
delete(body) {
|
|
2331
|
+
return new SeamHttpRequest(this, {
|
|
2332
|
+
path: "/connected_accounts/delete",
|
|
2236
2333
|
method: "post",
|
|
2237
|
-
|
|
2334
|
+
body,
|
|
2335
|
+
responseKey: void 0
|
|
2238
2336
|
});
|
|
2239
2337
|
}
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2338
|
+
get(body) {
|
|
2339
|
+
return new SeamHttpRequest(this, {
|
|
2340
|
+
path: "/connected_accounts/get",
|
|
2243
2341
|
method: "post",
|
|
2244
|
-
|
|
2342
|
+
body,
|
|
2343
|
+
responseKey: "connected_account"
|
|
2245
2344
|
});
|
|
2246
|
-
return data.connected_account;
|
|
2247
2345
|
}
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2346
|
+
list(body) {
|
|
2347
|
+
return new SeamHttpRequest(this, {
|
|
2348
|
+
path: "/connected_accounts/list",
|
|
2251
2349
|
method: "post",
|
|
2252
|
-
|
|
2350
|
+
body,
|
|
2351
|
+
responseKey: "connected_accounts"
|
|
2253
2352
|
});
|
|
2254
|
-
return data.connected_accounts;
|
|
2255
2353
|
}
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
);
|
|
2264
|
-
return data.connected_account;
|
|
2354
|
+
update(body) {
|
|
2355
|
+
return new SeamHttpRequest(this, {
|
|
2356
|
+
path: "/connected_accounts/update",
|
|
2357
|
+
method: "post",
|
|
2358
|
+
body,
|
|
2359
|
+
responseKey: "connected_account"
|
|
2360
|
+
});
|
|
2265
2361
|
}
|
|
2266
2362
|
};
|
|
2267
2363
|
|
|
@@ -2342,11 +2438,12 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
2342
2438
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2343
2439
|
await clientSessions.get();
|
|
2344
2440
|
}
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2441
|
+
remove(body) {
|
|
2442
|
+
return new SeamHttpRequest(this, {
|
|
2443
|
+
path: "/devices/simulate/remove",
|
|
2348
2444
|
method: "post",
|
|
2349
|
-
|
|
2445
|
+
body,
|
|
2446
|
+
responseKey: void 0
|
|
2350
2447
|
});
|
|
2351
2448
|
}
|
|
2352
2449
|
};
|
|
@@ -2428,27 +2525,28 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
|
|
|
2428
2525
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2429
2526
|
await clientSessions.get();
|
|
2430
2527
|
}
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2528
|
+
get(body) {
|
|
2529
|
+
return new SeamHttpRequest(this, {
|
|
2530
|
+
path: "/devices/unmanaged/get",
|
|
2434
2531
|
method: "post",
|
|
2435
|
-
|
|
2532
|
+
body,
|
|
2533
|
+
responseKey: "device"
|
|
2436
2534
|
});
|
|
2437
|
-
return data.device;
|
|
2438
2535
|
}
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2536
|
+
list(body) {
|
|
2537
|
+
return new SeamHttpRequest(this, {
|
|
2538
|
+
path: "/devices/unmanaged/list",
|
|
2442
2539
|
method: "post",
|
|
2443
|
-
|
|
2540
|
+
body,
|
|
2541
|
+
responseKey: "devices"
|
|
2444
2542
|
});
|
|
2445
|
-
return data.devices;
|
|
2446
2543
|
}
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2544
|
+
update(body) {
|
|
2545
|
+
return new SeamHttpRequest(this, {
|
|
2546
|
+
path: "/devices/unmanaged/update",
|
|
2450
2547
|
method: "post",
|
|
2451
|
-
|
|
2548
|
+
body,
|
|
2549
|
+
responseKey: void 0
|
|
2452
2550
|
});
|
|
2453
2551
|
}
|
|
2454
2552
|
};
|
|
@@ -2536,42 +2634,44 @@ var SeamHttpDevices = class _SeamHttpDevices {
|
|
|
2536
2634
|
get simulate() {
|
|
2537
2635
|
return SeamHttpDevicesSimulate.fromClient(this.client, this.defaults);
|
|
2538
2636
|
}
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2637
|
+
delete(body) {
|
|
2638
|
+
return new SeamHttpRequest(this, {
|
|
2639
|
+
path: "/devices/delete",
|
|
2542
2640
|
method: "post",
|
|
2543
|
-
|
|
2641
|
+
body,
|
|
2642
|
+
responseKey: void 0
|
|
2544
2643
|
});
|
|
2545
2644
|
}
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2645
|
+
get(body) {
|
|
2646
|
+
return new SeamHttpRequest(this, {
|
|
2647
|
+
path: "/devices/get",
|
|
2549
2648
|
method: "post",
|
|
2550
|
-
|
|
2649
|
+
body,
|
|
2650
|
+
responseKey: "device"
|
|
2551
2651
|
});
|
|
2552
|
-
return data.device;
|
|
2553
2652
|
}
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2653
|
+
list(body) {
|
|
2654
|
+
return new SeamHttpRequest(this, {
|
|
2655
|
+
path: "/devices/list",
|
|
2557
2656
|
method: "post",
|
|
2558
|
-
|
|
2657
|
+
body,
|
|
2658
|
+
responseKey: "devices"
|
|
2559
2659
|
});
|
|
2560
|
-
return data.devices;
|
|
2561
2660
|
}
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2661
|
+
listDeviceProviders(body) {
|
|
2662
|
+
return new SeamHttpRequest(this, {
|
|
2663
|
+
path: "/devices/list_device_providers",
|
|
2565
2664
|
method: "post",
|
|
2566
|
-
|
|
2665
|
+
body,
|
|
2666
|
+
responseKey: "device_providers"
|
|
2567
2667
|
});
|
|
2568
|
-
return data.device_providers;
|
|
2569
2668
|
}
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2669
|
+
update(body) {
|
|
2670
|
+
return new SeamHttpRequest(this, {
|
|
2671
|
+
path: "/devices/update",
|
|
2573
2672
|
method: "post",
|
|
2574
|
-
|
|
2673
|
+
body,
|
|
2674
|
+
responseKey: void 0
|
|
2575
2675
|
});
|
|
2576
2676
|
}
|
|
2577
2677
|
};
|
|
@@ -2653,21 +2753,21 @@ var SeamHttpEvents = class _SeamHttpEvents {
|
|
|
2653
2753
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2654
2754
|
await clientSessions.get();
|
|
2655
2755
|
}
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2756
|
+
get(body) {
|
|
2757
|
+
return new SeamHttpRequest(this, {
|
|
2758
|
+
path: "/events/get",
|
|
2659
2759
|
method: "post",
|
|
2660
|
-
|
|
2760
|
+
body,
|
|
2761
|
+
responseKey: "event"
|
|
2661
2762
|
});
|
|
2662
|
-
return data.event;
|
|
2663
2763
|
}
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2764
|
+
list(body) {
|
|
2765
|
+
return new SeamHttpRequest(this, {
|
|
2766
|
+
path: "/events/list",
|
|
2667
2767
|
method: "post",
|
|
2668
|
-
|
|
2768
|
+
body,
|
|
2769
|
+
responseKey: "events"
|
|
2669
2770
|
});
|
|
2670
|
-
return data.events;
|
|
2671
2771
|
}
|
|
2672
2772
|
};
|
|
2673
2773
|
|
|
@@ -2748,59 +2848,39 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
2748
2848
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2749
2849
|
await clientSessions.get();
|
|
2750
2850
|
}
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2851
|
+
get(body) {
|
|
2852
|
+
return new SeamHttpRequest(this, {
|
|
2853
|
+
path: "/locks/get",
|
|
2754
2854
|
method: "post",
|
|
2755
|
-
|
|
2855
|
+
body,
|
|
2856
|
+
responseKey: "device"
|
|
2756
2857
|
});
|
|
2757
|
-
return data.device;
|
|
2758
2858
|
}
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2859
|
+
list(body) {
|
|
2860
|
+
return new SeamHttpRequest(this, {
|
|
2861
|
+
path: "/locks/list",
|
|
2762
2862
|
method: "post",
|
|
2763
|
-
|
|
2863
|
+
body,
|
|
2864
|
+
responseKey: "devices"
|
|
2764
2865
|
});
|
|
2765
|
-
return data.devices;
|
|
2766
2866
|
}
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2867
|
+
lockDoor(body, options = {}) {
|
|
2868
|
+
return new SeamHttpRequest(this, {
|
|
2869
|
+
path: "/locks/lock_door",
|
|
2770
2870
|
method: "post",
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
return await resolveActionAttempt(
|
|
2776
|
-
data.action_attempt,
|
|
2777
|
-
SeamHttpActionAttempts.fromClient(this.client, {
|
|
2778
|
-
...this.defaults,
|
|
2779
|
-
waitForActionAttempt: false
|
|
2780
|
-
}),
|
|
2781
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
2782
|
-
);
|
|
2783
|
-
}
|
|
2784
|
-
return data.action_attempt;
|
|
2871
|
+
body,
|
|
2872
|
+
responseKey: "action_attempt",
|
|
2873
|
+
options
|
|
2874
|
+
});
|
|
2785
2875
|
}
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2876
|
+
unlockDoor(body, options = {}) {
|
|
2877
|
+
return new SeamHttpRequest(this, {
|
|
2878
|
+
path: "/locks/unlock_door",
|
|
2789
2879
|
method: "post",
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
return await resolveActionAttempt(
|
|
2795
|
-
data.action_attempt,
|
|
2796
|
-
SeamHttpActionAttempts.fromClient(this.client, {
|
|
2797
|
-
...this.defaults,
|
|
2798
|
-
waitForActionAttempt: false
|
|
2799
|
-
}),
|
|
2800
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
2801
|
-
);
|
|
2802
|
-
}
|
|
2803
|
-
return data.action_attempt;
|
|
2880
|
+
body,
|
|
2881
|
+
responseKey: "action_attempt",
|
|
2882
|
+
options
|
|
2883
|
+
});
|
|
2804
2884
|
}
|
|
2805
2885
|
};
|
|
2806
2886
|
|
|
@@ -2881,21 +2961,21 @@ var SeamHttpNetworks = class _SeamHttpNetworks {
|
|
|
2881
2961
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2882
2962
|
await clientSessions.get();
|
|
2883
2963
|
}
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2964
|
+
get(body) {
|
|
2965
|
+
return new SeamHttpRequest(this, {
|
|
2966
|
+
path: "/networks/get",
|
|
2887
2967
|
method: "post",
|
|
2888
|
-
|
|
2968
|
+
body,
|
|
2969
|
+
responseKey: "network"
|
|
2889
2970
|
});
|
|
2890
|
-
return data.network;
|
|
2891
2971
|
}
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2972
|
+
list(body) {
|
|
2973
|
+
return new SeamHttpRequest(this, {
|
|
2974
|
+
path: "/networks/list",
|
|
2895
2975
|
method: "post",
|
|
2896
|
-
|
|
2976
|
+
body,
|
|
2977
|
+
responseKey: "networks"
|
|
2897
2978
|
});
|
|
2898
|
-
return data.networks;
|
|
2899
2979
|
}
|
|
2900
2980
|
};
|
|
2901
2981
|
|
|
@@ -2979,42 +3059,44 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
|
|
|
2979
3059
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2980
3060
|
await clientSessions.get();
|
|
2981
3061
|
}
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
3062
|
+
create(body) {
|
|
3063
|
+
return new SeamHttpRequest(this, {
|
|
3064
|
+
path: "/noise_sensors/noise_thresholds/create",
|
|
2985
3065
|
method: "post",
|
|
2986
|
-
|
|
3066
|
+
body,
|
|
3067
|
+
responseKey: "noise_threshold"
|
|
2987
3068
|
});
|
|
2988
|
-
return data.noise_threshold;
|
|
2989
3069
|
}
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
3070
|
+
delete(body) {
|
|
3071
|
+
return new SeamHttpRequest(this, {
|
|
3072
|
+
path: "/noise_sensors/noise_thresholds/delete",
|
|
2993
3073
|
method: "post",
|
|
2994
|
-
|
|
3074
|
+
body,
|
|
3075
|
+
responseKey: void 0
|
|
2995
3076
|
});
|
|
2996
3077
|
}
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3078
|
+
get(body) {
|
|
3079
|
+
return new SeamHttpRequest(this, {
|
|
3080
|
+
path: "/noise_sensors/noise_thresholds/get",
|
|
3000
3081
|
method: "post",
|
|
3001
|
-
|
|
3082
|
+
body,
|
|
3083
|
+
responseKey: "noise_threshold"
|
|
3002
3084
|
});
|
|
3003
|
-
return data.noise_threshold;
|
|
3004
3085
|
}
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3086
|
+
list(body) {
|
|
3087
|
+
return new SeamHttpRequest(this, {
|
|
3088
|
+
path: "/noise_sensors/noise_thresholds/list",
|
|
3008
3089
|
method: "post",
|
|
3009
|
-
|
|
3090
|
+
body,
|
|
3091
|
+
responseKey: "noise_thresholds"
|
|
3010
3092
|
});
|
|
3011
|
-
return data.noise_thresholds;
|
|
3012
3093
|
}
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3094
|
+
update(body) {
|
|
3095
|
+
return new SeamHttpRequest(this, {
|
|
3096
|
+
path: "/noise_sensors/noise_thresholds/update",
|
|
3016
3097
|
method: "post",
|
|
3017
|
-
|
|
3098
|
+
body,
|
|
3099
|
+
responseKey: void 0
|
|
3018
3100
|
});
|
|
3019
3101
|
}
|
|
3020
3102
|
};
|
|
@@ -3181,13 +3263,13 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
|
3181
3263
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3182
3264
|
await clientSessions.get();
|
|
3183
3265
|
}
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3266
|
+
createSandboxPhone(body) {
|
|
3267
|
+
return new SeamHttpRequest(this, {
|
|
3268
|
+
path: "/phones/simulate/create_sandbox_phone",
|
|
3187
3269
|
method: "post",
|
|
3188
|
-
|
|
3270
|
+
body,
|
|
3271
|
+
responseKey: "phone"
|
|
3189
3272
|
});
|
|
3190
|
-
return data.phone;
|
|
3191
3273
|
}
|
|
3192
3274
|
};
|
|
3193
3275
|
|
|
@@ -3271,20 +3353,21 @@ var SeamHttpPhones = class _SeamHttpPhones {
|
|
|
3271
3353
|
get simulate() {
|
|
3272
3354
|
return SeamHttpPhonesSimulate.fromClient(this.client, this.defaults);
|
|
3273
3355
|
}
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3356
|
+
deactivate(body) {
|
|
3357
|
+
return new SeamHttpRequest(this, {
|
|
3358
|
+
path: "/phones/deactivate",
|
|
3277
3359
|
method: "post",
|
|
3278
|
-
|
|
3360
|
+
body,
|
|
3361
|
+
responseKey: void 0
|
|
3279
3362
|
});
|
|
3280
3363
|
}
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3364
|
+
list(body) {
|
|
3365
|
+
return new SeamHttpRequest(this, {
|
|
3366
|
+
path: "/phones/list",
|
|
3284
3367
|
method: "post",
|
|
3285
|
-
|
|
3368
|
+
body,
|
|
3369
|
+
responseKey: "phones"
|
|
3286
3370
|
});
|
|
3287
|
-
return data.phones;
|
|
3288
3371
|
}
|
|
3289
3372
|
};
|
|
3290
3373
|
|
|
@@ -3368,51 +3451,45 @@ var SeamHttpThermostatsClimateSettingSchedules = class _SeamHttpThermostatsClima
|
|
|
3368
3451
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3369
3452
|
await clientSessions.get();
|
|
3370
3453
|
}
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
);
|
|
3379
|
-
return data.climate_setting_schedule;
|
|
3380
|
-
}
|
|
3381
|
-
async delete(body) {
|
|
3382
|
-
await this.client.request(
|
|
3383
|
-
{
|
|
3384
|
-
url: "/thermostats/climate_setting_schedules/delete",
|
|
3385
|
-
method: "post",
|
|
3386
|
-
data: body
|
|
3387
|
-
}
|
|
3388
|
-
);
|
|
3454
|
+
create(body) {
|
|
3455
|
+
return new SeamHttpRequest(this, {
|
|
3456
|
+
path: "/thermostats/climate_setting_schedules/create",
|
|
3457
|
+
method: "post",
|
|
3458
|
+
body,
|
|
3459
|
+
responseKey: "climate_setting_schedule"
|
|
3460
|
+
});
|
|
3389
3461
|
}
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3462
|
+
delete(body) {
|
|
3463
|
+
return new SeamHttpRequest(this, {
|
|
3464
|
+
path: "/thermostats/climate_setting_schedules/delete",
|
|
3393
3465
|
method: "post",
|
|
3394
|
-
|
|
3466
|
+
body,
|
|
3467
|
+
responseKey: void 0
|
|
3395
3468
|
});
|
|
3396
|
-
return data.climate_setting_schedule;
|
|
3397
3469
|
}
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3470
|
+
get(body) {
|
|
3471
|
+
return new SeamHttpRequest(this, {
|
|
3472
|
+
path: "/thermostats/climate_setting_schedules/get",
|
|
3473
|
+
method: "post",
|
|
3474
|
+
body,
|
|
3475
|
+
responseKey: "climate_setting_schedule"
|
|
3476
|
+
});
|
|
3477
|
+
}
|
|
3478
|
+
list(body) {
|
|
3479
|
+
return new SeamHttpRequest(this, {
|
|
3480
|
+
path: "/thermostats/climate_setting_schedules/list",
|
|
3481
|
+
method: "post",
|
|
3482
|
+
body,
|
|
3483
|
+
responseKey: "climate_setting_schedules"
|
|
3484
|
+
});
|
|
3485
|
+
}
|
|
3486
|
+
update(body) {
|
|
3487
|
+
return new SeamHttpRequest(this, {
|
|
3488
|
+
path: "/thermostats/climate_setting_schedules/update",
|
|
3489
|
+
method: "post",
|
|
3490
|
+
body,
|
|
3491
|
+
responseKey: void 0
|
|
3492
|
+
});
|
|
3416
3493
|
}
|
|
3417
3494
|
};
|
|
3418
3495
|
|
|
@@ -3499,122 +3576,73 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
3499
3576
|
this.defaults
|
|
3500
3577
|
);
|
|
3501
3578
|
}
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3579
|
+
cool(body, options = {}) {
|
|
3580
|
+
return new SeamHttpRequest(this, {
|
|
3581
|
+
path: "/thermostats/cool",
|
|
3505
3582
|
method: "post",
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
return await resolveActionAttempt(
|
|
3511
|
-
data.action_attempt,
|
|
3512
|
-
SeamHttpActionAttempts.fromClient(this.client, {
|
|
3513
|
-
...this.defaults,
|
|
3514
|
-
waitForActionAttempt: false
|
|
3515
|
-
}),
|
|
3516
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
3517
|
-
);
|
|
3518
|
-
}
|
|
3519
|
-
return data.action_attempt;
|
|
3583
|
+
body,
|
|
3584
|
+
responseKey: "action_attempt",
|
|
3585
|
+
options
|
|
3586
|
+
});
|
|
3520
3587
|
}
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3588
|
+
get(body) {
|
|
3589
|
+
return new SeamHttpRequest(this, {
|
|
3590
|
+
path: "/thermostats/get",
|
|
3524
3591
|
method: "post",
|
|
3525
|
-
|
|
3592
|
+
body,
|
|
3593
|
+
responseKey: "thermostat"
|
|
3526
3594
|
});
|
|
3527
|
-
return data.thermostat;
|
|
3528
3595
|
}
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3596
|
+
heat(body, options = {}) {
|
|
3597
|
+
return new SeamHttpRequest(this, {
|
|
3598
|
+
path: "/thermostats/heat",
|
|
3532
3599
|
method: "post",
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
return await resolveActionAttempt(
|
|
3538
|
-
data.action_attempt,
|
|
3539
|
-
SeamHttpActionAttempts.fromClient(this.client, {
|
|
3540
|
-
...this.defaults,
|
|
3541
|
-
waitForActionAttempt: false
|
|
3542
|
-
}),
|
|
3543
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
3544
|
-
);
|
|
3545
|
-
}
|
|
3546
|
-
return data.action_attempt;
|
|
3600
|
+
body,
|
|
3601
|
+
responseKey: "action_attempt",
|
|
3602
|
+
options
|
|
3603
|
+
});
|
|
3547
3604
|
}
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3605
|
+
heatCool(body, options = {}) {
|
|
3606
|
+
return new SeamHttpRequest(this, {
|
|
3607
|
+
path: "/thermostats/heat_cool",
|
|
3551
3608
|
method: "post",
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
return await resolveActionAttempt(
|
|
3557
|
-
data.action_attempt,
|
|
3558
|
-
SeamHttpActionAttempts.fromClient(this.client, {
|
|
3559
|
-
...this.defaults,
|
|
3560
|
-
waitForActionAttempt: false
|
|
3561
|
-
}),
|
|
3562
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
3563
|
-
);
|
|
3564
|
-
}
|
|
3565
|
-
return data.action_attempt;
|
|
3609
|
+
body,
|
|
3610
|
+
responseKey: "action_attempt",
|
|
3611
|
+
options
|
|
3612
|
+
});
|
|
3566
3613
|
}
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3614
|
+
list(body) {
|
|
3615
|
+
return new SeamHttpRequest(this, {
|
|
3616
|
+
path: "/thermostats/list",
|
|
3570
3617
|
method: "post",
|
|
3571
|
-
|
|
3618
|
+
body,
|
|
3619
|
+
responseKey: "thermostats"
|
|
3572
3620
|
});
|
|
3573
|
-
return data.thermostats;
|
|
3574
3621
|
}
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3622
|
+
off(body, options = {}) {
|
|
3623
|
+
return new SeamHttpRequest(this, {
|
|
3624
|
+
path: "/thermostats/off",
|
|
3578
3625
|
method: "post",
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
return await resolveActionAttempt(
|
|
3584
|
-
data.action_attempt,
|
|
3585
|
-
SeamHttpActionAttempts.fromClient(this.client, {
|
|
3586
|
-
...this.defaults,
|
|
3587
|
-
waitForActionAttempt: false
|
|
3588
|
-
}),
|
|
3589
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
3590
|
-
);
|
|
3591
|
-
}
|
|
3592
|
-
return data.action_attempt;
|
|
3626
|
+
body,
|
|
3627
|
+
responseKey: "action_attempt",
|
|
3628
|
+
options
|
|
3629
|
+
});
|
|
3593
3630
|
}
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3631
|
+
setFanMode(body, options = {}) {
|
|
3632
|
+
return new SeamHttpRequest(this, {
|
|
3633
|
+
path: "/thermostats/set_fan_mode",
|
|
3597
3634
|
method: "post",
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
return await resolveActionAttempt(
|
|
3603
|
-
data.action_attempt,
|
|
3604
|
-
SeamHttpActionAttempts.fromClient(this.client, {
|
|
3605
|
-
...this.defaults,
|
|
3606
|
-
waitForActionAttempt: false
|
|
3607
|
-
}),
|
|
3608
|
-
typeof waitForActionAttempt === "boolean" ? {} : waitForActionAttempt
|
|
3609
|
-
);
|
|
3610
|
-
}
|
|
3611
|
-
return data.action_attempt;
|
|
3635
|
+
body,
|
|
3636
|
+
responseKey: "action_attempt",
|
|
3637
|
+
options
|
|
3638
|
+
});
|
|
3612
3639
|
}
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3640
|
+
update(body) {
|
|
3641
|
+
return new SeamHttpRequest(this, {
|
|
3642
|
+
path: "/thermostats/update",
|
|
3616
3643
|
method: "post",
|
|
3617
|
-
|
|
3644
|
+
body,
|
|
3645
|
+
responseKey: void 0
|
|
3618
3646
|
});
|
|
3619
3647
|
}
|
|
3620
3648
|
};
|
|
@@ -3699,44 +3727,37 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
|
|
|
3699
3727
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3700
3728
|
await clientSessions.get();
|
|
3701
3729
|
}
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
);
|
|
3730
|
+
delete(body) {
|
|
3731
|
+
return new SeamHttpRequest(this, {
|
|
3732
|
+
path: "/user_identities/enrollment_automations/delete",
|
|
3733
|
+
method: "post",
|
|
3734
|
+
body,
|
|
3735
|
+
responseKey: void 0
|
|
3736
|
+
});
|
|
3710
3737
|
}
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
url: "/user_identities/enrollment_automations/list",
|
|
3735
|
-
method: "post",
|
|
3736
|
-
data: body
|
|
3737
|
-
}
|
|
3738
|
-
);
|
|
3739
|
-
return data.enrollment_automations;
|
|
3738
|
+
get(body) {
|
|
3739
|
+
return new SeamHttpRequest(this, {
|
|
3740
|
+
path: "/user_identities/enrollment_automations/get",
|
|
3741
|
+
method: "post",
|
|
3742
|
+
body,
|
|
3743
|
+
responseKey: "enrollment_automation"
|
|
3744
|
+
});
|
|
3745
|
+
}
|
|
3746
|
+
launch(body) {
|
|
3747
|
+
return new SeamHttpRequest(this, {
|
|
3748
|
+
path: "/user_identities/enrollment_automations/launch",
|
|
3749
|
+
method: "post",
|
|
3750
|
+
body,
|
|
3751
|
+
responseKey: "enrollment_automation"
|
|
3752
|
+
});
|
|
3753
|
+
}
|
|
3754
|
+
list(body) {
|
|
3755
|
+
return new SeamHttpRequest(this, {
|
|
3756
|
+
path: "/user_identities/enrollment_automations/list",
|
|
3757
|
+
method: "post",
|
|
3758
|
+
body,
|
|
3759
|
+
responseKey: "enrollment_automations"
|
|
3760
|
+
});
|
|
3740
3761
|
}
|
|
3741
3762
|
};
|
|
3742
3763
|
|
|
@@ -3823,94 +3844,100 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
3823
3844
|
this.defaults
|
|
3824
3845
|
);
|
|
3825
3846
|
}
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3847
|
+
addAcsUser(body) {
|
|
3848
|
+
return new SeamHttpRequest(this, {
|
|
3849
|
+
path: "/user_identities/add_acs_user",
|
|
3829
3850
|
method: "post",
|
|
3830
|
-
|
|
3851
|
+
body,
|
|
3852
|
+
responseKey: void 0
|
|
3831
3853
|
});
|
|
3832
3854
|
}
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3855
|
+
create(body) {
|
|
3856
|
+
return new SeamHttpRequest(this, {
|
|
3857
|
+
path: "/user_identities/create",
|
|
3836
3858
|
method: "post",
|
|
3837
|
-
|
|
3859
|
+
body,
|
|
3860
|
+
responseKey: "user_identity"
|
|
3838
3861
|
});
|
|
3839
|
-
return data.user_identity;
|
|
3840
3862
|
}
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3863
|
+
delete(body) {
|
|
3864
|
+
return new SeamHttpRequest(this, {
|
|
3865
|
+
path: "/user_identities/delete",
|
|
3844
3866
|
method: "post",
|
|
3845
|
-
|
|
3867
|
+
body,
|
|
3868
|
+
responseKey: void 0
|
|
3846
3869
|
});
|
|
3847
3870
|
}
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3871
|
+
get(body) {
|
|
3872
|
+
return new SeamHttpRequest(this, {
|
|
3873
|
+
path: "/user_identities/get",
|
|
3851
3874
|
method: "post",
|
|
3852
|
-
|
|
3875
|
+
body,
|
|
3876
|
+
responseKey: "user_identity"
|
|
3853
3877
|
});
|
|
3854
|
-
return data.user_identity;
|
|
3855
3878
|
}
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3879
|
+
grantAccessToDevice(body) {
|
|
3880
|
+
return new SeamHttpRequest(this, {
|
|
3881
|
+
path: "/user_identities/grant_access_to_device",
|
|
3859
3882
|
method: "post",
|
|
3860
|
-
|
|
3883
|
+
body,
|
|
3884
|
+
responseKey: void 0
|
|
3861
3885
|
});
|
|
3862
3886
|
}
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3887
|
+
list(body) {
|
|
3888
|
+
return new SeamHttpRequest(this, {
|
|
3889
|
+
path: "/user_identities/list",
|
|
3866
3890
|
method: "post",
|
|
3867
|
-
|
|
3891
|
+
body,
|
|
3892
|
+
responseKey: "user_identities"
|
|
3868
3893
|
});
|
|
3869
|
-
return data.user_identities;
|
|
3870
3894
|
}
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3895
|
+
listAccessibleDevices(body) {
|
|
3896
|
+
return new SeamHttpRequest(this, {
|
|
3897
|
+
path: "/user_identities/list_accessible_devices",
|
|
3874
3898
|
method: "post",
|
|
3875
|
-
|
|
3899
|
+
body,
|
|
3900
|
+
responseKey: "accessible_devices"
|
|
3876
3901
|
});
|
|
3877
|
-
return data.accessible_devices;
|
|
3878
3902
|
}
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3903
|
+
listAcsSystems(body) {
|
|
3904
|
+
return new SeamHttpRequest(this, {
|
|
3905
|
+
path: "/user_identities/list_acs_systems",
|
|
3882
3906
|
method: "post",
|
|
3883
|
-
|
|
3907
|
+
body,
|
|
3908
|
+
responseKey: "acs_systems"
|
|
3884
3909
|
});
|
|
3885
|
-
return data.acs_systems;
|
|
3886
3910
|
}
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3911
|
+
listAcsUsers(body) {
|
|
3912
|
+
return new SeamHttpRequest(this, {
|
|
3913
|
+
path: "/user_identities/list_acs_users",
|
|
3890
3914
|
method: "post",
|
|
3891
|
-
|
|
3915
|
+
body,
|
|
3916
|
+
responseKey: "acs_users"
|
|
3892
3917
|
});
|
|
3893
|
-
return data.acs_users;
|
|
3894
3918
|
}
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3919
|
+
removeAcsUser(body) {
|
|
3920
|
+
return new SeamHttpRequest(this, {
|
|
3921
|
+
path: "/user_identities/remove_acs_user",
|
|
3898
3922
|
method: "post",
|
|
3899
|
-
|
|
3923
|
+
body,
|
|
3924
|
+
responseKey: void 0
|
|
3900
3925
|
});
|
|
3901
3926
|
}
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3927
|
+
revokeAccessToDevice(body) {
|
|
3928
|
+
return new SeamHttpRequest(this, {
|
|
3929
|
+
path: "/user_identities/revoke_access_to_device",
|
|
3905
3930
|
method: "post",
|
|
3906
|
-
|
|
3931
|
+
body,
|
|
3932
|
+
responseKey: void 0
|
|
3907
3933
|
});
|
|
3908
3934
|
}
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3935
|
+
update(body) {
|
|
3936
|
+
return new SeamHttpRequest(this, {
|
|
3937
|
+
path: "/user_identities/update",
|
|
3912
3938
|
method: "post",
|
|
3913
|
-
|
|
3939
|
+
body,
|
|
3940
|
+
responseKey: void 0
|
|
3914
3941
|
});
|
|
3915
3942
|
}
|
|
3916
3943
|
};
|
|
@@ -3992,42 +4019,44 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
|
3992
4019
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3993
4020
|
await clientSessions.get();
|
|
3994
4021
|
}
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
4022
|
+
create(body) {
|
|
4023
|
+
return new SeamHttpRequest(this, {
|
|
4024
|
+
path: "/webhooks/create",
|
|
3998
4025
|
method: "post",
|
|
3999
|
-
|
|
4026
|
+
body,
|
|
4027
|
+
responseKey: "webhook"
|
|
4000
4028
|
});
|
|
4001
|
-
return data.webhook;
|
|
4002
4029
|
}
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4030
|
+
delete(body) {
|
|
4031
|
+
return new SeamHttpRequest(this, {
|
|
4032
|
+
path: "/webhooks/delete",
|
|
4006
4033
|
method: "post",
|
|
4007
|
-
|
|
4034
|
+
body,
|
|
4035
|
+
responseKey: void 0
|
|
4008
4036
|
});
|
|
4009
4037
|
}
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4038
|
+
get(body) {
|
|
4039
|
+
return new SeamHttpRequest(this, {
|
|
4040
|
+
path: "/webhooks/get",
|
|
4013
4041
|
method: "post",
|
|
4014
|
-
|
|
4042
|
+
body,
|
|
4043
|
+
responseKey: "webhook"
|
|
4015
4044
|
});
|
|
4016
|
-
return data.webhook;
|
|
4017
4045
|
}
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4046
|
+
list(body) {
|
|
4047
|
+
return new SeamHttpRequest(this, {
|
|
4048
|
+
path: "/webhooks/list",
|
|
4021
4049
|
method: "post",
|
|
4022
|
-
|
|
4050
|
+
body,
|
|
4051
|
+
responseKey: "webhooks"
|
|
4023
4052
|
});
|
|
4024
|
-
return data.webhooks;
|
|
4025
4053
|
}
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4054
|
+
update(body) {
|
|
4055
|
+
return new SeamHttpRequest(this, {
|
|
4056
|
+
path: "/webhooks/update",
|
|
4029
4057
|
method: "post",
|
|
4030
|
-
|
|
4058
|
+
body,
|
|
4059
|
+
responseKey: void 0
|
|
4031
4060
|
});
|
|
4032
4061
|
}
|
|
4033
4062
|
};
|
|
@@ -4109,35 +4138,36 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
4109
4138
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4110
4139
|
await clientSessions.get();
|
|
4111
4140
|
}
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4141
|
+
create(body) {
|
|
4142
|
+
return new SeamHttpRequest(this, {
|
|
4143
|
+
path: "/workspaces/create",
|
|
4115
4144
|
method: "post",
|
|
4116
|
-
|
|
4145
|
+
body,
|
|
4146
|
+
responseKey: "workspace"
|
|
4117
4147
|
});
|
|
4118
|
-
return data.workspace;
|
|
4119
4148
|
}
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4149
|
+
get(body) {
|
|
4150
|
+
return new SeamHttpRequest(this, {
|
|
4151
|
+
path: "/workspaces/get",
|
|
4123
4152
|
method: "post",
|
|
4124
|
-
|
|
4153
|
+
body,
|
|
4154
|
+
responseKey: "workspace"
|
|
4125
4155
|
});
|
|
4126
|
-
return data.workspace;
|
|
4127
4156
|
}
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4157
|
+
list(body) {
|
|
4158
|
+
return new SeamHttpRequest(this, {
|
|
4159
|
+
path: "/workspaces/list",
|
|
4131
4160
|
method: "post",
|
|
4132
|
-
|
|
4161
|
+
body,
|
|
4162
|
+
responseKey: "workspaces"
|
|
4133
4163
|
});
|
|
4134
|
-
return data.workspaces;
|
|
4135
4164
|
}
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4165
|
+
resetSandbox(body) {
|
|
4166
|
+
return new SeamHttpRequest(this, {
|
|
4167
|
+
path: "/workspaces/reset_sandbox",
|
|
4139
4168
|
method: "post",
|
|
4140
|
-
|
|
4169
|
+
body,
|
|
4170
|
+
responseKey: void 0
|
|
4141
4171
|
});
|
|
4142
4172
|
}
|
|
4143
4173
|
};
|