@warmhub/sdk-ts 0.64.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.64.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",
@@ -9939,6 +9939,23 @@ var WarmHubClient = class _WarmHubClient {
9939
9939
  throw toWarmHubError(error);
9940
9940
  }
9941
9941
  },
9942
+ /**
9943
+ * Install lifecycle timeline from the durable install-events log (GH-4690).
9944
+ * Omit `componentRef` for the repo-wide activity feed; pass `Org/Name` for a
9945
+ * single component's history.
9946
+ */
9947
+ history: async (orgName, repoName, opts) => {
9948
+ try {
9949
+ return await this.trpc.component.history.query({
9950
+ orgName,
9951
+ repoName,
9952
+ componentRef: opts?.componentRef,
9953
+ limit: opts?.limit
9954
+ });
9955
+ } catch (error) {
9956
+ throw toWarmHubError(error);
9957
+ }
9958
+ },
9942
9959
  /**
9943
9960
  * Install a registered component into a repository (GH-4610).
9944
9961
  *
@@ -10695,6 +10712,46 @@ var WarmHubClient = class _WarmHubClient {
10695
10712
  throw toWarmHubError(error);
10696
10713
  }
10697
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
+ },
10698
10755
  /**
10699
10756
  * Fetch a repository's `Content/Readme` markdown record.
10700
10757
  *
@@ -11827,7 +11884,8 @@ var WarmHubClient = class _WarmHubClient {
11827
11884
  componentRef: opts?.componentRef,
11828
11885
  excludeComponents: opts?.excludeComponents,
11829
11886
  excludeInfraShapes: opts?.excludeInfraShapes,
11830
- mode: opts?.mode
11887
+ mode: opts?.mode,
11888
+ nameMatch: opts?.nameMatch
11831
11889
  });
11832
11890
  } catch (error) {
11833
11891
  throw toWarmHubError(error);
@@ -12613,5 +12671,5 @@ re2js/build/index.js:
12613
12671
  */
12614
12672
 
12615
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 };
12616
- //# sourceMappingURL=chunk-CJWKJDVX.js.map
12617
- //# sourceMappingURL=chunk-CJWKJDVX.js.map
12674
+ //# sourceMappingURL=chunk-U5Z6ZS6A.js.map
12675
+ //# sourceMappingURL=chunk-U5Z6ZS6A.js.map