@registrystack/client 0.28.0 → 0.30.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/README.md +78 -30
- package/breg/client.d.ts +476 -14
- package/breg/client.js +120 -4
- package/breg/index.d.ts +182 -0
- package/casework/client.d.ts +435 -0
- package/casework/client.js +155 -0
- package/casework/index.d.ts +64 -0
- package/casework/index.js +3 -0
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/native.js +2 -2
- package/package.json +21 -6
package/breg/client.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export type JsonScalar = string | number | boolean | null
|
|
2
2
|
export type JsonValue = JsonScalar | ReadonlyArray<JsonValue> | { readonly [key: string]: JsonValue }
|
|
3
|
+
/** Structured mutation inputs reject integer-valued numbers outside
|
|
4
|
+
* `Number.isSafeInteger`. Use the corresponding `...Json` method for exact
|
|
5
|
+
* wider integer values. */
|
|
3
6
|
export type JsonObject = { readonly [key: string]: JsonValue }
|
|
4
7
|
/** An integer that satisfies `Number.isSafeInteger` and the option's documented bounds. */
|
|
5
8
|
export type SafeInteger = number
|
|
@@ -40,17 +43,46 @@ export interface BaseRegistryClientConfig {
|
|
|
40
43
|
|
|
41
44
|
export type RecordFormat = 'json' | 'json-ld'
|
|
42
45
|
|
|
43
|
-
export interface
|
|
46
|
+
export interface RecordProjectionOptions {
|
|
44
47
|
select?: ReadonlyArray<string> | null
|
|
45
48
|
accessProfile?: string | null
|
|
46
49
|
format?: RecordFormat | null
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
export interface
|
|
52
|
+
export interface RecordOptions extends RecordProjectionOptions {
|
|
53
|
+
requestHistoryAfterProposalVersion?: SafeInteger | null
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ListOptions extends RecordProjectionOptions {
|
|
57
|
+
top?: SafeInteger | null
|
|
58
|
+
filter?: string | null
|
|
59
|
+
orderby?: string | null
|
|
60
|
+
count?: boolean | null
|
|
61
|
+
bbox?: BoundingBox | null
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface CollectionOptions extends RecordProjectionOptions {
|
|
65
|
+
top?: SafeInteger | null
|
|
66
|
+
filter?: string | null
|
|
67
|
+
orderby?: string | null
|
|
68
|
+
count?: boolean | null
|
|
69
|
+
}
|
|
70
|
+
export interface AsOfListOptions extends CollectionOptions { asOf: string }
|
|
71
|
+
export interface SnapshotListOptions extends CollectionOptions {
|
|
72
|
+
snapshot?: string | null
|
|
73
|
+
validAt?: string | null
|
|
74
|
+
}
|
|
75
|
+
export type BoundingBox = readonly [west: string, south: string, east: string, north: string]
|
|
76
|
+
export interface GeoJsonOptions {
|
|
77
|
+
select?: ReadonlyArray<string> | null
|
|
78
|
+
accessProfile?: string | null
|
|
79
|
+
}
|
|
80
|
+
export interface GeoJsonListOptions extends GeoJsonOptions {
|
|
50
81
|
top?: SafeInteger | null
|
|
51
82
|
filter?: string | null
|
|
52
83
|
orderby?: string | null
|
|
53
84
|
count?: boolean | null
|
|
85
|
+
bbox?: BoundingBox | null
|
|
54
86
|
}
|
|
55
87
|
|
|
56
88
|
export interface ListContinuation {
|
|
@@ -62,14 +94,92 @@ export interface ListContinuation {
|
|
|
62
94
|
datasetIdentifier: string
|
|
63
95
|
entityTypeIdentifier: string
|
|
64
96
|
}
|
|
97
|
+
export type CurrentListContinuation = ListContinuation
|
|
98
|
+
export interface AsOfListContinuation extends ListContinuation { asOf: string }
|
|
99
|
+
export interface SnapshotListContinuation extends ListContinuation {
|
|
100
|
+
snapshot: string
|
|
101
|
+
validAt?: string
|
|
102
|
+
}
|
|
103
|
+
export interface RelationshipListContinuation extends ListContinuation {
|
|
104
|
+
rootRecordIdentifier: string
|
|
105
|
+
pathRoute: string
|
|
106
|
+
}
|
|
107
|
+
export interface GeoJsonListContinuation {
|
|
108
|
+
route: string
|
|
109
|
+
skiptoken: string
|
|
110
|
+
accessProfile?: string
|
|
111
|
+
}
|
|
65
112
|
|
|
66
113
|
export interface RegistryRecord {
|
|
67
114
|
recordIdentifier: string
|
|
68
115
|
revisionIdentifier: string
|
|
69
116
|
domainData: Readonly<Record<string, JsonValue>>
|
|
117
|
+
request?: BRegRequestMetadata
|
|
70
118
|
readonly [member: string]: JsonValue | undefined
|
|
71
119
|
}
|
|
72
120
|
|
|
121
|
+
export type BRegRequestReviewStage = JsonObject & {
|
|
122
|
+
readonly id: string
|
|
123
|
+
readonly approvals: SafeInteger
|
|
124
|
+
readonly excludeSubmitter: boolean
|
|
125
|
+
readonly excludePreviousReviewers?: boolean
|
|
126
|
+
}
|
|
127
|
+
export type BRegRequestReviewState = JsonObject & {
|
|
128
|
+
readonly stages: ReadonlyArray<BRegRequestReviewStage>
|
|
129
|
+
readonly submittedAt: string
|
|
130
|
+
readonly pendingStage: string | null
|
|
131
|
+
readonly stageEnteredAt: string | null
|
|
132
|
+
}
|
|
133
|
+
export type BRegRequestReviewTiming = JsonObject & {
|
|
134
|
+
readonly firstSubmittedAt: string
|
|
135
|
+
readonly pausedMilliseconds: SafeInteger
|
|
136
|
+
readonly pauseStartedAt: string | null
|
|
137
|
+
readonly completedAt: string | null
|
|
138
|
+
}
|
|
139
|
+
export type BRegRequestDecision = JsonObject & {
|
|
140
|
+
readonly stageId: string
|
|
141
|
+
readonly kind: 'approve' | 'reject' | 'request_revision'
|
|
142
|
+
readonly decidedAt: string
|
|
143
|
+
readonly reasonPresent: boolean
|
|
144
|
+
readonly reason?: string
|
|
145
|
+
readonly actorReference?: string
|
|
146
|
+
}
|
|
147
|
+
export type BRegRequestState = 'draft' | 'submitted' | 'approved' | 'needs_changes' | 'rejected' | 'canceled' | 'applied'
|
|
148
|
+
export type BRegRetainedRequestProposal = JsonObject & {
|
|
149
|
+
readonly requestEntityId: string
|
|
150
|
+
readonly requestId: string
|
|
151
|
+
readonly proposalVersion: SafeInteger
|
|
152
|
+
readonly bregState: BRegRequestState
|
|
153
|
+
readonly current: boolean
|
|
154
|
+
readonly contractFingerprint: string
|
|
155
|
+
readonly detailErased: boolean
|
|
156
|
+
readonly applicationId: string | null
|
|
157
|
+
readonly resultLinkCount: SafeInteger
|
|
158
|
+
readonly resultLinks: ReadonlyArray<JsonObject>
|
|
159
|
+
readonly effectDigest?: string
|
|
160
|
+
readonly decisions?: ReadonlyArray<BRegRequestDecision>
|
|
161
|
+
}
|
|
162
|
+
export type BRegRetainedRequestHistory = JsonObject & {
|
|
163
|
+
readonly proposals: ReadonlyArray<BRegRetainedRequestProposal>
|
|
164
|
+
readonly nextAfterProposalVersion: SafeInteger | null
|
|
165
|
+
}
|
|
166
|
+
export type BRegRequestMetadata = JsonObject & {
|
|
167
|
+
readonly bregState: BRegRequestState
|
|
168
|
+
readonly proposalVersion: SafeInteger
|
|
169
|
+
readonly effectDigest?: string | null
|
|
170
|
+
readonly proposal?: JsonObject | null
|
|
171
|
+
readonly editable: boolean
|
|
172
|
+
readonly detailErased?: true
|
|
173
|
+
readonly actions?: ReadonlyArray<JsonObject>
|
|
174
|
+
readonly application?: JsonObject | null
|
|
175
|
+
readonly history?: BRegRetainedRequestHistory
|
|
176
|
+
readonly review?: BRegRequestReviewState
|
|
177
|
+
readonly reviewTiming?: BRegRequestReviewTiming
|
|
178
|
+
readonly submitterReference?: string
|
|
179
|
+
readonly applierReference?: string
|
|
180
|
+
readonly decisions?: ReadonlyArray<BRegRequestDecision>
|
|
181
|
+
}
|
|
182
|
+
|
|
73
183
|
export interface RecordMetadata {
|
|
74
184
|
registryIdentifier: string
|
|
75
185
|
datasetIdentifier: string
|
|
@@ -106,12 +216,14 @@ export interface CompleteOutcome<T> {
|
|
|
106
216
|
location?: string
|
|
107
217
|
}
|
|
108
218
|
|
|
109
|
-
export interface PageOutcome {
|
|
219
|
+
export interface PageOutcome<T = RecordCollection, C = ListContinuation> {
|
|
110
220
|
kind: 'complete'
|
|
111
|
-
value:
|
|
112
|
-
continuation?:
|
|
221
|
+
value: T
|
|
222
|
+
continuation?: C
|
|
113
223
|
traceId: string
|
|
114
224
|
etag?: string
|
|
225
|
+
snapshot?: string
|
|
226
|
+
validAt?: string
|
|
115
227
|
}
|
|
116
228
|
|
|
117
229
|
export interface RawOutcome {
|
|
@@ -144,23 +256,55 @@ export interface LifecycleReviewTarget {
|
|
|
144
256
|
|
|
145
257
|
export interface LifecycleReview { targets: ReadonlyArray<LifecycleReviewTarget> }
|
|
146
258
|
|
|
147
|
-
export
|
|
148
|
-
id: string
|
|
149
|
-
revision: SafeInteger
|
|
150
|
-
snapshot: string
|
|
151
|
-
|
|
259
|
+
export type LifecycleReceipt = JsonObject & {
|
|
260
|
+
readonly id: string
|
|
261
|
+
readonly revision: SafeInteger
|
|
262
|
+
readonly snapshot: string
|
|
263
|
+
readonly actorReference?: string
|
|
264
|
+
readonly request: BRegLifecycleReceiptRequest
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export type BRegLifecycleReceiptRequest = JsonObject & {
|
|
268
|
+
readonly bregState: BRegRequestState
|
|
269
|
+
readonly proposalVersion: SafeInteger | null
|
|
270
|
+
readonly effectDigest: string | null
|
|
271
|
+
readonly proposal?: JsonObject | null
|
|
272
|
+
readonly application: JsonObject | null
|
|
152
273
|
}
|
|
153
274
|
|
|
154
275
|
/** Exact validated JSON text, serialized before conversion to JavaScript numbers.
|
|
155
276
|
* Decode with a lossless JSON library if inspecting values outside the safe integer range.
|
|
156
277
|
* Decimal fields remain fixed-scale JSON strings. */
|
|
157
|
-
export interface JsonOutcome {
|
|
278
|
+
export interface JsonOutcome<C = ListContinuation> {
|
|
158
279
|
kind: 'complete'
|
|
159
280
|
valueJson: string
|
|
160
|
-
continuation?:
|
|
281
|
+
continuation?: C
|
|
161
282
|
traceId: string
|
|
162
283
|
etag?: string
|
|
163
284
|
location?: string
|
|
285
|
+
snapshot?: string
|
|
286
|
+
validAt?: string
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface GeoJsonPoint {
|
|
290
|
+
readonly type: 'Point'
|
|
291
|
+
readonly coordinates: readonly [number, number]
|
|
292
|
+
}
|
|
293
|
+
export interface GeoJsonFeature {
|
|
294
|
+
readonly type: 'Feature'
|
|
295
|
+
readonly id: string
|
|
296
|
+
readonly geometry: GeoJsonPoint | null
|
|
297
|
+
readonly properties: Readonly<Record<string, JsonValue>>
|
|
298
|
+
readonly registry: { readonly revision: SafeInteger }
|
|
299
|
+
}
|
|
300
|
+
export interface GeoJsonFeatureCollection {
|
|
301
|
+
readonly type: 'FeatureCollection'
|
|
302
|
+
readonly features: ReadonlyArray<GeoJsonFeature>
|
|
303
|
+
readonly numberReturned: SafeInteger
|
|
304
|
+
readonly registry: {
|
|
305
|
+
readonly pageInfo: { readonly nextCursor: string | null }
|
|
306
|
+
readonly count?: SafeInteger
|
|
307
|
+
}
|
|
164
308
|
}
|
|
165
309
|
|
|
166
310
|
export interface BRegFieldDescriptor {
|
|
@@ -173,6 +317,20 @@ export interface BRegFieldDescriptor {
|
|
|
173
317
|
readonly readOnly: boolean
|
|
174
318
|
readonly removable: boolean
|
|
175
319
|
readonly referenceTargetEntity: string | null
|
|
320
|
+
readonly codeLabels: Readonly<Record<string, string>>
|
|
321
|
+
readonly storageValidation: {
|
|
322
|
+
readonly kind: string
|
|
323
|
+
readonly pattern: string
|
|
324
|
+
} | null
|
|
325
|
+
readonly reference: {
|
|
326
|
+
readonly manualEntry: boolean
|
|
327
|
+
readonly targetEntity: string | null
|
|
328
|
+
readonly operations: ReadonlyArray<{
|
|
329
|
+
readonly operationId: string
|
|
330
|
+
readonly accessProfile: string
|
|
331
|
+
readonly labelFields: ReadonlyArray<string>
|
|
332
|
+
}>
|
|
333
|
+
} | null
|
|
176
334
|
}
|
|
177
335
|
export interface BRegQueryField {
|
|
178
336
|
readonly id: string
|
|
@@ -192,6 +350,29 @@ export interface BRegQueryDescriptor {
|
|
|
192
350
|
readonly maxInValues: number
|
|
193
351
|
readonly pagination: { readonly parameter: string; readonly responsePath: string; readonly exclusive: boolean }
|
|
194
352
|
readonly temporal: JsonObject | null
|
|
353
|
+
readonly spatialQueries?: {
|
|
354
|
+
readonly bbox: {
|
|
355
|
+
readonly geometryProperty: string
|
|
356
|
+
readonly maximumLongitudeSpanDegrees: number
|
|
357
|
+
readonly maximumLatitudeSpanDegrees: number
|
|
358
|
+
readonly coordinateReferenceSystem: string
|
|
359
|
+
readonly semantics: string
|
|
360
|
+
} | null
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
export interface BRegLookupSelectorFieldDescriptor {
|
|
364
|
+
readonly id: string
|
|
365
|
+
readonly apiName: string
|
|
366
|
+
readonly label: string
|
|
367
|
+
readonly schemaJson: string
|
|
368
|
+
readonly required: boolean
|
|
369
|
+
}
|
|
370
|
+
export interface BRegLookupSelectorDescriptor {
|
|
371
|
+
readonly id: string
|
|
372
|
+
readonly label: string
|
|
373
|
+
readonly valueOrigin: string
|
|
374
|
+
readonly fields: ReadonlyArray<BRegLookupSelectorFieldDescriptor>
|
|
375
|
+
readonly requestFields: ReadonlyArray<string>
|
|
195
376
|
}
|
|
196
377
|
export interface BRegOperationDescriptor {
|
|
197
378
|
readonly id: string
|
|
@@ -206,9 +387,12 @@ export interface BRegOperationDescriptor {
|
|
|
206
387
|
readonly requiredCapabilities: ReadonlyArray<string>
|
|
207
388
|
readonly fields: ReadonlyArray<BRegFieldDescriptor>
|
|
208
389
|
readonly readableFields: ReadonlyArray<string>
|
|
390
|
+
readonly readableRequestFields: ReadonlyArray<string>
|
|
209
391
|
readonly createWritableFields: ReadonlyArray<string>
|
|
210
392
|
readonly patchWritableFields: ReadonlyArray<string>
|
|
211
393
|
readonly query: BRegQueryDescriptor | null
|
|
394
|
+
readonly selectors: ReadonlyArray<BRegLookupSelectorDescriptor>
|
|
395
|
+
readonly readPath: { readonly id: string; readonly label: string } | null
|
|
212
396
|
readonly request: {
|
|
213
397
|
readonly fieldNames: string | null
|
|
214
398
|
readonly queryParameters: ReadonlyArray<string>
|
|
@@ -221,9 +405,179 @@ export interface BRegOperationDescriptor {
|
|
|
221
405
|
readonly patchPathPrefix: string | null
|
|
222
406
|
readonly patchOperations: ReadonlyArray<string>
|
|
223
407
|
readonly removeSemantics: string | null
|
|
408
|
+
readonly maximumItems: SafeInteger | null
|
|
409
|
+
readonly maximumBodyBytes: SafeInteger | null
|
|
410
|
+
readonly allowCreate: boolean | null
|
|
411
|
+
readonly allowPatch: boolean | null
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface BRegImmediateActionDescriptor {
|
|
416
|
+
readonly id: string
|
|
417
|
+
readonly contractFingerprint: string
|
|
418
|
+
readonly inputMode: string | null
|
|
419
|
+
readonly maximumInputStringBytes: SafeInteger | null
|
|
420
|
+
readonly inputs: ReadonlyArray<{
|
|
421
|
+
readonly id: string
|
|
422
|
+
readonly apiName: string
|
|
423
|
+
readonly fieldTypeJson: string
|
|
424
|
+
readonly required: boolean
|
|
425
|
+
readonly nullable: boolean | null
|
|
426
|
+
readonly classification: string
|
|
427
|
+
}>
|
|
428
|
+
readonly referenceInputs: ReadonlyArray<{
|
|
429
|
+
readonly input: string
|
|
430
|
+
readonly apiName: string
|
|
431
|
+
readonly targetEntity: string
|
|
432
|
+
}>
|
|
433
|
+
readonly requiredConditionKeys: ReadonlyArray<string>
|
|
434
|
+
readonly resultEffects: ReadonlyArray<{
|
|
435
|
+
readonly effect: string
|
|
436
|
+
readonly entity: string
|
|
437
|
+
readonly operation: string
|
|
438
|
+
}>
|
|
439
|
+
readonly accessProfile: string
|
|
440
|
+
readonly invokePath: string
|
|
441
|
+
readonly targetConditionsPath: string | null
|
|
442
|
+
readonly bounds: {
|
|
443
|
+
readonly maximumTargets: SafeInteger
|
|
444
|
+
readonly maximumFieldMutations: SafeInteger
|
|
445
|
+
readonly maximumSnapshotBytes: SafeInteger
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface BRegActionReceipt {
|
|
450
|
+
readonly action: string
|
|
451
|
+
readonly applicationId: string
|
|
452
|
+
readonly results: Readonly<Record<string, {
|
|
453
|
+
readonly entity: string
|
|
454
|
+
readonly recordId: string
|
|
455
|
+
readonly revision: SafeInteger
|
|
456
|
+
}>>
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export interface BRegBatchCreateItem {
|
|
460
|
+
readonly operation: 'create'
|
|
461
|
+
readonly data: JsonObject
|
|
462
|
+
}
|
|
463
|
+
export interface BRegBatchPatchItem {
|
|
464
|
+
readonly operation: 'patch'
|
|
465
|
+
readonly recordIdentifier: string
|
|
466
|
+
readonly etag: string
|
|
467
|
+
readonly operations: ReadonlyArray<PatchOperation | RemovePatchOperation>
|
|
468
|
+
}
|
|
469
|
+
export type BRegBatchItem = BRegBatchCreateItem | BRegBatchPatchItem
|
|
470
|
+
export type BRegChangeContext =
|
|
471
|
+
| {
|
|
472
|
+
readonly kind: 'change'
|
|
473
|
+
readonly reasonText?: string
|
|
474
|
+
readonly sourceReferences?: ReadonlyArray<string>
|
|
475
|
+
}
|
|
476
|
+
| {
|
|
477
|
+
readonly kind: 'correction'
|
|
478
|
+
readonly reasonCode: string
|
|
479
|
+
readonly reasonText?: string
|
|
480
|
+
readonly sourceReferences?: ReadonlyArray<string>
|
|
481
|
+
}
|
|
482
|
+
export interface BRegBatchInput {
|
|
483
|
+
readonly items: ReadonlyArray<BRegBatchItem>
|
|
484
|
+
readonly changeContext?: BRegChangeContext
|
|
485
|
+
}
|
|
486
|
+
export interface BRegBatchReceipt {
|
|
487
|
+
readonly snapshot: string
|
|
488
|
+
readonly results: ReadonlyArray<{
|
|
489
|
+
readonly operation: 'create' | 'patch'
|
|
490
|
+
readonly id: string
|
|
491
|
+
readonly revision: SafeInteger
|
|
492
|
+
readonly etag: string
|
|
493
|
+
readonly data: Readonly<Record<string, JsonValue>>
|
|
494
|
+
}>
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export interface BRegChangeRequestCapability {
|
|
498
|
+
readonly planner: {
|
|
499
|
+
readonly kind: 'declarative' | 'rhai'
|
|
500
|
+
readonly abi: string | null
|
|
501
|
+
readonly limits: {
|
|
502
|
+
readonly maximumTargets: SafeInteger
|
|
503
|
+
readonly maximumFieldMutations: SafeInteger
|
|
504
|
+
readonly maximumSnapshotBytes: SafeInteger
|
|
505
|
+
readonly maximumSourceBytes: SafeInteger
|
|
506
|
+
readonly maximumOperations: SafeInteger
|
|
507
|
+
readonly maximumCallDepth: SafeInteger
|
|
508
|
+
readonly maximumExpressionDepth: SafeInteger
|
|
509
|
+
readonly maximumStringBytes: SafeInteger
|
|
510
|
+
readonly maximumArrayItems: SafeInteger
|
|
511
|
+
readonly maximumMapEntries: SafeInteger
|
|
512
|
+
readonly maximumModules: SafeInteger
|
|
513
|
+
} | null
|
|
514
|
+
readonly possibleWriteCount: SafeInteger | null
|
|
515
|
+
readonly possibleWriteOperations: ReadonlyArray<string>
|
|
516
|
+
}
|
|
517
|
+
readonly reviewMode: 'none' | 'staged'
|
|
518
|
+
readonly stages: ReadonlyArray<{
|
|
519
|
+
readonly id: string
|
|
520
|
+
readonly approvals: SafeInteger
|
|
521
|
+
readonly excludeSubmitter: boolean
|
|
522
|
+
readonly excludePreviousReviewers: boolean
|
|
523
|
+
}> | null
|
|
524
|
+
readonly application: {
|
|
525
|
+
readonly mode: 'manual' | 'automatic' | 'planner'
|
|
526
|
+
readonly allowedDispositions: ReadonlyArray<'apply' | 'queue'>
|
|
527
|
+
readonly queueReasons: ReadonlyArray<{ readonly code: string; readonly label: string }>
|
|
224
528
|
}
|
|
225
529
|
}
|
|
226
530
|
|
|
531
|
+
export type BRegAttachmentVerificationStatus = 'notRequired' | 'pending' | 'approved' | 'rejected'
|
|
532
|
+
|
|
533
|
+
export type BRegAttachmentClassification = 'public' | 'internal' | 'restricted'
|
|
534
|
+
|
|
535
|
+
/** Engine-owned state of one filled slot, read from a record's domain data. */
|
|
536
|
+
export interface BRegAttachmentState {
|
|
537
|
+
readonly slotIdentifier: string
|
|
538
|
+
readonly proposalVersion: SafeInteger
|
|
539
|
+
readonly erased: boolean
|
|
540
|
+
readonly byteSize: SafeInteger
|
|
541
|
+
readonly sha256: string
|
|
542
|
+
readonly contentType: string | null
|
|
543
|
+
readonly uploadedAt: string | null
|
|
544
|
+
readonly uploadedBy: string | null
|
|
545
|
+
readonly verificationStatus: BRegAttachmentVerificationStatus | null
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/** What one record projection says about one slot. */
|
|
549
|
+
export type BRegAttachmentSlotValue =
|
|
550
|
+
| { readonly kind: 'not_selected'; readonly value: null }
|
|
551
|
+
| { readonly kind: 'empty'; readonly value: null }
|
|
552
|
+
| { readonly kind: 'filled'; readonly value: BRegAttachmentState }
|
|
553
|
+
|
|
554
|
+
/** Opaque bytes already accepted by one slot's served upload policy. */
|
|
555
|
+
export declare class BRegAttachmentUpload {
|
|
556
|
+
private constructor()
|
|
557
|
+
private readonly __opaque: void
|
|
558
|
+
readonly contentType: string
|
|
559
|
+
readonly byteSize: SafeInteger
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/** Opaque governed attachment slot selected from metadata fetched by this client source. */
|
|
563
|
+
export declare class BRegAttachmentSlot {
|
|
564
|
+
private constructor()
|
|
565
|
+
private readonly __opaque: void
|
|
566
|
+
readonly slotIdentifier: string
|
|
567
|
+
readonly entityIdentifier: string
|
|
568
|
+
readonly accessProfile: string
|
|
569
|
+
readonly requiredForSubmit: boolean
|
|
570
|
+
readonly maximumBytes: SafeInteger
|
|
571
|
+
readonly contentTypes: ReadonlyArray<string>
|
|
572
|
+
readonly classification: BRegAttachmentClassification
|
|
573
|
+
readonly canDownload: boolean
|
|
574
|
+
readonly canUpload: boolean
|
|
575
|
+
readonly canRemove: boolean
|
|
576
|
+
acceptsContentType(contentType: string): boolean
|
|
577
|
+
prepareUpload(contentType: string, body: Buffer): BRegAttachmentUpload
|
|
578
|
+
valueIn(record: RecordEnvelope, format?: RecordFormat | null): BRegAttachmentSlotValue
|
|
579
|
+
}
|
|
580
|
+
|
|
227
581
|
/** Opaque write authority selected from metadata fetched by this client source. */
|
|
228
582
|
export declare class BRegCreateBinding {
|
|
229
583
|
private constructor()
|
|
@@ -234,6 +588,29 @@ export declare class BRegPatchBinding {
|
|
|
234
588
|
private constructor()
|
|
235
589
|
private readonly __opaque: void
|
|
236
590
|
}
|
|
591
|
+
/** Opaque authority for one metadata-selected immediate action. */
|
|
592
|
+
export declare class BRegImmediateActionBinding {
|
|
593
|
+
private constructor()
|
|
594
|
+
private readonly __opaque: void
|
|
595
|
+
}
|
|
596
|
+
/** Opaque target conditions obtained for one selected action and input set. */
|
|
597
|
+
export declare class BRegActionTargetConditions {
|
|
598
|
+
private constructor()
|
|
599
|
+
private readonly __opaque: void
|
|
600
|
+
readonly preconditionKeys: ReadonlyArray<string>
|
|
601
|
+
readonly valueJson: string
|
|
602
|
+
readonly traceId: string
|
|
603
|
+
}
|
|
604
|
+
/** Opaque authority for one metadata-selected Tombstone operation. */
|
|
605
|
+
export declare class BRegTombstoneBinding {
|
|
606
|
+
private constructor()
|
|
607
|
+
private readonly __opaque: void
|
|
608
|
+
}
|
|
609
|
+
/** Opaque authority for one metadata-selected atomic Batch operation. */
|
|
610
|
+
export declare class BRegBatchBinding {
|
|
611
|
+
private constructor()
|
|
612
|
+
private readonly __opaque: void
|
|
613
|
+
}
|
|
237
614
|
/** Opaque lifecycle authority selected from metadata fetched by this client source. */
|
|
238
615
|
export declare class BRegLifecycleAuthority {
|
|
239
616
|
private constructor()
|
|
@@ -242,6 +619,7 @@ export declare class BRegLifecycleAuthority {
|
|
|
242
619
|
|
|
243
620
|
/** Opaque executable action promoted from a metadata authority and one record. */
|
|
244
621
|
export declare class BRegLifecycleAction {
|
|
622
|
+
withReason(reason: string): BRegLifecycleAction
|
|
245
623
|
private constructor()
|
|
246
624
|
private readonly __opaque: void
|
|
247
625
|
readonly operation: string
|
|
@@ -253,25 +631,61 @@ export declare class BRegLifecycleAction {
|
|
|
253
631
|
readonly review: LifecycleReview | null
|
|
254
632
|
}
|
|
255
633
|
|
|
634
|
+
/** Inert bounded Create evidence. Persist these bytes with owner-only access. */
|
|
635
|
+
export declare class BRegPreparedCreate {
|
|
636
|
+
private constructor()
|
|
637
|
+
private readonly __opaque: void
|
|
638
|
+
static fromBytes(bytes: Buffer): BRegPreparedCreate
|
|
639
|
+
toBytes(): Buffer
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/** Inert bounded lifecycle evidence. Persist these bytes with owner-only access. */
|
|
643
|
+
export declare class BRegPreparedLifecycle {
|
|
644
|
+
private constructor()
|
|
645
|
+
private readonly __opaque: void
|
|
646
|
+
static fromBytes(bytes: Buffer): BRegPreparedLifecycle
|
|
647
|
+
toBytes(): Buffer
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/** Revalidated Create request. It still requires fresh metadata authority to send. */
|
|
651
|
+
export declare class BRegRecoveredCreate {
|
|
652
|
+
private constructor()
|
|
653
|
+
private readonly __opaque: void
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/** Revalidated lifecycle action. It remains inert until explicitly sent. */
|
|
657
|
+
export declare class BRegRecoveredLifecycle {
|
|
658
|
+
private constructor()
|
|
659
|
+
private readonly __opaque: void
|
|
660
|
+
}
|
|
661
|
+
|
|
256
662
|
/** Caller-filtered metadata bound to the exact client source that fetched it. */
|
|
257
663
|
export declare class BRegMetadata {
|
|
258
664
|
private constructor()
|
|
259
665
|
private readonly __opaque: void
|
|
260
666
|
readonly operations: ReadonlyArray<BRegOperationDescriptor>
|
|
667
|
+
readonly immediateActions: ReadonlyArray<BRegImmediateActionDescriptor>
|
|
668
|
+
readonly actionsJson: string | null
|
|
261
669
|
readonly registryIdentifier: string
|
|
262
670
|
readonly registryVersion: string
|
|
263
671
|
readonly registryRevision: string
|
|
264
672
|
readonly traceId: string
|
|
265
673
|
readonly etag: string | null
|
|
674
|
+
changeRequestCapability(entityIdentifier: string): BRegChangeRequestCapability | null
|
|
266
675
|
selectCreate(operationIdentifier: string, expectedProfile: string): BRegCreateBinding
|
|
267
676
|
selectPatch(operationIdentifier: string, expectedProfile: string): BRegPatchBinding
|
|
268
677
|
selectLifecycle(entityIdentifier: string, expectedProfile: string): BRegLifecycleAuthority
|
|
678
|
+
selectAttachments(entityIdentifier: string, expectedProfile: string): ReadonlyArray<BRegAttachmentSlot>
|
|
679
|
+
selectImmediateAction(actionIdentifier: string, expectedProfile: string): BRegImmediateActionBinding
|
|
680
|
+
selectTombstone(entityIdentifier: string, expectedProfile: string): BRegTombstoneBinding
|
|
681
|
+
selectBatch(entityIdentifier: string, expectedProfile: string): BRegBatchBinding
|
|
269
682
|
}
|
|
270
683
|
|
|
271
684
|
export interface BaseRegistryClientFailure extends Error {
|
|
272
685
|
readonly kind: string
|
|
273
686
|
readonly code?: string
|
|
274
687
|
readonly planRefusal?: string
|
|
688
|
+
readonly refusalCode?: string
|
|
275
689
|
readonly status?: number
|
|
276
690
|
readonly traceId?: string
|
|
277
691
|
readonly transportKind?: string
|
|
@@ -282,6 +696,7 @@ export declare class BaseRegistryClientError extends Error implements BaseRegist
|
|
|
282
696
|
readonly kind: string
|
|
283
697
|
readonly code?: string
|
|
284
698
|
readonly planRefusal?: string
|
|
699
|
+
readonly refusalCode?: string
|
|
285
700
|
readonly status?: number
|
|
286
701
|
readonly traceId?: string
|
|
287
702
|
readonly transportKind?: string
|
|
@@ -296,19 +711,66 @@ export declare class BaseRegistryClient {
|
|
|
296
711
|
registryMetadata(accessProfile?: string | null): Promise<RawOutcome>
|
|
297
712
|
registryContract(accessProfile?: string | null): Promise<BRegMetadata>
|
|
298
713
|
entitySchema(entityIdentifier: string, accessProfile?: string | null): Promise<RawOutcome>
|
|
714
|
+
recordRevisions(entityRoute: string, recordIdentifier: string, accessProfile?: string | null): Promise<RawOutcome>
|
|
715
|
+
getRecordRevision(entityRoute: string, recordIdentifier: string, revision: SafeInteger, options?: RecordProjectionOptions | null): Promise<RawOutcome>
|
|
299
716
|
getRecord(entityRoute: string, recordIdentifier: string, options?: RecordOptions | null): Promise<CompleteOutcome<RecordEnvelope>>
|
|
300
717
|
listRecords(entityRoute: string, options?: ListOptions | null): Promise<PageOutcome>
|
|
301
718
|
continueList(continuation: ListContinuation): Promise<PageOutcome>
|
|
302
|
-
|
|
719
|
+
getGeoJsonRecord(entityRoute: string, recordIdentifier: string, options?: GeoJsonOptions | null): Promise<CompleteOutcome<GeoJsonFeature>>
|
|
720
|
+
listGeoJsonRecords(entityRoute: string, options?: GeoJsonListOptions | null): Promise<PageOutcome<GeoJsonFeatureCollection, GeoJsonListContinuation>>
|
|
721
|
+
continueGeoJsonList(continuation: GeoJsonListContinuation): Promise<PageOutcome<GeoJsonFeatureCollection, GeoJsonListContinuation>>
|
|
722
|
+
listCurrentRecords(entityRoute: string, options?: CollectionOptions | null): Promise<PageOutcome<RecordCollection, CurrentListContinuation>>
|
|
723
|
+
continueCurrentList(continuation: CurrentListContinuation): Promise<PageOutcome<RecordCollection, CurrentListContinuation>>
|
|
724
|
+
listRecordsAsOf(entityRoute: string, options: AsOfListOptions): Promise<PageOutcome<RecordCollection, AsOfListContinuation>>
|
|
725
|
+
continueAsOfList(continuation: AsOfListContinuation): Promise<PageOutcome<RecordCollection, AsOfListContinuation>>
|
|
726
|
+
listSnapshotRecords(entityRoute: string, options?: SnapshotListOptions | null): Promise<PageOutcome<RecordCollection, SnapshotListContinuation>>
|
|
727
|
+
continueSnapshotList(continuation: SnapshotListContinuation): Promise<PageOutcome<RecordCollection, SnapshotListContinuation>>
|
|
728
|
+
listRelationshipRecords(entityRoute: string, recordIdentifier: string, pathRoute: string, options?: CollectionOptions | null): Promise<PageOutcome<RecordCollection, RelationshipListContinuation>>
|
|
729
|
+
continueRelationshipList(continuation: RelationshipListContinuation): Promise<PageOutcome<RecordCollection, RelationshipListContinuation>>
|
|
730
|
+
lookupRecord(entityRoute: string, selector: string, values?: JsonObject | null, options?: RecordProjectionOptions | null): Promise<CompleteOutcome<RecordEnvelope>>
|
|
731
|
+
actionTargetConditions(binding: BRegImmediateActionBinding, inputs: JsonObject): Promise<BRegActionTargetConditions>
|
|
732
|
+
actionTargetConditionsJson(binding: BRegImmediateActionBinding, inputsJson: string): Promise<BRegActionTargetConditions>
|
|
733
|
+
invokeAction(binding: BRegImmediateActionBinding, inputs: JsonObject, idempotencyKey: string, conditions?: BRegActionTargetConditions | null): Promise<CompleteOutcome<BRegActionReceipt>>
|
|
734
|
+
invokeActionJson(binding: BRegImmediateActionBinding, inputsJson: string, idempotencyKey: string, conditions?: BRegActionTargetConditions | null): Promise<JsonOutcome>
|
|
303
735
|
createRecord(binding: BRegCreateBinding, data: JsonObject, idempotencyKey: string, format?: RecordFormat | null): Promise<CompleteOutcome<RecordEnvelope>>
|
|
736
|
+
prepareCreate(binding: BRegCreateBinding, data: JsonObject, idempotencyKey: string, format?: RecordFormat | null): BRegPreparedCreate
|
|
737
|
+
prepareCreateJson(binding: BRegCreateBinding, dataJson: string, idempotencyKey: string, format?: RecordFormat | null): BRegPreparedCreate
|
|
738
|
+
recoverCreate(binding: BRegCreateBinding, prepared: BRegPreparedCreate): BRegRecoveredCreate
|
|
739
|
+
executeRecoveredCreate(binding: BRegCreateBinding, recovered: BRegRecoveredCreate): Promise<CompleteOutcome<RecordEnvelope>>
|
|
740
|
+
executeRecoveredCreateJson(binding: BRegCreateBinding, recovered: BRegRecoveredCreate): Promise<JsonOutcome>
|
|
304
741
|
patchRecord(binding: BRegPatchBinding, recordIdentifier: string, etag: string, operations: ReadonlyArray<PatchOperation | RemovePatchOperation>, idempotencyKey: string, format?: RecordFormat | null): Promise<CompleteOutcome<RecordEnvelope>>
|
|
742
|
+
batchRecords(binding: BRegBatchBinding, request: BRegBatchInput, idempotencyKey: string): Promise<CompleteOutcome<BRegBatchReceipt>>
|
|
743
|
+
batchRecordsJson(binding: BRegBatchBinding, requestJson: string, idempotencyKey: string): Promise<JsonOutcome>
|
|
744
|
+
tombstoneRecord(binding: BRegTombstoneBinding, recordIdentifier: string, etag: string, idempotencyKey: string, format?: RecordFormat | null): Promise<CompleteOutcome<RecordEnvelope>>
|
|
745
|
+
tombstoneRecordJson(binding: BRegTombstoneBinding, recordIdentifier: string, etag: string, idempotencyKey: string, format?: RecordFormat | null): Promise<JsonOutcome>
|
|
305
746
|
lifecycleActions(authority: BRegLifecycleAuthority, record: RecordEnvelope, format?: RecordFormat | null): ReadonlyArray<BRegLifecycleAction>
|
|
747
|
+
prepareLifecycleAction(authority: BRegLifecycleAuthority, record: RecordEnvelope, action: BRegLifecycleAction, idempotencyKey: string, format?: RecordFormat | null): BRegPreparedLifecycle
|
|
748
|
+
prepareLifecycleActionJson(authority: BRegLifecycleAuthority, recordJson: string, action: BRegLifecycleAction, idempotencyKey: string, format?: RecordFormat | null): BRegPreparedLifecycle
|
|
749
|
+
recoverLifecycleAction(authority: BRegLifecycleAuthority, prepared: BRegPreparedLifecycle): BRegRecoveredLifecycle
|
|
750
|
+
executeRecoveredLifecycleAction(recovered: BRegRecoveredLifecycle): Promise<CompleteOutcome<LifecycleReceipt>>
|
|
751
|
+
executeRecoveredLifecycleActionJson(recovered: BRegRecoveredLifecycle): Promise<JsonOutcome>
|
|
752
|
+
uploadAttachment(slot: BRegAttachmentSlot, recordIdentifier: string, etag: string, upload: BRegAttachmentUpload, idempotencyKey: string, format?: RecordFormat | null): Promise<CompleteOutcome<RecordEnvelope>>
|
|
753
|
+
downloadAttachment(slot: BRegAttachmentSlot, recordIdentifier: string, proposalVersion: SafeInteger): Promise<RawOutcome>
|
|
754
|
+
deleteAttachment(slot: BRegAttachmentSlot, recordIdentifier: string, etag: string, idempotencyKey: string, format?: RecordFormat | null): Promise<CompleteOutcome<RecordEnvelope>>
|
|
306
755
|
getRecordJson(entityRoute: string, recordIdentifier: string, options?: RecordOptions | null): Promise<JsonOutcome>
|
|
307
756
|
listRecordsJson(entityRoute: string, options?: ListOptions | null): Promise<JsonOutcome>
|
|
308
757
|
continueListJson(continuation: ListContinuation): Promise<JsonOutcome>
|
|
309
|
-
|
|
758
|
+
getGeoJsonRecordJson(entityRoute: string, recordIdentifier: string, options?: GeoJsonOptions | null): Promise<JsonOutcome>
|
|
759
|
+
listGeoJsonRecordsJson(entityRoute: string, options?: GeoJsonListOptions | null): Promise<JsonOutcome<GeoJsonListContinuation>>
|
|
760
|
+
continueGeoJsonListJson(continuation: GeoJsonListContinuation): Promise<JsonOutcome<GeoJsonListContinuation>>
|
|
761
|
+
listCurrentRecordsJson(entityRoute: string, options?: CollectionOptions | null): Promise<JsonOutcome<CurrentListContinuation>>
|
|
762
|
+
continueCurrentListJson(continuation: CurrentListContinuation): Promise<JsonOutcome<CurrentListContinuation>>
|
|
763
|
+
listRecordsAsOfJson(entityRoute: string, options: AsOfListOptions): Promise<JsonOutcome<AsOfListContinuation>>
|
|
764
|
+
continueAsOfListJson(continuation: AsOfListContinuation): Promise<JsonOutcome<AsOfListContinuation>>
|
|
765
|
+
listSnapshotRecordsJson(entityRoute: string, options?: SnapshotListOptions | null): Promise<JsonOutcome<SnapshotListContinuation>>
|
|
766
|
+
continueSnapshotListJson(continuation: SnapshotListContinuation): Promise<JsonOutcome<SnapshotListContinuation>>
|
|
767
|
+
listRelationshipRecordsJson(entityRoute: string, recordIdentifier: string, pathRoute: string, options?: CollectionOptions | null): Promise<JsonOutcome<RelationshipListContinuation>>
|
|
768
|
+
continueRelationshipListJson(continuation: RelationshipListContinuation): Promise<JsonOutcome<RelationshipListContinuation>>
|
|
769
|
+
lookupRecordJson(entityRoute: string, selector: string, valuesJson?: string | null, options?: RecordProjectionOptions | null): Promise<JsonOutcome>
|
|
310
770
|
createRecordJson(binding: BRegCreateBinding, dataJson: string, idempotencyKey: string, format?: RecordFormat | null): Promise<JsonOutcome>
|
|
311
771
|
patchRecordJson(binding: BRegPatchBinding, recordIdentifier: string, etag: string, operationsJson: string, idempotencyKey: string, format?: RecordFormat | null): Promise<JsonOutcome>
|
|
772
|
+
uploadAttachmentJson(slot: BRegAttachmentSlot, recordIdentifier: string, etag: string, upload: BRegAttachmentUpload, idempotencyKey: string, format?: RecordFormat | null): Promise<JsonOutcome>
|
|
773
|
+
deleteAttachmentJson(slot: BRegAttachmentSlot, recordIdentifier: string, etag: string, idempotencyKey: string, format?: RecordFormat | null): Promise<JsonOutcome>
|
|
312
774
|
lifecycleActionsJson(authority: BRegLifecycleAuthority, recordJson: string, format?: RecordFormat | null): ReadonlyArray<BRegLifecycleAction>
|
|
313
775
|
executeLifecycleActionJson(action: BRegLifecycleAction, idempotencyKey: string): Promise<JsonOutcome>
|
|
314
776
|
executeLifecycleAction(action: BRegLifecycleAction, idempotencyKey: string): Promise<CompleteOutcome<LifecycleReceipt>>
|