@warmhub/sdk-ts 0.65.0 → 0.66.0

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.
@@ -9341,7 +9341,7 @@ function validateWarmHubClientOptions(options) {
9341
9341
  throw new TypeError(`Unknown WarmHubClient option "${key}"${hint}`);
9342
9342
  }
9343
9343
  }
9344
- var SDK_VERSION = "0.65.0" ;
9344
+ var SDK_VERSION = "0.66.0" ;
9345
9345
  var DEFAULT_API_URL = "https://api.warmhub.ai";
9346
9346
  var UNBATCHED_TRPC_PATHS = /* @__PURE__ */ new Set([
9347
9347
  "repo.shapeInstanceCounts",
@@ -10712,6 +10712,46 @@ var WarmHubClient = class _WarmHubClient {
10712
10712
  throw toWarmHubError(error);
10713
10713
  }
10714
10714
  },
10715
+ /**
10716
+ * Browse the public "Explore" directory: every `visibility='public'` live
10717
+ * repository across all orgs, with search, org/activity/subscription/thing
10718
+ * filters, and sort. No auth required — anonymous callers see the same
10719
+ * public-only listing.
10720
+ *
10721
+ * Two mutually-exclusive modes. Browse mode paginates a filtered, sorted
10722
+ * listing (`search`/`org`/`activity`/`hasSubscriptions`/`minThings`/`sort`/
10723
+ * `limit`/`cursor`). Slugs mode is an exact-match batch lookup: pass up to
10724
+ * 12 `org/repo` slugs to resolve just those live public repos in input
10725
+ * order, ignoring every browse field. Combining `slugs` with any browse/
10726
+ * search/sort/filter field is a hard input error, not a silently-filtered
10727
+ * list.
10728
+ *
10729
+ * `total` and `orgs` (the org-filter facet) are returned on the first page
10730
+ * only — i.e. when `cursor` is absent.
10731
+ *
10732
+ * Cursor contract: cursors are short-lived resume tokens for the same query
10733
+ * and result scope. If filters, visibility, or backing streams change, the
10734
+ * backend may reject a saved cursor with `VALIDATION_ERROR` / `Invalid
10735
+ * cursor`; restart the query without `cursor` instead of retrying the stale
10736
+ * token.
10737
+ */
10738
+ explore: async (opts) => {
10739
+ try {
10740
+ return await this.trpc.repo.explore.query({
10741
+ search: opts?.search,
10742
+ org: opts?.org,
10743
+ activity: opts?.activity,
10744
+ hasSubscriptions: opts?.hasSubscriptions,
10745
+ minThings: opts?.minThings,
10746
+ sort: opts?.sort,
10747
+ limit: opts?.limit,
10748
+ cursor: opts?.cursor,
10749
+ slugs: opts?.slugs
10750
+ });
10751
+ } catch (error) {
10752
+ throw toWarmHubError(error);
10753
+ }
10754
+ },
10715
10755
  /**
10716
10756
  * Fetch a repository's `Content/Readme` markdown record.
10717
10757
  *
@@ -11844,7 +11884,8 @@ var WarmHubClient = class _WarmHubClient {
11844
11884
  componentRef: opts?.componentRef,
11845
11885
  excludeComponents: opts?.excludeComponents,
11846
11886
  excludeInfraShapes: opts?.excludeInfraShapes,
11847
- mode: opts?.mode
11887
+ mode: opts?.mode,
11888
+ nameMatch: opts?.nameMatch
11848
11889
  });
11849
11890
  } catch (error) {
11850
11891
  throw toWarmHubError(error);
@@ -12630,5 +12671,5 @@ re2js/build/index.js:
12630
12671
  */
12631
12672
 
12632
12673
  export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT2 as MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
12633
- //# sourceMappingURL=chunk-C2Q4D3JM.js.map
12634
- //# sourceMappingURL=chunk-C2Q4D3JM.js.map
12674
+ //# sourceMappingURL=chunk-U5Z6ZS6A.js.map
12675
+ //# sourceMappingURL=chunk-U5Z6ZS6A.js.map