@seamapi/types 1.891.0 → 1.893.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 +191 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +660 -2
- package/dist/index.cjs +191 -6
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +31 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +31 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +162 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +20 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -2
- package/lib/seam/connect/models/devices/device-provider.js +3 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +50 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +31 -0
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +8 -8
- package/lib/seam/connect/models/user-identities/user-identity.js +1 -3
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +168 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +451 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +26 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +3 -0
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +1 -3
- package/src/lib/seam/connect/openapi.ts +202 -0
- package/src/lib/seam/connect/route-types.ts +494 -0
package/package.json
CHANGED
|
@@ -116,10 +116,21 @@ export const salto_ks_subscription_limit_exceeded =
|
|
|
116
116
|
'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
|
|
117
117
|
)
|
|
118
118
|
|
|
119
|
+
export const dormakaba_sites_disconnected = common_connected_account_error
|
|
120
|
+
.extend({
|
|
121
|
+
error_code: z
|
|
122
|
+
.literal('dormakaba_sites_disconnected')
|
|
123
|
+
.describe(error_code_description),
|
|
124
|
+
})
|
|
125
|
+
.describe(
|
|
126
|
+
'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.',
|
|
127
|
+
)
|
|
128
|
+
|
|
119
129
|
export const connected_account_error = z.discriminatedUnion('error_code', [
|
|
120
130
|
account_disconnected,
|
|
121
131
|
bridge_disconnected,
|
|
122
132
|
salto_ks_subscription_limit_exceeded,
|
|
133
|
+
dormakaba_sites_disconnected,
|
|
123
134
|
])
|
|
124
135
|
|
|
125
136
|
export type ConnectedAccountError = z.infer<typeof connected_account_error>
|
|
@@ -132,6 +143,9 @@ export const connected_account_error_map = z.object({
|
|
|
132
143
|
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
133
144
|
.nullable()
|
|
134
145
|
.optional(),
|
|
146
|
+
dormakaba_sites_disconnected: dormakaba_sites_disconnected
|
|
147
|
+
.nullable()
|
|
148
|
+
.optional(),
|
|
135
149
|
})
|
|
136
150
|
|
|
137
151
|
export type ConnectedAccountErrorMap = z.infer<
|
|
@@ -250,6 +264,16 @@ const setup_required = common_connected_account_warning
|
|
|
250
264
|
'Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup.',
|
|
251
265
|
)
|
|
252
266
|
|
|
267
|
+
const dormakaba_sites_unapproved = common_connected_account_warning
|
|
268
|
+
.extend({
|
|
269
|
+
warning_code: z
|
|
270
|
+
.literal('dormakaba_sites_unapproved')
|
|
271
|
+
.describe(warning_code_description),
|
|
272
|
+
})
|
|
273
|
+
.describe(
|
|
274
|
+
'Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.',
|
|
275
|
+
)
|
|
276
|
+
|
|
253
277
|
const connected_account_warning = z
|
|
254
278
|
.discriminatedUnion('warning_code', [
|
|
255
279
|
scheduled_maintenance_window,
|
|
@@ -259,6 +283,7 @@ const connected_account_warning = z
|
|
|
259
283
|
being_deleted,
|
|
260
284
|
provider_service_unavailable,
|
|
261
285
|
setup_required,
|
|
286
|
+
dormakaba_sites_unapproved,
|
|
262
287
|
])
|
|
263
288
|
.describe('Warning associated with the connected account.')
|
|
264
289
|
|
|
@@ -279,6 +304,7 @@ export const connected_account_warning_map = z.object({
|
|
|
279
304
|
.nullable()
|
|
280
305
|
.optional(),
|
|
281
306
|
setup_required: setup_required.nullable().optional(),
|
|
307
|
+
dormakaba_sites_unapproved: dormakaba_sites_unapproved.nullable().optional(),
|
|
282
308
|
})
|
|
283
309
|
|
|
284
310
|
export type ConnectedAccountWarningMap = z.infer<
|
|
@@ -54,6 +54,7 @@ export const DEVICE_PROVIDERS = {
|
|
|
54
54
|
KEYINCODE: 'keyincode',
|
|
55
55
|
DORMAKABA_AMBIANCE: 'dormakaba_ambiance',
|
|
56
56
|
ULTRALOQ: 'ultraloq',
|
|
57
|
+
DUSAW: 'dusaw',
|
|
57
58
|
SIFELY: 'sifely',
|
|
58
59
|
RING: 'ring',
|
|
59
60
|
ICAL: 'ical',
|
|
@@ -114,6 +115,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
114
115
|
'keyincode',
|
|
115
116
|
'sifely',
|
|
116
117
|
'omnitec',
|
|
118
|
+
'dusaw',
|
|
117
119
|
],
|
|
118
120
|
|
|
119
121
|
consumer_smartlocks: [
|
|
@@ -132,6 +134,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
132
134
|
'ultraloq',
|
|
133
135
|
'dormakaba_oracode',
|
|
134
136
|
'korelock',
|
|
137
|
+
'dusaw',
|
|
135
138
|
'keyincode',
|
|
136
139
|
'sifely',
|
|
137
140
|
],
|
|
@@ -91,9 +91,7 @@ const user_identity_warnings = z
|
|
|
91
91
|
.describe('Warnings associated with the user identity.')
|
|
92
92
|
|
|
93
93
|
const _user_identity_warning_map = z.object({
|
|
94
|
-
|
|
95
|
-
.optional()
|
|
96
|
-
.nullable(),
|
|
94
|
+
being_deleted: user_identity_being_deleted.optional().nullable(),
|
|
97
95
|
acs_user_profile_does_not_match_user_identity:
|
|
98
96
|
acs_user_profile_does_not_match_user_identity.optional().nullable(),
|
|
99
97
|
})
|
|
@@ -1437,6 +1437,41 @@ const openapi: OpenAPISpec = {
|
|
|
1437
1437
|
required: ['created_at', 'message', 'error_code'],
|
|
1438
1438
|
type: 'object',
|
|
1439
1439
|
},
|
|
1440
|
+
{
|
|
1441
|
+
description:
|
|
1442
|
+
'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.',
|
|
1443
|
+
properties: {
|
|
1444
|
+
created_at: {
|
|
1445
|
+
description:
|
|
1446
|
+
'Date and time at which Seam created the error.',
|
|
1447
|
+
format: 'date-time',
|
|
1448
|
+
type: 'string',
|
|
1449
|
+
},
|
|
1450
|
+
error_code: {
|
|
1451
|
+
description:
|
|
1452
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
1453
|
+
enum: ['dormakaba_sites_disconnected'],
|
|
1454
|
+
type: 'string',
|
|
1455
|
+
},
|
|
1456
|
+
is_bridge_error: {
|
|
1457
|
+
description:
|
|
1458
|
+
'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).',
|
|
1459
|
+
type: 'boolean',
|
|
1460
|
+
},
|
|
1461
|
+
is_connected_account_error: {
|
|
1462
|
+
description:
|
|
1463
|
+
'Indicates whether the error is related specifically to the connected account.',
|
|
1464
|
+
type: 'boolean',
|
|
1465
|
+
},
|
|
1466
|
+
message: {
|
|
1467
|
+
description:
|
|
1468
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
1469
|
+
type: 'string',
|
|
1470
|
+
},
|
|
1471
|
+
},
|
|
1472
|
+
required: ['created_at', 'message', 'error_code'],
|
|
1473
|
+
type: 'object',
|
|
1474
|
+
},
|
|
1440
1475
|
],
|
|
1441
1476
|
},
|
|
1442
1477
|
type: 'array',
|
|
@@ -12700,6 +12735,41 @@ const openapi: OpenAPISpec = {
|
|
|
12700
12735
|
],
|
|
12701
12736
|
type: 'object',
|
|
12702
12737
|
},
|
|
12738
|
+
{
|
|
12739
|
+
description:
|
|
12740
|
+
'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.',
|
|
12741
|
+
properties: {
|
|
12742
|
+
created_at: {
|
|
12743
|
+
description:
|
|
12744
|
+
'Date and time at which Seam created the error.',
|
|
12745
|
+
format: 'date-time',
|
|
12746
|
+
type: 'string',
|
|
12747
|
+
},
|
|
12748
|
+
error_code: {
|
|
12749
|
+
description:
|
|
12750
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
12751
|
+
enum: ['dormakaba_sites_disconnected'],
|
|
12752
|
+
type: 'string',
|
|
12753
|
+
},
|
|
12754
|
+
is_bridge_error: {
|
|
12755
|
+
description:
|
|
12756
|
+
'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).',
|
|
12757
|
+
type: 'boolean',
|
|
12758
|
+
},
|
|
12759
|
+
is_connected_account_error: {
|
|
12760
|
+
description:
|
|
12761
|
+
'Indicates whether the error is related specifically to the connected account.',
|
|
12762
|
+
type: 'boolean',
|
|
12763
|
+
},
|
|
12764
|
+
message: {
|
|
12765
|
+
description:
|
|
12766
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
12767
|
+
type: 'string',
|
|
12768
|
+
},
|
|
12769
|
+
},
|
|
12770
|
+
required: ['created_at', 'message', 'error_code'],
|
|
12771
|
+
type: 'object',
|
|
12772
|
+
},
|
|
12703
12773
|
],
|
|
12704
12774
|
},
|
|
12705
12775
|
type: 'array',
|
|
@@ -12992,6 +13062,31 @@ const openapi: OpenAPISpec = {
|
|
|
12992
13062
|
required: ['created_at', 'message', 'warning_code'],
|
|
12993
13063
|
type: 'object',
|
|
12994
13064
|
},
|
|
13065
|
+
{
|
|
13066
|
+
description:
|
|
13067
|
+
'Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.',
|
|
13068
|
+
properties: {
|
|
13069
|
+
created_at: {
|
|
13070
|
+
description:
|
|
13071
|
+
'Date and time at which Seam created the warning.',
|
|
13072
|
+
format: 'date-time',
|
|
13073
|
+
type: 'string',
|
|
13074
|
+
},
|
|
13075
|
+
message: {
|
|
13076
|
+
description:
|
|
13077
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
13078
|
+
type: 'string',
|
|
13079
|
+
},
|
|
13080
|
+
warning_code: {
|
|
13081
|
+
description:
|
|
13082
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
13083
|
+
enum: ['dormakaba_sites_unapproved'],
|
|
13084
|
+
type: 'string',
|
|
13085
|
+
},
|
|
13086
|
+
},
|
|
13087
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
13088
|
+
type: 'object',
|
|
13089
|
+
},
|
|
12995
13090
|
],
|
|
12996
13091
|
},
|
|
12997
13092
|
type: 'array',
|
|
@@ -13876,6 +13971,41 @@ const openapi: OpenAPISpec = {
|
|
|
13876
13971
|
required: ['created_at', 'message', 'error_code'],
|
|
13877
13972
|
type: 'object',
|
|
13878
13973
|
},
|
|
13974
|
+
{
|
|
13975
|
+
description:
|
|
13976
|
+
'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.',
|
|
13977
|
+
properties: {
|
|
13978
|
+
created_at: {
|
|
13979
|
+
description:
|
|
13980
|
+
'Date and time at which Seam created the error.',
|
|
13981
|
+
format: 'date-time',
|
|
13982
|
+
type: 'string',
|
|
13983
|
+
},
|
|
13984
|
+
error_code: {
|
|
13985
|
+
description:
|
|
13986
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
13987
|
+
enum: ['dormakaba_sites_disconnected'],
|
|
13988
|
+
type: 'string',
|
|
13989
|
+
},
|
|
13990
|
+
is_bridge_error: {
|
|
13991
|
+
description:
|
|
13992
|
+
'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).',
|
|
13993
|
+
type: 'boolean',
|
|
13994
|
+
},
|
|
13995
|
+
is_connected_account_error: {
|
|
13996
|
+
description:
|
|
13997
|
+
'Indicates whether the error is related specifically to the connected account.',
|
|
13998
|
+
type: 'boolean',
|
|
13999
|
+
},
|
|
14000
|
+
message: {
|
|
14001
|
+
description:
|
|
14002
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
14003
|
+
type: 'string',
|
|
14004
|
+
},
|
|
14005
|
+
},
|
|
14006
|
+
required: ['created_at', 'message', 'error_code'],
|
|
14007
|
+
type: 'object',
|
|
14008
|
+
},
|
|
13879
14009
|
],
|
|
13880
14010
|
},
|
|
13881
14011
|
type: 'array',
|
|
@@ -17433,6 +17563,7 @@ const openapi: OpenAPISpec = {
|
|
|
17433
17563
|
'keyincode',
|
|
17434
17564
|
'dormakaba_ambiance',
|
|
17435
17565
|
'ultraloq',
|
|
17566
|
+
'dusaw',
|
|
17436
17567
|
'sifely',
|
|
17437
17568
|
'ring',
|
|
17438
17569
|
'ical',
|
|
@@ -29639,6 +29770,41 @@ const openapi: OpenAPISpec = {
|
|
|
29639
29770
|
required: ['created_at', 'message', 'error_code'],
|
|
29640
29771
|
type: 'object',
|
|
29641
29772
|
},
|
|
29773
|
+
{
|
|
29774
|
+
description:
|
|
29775
|
+
'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.',
|
|
29776
|
+
properties: {
|
|
29777
|
+
created_at: {
|
|
29778
|
+
description:
|
|
29779
|
+
'Date and time at which Seam created the error.',
|
|
29780
|
+
format: 'date-time',
|
|
29781
|
+
type: 'string',
|
|
29782
|
+
},
|
|
29783
|
+
error_code: {
|
|
29784
|
+
description:
|
|
29785
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
29786
|
+
enum: ['dormakaba_sites_disconnected'],
|
|
29787
|
+
type: 'string',
|
|
29788
|
+
},
|
|
29789
|
+
is_bridge_error: {
|
|
29790
|
+
description:
|
|
29791
|
+
'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).',
|
|
29792
|
+
type: 'boolean',
|
|
29793
|
+
},
|
|
29794
|
+
is_connected_account_error: {
|
|
29795
|
+
description:
|
|
29796
|
+
'Indicates whether the error is related specifically to the connected account.',
|
|
29797
|
+
type: 'boolean',
|
|
29798
|
+
},
|
|
29799
|
+
message: {
|
|
29800
|
+
description:
|
|
29801
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
29802
|
+
type: 'string',
|
|
29803
|
+
},
|
|
29804
|
+
},
|
|
29805
|
+
required: ['created_at', 'message', 'error_code'],
|
|
29806
|
+
type: 'object',
|
|
29807
|
+
},
|
|
29642
29808
|
],
|
|
29643
29809
|
},
|
|
29644
29810
|
type: 'array',
|
|
@@ -32736,6 +32902,41 @@ const openapi: OpenAPISpec = {
|
|
|
32736
32902
|
required: ['created_at', 'message', 'error_code'],
|
|
32737
32903
|
type: 'object',
|
|
32738
32904
|
},
|
|
32905
|
+
{
|
|
32906
|
+
description:
|
|
32907
|
+
'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.',
|
|
32908
|
+
properties: {
|
|
32909
|
+
created_at: {
|
|
32910
|
+
description:
|
|
32911
|
+
'Date and time at which Seam created the error.',
|
|
32912
|
+
format: 'date-time',
|
|
32913
|
+
type: 'string',
|
|
32914
|
+
},
|
|
32915
|
+
error_code: {
|
|
32916
|
+
description:
|
|
32917
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
32918
|
+
enum: ['dormakaba_sites_disconnected'],
|
|
32919
|
+
type: 'string',
|
|
32920
|
+
},
|
|
32921
|
+
is_bridge_error: {
|
|
32922
|
+
description:
|
|
32923
|
+
'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).',
|
|
32924
|
+
type: 'boolean',
|
|
32925
|
+
},
|
|
32926
|
+
is_connected_account_error: {
|
|
32927
|
+
description:
|
|
32928
|
+
'Indicates whether the error is related specifically to the connected account.',
|
|
32929
|
+
type: 'boolean',
|
|
32930
|
+
},
|
|
32931
|
+
message: {
|
|
32932
|
+
description:
|
|
32933
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
32934
|
+
type: 'string',
|
|
32935
|
+
},
|
|
32936
|
+
},
|
|
32937
|
+
required: ['created_at', 'message', 'error_code'],
|
|
32938
|
+
type: 'object',
|
|
32939
|
+
},
|
|
32739
32940
|
],
|
|
32740
32941
|
},
|
|
32741
32942
|
type: 'array',
|
|
@@ -52049,6 +52250,7 @@ const openapi: OpenAPISpec = {
|
|
|
52049
52250
|
'keyincode',
|
|
52050
52251
|
'dormakaba_ambiance',
|
|
52051
52252
|
'ultraloq',
|
|
52253
|
+
'dusaw',
|
|
52052
52254
|
'sifely',
|
|
52053
52255
|
'ring',
|
|
52054
52256
|
'ical',
|