@warmhub/sdk-ts 0.81.0 → 0.82.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
@@ -803,6 +803,33 @@ type ShapeListResult = {
803
803
  componentRef?: string;
804
804
  }>;
805
805
  };
806
+ type ThingHistoryResult = {
807
+ thing?: {
808
+ wref: string;
809
+ kind: 'shape' | 'thing' | 'assertion' | 'collection';
810
+ shapeName?: string;
811
+ };
812
+ versions: Array<{
813
+ version: number;
814
+ wref: string;
815
+ thingName?: string;
816
+ thingKind?: string;
817
+ shapeName?: string;
818
+ operation: 'add' | 'revise' | 'retract';
819
+ retractReason?: string;
820
+ data?: unknown;
821
+ aboutWref?: string;
822
+ active: boolean;
823
+ createdAt: number;
824
+ committerWref?: string;
825
+ revisedBy?: string;
826
+ metadata?: {
827
+ durableId: string;
828
+ createdOn: number;
829
+ };
830
+ }>;
831
+ nextCursor?: string;
832
+ };
806
833
  type ThingGetManyResult$1 = {
807
834
  requested: number;
808
835
  items: Array<{
@@ -2884,7 +2911,7 @@ type ThingGraphResult = ThingDetail & {
2884
2911
  /** @internal */
2885
2912
  type ThingHistory = HistoryResult;
2886
2913
  /** @internal */
2887
- type HistoryResult = {
2914
+ type HistoryResult = ThingHistoryResult & {
2888
2915
  thing?: {
2889
2916
  wref: string;
2890
2917
  name?: string;
@@ -2902,6 +2929,7 @@ type HistoryResult = {
2902
2929
  thingKind?: string;
2903
2930
  shapeName?: string;
2904
2931
  data?: unknown;
2932
+ aboutWref?: string;
2905
2933
  committerWref?: string;
2906
2934
  /** #4848 Phase C: per-version author (renamed from createdByWref). */
2907
2935
  revisedBy?: string;
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-6FGMWOWC.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-CZWHY5TZ.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-6FGMWOWC.js';
2
- export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-6FGMWOWC.js';
1
+ import { WarmHubClient } from './chunk-CZWHY5TZ.js';
2
+ export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-CZWHY5TZ.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.81.0",
3
+ "version": "0.82.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.",