@registrystack/client 0.36.0 → 0.37.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/casework/client.d.ts +20 -4
- package/evidence/client.d.ts +6 -5
- package/evidence/client.js +5 -4
- package/native.js +1 -1
- package/package.json +4 -4
package/casework/client.d.ts
CHANGED
|
@@ -134,12 +134,12 @@ export interface Draft {
|
|
|
134
134
|
export interface DraftResponse { draft: Draft }
|
|
135
135
|
export interface DecideRequest {
|
|
136
136
|
displayedBinding: SourceBinding
|
|
137
|
-
sourceProfileId: string
|
|
138
137
|
operation: OperationName
|
|
139
138
|
reason?: string
|
|
140
139
|
flaggedFields?: ReadonlyArray<string>
|
|
141
140
|
}
|
|
142
|
-
|
|
141
|
+
/** The Registry-Source-Profile header selects the source profile; the body is empty. */
|
|
142
|
+
export type RecoverAttemptRequest = Record<string, never>
|
|
143
143
|
export interface SourceReceipt {
|
|
144
144
|
sourceRevision: string
|
|
145
145
|
resultingState: string
|
|
@@ -170,9 +170,24 @@ export interface AttemptReservedHistoryEntry extends HistoryEntryBase {
|
|
|
170
170
|
kind: 'attempt_reserved'
|
|
171
171
|
detail: JsonObject & { attemptId: string; bindingReference: string; operation: OperationName }
|
|
172
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* An attempt_uncertain detail takes one of three shapes: recovery left the
|
|
175
|
+
* attempt uncertain, the source definitively refused it, or an operator marked
|
|
176
|
+
* an expired pending attempt uncertain. reason is the original decision reason.
|
|
177
|
+
*/
|
|
178
|
+
export type AttemptUncertainHistoryDetail = JsonObject & {
|
|
179
|
+
attemptId: string
|
|
180
|
+
bindingReference: string
|
|
181
|
+
operation: OperationName
|
|
182
|
+
reason?: string
|
|
183
|
+
} & (
|
|
184
|
+
| { sourceRevision?: string | null; definitivelyRefused?: never; operatorReason?: never }
|
|
185
|
+
| { definitivelyRefused: true; operatorReason?: never }
|
|
186
|
+
| { operatorReason: string; decidedBy: string; originalActor: IssuerPrincipal; originalProfileId: string; definitivelyRefused?: never }
|
|
187
|
+
)
|
|
173
188
|
export interface AttemptUncertainHistoryEntry extends HistoryEntryBase {
|
|
174
189
|
kind: 'attempt_uncertain'
|
|
175
|
-
detail:
|
|
190
|
+
detail: AttemptUncertainHistoryDetail
|
|
176
191
|
}
|
|
177
192
|
export interface ActionCompletedHistoryEntry extends HistoryEntryBase {
|
|
178
193
|
kind: 'action_completed'
|
|
@@ -271,6 +286,7 @@ export type KnownCaseworkProblemCode =
|
|
|
271
286
|
| 'profile.not-human'
|
|
272
287
|
| 'request.body-too-large'
|
|
273
288
|
| 'request.invalid'
|
|
289
|
+
| 'request.limit-out-of-range'
|
|
274
290
|
| 'request.method-not-allowed'
|
|
275
291
|
| 'request.not-found'
|
|
276
292
|
| 'request.reason-unsupported'
|
|
@@ -407,7 +423,7 @@ export interface ReviewerTask {
|
|
|
407
423
|
state: ReviewerTaskState
|
|
408
424
|
decidedByCaller?: boolean
|
|
409
425
|
}
|
|
410
|
-
export interface ReviewTaskPage { items: ReadonlyArray<ReviewerTask>; nextCursor?: Uuid }
|
|
426
|
+
export interface ReviewTaskPage { items: ReadonlyArray<ReviewerTask>; nextCursor?: Uuid; status: PageStatus }
|
|
411
427
|
export type ReviewSourceBindingStatus = 'current' | 'binding_changed'
|
|
412
428
|
export interface ReviewSourceProjection { binding: SourceBinding; displayReference?: string; display: Readonly<Record<string, JsonValue>> }
|
|
413
429
|
export type ReviewTaskContextData =
|
package/evidence/client.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// The package's actual entry point. `index.d.ts` is
|
|
2
|
-
// `
|
|
3
|
-
// byte-for-byte; the hand-written surface below is
|
|
4
|
-
// `__test__/drift.test.js`, against the real module.
|
|
5
|
-
// generated loader diagnostics are not exported by
|
|
1
|
+
// The package's actual entry point. `index.d.ts` is napi-rs output that
|
|
2
|
+
// `package.json`'s `build` script rewrites and `check:types` diffs
|
|
3
|
+
// byte-for-byte against a fresh generation; the hand-written surface below is
|
|
4
|
+
// checked separately, by `__test__/drift.test.js`, against the real module.
|
|
5
|
+
// Keep this list explicit: generated loader diagnostics are not exported by
|
|
6
|
+
// client.js.
|
|
6
7
|
export {
|
|
7
8
|
AudienceScopedResult,
|
|
8
9
|
PreparedEvidenceRequest,
|
package/evidence/client.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
// The package's actual entry point. `index.js`/`index.d.ts` are
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
3
|
+
// The package's actual entry point. `index.js`/`index.d.ts` are napi-rs
|
|
4
|
+
// output: `package.json`'s `build` script rewrites them in place,
|
|
5
|
+
// `check:types` requires a fresh generation to match them byte for byte, and
|
|
6
|
+
// `build:debug` leaves them untouched. This file sits on top of them so a hand
|
|
7
|
+
// edit never gets silently overwritten by the next build.
|
|
7
8
|
|
|
8
9
|
const native = require('./index');
|
|
9
10
|
|
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.37.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.37.0",
|
|
61
|
+
"@registrystack/client-linux-arm64-gnu": "0.37.0",
|
|
62
|
+
"@registrystack/client-linux-x64-gnu": "0.37.0"
|
|
63
63
|
}
|
|
64
64
|
}
|