@seamapi/types 1.406.9 → 1.407.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 +53 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +49 -2
- package/lib/seam/connect/models/events/access-methods.d.ts +47 -0
- package/lib/seam/connect/models/events/access-methods.js +9 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +24 -1
- package/lib/seam/connect/openapi.js +43 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +26 -2
- package/package.json +2 -2
- package/src/lib/seam/connect/models/events/access-methods.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +43 -0
- package/src/lib/seam/connect/route-types.ts +28 -0
|
@@ -23073,6 +23073,18 @@ export interface Routes {
|
|
|
23073
23073
|
/** ID of the affected access method. */
|
|
23074
23074
|
access_method_id: string;
|
|
23075
23075
|
event_type: 'access_method.card_encoding_required';
|
|
23076
|
+
} | {
|
|
23077
|
+
/** ID of the event. */
|
|
23078
|
+
event_id: string;
|
|
23079
|
+
/** ID of the workspace associated with the event. */
|
|
23080
|
+
workspace_id: string;
|
|
23081
|
+
/** Date and time at which the event was created. */
|
|
23082
|
+
created_at: string;
|
|
23083
|
+
/** Date and time at which the event occurred. */
|
|
23084
|
+
occurred_at: string;
|
|
23085
|
+
/** ID of the affected access method. */
|
|
23086
|
+
access_method_id: string;
|
|
23087
|
+
event_type: 'access_method.deleted';
|
|
23076
23088
|
} | {
|
|
23077
23089
|
/** ID of the event. */
|
|
23078
23090
|
event_id: string;
|
|
@@ -24088,9 +24100,9 @@ export interface Routes {
|
|
|
24088
24100
|
/** IDs of the access codes for which you want to list events. */
|
|
24089
24101
|
access_code_ids?: string[] | undefined;
|
|
24090
24102
|
/** Type of the events that you want to list. */
|
|
24091
|
-
event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
|
|
24103
|
+
event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
|
|
24092
24104
|
/** Types of the events that you want to list. */
|
|
24093
|
-
event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
|
|
24105
|
+
event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
|
|
24094
24106
|
/** ID of the connected account for which you want to list events. */
|
|
24095
24107
|
connected_account_id?: string | undefined;
|
|
24096
24108
|
/** IDs of the connected accounts for which you want to list events. */
|
|
@@ -24483,6 +24495,18 @@ export interface Routes {
|
|
|
24483
24495
|
/** ID of the affected access method. */
|
|
24484
24496
|
access_method_id: string;
|
|
24485
24497
|
event_type: 'access_method.card_encoding_required';
|
|
24498
|
+
} | {
|
|
24499
|
+
/** ID of the event. */
|
|
24500
|
+
event_id: string;
|
|
24501
|
+
/** ID of the workspace associated with the event. */
|
|
24502
|
+
workspace_id: string;
|
|
24503
|
+
/** Date and time at which the event was created. */
|
|
24504
|
+
created_at: string;
|
|
24505
|
+
/** Date and time at which the event occurred. */
|
|
24506
|
+
occurred_at: string;
|
|
24507
|
+
/** ID of the affected access method. */
|
|
24508
|
+
access_method_id: string;
|
|
24509
|
+
event_type: 'access_method.deleted';
|
|
24486
24510
|
} | {
|
|
24487
24511
|
/** ID of the event. */
|
|
24488
24512
|
event_id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.407.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zod": "^3.24.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@seamapi/blueprint": "^0.
|
|
95
|
+
"@seamapi/blueprint": "^0.44.0",
|
|
96
96
|
"@types/node": "^20.8.10",
|
|
97
97
|
"concurrently": "^8.2.0",
|
|
98
98
|
"del-cli": "^5.0.0",
|
|
@@ -43,6 +43,15 @@ export const access_method_revoked_event = access_method_event.extend({
|
|
|
43
43
|
An access method was revoked.
|
|
44
44
|
`)
|
|
45
45
|
|
|
46
|
+
export const access_method_deleted_event = access_method_event.extend({
|
|
47
|
+
event_type: z.literal('access_method.deleted'),
|
|
48
|
+
}).describe(`
|
|
49
|
+
---
|
|
50
|
+
route_path: /unstable_access_methods
|
|
51
|
+
---
|
|
52
|
+
An access method was deleted.
|
|
53
|
+
`)
|
|
54
|
+
|
|
46
55
|
export type AccessMethodRevokedEvent = z.infer<
|
|
47
56
|
typeof access_method_revoked_event
|
|
48
57
|
>
|
|
@@ -51,4 +60,5 @@ export const access_method_events = [
|
|
|
51
60
|
access_method_issued_event,
|
|
52
61
|
access_method_revoked_event,
|
|
53
62
|
access_method_card_encoding_required_event,
|
|
63
|
+
access_method_deleted_event,
|
|
54
64
|
] as const
|
|
@@ -12399,6 +12399,47 @@ export default {
|
|
|
12399
12399
|
type: 'object',
|
|
12400
12400
|
'x-route-path': '/unstable_access_methods',
|
|
12401
12401
|
},
|
|
12402
|
+
{
|
|
12403
|
+
description: 'An access method was deleted.',
|
|
12404
|
+
properties: {
|
|
12405
|
+
access_method_id: {
|
|
12406
|
+
description: 'ID of the affected access method.',
|
|
12407
|
+
format: 'uuid',
|
|
12408
|
+
type: 'string',
|
|
12409
|
+
},
|
|
12410
|
+
created_at: {
|
|
12411
|
+
description: 'Date and time at which the event was created.',
|
|
12412
|
+
format: 'date-time',
|
|
12413
|
+
type: 'string',
|
|
12414
|
+
},
|
|
12415
|
+
event_id: {
|
|
12416
|
+
description: 'ID of the event.',
|
|
12417
|
+
format: 'uuid',
|
|
12418
|
+
type: 'string',
|
|
12419
|
+
},
|
|
12420
|
+
event_type: { enum: ['access_method.deleted'], type: 'string' },
|
|
12421
|
+
occurred_at: {
|
|
12422
|
+
description: 'Date and time at which the event occurred.',
|
|
12423
|
+
format: 'date-time',
|
|
12424
|
+
type: 'string',
|
|
12425
|
+
},
|
|
12426
|
+
workspace_id: {
|
|
12427
|
+
description: 'ID of the workspace associated with the event.',
|
|
12428
|
+
format: 'uuid',
|
|
12429
|
+
type: 'string',
|
|
12430
|
+
},
|
|
12431
|
+
},
|
|
12432
|
+
required: [
|
|
12433
|
+
'event_id',
|
|
12434
|
+
'workspace_id',
|
|
12435
|
+
'created_at',
|
|
12436
|
+
'occurred_at',
|
|
12437
|
+
'access_method_id',
|
|
12438
|
+
'event_type',
|
|
12439
|
+
],
|
|
12440
|
+
type: 'object',
|
|
12441
|
+
'x-route-path': '/unstable_access_methods',
|
|
12442
|
+
},
|
|
12402
12443
|
{
|
|
12403
12444
|
description:
|
|
12404
12445
|
'An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.',
|
|
@@ -29835,6 +29876,7 @@ export default {
|
|
|
29835
29876
|
'access_method.issued',
|
|
29836
29877
|
'access_method.revoked',
|
|
29837
29878
|
'access_method.card_encoding_required',
|
|
29879
|
+
'access_method.deleted',
|
|
29838
29880
|
'acs_system.connected',
|
|
29839
29881
|
'acs_system.added',
|
|
29840
29882
|
'acs_system.disconnected',
|
|
@@ -29930,6 +29972,7 @@ export default {
|
|
|
29930
29972
|
'access_method.issued',
|
|
29931
29973
|
'access_method.revoked',
|
|
29932
29974
|
'access_method.card_encoding_required',
|
|
29975
|
+
'access_method.deleted',
|
|
29933
29976
|
'acs_system.connected',
|
|
29934
29977
|
'acs_system.added',
|
|
29935
29978
|
'acs_system.disconnected',
|
|
@@ -27188,6 +27188,19 @@ export interface Routes {
|
|
|
27188
27188
|
access_method_id: string
|
|
27189
27189
|
event_type: 'access_method.card_encoding_required'
|
|
27190
27190
|
}
|
|
27191
|
+
| {
|
|
27192
|
+
/** ID of the event. */
|
|
27193
|
+
event_id: string
|
|
27194
|
+
/** ID of the workspace associated with the event. */
|
|
27195
|
+
workspace_id: string
|
|
27196
|
+
/** Date and time at which the event was created. */
|
|
27197
|
+
created_at: string
|
|
27198
|
+
/** Date and time at which the event occurred. */
|
|
27199
|
+
occurred_at: string
|
|
27200
|
+
/** ID of the affected access method. */
|
|
27201
|
+
access_method_id: string
|
|
27202
|
+
event_type: 'access_method.deleted'
|
|
27203
|
+
}
|
|
27191
27204
|
| {
|
|
27192
27205
|
/** ID of the event. */
|
|
27193
27206
|
event_id: string
|
|
@@ -28314,6 +28327,7 @@ export interface Routes {
|
|
|
28314
28327
|
| 'access_method.issued'
|
|
28315
28328
|
| 'access_method.revoked'
|
|
28316
28329
|
| 'access_method.card_encoding_required'
|
|
28330
|
+
| 'access_method.deleted'
|
|
28317
28331
|
| 'acs_system.connected'
|
|
28318
28332
|
| 'acs_system.added'
|
|
28319
28333
|
| 'acs_system.disconnected'
|
|
@@ -28407,6 +28421,7 @@ export interface Routes {
|
|
|
28407
28421
|
| 'access_method.issued'
|
|
28408
28422
|
| 'access_method.revoked'
|
|
28409
28423
|
| 'access_method.card_encoding_required'
|
|
28424
|
+
| 'access_method.deleted'
|
|
28410
28425
|
| 'acs_system.connected'
|
|
28411
28426
|
| 'acs_system.added'
|
|
28412
28427
|
| 'acs_system.disconnected'
|
|
@@ -28890,6 +28905,19 @@ export interface Routes {
|
|
|
28890
28905
|
access_method_id: string
|
|
28891
28906
|
event_type: 'access_method.card_encoding_required'
|
|
28892
28907
|
}
|
|
28908
|
+
| {
|
|
28909
|
+
/** ID of the event. */
|
|
28910
|
+
event_id: string
|
|
28911
|
+
/** ID of the workspace associated with the event. */
|
|
28912
|
+
workspace_id: string
|
|
28913
|
+
/** Date and time at which the event was created. */
|
|
28914
|
+
created_at: string
|
|
28915
|
+
/** Date and time at which the event occurred. */
|
|
28916
|
+
occurred_at: string
|
|
28917
|
+
/** ID of the affected access method. */
|
|
28918
|
+
access_method_id: string
|
|
28919
|
+
event_type: 'access_method.deleted'
|
|
28920
|
+
}
|
|
28893
28921
|
| {
|
|
28894
28922
|
/** ID of the event. */
|
|
28895
28923
|
event_id: string
|