@substrat-run/engine-protocol 0.7.3 → 0.9.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/dist/index.d.ts +35 -261
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +135 -211
- package/dist/index.js.map +1 -1
- package/dist/inputs.d.ts +322 -0
- package/dist/inputs.d.ts.map +1 -0
- package/dist/inputs.js +285 -0
- package/dist/inputs.js.map +1 -0
- package/dist/operations.d.ts +795 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +176 -0
- package/dist/operations.js.map +1 -0
- package/dist/schemas.d.ts +385 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +136 -0
- package/dist/schemas.js.map +1 -0
- package/package.json +12 -8
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,31 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type EntityRef, type EntityRow } from '@substrat-run/contracts';
|
|
3
3
|
import { protocolEntities } from './entities.js';
|
|
4
4
|
export { protocolEntities, protocolInstanceRow } from './entities.js';
|
|
5
|
+
/**
|
|
6
|
+
* The row shapes this engine publishes, as Zod (#738). A vertical declaring an
|
|
7
|
+
* operation that RETURNS one needs something to point at; before these it had
|
|
8
|
+
* only TypeScript interfaces, which are enough to implement against and not
|
|
9
|
+
* enough to declare against.
|
|
10
|
+
*/
|
|
11
|
+
export { protocolTemplateRow, protocolResponseRow, protocolSignatureRow, protocolSignatureRequestRow, } from './schemas.js';
|
|
12
|
+
/**
|
|
13
|
+
* The input shapes, and the template-content vocabulary they are built from
|
|
14
|
+
* (#738). Moved out of this file so `operations.ts` can declare against the
|
|
15
|
+
* SAME Zod object the handler parses without importing the implementation —
|
|
16
|
+
* see the header of `inputs.ts` for the cycle that forced it.
|
|
17
|
+
*
|
|
18
|
+
* Re-exported here in full: the package root is the engine's surface, and a
|
|
19
|
+
* vertical that passed `defineTemplateInput` yesterday still imports it from
|
|
20
|
+
* exactly where it did.
|
|
21
|
+
*/
|
|
22
|
+
export { protocolItem, checklistContent, documentContent, contentUnion, protocolTemplateContent, signatory, defineTemplateInput, instantiateProtocolInput, fillProtocolInput, bindDocumentInput, partyContact, signatureRequestParty, requestSignaturesInput, recordSignatureInput, declineSignatureInput, cancelSignatureRequestsInput, type ProtocolItem, type ChecklistContent, type DocumentContent, type ProtocolTemplateContent, type ProtocolTemplateContentInput, type Signatory, type DefineTemplateInput, type InstantiateProtocolInput, type FillProtocolInput, type BindDocumentInput, type PartyContact, type SignatureRequestParty, type RequestSignaturesInput, type RecordSignatureInput, type DeclineSignatureInput, type CancelSignatureRequestsInput, } from './inputs.js';
|
|
23
|
+
/**
|
|
24
|
+
* The declared operation surface (#738) — what a vertical binds to its own URLs
|
|
25
|
+
* with `defineEngineRoutes`, carrying this engine's real input and output
|
|
26
|
+
* schemas rather than a restatement the vertical had to write.
|
|
27
|
+
*/
|
|
28
|
+
export { protocolOperations, PROTOCOL_PERMISSIONS } from './operations.js';
|
|
29
|
+
import { type BindDocumentInput, type CancelSignatureRequestsInput, type DeclineSignatureInput, type DefineTemplateInput, type FillProtocolInput, type InstantiateProtocolInput, type ProtocolTemplateContent, type RecordSignatureInput, type RequestSignaturesInput } from './inputs.js';
|
|
5
30
|
import { type GuardPredicate, type ModuleRegistration, type OperationContext } from '@substrat-run/kernel';
|
|
6
31
|
export declare const PROTOCOL_PERM: {
|
|
7
32
|
create: string & z.$brand<"PermissionKey">;
|
|
@@ -112,134 +137,6 @@ export declare const protocolMigrations: {
|
|
|
112
137
|
version: string;
|
|
113
138
|
sql: string;
|
|
114
139
|
}[];
|
|
115
|
-
export declare const protocolItem: z.ZodObject<{
|
|
116
|
-
key: z.ZodString;
|
|
117
|
-
label: z.ZodString;
|
|
118
|
-
type: z.ZodEnum<{
|
|
119
|
-
check: "check";
|
|
120
|
-
text: "text";
|
|
121
|
-
value: "value";
|
|
122
|
-
}>;
|
|
123
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
124
|
-
}, z.core.$strip>;
|
|
125
|
-
export type ProtocolItem = z.infer<typeof protocolItem>;
|
|
126
|
-
/** The original shape: sections of items, filled response-by-response. */
|
|
127
|
-
export declare const checklistContent: z.ZodObject<{
|
|
128
|
-
kind: z.ZodLiteral<"checklist">;
|
|
129
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
130
|
-
title: z.ZodString;
|
|
131
|
-
items: z.ZodArray<z.ZodObject<{
|
|
132
|
-
key: z.ZodString;
|
|
133
|
-
label: z.ZodString;
|
|
134
|
-
type: z.ZodEnum<{
|
|
135
|
-
check: "check";
|
|
136
|
-
text: "text";
|
|
137
|
-
value: "value";
|
|
138
|
-
}>;
|
|
139
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
140
|
-
}, z.core.$strip>>;
|
|
141
|
-
}, z.core.$strip>>;
|
|
142
|
-
}, z.core.$strip>;
|
|
143
|
-
export type ChecklistContent = z.infer<typeof checklistContent>;
|
|
144
|
-
/**
|
|
145
|
-
* Content the engine never sees. The template says what KIND of document this
|
|
146
|
-
* is and how to render it; the instance carries the vertical's `EntityRef` and
|
|
147
|
-
* the hash the vertical computed over its own rows.
|
|
148
|
-
*
|
|
149
|
-
* `hashRecipe` is free text, and it is the load-bearing honesty of this kind:
|
|
150
|
-
* a document signature attests to a hash the engine did not compute, so the
|
|
151
|
-
* recipe for reproducing it must be written down where an auditor reading the
|
|
152
|
-
* template finds it. The engine cannot enforce that the text is true — but a
|
|
153
|
-
* signature over an unreproducible hash is worth nothing, and a required field
|
|
154
|
-
* is what makes the vertical say out loud how to reproduce it.
|
|
155
|
-
*/
|
|
156
|
-
export declare const documentContent: z.ZodObject<{
|
|
157
|
-
kind: z.ZodLiteral<"document">;
|
|
158
|
-
documentType: z.ZodString;
|
|
159
|
-
hashRecipe: z.ZodString;
|
|
160
|
-
description: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
export type DocumentContent = z.infer<typeof documentContent>;
|
|
163
|
-
declare const contentUnion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
164
|
-
kind: z.ZodLiteral<"checklist">;
|
|
165
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
166
|
-
title: z.ZodString;
|
|
167
|
-
items: z.ZodArray<z.ZodObject<{
|
|
168
|
-
key: z.ZodString;
|
|
169
|
-
label: z.ZodString;
|
|
170
|
-
type: z.ZodEnum<{
|
|
171
|
-
check: "check";
|
|
172
|
-
text: "text";
|
|
173
|
-
value: "value";
|
|
174
|
-
}>;
|
|
175
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
176
|
-
}, z.core.$strip>>;
|
|
177
|
-
}, z.core.$strip>>;
|
|
178
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
-
kind: z.ZodLiteral<"document">;
|
|
180
|
-
documentType: z.ZodString;
|
|
181
|
-
hashRecipe: z.ZodString;
|
|
182
|
-
description: z.ZodOptional<z.ZodString>;
|
|
183
|
-
}, z.core.$strip>], "kind">;
|
|
184
|
-
/**
|
|
185
|
-
* Parses either kind, defaulting a missing discriminant to 'checklist' so
|
|
186
|
-
* every template defined before milestone D still parses. Note this is a
|
|
187
|
-
* READ-time normalisation: `defineTemplate` stores what it is given after
|
|
188
|
-
* parsing, so new templates carry an explicit `kind`, and old rows keep their
|
|
189
|
-
* bytes (and therefore their hashes) exactly as signed.
|
|
190
|
-
*/
|
|
191
|
-
export declare const protocolTemplateContent: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
|
-
kind: z.ZodLiteral<"checklist">;
|
|
193
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
194
|
-
title: z.ZodString;
|
|
195
|
-
items: z.ZodArray<z.ZodObject<{
|
|
196
|
-
key: z.ZodString;
|
|
197
|
-
label: z.ZodString;
|
|
198
|
-
type: z.ZodEnum<{
|
|
199
|
-
check: "check";
|
|
200
|
-
text: "text";
|
|
201
|
-
value: "value";
|
|
202
|
-
}>;
|
|
203
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
204
|
-
}, z.core.$strip>>;
|
|
205
|
-
}, z.core.$strip>>;
|
|
206
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
-
kind: z.ZodLiteral<"document">;
|
|
208
|
-
documentType: z.ZodString;
|
|
209
|
-
hashRecipe: z.ZodString;
|
|
210
|
-
description: z.ZodOptional<z.ZodString>;
|
|
211
|
-
}, z.core.$strip>], "kind">>;
|
|
212
|
-
export type ProtocolTemplateContent = z.infer<typeof contentUnion>;
|
|
213
|
-
/**
|
|
214
|
-
* Who signed. Two kinds, and the difference is the whole point of milestone D:
|
|
215
|
-
*
|
|
216
|
-
* - `principal` — an authenticated principal in this scope. `ref` is their
|
|
217
|
-
* `PrincipalId`. Every in-app signature.
|
|
218
|
-
* - `external` — a human with no account, identified by an external provider
|
|
219
|
-
* (BankID via Scrive). `ref` is an OPAQUE `DataSubjectId` the vertical minted
|
|
220
|
-
* for that person.
|
|
221
|
-
*
|
|
222
|
-
* A personnummer, an email or a name must NEVER land in `ref`. It is `direct`
|
|
223
|
-
* PII, and `subjectId` on the emitted event is what crypto-shredding keys the
|
|
224
|
-
* erasure on (§5.3) — a `DataSubjectId` is shreddable, a personnummer written
|
|
225
|
-
* into a signature row is a GDPR liability that immutability makes permanent.
|
|
226
|
-
* The provider's own party identifier belongs in `evidenceRef`, which is where
|
|
227
|
-
* the sealed PDF and the provider audit log are reachable from.
|
|
228
|
-
*
|
|
229
|
-
* This follows `engines/booking`'s `partyRef`: a participant is a person with
|
|
230
|
-
* no principal, and it names them with a `DataSubjectId` for exactly this
|
|
231
|
-
* reason.
|
|
232
|
-
*/
|
|
233
|
-
export declare const signatory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
234
|
-
kind: z.ZodLiteral<"principal">;
|
|
235
|
-
ref: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
236
|
-
label: z.ZodOptional<z.ZodString>;
|
|
237
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
238
|
-
kind: z.ZodLiteral<"external">;
|
|
239
|
-
ref: z.core.$ZodBranded<z.ZodString, "DataSubjectId", "out">;
|
|
240
|
-
label: z.ZodOptional<z.ZodString>;
|
|
241
|
-
}, z.core.$strip>], "kind">;
|
|
242
|
-
export type Signatory = z.infer<typeof signatory>;
|
|
243
140
|
export interface ProtocolTemplateRow {
|
|
244
141
|
id: string;
|
|
245
142
|
key: string;
|
|
@@ -288,6 +185,16 @@ export interface ProtocolSignatureRequestRow {
|
|
|
288
185
|
method: string;
|
|
289
186
|
/** #620: null on every row written before `0003-party-auth-level` — reads as `basic`. */
|
|
290
187
|
auth_level: 'basic' | 'strong' | null;
|
|
188
|
+
/**
|
|
189
|
+
* #687: the sealed delivery address, or null for a party that needs none (the
|
|
190
|
+
* issuer) and for every row written before `0005-party-contact`.
|
|
191
|
+
*
|
|
192
|
+
* **Ciphertext, never plaintext** — the engine holds no readable address at
|
|
193
|
+
* any point after the operation returns, which is what keeps a signatory's
|
|
194
|
+
* contact out of this engine's erasure story entirely.
|
|
195
|
+
*/
|
|
196
|
+
contact_key_id: string | null;
|
|
197
|
+
contact_ciphertext: string | null;
|
|
291
198
|
status: 'pending' | 'signed' | 'declined' | 'expired' | 'cancelled';
|
|
292
199
|
content_hash: string;
|
|
293
200
|
external_ref: string | null;
|
|
@@ -329,46 +236,6 @@ export declare const allSignedGuardConfig: z.ZodObject<{
|
|
|
329
236
|
export type AllSignedGuardConfig = z.input<typeof allSignedGuardConfig>;
|
|
330
237
|
/** The named predicate the kernel resolves for `predicate: 'protocol/all-signed'`. */
|
|
331
238
|
export declare const allSignedPredicate: GuardPredicate;
|
|
332
|
-
export declare const defineTemplateInput: z.ZodObject<{
|
|
333
|
-
key: z.ZodString;
|
|
334
|
-
title: z.ZodString;
|
|
335
|
-
content: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
336
|
-
kind: z.ZodLiteral<"checklist">;
|
|
337
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
338
|
-
title: z.ZodString;
|
|
339
|
-
items: z.ZodArray<z.ZodObject<{
|
|
340
|
-
key: z.ZodString;
|
|
341
|
-
label: z.ZodString;
|
|
342
|
-
type: z.ZodEnum<{
|
|
343
|
-
check: "check";
|
|
344
|
-
text: "text";
|
|
345
|
-
value: "value";
|
|
346
|
-
}>;
|
|
347
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
348
|
-
}, z.core.$strip>>;
|
|
349
|
-
}, z.core.$strip>>;
|
|
350
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
351
|
-
kind: z.ZodLiteral<"document">;
|
|
352
|
-
documentType: z.ZodString;
|
|
353
|
-
hashRecipe: z.ZodString;
|
|
354
|
-
description: z.ZodOptional<z.ZodString>;
|
|
355
|
-
}, z.core.$strip>], "kind">>;
|
|
356
|
-
}, z.core.$strip>;
|
|
357
|
-
/**
|
|
358
|
-
* What a template author writes. Spelled out rather than inferred because the
|
|
359
|
-
* `kind` normalisation is a `z.preprocess`, whose inferred INPUT type is
|
|
360
|
-
* `unknown` — which would silently drop type-checking on exactly the object a
|
|
361
|
-
* vertical hand-writes most often. `kind` is optional only for checklists, so
|
|
362
|
-
* every template that predates the discriminant still compiles unchanged.
|
|
363
|
-
*/
|
|
364
|
-
export type ProtocolTemplateContentInput = (Omit<ChecklistContent, 'kind'> & {
|
|
365
|
-
kind?: 'checklist';
|
|
366
|
-
}) | DocumentContent;
|
|
367
|
-
export interface DefineTemplateInput {
|
|
368
|
-
key: string;
|
|
369
|
-
title: string;
|
|
370
|
-
content: ProtocolTemplateContentInput;
|
|
371
|
-
}
|
|
372
239
|
/**
|
|
373
240
|
* Templates version immutably: same key + new content = next version, the
|
|
374
241
|
* old row is never touched. Editing a template never rewrites what a signed
|
|
@@ -377,38 +244,13 @@ export interface DefineTemplateInput {
|
|
|
377
244
|
export declare function defineTemplate(ctx: OperationContext, rawInput: DefineTemplateInput): ProtocolTemplateRow;
|
|
378
245
|
/** Latest version per key — the instantiation picker's list. */
|
|
379
246
|
export declare function listTemplates(ctx: OperationContext): ProtocolTemplateRow[];
|
|
380
|
-
export declare const instantiateProtocolInput: z.ZodObject<{
|
|
381
|
-
templateKey: z.ZodString;
|
|
382
|
-
entity: z.ZodObject<{
|
|
383
|
-
entityType: z.ZodString;
|
|
384
|
-
entityId: z.ZodString;
|
|
385
|
-
}, z.core.$strip>;
|
|
386
|
-
}, z.core.$strip>;
|
|
387
|
-
export type InstantiateProtocolInput = z.infer<typeof instantiateProtocolInput>;
|
|
388
247
|
/**
|
|
389
248
|
* Pins the latest template version at instantiation — forever (invariant 5).
|
|
390
249
|
* One OPEN instance per (template, entity). Which entity types may carry
|
|
391
250
|
* which protocols, and when, is vertical policy — enforced by the caller.
|
|
392
251
|
*/
|
|
393
252
|
export declare function instantiateProtocol(ctx: OperationContext, rawInput: InstantiateProtocolInput): ProtocolInstanceRow;
|
|
394
|
-
export declare const fillProtocolInput: z.ZodObject<{
|
|
395
|
-
instanceId: z.ZodString;
|
|
396
|
-
itemKey: z.ZodString;
|
|
397
|
-
value: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
|
|
398
|
-
note: z.ZodOptional<z.ZodString>;
|
|
399
|
-
}, z.core.$strip>;
|
|
400
|
-
export type FillProtocolInput = z.infer<typeof fillProtocolInput>;
|
|
401
253
|
export declare function fillProtocol(ctx: OperationContext, rawInput: FillProtocolInput): ProtocolResponseRow;
|
|
402
|
-
export declare const bindDocumentInput: z.ZodObject<{
|
|
403
|
-
instanceId: z.ZodString;
|
|
404
|
-
contentRef: z.ZodObject<{
|
|
405
|
-
entityType: z.ZodString;
|
|
406
|
-
entityId: z.ZodString;
|
|
407
|
-
}, z.core.$strip>;
|
|
408
|
-
contentHash: z.ZodString;
|
|
409
|
-
documentAttachmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
-
}, z.core.$strip>;
|
|
411
|
-
export type BindDocumentInput = z.infer<typeof bindDocumentInput>;
|
|
412
254
|
/**
|
|
413
255
|
* Bind (or re-bind) a document protocol's content while it is still open —
|
|
414
256
|
* the document-kind counterpart of `fillProtocol`. Re-binding is the whole
|
|
@@ -429,44 +271,6 @@ export type BindDocumentInput = z.infer<typeof bindDocumentInput>;
|
|
|
429
271
|
* never been able to run.
|
|
430
272
|
*/
|
|
431
273
|
export declare function bindDocument(ctx: OperationContext, rawInput: BindDocumentInput): ProtocolInstanceRow;
|
|
432
|
-
export declare const signatureRequestParty: z.ZodObject<{
|
|
433
|
-
label: z.ZodString;
|
|
434
|
-
kind: z.ZodEnum<{
|
|
435
|
-
external: "external";
|
|
436
|
-
principal: "principal";
|
|
437
|
-
}>;
|
|
438
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
439
|
-
signatureKind: z.ZodOptional<z.ZodEnum<{
|
|
440
|
-
counter: "counter";
|
|
441
|
-
primary: "primary";
|
|
442
|
-
}>>;
|
|
443
|
-
authLevel: z.ZodOptional<z.ZodEnum<{
|
|
444
|
-
basic: "basic";
|
|
445
|
-
strong: "strong";
|
|
446
|
-
}>>;
|
|
447
|
-
}, z.core.$strip>;
|
|
448
|
-
export type SignatureRequestParty = z.input<typeof signatureRequestParty>;
|
|
449
|
-
export declare const requestSignaturesInput: z.ZodObject<{
|
|
450
|
-
instanceId: z.ZodString;
|
|
451
|
-
method: z.ZodString;
|
|
452
|
-
parties: z.ZodArray<z.ZodObject<{
|
|
453
|
-
label: z.ZodString;
|
|
454
|
-
kind: z.ZodEnum<{
|
|
455
|
-
external: "external";
|
|
456
|
-
principal: "principal";
|
|
457
|
-
}>;
|
|
458
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
459
|
-
signatureKind: z.ZodOptional<z.ZodEnum<{
|
|
460
|
-
counter: "counter";
|
|
461
|
-
primary: "primary";
|
|
462
|
-
}>>;
|
|
463
|
-
authLevel: z.ZodOptional<z.ZodEnum<{
|
|
464
|
-
basic: "basic";
|
|
465
|
-
strong: "strong";
|
|
466
|
-
}>>;
|
|
467
|
-
}, z.core.$strip>>;
|
|
468
|
-
}, z.core.$strip>;
|
|
469
|
-
export type RequestSignaturesInput = z.input<typeof requestSignaturesInput>;
|
|
470
274
|
export interface RequestSignaturesResult {
|
|
471
275
|
instance: ProtocolInstanceRow;
|
|
472
276
|
contentHash: string;
|
|
@@ -487,22 +291,6 @@ export interface RequestSignaturesResult {
|
|
|
487
291
|
* network (boundary-lint R3).
|
|
488
292
|
*/
|
|
489
293
|
export declare function requestSignatures(ctx: OperationContext, rawInput: RequestSignaturesInput): Promise<RequestSignaturesResult>;
|
|
490
|
-
export declare const recordSignatureInput: z.ZodObject<{
|
|
491
|
-
requestId: z.ZodString;
|
|
492
|
-
signatory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
493
|
-
kind: z.ZodLiteral<"principal">;
|
|
494
|
-
ref: z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">;
|
|
495
|
-
label: z.ZodOptional<z.ZodString>;
|
|
496
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
497
|
-
kind: z.ZodLiteral<"external">;
|
|
498
|
-
ref: z.core.$ZodBranded<z.ZodString, "DataSubjectId", "out">;
|
|
499
|
-
label: z.ZodOptional<z.ZodString>;
|
|
500
|
-
}, z.core.$strip>], "kind">;
|
|
501
|
-
signedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
|
|
502
|
-
contentHash: z.ZodString;
|
|
503
|
-
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
504
|
-
}, z.core.$strip>;
|
|
505
|
-
export type RecordSignatureInput = z.input<typeof recordSignatureInput>;
|
|
506
294
|
export interface SignResult {
|
|
507
295
|
instance: ProtocolInstanceRow;
|
|
508
296
|
signature: ProtocolSignatureRow;
|
|
@@ -527,15 +315,6 @@ export interface SignResult {
|
|
|
527
315
|
* no human role in any demo.
|
|
528
316
|
*/
|
|
529
317
|
export declare function recordSignature(ctx: OperationContext, rawInput: RecordSignatureInput): Promise<SignResult>;
|
|
530
|
-
export declare const declineSignatureInput: z.ZodObject<{
|
|
531
|
-
requestId: z.ZodString;
|
|
532
|
-
reason: z.ZodString;
|
|
533
|
-
outcome: z.ZodDefault<z.ZodEnum<{
|
|
534
|
-
declined: "declined";
|
|
535
|
-
expired: "expired";
|
|
536
|
-
}>>;
|
|
537
|
-
}, z.core.$strip>;
|
|
538
|
-
export type DeclineSignatureInput = z.input<typeof declineSignatureInput>;
|
|
539
318
|
/**
|
|
540
319
|
* A party refused, or the provider's window expired. The instance stays
|
|
541
320
|
* `pending_signature` and therefore frozen — a refusal is not permission to
|
|
@@ -543,11 +322,6 @@ export type DeclineSignatureInput = z.input<typeof declineSignatureInput>;
|
|
|
543
322
|
* separate, permissioned, audited act.
|
|
544
323
|
*/
|
|
545
324
|
export declare function declineSignature(ctx: OperationContext, rawInput: DeclineSignatureInput): ProtocolSignatureRequestRow;
|
|
546
|
-
export declare const cancelSignatureRequestsInput: z.ZodObject<{
|
|
547
|
-
instanceId: z.ZodString;
|
|
548
|
-
reason: z.ZodString;
|
|
549
|
-
}, z.core.$strip>;
|
|
550
|
-
export type CancelSignatureRequestsInput = z.infer<typeof cancelSignatureRequestsInput>;
|
|
551
325
|
/**
|
|
552
326
|
* Withdraw an outstanding request set and thaw the instance — the
|
|
553
327
|
* renegotiation path an avtal needs when a party declines or the price moves.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKjD,OAA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