@warmhub/sdk-ts 0.63.0 → 0.65.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
@@ -298,9 +298,16 @@ type CommitApplyResult = {
298
298
  dataHash: string;
299
299
  status?: 'applied' | 'noop';
300
300
  warnings?: {
301
- undeclaredFields: Array<string>;
301
+ undeclaredFields?: Array<string>;
302
302
  undeclaredFieldsTruncated?: true;
303
303
  totalUndeclared?: number;
304
+ coalescedWrefs?: Array<{
305
+ fieldPath: string;
306
+ wref: string;
307
+ reason: string;
308
+ }>;
309
+ coalescedWrefsTruncated?: true;
310
+ totalCoalescedWrefs?: number;
304
311
  };
305
312
  }>;
306
313
  };
@@ -308,36 +315,18 @@ type ComponentDetail = {
308
315
  ref?: string;
309
316
  componentName: string;
310
317
  version?: string;
311
- state?: string;
318
+ state?: 'initiated' | 'active' | 'uninstalled';
312
319
  source?: string;
320
+ sourceUrl?: string;
313
321
  sourceRef?: string;
314
322
  resolvedSha?: string;
315
323
  manifestHash?: string;
316
324
  installedAt?: string;
317
- checkedAt?: string;
318
325
  active: boolean;
319
- wref: string;
320
- install: {
321
- wref: string;
322
- pinnedWref?: string;
323
- name: string;
324
- kind: 'shape' | 'thing' | 'assertion' | 'collection';
325
- shape?: string;
326
- shapeName?: string;
327
- validatedShape?: string;
328
- version: number;
329
- data?: unknown;
330
- active: boolean;
331
- synthesized?: boolean;
332
- aboutWref?: string;
333
- committerWref?: string;
334
- revisedBy?: string;
335
- metadata?: {
336
- durableId: string;
337
- createdOn: number;
338
- revisedOn: number;
339
- };
340
- };
326
+ latestVersion?: string;
327
+ updateAvailable?: boolean;
328
+ installedManifest: unknown;
329
+ installComponentId?: string;
341
330
  ownedShapes: Array<{
342
331
  name: string;
343
332
  kind: 'shape';
@@ -368,6 +357,14 @@ type ComponentDetail = {
368
357
  };
369
358
  }>;
370
359
  };
360
+ type ComponentHistoryResult = {
361
+ items: Array<{
362
+ ref: string;
363
+ kind: string;
364
+ version: string | null;
365
+ createdAt: number;
366
+ }>;
367
+ };
371
368
  type ComponentInstallResult$1 = {
372
369
  componentRef: string;
373
370
  componentName: string;
@@ -382,15 +379,16 @@ type ComponentListResult = {
382
379
  ref?: string;
383
380
  componentName: string;
384
381
  version?: string;
385
- state?: string;
382
+ state?: 'initiated' | 'active' | 'uninstalled';
386
383
  source?: string;
384
+ sourceUrl?: string;
387
385
  sourceRef?: string;
388
386
  resolvedSha?: string;
389
387
  manifestHash?: string;
390
388
  installedAt?: string;
391
- checkedAt?: string;
392
389
  active: boolean;
393
- wref: string;
390
+ latestVersion?: string;
391
+ updateAvailable?: boolean;
394
392
  }>;
395
393
  nextCursor?: string;
396
394
  };
@@ -398,21 +396,23 @@ type ComponentSummary = {
398
396
  ref?: string;
399
397
  componentName: string;
400
398
  version?: string;
401
- state?: string;
399
+ state?: 'initiated' | 'active' | 'uninstalled';
402
400
  source?: string;
401
+ sourceUrl?: string;
403
402
  sourceRef?: string;
404
403
  resolvedSha?: string;
405
404
  manifestHash?: string;
406
405
  installedAt?: string;
407
- checkedAt?: string;
408
406
  active: boolean;
409
- wref: string;
407
+ latestVersion?: string;
408
+ updateAvailable?: boolean;
410
409
  };
411
410
  type ComponentUninstallResult$1 = {
412
411
  componentRef: string;
413
412
  componentName: string;
414
413
  state: 'uninstalled';
415
414
  pausedSubscriptions: Array<string>;
415
+ releasedShapes: Array<string>;
416
416
  tokensRevoked: number;
417
417
  uninstallDispatched: boolean;
418
418
  warnings: Array<string>;
@@ -593,9 +593,16 @@ type StreamAppendResult$1 = {
593
593
  resolvedName?: string;
594
594
  retryable?: boolean;
595
595
  warnings?: {
596
- undeclaredFields: Array<string>;
596
+ undeclaredFields?: Array<string>;
597
597
  undeclaredFieldsTruncated?: true;
598
598
  totalUndeclared?: number;
599
+ coalescedWrefs?: Array<{
600
+ fieldPath: string;
601
+ wref: string;
602
+ reason: string;
603
+ }>;
604
+ coalescedWrefsTruncated?: true;
605
+ totalCoalescedWrefs?: number;
599
606
  };
600
607
  }>;
601
608
  createdByEmail?: string;
@@ -2152,6 +2159,13 @@ type ComponentView = ComponentDetail;
2152
2159
  /** @internal */
2153
2160
  type ComponentList = ComponentListResult;
2154
2161
  /** @internal */
2162
+ type ComponentHistory = ComponentHistoryResult;
2163
+ /** @internal */
2164
+ type ComponentHistoryOptions = {
2165
+ componentRef?: string;
2166
+ limit?: number;
2167
+ };
2168
+ /** @internal */
2155
2169
  type ComponentInstallResult = ComponentInstallResult$1;
2156
2170
  /** @internal */
2157
2171
  type ComponentUninstallResult = ComponentUninstallResult$1;
@@ -2394,6 +2408,7 @@ type CurrentUserInfo = {
2394
2408
  lastName?: string;
2395
2409
  externalId: string;
2396
2410
  identityWref: string | null;
2411
+ knockUserToken: string | null;
2397
2412
  } | null;
2398
2413
  /** @internal */
2399
2414
  type WhoamiScopeEntry = {
@@ -3246,6 +3261,12 @@ declare class WarmHubClient {
3246
3261
  * Fetch one installed component by its `Org/Name` ref.
3247
3262
  */
3248
3263
  get: (orgName: string, repoName: string, componentRef: string) => Promise<ComponentView>;
3264
+ /**
3265
+ * Install lifecycle timeline from the durable install-events log (GH-4690).
3266
+ * Omit `componentRef` for the repo-wide activity feed; pass `Org/Name` for a
3267
+ * single component's history.
3268
+ */
3269
+ history: (orgName: string, repoName: string, opts?: ComponentHistoryOptions) => Promise<ComponentHistory>;
3249
3270
  /**
3250
3271
  * Install a registered component into a repository (GH-4610).
3251
3272
  *
@@ -4443,4 +4464,4 @@ declare class WarmHubClient {
4443
4464
  private watchRepoQuery;
4444
4465
  }
4445
4466
 
4446
- export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, 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 HomepageFeaturedListsResult, 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 };
4467
+ export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, 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 ComponentHistory, type ComponentHistoryOptions, 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 HomepageFeaturedListsResult, 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-JPX7ZWWE.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-C2Q4D3JM.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-JPX7ZWWE.js';
2
- export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-JPX7ZWWE.js';
1
+ import { WarmHubClient } from './chunk-C2Q4D3JM.js';
2
+ export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-C2Q4D3JM.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.63.0",
3
+ "version": "0.65.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.",