Skip to content

Commit 987538a

Browse files
authored
feat: Sync with Seam API via 8627580317e86fc0bc9dc35037c0f31148b5306a (#2652)
1 parent 2feffba commit 987538a

3 files changed

Lines changed: 83 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,21 @@ const account_reauthorization_requested = common_connected_account_warning
222222
'Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.',
223223
)
224224

225+
const being_deleted = common_connected_account_warning
226+
.extend({
227+
warning_code: z.literal('being_deleted').describe(warning_code_description),
228+
})
229+
.describe(
230+
'Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam.',
231+
)
232+
225233
const connected_account_warning = z
226234
.discriminatedUnion('warning_code', [
227235
scheduled_maintenance_window,
228236
unknown_issue_with_connected_account,
229237
salto_ks_subscription_limit_almost_reached,
230238
account_reauthorization_requested,
239+
being_deleted,
231240
])
232241
.describe('Warning associated with the connected account.')
233242

@@ -243,6 +252,7 @@ const _connected_account_warning_map = z.object({
243252
account_reauthorization_requested: account_reauthorization_requested
244253
.nullable()
245254
.optional(),
255+
being_deleted: being_deleted.nullable().optional(),
246256
})
247257

248258
export type ConnectedAccountWarningMap = z.infer<

src/lib/seam/connect/openapi.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10050,6 +10050,31 @@ export default {
1005010050
required: ['created_at', 'message', 'warning_code'],
1005110051
type: 'object',
1005210052
},
10053+
{
10054+
description:
10055+
'Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam.',
10056+
properties: {
10057+
created_at: {
10058+
description:
10059+
'Date and time at which Seam created the warning.',
10060+
format: 'date-time',
10061+
type: 'string',
10062+
},
10063+
message: {
10064+
description:
10065+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
10066+
type: 'string',
10067+
},
10068+
warning_code: {
10069+
description:
10070+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
10071+
enum: ['being_deleted'],
10072+
type: 'string',
10073+
},
10074+
},
10075+
required: ['created_at', 'message', 'warning_code'],
10076+
type: 'object',
10077+
},
1005310078
],
1005410079
},
1005510080
type: 'array',

src/lib/seam/connect/route-types.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13549,6 +13549,14 @@ export type Routes = {
1354913549
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1355013550
warning_code: 'account_reauthorization_requested'
1355113551
}
13552+
| {
13553+
/** Date and time at which Seam created the warning. */
13554+
created_at: string
13555+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
13556+
message: string
13557+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13558+
warning_code: 'being_deleted'
13559+
}
1355213560
)[]
1355313561
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
1355413562
custom_metadata: {
@@ -31477,6 +31485,14 @@ export type Routes = {
3147731485
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3147831486
warning_code: 'account_reauthorization_requested'
3147931487
}
31488+
| {
31489+
/** Date and time at which Seam created the warning. */
31490+
created_at: string
31491+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31492+
message: string
31493+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31494+
warning_code: 'being_deleted'
31495+
}
3148031496
)[]
3148131497
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
3148231498
custom_metadata: {
@@ -31652,6 +31668,14 @@ export type Routes = {
3165231668
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3165331669
warning_code: 'account_reauthorization_requested'
3165431670
}
31671+
| {
31672+
/** Date and time at which Seam created the warning. */
31673+
created_at: string
31674+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31675+
message: string
31676+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31677+
warning_code: 'being_deleted'
31678+
}
3165531679
)[]
3165631680
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
3165731681
custom_metadata: {
@@ -31863,6 +31887,14 @@ export type Routes = {
3186331887
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3186431888
warning_code: 'account_reauthorization_requested'
3186531889
}
31890+
| {
31891+
/** Date and time at which Seam created the warning. */
31892+
created_at: string
31893+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31894+
message: string
31895+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31896+
warning_code: 'being_deleted'
31897+
}
3186631898
)[]
3186731899
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
3186831900
custom_metadata: {
@@ -74794,6 +74826,14 @@ export type Routes = {
7479474826
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7479574827
warning_code: 'account_reauthorization_requested'
7479674828
}
74829+
| {
74830+
/** Date and time at which Seam created the warning. */
74831+
created_at: string
74832+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
74833+
message: string
74834+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
74835+
warning_code: 'being_deleted'
74836+
}
7479774837
)[]
7479874838
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
7479974839
custom_metadata: {
@@ -103877,6 +103917,14 @@ export type Routes = {
103877103917
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
103878103918
warning_code: 'account_reauthorization_requested'
103879103919
}
103920+
| {
103921+
/** Date and time at which Seam created the warning. */
103922+
created_at: string
103923+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
103924+
message: string
103925+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
103926+
warning_code: 'being_deleted'
103927+
}
103880103928
)[]
103881103929
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
103882103930
custom_metadata: {

0 commit comments

Comments
 (0)