@seamapi/http 1.95.0 → 1.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +17 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +16 -2
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.js +1 -1
- package/lib/seam/connect/resolve-action-attempt.js.map +1 -1
- package/lib/seam/connect/routes/devices/devices.d.ts +13 -0
- package/lib/seam/connect/routes/devices/devices.js +9 -0
- package/lib/seam/connect/routes/devices/devices.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +3 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +7 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/resolve-action-attempt.ts +1 -1
- package/src/lib/seam/connect/routes/devices/devices.ts +36 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +17 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -586,7 +586,7 @@ var getOpenapiSchema = async (endpoint = defaultEndpoint) => {
|
|
|
586
586
|
};
|
|
587
587
|
|
|
588
588
|
// src/lib/seam/connect/resolve-action-attempt.ts
|
|
589
|
-
var resolveActionAttempt = async (actionAttempt, actionAttempts, { timeout =
|
|
589
|
+
var resolveActionAttempt = async (actionAttempt, actionAttempts, { timeout = 1e4, pollingInterval = 1e3 }) => {
|
|
590
590
|
let timeoutRef;
|
|
591
591
|
const timeoutPromise = new Promise(
|
|
592
592
|
(_resolve, reject) => {
|
|
@@ -4664,6 +4664,15 @@ var SeamHttpDevices = class _SeamHttpDevices {
|
|
|
4664
4664
|
options
|
|
4665
4665
|
});
|
|
4666
4666
|
}
|
|
4667
|
+
reportProviderMetadata(parameters, options = {}) {
|
|
4668
|
+
return new SeamHttpRequest(this, {
|
|
4669
|
+
pathname: "/devices/report_provider_metadata",
|
|
4670
|
+
method: "POST",
|
|
4671
|
+
body: parameters,
|
|
4672
|
+
responseKey: void 0,
|
|
4673
|
+
options
|
|
4674
|
+
});
|
|
4675
|
+
}
|
|
4667
4676
|
update(parameters, options = {}) {
|
|
4668
4677
|
return new SeamHttpRequest(this, {
|
|
4669
4678
|
pathname: "/devices/update",
|
|
@@ -10587,6 +10596,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10587
10596
|
return seam.listDeviceProviders(...args);
|
|
10588
10597
|
};
|
|
10589
10598
|
}
|
|
10599
|
+
get "/devices/report_provider_metadata"() {
|
|
10600
|
+
const { client, defaults } = this;
|
|
10601
|
+
return function devicesReportProviderMetadata(...args) {
|
|
10602
|
+
const seam = SeamHttpDevices.fromClient(client, defaults);
|
|
10603
|
+
return seam.reportProviderMetadata(...args);
|
|
10604
|
+
};
|
|
10605
|
+
}
|
|
10590
10606
|
get "/devices/update"() {
|
|
10591
10607
|
const { client, defaults } = this;
|
|
10592
10608
|
return function devicesUpdate(...args) {
|