@warmhub/sdk-ts 0.143.0 → 0.144.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
@@ -1228,7 +1228,7 @@ type ComponentDetail = {
1228
1228
  ref?: string;
1229
1229
  componentName: string;
1230
1230
  version?: string;
1231
- state?: 'initiated' | 'active' | 'uninstalled';
1231
+ state?: string;
1232
1232
  source?: string;
1233
1233
  sourceUrl?: string;
1234
1234
  sourceRef?: string;
@@ -1301,7 +1301,7 @@ type ComponentInstallResult$1 = {
1301
1301
  componentRef: string;
1302
1302
  componentName: string;
1303
1303
  version: string;
1304
- state: 'ready' | 'degraded';
1304
+ state: string;
1305
1305
  setupCreates: Array<string>;
1306
1306
  errors: Array<string>;
1307
1307
  hasSetup: boolean;
@@ -1562,7 +1562,7 @@ type ComponentListResult = {
1562
1562
  ref?: string;
1563
1563
  componentName: string;
1564
1564
  version?: string;
1565
- state?: 'initiated' | 'active' | 'uninstalled';
1565
+ state?: string;
1566
1566
  source?: string;
1567
1567
  sourceUrl?: string;
1568
1568
  sourceRef?: string;
@@ -1579,7 +1579,7 @@ type ComponentSummary = {
1579
1579
  ref?: string;
1580
1580
  componentName: string;
1581
1581
  version?: string;
1582
- state?: 'initiated' | 'active' | 'uninstalled';
1582
+ state?: string;
1583
1583
  source?: string;
1584
1584
  sourceUrl?: string;
1585
1585
  sourceRef?: string;
@@ -1984,10 +1984,10 @@ type HomepageFeaturedListsResult$1 = {
1984
1984
  title: string;
1985
1985
  description?: string;
1986
1986
  surface?: string;
1987
- itemKind?: 'repo' | 'component' | 'skill';
1987
+ itemKind?: string;
1988
1988
  sortOrder?: number;
1989
1989
  items: Array<{
1990
- kind: 'repo' | 'component' | 'skill';
1990
+ kind: string;
1991
1991
  slug: string;
1992
1992
  title: string;
1993
1993
  description?: string;
@@ -6164,7 +6164,7 @@ type OrgMember = {
6164
6164
  firstName?: string;
6165
6165
  lastName?: string;
6166
6166
  role: 'owner' | 'admin' | 'editor' | 'viewer';
6167
- status: 'active' | 'pending';
6167
+ status: string;
6168
6168
  invitedBy?: string;
6169
6169
  createdAt: number;
6170
6170
  };
@@ -6317,7 +6317,7 @@ type RepositoryCheckpointAccess$1 = {
6317
6317
  url: string;
6318
6318
  byteLength: number;
6319
6319
  sha256: string;
6320
- contentType: 'application/zip' | 'application/json' | 'application/x-ndjson';
6320
+ contentType: string;
6321
6321
  };
6322
6322
  type RepositoryCheckpointStatus$1 = {
6323
6323
  checkpointId: string;
@@ -6882,12 +6882,123 @@ type SubscribableEventType = (typeof SUBSCRIBABLE_EVENT_TYPES)[number];
6882
6882
  declare const ORG_SCOPED_EVENT_TYPES: readonly ["org.renamed", "org.member_added", "org.repo_created", "org.repo_published"];
6883
6883
  type OrgScopedEventType = (typeof ORG_SCOPED_EVENT_TYPES)[number];
6884
6884
 
6885
+ /**
6886
+ * Install health states this build knows; the response vocabulary is open.
6887
+ * @see https://docs.warmhub.ai/sdk-reference/variables/component_install_result_states/
6888
+ */
6889
+ declare const COMPONENT_INSTALL_RESULT_STATES: readonly ["ready", "degraded"];
6890
+ /**
6891
+ * Install health states this build can interpret.
6892
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/componentinstallresultstate/
6893
+ */
6894
+ type ComponentInstallResultState = (typeof COMPONENT_INSTALL_RESULT_STATES)[number];
6895
+ /**
6896
+ * Whether this build recognizes an install health state; unknown strings remain valid.
6897
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknowncomponentinstallresultstate/
6898
+ */
6899
+ declare function isKnownComponentInstallResultState(value: string): value is ComponentInstallResultState;
6900
+
6901
+ /**
6902
+ * Component installation lifecycle states recognized by this build.
6903
+ * @see https://docs.warmhub.ai/sdk-reference/variables/component_summary_states/
6904
+ */
6905
+ declare const COMPONENT_SUMMARY_STATES: readonly ["initiated", "active", "uninstalled"];
6906
+ /**
6907
+ * The internal lifecycle domain stays closed while response strings can grow.
6908
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/componentsummarystate/
6909
+ */
6910
+ type ComponentSummaryState = (typeof COMPONENT_SUMMARY_STATES)[number];
6911
+ /**
6912
+ * Narrow a response string without discarding an unfamiliar lifecycle state.
6913
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknowncomponentsummarystate/
6914
+ */
6915
+ declare function isKnownComponentSummaryState(value: string): value is ComponentSummaryState;
6916
+
6917
+ /**
6918
+ * Credential scoping levels recognized by this build.
6919
+ * @see https://docs.warmhub.ai/sdk-reference/variables/credential_scopes/
6920
+ */
6921
+ declare const CREDENTIAL_SCOPES: readonly ["org", "repo"];
6922
+ /**
6923
+ * Known credential scopes stay closed for inputs and domain decisions.
6924
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/credentialscope/
6925
+ */
6926
+ type CredentialScope = (typeof CREDENTIAL_SCOPES)[number];
6927
+ /**
6928
+ * Narrow a response string without assigning meaning to unfamiliar scopes.
6929
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknowncredentialscope/
6930
+ */
6931
+ declare function isKnownCredentialScope(value: string): value is CredentialScope;
6932
+
6933
+ /**
6934
+ * Global search result kinds recognized by this build.
6935
+ * @see https://docs.warmhub.ai/sdk-reference/variables/global_search_result_item_kinds/
6936
+ */
6937
+ declare const GLOBAL_SEARCH_RESULT_ITEM_KINDS: readonly ["repo", "component"];
6938
+ /**
6939
+ * The known domain stays closed while response strings can grow.
6940
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/globalsearchresultitemkind/
6941
+ */
6942
+ type GlobalSearchResultItemKind = (typeof GLOBAL_SEARCH_RESULT_ITEM_KINDS)[number];
6943
+ /**
6944
+ * Narrow a response string without assigning meaning to unfamiliar values.
6945
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknownglobalsearchresultitemkind/
6946
+ */
6947
+ declare function isKnownGlobalSearchResultItemKind(value: string): value is GlobalSearchResultItemKind;
6948
+
6949
+ /**
6950
+ * Homepage featured item kinds recognized by this build.
6951
+ * @see https://docs.warmhub.ai/sdk-reference/variables/homepage_featured_item_kinds/
6952
+ */
6953
+ declare const HOMEPAGE_FEATURED_ITEM_KINDS: readonly ["repo", "component", "skill"];
6954
+ /**
6955
+ * The authored catalog domain stays closed while response strings can grow.
6956
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/homepagefeatureditemkind/
6957
+ */
6958
+ type HomepageFeaturedItemKind = (typeof HOMEPAGE_FEATURED_ITEM_KINDS)[number];
6959
+ /**
6960
+ * Narrow a response string without treating an unfamiliar kind as a known one.
6961
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknownhomepagefeatureditemkind/
6962
+ */
6963
+ declare function isKnownHomepageFeaturedItemKind(value: string): value is HomepageFeaturedItemKind;
6964
+
6885
6965
  /**
6886
6966
  * Derive the ratified UUIDv5 request identity for one stream chunk.
6887
6967
  * @see https://docs.warmhub.ai/sdk-reference/functions/operationeventstreamrequestid/
6888
6968
  */
6889
6969
  declare function operationEventStreamRequestId(submissionId: string, chunkOrdinal: number): string;
6890
6970
 
6971
+ /**
6972
+ * Organization membership statuses recognized by this build.
6973
+ * @see https://docs.warmhub.ai/sdk-reference/variables/org_member_statuses/
6974
+ */
6975
+ declare const ORG_MEMBER_STATUSES: readonly ["active", "pending"];
6976
+ /**
6977
+ * The known domain stays closed while response strings can grow.
6978
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/orgmemberstatus/
6979
+ */
6980
+ type OrgMemberStatus = (typeof ORG_MEMBER_STATUSES)[number];
6981
+ /**
6982
+ * Narrow a response string without assigning meaning to unfamiliar values.
6983
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknownorgmemberstatus/
6984
+ */
6985
+ declare function isKnownOrgMemberStatus(value: string): value is OrgMemberStatus;
6986
+
6987
+ /**
6988
+ * Media types this build knows how to handle from checkpoint access.
6989
+ * @see https://docs.warmhub.ai/sdk-reference/variables/checkpoint_content_types/
6990
+ */
6991
+ declare const CHECKPOINT_CONTENT_TYPES: readonly ["application/zip", "application/json", "application/x-ndjson"];
6992
+ /**
6993
+ * The closed domain type; the access response accepts future media types.
6994
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/checkpointcontenttype/
6995
+ */
6996
+ type CheckpointContentType = (typeof CHECKPOINT_CONTENT_TYPES)[number];
6997
+ /**
6998
+ * Whether this build recognizes an access media type; unknown strings remain valid.
6999
+ * @see https://docs.warmhub.ai/sdk-reference/functions/isknowncheckpointcontenttype/
7000
+ */
7001
+ declare function isKnownCheckpointContentType(value: string): value is CheckpointContentType;
6891
7002
  type JsonValue = null | boolean | number | string | JsonValue[] | {
6892
7003
  [key: string]: JsonValue;
6893
7004
  };
@@ -9290,11 +9401,11 @@ type RepoInfo = {
9290
9401
  /** @internal */
9291
9402
  type RepoList = RepoListResult;
9292
9403
  /**
9293
- * A cross-org search hit (repo or component). GH-4383.
9404
+ * A cross-org search hit; unfamiliar response kinds are preserved.
9294
9405
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/globalsearchresultitem/
9295
9406
  */
9296
9407
  type GlobalSearchResultItem = {
9297
- kind: 'repo' | 'component';
9408
+ kind: string;
9298
9409
  orgName: string;
9299
9410
  name: string;
9300
9411
  description: string | null;
@@ -9900,7 +10011,7 @@ type TokenInfo = {
9900
10011
  /** @internal */
9901
10012
  type CredentialInfo = {
9902
10013
  name: string;
9903
- scope: 'org' | 'repo';
10014
+ scope: string;
9904
10015
  description?: string;
9905
10016
  keyNames: string[];
9906
10017
  revokedAt?: number;
@@ -12286,4 +12397,4 @@ declare class WarmHubClient {
12286
12397
  private watchRepoQuery;
12287
12398
  }
12288
12399
 
12289
- 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, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, 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 ComponentList, type ComponentListOptions, 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 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, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, type HeadResult, type HistoryResult, type HistoryVersion, 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, 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 OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, 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, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
12400
+ 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 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 };
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-BQX6BZDO.js';export{B as CLI_INSTALL_REPO_HEADER,C as CLI_SIGNATURE_HEADER,D as CLI_TIMESTAMP_HEADER,k as CONTENT_FIELD_LIMIT_ERROR,j as MAX_CONTENT_FIELD_BYTES,y as MAX_WREFS_PER_THING_VERSION,K as ORG_AUTH_SCOPES,G as REPO_AUTH_SCOPES,l as contentFieldLimitError,L as isKnownOrgAuthScope,H as isKnownRepoAuthScope,M as operationEventStreamRequestId,fa as validateAgainstShape}from'./chunk-YIULRLAB.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-V4CVTIJZ.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-EUC7LZDL.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-BQX6BZDO.js';export{L as DEFAULT_API_URL,H as SDK_VERSION,V as WarmHubClient,a as WarmHubError,O as toWarmHubError}from'./chunk-BQX6BZDO.js';import'./chunk-YIULRLAB.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-V4CVTIJZ.js';export{L as DEFAULT_API_URL,H as SDK_VERSION,V as WarmHubClient,a as WarmHubError,O as toWarmHubError}from'./chunk-V4CVTIJZ.js';import'./chunk-EUC7LZDL.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.143.0",
3
+ "version": "0.144.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.",