Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/lib/seam/connect/models/access-grants/access-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ const cannot_create_requested_access_methods_error =
error_code: z
.literal('cannot_create_requested_access_methods')
.describe(error_code_description),
missing_device_ids: z
.array(z.string().uuid())
.optional()
.describe(
'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.',
),
})

const common_access_grant_warning = z.object({
Expand Down
6 changes: 6 additions & 0 deletions src/lib/seam/connect/models/events/access-grants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ export const access_grant_could_not_create_requested_access_methods_event =
error_message: z
.string()
.describe('Description of why the access methods could not be created.'),
missing_device_ids: z
.array(z.string().uuid())
.optional()
.describe(
'IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant.',
),
}).describe(`
---
route_path: /access_grants
Expand Down
36 changes: 36 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,12 @@ const openapi: OpenAPISpec = {
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
missing_device_ids: {
description:
'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.',
items: { format: 'uuid', type: 'string' },
type: 'array',
},
},
required: ['created_at', 'message', 'error_code'],
type: 'object',
Expand Down Expand Up @@ -18171,6 +18177,12 @@ const openapi: OpenAPISpec = {
],
type: 'string',
},
missing_device_ids: {
description:
'IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant.',
items: { format: 'uuid', type: 'string' },
type: 'array',
},
occurred_at: {
description: 'Date and time at which the event occurred.',
format: 'date-time',
Expand Down Expand Up @@ -35953,6 +35965,12 @@ const openapi: OpenAPISpec = {
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
missing_device_ids: {
description:
'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.',
items: { format: 'uuid', type: 'string' },
type: 'array',
},
},
required: [
'created_at',
Expand Down Expand Up @@ -36656,6 +36674,12 @@ const openapi: OpenAPISpec = {
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
missing_device_ids: {
description:
'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.',
items: { format: 'uuid', type: 'string' },
type: 'array',
},
},
required: [
'created_at',
Expand Down Expand Up @@ -37405,6 +37429,12 @@ const openapi: OpenAPISpec = {
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
missing_device_ids: {
description:
'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.',
items: { format: 'uuid', type: 'string' },
type: 'array',
},
},
required: [
'created_at',
Expand Down Expand Up @@ -38146,6 +38176,12 @@ const openapi: OpenAPISpec = {
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
missing_device_ids: {
description:
'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.',
items: { format: 'uuid', type: 'string' },
type: 'array',
},
},
required: [
'created_at',
Expand Down
30 changes: 30 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12581,6 +12581,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -12807,6 +12809,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -15662,6 +15666,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -15888,6 +15894,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -16088,6 +16096,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** List of pending mutations for the access grant. This shows updates that are in progress. */
pending_mutations: (
Expand Down Expand Up @@ -16297,6 +16307,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** List of pending mutations for the access grant. This shows updates that are in progress. */
pending_mutations: (
Expand Down Expand Up @@ -20168,6 +20180,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -44416,6 +44430,8 @@ export type Routes = {
event_type: 'access_grant.could_not_create_requested_access_methods'
/** Description of why the access methods could not be created. */
error_message: string
/** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
missing_device_ids?: string[] | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -47834,6 +47850,8 @@ export type Routes = {
event_type: 'access_grant.could_not_create_requested_access_methods'
/** Description of why the access methods could not be created. */
error_message: string
/** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
missing_device_ids?: string[] | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -73994,6 +74012,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -77703,6 +77723,8 @@ export type Routes = {
event_type: 'access_grant.could_not_create_requested_access_methods'
/** Description of why the access methods could not be created. */
error_message: string
/** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
missing_device_ids?: string[] | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -80601,6 +80623,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -81114,6 +81138,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -114960,6 +114986,8 @@ export type Routes = {
message: string
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'cannot_create_requested_access_methods'
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
missing_device_ids?: string[] | undefined
}[]
/** ID of the customization profile associated with the Access Grant. */
customization_profile_id?: string | undefined
Expand Down Expand Up @@ -116044,6 +116072,8 @@ export type Routes = {
event_type: 'access_grant.could_not_create_requested_access_methods'
/** Description of why the access methods could not be created. */
error_message: string
/** IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant. */
missing_device_ids?: string[] | undefined
}
| {
/** ID of the event. */
Expand Down
Loading