@registrystack/client 0.35.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/breg/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
3
4
  export declare class BaseRegistryClient {
4
5
  constructor(config: any)
5
6
  health(): Promise<CompleteOutcome>
@@ -165,19 +166,13 @@ export declare class BRegAttachmentUpload {
165
166
  }
166
167
  export type AttachmentUpload = BRegAttachmentUpload
167
168
 
168
- export declare class BRegBatchBinding {
169
-
170
- }
169
+ export declare class BRegBatchBinding {}
171
170
  export type BatchBinding = BRegBatchBinding
172
171
 
173
- export declare class BRegCreateBinding {
174
-
175
- }
172
+ export declare class BRegCreateBinding {}
176
173
  export type CreateBinding = BRegCreateBinding
177
174
 
178
- export declare class BRegImmediateActionBinding {
179
-
180
- }
175
+ export declare class BRegImmediateActionBinding {}
181
176
  export type ImmediateActionBinding = BRegImmediateActionBinding
182
177
 
183
178
  /**
@@ -219,9 +214,7 @@ export declare class BRegLifecycleAction {
219
214
  }
220
215
  export type LifecycleAction = BRegLifecycleAction
221
216
 
222
- export declare class BRegLifecycleAuthority {
223
-
224
- }
217
+ export declare class BRegLifecycleAuthority {}
225
218
  export type LifecycleAuthority = BRegLifecycleAuthority
226
219
 
227
220
  export declare class BRegMetadata {
@@ -248,9 +241,7 @@ export declare class BRegMetadata {
248
241
  }
249
242
  export type Metadata = BRegMetadata
250
243
 
251
- export declare class BRegPatchBinding {
252
-
253
- }
244
+ export declare class BRegPatchBinding {}
254
245
  export type PatchBinding = BRegPatchBinding
255
246
 
256
247
  /**
@@ -281,23 +272,17 @@ export type PreparedLifecycle = BRegPreparedLifecycle
281
272
  * A recovered Create request, key, and representation. This remains inert
282
273
  * until `executeRecoveredCreate` is explicitly called with fresh authority.
283
274
  */
284
- export declare class BRegRecoveredCreate {
285
-
286
- }
275
+ export declare class BRegRecoveredCreate {}
287
276
  export type RecoveredCreate = BRegRecoveredCreate
288
277
 
289
278
  /**
290
279
  * A recovered lifecycle action and key. This remains inert until
291
280
  * `executeRecoveredLifecycleAction` is explicitly called.
292
281
  */
293
- export declare class BRegRecoveredLifecycle {
294
-
295
- }
282
+ export declare class BRegRecoveredLifecycle {}
296
283
  export type RecoveredLifecycle = BRegRecoveredLifecycle
297
284
 
298
- export declare class BRegTombstoneBinding {
299
-
300
- }
285
+ export declare class BRegTombstoneBinding {}
301
286
  export type TombstoneBinding = BRegTombstoneBinding
302
287
 
303
288
  /** Shared OAuth client authentication and uncached task-token exchange. */
@@ -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
- export interface RecoverAttemptRequest { sourceProfileId: string }
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: JsonObject & { attemptId: string; bindingReference: string; sourceRevision?: string | null; definitivelyRefused?: boolean }
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 =
@@ -1,5 +1,6 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
3
4
  export declare class CaseworkClient {
4
5
  constructor(config: CaseworkClientConfig)
5
6
  description(token: string, profile: string): Promise<CaseworkOutcome>
@@ -1,5 +1,6 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
3
4
  export declare class DiscoveryClient {
4
5
  constructor(options: string | DiscoveryClientOptions)
5
6
  resolveEvidenceTypes(request: any): Promise<any>
@@ -1,8 +1,25 @@
1
- // The package's actual entry point. `index.d.ts` is auto-generated by
2
- // `napi build --platform` on every build and is what `check:types` diffs
3
- // byte-for-byte; the hand-written surface below is checked separately, by
4
- // `__test__/drift.test.js`, against the real module.
5
- export * from './index'
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.
7
+ export {
8
+ AudienceScopedResult,
9
+ PreparedEvidenceRequest,
10
+ PreparedEvidenceRequestBatch,
11
+ RawEvidenceRequestBatchResponse,
12
+ RawEvidenceResponse,
13
+ SdJwtVcBatchResponse,
14
+ verifyRetained,
15
+ verifyRetainedAsOf,
16
+ } from './index'
17
+ export type {
18
+ SubjectContinuity,
19
+ VerifiedEvidence,
20
+ VerifiedEvidenceRequestBatch,
21
+ VerifiedEvidenceRequestBatchItem,
22
+ } from './index'
6
23
 
7
24
  import {
8
25
  EvidenceClient as NativeEvidenceClient,
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
- // The package's actual entry point. `index.js`/`index.d.ts` are regenerated
4
- // by `napi build --platform` on every build (see `package.json`'s `build`
5
- // and `build:debug` scripts) and stay untouched here; this file sits on top
6
- // of them so a hand edit never gets silently overwritten by the next build.
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
 
@@ -1,5 +1,6 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
3
4
  /**
4
5
  * One opaque, locally verified progressive result. Its getters keep the
5
6
  * ambiguity check for `value` lazy and retain the exact artifact below the
package/native.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const PACKAGE_VERSION = '0.35.0';
3
+ const PACKAGE_VERSION = '0.37.0';
4
4
  const PRODUCTS = new Set(['discovery', 'evidence', 'relay', 'breg', 'casework']);
5
5
 
6
6
  function target() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@registrystack/client",
3
- "version": "0.35.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/",
@@ -53,12 +53,12 @@
53
53
  "check:types": "tsc --noEmit --strict --skipLibCheck false --types node --moduleResolution node16 --module node16 --target es2022 index.d.ts __test__/facade.test-d.ts"
54
54
  },
55
55
  "devDependencies": {
56
- "@types/node": "22.20.1",
56
+ "@types/node": "22.20.4",
57
57
  "typescript": "6.0.3"
58
58
  },
59
59
  "optionalDependencies": {
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"
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
  }
package/relay/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
3
4
  export declare class RelayClient {
4
5
  constructor(configValue: any)
5
6
  health(): Promise<CompleteOutcome>