Skip to content

Commit be0c68a

Browse files
committed
feat: Sync with Seam API via 4423d434fecec8f083a009dd98b0410f3fedfebc
1 parent dc6c0f9 commit be0c68a

4 files changed

Lines changed: 719 additions & 3 deletions

File tree

src/lib/seam/connect/models/connected-accounts/connected-account.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,21 @@ export const salto_ks_subscription_limit_exceeded =
116116
'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.',
117117
)
118118

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+
119129
export const connected_account_error = z.discriminatedUnion('error_code', [
120130
account_disconnected,
121131
bridge_disconnected,
122132
salto_ks_subscription_limit_exceeded,
133+
dormakaba_sites_disconnected,
123134
])
124135

125136
export type ConnectedAccountError = z.infer<typeof connected_account_error>
@@ -132,6 +143,9 @@ export const connected_account_error_map = z.object({
132143
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
133144
.nullable()
134145
.optional(),
146+
dormakaba_sites_disconnected: dormakaba_sites_disconnected
147+
.nullable()
148+
.optional(),
135149
})
136150

137151
export type ConnectedAccountErrorMap = z.infer<
@@ -250,6 +264,16 @@ const setup_required = common_connected_account_warning
250264
'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.',
251265
)
252266

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+
253277
const connected_account_warning = z
254278
.discriminatedUnion('warning_code', [
255279
scheduled_maintenance_window,
@@ -259,6 +283,7 @@ const connected_account_warning = z
259283
being_deleted,
260284
provider_service_unavailable,
261285
setup_required,
286+
dormakaba_sites_unapproved,
262287
])
263288
.describe('Warning associated with the connected account.')
264289

@@ -279,6 +304,7 @@ export const connected_account_warning_map = z.object({
279304
.nullable()
280305
.optional(),
281306
setup_required: setup_required.nullable().optional(),
307+
dormakaba_sites_unapproved: dormakaba_sites_unapproved.nullable().optional(),
282308
})
283309

284310
export type ConnectedAccountWarningMap = z.infer<

src/lib/seam/connect/models/user-identities/user-identity.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ const user_identity_warnings = z
9191
.describe('Warnings associated with the user identity.')
9292

9393
const _user_identity_warning_map = z.object({
94-
user_identity_being_deleted: user_identity_being_deleted
95-
.optional()
96-
.nullable(),
94+
being_deleted: user_identity_being_deleted.optional().nullable(),
9795
acs_user_profile_does_not_match_user_identity:
9896
acs_user_profile_does_not_match_user_identity.optional().nullable(),
9997
})

src/lib/seam/connect/openapi.ts

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,41 @@ const openapi: OpenAPISpec = {
14371437
required: ['created_at', 'message', 'error_code'],
14381438
type: 'object',
14391439
},
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+
},
14401475
],
14411476
},
14421477
type: 'array',
@@ -12700,6 +12735,41 @@ const openapi: OpenAPISpec = {
1270012735
],
1270112736
type: 'object',
1270212737
},
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+
},
1270312773
],
1270412774
},
1270512775
type: 'array',
@@ -12992,6 +13062,31 @@ const openapi: OpenAPISpec = {
1299213062
required: ['created_at', 'message', 'warning_code'],
1299313063
type: 'object',
1299413064
},
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+
},
1299513090
],
1299613091
},
1299713092
type: 'array',
@@ -13876,6 +13971,41 @@ const openapi: OpenAPISpec = {
1387613971
required: ['created_at', 'message', 'error_code'],
1387713972
type: 'object',
1387813973
},
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+
},
1387914009
],
1388014010
},
1388114011
type: 'array',
@@ -29640,6 +29770,41 @@ const openapi: OpenAPISpec = {
2964029770
required: ['created_at', 'message', 'error_code'],
2964129771
type: 'object',
2964229772
},
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+
},
2964329808
],
2964429809
},
2964529810
type: 'array',
@@ -32737,6 +32902,41 @@ const openapi: OpenAPISpec = {
3273732902
required: ['created_at', 'message', 'error_code'],
3273832903
type: 'object',
3273932904
},
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+
},
3274032940
],
3274132941
},
3274232942
type: 'array',

0 commit comments

Comments
 (0)