@registrystack/client 0.33.0 → 0.34.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 +37 -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. */
|
|
@@ -726,6 +726,39 @@ export declare function encodeIngestionChunk(
|
|
|
726
726
|
prefixDigest: string,
|
|
727
727
|
): BRegIngestionChunk
|
|
728
728
|
|
|
729
|
+
/**
|
|
730
|
+
* Where a change-request target or value comes from, present only when the
|
|
731
|
+
* caller may read it: a request-entity field, or the record another effect
|
|
732
|
+
* of the same request creates.
|
|
733
|
+
*/
|
|
734
|
+
export type BRegChangeRequestBinding =
|
|
735
|
+
| { readonly fromField: string; readonly fromEffect?: never }
|
|
736
|
+
| { readonly fromEffect: string; readonly fromField?: never }
|
|
737
|
+
| { readonly fromField?: never; readonly fromEffect?: never }
|
|
738
|
+
|
|
739
|
+
export type BRegChangeRequestTarget = { readonly entity: string } & BRegChangeRequestBinding
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* One declared change-request effect on an entity the caller may read. Only
|
|
743
|
+
* target fields the caller may read are named; the value is descriptive and
|
|
744
|
+
* cannot create target-write authority.
|
|
745
|
+
*/
|
|
746
|
+
export interface BRegChangeRequestEffect {
|
|
747
|
+
readonly id: string
|
|
748
|
+
readonly operation: 'create' | 'patch'
|
|
749
|
+
readonly target: BRegChangeRequestTarget
|
|
750
|
+
readonly set: ReadonlyArray<{ readonly field: string } & BRegChangeRequestBinding>
|
|
751
|
+
readonly clear: ReadonlyArray<string>
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/** One declared planner write, filtered to fields the caller may read. */
|
|
755
|
+
export interface BRegChangeRequestPlannerWrite {
|
|
756
|
+
/** A planner write targets a stored record, never another effect. */
|
|
757
|
+
readonly target: { readonly entity: string; readonly fromField?: string; readonly fromEffect?: never }
|
|
758
|
+
readonly operation: 'create' | 'patch'
|
|
759
|
+
readonly fields: ReadonlyArray<string>
|
|
760
|
+
}
|
|
761
|
+
|
|
729
762
|
export interface BRegChangeRequestCapability {
|
|
730
763
|
readonly planner: {
|
|
731
764
|
readonly kind: 'declarative' | 'rhai'
|
|
@@ -745,7 +778,9 @@ export interface BRegChangeRequestCapability {
|
|
|
745
778
|
} | null
|
|
746
779
|
readonly possibleWriteCount: SafeInteger | null
|
|
747
780
|
readonly possibleWriteOperations: ReadonlyArray<string>
|
|
781
|
+
readonly writes: ReadonlyArray<BRegChangeRequestPlannerWrite>
|
|
748
782
|
}
|
|
783
|
+
readonly effects: ReadonlyArray<BRegChangeRequestEffect>
|
|
749
784
|
readonly review: BRegRequestReviewRequirement
|
|
750
785
|
readonly onApproved: {
|
|
751
786
|
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.34.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.34.0",
|
|
61
|
+
"@registrystack/client-linux-arm64-gnu": "0.34.0",
|
|
62
|
+
"@registrystack/client-linux-x64-gnu": "0.34.0"
|
|
63
63
|
}
|
|
64
64
|
}
|