@registrystack/client 0.33.0 → 0.35.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/breg/client.d.ts +38 -2
- package/casework/client.d.ts +3 -0
- package/native.js +1 -1
- package/package.json +4 -4
package/breg/client.d.ts
CHANGED
|
@@ -222,7 +222,7 @@ export type BRegRequestResultReferenceData = JsonObject & {
|
|
|
222
222
|
/** Revision written by the application, not a current ETag or precondition. */
|
|
223
223
|
readonly targetRevision: SafeInteger
|
|
224
224
|
}
|
|
225
|
-
export type BRegRequestState = 'draft' | 'submitted' | 'cancelled' | 'applied'
|
|
225
|
+
export type BRegRequestState = 'draft' | 'submitted' | 'cancelled' | 'applied'
|
|
226
226
|
export type BRegRequestReviewRequirement =
|
|
227
227
|
| Readonly<{ mode: 'none' }>
|
|
228
228
|
| Readonly<{ authority: string; policyId: string }>
|
|
@@ -249,7 +249,7 @@ export type BRegExternalReviewStatus = Readonly<{
|
|
|
249
249
|
}>
|
|
250
250
|
application: Readonly<{
|
|
251
251
|
mode: 'manual' | 'automatic'
|
|
252
|
-
state: 'awaitingReview' | 'ready' | 'queued' | 'applying' | 'applied' | 'blocked'
|
|
252
|
+
state: 'awaitingReview' | 'ready' | 'queued' | 'applying' | 'applied' | 'blocked' | 'expired'
|
|
253
253
|
executor?: string
|
|
254
254
|
applicationId?: string
|
|
255
255
|
/** Durable automatic-application attempts, from 0 through 1000. */
|
|
@@ -608,6 +608,7 @@ export type BRegIngestionAttemptOutcome =
|
|
|
608
608
|
| 'invalidItem'
|
|
609
609
|
| 'refused'
|
|
610
610
|
| 'bindingChanged'
|
|
611
|
+
| 'importAuthorityClosed'
|
|
611
612
|
| 'chunkMismatch'
|
|
612
613
|
| 'runNotOpen'
|
|
613
614
|
| 'unavailable'
|
|
@@ -726,6 +727,39 @@ export declare function encodeIngestionChunk(
|
|
|
726
727
|
prefixDigest: string,
|
|
727
728
|
): BRegIngestionChunk
|
|
728
729
|
|
|
730
|
+
/**
|
|
731
|
+
* Where a change-request target or value comes from, present only when the
|
|
732
|
+
* caller may read it: a request-entity field, or the record another effect
|
|
733
|
+
* of the same request creates.
|
|
734
|
+
*/
|
|
735
|
+
export type BRegChangeRequestBinding =
|
|
736
|
+
| { readonly fromField: string; readonly fromEffect?: never }
|
|
737
|
+
| { readonly fromEffect: string; readonly fromField?: never }
|
|
738
|
+
| { readonly fromField?: never; readonly fromEffect?: never }
|
|
739
|
+
|
|
740
|
+
export type BRegChangeRequestTarget = { readonly entity: string } & BRegChangeRequestBinding
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* One declared change-request effect on an entity the caller may read. Only
|
|
744
|
+
* target fields the caller may read are named; the value is descriptive and
|
|
745
|
+
* cannot create target-write authority.
|
|
746
|
+
*/
|
|
747
|
+
export interface BRegChangeRequestEffect {
|
|
748
|
+
readonly id: string
|
|
749
|
+
readonly operation: 'create' | 'patch'
|
|
750
|
+
readonly target: BRegChangeRequestTarget
|
|
751
|
+
readonly set: ReadonlyArray<{ readonly field: string } & BRegChangeRequestBinding>
|
|
752
|
+
readonly clear: ReadonlyArray<string>
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/** One declared planner write, filtered to fields the caller may read. */
|
|
756
|
+
export interface BRegChangeRequestPlannerWrite {
|
|
757
|
+
/** A planner write targets a stored record, never another effect. */
|
|
758
|
+
readonly target: { readonly entity: string; readonly fromField?: string; readonly fromEffect?: never }
|
|
759
|
+
readonly operation: 'create' | 'patch'
|
|
760
|
+
readonly fields: ReadonlyArray<string>
|
|
761
|
+
}
|
|
762
|
+
|
|
729
763
|
export interface BRegChangeRequestCapability {
|
|
730
764
|
readonly planner: {
|
|
731
765
|
readonly kind: 'declarative' | 'rhai'
|
|
@@ -745,7 +779,9 @@ export interface BRegChangeRequestCapability {
|
|
|
745
779
|
} | null
|
|
746
780
|
readonly possibleWriteCount: SafeInteger | null
|
|
747
781
|
readonly possibleWriteOperations: ReadonlyArray<string>
|
|
782
|
+
readonly writes: ReadonlyArray<BRegChangeRequestPlannerWrite>
|
|
748
783
|
}
|
|
784
|
+
readonly effects: ReadonlyArray<BRegChangeRequestEffect>
|
|
749
785
|
readonly review: BRegRequestReviewRequirement
|
|
750
786
|
readonly onApproved: {
|
|
751
787
|
readonly mode: 'manual' | 'automatic'
|
package/casework/client.d.ts
CHANGED
|
@@ -277,6 +277,8 @@ export type KnownCaseworkProblemCode =
|
|
|
277
277
|
| 'request.source-rejected'
|
|
278
278
|
| 'request.unprocessable'
|
|
279
279
|
| 'request.unsupported-media-type'
|
|
280
|
+
| 'review.initiator-excluded'
|
|
281
|
+
| 'review.initiator-required'
|
|
280
282
|
| 'review.result-expired'
|
|
281
283
|
| 'review.submission-conflict'
|
|
282
284
|
| 'review.task-not-held'
|
|
@@ -403,6 +405,7 @@ export interface ReviewerTask {
|
|
|
403
405
|
revision: SafeInteger
|
|
404
406
|
eligibleProfiles: ReadonlyArray<string>
|
|
405
407
|
state: ReviewerTaskState
|
|
408
|
+
decidedByCaller?: boolean
|
|
406
409
|
}
|
|
407
410
|
export interface ReviewTaskPage { items: ReadonlyArray<ReviewerTask>; nextCursor?: Uuid }
|
|
408
411
|
export type ReviewSourceBindingStatus = 'current' | 'binding_changed'
|
package/native.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@registrystack/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Unified Node.js client for Registry Stack products.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://docs.registrystack.org/reference/client-api/",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typescript": "6.0.3"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@registrystack/client-darwin-arm64": "0.
|
|
61
|
-
"@registrystack/client-linux-arm64-gnu": "0.
|
|
62
|
-
"@registrystack/client-linux-x64-gnu": "0.
|
|
60
|
+
"@registrystack/client-darwin-arm64": "0.35.0",
|
|
61
|
+
"@registrystack/client-linux-arm64-gnu": "0.35.0",
|
|
62
|
+
"@registrystack/client-linux-x64-gnu": "0.35.0"
|
|
63
63
|
}
|
|
64
64
|
}
|