Skip to content

Commit

Permalink
fix: Missing descriptions for acs_user (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Nov 27, 2024
1 parent ad6047a commit e949b31
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/lib/seam/connect/models/acs/acs-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,25 +234,25 @@ const common_acs_user = z
})
.merge(user_fields)

export const acs_user = common_acs_user.merge(
z
.object({
export const acs_user = common_acs_user
.merge(
z.object({
is_managed: z.literal(true),
})
.describe(
'Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
),
)
}),
)
.describe(
'Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
)

export const unmanaged_acs_user = common_acs_user.merge(
z
.object({
export const unmanaged_acs_user = common_acs_user
.merge(
z.object({
is_managed: z.literal(false),
})
.describe(
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
),
)
}),
)
.describe(
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
)

export type AcsUser = z.output<typeof acs_user>
export type AcsUnmanagedUser = z.output<typeof unmanaged_acs_user>
6 changes: 6 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,8 @@ export default {
type: 'object',
},
acs_user: {
description:
'Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
properties: {
access_schedule: {
description:
Expand Down Expand Up @@ -11725,6 +11727,8 @@ export default {
schema: {
properties: {
acs_user: {
description:
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
properties: {
access_schedule: {
description:
Expand Down Expand Up @@ -12118,6 +12122,8 @@ export default {
properties: {
acs_users: {
items: {
description:
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
properties: {
access_schedule: {
description:
Expand Down
3 changes: 3 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9240,6 +9240,7 @@ export interface Routes {
commonParams: {}
formData: {}
jsonResponse: {
/** Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
acs_user: {
/** ID of the `acs_user`. */
acs_user_id: string
Expand Down Expand Up @@ -9375,6 +9376,7 @@ export interface Routes {
}
formData: {}
jsonResponse: {
/** Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
acs_user: {
/** ID of the `acs_user`. */
acs_user_id: string
Expand Down Expand Up @@ -9748,6 +9750,7 @@ export interface Routes {
}
formData: {}
jsonResponse: {
/** Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
acs_user: {
/** ID of the `acs_user`. */
acs_user_id: string
Expand Down

0 comments on commit e949b31

Please sign in to comment.