@seamapi/types 1.407.0 → 1.409.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 +2194 -526
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4416 -1760
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +9 -3
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.js +2 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.js +1 -5
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/pagination.d.ts +1 -0
- package/lib/seam/connect/models/spaces/index.d.ts +1 -0
- package/lib/seam/connect/models/spaces/index.js +2 -0
- package/lib/seam/connect/models/spaces/index.js.map +1 -0
- package/lib/seam/connect/models/spaces/space.d.ts +21 -0
- package/lib/seam/connect/models/spaces/space.js +20 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +5805 -3750
- package/lib/seam/connect/openapi.js +6538 -4891
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +476 -13
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/model-types.ts +6 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +9 -3
- package/src/lib/seam/connect/models/access-grants/access-method.ts +2 -1
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +1 -5
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/pagination.ts +2 -0
- package/src/lib/seam/connect/models/spaces/index.ts +1 -0
- package/src/lib/seam/connect/models/spaces/space.ts +24 -0
- package/src/lib/seam/connect/openapi.ts +7562 -5851
- package/src/lib/seam/connect/route-types.ts +481 -13
- package/src/lib/seam/connect/schemas.ts +2 -0
|
@@ -8867,6 +8867,271 @@ export interface Routes {
|
|
|
8867
8867
|
formData: {};
|
|
8868
8868
|
jsonResponse: {};
|
|
8869
8869
|
};
|
|
8870
|
+
'/access_grants/create': {
|
|
8871
|
+
route: '/access_grants/create';
|
|
8872
|
+
method: 'POST';
|
|
8873
|
+
queryParams: {};
|
|
8874
|
+
jsonBody: {};
|
|
8875
|
+
commonParams: ({
|
|
8876
|
+
/** ID of user identity for whom access is being granted. */
|
|
8877
|
+
user_identity_id: string;
|
|
8878
|
+
} | {
|
|
8879
|
+
/** When used, creates a new user identity with the given details, and grants them access. */
|
|
8880
|
+
user_identity: {
|
|
8881
|
+
/** Unique email address for the user identity. */
|
|
8882
|
+
email_address?: (string | null) | undefined;
|
|
8883
|
+
/** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
|
|
8884
|
+
phone_number?: (string | null) | undefined;
|
|
8885
|
+
full_name?: (string | null) | undefined;
|
|
8886
|
+
};
|
|
8887
|
+
}) & {
|
|
8888
|
+
/**
|
|
8889
|
+
* @deprecated Use `space_ids`. */
|
|
8890
|
+
location_ids?: string[] | undefined;
|
|
8891
|
+
/** Set of IDs of existing spaces to which access is being granted. */
|
|
8892
|
+
space_ids?: string[] | undefined;
|
|
8893
|
+
/** When used, creates a new location with the given entrances and devices, and gives the user access to this location. */
|
|
8894
|
+
location?: {
|
|
8895
|
+
/** Name of the location. */
|
|
8896
|
+
name?: string | undefined;
|
|
8897
|
+
/**
|
|
8898
|
+
* @deprecated Use `acs_entrance_ids` at the top level. */
|
|
8899
|
+
acs_entrance_ids?: string[];
|
|
8900
|
+
/**
|
|
8901
|
+
* @deprecated Use `device_ids` at the top level. */
|
|
8902
|
+
device_ids?: string[];
|
|
8903
|
+
} | undefined;
|
|
8904
|
+
/** Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to which access is being granted. */
|
|
8905
|
+
acs_entrance_ids?: string[];
|
|
8906
|
+
/** Set of IDs of the [devices](https://docs.seam.co/latest/api/devices/list) to which access is being granted. */
|
|
8907
|
+
device_ids?: string[];
|
|
8908
|
+
requested_access_methods: Array<{
|
|
8909
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
8910
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
8911
|
+
}>;
|
|
8912
|
+
/** Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
8913
|
+
starts_at?: string | undefined;
|
|
8914
|
+
/** Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
|
|
8915
|
+
ends_at?: string | undefined;
|
|
8916
|
+
};
|
|
8917
|
+
formData: {};
|
|
8918
|
+
jsonResponse: {
|
|
8919
|
+
/** */
|
|
8920
|
+
access_grant: {
|
|
8921
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
8922
|
+
workspace_id: string;
|
|
8923
|
+
/** ID of the access grant. */
|
|
8924
|
+
access_grant_id: string;
|
|
8925
|
+
/** ID of user identity to which access is being granted. */
|
|
8926
|
+
user_identity_id: string;
|
|
8927
|
+
/**
|
|
8928
|
+
* @deprecated Use `space_ids`. */
|
|
8929
|
+
location_ids: string[];
|
|
8930
|
+
/** IDs of the spaces to which access is being given. */
|
|
8931
|
+
space_ids: string[];
|
|
8932
|
+
/** Access methods that the user requested for this access grant. */
|
|
8933
|
+
requested_access_methods: Array<{
|
|
8934
|
+
/** Display name of the access method. */
|
|
8935
|
+
display_name: string;
|
|
8936
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
8937
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
8938
|
+
/** Date and time at which the requested access method was added to this access grant. */
|
|
8939
|
+
created_at: string;
|
|
8940
|
+
/** IDs of the access methods that were created for this requested access method. */
|
|
8941
|
+
created_access_method_ids: string[];
|
|
8942
|
+
}>;
|
|
8943
|
+
/** IDs of the access methods that were created for this access grant. */
|
|
8944
|
+
access_method_ids: string[];
|
|
8945
|
+
/** Display name of the access grant. */
|
|
8946
|
+
display_name: string;
|
|
8947
|
+
/** Date and time at which the access grant was created. */
|
|
8948
|
+
created_at: string;
|
|
8949
|
+
};
|
|
8950
|
+
};
|
|
8951
|
+
};
|
|
8952
|
+
'/access_grants/delete': {
|
|
8953
|
+
route: '/access_grants/delete';
|
|
8954
|
+
method: 'GET' | 'POST';
|
|
8955
|
+
queryParams: {};
|
|
8956
|
+
jsonBody: {};
|
|
8957
|
+
commonParams: {
|
|
8958
|
+
/** ID of access grant to delete. */
|
|
8959
|
+
access_grant_id: string;
|
|
8960
|
+
};
|
|
8961
|
+
formData: {};
|
|
8962
|
+
jsonResponse: {};
|
|
8963
|
+
};
|
|
8964
|
+
'/access_grants/get': {
|
|
8965
|
+
route: '/access_grants/get';
|
|
8966
|
+
method: 'GET' | 'POST';
|
|
8967
|
+
queryParams: {};
|
|
8968
|
+
jsonBody: {};
|
|
8969
|
+
commonParams: {
|
|
8970
|
+
/** ID of access grant to get. */
|
|
8971
|
+
access_grant_id: string;
|
|
8972
|
+
};
|
|
8973
|
+
formData: {};
|
|
8974
|
+
jsonResponse: {
|
|
8975
|
+
/** */
|
|
8976
|
+
access_grant: {
|
|
8977
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
8978
|
+
workspace_id: string;
|
|
8979
|
+
/** ID of the access grant. */
|
|
8980
|
+
access_grant_id: string;
|
|
8981
|
+
/** ID of user identity to which access is being granted. */
|
|
8982
|
+
user_identity_id: string;
|
|
8983
|
+
/**
|
|
8984
|
+
* @deprecated Use `space_ids`. */
|
|
8985
|
+
location_ids: string[];
|
|
8986
|
+
/** IDs of the spaces to which access is being given. */
|
|
8987
|
+
space_ids: string[];
|
|
8988
|
+
/** Access methods that the user requested for this access grant. */
|
|
8989
|
+
requested_access_methods: Array<{
|
|
8990
|
+
/** Display name of the access method. */
|
|
8991
|
+
display_name: string;
|
|
8992
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
8993
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
8994
|
+
/** Date and time at which the requested access method was added to this access grant. */
|
|
8995
|
+
created_at: string;
|
|
8996
|
+
/** IDs of the access methods that were created for this requested access method. */
|
|
8997
|
+
created_access_method_ids: string[];
|
|
8998
|
+
}>;
|
|
8999
|
+
/** IDs of the access methods that were created for this access grant. */
|
|
9000
|
+
access_method_ids: string[];
|
|
9001
|
+
/** Display name of the access grant. */
|
|
9002
|
+
display_name: string;
|
|
9003
|
+
/** Date and time at which the access grant was created. */
|
|
9004
|
+
created_at: string;
|
|
9005
|
+
};
|
|
9006
|
+
};
|
|
9007
|
+
};
|
|
9008
|
+
'/access_grants/list': {
|
|
9009
|
+
route: '/access_grants/list';
|
|
9010
|
+
method: 'GET' | 'POST';
|
|
9011
|
+
queryParams: {};
|
|
9012
|
+
jsonBody: {};
|
|
9013
|
+
commonParams: {
|
|
9014
|
+
/** ID of user identity to filter list of access grants by. */
|
|
9015
|
+
user_identity_id?: string | undefined;
|
|
9016
|
+
/** ID of system to filter list of access grants by. */
|
|
9017
|
+
acs_system_id?: string | undefined;
|
|
9018
|
+
/** ID of entrance to filter list of access grants by. */
|
|
9019
|
+
acs_entrance_id?: string | undefined;
|
|
9020
|
+
/**
|
|
9021
|
+
* @deprecated Use `space_id`. */
|
|
9022
|
+
location_id?: string | undefined;
|
|
9023
|
+
/** ID of space to filter list of access grants by. */
|
|
9024
|
+
space_id?: string | undefined;
|
|
9025
|
+
};
|
|
9026
|
+
formData: {};
|
|
9027
|
+
jsonResponse: {
|
|
9028
|
+
access_grants: Array<{
|
|
9029
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
9030
|
+
workspace_id: string;
|
|
9031
|
+
/** ID of the access grant. */
|
|
9032
|
+
access_grant_id: string;
|
|
9033
|
+
/** ID of user identity to which access is being granted. */
|
|
9034
|
+
user_identity_id: string;
|
|
9035
|
+
/**
|
|
9036
|
+
* @deprecated Use `space_ids`. */
|
|
9037
|
+
location_ids: string[];
|
|
9038
|
+
/** IDs of the spaces to which access is being given. */
|
|
9039
|
+
space_ids: string[];
|
|
9040
|
+
/** Access methods that the user requested for this access grant. */
|
|
9041
|
+
requested_access_methods: Array<{
|
|
9042
|
+
/** Display name of the access method. */
|
|
9043
|
+
display_name: string;
|
|
9044
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
9045
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
9046
|
+
/** Date and time at which the requested access method was added to this access grant. */
|
|
9047
|
+
created_at: string;
|
|
9048
|
+
/** IDs of the access methods that were created for this requested access method. */
|
|
9049
|
+
created_access_method_ids: string[];
|
|
9050
|
+
}>;
|
|
9051
|
+
/** IDs of the access methods that were created for this access grant. */
|
|
9052
|
+
access_method_ids: string[];
|
|
9053
|
+
/** Display name of the access grant. */
|
|
9054
|
+
display_name: string;
|
|
9055
|
+
/** Date and time at which the access grant was created. */
|
|
9056
|
+
created_at: string;
|
|
9057
|
+
}>;
|
|
9058
|
+
};
|
|
9059
|
+
};
|
|
9060
|
+
'/access_methods/delete': {
|
|
9061
|
+
route: '/access_methods/delete';
|
|
9062
|
+
method: 'GET' | 'POST';
|
|
9063
|
+
queryParams: {};
|
|
9064
|
+
jsonBody: {};
|
|
9065
|
+
commonParams: {
|
|
9066
|
+
/** ID of access method to get. */
|
|
9067
|
+
access_method_id: string;
|
|
9068
|
+
};
|
|
9069
|
+
formData: {};
|
|
9070
|
+
jsonResponse: {};
|
|
9071
|
+
};
|
|
9072
|
+
'/access_methods/get': {
|
|
9073
|
+
route: '/access_methods/get';
|
|
9074
|
+
method: 'GET' | 'POST';
|
|
9075
|
+
queryParams: {};
|
|
9076
|
+
jsonBody: {};
|
|
9077
|
+
commonParams: {
|
|
9078
|
+
/** ID of access method to get. */
|
|
9079
|
+
access_method_id: string;
|
|
9080
|
+
};
|
|
9081
|
+
formData: {};
|
|
9082
|
+
jsonResponse: {
|
|
9083
|
+
/** */
|
|
9084
|
+
access_method: {
|
|
9085
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
9086
|
+
workspace_id: string;
|
|
9087
|
+
/** ID of the access method. */
|
|
9088
|
+
access_method_id: string;
|
|
9089
|
+
/** Display name of the access method. */
|
|
9090
|
+
display_name: string;
|
|
9091
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
9092
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
9093
|
+
/** Date and time at which the access method was created. */
|
|
9094
|
+
created_at: string;
|
|
9095
|
+
/** Date and time at which the access method was issued. */
|
|
9096
|
+
issued_at?: string | undefined;
|
|
9097
|
+
/** URL of instant key for mobile key access methods. */
|
|
9098
|
+
instant_key_url?: string | undefined;
|
|
9099
|
+
/** Whether card encoding is required for plastic card access methods. */
|
|
9100
|
+
is_card_encoding_required?: boolean | undefined;
|
|
9101
|
+
};
|
|
9102
|
+
};
|
|
9103
|
+
};
|
|
9104
|
+
'/access_methods/list': {
|
|
9105
|
+
route: '/access_methods/list';
|
|
9106
|
+
method: 'GET' | 'POST';
|
|
9107
|
+
queryParams: {};
|
|
9108
|
+
jsonBody: {};
|
|
9109
|
+
commonParams: {
|
|
9110
|
+
/** ID of access grant to list access methods for. */
|
|
9111
|
+
access_grant_id: string;
|
|
9112
|
+
};
|
|
9113
|
+
formData: {};
|
|
9114
|
+
jsonResponse: {
|
|
9115
|
+
access_methods: Array<{
|
|
9116
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
9117
|
+
workspace_id: string;
|
|
9118
|
+
/** ID of the access method. */
|
|
9119
|
+
access_method_id: string;
|
|
9120
|
+
/** Display name of the access method. */
|
|
9121
|
+
display_name: string;
|
|
9122
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
9123
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
9124
|
+
/** Date and time at which the access method was created. */
|
|
9125
|
+
created_at: string;
|
|
9126
|
+
/** Date and time at which the access method was issued. */
|
|
9127
|
+
issued_at?: string | undefined;
|
|
9128
|
+
/** URL of instant key for mobile key access methods. */
|
|
9129
|
+
instant_key_url?: string | undefined;
|
|
9130
|
+
/** Whether card encoding is required for plastic card access methods. */
|
|
9131
|
+
is_card_encoding_required?: boolean | undefined;
|
|
9132
|
+
}>;
|
|
9133
|
+
};
|
|
9134
|
+
};
|
|
8870
9135
|
'/acs/access_groups/add_user': {
|
|
8871
9136
|
route: '/acs/access_groups/add_user';
|
|
8872
9137
|
method: 'PUT' | 'POST';
|
|
@@ -14408,8 +14673,11 @@ export interface Routes {
|
|
|
14408
14673
|
acs_system_id?: string | undefined;
|
|
14409
14674
|
/** ID of the credential for which you want to retrieve all entrances. */
|
|
14410
14675
|
acs_credential_id?: string | undefined;
|
|
14411
|
-
/**
|
|
14676
|
+
/**
|
|
14677
|
+
* @deprecated Use `space_id`. */
|
|
14412
14678
|
location_id?: (string | null) | undefined;
|
|
14679
|
+
/** ID of the space for which you want to list entrances. */
|
|
14680
|
+
space_id?: string | undefined;
|
|
14413
14681
|
};
|
|
14414
14682
|
formData: {};
|
|
14415
14683
|
jsonResponse: {
|
|
@@ -20705,8 +20973,11 @@ export interface Routes {
|
|
|
20705
20973
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
20706
20974
|
/** */
|
|
20707
20975
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
20708
|
-
/**
|
|
20976
|
+
/**
|
|
20977
|
+
* @deprecated Use `space_id`. */
|
|
20709
20978
|
unstable_location_id?: (string | null) | undefined;
|
|
20979
|
+
/** ID of the space for which you want to list devices. */
|
|
20980
|
+
space_id?: string | undefined;
|
|
20710
20981
|
};
|
|
20711
20982
|
formData: {};
|
|
20712
20983
|
jsonResponse: {
|
|
@@ -22337,8 +22608,11 @@ export interface Routes {
|
|
|
22337
22608
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
22338
22609
|
/** */
|
|
22339
22610
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
22340
|
-
/**
|
|
22611
|
+
/**
|
|
22612
|
+
* @deprecated Use `space_id`. */
|
|
22341
22613
|
unstable_location_id?: (string | null) | undefined;
|
|
22614
|
+
/** ID of the space for which you want to list devices. */
|
|
22615
|
+
space_id?: string | undefined;
|
|
22342
22616
|
};
|
|
22343
22617
|
formData: {};
|
|
22344
22618
|
jsonResponse: {
|
|
@@ -27954,8 +28228,11 @@ export interface Routes {
|
|
|
27954
28228
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
27955
28229
|
/** */
|
|
27956
28230
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
27957
|
-
/**
|
|
28231
|
+
/**
|
|
28232
|
+
* @deprecated Use `space_id`. */
|
|
27958
28233
|
unstable_location_id?: (string | null) | undefined;
|
|
28234
|
+
/** ID of the space for which you want to list devices. */
|
|
28235
|
+
space_id?: string | undefined;
|
|
27959
28236
|
};
|
|
27960
28237
|
formData: {};
|
|
27961
28238
|
jsonResponse: {
|
|
@@ -34907,8 +35184,11 @@ export interface Routes {
|
|
|
34907
35184
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
34908
35185
|
/** */
|
|
34909
35186
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
34910
|
-
/**
|
|
35187
|
+
/**
|
|
35188
|
+
* @deprecated Use `space_id`. */
|
|
34911
35189
|
unstable_location_id?: (string | null) | undefined;
|
|
35190
|
+
/** ID of the space for which you want to list devices. */
|
|
35191
|
+
space_id?: string | undefined;
|
|
34912
35192
|
};
|
|
34913
35193
|
formData: {};
|
|
34914
35194
|
jsonResponse: {
|
|
@@ -41676,6 +41956,165 @@ export interface Routes {
|
|
|
41676
41956
|
}>;
|
|
41677
41957
|
};
|
|
41678
41958
|
};
|
|
41959
|
+
'/spaces/add_acs_entrances': {
|
|
41960
|
+
route: '/spaces/add_acs_entrances';
|
|
41961
|
+
method: 'POST' | 'PUT';
|
|
41962
|
+
queryParams: {};
|
|
41963
|
+
jsonBody: {
|
|
41964
|
+
space_id: string;
|
|
41965
|
+
acs_entrance_ids: string[];
|
|
41966
|
+
};
|
|
41967
|
+
commonParams: {};
|
|
41968
|
+
formData: {};
|
|
41969
|
+
jsonResponse: {};
|
|
41970
|
+
};
|
|
41971
|
+
'/spaces/add_devices': {
|
|
41972
|
+
route: '/spaces/add_devices';
|
|
41973
|
+
method: 'POST' | 'PUT';
|
|
41974
|
+
queryParams: {};
|
|
41975
|
+
jsonBody: {
|
|
41976
|
+
space_id: string;
|
|
41977
|
+
device_ids: string[];
|
|
41978
|
+
};
|
|
41979
|
+
commonParams: {};
|
|
41980
|
+
formData: {};
|
|
41981
|
+
jsonResponse: {};
|
|
41982
|
+
};
|
|
41983
|
+
'/spaces/create': {
|
|
41984
|
+
route: '/spaces/create';
|
|
41985
|
+
method: 'POST';
|
|
41986
|
+
queryParams: {};
|
|
41987
|
+
jsonBody: {
|
|
41988
|
+
name: string;
|
|
41989
|
+
device_ids?: string[] | undefined;
|
|
41990
|
+
acs_entrance_ids?: string[] | undefined;
|
|
41991
|
+
};
|
|
41992
|
+
commonParams: {};
|
|
41993
|
+
formData: {};
|
|
41994
|
+
jsonResponse: {
|
|
41995
|
+
/** */
|
|
41996
|
+
space: {
|
|
41997
|
+
/** Unique identifier for the space. */
|
|
41998
|
+
space_id: string;
|
|
41999
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
42000
|
+
workspace_id: string;
|
|
42001
|
+
/** Name of the space. */
|
|
42002
|
+
name: string;
|
|
42003
|
+
/** Display name of the space. */
|
|
42004
|
+
display_name: string;
|
|
42005
|
+
/** Date and time at which the space object was created. */
|
|
42006
|
+
created_at: string;
|
|
42007
|
+
};
|
|
42008
|
+
};
|
|
42009
|
+
};
|
|
42010
|
+
'/spaces/delete': {
|
|
42011
|
+
route: '/spaces/delete';
|
|
42012
|
+
method: 'DELETE' | 'POST';
|
|
42013
|
+
queryParams: {};
|
|
42014
|
+
jsonBody: {
|
|
42015
|
+
space_id: string;
|
|
42016
|
+
};
|
|
42017
|
+
commonParams: {};
|
|
42018
|
+
formData: {};
|
|
42019
|
+
jsonResponse: {};
|
|
42020
|
+
};
|
|
42021
|
+
'/spaces/get': {
|
|
42022
|
+
route: '/spaces/get';
|
|
42023
|
+
method: 'GET' | 'POST';
|
|
42024
|
+
queryParams: {};
|
|
42025
|
+
jsonBody: {};
|
|
42026
|
+
commonParams: {
|
|
42027
|
+
space_id: string;
|
|
42028
|
+
};
|
|
42029
|
+
formData: {};
|
|
42030
|
+
jsonResponse: {
|
|
42031
|
+
/** */
|
|
42032
|
+
space: {
|
|
42033
|
+
/** Unique identifier for the space. */
|
|
42034
|
+
space_id: string;
|
|
42035
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
42036
|
+
workspace_id: string;
|
|
42037
|
+
/** Name of the space. */
|
|
42038
|
+
name: string;
|
|
42039
|
+
/** Display name of the space. */
|
|
42040
|
+
display_name: string;
|
|
42041
|
+
/** Date and time at which the space object was created. */
|
|
42042
|
+
created_at: string;
|
|
42043
|
+
};
|
|
42044
|
+
};
|
|
42045
|
+
};
|
|
42046
|
+
'/spaces/list': {
|
|
42047
|
+
route: '/spaces/list';
|
|
42048
|
+
method: 'GET' | 'POST';
|
|
42049
|
+
queryParams: {};
|
|
42050
|
+
jsonBody: {};
|
|
42051
|
+
commonParams: {};
|
|
42052
|
+
formData: {};
|
|
42053
|
+
jsonResponse: {
|
|
42054
|
+
spaces: Array<{
|
|
42055
|
+
/** Unique identifier for the space. */
|
|
42056
|
+
space_id: string;
|
|
42057
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
42058
|
+
workspace_id: string;
|
|
42059
|
+
/** Name of the space. */
|
|
42060
|
+
name: string;
|
|
42061
|
+
/** Display name of the space. */
|
|
42062
|
+
display_name: string;
|
|
42063
|
+
/** Date and time at which the space object was created. */
|
|
42064
|
+
created_at: string;
|
|
42065
|
+
}>;
|
|
42066
|
+
};
|
|
42067
|
+
};
|
|
42068
|
+
'/spaces/remove_acs_entrances': {
|
|
42069
|
+
route: '/spaces/remove_acs_entrances';
|
|
42070
|
+
method: 'POST' | 'DELETE';
|
|
42071
|
+
queryParams: {};
|
|
42072
|
+
jsonBody: {};
|
|
42073
|
+
commonParams: {
|
|
42074
|
+
space_id: string;
|
|
42075
|
+
acs_entrance_ids: string[];
|
|
42076
|
+
};
|
|
42077
|
+
formData: {};
|
|
42078
|
+
jsonResponse: {};
|
|
42079
|
+
};
|
|
42080
|
+
'/spaces/remove_devices': {
|
|
42081
|
+
route: '/spaces/remove_devices';
|
|
42082
|
+
method: 'POST' | 'DELETE';
|
|
42083
|
+
queryParams: {};
|
|
42084
|
+
jsonBody: {};
|
|
42085
|
+
commonParams: {
|
|
42086
|
+
space_id: string;
|
|
42087
|
+
device_ids: string[];
|
|
42088
|
+
};
|
|
42089
|
+
formData: {};
|
|
42090
|
+
jsonResponse: {};
|
|
42091
|
+
};
|
|
42092
|
+
'/spaces/update': {
|
|
42093
|
+
route: '/spaces/update';
|
|
42094
|
+
method: 'POST' | 'PATCH';
|
|
42095
|
+
queryParams: {};
|
|
42096
|
+
jsonBody: {
|
|
42097
|
+
space_id: string;
|
|
42098
|
+
name?: string | undefined;
|
|
42099
|
+
};
|
|
42100
|
+
commonParams: {};
|
|
42101
|
+
formData: {};
|
|
42102
|
+
jsonResponse: {
|
|
42103
|
+
/** */
|
|
42104
|
+
space: {
|
|
42105
|
+
/** Unique identifier for the space. */
|
|
42106
|
+
space_id: string;
|
|
42107
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
42108
|
+
workspace_id: string;
|
|
42109
|
+
/** Name of the space. */
|
|
42110
|
+
name: string;
|
|
42111
|
+
/** Display name of the space. */
|
|
42112
|
+
display_name: string;
|
|
42113
|
+
/** Date and time at which the space object was created. */
|
|
42114
|
+
created_at: string;
|
|
42115
|
+
};
|
|
42116
|
+
};
|
|
42117
|
+
};
|
|
41679
42118
|
'/thermostats/activate_climate_preset': {
|
|
41680
42119
|
route: '/thermostats/activate_climate_preset';
|
|
41681
42120
|
method: 'POST';
|
|
@@ -48642,8 +49081,11 @@ export interface Routes {
|
|
|
48642
49081
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
48643
49082
|
/** */
|
|
48644
49083
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_hvac_heat' | 'can_hvac_cool' | 'can_hvac_heat_cool' | 'can_turn_off_hvac' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
48645
|
-
/**
|
|
49084
|
+
/**
|
|
49085
|
+
* @deprecated Use `space_id`. */
|
|
48646
49086
|
unstable_location_id?: (string | null) | undefined;
|
|
49087
|
+
/** ID of the space for which you want to list devices. */
|
|
49088
|
+
space_id?: string | undefined;
|
|
48647
49089
|
};
|
|
48648
49090
|
formData: {};
|
|
48649
49091
|
jsonResponse: {
|
|
@@ -55893,17 +56335,26 @@ export interface Routes {
|
|
|
55893
56335
|
full_name?: (string | null) | undefined;
|
|
55894
56336
|
};
|
|
55895
56337
|
}) & {
|
|
55896
|
-
/**
|
|
56338
|
+
/**
|
|
56339
|
+
* @deprecated Use `space_ids`. */
|
|
55897
56340
|
location_ids?: string[] | undefined;
|
|
56341
|
+
/** Set of IDs of existing spaces to which access is being granted. */
|
|
56342
|
+
space_ids?: string[] | undefined;
|
|
55898
56343
|
/** When used, creates a new location with the given entrances and devices, and gives the user access to this location. */
|
|
55899
56344
|
location?: {
|
|
55900
56345
|
/** Name of the location. */
|
|
55901
56346
|
name?: string | undefined;
|
|
55902
|
-
/**
|
|
56347
|
+
/**
|
|
56348
|
+
* @deprecated Use `acs_entrance_ids` at the top level. */
|
|
55903
56349
|
acs_entrance_ids?: string[];
|
|
55904
|
-
/**
|
|
56350
|
+
/**
|
|
56351
|
+
* @deprecated Use `device_ids` at the top level. */
|
|
55905
56352
|
device_ids?: string[];
|
|
55906
56353
|
} | undefined;
|
|
56354
|
+
/** Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to which access is being granted. */
|
|
56355
|
+
acs_entrance_ids?: string[];
|
|
56356
|
+
/** Set of IDs of the [devices](https://docs.seam.co/latest/api/devices/list) to which access is being granted. */
|
|
56357
|
+
device_ids?: string[];
|
|
55907
56358
|
requested_access_methods: Array<{
|
|
55908
56359
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
55909
56360
|
mode: 'code' | 'card' | 'mobile_key';
|
|
@@ -55923,8 +56374,11 @@ export interface Routes {
|
|
|
55923
56374
|
access_grant_id: string;
|
|
55924
56375
|
/** ID of user identity to which access is being granted. */
|
|
55925
56376
|
user_identity_id: string;
|
|
55926
|
-
/**
|
|
56377
|
+
/**
|
|
56378
|
+
* @deprecated Use `space_ids`. */
|
|
55927
56379
|
location_ids: string[];
|
|
56380
|
+
/** IDs of the spaces to which access is being given. */
|
|
56381
|
+
space_ids: string[];
|
|
55928
56382
|
/** Access methods that the user requested for this access grant. */
|
|
55929
56383
|
requested_access_methods: Array<{
|
|
55930
56384
|
/** Display name of the access method. */
|
|
@@ -55976,8 +56430,11 @@ export interface Routes {
|
|
|
55976
56430
|
access_grant_id: string;
|
|
55977
56431
|
/** ID of user identity to which access is being granted. */
|
|
55978
56432
|
user_identity_id: string;
|
|
55979
|
-
/**
|
|
56433
|
+
/**
|
|
56434
|
+
* @deprecated Use `space_ids`. */
|
|
55980
56435
|
location_ids: string[];
|
|
56436
|
+
/** IDs of the spaces to which access is being given. */
|
|
56437
|
+
space_ids: string[];
|
|
55981
56438
|
/** Access methods that the user requested for this access grant. */
|
|
55982
56439
|
requested_access_methods: Array<{
|
|
55983
56440
|
/** Display name of the access method. */
|
|
@@ -56010,8 +56467,11 @@ export interface Routes {
|
|
|
56010
56467
|
acs_system_id?: string | undefined;
|
|
56011
56468
|
/** ID of entrance to filter list of access grants by. */
|
|
56012
56469
|
acs_entrance_id?: string | undefined;
|
|
56013
|
-
/**
|
|
56470
|
+
/**
|
|
56471
|
+
* @deprecated Use `space_id`. */
|
|
56014
56472
|
location_id?: string | undefined;
|
|
56473
|
+
/** ID of space to filter list of access grants by. */
|
|
56474
|
+
space_id?: string | undefined;
|
|
56015
56475
|
};
|
|
56016
56476
|
formData: {};
|
|
56017
56477
|
jsonResponse: {
|
|
@@ -56022,8 +56482,11 @@ export interface Routes {
|
|
|
56022
56482
|
access_grant_id: string;
|
|
56023
56483
|
/** ID of user identity to which access is being granted. */
|
|
56024
56484
|
user_identity_id: string;
|
|
56025
|
-
/**
|
|
56485
|
+
/**
|
|
56486
|
+
* @deprecated Use `space_ids`. */
|
|
56026
56487
|
location_ids: string[];
|
|
56488
|
+
/** IDs of the spaces to which access is being given. */
|
|
56489
|
+
space_ids: string[];
|
|
56027
56490
|
/** Access methods that the user requested for this access grant. */
|
|
56028
56491
|
requested_access_methods: Array<{
|
|
56029
56492
|
/** Display name of the access method. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,8 @@ export type {
|
|
|
2
2
|
AccessCode,
|
|
3
3
|
AccessCodeError,
|
|
4
4
|
AccessCodeWarning,
|
|
5
|
+
AccessGrant,
|
|
6
|
+
AccessMethod,
|
|
5
7
|
AcsAccessGroup,
|
|
6
8
|
AcsCredential,
|
|
7
9
|
AcsEncoder,
|
|
@@ -10,6 +12,7 @@ export type {
|
|
|
10
12
|
AcsUser,
|
|
11
13
|
ActionAttempt,
|
|
12
14
|
Bridge,
|
|
15
|
+
BuildingBlockType,
|
|
13
16
|
ClientSession,
|
|
14
17
|
ConnectedAccount,
|
|
15
18
|
ConnectedAccountError,
|
|
@@ -21,9 +24,12 @@ export type {
|
|
|
21
24
|
DeviceProvider,
|
|
22
25
|
DeviceWarning,
|
|
23
26
|
InstantKey,
|
|
27
|
+
MagicLink,
|
|
24
28
|
NoiseThreshold,
|
|
29
|
+
Pagination,
|
|
25
30
|
SeamEvent,
|
|
26
31
|
SeamEventType,
|
|
32
|
+
Space,
|
|
27
33
|
ThermostatSchedule,
|
|
28
34
|
UnmanagedAccessCode,
|
|
29
35
|
UnmanagedDevice,
|