@warmhub/sdk-ts 0.59.0 → 0.60.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
@@ -1,4 +1,4 @@
1
- declare const COMMIT_OPERATIONS: readonly ["add", "revise", "retract"];
1
+ declare const COMMIT_OPERATIONS: readonly ["add", "revise", "retract", "rename"];
2
2
  type CommitOperation = (typeof COMMIT_OPERATIONS)[number];
3
3
  declare const COMMIT_OPERATION_KINDS: readonly ["shape", "thing", "assertion", "collection"];
4
4
  type CommitOperationKind = (typeof COMMIT_OPERATION_KINDS)[number];
@@ -84,6 +84,10 @@ type CliHttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
84
84
  * The primitive vocabulary above is closed: any other type name (e.g. "text",
85
85
  * "integer", "json", "date") is rejected. See VALID_PRIMITIVE_TYPES in
86
86
  * ./shape-types.ts for the authoritative set.
87
+ * String `pattern` constraints use RE2 syntax and are evaluated with re2js so
88
+ * user-authored patterns run in linear time across backend, SDK, web, CLI, and
89
+ * worker-adjacent consumers. JavaScript-only constructs such as backreferences
90
+ * and lookarounds are rejected at shape-definition time.
87
91
  */
88
92
  /**
89
93
  * Maximum size, in bytes (UTF-8 encoded), allowed for a single content field value.
@@ -286,7 +290,7 @@ type CommitApplyResult = {
286
290
  operations: Array<{
287
291
  opIndex?: number;
288
292
  name: string;
289
- operation: 'add' | 'revise' | 'retract' | 'noop';
293
+ operation: 'add' | 'revise' | 'retract' | 'rename' | 'noop';
290
294
  version: number;
291
295
  dataHash: string;
292
296
  status?: 'applied' | 'noop';
@@ -324,11 +328,11 @@ type ComponentDetail = {
324
328
  synthesized?: boolean;
325
329
  aboutWref?: string;
326
330
  committerWref?: string;
327
- createdByWref?: string;
331
+ revisedBy?: string;
328
332
  metadata?: {
329
333
  durableId: string;
330
- thingCreatedAt: number;
331
- versionCreatedAt: number;
334
+ createdOn: number;
335
+ revisedOn: number;
332
336
  };
333
337
  };
334
338
  ownedShapes: Array<{
@@ -356,8 +360,8 @@ type ComponentDetail = {
356
360
  aboutWref?: string;
357
361
  metadata?: {
358
362
  durableId: string;
359
- thingCreatedAt: number;
360
- versionCreatedAt: number;
363
+ createdOn: number;
364
+ revisedOn: number;
361
365
  };
362
366
  }>;
363
367
  };
@@ -504,6 +508,11 @@ type StreamAppendInput$1 = {
504
508
  kind?: 'shape' | 'thing' | 'assertion' | 'collection';
505
509
  reason?: string;
506
510
  leaseId?: string;
511
+ } | {
512
+ operation: 'rename';
513
+ name: string;
514
+ newName: string;
515
+ kind?: 'shape' | 'thing' | 'assertion' | 'collection';
507
516
  }>;
508
517
  };
509
518
  type StreamAppendResult$1 = {
@@ -514,7 +523,7 @@ type StreamAppendResult$1 = {
514
523
  results: Array<{
515
524
  opIndex?: number;
516
525
  name: string;
517
- operation?: 'add' | 'revise' | 'retract' | 'noop';
526
+ operation?: 'add' | 'revise' | 'retract' | 'rename' | 'noop';
518
527
  version?: number;
519
528
  dataHash?: string;
520
529
  status?: 'success' | 'noop' | 'failed';
@@ -648,11 +657,11 @@ type ThingGetManyResult$1 = {
648
657
  synthesized?: boolean;
649
658
  aboutWref?: string;
650
659
  committerWref?: string;
651
- createdByWref?: string;
660
+ revisedBy?: string;
652
661
  metadata?: {
653
662
  durableId: string;
654
- thingCreatedAt: number;
655
- versionCreatedAt: number;
663
+ createdOn: number;
664
+ revisedOn: number;
656
665
  };
657
666
  }>;
658
667
  missing: Array<string>;
@@ -664,7 +673,7 @@ type ThingHeadVersionsResult$1 = {
664
673
  durableId: string;
665
674
  version: number;
666
675
  active: boolean;
667
- versionCreatedAt: number;
676
+ revisedOn: number;
668
677
  }>;
669
678
  missing: Array<string>;
670
679
  };
@@ -795,6 +804,13 @@ type ShapeChangeResult = {
795
804
  version: number;
796
805
  dataHash: string;
797
806
  };
807
+ type ShapeRemoveResult = {
808
+ name: string;
809
+ operation: 'add' | 'revise' | 'retract' | 'noop';
810
+ version: number;
811
+ dataHash: string;
812
+ removed: true;
813
+ };
798
814
  type SubscriptionBindCredentialsResult$1 = {
799
815
  bound: true;
800
816
  subscriptionName: string;
@@ -972,10 +988,37 @@ interface RetractOperation {
972
988
  */
973
989
  leaseId?: string;
974
990
  }
991
+ /**
992
+ * Rename operation accepted by `client.commit.apply` (#4848). Rewrites a thing's
993
+ * or shape's name in place — a version-less metadata op that records a from→to
994
+ * event but mints no new body version.
995
+ *
996
+ * @see https://docs.warmhub.ai/writes/operations/#rename-operations
997
+ */
998
+ interface RenameOperation {
999
+ /**
1000
+ * Operation discriminator. Required.
1001
+ */
1002
+ operation: 'rename';
1003
+ /**
1004
+ * Current target: `Shape/oldName` for a thing/assertion, or the plain shape
1005
+ * name for a shape.
1006
+ */
1007
+ name: string;
1008
+ /**
1009
+ * New bare name — within the same shape for a thing/assertion, or the new
1010
+ * shape name for a shape rename.
1011
+ */
1012
+ newName: string;
1013
+ /**
1014
+ * Optional kind safety hint: `thing`, `assertion`, `shape`, or `collection`.
1015
+ */
1016
+ kind?: CommitOperationKind;
1017
+ }
975
1018
  /**
976
1019
  * Commit operation accepted by `client.commit.apply`. Discriminated union over
977
- * {@link AddOperation}, {@link ReviseOperation}, and {@link RetractOperation},
978
- * keyed on `operation`.
1020
+ * {@link AddOperation}, {@link ReviseOperation}, {@link RetractOperation}, and
1021
+ * {@link RenameOperation}, keyed on `operation`.
979
1022
  *
980
1023
  * Inline array literals passed directly to `client.commit.apply` are
981
1024
  * contextually typed by the parameter, so `operation: "add"` stays narrowed
@@ -1003,7 +1046,7 @@ interface RetractOperation {
1003
1046
  *
1004
1047
  * @see https://docs.warmhub.ai/sdk/write-methods/#typing-operation-arrays
1005
1048
  */
1006
- type Operation = AddOperation | ReviseOperation | RetractOperation;
1049
+ type Operation = AddOperation | ReviseOperation | RetractOperation | RenameOperation;
1007
1050
 
1008
1051
  /**
1009
1052
  * Default number of operations the SDK sends per stream append chunk.
@@ -1017,7 +1060,7 @@ declare const DEFAULT_STREAM_CHUNK_SIZE = 1000;
1017
1060
  * @internal
1018
1061
  */
1019
1062
  declare const MAX_STREAM_APPEND_OPERATION_COUNT = 10000;
1020
- type CommitResultOperation$1 = CommitOperation | 'noop';
1063
+ type CommitResultOperation = CommitOperation | 'noop';
1021
1064
  interface OperationStreamClient {
1022
1065
  stream: {
1023
1066
  append(input: StreamAppendInput$1): Promise<StreamAppendResult$1>;
@@ -1037,7 +1080,7 @@ type SubmittedStreamResult = {
1037
1080
  operations: Array<{
1038
1081
  opIndex?: number;
1039
1082
  name: string;
1040
- operation: CommitResultOperation$1;
1083
+ operation: CommitResultOperation;
1041
1084
  dataHash: string;
1042
1085
  version: number;
1043
1086
  status?: 'applied' | 'noop' | 'error';
@@ -1247,7 +1290,8 @@ declare function submitOperationsViaStream(client: OperationStreamClient, args:
1247
1290
  *
1248
1291
  * Multiple schemes can be configured at once; in that case the verifier
1249
1292
  * requires ALL of them to validate (downgrade-attack defense — an attacker
1250
- * who learns only one credential can't drop the other from the request).
1293
+ * who learns only one credential can't drop the other from the request). Bearer
1294
+ * and Basic both use `Authorization`, so they cannot be configured together.
1251
1295
  * If none are configured, the call is rejected as misconfigured.
1252
1296
  *
1253
1297
  * import { verifyCliCall } from '@warmhub/sdk-ts'
@@ -1333,34 +1377,23 @@ declare function verifyCliCall(request: Request, secrets: CliCallSecrets, opts?:
1333
1377
  type ShapeFields = Record<string, unknown>;
1334
1378
 
1335
1379
  /**
1336
- * Builder add operation for shapes, things, assertions, and collections.
1337
- * @see https://docs.warmhub.ai/sdk-reference/interfaces/addop/
1380
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/collectionaddtype/
1338
1381
  */
1339
- interface AddOp {
1382
+ type CollectionAddType = CollectionTag$1;
1383
+ type NonCollectionAddKind = Exclude<CommitOperationKind, 'collection'>;
1384
+ interface BaseAddOp {
1340
1385
  /**
1341
1386
  * Operation discriminator. Always `add`.
1342
1387
  */
1343
1388
  readonly operation: 'add';
1344
1389
  /**
1345
- * Target name. Use `Shape/localName` for things and assertions; use the plain shape name for shapes.
1346
- */
1347
- readonly name: string;
1348
- /**
1349
- * Optional kind override: `shape`, `thing`, `assertion`, or `collection`.
1390
+ * Optional kind override: `shape`, `thing`, or `assertion`.
1350
1391
  */
1351
- readonly kind?: string;
1392
+ readonly kind?: NonCollectionAddKind;
1352
1393
  /**
1353
- * Assertion target wref or inline collection descriptor. Presence of `about` makes the add an assertion unless `kind` overrides it.
1394
+ * Assertion target wref. Presence of `about` makes the add an assertion unless `kind` overrides it.
1354
1395
  */
1355
1396
  readonly about?: string | CollectionAbout$2;
1356
- /**
1357
- * Collection type. Used only for collection adds.
1358
- */
1359
- readonly type?: string;
1360
- /**
1361
- * Collection member wrefs. Used only for collection adds.
1362
- */
1363
- readonly members?: string[];
1364
1397
  /**
1365
1398
  * Optional shape wref used by local validation.
1366
1399
  */
@@ -1378,6 +1411,54 @@ interface AddOp {
1378
1411
  */
1379
1412
  readonly skipExisting?: boolean;
1380
1413
  }
1414
+ /**
1415
+ * Builder add operation for shapes, things, and assertions.
1416
+ * @see https://docs.warmhub.ai/sdk-reference/interfaces/addop/
1417
+ */
1418
+ interface AddOp extends BaseAddOp {
1419
+ /**
1420
+ * Target name. Use `Shape/localName` for things and assertions; use the plain shape name for shapes.
1421
+ */
1422
+ readonly name: string;
1423
+ }
1424
+ /**
1425
+ * Builder collection add operation. Omitting `name` creates the backend's
1426
+ * canonical auto-named collection from the supplied members.
1427
+ * @see https://docs.warmhub.ai/sdk-reference/interfaces/collectionaddop/
1428
+ */
1429
+ interface CollectionAddOp {
1430
+ /**
1431
+ * Operation discriminator. Always `add`.
1432
+ */
1433
+ readonly operation: 'add';
1434
+ /**
1435
+ * Optional kind override. Collection add inputs may omit this when `type` and
1436
+ * `members` are present.
1437
+ */
1438
+ readonly kind?: 'collection';
1439
+ /**
1440
+ * Optional collection name. Omit to let the backend assign the canonical
1441
+ * collection name from the supplied members.
1442
+ */
1443
+ readonly name?: string;
1444
+ /**
1445
+ * Collection type.
1446
+ */
1447
+ readonly type: CollectionAddType;
1448
+ /**
1449
+ * Collection member wrefs.
1450
+ */
1451
+ readonly members: string[];
1452
+ /**
1453
+ * When true, an existing target returns `noop` instead of failing.
1454
+ */
1455
+ readonly skipExisting?: boolean;
1456
+ }
1457
+ /**
1458
+ * Input accepted by `OperationBuilder.add`.
1459
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationbuilderaddinput/
1460
+ */
1461
+ type OperationBuilderAddInput = Omit<AddOp, 'operation'> | AddOp | Omit<CollectionAddOp, 'operation'> | CollectionAddOp;
1381
1462
  /**
1382
1463
  * Builder revise operation.
1383
1464
  * @see https://docs.warmhub.ai/sdk-reference/interfaces/reviseop/
@@ -1451,7 +1532,7 @@ interface RetractOp {
1451
1532
  * Operation queued by `OperationBuilder`.
1452
1533
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationbuilderop/
1453
1534
  */
1454
- type OperationBuilderOp = AddOp | ReviseOp | RetractOp;
1535
+ type OperationBuilderOp = AddOp | CollectionAddOp | ReviseOp | RetractOp;
1455
1536
  type OperationSubmitResult$1 = SubmittedStreamResult;
1456
1537
  /**
1457
1538
  * Client-side validation diagnostic returned by `OperationBuilder.validate`.
@@ -1501,7 +1582,6 @@ interface OperationBuilderOptions {
1501
1582
  }
1502
1583
  /** @internal */
1503
1584
  type OperationBuilderClient = OperationStreamClient;
1504
- type AddInput = Omit<AddOp, 'operation'> | AddOp;
1505
1585
  type ReviseInput = Omit<ReviseOp, 'operation'> | ReviseOp;
1506
1586
  /**
1507
1587
  * Fluent builder for composing, validating, and submitting WarmHub commit
@@ -1548,7 +1628,7 @@ declare class OperationBuilder {
1548
1628
  * Set `kind: 'thing'` explicitly for hierarchical thing names that would otherwise look like assertion paths.
1549
1629
  * @see https://docs.warmhub.ai/sdk-reference/classes/operationbuilder/#add
1550
1630
  */
1551
- add(op: AddInput): this;
1631
+ add(op: OperationBuilderAddInput): this;
1552
1632
  /**
1553
1633
  * Add a revise operation.
1554
1634
  *
@@ -1762,7 +1842,7 @@ type CoreErrorKind = 'BACKEND' | 'NOT_FOUND' | 'FORBIDDEN' | 'UNAUTHENTICATED' |
1762
1842
  * - `NOT_FOUND` — cause: a referenced entity (repo, org, thing, shape, subscription, credential set, etc.) is missing or the caller cannot see it; retryable: false; action: verify the identifier the call site used (wref, slug, name) and escalate to a caller with read access if the entity should exist; origin: SDK reads across all surfaces, commit pipeline, REST query endpoints
1763
1843
  * - `FORBIDDEN` — cause: caller is authenticated but lacks the required permission; retryable: false; action: request the missing permission or use a token with broader scope; origin: SDK + REST authorization middleware
1764
1844
  * - `UNAUTHENTICATED` — cause: missing, expired, or invalid bearer token on a tRPC or REST call; retryable: false; action: mint a fresh PAT and update whichever client option the application wires it into (`auth.getToken` callback or `accessToken` — the SDK does not read `WH_TOKEN` or any env var directly); `wh auth login` only refreshes the CLI's on-disk credentials and does not propagate to a constructed SDK client; for export tickets, remint via the appropriate backend endpoint; origin: SDK + REST auth middleware. Live-ticket SSE auth failures surface as `BACKEND`, not `UNAUTHENTICATED`, because `openSse` maps every non-OK SSE response to `BACKEND`.
1765
- * - `VALIDATION_ERROR` — cause: input failed schema, shape, or content-length validation; retryable: false; action: fix the offending field per the error message; origin: commit pipeline, SDK writes, client-side content limits
1845
+ * - `VALIDATION_ERROR` — cause: input failed schema, shape, content-length, or read-pagination cursor validation; retryable: false; action: fix the offending field per the error message, or restart the read without a stale/non-advancing cursor; origin: commit pipeline, SDK writes, SDK read pagination helpers, client-side content limits
1766
1846
  * - `CONFLICT` — cause: write collides with current state (concurrent edit, name already in use); retryable: false; action: refetch the current state and reconcile before retrying the write; origin: commit pipeline, repo/org creation. Archived org / repo writes surface as the pass-through code `ARCHIVED`, not `CONFLICT`.
1767
1847
  * - `RATE_LIMITED` — cause: caller exceeded the per-token or per-org request budget; retryable: true; action: wait {@link WarmHubError.retryAfter} seconds before retrying; origin: REST + tRPC throttling
1768
1848
  * - `CANCELLED` — cause: caller aborted the request via `AbortSignal`; retryable: true; action: retry only if the caller still wants the result; origin: SDK `AbortError` mapping
@@ -1793,14 +1873,13 @@ type ShapeChange = ShapeChangeResult;
1793
1873
  type Shape = ShapeGetResult;
1794
1874
  /** @internal */
1795
1875
  type ShapeList = ShapeListResult;
1796
- type CommitResultOperation = CommitOperation | 'noop';
1797
1876
  /**
1798
1877
  * Result of `client.shape.remove` — confirms the retraction with the new version metadata.
1799
1878
  * @internal
1800
1879
  */
1801
1880
  type ShapeRemove = {
1802
1881
  name: string;
1803
- operation: CommitResultOperation;
1882
+ operation: ShapeRemoveResult['operation'];
1804
1883
  version: number;
1805
1884
  dataHash: string;
1806
1885
  removed: true;
@@ -2309,10 +2388,10 @@ type RepoLocator = {
2309
2388
  * Stable identity and creation timestamps embedded on every thing-like read
2310
2389
  * result. `durableId` is a self-routing, self-verifying token (Crockford base32
2311
2390
  * over `repo_id + things.id + CRC-32C`) that remains identical before and after
2312
- * rename and across revise/retract. `thingCreatedAt` records the thing's birth
2313
- * date (stable across all mutations); `versionCreatedAt` is the timestamp of
2391
+ * rename and across revise/retract. `createdOn` records the thing's birth
2392
+ * date (stable across all mutations); `revisedOn` is the timestamp of
2314
2393
  * the current version (advances on each revise). History rows carry only
2315
- * `durableId` and `thingCreatedAt` — omit `versionCreatedAt`.
2394
+ * `durableId` and `createdOn` — omit `revisedOn`.
2316
2395
  *
2317
2396
  * Pass a bare `durableId` (optionally with `@vN`) wherever a wref is accepted
2318
2397
  * on read surfaces; `orgName`/`repoName` may be omitted for self-routing reads.
@@ -2321,8 +2400,8 @@ type RepoLocator = {
2321
2400
  */
2322
2401
  type ThingMetadata = {
2323
2402
  durableId: string;
2324
- thingCreatedAt: number;
2325
- versionCreatedAt: number;
2403
+ createdOn: number;
2404
+ revisedOn: number;
2326
2405
  };
2327
2406
  /** @internal */
2328
2407
  type ThingItem = {
@@ -2394,7 +2473,8 @@ type ThingDetail = {
2394
2473
  synthesized?: boolean;
2395
2474
  aboutWref?: string;
2396
2475
  committerWref?: string;
2397
- createdByWref?: string;
2476
+ /** #4848 Phase C: current-version author (renamed from createdByWref). */
2477
+ revisedBy?: string;
2398
2478
  metadata?: ThingMetadata;
2399
2479
  [key: string]: unknown;
2400
2480
  };
@@ -2439,8 +2519,9 @@ type HistoryResult = {
2439
2519
  shapeName?: string;
2440
2520
  data?: unknown;
2441
2521
  committerWref?: string;
2442
- createdByWref?: string;
2443
- metadata?: Pick<ThingMetadata, 'durableId' | 'thingCreatedAt'>;
2522
+ /** #4848 Phase C: per-version author (renamed from createdByWref). */
2523
+ revisedBy?: string;
2524
+ metadata?: Pick<ThingMetadata, 'durableId' | 'createdOn'>;
2444
2525
  [key: string]: unknown;
2445
2526
  }>;
2446
2527
  nextCursor?: string;
@@ -3795,7 +3876,7 @@ declare class WarmHubClient {
3795
3876
  }) => Promise<ThingGetManyResult>;
3796
3877
  /**
3797
3878
  * Batched lightweight per-thing change probe — returns
3798
- * `{ wref, durableId, version, active, versionCreatedAt }` per wref with NO
3879
+ * `{ wref, durableId, version, active, revisedOn }` per wref with NO
3799
3880
  * payload. Use it to check whether locally-cached copies are still fresh
3800
3881
  * without pulling `data`: a value is stale if `durableId` differs (the wref
3801
3882
  * now points to a different thing), `version`/`active` differ (the same
@@ -4270,4 +4351,4 @@ declare class WarmHubClient {
4270
4351
  private watchRepoQuery;
4271
4352
  }
4272
4353
 
4273
- export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, 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 ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallResult, 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 GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, 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 OrgAccessResult, 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 RepoAccessResult, 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 ThingHeadVersionsResult, 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 };
4354
+ export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, 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 CollectionAddOp, type CollectionAddType, type CollectionTag, type ComponentInfo, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallResult, 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 GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, 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 OperationBuilderAddInput, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationSubmitResult, type OrgAccessResult, 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 RenameOperation, type RenameResult, type RepoAccessResult, 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 ThingHeadVersionsResult, 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-ZXAWTFKV.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-D5A5SSUU.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-ZXAWTFKV.js';
2
- export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-ZXAWTFKV.js';
1
+ import { WarmHubClient } from './chunk-D5A5SSUU.js';
2
+ export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-D5A5SSUU.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.59.0",
3
+ "version": "0.60.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.",
@@ -86,13 +86,13 @@
86
86
  "@trpc/client": "11.17.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@vitest/coverage-v8": "4.1.5",
90
- "@types/react": "19.2.14",
89
+ "@vitest/coverage-v8": "catalog:",
90
+ "@types/react": "catalog:",
91
91
  "react": "19.2.6",
92
92
  "tsup": "8.5.1",
93
93
  "typedoc": "0.28.19",
94
94
  "typedoc-plugin-markdown": "4.11.0",
95
- "typescript": "5.9.3",
96
- "vitest": "4.1.5"
95
+ "typescript": "catalog:",
96
+ "vitest": "catalog:"
97
97
  }
98
98
  }