@seamapi/types 1.1035.0 → 1.1037.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/lib/seam/connect/models/access-codes/managed-access-code.d.ts +16 -74
- package/lib/seam/connect/models/access-codes/managed-access-code.js +5 -21
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +5 -26
- package/lib/seam/connect/models/events/access-codes.d.ts +8 -364
- package/lib/seam/connect/models/events/access-codes.js +4 -16
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +4 -181
- package/lib/seam/connect/openapi.js +20 -297
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -419
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +5 -22
- package/src/lib/seam/connect/models/events/access-codes.ts +6 -23
- package/src/lib/seam/connect/openapi.ts +20 -335
- package/src/lib/seam/connect/route-types.ts +22 -454
|
@@ -1255,7 +1255,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
1255
1255
|
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
1256
1256
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
1257
1257
|
} & {
|
|
1258
|
-
event_type: z.ZodLiteral<"access_code.
|
|
1258
|
+
event_type: z.ZodLiteral<"access_code.failed_to_update">;
|
|
1259
1259
|
} & {
|
|
1260
1260
|
connected_account_errors: z.ZodArray<z.ZodObject<{
|
|
1261
1261
|
created_at: z.ZodString;
|
|
@@ -1343,7 +1343,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
1343
1343
|
access_code_id: string;
|
|
1344
1344
|
event_id: string;
|
|
1345
1345
|
occurred_at: string;
|
|
1346
|
-
event_type: "access_code.
|
|
1346
|
+
event_type: "access_code.failed_to_update";
|
|
1347
1347
|
connected_account_errors: {
|
|
1348
1348
|
message: string;
|
|
1349
1349
|
created_at: string;
|
|
@@ -1385,184 +1385,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
1385
1385
|
access_code_id: string;
|
|
1386
1386
|
event_id: string;
|
|
1387
1387
|
occurred_at: string;
|
|
1388
|
-
event_type: "access_code.
|
|
1389
|
-
connected_account_errors: {
|
|
1390
|
-
message: string;
|
|
1391
|
-
created_at: string;
|
|
1392
|
-
error_code: string;
|
|
1393
|
-
}[];
|
|
1394
|
-
connected_account_warnings: {
|
|
1395
|
-
message: string;
|
|
1396
|
-
created_at: string;
|
|
1397
|
-
warning_code: string;
|
|
1398
|
-
}[];
|
|
1399
|
-
device_errors: {
|
|
1400
|
-
message: string;
|
|
1401
|
-
created_at: string;
|
|
1402
|
-
error_code: string;
|
|
1403
|
-
}[];
|
|
1404
|
-
device_warnings: {
|
|
1405
|
-
message: string;
|
|
1406
|
-
created_at: string;
|
|
1407
|
-
warning_code: string;
|
|
1408
|
-
}[];
|
|
1409
|
-
access_code_errors: {
|
|
1410
|
-
message: string;
|
|
1411
|
-
created_at: string;
|
|
1412
|
-
error_code: string;
|
|
1413
|
-
}[];
|
|
1414
|
-
access_code_warnings: {
|
|
1415
|
-
message: string;
|
|
1416
|
-
created_at: string;
|
|
1417
|
-
warning_code: string;
|
|
1418
|
-
}[];
|
|
1419
|
-
event_description?: string | undefined;
|
|
1420
|
-
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
1421
|
-
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
1422
|
-
}>, z.ZodObject<{
|
|
1423
|
-
event_id: z.ZodString;
|
|
1424
|
-
workspace_id: z.ZodString;
|
|
1425
|
-
created_at: z.ZodString;
|
|
1426
|
-
occurred_at: z.ZodString;
|
|
1427
|
-
event_description: z.ZodOptional<z.ZodString>;
|
|
1428
|
-
} & {
|
|
1429
|
-
access_code_id: z.ZodString;
|
|
1430
|
-
device_id: z.ZodString;
|
|
1431
|
-
connected_account_id: z.ZodString;
|
|
1432
|
-
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
1433
|
-
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
1434
|
-
} & {
|
|
1435
|
-
event_type: z.ZodLiteral<"access_code.failed_to_apply_mutations">;
|
|
1436
|
-
} & {
|
|
1437
|
-
connected_account_errors: z.ZodArray<z.ZodObject<{
|
|
1438
|
-
created_at: z.ZodString;
|
|
1439
|
-
message: z.ZodString;
|
|
1440
|
-
error_code: z.ZodString;
|
|
1441
|
-
}, "strip", z.ZodTypeAny, {
|
|
1442
|
-
message: string;
|
|
1443
|
-
created_at: string;
|
|
1444
|
-
error_code: string;
|
|
1445
|
-
}, {
|
|
1446
|
-
message: string;
|
|
1447
|
-
created_at: string;
|
|
1448
|
-
error_code: string;
|
|
1449
|
-
}>, "many">;
|
|
1450
|
-
connected_account_warnings: z.ZodArray<z.ZodObject<{
|
|
1451
|
-
created_at: z.ZodString;
|
|
1452
|
-
message: z.ZodString;
|
|
1453
|
-
warning_code: z.ZodString;
|
|
1454
|
-
}, "strip", z.ZodTypeAny, {
|
|
1455
|
-
message: string;
|
|
1456
|
-
created_at: string;
|
|
1457
|
-
warning_code: string;
|
|
1458
|
-
}, {
|
|
1459
|
-
message: string;
|
|
1460
|
-
created_at: string;
|
|
1461
|
-
warning_code: string;
|
|
1462
|
-
}>, "many">;
|
|
1463
|
-
device_errors: z.ZodArray<z.ZodObject<{
|
|
1464
|
-
created_at: z.ZodString;
|
|
1465
|
-
message: z.ZodString;
|
|
1466
|
-
error_code: z.ZodString;
|
|
1467
|
-
}, "strip", z.ZodTypeAny, {
|
|
1468
|
-
message: string;
|
|
1469
|
-
created_at: string;
|
|
1470
|
-
error_code: string;
|
|
1471
|
-
}, {
|
|
1472
|
-
message: string;
|
|
1473
|
-
created_at: string;
|
|
1474
|
-
error_code: string;
|
|
1475
|
-
}>, "many">;
|
|
1476
|
-
device_warnings: z.ZodArray<z.ZodObject<{
|
|
1477
|
-
created_at: z.ZodString;
|
|
1478
|
-
message: z.ZodString;
|
|
1479
|
-
warning_code: z.ZodString;
|
|
1480
|
-
}, "strip", z.ZodTypeAny, {
|
|
1481
|
-
message: string;
|
|
1482
|
-
created_at: string;
|
|
1483
|
-
warning_code: string;
|
|
1484
|
-
}, {
|
|
1485
|
-
message: string;
|
|
1486
|
-
created_at: string;
|
|
1487
|
-
warning_code: string;
|
|
1488
|
-
}>, "many">;
|
|
1489
|
-
access_code_errors: z.ZodArray<z.ZodObject<{
|
|
1490
|
-
created_at: z.ZodString;
|
|
1491
|
-
message: z.ZodString;
|
|
1492
|
-
error_code: z.ZodString;
|
|
1493
|
-
}, "strip", z.ZodTypeAny, {
|
|
1494
|
-
message: string;
|
|
1495
|
-
created_at: string;
|
|
1496
|
-
error_code: string;
|
|
1497
|
-
}, {
|
|
1498
|
-
message: string;
|
|
1499
|
-
created_at: string;
|
|
1500
|
-
error_code: string;
|
|
1501
|
-
}>, "many">;
|
|
1502
|
-
access_code_warnings: z.ZodArray<z.ZodObject<{
|
|
1503
|
-
created_at: z.ZodString;
|
|
1504
|
-
message: z.ZodString;
|
|
1505
|
-
warning_code: z.ZodString;
|
|
1506
|
-
}, "strip", z.ZodTypeAny, {
|
|
1507
|
-
message: string;
|
|
1508
|
-
created_at: string;
|
|
1509
|
-
warning_code: string;
|
|
1510
|
-
}, {
|
|
1511
|
-
message: string;
|
|
1512
|
-
created_at: string;
|
|
1513
|
-
warning_code: string;
|
|
1514
|
-
}>, "many">;
|
|
1515
|
-
}, "strip", z.ZodTypeAny, {
|
|
1516
|
-
device_id: string;
|
|
1517
|
-
workspace_id: string;
|
|
1518
|
-
created_at: string;
|
|
1519
|
-
connected_account_id: string;
|
|
1520
|
-
access_code_id: string;
|
|
1521
|
-
event_id: string;
|
|
1522
|
-
occurred_at: string;
|
|
1523
|
-
event_type: "access_code.failed_to_apply_mutations";
|
|
1524
|
-
connected_account_errors: {
|
|
1525
|
-
message: string;
|
|
1526
|
-
created_at: string;
|
|
1527
|
-
error_code: string;
|
|
1528
|
-
}[];
|
|
1529
|
-
connected_account_warnings: {
|
|
1530
|
-
message: string;
|
|
1531
|
-
created_at: string;
|
|
1532
|
-
warning_code: string;
|
|
1533
|
-
}[];
|
|
1534
|
-
device_errors: {
|
|
1535
|
-
message: string;
|
|
1536
|
-
created_at: string;
|
|
1537
|
-
error_code: string;
|
|
1538
|
-
}[];
|
|
1539
|
-
device_warnings: {
|
|
1540
|
-
message: string;
|
|
1541
|
-
created_at: string;
|
|
1542
|
-
warning_code: string;
|
|
1543
|
-
}[];
|
|
1544
|
-
access_code_errors: {
|
|
1545
|
-
message: string;
|
|
1546
|
-
created_at: string;
|
|
1547
|
-
error_code: string;
|
|
1548
|
-
}[];
|
|
1549
|
-
access_code_warnings: {
|
|
1550
|
-
message: string;
|
|
1551
|
-
created_at: string;
|
|
1552
|
-
warning_code: string;
|
|
1553
|
-
}[];
|
|
1554
|
-
event_description?: string | undefined;
|
|
1555
|
-
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
1556
|
-
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
1557
|
-
}, {
|
|
1558
|
-
device_id: string;
|
|
1559
|
-
workspace_id: string;
|
|
1560
|
-
created_at: string;
|
|
1561
|
-
connected_account_id: string;
|
|
1562
|
-
access_code_id: string;
|
|
1563
|
-
event_id: string;
|
|
1564
|
-
occurred_at: string;
|
|
1565
|
-
event_type: "access_code.failed_to_apply_mutations";
|
|
1388
|
+
event_type: "access_code.failed_to_update";
|
|
1566
1389
|
connected_account_errors: {
|
|
1567
1390
|
message: string;
|
|
1568
1391
|
created_at: string;
|
|
@@ -6544,5 +6367,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
6544
6367
|
space_key?: string | undefined;
|
|
6545
6368
|
}>]>;
|
|
6546
6369
|
export type SeamEvent = z.infer<typeof seam_event>;
|
|
6547
|
-
export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.name_changed" | "access_code.code_changed" | "access_code.time_frame_changed" | "access_code.mutations_requested" | "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.issued" | "access_code.delay_in_issuing" | "access_code.failed_to_issue" | "access_code.
|
|
6370
|
+
export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.name_changed" | "access_code.code_changed" | "access_code.time_frame_changed" | "access_code.mutations_requested" | "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.issued" | "access_code.delay_in_issuing" | "access_code.failed_to_issue" | "access_code.failed_to_update" | "access_code.failed_to_expire" | "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_grant.access_times_changed" | "access_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "access_method.delay_in_issuing" | "access_method.failed_to_issue" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "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" | "connected_account.reauthorization_requested" | "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" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted", ...("access_code.created" | "access_code.changed" | "access_code.name_changed" | "access_code.code_changed" | "access_code.time_frame_changed" | "access_code.mutations_requested" | "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.issued" | "access_code.delay_in_issuing" | "access_code.failed_to_issue" | "access_code.failed_to_update" | "access_code.failed_to_expire" | "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_grant.access_times_changed" | "access_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "access_method.delay_in_issuing" | "access_method.failed_to_issue" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "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" | "connected_account.reauthorization_requested" | "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" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted")[]]>;
|
|
6548
6371
|
export type SeamEventType = SeamEvent['event_type'];
|