@seamapi/types 1.386.0 → 1.386.2
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 +2788 -791
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +7673 -1304
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +9 -3
- package/lib/seam/connect/models/access-grants/access-method.js +9 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-system.d.ts +36 -0
- package/lib/seam/connect/models/acs/acs-system.js +6 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +0 -12
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +4 -22
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +43 -18
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +189 -6
- 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-access-method.d.ts +186 -0
- package/lib/seam/connect/models/action-attempts/encode-access-method.js +42 -0
- package/lib/seam/connect/models/action-attempts/encode-access-method.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +6 -6
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +135 -13
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +135 -13
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -1
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +1 -1
- package/lib/seam/connect/models/devices/device-provider.js +1 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +247 -19
- package/lib/seam/connect/models/devices/device.js +11 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +156 -13
- package/lib/seam/connect/models/events/access-grants.d.ts +1 -24
- package/lib/seam/connect/models/events/access-grants.js +6 -7
- package/lib/seam/connect/models/events/access-grants.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +1 -1
- package/lib/seam/connect/models/events/access-methods.js +4 -4
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +6 -4
- package/lib/seam/connect/models/events/seam-event.d.ts +194 -3
- package/lib/seam/connect/models/events/seam-event.js +4 -0
- package/lib/seam/connect/models/events/seam-event.js.map +1 -1
- package/lib/seam/connect/models/instant-keys/instant-key.d.ts +2 -2
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js +3 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/models/thermostats/index.d.ts +1 -0
- package/lib/seam/connect/models/thermostats/index.js +1 -0
- package/lib/seam/connect/models/thermostats/index.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-program.d.ts +79 -0
- package/lib/seam/connect/models/thermostats/thermostat-program.js +74 -0
- package/lib/seam/connect/models/thermostats/thermostat-program.js.map +1 -0
- package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +7 -7
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js +3 -7
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +3396 -1577
- package/lib/seam/connect/openapi.js +2620 -820
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +3816 -61
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +11 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +6 -0
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +6 -22
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +62 -27
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/encode-access-method.ts +69 -0
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +9 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -1
- package/src/lib/seam/connect/models/devices/device.ts +14 -0
- package/src/lib/seam/connect/models/events/access-grants.ts +6 -7
- package/src/lib/seam/connect/models/events/access-methods.ts +4 -4
- package/src/lib/seam/connect/models/events/seam-event.ts +4 -0
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +5 -0
- package/src/lib/seam/connect/models/thermostats/index.ts +1 -0
- package/src/lib/seam/connect/models/thermostats/thermostat-program.ts +90 -0
- package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +3 -7
- package/src/lib/seam/connect/openapi.ts +3600 -1667
- package/src/lib/seam/connect/route-types.ts +4279 -87
- package/src/lib/seam/connect/schemas.ts +2 -0
|
@@ -232,9 +232,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
232
232
|
card_holder?: string | undefined;
|
|
233
233
|
}>>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
created_at: string | null;
|
|
235
236
|
starts_at: string | null;
|
|
236
237
|
ends_at: string | null;
|
|
237
|
-
created_at: string | null;
|
|
238
238
|
card_number: string | null;
|
|
239
239
|
is_issued: boolean | null;
|
|
240
240
|
visionline_metadata?: {
|
|
@@ -252,9 +252,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
252
252
|
card_holder?: string | undefined;
|
|
253
253
|
} | undefined;
|
|
254
254
|
}, {
|
|
255
|
+
created_at: string | null;
|
|
255
256
|
starts_at: string | null;
|
|
256
257
|
ends_at: string | null;
|
|
257
|
-
created_at: string | null;
|
|
258
258
|
card_number: string | null;
|
|
259
259
|
is_issued: boolean | null;
|
|
260
260
|
visionline_metadata?: {
|
|
@@ -885,9 +885,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
885
885
|
warning_message: string;
|
|
886
886
|
}[];
|
|
887
887
|
acs_credential_on_encoder: {
|
|
888
|
+
created_at: string | null;
|
|
888
889
|
starts_at: string | null;
|
|
889
890
|
ends_at: string | null;
|
|
890
|
-
created_at: string | null;
|
|
891
891
|
card_number: string | null;
|
|
892
892
|
is_issued: boolean | null;
|
|
893
893
|
visionline_metadata?: {
|
|
@@ -1050,9 +1050,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1050
1050
|
warning_message: string;
|
|
1051
1051
|
}[];
|
|
1052
1052
|
acs_credential_on_encoder: {
|
|
1053
|
+
created_at: string | null;
|
|
1053
1054
|
starts_at: string | null;
|
|
1054
1055
|
ends_at: string | null;
|
|
1055
|
-
created_at: string | null;
|
|
1056
1056
|
card_number: string | null;
|
|
1057
1057
|
is_issued: boolean | null;
|
|
1058
1058
|
visionline_metadata?: {
|
|
@@ -1220,9 +1220,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1220
1220
|
warning_message: string;
|
|
1221
1221
|
}[];
|
|
1222
1222
|
acs_credential_on_encoder: {
|
|
1223
|
+
created_at: string | null;
|
|
1223
1224
|
starts_at: string | null;
|
|
1224
1225
|
ends_at: string | null;
|
|
1225
|
-
created_at: string | null;
|
|
1226
1226
|
card_number: string | null;
|
|
1227
1227
|
is_issued: boolean | null;
|
|
1228
1228
|
visionline_metadata?: {
|
|
@@ -1391,9 +1391,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1391
1391
|
warning_message: string;
|
|
1392
1392
|
}[];
|
|
1393
1393
|
acs_credential_on_encoder: {
|
|
1394
|
+
created_at: string | null;
|
|
1394
1395
|
starts_at: string | null;
|
|
1395
1396
|
ends_at: string | null;
|
|
1396
|
-
created_at: string | null;
|
|
1397
1397
|
card_number: string | null;
|
|
1398
1398
|
is_issued: boolean | null;
|
|
1399
1399
|
visionline_metadata?: {
|
|
@@ -1625,6 +1625,189 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1625
1625
|
status: z.ZodLiteral<"pending">;
|
|
1626
1626
|
result: z.ZodNull;
|
|
1627
1627
|
error: z.ZodNull;
|
|
1628
|
+
}>, {
|
|
1629
|
+
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
1630
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1631
|
+
error: null;
|
|
1632
|
+
status: "pending";
|
|
1633
|
+
action_attempt_id: string;
|
|
1634
|
+
result: null;
|
|
1635
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
1636
|
+
}, {
|
|
1637
|
+
error: null;
|
|
1638
|
+
status: "pending";
|
|
1639
|
+
action_attempt_id: string;
|
|
1640
|
+
result: null;
|
|
1641
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
1642
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1643
|
+
action_attempt_id: z.ZodString;
|
|
1644
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
1645
|
+
}, {
|
|
1646
|
+
status: z.ZodLiteral<"success">;
|
|
1647
|
+
error: z.ZodNull;
|
|
1648
|
+
}>, {
|
|
1649
|
+
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
1650
|
+
result: z.ZodObject<{
|
|
1651
|
+
workspace_id: z.ZodString;
|
|
1652
|
+
access_method_id: z.ZodString;
|
|
1653
|
+
display_name: z.ZodString;
|
|
1654
|
+
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
1655
|
+
created_at: z.ZodString;
|
|
1656
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
is_card_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
1659
|
+
}, "strip", z.ZodTypeAny, {
|
|
1660
|
+
display_name: string;
|
|
1661
|
+
created_at: string;
|
|
1662
|
+
workspace_id: string;
|
|
1663
|
+
mode: "code" | "card" | "mobile_key";
|
|
1664
|
+
access_method_id: string;
|
|
1665
|
+
issued_at?: string | undefined;
|
|
1666
|
+
instant_key_url?: string | undefined;
|
|
1667
|
+
is_card_encoding_required?: boolean | undefined;
|
|
1668
|
+
}, {
|
|
1669
|
+
display_name: string;
|
|
1670
|
+
created_at: string;
|
|
1671
|
+
workspace_id: string;
|
|
1672
|
+
mode: "code" | "card" | "mobile_key";
|
|
1673
|
+
access_method_id: string;
|
|
1674
|
+
issued_at?: string | undefined;
|
|
1675
|
+
instant_key_url?: string | undefined;
|
|
1676
|
+
is_card_encoding_required?: boolean | undefined;
|
|
1677
|
+
}>;
|
|
1678
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1679
|
+
error: null;
|
|
1680
|
+
status: "success";
|
|
1681
|
+
action_attempt_id: string;
|
|
1682
|
+
result: {
|
|
1683
|
+
display_name: string;
|
|
1684
|
+
created_at: string;
|
|
1685
|
+
workspace_id: string;
|
|
1686
|
+
mode: "code" | "card" | "mobile_key";
|
|
1687
|
+
access_method_id: string;
|
|
1688
|
+
issued_at?: string | undefined;
|
|
1689
|
+
instant_key_url?: string | undefined;
|
|
1690
|
+
is_card_encoding_required?: boolean | undefined;
|
|
1691
|
+
};
|
|
1692
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
1693
|
+
}, {
|
|
1694
|
+
error: null;
|
|
1695
|
+
status: "success";
|
|
1696
|
+
action_attempt_id: string;
|
|
1697
|
+
result: {
|
|
1698
|
+
display_name: string;
|
|
1699
|
+
created_at: string;
|
|
1700
|
+
workspace_id: string;
|
|
1701
|
+
mode: "code" | "card" | "mobile_key";
|
|
1702
|
+
access_method_id: string;
|
|
1703
|
+
issued_at?: string | undefined;
|
|
1704
|
+
instant_key_url?: string | undefined;
|
|
1705
|
+
is_card_encoding_required?: boolean | undefined;
|
|
1706
|
+
};
|
|
1707
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
1708
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1709
|
+
action_attempt_id: z.ZodString;
|
|
1710
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
1711
|
+
}, {
|
|
1712
|
+
status: z.ZodLiteral<"error">;
|
|
1713
|
+
result: z.ZodNull;
|
|
1714
|
+
}>, {
|
|
1715
|
+
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
1716
|
+
error: z.ZodUnion<[z.ZodObject<{
|
|
1717
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
1718
|
+
message: z.ZodString;
|
|
1719
|
+
}, "strip", z.ZodTypeAny, {
|
|
1720
|
+
type: "uncategorized_error";
|
|
1721
|
+
message: string;
|
|
1722
|
+
}, {
|
|
1723
|
+
type: "uncategorized_error";
|
|
1724
|
+
message: string;
|
|
1725
|
+
}>, z.ZodObject<{
|
|
1726
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
1727
|
+
message: z.ZodString;
|
|
1728
|
+
}, "strip", z.ZodTypeAny, {
|
|
1729
|
+
type: "action_attempt_expired";
|
|
1730
|
+
message: string;
|
|
1731
|
+
}, {
|
|
1732
|
+
type: "action_attempt_expired";
|
|
1733
|
+
message: string;
|
|
1734
|
+
}>, z.ZodObject<{
|
|
1735
|
+
type: z.ZodLiteral<"no_credential_on_encoder">;
|
|
1736
|
+
message: z.ZodString;
|
|
1737
|
+
}, "strip", z.ZodTypeAny, {
|
|
1738
|
+
type: "no_credential_on_encoder";
|
|
1739
|
+
message: string;
|
|
1740
|
+
}, {
|
|
1741
|
+
type: "no_credential_on_encoder";
|
|
1742
|
+
message: string;
|
|
1743
|
+
}>, z.ZodObject<{
|
|
1744
|
+
type: z.ZodLiteral<"incompatible_card_format">;
|
|
1745
|
+
message: z.ZodString;
|
|
1746
|
+
}, "strip", z.ZodTypeAny, {
|
|
1747
|
+
type: "incompatible_card_format";
|
|
1748
|
+
message: string;
|
|
1749
|
+
}, {
|
|
1750
|
+
type: "incompatible_card_format";
|
|
1751
|
+
message: string;
|
|
1752
|
+
}>, z.ZodObject<{
|
|
1753
|
+
type: z.ZodLiteral<"credential_cannot_be_reissued">;
|
|
1754
|
+
message: z.ZodString;
|
|
1755
|
+
}, "strip", z.ZodTypeAny, {
|
|
1756
|
+
type: "credential_cannot_be_reissued";
|
|
1757
|
+
message: string;
|
|
1758
|
+
}, {
|
|
1759
|
+
type: "credential_cannot_be_reissued";
|
|
1760
|
+
message: string;
|
|
1761
|
+
}>]>;
|
|
1762
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1763
|
+
error: {
|
|
1764
|
+
type: "uncategorized_error";
|
|
1765
|
+
message: string;
|
|
1766
|
+
} | {
|
|
1767
|
+
type: "action_attempt_expired";
|
|
1768
|
+
message: string;
|
|
1769
|
+
} | {
|
|
1770
|
+
type: "no_credential_on_encoder";
|
|
1771
|
+
message: string;
|
|
1772
|
+
} | {
|
|
1773
|
+
type: "incompatible_card_format";
|
|
1774
|
+
message: string;
|
|
1775
|
+
} | {
|
|
1776
|
+
type: "credential_cannot_be_reissued";
|
|
1777
|
+
message: string;
|
|
1778
|
+
};
|
|
1779
|
+
status: "error";
|
|
1780
|
+
action_attempt_id: string;
|
|
1781
|
+
result: null;
|
|
1782
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
1783
|
+
}, {
|
|
1784
|
+
error: {
|
|
1785
|
+
type: "uncategorized_error";
|
|
1786
|
+
message: string;
|
|
1787
|
+
} | {
|
|
1788
|
+
type: "action_attempt_expired";
|
|
1789
|
+
message: string;
|
|
1790
|
+
} | {
|
|
1791
|
+
type: "no_credential_on_encoder";
|
|
1792
|
+
message: string;
|
|
1793
|
+
} | {
|
|
1794
|
+
type: "incompatible_card_format";
|
|
1795
|
+
message: string;
|
|
1796
|
+
} | {
|
|
1797
|
+
type: "credential_cannot_be_reissued";
|
|
1798
|
+
message: string;
|
|
1799
|
+
};
|
|
1800
|
+
status: "error";
|
|
1801
|
+
action_attempt_id: string;
|
|
1802
|
+
result: null;
|
|
1803
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
1804
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1805
|
+
action_attempt_id: z.ZodString;
|
|
1806
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
1807
|
+
}, {
|
|
1808
|
+
status: z.ZodLiteral<"pending">;
|
|
1809
|
+
result: z.ZodNull;
|
|
1810
|
+
error: z.ZodNull;
|
|
1628
1811
|
}>, {
|
|
1629
1812
|
action_type: z.ZodLiteral<"ENCODE_CREDENTIAL">;
|
|
1630
1813
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js';
|
|
3
3
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
4
|
+
import { encode_access_method_action_attempt } from './encode-access-method.js';
|
|
4
5
|
import { encode_credential_action_attempt } from './encode-credential.js';
|
|
5
6
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
6
7
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
@@ -14,6 +15,7 @@ export const action_attempt = z.union([
|
|
|
14
15
|
...lock_door_action_attempt.options,
|
|
15
16
|
...unlock_door_action_attempt.options,
|
|
16
17
|
...scan_credential_action_attempt.options,
|
|
18
|
+
...encode_access_method_action_attempt.options,
|
|
17
19
|
...encode_credential_action_attempt.options,
|
|
18
20
|
...reset_sandbox_workspace_action_attempt.options,
|
|
19
21
|
...set_fan_mode_action_attempt.options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,mCAAmC,CAAC,OAAO;IAC9C,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const encode_access_method_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
+
}, {
|
|
6
|
+
status: z.ZodLiteral<"pending">;
|
|
7
|
+
result: z.ZodNull;
|
|
8
|
+
error: z.ZodNull;
|
|
9
|
+
}>, {
|
|
10
|
+
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
error: null;
|
|
13
|
+
status: "pending";
|
|
14
|
+
action_attempt_id: string;
|
|
15
|
+
result: null;
|
|
16
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
17
|
+
}, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
23
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
|
+
action_attempt_id: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
26
|
+
}, {
|
|
27
|
+
status: z.ZodLiteral<"success">;
|
|
28
|
+
error: z.ZodNull;
|
|
29
|
+
}>, {
|
|
30
|
+
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
31
|
+
result: z.ZodObject<{
|
|
32
|
+
workspace_id: z.ZodString;
|
|
33
|
+
access_method_id: z.ZodString;
|
|
34
|
+
display_name: z.ZodString;
|
|
35
|
+
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
36
|
+
created_at: z.ZodString;
|
|
37
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
38
|
+
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
is_card_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
display_name: string;
|
|
42
|
+
created_at: string;
|
|
43
|
+
workspace_id: string;
|
|
44
|
+
mode: "code" | "card" | "mobile_key";
|
|
45
|
+
access_method_id: string;
|
|
46
|
+
issued_at?: string | undefined;
|
|
47
|
+
instant_key_url?: string | undefined;
|
|
48
|
+
is_card_encoding_required?: boolean | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
display_name: string;
|
|
51
|
+
created_at: string;
|
|
52
|
+
workspace_id: string;
|
|
53
|
+
mode: "code" | "card" | "mobile_key";
|
|
54
|
+
access_method_id: string;
|
|
55
|
+
issued_at?: string | undefined;
|
|
56
|
+
instant_key_url?: string | undefined;
|
|
57
|
+
is_card_encoding_required?: boolean | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
}>, "strip", z.ZodTypeAny, {
|
|
60
|
+
error: null;
|
|
61
|
+
status: "success";
|
|
62
|
+
action_attempt_id: string;
|
|
63
|
+
result: {
|
|
64
|
+
display_name: string;
|
|
65
|
+
created_at: string;
|
|
66
|
+
workspace_id: string;
|
|
67
|
+
mode: "code" | "card" | "mobile_key";
|
|
68
|
+
access_method_id: string;
|
|
69
|
+
issued_at?: string | undefined;
|
|
70
|
+
instant_key_url?: string | undefined;
|
|
71
|
+
is_card_encoding_required?: boolean | undefined;
|
|
72
|
+
};
|
|
73
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
74
|
+
}, {
|
|
75
|
+
error: null;
|
|
76
|
+
status: "success";
|
|
77
|
+
action_attempt_id: string;
|
|
78
|
+
result: {
|
|
79
|
+
display_name: string;
|
|
80
|
+
created_at: string;
|
|
81
|
+
workspace_id: string;
|
|
82
|
+
mode: "code" | "card" | "mobile_key";
|
|
83
|
+
access_method_id: string;
|
|
84
|
+
issued_at?: string | undefined;
|
|
85
|
+
instant_key_url?: string | undefined;
|
|
86
|
+
is_card_encoding_required?: boolean | undefined;
|
|
87
|
+
};
|
|
88
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
89
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
90
|
+
action_attempt_id: z.ZodString;
|
|
91
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
92
|
+
}, {
|
|
93
|
+
status: z.ZodLiteral<"error">;
|
|
94
|
+
result: z.ZodNull;
|
|
95
|
+
}>, {
|
|
96
|
+
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
97
|
+
error: z.ZodUnion<[z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
99
|
+
message: z.ZodString;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
type: "uncategorized_error";
|
|
102
|
+
message: string;
|
|
103
|
+
}, {
|
|
104
|
+
type: "uncategorized_error";
|
|
105
|
+
message: string;
|
|
106
|
+
}>, z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
108
|
+
message: z.ZodString;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
type: "action_attempt_expired";
|
|
111
|
+
message: string;
|
|
112
|
+
}, {
|
|
113
|
+
type: "action_attempt_expired";
|
|
114
|
+
message: string;
|
|
115
|
+
}>, z.ZodObject<{
|
|
116
|
+
type: z.ZodLiteral<"no_credential_on_encoder">;
|
|
117
|
+
message: z.ZodString;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: "no_credential_on_encoder";
|
|
120
|
+
message: string;
|
|
121
|
+
}, {
|
|
122
|
+
type: "no_credential_on_encoder";
|
|
123
|
+
message: string;
|
|
124
|
+
}>, z.ZodObject<{
|
|
125
|
+
type: z.ZodLiteral<"incompatible_card_format">;
|
|
126
|
+
message: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
type: "incompatible_card_format";
|
|
129
|
+
message: string;
|
|
130
|
+
}, {
|
|
131
|
+
type: "incompatible_card_format";
|
|
132
|
+
message: string;
|
|
133
|
+
}>, z.ZodObject<{
|
|
134
|
+
type: z.ZodLiteral<"credential_cannot_be_reissued">;
|
|
135
|
+
message: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
type: "credential_cannot_be_reissued";
|
|
138
|
+
message: string;
|
|
139
|
+
}, {
|
|
140
|
+
type: "credential_cannot_be_reissued";
|
|
141
|
+
message: string;
|
|
142
|
+
}>]>;
|
|
143
|
+
}>, "strip", z.ZodTypeAny, {
|
|
144
|
+
error: {
|
|
145
|
+
type: "uncategorized_error";
|
|
146
|
+
message: string;
|
|
147
|
+
} | {
|
|
148
|
+
type: "action_attempt_expired";
|
|
149
|
+
message: string;
|
|
150
|
+
} | {
|
|
151
|
+
type: "no_credential_on_encoder";
|
|
152
|
+
message: string;
|
|
153
|
+
} | {
|
|
154
|
+
type: "incompatible_card_format";
|
|
155
|
+
message: string;
|
|
156
|
+
} | {
|
|
157
|
+
type: "credential_cannot_be_reissued";
|
|
158
|
+
message: string;
|
|
159
|
+
};
|
|
160
|
+
status: "error";
|
|
161
|
+
action_attempt_id: string;
|
|
162
|
+
result: null;
|
|
163
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
164
|
+
}, {
|
|
165
|
+
error: {
|
|
166
|
+
type: "uncategorized_error";
|
|
167
|
+
message: string;
|
|
168
|
+
} | {
|
|
169
|
+
type: "action_attempt_expired";
|
|
170
|
+
message: string;
|
|
171
|
+
} | {
|
|
172
|
+
type: "no_credential_on_encoder";
|
|
173
|
+
message: string;
|
|
174
|
+
} | {
|
|
175
|
+
type: "incompatible_card_format";
|
|
176
|
+
message: string;
|
|
177
|
+
} | {
|
|
178
|
+
type: "credential_cannot_be_reissued";
|
|
179
|
+
message: string;
|
|
180
|
+
};
|
|
181
|
+
status: "error";
|
|
182
|
+
action_attempt_id: string;
|
|
183
|
+
result: null;
|
|
184
|
+
action_type: "ENCODE_ACCESS_METHOD";
|
|
185
|
+
}>]>;
|
|
186
|
+
export type EncodeAccessMethodActionAttempt = z.infer<typeof encode_access_method_action_attempt>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { access_method } from '../access-grants/access-method.js';
|
|
3
|
+
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
|
+
const action_type = z
|
|
5
|
+
.literal('ENCODE_ACCESS_METHOD')
|
|
6
|
+
.describe('Type of action that the action attempt tracks.');
|
|
7
|
+
const no_credential_on_encoder_error = z.object({
|
|
8
|
+
type: z.literal('no_credential_on_encoder'),
|
|
9
|
+
message: z.string(),
|
|
10
|
+
});
|
|
11
|
+
const incompatible_card_format_error = z.object({
|
|
12
|
+
type: z.literal('incompatible_card_format'),
|
|
13
|
+
message: z.string(),
|
|
14
|
+
});
|
|
15
|
+
const credential_cannot_be_reissued = z.object({
|
|
16
|
+
type: z.literal('credential_cannot_be_reissued'),
|
|
17
|
+
message: z.string(),
|
|
18
|
+
});
|
|
19
|
+
const error = z.union([
|
|
20
|
+
...common_action_attempt_errors,
|
|
21
|
+
no_credential_on_encoder_error,
|
|
22
|
+
incompatible_card_format_error,
|
|
23
|
+
credential_cannot_be_reissued,
|
|
24
|
+
]);
|
|
25
|
+
const result = access_method.describe('If an encoding attempt was successful, includes the `access_method` data that was encoded onto the card.');
|
|
26
|
+
export const encode_access_method_action_attempt = z.discriminatedUnion('status', [
|
|
27
|
+
common_pending_action_attempt
|
|
28
|
+
.extend({
|
|
29
|
+
action_type,
|
|
30
|
+
})
|
|
31
|
+
.describe('Action attempt to track encoding credential data from the physical encoder onto a card.'),
|
|
32
|
+
common_succeeded_action_attempt
|
|
33
|
+
.extend({
|
|
34
|
+
action_type,
|
|
35
|
+
result,
|
|
36
|
+
})
|
|
37
|
+
.describe('Action attempt to indicate that encoding access method data from the physical encoder onto a card succeeded.'),
|
|
38
|
+
common_failed_action_attempt
|
|
39
|
+
.extend({ action_type, error })
|
|
40
|
+
.describe('Action attempt to indicate that encoding access method data from the physical encoder onto a card failed.'),
|
|
41
|
+
]);
|
|
42
|
+
//# sourceMappingURL=encode-access-method.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encode-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,sBAAsB,CAAC;KAC/B,QAAQ,CAAC,gDAAgD,CAAC,CAAA;AAE7D,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,CACnC,0GAA0G,CAC3G,CAAA;AAED,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,kBAAkB,CACrE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CACP,yFAAyF,CAC1F;IACH,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CACP,8GAA8G,CAC/G;IACH,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CACP,2GAA2G,CAC5G;CACJ,CACF,CAAA"}
|
|
@@ -76,9 +76,9 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
76
76
|
card_holder?: string | undefined;
|
|
77
77
|
}>>;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
created_at: string | null;
|
|
79
80
|
starts_at: string | null;
|
|
80
81
|
ends_at: string | null;
|
|
81
|
-
created_at: string | null;
|
|
82
82
|
card_number: string | null;
|
|
83
83
|
is_issued: boolean | null;
|
|
84
84
|
visionline_metadata?: {
|
|
@@ -96,9 +96,9 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
96
96
|
card_holder?: string | undefined;
|
|
97
97
|
} | undefined;
|
|
98
98
|
}, {
|
|
99
|
+
created_at: string | null;
|
|
99
100
|
starts_at: string | null;
|
|
100
101
|
ends_at: string | null;
|
|
101
|
-
created_at: string | null;
|
|
102
102
|
card_number: string | null;
|
|
103
103
|
is_issued: boolean | null;
|
|
104
104
|
visionline_metadata?: {
|
|
@@ -729,9 +729,9 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
729
729
|
warning_message: string;
|
|
730
730
|
}[];
|
|
731
731
|
acs_credential_on_encoder: {
|
|
732
|
+
created_at: string | null;
|
|
732
733
|
starts_at: string | null;
|
|
733
734
|
ends_at: string | null;
|
|
734
|
-
created_at: string | null;
|
|
735
735
|
card_number: string | null;
|
|
736
736
|
is_issued: boolean | null;
|
|
737
737
|
visionline_metadata?: {
|
|
@@ -894,9 +894,9 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
894
894
|
warning_message: string;
|
|
895
895
|
}[];
|
|
896
896
|
acs_credential_on_encoder: {
|
|
897
|
+
created_at: string | null;
|
|
897
898
|
starts_at: string | null;
|
|
898
899
|
ends_at: string | null;
|
|
899
|
-
created_at: string | null;
|
|
900
900
|
card_number: string | null;
|
|
901
901
|
is_issued: boolean | null;
|
|
902
902
|
visionline_metadata?: {
|
|
@@ -1064,9 +1064,9 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
1064
1064
|
warning_message: string;
|
|
1065
1065
|
}[];
|
|
1066
1066
|
acs_credential_on_encoder: {
|
|
1067
|
+
created_at: string | null;
|
|
1067
1068
|
starts_at: string | null;
|
|
1068
1069
|
ends_at: string | null;
|
|
1069
|
-
created_at: string | null;
|
|
1070
1070
|
card_number: string | null;
|
|
1071
1071
|
is_issued: boolean | null;
|
|
1072
1072
|
visionline_metadata?: {
|
|
@@ -1235,9 +1235,9 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
1235
1235
|
warning_message: string;
|
|
1236
1236
|
}[];
|
|
1237
1237
|
acs_credential_on_encoder: {
|
|
1238
|
+
created_at: string | null;
|
|
1238
1239
|
starts_at: string | null;
|
|
1239
1240
|
ends_at: string | null;
|
|
1240
|
-
created_at: string | null;
|
|
1241
1241
|
card_number: string | null;
|
|
1242
1242
|
is_issued: boolean | null;
|
|
1243
1243
|
visionline_metadata?: {
|