Skip to content

Commit 07de299

Browse files
committed
feat: update to use new smartapps endpoints for managing API Access apps
1 parent 6ec2af4 commit 07de299

70 files changed

Lines changed: 3212 additions & 2795 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/many-things-enjoy.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
"@smartthings/cli": major
3+
---
4+
5+
Updated to use new smartapps endpoints for managing API Access apps.
6+
7+
* All commands under the old `apps` hierarchy have been renamed to `smartapps`.
8+
* The command to resend a confirmation URL to a Smart App has been renamed from `apps:register` to
9+
`smartapps:confirm`.
10+
* Lambda and Webhook Smart Apps can no longer be created or updated. Related commands have been removed.
11+
* OAuth-In Smart Apps are now referred to as API Access Smart Apps.
12+
* When creating an API Access Smart App, an account/organization id is now associated with the Smart App.
13+
If the user has access to more than one organization, they will be prompted for which to use.
14+
* Two new fields are available for API Access Smart Apps:
15+
* privacyPolicyUrl (required for business accounts)
16+
* corsDomains
17+
18+
Improved error messages when input or output is non-interactive and user does not specify everything on the command line.

‎README.md‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,6 @@ smartthings edge:channels:create --help
140140
<!-- Do not manually this file between the "BEGIN commands" and "END commands" comments. -->
141141
| Command | Description |
142142
| -- | -- |
143-
| apps [id-or-index] | get a specific app or a list of apps |
144-
| apps:authorize <arn> | authorize calls to your AWS Lambda function from SmartThings |
145-
| apps:create | create an app |
146-
| apps:delete [id] | delete an app |
147-
| apps:oauth [id-or-index] | get OAuth information for an app |
148-
| apps:oauth:generate [id] | regenerate the OAuth clientId and clientSecret of an app |
149-
| apps:oauth:update [id] | update the OAuth settings of an app |
150-
| apps:register [id] | send request to app target URL to confirm existence and authorize lifecycle events |
151-
| apps:settings [id-or-index] | get the settings of an app |
152-
| apps:settings:update [id] | update the settings of an app |
153-
| apps:update [id] | update the settings of the app |
154143
| capabilities [id-or-index] | get a specific capability or a list of capabilities |
155144
| capabilities:create | create a capability |
156145
| capabilities:delete [id] | delete a capability |
@@ -266,6 +255,16 @@ smartthings edge:channels:create --help
266255
| schema:delete [id] | unlink a Schema App from smartthings |
267256
| schema:regenerate [id] | regenerate the client id and secret of the Schema App link |
268257
| schema:update [id] | update a link to a Schema App |
258+
| smartapps [id-or-index] | get a specific Smart App or a list of Smart Apps |
259+
| smartapps:confirm [id] | send request to Smart App target URL to confirm existence and authorize lifecycle events |
260+
| smartapps:create | create a Smart App |
261+
| smartapps:delete [id] | delete a Smart App |
262+
| smartapps:oauth [id-or-index] | get OAuth information for a Smart App |
263+
| smartapps:oauth:generate [id] | regenerate the OAuth clientId and clientSecret of a Smart App |
264+
| smartapps:oauth:update [id] | update the OAuth settings of a Smart App |
265+
| smartapps:settings [id-or-index] | get the settings of a Smart App |
266+
| smartapps:settings:update [id] | update the settings of a Smart App |
267+
| smartapps:update [id] | update a Smart App |
269268
| virtualdevices [id-or-index] | list all virtual devices available in a user account or retrieve a single device |
270269
| virtualdevices:create | create a virtual device from a device profile id or definition |
271270
| virtualdevices:create-standard | create a virtual device from one of the standard prototypes |

‎jest.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const jestConfig: JestConfigWithTsJest = {
1818
'/src/commands/index.ts',
1919
'/src/lib/command/util/st-client-wrapper.ts',
2020
'/src/lib/colors.ts',
21+
'/src/build-tools',
2122
],
2223
modulePathIgnorePatterns: [
2324
'<rootDir>/dist',

‎src/__tests__/commands/apps.test.ts‎

Lines changed: 0 additions & 246 deletions
This file was deleted.

‎src/__tests__/commands/apps/authorize.test.ts‎

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)