@flashbacktech/tsclient 0.4.56 → 0.4.57

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.cjs CHANGED
@@ -300,6 +300,18 @@ var OrganizationClient = class {
300
300
  const res = await this.http.get("/orgs/list-all");
301
301
  return res.data ?? [];
302
302
  }
303
+ /**
304
+ * Platform-admin only: typeahead org search. Returns up to `limit` matches
305
+ * (id+name) for the case-insensitive name substring `q` (or the first
306
+ * `limit` orgs when `q` is empty) plus the total match count, so a picker
307
+ * can show "N more — refine your search". Returns 403 unless platform admin.
308
+ */
309
+ async searchOrgs(q = "", limit = 10) {
310
+ const res = await this.http.get("/orgs/search", {
311
+ query: { q, limit }
312
+ });
313
+ return unwrapData(res);
314
+ }
303
315
  /**
304
316
  * Platform-admin only: provision a new organization + founding owner and
305
317
  * email the owner an invite link. The invite-only counterpart to public