@joai/sdk 0.17.0 → 0.17.2

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/index.d.mts CHANGED
@@ -1732,6 +1732,7 @@ declare class TeamsResource {
1732
1732
  }): Promise<IAppResponse<unknown>>;
1733
1733
  updateLogo(teamSlug: string, logo: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
1734
1734
  updateCover(teamSlug: string, cover: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
1735
+ updateSetting(teamSlug: string, key: string, value: boolean | string | number | object | null): Promise<IAppResponse<TeamPrivate>>;
1735
1736
  }
1736
1737
  //#endregion
1737
1738
  //#region src/resources/stores.d.ts
@@ -1762,9 +1763,7 @@ declare class UpdatesResource {
1762
1763
  type?: string;
1763
1764
  tags?: string;
1764
1765
  with?: UpdateRelation[];
1765
- }): Promise<IAppResponse<{
1766
- data: Update[];
1767
- }>>;
1766
+ }): Promise<IAppResponse<Update[]>>;
1768
1767
  list(params?: {
1769
1768
  type?: UpdateType;
1770
1769
  active?: boolean;
package/dist/index.mjs CHANGED
@@ -742,6 +742,9 @@ var TeamsResource = class {
742
742
  updateCover(teamSlug, cover) {
743
743
  return this.http.post(`teams/${teamSlug}/cover`, { cover });
744
744
  }
745
+ updateSetting(teamSlug, key, value) {
746
+ return this.http.put(`teams/${teamSlug}/settings/${key}`, { value });
747
+ }
745
748
  };
746
749
  //#endregion
747
750
  //#region src/resources/stores.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/sdk",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "description": "JoAi public API SDK — build with your AI agents",
5
5
  "license": "MIT",
6
6
  "type": "module",