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 05531c2
Show file tree
Hide file tree
Showing 3 changed files with 96 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
60 changes: 53 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 Expand Up @@ -25645,6 +25645,52 @@ export default {
'x-title': 'Set a Temperature Threshold',
},
},
'/thermostats/simulate/temperature_reached': {
post: {
operationId: 'thermostatsSimulateTemperatureReachedPost',
requestBody: {
content: {
'application/json': {
schema: {
properties: {
device_id: { format: 'uuid', type: 'string' },
temperature_celsius: { format: 'float', type: 'number' },
temperature_fahrenheit: { format: 'float', type: 'number' },
},
required: ['device_id'],
type: 'object',
},
},
},
},
responses: {
200: {
content: {
'application/json': {
schema: {
properties: { ok: { type: 'boolean' } },
required: ['ok'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [
{ api_key: [] },
{ pat_with_workspace: [] },
{ console_session_with_workspace: [] },
],
summary: '/thermostats/simulate/temperature_reached',
tags: ['/thermostats'],
'x-fern-sdk-group-name': ['thermostats', 'simulate'],
'x-fern-sdk-method-name': 'temperature_reached',
'x-response-key': null,
},
},
'/thermostats/update_climate_preset': {
patch: {
description:
Expand Down
Loading

0 comments on commit 05531c2

Please sign in to comment.