@seamapi/types 1.406.9 → 1.408.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 +2314 -468
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3939 -1272
- 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/models/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +7 -2
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +47 -0
- package/lib/seam/connect/models/events/access-methods.js +9 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +24 -1
- package/lib/seam/connect/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/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 +15 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +5941 -3781
- package/lib/seam/connect/openapi.js +7334 -5497
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +499 -15
- package/package.json +2 -2
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +7 -2
- package/src/lib/seam/connect/models/events/access-methods.ts +10 -0
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/spaces/index.ts +1 -0
- package/src/lib/seam/connect/models/spaces/space.ts +19 -0
- package/src/lib/seam/connect/openapi.ts +7987 -6075
- package/src/lib/seam/connect/route-types.ts +506 -13
|
@@ -10109,6 +10109,276 @@ export interface Routes {
|
|
|
10109
10109
|
formData: {}
|
|
10110
10110
|
jsonResponse: {}
|
|
10111
10111
|
}
|
|
10112
|
+
'/access_grants/create': {
|
|
10113
|
+
route: '/access_grants/create'
|
|
10114
|
+
method: 'POST'
|
|
10115
|
+
queryParams: {}
|
|
10116
|
+
jsonBody: {}
|
|
10117
|
+
commonParams: (
|
|
10118
|
+
| {
|
|
10119
|
+
/** ID of user identity for whom access is being granted. */
|
|
10120
|
+
user_identity_id: string
|
|
10121
|
+
}
|
|
10122
|
+
| {
|
|
10123
|
+
/** When used, creates a new user identity with the given details, and grants them access. */
|
|
10124
|
+
user_identity: {
|
|
10125
|
+
/** Unique email address for the user identity. */
|
|
10126
|
+
email_address?: (string | null) | undefined
|
|
10127
|
+
/** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
|
|
10128
|
+
phone_number?: (string | null) | undefined
|
|
10129
|
+
full_name?: (string | null) | undefined
|
|
10130
|
+
}
|
|
10131
|
+
}
|
|
10132
|
+
) & {
|
|
10133
|
+
/**
|
|
10134
|
+
* @deprecated Use `space_ids`. */
|
|
10135
|
+
location_ids?: string[] | undefined
|
|
10136
|
+
/** Set of IDs of existing spaces to which access is being granted. */
|
|
10137
|
+
space_ids?: string[] | undefined
|
|
10138
|
+
/** When used, creates a new location with the given entrances and devices, and gives the user access to this location. */
|
|
10139
|
+
location?:
|
|
10140
|
+
| {
|
|
10141
|
+
/** Name of the location. */
|
|
10142
|
+
name?: string | undefined
|
|
10143
|
+
/**
|
|
10144
|
+
* @deprecated Use `acs_entrance_ids` at the top level. */
|
|
10145
|
+
acs_entrance_ids?: string[]
|
|
10146
|
+
/**
|
|
10147
|
+
* @deprecated Use `device_ids` at the top level. */
|
|
10148
|
+
device_ids?: string[]
|
|
10149
|
+
}
|
|
10150
|
+
| undefined
|
|
10151
|
+
/** Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to which access is being granted. */
|
|
10152
|
+
acs_entrance_ids?: string[]
|
|
10153
|
+
/** Set of IDs of the [devices](https://docs.seam.co/latest/api/devices/list) to which access is being granted. */
|
|
10154
|
+
device_ids?: string[]
|
|
10155
|
+
requested_access_methods: Array<{
|
|
10156
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10157
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
10158
|
+
}>
|
|
10159
|
+
/** 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. */
|
|
10160
|
+
starts_at?: string | undefined
|
|
10161
|
+
/** 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`. */
|
|
10162
|
+
ends_at?: string | undefined
|
|
10163
|
+
}
|
|
10164
|
+
formData: {}
|
|
10165
|
+
jsonResponse: {
|
|
10166
|
+
/** */
|
|
10167
|
+
access_grant: {
|
|
10168
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
10169
|
+
workspace_id: string
|
|
10170
|
+
/** ID of the access grant. */
|
|
10171
|
+
access_grant_id: string
|
|
10172
|
+
/** ID of user identity to which access is being granted. */
|
|
10173
|
+
user_identity_id: string
|
|
10174
|
+
/**
|
|
10175
|
+
* @deprecated Use `space_ids`. */
|
|
10176
|
+
location_ids: string[]
|
|
10177
|
+
/** IDs of the spaces to which access is being given. */
|
|
10178
|
+
space_ids: string[]
|
|
10179
|
+
/** Access methods that the user requested for this access grant. */
|
|
10180
|
+
requested_access_methods: Array<{
|
|
10181
|
+
/** Display name of the access method. */
|
|
10182
|
+
display_name: string
|
|
10183
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10184
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
10185
|
+
/** Date and time at which the requested access method was added to this access grant. */
|
|
10186
|
+
created_at: string
|
|
10187
|
+
/** IDs of the access methods that were created for this requested access method. */
|
|
10188
|
+
created_access_method_ids: string[]
|
|
10189
|
+
}>
|
|
10190
|
+
/** IDs of the access methods that were created for this access grant. */
|
|
10191
|
+
access_method_ids: string[]
|
|
10192
|
+
/** Display name of the access grant. */
|
|
10193
|
+
display_name: string
|
|
10194
|
+
/** Date and time at which the access grant was created. */
|
|
10195
|
+
created_at: string
|
|
10196
|
+
}
|
|
10197
|
+
}
|
|
10198
|
+
}
|
|
10199
|
+
'/access_grants/delete': {
|
|
10200
|
+
route: '/access_grants/delete'
|
|
10201
|
+
method: 'GET' | 'POST'
|
|
10202
|
+
queryParams: {}
|
|
10203
|
+
jsonBody: {}
|
|
10204
|
+
commonParams: {
|
|
10205
|
+
/** ID of access grant to delete. */
|
|
10206
|
+
access_grant_id: string
|
|
10207
|
+
}
|
|
10208
|
+
formData: {}
|
|
10209
|
+
jsonResponse: {}
|
|
10210
|
+
}
|
|
10211
|
+
'/access_grants/get': {
|
|
10212
|
+
route: '/access_grants/get'
|
|
10213
|
+
method: 'GET' | 'POST'
|
|
10214
|
+
queryParams: {}
|
|
10215
|
+
jsonBody: {}
|
|
10216
|
+
commonParams: {
|
|
10217
|
+
/** ID of access grant to get. */
|
|
10218
|
+
access_grant_id: string
|
|
10219
|
+
}
|
|
10220
|
+
formData: {}
|
|
10221
|
+
jsonResponse: {
|
|
10222
|
+
/** */
|
|
10223
|
+
access_grant: {
|
|
10224
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
10225
|
+
workspace_id: string
|
|
10226
|
+
/** ID of the access grant. */
|
|
10227
|
+
access_grant_id: string
|
|
10228
|
+
/** ID of user identity to which access is being granted. */
|
|
10229
|
+
user_identity_id: string
|
|
10230
|
+
/**
|
|
10231
|
+
* @deprecated Use `space_ids`. */
|
|
10232
|
+
location_ids: string[]
|
|
10233
|
+
/** IDs of the spaces to which access is being given. */
|
|
10234
|
+
space_ids: string[]
|
|
10235
|
+
/** Access methods that the user requested for this access grant. */
|
|
10236
|
+
requested_access_methods: Array<{
|
|
10237
|
+
/** Display name of the access method. */
|
|
10238
|
+
display_name: string
|
|
10239
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10240
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
10241
|
+
/** Date and time at which the requested access method was added to this access grant. */
|
|
10242
|
+
created_at: string
|
|
10243
|
+
/** IDs of the access methods that were created for this requested access method. */
|
|
10244
|
+
created_access_method_ids: string[]
|
|
10245
|
+
}>
|
|
10246
|
+
/** IDs of the access methods that were created for this access grant. */
|
|
10247
|
+
access_method_ids: string[]
|
|
10248
|
+
/** Display name of the access grant. */
|
|
10249
|
+
display_name: string
|
|
10250
|
+
/** Date and time at which the access grant was created. */
|
|
10251
|
+
created_at: string
|
|
10252
|
+
}
|
|
10253
|
+
}
|
|
10254
|
+
}
|
|
10255
|
+
'/access_grants/list': {
|
|
10256
|
+
route: '/access_grants/list'
|
|
10257
|
+
method: 'GET' | 'POST'
|
|
10258
|
+
queryParams: {}
|
|
10259
|
+
jsonBody: {}
|
|
10260
|
+
commonParams: {
|
|
10261
|
+
/** ID of user identity to filter list of access grants by. */
|
|
10262
|
+
user_identity_id?: string | undefined
|
|
10263
|
+
/** ID of system to filter list of access grants by. */
|
|
10264
|
+
acs_system_id?: string | undefined
|
|
10265
|
+
/** ID of entrance to filter list of access grants by. */
|
|
10266
|
+
acs_entrance_id?: string | undefined
|
|
10267
|
+
/**
|
|
10268
|
+
* @deprecated Use `space_id`. */
|
|
10269
|
+
location_id?: string | undefined
|
|
10270
|
+
/** ID of space to filter list of access grants by. */
|
|
10271
|
+
space_id?: string | undefined
|
|
10272
|
+
}
|
|
10273
|
+
formData: {}
|
|
10274
|
+
jsonResponse: {
|
|
10275
|
+
access_grants: Array<{
|
|
10276
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
10277
|
+
workspace_id: string
|
|
10278
|
+
/** ID of the access grant. */
|
|
10279
|
+
access_grant_id: string
|
|
10280
|
+
/** ID of user identity to which access is being granted. */
|
|
10281
|
+
user_identity_id: string
|
|
10282
|
+
/**
|
|
10283
|
+
* @deprecated Use `space_ids`. */
|
|
10284
|
+
location_ids: string[]
|
|
10285
|
+
/** IDs of the spaces to which access is being given. */
|
|
10286
|
+
space_ids: string[]
|
|
10287
|
+
/** Access methods that the user requested for this access grant. */
|
|
10288
|
+
requested_access_methods: Array<{
|
|
10289
|
+
/** Display name of the access method. */
|
|
10290
|
+
display_name: string
|
|
10291
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10292
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
10293
|
+
/** Date and time at which the requested access method was added to this access grant. */
|
|
10294
|
+
created_at: string
|
|
10295
|
+
/** IDs of the access methods that were created for this requested access method. */
|
|
10296
|
+
created_access_method_ids: string[]
|
|
10297
|
+
}>
|
|
10298
|
+
/** IDs of the access methods that were created for this access grant. */
|
|
10299
|
+
access_method_ids: string[]
|
|
10300
|
+
/** Display name of the access grant. */
|
|
10301
|
+
display_name: string
|
|
10302
|
+
/** Date and time at which the access grant was created. */
|
|
10303
|
+
created_at: string
|
|
10304
|
+
}>
|
|
10305
|
+
}
|
|
10306
|
+
}
|
|
10307
|
+
'/access_methods/delete': {
|
|
10308
|
+
route: '/access_methods/delete'
|
|
10309
|
+
method: 'GET' | 'POST'
|
|
10310
|
+
queryParams: {}
|
|
10311
|
+
jsonBody: {}
|
|
10312
|
+
commonParams: {
|
|
10313
|
+
/** ID of access method to get. */
|
|
10314
|
+
access_method_id: string
|
|
10315
|
+
}
|
|
10316
|
+
formData: {}
|
|
10317
|
+
jsonResponse: {}
|
|
10318
|
+
}
|
|
10319
|
+
'/access_methods/get': {
|
|
10320
|
+
route: '/access_methods/get'
|
|
10321
|
+
method: 'GET' | 'POST'
|
|
10322
|
+
queryParams: {}
|
|
10323
|
+
jsonBody: {}
|
|
10324
|
+
commonParams: {
|
|
10325
|
+
/** ID of access method to get. */
|
|
10326
|
+
access_method_id: string
|
|
10327
|
+
}
|
|
10328
|
+
formData: {}
|
|
10329
|
+
jsonResponse: {
|
|
10330
|
+
/** */
|
|
10331
|
+
access_method: {
|
|
10332
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
10333
|
+
workspace_id: string
|
|
10334
|
+
/** ID of the access method. */
|
|
10335
|
+
access_method_id: string
|
|
10336
|
+
/** Display name of the access method. */
|
|
10337
|
+
display_name: string
|
|
10338
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10339
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
10340
|
+
/** Date and time at which the access method was created. */
|
|
10341
|
+
created_at: string
|
|
10342
|
+
/** Date and time at which the access method was issued. */
|
|
10343
|
+
issued_at?: string | undefined
|
|
10344
|
+
/** URL of instant key for mobile key access methods. */
|
|
10345
|
+
instant_key_url?: string | undefined
|
|
10346
|
+
/** Whether card encoding is required for plastic card access methods. */
|
|
10347
|
+
is_card_encoding_required?: boolean | undefined
|
|
10348
|
+
}
|
|
10349
|
+
}
|
|
10350
|
+
}
|
|
10351
|
+
'/access_methods/list': {
|
|
10352
|
+
route: '/access_methods/list'
|
|
10353
|
+
method: 'GET' | 'POST'
|
|
10354
|
+
queryParams: {}
|
|
10355
|
+
jsonBody: {}
|
|
10356
|
+
commonParams: {
|
|
10357
|
+
/** ID of access grant to list access methods for. */
|
|
10358
|
+
access_grant_id: string
|
|
10359
|
+
}
|
|
10360
|
+
formData: {}
|
|
10361
|
+
jsonResponse: {
|
|
10362
|
+
access_methods: Array<{
|
|
10363
|
+
/** Unique identifier for the Seam workspace associated with the access grant. */
|
|
10364
|
+
workspace_id: string
|
|
10365
|
+
/** ID of the access method. */
|
|
10366
|
+
access_method_id: string
|
|
10367
|
+
/** Display name of the access method. */
|
|
10368
|
+
display_name: string
|
|
10369
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10370
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
10371
|
+
/** Date and time at which the access method was created. */
|
|
10372
|
+
created_at: string
|
|
10373
|
+
/** Date and time at which the access method was issued. */
|
|
10374
|
+
issued_at?: string | undefined
|
|
10375
|
+
/** URL of instant key for mobile key access methods. */
|
|
10376
|
+
instant_key_url?: string | undefined
|
|
10377
|
+
/** Whether card encoding is required for plastic card access methods. */
|
|
10378
|
+
is_card_encoding_required?: boolean | undefined
|
|
10379
|
+
}>
|
|
10380
|
+
}
|
|
10381
|
+
}
|
|
10112
10382
|
'/acs/access_groups/add_user': {
|
|
10113
10383
|
route: '/acs/access_groups/add_user'
|
|
10114
10384
|
method: 'PUT' | 'POST'
|
|
@@ -16631,8 +16901,11 @@ export interface Routes {
|
|
|
16631
16901
|
acs_system_id?: string | undefined
|
|
16632
16902
|
/** ID of the credential for which you want to retrieve all entrances. */
|
|
16633
16903
|
acs_credential_id?: string | undefined
|
|
16634
|
-
/**
|
|
16904
|
+
/**
|
|
16905
|
+
* @deprecated Use `space_id`. */
|
|
16635
16906
|
location_id?: (string | null) | undefined
|
|
16907
|
+
/** ID of the space for which you want to list entrances. */
|
|
16908
|
+
space_id?: string | undefined
|
|
16636
16909
|
}
|
|
16637
16910
|
formData: {}
|
|
16638
16911
|
jsonResponse: {
|
|
@@ -24169,8 +24442,11 @@ export interface Routes {
|
|
|
24169
24442
|
| 'can_simulate_disconnection'
|
|
24170
24443
|
>
|
|
24171
24444
|
| undefined
|
|
24172
|
-
/**
|
|
24445
|
+
/**
|
|
24446
|
+
* @deprecated Use `space_id`. */
|
|
24173
24447
|
unstable_location_id?: (string | null) | undefined
|
|
24448
|
+
/** ID of the space for which you want to list devices. */
|
|
24449
|
+
space_id?: string | undefined
|
|
24174
24450
|
}
|
|
24175
24451
|
formData: {}
|
|
24176
24452
|
jsonResponse: {
|
|
@@ -26337,8 +26613,11 @@ export interface Routes {
|
|
|
26337
26613
|
| 'can_simulate_disconnection'
|
|
26338
26614
|
>
|
|
26339
26615
|
| undefined
|
|
26340
|
-
/**
|
|
26616
|
+
/**
|
|
26617
|
+
* @deprecated Use `space_id`. */
|
|
26341
26618
|
unstable_location_id?: (string | null) | undefined
|
|
26619
|
+
/** ID of the space for which you want to list devices. */
|
|
26620
|
+
space_id?: string | undefined
|
|
26342
26621
|
}
|
|
26343
26622
|
formData: {}
|
|
26344
26623
|
jsonResponse: {
|
|
@@ -27188,6 +27467,19 @@ export interface Routes {
|
|
|
27188
27467
|
access_method_id: string
|
|
27189
27468
|
event_type: 'access_method.card_encoding_required'
|
|
27190
27469
|
}
|
|
27470
|
+
| {
|
|
27471
|
+
/** ID of the event. */
|
|
27472
|
+
event_id: string
|
|
27473
|
+
/** ID of the workspace associated with the event. */
|
|
27474
|
+
workspace_id: string
|
|
27475
|
+
/** Date and time at which the event was created. */
|
|
27476
|
+
created_at: string
|
|
27477
|
+
/** Date and time at which the event occurred. */
|
|
27478
|
+
occurred_at: string
|
|
27479
|
+
/** ID of the affected access method. */
|
|
27480
|
+
access_method_id: string
|
|
27481
|
+
event_type: 'access_method.deleted'
|
|
27482
|
+
}
|
|
27191
27483
|
| {
|
|
27192
27484
|
/** ID of the event. */
|
|
27193
27485
|
event_id: string
|
|
@@ -28314,6 +28606,7 @@ export interface Routes {
|
|
|
28314
28606
|
| 'access_method.issued'
|
|
28315
28607
|
| 'access_method.revoked'
|
|
28316
28608
|
| 'access_method.card_encoding_required'
|
|
28609
|
+
| 'access_method.deleted'
|
|
28317
28610
|
| 'acs_system.connected'
|
|
28318
28611
|
| 'acs_system.added'
|
|
28319
28612
|
| 'acs_system.disconnected'
|
|
@@ -28407,6 +28700,7 @@ export interface Routes {
|
|
|
28407
28700
|
| 'access_method.issued'
|
|
28408
28701
|
| 'access_method.revoked'
|
|
28409
28702
|
| 'access_method.card_encoding_required'
|
|
28703
|
+
| 'access_method.deleted'
|
|
28410
28704
|
| 'acs_system.connected'
|
|
28411
28705
|
| 'acs_system.added'
|
|
28412
28706
|
| 'acs_system.disconnected'
|
|
@@ -28890,6 +29184,19 @@ export interface Routes {
|
|
|
28890
29184
|
access_method_id: string
|
|
28891
29185
|
event_type: 'access_method.card_encoding_required'
|
|
28892
29186
|
}
|
|
29187
|
+
| {
|
|
29188
|
+
/** ID of the event. */
|
|
29189
|
+
event_id: string
|
|
29190
|
+
/** ID of the workspace associated with the event. */
|
|
29191
|
+
workspace_id: string
|
|
29192
|
+
/** Date and time at which the event was created. */
|
|
29193
|
+
created_at: string
|
|
29194
|
+
/** Date and time at which the event occurred. */
|
|
29195
|
+
occurred_at: string
|
|
29196
|
+
/** ID of the affected access method. */
|
|
29197
|
+
access_method_id: string
|
|
29198
|
+
event_type: 'access_method.deleted'
|
|
29199
|
+
}
|
|
28893
29200
|
| {
|
|
28894
29201
|
/** ID of the event. */
|
|
28895
29202
|
event_id: string
|
|
@@ -32999,8 +33306,11 @@ export interface Routes {
|
|
|
32999
33306
|
| 'can_simulate_disconnection'
|
|
33000
33307
|
>
|
|
33001
33308
|
| undefined
|
|
33002
|
-
/**
|
|
33309
|
+
/**
|
|
33310
|
+
* @deprecated Use `space_id`. */
|
|
33003
33311
|
unstable_location_id?: (string | null) | undefined
|
|
33312
|
+
/** ID of the space for which you want to list devices. */
|
|
33313
|
+
space_id?: string | undefined
|
|
33004
33314
|
}
|
|
33005
33315
|
formData: {}
|
|
33006
33316
|
jsonResponse: {
|
|
@@ -41208,8 +41518,11 @@ export interface Routes {
|
|
|
41208
41518
|
| 'can_simulate_disconnection'
|
|
41209
41519
|
>
|
|
41210
41520
|
| undefined
|
|
41211
|
-
/**
|
|
41521
|
+
/**
|
|
41522
|
+
* @deprecated Use `space_id`. */
|
|
41212
41523
|
unstable_location_id?: (string | null) | undefined
|
|
41524
|
+
/** ID of the space for which you want to list devices. */
|
|
41525
|
+
space_id?: string | undefined
|
|
41213
41526
|
}
|
|
41214
41527
|
formData: {}
|
|
41215
41528
|
jsonResponse: {
|
|
@@ -49118,6 +49431,162 @@ export interface Routes {
|
|
|
49118
49431
|
}>
|
|
49119
49432
|
}
|
|
49120
49433
|
}
|
|
49434
|
+
'/spaces/add_acs_entrances': {
|
|
49435
|
+
route: '/spaces/add_acs_entrances'
|
|
49436
|
+
method: 'POST' | 'PUT'
|
|
49437
|
+
queryParams: {}
|
|
49438
|
+
jsonBody: {
|
|
49439
|
+
space_id: string
|
|
49440
|
+
acs_entrance_ids: string[]
|
|
49441
|
+
}
|
|
49442
|
+
commonParams: {}
|
|
49443
|
+
formData: {}
|
|
49444
|
+
jsonResponse: {}
|
|
49445
|
+
}
|
|
49446
|
+
'/spaces/add_devices': {
|
|
49447
|
+
route: '/spaces/add_devices'
|
|
49448
|
+
method: 'POST' | 'PUT'
|
|
49449
|
+
queryParams: {}
|
|
49450
|
+
jsonBody: {
|
|
49451
|
+
space_id: string
|
|
49452
|
+
device_ids: string[]
|
|
49453
|
+
}
|
|
49454
|
+
commonParams: {}
|
|
49455
|
+
formData: {}
|
|
49456
|
+
jsonResponse: {}
|
|
49457
|
+
}
|
|
49458
|
+
'/spaces/create': {
|
|
49459
|
+
route: '/spaces/create'
|
|
49460
|
+
method: 'POST'
|
|
49461
|
+
queryParams: {}
|
|
49462
|
+
jsonBody: {
|
|
49463
|
+
name: string
|
|
49464
|
+
device_ids?: string[] | undefined
|
|
49465
|
+
acs_entrance_ids?: string[] | undefined
|
|
49466
|
+
}
|
|
49467
|
+
commonParams: {}
|
|
49468
|
+
formData: {}
|
|
49469
|
+
jsonResponse: {
|
|
49470
|
+
space: {
|
|
49471
|
+
/** Unique identifier for the space. */
|
|
49472
|
+
space_id: string
|
|
49473
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
49474
|
+
workspace_id: string
|
|
49475
|
+
/** Name of the space. */
|
|
49476
|
+
name: string
|
|
49477
|
+
/** Display name of the space. */
|
|
49478
|
+
display_name: string
|
|
49479
|
+
/** Date and time at which the space object was created. */
|
|
49480
|
+
created_at: string
|
|
49481
|
+
}
|
|
49482
|
+
}
|
|
49483
|
+
}
|
|
49484
|
+
'/spaces/delete': {
|
|
49485
|
+
route: '/spaces/delete'
|
|
49486
|
+
method: 'DELETE' | 'POST'
|
|
49487
|
+
queryParams: {}
|
|
49488
|
+
jsonBody: {
|
|
49489
|
+
space_id: string
|
|
49490
|
+
}
|
|
49491
|
+
commonParams: {}
|
|
49492
|
+
formData: {}
|
|
49493
|
+
jsonResponse: {}
|
|
49494
|
+
}
|
|
49495
|
+
'/spaces/get': {
|
|
49496
|
+
route: '/spaces/get'
|
|
49497
|
+
method: 'GET' | 'POST'
|
|
49498
|
+
queryParams: {}
|
|
49499
|
+
jsonBody: {}
|
|
49500
|
+
commonParams: {
|
|
49501
|
+
space_id: string
|
|
49502
|
+
}
|
|
49503
|
+
formData: {}
|
|
49504
|
+
jsonResponse: {
|
|
49505
|
+
space: {
|
|
49506
|
+
/** Unique identifier for the space. */
|
|
49507
|
+
space_id: string
|
|
49508
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
49509
|
+
workspace_id: string
|
|
49510
|
+
/** Name of the space. */
|
|
49511
|
+
name: string
|
|
49512
|
+
/** Display name of the space. */
|
|
49513
|
+
display_name: string
|
|
49514
|
+
/** Date and time at which the space object was created. */
|
|
49515
|
+
created_at: string
|
|
49516
|
+
}
|
|
49517
|
+
}
|
|
49518
|
+
}
|
|
49519
|
+
'/spaces/list': {
|
|
49520
|
+
route: '/spaces/list'
|
|
49521
|
+
method: 'GET' | 'POST'
|
|
49522
|
+
queryParams: {}
|
|
49523
|
+
jsonBody: {}
|
|
49524
|
+
commonParams: {}
|
|
49525
|
+
formData: {}
|
|
49526
|
+
jsonResponse: {
|
|
49527
|
+
spaces: Array<{
|
|
49528
|
+
/** Unique identifier for the space. */
|
|
49529
|
+
space_id: string
|
|
49530
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
49531
|
+
workspace_id: string
|
|
49532
|
+
/** Name of the space. */
|
|
49533
|
+
name: string
|
|
49534
|
+
/** Display name of the space. */
|
|
49535
|
+
display_name: string
|
|
49536
|
+
/** Date and time at which the space object was created. */
|
|
49537
|
+
created_at: string
|
|
49538
|
+
}>
|
|
49539
|
+
}
|
|
49540
|
+
}
|
|
49541
|
+
'/spaces/remove_acs_entrances': {
|
|
49542
|
+
route: '/spaces/remove_acs_entrances'
|
|
49543
|
+
method: 'POST' | 'DELETE'
|
|
49544
|
+
queryParams: {}
|
|
49545
|
+
jsonBody: {}
|
|
49546
|
+
commonParams: {
|
|
49547
|
+
space_id: string
|
|
49548
|
+
acs_entrance_ids: string[]
|
|
49549
|
+
}
|
|
49550
|
+
formData: {}
|
|
49551
|
+
jsonResponse: {}
|
|
49552
|
+
}
|
|
49553
|
+
'/spaces/remove_devices': {
|
|
49554
|
+
route: '/spaces/remove_devices'
|
|
49555
|
+
method: 'POST' | 'DELETE'
|
|
49556
|
+
queryParams: {}
|
|
49557
|
+
jsonBody: {}
|
|
49558
|
+
commonParams: {
|
|
49559
|
+
space_id: string
|
|
49560
|
+
device_ids: string[]
|
|
49561
|
+
}
|
|
49562
|
+
formData: {}
|
|
49563
|
+
jsonResponse: {}
|
|
49564
|
+
}
|
|
49565
|
+
'/spaces/update': {
|
|
49566
|
+
route: '/spaces/update'
|
|
49567
|
+
method: 'POST' | 'PATCH'
|
|
49568
|
+
queryParams: {}
|
|
49569
|
+
jsonBody: {
|
|
49570
|
+
space_id: string
|
|
49571
|
+
name?: string | undefined
|
|
49572
|
+
}
|
|
49573
|
+
commonParams: {}
|
|
49574
|
+
formData: {}
|
|
49575
|
+
jsonResponse: {
|
|
49576
|
+
space: {
|
|
49577
|
+
/** Unique identifier for the space. */
|
|
49578
|
+
space_id: string
|
|
49579
|
+
/** Unique identifier for the Seam workspace associated with the space. */
|
|
49580
|
+
workspace_id: string
|
|
49581
|
+
/** Name of the space. */
|
|
49582
|
+
name: string
|
|
49583
|
+
/** Display name of the space. */
|
|
49584
|
+
display_name: string
|
|
49585
|
+
/** Date and time at which the space object was created. */
|
|
49586
|
+
created_at: string
|
|
49587
|
+
}
|
|
49588
|
+
}
|
|
49589
|
+
}
|
|
49121
49590
|
'/thermostats/activate_climate_preset': {
|
|
49122
49591
|
route: '/thermostats/activate_climate_preset'
|
|
49123
49592
|
method: 'POST'
|
|
@@ -57319,8 +57788,11 @@ export interface Routes {
|
|
|
57319
57788
|
| 'can_simulate_disconnection'
|
|
57320
57789
|
>
|
|
57321
57790
|
| undefined
|
|
57322
|
-
/**
|
|
57791
|
+
/**
|
|
57792
|
+
* @deprecated Use `space_id`. */
|
|
57323
57793
|
unstable_location_id?: (string | null) | undefined
|
|
57794
|
+
/** ID of the space for which you want to list devices. */
|
|
57795
|
+
space_id?: string | undefined
|
|
57324
57796
|
}
|
|
57325
57797
|
formData: {}
|
|
57326
57798
|
jsonResponse: {
|
|
@@ -65807,19 +66279,28 @@ export interface Routes {
|
|
|
65807
66279
|
}
|
|
65808
66280
|
}
|
|
65809
66281
|
) & {
|
|
65810
|
-
/**
|
|
66282
|
+
/**
|
|
66283
|
+
* @deprecated Use `space_ids`. */
|
|
65811
66284
|
location_ids?: string[] | undefined
|
|
66285
|
+
/** Set of IDs of existing spaces to which access is being granted. */
|
|
66286
|
+
space_ids?: string[] | undefined
|
|
65812
66287
|
/** When used, creates a new location with the given entrances and devices, and gives the user access to this location. */
|
|
65813
66288
|
location?:
|
|
65814
66289
|
| {
|
|
65815
66290
|
/** Name of the location. */
|
|
65816
66291
|
name?: string | undefined
|
|
65817
|
-
/**
|
|
66292
|
+
/**
|
|
66293
|
+
* @deprecated Use `acs_entrance_ids` at the top level. */
|
|
65818
66294
|
acs_entrance_ids?: string[]
|
|
65819
|
-
/**
|
|
66295
|
+
/**
|
|
66296
|
+
* @deprecated Use `device_ids` at the top level. */
|
|
65820
66297
|
device_ids?: string[]
|
|
65821
66298
|
}
|
|
65822
66299
|
| undefined
|
|
66300
|
+
/** Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to which access is being granted. */
|
|
66301
|
+
acs_entrance_ids?: string[]
|
|
66302
|
+
/** Set of IDs of the [devices](https://docs.seam.co/latest/api/devices/list) to which access is being granted. */
|
|
66303
|
+
device_ids?: string[]
|
|
65823
66304
|
requested_access_methods: Array<{
|
|
65824
66305
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
65825
66306
|
mode: 'code' | 'card' | 'mobile_key'
|
|
@@ -65839,8 +66320,11 @@ export interface Routes {
|
|
|
65839
66320
|
access_grant_id: string
|
|
65840
66321
|
/** ID of user identity to which access is being granted. */
|
|
65841
66322
|
user_identity_id: string
|
|
65842
|
-
/**
|
|
66323
|
+
/**
|
|
66324
|
+
* @deprecated Use `space_ids`. */
|
|
65843
66325
|
location_ids: string[]
|
|
66326
|
+
/** IDs of the spaces to which access is being given. */
|
|
66327
|
+
space_ids: string[]
|
|
65844
66328
|
/** Access methods that the user requested for this access grant. */
|
|
65845
66329
|
requested_access_methods: Array<{
|
|
65846
66330
|
/** Display name of the access method. */
|
|
@@ -65892,8 +66376,11 @@ export interface Routes {
|
|
|
65892
66376
|
access_grant_id: string
|
|
65893
66377
|
/** ID of user identity to which access is being granted. */
|
|
65894
66378
|
user_identity_id: string
|
|
65895
|
-
/**
|
|
66379
|
+
/**
|
|
66380
|
+
* @deprecated Use `space_ids`. */
|
|
65896
66381
|
location_ids: string[]
|
|
66382
|
+
/** IDs of the spaces to which access is being given. */
|
|
66383
|
+
space_ids: string[]
|
|
65897
66384
|
/** Access methods that the user requested for this access grant. */
|
|
65898
66385
|
requested_access_methods: Array<{
|
|
65899
66386
|
/** Display name of the access method. */
|
|
@@ -65926,8 +66413,11 @@ export interface Routes {
|
|
|
65926
66413
|
acs_system_id?: string | undefined
|
|
65927
66414
|
/** ID of entrance to filter list of access grants by. */
|
|
65928
66415
|
acs_entrance_id?: string | undefined
|
|
65929
|
-
/**
|
|
66416
|
+
/**
|
|
66417
|
+
* @deprecated Use `space_id`. */
|
|
65930
66418
|
location_id?: string | undefined
|
|
66419
|
+
/** ID of space to filter list of access grants by. */
|
|
66420
|
+
space_id?: string | undefined
|
|
65931
66421
|
}
|
|
65932
66422
|
formData: {}
|
|
65933
66423
|
jsonResponse: {
|
|
@@ -65938,8 +66428,11 @@ export interface Routes {
|
|
|
65938
66428
|
access_grant_id: string
|
|
65939
66429
|
/** ID of user identity to which access is being granted. */
|
|
65940
66430
|
user_identity_id: string
|
|
65941
|
-
/**
|
|
66431
|
+
/**
|
|
66432
|
+
* @deprecated Use `space_ids`. */
|
|
65942
66433
|
location_ids: string[]
|
|
66434
|
+
/** IDs of the spaces to which access is being given. */
|
|
66435
|
+
space_ids: string[]
|
|
65943
66436
|
/** Access methods that the user requested for this access grant. */
|
|
65944
66437
|
requested_access_methods: Array<{
|
|
65945
66438
|
/** Display name of the access method. */
|