@warmhub/sdk-ts 0.127.0 → 0.129.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
@@ -274,13 +274,14 @@ type CommitValidateInput$1 = {
274
274
  kind: 'thing';
275
275
  name: string;
276
276
  data: unknown;
277
+ about?: never;
277
278
  affirmedTargets?: never;
278
279
  skipExisting?: boolean;
279
280
  } | {
280
281
  operation: 'add';
281
282
  kind: 'assertion';
282
283
  name: string;
283
- about: string;
284
+ about?: string;
284
285
  data: unknown;
285
286
  affirmedTargets?: Array<string>;
286
287
  skipExisting?: boolean;
@@ -337,7 +338,7 @@ type CommitValidateInput$1 = {
337
338
  leaseId?: string;
338
339
  } | {
339
340
  operation: 'reaffirm';
340
- kind?: 'assertion';
341
+ kind?: 'assertion' | 'thing';
341
342
  name: string;
342
343
  add?: Array<string>;
343
344
  remove?: Array<string>;
@@ -1194,7 +1195,7 @@ type ComponentDetail = {
1194
1195
  ownedThings: Array<{
1195
1196
  wref: string;
1196
1197
  name: string;
1197
- kind: 'thing' | 'assertion' | 'shape';
1198
+ kind: 'thing' | 'shape';
1198
1199
  shapeName?: string;
1199
1200
  declaredShapes?: Array<string>;
1200
1201
  validatedShapes?: Array<string>;
@@ -1938,13 +1939,14 @@ type StreamAppendInput$1 = {
1938
1939
  kind: 'thing';
1939
1940
  name: string;
1940
1941
  data: unknown;
1942
+ about?: never;
1941
1943
  affirmedTargets?: never;
1942
1944
  skipExisting?: boolean;
1943
1945
  } | {
1944
1946
  operation: 'add';
1945
1947
  kind: 'assertion';
1946
1948
  name: string;
1947
- about: string;
1949
+ about?: string;
1948
1950
  data: unknown;
1949
1951
  affirmedTargets?: Array<string>;
1950
1952
  skipExisting?: boolean;
@@ -2001,7 +2003,7 @@ type StreamAppendInput$1 = {
2001
2003
  leaseId?: string;
2002
2004
  } | {
2003
2005
  operation: 'reaffirm';
2004
- kind?: 'assertion';
2006
+ kind?: 'assertion' | 'thing';
2005
2007
  name: string;
2006
2008
  add?: Array<string>;
2007
2009
  remove?: Array<string>;
@@ -5371,7 +5373,7 @@ type ShapeListResult = {
5371
5373
  type ThingHistoryResult = {
5372
5374
  thing?: {
5373
5375
  wref: string;
5374
- kind: 'shape' | 'thing' | 'assertion' | 'collection';
5376
+ kind: 'thing' | 'shape';
5375
5377
  shapeName?: string;
5376
5378
  };
5377
5379
  versions: Array<{
@@ -5414,7 +5416,7 @@ type ThingGetManyResult$1 = {
5414
5416
  wref: string;
5415
5417
  pinnedWref?: string;
5416
5418
  name: string;
5417
- kind: 'thing' | 'assertion' | 'shape';
5419
+ kind: 'thing' | 'shape';
5418
5420
  shape?: string;
5419
5421
  shapeName?: string;
5420
5422
  validatedShape?: string;
@@ -5773,7 +5775,7 @@ type ViewEvaluateResult$1 = {
5773
5775
  items: Array<{
5774
5776
  wref: string;
5775
5777
  name: string;
5776
- kind: 'thing' | 'assertion' | 'shape';
5778
+ kind: 'thing' | 'shape';
5777
5779
  shapeName?: string;
5778
5780
  declaredShapes?: Array<string>;
5779
5781
  validatedShapes?: Array<string>;
@@ -5927,8 +5929,17 @@ type RepoAuthScope = (typeof REPO_AUTH_SCOPES)[number];
5927
5929
  */
5928
5930
  declare function isKnownRepoAuthScope(value: string): value is RepoAuthScope;
5929
5931
 
5932
+ /**
5933
+ * Maximum authored wref occurrences accepted in one Thing version.
5934
+ * @see https://docs.warmhub.ai/sdk-reference/variables/max_wrefs_per_thing_version/
5935
+ */
5936
+ declare const MAX_WREFS_PER_THING_VERSION = 10000;
5937
+
5930
5938
  declare const COMMIT_OPERATION_KINDS: readonly ["shape", "thing", "assertion", "collection"];
5931
5939
  type CommitOperationKind = (typeof COMMIT_OPERATION_KINDS)[number];
5940
+ /** What a read may be ASKED for: a read kind, or one of the legacy aliases. */
5941
+ declare const READ_KIND_FILTERS: readonly ["thing", "shape", "collection", "assertion"];
5942
+ type ReadKindFilter = (typeof READ_KIND_FILTERS)[number];
5932
5943
 
5933
5944
  /**
5934
5945
  * Canonical request signing for component CLI dispatch.
@@ -6020,24 +6031,16 @@ declare const repositoryExportRowSchema: z.ZodUnion<readonly [z.ZodDiscriminated
6020
6031
  shape: z.ZodString;
6021
6032
  memberCount: z.ZodNumber;
6022
6033
  }, z.core.$strict>>>;
6023
- active: z.ZodLiteral<true>;
6024
- data: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
6025
- wref: z.ZodString;
6026
- durableId: z.ZodString;
6027
- version: z.ZodNumber;
6028
- }, z.core.$strict>, z.ZodObject<{
6029
- kind: z.ZodLiteral<"assertion">;
6030
- shapes: z.ZodArray<z.ZodString>;
6031
- about: z.ZodObject<{
6034
+ about: z.ZodOptional<z.ZodObject<{
6032
6035
  wref: z.ZodString;
6033
6036
  v: z.ZodOptional<z.ZodNumber>;
6034
6037
  durableId: z.ZodString;
6035
- }, z.core.$strict>;
6036
- affirmed: z.ZodArray<z.ZodObject<{
6038
+ }, z.core.$strict>>;
6039
+ affirmed: z.ZodOptional<z.ZodArray<z.ZodObject<{
6037
6040
  wref: z.ZodString;
6038
6041
  v: z.ZodOptional<z.ZodNumber>;
6039
6042
  durableId: z.ZodString;
6040
- }, z.core.$strict>>;
6043
+ }, z.core.$strict>>>;
6041
6044
  active: z.ZodLiteral<true>;
6042
6045
  data: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
6043
6046
  wref: z.ZodString;
@@ -6047,7 +6050,6 @@ declare const repositoryExportRowSchema: z.ZodUnion<readonly [z.ZodDiscriminated
6047
6050
  kind: z.ZodEnum<{
6048
6051
  shape: "shape";
6049
6052
  thing: "thing";
6050
- assertion: "assertion";
6051
6053
  }>;
6052
6054
  active: z.ZodLiteral<false>;
6053
6055
  wref: z.ZodString;
@@ -6056,7 +6058,7 @@ declare const repositoryExportRowSchema: z.ZodUnion<readonly [z.ZodDiscriminated
6056
6058
  }, z.core.$strict>]>;
6057
6059
  declare const repositoryExportHeaderSchema: z.ZodObject<{
6058
6060
  kind: z.ZodLiteral<"header">;
6059
- formatVersion: z.ZodLiteral<4>;
6061
+ formatVersion: z.ZodLiteral<5>;
6060
6062
  repo: z.ZodString;
6061
6063
  mode: z.ZodEnum<{
6062
6064
  ops: "ops";
@@ -6356,7 +6358,7 @@ interface ReaffirmOperation {
6356
6358
  /**
6357
6359
  * Optional kind safety hint; reaffirm applies only to assertions.
6358
6360
  */
6359
- kind?: 'assertion';
6361
+ kind?: 'assertion' | 'thing';
6360
6362
  /**
6361
6363
  * Pinned target wrefs (`Shape/name@vN`) to affirm. A target already in the
6362
6364
  * set is reported as `ignored`, not an error.
@@ -7441,7 +7443,7 @@ interface ReaffirmOp {
7441
7443
  /**
7442
7444
  * Optional kind safety hint; reaffirm applies only to assertions.
7443
7445
  */
7444
- readonly kind?: 'assertion';
7446
+ readonly kind?: 'assertion' | 'thing';
7445
7447
  /**
7446
7448
  * Pinned target wrefs (`Shape/name@vN`) to affirm.
7447
7449
  */
@@ -8290,6 +8292,18 @@ type ShapeReviseOptions = {
8290
8292
  /** Replace the composition list; omit to preserve it, or pass [] to clear it. */
8291
8293
  composes?: string[];
8292
8294
  };
8295
+ type ShapeReviseArgs = [
8296
+ orgName: string,
8297
+ repoName: string,
8298
+ shapeName: string,
8299
+ opts: ShapeReviseOptions
8300
+ ] | [
8301
+ orgName: string,
8302
+ repoName: string,
8303
+ shapeName: string,
8304
+ newFields: Record<string, unknown> | undefined,
8305
+ opts: ShapeReviseOptions
8306
+ ];
8293
8307
  /** @internal */
8294
8308
  type ShapeRemoveOptions = {
8295
8309
  eventRequestId: string;
@@ -9108,12 +9122,12 @@ type FilterOptions = {
9108
9122
  /** Include the full certified Shape closure on each returned item. */
9109
9123
  includeValidatedShapes?: boolean;
9110
9124
  /**
9111
- * Filter to records of this kind: `shape`, `thing`, `assertion`, or
9112
- * `collection`. The requested kind controls membership: `thing` includes
9113
- * ordinary things and collections. Each result's `kind` describes that
9114
- * record: a collection is returned as `collection`.
9125
+ * Filter to records of this kind. Results project only `shape` or `thing`;
9126
+ * `assertion` and `collection` remain input aliases during their retirement
9127
+ * windows. Assertions carry `aboutWref` + `affirmedWrefs`; collections carry
9128
+ * `collections`.
9115
9129
  */
9116
- kind?: CommitOperationKind;
9130
+ kind?: ReadKindFilter;
9117
9131
  /** Filter assertions whose `about` target wref matches the supplied value. */
9118
9132
  about?: string;
9119
9133
  /**
@@ -10318,7 +10332,7 @@ declare class WarmHubClient {
10318
10332
  * @param opts.eventRequestId Caller-owned UUID retained across ambiguous retries.
10319
10333
  * @param opts.description Optional human-readable description for the revised shape.
10320
10334
  */
10321
- revise: (orgName: string, repoName: string, shapeName: string, newFields: Record<string, unknown>, opts: ShapeReviseOptions) => Promise<ShapeChange>;
10335
+ revise: (...args: ShapeReviseArgs) => Promise<ShapeChange>;
10322
10336
  /**
10323
10337
  * Retract a shape definition.
10324
10338
  *
@@ -11340,4 +11354,4 @@ declare class WarmHubClient {
11340
11354
  private watchRepoQuery;
11341
11355
  }
11342
11356
 
11343
- 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 AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAddOp, type CollectionAddType, 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 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, 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 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, ORG_AUTH_SCOPES, type Operation, OperationBuilder, type OperationBuilderAddInput, 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 ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, 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, 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 RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, 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 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, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isConnectionError, isDefiniteStreamAppendRejection, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
11357
+ 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 AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAddOp, type CollectionAddType, 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 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, 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 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, ORG_AUTH_SCOPES, type Operation, OperationBuilder, type OperationBuilderAddInput, 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 ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, 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, 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 RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, 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 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, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isConnectionError, isDefiniteStreamAppendRejection, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{t as AllStreamOperationsFailedError,A as CliCallVerificationError,E as DEFAULT_API_URL,q as DEFAULT_STREAM_CHUNK_SIZE,b as MAX_COMMIT_VALIDATION_ENCODED_BYTES,a as MAX_COMMIT_VALIDATION_OPERATIONS,r as MAX_STREAM_APPEND_OPERATION_COUNT,C as OperationBuilder,s as PartialStreamSubmissionError,i as RepositoryExportError,j as RepositoryExportSession,z as SDK_VERSION,n as StreamSubmissionAggregator,y as StreamingSubmissionOutcomeUnknownError,O as WarmHubClient,H as WarmHubError,h as applyRepositoryExportDelta,f as collectDurableTokens,e as commitValidateRequestBodyBytes,M as connectionErrorMessage,v as countStreamAppendResultStatuses,c as createCommitValidateInput,p as createOperationEventRequestId,o as createOperationEventSubmissionId,k as createRepositoryExportSession,d as encodeCommitValidateRequestBody,g as getResponseDecorations,L as isConnectionError,w as isDefiniteStreamAppendRejection,K as isRetryable,J as isWarmHubError,D as normalizeWref,l as readRepositoryExportStream,F as resolveFunctionLogMode,m as restoreRepositoryExportSession,G as sanitizeErrorMessage,N as sdkVersionIsBelowMinimum,u as streamAppendResultStatus,x as submitOperationsViaStream,I as toWarmHubError,B as verifyCliCall}from'./chunk-6GQNNR5L.js';export{r as CLI_INSTALL_REPO_HEADER,s as CLI_SIGNATURE_HEADER,t as CLI_TIMESTAMP_HEADER,c as CONTENT_FIELD_LIMIT_ERROR,b as MAX_CONTENT_FIELD_BYTES,A as ORG_AUTH_SCOPES,w as REPO_AUTH_SCOPES,d as contentFieldLimitError,B as isKnownOrgAuthScope,x as isKnownRepoAuthScope,C as operationEventStreamRequestId,Z as validateAgainstShape}from'./chunk-4OSQJILK.js';//# sourceMappingURL=index.js.map
1
+ export{t as AllStreamOperationsFailedError,A as CliCallVerificationError,E as DEFAULT_API_URL,q as DEFAULT_STREAM_CHUNK_SIZE,b as MAX_COMMIT_VALIDATION_ENCODED_BYTES,a as MAX_COMMIT_VALIDATION_OPERATIONS,r as MAX_STREAM_APPEND_OPERATION_COUNT,C as OperationBuilder,s as PartialStreamSubmissionError,i as RepositoryExportError,j as RepositoryExportSession,z as SDK_VERSION,n as StreamSubmissionAggregator,y as StreamingSubmissionOutcomeUnknownError,O as WarmHubClient,H as WarmHubError,h as applyRepositoryExportDelta,f as collectDurableTokens,e as commitValidateRequestBodyBytes,M as connectionErrorMessage,v as countStreamAppendResultStatuses,c as createCommitValidateInput,p as createOperationEventRequestId,o as createOperationEventSubmissionId,k as createRepositoryExportSession,d as encodeCommitValidateRequestBody,g as getResponseDecorations,L as isConnectionError,w as isDefiniteStreamAppendRejection,K as isRetryable,J as isWarmHubError,D as normalizeWref,l as readRepositoryExportStream,F as resolveFunctionLogMode,m as restoreRepositoryExportSession,G as sanitizeErrorMessage,N as sdkVersionIsBelowMinimum,u as streamAppendResultStatus,x as submitOperationsViaStream,I as toWarmHubError,B as verifyCliCall}from'./chunk-KJWHKN4V.js';export{t as CLI_INSTALL_REPO_HEADER,u as CLI_SIGNATURE_HEADER,v as CLI_TIMESTAMP_HEADER,d as CONTENT_FIELD_LIMIT_ERROR,c as MAX_CONTENT_FIELD_BYTES,o as MAX_WREFS_PER_THING_VERSION,C as ORG_AUTH_SCOPES,y as REPO_AUTH_SCOPES,e as contentFieldLimitError,D as isKnownOrgAuthScope,z as isKnownRepoAuthScope,E as operationEventStreamRequestId,$ as validateAgainstShape}from'./chunk-UCK4ZIVG.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
package/dist/react.js CHANGED
@@ -1,2 +1,2 @@
1
- import {O}from'./chunk-6GQNNR5L.js';export{E as DEFAULT_API_URL,z as SDK_VERSION,O as WarmHubClient,H as WarmHubError,I as toWarmHubError}from'./chunk-6GQNNR5L.js';import'./chunk-4OSQJILK.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 O({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 {O}from'./chunk-KJWHKN4V.js';export{E as DEFAULT_API_URL,z as SDK_VERSION,O as WarmHubClient,H as WarmHubError,I as toWarmHubError}from'./chunk-KJWHKN4V.js';import'./chunk-UCK4ZIVG.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 O({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.127.0",
3
+ "version": "0.129.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.",
@@ -39,6 +39,7 @@
39
39
  "files": [
40
40
  "dist",
41
41
  "CHANGELOG.md",
42
+ "changelog.json",
42
43
  "README.md"
43
44
  ],
44
45
  "publishConfig": {