@seamapi/http 1.41.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +332 -41
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +131 -143
- package/lib/seam/connect/resolve-action-attempt.d.ts +32 -168
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +12 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +9 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +0 -12
- package/lib/seam/connect/routes/acs/encoders/encoders.js +0 -9
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.js +0 -9
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js +102 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.d.ts +60 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js +126 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +8 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +12 -6
- package/lib/seam/connect/routes/seam-http-endpoints.js +49 -13
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +38 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -39
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +0 -15
- package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts +215 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts +303 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +2 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +16 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +128 -31
- package/src/lib/version.ts +1 -1
|
@@ -90,6 +90,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
90
90
|
message: string;
|
|
91
91
|
error_code: string;
|
|
92
92
|
}[];
|
|
93
|
+
connected_account_id: string;
|
|
93
94
|
warnings: ({
|
|
94
95
|
message: string;
|
|
95
96
|
created_at: string;
|
|
@@ -141,6 +142,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
141
142
|
door_names?: string[] | undefined;
|
|
142
143
|
} | undefined;
|
|
143
144
|
is_one_time_use?: boolean | undefined;
|
|
145
|
+
user_identity_id?: string | undefined;
|
|
144
146
|
issued_at?: string | null | undefined;
|
|
145
147
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
146
148
|
external_type_display_name?: string | undefined;
|
|
@@ -160,6 +162,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
160
162
|
message: string;
|
|
161
163
|
error_code: string;
|
|
162
164
|
}[];
|
|
165
|
+
connected_account_id: string;
|
|
163
166
|
warnings: ({
|
|
164
167
|
message: string;
|
|
165
168
|
created_at: string;
|
|
@@ -211,6 +214,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
211
214
|
door_names?: string[] | undefined;
|
|
212
215
|
} | undefined;
|
|
213
216
|
is_one_time_use?: boolean | undefined;
|
|
217
|
+
user_identity_id?: string | undefined;
|
|
214
218
|
issued_at?: string | null | undefined;
|
|
215
219
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
216
220
|
external_type_display_name?: string | undefined;
|
|
@@ -240,48 +244,6 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
240
244
|
action_attempt_id: string;
|
|
241
245
|
result: null;
|
|
242
246
|
action_type: "SCAN_CREDENTIAL";
|
|
243
|
-
} | {
|
|
244
|
-
error: null;
|
|
245
|
-
status: "pending";
|
|
246
|
-
action_attempt_id: string;
|
|
247
|
-
result: null;
|
|
248
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
249
|
-
} | {
|
|
250
|
-
error: null;
|
|
251
|
-
status: "success";
|
|
252
|
-
action_attempt_id: string;
|
|
253
|
-
result: {
|
|
254
|
-
display_name: string;
|
|
255
|
-
workspace_id: string;
|
|
256
|
-
created_at: string;
|
|
257
|
-
mode: "code" | "card" | "mobile_key";
|
|
258
|
-
access_method_id: string;
|
|
259
|
-
issued_at?: string | undefined;
|
|
260
|
-
instant_key_url?: string | undefined;
|
|
261
|
-
is_card_encoding_required?: boolean | undefined;
|
|
262
|
-
};
|
|
263
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
264
|
-
} | {
|
|
265
|
-
error: {
|
|
266
|
-
type: "uncategorized_error";
|
|
267
|
-
message: string;
|
|
268
|
-
} | {
|
|
269
|
-
type: "action_attempt_expired";
|
|
270
|
-
message: string;
|
|
271
|
-
} | {
|
|
272
|
-
type: "no_credential_on_encoder";
|
|
273
|
-
message: string;
|
|
274
|
-
} | {
|
|
275
|
-
type: "incompatible_card_format";
|
|
276
|
-
message: string;
|
|
277
|
-
} | {
|
|
278
|
-
type: "credential_cannot_be_reissued";
|
|
279
|
-
message: string;
|
|
280
|
-
};
|
|
281
|
-
status: "error";
|
|
282
|
-
action_attempt_id: string;
|
|
283
|
-
result: null;
|
|
284
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
285
247
|
} | {
|
|
286
248
|
error: null;
|
|
287
249
|
status: "pending";
|
|
@@ -300,6 +262,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
300
262
|
message: string;
|
|
301
263
|
error_code: string;
|
|
302
264
|
}[];
|
|
265
|
+
connected_account_id: string;
|
|
303
266
|
warnings: ({
|
|
304
267
|
message: string;
|
|
305
268
|
created_at: string;
|
|
@@ -351,6 +314,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
351
314
|
door_names?: string[] | undefined;
|
|
352
315
|
} | undefined;
|
|
353
316
|
is_one_time_use?: boolean | undefined;
|
|
317
|
+
user_identity_id?: string | undefined;
|
|
354
318
|
issued_at?: string | null | undefined;
|
|
355
319
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
356
320
|
external_type_display_name?: string | undefined;
|
|
@@ -370,6 +334,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
370
334
|
message: string;
|
|
371
335
|
error_code: string;
|
|
372
336
|
}[];
|
|
337
|
+
connected_account_id: string;
|
|
373
338
|
warnings: ({
|
|
374
339
|
message: string;
|
|
375
340
|
created_at: string;
|
|
@@ -421,6 +386,7 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
421
386
|
door_names?: string[] | undefined;
|
|
422
387
|
} | undefined;
|
|
423
388
|
is_one_time_use?: boolean | undefined;
|
|
389
|
+
user_identity_id?: string | undefined;
|
|
424
390
|
issued_at?: string | null | undefined;
|
|
425
391
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
426
392
|
external_type_display_name?: string | undefined;
|
|
@@ -846,6 +812,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
846
812
|
message: string;
|
|
847
813
|
error_code: string;
|
|
848
814
|
}[];
|
|
815
|
+
connected_account_id: string;
|
|
849
816
|
warnings: ({
|
|
850
817
|
message: string;
|
|
851
818
|
created_at: string;
|
|
@@ -897,6 +864,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
897
864
|
door_names?: string[] | undefined;
|
|
898
865
|
} | undefined;
|
|
899
866
|
is_one_time_use?: boolean | undefined;
|
|
867
|
+
user_identity_id?: string | undefined;
|
|
900
868
|
issued_at?: string | null | undefined;
|
|
901
869
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
902
870
|
external_type_display_name?: string | undefined;
|
|
@@ -916,6 +884,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
916
884
|
message: string;
|
|
917
885
|
error_code: string;
|
|
918
886
|
}[];
|
|
887
|
+
connected_account_id: string;
|
|
919
888
|
warnings: ({
|
|
920
889
|
message: string;
|
|
921
890
|
created_at: string;
|
|
@@ -967,6 +936,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
967
936
|
door_names?: string[] | undefined;
|
|
968
937
|
} | undefined;
|
|
969
938
|
is_one_time_use?: boolean | undefined;
|
|
939
|
+
user_identity_id?: string | undefined;
|
|
970
940
|
issued_at?: string | null | undefined;
|
|
971
941
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
972
942
|
external_type_display_name?: string | undefined;
|
|
@@ -996,48 +966,6 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
996
966
|
action_attempt_id: string;
|
|
997
967
|
result: null;
|
|
998
968
|
action_type: "SCAN_CREDENTIAL";
|
|
999
|
-
} | {
|
|
1000
|
-
error: null;
|
|
1001
|
-
status: "pending";
|
|
1002
|
-
action_attempt_id: string;
|
|
1003
|
-
result: null;
|
|
1004
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
1005
|
-
} | {
|
|
1006
|
-
error: null;
|
|
1007
|
-
status: "success";
|
|
1008
|
-
action_attempt_id: string;
|
|
1009
|
-
result: {
|
|
1010
|
-
display_name: string;
|
|
1011
|
-
workspace_id: string;
|
|
1012
|
-
created_at: string;
|
|
1013
|
-
mode: "code" | "card" | "mobile_key";
|
|
1014
|
-
access_method_id: string;
|
|
1015
|
-
issued_at?: string | undefined;
|
|
1016
|
-
instant_key_url?: string | undefined;
|
|
1017
|
-
is_card_encoding_required?: boolean | undefined;
|
|
1018
|
-
};
|
|
1019
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
1020
|
-
} | {
|
|
1021
|
-
error: {
|
|
1022
|
-
type: "uncategorized_error";
|
|
1023
|
-
message: string;
|
|
1024
|
-
} | {
|
|
1025
|
-
type: "action_attempt_expired";
|
|
1026
|
-
message: string;
|
|
1027
|
-
} | {
|
|
1028
|
-
type: "no_credential_on_encoder";
|
|
1029
|
-
message: string;
|
|
1030
|
-
} | {
|
|
1031
|
-
type: "incompatible_card_format";
|
|
1032
|
-
message: string;
|
|
1033
|
-
} | {
|
|
1034
|
-
type: "credential_cannot_be_reissued";
|
|
1035
|
-
message: string;
|
|
1036
|
-
};
|
|
1037
|
-
status: "error";
|
|
1038
|
-
action_attempt_id: string;
|
|
1039
|
-
result: null;
|
|
1040
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
1041
969
|
} | {
|
|
1042
970
|
error: null;
|
|
1043
971
|
status: "pending";
|
|
@@ -1056,6 +984,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
1056
984
|
message: string;
|
|
1057
985
|
error_code: string;
|
|
1058
986
|
}[];
|
|
987
|
+
connected_account_id: string;
|
|
1059
988
|
warnings: ({
|
|
1060
989
|
message: string;
|
|
1061
990
|
created_at: string;
|
|
@@ -1107,6 +1036,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
1107
1036
|
door_names?: string[] | undefined;
|
|
1108
1037
|
} | undefined;
|
|
1109
1038
|
is_one_time_use?: boolean | undefined;
|
|
1039
|
+
user_identity_id?: string | undefined;
|
|
1110
1040
|
issued_at?: string | null | undefined;
|
|
1111
1041
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1112
1042
|
external_type_display_name?: string | undefined;
|
|
@@ -1126,6 +1056,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
1126
1056
|
message: string;
|
|
1127
1057
|
error_code: string;
|
|
1128
1058
|
}[];
|
|
1059
|
+
connected_account_id: string;
|
|
1129
1060
|
warnings: ({
|
|
1130
1061
|
message: string;
|
|
1131
1062
|
created_at: string;
|
|
@@ -1177,6 +1108,7 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
1177
1108
|
door_names?: string[] | undefined;
|
|
1178
1109
|
} | undefined;
|
|
1179
1110
|
is_one_time_use?: boolean | undefined;
|
|
1111
|
+
user_identity_id?: string | undefined;
|
|
1180
1112
|
issued_at?: string | null | undefined;
|
|
1181
1113
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1182
1114
|
external_type_display_name?: string | undefined;
|
|
@@ -1604,6 +1536,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1604
1536
|
message: string;
|
|
1605
1537
|
error_code: string;
|
|
1606
1538
|
}[];
|
|
1539
|
+
connected_account_id: string;
|
|
1607
1540
|
warnings: ({
|
|
1608
1541
|
message: string;
|
|
1609
1542
|
created_at: string;
|
|
@@ -1655,6 +1588,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1655
1588
|
door_names?: string[] | undefined;
|
|
1656
1589
|
} | undefined;
|
|
1657
1590
|
is_one_time_use?: boolean | undefined;
|
|
1591
|
+
user_identity_id?: string | undefined;
|
|
1658
1592
|
issued_at?: string | null | undefined;
|
|
1659
1593
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1660
1594
|
external_type_display_name?: string | undefined;
|
|
@@ -1674,6 +1608,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1674
1608
|
message: string;
|
|
1675
1609
|
error_code: string;
|
|
1676
1610
|
}[];
|
|
1611
|
+
connected_account_id: string;
|
|
1677
1612
|
warnings: ({
|
|
1678
1613
|
message: string;
|
|
1679
1614
|
created_at: string;
|
|
@@ -1725,6 +1660,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1725
1660
|
door_names?: string[] | undefined;
|
|
1726
1661
|
} | undefined;
|
|
1727
1662
|
is_one_time_use?: boolean | undefined;
|
|
1663
|
+
user_identity_id?: string | undefined;
|
|
1728
1664
|
issued_at?: string | null | undefined;
|
|
1729
1665
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1730
1666
|
external_type_display_name?: string | undefined;
|
|
@@ -1754,48 +1690,6 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1754
1690
|
action_attempt_id: string;
|
|
1755
1691
|
result: null;
|
|
1756
1692
|
action_type: "SCAN_CREDENTIAL";
|
|
1757
|
-
} | {
|
|
1758
|
-
error: null;
|
|
1759
|
-
status: "pending";
|
|
1760
|
-
action_attempt_id: string;
|
|
1761
|
-
result: null;
|
|
1762
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
1763
|
-
} | {
|
|
1764
|
-
error: null;
|
|
1765
|
-
status: "success";
|
|
1766
|
-
action_attempt_id: string;
|
|
1767
|
-
result: {
|
|
1768
|
-
display_name: string;
|
|
1769
|
-
workspace_id: string;
|
|
1770
|
-
created_at: string;
|
|
1771
|
-
mode: "code" | "card" | "mobile_key";
|
|
1772
|
-
access_method_id: string;
|
|
1773
|
-
issued_at?: string | undefined;
|
|
1774
|
-
instant_key_url?: string | undefined;
|
|
1775
|
-
is_card_encoding_required?: boolean | undefined;
|
|
1776
|
-
};
|
|
1777
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
1778
|
-
} | {
|
|
1779
|
-
error: {
|
|
1780
|
-
type: "uncategorized_error";
|
|
1781
|
-
message: string;
|
|
1782
|
-
} | {
|
|
1783
|
-
type: "action_attempt_expired";
|
|
1784
|
-
message: string;
|
|
1785
|
-
} | {
|
|
1786
|
-
type: "no_credential_on_encoder";
|
|
1787
|
-
message: string;
|
|
1788
|
-
} | {
|
|
1789
|
-
type: "incompatible_card_format";
|
|
1790
|
-
message: string;
|
|
1791
|
-
} | {
|
|
1792
|
-
type: "credential_cannot_be_reissued";
|
|
1793
|
-
message: string;
|
|
1794
|
-
};
|
|
1795
|
-
status: "error";
|
|
1796
|
-
action_attempt_id: string;
|
|
1797
|
-
result: null;
|
|
1798
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
1799
1693
|
} | {
|
|
1800
1694
|
error: null;
|
|
1801
1695
|
status: "pending";
|
|
@@ -1814,6 +1708,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1814
1708
|
message: string;
|
|
1815
1709
|
error_code: string;
|
|
1816
1710
|
}[];
|
|
1711
|
+
connected_account_id: string;
|
|
1817
1712
|
warnings: ({
|
|
1818
1713
|
message: string;
|
|
1819
1714
|
created_at: string;
|
|
@@ -1865,6 +1760,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1865
1760
|
door_names?: string[] | undefined;
|
|
1866
1761
|
} | undefined;
|
|
1867
1762
|
is_one_time_use?: boolean | undefined;
|
|
1763
|
+
user_identity_id?: string | undefined;
|
|
1868
1764
|
issued_at?: string | null | undefined;
|
|
1869
1765
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1870
1766
|
external_type_display_name?: string | undefined;
|
|
@@ -1884,6 +1780,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1884
1780
|
message: string;
|
|
1885
1781
|
error_code: string;
|
|
1886
1782
|
}[];
|
|
1783
|
+
connected_account_id: string;
|
|
1887
1784
|
warnings: ({
|
|
1888
1785
|
message: string;
|
|
1889
1786
|
created_at: string;
|
|
@@ -1935,6 +1832,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1935
1832
|
door_names?: string[] | undefined;
|
|
1936
1833
|
} | undefined;
|
|
1937
1834
|
is_one_time_use?: boolean | undefined;
|
|
1835
|
+
user_identity_id?: string | undefined;
|
|
1938
1836
|
issued_at?: string | null | undefined;
|
|
1939
1837
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1940
1838
|
external_type_display_name?: string | undefined;
|
|
@@ -2362,6 +2260,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2362
2260
|
message: string;
|
|
2363
2261
|
error_code: string;
|
|
2364
2262
|
}[];
|
|
2263
|
+
connected_account_id: string;
|
|
2365
2264
|
warnings: ({
|
|
2366
2265
|
message: string;
|
|
2367
2266
|
created_at: string;
|
|
@@ -2413,6 +2312,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2413
2312
|
door_names?: string[] | undefined;
|
|
2414
2313
|
} | undefined;
|
|
2415
2314
|
is_one_time_use?: boolean | undefined;
|
|
2315
|
+
user_identity_id?: string | undefined;
|
|
2416
2316
|
issued_at?: string | null | undefined;
|
|
2417
2317
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2418
2318
|
external_type_display_name?: string | undefined;
|
|
@@ -2432,6 +2332,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2432
2332
|
message: string;
|
|
2433
2333
|
error_code: string;
|
|
2434
2334
|
}[];
|
|
2335
|
+
connected_account_id: string;
|
|
2435
2336
|
warnings: ({
|
|
2436
2337
|
message: string;
|
|
2437
2338
|
created_at: string;
|
|
@@ -2483,6 +2384,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2483
2384
|
door_names?: string[] | undefined;
|
|
2484
2385
|
} | undefined;
|
|
2485
2386
|
is_one_time_use?: boolean | undefined;
|
|
2387
|
+
user_identity_id?: string | undefined;
|
|
2486
2388
|
issued_at?: string | null | undefined;
|
|
2487
2389
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2488
2390
|
external_type_display_name?: string | undefined;
|
|
@@ -2512,48 +2414,6 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2512
2414
|
action_attempt_id: string;
|
|
2513
2415
|
result: null;
|
|
2514
2416
|
action_type: "SCAN_CREDENTIAL";
|
|
2515
|
-
} | {
|
|
2516
|
-
error: null;
|
|
2517
|
-
status: "pending";
|
|
2518
|
-
action_attempt_id: string;
|
|
2519
|
-
result: null;
|
|
2520
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
2521
|
-
} | {
|
|
2522
|
-
error: null;
|
|
2523
|
-
status: "success";
|
|
2524
|
-
action_attempt_id: string;
|
|
2525
|
-
result: {
|
|
2526
|
-
display_name: string;
|
|
2527
|
-
workspace_id: string;
|
|
2528
|
-
created_at: string;
|
|
2529
|
-
mode: "code" | "card" | "mobile_key";
|
|
2530
|
-
access_method_id: string;
|
|
2531
|
-
issued_at?: string | undefined;
|
|
2532
|
-
instant_key_url?: string | undefined;
|
|
2533
|
-
is_card_encoding_required?: boolean | undefined;
|
|
2534
|
-
};
|
|
2535
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
2536
|
-
} | {
|
|
2537
|
-
error: {
|
|
2538
|
-
type: "uncategorized_error";
|
|
2539
|
-
message: string;
|
|
2540
|
-
} | {
|
|
2541
|
-
type: "action_attempt_expired";
|
|
2542
|
-
message: string;
|
|
2543
|
-
} | {
|
|
2544
|
-
type: "no_credential_on_encoder";
|
|
2545
|
-
message: string;
|
|
2546
|
-
} | {
|
|
2547
|
-
type: "incompatible_card_format";
|
|
2548
|
-
message: string;
|
|
2549
|
-
} | {
|
|
2550
|
-
type: "credential_cannot_be_reissued";
|
|
2551
|
-
message: string;
|
|
2552
|
-
};
|
|
2553
|
-
status: "error";
|
|
2554
|
-
action_attempt_id: string;
|
|
2555
|
-
result: null;
|
|
2556
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
2557
2417
|
} | {
|
|
2558
2418
|
error: null;
|
|
2559
2419
|
status: "pending";
|
|
@@ -2572,6 +2432,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2572
2432
|
message: string;
|
|
2573
2433
|
error_code: string;
|
|
2574
2434
|
}[];
|
|
2435
|
+
connected_account_id: string;
|
|
2575
2436
|
warnings: ({
|
|
2576
2437
|
message: string;
|
|
2577
2438
|
created_at: string;
|
|
@@ -2623,6 +2484,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2623
2484
|
door_names?: string[] | undefined;
|
|
2624
2485
|
} | undefined;
|
|
2625
2486
|
is_one_time_use?: boolean | undefined;
|
|
2487
|
+
user_identity_id?: string | undefined;
|
|
2626
2488
|
issued_at?: string | null | undefined;
|
|
2627
2489
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2628
2490
|
external_type_display_name?: string | undefined;
|
|
@@ -2642,6 +2504,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2642
2504
|
message: string;
|
|
2643
2505
|
error_code: string;
|
|
2644
2506
|
}[];
|
|
2507
|
+
connected_account_id: string;
|
|
2645
2508
|
warnings: ({
|
|
2646
2509
|
message: string;
|
|
2647
2510
|
created_at: string;
|
|
@@ -2693,6 +2556,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2693
2556
|
door_names?: string[] | undefined;
|
|
2694
2557
|
} | undefined;
|
|
2695
2558
|
is_one_time_use?: boolean | undefined;
|
|
2559
|
+
user_identity_id?: string | undefined;
|
|
2696
2560
|
issued_at?: string | null | undefined;
|
|
2697
2561
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2698
2562
|
external_type_display_name?: string | undefined;
|
|
@@ -19,6 +19,7 @@ export declare class SeamHttpAccessMethods {
|
|
|
19
19
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
20
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
21
|
delete(parameters?: AccessMethodsDeleteParameters, options?: AccessMethodsDeleteOptions): AccessMethodsDeleteRequest;
|
|
22
|
+
encode(parameters?: AccessMethodsEncodeParameters, options?: AccessMethodsEncodeOptions): AccessMethodsEncodeRequest;
|
|
22
23
|
get(parameters?: AccessMethodsGetParameters, options?: AccessMethodsGetOptions): AccessMethodsGetRequest;
|
|
23
24
|
list(parameters?: AccessMethodsListParameters, options?: AccessMethodsListOptions): AccessMethodsListRequest;
|
|
24
25
|
}
|
|
@@ -34,6 +35,17 @@ export type AccessMethodsDeleteResponse = SetNonNullable<Required<RouteResponse<
|
|
|
34
35
|
export type AccessMethodsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
35
36
|
export interface AccessMethodsDeleteOptions {
|
|
36
37
|
}
|
|
38
|
+
export type AccessMethodsEncodeParameters = RouteRequestBody<'/access_methods/encode'>;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use AccessMethodsEncodeParameters instead.
|
|
41
|
+
*/
|
|
42
|
+
export type AccessMethodsEncodeBody = AccessMethodsEncodeParameters;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use AccessMethodsEncodeRequest instead.
|
|
45
|
+
*/
|
|
46
|
+
export type AccessMethodsEncodeResponse = SetNonNullable<Required<RouteResponse<'/access_methods/encode'>>>;
|
|
47
|
+
export type AccessMethodsEncodeRequest = SeamHttpRequest<AccessMethodsEncodeResponse, 'action_attempt'>;
|
|
48
|
+
export type AccessMethodsEncodeOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
37
49
|
export type AccessMethodsGetParameters = RouteRequestBody<'/access_methods/get'>;
|
|
38
50
|
/**
|
|
39
51
|
* @deprecated Use AccessMethodsGetParameters instead.
|
|
@@ -91,6 +91,15 @@ export class SeamHttpAccessMethods {
|
|
|
91
91
|
options,
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
+
encode(parameters, options = {}) {
|
|
95
|
+
return new SeamHttpRequest(this, {
|
|
96
|
+
pathname: '/access_methods/encode',
|
|
97
|
+
method: 'POST',
|
|
98
|
+
body: parameters,
|
|
99
|
+
responseKey: 'action_attempt',
|
|
100
|
+
options,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
94
103
|
get(parameters, options = {}) {
|
|
95
104
|
return new SeamHttpRequest(this, {
|
|
96
105
|
pathname: '/access_methods/get',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/access-methods/access-methods.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,MAAM,OAAO,qBAAqB;IAMhC,YAAY,kBAA4C,EAAE;QAHjD,eAAU,GAAG,iBAAiB,CAAA;QAIrC,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,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,23 +20,11 @@ export declare class SeamHttpAcsEncoders {
|
|
|
20
20
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
21
21
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
22
22
|
get simulate(): SeamHttpAcsEncodersSimulate;
|
|
23
|
-
encodeAccessMethod(parameters?: AcsEncodersEncodeAccessMethodParameters, options?: AcsEncodersEncodeAccessMethodOptions): AcsEncodersEncodeAccessMethodRequest;
|
|
24
23
|
encodeCredential(parameters?: AcsEncodersEncodeCredentialParameters, options?: AcsEncodersEncodeCredentialOptions): AcsEncodersEncodeCredentialRequest;
|
|
25
24
|
get(parameters?: AcsEncodersGetParameters, options?: AcsEncodersGetOptions): AcsEncodersGetRequest;
|
|
26
25
|
list(parameters?: AcsEncodersListParameters, options?: AcsEncodersListOptions): AcsEncodersListRequest;
|
|
27
26
|
scanCredential(parameters?: AcsEncodersScanCredentialParameters, options?: AcsEncodersScanCredentialOptions): AcsEncodersScanCredentialRequest;
|
|
28
27
|
}
|
|
29
|
-
export type AcsEncodersEncodeAccessMethodParameters = RouteRequestBody<'/acs/encoders/encode_access_method'>;
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use AcsEncodersEncodeAccessMethodParameters instead.
|
|
32
|
-
*/
|
|
33
|
-
export type AcsEncodersEncodeAccessMethodBody = AcsEncodersEncodeAccessMethodParameters;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Use AcsEncodersEncodeAccessMethodRequest instead.
|
|
36
|
-
*/
|
|
37
|
-
export type AcsEncodersEncodeAccessMethodResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/encode_access_method'>>>;
|
|
38
|
-
export type AcsEncodersEncodeAccessMethodRequest = SeamHttpRequest<AcsEncodersEncodeAccessMethodResponse, 'action_attempt'>;
|
|
39
|
-
export type AcsEncodersEncodeAccessMethodOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
40
28
|
export type AcsEncodersEncodeCredentialParameters = RouteRequestBody<'/acs/encoders/encode_credential'>;
|
|
41
29
|
/**
|
|
42
30
|
* @deprecated Use AcsEncodersEncodeCredentialParameters instead.
|
|
@@ -86,15 +86,6 @@ export class SeamHttpAcsEncoders {
|
|
|
86
86
|
get simulate() {
|
|
87
87
|
return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults);
|
|
88
88
|
}
|
|
89
|
-
encodeAccessMethod(parameters, options = {}) {
|
|
90
|
-
return new SeamHttpRequest(this, {
|
|
91
|
-
pathname: '/acs/encoders/encode_access_method',
|
|
92
|
-
method: 'POST',
|
|
93
|
-
body: parameters,
|
|
94
|
-
responseKey: 'action_attempt',
|
|
95
|
-
options,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
89
|
encodeCredential(parameters, options = {}) {
|
|
99
90
|
return new SeamHttpRequest(this, {
|
|
100
91
|
pathname: '/acs/encoders/encode_credential',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoders.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/acs/encoders/encoders.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCA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AM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AAjLM,8BAAU,GAAG,iBAAiB,AAApB,CAAoB"}
|
|
@@ -14,9 +14,6 @@ export class SeamHttpLocksSimulate {
|
|
|
14
14
|
constructor(apiKeyOrOptions = {}) {
|
|
15
15
|
this.ltsVersion = seamApiLtsVersion;
|
|
16
16
|
const options = parseOptions(apiKeyOrOptions);
|
|
17
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
18
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
19
|
-
}
|
|
20
17
|
this.client = 'client' in options ? options.client : createClient(options);
|
|
21
18
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
22
19
|
}
|
|
@@ -86,9 +83,6 @@ export class SeamHttpLocksSimulate {
|
|
|
86
83
|
await clientSessions.get();
|
|
87
84
|
}
|
|
88
85
|
keypadCodeEntry(parameters, options = {}) {
|
|
89
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
90
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
91
|
-
}
|
|
92
86
|
return new SeamHttpRequest(this, {
|
|
93
87
|
pathname: '/locks/simulate/keypad_code_entry',
|
|
94
88
|
method: 'POST',
|
|
@@ -98,9 +92,6 @@ export class SeamHttpLocksSimulate {
|
|
|
98
92
|
});
|
|
99
93
|
}
|
|
100
94
|
manualLockViaKeypad(parameters, options = {}) {
|
|
101
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
102
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
103
|
-
}
|
|
104
95
|
return new SeamHttpRequest(this, {
|
|
105
96
|
pathname: '/locks/simulate/manual_lock_via_keypad',
|
|
106
97
|
method: 'POST',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/locks/simulate/simulate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,MAAM,OAAO,qBAAqB;IAMhC,YAAY,kBAA4C,EAAE;QAHjD,eAAU,GAAG,iBAAiB,CAAA;QAIrC,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/locks/simulate/simulate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,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