@seamapi/types 1.218.1 → 1.220.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 +50 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +144 -76
- package/lib/seam/connect/models/devices/device-metadata.d.ts +15 -15
- package/lib/seam/connect/models/devices/device-metadata.js +3 -3
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +21 -21
- package/lib/seam/connect/models/devices/phone.d.ts +15 -15
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +15 -15
- package/lib/seam/connect/models/events/connect-webviews.d.ts +104 -0
- package/lib/seam/connect/models/events/connect-webviews.js +32 -0
- package/lib/seam/connect/models/events/connect-webviews.js.map +1 -0
- package/lib/seam/connect/models/events/connected-accounts.d.ts +2 -0
- package/lib/seam/connect/models/events/connected-accounts.js +7 -4
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +49 -0
- 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 +9 -2
- package/lib/seam/connect/openapi.js +16 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +50 -38
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +3 -3
- package/src/lib/seam/connect/models/events/connect-webviews.ts +45 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +9 -5
- package/src/lib/seam/connect/models/events/seam-event.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +16 -3
- package/src/lib/seam/connect/route-types.ts +52 -36
|
@@ -892,11 +892,11 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
892
892
|
device_label: string;
|
|
893
893
|
}>>;
|
|
894
894
|
dormakaba_oracode_metadata: z.ZodOptional<z.ZodObject<{
|
|
895
|
-
door_id: z.ZodNumber
|
|
895
|
+
door_id: z.ZodOptional<z.ZodNumber>;
|
|
896
896
|
door_name: z.ZodString;
|
|
897
|
-
device_id: z.ZodOptional<z.ZodNumber
|
|
897
|
+
device_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
898
898
|
door_is_wireless: z.ZodBoolean;
|
|
899
|
-
site_id: z.ZodNumber
|
|
899
|
+
site_id: z.ZodNullable<z.ZodNumber>;
|
|
900
900
|
site_name: z.ZodString;
|
|
901
901
|
iana_timezone: z.ZodOptional<z.ZodString>;
|
|
902
902
|
predefined_time_slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -934,12 +934,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
934
934
|
dormakaba_oracode_user_level_id: string;
|
|
935
935
|
}>, "many">>;
|
|
936
936
|
}, "strip", z.ZodTypeAny, {
|
|
937
|
-
site_id: number;
|
|
937
|
+
site_id: number | null;
|
|
938
938
|
site_name: string;
|
|
939
939
|
door_name: string;
|
|
940
|
-
door_id: number;
|
|
941
940
|
door_is_wireless: boolean;
|
|
942
|
-
device_id?: number | undefined;
|
|
941
|
+
device_id?: string | number | undefined;
|
|
942
|
+
door_id?: number | undefined;
|
|
943
943
|
iana_timezone?: string | undefined;
|
|
944
944
|
predefined_time_slots?: {
|
|
945
945
|
name: string;
|
|
@@ -954,12 +954,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
954
954
|
dormakaba_oracode_user_level_id: string;
|
|
955
955
|
}[] | undefined;
|
|
956
956
|
}, {
|
|
957
|
-
site_id: number;
|
|
957
|
+
site_id: number | null;
|
|
958
958
|
site_name: string;
|
|
959
959
|
door_name: string;
|
|
960
|
-
door_id: number;
|
|
961
960
|
door_is_wireless: boolean;
|
|
962
|
-
device_id?: number | undefined;
|
|
961
|
+
device_id?: string | number | undefined;
|
|
962
|
+
door_id?: number | undefined;
|
|
963
963
|
iana_timezone?: string | undefined;
|
|
964
964
|
predefined_time_slots?: {
|
|
965
965
|
name: string;
|
|
@@ -1178,12 +1178,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1178
1178
|
device_label: string;
|
|
1179
1179
|
} | undefined;
|
|
1180
1180
|
dormakaba_oracode_metadata?: {
|
|
1181
|
-
site_id: number;
|
|
1181
|
+
site_id: number | null;
|
|
1182
1182
|
site_name: string;
|
|
1183
1183
|
door_name: string;
|
|
1184
|
-
door_id: number;
|
|
1185
1184
|
door_is_wireless: boolean;
|
|
1186
|
-
device_id?: number | undefined;
|
|
1185
|
+
device_id?: string | number | undefined;
|
|
1186
|
+
door_id?: number | undefined;
|
|
1187
1187
|
iana_timezone?: string | undefined;
|
|
1188
1188
|
predefined_time_slots?: {
|
|
1189
1189
|
name: string;
|
|
@@ -1368,12 +1368,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1368
1368
|
device_label: string;
|
|
1369
1369
|
} | undefined;
|
|
1370
1370
|
dormakaba_oracode_metadata?: {
|
|
1371
|
-
site_id: number;
|
|
1371
|
+
site_id: number | null;
|
|
1372
1372
|
site_name: string;
|
|
1373
1373
|
door_name: string;
|
|
1374
|
-
door_id: number;
|
|
1375
1374
|
door_is_wireless: boolean;
|
|
1376
|
-
device_id?: number | undefined;
|
|
1375
|
+
device_id?: string | number | undefined;
|
|
1376
|
+
door_id?: number | undefined;
|
|
1377
1377
|
iana_timezone?: string | undefined;
|
|
1378
1378
|
predefined_time_slots?: {
|
|
1379
1379
|
name: string;
|
|
@@ -2510,12 +2510,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2510
2510
|
device_label: string;
|
|
2511
2511
|
} | undefined;
|
|
2512
2512
|
dormakaba_oracode_metadata?: {
|
|
2513
|
-
site_id: number;
|
|
2513
|
+
site_id: number | null;
|
|
2514
2514
|
site_name: string;
|
|
2515
2515
|
door_name: string;
|
|
2516
|
-
door_id: number;
|
|
2517
2516
|
door_is_wireless: boolean;
|
|
2518
|
-
device_id?: number | undefined;
|
|
2517
|
+
device_id?: string | number | undefined;
|
|
2518
|
+
door_id?: number | undefined;
|
|
2519
2519
|
iana_timezone?: string | undefined;
|
|
2520
2520
|
predefined_time_slots?: {
|
|
2521
2521
|
name: string;
|
|
@@ -2980,12 +2980,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2980
2980
|
device_label: string;
|
|
2981
2981
|
} | undefined;
|
|
2982
2982
|
dormakaba_oracode_metadata?: {
|
|
2983
|
-
site_id: number;
|
|
2983
|
+
site_id: number | null;
|
|
2984
2984
|
site_name: string;
|
|
2985
2985
|
door_name: string;
|
|
2986
|
-
door_id: number;
|
|
2987
2986
|
door_is_wireless: boolean;
|
|
2988
|
-
device_id?: number | undefined;
|
|
2987
|
+
device_id?: string | number | undefined;
|
|
2988
|
+
door_id?: number | undefined;
|
|
2989
2989
|
iana_timezone?: string | undefined;
|
|
2990
2990
|
predefined_time_slots?: {
|
|
2991
2991
|
name: string;
|
|
@@ -674,11 +674,11 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
674
674
|
device_label: string;
|
|
675
675
|
}>>;
|
|
676
676
|
dormakaba_oracode_metadata: z.ZodOptional<z.ZodObject<{
|
|
677
|
-
door_id: z.ZodNumber
|
|
677
|
+
door_id: z.ZodOptional<z.ZodNumber>;
|
|
678
678
|
door_name: z.ZodString;
|
|
679
|
-
device_id: z.ZodOptional<z.ZodNumber
|
|
679
|
+
device_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
680
680
|
door_is_wireless: z.ZodBoolean;
|
|
681
|
-
site_id: z.ZodNumber
|
|
681
|
+
site_id: z.ZodNullable<z.ZodNumber>;
|
|
682
682
|
site_name: z.ZodString;
|
|
683
683
|
iana_timezone: z.ZodOptional<z.ZodString>;
|
|
684
684
|
predefined_time_slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -716,12 +716,12 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
716
716
|
dormakaba_oracode_user_level_id: string;
|
|
717
717
|
}>, "many">>;
|
|
718
718
|
}, "strip", z.ZodTypeAny, {
|
|
719
|
-
site_id: number;
|
|
719
|
+
site_id: number | null;
|
|
720
720
|
site_name: string;
|
|
721
721
|
door_name: string;
|
|
722
|
-
door_id: number;
|
|
723
722
|
door_is_wireless: boolean;
|
|
724
|
-
device_id?: number | undefined;
|
|
723
|
+
device_id?: string | number | undefined;
|
|
724
|
+
door_id?: number | undefined;
|
|
725
725
|
iana_timezone?: string | undefined;
|
|
726
726
|
predefined_time_slots?: {
|
|
727
727
|
name: string;
|
|
@@ -736,12 +736,12 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
736
736
|
dormakaba_oracode_user_level_id: string;
|
|
737
737
|
}[] | undefined;
|
|
738
738
|
}, {
|
|
739
|
-
site_id: number;
|
|
739
|
+
site_id: number | null;
|
|
740
740
|
site_name: string;
|
|
741
741
|
door_name: string;
|
|
742
|
-
door_id: number;
|
|
743
742
|
door_is_wireless: boolean;
|
|
744
|
-
device_id?: number | undefined;
|
|
743
|
+
device_id?: string | number | undefined;
|
|
744
|
+
door_id?: number | undefined;
|
|
745
745
|
iana_timezone?: string | undefined;
|
|
746
746
|
predefined_time_slots?: {
|
|
747
747
|
name: string;
|
|
@@ -960,12 +960,12 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
960
960
|
device_label: string;
|
|
961
961
|
} | undefined;
|
|
962
962
|
dormakaba_oracode_metadata?: {
|
|
963
|
-
site_id: number;
|
|
963
|
+
site_id: number | null;
|
|
964
964
|
site_name: string;
|
|
965
965
|
door_name: string;
|
|
966
|
-
door_id: number;
|
|
967
966
|
door_is_wireless: boolean;
|
|
968
|
-
device_id?: number | undefined;
|
|
967
|
+
device_id?: string | number | undefined;
|
|
968
|
+
door_id?: number | undefined;
|
|
969
969
|
iana_timezone?: string | undefined;
|
|
970
970
|
predefined_time_slots?: {
|
|
971
971
|
name: string;
|
|
@@ -1150,12 +1150,12 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
1150
1150
|
device_label: string;
|
|
1151
1151
|
} | undefined;
|
|
1152
1152
|
dormakaba_oracode_metadata?: {
|
|
1153
|
-
site_id: number;
|
|
1153
|
+
site_id: number | null;
|
|
1154
1154
|
site_name: string;
|
|
1155
1155
|
door_name: string;
|
|
1156
|
-
door_id: number;
|
|
1157
1156
|
door_is_wireless: boolean;
|
|
1158
|
-
device_id?: number | undefined;
|
|
1157
|
+
device_id?: string | number | undefined;
|
|
1158
|
+
door_id?: number | undefined;
|
|
1159
1159
|
iana_timezone?: string | undefined;
|
|
1160
1160
|
predefined_time_slots?: {
|
|
1161
1161
|
name: string;
|
|
@@ -673,11 +673,11 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
673
673
|
device_label: string;
|
|
674
674
|
}>>;
|
|
675
675
|
dormakaba_oracode_metadata: z.ZodOptional<z.ZodObject<{
|
|
676
|
-
door_id: z.ZodNumber
|
|
676
|
+
door_id: z.ZodOptional<z.ZodNumber>;
|
|
677
677
|
door_name: z.ZodString;
|
|
678
|
-
device_id: z.ZodOptional<z.ZodNumber
|
|
678
|
+
device_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
679
679
|
door_is_wireless: z.ZodBoolean;
|
|
680
|
-
site_id: z.ZodNumber
|
|
680
|
+
site_id: z.ZodNullable<z.ZodNumber>;
|
|
681
681
|
site_name: z.ZodString;
|
|
682
682
|
iana_timezone: z.ZodOptional<z.ZodString>;
|
|
683
683
|
predefined_time_slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -715,12 +715,12 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
715
715
|
dormakaba_oracode_user_level_id: string;
|
|
716
716
|
}>, "many">>;
|
|
717
717
|
}, "strip", z.ZodTypeAny, {
|
|
718
|
-
site_id: number;
|
|
718
|
+
site_id: number | null;
|
|
719
719
|
site_name: string;
|
|
720
720
|
door_name: string;
|
|
721
|
-
door_id: number;
|
|
722
721
|
door_is_wireless: boolean;
|
|
723
|
-
device_id?: number | undefined;
|
|
722
|
+
device_id?: string | number | undefined;
|
|
723
|
+
door_id?: number | undefined;
|
|
724
724
|
iana_timezone?: string | undefined;
|
|
725
725
|
predefined_time_slots?: {
|
|
726
726
|
name: string;
|
|
@@ -735,12 +735,12 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
735
735
|
dormakaba_oracode_user_level_id: string;
|
|
736
736
|
}[] | undefined;
|
|
737
737
|
}, {
|
|
738
|
-
site_id: number;
|
|
738
|
+
site_id: number | null;
|
|
739
739
|
site_name: string;
|
|
740
740
|
door_name: string;
|
|
741
|
-
door_id: number;
|
|
742
741
|
door_is_wireless: boolean;
|
|
743
|
-
device_id?: number | undefined;
|
|
742
|
+
device_id?: string | number | undefined;
|
|
743
|
+
door_id?: number | undefined;
|
|
744
744
|
iana_timezone?: string | undefined;
|
|
745
745
|
predefined_time_slots?: {
|
|
746
746
|
name: string;
|
|
@@ -959,12 +959,12 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
959
959
|
device_label: string;
|
|
960
960
|
} | undefined;
|
|
961
961
|
dormakaba_oracode_metadata?: {
|
|
962
|
-
site_id: number;
|
|
962
|
+
site_id: number | null;
|
|
963
963
|
site_name: string;
|
|
964
964
|
door_name: string;
|
|
965
|
-
door_id: number;
|
|
966
965
|
door_is_wireless: boolean;
|
|
967
|
-
device_id?: number | undefined;
|
|
966
|
+
device_id?: string | number | undefined;
|
|
967
|
+
door_id?: number | undefined;
|
|
968
968
|
iana_timezone?: string | undefined;
|
|
969
969
|
predefined_time_slots?: {
|
|
970
970
|
name: string;
|
|
@@ -1149,12 +1149,12 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1149
1149
|
device_label: string;
|
|
1150
1150
|
} | undefined;
|
|
1151
1151
|
dormakaba_oracode_metadata?: {
|
|
1152
|
-
site_id: number;
|
|
1152
|
+
site_id: number | null;
|
|
1153
1153
|
site_name: string;
|
|
1154
1154
|
door_name: string;
|
|
1155
|
-
door_id: number;
|
|
1156
1155
|
door_is_wireless: boolean;
|
|
1157
|
-
device_id?: number | undefined;
|
|
1156
|
+
device_id?: string | number | undefined;
|
|
1157
|
+
door_id?: number | undefined;
|
|
1158
1158
|
iana_timezone?: string | undefined;
|
|
1159
1159
|
predefined_time_slots?: {
|
|
1160
1160
|
name: string;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const connect_webview_login_succeeded_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
event_id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
created_at: z.ZodString;
|
|
6
|
+
occurred_at: z.ZodString;
|
|
7
|
+
}, {
|
|
8
|
+
connect_webview_id: z.ZodString;
|
|
9
|
+
}>, {
|
|
10
|
+
event_type: z.ZodLiteral<"connect_webview.login_succeeded">;
|
|
11
|
+
connected_account_id: z.ZodString;
|
|
12
|
+
}>, "strip", z.ZodTypeAny, {
|
|
13
|
+
connected_account_id: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
workspace_id: string;
|
|
16
|
+
connect_webview_id: string;
|
|
17
|
+
event_id: string;
|
|
18
|
+
occurred_at: string;
|
|
19
|
+
event_type: "connect_webview.login_succeeded";
|
|
20
|
+
}, {
|
|
21
|
+
connected_account_id: string;
|
|
22
|
+
created_at: string;
|
|
23
|
+
workspace_id: string;
|
|
24
|
+
connect_webview_id: string;
|
|
25
|
+
event_id: string;
|
|
26
|
+
occurred_at: string;
|
|
27
|
+
event_type: "connect_webview.login_succeeded";
|
|
28
|
+
}>;
|
|
29
|
+
export type ConnectWebviewLoginSucceededEvent = z.infer<typeof connect_webview_login_succeeded_event>;
|
|
30
|
+
export declare const connect_webview_login_failed_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
31
|
+
event_id: z.ZodString;
|
|
32
|
+
workspace_id: z.ZodString;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
occurred_at: z.ZodString;
|
|
35
|
+
}, {
|
|
36
|
+
connect_webview_id: z.ZodString;
|
|
37
|
+
}>, {
|
|
38
|
+
event_type: z.ZodLiteral<"connect_webview.login_failed">;
|
|
39
|
+
}>, "strip", z.ZodTypeAny, {
|
|
40
|
+
created_at: string;
|
|
41
|
+
workspace_id: string;
|
|
42
|
+
connect_webview_id: string;
|
|
43
|
+
event_id: string;
|
|
44
|
+
occurred_at: string;
|
|
45
|
+
event_type: "connect_webview.login_failed";
|
|
46
|
+
}, {
|
|
47
|
+
created_at: string;
|
|
48
|
+
workspace_id: string;
|
|
49
|
+
connect_webview_id: string;
|
|
50
|
+
event_id: string;
|
|
51
|
+
occurred_at: string;
|
|
52
|
+
event_type: "connect_webview.login_failed";
|
|
53
|
+
}>;
|
|
54
|
+
export type ConnectWebviewLoginFailedEvent = z.infer<typeof connect_webview_login_failed_event>;
|
|
55
|
+
export declare const connect_webview_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
56
|
+
event_id: z.ZodString;
|
|
57
|
+
workspace_id: z.ZodString;
|
|
58
|
+
created_at: z.ZodString;
|
|
59
|
+
occurred_at: z.ZodString;
|
|
60
|
+
}, {
|
|
61
|
+
connect_webview_id: z.ZodString;
|
|
62
|
+
}>, {
|
|
63
|
+
event_type: z.ZodLiteral<"connect_webview.login_succeeded">;
|
|
64
|
+
connected_account_id: z.ZodString;
|
|
65
|
+
}>, "strip", z.ZodTypeAny, {
|
|
66
|
+
connected_account_id: string;
|
|
67
|
+
created_at: string;
|
|
68
|
+
workspace_id: string;
|
|
69
|
+
connect_webview_id: string;
|
|
70
|
+
event_id: string;
|
|
71
|
+
occurred_at: string;
|
|
72
|
+
event_type: "connect_webview.login_succeeded";
|
|
73
|
+
}, {
|
|
74
|
+
connected_account_id: string;
|
|
75
|
+
created_at: string;
|
|
76
|
+
workspace_id: string;
|
|
77
|
+
connect_webview_id: string;
|
|
78
|
+
event_id: string;
|
|
79
|
+
occurred_at: string;
|
|
80
|
+
event_type: "connect_webview.login_succeeded";
|
|
81
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
82
|
+
event_id: z.ZodString;
|
|
83
|
+
workspace_id: z.ZodString;
|
|
84
|
+
created_at: z.ZodString;
|
|
85
|
+
occurred_at: z.ZodString;
|
|
86
|
+
}, {
|
|
87
|
+
connect_webview_id: z.ZodString;
|
|
88
|
+
}>, {
|
|
89
|
+
event_type: z.ZodLiteral<"connect_webview.login_failed">;
|
|
90
|
+
}>, "strip", z.ZodTypeAny, {
|
|
91
|
+
created_at: string;
|
|
92
|
+
workspace_id: string;
|
|
93
|
+
connect_webview_id: string;
|
|
94
|
+
event_id: string;
|
|
95
|
+
occurred_at: string;
|
|
96
|
+
event_type: "connect_webview.login_failed";
|
|
97
|
+
}, {
|
|
98
|
+
created_at: string;
|
|
99
|
+
workspace_id: string;
|
|
100
|
+
connect_webview_id: string;
|
|
101
|
+
event_id: string;
|
|
102
|
+
occurred_at: string;
|
|
103
|
+
event_type: "connect_webview.login_failed";
|
|
104
|
+
}>];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_event } from './common.js';
|
|
3
|
+
const connect_webview_event = common_event.extend({
|
|
4
|
+
connect_webview_id: z.string().uuid().describe(`
|
|
5
|
+
---
|
|
6
|
+
title: Connect Webview ID
|
|
7
|
+
---
|
|
8
|
+
ID of the connect webview.
|
|
9
|
+
`),
|
|
10
|
+
});
|
|
11
|
+
const connected_account_id = z.string().uuid().describe(`
|
|
12
|
+
---
|
|
13
|
+
title: Connected Account ID
|
|
14
|
+
---
|
|
15
|
+
ID of the connected account.
|
|
16
|
+
`);
|
|
17
|
+
export const connect_webview_login_succeeded_event = connect_webview_event
|
|
18
|
+
.extend({
|
|
19
|
+
event_type: z.literal('connect_webview.login_succeeded'),
|
|
20
|
+
connected_account_id,
|
|
21
|
+
})
|
|
22
|
+
.describe('A connect webview had a successful login.');
|
|
23
|
+
export const connect_webview_login_failed_event = connect_webview_event
|
|
24
|
+
.extend({
|
|
25
|
+
event_type: z.literal('connect_webview.login_failed'),
|
|
26
|
+
})
|
|
27
|
+
.describe('A connect webview had a failed login.');
|
|
28
|
+
export const connect_webview_events = [
|
|
29
|
+
connect_webview_login_succeeded_event,
|
|
30
|
+
connect_webview_login_failed_event,
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=connect-webviews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect-webviews.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connect-webviews.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,qBAAqB,GAAG,YAAY,CAAC,MAAM,CAAC;IAChD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAK9C,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;CAKvD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,qBAAqB;KACvE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;IACxD,oBAAoB;CACrB,CAAC;KACD,QAAQ,CAAC,2CAA2C,CAAC,CAAA;AAMxD,MAAM,CAAC,MAAM,kCAAkC,GAAG,qBAAqB;KACpE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;CACtD,CAAC;KACD,QAAQ,CAAC,uCAAuC,CAAC,CAAA;AAMpD,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,qCAAqC;IACrC,kCAAkC;CAC1B,CAAA"}
|
|
@@ -55,6 +55,7 @@ export declare const connected_account_created_event: z.ZodObject<z.objectUtil.e
|
|
|
55
55
|
event_type: "connected_account.created";
|
|
56
56
|
}>;
|
|
57
57
|
export type ConnectedAccountCreatedEvent = z.infer<typeof connected_account_created_event>;
|
|
58
|
+
/** @deprecated */
|
|
58
59
|
export declare const connected_account_successful_login_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
59
60
|
event_id: z.ZodString;
|
|
60
61
|
workspace_id: z.ZodString;
|
|
@@ -82,6 +83,7 @@ export declare const connected_account_successful_login_event: z.ZodObject<z.obj
|
|
|
82
83
|
occurred_at: string;
|
|
83
84
|
event_type: "connected_account.successful_login";
|
|
84
85
|
}>;
|
|
86
|
+
/** @deprecated Rely on ConnectWebviewLoginSucceededEvent instead */
|
|
85
87
|
export type ConnectedAccountSuccessfulLoginEvent = z.infer<typeof connected_account_successful_login_event>;
|
|
86
88
|
export declare const connected_account_disconnected_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
87
89
|
event_id: z.ZodString;
|
|
@@ -26,12 +26,15 @@ export const connected_account_created_event = connected_account_event
|
|
|
26
26
|
connect_webview_id,
|
|
27
27
|
})
|
|
28
28
|
.describe('A connected account was created.');
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
/** @deprecated */
|
|
30
|
+
export const connected_account_successful_login_event = connected_account_event.extend({
|
|
31
31
|
event_type: z.literal('connected_account.successful_login'),
|
|
32
32
|
connect_webview_id,
|
|
33
|
-
})
|
|
34
|
-
|
|
33
|
+
}).describe(`
|
|
34
|
+
---
|
|
35
|
+
deprecated: Use \`connect_webview.login_succeeded\`.
|
|
36
|
+
---
|
|
37
|
+
A connected account had a successful connect webview login.`);
|
|
35
38
|
export const connected_account_disconnected_event = connected_account_event
|
|
36
39
|
.extend({
|
|
37
40
|
event_type: z.literal('connected_account.disconnected'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKhD,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;CAKrD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB;KACrE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACpD,kBAAkB;CACnB,CAAC;KACD,QAAQ,CACP,iGAAiG,CAClG,CAAA;AAMH,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB;KACnE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAClD,kBAAkB;CACnB,CAAC;KACD,QAAQ,CAAC,kCAAkC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKhD,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;CAKrD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB;KACrE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACpD,kBAAkB;CACnB,CAAC;KACD,QAAQ,CACP,iGAAiG,CAClG,CAAA;AAMH,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB;KACnE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAClD,kBAAkB;CACnB,CAAC;KACD,QAAQ,CAAC,kCAAkC,CAAC,CAAA;AAK/C,kBAAkB;AAClB,MAAM,CAAC,MAAM,wCAAwC,GACnD,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,oCAAoC,CAAC;IAC3D,kBAAkB;CACnB,CAAC,CAAC,QAAQ,CAAC;;;;gEAIkD,CAAC,CAAA;AAOjE,MAAM,CAAC,MAAM,oCAAoC,GAAG,uBAAuB;KACxE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC;CACxD,CAAC;KACD,QAAQ,CAAC,uCAAuC,CAAC,CAAA;AAMpD,MAAM,CAAC,MAAM,4CAA4C,GACvD,uBAAuB;KACpB,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,wCAAwC,CAAC;CAChE,CAAC;KACD,QAAQ,CACP,uFAAuF,CACxF,CAAA;AAML,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB;KACnE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;CACnD,CAAC;KACD,QAAQ,CAAC,kCAAkC,CAAC,CAAA;AAM/C,MAAM,CAAC,MAAM,+DAA+D,GAC1E,uBAAuB;KACpB,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CACnB,2DAA2D,CAC5D;CACF,CAAC;KACD,QAAQ,CACP,0GAA0G,CAC3G,CAAA;AAML,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iCAAiC;IACjC,+BAA+B;IAC/B,wCAAwC;IACxC,oCAAoC;IACpC,4CAA4C;IAC5C,+BAA+B;IAC/B,+DAA+D;CACvD,CAAA"}
|
|
@@ -788,6 +788,55 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
788
788
|
workspace_id: z.ZodString;
|
|
789
789
|
created_at: z.ZodString;
|
|
790
790
|
occurred_at: z.ZodString;
|
|
791
|
+
}, {
|
|
792
|
+
connect_webview_id: z.ZodString;
|
|
793
|
+
}>, {
|
|
794
|
+
event_type: z.ZodLiteral<"connect_webview.login_succeeded">;
|
|
795
|
+
connected_account_id: z.ZodString;
|
|
796
|
+
}>, "strip", z.ZodTypeAny, {
|
|
797
|
+
connected_account_id: string;
|
|
798
|
+
created_at: string;
|
|
799
|
+
workspace_id: string;
|
|
800
|
+
connect_webview_id: string;
|
|
801
|
+
event_id: string;
|
|
802
|
+
occurred_at: string;
|
|
803
|
+
event_type: "connect_webview.login_succeeded";
|
|
804
|
+
}, {
|
|
805
|
+
connected_account_id: string;
|
|
806
|
+
created_at: string;
|
|
807
|
+
workspace_id: string;
|
|
808
|
+
connect_webview_id: string;
|
|
809
|
+
event_id: string;
|
|
810
|
+
occurred_at: string;
|
|
811
|
+
event_type: "connect_webview.login_succeeded";
|
|
812
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
813
|
+
event_id: z.ZodString;
|
|
814
|
+
workspace_id: z.ZodString;
|
|
815
|
+
created_at: z.ZodString;
|
|
816
|
+
occurred_at: z.ZodString;
|
|
817
|
+
}, {
|
|
818
|
+
connect_webview_id: z.ZodString;
|
|
819
|
+
}>, {
|
|
820
|
+
event_type: z.ZodLiteral<"connect_webview.login_failed">;
|
|
821
|
+
}>, "strip", z.ZodTypeAny, {
|
|
822
|
+
created_at: string;
|
|
823
|
+
workspace_id: string;
|
|
824
|
+
connect_webview_id: string;
|
|
825
|
+
event_id: string;
|
|
826
|
+
occurred_at: string;
|
|
827
|
+
event_type: "connect_webview.login_failed";
|
|
828
|
+
}, {
|
|
829
|
+
created_at: string;
|
|
830
|
+
workspace_id: string;
|
|
831
|
+
connect_webview_id: string;
|
|
832
|
+
event_id: string;
|
|
833
|
+
occurred_at: string;
|
|
834
|
+
event_type: "connect_webview.login_failed";
|
|
835
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
836
|
+
event_id: z.ZodString;
|
|
837
|
+
workspace_id: z.ZodString;
|
|
838
|
+
created_at: z.ZodString;
|
|
839
|
+
occurred_at: z.ZodString;
|
|
791
840
|
}, {
|
|
792
841
|
device_id: z.ZodString;
|
|
793
842
|
connected_account_id: z.ZodString;
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { access_code_events } from './access-codes.js';
|
|
3
3
|
import { acs_events } from './acs/index.js';
|
|
4
4
|
import { client_session_events } from './client-sessions.js';
|
|
5
|
+
import { connect_webview_events } from './connect-webviews.js';
|
|
5
6
|
import { connected_account_events } from './connected-accounts.js';
|
|
6
7
|
import { device_events } from './devices.js';
|
|
7
8
|
import { enrollment_automation_events } from './enrollment-automations.js';
|
|
@@ -11,6 +12,7 @@ export const seam_event = z.discriminatedUnion('event_type', [
|
|
|
11
12
|
...acs_events,
|
|
12
13
|
...client_session_events,
|
|
13
14
|
...connected_account_events,
|
|
15
|
+
...connect_webview_events,
|
|
14
16
|
...device_events,
|
|
15
17
|
...enrollment_automation_events,
|
|
16
18
|
...phone_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,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,kBAAkB,CAAC,YAAY,EAAE;IAC3D,GAAG,kBAAkB;IACrB,GAAG,UAAU;IACb,GAAG,qBAAqB;IACxB,GAAG,wBAAwB;IAC3B,GAAG,aAAa;IAChB,GAAG,4BAA4B;IAC/B,GAAG,YAAY;CAChB,CAAC,CAAA"}
|
|
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,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,kBAAkB,CAAC,YAAY,EAAE;IAC3D,GAAG,kBAAkB;IACrB,GAAG,UAAU;IACb,GAAG,qBAAqB;IACxB,GAAG,wBAAwB;IAC3B,GAAG,sBAAsB;IACzB,GAAG,aAAa;IAChB,GAAG,4BAA4B;IAC/B,GAAG,YAAY;CAChB,CAAC,CAAA"}
|
|
@@ -1652,8 +1652,13 @@ declare const _default: {
|
|
|
1652
1652
|
dormakaba_oracode_metadata: {
|
|
1653
1653
|
properties: {
|
|
1654
1654
|
device_id: {
|
|
1655
|
-
|
|
1656
|
-
|
|
1655
|
+
oneOf: ({
|
|
1656
|
+
format: string;
|
|
1657
|
+
type: string;
|
|
1658
|
+
} | {
|
|
1659
|
+
type: string;
|
|
1660
|
+
format?: never;
|
|
1661
|
+
})[];
|
|
1657
1662
|
};
|
|
1658
1663
|
door_id: {
|
|
1659
1664
|
format: string;
|
|
@@ -1711,7 +1716,9 @@ declare const _default: {
|
|
|
1711
1716
|
type: string;
|
|
1712
1717
|
};
|
|
1713
1718
|
site_id: {
|
|
1719
|
+
description: string;
|
|
1714
1720
|
format: string;
|
|
1721
|
+
nullable: boolean;
|
|
1715
1722
|
type: string;
|
|
1716
1723
|
};
|
|
1717
1724
|
site_name: {
|
|
@@ -2355,7 +2355,12 @@ export default {
|
|
|
2355
2355
|
},
|
|
2356
2356
|
dormakaba_oracode_metadata: {
|
|
2357
2357
|
properties: {
|
|
2358
|
-
device_id: {
|
|
2358
|
+
device_id: {
|
|
2359
|
+
oneOf: [
|
|
2360
|
+
{ format: 'float', type: 'number' },
|
|
2361
|
+
{ type: 'string' },
|
|
2362
|
+
],
|
|
2363
|
+
},
|
|
2359
2364
|
door_id: { format: 'float', type: 'number' },
|
|
2360
2365
|
door_is_wireless: { type: 'boolean' },
|
|
2361
2366
|
door_name: { type: 'string' },
|
|
@@ -2396,11 +2401,15 @@ export default {
|
|
|
2396
2401
|
},
|
|
2397
2402
|
type: 'array',
|
|
2398
2403
|
},
|
|
2399
|
-
site_id: {
|
|
2404
|
+
site_id: {
|
|
2405
|
+
description: '@DEPRECATED',
|
|
2406
|
+
format: 'float',
|
|
2407
|
+
nullable: true,
|
|
2408
|
+
type: 'number',
|
|
2409
|
+
},
|
|
2400
2410
|
site_name: { type: 'string' },
|
|
2401
2411
|
},
|
|
2402
2412
|
required: [
|
|
2403
|
-
'door_id',
|
|
2404
2413
|
'door_name',
|
|
2405
2414
|
'door_is_wireless',
|
|
2406
2415
|
'site_id',
|
|
@@ -9658,6 +9667,8 @@ export default {
|
|
|
9658
9667
|
'connected_account.disconnected',
|
|
9659
9668
|
'connected_account.completed_first_sync',
|
|
9660
9669
|
'connected_account.completed_first_sync_after_reconnection',
|
|
9670
|
+
'connect_webview.login_succeeded',
|
|
9671
|
+
'connect_webview.login_failed',
|
|
9661
9672
|
'noise_sensor.noise_threshold_triggered',
|
|
9662
9673
|
'access_code.backup_access_code_pulled',
|
|
9663
9674
|
'acs_system.connected',
|
|
@@ -9723,6 +9734,8 @@ export default {
|
|
|
9723
9734
|
'connected_account.disconnected',
|
|
9724
9735
|
'connected_account.completed_first_sync',
|
|
9725
9736
|
'connected_account.completed_first_sync_after_reconnection',
|
|
9737
|
+
'connect_webview.login_succeeded',
|
|
9738
|
+
'connect_webview.login_failed',
|
|
9726
9739
|
'noise_sensor.noise_threshold_triggered',
|
|
9727
9740
|
'access_code.backup_access_code_pulled',
|
|
9728
9741
|
'acs_system.connected',
|