@warmhub/sdk-ts 0.62.1 → 0.64.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
@@ -185,6 +185,7 @@ type ActionAttempt = {
185
185
  type ActionLiveFeedResult = {
186
186
  items: Array<{
187
187
  subscriptionName: string;
188
+ deliveryId: string;
188
189
  runId?: string;
189
190
  status: string;
190
191
  matchedOperationIndexes: Array<number>;
@@ -297,9 +298,16 @@ type CommitApplyResult = {
297
298
  dataHash: string;
298
299
  status?: 'applied' | 'noop';
299
300
  warnings?: {
300
- undeclaredFields: Array<string>;
301
+ undeclaredFields?: Array<string>;
301
302
  undeclaredFieldsTruncated?: true;
302
303
  totalUndeclared?: number;
304
+ coalescedWrefs?: Array<{
305
+ fieldPath: string;
306
+ wref: string;
307
+ reason: string;
308
+ }>;
309
+ coalescedWrefsTruncated?: true;
310
+ totalCoalescedWrefs?: number;
303
311
  };
304
312
  }>;
305
313
  };
@@ -316,6 +324,8 @@ type ComponentDetail = {
316
324
  checkedAt?: string;
317
325
  active: boolean;
318
326
  wref: string;
327
+ latestVersion?: string;
328
+ updateAvailable?: boolean;
319
329
  install: {
320
330
  wref: string;
321
331
  pinnedWref?: string;
@@ -390,6 +400,8 @@ type ComponentListResult = {
390
400
  checkedAt?: string;
391
401
  active: boolean;
392
402
  wref: string;
403
+ latestVersion?: string;
404
+ updateAvailable?: boolean;
393
405
  }>;
394
406
  nextCursor?: string;
395
407
  };
@@ -406,6 +418,8 @@ type ComponentSummary = {
406
418
  checkedAt?: string;
407
419
  active: boolean;
408
420
  wref: string;
421
+ latestVersion?: string;
422
+ updateAvailable?: boolean;
409
423
  };
410
424
  type ComponentUninstallResult$1 = {
411
425
  componentRef: string;
@@ -433,6 +447,44 @@ type Capabilities = {
433
447
  minSupportedSdk: string;
434
448
  features: Record<string, boolean>;
435
449
  };
450
+ type HomepageFeaturedListsResult$1 = {
451
+ lists: Array<{
452
+ slug: string;
453
+ title: string;
454
+ description?: string;
455
+ surface?: string;
456
+ itemKind?: 'repo' | 'component' | 'skill';
457
+ sortOrder?: number;
458
+ items: Array<{
459
+ kind: 'repo' | 'component' | 'skill';
460
+ slug: string;
461
+ title: string;
462
+ description?: string;
463
+ sortOrder: number;
464
+ tagline?: string;
465
+ category?: string;
466
+ ctaLabel?: string;
467
+ curationReason?: string;
468
+ featuredSince?: string;
469
+ orgName?: string;
470
+ repoName?: string;
471
+ componentName?: string;
472
+ componentRef?: string;
473
+ marketplace?: string;
474
+ skillName?: string;
475
+ packageName?: string;
476
+ installCommand?: string;
477
+ externalUrl?: string;
478
+ createdAt?: number;
479
+ total?: number;
480
+ byKind?: {
481
+ shape: number;
482
+ thing: number;
483
+ assertion: number;
484
+ };
485
+ }>;
486
+ }>;
487
+ };
436
488
  type StreamAppendInput$1 = {
437
489
  orgName: string;
438
490
  repoName: string;
@@ -554,9 +606,16 @@ type StreamAppendResult$1 = {
554
606
  resolvedName?: string;
555
607
  retryable?: boolean;
556
608
  warnings?: {
557
- undeclaredFields: Array<string>;
609
+ undeclaredFields?: Array<string>;
558
610
  undeclaredFieldsTruncated?: true;
559
611
  totalUndeclared?: number;
612
+ coalescedWrefs?: Array<{
613
+ fieldPath: string;
614
+ wref: string;
615
+ reason: string;
616
+ }>;
617
+ coalescedWrefsTruncated?: true;
618
+ totalCoalescedWrefs?: number;
560
619
  };
561
620
  }>;
562
621
  createdByEmail?: string;
@@ -2059,6 +2118,14 @@ type ActionLeaseOp = {
2059
2118
  ok: false;
2060
2119
  reason: string;
2061
2120
  };
2121
+ /** @internal */
2122
+ type ActionDeliveryTarget = string | {
2123
+ runId: string;
2124
+ deliveryId?: never;
2125
+ } | {
2126
+ deliveryId: string;
2127
+ runId?: never;
2128
+ };
2062
2129
  /**
2063
2130
  * Result returned by in-place rename mutations: `client.shape.rename` and
2064
2131
  * `client.thing.rename`. A rename patches the identity field directly and
@@ -2069,6 +2136,8 @@ type ActionLeaseOp = {
2069
2136
  * @see https://docs.warmhub.ai/data-modeling/naming-as-navigation/
2070
2137
  */
2071
2138
  type RenameResult = RenameResult$1;
2139
+ /** @internal Curated lists returned by `client.homepage.featuredLists()`. */
2140
+ type HomepageFeaturedListsResult = HomepageFeaturedListsResult$1;
2072
2141
  /**
2073
2142
  * A single entry in the indexed-fields report.
2074
2143
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/indexedfieldentry/
@@ -2345,6 +2414,7 @@ type CurrentUserInfo = {
2345
2414
  lastName?: string;
2346
2415
  externalId: string;
2347
2416
  identityWref: string | null;
2417
+ knockUserToken: string | null;
2348
2418
  } | null;
2349
2419
  /** @internal */
2350
2420
  type WhoamiScopeEntry = {
@@ -3111,6 +3181,16 @@ declare class WarmHubClient {
3111
3181
  */
3112
3182
  whoami: () => Promise<WhoamiInfo>;
3113
3183
  };
3184
+ /**
3185
+ * Homepage surfaces.
3186
+ * @see https://docs.warmhub.ai/sdk-reference/classes/warmhubclient/#homepage
3187
+ */
3188
+ readonly homepage: {
3189
+ /**
3190
+ * Return manually curated featured homepage lists.
3191
+ */
3192
+ featuredLists: () => Promise<HomepageFeaturedListsResult$1>;
3193
+ };
3114
3194
  /**
3115
3195
  * Effective-access resolution for UI gating and service-side authorization.
3116
3196
  * First-party surface (web UI + whedge edge); the underlying `access.resolve`
@@ -3756,13 +3836,13 @@ declare class WarmHubClient {
3756
3836
  */
3757
3837
  releaseLease: (orgName: string, repoName: string, subscriptionName: string, holderId: string) => Promise<ActionLeaseOp>;
3758
3838
  /**
3759
- * Claim one action delivery run for processing.
3839
+ * Claim one action delivery for processing.
3760
3840
  */
3761
- claimDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
3841
+ claimDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
3762
3842
  /**
3763
- * Mark one claimed action delivery run as complete.
3843
+ * Mark one claimed action delivery as complete.
3764
3844
  */
3765
- completeDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
3845
+ completeDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
3766
3846
  /**
3767
3847
  * Query the live delivery feed for a subscription.
3768
3848
  *
@@ -4329,13 +4409,13 @@ declare class WarmHubClient {
4329
4409
  */
4330
4410
  releaseLease: (orgName: string, repoName: string, subscriptionName: string, holderId: string) => Promise<ActionLeaseOp>;
4331
4411
  /**
4332
- * Claim one action delivery run for processing.
4412
+ * Claim one action delivery for processing.
4333
4413
  */
4334
- claimDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
4414
+ claimDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
4335
4415
  /**
4336
- * Mark one claimed action delivery run as complete.
4416
+ * Mark one claimed action delivery as complete.
4337
4417
  */
4338
- completeDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
4418
+ completeDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
4339
4419
  /**
4340
4420
  * Query the live delivery feed for a subscription.
4341
4421
  *
@@ -4384,4 +4464,4 @@ declare class WarmHubClient {
4384
4464
  private watchRepoQuery;
4385
4465
  }
4386
4466
 
4387
- 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 };
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 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-XMQSHDUV.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-CJWKJDVX.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-XMQSHDUV.js';
2
- export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-XMQSHDUV.js';
1
+ import { WarmHubClient } from './chunk-CJWKJDVX.js';
2
+ export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-CJWKJDVX.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.62.1",
3
+ "version": "0.64.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.",
@@ -50,8 +50,7 @@
50
50
  }
51
51
  },
52
52
  "scripts": {
53
- "prebuild": "tsc --noEmit",
54
- "build": "tsup && bun run scripts/inject-doc-links.ts",
53
+ "build": "tsc --noEmit && tsup && bun run scripts/inject-doc-links.ts",
55
54
  "generate:api-contract": "bun run scripts/generate-api-contract.ts",
56
55
  "generate:backend-types": "bun run scripts/generate-backend-types.ts",
57
56
  "audit:api-contract": "bun run scripts/audit-api-contract.ts",