Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .changeset/many-things-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@smartthings/cli": major
---

Updated to use new smartapps endpoints for managing API Access apps.

* All commands under the old `apps` hierarchy have been renamed to `smartapps`.
* The command to resend a confirmation URL to a Smart App has been renamed from `apps:register` to
`smartapps:confirm`.
* Lambda and Webhook Smart Apps can no longer be created or updated. Related commands have been removed.
* OAuth-In Smart Apps are now referred to as API Access Smart Apps.
* When creating an API Access Smart App, an account/organization id is now associated with the Smart App.
If the user has access to more than one organization, they will be prompted for which to use.
* Two new fields are available for API Access Smart Apps:
* privacyPolicyUrl (required for business accounts)
* corsDomains

Improved error messages when input or output is non-interactive and user does not specify everything on the command line.
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,6 @@ smartthings edge:channels:create --help
<!-- Do not manually this file between the "BEGIN commands" and "END commands" comments. -->
| Command | Description |
| -- | -- |
| apps [id-or-index] | get a specific app or a list of apps |
| apps:authorize <arn> | authorize calls to your AWS Lambda function from SmartThings |
| apps:create | create an app |
| apps:delete [id] | delete an app |
| apps:oauth [id-or-index] | get OAuth information for an app |
| apps:oauth:generate [id] | regenerate the OAuth clientId and clientSecret of an app |
| apps:oauth:update [id] | update the OAuth settings of an app |
| apps:register [id] | send request to app target URL to confirm existence and authorize lifecycle events |
| apps:settings [id-or-index] | get the settings of an app |
| apps:settings:update [id] | update the settings of an app |
| apps:update [id] | update the settings of the app |
| capabilities [id-or-index] | get a specific capability or a list of capabilities |
| capabilities:create | create a capability |
| capabilities:delete [id] | delete a capability |
Expand Down Expand Up @@ -266,6 +255,16 @@ smartthings edge:channels:create --help
| schema:delete [id] | unlink a Schema App from smartthings |
| schema:regenerate [id] | regenerate the client id and secret of the Schema App link |
| schema:update [id] | update a link to a Schema App |
| smartapps [id-or-index] | get a specific Smart App or a list of Smart Apps |
| smartapps:confirm [id] | send request to Smart App target URL to confirm existence and authorize lifecycle events |
| smartapps:create | create a Smart App |
| smartapps:delete [id] | delete a Smart App |
| smartapps:oauth [id-or-index] | get OAuth information for a Smart App |
| smartapps:oauth:generate [id] | regenerate the OAuth clientId and clientSecret of a Smart App |
| smartapps:oauth:update [id] | update the OAuth settings of a Smart App |
| smartapps:settings [id-or-index] | get the settings of a Smart App |
| smartapps:settings:update [id] | update the settings of a Smart App |
| smartapps:update [id] | update a Smart App |
| virtualdevices [id-or-index] | list all virtual devices available in a user account or retrieve a single device |
| virtualdevices:create | create a virtual device from a device profile id or definition |
| virtualdevices:create-standard | create a virtual device from one of the standard prototypes |
Expand Down
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const jestConfig: JestConfigWithTsJest = {
'/src/commands/index.ts',
'/src/lib/command/util/st-client-wrapper.ts',
'/src/lib/colors.ts',
'/src/build-tools',
],
modulePathIgnorePatterns: [
'<rootDir>/dist',
Expand Down
246 changes: 0 additions & 246 deletions src/__tests__/commands/apps.test.ts

This file was deleted.

88 changes: 0 additions & 88 deletions src/__tests__/commands/apps/authorize.test.ts

This file was deleted.

Loading
Loading