-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms-components.yml
More file actions
2300 lines (2189 loc) · 68.6 KB
/
forms-components.yml
File metadata and controls
2300 lines (2189 loc) · 68.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.4
info:
title: Forms API Components
version: 0.1.0
description: Entity schemas, enums, and path/query/header parameters for the Forms REST Server API.
paths: {}
components:
parameters:
TenantId:
name: X-Tenant-ID
in: header
required: true
description: Tenant scope header. Required on every request.
schema:
type: string
format: uuid
IfMatch:
name: If-Match
in: header
required: false
description: |
Optimistic-concurrency token carrying the expected session [revision] as a strong
validator (RFC 7232). Mismatch returns `412 Precondition Failed` with code
`OPTIMISTIC_LOCK_CONFLICT`. Successful mutating responses echo the new revision back via
the `ETag` response header.
schema:
type: string
IdempotencyKey:
name: Idempotency-Key
in: header
required: false
description: |
Caller-supplied idempotency key. Replaying the same key replays the original result;
reusing the key with a different request body returns `409` with code
`IDEMPOTENCY_KEY_CONFLICT`.
schema:
type: string
FormId:
name: formId
in: path
required: true
description: Identifier of the form definition.
schema:
type: string
format: uuid
SessionId:
name: sessionId
in: path
required: true
description: Identifier of the form session.
schema:
type: string
format: uuid
StepId:
name: stepId
in: path
required: true
description: Identifier of the step that owns the action.
schema:
type: string
format: uuid
StepIndex:
name: stepIndex
in: path
required: true
description: Zero-based step index within the resolved form.
schema:
type: integer
minimum: 0
ActionId:
name: actionId
in: path
required: true
description: Identifier of the step action.
schema:
type: string
format: uuid
Limit:
name: limit
in: query
description: Maximum number of items to return. Clamped to `[1, 100]`. Defaults to `20`.
schema:
type: integer
minimum: 1
maximum: 100
default: 20
Offset:
name: offset
in: query
description: Number of items to skip. Mutually exclusive with `page`/`size` style.
schema:
type: integer
minimum: 0
default: 0
Sort:
name: sort
in: query
description: Field name to sort by. Defaults to `createdAt`.
schema:
type: string
default: createdAt
SortDirection:
name: sortDirection
in: query
description: Sort direction.
schema:
type: string
enum: [ASC, DESC]
default: DESC
schemas:
FormStatus:
type: string
description: Lifecycle status of a [FormDefinition].
enum: [DRAFT, PUBLISHED]
FormKind:
type: string
description: The purpose or mode of a [FormDefinition].
enum:
- STANDALONE
- CREDENTIAL_VERIFICATION
- CREDENTIAL_ISSUANCE
- CREDENTIAL_REVIEW
- PROCEDURE
FormSessionStatus:
type: string
description: Lifecycle status of a [FormSession]. Terminal states are `SUBMITTED` and `CANCELLED`.
enum:
- IN_PROGRESS
- COMPLETED
- SUBMITTED
- CANCELLED
FormSessionPhase:
type: string
description: Operational phase of a [FormSession]. Independent of [FormSessionStatus].
enum:
- CAPTURING
- VALIDATING_FIELD
- VALIDATING_STEP
- NAVIGATING
- RUNNING_STEP_ACTION
- APPLYING_ACTION_EFFECTS
- SUBMITTING
- SUBMITTED
- FAILED
- CANCELLED
StepActionStatus:
type: string
description: Lifecycle status of a single step action within a session.
enum: [PENDING, IN_PROGRESS, COMPLETED, FAILED, CANCELLED]
FormDefinition:
type: object
description: |
A versioned form definition. References a [SemanticAttributeSet] via `attributeSetId`
and adds form-specific concerns: steps, sections, field overrides, conditions,
validation rules, and step actions.
required:
- id
- tenantId
- definitionKey
- name
- version
- kind
- attributeSetId
- steps
- status
- createdAt
- updatedAt
properties:
id:
type: string
format: uuid
description: Unique identifier for this specific form version.
tenantId:
type: string
definitionKey:
type: string
format: uuid
description: Stable logical identifier shared across all versions of the same form.
previousId:
type: string
format: uuid
nullable: true
description: The `id` of the immediately prior version, or null on v1.
name:
type: string
version:
type: string
description:
type: string
nullable: true
kind:
$ref: '#/components/schemas/FormKind'
attributeSetId:
type: string
format: uuid
steps:
type: array
items:
$ref: '#/components/schemas/FormStepDefinition'
status:
$ref: '#/components/schemas/FormStatus'
policyResourceKey:
type: string
nullable: true
credentialBindings:
type: array
items:
$ref: '#/components/schemas/FormCredentialBinding'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
createdById:
type: string
nullable: true
description: Principal subject (OIDC sub, DID, service-account name, ...) that created the record. Opaque string, NOT a UUID.
updatedById:
type: string
nullable: true
approvedById:
type: string
nullable: true
approvedAt:
type: string
format: date-time
nullable: true
deletedAt:
type: string
format: date-time
nullable: true
FormStepDefinition:
type: object
description: |
A step within a [FormDefinition]. Carries an ordered list of [FormSectionDefinition]s
plus optional step-level access policy and step actions.
required: [id, formId, name, labels, sortOrder, sections, actions]
properties:
id:
type: string
format: uuid
formId:
type: string
format: uuid
name:
type: string
labels:
type: object
description: Locale-keyed label map (BCP-47 locale -> display string).
additionalProperties:
type: string
descriptions:
type: object
nullable: true
description: Locale-keyed description map (BCP-47 locale -> display string).
additionalProperties:
type: string
sortOrder:
type: integer
sections:
type: array
items:
$ref: '#/components/schemas/FormSectionDefinition'
actions:
type: array
items:
$ref: '#/components/schemas/StepAction'
policyResourceKey:
type: string
nullable: true
FormSectionDefinition:
type: object
description: A section grouping related fields within a [FormStepDefinition].
required: [id, stepId, name, labels, sortOrder, fields]
properties:
id:
type: string
format: uuid
stepId:
type: string
format: uuid
name:
type: string
labels:
type: object
additionalProperties:
type: string
descriptions:
type: object
nullable: true
additionalProperties:
type: string
sortOrder:
type: integer
fields:
type: array
items:
$ref: '#/components/schemas/FormFieldDefinition'
FormFieldDefinition:
type: object
description: |
A field reference within a [FormSectionDefinition]. References a canonical attribute
by path and carries authoring-time overrides (widget hint, mandatory flag, default
value, read-only, conditions).
required: [id, sectionId, attributePath, sortOrder, validationRules]
properties:
id:
type: string
format: uuid
sectionId:
type: string
format: uuid
attributePath:
$ref: '#/components/schemas/AttributePath'
sortOrder:
type: integer
validationRules:
type: array
items:
$ref: '#/components/schemas/FieldValidationRule'
defaultValue:
allOf:
- $ref: '#/components/schemas/FieldValue'
nullable: true
placeholders:
type: object
nullable: true
additionalProperties:
type: string
visibilityCondition:
allOf:
- $ref: '#/components/schemas/FieldCondition'
nullable: true
qualificationCondition:
allOf:
- $ref: '#/components/schemas/FieldCondition'
nullable: true
disqualificationBehavior:
$ref: '#/components/schemas/DisqualificationBehavior'
readOnly:
type: boolean
default: false
widgetHintOverride:
allOf:
- $ref: '#/components/schemas/AttributeWidgetHint'
nullable: true
mandatoryOverride:
$ref: '#/components/schemas/MandatoryOverride'
policyResourceKey:
type: string
nullable: true
ResolvedForm:
type: object
description: |
Runtime tree of a resolved form: steps/sections/fields filtered by access policy with
labels collapsed to the requested locale. Hidden fields, hidden steps, and
unauthorized actions are omitted from this tree by construction, they never reach
the client.
required: [id, formDefinitionId, name, kind, locale, steps]
properties:
id:
type: string
format: uuid
formDefinitionId:
type: string
format: uuid
name:
type: string
description:
type: string
nullable: true
kind:
$ref: '#/components/schemas/FormKind'
locale:
type: string
description: BCP-47 locale the form's labels were collapsed to during resolution.
steps:
type: array
items:
$ref: '#/components/schemas/ResolvedFormStep'
credentialBindings:
type: array
description: |
INPUT credential bindings carried into the runtime so the step-action start/complete
commands can resolve them from `session.resolvedForm` alone.
items:
$ref: '#/components/schemas/FormCredentialBinding'
ResolvedFormStep:
type: object
description: |
A step within a [ResolvedForm]. Sections and actions hidden by policy are omitted
from this tree by construction.
required: [id, name, label, sortOrder, sections, actions]
properties:
id:
type: string
format: uuid
name:
type: string
label:
type: string
description:
type: string
nullable: true
sortOrder:
type: integer
sections:
type: array
items:
$ref: '#/components/schemas/ResolvedFormSection'
actions:
type: array
items:
$ref: '#/components/schemas/StepAction'
ResolvedFormSection:
type: object
description: A section within a [ResolvedFormStep]. Hidden fields are omitted by construction.
required: [id, name, label, sortOrder, fields]
properties:
id:
type: string
format: uuid
name:
type: string
label:
type: string
description:
type: string
nullable: true
sortOrder:
type: integer
fields:
type: array
items:
$ref: '#/components/schemas/ResolvedFormField'
ResolvedFormField:
type: object
description: |
A field within a [ResolvedFormSection]. Carries the merged semantic-attribute /
form-override / policy view of the field as seen by the renderer. Labels are
already collapsed to the requested locale.
required:
- id
- attributePath
- label
- valueKind
- widgetHint
- mandatory
- cardinality
- validationRules
- accessMode
- disqualificationBehavior
- sortOrder
properties:
id:
type: string
format: uuid
attributePath:
$ref: '#/components/schemas/AttributePath'
label:
type: string
description:
type: string
nullable: true
valueKind:
$ref: '#/components/schemas/AttributeValueKind'
widgetHint:
$ref: '#/components/schemas/AttributeWidgetHint'
mandatory:
type: boolean
cardinality:
$ref: '#/components/schemas/AttributeCardinality'
formatHint:
type: string
nullable: true
entryCodes:
type: array
items:
type: string
entryCodeLabels:
type: object
nullable: true
additionalProperties:
type: string
unit:
type: string
nullable: true
placeholder:
type: string
nullable: true
defaultValue:
allOf:
- $ref: '#/components/schemas/FieldValue'
nullable: true
validationRules:
type: array
items:
$ref: '#/components/schemas/FieldValidationRule'
accessMode:
$ref: '#/components/schemas/FieldAccessMode'
visibilityCondition:
allOf:
- $ref: '#/components/schemas/FieldCondition'
nullable: true
qualificationCondition:
allOf:
- $ref: '#/components/schemas/FieldCondition'
nullable: true
disqualificationBehavior:
$ref: '#/components/schemas/DisqualificationBehavior'
sortOrder:
type: integer
FieldValue:
description: |
Tagged-variant field value. Each variant carries the typed payload for one
[AttributeValueKind] / cardinality / reference shape. The variant is identified by a
`type` discriminator on the wire.
oneOf:
- $ref: '#/components/schemas/FieldValueAbsent'
- $ref: '#/components/schemas/FieldValueText'
- $ref: '#/components/schemas/FieldValueNumber'
- $ref: '#/components/schemas/FieldValueBool'
- $ref: '#/components/schemas/FieldValueDate'
- $ref: '#/components/schemas/FieldValueDateTime'
- $ref: '#/components/schemas/FieldValueCode'
- $ref: '#/components/schemas/FieldValueMulti'
- $ref: '#/components/schemas/FieldValueEvidenceRef'
- $ref: '#/components/schemas/FieldValueCredentialRef'
- $ref: '#/components/schemas/FieldValueArtifactRef'
discriminator:
propertyName: type
mapping:
Absent: '#/components/schemas/FieldValueAbsent'
Text: '#/components/schemas/FieldValueText'
Number: '#/components/schemas/FieldValueNumber'
Bool: '#/components/schemas/FieldValueBool'
Date: '#/components/schemas/FieldValueDate'
DateTime: '#/components/schemas/FieldValueDateTime'
Code: '#/components/schemas/FieldValueCode'
Multi: '#/components/schemas/FieldValueMulti'
EvidenceRef: '#/components/schemas/FieldValueEvidenceRef'
CredentialRef: '#/components/schemas/FieldValueCredentialRef'
ArtifactRef: '#/components/schemas/FieldValueArtifactRef'
FieldValueAbsent:
type: object
description: Sentinel for an unset field. No value has been supplied.
required: [type]
properties:
type:
type: string
enum: [Absent]
FieldValueText:
type: object
description: A plain text value (maps to STRING / PICKLIST / free-form text inputs).
required: [type, value]
properties:
type:
type: string
enum: [Text]
value:
type: string
FieldValueNumber:
type: object
description: A numeric value.
required: [type, value]
properties:
type:
type: string
enum: [Number]
value:
type: number
format: double
FieldValueBool:
type: object
description: A boolean value.
required: [type, value]
properties:
type:
type: string
enum: [Bool]
value:
type: boolean
FieldValueDate:
type: object
description: A date without time component (ISO-8601 `YYYY-MM-DD`).
required: [type, value]
properties:
type:
type: string
enum: [Date]
value:
type: string
format: date
FieldValueDateTime:
type: object
description: An instant in time (ISO-8601 timestamp with offset).
required: [type, value]
properties:
type:
type: string
enum: [DateTime]
value:
type: string
format: date-time
FieldValueCode:
type: object
description: A coded value drawn from a controlled vocabulary (entry code / SKOS concept).
required: [type, code]
properties:
type:
type: string
enum: [Code]
code:
type: string
scheme:
type: string
nullable: true
FieldValueMulti:
type: object
description: Multiple values for a LIST-cardinality attribute. Element order is preserved.
required: [type, values]
properties:
type:
type: string
enum: [Multi]
values:
type: array
items:
$ref: '#/components/schemas/FieldValue'
FieldValueEvidenceRef:
type: object
description: |
A reference to an evidence attachment. The payload itself is stored out-of-band; only
the reference flows through the session.
required: [type, evidenceId, mediaType]
properties:
type:
type: string
enum: [EvidenceRef]
evidenceId:
type: string
format: uuid
mediaType:
type: string
description: IANA media type of the referenced artifact (e.g. `application/pdf`).
FieldValueCredentialRef:
type: object
description: A reference to a credential presented by the subject.
required: [type, credentialId, format]
properties:
type:
type: string
enum: [CredentialRef]
credentialId:
type: string
format:
type: string
description: Wire format (e.g. `jwt_vc_json`, `mso_mdoc`, `dc+sd-jwt`).
FieldValueArtifactRef:
type: object
description: A reference to an artifact produced by a `ProduceArtifact` step action.
required: [type, artifactId, kind]
properties:
type:
type: string
enum: [ArtifactRef]
artifactId:
type: string
format: uuid
kind:
$ref: '#/components/schemas/ArtifactKind'
FieldValidationError:
type: object
description: A single validation error against a field.
required: [code, message, source]
properties:
code:
type: string
message:
type: string
source:
$ref: '#/components/schemas/FieldValidationSource'
details:
type: object
additionalProperties:
type: string
FieldTargetedServerError:
type: object
description: A server-side error targeted at a specific field path.
required: [fieldPath, errors]
properties:
fieldPath:
type: string
errors:
type: array
items:
$ref: '#/components/schemas/FieldValidationError'
StepActionResult:
description: |
Tagged-variant result produced by a completed step action. The variant tag must match
the declared `StepAction` variant on the resolved form. The variant is identified by a
`type` discriminator on the wire.
oneOf:
- $ref: '#/components/schemas/StepActionResultCredentialReceived'
- $ref: '#/components/schemas/StepActionResultEvidenceAttached'
- $ref: '#/components/schemas/StepActionResultSignatureOrSealApplied'
- $ref: '#/components/schemas/StepActionResultPolicyEvaluated'
- $ref: '#/components/schemas/StepActionResultArtifactProduced'
discriminator:
propertyName: type
mapping:
CredentialReceived: '#/components/schemas/StepActionResultCredentialReceived'
EvidenceAttached: '#/components/schemas/StepActionResultEvidenceAttached'
SignatureOrSealApplied: '#/components/schemas/StepActionResultSignatureOrSealApplied'
PolicyEvaluated: '#/components/schemas/StepActionResultPolicyEvaluated'
ArtifactProduced: '#/components/schemas/StepActionResultArtifactProduced'
StepActionResultCredentialReceived:
type: object
description: Outcome of a `RequestCredential` action, a credential presentation was received.
required: [type, credentialRef]
properties:
type:
type: string
enum: [CredentialReceived]
credentialRef:
$ref: '#/components/schemas/FieldValue'
receivedClaims:
type: object
nullable: true
additionalProperties:
$ref: '#/components/schemas/FieldValue'
presentedCredential:
allOf:
- $ref: '#/components/schemas/PresentedCredentialClaims'
nullable: true
description: |
Raw presented credential payload. When non-null the credential bridge projects
claims onto form attributes and fills `receivedClaims` / `receivedClaimProvenance`.
receivedClaimProvenance:
type: object
description: |
Per-attribute provenance keyed by the form attribute path that received the
value. Used by the side-effect engine to lock written fields with
CREDENTIAL_PRESENTATION.
additionalProperties:
$ref: '#/components/schemas/CredentialClaimProvenance'
StepActionResultEvidenceAttached:
type: object
description: Outcome of a `RequireEvidence` action, an evidence attachment was accepted.
required: [type, evidenceRef]
properties:
type:
type: string
enum: [EvidenceAttached]
evidenceRef:
$ref: '#/components/schemas/FieldValue'
description:
type: string
nullable: true
StepActionResultSignatureOrSealApplied:
type: object
description: Outcome of a `RequireSignatureOrSeal` action, a signature or seal was produced.
required: [type, kind, assuranceLevel, signatureLocator]
properties:
type:
type: string
enum: [SignatureOrSealApplied]
kind:
$ref: '#/components/schemas/SignatureOrSealKind'
assuranceLevel:
$ref: '#/components/schemas/AssuranceLevel'
signerSubject:
type: string
nullable: true
signatureLocator:
type: string
StepActionResultPolicyEvaluated:
type: object
description: Outcome of a `PolicyGate` action, the policy engine returned a decision.
required: [type, decision]
properties:
type:
type: string
enum: [PolicyEvaluated]
decision:
$ref: '#/components/schemas/PolicyDecision'
reason:
type: string
nullable: true
StepActionResultArtifactProduced:
type: object
description: Outcome of a `ProduceArtifact` action, an artifact was produced and is retrievable by reference.
required: [type, artifactRef]
properties:
type:
type: string
enum: [ArtifactProduced]
artifactRef:
$ref: '#/components/schemas/FieldValue'
StepActionPrompt:
description: |
Tagged-variant prompt returned when starting a step action. Variants: `None`,
`PresentationRequest`, `EvidenceUpload`, `SignatureChallenge`, `ArtifactHandle`. The
variant is identified by a `type` discriminator on the wire.
oneOf:
- $ref: '#/components/schemas/StepActionPromptNone'
- $ref: '#/components/schemas/StepActionPromptPresentationRequest'
- $ref: '#/components/schemas/StepActionPromptEvidenceUpload'
- $ref: '#/components/schemas/StepActionPromptSignatureChallenge'
- $ref: '#/components/schemas/StepActionPromptArtifactHandle'
discriminator:
propertyName: type
mapping:
None: '#/components/schemas/StepActionPromptNone'
PresentationRequest: '#/components/schemas/StepActionPromptPresentationRequest'
EvidenceUpload: '#/components/schemas/StepActionPromptEvidenceUpload'
SignatureChallenge: '#/components/schemas/StepActionPromptSignatureChallenge'
ArtifactHandle: '#/components/schemas/StepActionPromptArtifactHandle'
StepActionPromptNone:
type: object
description: No client-facing prompt, the action ran synchronously or awaits server-side orchestration.
required: [type]
properties:
type:
type: string
enum: [None]
StepActionPromptPresentationRequest:
type: object
description: A verifiable-presentation request URI the wallet consumes.
required: [type, requestUri]
properties:
type:
type: string
enum: [PresentationRequest]
requestUri:
type: string
nonce:
type: string
nullable: true
StepActionPromptEvidenceUpload:
type: object
description: Where and how to upload an evidence attachment.
required: [type, uploadUri]
properties:
type:
type: string
enum: [EvidenceUpload]
uploadUri:
type: string
acceptedMediaTypes:
type: array
items:
type: string
StepActionPromptSignatureChallenge:
type: object
description: The challenge / document-to-sign reference for a signature/seal step action.
required: [type, challenge]
properties:
type:
type: string
enum: [SignatureChallenge]
challenge:
type: string
hashAlgorithm:
type: string
nullable: true
StepActionPromptArtifactHandle:
type: object
description: Where the produced artifact can be retrieved once ready.
required: [type, locator]
properties:
type:
type: string
enum: [ArtifactHandle]
locator:
type: string
StepValidationErrors:
type: object
description: |
Map from field path to the list of validation error messages produced by `validateStep`.
Empty map when the step is valid.
additionalProperties:
type: array
items:
type: string
FieldValidationErrors:
type: array
description: |
Validation error messages produced by `validateField`. Empty array when the field is
valid.
items:
type: string
FormSession:
type: object
description: |
Runtime form session for the headless engine. Tracks the user's progress through a
[ResolvedForm] including current step, field values, validation errors, per-field
runtime states, per-action lifecycle states, operational phase, and progress.
required:
- id
- tenantId
- formDefinitionId
- resolvedForm
- currentStepIndex
- fieldValues
- fieldErrors
- fieldRuntimeStates
- stepActionStates
- phaseState
- progress
- status
- createdAt
- updatedAt
- revision
properties:
id:
type: string
format: uuid
tenantId:
type: string
actorPrincipalId:
type: string
nullable: true
description: |
Opaque principal subject of the actor that created the session. Frozen at
session creation; downstream step-action and policy evaluation use this rather
than the current request execution context. Never parsed as a UUID.
actorRoles:
type: array
items:
type: string
description: Role identifiers carried by the creating actor at session creation. Frozen for the session's lifetime.
formDefinitionId:
type: string
format: uuid
resolvedForm:
$ref: '#/components/schemas/ResolvedForm'
currentStepIndex:
type: integer
minimum: 0
fieldValues:
type: object
additionalProperties:
$ref: '#/components/schemas/FieldValue'
fieldErrors:
type: object
additionalProperties:
type: array
items:
type: string
fieldRuntimeStates:
type: object
description: Per-field runtime state keyed by attribute path.
additionalProperties:
$ref: '#/components/schemas/FieldRuntimeState'
stepActionStates:
type: object