@warmhub/sdk-ts 0.142.0 → 0.143.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
@@ -1251,6 +1251,7 @@ type ComponentDetail = {
1251
1251
  dataHash: string;
1252
1252
  } | null;
1253
1253
  componentRef?: string;
1254
+ shapeSystem?: boolean;
1254
1255
  composition?: Array<{
1255
1256
  wref: string;
1256
1257
  fields: Record<string, unknown>;
@@ -1262,6 +1263,7 @@ type ComponentDetail = {
1262
1263
  kind: 'thing' | 'shape';
1263
1264
  declaredShapes?: Array<string>;
1264
1265
  validatedShapes?: Array<string>;
1266
+ systemShapes?: Array<string>;
1265
1267
  componentRef?: string;
1266
1268
  version: number;
1267
1269
  createdAt: number;
@@ -6190,6 +6192,7 @@ type ShapeGetResult = {
6190
6192
  dataHash: string;
6191
6193
  } | null;
6192
6194
  componentRef?: string;
6195
+ shapeSystem?: boolean;
6193
6196
  composition?: Array<{
6194
6197
  wref: string;
6195
6198
  fields: Record<string, unknown>;
@@ -6207,6 +6210,7 @@ type ShapeListResult = {
6207
6210
  dataHash: string;
6208
6211
  } | null;
6209
6212
  componentRef?: string;
6213
+ shapeSystem?: boolean;
6210
6214
  composition?: Array<{
6211
6215
  wref: string;
6212
6216
  fields: Record<string, unknown>;
@@ -6219,6 +6223,7 @@ type ThingHistoryResult = {
6219
6223
  kind: 'thing' | 'shape';
6220
6224
  declaredShapes?: Array<string>;
6221
6225
  validatedShapes?: Array<string>;
6226
+ systemShapes?: Array<string>;
6222
6227
  };
6223
6228
  versions: Array<{
6224
6229
  version: number;
@@ -6227,6 +6232,7 @@ type ThingHistoryResult = {
6227
6232
  thingKind?: string;
6228
6233
  declaredShapes?: Array<string>;
6229
6234
  validatedShapes?: Array<string>;
6235
+ systemShapes?: Array<string>;
6230
6236
  collections?: Array<{
6231
6237
  shape: string;
6232
6238
  memberCount?: number;
@@ -6262,6 +6268,7 @@ type ThingGetManyResult$1 = {
6262
6268
  kind: 'thing' | 'shape';
6263
6269
  declaredShapes: Array<string>;
6264
6270
  validatedShapes: Array<string>;
6271
+ systemShapes?: Array<string>;
6265
6272
  version: number;
6266
6273
  data?: unknown;
6267
6274
  collections?: Array<{
@@ -6648,6 +6655,7 @@ type ViewEvaluateResult$1 = {
6648
6655
  kind: 'thing' | 'shape';
6649
6656
  declaredShapes?: Array<string>;
6650
6657
  validatedShapes?: Array<string>;
6658
+ systemShapes?: Array<string>;
6651
6659
  componentRef?: string;
6652
6660
  version: number;
6653
6661
  createdAt: number;
@@ -6984,7 +6992,7 @@ type ShapeValidatorResult = {
6984
6992
  * Returns a {@link ShapeValidatorResult} discriminated union — read `result.valid`
6985
6993
  * to branch, then `result.errors` (only present when invalid) for the list of
6986
6994
  * messages. `result.warnings` may be present in either branch and carries
6987
- * undeclared top-level field names.
6995
+ * undeclared top-level field names. A `null` body is judged as `{}`.
6988
6996
  *
6989
6997
  * @example
6990
6998
  * ```ts
@@ -7003,7 +7011,7 @@ type ShapeValidatorResult = {
7003
7011
  * ```
7004
7012
  * @see https://docs.warmhub.ai/sdk-reference/functions/validateagainstshape/
7005
7013
  */
7006
- declare function validateAgainstShape(data: Record<string, unknown>, shapeFields: Record<string, unknown>): ShapeValidatorResult;
7014
+ declare function validateAgainstShape(data: unknown, shapeFields: Record<string, unknown>): ShapeValidatorResult;
7007
7015
 
7008
7016
  /**
7009
7017
  * Hardcoded meta-schema for validating shape definitions.
@@ -7064,17 +7072,28 @@ declare function contentFieldLimitError(path: string, value: string): string | n
7064
7072
  */
7065
7073
  type WarmHubErrorDetails = NonNullable<CommitDiagnostic$1['details']>
7066
7074
  /**
7067
- * A `CLIENT_INCOMPATIBLE` refusal's cause (batch 67 Q3): `legacy-wrefs-sdk`
7068
- * is the SDK refusing every call under `legacy-wrefs`.
7075
+ * A `CLIENT_INCOMPATIBLE` refusal's cause, a stable reason to branch on:
7076
+ * `legacy-wrefs-sdk` is the SDK refusing every call under `legacy-wrefs`.
7069
7077
  */
7070
7078
  | {
7071
7079
  reason: 'legacy-wrefs-sdk';
7072
- } | ShapeCountsUnavailableDetails;
7080
+ } | ShapeCountsUnavailableDetails | OldNameDetails;
7081
+ /**
7082
+ * Why a Thing read refused with `NOT_FOUND` although it can be answered: the
7083
+ * name asked for is an old `Shape/name` spelling, and `currentName` is the
7084
+ * name the Thing answers to now. Sent only to a caller who can read that
7085
+ * Thing. A request-level refusal only, never a commit diagnostic.
7086
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/oldnamedetails/
7087
+ */
7088
+ type OldNameDetails = {
7089
+ reason: 'old_name';
7090
+ currentName: string;
7091
+ };
7073
7092
  /**
7074
7093
  * Why `repo.shapeInstanceCounts` refused with `SHAPE_COUNTS_UNAVAILABLE`: the
7075
7094
  * repo is above the live per-Shape size band, or the bounded read timed out.
7076
7095
  * A request-level refusal only, never a commit diagnostic. The vocabulary is
7077
- * open (batch 358): treat an unknown reason as "unavailable, retry later", and
7096
+ * open: treat an unknown reason as "unavailable, retry later", and
7078
7097
  * read totals from `repo.stats`.
7079
7098
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/shapecountsunavailabledetails/
7080
7099
  */
@@ -7277,13 +7296,6 @@ declare const DEPENDENCY_FAILED = "DEPENDENCY_FAILED";
7277
7296
  */
7278
7297
  declare function isShapeReference(value: unknown): value is string;
7279
7298
 
7280
- /**
7281
- * Batch Thing read a keepShapes revise's Shapes and version come from, as
7282
- * {@link createKeepShapesResolver} takes it.
7283
- * @see https://docs.warmhub.ai/sdk-reference/type-aliases/thingshapesreader/
7284
- */
7285
- type ThingShapesReader = (wrefs: string[]) => Promise<Pick<ThingGetManyResult$1, 'items' | 'missing'>>;
7286
-
7287
7299
  /**
7288
7300
  * The SDK's refusal under `legacy-wrefs` (adjudicator's final wording).
7289
7301
  * @see https://docs.warmhub.ai/sdk-reference/variables/legacy_wrefs_refusal/
@@ -7299,6 +7311,13 @@ declare const LEGACY_WREFS_REFUSAL = "`legacy-wrefs` is set; the SDKs are v2-onl
7299
7311
  */
7300
7312
  type OperationChecks = 'v2' | 'passThrough';
7301
7313
 
7314
+ /**
7315
+ * Batch Thing read a keepShapes revise's Shapes and version come from, as
7316
+ * {@link createKeepShapesResolver} takes it.
7317
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/thingshapesreader/
7318
+ */
7319
+ type ThingShapesReader = (wrefs: string[]) => Promise<Pick<ThingGetManyResult$1, 'items' | 'missing'>>;
7320
+
7302
7321
  /**
7303
7322
  * Maximum operations accepted by one complete validation request.
7304
7323
  * @see https://docs.warmhub.ai/sdk-reference/variables/max_commit_validation_operations/
@@ -9546,6 +9565,8 @@ type ThingItem = {
9546
9565
  declaredShapes?: string[];
9547
9566
  /** Full certified closure, included only when requested on page reads. */
9548
9567
  validatedShapes?: string[];
9568
+ /** The `validatedShapes` that are system Shapes; absent when none. */
9569
+ systemShapes?: string[];
9549
9570
  version: number;
9550
9571
  createdAt: number;
9551
9572
  active?: boolean;
@@ -9624,7 +9645,15 @@ type ThingGetWithLease = ThingDetail & {
9624
9645
  *
9625
9646
  * @see https://docs.warmhub.ai/data-modeling/things/
9626
9647
  */
9627
- type ThingDetail = {
9648
+ type ThingDetail = ThingDetailFields & {
9649
+ /** The `validatedShapes` that are system Shapes; absent when none. */
9650
+ systemShapes?: string[];
9651
+ };
9652
+ /**
9653
+ * @internal A Thing read's fields shared by `ThingDetail` and graph nodes;
9654
+ * graph nodes do not carry `systemShapes`.
9655
+ */
9656
+ type ThingDetailFields = {
9628
9657
  wref: string;
9629
9658
  pinnedWref?: string;
9630
9659
  name: string;
@@ -9675,7 +9704,7 @@ type RepoLicense = RepoLicense$1;
9675
9704
  /** @internal */
9676
9705
  type ThingGraphValue = ThingGraphResult | string | number | boolean | null | ThingGraphValue[];
9677
9706
  /** @internal */
9678
- type ThingGraphResult = ThingDetail & {
9707
+ type ThingGraphResult = ThingDetailFields & {
9679
9708
  about?: ThingGraphValue;
9680
9709
  assertions?: ThingGraphResult[];
9681
9710
  resolved?: Record<string, ThingGraphValue>;
@@ -9702,6 +9731,8 @@ type HistoryResult = Omit<ThingHistoryResult, 'versions'> & {
9702
9731
  declaredShapes?: string[];
9703
9732
  /** Full version-pinned certificate closure of that same version. */
9704
9733
  validatedShapes?: string[];
9734
+ /** The `validatedShapes` that are system Shapes; absent when none. */
9735
+ systemShapes?: string[];
9705
9736
  };
9706
9737
  /** History rows retain forward-compatible backend fields. */
9707
9738
  versions: HistoryVersion[];
@@ -10377,7 +10408,7 @@ declare class WarmHubClient {
10377
10408
  private legacyWrefsRefusal;
10378
10409
  /**
10379
10410
  * The low-level `stream.append` takes operations as given, but a pinned
10380
- * Shape is refused locally as everywhere else (batch 45; batch 71). The
10411
+ * Shape is refused locally as everywhere else. The
10381
10412
  * CLI's enrolled pass-through under `legacy-wrefs` sends raw v1 unchanged.
10382
10413
  */
10383
10414
  private pinnedShapeRefusal;
@@ -12255,4 +12286,4 @@ declare class WarmHubClient {
12255
12286
  private watchRepoQuery;
12256
12287
  }
12257
12288
 
12258
- 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 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 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 };
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 };
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-B2GJBZ22.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-AO5UO4EW.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-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
2
2
  //# sourceMappingURL=index.js.map
package/dist/react.js CHANGED
@@ -1,2 +1,2 @@
1
- import {V}from'./chunk-B2GJBZ22.js';export{L as DEFAULT_API_URL,H as SDK_VERSION,V as WarmHubClient,a as WarmHubError,O as toWarmHubError}from'./chunk-B2GJBZ22.js';import'./chunk-AO5UO4EW.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-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
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.142.0",
3
+ "version": "0.143.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.",