@seamapi/types 1.253.1 → 1.255.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 +268 -69
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1324 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +93 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-card.d.ts +96 -0
- package/lib/seam/connect/models/action-attempts/encode-card.js +36 -0
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
- package/lib/seam/connect/models/events/devices.d.ts +91 -1
- package/lib/seam/connect/models/events/devices.js +5 -2
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +86 -0
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +29 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js +8 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +116 -0
- package/lib/seam/connect/openapi.js +167 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1056 -29
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +46 -0
- package/src/lib/seam/connect/models/events/devices.ts +5 -2
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +11 -0
- package/src/lib/seam/connect/openapi.ts +169 -0
- package/src/lib/seam/connect/route-types.ts +1157 -13
package/dist/connect.cjs
CHANGED
|
@@ -155,6 +155,14 @@ var climate_preset = zod.z.object({
|
|
|
155
155
|
manual_override_allowed: zod.z.boolean()
|
|
156
156
|
});
|
|
157
157
|
var climate_setting = climate_preset.partial();
|
|
158
|
+
climate_setting.pick({
|
|
159
|
+
fan_mode_setting: true,
|
|
160
|
+
hvac_mode_setting: true,
|
|
161
|
+
cooling_set_point_celsius: true,
|
|
162
|
+
heating_set_point_celsius: true,
|
|
163
|
+
cooling_set_point_fahrenheit: true,
|
|
164
|
+
heating_set_point_fahrenheit: true
|
|
165
|
+
});
|
|
158
166
|
var thermostat_schedule = zod.z.object({
|
|
159
167
|
thermostat_schedule_id: zod.z.string().uuid(),
|
|
160
168
|
device_id: zod.z.string().uuid(),
|
|
@@ -1644,163 +1652,184 @@ var deprecated_action_attempts = [
|
|
|
1644
1652
|
...delete_noise_threshold_action_attempt.options,
|
|
1645
1653
|
...update_noise_threshold_action_attempt.options
|
|
1646
1654
|
];
|
|
1647
|
-
var action_type2 = zod.z.literal("
|
|
1655
|
+
var action_type2 = zod.z.literal("ENCODE_CARD");
|
|
1648
1656
|
var error3 = zod.z.object({
|
|
1649
1657
|
type: zod.z.string(),
|
|
1658
|
+
// TODO This should be typed properly with the possible errors
|
|
1650
1659
|
message: zod.z.string()
|
|
1651
1660
|
});
|
|
1652
|
-
var result3 = zod.z.object({
|
|
1653
|
-
|
|
1661
|
+
var result3 = zod.z.object({
|
|
1662
|
+
acs_credential_id: zod.z.string().uuid().nullable().describe("Matching acs_credential currently encoded on this card."),
|
|
1663
|
+
card_number: zod.z.string().nullable().describe("A number or sting that physically identifies this card.")
|
|
1664
|
+
// TODO visionline_metadata: visionline_credential_metadata,
|
|
1665
|
+
});
|
|
1666
|
+
var encode_card_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1654
1667
|
common_pending_action_attempt.extend({
|
|
1655
1668
|
action_type: action_type2
|
|
1656
|
-
}).describe("
|
|
1669
|
+
}).describe("Encoding card data from physical encoder."),
|
|
1657
1670
|
common_succeeded_action_attempt.extend({
|
|
1658
1671
|
action_type: action_type2,
|
|
1659
1672
|
result: result3
|
|
1660
|
-
}).describe("
|
|
1661
|
-
common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe("
|
|
1673
|
+
}).describe("Encoding card data from physical encoder succeeded."),
|
|
1674
|
+
common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe("Encoding card data from physical encoder failed.")
|
|
1662
1675
|
]);
|
|
1663
|
-
var action_type3 = zod.z.literal("
|
|
1676
|
+
var action_type3 = zod.z.literal("LOCK_DOOR");
|
|
1664
1677
|
var error4 = zod.z.object({
|
|
1678
|
+
type: zod.z.string(),
|
|
1679
|
+
message: zod.z.string()
|
|
1680
|
+
});
|
|
1681
|
+
var result4 = zod.z.object({});
|
|
1682
|
+
var lock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1683
|
+
common_pending_action_attempt.extend({
|
|
1684
|
+
action_type: action_type3
|
|
1685
|
+
}).describe("Locking door."),
|
|
1686
|
+
common_succeeded_action_attempt.extend({
|
|
1687
|
+
action_type: action_type3,
|
|
1688
|
+
result: result4
|
|
1689
|
+
}).describe("Locking door succeeded."),
|
|
1690
|
+
common_failed_action_attempt.extend({ action_type: action_type3, error: error4 }).describe("Locking door failed.")
|
|
1691
|
+
]);
|
|
1692
|
+
var action_type4 = zod.z.literal("READ_CARD");
|
|
1693
|
+
var error5 = zod.z.object({
|
|
1665
1694
|
type: zod.z.string(),
|
|
1666
1695
|
// TODO This should be typed properly with the possible errors
|
|
1667
1696
|
message: zod.z.string()
|
|
1668
1697
|
});
|
|
1669
|
-
var
|
|
1698
|
+
var result5 = zod.z.object({
|
|
1670
1699
|
acs_credential_id: zod.z.string().uuid().nullable().describe("Matching acs_credential currently encoded on this card."),
|
|
1671
1700
|
card_number: zod.z.string().nullable().describe("A number or sting that physically identifies this card.")
|
|
1672
1701
|
// TODO visionline_metadata: visionline_credential_metadata,
|
|
1673
1702
|
});
|
|
1674
1703
|
var read_card_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1675
1704
|
common_pending_action_attempt.extend({
|
|
1676
|
-
action_type:
|
|
1705
|
+
action_type: action_type4
|
|
1677
1706
|
}).describe("Reading card data from physical encoder."),
|
|
1678
1707
|
common_succeeded_action_attempt.extend({
|
|
1679
|
-
action_type:
|
|
1680
|
-
result:
|
|
1708
|
+
action_type: action_type4,
|
|
1709
|
+
result: result5
|
|
1681
1710
|
}).describe("Reading card data from physical encoder succeeded."),
|
|
1682
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1711
|
+
common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Reading card data from physical encoder failed.")
|
|
1683
1712
|
]);
|
|
1684
|
-
var
|
|
1685
|
-
var
|
|
1713
|
+
var action_type5 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
|
|
1714
|
+
var error6 = zod.z.object({
|
|
1686
1715
|
type: zod.z.string(),
|
|
1687
1716
|
message: zod.z.string()
|
|
1688
1717
|
});
|
|
1689
|
-
var
|
|
1718
|
+
var result6 = zod.z.object({});
|
|
1690
1719
|
var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
|
|
1691
1720
|
"status",
|
|
1692
1721
|
[
|
|
1693
1722
|
common_pending_action_attempt.extend({
|
|
1694
|
-
action_type:
|
|
1723
|
+
action_type: action_type5
|
|
1695
1724
|
}).describe("Resetting sandbox workspace."),
|
|
1696
1725
|
common_succeeded_action_attempt.extend({
|
|
1697
|
-
action_type:
|
|
1698
|
-
result:
|
|
1726
|
+
action_type: action_type5,
|
|
1727
|
+
result: result6
|
|
1699
1728
|
}).describe("Resetting sandbox workspace succeeded."),
|
|
1700
1729
|
common_failed_action_attempt.extend({
|
|
1701
|
-
action_type:
|
|
1702
|
-
error:
|
|
1730
|
+
action_type: action_type5,
|
|
1731
|
+
error: error6
|
|
1703
1732
|
}).describe("Resetting sandbox workspace failed.")
|
|
1704
1733
|
]
|
|
1705
1734
|
);
|
|
1706
|
-
var
|
|
1707
|
-
var
|
|
1735
|
+
var action_type6 = zod.z.literal("SET_COOL");
|
|
1736
|
+
var error7 = zod.z.object({
|
|
1708
1737
|
type: zod.z.string(),
|
|
1709
1738
|
message: zod.z.string()
|
|
1710
1739
|
});
|
|
1711
|
-
var
|
|
1740
|
+
var result7 = zod.z.object({});
|
|
1712
1741
|
var set_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1713
1742
|
common_pending_action_attempt.extend({
|
|
1714
|
-
action_type:
|
|
1743
|
+
action_type: action_type6
|
|
1715
1744
|
}).describe("Setting HVAC to cool."),
|
|
1716
1745
|
common_succeeded_action_attempt.extend({
|
|
1717
|
-
action_type:
|
|
1718
|
-
result:
|
|
1746
|
+
action_type: action_type6,
|
|
1747
|
+
result: result7
|
|
1719
1748
|
}).describe("Setting HVAC to cool succeeded."),
|
|
1720
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1749
|
+
common_failed_action_attempt.extend({ action_type: action_type6, error: error7 }).describe("Setting HVAC to cool failed.")
|
|
1721
1750
|
]);
|
|
1722
|
-
var
|
|
1723
|
-
var
|
|
1751
|
+
var action_type7 = zod.z.literal("SET_FAN_MODE");
|
|
1752
|
+
var error8 = zod.z.object({
|
|
1724
1753
|
type: zod.z.string(),
|
|
1725
1754
|
message: zod.z.string()
|
|
1726
1755
|
});
|
|
1727
|
-
var
|
|
1756
|
+
var result8 = zod.z.object({});
|
|
1728
1757
|
var set_fan_mode_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1729
1758
|
common_pending_action_attempt.extend({
|
|
1730
|
-
action_type:
|
|
1759
|
+
action_type: action_type7
|
|
1731
1760
|
}).describe("Setting fan mode."),
|
|
1732
1761
|
common_succeeded_action_attempt.extend({
|
|
1733
|
-
action_type:
|
|
1734
|
-
result:
|
|
1762
|
+
action_type: action_type7,
|
|
1763
|
+
result: result8
|
|
1735
1764
|
}).describe("Setting fan mode succeeded."),
|
|
1736
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1765
|
+
common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Setting fan mode failed.")
|
|
1737
1766
|
]);
|
|
1738
|
-
var
|
|
1739
|
-
var
|
|
1767
|
+
var action_type8 = zod.z.literal("SET_HEAT");
|
|
1768
|
+
var error9 = zod.z.object({
|
|
1740
1769
|
type: zod.z.string(),
|
|
1741
1770
|
message: zod.z.string()
|
|
1742
1771
|
});
|
|
1743
|
-
var
|
|
1772
|
+
var result9 = zod.z.object({});
|
|
1744
1773
|
var set_heat_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1745
1774
|
common_pending_action_attempt.extend({
|
|
1746
|
-
action_type:
|
|
1775
|
+
action_type: action_type8
|
|
1747
1776
|
}).describe("Setting HVAC to heat mode."),
|
|
1748
1777
|
common_succeeded_action_attempt.extend({
|
|
1749
|
-
action_type:
|
|
1750
|
-
result:
|
|
1778
|
+
action_type: action_type8,
|
|
1779
|
+
result: result9
|
|
1751
1780
|
}).describe("Setting HVAC to heat mode succeeded."),
|
|
1752
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1781
|
+
common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Setting HVAC to heat mode failed.")
|
|
1753
1782
|
]);
|
|
1754
|
-
var
|
|
1755
|
-
var
|
|
1783
|
+
var action_type9 = zod.z.literal("SET_HEAT_COOL");
|
|
1784
|
+
var error10 = zod.z.object({
|
|
1756
1785
|
type: zod.z.string(),
|
|
1757
1786
|
message: zod.z.string()
|
|
1758
1787
|
});
|
|
1759
|
-
var
|
|
1788
|
+
var result10 = zod.z.object({});
|
|
1760
1789
|
var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1761
1790
|
common_pending_action_attempt.extend({
|
|
1762
|
-
action_type:
|
|
1791
|
+
action_type: action_type9
|
|
1763
1792
|
}).describe("Setting HVAC to heat-cool mode."),
|
|
1764
1793
|
common_succeeded_action_attempt.extend({
|
|
1765
|
-
action_type:
|
|
1766
|
-
result:
|
|
1794
|
+
action_type: action_type9,
|
|
1795
|
+
result: result10
|
|
1767
1796
|
}).describe("Setting HVAC to heat-cool mode succeeded."),
|
|
1768
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1797
|
+
common_failed_action_attempt.extend({ action_type: action_type9, error: error10 }).describe("Setting heat-cool mode failed.")
|
|
1769
1798
|
]);
|
|
1770
|
-
var
|
|
1771
|
-
var
|
|
1799
|
+
var action_type10 = zod.z.literal("SET_THERMOSTAT_OFF");
|
|
1800
|
+
var error11 = zod.z.object({
|
|
1772
1801
|
type: zod.z.string(),
|
|
1773
1802
|
message: zod.z.string()
|
|
1774
1803
|
});
|
|
1775
|
-
var
|
|
1804
|
+
var result11 = zod.z.object({});
|
|
1776
1805
|
var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
|
|
1777
1806
|
"status",
|
|
1778
1807
|
[
|
|
1779
1808
|
common_pending_action_attempt.extend({
|
|
1780
|
-
action_type:
|
|
1809
|
+
action_type: action_type10
|
|
1781
1810
|
}).describe("Turning HVAC off."),
|
|
1782
1811
|
common_succeeded_action_attempt.extend({
|
|
1783
|
-
action_type:
|
|
1784
|
-
result:
|
|
1812
|
+
action_type: action_type10,
|
|
1813
|
+
result: result11
|
|
1785
1814
|
}).describe("Turning HVAC off succeeded."),
|
|
1786
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1815
|
+
common_failed_action_attempt.extend({ action_type: action_type10, error: error11 }).describe("Turning HVAC off failed.")
|
|
1787
1816
|
]
|
|
1788
1817
|
);
|
|
1789
|
-
var
|
|
1790
|
-
var
|
|
1818
|
+
var action_type11 = zod.z.literal("UNLOCK_DOOR");
|
|
1819
|
+
var error12 = zod.z.object({
|
|
1791
1820
|
type: zod.z.string(),
|
|
1792
1821
|
message: zod.z.string()
|
|
1793
1822
|
});
|
|
1794
|
-
var
|
|
1823
|
+
var result12 = zod.z.object({});
|
|
1795
1824
|
var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1796
1825
|
common_pending_action_attempt.extend({
|
|
1797
|
-
action_type:
|
|
1826
|
+
action_type: action_type11
|
|
1798
1827
|
}).describe("Unlocking door."),
|
|
1799
1828
|
common_succeeded_action_attempt.extend({
|
|
1800
|
-
action_type:
|
|
1801
|
-
result:
|
|
1829
|
+
action_type: action_type11,
|
|
1830
|
+
result: result12
|
|
1802
1831
|
}).describe("Unlocking door succeeded."),
|
|
1803
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1832
|
+
common_failed_action_attempt.extend({ action_type: action_type11, error: error12 }).describe("Unlocking door failed.")
|
|
1804
1833
|
]);
|
|
1805
1834
|
|
|
1806
1835
|
// src/lib/seam/connect/models/action-attempts/action-attempt.ts
|
|
@@ -1808,6 +1837,7 @@ var action_attempt = zod.z.union([
|
|
|
1808
1837
|
...lock_door_action_attempt.options,
|
|
1809
1838
|
...unlock_door_action_attempt.options,
|
|
1810
1839
|
...read_card_action_attempt.options,
|
|
1840
|
+
...encode_card_action_attempt.options,
|
|
1811
1841
|
...reset_sandbox_workspace_action_attempt.options,
|
|
1812
1842
|
...set_cool_action_attempt.options,
|
|
1813
1843
|
...set_heat_action_attempt.options,
|
|
@@ -2326,13 +2356,15 @@ var lock_access_denied_event = device_event.extend({
|
|
|
2326
2356
|
}).describe(
|
|
2327
2357
|
"The lock denied access to a user after one or more consecutive invalid attempts to unlock the device."
|
|
2328
2358
|
);
|
|
2329
|
-
device_event.extend({
|
|
2359
|
+
var thermostat_climate_preset_activated_event = device_event.extend({
|
|
2330
2360
|
event_type: zod.z.literal("thermostat.climate_preset_activated"),
|
|
2331
2361
|
thermostat_schedule_id: zod.z.string().uuid().nullable(),
|
|
2332
2362
|
climate_preset_key: zod.z.string(),
|
|
2333
2363
|
is_fallback_climate_preset: zod.z.boolean()
|
|
2334
2364
|
}).describe("A thermostat climate preset was activated.");
|
|
2335
|
-
device_event.
|
|
2365
|
+
var thermostat_manually_adjusted_event = device_event.extend({
|
|
2366
|
+
event_type: zod.z.literal("thermostat.manually_adjusted")
|
|
2367
|
+
}).merge(
|
|
2336
2368
|
climate_setting.pick({
|
|
2337
2369
|
fan_mode_setting: true,
|
|
2338
2370
|
hvac_mode_setting: true,
|
|
@@ -2367,9 +2399,9 @@ var device_events = [
|
|
|
2367
2399
|
noise_sensor_noise_threshold_triggered_event,
|
|
2368
2400
|
lock_locked_event,
|
|
2369
2401
|
lock_unlocked_event,
|
|
2370
|
-
lock_access_denied_event
|
|
2371
|
-
|
|
2372
|
-
|
|
2402
|
+
lock_access_denied_event,
|
|
2403
|
+
thermostat_climate_preset_activated_event,
|
|
2404
|
+
thermostat_manually_adjusted_event
|
|
2373
2405
|
];
|
|
2374
2406
|
var enrollment_automation_event = common_event.extend({
|
|
2375
2407
|
enrollment_automation_id: zod.z.string().uuid().describe(`
|
|
@@ -3643,6 +3675,98 @@ var openapi_default = {
|
|
|
3643
3675
|
],
|
|
3644
3676
|
type: "object"
|
|
3645
3677
|
},
|
|
3678
|
+
{
|
|
3679
|
+
description: "Encoding card data from physical encoder.",
|
|
3680
|
+
properties: {
|
|
3681
|
+
action_attempt_id: {
|
|
3682
|
+
description: "The ID of the action attempt.",
|
|
3683
|
+
format: "uuid",
|
|
3684
|
+
type: "string",
|
|
3685
|
+
"x-title": "Action Attempt ID"
|
|
3686
|
+
},
|
|
3687
|
+
action_type: { enum: ["ENCODE_CARD"], type: "string" },
|
|
3688
|
+
error: { nullable: true },
|
|
3689
|
+
result: { nullable: true },
|
|
3690
|
+
status: { enum: ["pending"], type: "string" }
|
|
3691
|
+
},
|
|
3692
|
+
required: [
|
|
3693
|
+
"action_attempt_id",
|
|
3694
|
+
"status",
|
|
3695
|
+
"result",
|
|
3696
|
+
"error",
|
|
3697
|
+
"action_type"
|
|
3698
|
+
],
|
|
3699
|
+
type: "object"
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
description: "Encoding card data from physical encoder succeeded.",
|
|
3703
|
+
properties: {
|
|
3704
|
+
action_attempt_id: {
|
|
3705
|
+
description: "The ID of the action attempt.",
|
|
3706
|
+
format: "uuid",
|
|
3707
|
+
type: "string",
|
|
3708
|
+
"x-title": "Action Attempt ID"
|
|
3709
|
+
},
|
|
3710
|
+
action_type: { enum: ["ENCODE_CARD"], type: "string" },
|
|
3711
|
+
error: { nullable: true },
|
|
3712
|
+
result: {
|
|
3713
|
+
properties: {
|
|
3714
|
+
acs_credential_id: {
|
|
3715
|
+
description: "Matching acs_credential currently encoded on this card.",
|
|
3716
|
+
format: "uuid",
|
|
3717
|
+
nullable: true,
|
|
3718
|
+
type: "string"
|
|
3719
|
+
},
|
|
3720
|
+
card_number: {
|
|
3721
|
+
description: "A number or sting that physically identifies this card.",
|
|
3722
|
+
nullable: true,
|
|
3723
|
+
type: "string"
|
|
3724
|
+
}
|
|
3725
|
+
},
|
|
3726
|
+
required: ["acs_credential_id", "card_number"],
|
|
3727
|
+
type: "object"
|
|
3728
|
+
},
|
|
3729
|
+
status: { enum: ["success"], type: "string" }
|
|
3730
|
+
},
|
|
3731
|
+
required: [
|
|
3732
|
+
"action_attempt_id",
|
|
3733
|
+
"status",
|
|
3734
|
+
"error",
|
|
3735
|
+
"action_type",
|
|
3736
|
+
"result"
|
|
3737
|
+
],
|
|
3738
|
+
type: "object"
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
description: "Encoding card data from physical encoder failed.",
|
|
3742
|
+
properties: {
|
|
3743
|
+
action_attempt_id: {
|
|
3744
|
+
description: "The ID of the action attempt.",
|
|
3745
|
+
format: "uuid",
|
|
3746
|
+
type: "string",
|
|
3747
|
+
"x-title": "Action Attempt ID"
|
|
3748
|
+
},
|
|
3749
|
+
action_type: { enum: ["ENCODE_CARD"], type: "string" },
|
|
3750
|
+
error: {
|
|
3751
|
+
properties: {
|
|
3752
|
+
message: { type: "string" },
|
|
3753
|
+
type: { type: "string" }
|
|
3754
|
+
},
|
|
3755
|
+
required: ["type", "message"],
|
|
3756
|
+
type: "object"
|
|
3757
|
+
},
|
|
3758
|
+
result: { nullable: true },
|
|
3759
|
+
status: { enum: ["error"], type: "string" }
|
|
3760
|
+
},
|
|
3761
|
+
required: [
|
|
3762
|
+
"action_attempt_id",
|
|
3763
|
+
"status",
|
|
3764
|
+
"result",
|
|
3765
|
+
"action_type",
|
|
3766
|
+
"error"
|
|
3767
|
+
],
|
|
3768
|
+
type: "object"
|
|
3769
|
+
},
|
|
3646
3770
|
{
|
|
3647
3771
|
description: "Resetting sandbox workspace.",
|
|
3648
3772
|
properties: {
|
|
@@ -6168,13 +6292,22 @@ var openapi_default = {
|
|
|
6168
6292
|
acs_user_id: { format: "uuid", type: "string" },
|
|
6169
6293
|
action_attempt_id: { format: "uuid", type: "string" },
|
|
6170
6294
|
client_session_id: { format: "uuid", type: "string" },
|
|
6295
|
+
climate_preset_key: { type: "string" },
|
|
6296
|
+
cooling_set_point_celsius: { format: "float", type: "number" },
|
|
6297
|
+
cooling_set_point_fahrenheit: { format: "float", type: "number" },
|
|
6171
6298
|
created_at: { format: "date-time", type: "string" },
|
|
6172
6299
|
device_id: { format: "uuid", type: "string" },
|
|
6173
6300
|
enrollment_automation_id: { format: "uuid", type: "string" },
|
|
6174
6301
|
event_description: { type: "string" },
|
|
6175
6302
|
event_id: { format: "uuid", type: "string" },
|
|
6176
6303
|
event_type: { type: "string" },
|
|
6304
|
+
fan_mode_setting: { type: "string" },
|
|
6305
|
+
heating_set_point_celsius: { format: "float", type: "number" },
|
|
6306
|
+
heating_set_point_fahrenheit: { format: "float", type: "number" },
|
|
6307
|
+
hvac_mode_setting: { type: "string" },
|
|
6308
|
+
is_fallback_climate_preset: { type: "boolean" },
|
|
6177
6309
|
occurred_at: { format: "date-time", type: "string" },
|
|
6310
|
+
thermostat_schedule_id: { format: "uuid", type: "string" },
|
|
6178
6311
|
workspace_id: { format: "uuid", type: "string" }
|
|
6179
6312
|
},
|
|
6180
6313
|
required: [
|
|
@@ -9663,6 +9796,68 @@ var openapi_default = {
|
|
|
9663
9796
|
"x-fern-sdk-method-name": "update"
|
|
9664
9797
|
}
|
|
9665
9798
|
},
|
|
9799
|
+
"/acs/encoders/encode_card": {
|
|
9800
|
+
post: {
|
|
9801
|
+
operationId: "acsEncodersEncodeCardPost",
|
|
9802
|
+
requestBody: {
|
|
9803
|
+
content: {
|
|
9804
|
+
"application/json": {
|
|
9805
|
+
schema: {
|
|
9806
|
+
oneOf: [
|
|
9807
|
+
{
|
|
9808
|
+
properties: {
|
|
9809
|
+
acs_system_id: { format: "uuid", type: "string" },
|
|
9810
|
+
device_name: { type: "string" }
|
|
9811
|
+
},
|
|
9812
|
+
required: ["acs_system_id", "device_name"],
|
|
9813
|
+
type: "object"
|
|
9814
|
+
},
|
|
9815
|
+
{
|
|
9816
|
+
properties: {
|
|
9817
|
+
device_id: { format: "uuid", type: "string" }
|
|
9818
|
+
},
|
|
9819
|
+
required: ["device_id"],
|
|
9820
|
+
type: "object"
|
|
9821
|
+
}
|
|
9822
|
+
]
|
|
9823
|
+
}
|
|
9824
|
+
}
|
|
9825
|
+
}
|
|
9826
|
+
},
|
|
9827
|
+
responses: {
|
|
9828
|
+
200: {
|
|
9829
|
+
content: {
|
|
9830
|
+
"application/json": {
|
|
9831
|
+
schema: {
|
|
9832
|
+
properties: {
|
|
9833
|
+
action_attempt: {
|
|
9834
|
+
$ref: "#/components/schemas/action_attempt"
|
|
9835
|
+
},
|
|
9836
|
+
ok: { type: "boolean" }
|
|
9837
|
+
},
|
|
9838
|
+
required: ["action_attempt", "ok"],
|
|
9839
|
+
type: "object"
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9842
|
+
},
|
|
9843
|
+
description: "OK"
|
|
9844
|
+
},
|
|
9845
|
+
400: { description: "Bad Request" },
|
|
9846
|
+
401: { description: "Unauthorized" }
|
|
9847
|
+
},
|
|
9848
|
+
security: [
|
|
9849
|
+
{ pat_with_workspace: [] },
|
|
9850
|
+
{ console_session: [] },
|
|
9851
|
+
{ api_key: [] }
|
|
9852
|
+
],
|
|
9853
|
+
summary: "/acs/encoders/encode_card",
|
|
9854
|
+
tags: ["/acs"],
|
|
9855
|
+
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
9856
|
+
"x-fern-sdk-method-name": "encode_card",
|
|
9857
|
+
"x-fern-sdk-return-value": "action_attempt",
|
|
9858
|
+
"x-undocumented": "Encoding a card is currently unimplemented."
|
|
9859
|
+
}
|
|
9860
|
+
},
|
|
9666
9861
|
"/acs/encoders/read_card": {
|
|
9667
9862
|
post: {
|
|
9668
9863
|
operationId: "acsEncodersReadCardPost",
|
|
@@ -13874,7 +14069,9 @@ var openapi_default = {
|
|
|
13874
14069
|
"action_attempt.lock_door.succeeded",
|
|
13875
14070
|
"action_attempt.lock_door.failed",
|
|
13876
14071
|
"action_attempt.unlock_door.succeeded",
|
|
13877
|
-
"action_attempt.unlock_door.failed"
|
|
14072
|
+
"action_attempt.unlock_door.failed",
|
|
14073
|
+
"thermostat.climate_preset_activated",
|
|
14074
|
+
"thermostat.manually_adjusted"
|
|
13878
14075
|
],
|
|
13879
14076
|
type: "string"
|
|
13880
14077
|
},
|
|
@@ -13942,7 +14139,9 @@ var openapi_default = {
|
|
|
13942
14139
|
"action_attempt.lock_door.succeeded",
|
|
13943
14140
|
"action_attempt.lock_door.failed",
|
|
13944
14141
|
"action_attempt.unlock_door.succeeded",
|
|
13945
|
-
"action_attempt.unlock_door.failed"
|
|
14142
|
+
"action_attempt.unlock_door.failed",
|
|
14143
|
+
"thermostat.climate_preset_activated",
|
|
14144
|
+
"thermostat.manually_adjusted"
|
|
13946
14145
|
],
|
|
13947
14146
|
type: "string"
|
|
13948
14147
|
},
|