@warmhub/sdk-ts 0.68.0 → 0.69.1

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.ts CHANGED
@@ -44,10 +44,12 @@ type CommitOperationKind = (typeof COMMIT_OPERATION_KINDS)[number];
44
44
  */
45
45
  declare const CLI_INSTALL_REPO_HEADER = "X-WarmHub-Install-Repo";
46
46
  /**
47
+ * HMAC signature header used by component CLI dispatch.
47
48
  * @see https://docs.warmhub.ai/sdk-reference/variables/cli_signature_header/
48
49
  */
49
50
  declare const CLI_SIGNATURE_HEADER = "X-WarmHub-Signature";
50
51
  /**
52
+ * Unix-seconds timestamp header used by component CLI dispatch.
51
53
  * @see https://docs.warmhub.ai/sdk-reference/variables/cli_timestamp_header/
52
54
  */
53
55
  declare const CLI_TIMESTAMP_HEADER = "X-WarmHub-Timestamp";
@@ -96,6 +98,7 @@ type CliHttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
96
98
  */
97
99
  declare function validateAgainstShape(data: Record<string, unknown>, shapeFields: Record<string, unknown>): ShapeValidatorResult;
98
100
  /**
101
+ * Warning details for input fields that the shape does not declare.
99
102
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/undeclaredfieldswarning/
100
103
  */
101
104
  type UndeclaredFieldsWarning = {
@@ -104,6 +107,7 @@ type UndeclaredFieldsWarning = {
104
107
  totalUndeclared?: number;
105
108
  };
106
109
  /**
110
+ * Discriminated result returned when input is validated against shape fields.
107
111
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/shapevalidatorresult/
108
112
  */
109
113
  type ShapeValidatorResult = {
@@ -236,6 +240,7 @@ type ActionRunStats = {
236
240
  processing: number;
237
241
  retry_wait: number;
238
242
  succeeded: number;
243
+ suppressed: number;
239
244
  failed_terminal: number;
240
245
  dead_letter: number;
241
246
  };
@@ -1489,6 +1494,7 @@ declare function countStreamAppendResultStatuses(results: StreamAppendResult$1['
1489
1494
 
1490
1495
  type CliCallVerificationFailureReason = 'missing-signature' | 'missing-timestamp' | 'invalid-timestamp' | 'missing-install-repo' | 'unsupported-method' | 'invalid-signature' | 'invalid-format' | 'expired' | 'invalid-body' | 'no-scheme-configured' | 'invalid-bearer' | 'invalid-api-key' | 'invalid-basic';
1491
1496
  /**
1497
+ * Error thrown when component CLI request verification fails.
1492
1498
  * @see https://docs.warmhub.ai/sdk-reference/classes/clicallverificationerror/
1493
1499
  */
1494
1500
  declare class CliCallVerificationError extends Error {
@@ -1496,6 +1502,7 @@ declare class CliCallVerificationError extends Error {
1496
1502
  constructor(reason: CliCallVerificationFailureReason, message: string);
1497
1503
  }
1498
1504
  /**
1505
+ * Authenticated component CLI request, parsed into its install and arguments.
1499
1506
  * @see https://docs.warmhub.ai/sdk-reference/interfaces/verifiedclicall/
1500
1507
  */
1501
1508
  interface VerifiedCliCall {
@@ -1552,6 +1559,7 @@ declare function verifyCliCall(request: Request, secrets: CliCallSecrets, opts?:
1552
1559
  type ShapeFields = Record<string, unknown>;
1553
1560
 
1554
1561
  /**
1562
+ * Collection type discriminator accepted by an add operation.
1555
1563
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/collectionaddtype/
1556
1564
  */
1557
1565
  type CollectionAddType = CollectionTag$1;
@@ -2446,6 +2454,7 @@ type GlobalSearchResult = {
2446
2454
  nextCursor?: string;
2447
2455
  };
2448
2456
  /**
2457
+ * Pagination controls for global repo and component search.
2449
2458
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/globalsearchoptions/
2450
2459
  */
2451
2460
  type GlobalSearchOptions = {
@@ -2848,7 +2857,7 @@ type LiveRepoEvent = {
2848
2857
  /** @internal */
2849
2858
  type ActionListRunsOptions = {
2850
2859
  subscriptionName?: string;
2851
- status?: 'pending' | 'running' | 'retry_wait' | 'succeeded' | 'failed_terminal' | 'dead_letter';
2860
+ status?: 'pending' | 'running' | 'processing' | 'retry_wait' | 'succeeded' | 'suppressed' | 'failed_terminal' | 'dead_letter';
2852
2861
  since?: number;
2853
2862
  limit?: number;
2854
2863
  };
@@ -3054,6 +3063,7 @@ type WherePredicate = (WherePredicateBase & {
3054
3063
  rhs?: never;
3055
3064
  });
3056
3065
  /**
3066
+ * Filters accepted by `client.thing.query` and related list operations.
3057
3067
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/filteroptions/
3058
3068
  */
3059
3069
  type FilterOptions = {
@@ -3371,6 +3381,7 @@ type RepoAccessResult = AccessResolveResult$1['repos'][number];
3371
3381
  */
3372
3382
  type OrgAccessResult = AccessResolveResult$1['orgs'][number];
3373
3383
  /**
3384
+ * HTTP client for WarmHub repository, organization, and component APIs.
3374
3385
  * @see https://docs.warmhub.ai/sdk-reference/classes/warmhubclient/
3375
3386
  */
3376
3387
  declare class WarmHubClient {
@@ -3493,9 +3504,10 @@ declare class WarmHubClient {
3493
3504
  */
3494
3505
  list: (orgName: string, repoName: string, opts?: ComponentListOptions) => Promise<ComponentList>;
3495
3506
  /**
3496
- * Search public registered components across all orgs (GH-4383).
3497
- * Public-only at launch. Distinct from listing components installed in a
3498
- * repo (`component.list`).
3507
+ * Search registered components visible to the caller across all orgs
3508
+ * (GH-4383): public components plus private components the caller can
3509
+ * read. Distinct from listing components installed in a repo
3510
+ * (`component.list`).
3499
3511
  */
3500
3512
  search: (query: string, opts?: GlobalSearchOptions) => Promise<GlobalSearchResult>;
3501
3513
  /**
@@ -3767,8 +3779,9 @@ declare class WarmHubClient {
3767
3779
  */
3768
3780
  list: (orgName: string, opts?: RepoListOptions) => Promise<RepoList>;
3769
3781
  /**
3770
- * Search public repos across all orgs (GH-4383). Public-only at launch;
3771
- * BM25 over name/description/shape vocabulary/README.
3782
+ * Search repos visible to the caller across all orgs (GH-4383): public
3783
+ * repos plus private repos the caller can read. BM25 over
3784
+ * name/description/shape vocabulary/README.
3772
3785
  */
3773
3786
  search: (query: string, opts?: GlobalSearchOptions) => Promise<GlobalSearchResult>;
3774
3787
  /**
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- 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_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall } from './chunk-GNNCLRNC.js';
1
+ 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_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall } from './chunk-RYQ5AAIU.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/dist/react.js CHANGED
@@ -1,5 +1,5 @@
1
- import { WarmHubClient } from './chunk-GNNCLRNC.js';
2
- export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-GNNCLRNC.js';
1
+ import { WarmHubClient } from './chunk-RYQ5AAIU.js';
2
+ export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-RYQ5AAIU.js';
3
3
  import { createContext, useMemo, useState, useEffect, useContext } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmhub/sdk-ts",
3
- "version": "0.68.0",
3
+ "version": "0.69.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "The TypeScript SDK for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",