@seamapi/http 2.6.0 → 2.7.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/resources/access-code.d.ts +19 -0
- package/lib/resources/access-grant.d.ts +4 -0
- package/lib/resources/access-method.d.ts +4 -0
- package/lib/resources/action-attempt.d.ts +4 -0
- package/lib/resources/event.d.ts +3 -22
- package/lib/resources/unmanaged-access-code.d.ts +19 -0
- package/lib/resources/unmanaged-access-method.d.ts +4 -0
- package/lib/resources/unmanaged-user-identity.d.ts +8 -0
- package/lib/resources/user-identity.d.ts +8 -0
- package/lib/routes/acs/credentials/credentials.d.ts +6 -6
- package/lib/routes/acs/encoders/encoders.d.ts +4 -4
- package/lib/routes/seam-http-endpoints.d.ts +12 -2
- package/lib/routes/seam-http-endpoints.js +16 -0
- package/lib/routes/seam-http-endpoints.js.map +1 -1
- package/lib/routes/user-identities/user-identities.d.ts +35 -0
- package/lib/routes/user-identities/user-identities.js +21 -0
- package/lib/routes/user-identities/user-identities.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/resources/access-code.ts +22 -0
- package/src/lib/resources/access-grant.ts +5 -0
- package/src/lib/resources/access-method.ts +5 -0
- package/src/lib/resources/action-attempt.ts +5 -0
- package/src/lib/resources/event.ts +3 -134
- package/src/lib/resources/unmanaged-access-code.ts +22 -0
- package/src/lib/resources/unmanaged-access-method.ts +5 -0
- package/src/lib/resources/unmanaged-user-identity.ts +10 -0
- package/src/lib/resources/user-identity.ts +10 -0
- package/src/lib/routes/acs/credentials/credentials.ts +6 -6
- package/src/lib/routes/acs/encoders/encoders.ts +4 -4
- package/src/lib/routes/seam-http-endpoints.ts +26 -0
- package/src/lib/routes/user-identities/user-identities.ts +53 -0
- package/src/lib/version.ts +1 -1
|
@@ -239,6 +239,25 @@ export type AccessCode = {
|
|
|
239
239
|
*/
|
|
240
240
|
message: string;
|
|
241
241
|
} /**
|
|
242
|
+
* The code cannot be set on the device because it violates the device's code constraints (for example, its length, digits, or a too-simple value). The code will not be retried until you change it. See the device's `code_constraints` and `supported_code_lengths`.
|
|
243
|
+
*/ | {
|
|
244
|
+
/**
|
|
245
|
+
* Date and time at which Seam created the error.
|
|
246
|
+
*/
|
|
247
|
+
created_at?: string | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
250
|
+
*/
|
|
251
|
+
error_code: 'code_constraints_violated';
|
|
252
|
+
/**
|
|
253
|
+
* Indicates that this is an access code error.
|
|
254
|
+
*/
|
|
255
|
+
is_access_code_error: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
258
|
+
*/
|
|
259
|
+
message: string;
|
|
260
|
+
} /**
|
|
242
261
|
* Indicates that the account is disconnected.
|
|
243
262
|
*/ | {
|
|
244
263
|
/**
|
|
@@ -30,6 +30,10 @@ export type AccessGrant = {
|
|
|
30
30
|
* Display name of the Access Grant.
|
|
31
31
|
*/
|
|
32
32
|
display_name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Human-readable sentence answering whether the user can currently get in, for example `Awaiting encoding` on an access method or `Upcoming` here. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `starts_at`, `ends_at`, `errors`, and the access methods' own fields.
|
|
35
|
+
*/
|
|
36
|
+
display_status: string;
|
|
33
37
|
/**
|
|
34
38
|
* Date and time at which the Access Grant ends.
|
|
35
39
|
*/
|
|
@@ -26,6 +26,10 @@ export type AccessMethod = {
|
|
|
26
26
|
* Display name of the access method.
|
|
27
27
|
*/
|
|
28
28
|
display_name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.
|
|
31
|
+
*/
|
|
32
|
+
display_status: string;
|
|
29
33
|
/**
|
|
30
34
|
* Errors associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
|
|
31
35
|
*/
|
|
@@ -898,6 +898,10 @@ export type ActionAttempt = {
|
|
|
898
898
|
* Display name of the access method.
|
|
899
899
|
*/
|
|
900
900
|
display_name: string;
|
|
901
|
+
/**
|
|
902
|
+
* Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.
|
|
903
|
+
*/
|
|
904
|
+
display_status: string;
|
|
901
905
|
/**
|
|
902
906
|
* Errors associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
|
|
903
907
|
*/
|
package/lib/resources/event.d.ts
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was created.
|
|
3
|
+
*/
|
|
1
4
|
export type SeamEvent = {
|
|
2
|
-
/**
|
|
3
|
-
* Date and time at which the event was created.
|
|
4
|
-
*/
|
|
5
|
-
created_at?: string | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
|
|
8
|
-
*/
|
|
9
|
-
event_description?: string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* ID of the event.
|
|
12
|
-
*/
|
|
13
|
-
event_id?: string | undefined;
|
|
14
|
-
event_type?: '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.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.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'access_method.delay_in_issuing' | 'access_method.failed_to_issue' | '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' | 'connected_account.reauthorization_requested' | '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' | '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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted' | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Date and time at which the event occurred.
|
|
17
|
-
*/
|
|
18
|
-
occurred_at?: string | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* ID of the workspace associated with the event.
|
|
21
|
-
*/
|
|
22
|
-
workspace_id?: string | undefined;
|
|
23
|
-
} | {
|
|
24
5
|
/**
|
|
25
6
|
* ID of the affected access code.
|
|
26
7
|
*/
|
|
@@ -245,6 +245,25 @@ export type UnmanagedAccessCode = {
|
|
|
245
245
|
*/
|
|
246
246
|
message: string;
|
|
247
247
|
} /**
|
|
248
|
+
* The code cannot be set on the device because it violates the device's code constraints (for example, its length, digits, or a too-simple value). The code will not be retried until you change it. See the device's `code_constraints` and `supported_code_lengths`.
|
|
249
|
+
*/ | {
|
|
250
|
+
/**
|
|
251
|
+
* Date and time at which Seam created the error.
|
|
252
|
+
*/
|
|
253
|
+
created_at?: string | undefined;
|
|
254
|
+
/**
|
|
255
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
256
|
+
*/
|
|
257
|
+
error_code: 'code_constraints_violated';
|
|
258
|
+
/**
|
|
259
|
+
* Indicates that this is an access code error.
|
|
260
|
+
*/
|
|
261
|
+
is_access_code_error: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
264
|
+
*/
|
|
265
|
+
message: string;
|
|
266
|
+
} /**
|
|
248
267
|
* Indicates that the account is disconnected.
|
|
249
268
|
*/ | {
|
|
250
269
|
/**
|
|
@@ -18,6 +18,10 @@ export type UnmanagedAccessMethod = {
|
|
|
18
18
|
* Display name of the access method.
|
|
19
19
|
*/
|
|
20
20
|
display_name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.
|
|
23
|
+
*/
|
|
24
|
+
display_status: string;
|
|
21
25
|
/**
|
|
22
26
|
* Errors associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
|
|
23
27
|
*/
|
|
@@ -51,6 +51,14 @@ export type UnmanagedUserIdentity = {
|
|
|
51
51
|
* Full name of the user associated with the user identity.
|
|
52
52
|
*/
|
|
53
53
|
full_name: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
56
|
+
*/
|
|
57
|
+
merged_user_identity_ids: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
60
|
+
*/
|
|
61
|
+
merged_user_identity_keys: Array<string>;
|
|
54
62
|
/**
|
|
55
63
|
* Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
56
64
|
*/
|
|
@@ -51,6 +51,14 @@ export type UserIdentity = {
|
|
|
51
51
|
* Full name of the user associated with the user identity.
|
|
52
52
|
*/
|
|
53
53
|
full_name: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
56
|
+
*/
|
|
57
|
+
merged_user_identity_ids: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
60
|
+
*/
|
|
61
|
+
merged_user_identity_keys: Array<string>;
|
|
54
62
|
/**
|
|
55
63
|
* Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
56
64
|
*/
|
|
@@ -178,18 +178,14 @@ export type AcsCredentialsGetRequest = SeamHttpRequest<AcsCredentialsGetResponse
|
|
|
178
178
|
export interface AcsCredentialsGetOptions {
|
|
179
179
|
}
|
|
180
180
|
export type AcsCredentialsListParameters = {
|
|
181
|
-
/**
|
|
182
|
-
* ID of the access system user for which you want to retrieve all credentials.
|
|
183
|
-
*/
|
|
184
|
-
acs_user_id?: string | undefined;
|
|
185
181
|
/**
|
|
186
182
|
* ID of the access system for which you want to retrieve all credentials.
|
|
187
183
|
*/
|
|
188
184
|
acs_system_id?: string | undefined;
|
|
189
185
|
/**
|
|
190
|
-
* ID of the user
|
|
186
|
+
* ID of the access system user for which you want to retrieve all credentials.
|
|
191
187
|
*/
|
|
192
|
-
|
|
188
|
+
acs_user_id?: string | undefined;
|
|
193
189
|
/**
|
|
194
190
|
* Date and time, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format, before which events to return were created.
|
|
195
191
|
*/
|
|
@@ -210,6 +206,10 @@ export type AcsCredentialsListParameters = {
|
|
|
210
206
|
* String for which to search. Filters returned credentials to include all records that satisfy a partial match using `display_name`, `code`, `card_number`, `acs_user_id` or `acs_credential_id`.
|
|
211
207
|
*/
|
|
212
208
|
search?: string | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* ID of the user identity for which you want to retrieve all credentials.
|
|
211
|
+
*/
|
|
212
|
+
user_identity_id?: string | undefined;
|
|
213
213
|
};
|
|
214
214
|
/**
|
|
215
215
|
* @deprecated Use AcsCredentialsListRequest instead.
|
|
@@ -77,6 +77,10 @@ export type AcsEncodersGetRequest = SeamHttpRequest<AcsEncodersGetResponse, 'acs
|
|
|
77
77
|
export interface AcsEncodersGetOptions {
|
|
78
78
|
}
|
|
79
79
|
export type AcsEncodersListParameters = {
|
|
80
|
+
/**
|
|
81
|
+
* IDs of the encoders that you want to retrieve.
|
|
82
|
+
*/
|
|
83
|
+
acs_encoder_ids?: Array<string> | undefined;
|
|
80
84
|
/**
|
|
81
85
|
* ID of the access system for which you want to retrieve all encoders.
|
|
82
86
|
*/
|
|
@@ -85,10 +89,6 @@ export type AcsEncodersListParameters = {
|
|
|
85
89
|
* IDs of the access systems for which you want to retrieve all encoders.
|
|
86
90
|
*/
|
|
87
91
|
acs_system_ids?: Array<string> | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* IDs of the encoders that you want to retrieve.
|
|
90
|
-
*/
|
|
91
|
-
acs_encoder_ids?: Array<string> | undefined;
|
|
92
92
|
/**
|
|
93
93
|
* Number of encoders to return.
|
|
94
94
|
*/
|
|
@@ -39,7 +39,7 @@ import { type ThermostatsDailyProgramsCreateOptions, type ThermostatsDailyProgra
|
|
|
39
39
|
import { type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetParameters, type ThermostatsActivateClimatePresetRequest, type ThermostatsCoolOptions, type ThermostatsCoolParameters, type ThermostatsCoolRequest, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetParameters, type ThermostatsCreateClimatePresetRequest, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetParameters, type ThermostatsDeleteClimatePresetRequest, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolParameters, type ThermostatsHeatCoolRequest, type ThermostatsHeatOptions, type ThermostatsHeatParameters, type ThermostatsHeatRequest, type ThermostatsListOptions, type ThermostatsListParameters, type ThermostatsListRequest, type ThermostatsOffOptions, type ThermostatsOffParameters, type ThermostatsOffRequest, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetParameters, type ThermostatsSetFallbackClimatePresetRequest, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeParameters, type ThermostatsSetFanModeRequest, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeParameters, type ThermostatsSetHvacModeRequest, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdParameters, type ThermostatsSetTemperatureThresholdRequest, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetParameters, type ThermostatsUpdateClimatePresetRequest, type ThermostatsUpdateWeeklyProgramOptions, type ThermostatsUpdateWeeklyProgramParameters, type ThermostatsUpdateWeeklyProgramRequest } from './thermostats/index.js';
|
|
40
40
|
import { type ThermostatsSchedulesCreateOptions, type ThermostatsSchedulesCreateParameters, type ThermostatsSchedulesCreateRequest, type ThermostatsSchedulesDeleteOptions, type ThermostatsSchedulesDeleteParameters, type ThermostatsSchedulesDeleteRequest, type ThermostatsSchedulesGetOptions, type ThermostatsSchedulesGetParameters, type ThermostatsSchedulesGetRequest, type ThermostatsSchedulesListOptions, type ThermostatsSchedulesListParameters, type ThermostatsSchedulesListRequest, type ThermostatsSchedulesUpdateOptions, type ThermostatsSchedulesUpdateParameters, type ThermostatsSchedulesUpdateRequest } from './thermostats/schedules/index.js';
|
|
41
41
|
import { type ThermostatsSimulateHvacModeAdjustedOptions, type ThermostatsSimulateHvacModeAdjustedParameters, type ThermostatsSimulateHvacModeAdjustedRequest, type ThermostatsSimulateTemperatureReachedOptions, type ThermostatsSimulateTemperatureReachedParameters, type ThermostatsSimulateTemperatureReachedRequest } from './thermostats/simulate/index.js';
|
|
42
|
-
import { type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserParameters, type UserIdentitiesAddAcsUserRequest, type UserIdentitiesCreateOptions, type UserIdentitiesCreateParameters, type UserIdentitiesCreateRequest, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteParameters, type UserIdentitiesDeleteRequest, type UserIdentitiesGenerateInstantKeyOptions, type UserIdentitiesGenerateInstantKeyParameters, type UserIdentitiesGenerateInstantKeyRequest, type UserIdentitiesGetOptions, type UserIdentitiesGetParameters, type UserIdentitiesGetRequest, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceParameters, type UserIdentitiesGrantAccessToDeviceRequest, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParameters, type UserIdentitiesListAccessibleDevicesRequest, type UserIdentitiesListAccessibleEntrancesOptions, type UserIdentitiesListAccessibleEntrancesParameters, type UserIdentitiesListAccessibleEntrancesRequest, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParameters, type UserIdentitiesListAcsSystemsRequest, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParameters, type UserIdentitiesListAcsUsersRequest, type UserIdentitiesListOptions, type UserIdentitiesListParameters, type UserIdentitiesListRequest, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserParameters, type UserIdentitiesRemoveAcsUserRequest, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceParameters, type UserIdentitiesRevokeAccessToDeviceRequest, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateParameters, type UserIdentitiesUpdateRequest } from './user-identities/index.js';
|
|
42
|
+
import { type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserParameters, type UserIdentitiesAddAcsUserRequest, type UserIdentitiesCreateOptions, type UserIdentitiesCreateParameters, type UserIdentitiesCreateRequest, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteParameters, type UserIdentitiesDeleteRequest, type UserIdentitiesGenerateInstantKeyOptions, type UserIdentitiesGenerateInstantKeyParameters, type UserIdentitiesGenerateInstantKeyRequest, type UserIdentitiesGetOptions, type UserIdentitiesGetParameters, type UserIdentitiesGetRequest, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceParameters, type UserIdentitiesGrantAccessToDeviceRequest, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParameters, type UserIdentitiesListAccessibleDevicesRequest, type UserIdentitiesListAccessibleEntrancesOptions, type UserIdentitiesListAccessibleEntrancesParameters, type UserIdentitiesListAccessibleEntrancesRequest, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParameters, type UserIdentitiesListAcsSystemsRequest, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParameters, type UserIdentitiesListAcsUsersRequest, type UserIdentitiesListOptions, type UserIdentitiesListParameters, type UserIdentitiesListRequest, type UserIdentitiesMergeOptions, type UserIdentitiesMergeParameters, type UserIdentitiesMergeRequest, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserParameters, type UserIdentitiesRemoveAcsUserRequest, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceParameters, type UserIdentitiesRevokeAccessToDeviceRequest, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateParameters, type UserIdentitiesUpdateRequest } from './user-identities/index.js';
|
|
43
43
|
import { type UserIdentitiesUnmanagedGetOptions, type UserIdentitiesUnmanagedGetParameters, type UserIdentitiesUnmanagedGetRequest, type UserIdentitiesUnmanagedListOptions, type UserIdentitiesUnmanagedListParameters, type UserIdentitiesUnmanagedListRequest, type UserIdentitiesUnmanagedUpdateOptions, type UserIdentitiesUnmanagedUpdateParameters, type UserIdentitiesUnmanagedUpdateRequest } from './user-identities/unmanaged/index.js';
|
|
44
44
|
import { type WebhooksCreateOptions, type WebhooksCreateParameters, type WebhooksCreateRequest, type WebhooksDeleteOptions, type WebhooksDeleteParameters, type WebhooksDeleteRequest, type WebhooksGetOptions, type WebhooksGetParameters, type WebhooksGetRequest, type WebhooksListOptions, type WebhooksListParameters, type WebhooksListRequest, type WebhooksUpdateOptions, type WebhooksUpdateParameters, type WebhooksUpdateRequest } from './webhooks/index.js';
|
|
45
45
|
import { type WorkspacesCreateOptions, type WorkspacesCreateParameters, type WorkspacesCreateRequest, type WorkspacesGetOptions, type WorkspacesGetParameters, type WorkspacesGetRequest, type WorkspacesListOptions, type WorkspacesListParameters, type WorkspacesListRequest, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxParameters, type WorkspacesResetSandboxRequest, type WorkspacesUpdateOptions, type WorkspacesUpdateParameters, type WorkspacesUpdateRequest } from './workspaces/index.js';
|
|
@@ -886,6 +886,16 @@ export declare class SeamHttpEndpoints {
|
|
|
886
886
|
* Returns a list of all [access system users](https://docs.seam.co/low-level-apis/access-systems/user-management) assigned to a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
887
887
|
*/
|
|
888
888
|
get '/user_identities/list_acs_users'(): (parameters: UserIdentitiesListAcsUsersParameters, options?: UserIdentitiesListAcsUsersOptions) => UserIdentitiesListAcsUsersRequest;
|
|
889
|
+
/**
|
|
890
|
+
* Merges one or more [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) into a primary user identity, for when the same person ended up with more than one user identity.
|
|
891
|
+
*
|
|
892
|
+
* The primary user identity takes on any email address or phone number it was missing from the user identities merged into it, and the merged user identities are then deleted. Their IDs and keys keep working: looking one up returns the primary user identity, and they are listed on it as `merged_user_identity_ids` and `merged_user_identity_keys`.
|
|
893
|
+
*
|
|
894
|
+
* Access grants, access system users, client sessions and other resources belonging to the merged user identities are moved to the primary user identity.
|
|
895
|
+
*
|
|
896
|
+
* Identify the user identities either by ID or by key, but not both in the same request. Repeating a merge that has already been applied makes no further changes.
|
|
897
|
+
*/
|
|
898
|
+
get '/user_identities/merge'(): (parameters: UserIdentitiesMergeParameters, options?: UserIdentitiesMergeOptions) => UserIdentitiesMergeRequest;
|
|
889
899
|
/**
|
|
890
900
|
* Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
891
901
|
*/
|
|
@@ -955,4 +965,4 @@ export declare class SeamHttpEndpoints {
|
|
|
955
965
|
}
|
|
956
966
|
export type SeamHttpEndpointQueryPaths = '/access_codes/generate_code' | '/access_codes/get' | '/access_codes/list' | '/access_codes/unmanaged/get' | '/access_codes/unmanaged/list' | '/access_grants/get' | '/access_grants/get_related' | '/access_grants/list' | '/access_grants/unmanaged/get' | '/access_grants/unmanaged/list' | '/access_methods/get' | '/access_methods/get_related' | '/access_methods/list' | '/access_methods/unmanaged/get' | '/access_methods/unmanaged/list' | '/acs/access_groups/get' | '/acs/access_groups/list' | '/acs/access_groups/list_accessible_entrances' | '/acs/access_groups/list_users' | '/acs/credentials/get' | '/acs/credentials/list' | '/acs/credentials/list_accessible_entrances' | '/acs/encoders/get' | '/acs/encoders/list' | '/acs/entrances/get' | '/acs/entrances/list' | '/acs/entrances/list_credentials_with_access' | '/acs/systems/get' | '/acs/systems/list' | '/acs/systems/list_compatible_credential_manager_acs_systems' | '/acs/users/get' | '/acs/users/list' | '/acs/users/list_accessible_entrances' | '/action_attempts/get' | '/action_attempts/list' | '/client_sessions/get' | '/client_sessions/list' | '/connect_webviews/get' | '/connect_webviews/list' | '/connected_accounts/get' | '/connected_accounts/list' | '/devices/get' | '/devices/list' | '/devices/list_device_providers' | '/devices/unmanaged/get' | '/devices/unmanaged/list' | '/events/get' | '/events/list' | '/instant_keys/get' | '/instant_keys/list' | '/locks/get' | '/locks/list' | '/noise_sensors/list' | '/noise_sensors/noise_thresholds/get' | '/noise_sensors/noise_thresholds/list' | '/phones/get' | '/phones/list' | '/spaces/get' | '/spaces/get_related' | '/spaces/list' | '/thermostats/list' | '/thermostats/schedules/get' | '/thermostats/schedules/list' | '/user_identities/get' | '/user_identities/list' | '/user_identities/list_accessible_devices' | '/user_identities/list_accessible_entrances' | '/user_identities/list_acs_systems' | '/user_identities/list_acs_users' | '/user_identities/unmanaged/get' | '/user_identities/unmanaged/list' | '/webhooks/get' | '/webhooks/list' | '/workspaces/get' | '/workspaces/list';
|
|
957
967
|
export type SeamHttpEndpointPaginatedQueryPaths = '/access_codes/list' | '/access_codes/unmanaged/list' | '/access_grants/list' | '/access_grants/unmanaged/list' | '/access_methods/list' | '/acs/credentials/list' | '/acs/encoders/list' | '/acs/entrances/list' | '/acs/users/list' | '/action_attempts/list' | '/connect_webviews/list' | '/connected_accounts/list' | '/devices/list' | '/devices/unmanaged/list' | '/spaces/list' | '/user_identities/list' | '/user_identities/unmanaged/list';
|
|
958
|
-
export type SeamHttpEndpointMutationPaths = '/access_codes/create' | '/access_codes/create_multiple' | '/access_codes/delete' | '/access_codes/pull_backup_access_code' | '/access_codes/report_device_constraints' | '/access_codes/update' | '/access_codes/update_multiple' | '/access_codes/simulate/create_unmanaged_access_code' | '/access_codes/unmanaged/convert_to_managed' | '/access_codes/unmanaged/delete' | '/access_codes/unmanaged/update' | '/access_grants/create' | '/access_grants/delete' | '/access_grants/request_access_methods' | '/access_grants/update' | '/access_grants/unmanaged/update' | '/access_methods/assign_card' | '/access_methods/delete' | '/access_methods/encode' | '/access_methods/unlock_door' | '/acs/access_groups/add_user' | '/acs/access_groups/delete' | '/acs/access_groups/remove_user' | '/acs/credentials/assign' | '/acs/credentials/create' | '/acs/credentials/delete' | '/acs/credentials/unassign' | '/acs/credentials/update' | '/acs/encoders/encode_credential' | '/acs/encoders/scan_credential' | '/acs/encoders/scan_to_assign_credential' | '/acs/encoders/simulate/next_credential_encode_will_fail' | '/acs/encoders/simulate/next_credential_encode_will_succeed' | '/acs/encoders/simulate/next_credential_scan_will_fail' | '/acs/encoders/simulate/next_credential_scan_will_succeed' | '/acs/entrances/grant_access' | '/acs/entrances/unlock' | '/acs/systems/report_devices' | '/acs/users/add_to_access_group' | '/acs/users/create' | '/acs/users/delete' | '/acs/users/remove_from_access_group' | '/acs/users/revoke_access_to_all_entrances' | '/acs/users/suspend' | '/acs/users/unsuspend' | '/acs/users/update' | '/client_sessions/create' | '/client_sessions/delete' | '/client_sessions/get_or_create' | '/client_sessions/grant_access' | '/client_sessions/revoke' | '/connect_webviews/create' | '/connect_webviews/delete' | '/connected_accounts/delete' | '/connected_accounts/sync' | '/connected_accounts/update' | '/connected_accounts/simulate/disconnect' | '/customers/create_portal' | '/customers/delete_data' | '/customers/push_data' | '/devices/report_provider_metadata' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/paid_subscription' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/instant_keys/delete' | '/locks/configure_auto_lock' | '/locks/lock_door' | '/locks/unlock_door' | '/locks/simulate/keypad_code_entry' | '/locks/simulate/manual_lock_via_keypad' | '/noise_sensors/noise_thresholds/create' | '/noise_sensors/noise_thresholds/delete' | '/noise_sensors/noise_thresholds/update' | '/noise_sensors/simulate/trigger_noise_threshold' | '/phones/deactivate' | '/phones/simulate/create_sandbox_phone' | '/spaces/add_acs_entrances' | '/spaces/add_connected_account' | '/spaces/add_devices' | '/spaces/create' | '/spaces/delete' | '/spaces/remove_acs_entrances' | '/spaces/remove_connected_account' | '/spaces/remove_devices' | '/spaces/update' | '/thermostats/activate_climate_preset' | '/thermostats/cool' | '/thermostats/create_climate_preset' | '/thermostats/delete_climate_preset' | '/thermostats/heat' | '/thermostats/heat_cool' | '/thermostats/off' | '/thermostats/set_fallback_climate_preset' | '/thermostats/set_fan_mode' | '/thermostats/set_hvac_mode' | '/thermostats/set_temperature_threshold' | '/thermostats/update_climate_preset' | '/thermostats/update_weekly_program' | '/thermostats/daily_programs/create' | '/thermostats/daily_programs/delete' | '/thermostats/daily_programs/update' | '/thermostats/schedules/create' | '/thermostats/schedules/delete' | '/thermostats/schedules/update' | '/thermostats/simulate/hvac_mode_adjusted' | '/thermostats/simulate/temperature_reached' | '/user_identities/add_acs_user' | '/user_identities/create' | '/user_identities/delete' | '/user_identities/generate_instant_key' | '/user_identities/grant_access_to_device' | '/user_identities/remove_acs_user' | '/user_identities/revoke_access_to_device' | '/user_identities/update' | '/user_identities/unmanaged/update' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update';
|
|
968
|
+
export type SeamHttpEndpointMutationPaths = '/access_codes/create' | '/access_codes/create_multiple' | '/access_codes/delete' | '/access_codes/pull_backup_access_code' | '/access_codes/report_device_constraints' | '/access_codes/update' | '/access_codes/update_multiple' | '/access_codes/simulate/create_unmanaged_access_code' | '/access_codes/unmanaged/convert_to_managed' | '/access_codes/unmanaged/delete' | '/access_codes/unmanaged/update' | '/access_grants/create' | '/access_grants/delete' | '/access_grants/request_access_methods' | '/access_grants/update' | '/access_grants/unmanaged/update' | '/access_methods/assign_card' | '/access_methods/delete' | '/access_methods/encode' | '/access_methods/unlock_door' | '/acs/access_groups/add_user' | '/acs/access_groups/delete' | '/acs/access_groups/remove_user' | '/acs/credentials/assign' | '/acs/credentials/create' | '/acs/credentials/delete' | '/acs/credentials/unassign' | '/acs/credentials/update' | '/acs/encoders/encode_credential' | '/acs/encoders/scan_credential' | '/acs/encoders/scan_to_assign_credential' | '/acs/encoders/simulate/next_credential_encode_will_fail' | '/acs/encoders/simulate/next_credential_encode_will_succeed' | '/acs/encoders/simulate/next_credential_scan_will_fail' | '/acs/encoders/simulate/next_credential_scan_will_succeed' | '/acs/entrances/grant_access' | '/acs/entrances/unlock' | '/acs/systems/report_devices' | '/acs/users/add_to_access_group' | '/acs/users/create' | '/acs/users/delete' | '/acs/users/remove_from_access_group' | '/acs/users/revoke_access_to_all_entrances' | '/acs/users/suspend' | '/acs/users/unsuspend' | '/acs/users/update' | '/client_sessions/create' | '/client_sessions/delete' | '/client_sessions/get_or_create' | '/client_sessions/grant_access' | '/client_sessions/revoke' | '/connect_webviews/create' | '/connect_webviews/delete' | '/connected_accounts/delete' | '/connected_accounts/sync' | '/connected_accounts/update' | '/connected_accounts/simulate/disconnect' | '/customers/create_portal' | '/customers/delete_data' | '/customers/push_data' | '/devices/report_provider_metadata' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/paid_subscription' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/instant_keys/delete' | '/locks/configure_auto_lock' | '/locks/lock_door' | '/locks/unlock_door' | '/locks/simulate/keypad_code_entry' | '/locks/simulate/manual_lock_via_keypad' | '/noise_sensors/noise_thresholds/create' | '/noise_sensors/noise_thresholds/delete' | '/noise_sensors/noise_thresholds/update' | '/noise_sensors/simulate/trigger_noise_threshold' | '/phones/deactivate' | '/phones/simulate/create_sandbox_phone' | '/spaces/add_acs_entrances' | '/spaces/add_connected_account' | '/spaces/add_devices' | '/spaces/create' | '/spaces/delete' | '/spaces/remove_acs_entrances' | '/spaces/remove_connected_account' | '/spaces/remove_devices' | '/spaces/update' | '/thermostats/activate_climate_preset' | '/thermostats/cool' | '/thermostats/create_climate_preset' | '/thermostats/delete_climate_preset' | '/thermostats/heat' | '/thermostats/heat_cool' | '/thermostats/off' | '/thermostats/set_fallback_climate_preset' | '/thermostats/set_fan_mode' | '/thermostats/set_hvac_mode' | '/thermostats/set_temperature_threshold' | '/thermostats/update_climate_preset' | '/thermostats/update_weekly_program' | '/thermostats/daily_programs/create' | '/thermostats/daily_programs/delete' | '/thermostats/daily_programs/update' | '/thermostats/schedules/create' | '/thermostats/schedules/delete' | '/thermostats/schedules/update' | '/thermostats/simulate/hvac_mode_adjusted' | '/thermostats/simulate/temperature_reached' | '/user_identities/add_acs_user' | '/user_identities/create' | '/user_identities/delete' | '/user_identities/generate_instant_key' | '/user_identities/grant_access_to_device' | '/user_identities/merge' | '/user_identities/remove_acs_user' | '/user_identities/revoke_access_to_device' | '/user_identities/update' | '/user_identities/unmanaged/update' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update';
|
|
@@ -2062,6 +2062,22 @@ export class SeamHttpEndpoints {
|
|
|
2062
2062
|
return seam.listAcsUsers(...args);
|
|
2063
2063
|
};
|
|
2064
2064
|
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Merges one or more [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) into a primary user identity, for when the same person ended up with more than one user identity.
|
|
2067
|
+
*
|
|
2068
|
+
* The primary user identity takes on any email address or phone number it was missing from the user identities merged into it, and the merged user identities are then deleted. Their IDs and keys keep working: looking one up returns the primary user identity, and they are listed on it as `merged_user_identity_ids` and `merged_user_identity_keys`.
|
|
2069
|
+
*
|
|
2070
|
+
* Access grants, access system users, client sessions and other resources belonging to the merged user identities are moved to the primary user identity.
|
|
2071
|
+
*
|
|
2072
|
+
* Identify the user identities either by ID or by key, but not both in the same request. Repeating a merge that has already been applied makes no further changes.
|
|
2073
|
+
*/
|
|
2074
|
+
get '/user_identities/merge'() {
|
|
2075
|
+
const { client, defaults } = this;
|
|
2076
|
+
return function userIdentitiesMerge(...args) {
|
|
2077
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2078
|
+
return seam.merge(...args);
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2065
2081
|
/**
|
|
2066
2082
|
* Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2067
2083
|
*/
|