@seamapi/http 1.69.0 → 1.70.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 (202) hide show
  1. package/LICENSE.txt +1 -1
  2. package/dist/connect.cjs +598 -546
  3. package/dist/connect.cjs.map +1 -1
  4. package/dist/connect.d.cts +223 -2380
  5. package/dist/index.cjs +598 -545
  6. package/dist/index.cjs.map +1 -1
  7. package/lib/seam/connect/resolve-action-attempt.d.ts +4 -2882
  8. package/lib/seam/connect/resolve-action-attempt.js +2 -0
  9. package/lib/seam/connect/resolve-action-attempt.js.map +1 -1
  10. package/lib/seam/connect/routes/access-codes/access-codes.js +4 -2
  11. package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
  12. package/lib/seam/connect/routes/access-codes/simulate/simulate.js +4 -2
  13. package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
  14. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +4 -2
  15. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
  16. package/lib/seam/connect/routes/access-grants/access-grants.js +4 -2
  17. package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
  18. package/lib/seam/connect/routes/access-methods/access-methods.js +4 -2
  19. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  20. package/lib/seam/connect/routes/acs/access-groups/access-groups.js +4 -2
  21. package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
  22. package/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.js +4 -2
  23. package/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.js.map +1 -1
  24. package/lib/seam/connect/routes/acs/acs.js +4 -2
  25. package/lib/seam/connect/routes/acs/acs.js.map +1 -1
  26. package/lib/seam/connect/routes/acs/credential-pools/credential-pools.js +4 -2
  27. package/lib/seam/connect/routes/acs/credential-pools/credential-pools.js.map +1 -1
  28. package/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.js +4 -2
  29. package/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.js.map +1 -1
  30. package/lib/seam/connect/routes/acs/credentials/credentials.js +4 -2
  31. package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
  32. package/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.js +4 -2
  33. package/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.js.map +1 -1
  34. package/lib/seam/connect/routes/acs/encoders/encoders.js +4 -2
  35. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
  36. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +4 -2
  37. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
  38. package/lib/seam/connect/routes/acs/entrances/entrances.js +4 -2
  39. package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
  40. package/lib/seam/connect/routes/acs/systems/systems.js +4 -2
  41. package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
  42. package/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.js +4 -2
  43. package/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.js.map +1 -1
  44. package/lib/seam/connect/routes/acs/users/users.js +4 -2
  45. package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
  46. package/lib/seam/connect/routes/action-attempts/action-attempts.js +4 -2
  47. package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
  48. package/lib/seam/connect/routes/bridges/bridges.js +4 -2
  49. package/lib/seam/connect/routes/bridges/bridges.js.map +1 -1
  50. package/lib/seam/connect/routes/client-sessions/client-sessions.js +4 -2
  51. package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
  52. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +4 -2
  53. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
  54. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +4 -2
  55. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
  56. package/lib/seam/connect/routes/customers/customers.js +4 -2
  57. package/lib/seam/connect/routes/customers/customers.js.map +1 -1
  58. package/lib/seam/connect/routes/devices/devices.js +4 -2
  59. package/lib/seam/connect/routes/devices/devices.js.map +1 -1
  60. package/lib/seam/connect/routes/devices/simulate/simulate.js +4 -2
  61. package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
  62. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +4 -2
  63. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
  64. package/lib/seam/connect/routes/events/events.js +4 -2
  65. package/lib/seam/connect/routes/events/events.js.map +1 -1
  66. package/lib/seam/connect/routes/instant-keys/instant-keys.js +4 -2
  67. package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
  68. package/lib/seam/connect/routes/locks/locks.js +4 -2
  69. package/lib/seam/connect/routes/locks/locks.js.map +1 -1
  70. package/lib/seam/connect/routes/locks/simulate/simulate.js +4 -2
  71. package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
  72. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +4 -2
  73. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
  74. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +4 -2
  75. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
  76. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +4 -2
  77. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
  78. package/lib/seam/connect/routes/phones/phones.js +4 -2
  79. package/lib/seam/connect/routes/phones/phones.js.map +1 -1
  80. package/lib/seam/connect/routes/phones/simulate/simulate.js +4 -2
  81. package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
  82. package/lib/seam/connect/routes/seam/console/console.js +4 -2
  83. package/lib/seam/connect/routes/seam/console/console.js.map +1 -1
  84. package/lib/seam/connect/routes/seam/console/v1/timelines/timelines.js +4 -2
  85. package/lib/seam/connect/routes/seam/console/v1/timelines/timelines.js.map +1 -1
  86. package/lib/seam/connect/routes/seam/console/v1/v1.js +4 -2
  87. package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
  88. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js +4 -2
  89. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js.map +1 -1
  90. package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js +4 -2
  91. package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js.map +1 -1
  92. package/lib/seam/connect/routes/seam/customer/v1/events/events.js +4 -2
  93. package/lib/seam/connect/routes/seam/customer/v1/events/events.js.map +1 -1
  94. package/lib/seam/connect/routes/seam/customer/v1/portals/portals.js +4 -2
  95. package/lib/seam/connect/routes/seam/customer/v1/portals/portals.js.map +1 -1
  96. package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js +4 -2
  97. package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
  98. package/lib/seam/connect/routes/seam/customer/v1/v1.js +4 -2
  99. package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
  100. package/lib/seam/connect/routes/seam/partner/v1/building-blocks/building-blocks.js +4 -2
  101. package/lib/seam/connect/routes/seam/partner/v1/building-blocks/building-blocks.js.map +1 -1
  102. package/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.js +4 -2
  103. package/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.js.map +1 -1
  104. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +2 -2
  105. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +6 -4
  106. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
  107. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +218 -218
  108. package/lib/seam/connect/routes/seam-http-endpoints.js +222 -220
  109. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  110. package/lib/seam/connect/routes/seam-http-without-workspace.js +4 -2
  111. package/lib/seam/connect/routes/seam-http-without-workspace.js.map +1 -1
  112. package/lib/seam/connect/routes/seam-http.js +4 -2
  113. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  114. package/lib/seam/connect/routes/spaces/spaces.js +4 -2
  115. package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
  116. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +4 -2
  117. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
  118. package/lib/seam/connect/routes/thermostats/schedules/schedules.js +4 -2
  119. package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
  120. package/lib/seam/connect/routes/thermostats/simulate/simulate.js +4 -2
  121. package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
  122. package/lib/seam/connect/routes/thermostats/thermostats.js +4 -2
  123. package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
  124. package/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.js +4 -2
  125. package/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.js.map +1 -1
  126. package/lib/seam/connect/routes/unstable-partner/unstable-partner.js +4 -2
  127. package/lib/seam/connect/routes/unstable-partner/unstable-partner.js.map +1 -1
  128. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js +4 -2
  129. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -1
  130. package/lib/seam/connect/routes/user-identities/user-identities.js +4 -2
  131. package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
  132. package/lib/seam/connect/routes/webhooks/webhooks.js +4 -2
  133. package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
  134. package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js +4 -2
  135. package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js.map +1 -1
  136. package/lib/seam/connect/routes/workspaces/workspaces.js +4 -2
  137. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  138. package/lib/seam/connect/seam-http-error.js +10 -16
  139. package/lib/seam/connect/seam-http-error.js.map +1 -1
  140. package/lib/seam/connect/seam-http-request.js +18 -31
  141. package/lib/seam/connect/seam-http-request.js.map +1 -1
  142. package/lib/seam/connect/seam-paginator.js +41 -53
  143. package/lib/seam/connect/seam-paginator.js.map +1 -1
  144. package/lib/version.d.ts +1 -1
  145. package/lib/version.js +1 -1
  146. package/package.json +15 -15
  147. package/src/lib/seam/connect/routes/access-codes/access-codes.ts +0 -10
  148. package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +0 -1
  149. package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +0 -5
  150. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +0 -6
  151. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +0 -4
  152. package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +0 -6
  153. package/src/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.ts +0 -2
  154. package/src/lib/seam/connect/routes/acs/credential-pools/credential-pools.ts +0 -1
  155. package/src/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.ts +0 -1
  156. package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +0 -9
  157. package/src/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.ts +0 -2
  158. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -2
  159. package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +0 -4
  160. package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +0 -4
  161. package/src/lib/seam/connect/routes/acs/systems/systems.ts +0 -3
  162. package/src/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.ts +0 -2
  163. package/src/lib/seam/connect/routes/acs/users/users.ts +0 -11
  164. package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +0 -1
  165. package/src/lib/seam/connect/routes/bridges/bridges.ts +0 -2
  166. package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +0 -7
  167. package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +0 -4
  168. package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +0 -5
  169. package/src/lib/seam/connect/routes/customers/customers.ts +0 -3
  170. package/src/lib/seam/connect/routes/devices/devices.ts +0 -5
  171. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +0 -6
  172. package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +0 -3
  173. package/src/lib/seam/connect/routes/events/events.ts +0 -2
  174. package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +0 -3
  175. package/src/lib/seam/connect/routes/locks/locks.ts +0 -2
  176. package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +0 -1
  177. package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +0 -5
  178. package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +0 -1
  179. package/src/lib/seam/connect/routes/phones/phones.ts +0 -3
  180. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +0 -1
  181. package/src/lib/seam/connect/routes/seam/console/v1/timelines/timelines.ts +0 -1
  182. package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +0 -1
  183. package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts +0 -1
  184. package/src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts +0 -3
  185. package/src/lib/seam/connect/routes/seam/customer/v1/events/events.ts +0 -1
  186. package/src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts +0 -1
  187. package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +0 -2
  188. package/src/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.ts +0 -1
  189. package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +2 -2
  190. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +218 -218
  191. package/src/lib/seam/connect/routes/spaces/spaces.ts +0 -10
  192. package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +0 -2
  193. package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +0 -5
  194. package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +0 -2
  195. package/src/lib/seam/connect/routes/thermostats/thermostats.ts +0 -7
  196. package/src/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.ts +0 -4
  197. package/src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts +0 -4
  198. package/src/lib/seam/connect/routes/user-identities/user-identities.ts +0 -13
  199. package/src/lib/seam/connect/routes/webhooks/webhooks.ts +0 -5
  200. package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +0 -5
  201. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +0 -5
  202. package/src/lib/version.ts +1 -1
@@ -4,2896 +4,18 @@ export interface ResolveActionAttemptOptions {
4
4
  timeout?: number;
5
5
  pollingInterval?: number;
6
6
  }
7
- export declare const resolveActionAttempt: <T extends {
8
- status: "pending";
9
- action_attempt_id: string;
10
- error: null;
11
- result: null;
12
- action_type: "LOCK_DOOR";
13
- } | {
14
- status: "success";
15
- action_attempt_id: string;
16
- error: null;
17
- result: {};
18
- action_type: "LOCK_DOOR";
19
- } | {
20
- status: "error";
21
- action_attempt_id: string;
22
- error: {
23
- message: string;
24
- type: string;
25
- };
26
- result: null;
27
- action_type: "LOCK_DOOR";
28
- } | {
29
- status: "pending";
30
- action_attempt_id: string;
31
- error: null;
32
- result: null;
33
- action_type: "UNLOCK_DOOR";
34
- } | {
35
- status: "success";
36
- action_attempt_id: string;
37
- error: null;
38
- result: {};
39
- action_type: "UNLOCK_DOOR";
40
- } | {
41
- status: "error";
42
- action_attempt_id: string;
43
- error: {
44
- message: string;
45
- type: string;
46
- };
47
- result: null;
48
- action_type: "UNLOCK_DOOR";
49
- } | {
50
- status: "pending";
51
- action_attempt_id: string;
52
- error: null;
53
- result: null;
54
- action_type: "SCAN_CREDENTIAL";
55
- } | {
56
- status: "success";
57
- action_attempt_id: string;
58
- error: null;
59
- result: {
60
- warnings: {
61
- warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
62
- warning_message: string;
63
- }[];
64
- acs_credential_on_encoder: {
65
- created_at: string | null;
66
- starts_at: string | null;
67
- ends_at: string | null;
68
- is_issued: boolean | null;
69
- card_number: string | null;
70
- visionline_metadata?: {
71
- card_id: string;
72
- cancelled: boolean;
73
- discarded: boolean;
74
- expired: boolean;
75
- overwritten: boolean;
76
- pending_auto_update: boolean;
77
- card_format: "TLCode" | "rfid48";
78
- number_of_issued_cards: number;
79
- guest_acs_entrance_ids?: string[] | undefined;
80
- common_acs_entrance_ids?: string[] | undefined;
81
- overridden?: boolean | undefined;
82
- card_holder?: string | undefined;
83
- } | undefined;
84
- } | null;
85
- acs_credential_on_seam: {
86
- display_name: string;
87
- workspace_id: string;
88
- created_at: string;
89
- errors: {
90
- message: string;
91
- error_code: string;
92
- }[];
93
- connected_account_id: string;
94
- warnings: ({
95
- message: string;
96
- created_at: string;
97
- warning_code: "waiting_to_be_issued";
98
- } | {
99
- message: string;
100
- created_at: string;
101
- warning_code: "schedule_externally_modified";
102
- } | {
103
- message: string;
104
- created_at: string;
105
- warning_code: "schedule_modified";
106
- } | {
107
- message: string;
108
- created_at: string;
109
- warning_code: "being_deleted";
110
- } | {
111
- message: string;
112
- created_at: string;
113
- warning_code: "unknown_issue_with_acs_credential";
114
- } | {
115
- message: string;
116
- created_at: string;
117
- warning_code: "needs_to_be_reissued";
118
- })[];
119
- is_managed: true;
120
- acs_system_id: string;
121
- acs_credential_id: string;
122
- access_method: "code" | "card" | "mobile_key";
123
- code?: string | null | undefined;
124
- starts_at?: string | undefined;
125
- ends_at?: string | undefined;
126
- visionline_metadata?: {
127
- card_function_type: "guest" | "staff";
128
- auto_join?: boolean | undefined;
129
- joiner_acs_credential_ids?: string[] | undefined;
130
- guest_acs_entrance_ids?: string[] | undefined;
131
- common_acs_entrance_ids?: string[] | undefined;
132
- is_valid?: boolean | undefined;
133
- card_id?: string | undefined;
134
- credential_id?: string | undefined;
135
- } | undefined;
136
- assa_abloy_vostio_metadata?: {
137
- endpoint_id?: string | undefined;
138
- auto_join?: boolean | undefined;
139
- override_guest_acs_entrance_ids?: string[] | undefined;
140
- key_id?: string | undefined;
141
- key_issuing_request_id?: string | undefined;
142
- door_names?: string[] | undefined;
143
- } | undefined;
144
- is_one_time_use?: boolean | undefined;
145
- user_identity_id?: string | undefined;
146
- issued_at?: string | null | undefined;
147
- is_issued?: boolean | undefined;
148
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
149
- external_type_display_name?: string | undefined;
150
- acs_user_id?: string | undefined;
151
- acs_credential_pool_id?: string | undefined;
152
- parent_acs_credential_id?: string | undefined;
153
- card_number?: string | null | undefined;
154
- is_multi_phone_sync_credential?: boolean | undefined;
155
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
156
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
157
- } | {
158
- display_name: string;
159
- workspace_id: string;
160
- created_at: string;
161
- errors: {
162
- message: string;
163
- error_code: string;
164
- }[];
165
- connected_account_id: string;
166
- warnings: ({
167
- message: string;
168
- created_at: string;
169
- warning_code: "waiting_to_be_issued";
170
- } | {
171
- message: string;
172
- created_at: string;
173
- warning_code: "schedule_externally_modified";
174
- } | {
175
- message: string;
176
- created_at: string;
177
- warning_code: "schedule_modified";
178
- } | {
179
- message: string;
180
- created_at: string;
181
- warning_code: "being_deleted";
182
- } | {
183
- message: string;
184
- created_at: string;
185
- warning_code: "unknown_issue_with_acs_credential";
186
- } | {
187
- message: string;
188
- created_at: string;
189
- warning_code: "needs_to_be_reissued";
190
- })[];
191
- is_managed: false;
192
- acs_system_id: string;
193
- acs_credential_id: string;
194
- access_method: "code" | "card" | "mobile_key";
195
- code?: string | null | undefined;
196
- starts_at?: string | undefined;
197
- ends_at?: string | undefined;
198
- visionline_metadata?: {
199
- card_function_type: "guest" | "staff";
200
- auto_join?: boolean | undefined;
201
- joiner_acs_credential_ids?: string[] | undefined;
202
- guest_acs_entrance_ids?: string[] | undefined;
203
- common_acs_entrance_ids?: string[] | undefined;
204
- is_valid?: boolean | undefined;
205
- card_id?: string | undefined;
206
- credential_id?: string | undefined;
207
- } | undefined;
208
- assa_abloy_vostio_metadata?: {
209
- endpoint_id?: string | undefined;
210
- auto_join?: boolean | undefined;
211
- override_guest_acs_entrance_ids?: string[] | undefined;
212
- key_id?: string | undefined;
213
- key_issuing_request_id?: string | undefined;
214
- door_names?: string[] | undefined;
215
- } | undefined;
216
- is_one_time_use?: boolean | undefined;
217
- user_identity_id?: string | undefined;
218
- issued_at?: string | null | undefined;
219
- is_issued?: boolean | undefined;
220
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
221
- external_type_display_name?: string | undefined;
222
- acs_user_id?: string | undefined;
223
- acs_credential_pool_id?: string | undefined;
224
- parent_acs_credential_id?: string | undefined;
225
- card_number?: string | null | undefined;
226
- is_multi_phone_sync_credential?: boolean | undefined;
227
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
228
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
229
- } | null;
230
- };
231
- action_type: "SCAN_CREDENTIAL";
232
- } | {
233
- status: "error";
234
- action_attempt_id: string;
235
- error: {
236
- message: string;
237
- type: "uncategorized_error";
238
- } | {
239
- message: string;
240
- type: "action_attempt_expired";
241
- } | {
242
- message: string;
243
- type: "no_credential_on_encoder";
244
- };
245
- result: null;
246
- action_type: "SCAN_CREDENTIAL";
247
- } | {
248
- status: "pending";
249
- action_attempt_id: string;
250
- error: null;
251
- result: null;
252
- action_type: "ENCODE_CREDENTIAL";
253
- } | {
254
- status: "success";
255
- action_attempt_id: string;
256
- error: null;
257
- result: {
258
- display_name: string;
259
- workspace_id: string;
260
- created_at: string;
261
- errors: {
262
- message: string;
263
- error_code: string;
264
- }[];
265
- connected_account_id: string;
266
- warnings: ({
267
- message: string;
268
- created_at: string;
269
- warning_code: "waiting_to_be_issued";
270
- } | {
271
- message: string;
272
- created_at: string;
273
- warning_code: "schedule_externally_modified";
274
- } | {
275
- message: string;
276
- created_at: string;
277
- warning_code: "schedule_modified";
278
- } | {
279
- message: string;
280
- created_at: string;
281
- warning_code: "being_deleted";
282
- } | {
283
- message: string;
284
- created_at: string;
285
- warning_code: "unknown_issue_with_acs_credential";
286
- } | {
287
- message: string;
288
- created_at: string;
289
- warning_code: "needs_to_be_reissued";
290
- })[];
291
- is_managed: true;
292
- acs_system_id: string;
293
- acs_credential_id: string;
294
- access_method: "code" | "card" | "mobile_key";
295
- code?: string | null | undefined;
296
- starts_at?: string | undefined;
297
- ends_at?: string | undefined;
298
- visionline_metadata?: {
299
- card_function_type: "guest" | "staff";
300
- auto_join?: boolean | undefined;
301
- joiner_acs_credential_ids?: string[] | undefined;
302
- guest_acs_entrance_ids?: string[] | undefined;
303
- common_acs_entrance_ids?: string[] | undefined;
304
- is_valid?: boolean | undefined;
305
- card_id?: string | undefined;
306
- credential_id?: string | undefined;
307
- } | undefined;
308
- assa_abloy_vostio_metadata?: {
309
- endpoint_id?: string | undefined;
310
- auto_join?: boolean | undefined;
311
- override_guest_acs_entrance_ids?: string[] | undefined;
312
- key_id?: string | undefined;
313
- key_issuing_request_id?: string | undefined;
314
- door_names?: string[] | undefined;
315
- } | undefined;
316
- is_one_time_use?: boolean | undefined;
317
- user_identity_id?: string | undefined;
318
- issued_at?: string | null | undefined;
319
- is_issued?: boolean | undefined;
320
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
321
- external_type_display_name?: string | undefined;
322
- acs_user_id?: string | undefined;
323
- acs_credential_pool_id?: string | undefined;
324
- parent_acs_credential_id?: string | undefined;
325
- card_number?: string | null | undefined;
326
- is_multi_phone_sync_credential?: boolean | undefined;
327
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
328
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
329
- } | {
330
- display_name: string;
331
- workspace_id: string;
332
- created_at: string;
333
- errors: {
334
- message: string;
335
- error_code: string;
336
- }[];
337
- connected_account_id: string;
338
- warnings: ({
339
- message: string;
340
- created_at: string;
341
- warning_code: "waiting_to_be_issued";
342
- } | {
343
- message: string;
344
- created_at: string;
345
- warning_code: "schedule_externally_modified";
346
- } | {
347
- message: string;
348
- created_at: string;
349
- warning_code: "schedule_modified";
350
- } | {
351
- message: string;
352
- created_at: string;
353
- warning_code: "being_deleted";
354
- } | {
355
- message: string;
356
- created_at: string;
357
- warning_code: "unknown_issue_with_acs_credential";
358
- } | {
359
- message: string;
360
- created_at: string;
361
- warning_code: "needs_to_be_reissued";
362
- })[];
363
- is_managed: false;
364
- acs_system_id: string;
365
- acs_credential_id: string;
366
- access_method: "code" | "card" | "mobile_key";
367
- code?: string | null | undefined;
368
- starts_at?: string | undefined;
369
- ends_at?: string | undefined;
370
- visionline_metadata?: {
371
- card_function_type: "guest" | "staff";
372
- auto_join?: boolean | undefined;
373
- joiner_acs_credential_ids?: string[] | undefined;
374
- guest_acs_entrance_ids?: string[] | undefined;
375
- common_acs_entrance_ids?: string[] | undefined;
376
- is_valid?: boolean | undefined;
377
- card_id?: string | undefined;
378
- credential_id?: string | undefined;
379
- } | undefined;
380
- assa_abloy_vostio_metadata?: {
381
- endpoint_id?: string | undefined;
382
- auto_join?: boolean | undefined;
383
- override_guest_acs_entrance_ids?: string[] | undefined;
384
- key_id?: string | undefined;
385
- key_issuing_request_id?: string | undefined;
386
- door_names?: string[] | undefined;
387
- } | undefined;
388
- is_one_time_use?: boolean | undefined;
389
- user_identity_id?: string | undefined;
390
- issued_at?: string | null | undefined;
391
- is_issued?: boolean | undefined;
392
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
393
- external_type_display_name?: string | undefined;
394
- acs_user_id?: string | undefined;
395
- acs_credential_pool_id?: string | undefined;
396
- parent_acs_credential_id?: string | undefined;
397
- card_number?: string | null | undefined;
398
- is_multi_phone_sync_credential?: boolean | undefined;
399
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
400
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
401
- };
402
- action_type: "ENCODE_CREDENTIAL";
403
- } | {
404
- status: "error";
405
- action_attempt_id: string;
406
- error: {
407
- message: string;
408
- type: "uncategorized_error";
409
- } | {
410
- message: string;
411
- type: "action_attempt_expired";
412
- } | {
413
- message: string;
414
- type: "no_credential_on_encoder";
415
- } | {
416
- message: string;
417
- type: "incompatible_card_format";
418
- } | {
419
- message: string;
420
- type: "credential_cannot_be_reissued";
421
- };
422
- result: null;
423
- action_type: "ENCODE_CREDENTIAL";
424
- } | {
425
- status: "pending";
426
- action_attempt_id: string;
427
- error: null;
428
- result: null;
429
- action_type: "RESET_SANDBOX_WORKSPACE";
430
- } | {
431
- status: "success";
432
- action_attempt_id: string;
433
- error: null;
434
- result: {};
435
- action_type: "RESET_SANDBOX_WORKSPACE";
436
- } | {
437
- status: "error";
438
- action_attempt_id: string;
439
- error: {
440
- message: string;
441
- type: string;
442
- };
443
- result: null;
444
- action_type: "RESET_SANDBOX_WORKSPACE";
445
- } | {
446
- status: "pending";
447
- action_attempt_id: string;
448
- error: null;
449
- result: null;
450
- action_type: "SET_FAN_MODE";
451
- } | {
452
- status: "success";
453
- action_attempt_id: string;
454
- error: null;
455
- result: {};
456
- action_type: "SET_FAN_MODE";
457
- } | {
458
- status: "error";
459
- action_attempt_id: string;
460
- error: {
461
- message: string;
462
- type: string;
463
- };
464
- result: null;
465
- action_type: "SET_FAN_MODE";
466
- } | {
467
- status: "pending";
468
- action_attempt_id: string;
469
- error: null;
470
- result: null;
471
- action_type: "SET_HVAC_MODE";
472
- } | {
473
- status: "success";
474
- action_attempt_id: string;
475
- error: null;
476
- result: {};
477
- action_type: "SET_HVAC_MODE";
478
- } | {
479
- status: "error";
480
- action_attempt_id: string;
481
- error: {
482
- message: string;
483
- type: string;
484
- };
485
- result: null;
486
- action_type: "SET_HVAC_MODE";
487
- } | {
488
- status: "pending";
489
- action_attempt_id: string;
490
- error: null;
491
- result: null;
492
- action_type: "ACTIVATE_CLIMATE_PRESET";
493
- } | {
494
- status: "success";
495
- action_attempt_id: string;
496
- error: null;
497
- result: {};
498
- action_type: "ACTIVATE_CLIMATE_PRESET";
499
- } | {
500
- status: "error";
501
- action_attempt_id: string;
502
- error: {
503
- message: string;
504
- type: string;
505
- };
506
- result: null;
507
- action_type: "ACTIVATE_CLIMATE_PRESET";
508
- } | {
509
- status: "pending";
510
- action_attempt_id: string;
511
- error: null;
512
- result: null;
513
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
514
- } | {
515
- status: "success";
516
- action_attempt_id: string;
517
- error: null;
518
- result: {};
519
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
520
- } | {
521
- status: "error";
522
- action_attempt_id: string;
523
- error: {
524
- message: string;
525
- type: string;
526
- };
527
- result: null;
528
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
529
- } | {
530
- status: "pending";
531
- action_attempt_id: string;
532
- error: null;
533
- result: null;
534
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
535
- } | {
536
- status: "success";
537
- action_attempt_id: string;
538
- error: null;
539
- result: {};
540
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
541
- } | {
542
- status: "error";
543
- action_attempt_id: string;
544
- error: {
545
- message: string;
546
- type: string;
547
- };
548
- result: null;
549
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
550
- } | {
551
- status: "pending";
552
- action_attempt_id: string;
553
- error: null;
554
- result: null;
555
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
556
- } | {
557
- status: "success";
558
- action_attempt_id: string;
559
- error: null;
560
- result: {};
561
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
562
- } | {
563
- status: "error";
564
- action_attempt_id: string;
565
- error: {
566
- message: string;
567
- type: string;
568
- };
569
- result: null;
570
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
571
- } | {
572
- status: "pending";
573
- action_attempt_id: string;
574
- error: null;
575
- result: null;
576
- action_type: "SYNC_ACCESS_CODES";
577
- } | {
578
- status: "success";
579
- action_attempt_id: string;
580
- error: null;
581
- result: {};
582
- action_type: "SYNC_ACCESS_CODES";
583
- } | {
584
- status: "error";
585
- action_attempt_id: string;
586
- error: {
587
- message: string;
588
- type: string;
589
- };
590
- result: null;
591
- action_type: "SYNC_ACCESS_CODES";
592
- } | {
593
- status: "pending";
594
- action_attempt_id: string;
595
- error: null;
596
- result: null;
597
- action_type: "CREATE_ACCESS_CODE";
598
- } | {
599
- status: "success";
600
- action_attempt_id: string;
601
- error: null;
602
- result: {
603
- access_code?: any;
604
- };
605
- action_type: "CREATE_ACCESS_CODE";
606
- } | {
607
- status: "error";
608
- action_attempt_id: string;
609
- error: {
610
- message: string;
611
- type: string;
612
- };
613
- result: null;
614
- action_type: "CREATE_ACCESS_CODE";
615
- } | {
616
- status: "pending";
617
- action_attempt_id: string;
618
- error: null;
619
- result: null;
620
- action_type: "DELETE_ACCESS_CODE";
621
- } | {
622
- status: "success";
623
- action_attempt_id: string;
624
- error: null;
625
- result: {};
626
- action_type: "DELETE_ACCESS_CODE";
627
- } | {
628
- status: "error";
629
- action_attempt_id: string;
630
- error: {
631
- message: string;
632
- type: string;
633
- };
634
- result: null;
635
- action_type: "DELETE_ACCESS_CODE";
636
- } | {
637
- status: "pending";
638
- action_attempt_id: string;
639
- error: null;
640
- result: null;
641
- action_type: "UPDATE_ACCESS_CODE";
642
- } | {
643
- status: "success";
644
- action_attempt_id: string;
645
- error: null;
646
- result: {
647
- access_code?: any;
648
- };
649
- action_type: "UPDATE_ACCESS_CODE";
650
- } | {
651
- status: "error";
652
- action_attempt_id: string;
653
- error: {
654
- message: string;
655
- type: string;
656
- };
657
- result: null;
658
- action_type: "UPDATE_ACCESS_CODE";
659
- } | {
660
- status: "pending";
661
- action_attempt_id: string;
662
- error: null;
663
- result: null;
664
- action_type: "CREATE_NOISE_THRESHOLD";
665
- } | {
666
- status: "success";
667
- action_attempt_id: string;
668
- error: null;
669
- result: {
670
- noise_threshold?: any;
671
- };
672
- action_type: "CREATE_NOISE_THRESHOLD";
673
- } | {
674
- status: "error";
675
- action_attempt_id: string;
676
- error: {
677
- message: string;
678
- type: string;
679
- };
680
- result: null;
681
- action_type: "CREATE_NOISE_THRESHOLD";
682
- } | {
683
- status: "pending";
684
- action_attempt_id: string;
685
- error: null;
686
- result: null;
687
- action_type: "DELETE_NOISE_THRESHOLD";
688
- } | {
689
- status: "success";
690
- action_attempt_id: string;
691
- error: null;
692
- result: {};
693
- action_type: "DELETE_NOISE_THRESHOLD";
694
- } | {
695
- status: "error";
696
- action_attempt_id: string;
697
- error: {
698
- message: string;
699
- type: string;
700
- };
701
- result: null;
702
- action_type: "DELETE_NOISE_THRESHOLD";
703
- } | {
704
- status: "pending";
705
- action_attempt_id: string;
706
- error: null;
707
- result: null;
708
- action_type: "UPDATE_NOISE_THRESHOLD";
709
- } | {
710
- status: "success";
711
- action_attempt_id: string;
712
- error: null;
713
- result: {
714
- noise_threshold?: any;
715
- };
716
- action_type: "UPDATE_NOISE_THRESHOLD";
717
- } | {
718
- status: "error";
719
- action_attempt_id: string;
720
- error: {
721
- message: string;
722
- type: string;
723
- };
724
- result: null;
725
- action_type: "UPDATE_NOISE_THRESHOLD";
726
- }>(actionAttempt: T, actionAttempts: SeamHttpActionAttempts, { timeout, pollingInterval }: ResolveActionAttemptOptions) => Promise<Extract<T, {
727
- status: 'success';
728
- }>>;
729
- export declare const isSeamActionAttemptError: <T extends {
730
- status: "pending";
731
- action_attempt_id: string;
732
- error: null;
733
- result: null;
734
- action_type: "LOCK_DOOR";
735
- } | {
736
- status: "success";
737
- action_attempt_id: string;
738
- error: null;
739
- result: {};
740
- action_type: "LOCK_DOOR";
741
- } | {
742
- status: "error";
743
- action_attempt_id: string;
744
- error: {
745
- message: string;
746
- type: string;
747
- };
748
- result: null;
749
- action_type: "LOCK_DOOR";
750
- } | {
751
- status: "pending";
752
- action_attempt_id: string;
753
- error: null;
754
- result: null;
755
- action_type: "UNLOCK_DOOR";
756
- } | {
757
- status: "success";
758
- action_attempt_id: string;
759
- error: null;
760
- result: {};
761
- action_type: "UNLOCK_DOOR";
762
- } | {
763
- status: "error";
764
- action_attempt_id: string;
765
- error: {
766
- message: string;
767
- type: string;
768
- };
769
- result: null;
770
- action_type: "UNLOCK_DOOR";
771
- } | {
772
- status: "pending";
773
- action_attempt_id: string;
774
- error: null;
775
- result: null;
776
- action_type: "SCAN_CREDENTIAL";
777
- } | {
778
- status: "success";
779
- action_attempt_id: string;
780
- error: null;
781
- result: {
782
- warnings: {
783
- warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
784
- warning_message: string;
785
- }[];
786
- acs_credential_on_encoder: {
787
- created_at: string | null;
788
- starts_at: string | null;
789
- ends_at: string | null;
790
- is_issued: boolean | null;
791
- card_number: string | null;
792
- visionline_metadata?: {
793
- card_id: string;
794
- cancelled: boolean;
795
- discarded: boolean;
796
- expired: boolean;
797
- overwritten: boolean;
798
- pending_auto_update: boolean;
799
- card_format: "TLCode" | "rfid48";
800
- number_of_issued_cards: number;
801
- guest_acs_entrance_ids?: string[] | undefined;
802
- common_acs_entrance_ids?: string[] | undefined;
803
- overridden?: boolean | undefined;
804
- card_holder?: string | undefined;
805
- } | undefined;
806
- } | null;
807
- acs_credential_on_seam: {
808
- display_name: string;
809
- workspace_id: string;
810
- created_at: string;
811
- errors: {
812
- message: string;
813
- error_code: string;
814
- }[];
815
- connected_account_id: string;
816
- warnings: ({
817
- message: string;
818
- created_at: string;
819
- warning_code: "waiting_to_be_issued";
820
- } | {
821
- message: string;
822
- created_at: string;
823
- warning_code: "schedule_externally_modified";
824
- } | {
825
- message: string;
826
- created_at: string;
827
- warning_code: "schedule_modified";
828
- } | {
829
- message: string;
830
- created_at: string;
831
- warning_code: "being_deleted";
832
- } | {
833
- message: string;
834
- created_at: string;
835
- warning_code: "unknown_issue_with_acs_credential";
836
- } | {
837
- message: string;
838
- created_at: string;
839
- warning_code: "needs_to_be_reissued";
840
- })[];
841
- is_managed: true;
842
- acs_system_id: string;
843
- acs_credential_id: string;
844
- access_method: "code" | "card" | "mobile_key";
845
- code?: string | null | undefined;
846
- starts_at?: string | undefined;
847
- ends_at?: string | undefined;
848
- visionline_metadata?: {
849
- card_function_type: "guest" | "staff";
850
- auto_join?: boolean | undefined;
851
- joiner_acs_credential_ids?: string[] | undefined;
852
- guest_acs_entrance_ids?: string[] | undefined;
853
- common_acs_entrance_ids?: string[] | undefined;
854
- is_valid?: boolean | undefined;
855
- card_id?: string | undefined;
856
- credential_id?: string | undefined;
857
- } | undefined;
858
- assa_abloy_vostio_metadata?: {
859
- endpoint_id?: string | undefined;
860
- auto_join?: boolean | undefined;
861
- override_guest_acs_entrance_ids?: string[] | undefined;
862
- key_id?: string | undefined;
863
- key_issuing_request_id?: string | undefined;
864
- door_names?: string[] | undefined;
865
- } | undefined;
866
- is_one_time_use?: boolean | undefined;
867
- user_identity_id?: string | undefined;
868
- issued_at?: string | null | undefined;
869
- is_issued?: boolean | undefined;
870
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
871
- external_type_display_name?: string | undefined;
872
- acs_user_id?: string | undefined;
873
- acs_credential_pool_id?: string | undefined;
874
- parent_acs_credential_id?: string | undefined;
875
- card_number?: string | null | undefined;
876
- is_multi_phone_sync_credential?: boolean | undefined;
877
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
878
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
879
- } | {
880
- display_name: string;
881
- workspace_id: string;
882
- created_at: string;
883
- errors: {
884
- message: string;
885
- error_code: string;
886
- }[];
887
- connected_account_id: string;
888
- warnings: ({
889
- message: string;
890
- created_at: string;
891
- warning_code: "waiting_to_be_issued";
892
- } | {
893
- message: string;
894
- created_at: string;
895
- warning_code: "schedule_externally_modified";
896
- } | {
897
- message: string;
898
- created_at: string;
899
- warning_code: "schedule_modified";
900
- } | {
901
- message: string;
902
- created_at: string;
903
- warning_code: "being_deleted";
904
- } | {
905
- message: string;
906
- created_at: string;
907
- warning_code: "unknown_issue_with_acs_credential";
908
- } | {
909
- message: string;
910
- created_at: string;
911
- warning_code: "needs_to_be_reissued";
912
- })[];
913
- is_managed: false;
914
- acs_system_id: string;
915
- acs_credential_id: string;
916
- access_method: "code" | "card" | "mobile_key";
917
- code?: string | null | undefined;
918
- starts_at?: string | undefined;
919
- ends_at?: string | undefined;
920
- visionline_metadata?: {
921
- card_function_type: "guest" | "staff";
922
- auto_join?: boolean | undefined;
923
- joiner_acs_credential_ids?: string[] | undefined;
924
- guest_acs_entrance_ids?: string[] | undefined;
925
- common_acs_entrance_ids?: string[] | undefined;
926
- is_valid?: boolean | undefined;
927
- card_id?: string | undefined;
928
- credential_id?: string | undefined;
929
- } | undefined;
930
- assa_abloy_vostio_metadata?: {
931
- endpoint_id?: string | undefined;
932
- auto_join?: boolean | undefined;
933
- override_guest_acs_entrance_ids?: string[] | undefined;
934
- key_id?: string | undefined;
935
- key_issuing_request_id?: string | undefined;
936
- door_names?: string[] | undefined;
937
- } | undefined;
938
- is_one_time_use?: boolean | undefined;
939
- user_identity_id?: string | undefined;
940
- issued_at?: string | null | undefined;
941
- is_issued?: boolean | undefined;
942
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
943
- external_type_display_name?: string | undefined;
944
- acs_user_id?: string | undefined;
945
- acs_credential_pool_id?: string | undefined;
946
- parent_acs_credential_id?: string | undefined;
947
- card_number?: string | null | undefined;
948
- is_multi_phone_sync_credential?: boolean | undefined;
949
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
950
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
951
- } | null;
952
- };
953
- action_type: "SCAN_CREDENTIAL";
954
- } | {
955
- status: "error";
956
- action_attempt_id: string;
957
- error: {
958
- message: string;
959
- type: "uncategorized_error";
960
- } | {
961
- message: string;
962
- type: "action_attempt_expired";
963
- } | {
964
- message: string;
965
- type: "no_credential_on_encoder";
966
- };
967
- result: null;
968
- action_type: "SCAN_CREDENTIAL";
969
- } | {
970
- status: "pending";
971
- action_attempt_id: string;
972
- error: null;
973
- result: null;
974
- action_type: "ENCODE_CREDENTIAL";
975
- } | {
976
- status: "success";
977
- action_attempt_id: string;
978
- error: null;
979
- result: {
980
- display_name: string;
981
- workspace_id: string;
982
- created_at: string;
983
- errors: {
984
- message: string;
985
- error_code: string;
986
- }[];
987
- connected_account_id: string;
988
- warnings: ({
989
- message: string;
990
- created_at: string;
991
- warning_code: "waiting_to_be_issued";
992
- } | {
993
- message: string;
994
- created_at: string;
995
- warning_code: "schedule_externally_modified";
996
- } | {
997
- message: string;
998
- created_at: string;
999
- warning_code: "schedule_modified";
1000
- } | {
1001
- message: string;
1002
- created_at: string;
1003
- warning_code: "being_deleted";
1004
- } | {
1005
- message: string;
1006
- created_at: string;
1007
- warning_code: "unknown_issue_with_acs_credential";
1008
- } | {
1009
- message: string;
1010
- created_at: string;
1011
- warning_code: "needs_to_be_reissued";
1012
- })[];
1013
- is_managed: true;
1014
- acs_system_id: string;
1015
- acs_credential_id: string;
1016
- access_method: "code" | "card" | "mobile_key";
1017
- code?: string | null | undefined;
1018
- starts_at?: string | undefined;
1019
- ends_at?: string | undefined;
1020
- visionline_metadata?: {
1021
- card_function_type: "guest" | "staff";
1022
- auto_join?: boolean | undefined;
1023
- joiner_acs_credential_ids?: string[] | undefined;
1024
- guest_acs_entrance_ids?: string[] | undefined;
1025
- common_acs_entrance_ids?: string[] | undefined;
1026
- is_valid?: boolean | undefined;
1027
- card_id?: string | undefined;
1028
- credential_id?: string | undefined;
1029
- } | undefined;
1030
- assa_abloy_vostio_metadata?: {
1031
- endpoint_id?: string | undefined;
1032
- auto_join?: boolean | undefined;
1033
- override_guest_acs_entrance_ids?: string[] | undefined;
1034
- key_id?: string | undefined;
1035
- key_issuing_request_id?: string | undefined;
1036
- door_names?: string[] | undefined;
1037
- } | undefined;
1038
- is_one_time_use?: boolean | undefined;
1039
- user_identity_id?: string | undefined;
1040
- issued_at?: string | null | undefined;
1041
- is_issued?: boolean | undefined;
1042
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
1043
- external_type_display_name?: string | undefined;
1044
- acs_user_id?: string | undefined;
1045
- acs_credential_pool_id?: string | undefined;
1046
- parent_acs_credential_id?: string | undefined;
1047
- card_number?: string | null | undefined;
1048
- is_multi_phone_sync_credential?: boolean | undefined;
1049
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1050
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
1051
- } | {
1052
- display_name: string;
1053
- workspace_id: string;
1054
- created_at: string;
1055
- errors: {
1056
- message: string;
1057
- error_code: string;
1058
- }[];
1059
- connected_account_id: string;
1060
- warnings: ({
1061
- message: string;
1062
- created_at: string;
1063
- warning_code: "waiting_to_be_issued";
1064
- } | {
1065
- message: string;
1066
- created_at: string;
1067
- warning_code: "schedule_externally_modified";
1068
- } | {
1069
- message: string;
1070
- created_at: string;
1071
- warning_code: "schedule_modified";
1072
- } | {
1073
- message: string;
1074
- created_at: string;
1075
- warning_code: "being_deleted";
1076
- } | {
1077
- message: string;
1078
- created_at: string;
1079
- warning_code: "unknown_issue_with_acs_credential";
1080
- } | {
1081
- message: string;
1082
- created_at: string;
1083
- warning_code: "needs_to_be_reissued";
1084
- })[];
1085
- is_managed: false;
1086
- acs_system_id: string;
1087
- acs_credential_id: string;
1088
- access_method: "code" | "card" | "mobile_key";
1089
- code?: string | null | undefined;
1090
- starts_at?: string | undefined;
1091
- ends_at?: string | undefined;
1092
- visionline_metadata?: {
1093
- card_function_type: "guest" | "staff";
1094
- auto_join?: boolean | undefined;
1095
- joiner_acs_credential_ids?: string[] | undefined;
1096
- guest_acs_entrance_ids?: string[] | undefined;
1097
- common_acs_entrance_ids?: string[] | undefined;
1098
- is_valid?: boolean | undefined;
1099
- card_id?: string | undefined;
1100
- credential_id?: string | undefined;
1101
- } | undefined;
1102
- assa_abloy_vostio_metadata?: {
1103
- endpoint_id?: string | undefined;
1104
- auto_join?: boolean | undefined;
1105
- override_guest_acs_entrance_ids?: string[] | undefined;
1106
- key_id?: string | undefined;
1107
- key_issuing_request_id?: string | undefined;
1108
- door_names?: string[] | undefined;
1109
- } | undefined;
1110
- is_one_time_use?: boolean | undefined;
1111
- user_identity_id?: string | undefined;
1112
- issued_at?: string | null | undefined;
1113
- is_issued?: boolean | undefined;
1114
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
1115
- external_type_display_name?: string | undefined;
1116
- acs_user_id?: string | undefined;
1117
- acs_credential_pool_id?: string | undefined;
1118
- parent_acs_credential_id?: string | undefined;
1119
- card_number?: string | null | undefined;
1120
- is_multi_phone_sync_credential?: boolean | undefined;
1121
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1122
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
1123
- };
1124
- action_type: "ENCODE_CREDENTIAL";
1125
- } | {
1126
- status: "error";
1127
- action_attempt_id: string;
1128
- error: {
1129
- message: string;
1130
- type: "uncategorized_error";
1131
- } | {
1132
- message: string;
1133
- type: "action_attempt_expired";
1134
- } | {
1135
- message: string;
1136
- type: "no_credential_on_encoder";
1137
- } | {
1138
- message: string;
1139
- type: "incompatible_card_format";
1140
- } | {
1141
- message: string;
1142
- type: "credential_cannot_be_reissued";
1143
- };
1144
- result: null;
1145
- action_type: "ENCODE_CREDENTIAL";
1146
- } | {
1147
- status: "pending";
1148
- action_attempt_id: string;
1149
- error: null;
1150
- result: null;
1151
- action_type: "RESET_SANDBOX_WORKSPACE";
1152
- } | {
1153
- status: "success";
1154
- action_attempt_id: string;
1155
- error: null;
1156
- result: {};
1157
- action_type: "RESET_SANDBOX_WORKSPACE";
1158
- } | {
1159
- status: "error";
1160
- action_attempt_id: string;
1161
- error: {
1162
- message: string;
1163
- type: string;
1164
- };
1165
- result: null;
1166
- action_type: "RESET_SANDBOX_WORKSPACE";
1167
- } | {
1168
- status: "pending";
1169
- action_attempt_id: string;
1170
- error: null;
1171
- result: null;
1172
- action_type: "SET_FAN_MODE";
1173
- } | {
1174
- status: "success";
1175
- action_attempt_id: string;
1176
- error: null;
1177
- result: {};
1178
- action_type: "SET_FAN_MODE";
1179
- } | {
1180
- status: "error";
1181
- action_attempt_id: string;
1182
- error: {
1183
- message: string;
1184
- type: string;
1185
- };
1186
- result: null;
1187
- action_type: "SET_FAN_MODE";
1188
- } | {
1189
- status: "pending";
1190
- action_attempt_id: string;
1191
- error: null;
1192
- result: null;
1193
- action_type: "SET_HVAC_MODE";
1194
- } | {
1195
- status: "success";
1196
- action_attempt_id: string;
1197
- error: null;
1198
- result: {};
1199
- action_type: "SET_HVAC_MODE";
1200
- } | {
1201
- status: "error";
1202
- action_attempt_id: string;
1203
- error: {
1204
- message: string;
1205
- type: string;
1206
- };
1207
- result: null;
1208
- action_type: "SET_HVAC_MODE";
1209
- } | {
1210
- status: "pending";
1211
- action_attempt_id: string;
1212
- error: null;
1213
- result: null;
1214
- action_type: "ACTIVATE_CLIMATE_PRESET";
1215
- } | {
1216
- status: "success";
1217
- action_attempt_id: string;
1218
- error: null;
1219
- result: {};
1220
- action_type: "ACTIVATE_CLIMATE_PRESET";
1221
- } | {
1222
- status: "error";
1223
- action_attempt_id: string;
1224
- error: {
1225
- message: string;
1226
- type: string;
1227
- };
1228
- result: null;
1229
- action_type: "ACTIVATE_CLIMATE_PRESET";
1230
- } | {
1231
- status: "pending";
1232
- action_attempt_id: string;
1233
- error: null;
1234
- result: null;
1235
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
1236
- } | {
1237
- status: "success";
1238
- action_attempt_id: string;
1239
- error: null;
1240
- result: {};
1241
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
1242
- } | {
1243
- status: "error";
1244
- action_attempt_id: string;
1245
- error: {
1246
- message: string;
1247
- type: string;
1248
- };
1249
- result: null;
1250
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
1251
- } | {
1252
- status: "pending";
1253
- action_attempt_id: string;
1254
- error: null;
1255
- result: null;
1256
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
1257
- } | {
1258
- status: "success";
1259
- action_attempt_id: string;
1260
- error: null;
1261
- result: {};
1262
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
1263
- } | {
1264
- status: "error";
1265
- action_attempt_id: string;
1266
- error: {
1267
- message: string;
1268
- type: string;
1269
- };
1270
- result: null;
1271
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
1272
- } | {
1273
- status: "pending";
1274
- action_attempt_id: string;
1275
- error: null;
1276
- result: null;
1277
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
1278
- } | {
1279
- status: "success";
1280
- action_attempt_id: string;
1281
- error: null;
1282
- result: {};
1283
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
1284
- } | {
1285
- status: "error";
1286
- action_attempt_id: string;
1287
- error: {
1288
- message: string;
1289
- type: string;
1290
- };
1291
- result: null;
1292
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
1293
- } | {
1294
- status: "pending";
1295
- action_attempt_id: string;
1296
- error: null;
1297
- result: null;
1298
- action_type: "SYNC_ACCESS_CODES";
1299
- } | {
1300
- status: "success";
1301
- action_attempt_id: string;
1302
- error: null;
1303
- result: {};
1304
- action_type: "SYNC_ACCESS_CODES";
1305
- } | {
1306
- status: "error";
1307
- action_attempt_id: string;
1308
- error: {
1309
- message: string;
1310
- type: string;
1311
- };
1312
- result: null;
1313
- action_type: "SYNC_ACCESS_CODES";
1314
- } | {
1315
- status: "pending";
1316
- action_attempt_id: string;
1317
- error: null;
1318
- result: null;
1319
- action_type: "CREATE_ACCESS_CODE";
1320
- } | {
1321
- status: "success";
1322
- action_attempt_id: string;
1323
- error: null;
1324
- result: {
1325
- access_code?: any;
1326
- };
1327
- action_type: "CREATE_ACCESS_CODE";
1328
- } | {
1329
- status: "error";
1330
- action_attempt_id: string;
1331
- error: {
1332
- message: string;
1333
- type: string;
1334
- };
1335
- result: null;
1336
- action_type: "CREATE_ACCESS_CODE";
1337
- } | {
1338
- status: "pending";
1339
- action_attempt_id: string;
1340
- error: null;
1341
- result: null;
1342
- action_type: "DELETE_ACCESS_CODE";
1343
- } | {
1344
- status: "success";
1345
- action_attempt_id: string;
1346
- error: null;
1347
- result: {};
1348
- action_type: "DELETE_ACCESS_CODE";
1349
- } | {
1350
- status: "error";
1351
- action_attempt_id: string;
1352
- error: {
1353
- message: string;
1354
- type: string;
1355
- };
1356
- result: null;
1357
- action_type: "DELETE_ACCESS_CODE";
1358
- } | {
1359
- status: "pending";
1360
- action_attempt_id: string;
1361
- error: null;
1362
- result: null;
1363
- action_type: "UPDATE_ACCESS_CODE";
1364
- } | {
1365
- status: "success";
1366
- action_attempt_id: string;
1367
- error: null;
1368
- result: {
1369
- access_code?: any;
1370
- };
1371
- action_type: "UPDATE_ACCESS_CODE";
1372
- } | {
1373
- status: "error";
1374
- action_attempt_id: string;
1375
- error: {
1376
- message: string;
1377
- type: string;
1378
- };
1379
- result: null;
1380
- action_type: "UPDATE_ACCESS_CODE";
1381
- } | {
1382
- status: "pending";
1383
- action_attempt_id: string;
1384
- error: null;
1385
- result: null;
1386
- action_type: "CREATE_NOISE_THRESHOLD";
1387
- } | {
1388
- status: "success";
1389
- action_attempt_id: string;
1390
- error: null;
1391
- result: {
1392
- noise_threshold?: any;
1393
- };
1394
- action_type: "CREATE_NOISE_THRESHOLD";
1395
- } | {
1396
- status: "error";
1397
- action_attempt_id: string;
1398
- error: {
1399
- message: string;
1400
- type: string;
1401
- };
1402
- result: null;
1403
- action_type: "CREATE_NOISE_THRESHOLD";
1404
- } | {
1405
- status: "pending";
1406
- action_attempt_id: string;
1407
- error: null;
1408
- result: null;
1409
- action_type: "DELETE_NOISE_THRESHOLD";
1410
- } | {
1411
- status: "success";
1412
- action_attempt_id: string;
1413
- error: null;
1414
- result: {};
1415
- action_type: "DELETE_NOISE_THRESHOLD";
1416
- } | {
1417
- status: "error";
1418
- action_attempt_id: string;
1419
- error: {
1420
- message: string;
1421
- type: string;
1422
- };
1423
- result: null;
1424
- action_type: "DELETE_NOISE_THRESHOLD";
1425
- } | {
1426
- status: "pending";
1427
- action_attempt_id: string;
1428
- error: null;
1429
- result: null;
1430
- action_type: "UPDATE_NOISE_THRESHOLD";
1431
- } | {
1432
- status: "success";
1433
- action_attempt_id: string;
1434
- error: null;
1435
- result: {
1436
- noise_threshold?: any;
1437
- };
1438
- action_type: "UPDATE_NOISE_THRESHOLD";
1439
- } | {
1440
- status: "error";
1441
- action_attempt_id: string;
1442
- error: {
1443
- message: string;
1444
- type: string;
1445
- };
1446
- result: null;
1447
- action_type: "UPDATE_NOISE_THRESHOLD";
1448
- }>(error: unknown) => error is SeamActionAttemptError<T>;
7
+ export declare const resolveActionAttempt: <T extends ActionAttempt>(actionAttempt: T, actionAttempts: SeamHttpActionAttempts, { timeout, pollingInterval }: ResolveActionAttemptOptions) => Promise<SucceededActionAttempt<T>>;
8
+ export declare const isSeamActionAttemptError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptError<T>;
1449
9
  export declare class SeamActionAttemptError<T extends ActionAttempt> extends Error {
1450
10
  actionAttempt: T;
1451
11
  constructor(message: string, actionAttempt: T);
1452
12
  }
1453
- export declare const isSeamActionAttemptFailedError: <T extends {
1454
- status: "pending";
1455
- action_attempt_id: string;
1456
- error: null;
1457
- result: null;
1458
- action_type: "LOCK_DOOR";
1459
- } | {
1460
- status: "success";
1461
- action_attempt_id: string;
1462
- error: null;
1463
- result: {};
1464
- action_type: "LOCK_DOOR";
1465
- } | {
1466
- status: "error";
1467
- action_attempt_id: string;
1468
- error: {
1469
- message: string;
1470
- type: string;
1471
- };
1472
- result: null;
1473
- action_type: "LOCK_DOOR";
1474
- } | {
1475
- status: "pending";
1476
- action_attempt_id: string;
1477
- error: null;
1478
- result: null;
1479
- action_type: "UNLOCK_DOOR";
1480
- } | {
1481
- status: "success";
1482
- action_attempt_id: string;
1483
- error: null;
1484
- result: {};
1485
- action_type: "UNLOCK_DOOR";
1486
- } | {
1487
- status: "error";
1488
- action_attempt_id: string;
1489
- error: {
1490
- message: string;
1491
- type: string;
1492
- };
1493
- result: null;
1494
- action_type: "UNLOCK_DOOR";
1495
- } | {
1496
- status: "pending";
1497
- action_attempt_id: string;
1498
- error: null;
1499
- result: null;
1500
- action_type: "SCAN_CREDENTIAL";
1501
- } | {
1502
- status: "success";
1503
- action_attempt_id: string;
1504
- error: null;
1505
- result: {
1506
- warnings: {
1507
- warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
1508
- warning_message: string;
1509
- }[];
1510
- acs_credential_on_encoder: {
1511
- created_at: string | null;
1512
- starts_at: string | null;
1513
- ends_at: string | null;
1514
- is_issued: boolean | null;
1515
- card_number: string | null;
1516
- visionline_metadata?: {
1517
- card_id: string;
1518
- cancelled: boolean;
1519
- discarded: boolean;
1520
- expired: boolean;
1521
- overwritten: boolean;
1522
- pending_auto_update: boolean;
1523
- card_format: "TLCode" | "rfid48";
1524
- number_of_issued_cards: number;
1525
- guest_acs_entrance_ids?: string[] | undefined;
1526
- common_acs_entrance_ids?: string[] | undefined;
1527
- overridden?: boolean | undefined;
1528
- card_holder?: string | undefined;
1529
- } | undefined;
1530
- } | null;
1531
- acs_credential_on_seam: {
1532
- display_name: string;
1533
- workspace_id: string;
1534
- created_at: string;
1535
- errors: {
1536
- message: string;
1537
- error_code: string;
1538
- }[];
1539
- connected_account_id: string;
1540
- warnings: ({
1541
- message: string;
1542
- created_at: string;
1543
- warning_code: "waiting_to_be_issued";
1544
- } | {
1545
- message: string;
1546
- created_at: string;
1547
- warning_code: "schedule_externally_modified";
1548
- } | {
1549
- message: string;
1550
- created_at: string;
1551
- warning_code: "schedule_modified";
1552
- } | {
1553
- message: string;
1554
- created_at: string;
1555
- warning_code: "being_deleted";
1556
- } | {
1557
- message: string;
1558
- created_at: string;
1559
- warning_code: "unknown_issue_with_acs_credential";
1560
- } | {
1561
- message: string;
1562
- created_at: string;
1563
- warning_code: "needs_to_be_reissued";
1564
- })[];
1565
- is_managed: true;
1566
- acs_system_id: string;
1567
- acs_credential_id: string;
1568
- access_method: "code" | "card" | "mobile_key";
1569
- code?: string | null | undefined;
1570
- starts_at?: string | undefined;
1571
- ends_at?: string | undefined;
1572
- visionline_metadata?: {
1573
- card_function_type: "guest" | "staff";
1574
- auto_join?: boolean | undefined;
1575
- joiner_acs_credential_ids?: string[] | undefined;
1576
- guest_acs_entrance_ids?: string[] | undefined;
1577
- common_acs_entrance_ids?: string[] | undefined;
1578
- is_valid?: boolean | undefined;
1579
- card_id?: string | undefined;
1580
- credential_id?: string | undefined;
1581
- } | undefined;
1582
- assa_abloy_vostio_metadata?: {
1583
- endpoint_id?: string | undefined;
1584
- auto_join?: boolean | undefined;
1585
- override_guest_acs_entrance_ids?: string[] | undefined;
1586
- key_id?: string | undefined;
1587
- key_issuing_request_id?: string | undefined;
1588
- door_names?: string[] | undefined;
1589
- } | undefined;
1590
- is_one_time_use?: boolean | undefined;
1591
- user_identity_id?: string | undefined;
1592
- issued_at?: string | null | undefined;
1593
- is_issued?: boolean | undefined;
1594
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
1595
- external_type_display_name?: string | undefined;
1596
- acs_user_id?: string | undefined;
1597
- acs_credential_pool_id?: string | undefined;
1598
- parent_acs_credential_id?: string | undefined;
1599
- card_number?: string | null | undefined;
1600
- is_multi_phone_sync_credential?: boolean | undefined;
1601
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1602
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
1603
- } | {
1604
- display_name: string;
1605
- workspace_id: string;
1606
- created_at: string;
1607
- errors: {
1608
- message: string;
1609
- error_code: string;
1610
- }[];
1611
- connected_account_id: string;
1612
- warnings: ({
1613
- message: string;
1614
- created_at: string;
1615
- warning_code: "waiting_to_be_issued";
1616
- } | {
1617
- message: string;
1618
- created_at: string;
1619
- warning_code: "schedule_externally_modified";
1620
- } | {
1621
- message: string;
1622
- created_at: string;
1623
- warning_code: "schedule_modified";
1624
- } | {
1625
- message: string;
1626
- created_at: string;
1627
- warning_code: "being_deleted";
1628
- } | {
1629
- message: string;
1630
- created_at: string;
1631
- warning_code: "unknown_issue_with_acs_credential";
1632
- } | {
1633
- message: string;
1634
- created_at: string;
1635
- warning_code: "needs_to_be_reissued";
1636
- })[];
1637
- is_managed: false;
1638
- acs_system_id: string;
1639
- acs_credential_id: string;
1640
- access_method: "code" | "card" | "mobile_key";
1641
- code?: string | null | undefined;
1642
- starts_at?: string | undefined;
1643
- ends_at?: string | undefined;
1644
- visionline_metadata?: {
1645
- card_function_type: "guest" | "staff";
1646
- auto_join?: boolean | undefined;
1647
- joiner_acs_credential_ids?: string[] | undefined;
1648
- guest_acs_entrance_ids?: string[] | undefined;
1649
- common_acs_entrance_ids?: string[] | undefined;
1650
- is_valid?: boolean | undefined;
1651
- card_id?: string | undefined;
1652
- credential_id?: string | undefined;
1653
- } | undefined;
1654
- assa_abloy_vostio_metadata?: {
1655
- endpoint_id?: string | undefined;
1656
- auto_join?: boolean | undefined;
1657
- override_guest_acs_entrance_ids?: string[] | undefined;
1658
- key_id?: string | undefined;
1659
- key_issuing_request_id?: string | undefined;
1660
- door_names?: string[] | undefined;
1661
- } | undefined;
1662
- is_one_time_use?: boolean | undefined;
1663
- user_identity_id?: string | undefined;
1664
- issued_at?: string | null | undefined;
1665
- is_issued?: boolean | undefined;
1666
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
1667
- external_type_display_name?: string | undefined;
1668
- acs_user_id?: string | undefined;
1669
- acs_credential_pool_id?: string | undefined;
1670
- parent_acs_credential_id?: string | undefined;
1671
- card_number?: string | null | undefined;
1672
- is_multi_phone_sync_credential?: boolean | undefined;
1673
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1674
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
1675
- } | null;
1676
- };
1677
- action_type: "SCAN_CREDENTIAL";
1678
- } | {
1679
- status: "error";
1680
- action_attempt_id: string;
1681
- error: {
1682
- message: string;
1683
- type: "uncategorized_error";
1684
- } | {
1685
- message: string;
1686
- type: "action_attempt_expired";
1687
- } | {
1688
- message: string;
1689
- type: "no_credential_on_encoder";
1690
- };
1691
- result: null;
1692
- action_type: "SCAN_CREDENTIAL";
1693
- } | {
1694
- status: "pending";
1695
- action_attempt_id: string;
1696
- error: null;
1697
- result: null;
1698
- action_type: "ENCODE_CREDENTIAL";
1699
- } | {
1700
- status: "success";
1701
- action_attempt_id: string;
1702
- error: null;
1703
- result: {
1704
- display_name: string;
1705
- workspace_id: string;
1706
- created_at: string;
1707
- errors: {
1708
- message: string;
1709
- error_code: string;
1710
- }[];
1711
- connected_account_id: string;
1712
- warnings: ({
1713
- message: string;
1714
- created_at: string;
1715
- warning_code: "waiting_to_be_issued";
1716
- } | {
1717
- message: string;
1718
- created_at: string;
1719
- warning_code: "schedule_externally_modified";
1720
- } | {
1721
- message: string;
1722
- created_at: string;
1723
- warning_code: "schedule_modified";
1724
- } | {
1725
- message: string;
1726
- created_at: string;
1727
- warning_code: "being_deleted";
1728
- } | {
1729
- message: string;
1730
- created_at: string;
1731
- warning_code: "unknown_issue_with_acs_credential";
1732
- } | {
1733
- message: string;
1734
- created_at: string;
1735
- warning_code: "needs_to_be_reissued";
1736
- })[];
1737
- is_managed: true;
1738
- acs_system_id: string;
1739
- acs_credential_id: string;
1740
- access_method: "code" | "card" | "mobile_key";
1741
- code?: string | null | undefined;
1742
- starts_at?: string | undefined;
1743
- ends_at?: string | undefined;
1744
- visionline_metadata?: {
1745
- card_function_type: "guest" | "staff";
1746
- auto_join?: boolean | undefined;
1747
- joiner_acs_credential_ids?: string[] | undefined;
1748
- guest_acs_entrance_ids?: string[] | undefined;
1749
- common_acs_entrance_ids?: string[] | undefined;
1750
- is_valid?: boolean | undefined;
1751
- card_id?: string | undefined;
1752
- credential_id?: string | undefined;
1753
- } | undefined;
1754
- assa_abloy_vostio_metadata?: {
1755
- endpoint_id?: string | undefined;
1756
- auto_join?: boolean | undefined;
1757
- override_guest_acs_entrance_ids?: string[] | undefined;
1758
- key_id?: string | undefined;
1759
- key_issuing_request_id?: string | undefined;
1760
- door_names?: string[] | undefined;
1761
- } | undefined;
1762
- is_one_time_use?: boolean | undefined;
1763
- user_identity_id?: string | undefined;
1764
- issued_at?: string | null | undefined;
1765
- is_issued?: boolean | undefined;
1766
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
1767
- external_type_display_name?: string | undefined;
1768
- acs_user_id?: string | undefined;
1769
- acs_credential_pool_id?: string | undefined;
1770
- parent_acs_credential_id?: string | undefined;
1771
- card_number?: string | null | undefined;
1772
- is_multi_phone_sync_credential?: boolean | undefined;
1773
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1774
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
1775
- } | {
1776
- display_name: string;
1777
- workspace_id: string;
1778
- created_at: string;
1779
- errors: {
1780
- message: string;
1781
- error_code: string;
1782
- }[];
1783
- connected_account_id: string;
1784
- warnings: ({
1785
- message: string;
1786
- created_at: string;
1787
- warning_code: "waiting_to_be_issued";
1788
- } | {
1789
- message: string;
1790
- created_at: string;
1791
- warning_code: "schedule_externally_modified";
1792
- } | {
1793
- message: string;
1794
- created_at: string;
1795
- warning_code: "schedule_modified";
1796
- } | {
1797
- message: string;
1798
- created_at: string;
1799
- warning_code: "being_deleted";
1800
- } | {
1801
- message: string;
1802
- created_at: string;
1803
- warning_code: "unknown_issue_with_acs_credential";
1804
- } | {
1805
- message: string;
1806
- created_at: string;
1807
- warning_code: "needs_to_be_reissued";
1808
- })[];
1809
- is_managed: false;
1810
- acs_system_id: string;
1811
- acs_credential_id: string;
1812
- access_method: "code" | "card" | "mobile_key";
1813
- code?: string | null | undefined;
1814
- starts_at?: string | undefined;
1815
- ends_at?: string | undefined;
1816
- visionline_metadata?: {
1817
- card_function_type: "guest" | "staff";
1818
- auto_join?: boolean | undefined;
1819
- joiner_acs_credential_ids?: string[] | undefined;
1820
- guest_acs_entrance_ids?: string[] | undefined;
1821
- common_acs_entrance_ids?: string[] | undefined;
1822
- is_valid?: boolean | undefined;
1823
- card_id?: string | undefined;
1824
- credential_id?: string | undefined;
1825
- } | undefined;
1826
- assa_abloy_vostio_metadata?: {
1827
- endpoint_id?: string | undefined;
1828
- auto_join?: boolean | undefined;
1829
- override_guest_acs_entrance_ids?: string[] | undefined;
1830
- key_id?: string | undefined;
1831
- key_issuing_request_id?: string | undefined;
1832
- door_names?: string[] | undefined;
1833
- } | undefined;
1834
- is_one_time_use?: boolean | undefined;
1835
- user_identity_id?: string | undefined;
1836
- issued_at?: string | null | undefined;
1837
- is_issued?: boolean | undefined;
1838
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
1839
- external_type_display_name?: string | undefined;
1840
- acs_user_id?: string | undefined;
1841
- acs_credential_pool_id?: string | undefined;
1842
- parent_acs_credential_id?: string | undefined;
1843
- card_number?: string | null | undefined;
1844
- is_multi_phone_sync_credential?: boolean | undefined;
1845
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1846
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
1847
- };
1848
- action_type: "ENCODE_CREDENTIAL";
1849
- } | {
1850
- status: "error";
1851
- action_attempt_id: string;
1852
- error: {
1853
- message: string;
1854
- type: "uncategorized_error";
1855
- } | {
1856
- message: string;
1857
- type: "action_attempt_expired";
1858
- } | {
1859
- message: string;
1860
- type: "no_credential_on_encoder";
1861
- } | {
1862
- message: string;
1863
- type: "incompatible_card_format";
1864
- } | {
1865
- message: string;
1866
- type: "credential_cannot_be_reissued";
1867
- };
1868
- result: null;
1869
- action_type: "ENCODE_CREDENTIAL";
1870
- } | {
1871
- status: "pending";
1872
- action_attempt_id: string;
1873
- error: null;
1874
- result: null;
1875
- action_type: "RESET_SANDBOX_WORKSPACE";
1876
- } | {
1877
- status: "success";
1878
- action_attempt_id: string;
1879
- error: null;
1880
- result: {};
1881
- action_type: "RESET_SANDBOX_WORKSPACE";
1882
- } | {
1883
- status: "error";
1884
- action_attempt_id: string;
1885
- error: {
1886
- message: string;
1887
- type: string;
1888
- };
1889
- result: null;
1890
- action_type: "RESET_SANDBOX_WORKSPACE";
1891
- } | {
1892
- status: "pending";
1893
- action_attempt_id: string;
1894
- error: null;
1895
- result: null;
1896
- action_type: "SET_FAN_MODE";
1897
- } | {
1898
- status: "success";
1899
- action_attempt_id: string;
1900
- error: null;
1901
- result: {};
1902
- action_type: "SET_FAN_MODE";
1903
- } | {
1904
- status: "error";
1905
- action_attempt_id: string;
1906
- error: {
1907
- message: string;
1908
- type: string;
1909
- };
1910
- result: null;
1911
- action_type: "SET_FAN_MODE";
1912
- } | {
1913
- status: "pending";
1914
- action_attempt_id: string;
1915
- error: null;
1916
- result: null;
1917
- action_type: "SET_HVAC_MODE";
1918
- } | {
1919
- status: "success";
1920
- action_attempt_id: string;
1921
- error: null;
1922
- result: {};
1923
- action_type: "SET_HVAC_MODE";
1924
- } | {
1925
- status: "error";
1926
- action_attempt_id: string;
1927
- error: {
1928
- message: string;
1929
- type: string;
1930
- };
1931
- result: null;
1932
- action_type: "SET_HVAC_MODE";
1933
- } | {
1934
- status: "pending";
1935
- action_attempt_id: string;
1936
- error: null;
1937
- result: null;
1938
- action_type: "ACTIVATE_CLIMATE_PRESET";
1939
- } | {
1940
- status: "success";
1941
- action_attempt_id: string;
1942
- error: null;
1943
- result: {};
1944
- action_type: "ACTIVATE_CLIMATE_PRESET";
1945
- } | {
1946
- status: "error";
1947
- action_attempt_id: string;
1948
- error: {
1949
- message: string;
1950
- type: string;
1951
- };
1952
- result: null;
1953
- action_type: "ACTIVATE_CLIMATE_PRESET";
1954
- } | {
1955
- status: "pending";
1956
- action_attempt_id: string;
1957
- error: null;
1958
- result: null;
1959
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
1960
- } | {
1961
- status: "success";
1962
- action_attempt_id: string;
1963
- error: null;
1964
- result: {};
1965
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
1966
- } | {
1967
- status: "error";
1968
- action_attempt_id: string;
1969
- error: {
1970
- message: string;
1971
- type: string;
1972
- };
1973
- result: null;
1974
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
1975
- } | {
1976
- status: "pending";
1977
- action_attempt_id: string;
1978
- error: null;
1979
- result: null;
1980
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
1981
- } | {
1982
- status: "success";
1983
- action_attempt_id: string;
1984
- error: null;
1985
- result: {};
1986
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
1987
- } | {
1988
- status: "error";
1989
- action_attempt_id: string;
1990
- error: {
1991
- message: string;
1992
- type: string;
1993
- };
1994
- result: null;
1995
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
1996
- } | {
1997
- status: "pending";
1998
- action_attempt_id: string;
1999
- error: null;
2000
- result: null;
2001
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
2002
- } | {
2003
- status: "success";
2004
- action_attempt_id: string;
2005
- error: null;
2006
- result: {};
2007
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
2008
- } | {
2009
- status: "error";
2010
- action_attempt_id: string;
2011
- error: {
2012
- message: string;
2013
- type: string;
2014
- };
2015
- result: null;
2016
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
2017
- } | {
2018
- status: "pending";
2019
- action_attempt_id: string;
2020
- error: null;
2021
- result: null;
2022
- action_type: "SYNC_ACCESS_CODES";
2023
- } | {
2024
- status: "success";
2025
- action_attempt_id: string;
2026
- error: null;
2027
- result: {};
2028
- action_type: "SYNC_ACCESS_CODES";
2029
- } | {
2030
- status: "error";
2031
- action_attempt_id: string;
2032
- error: {
2033
- message: string;
2034
- type: string;
2035
- };
2036
- result: null;
2037
- action_type: "SYNC_ACCESS_CODES";
2038
- } | {
2039
- status: "pending";
2040
- action_attempt_id: string;
2041
- error: null;
2042
- result: null;
2043
- action_type: "CREATE_ACCESS_CODE";
2044
- } | {
2045
- status: "success";
2046
- action_attempt_id: string;
2047
- error: null;
2048
- result: {
2049
- access_code?: any;
2050
- };
2051
- action_type: "CREATE_ACCESS_CODE";
2052
- } | {
2053
- status: "error";
2054
- action_attempt_id: string;
2055
- error: {
2056
- message: string;
2057
- type: string;
2058
- };
2059
- result: null;
2060
- action_type: "CREATE_ACCESS_CODE";
2061
- } | {
2062
- status: "pending";
2063
- action_attempt_id: string;
2064
- error: null;
2065
- result: null;
2066
- action_type: "DELETE_ACCESS_CODE";
2067
- } | {
2068
- status: "success";
2069
- action_attempt_id: string;
2070
- error: null;
2071
- result: {};
2072
- action_type: "DELETE_ACCESS_CODE";
2073
- } | {
2074
- status: "error";
2075
- action_attempt_id: string;
2076
- error: {
2077
- message: string;
2078
- type: string;
2079
- };
2080
- result: null;
2081
- action_type: "DELETE_ACCESS_CODE";
2082
- } | {
2083
- status: "pending";
2084
- action_attempt_id: string;
2085
- error: null;
2086
- result: null;
2087
- action_type: "UPDATE_ACCESS_CODE";
2088
- } | {
2089
- status: "success";
2090
- action_attempt_id: string;
2091
- error: null;
2092
- result: {
2093
- access_code?: any;
2094
- };
2095
- action_type: "UPDATE_ACCESS_CODE";
2096
- } | {
2097
- status: "error";
2098
- action_attempt_id: string;
2099
- error: {
2100
- message: string;
2101
- type: string;
2102
- };
2103
- result: null;
2104
- action_type: "UPDATE_ACCESS_CODE";
2105
- } | {
2106
- status: "pending";
2107
- action_attempt_id: string;
2108
- error: null;
2109
- result: null;
2110
- action_type: "CREATE_NOISE_THRESHOLD";
2111
- } | {
2112
- status: "success";
2113
- action_attempt_id: string;
2114
- error: null;
2115
- result: {
2116
- noise_threshold?: any;
2117
- };
2118
- action_type: "CREATE_NOISE_THRESHOLD";
2119
- } | {
2120
- status: "error";
2121
- action_attempt_id: string;
2122
- error: {
2123
- message: string;
2124
- type: string;
2125
- };
2126
- result: null;
2127
- action_type: "CREATE_NOISE_THRESHOLD";
2128
- } | {
2129
- status: "pending";
2130
- action_attempt_id: string;
2131
- error: null;
2132
- result: null;
2133
- action_type: "DELETE_NOISE_THRESHOLD";
2134
- } | {
2135
- status: "success";
2136
- action_attempt_id: string;
2137
- error: null;
2138
- result: {};
2139
- action_type: "DELETE_NOISE_THRESHOLD";
2140
- } | {
2141
- status: "error";
2142
- action_attempt_id: string;
2143
- error: {
2144
- message: string;
2145
- type: string;
2146
- };
2147
- result: null;
2148
- action_type: "DELETE_NOISE_THRESHOLD";
2149
- } | {
2150
- status: "pending";
2151
- action_attempt_id: string;
2152
- error: null;
2153
- result: null;
2154
- action_type: "UPDATE_NOISE_THRESHOLD";
2155
- } | {
2156
- status: "success";
2157
- action_attempt_id: string;
2158
- error: null;
2159
- result: {
2160
- noise_threshold?: any;
2161
- };
2162
- action_type: "UPDATE_NOISE_THRESHOLD";
2163
- } | {
2164
- status: "error";
2165
- action_attempt_id: string;
2166
- error: {
2167
- message: string;
2168
- type: string;
2169
- };
2170
- result: null;
2171
- action_type: "UPDATE_NOISE_THRESHOLD";
2172
- }>(error: unknown) => error is SeamActionAttemptFailedError<T>;
13
+ export declare const isSeamActionAttemptFailedError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptFailedError<T>;
2173
14
  export declare class SeamActionAttemptFailedError<T extends ActionAttempt> extends SeamActionAttemptError<T> {
2174
15
  code: string;
2175
16
  constructor(actionAttempt: FailedActionAttempt<T>);
2176
17
  }
2177
- export declare const isSeamActionAttemptTimeoutError: <T extends {
2178
- status: "pending";
2179
- action_attempt_id: string;
2180
- error: null;
2181
- result: null;
2182
- action_type: "LOCK_DOOR";
2183
- } | {
2184
- status: "success";
2185
- action_attempt_id: string;
2186
- error: null;
2187
- result: {};
2188
- action_type: "LOCK_DOOR";
2189
- } | {
2190
- status: "error";
2191
- action_attempt_id: string;
2192
- error: {
2193
- message: string;
2194
- type: string;
2195
- };
2196
- result: null;
2197
- action_type: "LOCK_DOOR";
2198
- } | {
2199
- status: "pending";
2200
- action_attempt_id: string;
2201
- error: null;
2202
- result: null;
2203
- action_type: "UNLOCK_DOOR";
2204
- } | {
2205
- status: "success";
2206
- action_attempt_id: string;
2207
- error: null;
2208
- result: {};
2209
- action_type: "UNLOCK_DOOR";
2210
- } | {
2211
- status: "error";
2212
- action_attempt_id: string;
2213
- error: {
2214
- message: string;
2215
- type: string;
2216
- };
2217
- result: null;
2218
- action_type: "UNLOCK_DOOR";
2219
- } | {
2220
- status: "pending";
2221
- action_attempt_id: string;
2222
- error: null;
2223
- result: null;
2224
- action_type: "SCAN_CREDENTIAL";
2225
- } | {
2226
- status: "success";
2227
- action_attempt_id: string;
2228
- error: null;
2229
- result: {
2230
- warnings: {
2231
- warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
2232
- warning_message: string;
2233
- }[];
2234
- acs_credential_on_encoder: {
2235
- created_at: string | null;
2236
- starts_at: string | null;
2237
- ends_at: string | null;
2238
- is_issued: boolean | null;
2239
- card_number: string | null;
2240
- visionline_metadata?: {
2241
- card_id: string;
2242
- cancelled: boolean;
2243
- discarded: boolean;
2244
- expired: boolean;
2245
- overwritten: boolean;
2246
- pending_auto_update: boolean;
2247
- card_format: "TLCode" | "rfid48";
2248
- number_of_issued_cards: number;
2249
- guest_acs_entrance_ids?: string[] | undefined;
2250
- common_acs_entrance_ids?: string[] | undefined;
2251
- overridden?: boolean | undefined;
2252
- card_holder?: string | undefined;
2253
- } | undefined;
2254
- } | null;
2255
- acs_credential_on_seam: {
2256
- display_name: string;
2257
- workspace_id: string;
2258
- created_at: string;
2259
- errors: {
2260
- message: string;
2261
- error_code: string;
2262
- }[];
2263
- connected_account_id: string;
2264
- warnings: ({
2265
- message: string;
2266
- created_at: string;
2267
- warning_code: "waiting_to_be_issued";
2268
- } | {
2269
- message: string;
2270
- created_at: string;
2271
- warning_code: "schedule_externally_modified";
2272
- } | {
2273
- message: string;
2274
- created_at: string;
2275
- warning_code: "schedule_modified";
2276
- } | {
2277
- message: string;
2278
- created_at: string;
2279
- warning_code: "being_deleted";
2280
- } | {
2281
- message: string;
2282
- created_at: string;
2283
- warning_code: "unknown_issue_with_acs_credential";
2284
- } | {
2285
- message: string;
2286
- created_at: string;
2287
- warning_code: "needs_to_be_reissued";
2288
- })[];
2289
- is_managed: true;
2290
- acs_system_id: string;
2291
- acs_credential_id: string;
2292
- access_method: "code" | "card" | "mobile_key";
2293
- code?: string | null | undefined;
2294
- starts_at?: string | undefined;
2295
- ends_at?: string | undefined;
2296
- visionline_metadata?: {
2297
- card_function_type: "guest" | "staff";
2298
- auto_join?: boolean | undefined;
2299
- joiner_acs_credential_ids?: string[] | undefined;
2300
- guest_acs_entrance_ids?: string[] | undefined;
2301
- common_acs_entrance_ids?: string[] | undefined;
2302
- is_valid?: boolean | undefined;
2303
- card_id?: string | undefined;
2304
- credential_id?: string | undefined;
2305
- } | undefined;
2306
- assa_abloy_vostio_metadata?: {
2307
- endpoint_id?: string | undefined;
2308
- auto_join?: boolean | undefined;
2309
- override_guest_acs_entrance_ids?: string[] | undefined;
2310
- key_id?: string | undefined;
2311
- key_issuing_request_id?: string | undefined;
2312
- door_names?: string[] | undefined;
2313
- } | undefined;
2314
- is_one_time_use?: boolean | undefined;
2315
- user_identity_id?: string | undefined;
2316
- issued_at?: string | null | undefined;
2317
- is_issued?: boolean | undefined;
2318
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
2319
- external_type_display_name?: string | undefined;
2320
- acs_user_id?: string | undefined;
2321
- acs_credential_pool_id?: string | undefined;
2322
- parent_acs_credential_id?: string | undefined;
2323
- card_number?: string | null | undefined;
2324
- is_multi_phone_sync_credential?: boolean | undefined;
2325
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
2326
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
2327
- } | {
2328
- display_name: string;
2329
- workspace_id: string;
2330
- created_at: string;
2331
- errors: {
2332
- message: string;
2333
- error_code: string;
2334
- }[];
2335
- connected_account_id: string;
2336
- warnings: ({
2337
- message: string;
2338
- created_at: string;
2339
- warning_code: "waiting_to_be_issued";
2340
- } | {
2341
- message: string;
2342
- created_at: string;
2343
- warning_code: "schedule_externally_modified";
2344
- } | {
2345
- message: string;
2346
- created_at: string;
2347
- warning_code: "schedule_modified";
2348
- } | {
2349
- message: string;
2350
- created_at: string;
2351
- warning_code: "being_deleted";
2352
- } | {
2353
- message: string;
2354
- created_at: string;
2355
- warning_code: "unknown_issue_with_acs_credential";
2356
- } | {
2357
- message: string;
2358
- created_at: string;
2359
- warning_code: "needs_to_be_reissued";
2360
- })[];
2361
- is_managed: false;
2362
- acs_system_id: string;
2363
- acs_credential_id: string;
2364
- access_method: "code" | "card" | "mobile_key";
2365
- code?: string | null | undefined;
2366
- starts_at?: string | undefined;
2367
- ends_at?: string | undefined;
2368
- visionline_metadata?: {
2369
- card_function_type: "guest" | "staff";
2370
- auto_join?: boolean | undefined;
2371
- joiner_acs_credential_ids?: string[] | undefined;
2372
- guest_acs_entrance_ids?: string[] | undefined;
2373
- common_acs_entrance_ids?: string[] | undefined;
2374
- is_valid?: boolean | undefined;
2375
- card_id?: string | undefined;
2376
- credential_id?: string | undefined;
2377
- } | undefined;
2378
- assa_abloy_vostio_metadata?: {
2379
- endpoint_id?: string | undefined;
2380
- auto_join?: boolean | undefined;
2381
- override_guest_acs_entrance_ids?: string[] | undefined;
2382
- key_id?: string | undefined;
2383
- key_issuing_request_id?: string | undefined;
2384
- door_names?: string[] | undefined;
2385
- } | undefined;
2386
- is_one_time_use?: boolean | undefined;
2387
- user_identity_id?: string | undefined;
2388
- issued_at?: string | null | undefined;
2389
- is_issued?: boolean | undefined;
2390
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
2391
- external_type_display_name?: string | undefined;
2392
- acs_user_id?: string | undefined;
2393
- acs_credential_pool_id?: string | undefined;
2394
- parent_acs_credential_id?: string | undefined;
2395
- card_number?: string | null | undefined;
2396
- is_multi_phone_sync_credential?: boolean | undefined;
2397
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
2398
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
2399
- } | null;
2400
- };
2401
- action_type: "SCAN_CREDENTIAL";
2402
- } | {
2403
- status: "error";
2404
- action_attempt_id: string;
2405
- error: {
2406
- message: string;
2407
- type: "uncategorized_error";
2408
- } | {
2409
- message: string;
2410
- type: "action_attempt_expired";
2411
- } | {
2412
- message: string;
2413
- type: "no_credential_on_encoder";
2414
- };
2415
- result: null;
2416
- action_type: "SCAN_CREDENTIAL";
2417
- } | {
2418
- status: "pending";
2419
- action_attempt_id: string;
2420
- error: null;
2421
- result: null;
2422
- action_type: "ENCODE_CREDENTIAL";
2423
- } | {
2424
- status: "success";
2425
- action_attempt_id: string;
2426
- error: null;
2427
- result: {
2428
- display_name: string;
2429
- workspace_id: string;
2430
- created_at: string;
2431
- errors: {
2432
- message: string;
2433
- error_code: string;
2434
- }[];
2435
- connected_account_id: string;
2436
- warnings: ({
2437
- message: string;
2438
- created_at: string;
2439
- warning_code: "waiting_to_be_issued";
2440
- } | {
2441
- message: string;
2442
- created_at: string;
2443
- warning_code: "schedule_externally_modified";
2444
- } | {
2445
- message: string;
2446
- created_at: string;
2447
- warning_code: "schedule_modified";
2448
- } | {
2449
- message: string;
2450
- created_at: string;
2451
- warning_code: "being_deleted";
2452
- } | {
2453
- message: string;
2454
- created_at: string;
2455
- warning_code: "unknown_issue_with_acs_credential";
2456
- } | {
2457
- message: string;
2458
- created_at: string;
2459
- warning_code: "needs_to_be_reissued";
2460
- })[];
2461
- is_managed: true;
2462
- acs_system_id: string;
2463
- acs_credential_id: string;
2464
- access_method: "code" | "card" | "mobile_key";
2465
- code?: string | null | undefined;
2466
- starts_at?: string | undefined;
2467
- ends_at?: string | undefined;
2468
- visionline_metadata?: {
2469
- card_function_type: "guest" | "staff";
2470
- auto_join?: boolean | undefined;
2471
- joiner_acs_credential_ids?: string[] | undefined;
2472
- guest_acs_entrance_ids?: string[] | undefined;
2473
- common_acs_entrance_ids?: string[] | undefined;
2474
- is_valid?: boolean | undefined;
2475
- card_id?: string | undefined;
2476
- credential_id?: string | undefined;
2477
- } | undefined;
2478
- assa_abloy_vostio_metadata?: {
2479
- endpoint_id?: string | undefined;
2480
- auto_join?: boolean | undefined;
2481
- override_guest_acs_entrance_ids?: string[] | undefined;
2482
- key_id?: string | undefined;
2483
- key_issuing_request_id?: string | undefined;
2484
- door_names?: string[] | undefined;
2485
- } | undefined;
2486
- is_one_time_use?: boolean | undefined;
2487
- user_identity_id?: string | undefined;
2488
- issued_at?: string | null | undefined;
2489
- is_issued?: boolean | undefined;
2490
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
2491
- external_type_display_name?: string | undefined;
2492
- acs_user_id?: string | undefined;
2493
- acs_credential_pool_id?: string | undefined;
2494
- parent_acs_credential_id?: string | undefined;
2495
- card_number?: string | null | undefined;
2496
- is_multi_phone_sync_credential?: boolean | undefined;
2497
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
2498
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
2499
- } | {
2500
- display_name: string;
2501
- workspace_id: string;
2502
- created_at: string;
2503
- errors: {
2504
- message: string;
2505
- error_code: string;
2506
- }[];
2507
- connected_account_id: string;
2508
- warnings: ({
2509
- message: string;
2510
- created_at: string;
2511
- warning_code: "waiting_to_be_issued";
2512
- } | {
2513
- message: string;
2514
- created_at: string;
2515
- warning_code: "schedule_externally_modified";
2516
- } | {
2517
- message: string;
2518
- created_at: string;
2519
- warning_code: "schedule_modified";
2520
- } | {
2521
- message: string;
2522
- created_at: string;
2523
- warning_code: "being_deleted";
2524
- } | {
2525
- message: string;
2526
- created_at: string;
2527
- warning_code: "unknown_issue_with_acs_credential";
2528
- } | {
2529
- message: string;
2530
- created_at: string;
2531
- warning_code: "needs_to_be_reissued";
2532
- })[];
2533
- is_managed: false;
2534
- acs_system_id: string;
2535
- acs_credential_id: string;
2536
- access_method: "code" | "card" | "mobile_key";
2537
- code?: string | null | undefined;
2538
- starts_at?: string | undefined;
2539
- ends_at?: string | undefined;
2540
- visionline_metadata?: {
2541
- card_function_type: "guest" | "staff";
2542
- auto_join?: boolean | undefined;
2543
- joiner_acs_credential_ids?: string[] | undefined;
2544
- guest_acs_entrance_ids?: string[] | undefined;
2545
- common_acs_entrance_ids?: string[] | undefined;
2546
- is_valid?: boolean | undefined;
2547
- card_id?: string | undefined;
2548
- credential_id?: string | undefined;
2549
- } | undefined;
2550
- assa_abloy_vostio_metadata?: {
2551
- endpoint_id?: string | undefined;
2552
- auto_join?: boolean | undefined;
2553
- override_guest_acs_entrance_ids?: string[] | undefined;
2554
- key_id?: string | undefined;
2555
- key_issuing_request_id?: string | undefined;
2556
- door_names?: string[] | undefined;
2557
- } | undefined;
2558
- is_one_time_use?: boolean | undefined;
2559
- user_identity_id?: string | undefined;
2560
- issued_at?: string | null | undefined;
2561
- is_issued?: boolean | undefined;
2562
- external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | undefined;
2563
- external_type_display_name?: string | undefined;
2564
- acs_user_id?: string | undefined;
2565
- acs_credential_pool_id?: string | undefined;
2566
- parent_acs_credential_id?: string | undefined;
2567
- card_number?: string | null | undefined;
2568
- is_multi_phone_sync_credential?: boolean | undefined;
2569
- is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
2570
- latest_desired_state_synced_with_provider_at?: string | null | undefined;
2571
- };
2572
- action_type: "ENCODE_CREDENTIAL";
2573
- } | {
2574
- status: "error";
2575
- action_attempt_id: string;
2576
- error: {
2577
- message: string;
2578
- type: "uncategorized_error";
2579
- } | {
2580
- message: string;
2581
- type: "action_attempt_expired";
2582
- } | {
2583
- message: string;
2584
- type: "no_credential_on_encoder";
2585
- } | {
2586
- message: string;
2587
- type: "incompatible_card_format";
2588
- } | {
2589
- message: string;
2590
- type: "credential_cannot_be_reissued";
2591
- };
2592
- result: null;
2593
- action_type: "ENCODE_CREDENTIAL";
2594
- } | {
2595
- status: "pending";
2596
- action_attempt_id: string;
2597
- error: null;
2598
- result: null;
2599
- action_type: "RESET_SANDBOX_WORKSPACE";
2600
- } | {
2601
- status: "success";
2602
- action_attempt_id: string;
2603
- error: null;
2604
- result: {};
2605
- action_type: "RESET_SANDBOX_WORKSPACE";
2606
- } | {
2607
- status: "error";
2608
- action_attempt_id: string;
2609
- error: {
2610
- message: string;
2611
- type: string;
2612
- };
2613
- result: null;
2614
- action_type: "RESET_SANDBOX_WORKSPACE";
2615
- } | {
2616
- status: "pending";
2617
- action_attempt_id: string;
2618
- error: null;
2619
- result: null;
2620
- action_type: "SET_FAN_MODE";
2621
- } | {
2622
- status: "success";
2623
- action_attempt_id: string;
2624
- error: null;
2625
- result: {};
2626
- action_type: "SET_FAN_MODE";
2627
- } | {
2628
- status: "error";
2629
- action_attempt_id: string;
2630
- error: {
2631
- message: string;
2632
- type: string;
2633
- };
2634
- result: null;
2635
- action_type: "SET_FAN_MODE";
2636
- } | {
2637
- status: "pending";
2638
- action_attempt_id: string;
2639
- error: null;
2640
- result: null;
2641
- action_type: "SET_HVAC_MODE";
2642
- } | {
2643
- status: "success";
2644
- action_attempt_id: string;
2645
- error: null;
2646
- result: {};
2647
- action_type: "SET_HVAC_MODE";
2648
- } | {
2649
- status: "error";
2650
- action_attempt_id: string;
2651
- error: {
2652
- message: string;
2653
- type: string;
2654
- };
2655
- result: null;
2656
- action_type: "SET_HVAC_MODE";
2657
- } | {
2658
- status: "pending";
2659
- action_attempt_id: string;
2660
- error: null;
2661
- result: null;
2662
- action_type: "ACTIVATE_CLIMATE_PRESET";
2663
- } | {
2664
- status: "success";
2665
- action_attempt_id: string;
2666
- error: null;
2667
- result: {};
2668
- action_type: "ACTIVATE_CLIMATE_PRESET";
2669
- } | {
2670
- status: "error";
2671
- action_attempt_id: string;
2672
- error: {
2673
- message: string;
2674
- type: string;
2675
- };
2676
- result: null;
2677
- action_type: "ACTIVATE_CLIMATE_PRESET";
2678
- } | {
2679
- status: "pending";
2680
- action_attempt_id: string;
2681
- error: null;
2682
- result: null;
2683
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
2684
- } | {
2685
- status: "success";
2686
- action_attempt_id: string;
2687
- error: null;
2688
- result: {};
2689
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
2690
- } | {
2691
- status: "error";
2692
- action_attempt_id: string;
2693
- error: {
2694
- message: string;
2695
- type: string;
2696
- };
2697
- result: null;
2698
- action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
2699
- } | {
2700
- status: "pending";
2701
- action_attempt_id: string;
2702
- error: null;
2703
- result: null;
2704
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
2705
- } | {
2706
- status: "success";
2707
- action_attempt_id: string;
2708
- error: null;
2709
- result: {};
2710
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
2711
- } | {
2712
- status: "error";
2713
- action_attempt_id: string;
2714
- error: {
2715
- message: string;
2716
- type: string;
2717
- };
2718
- result: null;
2719
- action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
2720
- } | {
2721
- status: "pending";
2722
- action_attempt_id: string;
2723
- error: null;
2724
- result: null;
2725
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
2726
- } | {
2727
- status: "success";
2728
- action_attempt_id: string;
2729
- error: null;
2730
- result: {};
2731
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
2732
- } | {
2733
- status: "error";
2734
- action_attempt_id: string;
2735
- error: {
2736
- message: string;
2737
- type: string;
2738
- };
2739
- result: null;
2740
- action_type: "PUSH_THERMOSTAT_PROGRAMS";
2741
- } | {
2742
- status: "pending";
2743
- action_attempt_id: string;
2744
- error: null;
2745
- result: null;
2746
- action_type: "SYNC_ACCESS_CODES";
2747
- } | {
2748
- status: "success";
2749
- action_attempt_id: string;
2750
- error: null;
2751
- result: {};
2752
- action_type: "SYNC_ACCESS_CODES";
2753
- } | {
2754
- status: "error";
2755
- action_attempt_id: string;
2756
- error: {
2757
- message: string;
2758
- type: string;
2759
- };
2760
- result: null;
2761
- action_type: "SYNC_ACCESS_CODES";
2762
- } | {
2763
- status: "pending";
2764
- action_attempt_id: string;
2765
- error: null;
2766
- result: null;
2767
- action_type: "CREATE_ACCESS_CODE";
2768
- } | {
2769
- status: "success";
2770
- action_attempt_id: string;
2771
- error: null;
2772
- result: {
2773
- access_code?: any;
2774
- };
2775
- action_type: "CREATE_ACCESS_CODE";
2776
- } | {
2777
- status: "error";
2778
- action_attempt_id: string;
2779
- error: {
2780
- message: string;
2781
- type: string;
2782
- };
2783
- result: null;
2784
- action_type: "CREATE_ACCESS_CODE";
2785
- } | {
2786
- status: "pending";
2787
- action_attempt_id: string;
2788
- error: null;
2789
- result: null;
2790
- action_type: "DELETE_ACCESS_CODE";
2791
- } | {
2792
- status: "success";
2793
- action_attempt_id: string;
2794
- error: null;
2795
- result: {};
2796
- action_type: "DELETE_ACCESS_CODE";
2797
- } | {
2798
- status: "error";
2799
- action_attempt_id: string;
2800
- error: {
2801
- message: string;
2802
- type: string;
2803
- };
2804
- result: null;
2805
- action_type: "DELETE_ACCESS_CODE";
2806
- } | {
2807
- status: "pending";
2808
- action_attempt_id: string;
2809
- error: null;
2810
- result: null;
2811
- action_type: "UPDATE_ACCESS_CODE";
2812
- } | {
2813
- status: "success";
2814
- action_attempt_id: string;
2815
- error: null;
2816
- result: {
2817
- access_code?: any;
2818
- };
2819
- action_type: "UPDATE_ACCESS_CODE";
2820
- } | {
2821
- status: "error";
2822
- action_attempt_id: string;
2823
- error: {
2824
- message: string;
2825
- type: string;
2826
- };
2827
- result: null;
2828
- action_type: "UPDATE_ACCESS_CODE";
2829
- } | {
2830
- status: "pending";
2831
- action_attempt_id: string;
2832
- error: null;
2833
- result: null;
2834
- action_type: "CREATE_NOISE_THRESHOLD";
2835
- } | {
2836
- status: "success";
2837
- action_attempt_id: string;
2838
- error: null;
2839
- result: {
2840
- noise_threshold?: any;
2841
- };
2842
- action_type: "CREATE_NOISE_THRESHOLD";
2843
- } | {
2844
- status: "error";
2845
- action_attempt_id: string;
2846
- error: {
2847
- message: string;
2848
- type: string;
2849
- };
2850
- result: null;
2851
- action_type: "CREATE_NOISE_THRESHOLD";
2852
- } | {
2853
- status: "pending";
2854
- action_attempt_id: string;
2855
- error: null;
2856
- result: null;
2857
- action_type: "DELETE_NOISE_THRESHOLD";
2858
- } | {
2859
- status: "success";
2860
- action_attempt_id: string;
2861
- error: null;
2862
- result: {};
2863
- action_type: "DELETE_NOISE_THRESHOLD";
2864
- } | {
2865
- status: "error";
2866
- action_attempt_id: string;
2867
- error: {
2868
- message: string;
2869
- type: string;
2870
- };
2871
- result: null;
2872
- action_type: "DELETE_NOISE_THRESHOLD";
2873
- } | {
2874
- status: "pending";
2875
- action_attempt_id: string;
2876
- error: null;
2877
- result: null;
2878
- action_type: "UPDATE_NOISE_THRESHOLD";
2879
- } | {
2880
- status: "success";
2881
- action_attempt_id: string;
2882
- error: null;
2883
- result: {
2884
- noise_threshold?: any;
2885
- };
2886
- action_type: "UPDATE_NOISE_THRESHOLD";
2887
- } | {
2888
- status: "error";
2889
- action_attempt_id: string;
2890
- error: {
2891
- message: string;
2892
- type: string;
2893
- };
2894
- result: null;
2895
- action_type: "UPDATE_NOISE_THRESHOLD";
2896
- }>(error: unknown) => error is SeamActionAttemptTimeoutError<T>;
18
+ export declare const isSeamActionAttemptTimeoutError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptTimeoutError<T>;
2897
19
  export declare class SeamActionAttemptTimeoutError<T extends ActionAttempt> extends SeamActionAttemptError<T> {
2898
20
  constructor(actionAttempt: T, timeout: number);
2899
21
  }