@seamapi/types 1.388.0 → 1.390.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 +214 -137
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4598 -609
- package/lib/seam/connect/models/acs/acs-credential.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-credential.js +1 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +102 -24
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -10
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js +25 -0
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -14
- package/lib/seam/connect/openapi.d.ts +21 -61
- package/lib/seam/connect/openapi.js +136 -80
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +4989 -1038
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/push-thermostat-programs.ts +36 -0
- package/src/lib/seam/connect/openapi.ts +140 -89
- package/src/lib/seam/connect/route-types.ts +5162 -478
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { deprecated_action_attempts } from './deprecated.js'
|
|
|
5
5
|
import { encode_access_method_action_attempt } from './encode-access-method.js'
|
|
6
6
|
import { encode_credential_action_attempt } from './encode-credential.js'
|
|
7
7
|
import { lock_door_action_attempt } from './lock-door.js'
|
|
8
|
+
import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js'
|
|
8
9
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js'
|
|
9
10
|
import { scan_credential_action_attempt } from './scan-credential.js'
|
|
10
11
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js'
|
|
@@ -25,6 +26,7 @@ export const action_attempt = z.union([
|
|
|
25
26
|
...activate_climate_preset_action_attempt.options,
|
|
26
27
|
...simulate_keypad_code_entry_action_attempt.options,
|
|
27
28
|
...simulate_manual_lock_via_keypad_action_attempt.options,
|
|
29
|
+
...push_thermostat_programs_action_attempt.options,
|
|
28
30
|
...deprecated_action_attempts,
|
|
29
31
|
]).describe(`
|
|
30
32
|
---
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
common_failed_action_attempt,
|
|
5
|
+
common_pending_action_attempt,
|
|
6
|
+
common_succeeded_action_attempt,
|
|
7
|
+
} from './common.js'
|
|
8
|
+
|
|
9
|
+
const action_type = z.literal('PUSH_THERMOSTAT_PROGRAMS')
|
|
10
|
+
|
|
11
|
+
const error = z.object({
|
|
12
|
+
type: z.string(),
|
|
13
|
+
message: z.string(),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const result = z.object({})
|
|
17
|
+
|
|
18
|
+
export const push_thermostat_programs_action_attempt = z.discriminatedUnion(
|
|
19
|
+
'status',
|
|
20
|
+
[
|
|
21
|
+
common_pending_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
})
|
|
25
|
+
.describe('Pushing thermostat weekly programs.'),
|
|
26
|
+
common_succeeded_action_attempt
|
|
27
|
+
.extend({
|
|
28
|
+
action_type,
|
|
29
|
+
result,
|
|
30
|
+
})
|
|
31
|
+
.describe('Pushing thermostat weekly programs succeeded.'),
|
|
32
|
+
common_failed_action_attempt
|
|
33
|
+
.extend({ action_type, error })
|
|
34
|
+
.describe('Pushing thermostat weekly programs failed.'),
|
|
35
|
+
],
|
|
36
|
+
)
|
|
@@ -1715,6 +1715,7 @@ export default {
|
|
|
1715
1715
|
'salto_ks_credential',
|
|
1716
1716
|
'assa_abloy_vostio_key',
|
|
1717
1717
|
'salto_space_key',
|
|
1718
|
+
'latch_access',
|
|
1718
1719
|
],
|
|
1719
1720
|
type: 'string',
|
|
1720
1721
|
},
|
|
@@ -3787,6 +3788,7 @@ export default {
|
|
|
3787
3788
|
'salto_ks_credential',
|
|
3788
3789
|
'assa_abloy_vostio_key',
|
|
3789
3790
|
'salto_space_key',
|
|
3791
|
+
'latch_access',
|
|
3790
3792
|
],
|
|
3791
3793
|
type: 'string',
|
|
3792
3794
|
},
|
|
@@ -4182,6 +4184,7 @@ export default {
|
|
|
4182
4184
|
'salto_ks_credential',
|
|
4183
4185
|
'assa_abloy_vostio_key',
|
|
4184
4186
|
'salto_space_key',
|
|
4187
|
+
'latch_access',
|
|
4185
4188
|
],
|
|
4186
4189
|
type: 'string',
|
|
4187
4190
|
},
|
|
@@ -4978,6 +4981,7 @@ export default {
|
|
|
4978
4981
|
'salto_ks_credential',
|
|
4979
4982
|
'assa_abloy_vostio_key',
|
|
4980
4983
|
'salto_space_key',
|
|
4984
|
+
'latch_access',
|
|
4981
4985
|
],
|
|
4982
4986
|
type: 'string',
|
|
4983
4987
|
},
|
|
@@ -5371,6 +5375,7 @@ export default {
|
|
|
5371
5375
|
'salto_ks_credential',
|
|
5372
5376
|
'assa_abloy_vostio_key',
|
|
5373
5377
|
'salto_space_key',
|
|
5378
|
+
'latch_access',
|
|
5374
5379
|
],
|
|
5375
5380
|
type: 'string',
|
|
5376
5381
|
},
|
|
@@ -6348,6 +6353,104 @@ export default {
|
|
|
6348
6353
|
],
|
|
6349
6354
|
type: 'object',
|
|
6350
6355
|
},
|
|
6356
|
+
{
|
|
6357
|
+
description: 'Pushing thermostat weekly programs.',
|
|
6358
|
+
properties: {
|
|
6359
|
+
action_attempt_id: {
|
|
6360
|
+
description: 'ID of the action attempt.',
|
|
6361
|
+
format: 'uuid',
|
|
6362
|
+
type: 'string',
|
|
6363
|
+
},
|
|
6364
|
+
action_type: {
|
|
6365
|
+
enum: ['PUSH_THERMOSTAT_PROGRAMS'],
|
|
6366
|
+
type: 'string',
|
|
6367
|
+
},
|
|
6368
|
+
error: {
|
|
6369
|
+
description:
|
|
6370
|
+
'Errors associated with the action attempt. Null for pending action attempts.',
|
|
6371
|
+
nullable: true,
|
|
6372
|
+
},
|
|
6373
|
+
result: {
|
|
6374
|
+
description:
|
|
6375
|
+
'Result of the action attempt. Null for pending action attempts.',
|
|
6376
|
+
nullable: true,
|
|
6377
|
+
},
|
|
6378
|
+
status: { enum: ['pending'], type: 'string' },
|
|
6379
|
+
},
|
|
6380
|
+
required: [
|
|
6381
|
+
'action_attempt_id',
|
|
6382
|
+
'status',
|
|
6383
|
+
'result',
|
|
6384
|
+
'error',
|
|
6385
|
+
'action_type',
|
|
6386
|
+
],
|
|
6387
|
+
type: 'object',
|
|
6388
|
+
},
|
|
6389
|
+
{
|
|
6390
|
+
description: 'Pushing thermostat weekly programs succeeded.',
|
|
6391
|
+
properties: {
|
|
6392
|
+
action_attempt_id: {
|
|
6393
|
+
description: 'ID of the action attempt.',
|
|
6394
|
+
format: 'uuid',
|
|
6395
|
+
type: 'string',
|
|
6396
|
+
},
|
|
6397
|
+
action_type: {
|
|
6398
|
+
enum: ['PUSH_THERMOSTAT_PROGRAMS'],
|
|
6399
|
+
type: 'string',
|
|
6400
|
+
},
|
|
6401
|
+
error: {
|
|
6402
|
+
description:
|
|
6403
|
+
'Errors associated with the action attempt. Null for successful action attempts.',
|
|
6404
|
+
nullable: true,
|
|
6405
|
+
},
|
|
6406
|
+
result: { properties: {}, type: 'object' },
|
|
6407
|
+
status: { enum: ['success'], type: 'string' },
|
|
6408
|
+
},
|
|
6409
|
+
required: [
|
|
6410
|
+
'action_attempt_id',
|
|
6411
|
+
'status',
|
|
6412
|
+
'error',
|
|
6413
|
+
'action_type',
|
|
6414
|
+
'result',
|
|
6415
|
+
],
|
|
6416
|
+
type: 'object',
|
|
6417
|
+
},
|
|
6418
|
+
{
|
|
6419
|
+
description: 'Pushing thermostat weekly programs failed.',
|
|
6420
|
+
properties: {
|
|
6421
|
+
action_attempt_id: {
|
|
6422
|
+
description: 'ID of the action attempt.',
|
|
6423
|
+
format: 'uuid',
|
|
6424
|
+
type: 'string',
|
|
6425
|
+
},
|
|
6426
|
+
action_type: {
|
|
6427
|
+
enum: ['PUSH_THERMOSTAT_PROGRAMS'],
|
|
6428
|
+
type: 'string',
|
|
6429
|
+
},
|
|
6430
|
+
error: {
|
|
6431
|
+
properties: {
|
|
6432
|
+
message: { type: 'string' },
|
|
6433
|
+
type: { type: 'string' },
|
|
6434
|
+
},
|
|
6435
|
+
required: ['type', 'message'],
|
|
6436
|
+
type: 'object',
|
|
6437
|
+
},
|
|
6438
|
+
result: {
|
|
6439
|
+
description:
|
|
6440
|
+
'Result of the action attempt. Null for failed action attempts.',
|
|
6441
|
+
nullable: true,
|
|
6442
|
+
},
|
|
6443
|
+
status: { enum: ['error'], type: 'string' },
|
|
6444
|
+
},
|
|
6445
|
+
required: [
|
|
6446
|
+
'action_attempt_id',
|
|
6447
|
+
'status',
|
|
6448
|
+
'result',
|
|
6449
|
+
'action_type',
|
|
6450
|
+
'error',
|
|
6451
|
+
],
|
|
6452
|
+
type: 'object',
|
|
6453
|
+
},
|
|
6351
6454
|
{
|
|
6352
6455
|
properties: {
|
|
6353
6456
|
action_attempt_id: {
|
|
@@ -16666,6 +16769,7 @@ export default {
|
|
|
16666
16769
|
'salto_ks_credential',
|
|
16667
16770
|
'assa_abloy_vostio_key',
|
|
16668
16771
|
'salto_space_key',
|
|
16772
|
+
'latch_access',
|
|
16669
16773
|
],
|
|
16670
16774
|
type: 'string',
|
|
16671
16775
|
},
|
|
@@ -29858,86 +29962,12 @@ export default {
|
|
|
29858
29962
|
'application/json': {
|
|
29859
29963
|
schema: {
|
|
29860
29964
|
properties: {
|
|
29861
|
-
|
|
29862
|
-
|
|
29863
|
-
properties: {
|
|
29864
|
-
created_at: {
|
|
29865
|
-
description:
|
|
29866
|
-
'Date and time at which the thermostat weekly program was created.',
|
|
29867
|
-
format: 'date-time',
|
|
29868
|
-
type: 'string',
|
|
29869
|
-
},
|
|
29870
|
-
device_id: {
|
|
29871
|
-
description:
|
|
29872
|
-
'ID of the thermostat device the weekly program is for.',
|
|
29873
|
-
format: 'uuid',
|
|
29874
|
-
type: 'string',
|
|
29875
|
-
},
|
|
29876
|
-
friday_program_id: {
|
|
29877
|
-
description:
|
|
29878
|
-
'ID of the thermostat daily program to run on Fridays.',
|
|
29879
|
-
format: 'uuid',
|
|
29880
|
-
nullable: true,
|
|
29881
|
-
type: 'string',
|
|
29882
|
-
},
|
|
29883
|
-
monday_program_id: {
|
|
29884
|
-
description:
|
|
29885
|
-
'ID of the thermostat daily program to run on Mondays.',
|
|
29886
|
-
format: 'uuid',
|
|
29887
|
-
nullable: true,
|
|
29888
|
-
type: 'string',
|
|
29889
|
-
},
|
|
29890
|
-
saturday_program_id: {
|
|
29891
|
-
description:
|
|
29892
|
-
'ID of the thermostat daily program to run on Saturdays.',
|
|
29893
|
-
format: 'uuid',
|
|
29894
|
-
nullable: true,
|
|
29895
|
-
type: 'string',
|
|
29896
|
-
},
|
|
29897
|
-
sunday_program_id: {
|
|
29898
|
-
description:
|
|
29899
|
-
'ID of the thermostat daily program to run on Sundays.',
|
|
29900
|
-
format: 'uuid',
|
|
29901
|
-
nullable: true,
|
|
29902
|
-
type: 'string',
|
|
29903
|
-
},
|
|
29904
|
-
thursday_program_id: {
|
|
29905
|
-
description:
|
|
29906
|
-
'ID of the thermostat daily program to run on Thursdays.',
|
|
29907
|
-
format: 'uuid',
|
|
29908
|
-
nullable: true,
|
|
29909
|
-
type: 'string',
|
|
29910
|
-
},
|
|
29911
|
-
tuesday_program_id: {
|
|
29912
|
-
description:
|
|
29913
|
-
'ID of the thermostat daily program to run on Tuesdays.',
|
|
29914
|
-
format: 'uuid',
|
|
29915
|
-
nullable: true,
|
|
29916
|
-
type: 'string',
|
|
29917
|
-
},
|
|
29918
|
-
wednesday_program_id: {
|
|
29919
|
-
description:
|
|
29920
|
-
'ID of the thermostat daily program to run on Wednesdays.',
|
|
29921
|
-
format: 'uuid',
|
|
29922
|
-
nullable: true,
|
|
29923
|
-
type: 'string',
|
|
29924
|
-
},
|
|
29925
|
-
},
|
|
29926
|
-
required: [
|
|
29927
|
-
'device_id',
|
|
29928
|
-
'monday_program_id',
|
|
29929
|
-
'tuesday_program_id',
|
|
29930
|
-
'wednesday_program_id',
|
|
29931
|
-
'thursday_program_id',
|
|
29932
|
-
'friday_program_id',
|
|
29933
|
-
'saturday_program_id',
|
|
29934
|
-
'sunday_program_id',
|
|
29935
|
-
'created_at',
|
|
29936
|
-
],
|
|
29937
|
-
type: 'object',
|
|
29965
|
+
action_attempt: {
|
|
29966
|
+
$ref: '#/components/schemas/action_attempt',
|
|
29938
29967
|
},
|
|
29968
|
+
ok: { type: 'boolean' },
|
|
29939
29969
|
},
|
|
29940
|
-
required: ['
|
|
29970
|
+
required: ['action_attempt', 'ok'],
|
|
29941
29971
|
type: 'object',
|
|
29942
29972
|
},
|
|
29943
29973
|
},
|
|
@@ -29955,10 +29985,11 @@ export default {
|
|
|
29955
29985
|
],
|
|
29956
29986
|
summary: '/thermostats/activate_weekly_program',
|
|
29957
29987
|
tags: ['/thermostats'],
|
|
29988
|
+
'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
|
|
29958
29989
|
'x-fern-sdk-group-name': ['thermostats'],
|
|
29959
29990
|
'x-fern-sdk-method-name': 'activate_weekly_program',
|
|
29960
|
-
'x-fern-sdk-return-value': '
|
|
29961
|
-
'x-response-key': '
|
|
29991
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
29992
|
+
'x-response-key': 'action_attempt',
|
|
29962
29993
|
'x-title': 'Activate a Thermostat Weekly Program',
|
|
29963
29994
|
'x-undocumented': 'Unreleased.',
|
|
29964
29995
|
},
|
|
@@ -29990,8 +30021,13 @@ export default {
|
|
|
29990
30021
|
content: {
|
|
29991
30022
|
'application/json': {
|
|
29992
30023
|
schema: {
|
|
29993
|
-
properties: {
|
|
29994
|
-
|
|
30024
|
+
properties: {
|
|
30025
|
+
action_attempt: {
|
|
30026
|
+
$ref: '#/components/schemas/action_attempt',
|
|
30027
|
+
},
|
|
30028
|
+
ok: { type: 'boolean' },
|
|
30029
|
+
},
|
|
30030
|
+
required: ['action_attempt', 'ok'],
|
|
29995
30031
|
type: 'object',
|
|
29996
30032
|
},
|
|
29997
30033
|
},
|
|
@@ -30009,9 +30045,11 @@ export default {
|
|
|
30009
30045
|
],
|
|
30010
30046
|
summary: '/thermostats/clear_weekly_program',
|
|
30011
30047
|
tags: ['/thermostats'],
|
|
30048
|
+
'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
|
|
30012
30049
|
'x-fern-sdk-group-name': ['thermostats'],
|
|
30013
30050
|
'x-fern-sdk-method-name': 'clear_weekly_program',
|
|
30014
|
-
'x-
|
|
30051
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
30052
|
+
'x-response-key': 'action_attempt',
|
|
30015
30053
|
'x-title': 'Clear a Thermostat Weekly Program',
|
|
30016
30054
|
'x-undocumented': 'Unreleased.',
|
|
30017
30055
|
},
|
|
@@ -30441,8 +30479,13 @@ export default {
|
|
|
30441
30479
|
content: {
|
|
30442
30480
|
'application/json': {
|
|
30443
30481
|
schema: {
|
|
30444
|
-
properties: {
|
|
30445
|
-
|
|
30482
|
+
properties: {
|
|
30483
|
+
action_attempt: {
|
|
30484
|
+
$ref: '#/components/schemas/action_attempt',
|
|
30485
|
+
},
|
|
30486
|
+
ok: { type: 'boolean' },
|
|
30487
|
+
},
|
|
30488
|
+
required: ['action_attempt', 'ok'],
|
|
30446
30489
|
type: 'object',
|
|
30447
30490
|
},
|
|
30448
30491
|
},
|
|
@@ -30460,8 +30503,9 @@ export default {
|
|
|
30460
30503
|
],
|
|
30461
30504
|
summary: '/thermostats/daily_programs/update',
|
|
30462
30505
|
tags: ['/thermostats'],
|
|
30506
|
+
'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
|
|
30463
30507
|
'x-fern-ignore': true,
|
|
30464
|
-
'x-response-key':
|
|
30508
|
+
'x-response-key': 'action_attempt',
|
|
30465
30509
|
'x-title': 'Update a Thermostat Daily Program',
|
|
30466
30510
|
'x-undocumented': 'Unreleased.',
|
|
30467
30511
|
},
|
|
@@ -30516,8 +30560,13 @@ export default {
|
|
|
30516
30560
|
content: {
|
|
30517
30561
|
'application/json': {
|
|
30518
30562
|
schema: {
|
|
30519
|
-
properties: {
|
|
30520
|
-
|
|
30563
|
+
properties: {
|
|
30564
|
+
action_attempt: {
|
|
30565
|
+
$ref: '#/components/schemas/action_attempt',
|
|
30566
|
+
},
|
|
30567
|
+
ok: { type: 'boolean' },
|
|
30568
|
+
},
|
|
30569
|
+
required: ['action_attempt', 'ok'],
|
|
30521
30570
|
type: 'object',
|
|
30522
30571
|
},
|
|
30523
30572
|
},
|
|
@@ -30535,9 +30584,11 @@ export default {
|
|
|
30535
30584
|
],
|
|
30536
30585
|
summary: '/thermostats/daily_programs/update',
|
|
30537
30586
|
tags: ['/thermostats'],
|
|
30587
|
+
'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS',
|
|
30538
30588
|
'x-fern-sdk-group-name': ['thermostats', 'daily_programs'],
|
|
30539
30589
|
'x-fern-sdk-method-name': 'update',
|
|
30540
|
-
'x-
|
|
30590
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
30591
|
+
'x-response-key': 'action_attempt',
|
|
30541
30592
|
'x-title': 'Update a Thermostat Daily Program',
|
|
30542
30593
|
'x-undocumented': 'Unreleased.',
|
|
30543
30594
|
},
|