Skip to content

Commit 5dfb331

Browse files
razor-xseambot
andauthored
Update blueprint and fix endpoint deprecation message (#970)
* Update blueprint * ci: Generate docs * Pass though deprecationMessage and isDeprecated to endpoint * ci: Generate docs * Add deprecated-warning to api-endpoint * Remove extra newline * ci: Generate docs --------- Co-authored-by: Seam Bot <[email protected]>
1 parent 2311ecb commit 5dfb331

File tree

8 files changed

+167
-88
lines changed

8 files changed

+167
-88
lines changed

codegen/layouts/api-endpoint.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
- [Examples](#examples)
1010
{{/if}}
1111

12+
{{#if this.isDeprecated}}
13+
{{> deprecated-warning}}
14+
15+
{{/if}}
1216
{{{description}}}
1317

1418
{{#with primaryCodeSample}}

codegen/lib/layout/api-endpoint.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export interface ApiEndpointLayoutContext {
4040
workspaceScope: SeamWorkspaceScope
4141
isAlpha: boolean
4242
alphaMessage: string | undefined
43+
isDeprecated: boolean
44+
deprecationMessage: string
4345
request: {
4446
preferredMethod: string
4547
parameters: ApiEndpointParameter[]
@@ -124,6 +126,8 @@ export function setEndpointLayoutContext(
124126
file.workspaceScope = endpoint.workspaceScope
125127
file.isAlpha = (metadata.alpha ?? '').length > 0
126128
file.alphaMessage = metadata.alpha
129+
file.isDeprecated = endpoint.isDeprecated
130+
file.deprecationMessage = endpoint.deprecationMessage
127131

128132
file.authMethods = endpoint.authMethods
129133
.filter(

docs/api/_blueprint.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9414,7 +9414,7 @@
94149414
"path": "/acs/credential_pools/list",
94159415
"parentPath": "/acs/credential_pools",
94169416
"description": "Returns a list of all credential pools.",
9417-
"isDeprecated": false,
9417+
"isDeprecated": true,
94189418
"deprecationMessage": "Use `/user_identities/enrollment_automations/list` instead.",
94199419
"isUndocumented": true,
94209420
"undocumentedMessage": "Replaced by enrollment automations.",
@@ -9462,7 +9462,7 @@
94629462
],
94639463
"parentPath": "/acs",
94649464
"isUndocumented": true,
9465-
"isDeprecated": false,
9465+
"isDeprecated": true,
94669466
"isDraft": false
94679467
},
94689468
{
@@ -9476,7 +9476,7 @@
94769476
"path": "/acs/credential_provisioning_automations/launch",
94779477
"parentPath": "/acs/credential_provisioning_automations",
94789478
"description": "Launches a credential provisioning automation.",
9479-
"isDeprecated": false,
9479+
"isDeprecated": true,
94809480
"deprecationMessage": "Use `/user_identities/enrollment_automations/launch` instead.",
94819481
"isUndocumented": true,
94829482
"undocumentedMessage": "Replaced by enrollment automations.",
@@ -9579,7 +9579,7 @@
95799579
],
95809580
"parentPath": "/acs",
95819581
"isUndocumented": true,
9582-
"isDeprecated": false,
9582+
"isDeprecated": true,
95839583
"isDraft": false
95849584
},
95859585
{
@@ -31770,7 +31770,7 @@
3177031770
"path": "/devices/delete",
3177131771
"parentPath": "/devices",
3177231772
"description": "Deletes a specified [device](../core-concepts/devices/README.md).",
31773-
"isDeprecated": false,
31773+
"isDeprecated": true,
3177431774
"deprecationMessage": "Deleting a device is no longer supported and will be removed.",
3177531775
"isUndocumented": true,
3177631776
"undocumentedMessage": "Deleting a device is no longer supported and will be removed.",
@@ -44320,7 +44320,7 @@
4432044320
"path": "/locks/get",
4432144321
"parentPath": "/locks",
4432244322
"description": "Returns a specified [lock](https://docs.seam.co/latest/capability-guides/smart-locks).",
44323-
"isDeprecated": false,
44323+
"isDeprecated": true,
4432444324
"deprecationMessage": "Use `/devices/get` instead.",
4432544325
"isUndocumented": false,
4432644326
"undocumentedMessage": "",
@@ -58528,7 +58528,7 @@
5852858528
"path": "/thermostats/get",
5852958529
"parentPath": "/thermostats",
5853058530
"description": "Returns a specified [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). **Deprecated:** Will be removed. Use `/devices/get` instead.",
58531-
"isDeprecated": false,
58531+
"isDeprecated": true,
5853258532
"deprecationMessage": "Use `/devices/get` instead.",
5853358533
"isUndocumented": true,
5853458534
"undocumentedMessage": "Will be removed.",

docs/api/_report.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,11 @@ These items have been marked as draft.
517517

518518
These items are deprecated.
519519

520+
### Routes
521+
522+
- `/acs/credential_pools`: No deprecated message provided
523+
- `/acs/credential_provisioning_automations`: No deprecated message provided
524+
520525
### Resources
521526

522527
- `acs_credential_pool`: Not used.
@@ -539,6 +544,14 @@ These items are deprecated.
539544
- `unmanaged_acs_user.email`: use email_address.
540545
- `workspace.connect_partner_name`: Use `company_name` instead.
541546

547+
### Endpoints
548+
549+
- `/acs/credential_pools/list`: Use `/user_identities/enrollment_automations/list` instead.
550+
- `/acs/credential_provisioning_automations/launch`: Use `/user_identities/enrollment_automations/launch` instead.
551+
- `/devices/delete`: Deleting a device is no longer supported and will be removed.
552+
- `/locks/get`: Use `/devices/get` instead.
553+
- `/thermostats/get`: Use `/devices/get` instead.
554+
542555
### Endpoint parameters
543556

544557
- `/access_codes/create`

0 commit comments

Comments
 (0)