Skip to content

Commit

Permalink
ci: Generate code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Nov 25, 2024
1 parent 63f9b05 commit 5a61bdd
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 7 deletions.
137 changes: 130 additions & 7 deletions test/snapshots/seam-blueprint.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ Generated by [AVA](https://avajs.dev).
},
{
deprecationMessage: '',
description: '',
description: 'Errors associated with the `acs_credential`.',
draftMessage: '',
format: 'list',
isDeprecated: false,
Expand Down Expand Up @@ -883,7 +883,7 @@ Generated by [AVA](https://avajs.dev).
},
{
deprecationMessage: '',
description: '',
description: 'Warnings associated with the `acs_credential`.',
draftMessage: '',
format: 'list',
isDeprecated: false,
Expand Down Expand Up @@ -3302,6 +3302,9 @@ Generated by [AVA](https://avajs.dev).
{
name: 'salto',
},
{
name: 'salto_ks',
},
{
name: 'lockly',
},
Expand Down Expand Up @@ -8086,6 +8089,99 @@ Generated by [AVA](https://avajs.dev).
title: 'Create a Credential for an ACS User',
undocumentedMessage: '',
},
{
codeSamples: [],
deprecationMessage: '',
description: 'Creates a new offline [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) for a specified [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
draftMessage: '',
isDeprecated: false,
isDraft: false,
isUndocumented: true,
name: 'create_offline_code',
path: '/acs/credentials/create_offline_code',
request: {
methods: [
'POST',
],
parameters: [
{
deprecationMessage: '',
description: 'ID of the ACS user to whom the new credential belongs.',
draftMessage: '',
format: 'id',
isDeprecated: false,
isDraft: false,
isRequired: true,
isUndocumented: false,
jsonType: 'string',
name: 'acs_user_id',
undocumentedMessage: '',
},
{
deprecationMessage: '',
description: 'IDs of the [`acs_entrance`s](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) for which the new credential grants access.',
draftMessage: '',
format: 'id',
isDeprecated: false,
isDraft: false,
isRequired: false,
isUndocumented: false,
jsonType: 'string',
name: 'allowed_acs_entrance_id',
undocumentedMessage: '',
},
{
deprecationMessage: '',
description: 'Date and time at which the validity of the new credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.',
draftMessage: '',
format: 'datetime',
isDeprecated: false,
isDraft: false,
isRequired: false,
isUndocumented: false,
jsonType: 'string',
name: 'ends_at',
undocumentedMessage: '',
},
{
deprecationMessage: '',
description: 'Indicates whether the code is one-time-use or reusable.',
draftMessage: '',
format: 'boolean',
isDeprecated: false,
isDraft: false,
isRequired: false,
isUndocumented: false,
jsonType: 'boolean',
name: 'is_one_time_use',
undocumentedMessage: '',
},
{
deprecationMessage: '',
description: 'Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
draftMessage: '',
format: 'datetime',
isDeprecated: false,
isDraft: false,
isRequired: false,
isUndocumented: false,
jsonType: 'string',
name: 'starts_at',
undocumentedMessage: '',
},
],
preferredMethod: 'POST',
semanticMethod: 'POST',
},
response: {
description: 'OK',
resourceType: 'acs_credential',
responseKey: 'acs_credential',
responseType: 'resource',
},
title: 'Create an Offline Credential for an ACS User',
undocumentedMessage: 'Unreleased.',
},
{
codeSamples: [],
deprecationMessage: '',
Expand Down Expand Up @@ -9040,7 +9136,7 @@ Generated by [AVA](https://avajs.dev).
parameters: [
{
deprecationMessage: '',
description: '`starts_at` and `ends_at` timestamps for the new `acs_user`\'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems.',
description: '`starts_at` and `ends_at` timestamps for the new `acs_user`\'s access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. `starts_at` defaults to the current time if not provided. `ends_at` is optional and must be a time in the future and after `starts_at`.',
draftMessage: '',
format: 'object',
isDeprecated: false,
Expand Down Expand Up @@ -9597,7 +9693,7 @@ Generated by [AVA](https://avajs.dev).
parameters: [
{
deprecationMessage: '',
description: '`starts_at` and `ends_at` timestamps for the `acs_user`\'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems.',
description: '`starts_at` and `ends_at` timestamps for the `acs_user`\'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`.',
draftMessage: '',
format: 'object',
isDeprecated: false,
Expand Down Expand Up @@ -11032,12 +11128,12 @@ Generated by [AVA](https://avajs.dev).
endpoints: [
{
codeSamples: [],
deprecationMessage: '',
deprecationMessage: 'Deleting a device is no longer supported and will be removed.',
description: '',
draftMessage: '',
isDeprecated: false,
isDraft: false,
isUndocumented: false,
isUndocumented: true,
name: 'delete',
path: '/devices/delete',
request: {
Expand Down Expand Up @@ -11067,7 +11163,7 @@ Generated by [AVA](https://avajs.dev).
responseType: 'void',
},
title: '',
undocumentedMessage: '',
undocumentedMessage: 'Deleting a device is no longer supported and will be removed.',
},
{
codeSamples: [],
Expand Down Expand Up @@ -15387,6 +15483,33 @@ Generated by [AVA](https://avajs.dev).
title: 'Set the Fan Mode Setting',
undocumentedMessage: '',
},
{
codeSamples: [],
deprecationMessage: '',
description: 'Sets the [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings) for a specified [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
draftMessage: '',
isDeprecated: false,
isDraft: false,
isUndocumented: false,
name: 'set_hvac_mode',
path: '/thermostats/set_hvac_mode',
request: {
methods: [
'POST',
],
parameters: [],
preferredMethod: 'POST',
semanticMethod: 'POST',
},
response: {
description: 'OK',
resourceType: 'action_attempt',
responseKey: 'action_attempt',
responseType: 'resource',
},
title: 'Set the HVAC Mode',
undocumentedMessage: '',
},
{
codeSamples: [],
deprecationMessage: '',
Expand Down
Binary file modified test/snapshots/seam-blueprint.test.ts.snap
Binary file not shown.

0 comments on commit 5a61bdd

Please sign in to comment.