@seamapi/types 1.254.0 → 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 +238 -62
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1186 -0
- 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/openapi.d.ts +84 -0
- package/lib/seam/connect/openapi.js +154 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1036 -27
- 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/openapi.ts +156 -0
- package/src/lib/seam/connect/route-types.ts +1135 -13
package/dist/connect.cjs
CHANGED
|
@@ -1652,163 +1652,184 @@ var deprecated_action_attempts = [
|
|
|
1652
1652
|
...delete_noise_threshold_action_attempt.options,
|
|
1653
1653
|
...update_noise_threshold_action_attempt.options
|
|
1654
1654
|
];
|
|
1655
|
-
var action_type2 = zod.z.literal("
|
|
1655
|
+
var action_type2 = zod.z.literal("ENCODE_CARD");
|
|
1656
1656
|
var error3 = zod.z.object({
|
|
1657
1657
|
type: zod.z.string(),
|
|
1658
|
+
// TODO This should be typed properly with the possible errors
|
|
1658
1659
|
message: zod.z.string()
|
|
1659
1660
|
});
|
|
1660
|
-
var result3 = zod.z.object({
|
|
1661
|
-
|
|
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", [
|
|
1662
1667
|
common_pending_action_attempt.extend({
|
|
1663
1668
|
action_type: action_type2
|
|
1664
|
-
}).describe("
|
|
1669
|
+
}).describe("Encoding card data from physical encoder."),
|
|
1665
1670
|
common_succeeded_action_attempt.extend({
|
|
1666
1671
|
action_type: action_type2,
|
|
1667
1672
|
result: result3
|
|
1668
|
-
}).describe("
|
|
1669
|
-
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.")
|
|
1670
1675
|
]);
|
|
1671
|
-
var action_type3 = zod.z.literal("
|
|
1676
|
+
var action_type3 = zod.z.literal("LOCK_DOOR");
|
|
1672
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({
|
|
1673
1694
|
type: zod.z.string(),
|
|
1674
1695
|
// TODO This should be typed properly with the possible errors
|
|
1675
1696
|
message: zod.z.string()
|
|
1676
1697
|
});
|
|
1677
|
-
var
|
|
1698
|
+
var result5 = zod.z.object({
|
|
1678
1699
|
acs_credential_id: zod.z.string().uuid().nullable().describe("Matching acs_credential currently encoded on this card."),
|
|
1679
1700
|
card_number: zod.z.string().nullable().describe("A number or sting that physically identifies this card.")
|
|
1680
1701
|
// TODO visionline_metadata: visionline_credential_metadata,
|
|
1681
1702
|
});
|
|
1682
1703
|
var read_card_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1683
1704
|
common_pending_action_attempt.extend({
|
|
1684
|
-
action_type:
|
|
1705
|
+
action_type: action_type4
|
|
1685
1706
|
}).describe("Reading card data from physical encoder."),
|
|
1686
1707
|
common_succeeded_action_attempt.extend({
|
|
1687
|
-
action_type:
|
|
1688
|
-
result:
|
|
1708
|
+
action_type: action_type4,
|
|
1709
|
+
result: result5
|
|
1689
1710
|
}).describe("Reading card data from physical encoder succeeded."),
|
|
1690
|
-
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.")
|
|
1691
1712
|
]);
|
|
1692
|
-
var
|
|
1693
|
-
var
|
|
1713
|
+
var action_type5 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
|
|
1714
|
+
var error6 = zod.z.object({
|
|
1694
1715
|
type: zod.z.string(),
|
|
1695
1716
|
message: zod.z.string()
|
|
1696
1717
|
});
|
|
1697
|
-
var
|
|
1718
|
+
var result6 = zod.z.object({});
|
|
1698
1719
|
var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
|
|
1699
1720
|
"status",
|
|
1700
1721
|
[
|
|
1701
1722
|
common_pending_action_attempt.extend({
|
|
1702
|
-
action_type:
|
|
1723
|
+
action_type: action_type5
|
|
1703
1724
|
}).describe("Resetting sandbox workspace."),
|
|
1704
1725
|
common_succeeded_action_attempt.extend({
|
|
1705
|
-
action_type:
|
|
1706
|
-
result:
|
|
1726
|
+
action_type: action_type5,
|
|
1727
|
+
result: result6
|
|
1707
1728
|
}).describe("Resetting sandbox workspace succeeded."),
|
|
1708
1729
|
common_failed_action_attempt.extend({
|
|
1709
|
-
action_type:
|
|
1710
|
-
error:
|
|
1730
|
+
action_type: action_type5,
|
|
1731
|
+
error: error6
|
|
1711
1732
|
}).describe("Resetting sandbox workspace failed.")
|
|
1712
1733
|
]
|
|
1713
1734
|
);
|
|
1714
|
-
var
|
|
1715
|
-
var
|
|
1735
|
+
var action_type6 = zod.z.literal("SET_COOL");
|
|
1736
|
+
var error7 = zod.z.object({
|
|
1716
1737
|
type: zod.z.string(),
|
|
1717
1738
|
message: zod.z.string()
|
|
1718
1739
|
});
|
|
1719
|
-
var
|
|
1740
|
+
var result7 = zod.z.object({});
|
|
1720
1741
|
var set_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1721
1742
|
common_pending_action_attempt.extend({
|
|
1722
|
-
action_type:
|
|
1743
|
+
action_type: action_type6
|
|
1723
1744
|
}).describe("Setting HVAC to cool."),
|
|
1724
1745
|
common_succeeded_action_attempt.extend({
|
|
1725
|
-
action_type:
|
|
1726
|
-
result:
|
|
1746
|
+
action_type: action_type6,
|
|
1747
|
+
result: result7
|
|
1727
1748
|
}).describe("Setting HVAC to cool succeeded."),
|
|
1728
|
-
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.")
|
|
1729
1750
|
]);
|
|
1730
|
-
var
|
|
1731
|
-
var
|
|
1751
|
+
var action_type7 = zod.z.literal("SET_FAN_MODE");
|
|
1752
|
+
var error8 = zod.z.object({
|
|
1732
1753
|
type: zod.z.string(),
|
|
1733
1754
|
message: zod.z.string()
|
|
1734
1755
|
});
|
|
1735
|
-
var
|
|
1756
|
+
var result8 = zod.z.object({});
|
|
1736
1757
|
var set_fan_mode_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1737
1758
|
common_pending_action_attempt.extend({
|
|
1738
|
-
action_type:
|
|
1759
|
+
action_type: action_type7
|
|
1739
1760
|
}).describe("Setting fan mode."),
|
|
1740
1761
|
common_succeeded_action_attempt.extend({
|
|
1741
|
-
action_type:
|
|
1742
|
-
result:
|
|
1762
|
+
action_type: action_type7,
|
|
1763
|
+
result: result8
|
|
1743
1764
|
}).describe("Setting fan mode succeeded."),
|
|
1744
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1765
|
+
common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Setting fan mode failed.")
|
|
1745
1766
|
]);
|
|
1746
|
-
var
|
|
1747
|
-
var
|
|
1767
|
+
var action_type8 = zod.z.literal("SET_HEAT");
|
|
1768
|
+
var error9 = zod.z.object({
|
|
1748
1769
|
type: zod.z.string(),
|
|
1749
1770
|
message: zod.z.string()
|
|
1750
1771
|
});
|
|
1751
|
-
var
|
|
1772
|
+
var result9 = zod.z.object({});
|
|
1752
1773
|
var set_heat_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1753
1774
|
common_pending_action_attempt.extend({
|
|
1754
|
-
action_type:
|
|
1775
|
+
action_type: action_type8
|
|
1755
1776
|
}).describe("Setting HVAC to heat mode."),
|
|
1756
1777
|
common_succeeded_action_attempt.extend({
|
|
1757
|
-
action_type:
|
|
1758
|
-
result:
|
|
1778
|
+
action_type: action_type8,
|
|
1779
|
+
result: result9
|
|
1759
1780
|
}).describe("Setting HVAC to heat mode succeeded."),
|
|
1760
|
-
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.")
|
|
1761
1782
|
]);
|
|
1762
|
-
var
|
|
1763
|
-
var
|
|
1783
|
+
var action_type9 = zod.z.literal("SET_HEAT_COOL");
|
|
1784
|
+
var error10 = zod.z.object({
|
|
1764
1785
|
type: zod.z.string(),
|
|
1765
1786
|
message: zod.z.string()
|
|
1766
1787
|
});
|
|
1767
|
-
var
|
|
1788
|
+
var result10 = zod.z.object({});
|
|
1768
1789
|
var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1769
1790
|
common_pending_action_attempt.extend({
|
|
1770
|
-
action_type:
|
|
1791
|
+
action_type: action_type9
|
|
1771
1792
|
}).describe("Setting HVAC to heat-cool mode."),
|
|
1772
1793
|
common_succeeded_action_attempt.extend({
|
|
1773
|
-
action_type:
|
|
1774
|
-
result:
|
|
1794
|
+
action_type: action_type9,
|
|
1795
|
+
result: result10
|
|
1775
1796
|
}).describe("Setting HVAC to heat-cool mode succeeded."),
|
|
1776
|
-
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.")
|
|
1777
1798
|
]);
|
|
1778
|
-
var
|
|
1779
|
-
var
|
|
1799
|
+
var action_type10 = zod.z.literal("SET_THERMOSTAT_OFF");
|
|
1800
|
+
var error11 = zod.z.object({
|
|
1780
1801
|
type: zod.z.string(),
|
|
1781
1802
|
message: zod.z.string()
|
|
1782
1803
|
});
|
|
1783
|
-
var
|
|
1804
|
+
var result11 = zod.z.object({});
|
|
1784
1805
|
var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
|
|
1785
1806
|
"status",
|
|
1786
1807
|
[
|
|
1787
1808
|
common_pending_action_attempt.extend({
|
|
1788
|
-
action_type:
|
|
1809
|
+
action_type: action_type10
|
|
1789
1810
|
}).describe("Turning HVAC off."),
|
|
1790
1811
|
common_succeeded_action_attempt.extend({
|
|
1791
|
-
action_type:
|
|
1792
|
-
result:
|
|
1812
|
+
action_type: action_type10,
|
|
1813
|
+
result: result11
|
|
1793
1814
|
}).describe("Turning HVAC off succeeded."),
|
|
1794
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1815
|
+
common_failed_action_attempt.extend({ action_type: action_type10, error: error11 }).describe("Turning HVAC off failed.")
|
|
1795
1816
|
]
|
|
1796
1817
|
);
|
|
1797
|
-
var
|
|
1798
|
-
var
|
|
1818
|
+
var action_type11 = zod.z.literal("UNLOCK_DOOR");
|
|
1819
|
+
var error12 = zod.z.object({
|
|
1799
1820
|
type: zod.z.string(),
|
|
1800
1821
|
message: zod.z.string()
|
|
1801
1822
|
});
|
|
1802
|
-
var
|
|
1823
|
+
var result12 = zod.z.object({});
|
|
1803
1824
|
var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1804
1825
|
common_pending_action_attempt.extend({
|
|
1805
|
-
action_type:
|
|
1826
|
+
action_type: action_type11
|
|
1806
1827
|
}).describe("Unlocking door."),
|
|
1807
1828
|
common_succeeded_action_attempt.extend({
|
|
1808
|
-
action_type:
|
|
1809
|
-
result:
|
|
1829
|
+
action_type: action_type11,
|
|
1830
|
+
result: result12
|
|
1810
1831
|
}).describe("Unlocking door succeeded."),
|
|
1811
|
-
common_failed_action_attempt.extend({ action_type:
|
|
1832
|
+
common_failed_action_attempt.extend({ action_type: action_type11, error: error12 }).describe("Unlocking door failed.")
|
|
1812
1833
|
]);
|
|
1813
1834
|
|
|
1814
1835
|
// src/lib/seam/connect/models/action-attempts/action-attempt.ts
|
|
@@ -1816,6 +1837,7 @@ var action_attempt = zod.z.union([
|
|
|
1816
1837
|
...lock_door_action_attempt.options,
|
|
1817
1838
|
...unlock_door_action_attempt.options,
|
|
1818
1839
|
...read_card_action_attempt.options,
|
|
1840
|
+
...encode_card_action_attempt.options,
|
|
1819
1841
|
...reset_sandbox_workspace_action_attempt.options,
|
|
1820
1842
|
...set_cool_action_attempt.options,
|
|
1821
1843
|
...set_heat_action_attempt.options,
|
|
@@ -3653,6 +3675,98 @@ var openapi_default = {
|
|
|
3653
3675
|
],
|
|
3654
3676
|
type: "object"
|
|
3655
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
|
+
},
|
|
3656
3770
|
{
|
|
3657
3771
|
description: "Resetting sandbox workspace.",
|
|
3658
3772
|
properties: {
|
|
@@ -9682,6 +9796,68 @@ var openapi_default = {
|
|
|
9682
9796
|
"x-fern-sdk-method-name": "update"
|
|
9683
9797
|
}
|
|
9684
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
|
+
},
|
|
9685
9861
|
"/acs/encoders/read_card": {
|
|
9686
9862
|
post: {
|
|
9687
9863
|
operationId: "acsEncodersReadCardPost",
|