@warmhub/sdk-ts 0.62.1 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -185,6 +185,7 @@ type ActionAttempt = {
|
|
|
185
185
|
type ActionLiveFeedResult = {
|
|
186
186
|
items: Array<{
|
|
187
187
|
subscriptionName: string;
|
|
188
|
+
deliveryId: string;
|
|
188
189
|
runId?: string;
|
|
189
190
|
status: string;
|
|
190
191
|
matchedOperationIndexes: Array<number>;
|
|
@@ -433,6 +434,44 @@ type Capabilities = {
|
|
|
433
434
|
minSupportedSdk: string;
|
|
434
435
|
features: Record<string, boolean>;
|
|
435
436
|
};
|
|
437
|
+
type HomepageFeaturedListsResult$1 = {
|
|
438
|
+
lists: Array<{
|
|
439
|
+
slug: string;
|
|
440
|
+
title: string;
|
|
441
|
+
description?: string;
|
|
442
|
+
surface?: string;
|
|
443
|
+
itemKind?: 'repo' | 'component' | 'skill';
|
|
444
|
+
sortOrder?: number;
|
|
445
|
+
items: Array<{
|
|
446
|
+
kind: 'repo' | 'component' | 'skill';
|
|
447
|
+
slug: string;
|
|
448
|
+
title: string;
|
|
449
|
+
description?: string;
|
|
450
|
+
sortOrder: number;
|
|
451
|
+
tagline?: string;
|
|
452
|
+
category?: string;
|
|
453
|
+
ctaLabel?: string;
|
|
454
|
+
curationReason?: string;
|
|
455
|
+
featuredSince?: string;
|
|
456
|
+
orgName?: string;
|
|
457
|
+
repoName?: string;
|
|
458
|
+
componentName?: string;
|
|
459
|
+
componentRef?: string;
|
|
460
|
+
marketplace?: string;
|
|
461
|
+
skillName?: string;
|
|
462
|
+
packageName?: string;
|
|
463
|
+
installCommand?: string;
|
|
464
|
+
externalUrl?: string;
|
|
465
|
+
createdAt?: number;
|
|
466
|
+
total?: number;
|
|
467
|
+
byKind?: {
|
|
468
|
+
shape: number;
|
|
469
|
+
thing: number;
|
|
470
|
+
assertion: number;
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
}>;
|
|
474
|
+
};
|
|
436
475
|
type StreamAppendInput$1 = {
|
|
437
476
|
orgName: string;
|
|
438
477
|
repoName: string;
|
|
@@ -2059,6 +2098,14 @@ type ActionLeaseOp = {
|
|
|
2059
2098
|
ok: false;
|
|
2060
2099
|
reason: string;
|
|
2061
2100
|
};
|
|
2101
|
+
/** @internal */
|
|
2102
|
+
type ActionDeliveryTarget = string | {
|
|
2103
|
+
runId: string;
|
|
2104
|
+
deliveryId?: never;
|
|
2105
|
+
} | {
|
|
2106
|
+
deliveryId: string;
|
|
2107
|
+
runId?: never;
|
|
2108
|
+
};
|
|
2062
2109
|
/**
|
|
2063
2110
|
* Result returned by in-place rename mutations: `client.shape.rename` and
|
|
2064
2111
|
* `client.thing.rename`. A rename patches the identity field directly and
|
|
@@ -2069,6 +2116,8 @@ type ActionLeaseOp = {
|
|
|
2069
2116
|
* @see https://docs.warmhub.ai/data-modeling/naming-as-navigation/
|
|
2070
2117
|
*/
|
|
2071
2118
|
type RenameResult = RenameResult$1;
|
|
2119
|
+
/** @internal Curated lists returned by `client.homepage.featuredLists()`. */
|
|
2120
|
+
type HomepageFeaturedListsResult = HomepageFeaturedListsResult$1;
|
|
2072
2121
|
/**
|
|
2073
2122
|
* A single entry in the indexed-fields report.
|
|
2074
2123
|
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/indexedfieldentry/
|
|
@@ -3111,6 +3160,16 @@ declare class WarmHubClient {
|
|
|
3111
3160
|
*/
|
|
3112
3161
|
whoami: () => Promise<WhoamiInfo>;
|
|
3113
3162
|
};
|
|
3163
|
+
/**
|
|
3164
|
+
* Homepage surfaces.
|
|
3165
|
+
* @see https://docs.warmhub.ai/sdk-reference/classes/warmhubclient/#homepage
|
|
3166
|
+
*/
|
|
3167
|
+
readonly homepage: {
|
|
3168
|
+
/**
|
|
3169
|
+
* Return manually curated featured homepage lists.
|
|
3170
|
+
*/
|
|
3171
|
+
featuredLists: () => Promise<HomepageFeaturedListsResult$1>;
|
|
3172
|
+
};
|
|
3114
3173
|
/**
|
|
3115
3174
|
* Effective-access resolution for UI gating and service-side authorization.
|
|
3116
3175
|
* First-party surface (web UI + whedge edge); the underlying `access.resolve`
|
|
@@ -3756,13 +3815,13 @@ declare class WarmHubClient {
|
|
|
3756
3815
|
*/
|
|
3757
3816
|
releaseLease: (orgName: string, repoName: string, subscriptionName: string, holderId: string) => Promise<ActionLeaseOp>;
|
|
3758
3817
|
/**
|
|
3759
|
-
* Claim one action delivery
|
|
3818
|
+
* Claim one action delivery for processing.
|
|
3760
3819
|
*/
|
|
3761
|
-
claimDelivery: (orgName: string, repoName: string,
|
|
3820
|
+
claimDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
|
|
3762
3821
|
/**
|
|
3763
|
-
* Mark one claimed action delivery
|
|
3822
|
+
* Mark one claimed action delivery as complete.
|
|
3764
3823
|
*/
|
|
3765
|
-
completeDelivery: (orgName: string, repoName: string,
|
|
3824
|
+
completeDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
|
|
3766
3825
|
/**
|
|
3767
3826
|
* Query the live delivery feed for a subscription.
|
|
3768
3827
|
*
|
|
@@ -4329,13 +4388,13 @@ declare class WarmHubClient {
|
|
|
4329
4388
|
*/
|
|
4330
4389
|
releaseLease: (orgName: string, repoName: string, subscriptionName: string, holderId: string) => Promise<ActionLeaseOp>;
|
|
4331
4390
|
/**
|
|
4332
|
-
* Claim one action delivery
|
|
4391
|
+
* Claim one action delivery for processing.
|
|
4333
4392
|
*/
|
|
4334
|
-
claimDelivery: (orgName: string, repoName: string,
|
|
4393
|
+
claimDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
|
|
4335
4394
|
/**
|
|
4336
|
-
* Mark one claimed action delivery
|
|
4395
|
+
* Mark one claimed action delivery as complete.
|
|
4337
4396
|
*/
|
|
4338
|
-
completeDelivery: (orgName: string, repoName: string,
|
|
4397
|
+
completeDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
|
|
4339
4398
|
/**
|
|
4340
4399
|
* Query the live delivery feed for a subscription.
|
|
4341
4400
|
*
|
|
@@ -4384,4 +4443,4 @@ declare class WarmHubClient {
|
|
|
4384
4443
|
private watchRepoQuery;
|
|
4385
4444
|
}
|
|
4386
4445
|
|
|
4387
|
-
export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAbout, type CollectionAddOp, type CollectionAddType, type CollectionTag, type ComponentInfo, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type ErrorKind, type FilterOptions, type FilterResult, type FunctionLogMode, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type HeadResult, type HistoryResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, type Operation, OperationBuilder, type OperationBuilderAddInput, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationSubmitResult, type OrgAccessResult, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, type RefLink, type RefsOptions, type RefsResult, type RenameOperation, type RenameResult, type RepoAccessResult, type RepoConfigureStatsView, type RepoDescribeResult, type RepoInfo, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, WarmHubClient, type WarmHubClientOptions, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
|
4446
|
+
export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAbout, type CollectionAddOp, type CollectionAddType, type CollectionTag, type ComponentInfo, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type ErrorKind, type FilterOptions, type FilterResult, type FunctionLogMode, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type HeadResult, type HistoryResult, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, type Operation, OperationBuilder, type OperationBuilderAddInput, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationSubmitResult, type OrgAccessResult, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, type RefLink, type RefsOptions, type RefsResult, type RenameOperation, type RenameResult, type RepoAccessResult, type RepoConfigureStatsView, type RepoDescribeResult, type RepoInfo, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, WarmHubClient, type WarmHubClientOptions, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall } from './chunk-
|
|
1
|
+
export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall } from './chunk-JPX7ZWWE.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WarmHubClient } from './chunk-
|
|
2
|
-
export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-
|
|
1
|
+
import { WarmHubClient } from './chunk-JPX7ZWWE.js';
|
|
2
|
+
export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-JPX7ZWWE.js';
|
|
3
3
|
import { createContext, useMemo, useState, useEffect, useContext } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmhub/sdk-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "The TypeScript SDK for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
|
|
@@ -50,8 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
-
"
|
|
54
|
-
"build": "tsup && bun run scripts/inject-doc-links.ts",
|
|
53
|
+
"build": "tsc --noEmit && tsup && bun run scripts/inject-doc-links.ts",
|
|
55
54
|
"generate:api-contract": "bun run scripts/generate-api-contract.ts",
|
|
56
55
|
"generate:backend-types": "bun run scripts/generate-backend-types.ts",
|
|
57
56
|
"audit:api-contract": "bun run scripts/audit-api-contract.ts",
|