@warmhub/sdk-ts 0.82.3 → 0.84.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/{chunk-PMLASUR6.js → chunk-CLDVXOJD.js} +478 -165
- package/dist/chunk-CLDVXOJD.js.map +1 -0
- package/dist/index.d.ts +339 -62
- package/dist/index.js +1 -1
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-PMLASUR6.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -644,6 +644,7 @@ type StreamAppendInput$1 = {
|
|
|
644
644
|
name: string;
|
|
645
645
|
kind?: 'shape' | 'thing' | 'assertion' | 'collection';
|
|
646
646
|
reason?: string;
|
|
647
|
+
expectedVersion?: number;
|
|
647
648
|
leaseId?: string;
|
|
648
649
|
} | {
|
|
649
650
|
operation: 'rename';
|
|
@@ -1250,6 +1251,11 @@ interface RetractOperation {
|
|
|
1250
1251
|
* Optional human-readable retraction reason.
|
|
1251
1252
|
*/
|
|
1252
1253
|
reason?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* Optional optimistic-concurrency precondition. When supplied, the retract
|
|
1256
|
+
* is applied only if the target is still at this version number.
|
|
1257
|
+
*/
|
|
1258
|
+
expectedVersion?: number;
|
|
1253
1259
|
/**
|
|
1254
1260
|
* Optional read-lease token (#3625) returned by `thing.getWithLease`. A
|
|
1255
1261
|
* matching token auto-releases the lease on commit; a mismatch (or absence
|
|
@@ -1408,9 +1414,11 @@ type StreamFailureCause = {
|
|
|
1408
1414
|
*
|
|
1409
1415
|
* The `completedOperations` field contains returned rows the SDK knows
|
|
1410
1416
|
* completed. `acknowledgedOperationCount` also records progress when an append
|
|
1411
|
-
* response contains sparse or empty result rows.
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1417
|
+
* response contains sparse or empty result rows. If the attempted append is
|
|
1418
|
+
* outcome-unknown, stop writes until it can no longer apply, then obtain a
|
|
1419
|
+
* later verified checkpoint and reconcile it with the acknowledged receipt.
|
|
1420
|
+
* Branch on `attemptedAppendOutcome`; the underlying `cause` is diagnostic and
|
|
1421
|
+
* may describe a later rejection that followed an earlier ambiguous attempt.
|
|
1414
1422
|
*
|
|
1415
1423
|
* @see https://docs.warmhub.ai/sdk/transient-retry/#partial-submissions
|
|
1416
1424
|
*/
|
|
@@ -1421,8 +1429,8 @@ declare class PartialStreamSubmissionError extends Error {
|
|
|
1421
1429
|
readonly code = "PARTIAL_STREAM_SUBMISSION";
|
|
1422
1430
|
/**
|
|
1423
1431
|
* Operations the SDK confirmed completed before the ambiguous or failing
|
|
1424
|
-
* append. The
|
|
1425
|
-
*
|
|
1432
|
+
* append. The attempted append may or may not have landed; do not blindly
|
|
1433
|
+
* replay it.
|
|
1426
1434
|
* @see https://docs.warmhub.ai/sdk-reference/classes/partialstreamsubmissionerror/#completedoperations
|
|
1427
1435
|
*/
|
|
1428
1436
|
readonly completedOperations: SubmittedStreamResult['operations'];
|
|
@@ -1433,9 +1441,23 @@ declare class PartialStreamSubmissionError extends Error {
|
|
|
1433
1441
|
* @see https://docs.warmhub.ai/sdk-reference/classes/partialstreamsubmissionerror/#acknowledgedoperationcount
|
|
1434
1442
|
*/
|
|
1435
1443
|
readonly acknowledgedOperationCount: number;
|
|
1444
|
+
/**
|
|
1445
|
+
* Last repository sequence returned by an acknowledged chunk that persisted
|
|
1446
|
+
* an event. This is a lower bound for known completed work, never evidence
|
|
1447
|
+
* that the attempted append did not land.
|
|
1448
|
+
*/
|
|
1449
|
+
readonly lastAcknowledgedRepoSeq?: number;
|
|
1450
|
+
/**
|
|
1451
|
+
* Authoritative outcome of the attempted append. `not_applied` is used only
|
|
1452
|
+
* when the SDK received explicit server rejection evidence; `unknown` means
|
|
1453
|
+
* callers must stop writes and reconcile from a later verified checkpoint.
|
|
1454
|
+
* @see https://docs.warmhub.ai/sdk-reference/classes/partialstreamsubmissionerror/#attemptedappendoutcome
|
|
1455
|
+
*/
|
|
1456
|
+
readonly attemptedAppendOutcome: 'not_applied' | 'unknown';
|
|
1436
1457
|
/**
|
|
1437
1458
|
* Underlying error that triggered the partial submission, preserved for
|
|
1438
|
-
* diagnostics.
|
|
1459
|
+
* diagnostics. Do not infer append outcome from this field; branch on
|
|
1460
|
+
* `attemptedAppendOutcome` instead.
|
|
1439
1461
|
* @see https://docs.warmhub.ai/sdk-reference/classes/partialstreamsubmissionerror/#cause
|
|
1440
1462
|
*/
|
|
1441
1463
|
readonly cause: unknown;
|
|
@@ -1443,6 +1465,8 @@ declare class PartialStreamSubmissionError extends Error {
|
|
|
1443
1465
|
cause: unknown;
|
|
1444
1466
|
completedOperations: SubmittedStreamResult['operations'];
|
|
1445
1467
|
acknowledgedOperationCount?: number;
|
|
1468
|
+
lastAcknowledgedRepoSeq?: number;
|
|
1469
|
+
attemptedAppendOutcome: 'not_applied' | 'unknown';
|
|
1446
1470
|
});
|
|
1447
1471
|
}
|
|
1448
1472
|
/**
|
|
@@ -1463,41 +1487,50 @@ declare class AllStreamOperationsFailedError extends Error {
|
|
|
1463
1487
|
* Submit `operations` to the WarmHub stream-append surface, chunked to
|
|
1464
1488
|
* stay under MAX_STREAM_APPEND_OPERATION_COUNT.
|
|
1465
1489
|
*
|
|
1466
|
-
* **Retry policy (default-on, first-chunk + single-op
|
|
1467
|
-
* transport-ambiguous failure (timeout / 5xx / network reset
|
|
1468
|
-
* error) on the first chunk triggers a bounded retry — but
|
|
1469
|
-
* the first chunk contains exactly one operation
|
|
1470
|
-
*
|
|
1490
|
+
* **Retry policy (default-on, first-chunk + single-op + replay-safe
|
|
1491
|
+
* only).** A transport-ambiguous failure (timeout / 5xx / network reset
|
|
1492
|
+
* / no-code error) on the first chunk triggers a bounded retry — but
|
|
1493
|
+
* only when the first chunk contains exactly one operation and that
|
|
1494
|
+
* operation carries a server-enforceable replay fence (see below). The
|
|
1495
|
+
* SDK mints a fresh `streamId`, sleeps with jittered
|
|
1471
1496
|
* exponential backoff, and re-issues the same operation. The retried
|
|
1472
1497
|
* call is observationally indistinguishable from a single clean
|
|
1473
1498
|
* apply — the SDK does not rewrite the request or the response.
|
|
1474
1499
|
*
|
|
1475
|
-
* Multi-op chunks bypass retry entirely
|
|
1476
|
-
*
|
|
1477
|
-
*
|
|
1478
|
-
*
|
|
1479
|
-
* also bypass retry. Both surface
|
|
1480
|
-
*
|
|
1500
|
+
* Multi-op chunks bypass retry entirely. One `stream.append` executes in one
|
|
1501
|
+
* database transaction, but a lost response still leaves its per-operation
|
|
1502
|
+
* result vector and repository sequence unknown. Replaying it could produce
|
|
1503
|
+
* different noops, conflicts, or dependency outcomes. Multi-chunk mid-flight
|
|
1504
|
+
* failures (`acknowledgedOperationCount > 0`) also bypass retry. Both surface
|
|
1505
|
+
* `PartialStreamSubmissionError`; callers must stop writes and reconcile the
|
|
1506
|
+
* attempted append from a later verified checkpoint.
|
|
1507
|
+
*
|
|
1508
|
+
* **Unfenced `revise` never auto-retries.** A `revise` without
|
|
1509
|
+
* `expectedVersion` has no server-side precondition, so a replay could
|
|
1510
|
+
* silently overwrite a concurrent revision (lost update). Its ambiguous
|
|
1511
|
+
* failure surfaces as `PartialStreamSubmissionError` instead, preserving
|
|
1512
|
+
* the stop-and-reconcile guidance. Canonical rationale:
|
|
1513
|
+
* `isReplaySafeOperation` in stream-submit-utils.ts.
|
|
1481
1514
|
*
|
|
1482
1515
|
* Definite client rejections (`UNAUTHENTICATED`, `VALIDATION_ERROR`,
|
|
1483
1516
|
* `CONFLICT`, `RATE_LIMITED`, `ALREADY_RETRACTED`, …) on the first chunk
|
|
1484
1517
|
* still rethrow the raw cause unchanged — they
|
|
1485
1518
|
* are not transient, and structured detail (e.g. `retryAfter` on
|
|
1486
1519
|
* `RATE_LIMITED`) survives. If the caller's original attempt landed but
|
|
1487
|
-
* the response was lost,
|
|
1488
|
-
*
|
|
1489
|
-
*
|
|
1520
|
+
* the response was lost, a resulting `CONFLICT` (for `add`) or
|
|
1521
|
+
* `ALREADY_RETRACTED` (for `retract`) on the retry does not disprove that the
|
|
1522
|
+
* first attempt landed, so the SDK preserves the ambiguous partial error.
|
|
1490
1523
|
*
|
|
1491
1524
|
* `COMMIT_OUTCOME_UNKNOWN` is terminal but ambiguous: the SDK never
|
|
1492
1525
|
* replays it and surfaces `PartialStreamSubmissionError` with the original
|
|
1493
|
-
* cause so callers must
|
|
1526
|
+
* cause so callers must stop writes and reconcile from a later checkpoint.
|
|
1494
1527
|
*
|
|
1495
1528
|
* **Ambiguity preservation across attempts.** Once any attempt has
|
|
1496
1529
|
* been transport-ambiguous (timeout / 5xx / reset), a subsequent
|
|
1497
1530
|
* definite-reject (e.g. `RATE_LIMITED` on a quota check) does *not*
|
|
1498
1531
|
* prove the prior attempt didn't land. In that case the SDK wraps the
|
|
1499
1532
|
* cause as `PartialStreamSubmissionError` instead of rethrowing raw,
|
|
1500
|
-
* so the
|
|
1533
|
+
* so the stop-and-reconcile warning survives.
|
|
1501
1534
|
*
|
|
1502
1535
|
* **Operation normalization.** `args.operations` accepts the public
|
|
1503
1536
|
* `Operation[]` write contract. The SDK normalizes operations to the
|
|
@@ -1515,8 +1548,9 @@ declare class AllStreamOperationsFailedError extends Error {
|
|
|
1515
1548
|
* `args.skipExisting: true` applies `skipExisting: true` to every
|
|
1516
1549
|
* normalized `add` op. The server then returns `noop` for `add` ops
|
|
1517
1550
|
* whose target already exists. `revise` is naturally idempotent on
|
|
1518
|
-
* equal `dataHash` + `aboutThingId
|
|
1519
|
-
*
|
|
1551
|
+
* equal `dataHash` + `aboutThingId`, but only against an exact replay —
|
|
1552
|
+
* that no-op gate does not make an unfenced `revise` retry-safe (see
|
|
1553
|
+
* above); built-in collection adds dedupe on `dataHash`.
|
|
1520
1554
|
*
|
|
1521
1555
|
* Pass `args.retry: false` to disable retry entirely; pass
|
|
1522
1556
|
* `args.retry: { maxAttempts, baseDelayMs, maxDelayMs }` to override
|
|
@@ -1821,6 +1855,11 @@ interface RetractOp {
|
|
|
1821
1855
|
* Optional human-readable retraction reason.
|
|
1822
1856
|
*/
|
|
1823
1857
|
readonly reason?: string;
|
|
1858
|
+
/**
|
|
1859
|
+
* Optional optimistic-concurrency precondition. When supplied, the retract
|
|
1860
|
+
* is applied only if the target is still at this version number.
|
|
1861
|
+
*/
|
|
1862
|
+
readonly expectedVersion?: number;
|
|
1824
1863
|
/**
|
|
1825
1864
|
* Optional read-lease token (#3625) returned by `thing.getWithLease`. When
|
|
1826
1865
|
* it matches the target's active lease the lease auto-releases on commit;
|
|
@@ -1943,15 +1982,11 @@ declare class OperationBuilder {
|
|
|
1943
1982
|
/**
|
|
1944
1983
|
* Add a retract operation.
|
|
1945
1984
|
*
|
|
1946
|
-
* Pass a wref string shorthand or an object with
|
|
1985
|
+
* Pass a wref string shorthand or an object with retract options such as a
|
|
1986
|
+
* kind safety hint, reason, expected version, or lease ID.
|
|
1947
1987
|
* @see https://docs.warmhub.ai/sdk-reference/classes/operationbuilder/#retract
|
|
1948
1988
|
*/
|
|
1949
|
-
retract(target: string |
|
|
1950
|
-
name: string;
|
|
1951
|
-
kind?: CommitOperationKind;
|
|
1952
|
-
reason?: string;
|
|
1953
|
-
leaseId?: string;
|
|
1954
|
-
}): this;
|
|
1989
|
+
retract(target: string | Omit<RetractOp, 'operation'>): this;
|
|
1955
1990
|
/**
|
|
1956
1991
|
* Return the queued operations.
|
|
1957
1992
|
*
|
|
@@ -2337,6 +2372,8 @@ type ActionNotificationInfo = ActionNotification;
|
|
|
2337
2372
|
/** @internal */
|
|
2338
2373
|
type ActionLiveFeed = ActionLiveFeedResult;
|
|
2339
2374
|
/** @internal */
|
|
2375
|
+
type ActionLiveFeedItem = ActionLiveFeed['items'][number];
|
|
2376
|
+
/** @internal */
|
|
2340
2377
|
type ActionLeaseAcquire = {
|
|
2341
2378
|
ok: true;
|
|
2342
2379
|
reused: boolean;
|
|
@@ -2662,6 +2699,10 @@ type RepoListForCallerOptions = {
|
|
|
2662
2699
|
* @internal
|
|
2663
2700
|
*/
|
|
2664
2701
|
type RepoExploreOptions = RepoExploreInput;
|
|
2702
|
+
/** @internal */
|
|
2703
|
+
type RepoExploreBrowseOptions = Omit<RepoExploreOptions, 'slugs'> & {
|
|
2704
|
+
slugs?: never;
|
|
2705
|
+
};
|
|
2665
2706
|
/**
|
|
2666
2707
|
* A repository row in the public "Explore" directory
|
|
2667
2708
|
* (`client.repo.explore`).
|
|
@@ -2819,6 +2860,17 @@ type ThingHeadOptions = Omit<ThingHeadRequest, 'orgName' | 'repoName'>;
|
|
|
2819
2860
|
type HeadResult = {
|
|
2820
2861
|
items: ThingItem[];
|
|
2821
2862
|
nextCursor?: string;
|
|
2863
|
+
/** Completed incremental scan checkpoint; omitted on ordinary and nonterminal pages. */
|
|
2864
|
+
repoSeq?: number;
|
|
2865
|
+
};
|
|
2866
|
+
/** @internal */
|
|
2867
|
+
type ThingHeadChangesOptions = Omit<ThingHeadOptions, 'cursor' | 'includeRetracted' | 'sinceRepoSeq'> & {
|
|
2868
|
+
sinceRepoSeq: number;
|
|
2869
|
+
};
|
|
2870
|
+
/** @internal */
|
|
2871
|
+
type ThingChanges = {
|
|
2872
|
+
items: ThingItem[];
|
|
2873
|
+
repoSeq: number;
|
|
2822
2874
|
};
|
|
2823
2875
|
/** @internal */
|
|
2824
2876
|
type ThingGet = ThingDetail;
|
|
@@ -2911,32 +2963,17 @@ type ThingGraphResult = ThingDetail & {
|
|
|
2911
2963
|
/** @internal */
|
|
2912
2964
|
type ThingHistory = HistoryResult;
|
|
2913
2965
|
/** @internal */
|
|
2914
|
-
type
|
|
2966
|
+
type HistoryVersion = ThingHistoryResult['versions'][number] & Record<string, unknown>;
|
|
2967
|
+
/** @internal */
|
|
2968
|
+
type HistoryResult = Omit<ThingHistoryResult, 'versions'> & {
|
|
2915
2969
|
thing?: {
|
|
2916
2970
|
wref: string;
|
|
2917
2971
|
name?: string;
|
|
2918
2972
|
kind: string;
|
|
2919
2973
|
shapeName?: string;
|
|
2920
2974
|
};
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
wref: string;
|
|
2924
|
-
operation: CommitOperation;
|
|
2925
|
-
retractReason?: string;
|
|
2926
|
-
active: boolean;
|
|
2927
|
-
createdAt: number;
|
|
2928
|
-
thingName?: string;
|
|
2929
|
-
thingKind?: string;
|
|
2930
|
-
shapeName?: string;
|
|
2931
|
-
data?: unknown;
|
|
2932
|
-
aboutWref?: string;
|
|
2933
|
-
committerWref?: string;
|
|
2934
|
-
/** #4848 Phase C: per-version author (renamed from createdByWref). */
|
|
2935
|
-
revisedBy?: string;
|
|
2936
|
-
metadata?: Pick<ThingMetadata, 'durableId' | 'createdOn'>;
|
|
2937
|
-
[key: string]: unknown;
|
|
2938
|
-
}>;
|
|
2939
|
-
nextCursor?: string;
|
|
2975
|
+
/** History rows retain forward-compatible backend fields. */
|
|
2976
|
+
versions: HistoryVersion[];
|
|
2940
2977
|
};
|
|
2941
2978
|
/** @internal */
|
|
2942
2979
|
type ThingHeadRequest = {
|
|
@@ -2953,6 +2990,8 @@ type ThingHeadRequest = {
|
|
|
2953
2990
|
excludeComponents?: boolean;
|
|
2954
2991
|
excludeInfraShapes?: boolean;
|
|
2955
2992
|
where?: WherePredicate[];
|
|
2993
|
+
/** Strict lower repository sequence for an incremental scan; `-1` seeds a complete snapshot. */
|
|
2994
|
+
sinceRepoSeq?: number;
|
|
2956
2995
|
};
|
|
2957
2996
|
/** @internal */
|
|
2958
2997
|
type ThingHead = HeadResult;
|
|
@@ -2994,6 +3033,7 @@ type LiveRepoEvent = {
|
|
|
2994
3033
|
};
|
|
2995
3034
|
/** @internal */
|
|
2996
3035
|
type ActionListRunsOptions = {
|
|
3036
|
+
runId?: string;
|
|
2997
3037
|
subscriptionName?: string;
|
|
2998
3038
|
status?: 'pending' | 'running' | 'processing' | 'retry_wait' | 'succeeded' | 'suppressed' | 'failed_terminal' | 'dead_letter';
|
|
2999
3039
|
outcome?: 'succeeded' | 'failed';
|
|
@@ -3127,7 +3167,7 @@ type AboutResult = {
|
|
|
3127
3167
|
/** @internal */
|
|
3128
3168
|
type FilterResult = HeadResult;
|
|
3129
3169
|
/** @internal */
|
|
3130
|
-
type SearchResult = HeadResult
|
|
3170
|
+
type SearchResult = Omit<HeadResult, 'repoSeq'>;
|
|
3131
3171
|
/** @internal */
|
|
3132
3172
|
type RefsResult = RefsResult$1;
|
|
3133
3173
|
/** @internal */
|
|
@@ -3153,6 +3193,8 @@ type ThingHeadVersionsResult = ThingHeadVersionsResult$1;
|
|
|
3153
3193
|
/** @internal */
|
|
3154
3194
|
type CountResult = {
|
|
3155
3195
|
count: number;
|
|
3196
|
+
/** Completed incremental scan checkpoint; omitted from ordinary counts. */
|
|
3197
|
+
repoSeq?: number;
|
|
3156
3198
|
};
|
|
3157
3199
|
/** @internal */
|
|
3158
3200
|
type AboutOptions = {
|
|
@@ -3242,6 +3284,12 @@ type FilterOptions = {
|
|
|
3242
3284
|
* Up to 8 predicates per call.
|
|
3243
3285
|
*/
|
|
3244
3286
|
where?: WherePredicate[];
|
|
3287
|
+
/** Strict lower repository sequence for an incremental scan; `-1` seeds a complete snapshot. */
|
|
3288
|
+
sinceRepoSeq?: number;
|
|
3289
|
+
};
|
|
3290
|
+
/** @internal */
|
|
3291
|
+
type ThingQueryChangesOptions = Omit<FilterOptions, 'cursor' | 'includeRetracted' | 'sinceRepoSeq'> & {
|
|
3292
|
+
sinceRepoSeq: number;
|
|
3245
3293
|
};
|
|
3246
3294
|
/**
|
|
3247
3295
|
* Options for `client.thing.search`. Search does not support field-value
|
|
@@ -3252,7 +3300,7 @@ type FilterOptions = {
|
|
|
3252
3300
|
*
|
|
3253
3301
|
* @see https://docs.warmhub.ai/sdk/read-semantics/#search-modes
|
|
3254
3302
|
*/
|
|
3255
|
-
type SearchOptions = Omit<FilterOptions, 'where' | 'role'> & {
|
|
3303
|
+
type SearchOptions = Omit<FilterOptions, 'where' | 'role' | 'sinceRepoSeq'> & {
|
|
3256
3304
|
/** Restrict the search to assertions about this wref target. */
|
|
3257
3305
|
about?: string;
|
|
3258
3306
|
/** Search mode: `text` (BM25), `vector` (semantic), or `hybrid` (combined). Defaults to `text`. */
|
|
@@ -3649,13 +3697,44 @@ declare class WarmHubClient {
|
|
|
3649
3697
|
* token.
|
|
3650
3698
|
*/
|
|
3651
3699
|
list: (orgName: string, repoName: string, opts?: ComponentListOptions) => Promise<ComponentList>;
|
|
3700
|
+
/**
|
|
3701
|
+
* Iterate installed components. Cursors resume the same query and result
|
|
3702
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
3703
|
+
* `cursor`.
|
|
3704
|
+
*/
|
|
3705
|
+
listIter: (orgName: string, repoName: string, opts?: ComponentListOptions) => AsyncIterableIterator<ComponentInfo>;
|
|
3706
|
+
/**
|
|
3707
|
+
* Materialize installed components. Cursors resume the same query and
|
|
3708
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
3709
|
+
* without `cursor`.
|
|
3710
|
+
*/
|
|
3711
|
+
listAll: (orgName: string, repoName: string, opts?: ComponentListOptions & {
|
|
3712
|
+
max?: number;
|
|
3713
|
+
}) => Promise<ComponentInfo[]>;
|
|
3652
3714
|
/**
|
|
3653
3715
|
* Search registered components visible to the caller across all orgs
|
|
3654
3716
|
* (GH-4383): public components plus private components the caller can
|
|
3655
3717
|
* read. Distinct from listing components installed in a repo
|
|
3656
3718
|
* (`component.list`).
|
|
3719
|
+
*
|
|
3720
|
+
* Cursor contract: cursors resume the same query and result scope; on
|
|
3721
|
+
* `VALIDATION_ERROR` / `Invalid cursor`, restart the query without `cursor`.
|
|
3657
3722
|
*/
|
|
3658
3723
|
search: (query: string, opts?: GlobalSearchOptions) => Promise<GlobalSearchResult>;
|
|
3724
|
+
/**
|
|
3725
|
+
* Iterate global component search hits. Cursors resume the same query and
|
|
3726
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
3727
|
+
* without `cursor`.
|
|
3728
|
+
*/
|
|
3729
|
+
searchIter: (query: string, opts?: GlobalSearchOptions) => AsyncIterableIterator<GlobalSearchResultItem>;
|
|
3730
|
+
/**
|
|
3731
|
+
* Materialize global component search hits. Cursors resume the same query
|
|
3732
|
+
* and result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the
|
|
3733
|
+
* query without `cursor`.
|
|
3734
|
+
*/
|
|
3735
|
+
searchAll: (query: string, opts?: GlobalSearchOptions & {
|
|
3736
|
+
max?: number;
|
|
3737
|
+
}) => Promise<GlobalSearchResultItem[]>;
|
|
3659
3738
|
/**
|
|
3660
3739
|
* Fetch one installed component by its `Org/Name` ref.
|
|
3661
3740
|
*/
|
|
@@ -3937,12 +4016,43 @@ declare class WarmHubClient {
|
|
|
3937
4016
|
* token.
|
|
3938
4017
|
*/
|
|
3939
4018
|
list: (orgName: string, opts?: RepoListOptions) => Promise<RepoList>;
|
|
4019
|
+
/**
|
|
4020
|
+
* Iterate organization repositories. Cursors resume the same query and
|
|
4021
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4022
|
+
* without `cursor`.
|
|
4023
|
+
*/
|
|
4024
|
+
listIter: (orgName: string, opts?: RepoListOptions) => AsyncIterableIterator<RepoInfo>;
|
|
4025
|
+
/**
|
|
4026
|
+
* Materialize organization repositories. Cursors resume the same query and
|
|
4027
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4028
|
+
* without `cursor`.
|
|
4029
|
+
*/
|
|
4030
|
+
listAll: (orgName: string, opts?: RepoListOptions & {
|
|
4031
|
+
max?: number;
|
|
4032
|
+
}) => Promise<RepoInfo[]>;
|
|
3940
4033
|
/**
|
|
3941
4034
|
* Search repos visible to the caller across all orgs (GH-4383): public
|
|
3942
4035
|
* repos plus private repos the caller can read. BM25 over
|
|
3943
4036
|
* name/description/shape vocabulary/README.
|
|
4037
|
+
*
|
|
4038
|
+
* Cursor contract: cursors resume the same query and result scope; on
|
|
4039
|
+
* `VALIDATION_ERROR` / `Invalid cursor`, restart the query without `cursor`.
|
|
3944
4040
|
*/
|
|
3945
4041
|
search: (query: string, opts?: GlobalSearchOptions) => Promise<GlobalSearchResult>;
|
|
4042
|
+
/**
|
|
4043
|
+
* Iterate global repository search hits. Cursors resume the same query and
|
|
4044
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4045
|
+
* without `cursor`.
|
|
4046
|
+
*/
|
|
4047
|
+
searchIter: (query: string, opts?: GlobalSearchOptions) => AsyncIterableIterator<GlobalSearchResultItem>;
|
|
4048
|
+
/**
|
|
4049
|
+
* Materialize global repository search hits. Cursors resume the same query
|
|
4050
|
+
* and result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the
|
|
4051
|
+
* query without `cursor`.
|
|
4052
|
+
*/
|
|
4053
|
+
searchAll: (query: string, opts?: GlobalSearchOptions & {
|
|
4054
|
+
max?: number;
|
|
4055
|
+
}) => Promise<GlobalSearchResultItem[]>;
|
|
3946
4056
|
/**
|
|
3947
4057
|
* Create a repository inside an organization.
|
|
3948
4058
|
*
|
|
@@ -4015,6 +4125,20 @@ declare class WarmHubClient {
|
|
|
4015
4125
|
* token.
|
|
4016
4126
|
*/
|
|
4017
4127
|
listPage: (orgName: string, opts?: RepoListPageOptions) => Promise<RepoListPageResult>;
|
|
4128
|
+
/**
|
|
4129
|
+
* Iterate repository rows with stats. Cursors resume the same query and
|
|
4130
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4131
|
+
* without `cursor`.
|
|
4132
|
+
*/
|
|
4133
|
+
listPageIter: (orgName: string, opts?: RepoListPageOptions) => AsyncIterableIterator<RepoWithStatsInfo>;
|
|
4134
|
+
/**
|
|
4135
|
+
* Materialize repository rows with stats. Cursors resume the same query and
|
|
4136
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4137
|
+
* without `cursor`.
|
|
4138
|
+
*/
|
|
4139
|
+
listPageAll: (orgName: string, opts?: RepoListPageOptions & {
|
|
4140
|
+
max?: number;
|
|
4141
|
+
}) => Promise<RepoWithStatsInfo[]>;
|
|
4018
4142
|
/**
|
|
4019
4143
|
* List the caller's repositories across every org they belong to, ordered
|
|
4020
4144
|
* for recency by default (most recently written first), capped at `limit`.
|
|
@@ -4051,6 +4175,22 @@ declare class WarmHubClient {
|
|
|
4051
4175
|
* token.
|
|
4052
4176
|
*/
|
|
4053
4177
|
explore: (opts?: RepoExploreOptions) => Promise<RepoExploreResult>;
|
|
4178
|
+
/**
|
|
4179
|
+
* Iterate public Explore browse results. Cursors resume the same query and
|
|
4180
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4181
|
+
* without `cursor`. Exact `slugs` lookup is not pageable.
|
|
4182
|
+
*/
|
|
4183
|
+
exploreIter: (opts?: RepoExploreBrowseOptions) => AsyncIterableIterator<RepoExploreItem>;
|
|
4184
|
+
/**
|
|
4185
|
+
* Materialize public Explore browse results. Cursors resume the same query
|
|
4186
|
+
* and result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the
|
|
4187
|
+
* query without `cursor`. Exact `slugs` lookup is not pageable. `max`
|
|
4188
|
+
* remains optional as part of the uniform `*All` contract; callers should
|
|
4189
|
+
* provide a finite cap for this offset-paginated endpoint.
|
|
4190
|
+
*/
|
|
4191
|
+
exploreAll: (opts?: RepoExploreBrowseOptions & {
|
|
4192
|
+
max?: number;
|
|
4193
|
+
}) => Promise<RepoExploreItem[]>;
|
|
4054
4194
|
/**
|
|
4055
4195
|
* Fetch a repository's `Content/Readme` markdown record.
|
|
4056
4196
|
*
|
|
@@ -4174,6 +4314,20 @@ declare class WarmHubClient {
|
|
|
4174
4314
|
* token.
|
|
4175
4315
|
*/
|
|
4176
4316
|
history: (orgName: string, repoName: string, name: string, opts?: ShapeHistoryOptions) => Promise<ShapeHistory>;
|
|
4317
|
+
/**
|
|
4318
|
+
* Iterate shape versions. Cursors resume the same query and result scope;
|
|
4319
|
+
* on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4320
|
+
* `cursor`.
|
|
4321
|
+
*/
|
|
4322
|
+
historyIter: (orgName: string, repoName: string, name: string, opts?: ShapeHistoryOptions) => AsyncIterableIterator<HistoryVersion>;
|
|
4323
|
+
/**
|
|
4324
|
+
* Materialize shape versions. Cursors resume the same query and result
|
|
4325
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4326
|
+
* `cursor`.
|
|
4327
|
+
*/
|
|
4328
|
+
historyAll: (orgName: string, repoName: string, name: string, opts?: ShapeHistoryOptions & {
|
|
4329
|
+
max?: number;
|
|
4330
|
+
}) => Promise<HistoryVersion[]>;
|
|
4177
4331
|
};
|
|
4178
4332
|
/**
|
|
4179
4333
|
* Webhook subscription management surface scoped to a repository.
|
|
@@ -4309,6 +4463,20 @@ declare class WarmHubClient {
|
|
|
4309
4463
|
* token.
|
|
4310
4464
|
*/
|
|
4311
4465
|
liveFeed: (orgName: string, repoName: string, subscriptionName: string, opts?: ActionLiveFeedOptions) => Promise<ActionLiveFeed>;
|
|
4466
|
+
/**
|
|
4467
|
+
* Iterate delivery-feed entries. Cursors resume the same query and result
|
|
4468
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4469
|
+
* `cursor`.
|
|
4470
|
+
*/
|
|
4471
|
+
liveFeedIter: (orgName: string, repoName: string, subscriptionName: string, opts?: ActionLiveFeedOptions) => AsyncIterableIterator<ActionLiveFeedItem>;
|
|
4472
|
+
/**
|
|
4473
|
+
* Materialize delivery-feed entries. Cursors resume the same query and
|
|
4474
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4475
|
+
* without `cursor`.
|
|
4476
|
+
*/
|
|
4477
|
+
liveFeedAll: (orgName: string, repoName: string, subscriptionName: string, opts?: ActionLiveFeedOptions & {
|
|
4478
|
+
max?: number;
|
|
4479
|
+
}) => Promise<ActionLiveFeedItem[]>;
|
|
4312
4480
|
/**
|
|
4313
4481
|
* List subscription action runs as a `Page<ActionRunInfo>` (`items` +
|
|
4314
4482
|
* optional `nextCursor`), newest-first, capped at 200 runs per page.
|
|
@@ -4316,11 +4484,26 @@ declare class WarmHubClient {
|
|
|
4316
4484
|
* `status` and `outcome` are mutually exclusive.
|
|
4317
4485
|
* `since` and `cursor` are mutually exclusive; pass `cursor` alone on later
|
|
4318
4486
|
* pages — the `since` window rides in the cursor.
|
|
4319
|
-
* Cursors are opaque, short-lived resume tokens
|
|
4320
|
-
*
|
|
4487
|
+
* Cursors are opaque, short-lived resume tokens for the same query and
|
|
4488
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4489
|
+
* without `cursor`.
|
|
4321
4490
|
* See docs/dev/warmhub-actions-api.md for the full contract.
|
|
4322
4491
|
*/
|
|
4323
4492
|
listRuns: (orgName: string, repoName: string, opts?: ActionListRunsOptions) => Promise<Page<ActionRunInfo>>;
|
|
4493
|
+
/**
|
|
4494
|
+
* Iterate action runs. Cursors resume the same query and result scope; on
|
|
4495
|
+
* `VALIDATION_ERROR` / `Invalid cursor`, restart the query without `cursor`.
|
|
4496
|
+
* `since` is sent only on the initial request.
|
|
4497
|
+
*/
|
|
4498
|
+
listRunsIter: (orgName: string, repoName: string, opts?: ActionListRunsOptions) => AsyncIterableIterator<ActionRunInfo>;
|
|
4499
|
+
/**
|
|
4500
|
+
* Materialize action runs. Cursors resume the same query and result scope;
|
|
4501
|
+
* on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4502
|
+
* `cursor`. `since` is sent only on the initial request.
|
|
4503
|
+
*/
|
|
4504
|
+
listRunsAll: (orgName: string, repoName: string, opts?: ActionListRunsOptions & {
|
|
4505
|
+
max?: number;
|
|
4506
|
+
}) => Promise<ActionRunInfo[]>;
|
|
4324
4507
|
/**
|
|
4325
4508
|
* Return the newest visible action run for each subscription in a repo.
|
|
4326
4509
|
*
|
|
@@ -4351,8 +4534,23 @@ declare class WarmHubClient {
|
|
|
4351
4534
|
};
|
|
4352
4535
|
readonly collection: {
|
|
4353
4536
|
create: (orgName: string, repoName: string, opts: CollectionCreateOptions) => Promise<CollectionMutationResult>;
|
|
4537
|
+
/**
|
|
4538
|
+
* Read one collection-membership page. Cursors resume the same query and
|
|
4539
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4540
|
+
* without `cursor`.
|
|
4541
|
+
*/
|
|
4354
4542
|
members: (orgName: string | undefined, repoName: string | undefined, wref: string, opts?: CollectionMembersOptions) => Promise<CollectionMembersPage>;
|
|
4543
|
+
/**
|
|
4544
|
+
* Iterate collection members. Cursors resume the same query and result
|
|
4545
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4546
|
+
* `cursor`.
|
|
4547
|
+
*/
|
|
4355
4548
|
membersIter: (orgName: string | undefined, repoName: string | undefined, wref: string, opts?: CollectionMembersOptions) => AsyncIterableIterator<CollectionMember>;
|
|
4549
|
+
/**
|
|
4550
|
+
* Materialize collection members. Cursors resume the same query and result
|
|
4551
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4552
|
+
* `cursor`.
|
|
4553
|
+
*/
|
|
4356
4554
|
membersAll: (orgName: string | undefined, repoName: string | undefined, wref: string, opts?: CollectionMembersOptions & {
|
|
4357
4555
|
max?: number;
|
|
4358
4556
|
}) => Promise<CollectionMember[]>;
|
|
@@ -4391,7 +4589,7 @@ declare class WarmHubClient {
|
|
|
4391
4589
|
* cursor`; restart the query without `cursor` instead of retrying the stale
|
|
4392
4590
|
* token.
|
|
4393
4591
|
*/
|
|
4394
|
-
headIter: (orgName: string, repoName: string, opts?: ThingHeadOptions) => AsyncIterableIterator<ThingItem>;
|
|
4592
|
+
headIter: (orgName: string, repoName: string, opts?: Omit<ThingHeadOptions, "sinceRepoSeq">) => AsyncIterableIterator<ThingItem>;
|
|
4395
4593
|
/**
|
|
4396
4594
|
* Materialize every current HEAD row matching the supplied filters.
|
|
4397
4595
|
*
|
|
@@ -4403,9 +4601,20 @@ declare class WarmHubClient {
|
|
|
4403
4601
|
* cursor`; restart the query without `cursor` instead of retrying the stale
|
|
4404
4602
|
* token.
|
|
4405
4603
|
*/
|
|
4406
|
-
headAll: (orgName: string, repoName: string, opts?: ThingHeadOptions & {
|
|
4604
|
+
headAll: (orgName: string, repoName: string, opts?: Omit<ThingHeadOptions, "sinceRepoSeq"> & {
|
|
4407
4605
|
max?: number;
|
|
4408
4606
|
}) => Promise<ThingItem[]>;
|
|
4607
|
+
/**
|
|
4608
|
+
* Materialize identity-owned changes after a repository sequence and return
|
|
4609
|
+
* the exact checkpoint reached by the completed scan.
|
|
4610
|
+
*
|
|
4611
|
+
* Key a local cache by `item.metadata.durableId`: an identity rename
|
|
4612
|
+
* carries its checkpoint wref, and a retraction carries `active: false`.
|
|
4613
|
+
* This helper forces retracted rows on and returns only after draining the
|
|
4614
|
+
* terminal page. It does not fan out changes caused by another identity
|
|
4615
|
+
* and therefore is not, by itself, a complete local-result-mirror protocol.
|
|
4616
|
+
*/
|
|
4617
|
+
headChanges: (orgName: string, repoName: string, opts: ThingHeadChangesOptions) => Promise<ThingChanges>;
|
|
4409
4618
|
/**
|
|
4410
4619
|
* Get one thing, assertion, shape, or collection by wref.
|
|
4411
4620
|
*
|
|
@@ -4497,6 +4706,20 @@ declare class WarmHubClient {
|
|
|
4497
4706
|
* token.
|
|
4498
4707
|
*/
|
|
4499
4708
|
history: (orgName: string | undefined, repoName: string | undefined, opts: ThingHistoryOptions) => Promise<ThingHistory>;
|
|
4709
|
+
/**
|
|
4710
|
+
* Iterate thing history versions. Cursors resume the same query and result
|
|
4711
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4712
|
+
* `cursor`.
|
|
4713
|
+
*/
|
|
4714
|
+
historyIter: (orgName: string | undefined, repoName: string | undefined, opts: ThingHistoryOptions) => AsyncIterableIterator<HistoryVersion>;
|
|
4715
|
+
/**
|
|
4716
|
+
* Materialize thing history versions. Cursors resume the same query and
|
|
4717
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
4718
|
+
* without `cursor`.
|
|
4719
|
+
*/
|
|
4720
|
+
historyAll: (orgName: string | undefined, repoName: string | undefined, opts: ThingHistoryOptions & {
|
|
4721
|
+
max?: number;
|
|
4722
|
+
}) => Promise<HistoryVersion[]>;
|
|
4500
4723
|
/**
|
|
4501
4724
|
* Rename a thing within its shape namespace.
|
|
4502
4725
|
*
|
|
@@ -4580,7 +4803,7 @@ declare class WarmHubClient {
|
|
|
4580
4803
|
* cursor`; restart the query without `cursor` instead of retrying the stale
|
|
4581
4804
|
* token.
|
|
4582
4805
|
*/
|
|
4583
|
-
queryIter: (orgName: string, repoName: string, opts?: FilterOptions) => AsyncIterableIterator<ThingItem>;
|
|
4806
|
+
queryIter: (orgName: string, repoName: string, opts?: Omit<FilterOptions, "sinceRepoSeq">) => AsyncIterableIterator<ThingItem>;
|
|
4584
4807
|
/**
|
|
4585
4808
|
* Materialize every repository record matching the supplied filters.
|
|
4586
4809
|
*
|
|
@@ -4592,9 +4815,20 @@ declare class WarmHubClient {
|
|
|
4592
4815
|
* cursor`; restart the query without `cursor` instead of retrying the stale
|
|
4593
4816
|
* token.
|
|
4594
4817
|
*/
|
|
4595
|
-
queryAll: (orgName: string, repoName: string, opts?: FilterOptions & {
|
|
4818
|
+
queryAll: (orgName: string, repoName: string, opts?: Omit<FilterOptions, "sinceRepoSeq"> & {
|
|
4596
4819
|
max?: number;
|
|
4597
4820
|
}) => Promise<ThingItem[]>;
|
|
4821
|
+
/**
|
|
4822
|
+
* Materialize filtered identity-owned changes after a repository sequence
|
|
4823
|
+
* and return the exact checkpoint reached by the completed scan.
|
|
4824
|
+
*
|
|
4825
|
+
* Key a local cache by `item.metadata.durableId`: an identity rename
|
|
4826
|
+
* carries its checkpoint wref, and a retraction carries `active: false`.
|
|
4827
|
+
* This helper forces retracted rows on and returns only after draining the
|
|
4828
|
+
* terminal page. It does not fan out changes caused by another identity
|
|
4829
|
+
* and therefore is not, by itself, a complete local-result-mirror protocol.
|
|
4830
|
+
*/
|
|
4831
|
+
queryChanges: (orgName: string, repoName: string, opts: ThingQueryChangesOptions) => Promise<ThingChanges>;
|
|
4598
4832
|
/**
|
|
4599
4833
|
* Search repository records with text, vector, or hybrid mode.
|
|
4600
4834
|
*
|
|
@@ -4607,6 +4841,20 @@ declare class WarmHubClient {
|
|
|
4607
4841
|
* token.
|
|
4608
4842
|
*/
|
|
4609
4843
|
search: (orgName: string, repoName: string, query: string, opts?: SearchOptions) => Promise<SearchResult>;
|
|
4844
|
+
/**
|
|
4845
|
+
* Iterate ranked search hits. Cursors resume the same query and result
|
|
4846
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4847
|
+
* `cursor`.
|
|
4848
|
+
*/
|
|
4849
|
+
searchIter: (orgName: string, repoName: string, query: string, opts?: SearchOptions) => AsyncIterableIterator<ThingItem>;
|
|
4850
|
+
/**
|
|
4851
|
+
* Materialize ranked search hits. Cursors resume the same query and result
|
|
4852
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
4853
|
+
* `cursor`.
|
|
4854
|
+
*/
|
|
4855
|
+
searchAll: (orgName: string, repoName: string, query: string, opts?: SearchOptions & {
|
|
4856
|
+
max?: number;
|
|
4857
|
+
}) => Promise<ThingItem[]>;
|
|
4610
4858
|
/**
|
|
4611
4859
|
* Count matching repository records without returning record data.
|
|
4612
4860
|
*/
|
|
@@ -4912,6 +5160,20 @@ declare class WarmHubClient {
|
|
|
4912
5160
|
* token.
|
|
4913
5161
|
*/
|
|
4914
5162
|
liveFeed: (orgName: string, repoName: string, subscriptionName: string, opts?: ActionLiveFeedOptions) => Promise<ActionLiveFeed>;
|
|
5163
|
+
/**
|
|
5164
|
+
* Iterate delivery-feed entries. Cursors resume the same query and result
|
|
5165
|
+
* scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
5166
|
+
* `cursor`.
|
|
5167
|
+
*/
|
|
5168
|
+
liveFeedIter: (orgName: string, repoName: string, subscriptionName: string, opts?: ActionLiveFeedOptions) => AsyncIterableIterator<ActionLiveFeedItem>;
|
|
5169
|
+
/**
|
|
5170
|
+
* Materialize delivery-feed entries. Cursors resume the same query and
|
|
5171
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
5172
|
+
* without `cursor`.
|
|
5173
|
+
*/
|
|
5174
|
+
liveFeedAll: (orgName: string, repoName: string, subscriptionName: string, opts?: ActionLiveFeedOptions & {
|
|
5175
|
+
max?: number;
|
|
5176
|
+
}) => Promise<ActionLiveFeedItem[]>;
|
|
4915
5177
|
/**
|
|
4916
5178
|
* List subscription action runs as a `Page<ActionRunInfo>` (`items` +
|
|
4917
5179
|
* optional `nextCursor`), newest-first, capped at 200 runs per page.
|
|
@@ -4919,11 +5181,26 @@ declare class WarmHubClient {
|
|
|
4919
5181
|
* `status` and `outcome` are mutually exclusive.
|
|
4920
5182
|
* `since` and `cursor` are mutually exclusive; pass `cursor` alone on later
|
|
4921
5183
|
* pages — the `since` window rides in the cursor.
|
|
4922
|
-
* Cursors are opaque, short-lived resume tokens
|
|
4923
|
-
*
|
|
5184
|
+
* Cursors are opaque, short-lived resume tokens for the same query and
|
|
5185
|
+
* result scope; on `VALIDATION_ERROR` / `Invalid cursor`, restart the query
|
|
5186
|
+
* without `cursor`.
|
|
4924
5187
|
* See docs/dev/warmhub-actions-api.md for the full contract.
|
|
4925
5188
|
*/
|
|
4926
5189
|
listRuns: (orgName: string, repoName: string, opts?: ActionListRunsOptions) => Promise<Page<ActionRunInfo>>;
|
|
5190
|
+
/**
|
|
5191
|
+
* Iterate action runs. Cursors resume the same query and result scope; on
|
|
5192
|
+
* `VALIDATION_ERROR` / `Invalid cursor`, restart the query without `cursor`.
|
|
5193
|
+
* `since` is sent only on the initial request.
|
|
5194
|
+
*/
|
|
5195
|
+
listRunsIter: (orgName: string, repoName: string, opts?: ActionListRunsOptions) => AsyncIterableIterator<ActionRunInfo>;
|
|
5196
|
+
/**
|
|
5197
|
+
* Materialize action runs. Cursors resume the same query and result scope;
|
|
5198
|
+
* on `VALIDATION_ERROR` / `Invalid cursor`, restart the query without
|
|
5199
|
+
* `cursor`. `since` is sent only on the initial request.
|
|
5200
|
+
*/
|
|
5201
|
+
listRunsAll: (orgName: string, repoName: string, opts?: ActionListRunsOptions & {
|
|
5202
|
+
max?: number;
|
|
5203
|
+
}) => Promise<ActionRunInfo[]>;
|
|
4927
5204
|
/**
|
|
4928
5205
|
* Return the newest visible action run for each subscription in a repo.
|
|
4929
5206
|
*
|
|
@@ -4964,4 +5241,4 @@ declare class WarmHubClient {
|
|
|
4964
5241
|
private watchRepoQuery;
|
|
4965
5242
|
}
|
|
4966
5243
|
|
|
4967
|
-
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 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 ComponentHistory, type ComponentHistoryOptions, 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 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 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 };
|
|
5244
|
+
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 ComponentHistory, type ComponentHistoryOptions, 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 HistoryVersion, 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 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 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 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, 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 };
|