openhome-cli 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -122,10 +122,12 @@ var ApiClient = class {
122
122
  if (metadata.personality_id) {
123
123
  form.append("personality_id", metadata.personality_id);
124
124
  }
125
- return this.request(ENDPOINTS.uploadCapability, {
126
- method: "POST",
127
- body: form
128
- });
125
+ return this.request(
126
+ ENDPOINTS.uploadCapability,
127
+ { method: "POST", body: form },
128
+ true
129
+ // uses JWT
130
+ );
129
131
  }
130
132
  async listAbilities() {
131
133
  const data = await this.request(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openhome-cli",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "CLI for managing OpenHome voice AI abilities",
5
5
  "type": "module",
6
6
  "bin": {
package/src/api/client.ts CHANGED
@@ -159,10 +159,11 @@ export class ApiClient implements IApiClient {
159
159
  form.append("personality_id", metadata.personality_id);
160
160
  }
161
161
 
162
- return this.request<UploadAbilityResponse>(ENDPOINTS.uploadCapability, {
163
- method: "POST",
164
- body: form,
165
- });
162
+ return this.request<UploadAbilityResponse>(
163
+ ENDPOINTS.uploadCapability,
164
+ { method: "POST", body: form },
165
+ true, // uses JWT
166
+ );
166
167
  }
167
168
 
168
169
  async listAbilities(): Promise<ListAbilitiesResponse> {