@seamapi/types 1.286.0 → 1.286.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +197 -56
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +454 -211
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +14 -14
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/{encode-card.d.ts → encode-credential.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{encode-card.js → encode-credential.js} +6 -6
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/{scan-card.d.ts → scan-credential.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{scan-card.js → scan-credential.js} +7 -7
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -0
- package/lib/seam/connect/models/devices/device-metadata.d.ts +13 -0
- package/lib/seam/connect/models/devices/device-metadata.js +3 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +5 -3
- package/lib/seam/connect/models/devices/device-type.js +1 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +22 -3
- package/lib/seam/connect/models/devices/phone.d.ts +14 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +16 -3
- package/lib/seam/connect/models/events/acs/credentials.d.ts +61 -0
- package/lib/seam/connect/models/events/acs/credentials.js +9 -1
- package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
- package/lib/seam/connect/models/events/acs/index.d.ts +30 -0
- package/lib/seam/connect/models/events/action-attempts.d.ts +177 -0
- package/lib/seam/connect/models/events/action-attempts.js +16 -0
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +147 -1
- package/lib/seam/connect/models/events/seam-event.js +2 -0
- package/lib/seam/connect/models/events/seam-event.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +20 -2
- package/lib/seam/connect/openapi.js +129 -37
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +217 -170
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
- package/src/lib/seam/connect/models/action-attempts/{encode-card.ts → encode-credential.ts} +8 -6
- package/src/lib/seam/connect/models/action-attempts/{scan-card.ts → scan-credential.ts} +9 -7
- package/src/lib/seam/connect/models/devices/device-metadata.ts +3 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
- package/src/lib/seam/connect/models/events/acs/credentials.ts +10 -1
- package/src/lib/seam/connect/models/events/action-attempts.ts +19 -0
- package/src/lib/seam/connect/models/events/seam-event.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +136 -37
- package/src/lib/seam/connect/route-types.ts +245 -170
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +0 -1
|
@@ -594,6 +594,36 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
594
594
|
}, {
|
|
595
595
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
596
596
|
acs_system_id: z.ZodString;
|
|
597
|
+
}>, {
|
|
598
|
+
acs_credential_id: z.ZodString;
|
|
599
|
+
}>, {
|
|
600
|
+
event_type: z.ZodLiteral<"acs_credential.issued">;
|
|
601
|
+
}>, "strip", z.ZodTypeAny, {
|
|
602
|
+
created_at: string;
|
|
603
|
+
workspace_id: string;
|
|
604
|
+
acs_system_id: string;
|
|
605
|
+
acs_credential_id: string;
|
|
606
|
+
event_id: string;
|
|
607
|
+
occurred_at: string;
|
|
608
|
+
event_type: "acs_credential.issued";
|
|
609
|
+
connected_account_id?: string | undefined;
|
|
610
|
+
}, {
|
|
611
|
+
created_at: string;
|
|
612
|
+
workspace_id: string;
|
|
613
|
+
acs_system_id: string;
|
|
614
|
+
acs_credential_id: string;
|
|
615
|
+
event_id: string;
|
|
616
|
+
occurred_at: string;
|
|
617
|
+
event_type: "acs_credential.issued";
|
|
618
|
+
connected_account_id?: string | undefined;
|
|
619
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
620
|
+
event_id: z.ZodString;
|
|
621
|
+
workspace_id: z.ZodString;
|
|
622
|
+
created_at: z.ZodString;
|
|
623
|
+
occurred_at: z.ZodString;
|
|
624
|
+
}, {
|
|
625
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
626
|
+
acs_system_id: z.ZodString;
|
|
597
627
|
}>, {
|
|
598
628
|
acs_user_id: z.ZodString;
|
|
599
629
|
}>, {
|
|
@@ -809,7 +839,123 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
809
839
|
event_id: string;
|
|
810
840
|
occurred_at: string;
|
|
811
841
|
event_type: "connected_account.completed_first_sync_after_reconnection";
|
|
812
|
-
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
842
|
+
}>, ...(z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
843
|
+
event_id: z.ZodString;
|
|
844
|
+
workspace_id: z.ZodString;
|
|
845
|
+
created_at: z.ZodString;
|
|
846
|
+
occurred_at: z.ZodString;
|
|
847
|
+
}, {
|
|
848
|
+
action_attempt_id: z.ZodString;
|
|
849
|
+
action_type: z.ZodString;
|
|
850
|
+
status: z.ZodString;
|
|
851
|
+
}>, {
|
|
852
|
+
event_type: z.ZodLiteral<"action_attempt.lock_door.succeeded">;
|
|
853
|
+
}>, "strip", z.ZodTypeAny, {
|
|
854
|
+
status: string;
|
|
855
|
+
created_at: string;
|
|
856
|
+
workspace_id: string;
|
|
857
|
+
action_attempt_id: string;
|
|
858
|
+
action_type: string;
|
|
859
|
+
event_id: string;
|
|
860
|
+
occurred_at: string;
|
|
861
|
+
event_type: "action_attempt.lock_door.succeeded";
|
|
862
|
+
}, {
|
|
863
|
+
status: string;
|
|
864
|
+
created_at: string;
|
|
865
|
+
workspace_id: string;
|
|
866
|
+
action_attempt_id: string;
|
|
867
|
+
action_type: string;
|
|
868
|
+
event_id: string;
|
|
869
|
+
occurred_at: string;
|
|
870
|
+
event_type: "action_attempt.lock_door.succeeded";
|
|
871
|
+
}> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
872
|
+
event_id: z.ZodString;
|
|
873
|
+
workspace_id: z.ZodString;
|
|
874
|
+
created_at: z.ZodString;
|
|
875
|
+
occurred_at: z.ZodString;
|
|
876
|
+
}, {
|
|
877
|
+
action_attempt_id: z.ZodString;
|
|
878
|
+
action_type: z.ZodString;
|
|
879
|
+
status: z.ZodString;
|
|
880
|
+
}>, {
|
|
881
|
+
event_type: z.ZodLiteral<"action_attempt.lock_door.failed">;
|
|
882
|
+
}>, "strip", z.ZodTypeAny, {
|
|
883
|
+
status: string;
|
|
884
|
+
created_at: string;
|
|
885
|
+
workspace_id: string;
|
|
886
|
+
action_attempt_id: string;
|
|
887
|
+
action_type: string;
|
|
888
|
+
event_id: string;
|
|
889
|
+
occurred_at: string;
|
|
890
|
+
event_type: "action_attempt.lock_door.failed";
|
|
891
|
+
}, {
|
|
892
|
+
status: string;
|
|
893
|
+
created_at: string;
|
|
894
|
+
workspace_id: string;
|
|
895
|
+
action_attempt_id: string;
|
|
896
|
+
action_type: string;
|
|
897
|
+
event_id: string;
|
|
898
|
+
occurred_at: string;
|
|
899
|
+
event_type: "action_attempt.lock_door.failed";
|
|
900
|
+
}> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
901
|
+
event_id: z.ZodString;
|
|
902
|
+
workspace_id: z.ZodString;
|
|
903
|
+
created_at: z.ZodString;
|
|
904
|
+
occurred_at: z.ZodString;
|
|
905
|
+
}, {
|
|
906
|
+
action_attempt_id: z.ZodString;
|
|
907
|
+
action_type: z.ZodString;
|
|
908
|
+
status: z.ZodString;
|
|
909
|
+
}>, {
|
|
910
|
+
event_type: z.ZodLiteral<"action_attempt.unlock_door.succeeded">;
|
|
911
|
+
}>, "strip", z.ZodTypeAny, {
|
|
912
|
+
status: string;
|
|
913
|
+
created_at: string;
|
|
914
|
+
workspace_id: string;
|
|
915
|
+
action_attempt_id: string;
|
|
916
|
+
action_type: string;
|
|
917
|
+
event_id: string;
|
|
918
|
+
occurred_at: string;
|
|
919
|
+
event_type: "action_attempt.unlock_door.succeeded";
|
|
920
|
+
}, {
|
|
921
|
+
status: string;
|
|
922
|
+
created_at: string;
|
|
923
|
+
workspace_id: string;
|
|
924
|
+
action_attempt_id: string;
|
|
925
|
+
action_type: string;
|
|
926
|
+
event_id: string;
|
|
927
|
+
occurred_at: string;
|
|
928
|
+
event_type: "action_attempt.unlock_door.succeeded";
|
|
929
|
+
}> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
930
|
+
event_id: z.ZodString;
|
|
931
|
+
workspace_id: z.ZodString;
|
|
932
|
+
created_at: z.ZodString;
|
|
933
|
+
occurred_at: z.ZodString;
|
|
934
|
+
}, {
|
|
935
|
+
action_attempt_id: z.ZodString;
|
|
936
|
+
action_type: z.ZodString;
|
|
937
|
+
status: z.ZodString;
|
|
938
|
+
}>, {
|
|
939
|
+
event_type: z.ZodLiteral<"action_attempt.unlock_door.failed">;
|
|
940
|
+
}>, "strip", z.ZodTypeAny, {
|
|
941
|
+
status: string;
|
|
942
|
+
created_at: string;
|
|
943
|
+
workspace_id: string;
|
|
944
|
+
action_attempt_id: string;
|
|
945
|
+
action_type: string;
|
|
946
|
+
event_id: string;
|
|
947
|
+
occurred_at: string;
|
|
948
|
+
event_type: "action_attempt.unlock_door.failed";
|
|
949
|
+
}, {
|
|
950
|
+
status: string;
|
|
951
|
+
created_at: string;
|
|
952
|
+
workspace_id: string;
|
|
953
|
+
action_attempt_id: string;
|
|
954
|
+
action_type: string;
|
|
955
|
+
event_id: string;
|
|
956
|
+
occurred_at: string;
|
|
957
|
+
event_type: "action_attempt.unlock_door.failed";
|
|
958
|
+
}>)[], z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
813
959
|
event_id: z.ZodString;
|
|
814
960
|
workspace_id: z.ZodString;
|
|
815
961
|
created_at: z.ZodString;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { access_code_events } from './access-codes.js';
|
|
3
3
|
import { acs_events } from './acs/index.js';
|
|
4
|
+
import { action_attempt_events } from './action-attempts.js';
|
|
4
5
|
import { client_session_events } from './client-sessions.js';
|
|
5
6
|
import { connect_webview_events } from './connect-webviews.js';
|
|
6
7
|
import { connected_account_events } from './connected-accounts.js';
|
|
@@ -12,6 +13,7 @@ export const seam_event = z.discriminatedUnion('event_type', [
|
|
|
12
13
|
...acs_events,
|
|
13
14
|
...client_session_events,
|
|
14
15
|
...connected_account_events,
|
|
16
|
+
...action_attempt_events,
|
|
15
17
|
...connect_webview_events,
|
|
16
18
|
...device_events,
|
|
17
19
|
...enrollment_automation_events,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seam-event.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/seam-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EA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AAG,4BAA4B;IAC/B,GAAG,YAAY;CAChB,CAAC,CAAA"}
|
|
@@ -2456,6 +2456,15 @@ declare const _default: {
|
|
|
2456
2456
|
required: string[];
|
|
2457
2457
|
type: string;
|
|
2458
2458
|
};
|
|
2459
|
+
assa_abloy_vostio_metadata: {
|
|
2460
|
+
properties: {
|
|
2461
|
+
encoder_id: {
|
|
2462
|
+
type: string;
|
|
2463
|
+
};
|
|
2464
|
+
};
|
|
2465
|
+
required: string[];
|
|
2466
|
+
type: string;
|
|
2467
|
+
};
|
|
2459
2468
|
august_metadata: {
|
|
2460
2469
|
properties: {
|
|
2461
2470
|
has_keypad: {
|
|
@@ -7280,6 +7289,7 @@ declare const _default: {
|
|
|
7280
7289
|
'x-fern-sdk-method-name': string;
|
|
7281
7290
|
'x-fern-sdk-return-value': string;
|
|
7282
7291
|
'x-response-key': string;
|
|
7292
|
+
'x-undocumented': string;
|
|
7283
7293
|
};
|
|
7284
7294
|
};
|
|
7285
7295
|
'/acs/access_groups/unmanaged/list': {
|
|
@@ -7410,6 +7420,7 @@ declare const _default: {
|
|
|
7410
7420
|
'x-fern-sdk-method-name': string;
|
|
7411
7421
|
'x-fern-sdk-return-value': string;
|
|
7412
7422
|
'x-response-key': string;
|
|
7423
|
+
'x-undocumented': string;
|
|
7413
7424
|
};
|
|
7414
7425
|
};
|
|
7415
7426
|
'/acs/credential_pools/list': {
|
|
@@ -7770,6 +7781,7 @@ declare const _default: {
|
|
|
7770
7781
|
description: string;
|
|
7771
7782
|
properties: {
|
|
7772
7783
|
assa_abloy_credential_service_mobile_endpoint_id: {
|
|
7784
|
+
description: string;
|
|
7773
7785
|
format: string;
|
|
7774
7786
|
type: string;
|
|
7775
7787
|
};
|
|
@@ -8603,6 +8615,7 @@ declare const _default: {
|
|
|
8603
8615
|
'x-fern-sdk-return-value': string;
|
|
8604
8616
|
'x-response-key': string;
|
|
8605
8617
|
'x-title': string;
|
|
8618
|
+
'x-undocumented': string;
|
|
8606
8619
|
};
|
|
8607
8620
|
};
|
|
8608
8621
|
'/acs/credentials/unmanaged/list': {
|
|
@@ -8893,6 +8906,7 @@ declare const _default: {
|
|
|
8893
8906
|
'x-fern-sdk-return-value': string;
|
|
8894
8907
|
'x-response-key': string;
|
|
8895
8908
|
'x-title': string;
|
|
8909
|
+
'x-undocumented': string;
|
|
8896
8910
|
};
|
|
8897
8911
|
};
|
|
8898
8912
|
'/acs/credentials/update': {
|
|
@@ -9048,7 +9062,7 @@ declare const _default: {
|
|
|
9048
9062
|
'x-title': string;
|
|
9049
9063
|
};
|
|
9050
9064
|
};
|
|
9051
|
-
'/acs/encoders/
|
|
9065
|
+
'/acs/encoders/encode_credential': {
|
|
9052
9066
|
post: {
|
|
9053
9067
|
operationId: string;
|
|
9054
9068
|
requestBody: {
|
|
@@ -9057,10 +9071,12 @@ declare const _default: {
|
|
|
9057
9071
|
schema: {
|
|
9058
9072
|
properties: {
|
|
9059
9073
|
acs_credential_id: {
|
|
9074
|
+
description: string;
|
|
9060
9075
|
format: string;
|
|
9061
9076
|
type: string;
|
|
9062
9077
|
};
|
|
9063
9078
|
device_id: {
|
|
9079
|
+
description: string;
|
|
9064
9080
|
format: string;
|
|
9065
9081
|
type: string;
|
|
9066
9082
|
};
|
|
@@ -9244,7 +9260,7 @@ declare const _default: {
|
|
|
9244
9260
|
'x-undocumented': string;
|
|
9245
9261
|
};
|
|
9246
9262
|
};
|
|
9247
|
-
'/acs/encoders/
|
|
9263
|
+
'/acs/encoders/scan_credential': {
|
|
9248
9264
|
post: {
|
|
9249
9265
|
operationId: string;
|
|
9250
9266
|
requestBody: {
|
|
@@ -9253,10 +9269,12 @@ declare const _default: {
|
|
|
9253
9269
|
schema: {
|
|
9254
9270
|
properties: {
|
|
9255
9271
|
acs_system_id: {
|
|
9272
|
+
description: string;
|
|
9256
9273
|
format: string;
|
|
9257
9274
|
type: string;
|
|
9258
9275
|
};
|
|
9259
9276
|
device_id: {
|
|
9277
|
+
description: string;
|
|
9260
9278
|
format: string;
|
|
9261
9279
|
type: string;
|
|
9262
9280
|
};
|