@seamapi/http 1.59.0 → 1.61.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 +45 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1 -1
- package/dist/index.cjs +45 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.js +12 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js +15 -0
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +21 -0
- package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +25 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.d.cts
CHANGED
|
@@ -4077,7 +4077,7 @@ declare class SeamHttpEndpoints {
|
|
|
4077
4077
|
get ['/workspaces/customization_profiles/upload_images'](): (parameters?: WorkspacesCustomizationProfilesUploadImagesParameters, options?: WorkspacesCustomizationProfilesUploadImagesOptions) => WorkspacesCustomizationProfilesUploadImagesRequest;
|
|
4078
4078
|
}
|
|
4079
4079
|
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_methods/get' | '/access_methods/get_related' | '/access_methods/list' | '/acs/access_groups/get' | '/acs/access_groups/list' | '/acs/access_groups/list_accessible_entrances' | '/acs/access_groups/list_users' | '/acs/access_groups/unmanaged/get' | '/acs/access_groups/unmanaged/list' | '/acs/credential_pools/list' | '/acs/credentials/get' | '/acs/credentials/list' | '/acs/credentials/list_accessible_entrances' | '/acs/credentials/unmanaged/get' | '/acs/credentials/unmanaged/list' | '/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' | '/acs/users/unmanaged/get' | '/acs/users/unmanaged/list' | '/action_attempts/get' | '/action_attempts/list' | '/bridges/get' | '/bridges/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' | '/seam/console/v1/get_resource_locator' | '/seam/customer/v1/automation_runs/list' | '/seam/customer/v1/automations/get' | '/seam/customer/v1/events/list' | '/seam/customer/v1/portals/get' | '/seam/customer/v1/settings/get' | '/seam/partner/v1/building_blocks/spaces/auto_map' | '/spaces/get' | '/spaces/get_related' | '/spaces/list' | '/thermostats/get' | '/thermostats/list' | '/thermostats/schedules/get' | '/thermostats/schedules/list' | '/unstable_partner/building_blocks/generate_magic_link' | '/user_identities/get' | '/user_identities/list' | '/user_identities/list_accessible_devices' | '/user_identities/list_acs_systems' | '/user_identities/list_acs_users' | '/user_identities/enrollment_automations/get' | '/user_identities/enrollment_automations/list' | '/webhooks/get' | '/webhooks/list' | '/workspaces/find_resources' | '/workspaces/get' | '/workspaces/list' | '/workspaces/customization_profiles/get' | '/workspaces/customization_profiles/list';
|
|
4080
|
-
type SeamHttpEndpointPaginatedQueryPaths = '/access_codes/list' | '/access_codes/unmanaged/list' | '/acs/users/list' | '/connect_webviews/list' | '/connected_accounts/list' | '/devices/list' | '/seam/customer/v1/automation_runs/list';
|
|
4080
|
+
type SeamHttpEndpointPaginatedQueryPaths = '/access_codes/list' | '/access_codes/unmanaged/list' | '/acs/credentials/list' | '/acs/users/list' | '/connect_webviews/list' | '/connected_accounts/list' | '/devices/list' | '/seam/customer/v1/automation_runs/list';
|
|
4081
4081
|
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/update' | '/access_methods/delete' | '/access_methods/encode' | '/acs/access_groups/add_user' | '/acs/access_groups/remove_user' | '/acs/credential_provisioning_automations/launch' | '/acs/credentials/assign' | '/acs/credentials/create' | '/acs/credentials/create_offline_code' | '/acs/credentials/delete' | '/acs/credentials/unassign' | '/acs/credentials/update' | '/acs/encoders/encode_credential' | '/acs/encoders/scan_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/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' | '/customers/create_portal' | '/customers/push_data' | '/devices/delete' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/instant_keys/delete' | '/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' | '/seam/customer/v1/automations/delete' | '/seam/customer/v1/automations/update' | '/seam/customer/v1/settings/update' | '/spaces/add_acs_entrances' | '/spaces/add_devices' | '/spaces/create' | '/spaces/delete' | '/spaces/remove_acs_entrances' | '/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' | '/unstable_partner/building_blocks/connect_accounts' | '/unstable_partner/building_blocks/manage_devices' | '/unstable_partner/building_blocks/organize_spaces' | '/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/enrollment_automations/delete' | '/user_identities/enrollment_automations/launch' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update' | '/workspaces/customization_profiles/create' | '/workspaces/customization_profiles/update' | '/workspaces/customization_profiles/upload_images';
|
|
4082
4082
|
|
|
4083
4083
|
declare class SeamHttpEndpointsWithoutWorkspace {
|
package/dist/index.cjs
CHANGED
|
@@ -8092,6 +8092,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
|
|
|
8092
8092
|
constructor(apiKeyOrOptions = {}) {
|
|
8093
8093
|
this.ltsVersion = seamApiLtsVersion;
|
|
8094
8094
|
const options = parseOptions(apiKeyOrOptions);
|
|
8095
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8096
|
+
throw new Error(
|
|
8097
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8098
|
+
);
|
|
8099
|
+
}
|
|
8095
8100
|
this.client = "client" in options ? options.client : createClient(options);
|
|
8096
8101
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
8097
8102
|
}
|
|
@@ -8172,6 +8177,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
|
|
|
8172
8177
|
await clientSessions.get();
|
|
8173
8178
|
}
|
|
8174
8179
|
create(parameters, options = {}) {
|
|
8180
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8181
|
+
throw new Error(
|
|
8182
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8183
|
+
);
|
|
8184
|
+
}
|
|
8175
8185
|
return new SeamHttpRequest(this, {
|
|
8176
8186
|
pathname: "/workspaces/customization_profiles/create",
|
|
8177
8187
|
method: "POST",
|
|
@@ -8181,6 +8191,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
|
|
|
8181
8191
|
});
|
|
8182
8192
|
}
|
|
8183
8193
|
get(parameters, options = {}) {
|
|
8194
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8195
|
+
throw new Error(
|
|
8196
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8197
|
+
);
|
|
8198
|
+
}
|
|
8184
8199
|
return new SeamHttpRequest(this, {
|
|
8185
8200
|
pathname: "/workspaces/customization_profiles/get",
|
|
8186
8201
|
method: "POST",
|
|
@@ -8190,6 +8205,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
|
|
|
8190
8205
|
});
|
|
8191
8206
|
}
|
|
8192
8207
|
list(parameters, options = {}) {
|
|
8208
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8209
|
+
throw new Error(
|
|
8210
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8211
|
+
);
|
|
8212
|
+
}
|
|
8193
8213
|
return new SeamHttpRequest(this, {
|
|
8194
8214
|
pathname: "/workspaces/customization_profiles/list",
|
|
8195
8215
|
method: "GET",
|
|
@@ -8199,6 +8219,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
|
|
|
8199
8219
|
});
|
|
8200
8220
|
}
|
|
8201
8221
|
update(parameters, options = {}) {
|
|
8222
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8223
|
+
throw new Error(
|
|
8224
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8225
|
+
);
|
|
8226
|
+
}
|
|
8202
8227
|
return new SeamHttpRequest(this, {
|
|
8203
8228
|
pathname: "/workspaces/customization_profiles/update",
|
|
8204
8229
|
method: "PATCH",
|
|
@@ -10296,6 +10321,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10296
10321
|
}
|
|
10297
10322
|
get ["/workspaces/customization_profiles/create"]() {
|
|
10298
10323
|
const { client, defaults } = this;
|
|
10324
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10325
|
+
throw new Error(
|
|
10326
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10327
|
+
);
|
|
10328
|
+
}
|
|
10299
10329
|
return function workspacesCustomizationProfilesCreate(...args) {
|
|
10300
10330
|
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10301
10331
|
client,
|
|
@@ -10306,6 +10336,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10306
10336
|
}
|
|
10307
10337
|
get ["/workspaces/customization_profiles/get"]() {
|
|
10308
10338
|
const { client, defaults } = this;
|
|
10339
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10340
|
+
throw new Error(
|
|
10341
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10342
|
+
);
|
|
10343
|
+
}
|
|
10309
10344
|
return function workspacesCustomizationProfilesGet(...args) {
|
|
10310
10345
|
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10311
10346
|
client,
|
|
@@ -10316,6 +10351,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10316
10351
|
}
|
|
10317
10352
|
get ["/workspaces/customization_profiles/list"]() {
|
|
10318
10353
|
const { client, defaults } = this;
|
|
10354
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10355
|
+
throw new Error(
|
|
10356
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10357
|
+
);
|
|
10358
|
+
}
|
|
10319
10359
|
return function workspacesCustomizationProfilesList(...args) {
|
|
10320
10360
|
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10321
10361
|
client,
|
|
@@ -10326,6 +10366,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10326
10366
|
}
|
|
10327
10367
|
get ["/workspaces/customization_profiles/update"]() {
|
|
10328
10368
|
const { client, defaults } = this;
|
|
10369
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10370
|
+
throw new Error(
|
|
10371
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10372
|
+
);
|
|
10373
|
+
}
|
|
10329
10374
|
return function workspacesCustomizationProfilesUpdate(...args) {
|
|
10330
10375
|
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10331
10376
|
client,
|