seamapi / seam-cli

Command line interface for the Seam API
85 stars 2 forks source link

Accepted Provider Selection Broken #86

Closed sybohy closed 6 months ago

sybohy commented 6 months ago

When you create a connect webview via the CLI and try to select specific accepted_providers (e.g. Yale), the selection does not go through. Steps to reproduce:

  1. run seam (my local version is seam-cli@0.0.39)
  2. select connect-webviews, then create
  3. select accepted_providers and select yale
  4. issue command and note that payload has an empty array for accepted_providers
➜  ~ seam
✔ Select a command: / › connect-webviews
✔ Select a command: /connect_webviews › create

✔ [/connect_webviews/create] Parameters › accepted_providers
✔ accepted_providers: ›

✔ [/connect_webviews/create] Parameters › [Make API Call] /connect_webviews/create

/connect_webviews/create
Request Params:
{ accepted_providers: [] }

[200]
{
  connect_webview: {
    url: 'https://connect.getseam.com/connect_webviews/view?connect_webview_id=xxx&auth_token=yyy,
    status: 'pending',
    workspace_id: 'zzz',
    custom_metadata: {},
    accepted_devices: [],
    login_successful: false,
    selected_provider: null,
    accepted_providers: [
      'august',            'avigilon_alta',
      'brivo',             'schlage',
      'smartthings',       'yale',
      'nuki',              'salto',
      'controlbyweb',      'minut',
      'my_2n',             'kwikset',
      'ttlock',            'noiseaware',
      'igloohome',         'ecobee',
      'hubitat',           'four_suites',
      'dormakaba_oracode', 'lockly',
      'wyze',              'google_nest'
    ],
    any_device_allowed: false,
    connect_webview_id: 'xxx',
    custom_redirect_url: null,
    any_provider_allowed: false,
    device_selection_mode: 'none',
    wait_for_device_creation: false,
    custom_redirect_failure_url: null,
    automatically_manage_new_devices: true,
    created_at: '2024-02-05T22:29:26.432Z',
    authorized_at: null
  },
  ok: true
}
kainpets commented 6 months ago

@sybohy, I couldn't recreate the issue . Did u select the accepted provider with spacebar? For me it works whether I choose one or multiple providers

Screenshot 2024-02-17 at 20 32 02 Screenshot 2024-02-17 at 20 32 13
sybohy commented 6 months ago

user error 😅