@seamapi/types 1.163.0 → 1.165.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 +511 -28
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1245 -39
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/capability-properties/access-code.d.ts +11 -11
- package/lib/seam/connect/models/capability-properties/access-code.js +1 -1
- package/lib/seam/connect/models/capability-properties/access-code.js.map +1 -1
- package/lib/seam/connect/models/capability-properties/index.d.ts +5 -5
- package/lib/seam/connect/models/devices/managed-device.d.ts +9 -9
- package/lib/seam/connect/models/events/access-codes.d.ts +876 -0
- package/lib/seam/connect/models/events/access-codes.js +137 -0
- package/lib/seam/connect/models/events/access-codes.js.map +1 -0
- package/lib/seam/connect/models/events/acs/common.d.ts +20 -0
- package/lib/seam/connect/models/events/acs/common.js +17 -0
- package/lib/seam/connect/models/events/acs/common.js.map +1 -0
- package/lib/seam/connect/models/events/acs/credentials.d.ts +52 -0
- package/lib/seam/connect/models/events/acs/credentials.js +12 -0
- package/lib/seam/connect/models/events/acs/credentials.js.map +1 -0
- package/lib/seam/connect/models/events/acs/index.d.ts +49 -0
- package/lib/seam/connect/models/events/acs/index.js +7 -0
- package/lib/seam/connect/models/events/acs/index.js.map +1 -0
- package/lib/seam/connect/models/events/acs/users.d.ts +52 -0
- package/lib/seam/connect/models/events/acs/users.js +12 -0
- package/lib/seam/connect/models/events/acs/users.js.map +1 -0
- package/lib/seam/connect/models/events/client-sessions.d.ts +40 -0
- package/lib/seam/connect/models/events/client-sessions.js +17 -0
- package/lib/seam/connect/models/events/client-sessions.js.map +1 -0
- package/lib/seam/connect/models/events/common.d.ts +14 -0
- package/lib/seam/connect/models/events/common.js +22 -0
- package/lib/seam/connect/models/events/common.js.map +1 -0
- package/lib/seam/connect/models/events/connected-accounts.d.ts +286 -0
- package/lib/seam/connect/models/events/connected-accounts.js +64 -0
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -0
- package/lib/seam/connect/models/events/devices.d.ts +1138 -0
- package/lib/seam/connect/models/events/devices.js +217 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -0
- package/lib/seam/connect/models/events/enrollment-automations.d.ts +40 -0
- package/lib/seam/connect/models/events/enrollment-automations.js +19 -0
- package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -0
- package/lib/seam/connect/models/events/index.d.ts +8 -0
- package/lib/seam/connect/models/events/index.js +2 -0
- package/lib/seam/connect/models/events/index.js.map +1 -0
- package/lib/seam/connect/models/events/phones.d.ts +40 -0
- package/lib/seam/connect/models/events/phones.js +17 -0
- package/lib/seam/connect/models/events/phones.js.map +1 -0
- package/lib/seam/connect/models/events/seam-event.d.ts +1204 -0
- package/lib/seam/connect/models/events/seam-event.js +18 -0
- package/lib/seam/connect/models/events/seam-event.js.map +1 -0
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/openapi.js +5 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +12 -12
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +6 -1
- package/src/lib/seam/connect/models/capability-properties/access-code.ts +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +233 -0
- package/src/lib/seam/connect/models/events/acs/common.ts +18 -0
- package/src/lib/seam/connect/models/events/acs/credentials.ts +19 -0
- package/src/lib/seam/connect/models/events/acs/index.ts +7 -0
- package/src/lib/seam/connect/models/events/acs/users.ts +17 -0
- package/src/lib/seam/connect/models/events/client-sessions.ts +24 -0
- package/src/lib/seam/connect/models/events/common.ts +22 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +112 -0
- package/src/lib/seam/connect/models/events/devices.ts +349 -0
- package/src/lib/seam/connect/models/events/enrollment-automations.ts +26 -0
- package/src/lib/seam/connect/models/events/index.ts +8 -0
- package/src/lib/seam/connect/models/events/phones.ts +22 -0
- package/src/lib/seam/connect/models/events/seam-event.ts +23 -0
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +5 -1
- package/src/lib/seam/connect/route-types.ts +14 -10
- package/src/lib/seam/connect/schemas.ts +1 -1
- package/lib/seam/connect/models/events/access_code_events.d.ts +0 -70
- package/lib/seam/connect/models/events/access_code_events.js +0 -33
- package/lib/seam/connect/models/events/access_code_events.js.map +0 -1
- package/lib/seam/connect/models/events/connected_account_events.d.ts +0 -48
- package/lib/seam/connect/models/events/connected_account_events.js +0 -24
- package/lib/seam/connect/models/events/connected_account_events.js.map +0 -1
- package/lib/seam/connect/models/events/device_events.d.ts +0 -63
- package/lib/seam/connect/models/events/device_events.js +0 -21
- package/lib/seam/connect/models/events/device_events.js.map +0 -1
- package/lib/seam/connect/models/events/lock_events.d.ts +0 -42
- package/lib/seam/connect/models/events/lock_events.js +0 -22
- package/lib/seam/connect/models/events/lock_events.js.map +0 -1
- package/src/lib/seam/connect/models/events/access_code_events.ts +0 -37
- package/src/lib/seam/connect/models/events/connected_account_events.ts +0 -27
- package/src/lib/seam/connect/models/events/device_events.ts +0 -24
- package/src/lib/seam/connect/models/events/lock_events.ts +0 -25
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import { common_event } from './common.js';
|
|
3
|
+
const device_event = common_event.extend({
|
|
4
|
+
device_id: z.string().uuid().describe(`
|
|
5
|
+
---
|
|
6
|
+
title: Device ID
|
|
7
|
+
---
|
|
8
|
+
ID of the device.
|
|
9
|
+
`),
|
|
10
|
+
connected_account_id: z.string().uuid().describe(`
|
|
11
|
+
---
|
|
12
|
+
title: Connected Account ID
|
|
13
|
+
---
|
|
14
|
+
ID of the connected account.
|
|
15
|
+
`),
|
|
16
|
+
});
|
|
17
|
+
const battery_level = z.number().min(0).max(1).describe(`
|
|
18
|
+
---
|
|
19
|
+
title: Battery Level
|
|
20
|
+
---
|
|
21
|
+
Fractional number 0 to 1.0 indicating amount of battery in device, as reported by device.
|
|
22
|
+
`);
|
|
23
|
+
const device_battery_status = z.enum(['critical', 'low', 'good', 'full'])
|
|
24
|
+
.describe(`
|
|
25
|
+
---
|
|
26
|
+
title: Battery Status
|
|
27
|
+
---
|
|
28
|
+
Enum representing the battery status calculated from numeric battery_level value, one of 'critical' | 'low' | 'good' | 'full'
|
|
29
|
+
`);
|
|
30
|
+
const disconnection_error_code = z.enum([
|
|
31
|
+
'account_disconnected',
|
|
32
|
+
'hub_disconnected',
|
|
33
|
+
'device_disconnected',
|
|
34
|
+
]).describe(`
|
|
35
|
+
---
|
|
36
|
+
title: Event Error Code
|
|
37
|
+
---
|
|
38
|
+
The error code associated with the event, if any.
|
|
39
|
+
`);
|
|
40
|
+
export const lock_method = z.enum(['keycode', 'manual', 'unknown', 'seamapi'])
|
|
41
|
+
.describe(`
|
|
42
|
+
---
|
|
43
|
+
title: Lock Lock/Unlock Method
|
|
44
|
+
---
|
|
45
|
+
Method by which a lock device was locked or unlocked. When the method is \`keycode\`, the \`access_code_id\` will reference the Seam access code which was used, if reported by the device.
|
|
46
|
+
`);
|
|
47
|
+
export const device_connected_event = device_event
|
|
48
|
+
.extend({
|
|
49
|
+
event_type: z.literal('device.connected'),
|
|
50
|
+
})
|
|
51
|
+
.describe('A new device was connected to Seam.');
|
|
52
|
+
export const device_converted_to_unmanaged_event = device_event
|
|
53
|
+
.extend({
|
|
54
|
+
event_type: z.literal('device.converted_to_unmanaged'),
|
|
55
|
+
})
|
|
56
|
+
.describe('An unmanaged device was successfully converted to a managed device.');
|
|
57
|
+
export const unmanaged_device_converted_to_managed_event = device_event
|
|
58
|
+
.extend({
|
|
59
|
+
event_type: z.literal('device.unmanaged.converted_to_managed'),
|
|
60
|
+
})
|
|
61
|
+
.describe('A managed device was successfully converted to an unmanaged device.');
|
|
62
|
+
export const unmanaged_device_connected_event = device_event
|
|
63
|
+
.extend({
|
|
64
|
+
event_type: z.literal('device.unmanaged.connected'),
|
|
65
|
+
})
|
|
66
|
+
.describe('An unmanaged device was connected to Seam');
|
|
67
|
+
export const device_disconnected_event = device_event
|
|
68
|
+
.extend({
|
|
69
|
+
event_type: z.literal('device.disconnected'),
|
|
70
|
+
error_code: disconnection_error_code,
|
|
71
|
+
})
|
|
72
|
+
.describe('A device was disconnected');
|
|
73
|
+
export const unmanaged_device_disconnected_event = device_event
|
|
74
|
+
.extend({
|
|
75
|
+
event_type: z.literal('device.unmanaged.disconnected'),
|
|
76
|
+
error_code: disconnection_error_code,
|
|
77
|
+
})
|
|
78
|
+
.describe('An unmanaged device was disconnected');
|
|
79
|
+
export const device_tampered_event = device_event
|
|
80
|
+
.extend({
|
|
81
|
+
event_type: z.literal('device.tampered'),
|
|
82
|
+
})
|
|
83
|
+
.describe('A device detected that it was tampered with, e.g., opened or moved.');
|
|
84
|
+
export const device_low_battery_event = device_event
|
|
85
|
+
.extend({
|
|
86
|
+
event_type: z.literal('device.low_battery'),
|
|
87
|
+
battery_level,
|
|
88
|
+
})
|
|
89
|
+
.describe('A device battery level dropped below the low threshold.');
|
|
90
|
+
export const device_battery_status_changed_event = device_event
|
|
91
|
+
.extend({
|
|
92
|
+
event_type: z.literal('device.battery_status_changed'),
|
|
93
|
+
battery_status: device_battery_status,
|
|
94
|
+
battery_level,
|
|
95
|
+
})
|
|
96
|
+
.describe('A device battery status changed since the last battery status changed event.');
|
|
97
|
+
export const device_removed_event = device_event
|
|
98
|
+
.extend({
|
|
99
|
+
event_type: z.literal('device.removed'),
|
|
100
|
+
})
|
|
101
|
+
.describe('A device was removed externally from the connected account.');
|
|
102
|
+
export const device_deleted_event = device_event
|
|
103
|
+
.extend({
|
|
104
|
+
event_type: z.literal('device.deleted'),
|
|
105
|
+
})
|
|
106
|
+
.describe('A device was deleted.');
|
|
107
|
+
export const device_third_party_integration_detected_event = device_event
|
|
108
|
+
.extend({
|
|
109
|
+
event_type: z.literal('device.third_party_integration_detected'),
|
|
110
|
+
})
|
|
111
|
+
.describe('Seam detected a device is using a third party integration that will interfere with Seam device management.');
|
|
112
|
+
export const device_third_party_integration_no_longer_detected_event = device_event
|
|
113
|
+
.extend({
|
|
114
|
+
event_type: z.literal('device.third_party_integration_no_longer_detected'),
|
|
115
|
+
})
|
|
116
|
+
.describe('Seam detected a device is no longer using a third party integration that was interfering with Seam device management.');
|
|
117
|
+
export const device_salto_privacy_mode_activated_event = device_event
|
|
118
|
+
.extend({
|
|
119
|
+
event_type: z.literal('device.salto.privacy_mode_activated'),
|
|
120
|
+
})
|
|
121
|
+
.describe('A Salto device activated privacy mode.');
|
|
122
|
+
export const device_salto_privacy_mode_deactivated_event = device_event
|
|
123
|
+
.extend({
|
|
124
|
+
event_type: z.literal('device.salto.privacy_mode_deactivated'),
|
|
125
|
+
})
|
|
126
|
+
.describe('A Salto device deactivated privacy mode.');
|
|
127
|
+
export const device_connection_became_flaky_event = device_event
|
|
128
|
+
.extend({
|
|
129
|
+
event_type: z.literal('device.connection_became_flaky'),
|
|
130
|
+
})
|
|
131
|
+
.describe('Seam detected a flaky device connection.');
|
|
132
|
+
export const device_connection_stabilized_event = device_event
|
|
133
|
+
.extend({
|
|
134
|
+
event_type: z.literal('device.connection_stabilized'),
|
|
135
|
+
})
|
|
136
|
+
.describe('Seam detected a previously flaky device connection stabilized.');
|
|
137
|
+
export const device_error_subscription_required_event = device_event
|
|
138
|
+
.extend({
|
|
139
|
+
event_type: z.literal('device.error.subscription_required'),
|
|
140
|
+
})
|
|
141
|
+
.describe('A third party subscription is required to use all device features.');
|
|
142
|
+
export const device_error_subscription_required_resolved_event = device_event
|
|
143
|
+
.extend({
|
|
144
|
+
event_type: z.literal('device.error.subscription_required.resolved'),
|
|
145
|
+
})
|
|
146
|
+
.describe('A third party subscription is active or no longer-required to use all device features.');
|
|
147
|
+
export const device_accessory_keypad_connected_event = device_event
|
|
148
|
+
.extend({
|
|
149
|
+
event_type: z.literal('device.accessory_keypad_connected'),
|
|
150
|
+
})
|
|
151
|
+
.describe('A accessory keypad was connected to a device.');
|
|
152
|
+
export const device_accessory_keypad_disconnected_event = device_event
|
|
153
|
+
.extend({
|
|
154
|
+
event_type: z.literal('device.accessory_keypad_disconnected'),
|
|
155
|
+
})
|
|
156
|
+
.describe('A accessory keypad was disconnected to a device.');
|
|
157
|
+
export const noise_sensor_noise_threshold_triggered_event = device_event
|
|
158
|
+
.extend({
|
|
159
|
+
event_type: z.literal('noise_sensor.noise_threshold_triggered'),
|
|
160
|
+
// TODO: import from ../devices
|
|
161
|
+
noiseaware_metadata: z.record(z.unknown()).optional().describe(`
|
|
162
|
+
---
|
|
163
|
+
title: Noiseaware Metadata
|
|
164
|
+
---
|
|
165
|
+
Metadata from the Noiseaware API.
|
|
166
|
+
`),
|
|
167
|
+
minut_metadata: z.record(z.unknown()).optional().describe(`
|
|
168
|
+
---
|
|
169
|
+
title: Minut Metadata
|
|
170
|
+
---
|
|
171
|
+
Metadata from the Minut API.
|
|
172
|
+
`),
|
|
173
|
+
})
|
|
174
|
+
.describe('Extended periods of noise or noise exceeding a threshold was detected.');
|
|
175
|
+
export const lock_locked_event = device_event
|
|
176
|
+
.extend({
|
|
177
|
+
event_type: z.literal('lock.locked'),
|
|
178
|
+
access_code_id: z.string().uuid().optional(),
|
|
179
|
+
action_attempt_id: z.string().uuid().optional(),
|
|
180
|
+
method: lock_method,
|
|
181
|
+
})
|
|
182
|
+
.describe('A lock was locked.');
|
|
183
|
+
export const lock_unlocked_event = device_event
|
|
184
|
+
.extend({
|
|
185
|
+
event_type: z.literal('lock.unlocked'),
|
|
186
|
+
access_code_id: z.string().uuid().optional(),
|
|
187
|
+
action_attempt_id: z.string().uuid().optional(),
|
|
188
|
+
method: lock_method,
|
|
189
|
+
})
|
|
190
|
+
.describe('A lock was unlocked.');
|
|
191
|
+
export const device_events = [
|
|
192
|
+
device_connected_event,
|
|
193
|
+
device_converted_to_unmanaged_event,
|
|
194
|
+
unmanaged_device_converted_to_managed_event,
|
|
195
|
+
unmanaged_device_connected_event,
|
|
196
|
+
device_disconnected_event,
|
|
197
|
+
unmanaged_device_disconnected_event,
|
|
198
|
+
device_tampered_event,
|
|
199
|
+
device_low_battery_event,
|
|
200
|
+
device_battery_status_changed_event,
|
|
201
|
+
device_removed_event,
|
|
202
|
+
device_deleted_event,
|
|
203
|
+
device_third_party_integration_detected_event,
|
|
204
|
+
device_third_party_integration_no_longer_detected_event,
|
|
205
|
+
device_salto_privacy_mode_activated_event,
|
|
206
|
+
device_salto_privacy_mode_deactivated_event,
|
|
207
|
+
device_connection_became_flaky_event,
|
|
208
|
+
device_connection_stabilized_event,
|
|
209
|
+
device_error_subscription_required_event,
|
|
210
|
+
device_error_subscription_required_resolved_event,
|
|
211
|
+
device_accessory_keypad_connected_event,
|
|
212
|
+
device_accessory_keypad_disconnected_event,
|
|
213
|
+
noise_sensor_noise_threshold_triggered_event,
|
|
214
|
+
lock_locked_event,
|
|
215
|
+
lock_unlocked_event,
|
|
216
|
+
];
|
|
217
|
+
//# sourceMappingURL=devices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/devices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKrC,CAAC;IACF,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKhD,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,CAA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AM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC/C,MAAM,EAAE,WAAW;CACpB,CAAC;KACD,QAAQ,CAAC,oBAAoB,CAAC,CAAA;AAIjC,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY;KAC5C,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IACtC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC5C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC/C,MAAM,EAAE,WAAW;CACpB,CAAC;KACD,QAAQ,CAAC,sBAAsB,CAAC,CAAA;AAInC,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,sBAAsB;IACtB,mCAAmC;IACnC,2CAA2C;IAC3C,gCAAgC;IAChC,yBAAyB;IACzB,mCAAmC;IACnC,qBAAqB;IACrB,wBAAwB;IACxB,mCAAmC;IACnC,oBAAoB;IACpB,oBAAoB;IACpB,6CAA6C;IAC7C,uDAAuD;IACvD,yCAAyC;IACzC,2CAA2C;IAC3C,oCAAoC;IACpC,kCAAkC;IAClC,wCAAwC;IACxC,iDAAiD;IACjD,uCAAuC;IACvC,0CAA0C;IAC1C,4CAA4C;IAC5C,iBAAiB;IACjB,mBAAmB;CACX,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const enrollment_automation_deleted_event: z.ZodObject<{
|
|
3
|
+
created_at: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
enrollment_automation_id: z.ZodString;
|
|
6
|
+
occurred_at: z.ZodString;
|
|
7
|
+
event_type: z.ZodLiteral<"enrollment_automation.deleted">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
created_at: string;
|
|
10
|
+
workspace_id: string;
|
|
11
|
+
enrollment_automation_id: string;
|
|
12
|
+
occurred_at: string;
|
|
13
|
+
event_type: "enrollment_automation.deleted";
|
|
14
|
+
}, {
|
|
15
|
+
created_at: string;
|
|
16
|
+
workspace_id: string;
|
|
17
|
+
enrollment_automation_id: string;
|
|
18
|
+
occurred_at: string;
|
|
19
|
+
event_type: "enrollment_automation.deleted";
|
|
20
|
+
}>;
|
|
21
|
+
export type EnrollmentAutomationDeletedEvent = z.infer<typeof enrollment_automation_deleted_event>;
|
|
22
|
+
export declare const enrollment_automation_events: readonly [z.ZodObject<{
|
|
23
|
+
created_at: z.ZodString;
|
|
24
|
+
workspace_id: z.ZodString;
|
|
25
|
+
enrollment_automation_id: z.ZodString;
|
|
26
|
+
occurred_at: z.ZodString;
|
|
27
|
+
event_type: z.ZodLiteral<"enrollment_automation.deleted">;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
created_at: string;
|
|
30
|
+
workspace_id: string;
|
|
31
|
+
enrollment_automation_id: string;
|
|
32
|
+
occurred_at: string;
|
|
33
|
+
event_type: "enrollment_automation.deleted";
|
|
34
|
+
}, {
|
|
35
|
+
created_at: string;
|
|
36
|
+
workspace_id: string;
|
|
37
|
+
enrollment_automation_id: string;
|
|
38
|
+
occurred_at: string;
|
|
39
|
+
event_type: "enrollment_automation.deleted";
|
|
40
|
+
}>];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import { common_event } from './common.js';
|
|
3
|
+
const enrollment_automation_event = common_event.extend({
|
|
4
|
+
enrollment_automation_id: z.string().uuid().describe(`
|
|
5
|
+
---
|
|
6
|
+
title: Enrollment Automation ID
|
|
7
|
+
---
|
|
8
|
+
ID of the enrollment automation.
|
|
9
|
+
`),
|
|
10
|
+
});
|
|
11
|
+
export const enrollment_automation_deleted_event = enrollment_automation_event
|
|
12
|
+
.extend({
|
|
13
|
+
event_type: z.literal('enrollment_automation.deleted'),
|
|
14
|
+
})
|
|
15
|
+
.describe('An enrollment automation was deleted.');
|
|
16
|
+
export const enrollment_automation_events = [
|
|
17
|
+
enrollment_automation_deleted_event,
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=enrollment-automations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrollment-automations.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/enrollment-automations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,2BAA2B,GAAG,YAAY,CAAC,MAAM,CAAC;IACtD,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKpD,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B;KAC3E,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;CACvD,CAAC;KACD,QAAQ,CAAC,uCAAuC,CAAC,CAAA;AAMpD,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,mCAAmC;CAC3B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type * from './access-codes.js';
|
|
2
|
+
export type * from './acs/index.js';
|
|
3
|
+
export type * from './client-sessions.js';
|
|
4
|
+
export type * from './connected-accounts.js';
|
|
5
|
+
export type * from './devices.js';
|
|
6
|
+
export type * from './enrollment-automations.js';
|
|
7
|
+
export type * from './phones.js';
|
|
8
|
+
export * from './seam-event.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/index.ts"],"names":[],"mappings":"AAOA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const phone_deactivated_event: z.ZodObject<{
|
|
3
|
+
device_id: z.ZodString;
|
|
4
|
+
created_at: z.ZodString;
|
|
5
|
+
workspace_id: z.ZodString;
|
|
6
|
+
occurred_at: z.ZodString;
|
|
7
|
+
event_type: z.ZodLiteral<"phone.deactivated">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
device_id: string;
|
|
10
|
+
created_at: string;
|
|
11
|
+
workspace_id: string;
|
|
12
|
+
occurred_at: string;
|
|
13
|
+
event_type: "phone.deactivated";
|
|
14
|
+
}, {
|
|
15
|
+
device_id: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
workspace_id: string;
|
|
18
|
+
occurred_at: string;
|
|
19
|
+
event_type: "phone.deactivated";
|
|
20
|
+
}>;
|
|
21
|
+
export type PhoneDeactivatedEvent = z.infer<typeof phone_deactivated_event>;
|
|
22
|
+
export declare const phone_events: readonly [z.ZodObject<{
|
|
23
|
+
device_id: z.ZodString;
|
|
24
|
+
created_at: z.ZodString;
|
|
25
|
+
workspace_id: z.ZodString;
|
|
26
|
+
occurred_at: z.ZodString;
|
|
27
|
+
event_type: z.ZodLiteral<"phone.deactivated">;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
device_id: string;
|
|
30
|
+
created_at: string;
|
|
31
|
+
workspace_id: string;
|
|
32
|
+
occurred_at: string;
|
|
33
|
+
event_type: "phone.deactivated";
|
|
34
|
+
}, {
|
|
35
|
+
device_id: string;
|
|
36
|
+
created_at: string;
|
|
37
|
+
workspace_id: string;
|
|
38
|
+
occurred_at: string;
|
|
39
|
+
event_type: "phone.deactivated";
|
|
40
|
+
}>];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import { common_event } from './common.js';
|
|
3
|
+
const phone_event = common_event.extend({
|
|
4
|
+
device_id: z.string().uuid().describe(`
|
|
5
|
+
---
|
|
6
|
+
title: Device ID
|
|
7
|
+
---
|
|
8
|
+
ID of the device.
|
|
9
|
+
`),
|
|
10
|
+
});
|
|
11
|
+
export const phone_deactivated_event = phone_event
|
|
12
|
+
.extend({
|
|
13
|
+
event_type: z.literal('phone.deactivated'),
|
|
14
|
+
})
|
|
15
|
+
.describe('A phone device was deactivated.');
|
|
16
|
+
export const phone_events = [phone_deactivated_event];
|
|
17
|
+
//# sourceMappingURL=phones.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phones.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/phones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKrC,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW;KAC/C,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;CAC3C,CAAC;KACD,QAAQ,CAAC,iCAAiC,CAAC,CAAA;AAI9C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,uBAAuB,CAAU,CAAA"}
|