@warmhub/sdk-ts 0.148.0 → 0.149.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
@@ -1067,6 +1067,29 @@ type OperationEventReceipt$1 = {
1067
1067
  submissionId?: string;
1068
1068
  pruned?: true;
1069
1069
  };
1070
+ type OperationEventReceiptMetadata$1 = {
1071
+ schemaVersion: 'operation-event-receipt-metadata/v1';
1072
+ repo: {
1073
+ orgName: string;
1074
+ repoName: string;
1075
+ };
1076
+ eventRequestId: string;
1077
+ submissionId?: string;
1078
+ outcome: 'event' | 'no_event';
1079
+ finalizedAt: string;
1080
+ event: {
1081
+ committedAt: string;
1082
+ eventDigest: string;
1083
+ operationCount: number;
1084
+ repo: {
1085
+ orgName: string;
1086
+ repoName: string;
1087
+ };
1088
+ repoSeq: string;
1089
+ } | null;
1090
+ resultOperationCount?: number;
1091
+ pruned?: true;
1092
+ };
1070
1093
  type OperationEventReceiptV1$1 = {
1071
1094
  event: {
1072
1095
  committedAt: string;
@@ -7232,6 +7255,28 @@ type OrgMemberStatus = (typeof ORG_MEMBER_STATUSES)[number];
7232
7255
  */
7233
7256
  declare function isKnownOrgMemberStatus(value: string): value is OrgMemberStatus;
7234
7257
 
7258
+ /**
7259
+ * Organization membership roles recognized by this build.
7260
+ * @see https://docs.warmhub.ai/sdk-reference/variables/org_roles/
7261
+ */
7262
+ declare const ORG_ROLES: readonly ["owner", "admin", "editor", "viewer"];
7263
+ /**
7264
+ * Caller's role within an organization. Returned by
7265
+ * `client.org.getCallerRole`, carried as `callerRole` on
7266
+ * `client.org.listMembers` results, and accepted by
7267
+ * `client.org.changeMemberRole` to set a member's role (only owners
7268
+ * may promote to or demote from `'owner'`; the last owner cannot be
7269
+ * demoted).
7270
+ *
7271
+ * @see https://docs.warmhub.ai/auth/personal-access-tokens/#available-permissions
7272
+ */
7273
+ type OrgRole = (typeof ORG_ROLES)[number];
7274
+ /**
7275
+ * Narrow client input to a role this build can request.
7276
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknownorgrole/
7277
+ */
7278
+ declare function isKnownOrgRole(value: string): value is OrgRole;
7279
+
7235
7280
  /**
7236
7281
  * Media types this build knows how to handle from checkpoint access.
7237
7282
  * @see https://docs.warmhub.ai/sdk-reference/variables/checkpoint_content_types/
@@ -7912,7 +7957,7 @@ type StreamContinuationState = {
7912
7957
  * with exponential backoff capped at 8s, so a one-off flake recovers without
7913
7958
  * user-perceptible latency. Override individual fields as needed.
7914
7959
  *
7915
- * @see https://docs.warmhub.ai/sdk/transient-retry/#tuning-retry
7960
+ * @see https://docs.warmhub.ai/sdk/typescript/transient-retry/#tuning-retry
7916
7961
  */
7917
7962
  type RetryPolicyOptions = {
7918
7963
  maxAttempts?: number;
@@ -7934,7 +7979,7 @@ type StreamFailureCause = {
7934
7979
  * `lastAcknowledgedRepoSeq` retain recovery information from the earlier
7935
7980
  * stream contract; the durable receipt remains the authoritative record.
7936
7981
  *
7937
- * @see https://docs.warmhub.ai/sdk/transient-retry/#partial-submissions
7982
+ * @see https://docs.warmhub.ai/sdk/typescript/transient-retry/#partial-submissions
7938
7983
  */
7939
7984
  declare class PartialStreamSubmissionError extends Error {
7940
7985
  /**
@@ -8109,7 +8154,7 @@ declare class StreamSubmissionAggregator {
8109
8154
  * `args.retry: { maxAttempts, baseDelayMs, maxDelayMs }` to override
8110
8155
  * any subset of the defaults (`{ 3, 250, 8_000 }`).
8111
8156
  *
8112
- * @see https://docs.warmhub.ai/sdk/transient-retry/
8157
+ * @see https://docs.warmhub.ai/sdk/typescript/transient-retry/
8113
8158
  * @internal
8114
8159
  */
8115
8160
  declare function submitOperationsViaStream(client: OperationStreamClient, args: {
@@ -8944,6 +8989,11 @@ type StreamAppendResult = StreamAppendResult$1;
8944
8989
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceipt/
8945
8990
  */
8946
8991
  type OperationEventReceipt = OperationEventReceipt$1;
8992
+ /**
8993
+ * Immutable receipt identity, outcome, and persisted counts without operation bodies.
8994
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptmetadata/
8995
+ */
8996
+ type OperationEventReceiptMetadata = OperationEventReceiptMetadata$1;
8947
8997
  /**
8948
8998
  * The frozen historical receipt returned only when replaying a v1 request.
8949
8999
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptv1/
@@ -9628,19 +9678,6 @@ type OrgInfo = Org;
9628
9678
  type OrgList = OrgListResult;
9629
9679
  /** @internal */
9630
9680
  type OrgMemberInfo = OrgMember;
9631
- /**
9632
- * Caller's role within an organization. Returned by
9633
- * `client.org.getCallerRole`, carried as `callerRole` on
9634
- * `client.org.listMembers` results, and accepted by
9635
- * `client.org.changeMemberRole` to set a member's role (only owners
9636
- * may promote to or demote from `'owner'`; the last owner cannot be
9637
- * demoted). Mirrors `orgRoleSchema` in `@warmhub/backend`; the
9638
- * static check below blocks any drift between this literal and the
9639
- * generated copy.
9640
- *
9641
- * @see https://docs.warmhub.ai/auth/personal-access-tokens/#available-permissions
9642
- */
9643
- type OrgRole = 'owner' | 'admin' | 'editor' | 'viewer';
9644
9681
  /** @internal */
9645
9682
  type OrgMemberList = {
9646
9683
  members: OrgMemberInfo[];
@@ -10381,10 +10418,10 @@ type AboutOptions = {
10381
10418
  * Filter options for `client.thing.query`.
10382
10419
  *
10383
10420
  * All fields are optional and combine as AND filters; unspecified fields do
10384
- * not constrain the result set. See [Read Semantics](/sdk/read-semantics/)
10421
+ * not constrain the result set. See [Read Semantics](/sdk/typescript/read-semantics/)
10385
10422
  * for glob `match` behavior, retraction visibility, and pagination rules.
10386
10423
  *
10387
- * @see https://docs.warmhub.ai/sdk/read-semantics/
10424
+ * @see https://docs.warmhub.ai/sdk/typescript/read-semantics/
10388
10425
  */
10389
10426
  type WherePredicateBase = {
10390
10427
  /** Dotted field path (e.g. `"state"`, `"address.county"`). */
@@ -10489,7 +10526,7 @@ type ThingQueryChangesOptions = Omit<FilterOptions, 'cursor' | 'includeRetracted
10489
10526
  * When `about` is set or `resolveCollections` is true, result pages may be
10490
10527
  * sparse — keep paginating until `nextCursor` is absent.
10491
10528
  *
10492
- * @see https://docs.warmhub.ai/sdk/read-semantics/#search-modes
10529
+ * @see https://docs.warmhub.ai/sdk/typescript/read-semantics/#search-modes
10493
10530
  */
10494
10531
  type SearchOptions = Omit<FilterOptions, 'where' | 'role' | 'sinceRepoSeq' | 'declaredShape' | 'shapeless' | 'includeValidatedShapes'> & {
10495
10532
  /** Restrict the search to assertions about this wref target. */
@@ -10514,7 +10551,7 @@ type CountOptions = Omit<FilterOptions, 'role' | 'limit' | 'cursor' | 'includeVa
10514
10551
  * Inbound pages may be empty or underfilled after authorization filtering
10515
10552
  * while still carrying `nextCursor`; continue until the cursor is absent.
10516
10553
  *
10517
- * @see https://docs.warmhub.ai/sdk/read-semantics/#reference-queries
10554
+ * @see https://docs.warmhub.ai/sdk/typescript/read-semantics/#reference-queries
10518
10555
  */
10519
10556
  type RefsOptions = {
10520
10557
  /** `inbound` finds records whose wref fields point at the target; `outbound` finds records the target points to. Defaults to `inbound`. */
@@ -10719,7 +10756,7 @@ declare function sdkVersionIsBelowMinimum(version: string, minimum: string): boo
10719
10756
  * `WarmHubError`. Streamed commit writes may instead throw
10720
10757
  * `PartialStreamSubmissionError` when an append outcome is ambiguous.
10721
10758
  *
10722
- * @see https://docs.warmhub.ai/sdk/client/
10759
+ * @see https://docs.warmhub.ai/sdk/typescript/client/
10723
10760
  */
10724
10761
  /**
10725
10762
  * Input for {@link WarmHubClient.access.resolve} — repos by names or durable id;
@@ -11088,6 +11125,8 @@ declare class WarmHubClient {
11088
11125
  applyStreaming: (orgName: string, repoName: string, message: string | undefined, operations: OperationSource, opts: StreamingSubmissionOptions) => StreamingSubmissionHandle;
11089
11126
  /** Recover one immutable write receipt after an ambiguous response. */
11090
11127
  getReceipt: (orgName: string, repoName: string, eventRequestId: string) => Promise<OperationEventReceipt>;
11128
+ /** Read the persisted receipt header and counts without operation results. */
11129
+ getReceiptMetadata: (orgName: string, repoName: string, eventRequestId: string) => Promise<OperationEventReceiptMetadata>;
11091
11130
  };
11092
11131
  /**
11093
11132
  * Organization management surface for namespaces, membership, roles, and scoped member permissions.
@@ -11651,7 +11690,7 @@ declare class WarmHubClient {
11651
11690
  /**
11652
11691
  * Webhook subscription management surface scoped to a repository.
11653
11692
  *
11654
- * @see https://docs.warmhub.ai/sdk/component-identity/#subscriptions
11693
+ * @see https://docs.warmhub.ai/sdk/typescript/component-identity/#subscriptions
11655
11694
  */
11656
11695
  readonly subscription: {
11657
11696
  /**
@@ -12671,4 +12710,4 @@ declare class WarmHubClient {
12671
12710
  private watchRepoQuery;
12672
12711
  }
12673
12712
 
12674
- 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 ActionLiveFeedItem, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddInput, type AddOperation, AllStreamOperationsFailedError, type Assertion, CHECKPOINT_CONTENT_TYPES, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, COMPONENT_INSTALL_RESULT_STATES, COMPONENT_SUMMARY_STATES, CONTENT_FIELD_LIMIT_ERROR, CREDENTIAL_SCOPES, type CheckpointContentType, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionContainsOptions, type CollectionContainsResult, type CollectionCreateOptions, type CollectionDiffOptions, type CollectionDiffResult, type CollectionMember, type CollectionMembersOptions, type CollectionMembersPage, type CollectionMembershipRole, type CollectionMutationResult, type CollectionQuerySourceOptions, type CollectionReadDataMode, type CollectionReadSummary, type CollectionReviseOptions, type CollectionStatsOptions, type CollectionStatsResult, type CollectionTag, type CollectionType, type CollectionWriteType, type CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, type CommitValidateOperation, type CommitValidateOperations, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentInstallResultState, type ComponentList, type ComponentListOptions, type ComponentSummaryState, type ComponentUninstallOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialScope, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, DEPENDENCY_FAILED, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, GLOBAL_SEARCH_RESULT_ITEM_KINDS, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type GlobalSearchResultItemKind, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, HOMEPAGE_FEATURED_ITEM_KINDS, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedItemKind, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type KeepShapesRevise, LEGACY_WREFS_REFUSAL, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_COMMIT_VALIDATION_ENCODED_BYTES, MAX_COMMIT_VALIDATION_OPERATIONS, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, MAX_WREFS_PER_THING_VERSION, type MemberScopeEntry, ORG_AUTH_SCOPES, ORG_MEMBER_STATUSES, type OldNameDetails, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgMemberStatus, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, type RedactOptions, type RedactResult, type RefLink, type RefsOptions, type RefsResult, type RemoveOperation, type RemoveOptions, type RemoveResult, type RenameOperation, type RenameOptions, type RenameResult, type RepoAccessResult, type RepoAuthScope, type RepoConfigureStatsView, type RepoDescribeResult, type RepoExploreBrowseOptions, type RepoExploreItem, type RepoExploreOptions, type RepoExploreResult, type RepoInfo, type RepoLicense, 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 RepositoryCheckpointAccess, type RepositoryCheckpointStatus, type RepositoryExportDeltaFormats, RepositoryExportError, type RepositoryExportErrorReason, type RepositoryExportExpectation, type RepositoryExportOptions, type RepositoryExportPreparation, type RepositoryExportPrepareOptions, type RepositoryExportRestoreOptions, type RepositoryExportRowMap, type RepositoryExportRows, type RepositoryExportSegmentOptions, RepositoryExportSession, type RequestEvent, type ResolveWrefResult, type RestoreInput, type RestoreOperation, type RetractInput, type RetractOperation, type RetryPolicyOptions, type ReviseInput, type ReviseOperation, type RewriteOperation, type RewriteOptions, type RewriteResult, SDK_VERSION, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCountsUnavailableDetails, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, type ShapesChoice, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, StreamSubmissionAggregator, type StreamingSubmissionHandle, type StreamingSubmissionOptions, StreamingSubmissionOutcomeUnknownError, type StreamingSubmissionRetryIdentity, type StreamingSubmissionRow, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingChanges, type ThingDetail, type ThingDetailFields, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadChangesOptions, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type ThingQueryChangesOptions, type ThingShapesReader, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, type ViewEvaluateOptions, type ViewEvaluateResult, WarmHubClient, type WarmHubClientOptions, type WarmHubDecorations, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, type WriteOperation, WriteOperationError, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createKeepShapesResolver, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isAllStreamOperationsFailedError, isConnectionError, isDefiniteStreamAppendRejection, isKnownCheckpointContentType, isKnownComponentInstallResultState, isKnownComponentSummaryState, isKnownCredentialScope, isKnownGlobalSearchResultItemKind, isKnownHomepageFeaturedItemKind, isKnownOrgAuthScope, isKnownOrgMemberStatus, isKnownRepoAuthScope, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
12713
+ 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 ActionLiveFeedItem, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddInput, type AddOperation, AllStreamOperationsFailedError, type Assertion, CHECKPOINT_CONTENT_TYPES, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, COMPONENT_INSTALL_RESULT_STATES, COMPONENT_SUMMARY_STATES, CONTENT_FIELD_LIMIT_ERROR, CREDENTIAL_SCOPES, type CheckpointContentType, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionContainsOptions, type CollectionContainsResult, type CollectionCreateOptions, type CollectionDiffOptions, type CollectionDiffResult, type CollectionMember, type CollectionMembersOptions, type CollectionMembersPage, type CollectionMembershipRole, type CollectionMutationResult, type CollectionQuerySourceOptions, type CollectionReadDataMode, type CollectionReadSummary, type CollectionReviseOptions, type CollectionStatsOptions, type CollectionStatsResult, type CollectionTag, type CollectionType, type CollectionWriteType, type CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, type CommitValidateOperation, type CommitValidateOperations, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentInstallResultState, type ComponentList, type ComponentListOptions, type ComponentSummaryState, type ComponentUninstallOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialScope, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, DEPENDENCY_FAILED, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, GLOBAL_SEARCH_RESULT_ITEM_KINDS, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type GlobalSearchResultItemKind, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, HOMEPAGE_FEATURED_ITEM_KINDS, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedItemKind, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type KeepShapesRevise, LEGACY_WREFS_REFUSAL, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_COMMIT_VALIDATION_ENCODED_BYTES, MAX_COMMIT_VALIDATION_OPERATIONS, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, MAX_WREFS_PER_THING_VERSION, type MemberScopeEntry, ORG_AUTH_SCOPES, ORG_MEMBER_STATUSES, ORG_ROLES, type OldNameDetails, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptMetadata, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgMemberStatus, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, type RedactOptions, type RedactResult, type RefLink, type RefsOptions, type RefsResult, type RemoveOperation, type RemoveOptions, type RemoveResult, type RenameOperation, type RenameOptions, type RenameResult, type RepoAccessResult, type RepoAuthScope, type RepoConfigureStatsView, type RepoDescribeResult, type RepoExploreBrowseOptions, type RepoExploreItem, type RepoExploreOptions, type RepoExploreResult, type RepoInfo, type RepoLicense, 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 RepositoryCheckpointAccess, type RepositoryCheckpointStatus, type RepositoryExportDeltaFormats, RepositoryExportError, type RepositoryExportErrorReason, type RepositoryExportExpectation, type RepositoryExportOptions, type RepositoryExportPreparation, type RepositoryExportPrepareOptions, type RepositoryExportRestoreOptions, type RepositoryExportRowMap, type RepositoryExportRows, type RepositoryExportSegmentOptions, RepositoryExportSession, type RequestEvent, type ResolveWrefResult, type RestoreInput, type RestoreOperation, type RetractInput, type RetractOperation, type RetryPolicyOptions, type ReviseInput, type ReviseOperation, type RewriteOperation, type RewriteOptions, type RewriteResult, SDK_VERSION, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCountsUnavailableDetails, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, type ShapesChoice, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, StreamSubmissionAggregator, type StreamingSubmissionHandle, type StreamingSubmissionOptions, StreamingSubmissionOutcomeUnknownError, type StreamingSubmissionRetryIdentity, type StreamingSubmissionRow, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingChanges, type ThingDetail, type ThingDetailFields, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadChangesOptions, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type ThingQueryChangesOptions, type ThingShapesReader, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, type ViewEvaluateOptions, type ViewEvaluateResult, WarmHubClient, type WarmHubClientOptions, type WarmHubDecorations, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, type WriteOperation, WriteOperationError, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createKeepShapesResolver, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isAllStreamOperationsFailedError, isConnectionError, isDefiniteStreamAppendRejection, isKnownCheckpointContentType, isKnownComponentInstallResultState, isKnownComponentSummaryState, isKnownCredentialScope, isKnownGlobalSearchResultItemKind, isKnownHomepageFeaturedItemKind, isKnownOrgAuthScope, isKnownOrgMemberStatus, isKnownOrgRole, isKnownRepoAuthScope, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{m as AllStreamOperationsFailedError,I as CliCallVerificationError,L as DEFAULT_API_URL,j as DEFAULT_STREAM_CHUNK_SIZE,d as DEPENDENCY_FAILED,f as LEGACY_WREFS_REFUSAL,t as MAX_COMMIT_VALIDATION_ENCODED_BYTES,s as MAX_COMMIT_VALIDATION_OPERATIONS,k as MAX_STREAM_APPEND_OPERATION_COUNT,z as OperationBuilder,l as PartialStreamSubmissionError,A as RepositoryExportError,B as RepositoryExportSession,H as SDK_VERSION,i as StreamSubmissionAggregator,G as StreamingSubmissionOutcomeUnknownError,V as WarmHubClient,a as WarmHubError,c as WriteOperationError,D as applyRepositoryExportDelta,x as collectDurableTokens,w as commitValidateRequestBodyBytes,T as connectionErrorMessage,o as countStreamAppendResultStatuses,u as createCommitValidateInput,r as createKeepShapesResolver,h as createOperationEventRequestId,g as createOperationEventSubmissionId,C as createRepositoryExportSession,v as encodeCommitValidateRequestBody,y as getResponseDecorations,P as isAllStreamOperationsFailedError,S as isConnectionError,p as isDefiniteStreamAppendRejection,R as isRetryable,e as isShapeReference,Q as isWarmHubError,K as normalizeWref,E as readRepositoryExportStream,M as resolveFunctionLogMode,F as restoreRepositoryExportSession,N as sanitizeErrorMessage,U as sdkVersionIsBelowMinimum,b as shapeName,n as streamAppendResultStatus,q as submitOperationsViaStream,O as toWarmHubError,J as verifyCliCall}from'./chunk-TF2ND4FA.js';export{ba as CHECKPOINT_CONTENT_TYPES,B as CLI_INSTALL_REPO_HEADER,C as CLI_SIGNATURE_HEADER,D as CLI_TIMESTAMP_HEADER,G as COMPONENT_INSTALL_RESULT_STATES,M as COMPONENT_SUMMARY_STATES,k as CONTENT_FIELD_LIMIT_ERROR,O as CREDENTIAL_SCOPES,Q as GLOBAL_SEARCH_RESULT_ITEM_KINDS,S as HOMEPAGE_FEATURED_ITEM_KINDS,j as MAX_CONTENT_FIELD_BYTES,y as MAX_WREFS_PER_THING_VERSION,U as ORG_AUTH_SCOPES,X as ORG_MEMBER_STATUSES,I as REPO_AUTH_SCOPES,l as contentFieldLimitError,ca as isKnownCheckpointContentType,H as isKnownComponentInstallResultState,N as isKnownComponentSummaryState,P as isKnownCredentialScope,R as isKnownGlobalSearchResultItemKind,T as isKnownHomepageFeaturedItemKind,V as isKnownOrgAuthScope,Y as isKnownOrgMemberStatus,J as isKnownRepoAuthScope,W as operationEventStreamRequestId,ta as validateAgainstShape}from'./chunk-IXJEQEPN.js';//# sourceMappingURL=index.js.map
1
+ export{m as AllStreamOperationsFailedError,I as CliCallVerificationError,L as DEFAULT_API_URL,j as DEFAULT_STREAM_CHUNK_SIZE,d as DEPENDENCY_FAILED,f as LEGACY_WREFS_REFUSAL,t as MAX_COMMIT_VALIDATION_ENCODED_BYTES,s as MAX_COMMIT_VALIDATION_OPERATIONS,k as MAX_STREAM_APPEND_OPERATION_COUNT,z as OperationBuilder,l as PartialStreamSubmissionError,A as RepositoryExportError,B as RepositoryExportSession,H as SDK_VERSION,i as StreamSubmissionAggregator,G as StreamingSubmissionOutcomeUnknownError,V as WarmHubClient,a as WarmHubError,c as WriteOperationError,D as applyRepositoryExportDelta,x as collectDurableTokens,w as commitValidateRequestBodyBytes,T as connectionErrorMessage,o as countStreamAppendResultStatuses,u as createCommitValidateInput,r as createKeepShapesResolver,h as createOperationEventRequestId,g as createOperationEventSubmissionId,C as createRepositoryExportSession,v as encodeCommitValidateRequestBody,y as getResponseDecorations,P as isAllStreamOperationsFailedError,S as isConnectionError,p as isDefiniteStreamAppendRejection,R as isRetryable,e as isShapeReference,Q as isWarmHubError,K as normalizeWref,E as readRepositoryExportStream,M as resolveFunctionLogMode,F as restoreRepositoryExportSession,N as sanitizeErrorMessage,U as sdkVersionIsBelowMinimum,b as shapeName,n as streamAppendResultStatus,q as submitOperationsViaStream,O as toWarmHubError,J as verifyCliCall}from'./chunk-L53NT63D.js';export{da as CHECKPOINT_CONTENT_TYPES,B as CLI_INSTALL_REPO_HEADER,C as CLI_SIGNATURE_HEADER,D as CLI_TIMESTAMP_HEADER,G as COMPONENT_INSTALL_RESULT_STATES,M as COMPONENT_SUMMARY_STATES,k as CONTENT_FIELD_LIMIT_ERROR,O as CREDENTIAL_SCOPES,Q as GLOBAL_SEARCH_RESULT_ITEM_KINDS,S as HOMEPAGE_FEATURED_ITEM_KINDS,j as MAX_CONTENT_FIELD_BYTES,y as MAX_WREFS_PER_THING_VERSION,U as ORG_AUTH_SCOPES,X as ORG_MEMBER_STATUSES,Z as ORG_ROLES,I as REPO_AUTH_SCOPES,l as contentFieldLimitError,ea as isKnownCheckpointContentType,H as isKnownComponentInstallResultState,N as isKnownComponentSummaryState,P as isKnownCredentialScope,R as isKnownGlobalSearchResultItemKind,T as isKnownHomepageFeaturedItemKind,V as isKnownOrgAuthScope,Y as isKnownOrgMemberStatus,_ as isKnownOrgRole,J as isKnownRepoAuthScope,W as operationEventStreamRequestId,va as validateAgainstShape}from'./chunk-GSHJ54OM.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
package/dist/react.js CHANGED
@@ -1,2 +1,2 @@
1
- import {V}from'./chunk-TF2ND4FA.js';export{L as DEFAULT_API_URL,H as SDK_VERSION,V as WarmHubClient,a as WarmHubError,O as toWarmHubError}from'./chunk-TF2ND4FA.js';import'./chunk-IXJEQEPN.js';import {createContext,useMemo,useState,useEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';var p=createContext(null),f=createContext({isAuthenticated:false,isLoading:true});function P({apiUrl:e,children:t,auth:o,client:s,decorateResponses:r}){let n=s?.name,u=s?.version,i=o.getAccessToken,a=useMemo(()=>new V({apiUrl:e,accessToken:async()=>await i()??void 0,client:{name:n,version:u},decorateResponses:r}),[e,n,u,r,i]);return jsx(p.Provider,{value:a,children:jsx(g,{auth:o,client:a,children:t})})}function g({auth:e,client:t,children:o}){let[s,r]=useState(null),n=e.isAuthenticated&&s===t;useEffect(()=>{if(!e.isAuthenticated){r(null);return}let i=false;return t.auth.sync().then(()=>{i||r(t);}).catch(a=>{console.error("auth.sync failed:",a),i||r(t);}),()=>{i=true;}},[e.isAuthenticated,t]);let u=useMemo(()=>({isAuthenticated:e.isAuthenticated&&n,isLoading:e.isLoading||e.isAuthenticated&&!n}),[e.isAuthenticated,e.isLoading,n]);return e.isLoading||e.isAuthenticated&&!n?null:jsx(f.Provider,{value:u,children:o})}function v(){let e=useContext(p);if(!e)throw new Error("useWarmHubClient must be used within a WarmHubProvider");return e}function S(){return useContext(f)}export{P as WarmHubProvider,S as useWarmHubAuth,v as useWarmHubClient};//# sourceMappingURL=react.js.map
1
+ import {V}from'./chunk-L53NT63D.js';export{L as DEFAULT_API_URL,H as SDK_VERSION,V as WarmHubClient,a as WarmHubError,O as toWarmHubError}from'./chunk-L53NT63D.js';import'./chunk-GSHJ54OM.js';import {createContext,useMemo,useState,useEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';var p=createContext(null),f=createContext({isAuthenticated:false,isLoading:true});function P({apiUrl:e,children:t,auth:o,client:s,decorateResponses:r}){let n=s?.name,u=s?.version,i=o.getAccessToken,a=useMemo(()=>new V({apiUrl:e,accessToken:async()=>await i()??void 0,client:{name:n,version:u},decorateResponses:r}),[e,n,u,r,i]);return jsx(p.Provider,{value:a,children:jsx(g,{auth:o,client:a,children:t})})}function g({auth:e,client:t,children:o}){let[s,r]=useState(null),n=e.isAuthenticated&&s===t;useEffect(()=>{if(!e.isAuthenticated){r(null);return}let i=false;return t.auth.sync().then(()=>{i||r(t);}).catch(a=>{console.error("auth.sync failed:",a),i||r(t);}),()=>{i=true;}},[e.isAuthenticated,t]);let u=useMemo(()=>({isAuthenticated:e.isAuthenticated&&n,isLoading:e.isLoading||e.isAuthenticated&&!n}),[e.isAuthenticated,e.isLoading,n]);return e.isLoading||e.isAuthenticated&&!n?null:jsx(f.Provider,{value:u,children:o})}function v(){let e=useContext(p);if(!e)throw new Error("useWarmHubClient must be used within a WarmHubProvider");return e}function S(){return useContext(f)}export{P as WarmHubProvider,S as useWarmHubAuth,v as useWarmHubClient};//# sourceMappingURL=react.js.map
2
2
  //# sourceMappingURL=react.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmhub/sdk-ts",
3
- "version": "0.148.0",
3
+ "version": "0.149.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.",