@seamapi/types 1.426.0 → 1.428.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.
Files changed (26) hide show
  1. package/dist/connect.cjs +150 -437
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3041 -5161
  4. package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
  5. package/lib/seam/connect/models/access-grants/access-grant.js +5 -0
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/access-method.d.ts +5 -5
  8. package/lib/seam/connect/models/access-grants/access-method.js +3 -2
  9. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +0 -183
  11. package/lib/seam/connect/models/action-attempts/action-attempt.js +1 -3
  12. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  13. package/lib/seam/connect/openapi.d.ts +84 -192
  14. package/lib/seam/connect/openapi.js +74 -285
  15. package/lib/seam/connect/openapi.js.map +1 -1
  16. package/lib/seam/connect/route-types.d.ts +2571 -4403
  17. package/package.json +1 -1
  18. package/src/lib/seam/connect/models/access-grants/access-grant.ts +7 -0
  19. package/src/lib/seam/connect/models/access-grants/access-method.ts +3 -2
  20. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +1 -3
  21. package/src/lib/seam/connect/openapi.ts +78 -318
  22. package/src/lib/seam/connect/route-types.ts +3617 -5657
  23. package/lib/seam/connect/models/action-attempts/encode-access-method.d.ts +0 -186
  24. package/lib/seam/connect/models/action-attempts/encode-access-method.js +0 -60
  25. package/lib/seam/connect/models/action-attempts/encode-access-method.js.map +0 -1
  26. package/src/lib/seam/connect/models/action-attempts/encode-access-method.ts +0 -101
@@ -23,6 +23,7 @@ export declare const access_grant: z.ZodObject<{
23
23
  }>, "many">;
24
24
  access_method_ids: z.ZodArray<z.ZodString, "many">;
25
25
  display_name: z.ZodString;
26
+ instant_key_url: z.ZodOptional<z.ZodString>;
26
27
  created_at: z.ZodString;
27
28
  starts_at: z.ZodOptional<z.ZodString>;
28
29
  ends_at: z.ZodOptional<z.ZodString>;
@@ -43,6 +44,7 @@ export declare const access_grant: z.ZodObject<{
43
44
  access_method_ids: string[];
44
45
  starts_at?: string | undefined;
45
46
  ends_at?: string | undefined;
47
+ instant_key_url?: string | undefined;
46
48
  }, {
47
49
  display_name: string;
48
50
  workspace_id: string;
@@ -60,5 +62,6 @@ export declare const access_grant: z.ZodObject<{
60
62
  access_method_ids: string[];
61
63
  starts_at?: string | undefined;
62
64
  ends_at?: string | undefined;
65
+ instant_key_url?: string | undefined;
63
66
  }>;
64
67
  export type AccessGrant = z.infer<typeof access_grant>;
@@ -25,6 +25,11 @@ export const access_grant = z.object({
25
25
  .array(z.string().uuid())
26
26
  .describe('IDs of the access methods created for the access grant.'),
27
27
  display_name: z.string().describe('Display name of the access grant.'),
28
+ instant_key_url: z
29
+ .string()
30
+ .url()
31
+ .optional()
32
+ .describe('Instant Key URL. Only returned if the access grant has a single mobile_key access_method. '),
28
33
  created_at: z
29
34
  .string()
30
35
  .datetime()
@@ -1 +1 @@
1
- {"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,4DAA4D,CAAC;IACzE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;S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AC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
@@ -7,24 +7,24 @@ export declare const access_method: z.ZodObject<{
7
7
  created_at: z.ZodString;
8
8
  issued_at: z.ZodOptional<z.ZodString>;
9
9
  instant_key_url: z.ZodOptional<z.ZodString>;
10
- is_card_encoding_required: z.ZodOptional<z.ZodBoolean>;
10
+ is_encoding_required: z.ZodOptional<z.ZodBoolean>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  display_name: string;
13
13
  workspace_id: string;
14
14
  created_at: string;
15
15
  mode: "code" | "card" | "mobile_key";
16
16
  access_method_id: string;
17
- issued_at?: string | undefined;
18
17
  instant_key_url?: string | undefined;
19
- is_card_encoding_required?: boolean | undefined;
18
+ issued_at?: string | undefined;
19
+ is_encoding_required?: boolean | undefined;
20
20
  }, {
21
21
  display_name: string;
22
22
  workspace_id: string;
23
23
  created_at: string;
24
24
  mode: "code" | "card" | "mobile_key";
25
25
  access_method_id: string;
26
- issued_at?: string | undefined;
27
26
  instant_key_url?: string | undefined;
28
- is_card_encoding_required?: boolean | undefined;
27
+ issued_at?: string | undefined;
28
+ is_encoding_required?: boolean | undefined;
29
29
  }>;
30
30
  export type AccessMethod = z.infer<typeof access_method>;
@@ -20,12 +20,13 @@ export const access_method = z.object({
20
20
  .describe('Date and time at which the access method was issued.'),
21
21
  instant_key_url: z
22
22
  .string()
23
+ .url()
23
24
  .optional()
24
25
  .describe('URL of the Instant Key for mobile key access methods.'),
25
- is_card_encoding_required: z
26
+ is_encoding_required: z
26
27
  .boolean()
27
28
  .optional()
28
- .describe('Indicates whether card encoding is required for plastic card access methods.'),
29
+ .describe('Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.'),
29
30
  }).describe(`
30
31
  ---
31
32
  draft: Early access.
@@ -1 +1 @@
1
- {"version":3,"file":"access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IACxE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;IACnE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,yBAAyB,EAAE,CAAC;SACzB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,8EAA8E,CAC/E;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
1
+ {"version":3,"file":"access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IACxE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;IACnE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,oBAAoB,EAAE,CAAC;SACpB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qIAAqI,CACtI;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
@@ -1657,189 +1657,6 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
1657
1657
  status: z.ZodLiteral<"pending">;
1658
1658
  result: z.ZodNull;
1659
1659
  error: z.ZodNull;
1660
- }>, {
1661
- action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
1662
- }>, "strip", z.ZodTypeAny, {
1663
- error: null;
1664
- status: "pending";
1665
- action_attempt_id: string;
1666
- result: null;
1667
- action_type: "ENCODE_ACCESS_METHOD";
1668
- }, {
1669
- error: null;
1670
- status: "pending";
1671
- action_attempt_id: string;
1672
- result: null;
1673
- action_type: "ENCODE_ACCESS_METHOD";
1674
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1675
- action_attempt_id: z.ZodString;
1676
- status: z.ZodEnum<["pending", "success", "error"]>;
1677
- }, {
1678
- status: z.ZodLiteral<"success">;
1679
- error: z.ZodNull;
1680
- }>, {
1681
- action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
1682
- result: z.ZodObject<{
1683
- workspace_id: z.ZodString;
1684
- access_method_id: z.ZodString;
1685
- display_name: z.ZodString;
1686
- mode: z.ZodEnum<["code", "card", "mobile_key"]>;
1687
- created_at: z.ZodString;
1688
- issued_at: z.ZodOptional<z.ZodString>;
1689
- instant_key_url: z.ZodOptional<z.ZodString>;
1690
- is_card_encoding_required: z.ZodOptional<z.ZodBoolean>;
1691
- }, "strip", z.ZodTypeAny, {
1692
- display_name: string;
1693
- workspace_id: string;
1694
- created_at: string;
1695
- mode: "code" | "card" | "mobile_key";
1696
- access_method_id: string;
1697
- issued_at?: string | undefined;
1698
- instant_key_url?: string | undefined;
1699
- is_card_encoding_required?: boolean | undefined;
1700
- }, {
1701
- display_name: string;
1702
- workspace_id: string;
1703
- created_at: string;
1704
- mode: "code" | "card" | "mobile_key";
1705
- access_method_id: string;
1706
- issued_at?: string | undefined;
1707
- instant_key_url?: string | undefined;
1708
- is_card_encoding_required?: boolean | undefined;
1709
- }>;
1710
- }>, "strip", z.ZodTypeAny, {
1711
- error: null;
1712
- status: "success";
1713
- action_attempt_id: string;
1714
- result: {
1715
- display_name: string;
1716
- workspace_id: string;
1717
- created_at: string;
1718
- mode: "code" | "card" | "mobile_key";
1719
- access_method_id: string;
1720
- issued_at?: string | undefined;
1721
- instant_key_url?: string | undefined;
1722
- is_card_encoding_required?: boolean | undefined;
1723
- };
1724
- action_type: "ENCODE_ACCESS_METHOD";
1725
- }, {
1726
- error: null;
1727
- status: "success";
1728
- action_attempt_id: string;
1729
- result: {
1730
- display_name: string;
1731
- workspace_id: string;
1732
- created_at: string;
1733
- mode: "code" | "card" | "mobile_key";
1734
- access_method_id: string;
1735
- issued_at?: string | undefined;
1736
- instant_key_url?: string | undefined;
1737
- is_card_encoding_required?: boolean | undefined;
1738
- };
1739
- action_type: "ENCODE_ACCESS_METHOD";
1740
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1741
- action_attempt_id: z.ZodString;
1742
- status: z.ZodEnum<["pending", "success", "error"]>;
1743
- }, {
1744
- status: z.ZodLiteral<"error">;
1745
- result: z.ZodNull;
1746
- }>, {
1747
- action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
1748
- error: z.ZodUnion<[z.ZodObject<{
1749
- type: z.ZodLiteral<"uncategorized_error">;
1750
- message: z.ZodString;
1751
- }, "strip", z.ZodTypeAny, {
1752
- type: "uncategorized_error";
1753
- message: string;
1754
- }, {
1755
- type: "uncategorized_error";
1756
- message: string;
1757
- }>, z.ZodObject<{
1758
- type: z.ZodLiteral<"action_attempt_expired">;
1759
- message: z.ZodString;
1760
- }, "strip", z.ZodTypeAny, {
1761
- type: "action_attempt_expired";
1762
- message: string;
1763
- }, {
1764
- type: "action_attempt_expired";
1765
- message: string;
1766
- }>, z.ZodObject<{
1767
- type: z.ZodLiteral<"no_credential_on_encoder">;
1768
- message: z.ZodString;
1769
- }, "strip", z.ZodTypeAny, {
1770
- type: "no_credential_on_encoder";
1771
- message: string;
1772
- }, {
1773
- type: "no_credential_on_encoder";
1774
- message: string;
1775
- }>, z.ZodObject<{
1776
- type: z.ZodLiteral<"incompatible_card_format">;
1777
- message: z.ZodString;
1778
- }, "strip", z.ZodTypeAny, {
1779
- type: "incompatible_card_format";
1780
- message: string;
1781
- }, {
1782
- type: "incompatible_card_format";
1783
- message: string;
1784
- }>, z.ZodObject<{
1785
- type: z.ZodLiteral<"credential_cannot_be_reissued">;
1786
- message: z.ZodString;
1787
- }, "strip", z.ZodTypeAny, {
1788
- type: "credential_cannot_be_reissued";
1789
- message: string;
1790
- }, {
1791
- type: "credential_cannot_be_reissued";
1792
- message: string;
1793
- }>]>;
1794
- }>, "strip", z.ZodTypeAny, {
1795
- error: {
1796
- type: "uncategorized_error";
1797
- message: string;
1798
- } | {
1799
- type: "action_attempt_expired";
1800
- message: string;
1801
- } | {
1802
- type: "no_credential_on_encoder";
1803
- message: string;
1804
- } | {
1805
- type: "incompatible_card_format";
1806
- message: string;
1807
- } | {
1808
- type: "credential_cannot_be_reissued";
1809
- message: string;
1810
- };
1811
- status: "error";
1812
- action_attempt_id: string;
1813
- result: null;
1814
- action_type: "ENCODE_ACCESS_METHOD";
1815
- }, {
1816
- error: {
1817
- type: "uncategorized_error";
1818
- message: string;
1819
- } | {
1820
- type: "action_attempt_expired";
1821
- message: string;
1822
- } | {
1823
- type: "no_credential_on_encoder";
1824
- message: string;
1825
- } | {
1826
- type: "incompatible_card_format";
1827
- message: string;
1828
- } | {
1829
- type: "credential_cannot_be_reissued";
1830
- message: string;
1831
- };
1832
- status: "error";
1833
- action_attempt_id: string;
1834
- result: null;
1835
- action_type: "ENCODE_ACCESS_METHOD";
1836
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1837
- action_attempt_id: z.ZodString;
1838
- status: z.ZodEnum<["pending", "success", "error"]>;
1839
- }, {
1840
- status: z.ZodLiteral<"pending">;
1841
- result: z.ZodNull;
1842
- error: z.ZodNull;
1843
1660
  }>, {
1844
1661
  action_type: z.ZodLiteral<"ENCODE_CREDENTIAL">;
1845
1662
  }>, "strip", z.ZodTypeAny, {
@@ -1,7 +1,6 @@
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';
5
4
  import { encode_credential_action_attempt } from './encode-credential.js';
6
5
  import { lock_door_action_attempt } from './lock-door.js';
7
6
  import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js';
@@ -16,7 +15,6 @@ export const action_attempt = z.union([
16
15
  ...lock_door_action_attempt.options,
17
16
  ...unlock_door_action_attempt.options,
18
17
  ...scan_credential_action_attempt.options,
19
- ...encode_access_method_action_attempt.options,
20
18
  ...encode_credential_action_attempt.options,
21
19
  ...reset_sandbox_workspace_action_attempt.options,
22
20
  ...set_fan_mode_action_attempt.options,
@@ -31,7 +29,7 @@ export const action_attempt = z.union([
31
29
  route_path: /action_attempts
32
30
  ---
33
31
  Represents an action attempt that enables you to keep track of the progress of your action that affects a physical device or system.actions against a device. Action attempts are useful because the physical world is intrinsically asynchronous.
34
-
32
+
35
33
  When you request for a device to perform an action, the Seam API immediately returns an action attempt object. In the background, the Seam API performs the action.
36
34
 
37
35
  See also [Action Attempts](https://docs.seam.co/latest/core-concepts/action-attempts).
@@ -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,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,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,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,uCAAuC,CAAC,OAAO;IAClD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,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,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,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,uCAAuC,CAAC,OAAO;IAClD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
@@ -402,6 +402,11 @@ declare const _default: {
402
402
  format: string;
403
403
  type: string;
404
404
  };
405
+ instant_key_url: {
406
+ description: string;
407
+ format: string;
408
+ type: string;
409
+ };
405
410
  location_ids: {
406
411
  deprecated: boolean;
407
412
  items: {
@@ -491,9 +496,10 @@ declare const _default: {
491
496
  };
492
497
  instant_key_url: {
493
498
  description: string;
499
+ format: string;
494
500
  type: string;
495
501
  };
496
- is_card_encoding_required: {
502
+ is_encoding_required: {
497
503
  description: string;
498
504
  type: string;
499
505
  };
@@ -1970,14 +1976,6 @@ declare const _default: {
1970
1976
  acs_credential_on_encoder?: never;
1971
1977
  acs_credential_on_seam?: never;
1972
1978
  warnings?: never;
1973
- access_method_id?: never;
1974
- created_at?: never;
1975
- display_name?: never;
1976
- instant_key_url?: never;
1977
- is_card_encoding_required?: never;
1978
- issued_at?: never;
1979
- mode?: never;
1980
- workspace_id?: never;
1981
1979
  access_code?: never;
1982
1980
  noise_threshold?: never;
1983
1981
  };
@@ -2692,14 +2690,6 @@ declare const _default: {
2692
2690
  };
2693
2691
  type: string;
2694
2692
  };
2695
- access_method_id?: never;
2696
- created_at?: never;
2697
- display_name?: never;
2698
- instant_key_url?: never;
2699
- is_card_encoding_required?: never;
2700
- issued_at?: never;
2701
- mode?: never;
2702
- workspace_id?: never;
2703
2693
  access_code?: never;
2704
2694
  noise_threshold?: never;
2705
2695
  };
@@ -2766,85 +2756,6 @@ declare const _default: {
2766
2756
  };
2767
2757
  required: string[];
2768
2758
  type: string;
2769
- } | {
2770
- description: string;
2771
- properties: {
2772
- action_attempt_id: {
2773
- description: string;
2774
- format: string;
2775
- type: string;
2776
- };
2777
- action_type: {
2778
- description: string;
2779
- enum: string[];
2780
- type: string;
2781
- };
2782
- error: {
2783
- description: string;
2784
- nullable: boolean;
2785
- properties?: never;
2786
- required?: never;
2787
- type?: never;
2788
- oneOf?: never;
2789
- };
2790
- result: {
2791
- description: string;
2792
- properties: {
2793
- access_method_id: {
2794
- description: string;
2795
- format: string;
2796
- type: string;
2797
- };
2798
- created_at: {
2799
- description: string;
2800
- format: string;
2801
- type: string;
2802
- };
2803
- display_name: {
2804
- description: string;
2805
- type: string;
2806
- };
2807
- instant_key_url: {
2808
- description: string;
2809
- type: string;
2810
- };
2811
- is_card_encoding_required: {
2812
- description: string;
2813
- type: string;
2814
- };
2815
- issued_at: {
2816
- description: string;
2817
- format: string;
2818
- type: string;
2819
- };
2820
- mode: {
2821
- description: string;
2822
- enum: string[];
2823
- type: string;
2824
- };
2825
- workspace_id: {
2826
- description: string;
2827
- format: string;
2828
- type: string;
2829
- };
2830
- acs_credential_on_encoder?: never;
2831
- acs_credential_on_seam?: never;
2832
- warnings?: never;
2833
- access_code?: never;
2834
- noise_threshold?: never;
2835
- };
2836
- required: string[];
2837
- type: string;
2838
- nullable?: never;
2839
- oneOf?: never;
2840
- };
2841
- status: {
2842
- enum: string[];
2843
- type: string;
2844
- };
2845
- };
2846
- required: string[];
2847
- type: string;
2848
2759
  } | {
2849
2760
  description: string;
2850
2761
  properties: {
@@ -3447,14 +3358,6 @@ declare const _default: {
3447
3358
  acs_credential_on_encoder?: never;
3448
3359
  acs_credential_on_seam?: never;
3449
3360
  warnings?: never;
3450
- access_method_id?: never;
3451
- created_at?: never;
3452
- display_name?: never;
3453
- instant_key_url?: never;
3454
- is_card_encoding_required?: never;
3455
- issued_at?: never;
3456
- mode?: never;
3457
- workspace_id?: never;
3458
3361
  access_code?: never;
3459
3362
  noise_threshold?: never;
3460
3363
  };
@@ -3545,14 +3448,6 @@ declare const _default: {
3545
3448
  acs_credential_on_encoder?: never;
3546
3449
  acs_credential_on_seam?: never;
3547
3450
  warnings?: never;
3548
- access_method_id?: never;
3549
- created_at?: never;
3550
- display_name?: never;
3551
- instant_key_url?: never;
3552
- is_card_encoding_required?: never;
3553
- issued_at?: never;
3554
- mode?: never;
3555
- workspace_id?: never;
3556
3451
  noise_threshold?: never;
3557
3452
  };
3558
3453
  type: string;
@@ -3597,14 +3492,6 @@ declare const _default: {
3597
3492
  acs_credential_on_encoder?: never;
3598
3493
  acs_credential_on_seam?: never;
3599
3494
  warnings?: never;
3600
- access_method_id?: never;
3601
- created_at?: never;
3602
- display_name?: never;
3603
- instant_key_url?: never;
3604
- is_card_encoding_required?: never;
3605
- issued_at?: never;
3606
- mode?: never;
3607
- workspace_id?: never;
3608
3495
  access_code?: never;
3609
3496
  };
3610
3497
  type: string;
@@ -16816,6 +16703,82 @@ declare const _default: {
16816
16703
  'x-title': string;
16817
16704
  };
16818
16705
  };
16706
+ '/access_methods/encode': {
16707
+ post: {
16708
+ description: string;
16709
+ operationId: string;
16710
+ requestBody: {
16711
+ content: {
16712
+ 'application/json': {
16713
+ schema: {
16714
+ properties: {
16715
+ access_method_id: {
16716
+ description: string;
16717
+ format: string;
16718
+ type: string;
16719
+ };
16720
+ acs_encoder_id: {
16721
+ description: string;
16722
+ format: string;
16723
+ type: string;
16724
+ };
16725
+ };
16726
+ required: string[];
16727
+ type: string;
16728
+ };
16729
+ };
16730
+ };
16731
+ };
16732
+ responses: {
16733
+ 200: {
16734
+ content: {
16735
+ 'application/json': {
16736
+ schema: {
16737
+ properties: {
16738
+ action_attempt: {
16739
+ $ref: string;
16740
+ };
16741
+ ok: {
16742
+ type: string;
16743
+ };
16744
+ };
16745
+ required: string[];
16746
+ type: string;
16747
+ };
16748
+ };
16749
+ };
16750
+ description: string;
16751
+ };
16752
+ 400: {
16753
+ description: string;
16754
+ };
16755
+ 401: {
16756
+ description: string;
16757
+ };
16758
+ };
16759
+ security: ({
16760
+ pat_with_workspace: never[];
16761
+ console_session_with_workspace?: never;
16762
+ api_key?: never;
16763
+ } | {
16764
+ console_session_with_workspace: never[];
16765
+ pat_with_workspace?: never;
16766
+ api_key?: never;
16767
+ } | {
16768
+ api_key: never[];
16769
+ pat_with_workspace?: never;
16770
+ console_session_with_workspace?: never;
16771
+ })[];
16772
+ summary: string;
16773
+ tags: never[];
16774
+ 'x-action-attempt-type': string;
16775
+ 'x-fern-sdk-group-name': string[];
16776
+ 'x-fern-sdk-method-name': string;
16777
+ 'x-fern-sdk-return-value': string;
16778
+ 'x-response-key': string;
16779
+ 'x-title': string;
16780
+ };
16781
+ };
16819
16782
  '/access_methods/get': {
16820
16783
  get: {
16821
16784
  description: string;
@@ -20102,7 +20065,7 @@ declare const _default: {
20102
20065
  'x-title': string;
20103
20066
  };
20104
20067
  };
20105
- '/acs/encoders/encode_access_method': {
20068
+ '/acs/encoders/encode_credential': {
20106
20069
  post: {
20107
20070
  description: string;
20108
20071
  operationId: string;
@@ -20116,77 +20079,6 @@ declare const _default: {
20116
20079
  format: string;
20117
20080
  type: string;
20118
20081
  };
20119
- acs_encoder_id: {
20120
- description: string;
20121
- format: string;
20122
- type: string;
20123
- };
20124
- };
20125
- required: string[];
20126
- type: string;
20127
- };
20128
- };
20129
- };
20130
- };
20131
- responses: {
20132
- 200: {
20133
- content: {
20134
- 'application/json': {
20135
- schema: {
20136
- properties: {
20137
- action_attempt: {
20138
- $ref: string;
20139
- };
20140
- ok: {
20141
- type: string;
20142
- };
20143
- };
20144
- required: string[];
20145
- type: string;
20146
- };
20147
- };
20148
- };
20149
- description: string;
20150
- };
20151
- 400: {
20152
- description: string;
20153
- };
20154
- 401: {
20155
- description: string;
20156
- };
20157
- };
20158
- security: ({
20159
- pat_with_workspace: never[];
20160
- console_session_with_workspace?: never;
20161
- api_key?: never;
20162
- } | {
20163
- console_session_with_workspace: never[];
20164
- pat_with_workspace?: never;
20165
- api_key?: never;
20166
- } | {
20167
- api_key: never[];
20168
- pat_with_workspace?: never;
20169
- console_session_with_workspace?: never;
20170
- })[];
20171
- summary: string;
20172
- tags: string[];
20173
- 'x-action-attempt-type': string;
20174
- 'x-fern-sdk-group-name': string[];
20175
- 'x-fern-sdk-method-name': string;
20176
- 'x-fern-sdk-return-value': string;
20177
- 'x-response-key': string;
20178
- 'x-title': string;
20179
- };
20180
- };
20181
- '/acs/encoders/encode_credential': {
20182
- post: {
20183
- description: string;
20184
- operationId: string;
20185
- requestBody: {
20186
- content: {
20187
- 'application/json': {
20188
- schema: {
20189
- properties: {
20190
20082
  acs_credential_id: {
20191
20083
  description: string;
20192
20084
  format: string;