@warmhub/sdk-ts 0.49.1 → 0.50.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.
package/dist/index.d.ts CHANGED
@@ -62,6 +62,18 @@ type ActionRun = {
62
62
  createdAt: number;
63
63
  updatedAt: number;
64
64
  };
65
+ type ActionRunStats = {
66
+ total: number;
67
+ byStatus: {
68
+ pending: number;
69
+ running: number;
70
+ processing: number;
71
+ retry_wait: number;
72
+ succeeded: number;
73
+ failed_terminal: number;
74
+ dead_letter: number;
75
+ };
76
+ };
65
77
  type AuthSyncResult = {
66
78
  success: boolean;
67
79
  };
@@ -118,6 +130,7 @@ type ComponentDetail = {
118
130
  version: number;
119
131
  data?: unknown;
120
132
  active: boolean;
133
+ synthesized?: boolean;
121
134
  aboutWref?: string;
122
135
  committerWref?: string;
123
136
  createdByWref?: string;
@@ -227,8 +240,10 @@ type StreamAppendInput$1 = {
227
240
  workspaceName?: never;
228
241
  committer?: string;
229
242
  message?: string;
230
- allocatedTokens?: Array<{
231
- tokenNumber: number;
243
+ allocatedTokens?: never;
244
+ allocatedTokenRanges: Array<{
245
+ start: number;
246
+ end: number;
232
247
  }>;
233
248
  operations: Array<{
234
249
  operation: 'add';
@@ -297,8 +312,9 @@ type StreamAppendInput$1 = {
297
312
  }>;
298
313
  };
299
314
  type StreamAppendResult$1 = {
300
- allocatedTokens: Array<{
301
- tokenNumber: number;
315
+ allocatedTokenRanges: Array<{
316
+ start: number;
317
+ end: number;
302
318
  }>;
303
319
  results: Array<{
304
320
  opIndex?: number;
@@ -434,6 +450,7 @@ type ThingGetManyResult$1 = {
434
450
  version: number;
435
451
  data?: unknown;
436
452
  active: boolean;
453
+ synthesized?: boolean;
437
454
  aboutWref?: string;
438
455
  committerWref?: string;
439
456
  createdByWref?: string;
@@ -486,6 +503,13 @@ type RepoDescribeResult$1 = {
486
503
  synthesized: boolean;
487
504
  }>;
488
505
  };
506
+ type RepoForCaller = {
507
+ orgName: string;
508
+ name: string;
509
+ displayName: string;
510
+ createdAt: number;
511
+ lastWriteAt?: number;
512
+ };
489
513
  type RepoListResult = {
490
514
  items: Array<{
491
515
  orgName: string;
@@ -830,7 +854,7 @@ declare function countStreamAppendResultStatuses(results: StreamAppendResult$1['
830
854
  */
831
855
  type StreamContinuationState = {
832
856
  streamId: string;
833
- allocatedTokens: StreamAppendResult$1['allocatedTokens'];
857
+ allocatedTokenRanges: StreamAppendResult$1['allocatedTokenRanges'];
834
858
  };
835
859
  /**
836
860
  * Caller-facing knobs for the SDK's auto-idempotency retry on transient
@@ -905,7 +929,7 @@ declare class AllStreamOperationsFailedError extends Error {
905
929
  * transport-ambiguous failure (timeout / 5xx / network reset / no-code
906
930
  * error) on the first chunk triggers a bounded retry — but only when
907
931
  * the first chunk contains exactly one operation. The SDK mints a
908
- * fresh `streamId`, resets `allocatedTokens`, sleeps with jittered
932
+ * fresh `streamId`, resets token continuation, sleeps with jittered
909
933
  * exponential backoff, and re-issues the same operation. The retried
910
934
  * call is observationally indistinguishable from a single clean
911
935
  * apply — the SDK does not rewrite the request or the response.
@@ -919,9 +943,7 @@ declare class AllStreamOperationsFailedError extends Error {
919
943
  * identity than the first attempt may have landed. Multi-chunk
920
944
  * mid-flight failures (`chunkResults.length > 0`) also bypass retry.
921
945
  * All three surface `PartialStreamSubmissionError` exactly as before;
922
- * the existing CLI continuation flags (`--stream-id`,
923
- * `--allocated-tokens`, `--operation-offset`) remain the manual-resume
924
- * contract.
946
+ * the existing full-input rerun contract remains the recovery path.
925
947
  *
926
948
  * Definite client rejections (`UNAUTHENTICATED`, `VALIDATION_ERROR`,
927
949
  * `CONFLICT`, `RATE_LIMITED`, `UNRESOLVED_TOKEN`, `ALREADY_RETRACTED`,
@@ -963,11 +985,10 @@ declare class AllStreamOperationsFailedError extends Error {
963
985
  * any subset of the defaults (`{ 3, 250, 8_000 }`).
964
986
  *
965
987
  * Retry is automatically suppressed when the caller supplies
966
- * `args.streamId` or a non-empty `args.allocatedTokens` (manual-resume
967
- * mode). Re-minting a fresh `streamId` on retry would invalidate the
968
- * `$N`/`#N` token bindings carried in the supplied `allocatedTokens`,
969
- * so a resumed call instead surfaces `PartialStreamSubmissionError` on
970
- * any append failure exactly as before.
988
+ * `args.streamId`. Re-minting a fresh `streamId` on retry would
989
+ * invalidate deterministic `$N`/`#N` token bindings, so caller-managed
990
+ * streams instead surface `PartialStreamSubmissionError` on append
991
+ * failure.
971
992
  *
972
993
  * The server remains stateless across `stream.append` calls — there is
973
994
  * no `streamId`-keyed dedup table. See docs/dev/commit-flow.md for the
@@ -986,7 +1007,6 @@ declare function submitOperationsViaStream(client: OperationStreamClient, args:
986
1007
  chunkSize?: number;
987
1008
  skipExisting?: boolean;
988
1009
  streamId?: string;
989
- allocatedTokens?: StreamAppendResult$1['allocatedTokens'];
990
1010
  /**
991
1011
  * Bounded auto-idempotency retry for transient first-chunk failures.
992
1012
  * Default-on (3 attempts, 250ms base, 8s cap, jittered exponential).
@@ -1534,7 +1554,6 @@ declare class OperationBuilder {
1534
1554
  * @param params.committer Optional wref identifying the actor on whose behalf the write is made.
1535
1555
  * @param params.chunkSize Maximum operations per stream append.
1536
1556
  * @param params.streamId Advanced continuation hook for caller-managed streams.
1537
- * @param params.allocatedTokens Advanced continuation hook for `$N` / `#N` token allocation state.
1538
1557
  * @param params.retry Retry policy for transient first-chunk failures, or `false` to disable automatic retry.
1539
1558
  * @see https://docs.warmhub.ai/sdk-reference/classes/operationbuilder/#commit
1540
1559
  */
@@ -1546,7 +1565,6 @@ declare class OperationBuilder {
1546
1565
  message?: string;
1547
1566
  chunkSize?: number;
1548
1567
  streamId?: string;
1549
- allocatedTokens?: StreamContinuationState['allocatedTokens'];
1550
1568
  retry?: RetryPolicyOptions | false;
1551
1569
  }): Promise<OperationSubmitResult$1>;
1552
1570
  private assertNotSubmitted;
@@ -1714,36 +1732,45 @@ type SubscriptionInfo = {
1714
1732
  * @internal
1715
1733
  */
1716
1734
  type SubscriptionList = SubscriptionInfo[];
1717
- /**
1718
- * Input shape for `client.subscription.create`. Non-cron subscriptions
1719
- * require either `shapeName` or `filterJson.shape` (or a shape-lifecycle
1720
- * `filterJson` such as `{ kind: 'shape' }`).
1721
- *
1722
- * @see https://docs.warmhub.ai/subscriptions/creating/
1723
- */
1724
- type SubscriptionCompatCreateInput = {
1735
+ /** @internal */
1736
+ type SubscriptionCompatCreateBase = {
1725
1737
  orgName: string;
1726
1738
  repoName: string;
1727
1739
  shapeName?: string;
1728
1740
  name: string;
1729
- filterJson?: Record<string, unknown>;
1730
- kind: 'webhook' | 'cron';
1731
- webhookUrl?: string;
1741
+ webhookUrl: string;
1732
1742
  fallbackWebhookUrl?: string;
1733
- cronConfig?: {
1734
- cronspec: string;
1735
- timezone?: string;
1736
- };
1737
1743
  allowTraceReentry?: boolean;
1738
1744
  notifyOnSuccess?: boolean;
1739
1745
  componentId?: string;
1740
- sourceRepoRef?: string;
1741
1746
  workspacePolicy?: never;
1742
1747
  /** @internal */
1743
1748
  actionContainer?: string;
1744
1749
  /** @internal */
1745
1750
  actionContainerConfig?: unknown;
1746
1751
  };
1752
+ /**
1753
+ * Input shape for `client.subscription.create`. Webhook subscriptions require
1754
+ * `filterJson`; cron subscriptions require `cronConfig`. Both variants require
1755
+ * `webhookUrl`.
1756
+ * Non-cron subscriptions must additionally identify a shape via `shapeName`
1757
+ * or `filterJson.shape` (or a shape-lifecycle `{ kind: 'shape' }` filter).
1758
+ *
1759
+ * @see https://docs.warmhub.ai/subscriptions/creating/
1760
+ */
1761
+ type SubscriptionCompatCreateInput = (SubscriptionCompatCreateBase & {
1762
+ kind: 'webhook';
1763
+ filterJson: Record<string, unknown>;
1764
+ sourceRepoRef?: string;
1765
+ }) | (SubscriptionCompatCreateBase & {
1766
+ kind: 'cron';
1767
+ cronConfig: {
1768
+ cronspec: string;
1769
+ timezone?: string;
1770
+ };
1771
+ filterJson?: Record<string, unknown>;
1772
+ sourceRepoRef?: never;
1773
+ });
1747
1774
  /**
1748
1775
  * Input shape for `client.subscription.update`. `orgName`, `repoName`, and
1749
1776
  * `name` identify the subscription; all other fields are optional and only
@@ -1776,6 +1803,8 @@ type SubscriptionCompatUpdateInput = {
1776
1803
  /** @internal */
1777
1804
  type ActionRunInfo = ActionRun;
1778
1805
  /** @internal */
1806
+ type ActionRunStatsInfo = ActionRunStats;
1807
+ /** @internal */
1779
1808
  type ActionAttemptInfo = ActionAttempt;
1780
1809
  /** @internal */
1781
1810
  type ActionNotificationInfo = ActionNotification;
@@ -2021,6 +2050,7 @@ type RepoWithStatsInfo = {
2021
2050
  };
2022
2051
  lastWriteAt?: number;
2023
2052
  hasErrors: boolean;
2053
+ failingSubscriptionName?: string;
2024
2054
  };
2025
2055
  /** @internal */
2026
2056
  type RepoListPageResult = Page<RepoWithStatsInfo>;
@@ -2034,6 +2064,24 @@ type RepoListPageOptions = {
2034
2064
  search?: string;
2035
2065
  sort?: RepoSort;
2036
2066
  };
2067
+ /**
2068
+ * A repository in the caller's cross-org listing (`client.repo.listForCaller`).
2069
+ *
2070
+ * `lastWriteAt` is the latest thing-write time and is absent for repos that
2071
+ * have never been written to (they order by `createdAt`). It reflects only
2072
+ * thing-version creation — not description edits, cron runs, or reads.
2073
+ *
2074
+ * Structural alias of the generated `RepoForCaller` (sourced from the backend
2075
+ * `repoForCallerSchema` via the backend-types pipeline), so it can't drift.
2076
+ *
2077
+ * @internal
2078
+ */
2079
+ type RepoRecentInfo = RepoForCaller;
2080
+ /** @internal */
2081
+ type RepoListForCallerOptions = {
2082
+ limit?: number;
2083
+ sort?: 'recent' | 'name';
2084
+ };
2037
2085
  /** @internal */
2038
2086
  type CurrentUserInfo = {
2039
2087
  id: string;
@@ -2197,6 +2245,8 @@ type ThingDetail = {
2197
2245
  version: number;
2198
2246
  active: boolean;
2199
2247
  data?: unknown;
2248
+ /** True on synthesized empty stubs from getReadme/getAgents when no row exists yet. */
2249
+ synthesized?: boolean;
2200
2250
  aboutWref?: string;
2201
2251
  committerWref?: string;
2202
2252
  createdByWref?: string;
@@ -2312,6 +2362,11 @@ type ActionListRunsOptions = {
2312
2362
  limit?: number;
2313
2363
  };
2314
2364
  /** @internal */
2365
+ type ActionRunStatsOptions = {
2366
+ subscriptionName?: string;
2367
+ since?: number;
2368
+ };
2369
+ /** @internal */
2315
2370
  type ActionLiveFeedOptions = {
2316
2371
  limit?: number;
2317
2372
  cursor?: string;
@@ -2633,12 +2688,17 @@ declare class WarmHubError extends Error {
2633
2688
  */
2634
2689
  readonly retryAfter?: number;
2635
2690
  /**
2636
- * Backend domain code from the response body. Set iff the backend wire
2691
+ * Canonical domain error code from the response body. Set iff the backend wire
2637
2692
  * carried a structured `error.code` string. Use this when the question is
2638
2693
  * "did the backend specifically say this?". For best-effort labelling that
2639
2694
  * also covers SDK-local transport codes (`NETWORK`, `CANCELLED`, the
2640
2695
  * generic `BACKEND` fallback), branch on {@link code} or {@link kind}.
2641
2696
  */
2697
+ readonly errorCode?: string;
2698
+ /**
2699
+ * @deprecated Use {@link errorCode}. Retained during the GH-3533 migration
2700
+ * window for callers that already branch on the old field.
2701
+ */
2642
2702
  readonly backendCode?: string;
2643
2703
  /**
2644
2704
  * Structured backend error details, when the response carried them. Branch on
@@ -2649,7 +2709,7 @@ declare class WarmHubError extends Error {
2649
2709
  * backend wire carried `data.warmhub.details`. See {@link WarmHubErrorDetails}.
2650
2710
  */
2651
2711
  readonly details?: WarmHubErrorDetails;
2652
- constructor(code: string, message: string, status?: number, hint?: string, retryAfter?: number, backendCode?: string, details?: WarmHubErrorDetails);
2712
+ constructor(code: string, message: string, status?: number, hint?: string, retryAfter?: number, errorCode?: string, details?: WarmHubErrorDetails);
2653
2713
  get kind(): ErrorKind;
2654
2714
  }
2655
2715
  /**
@@ -2896,7 +2956,6 @@ declare class WarmHubClient {
2896
2956
  * @param opts.chunkSize Maximum operations per stream append. Values are clamped by the SDK.
2897
2957
  * @param opts.skipExisting Return `noop` for add operations whose target already exists.
2898
2958
  * @param opts.streamId Advanced continuation hook for caller-managed streams.
2899
- * @param opts.allocatedTokens Advanced continuation hook for `$N` / `#N` token allocation state.
2900
2959
  * @param opts.retry Retry policy for transient first-chunk failures, or `false` to disable automatic retry.
2901
2960
  */
2902
2961
  apply: (orgName: string, repoName: string, message: string | undefined, operations: Operation[], opts?: {
@@ -2905,7 +2964,6 @@ declare class WarmHubClient {
2905
2964
  chunkSize?: number;
2906
2965
  skipExisting?: boolean;
2907
2966
  streamId?: string;
2908
- allocatedTokens?: StreamAppendResult$1["allocatedTokens"];
2909
2967
  retry?: RetryPolicyOptions | false;
2910
2968
  }) => Promise<OperationSubmitResult>;
2911
2969
  };
@@ -3132,19 +3190,23 @@ declare class WarmHubClient {
3132
3190
  */
3133
3191
  listPage: (orgName: string, opts?: RepoListPageOptions) => Promise<RepoListPageResult>;
3134
3192
  /**
3135
- * Fetch a repository's `Content/Readme` markdown record.
3193
+ * List the caller's repositories across every org they belong to, ordered
3194
+ * for recency by default (most recently written first), capped at `limit`.
3136
3195
  *
3137
- * The SDK contract allows `null`; current backend behavior returns a synthesized empty stub for repositories that have not committed README content yet. Callers should still null-check defensively.
3196
+ * Unlike `listPage`, this is user-level and resolves the caller's orgs
3197
+ * server-side, so you don't fan out one request per org to build an
3198
+ * account-wide view. Membership is the access filter and per-token
3199
+ * `allowedMatches` narrowing is not applied, so this requires an
3200
+ * interactive session — PAT and component-token callers are rejected. Use
3201
+ * the org-scoped `listPage` from token-authenticated contexts.
3138
3202
  */
3139
- getReadme: (orgName: string, repoName: string) => Promise<ThingDetail | null>;
3203
+ listForCaller: (opts?: RepoListForCallerOptions) => Promise<RepoRecentInfo[]>;
3140
3204
  /**
3141
- * Generate a README draft from the repository's current shapes, things, and assertions.
3205
+ * Fetch a repository's `Content/Readme` markdown record.
3142
3206
  *
3143
- * This does not commit the draft. Save returned content with `setReadme` after review.
3207
+ * The SDK contract allows `null`; current backend behavior returns a synthesized empty stub for repositories that have not committed README content yet. Callers should still null-check defensively.
3144
3208
  */
3145
- generateReadme: (orgName: string, repoName: string) => Promise<{
3146
- content: string;
3147
- }>;
3209
+ getReadme: (orgName: string, repoName: string) => Promise<ThingDetail | null>;
3148
3210
  /**
3149
3211
  * Fetch a repository's `Content/Agents` markdown record.
3150
3212
  *
@@ -3161,14 +3223,6 @@ declare class WarmHubClient {
3161
3223
  * Commit a new `Content/Agents` value through the normal commit pipeline.
3162
3224
  */
3163
3225
  setAgents: (orgName: string, repoName: string, content: string) => Promise<CommitApplyResult>;
3164
- /**
3165
- * Generate an AGENTS.md draft from the repository's current content and schema.
3166
- *
3167
- * This does not commit the draft. Save returned content with `setAgents` after review.
3168
- */
3169
- generateAgents: (orgName: string, repoName: string) => Promise<{
3170
- content: string;
3171
- }>;
3172
3226
  /**
3173
3227
  * Fetch the synthesized `Content/LlmsTxt` sitemap for a repository.
3174
3228
  *
@@ -3352,6 +3406,13 @@ declare class WarmHubClient {
3352
3406
  * The result can be filtered by subscription name, status, and start time.
3353
3407
  */
3354
3408
  listRuns: (orgName: string, repoName: string, opts?: ActionListRunsOptions) => Promise<ActionRunInfo[]>;
3409
+ /**
3410
+ * Aggregate run counts (total + per-status) for a repo or one subscription.
3411
+ *
3412
+ * Computed server-side over an optional `since` window — not bounded by the
3413
+ * `listRuns` row cap, so it reflects the full window regardless of volume.
3414
+ */
3415
+ runStats: (orgName: string, repoName: string, opts?: ActionRunStatsOptions) => Promise<ActionRunStatsInfo>;
3355
3416
  /**
3356
3417
  * List delivery attempts for one action run.
3357
3418
  */
@@ -3786,6 +3847,13 @@ declare class WarmHubClient {
3786
3847
  * The result can be filtered by subscription name, status, and start time.
3787
3848
  */
3788
3849
  listRuns: (orgName: string, repoName: string, opts?: ActionListRunsOptions) => Promise<ActionRunInfo[]>;
3850
+ /**
3851
+ * Aggregate run counts (total + per-status) for a repo or one subscription.
3852
+ *
3853
+ * Computed server-side over an optional `since` window — not bounded by the
3854
+ * `listRuns` row cap, so it reflects the full window regardless of volume.
3855
+ */
3856
+ runStats: (orgName: string, repoName: string, opts?: ActionRunStatsOptions) => Promise<ActionRunStatsInfo>;
3789
3857
  /**
3790
3858
  * List delivery attempts for one action run.
3791
3859
  */
@@ -3804,4 +3872,4 @@ declare class WarmHubClient {
3804
3872
  private watchRepoQuery;
3805
3873
  }
3806
3874
 
3807
- export { type AboutOptions, type AboutResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAbout, type CollectionTag, type ComponentInfo, type ComponentInstallSystemResult, type ComponentList, type ComponentListOptions, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type ErrorKind, type FilterOptions, type FilterResult, type FunctionLogMode, type HeadResult, type HistoryResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationSubmitResult, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, type RefLink, type RefsOptions, type RefsResult, type RenameResult, type RepoConfigureStatsView, type RepoDescribeResult, type RepoInfo, type RepoList, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadOptions, type ThingHeadRequest, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, WarmHubClient, type WarmHubClientOptions, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
3875
+ export { type AboutOptions, type AboutResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAbout, type CollectionTag, type ComponentInfo, type ComponentInstallSystemResult, type ComponentList, type ComponentListOptions, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type ErrorKind, type FilterOptions, type FilterResult, type FunctionLogMode, type HeadResult, type HistoryResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationSubmitResult, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, type RefLink, type RefsOptions, type RefsResult, type RenameResult, type RepoConfigureStatsView, type RepoDescribeResult, type RepoInfo, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadOptions, type ThingHeadRequest, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, WarmHubClient, type WarmHubClientOptions, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
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-3JTVLMFV.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-O2IED7LD.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-3JTVLMFV.js';
2
- export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-3JTVLMFV.js';
1
+ import { WarmHubClient } from './chunk-O2IED7LD.js';
2
+ export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-O2IED7LD.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.49.1",
3
+ "version": "0.50.0",
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.",