@seamapi/types 1.309.0 → 1.311.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 +43 -392
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +93 -2328
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +33 -0
- package/lib/seam/connect/models/acs/acs-entrance.js +2 -0
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/dormakaba-community.d.ts +6 -0
- package/lib/seam/connect/models/acs/metadata/dormakaba-community.js +2 -0
- package/lib/seam/connect/models/acs/metadata/dormakaba-community.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/salto-space.d.ts +15 -0
- package/lib/seam/connect/models/acs/metadata/salto-space.js +7 -0
- package/lib/seam/connect/models/acs/metadata/salto-space.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +0 -312
- package/lib/seam/connect/models/action-attempts/action-attempt.js +0 -8
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +25 -0
- package/lib/seam/connect/openapi.js +17 -305
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +122 -2103
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +2 -0
- package/src/lib/seam/connect/models/acs/metadata/dormakaba-community.ts +2 -0
- package/src/lib/seam/connect/models/acs/metadata/salto-space.ts +11 -0
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +0 -8
- package/src/lib/seam/connect/openapi.ts +17 -305
- package/src/lib/seam/connect/route-types.ts +45 -2268
- package/lib/seam/connect/models/action-attempts/set-cool.d.ts +0 -80
- package/lib/seam/connect/models/action-attempts/set-cool.js +0 -25
- package/lib/seam/connect/models/action-attempts/set-cool.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +0 -80
- package/lib/seam/connect/models/action-attempts/set-heat-cool.js +0 -25
- package/lib/seam/connect/models/action-attempts/set-heat-cool.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/set-heat.d.ts +0 -80
- package/lib/seam/connect/models/action-attempts/set-heat.js +0 -25
- package/lib/seam/connect/models/action-attempts/set-heat.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +0 -80
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.js +0 -25
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.js.map +0 -1
- package/src/lib/seam/connect/models/action-attempts/set-cool.ts +0 -33
- package/src/lib/seam/connect/models/action-attempts/set-heat-cool.ts +0 -33
- package/src/lib/seam/connect/models/action-attempts/set-heat.ts +0 -33
- package/src/lib/seam/connect/models/action-attempts/set-thermostat-off.ts +0 -36
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
acs_entrance_salto_ks_metadata,
|
|
8
8
|
acs_entrance_visionline_metadata,
|
|
9
9
|
} from './metadata/index.js'
|
|
10
|
+
import { acs_entrance_salto_space_metadata } from './metadata/salto-space.js'
|
|
10
11
|
|
|
11
12
|
export const acs_entrance = z
|
|
12
13
|
.object({
|
|
@@ -33,6 +34,7 @@ export const acs_entrance = z
|
|
|
33
34
|
acs_entrance_dormakaba_community_metadata.optional(),
|
|
34
35
|
assa_abloy_vostio_metadata:
|
|
35
36
|
acs_entrance_assa_abloy_vostio_metadata.optional(),
|
|
37
|
+
salto_space_metadata: acs_entrance_salto_space_metadata.optional(),
|
|
36
38
|
})
|
|
37
39
|
.describe(
|
|
38
40
|
'Represents an [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
@@ -2,6 +2,8 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
export const acs_entrance_dormakaba_community_metadata = z.object({
|
|
4
4
|
access_point_name: z.string(),
|
|
5
|
+
common_area_number: z.number().optional(),
|
|
6
|
+
inner_access_points_names: z.array(z.string()).optional(),
|
|
5
7
|
})
|
|
6
8
|
|
|
7
9
|
export type AcsEntranceDormakabaCommunityMetadata = z.infer<
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const acs_entrance_salto_space_metadata = z.object({
|
|
4
|
+
door_name: z.string(),
|
|
5
|
+
ext_door_id: z.string(),
|
|
6
|
+
door_description: z.string().optional(),
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
export type AcsEntranceSaltoSpaceMetadata = z.infer<
|
|
10
|
+
typeof acs_entrance_salto_space_metadata
|
|
11
|
+
>
|
|
@@ -6,12 +6,8 @@ import { encode_credential_action_attempt } from './encode-credential.js'
|
|
|
6
6
|
import { lock_door_action_attempt } from './lock-door.js'
|
|
7
7
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js'
|
|
8
8
|
import { scan_credential_action_attempt } from './scan-credential.js'
|
|
9
|
-
import { set_cool_action_attempt } from './set-cool.js'
|
|
10
9
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js'
|
|
11
|
-
import { set_heat_action_attempt } from './set-heat.js'
|
|
12
|
-
import { set_heat_cool_action_attempt } from './set-heat-cool.js'
|
|
13
10
|
import { set_hvac_mode_action_attempt } from './set-hvac-mode.js'
|
|
14
|
-
import { set_thermostat_off_action_attempt } from './set-thermostat-off.js'
|
|
15
11
|
import { unlock_door_action_attempt } from './unlock-door.js'
|
|
16
12
|
|
|
17
13
|
export const action_attempt = z.union([
|
|
@@ -20,11 +16,7 @@ export const action_attempt = z.union([
|
|
|
20
16
|
...scan_credential_action_attempt.options,
|
|
21
17
|
...encode_credential_action_attempt.options,
|
|
22
18
|
...reset_sandbox_workspace_action_attempt.options,
|
|
23
|
-
...set_cool_action_attempt.options,
|
|
24
|
-
...set_heat_action_attempt.options,
|
|
25
|
-
...set_heat_cool_action_attempt.options,
|
|
26
19
|
...set_fan_mode_action_attempt.options,
|
|
27
|
-
...set_thermostat_off_action_attempt.options,
|
|
28
20
|
...set_hvac_mode_action_attempt.options,
|
|
29
21
|
...activate_climate_preset_action_attempt.options,
|
|
30
22
|
...deprecated_action_attempts,
|
|
@@ -607,7 +607,14 @@ export default {
|
|
|
607
607
|
type: 'string',
|
|
608
608
|
},
|
|
609
609
|
dormakaba_community_metadata: {
|
|
610
|
-
properties: {
|
|
610
|
+
properties: {
|
|
611
|
+
access_point_name: { type: 'string' },
|
|
612
|
+
common_area_number: { format: 'float', type: 'number' },
|
|
613
|
+
inner_access_points_names: {
|
|
614
|
+
items: { type: 'string' },
|
|
615
|
+
type: 'array',
|
|
616
|
+
},
|
|
617
|
+
},
|
|
611
618
|
required: ['access_point_name'],
|
|
612
619
|
type: 'object',
|
|
613
620
|
},
|
|
@@ -656,6 +663,15 @@ export default {
|
|
|
656
663
|
],
|
|
657
664
|
type: 'object',
|
|
658
665
|
},
|
|
666
|
+
salto_space_metadata: {
|
|
667
|
+
properties: {
|
|
668
|
+
door_description: { type: 'string' },
|
|
669
|
+
door_name: { type: 'string' },
|
|
670
|
+
ext_door_id: { type: 'string' },
|
|
671
|
+
},
|
|
672
|
+
required: ['door_name', 'ext_door_id'],
|
|
673
|
+
type: 'object',
|
|
674
|
+
},
|
|
659
675
|
visionline_metadata: {
|
|
660
676
|
properties: {
|
|
661
677
|
door_category: {
|
|
@@ -3141,234 +3157,6 @@ export default {
|
|
|
3141
3157
|
],
|
|
3142
3158
|
type: 'object',
|
|
3143
3159
|
},
|
|
3144
|
-
{
|
|
3145
|
-
description: 'Setting HVAC to cool.',
|
|
3146
|
-
properties: {
|
|
3147
|
-
action_attempt_id: {
|
|
3148
|
-
description: 'The ID of the action attempt.',
|
|
3149
|
-
format: 'uuid',
|
|
3150
|
-
type: 'string',
|
|
3151
|
-
'x-title': 'Action Attempt ID',
|
|
3152
|
-
},
|
|
3153
|
-
action_type: { enum: ['SET_COOL'], type: 'string' },
|
|
3154
|
-
error: { nullable: true },
|
|
3155
|
-
result: { nullable: true },
|
|
3156
|
-
status: { enum: ['pending'], type: 'string' },
|
|
3157
|
-
},
|
|
3158
|
-
required: [
|
|
3159
|
-
'action_attempt_id',
|
|
3160
|
-
'status',
|
|
3161
|
-
'result',
|
|
3162
|
-
'error',
|
|
3163
|
-
'action_type',
|
|
3164
|
-
],
|
|
3165
|
-
type: 'object',
|
|
3166
|
-
},
|
|
3167
|
-
{
|
|
3168
|
-
description: 'Setting HVAC to cool succeeded.',
|
|
3169
|
-
properties: {
|
|
3170
|
-
action_attempt_id: {
|
|
3171
|
-
description: 'The ID of the action attempt.',
|
|
3172
|
-
format: 'uuid',
|
|
3173
|
-
type: 'string',
|
|
3174
|
-
'x-title': 'Action Attempt ID',
|
|
3175
|
-
},
|
|
3176
|
-
action_type: { enum: ['SET_COOL'], type: 'string' },
|
|
3177
|
-
error: { nullable: true },
|
|
3178
|
-
result: { properties: {}, type: 'object' },
|
|
3179
|
-
status: { enum: ['success'], type: 'string' },
|
|
3180
|
-
},
|
|
3181
|
-
required: [
|
|
3182
|
-
'action_attempt_id',
|
|
3183
|
-
'status',
|
|
3184
|
-
'error',
|
|
3185
|
-
'action_type',
|
|
3186
|
-
'result',
|
|
3187
|
-
],
|
|
3188
|
-
type: 'object',
|
|
3189
|
-
},
|
|
3190
|
-
{
|
|
3191
|
-
description: 'Setting HVAC to cool failed.',
|
|
3192
|
-
properties: {
|
|
3193
|
-
action_attempt_id: {
|
|
3194
|
-
description: 'The ID of the action attempt.',
|
|
3195
|
-
format: 'uuid',
|
|
3196
|
-
type: 'string',
|
|
3197
|
-
'x-title': 'Action Attempt ID',
|
|
3198
|
-
},
|
|
3199
|
-
action_type: { enum: ['SET_COOL'], type: 'string' },
|
|
3200
|
-
error: {
|
|
3201
|
-
properties: {
|
|
3202
|
-
message: { type: 'string' },
|
|
3203
|
-
type: { type: 'string' },
|
|
3204
|
-
},
|
|
3205
|
-
required: ['type', 'message'],
|
|
3206
|
-
type: 'object',
|
|
3207
|
-
},
|
|
3208
|
-
result: { nullable: true },
|
|
3209
|
-
status: { enum: ['error'], type: 'string' },
|
|
3210
|
-
},
|
|
3211
|
-
required: [
|
|
3212
|
-
'action_attempt_id',
|
|
3213
|
-
'status',
|
|
3214
|
-
'result',
|
|
3215
|
-
'action_type',
|
|
3216
|
-
'error',
|
|
3217
|
-
],
|
|
3218
|
-
type: 'object',
|
|
3219
|
-
},
|
|
3220
|
-
{
|
|
3221
|
-
description: 'Setting HVAC to heat mode.',
|
|
3222
|
-
properties: {
|
|
3223
|
-
action_attempt_id: {
|
|
3224
|
-
description: 'The ID of the action attempt.',
|
|
3225
|
-
format: 'uuid',
|
|
3226
|
-
type: 'string',
|
|
3227
|
-
'x-title': 'Action Attempt ID',
|
|
3228
|
-
},
|
|
3229
|
-
action_type: { enum: ['SET_HEAT'], type: 'string' },
|
|
3230
|
-
error: { nullable: true },
|
|
3231
|
-
result: { nullable: true },
|
|
3232
|
-
status: { enum: ['pending'], type: 'string' },
|
|
3233
|
-
},
|
|
3234
|
-
required: [
|
|
3235
|
-
'action_attempt_id',
|
|
3236
|
-
'status',
|
|
3237
|
-
'result',
|
|
3238
|
-
'error',
|
|
3239
|
-
'action_type',
|
|
3240
|
-
],
|
|
3241
|
-
type: 'object',
|
|
3242
|
-
},
|
|
3243
|
-
{
|
|
3244
|
-
description: 'Setting HVAC to heat mode succeeded.',
|
|
3245
|
-
properties: {
|
|
3246
|
-
action_attempt_id: {
|
|
3247
|
-
description: 'The ID of the action attempt.',
|
|
3248
|
-
format: 'uuid',
|
|
3249
|
-
type: 'string',
|
|
3250
|
-
'x-title': 'Action Attempt ID',
|
|
3251
|
-
},
|
|
3252
|
-
action_type: { enum: ['SET_HEAT'], type: 'string' },
|
|
3253
|
-
error: { nullable: true },
|
|
3254
|
-
result: { properties: {}, type: 'object' },
|
|
3255
|
-
status: { enum: ['success'], type: 'string' },
|
|
3256
|
-
},
|
|
3257
|
-
required: [
|
|
3258
|
-
'action_attempt_id',
|
|
3259
|
-
'status',
|
|
3260
|
-
'error',
|
|
3261
|
-
'action_type',
|
|
3262
|
-
'result',
|
|
3263
|
-
],
|
|
3264
|
-
type: 'object',
|
|
3265
|
-
},
|
|
3266
|
-
{
|
|
3267
|
-
description: 'Setting HVAC to heat mode failed.',
|
|
3268
|
-
properties: {
|
|
3269
|
-
action_attempt_id: {
|
|
3270
|
-
description: 'The ID of the action attempt.',
|
|
3271
|
-
format: 'uuid',
|
|
3272
|
-
type: 'string',
|
|
3273
|
-
'x-title': 'Action Attempt ID',
|
|
3274
|
-
},
|
|
3275
|
-
action_type: { enum: ['SET_HEAT'], type: 'string' },
|
|
3276
|
-
error: {
|
|
3277
|
-
properties: {
|
|
3278
|
-
message: { type: 'string' },
|
|
3279
|
-
type: { type: 'string' },
|
|
3280
|
-
},
|
|
3281
|
-
required: ['type', 'message'],
|
|
3282
|
-
type: 'object',
|
|
3283
|
-
},
|
|
3284
|
-
result: { nullable: true },
|
|
3285
|
-
status: { enum: ['error'], type: 'string' },
|
|
3286
|
-
},
|
|
3287
|
-
required: [
|
|
3288
|
-
'action_attempt_id',
|
|
3289
|
-
'status',
|
|
3290
|
-
'result',
|
|
3291
|
-
'action_type',
|
|
3292
|
-
'error',
|
|
3293
|
-
],
|
|
3294
|
-
type: 'object',
|
|
3295
|
-
},
|
|
3296
|
-
{
|
|
3297
|
-
description: 'Setting HVAC to heat-cool mode.',
|
|
3298
|
-
properties: {
|
|
3299
|
-
action_attempt_id: {
|
|
3300
|
-
description: 'The ID of the action attempt.',
|
|
3301
|
-
format: 'uuid',
|
|
3302
|
-
type: 'string',
|
|
3303
|
-
'x-title': 'Action Attempt ID',
|
|
3304
|
-
},
|
|
3305
|
-
action_type: { enum: ['SET_HEAT_COOL'], type: 'string' },
|
|
3306
|
-
error: { nullable: true },
|
|
3307
|
-
result: { nullable: true },
|
|
3308
|
-
status: { enum: ['pending'], type: 'string' },
|
|
3309
|
-
},
|
|
3310
|
-
required: [
|
|
3311
|
-
'action_attempt_id',
|
|
3312
|
-
'status',
|
|
3313
|
-
'result',
|
|
3314
|
-
'error',
|
|
3315
|
-
'action_type',
|
|
3316
|
-
],
|
|
3317
|
-
type: 'object',
|
|
3318
|
-
},
|
|
3319
|
-
{
|
|
3320
|
-
description: 'Setting HVAC to heat-cool mode succeeded.',
|
|
3321
|
-
properties: {
|
|
3322
|
-
action_attempt_id: {
|
|
3323
|
-
description: 'The ID of the action attempt.',
|
|
3324
|
-
format: 'uuid',
|
|
3325
|
-
type: 'string',
|
|
3326
|
-
'x-title': 'Action Attempt ID',
|
|
3327
|
-
},
|
|
3328
|
-
action_type: { enum: ['SET_HEAT_COOL'], type: 'string' },
|
|
3329
|
-
error: { nullable: true },
|
|
3330
|
-
result: { properties: {}, type: 'object' },
|
|
3331
|
-
status: { enum: ['success'], type: 'string' },
|
|
3332
|
-
},
|
|
3333
|
-
required: [
|
|
3334
|
-
'action_attempt_id',
|
|
3335
|
-
'status',
|
|
3336
|
-
'error',
|
|
3337
|
-
'action_type',
|
|
3338
|
-
'result',
|
|
3339
|
-
],
|
|
3340
|
-
type: 'object',
|
|
3341
|
-
},
|
|
3342
|
-
{
|
|
3343
|
-
description: 'Setting heat-cool mode failed.',
|
|
3344
|
-
properties: {
|
|
3345
|
-
action_attempt_id: {
|
|
3346
|
-
description: 'The ID of the action attempt.',
|
|
3347
|
-
format: 'uuid',
|
|
3348
|
-
type: 'string',
|
|
3349
|
-
'x-title': 'Action Attempt ID',
|
|
3350
|
-
},
|
|
3351
|
-
action_type: { enum: ['SET_HEAT_COOL'], type: 'string' },
|
|
3352
|
-
error: {
|
|
3353
|
-
properties: {
|
|
3354
|
-
message: { type: 'string' },
|
|
3355
|
-
type: { type: 'string' },
|
|
3356
|
-
},
|
|
3357
|
-
required: ['type', 'message'],
|
|
3358
|
-
type: 'object',
|
|
3359
|
-
},
|
|
3360
|
-
result: { nullable: true },
|
|
3361
|
-
status: { enum: ['error'], type: 'string' },
|
|
3362
|
-
},
|
|
3363
|
-
required: [
|
|
3364
|
-
'action_attempt_id',
|
|
3365
|
-
'status',
|
|
3366
|
-
'result',
|
|
3367
|
-
'action_type',
|
|
3368
|
-
'error',
|
|
3369
|
-
],
|
|
3370
|
-
type: 'object',
|
|
3371
|
-
},
|
|
3372
3160
|
{
|
|
3373
3161
|
description: 'Setting fan mode.',
|
|
3374
3162
|
properties: {
|
|
@@ -3445,82 +3233,6 @@ export default {
|
|
|
3445
3233
|
],
|
|
3446
3234
|
type: 'object',
|
|
3447
3235
|
},
|
|
3448
|
-
{
|
|
3449
|
-
description: 'Turning HVAC off.',
|
|
3450
|
-
properties: {
|
|
3451
|
-
action_attempt_id: {
|
|
3452
|
-
description: 'The ID of the action attempt.',
|
|
3453
|
-
format: 'uuid',
|
|
3454
|
-
type: 'string',
|
|
3455
|
-
'x-title': 'Action Attempt ID',
|
|
3456
|
-
},
|
|
3457
|
-
action_type: { enum: ['SET_THERMOSTAT_OFF'], type: 'string' },
|
|
3458
|
-
error: { nullable: true },
|
|
3459
|
-
result: { nullable: true },
|
|
3460
|
-
status: { enum: ['pending'], type: 'string' },
|
|
3461
|
-
},
|
|
3462
|
-
required: [
|
|
3463
|
-
'action_attempt_id',
|
|
3464
|
-
'status',
|
|
3465
|
-
'result',
|
|
3466
|
-
'error',
|
|
3467
|
-
'action_type',
|
|
3468
|
-
],
|
|
3469
|
-
type: 'object',
|
|
3470
|
-
},
|
|
3471
|
-
{
|
|
3472
|
-
description: 'Turning HVAC off succeeded.',
|
|
3473
|
-
properties: {
|
|
3474
|
-
action_attempt_id: {
|
|
3475
|
-
description: 'The ID of the action attempt.',
|
|
3476
|
-
format: 'uuid',
|
|
3477
|
-
type: 'string',
|
|
3478
|
-
'x-title': 'Action Attempt ID',
|
|
3479
|
-
},
|
|
3480
|
-
action_type: { enum: ['SET_THERMOSTAT_OFF'], type: 'string' },
|
|
3481
|
-
error: { nullable: true },
|
|
3482
|
-
result: { properties: {}, type: 'object' },
|
|
3483
|
-
status: { enum: ['success'], type: 'string' },
|
|
3484
|
-
},
|
|
3485
|
-
required: [
|
|
3486
|
-
'action_attempt_id',
|
|
3487
|
-
'status',
|
|
3488
|
-
'error',
|
|
3489
|
-
'action_type',
|
|
3490
|
-
'result',
|
|
3491
|
-
],
|
|
3492
|
-
type: 'object',
|
|
3493
|
-
},
|
|
3494
|
-
{
|
|
3495
|
-
description: 'Turning HVAC off failed.',
|
|
3496
|
-
properties: {
|
|
3497
|
-
action_attempt_id: {
|
|
3498
|
-
description: 'The ID of the action attempt.',
|
|
3499
|
-
format: 'uuid',
|
|
3500
|
-
type: 'string',
|
|
3501
|
-
'x-title': 'Action Attempt ID',
|
|
3502
|
-
},
|
|
3503
|
-
action_type: { enum: ['SET_THERMOSTAT_OFF'], type: 'string' },
|
|
3504
|
-
error: {
|
|
3505
|
-
properties: {
|
|
3506
|
-
message: { type: 'string' },
|
|
3507
|
-
type: { type: 'string' },
|
|
3508
|
-
},
|
|
3509
|
-
required: ['type', 'message'],
|
|
3510
|
-
type: 'object',
|
|
3511
|
-
},
|
|
3512
|
-
result: { nullable: true },
|
|
3513
|
-
status: { enum: ['error'], type: 'string' },
|
|
3514
|
-
},
|
|
3515
|
-
required: [
|
|
3516
|
-
'action_attempt_id',
|
|
3517
|
-
'status',
|
|
3518
|
-
'result',
|
|
3519
|
-
'action_type',
|
|
3520
|
-
'error',
|
|
3521
|
-
],
|
|
3522
|
-
type: 'object',
|
|
3523
|
-
},
|
|
3524
3236
|
{
|
|
3525
3237
|
description: 'Setting HVAC mode.',
|
|
3526
3238
|
properties: {
|