Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Jan 17, 2025
1 parent bd767c6 commit 96f4ed3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 75 deletions.
14 changes: 2 additions & 12 deletions src/lib/seam/connect/models/acs/acs-credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export const acs_credential = common_acs_credential.merge(
---
route_path: /acs/credentials
---
${getAcsCredentialDescription()}
Means by which a user gains access at an entrance. The \`acs_credential\` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.
`)

export const unmanaged_acs_credential = common_acs_credential.merge(
Expand All @@ -252,19 +252,9 @@ export const unmanaged_acs_credential = common_acs_credential.merge(
---
route_path: /acs/credentials/unmanaged
---
${getAcsCredentialDescription(false)}
Means by which a user gains access at an entrance. The \`unmanaged_acs_credential\` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.
`)

function getAcsCredentialDescription(is_managed = true): string {
const resource_name = is_managed
? 'acs_credential'
: 'unmanaged_acs_credential'
const management_clause = is_managed ? '' : ', which is not managed by Seam,'

return `Means by which a user gains access at an entrance.
The \`${resource_name}\` object${management_clause} represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`.trim()
}

export const acs_credential_on_encoder = z.object({
created_at: z
.string()
Expand Down
14 changes: 7 additions & 7 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ export default {
},
acs_credential: {
description:
'Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
'Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
properties: {
access_method: {
description:
Expand Down Expand Up @@ -2607,7 +2607,7 @@ export default {
oneOf: [
{
description:
'Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
'Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
properties: {
access_method: {
description:
Expand Down Expand Up @@ -2988,7 +2988,7 @@ export default {
},
{
description:
'Means by which a user gains access at an entrance.\nThe `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
'Means by which a user gains access at an entrance. The `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
properties: {
access_method: {
description:
Expand Down Expand Up @@ -3500,11 +3500,11 @@ export default {
error: { nullable: true },
result: {
description:
'Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
'Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
oneOf: [
{
description:
'Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
'Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
properties: {
access_method: {
description:
Expand Down Expand Up @@ -3882,7 +3882,7 @@ export default {
},
{
description:
'Means by which a user gains access at an entrance.\nThe `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
'Means by which a user gains access at an entrance. The `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
properties: {
access_method: {
description:
Expand Down Expand Up @@ -13488,7 +13488,7 @@ export default {
},
unmanaged_acs_credential: {
description:
'Means by which a user gains access at an entrance.\nThe `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
'Means by which a user gains access at an entrance. The `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.',
properties: {
access_method: {
description:
Expand Down
Loading

0 comments on commit 96f4ed3

Please sign in to comment.