@uides/stepwise 2.2.1 → 2.2.3

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.
Files changed (229) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/generators/extractStepwisePossibleValues.d.mts +1 -0
  3. package/index.js +1 -1
  4. package/package.json +1 -1
  5. package/schemas/action.d.ts +48 -168
  6. package/schemas/action.js +34 -47
  7. package/schemas/field/afm/index.d.ts +158 -6
  8. package/schemas/field/afm/index.js +6 -9
  9. package/schemas/field/amka/index.d.ts +152 -8
  10. package/schemas/field/amka/index.js +3 -7
  11. package/schemas/field/attachment/index.d.ts +184 -16
  12. package/schemas/field/attachment/index.js +9 -22
  13. package/schemas/field/captcha/index.d.ts +156 -2
  14. package/schemas/field/captcha/index.js +6 -9
  15. package/schemas/field/choice/index.d.ts +188 -15
  16. package/schemas/field/choice/index.js +4 -9
  17. package/schemas/field/common.d.ts +92 -40
  18. package/schemas/field/common.js +78 -11
  19. package/schemas/field/date/index.d.ts +152 -38
  20. package/schemas/field/date/index.js +6 -33
  21. package/schemas/field/doc_subtitle/index.d.ts +158 -5
  22. package/schemas/field/doc_subtitle/index.js +5 -6
  23. package/schemas/field/doc_title/index.d.ts +154 -8
  24. package/schemas/field/doc_title/index.js +5 -12
  25. package/schemas/field/dynamically-filled-text/index.d.ts +170 -33
  26. package/schemas/field/dynamically-filled-text/index.js +6 -23
  27. package/schemas/field/email/index.d.ts +152 -8
  28. package/schemas/field/email/index.js +5 -9
  29. package/schemas/field/fillable-string/index.d.ts +156 -12
  30. package/schemas/field/fillable-string/index.js +4 -10
  31. package/schemas/field/five-block-date/index.d.ts +156 -2
  32. package/schemas/field/five-block-date/index.js +5 -4
  33. package/schemas/field/hidden/index.d.ts +161 -14
  34. package/schemas/field/hidden/index.js +7 -15
  35. package/schemas/field/hierarchical-selector/index.d.ts +176 -37
  36. package/schemas/field/hierarchical-selector/index.js +5 -21
  37. package/schemas/field/iban/index.d.ts +168 -6
  38. package/schemas/field/iban/index.js +3 -3
  39. package/schemas/field/image/index.d.ts +168 -16
  40. package/schemas/field/image/index.js +7 -23
  41. package/schemas/field/index.d.ts +2 -7
  42. package/schemas/field/index.js +8 -15
  43. package/schemas/field/int/index.d.ts +152 -8
  44. package/schemas/field/int/index.js +5 -9
  45. package/schemas/field/intl_mobile_phone/index.d.ts +156 -3
  46. package/schemas/field/intl_mobile_phone/index.js +5 -5
  47. package/schemas/field/lab-results/index.d.ts +156 -3
  48. package/schemas/field/lab-results/index.js +6 -6
  49. package/schemas/field/mobile_phone/index.d.ts +158 -5
  50. package/schemas/field/mobile_phone/index.js +5 -6
  51. package/schemas/field/multiple-choice/index.d.ts +180 -12
  52. package/schemas/field/multiple-choice/index.js +3 -8
  53. package/schemas/field/password/index.d.ts +156 -2
  54. package/schemas/field/password/index.js +5 -5
  55. package/schemas/field/pdf-image/index.d.ts +152 -14
  56. package/schemas/field/pdf-image/index.js +6 -18
  57. package/schemas/field/postal_code/index.d.ts +156 -4
  58. package/schemas/field/postal_code/index.js +6 -8
  59. package/schemas/field/preference-multiple-choice/index.d.ts +211 -17
  60. package/schemas/field/preference-multiple-choice/index.js +5 -9
  61. package/schemas/field/qrcode/index.d.ts +168 -19
  62. package/schemas/field/qrcode/index.js +6 -18
  63. package/schemas/field/quote/index.d.ts +170 -11
  64. package/schemas/field/quote/index.js +4 -12
  65. package/schemas/field/radio-choice/index.d.ts +172 -9
  66. package/schemas/field/radio-choice/index.js +4 -10
  67. package/schemas/field/rate/index.d.ts +150 -8
  68. package/schemas/field/rate/index.js +4 -7
  69. package/schemas/field/recipient/index.d.ts +158 -5
  70. package/schemas/field/recipient/index.js +5 -9
  71. package/schemas/field/redirect/index.d.ts +156 -6
  72. package/schemas/field/redirect/index.js +6 -9
  73. package/schemas/field/refcode/index.d.ts +168 -16
  74. package/schemas/field/refcode/index.js +6 -20
  75. package/schemas/field/string/index.d.ts +226 -65
  76. package/schemas/field/string/index.js +5 -54
  77. package/schemas/field/text/index.d.ts +170 -33
  78. package/schemas/field/text/index.js +5 -30
  79. package/schemas/field/three-block-date/index.d.ts +176 -12
  80. package/schemas/field/three-block-date/index.js +4 -10
  81. package/schemas/field/url/index.d.ts +204 -0
  82. package/schemas/field/url/index.js +16 -0
  83. package/schemas/fieldset/component-params.d.ts +9 -41
  84. package/schemas/fieldset/component-params.js +5 -29
  85. package/schemas/fieldset/display-components.d.ts +16 -244
  86. package/schemas/fieldset/display-components.js +6 -19
  87. package/schemas/fieldset/enums.d.ts +0 -22
  88. package/schemas/fieldset/enums.js +1 -15
  89. package/schemas/fieldset/index.d.ts +9 -93
  90. package/schemas/index.d.ts +1 -1
  91. package/schemas/index.js +1 -1
  92. package/schemas/step.d.ts +7 -0
  93. package/schemas/step.js +2 -1
  94. package/schemas/{template/template.d.ts → template.d.ts} +47 -23
  95. package/schemas/template.js +26 -0
  96. package/src/generators/actions-possible-values/document-anon-create.json +19 -0
  97. package/src/generators/actions-possible-values/document-backstep.json +19 -0
  98. package/src/generators/actions-possible-values/document-create-new.json +43 -0
  99. package/src/generators/actions-possible-values/document-create.json +20 -0
  100. package/src/generators/actions-possible-values/document-dismiss.json +36 -0
  101. package/src/generators/actions-possible-values/document-download-pdf.json +69 -0
  102. package/src/generators/actions-possible-values/document-email.json +42 -0
  103. package/src/generators/actions-possible-values/document-resend-otp.json +30 -0
  104. package/src/generators/actions-possible-values/document-revoke.json +46 -0
  105. package/src/generators/actions-possible-values/document-share.json +29 -0
  106. package/src/generators/actions-possible-values/document-sms.json +38 -0
  107. package/src/generators/actions-possible-values/document-temporary-save.json +28 -0
  108. package/src/generators/actions-possible-values/document-update.json +111 -0
  109. package/src/generators/actions-possible-values/entity-forward.json +31 -0
  110. package/src/generators/actions-possible-values/entity-reply.json +31 -0
  111. package/src/generators/actions-possible-values/entity-send-message.json +34 -0
  112. package/src/generators/actions-possible-values/hidden.json +22 -0
  113. package/src/generators/actions-possible-values/link.json +43 -0
  114. package/src/generators/extractStepwisePossibleValues.mjs +139 -0
  115. package/src/generators/fields-possible-values/afm.json +94 -0
  116. package/src/generators/fields-possible-values/amka.json +26 -0
  117. package/src/generators/fields-possible-values/attachment.json +89 -0
  118. package/src/generators/fields-possible-values/captcha.json +16 -0
  119. package/src/generators/fields-possible-values/choice.json +432 -0
  120. package/src/generators/fields-possible-values/date.json +57 -0
  121. package/src/generators/fields-possible-values/doc_subtitle.json +26 -0
  122. package/src/generators/fields-possible-values/doc_title.json +63 -0
  123. package/src/generators/fields-possible-values/dynamically-filled-text.json +47 -0
  124. package/src/generators/fields-possible-values/email.json +65 -0
  125. package/src/generators/fields-possible-values/fillable-string.json +47 -0
  126. package/src/generators/fields-possible-values/five-block-date.json +23 -0
  127. package/src/generators/fields-possible-values/hidden.json +140 -0
  128. package/src/generators/fields-possible-values/hierarchical-selector.json +84 -0
  129. package/src/generators/fields-possible-values/iban.json +35 -0
  130. package/src/generators/fields-possible-values/image.json +37 -0
  131. package/src/generators/fields-possible-values/int.json +52 -0
  132. package/src/generators/fields-possible-values/intl_mobile_phone.json +32 -0
  133. package/src/generators/fields-possible-values/lab-results.json +19 -0
  134. package/src/generators/fields-possible-values/mobile_phone.json +45 -0
  135. package/src/generators/fields-possible-values/multiple-choice.json +128 -0
  136. package/src/generators/fields-possible-values/password.json +20 -0
  137. package/src/generators/fields-possible-values/pdf-image.json +70 -0
  138. package/src/generators/fields-possible-values/postal_code.json +32 -0
  139. package/src/generators/fields-possible-values/preference-multiple-choice.json +53 -0
  140. package/src/generators/fields-possible-values/qrcode.json +75 -0
  141. package/src/generators/fields-possible-values/quote.json +71 -0
  142. package/src/generators/fields-possible-values/radio-choice.json +209 -0
  143. package/src/generators/fields-possible-values/rate.json +26 -0
  144. package/src/generators/fields-possible-values/recipient.json +46 -0
  145. package/src/generators/fields-possible-values/redirect.json +22 -0
  146. package/src/generators/fields-possible-values/refcode.json +89 -0
  147. package/src/generators/fields-possible-values/string.json +778 -0
  148. package/src/generators/fields-possible-values/text.json +105 -0
  149. package/src/generators/fields-possible-values/three-block-date.json +83 -0
  150. package/src/generators/fields-possible-values/url.json +23 -0
  151. package/src/generators/fieldsets-possible-values/form.json +311 -0
  152. package/src/generators/fieldsets-possible-values/hidden.json +107 -0
  153. package/src/generators/fieldsets-possible-values/unknown.json +69 -0
  154. package/src/generators/fieldsets-possible-values/values-list.json +364 -0
  155. package/src/schemas/action.ts +44 -58
  156. package/src/schemas/field/afm/index.ts +8 -6
  157. package/src/schemas/field/amka/index.ts +7 -9
  158. package/src/schemas/field/attachment/index.ts +9 -23
  159. package/src/schemas/field/captcha/index.ts +8 -3
  160. package/src/schemas/field/choice/index.ts +7 -5
  161. package/src/schemas/field/common.spec.ts +0 -3
  162. package/src/schemas/field/common.ts +115 -53
  163. package/src/schemas/field/date/index.ts +8 -24
  164. package/src/schemas/field/doc_subtitle/index.ts +7 -4
  165. package/src/schemas/field/doc_title/index.ts +7 -14
  166. package/src/schemas/field/dynamically-filled-text/index.ts +7 -15
  167. package/src/schemas/field/email/index.ts +7 -9
  168. package/src/schemas/field/fillable-string/index.ts +7 -11
  169. package/src/schemas/field/five-block-date/index.ts +7 -2
  170. package/src/schemas/field/hidden/index.ts +15 -40
  171. package/src/schemas/field/hierarchical-selector/index.ts +8 -18
  172. package/src/schemas/field/iban/index.ts +7 -3
  173. package/src/schemas/field/image/index.ts +8 -10
  174. package/src/schemas/field/index.ts +8 -33
  175. package/src/schemas/field/int/index.ts +7 -9
  176. package/src/schemas/field/intl_mobile_phone/index.ts +7 -3
  177. package/src/schemas/field/lab-results/index.ts +7 -3
  178. package/src/schemas/field/mobile_phone/index.ts +7 -4
  179. package/src/schemas/field/multiple-choice/index.ts +7 -5
  180. package/src/schemas/field/password/index.ts +8 -3
  181. package/src/schemas/field/pdf-image/index.ts +8 -12
  182. package/src/schemas/field/postal_code/index.ts +8 -5
  183. package/src/schemas/field/preference-multiple-choice/index.ts +8 -7
  184. package/src/schemas/field/qrcode/index.ts +7 -10
  185. package/src/schemas/field/quote/index.ts +8 -8
  186. package/src/schemas/field/radio-choice/index.ts +7 -5
  187. package/src/schemas/field/rate/index.ts +7 -8
  188. package/src/schemas/field/recipient/index.ts +7 -4
  189. package/src/schemas/field/redirect/index.ts +7 -6
  190. package/src/schemas/field/refcode/index.ts +7 -21
  191. package/src/schemas/field/string/index.ts +7 -42
  192. package/src/schemas/field/text/index.ts +8 -16
  193. package/src/schemas/field/three-block-date/index.ts +7 -6
  194. package/src/schemas/field/url/index.ts +24 -0
  195. package/src/schemas/fieldset/component-params.ts +4 -20
  196. package/src/schemas/fieldset/display-components.ts +5 -36
  197. package/src/schemas/fieldset/enums.ts +0 -38
  198. package/src/schemas/step.ts +1 -0
  199. package/src/schemas/{template/template-base.ts → template.ts} +30 -6
  200. package/src/utils/index.ts +69 -2
  201. package/utils/index.js +28 -2
  202. package/schemas/field/consent-content/index.d.ts +0 -68
  203. package/schemas/field/consent-content/index.js +0 -19
  204. package/schemas/field/image-crop/index.d.ts +0 -59
  205. package/schemas/field/image-crop/index.js +0 -19
  206. package/schemas/field/landline_phone/index.d.ts +0 -48
  207. package/schemas/field/landline_phone/index.js +0 -14
  208. package/schemas/field/link/index.d.ts +0 -50
  209. package/schemas/field/link/index.js +0 -16
  210. package/schemas/field/phone/index.d.ts +0 -48
  211. package/schemas/field/phone/index.js +0 -14
  212. package/schemas/field/url-param/index.d.ts +0 -57
  213. package/schemas/field/url-param/index.js +0 -14
  214. package/schemas/template/index.d.ts +0 -2
  215. package/schemas/template/index.js +0 -2
  216. package/schemas/template/template-base.d.ts +0 -53
  217. package/schemas/template/template-base.js +0 -15
  218. package/schemas/template/template-source.d.ts +0 -50
  219. package/schemas/template/template-source.js +0 -14
  220. package/schemas/template/template.js +0 -22
  221. package/src/schemas/field/consent-content/index.ts +0 -28
  222. package/src/schemas/field/image-crop/index.ts +0 -25
  223. package/src/schemas/field/landline_phone/index.ts +0 -18
  224. package/src/schemas/field/link/index.ts +0 -20
  225. package/src/schemas/field/phone/index.ts +0 -18
  226. package/src/schemas/field/url-param/index.ts +0 -23
  227. package/src/schemas/template/index.ts +0 -2
  228. package/src/schemas/template/template-source.ts +0 -88
  229. package/src/schemas/template/template.ts +0 -49
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Change Log - @uides/stepwise
2
2
 
3
- This log was last generated on Wed, 11 Feb 2026 14:46:37 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Tue, 26 May 2026 08:58:32 GMT and should not be manually modified. -->
4
+
5
+ <!-- Start content -->
6
+
7
+ ## 2.2.2
8
+
9
+ Tue, 26 May 2026 08:58:32 GMT
10
+
11
+ ### Patches
12
+
13
+ - Ignore PDF/source-related validation errors (sangelopoulos@admin.grnet.gr)
4
14
 
5
15
  ## 2.0.8
6
16
  Wed, 11 Feb 2026 14:46:37 GMT
@@ -49,4 +59,3 @@ Wed, 21 Jan 2026 15:58:34 GMT
49
59
 
50
60
  - Remove unused template json files
51
61
  - Update typescript version
52
-
@@ -0,0 +1 @@
1
+ export {};
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v2.2.1
1
+ /** @license Digigov v2.2.3
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uides/stepwise",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "@uides stepwise specification",
5
5
  "typings": "index.d.ts",
6
6
  "type": "module",
@@ -60,7 +60,7 @@ export declare const TemporarySaveSchema: v.StrictObjectSchema<{
60
60
  }, undefined>, undefined>, undefined>;
61
61
  }, undefined>;
62
62
  export type TemporarySave = v.InferOutput<typeof TemporarySaveSchema>;
63
- export declare const PdfSchema: v.StrictObjectSchema<{
63
+ export declare const DownloadPdfSchema: v.StrictObjectSchema<{
64
64
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
65
65
  readonly component: v.OptionalSchema<v.LiteralSchema<"document-download-pdf", undefined>, undefined>;
66
66
  } & {
@@ -124,7 +124,7 @@ export declare const PdfSchema: v.StrictObjectSchema<{
124
124
  readonly sign: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
125
125
  }, undefined>, undefined>;
126
126
  }, undefined>;
127
- export type Pdf = v.InferOutput<typeof PdfSchema>;
127
+ export type Pdf = v.InferOutput<typeof DownloadPdfSchema>;
128
128
  export declare const ResendOtpSchema: v.StrictObjectSchema<{
129
129
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
130
130
  readonly component: v.OptionalSchema<v.LiteralSchema<"document-resend-otp", undefined>, undefined>;
@@ -186,9 +186,9 @@ export declare const ResendOtpSchema: v.StrictObjectSchema<{
186
186
  }, undefined>, undefined>, undefined>;
187
187
  }, undefined>;
188
188
  export type ResendOtp = v.InferOutput<typeof ResendOtpSchema>;
189
- export declare const ResendEmailOtpSchema: v.StrictObjectSchema<{
189
+ export declare const DismissSchema: v.StrictObjectSchema<{
190
190
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
191
- readonly component: v.OptionalSchema<v.LiteralSchema<"document-resend-email-otp", undefined>, undefined>;
191
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-dismiss", undefined>, undefined>;
192
192
  } & {
193
193
  /** The text to display on the button */
194
194
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -246,10 +246,10 @@ export declare const ResendEmailOtpSchema: v.StrictObjectSchema<{
246
246
  }, undefined>, undefined>;
247
247
  }, undefined>, undefined>, undefined>;
248
248
  }, undefined>;
249
- export type ResendEmailOtp = v.InferOutput<typeof ResendEmailOtpSchema>;
250
- export declare const CancelSchema: v.StrictObjectSchema<{
249
+ export type Cancel = v.InferOutput<typeof DismissSchema>;
250
+ export declare const UpdateSchema: v.StrictObjectSchema<{
251
251
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
252
- readonly component: v.OptionalSchema<v.LiteralSchema<"document-dismiss", undefined>, undefined>;
252
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-update", undefined>, undefined>;
253
253
  } & {
254
254
  /** The text to display on the button */
255
255
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -306,11 +306,16 @@ export declare const CancelSchema: v.StrictObjectSchema<{
306
306
  readonly endpoint: v.StringSchema<undefined>;
307
307
  }, undefined>, undefined>;
308
308
  }, undefined>, undefined>, undefined>;
309
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
310
+ readonly issue: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
311
+ readonly mark_submitting: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
312
+ readonly 'ensure-no-input': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
313
+ }, undefined>, undefined>;
309
314
  }, undefined>;
310
- export type Cancel = v.InferOutput<typeof CancelSchema>;
311
- export declare const UpdateSchema: v.StrictObjectSchema<{
315
+ export type Update = v.InferOutput<typeof UpdateSchema>;
316
+ export declare const CreateNewSchema: v.StrictObjectSchema<{
312
317
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
313
- readonly component: v.OptionalSchema<v.PicklistSchema<["document-update", "document-collect", "document-issue-collected"], undefined>, undefined>;
318
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-create-new", undefined>, undefined>;
314
319
  } & {
315
320
  /** The text to display on the button */
316
321
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -368,12 +373,10 @@ export declare const UpdateSchema: v.StrictObjectSchema<{
368
373
  }, undefined>, undefined>;
369
374
  }, undefined>, undefined>, undefined>;
370
375
  readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
371
- readonly issue: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
372
- readonly mark_submitting: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
373
- readonly 'ensure-no-input': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
376
+ readonly refname: v.NullishSchema<v.StringSchema<undefined>, undefined>;
374
377
  }, undefined>, undefined>;
375
378
  }, undefined>;
376
- export type Update = v.InferOutput<typeof UpdateSchema>;
379
+ export type CreateNew = v.InferOutput<typeof CreateNewSchema>;
377
380
  export declare const CreateSchema: v.StrictObjectSchema<{
378
381
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
379
382
  readonly component: v.OptionalSchema<v.LiteralSchema<"document-create", undefined>, undefined>;
@@ -433,9 +436,6 @@ export declare const CreateSchema: v.StrictObjectSchema<{
433
436
  readonly endpoint: v.StringSchema<undefined>;
434
437
  }, undefined>, undefined>;
435
438
  }, undefined>, undefined>, undefined>;
436
- readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
437
- readonly interactive: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
438
- }, undefined>, undefined>;
439
439
  }, undefined>;
440
440
  export type Create = v.InferOutput<typeof CreateSchema>;
441
441
  export declare const AnonCreateSchema: v.StrictObjectSchema<{
@@ -755,7 +755,7 @@ export declare const SmsSchema: v.StrictObjectSchema<{
755
755
  }, undefined>, undefined>;
756
756
  }, undefined>;
757
757
  export type Sms = v.InferOutput<typeof SmsSchema>;
758
- export declare const CommunicationSchema: v.StrictObjectSchema<{
758
+ export declare const EntitySendMessageSchema: v.StrictObjectSchema<{
759
759
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
760
760
  readonly component: v.OptionalSchema<v.LiteralSchema<"entity-send-message", undefined>, undefined>;
761
761
  } & {
@@ -817,11 +817,10 @@ export declare const CommunicationSchema: v.StrictObjectSchema<{
817
817
  readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
818
818
  readonly 'contact-phone-field': v.StringSchema<undefined>;
819
819
  readonly 'contact-email-field': v.StringSchema<undefined>;
820
- readonly 'message-subject': v.NullishSchema<v.StringSchema<undefined>, undefined>;
821
820
  }, undefined>, undefined>;
822
821
  }, undefined>;
823
- export type Communication = v.InferOutput<typeof CommunicationSchema>;
824
- export declare const ForwardSchema: v.StrictObjectSchema<{
822
+ export type Communication = v.InferOutput<typeof EntitySendMessageSchema>;
823
+ export declare const EntityForwardSchema: v.StrictObjectSchema<{
825
824
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
826
825
  readonly component: v.OptionalSchema<v.LiteralSchema<"entity-forward", undefined>, undefined>;
827
826
  } & {
@@ -886,71 +885,10 @@ export declare const ForwardSchema: v.StrictObjectSchema<{
886
885
  readonly message: v.NullishSchema<v.StringSchema<undefined>, undefined>;
887
886
  }, undefined>, undefined>;
888
887
  }, undefined>;
889
- export type Forward = v.InferOutput<typeof ForwardSchema>;
890
- export declare const AuthorizedPdfSchema: v.StrictObjectSchema<{
888
+ export type Forward = v.InferOutput<typeof EntityForwardSchema>;
889
+ export declare const EntityReplySchema: v.StrictObjectSchema<{
891
890
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
892
- readonly component: v.OptionalSchema<v.LiteralSchema<"entity-print-pdf", undefined>, undefined>;
893
- } & {
894
- /** The text to display on the button */
895
- readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
896
- readonly icon: v.NullishSchema<v.StringSchema<undefined>, undefined>;
897
- /** The explanatory title of the action */
898
- readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
899
- /** An explanatory subtitle for the action */
900
- readonly helptext: v.NullishSchema<v.StringSchema<undefined>, undefined>;
901
- /**
902
- * Whether it is considered a primary action
903
- *
904
- * This also determines the styling of the action button
905
- */
906
- readonly primary: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
907
- readonly url: v.NullishSchema<v.StringSchema<undefined>, undefined>;
908
- /** @default false */
909
- readonly self: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
910
- /**
911
- * Confirmation dialog title
912
- *
913
- * Title of dialog to display when the user clicks on the action button
914
- */
915
- readonly confirm_title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
916
- /**
917
- * Confirmation dialog description
918
- *
919
- * Description of dialog to display when the user clicks on the action button
920
- */
921
- readonly confirm_message: v.NullishSchema<v.StringSchema<undefined>, undefined>;
922
- /**
923
- * Confirmation dialog 'confirm' button label
924
- *
925
- * Label of 'confirm' button included in dialog displayed when the user clicks on the action button
926
- */
927
- readonly confirm_confirm_label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
928
- /**
929
- * Confirmation dialog 'cancel' button label
930
- *
931
- * Label of 'cancel' button included in dialog displayed when the user clicks on the action button
932
- */
933
- readonly confirm_cancel_label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
934
- readonly warning: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
935
- readonly autocall: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
936
- readonly retry: v.NullishSchema<v.StrictObjectSchema<{
937
- readonly retry_limit: v.NumberSchema<undefined>;
938
- readonly retry_delay: v.NumberSchema<undefined>;
939
- }, undefined>, undefined>;
940
- readonly poll: v.NullishSchema<v.StrictObjectSchema<{
941
- readonly retry: v.StrictObjectSchema<{
942
- readonly retry_limit: v.NumberSchema<undefined>;
943
- readonly retry_delay: v.NumberSchema<undefined>;
944
- }, undefined>;
945
- readonly id_field: v.StringSchema<undefined>;
946
- readonly endpoint: v.StringSchema<undefined>;
947
- }, undefined>, undefined>;
948
- }, undefined>, undefined>, undefined>;
949
- }, undefined>;
950
- export type AuthorizedPdf = v.InferOutput<typeof AuthorizedPdfSchema>;
951
- export declare const ReplySchema: v.StrictObjectSchema<{
952
- readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
953
- readonly component: v.OptionalSchema<v.PicklistSchema<["entity-reply", "hidden"], undefined>, undefined>;
891
+ readonly component: v.OptionalSchema<v.LiteralSchema<"entity-reply", undefined>, undefined>;
954
892
  } & {
955
893
  /** The text to display on the button */
956
894
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -1011,10 +949,10 @@ export declare const ReplySchema: v.StrictObjectSchema<{
1011
949
  readonly 'reply-templates': v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>;
1012
950
  }, undefined>, undefined>;
1013
951
  }, undefined>;
1014
- export type Reply = v.InferOutput<typeof ReplySchema>;
1015
- export declare const WebPrintSchema: v.StrictObjectSchema<{
952
+ export type Reply = v.InferOutput<typeof EntityReplySchema>;
953
+ export declare const LinkActionSchema: v.StrictObjectSchema<{
1016
954
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
1017
- readonly component: v.OptionalSchema<v.LiteralSchema<"web-print", undefined>, undefined>;
955
+ readonly component: v.OptionalSchema<v.LiteralSchema<"link", undefined>, undefined>;
1018
956
  } & {
1019
957
  /** The text to display on the button */
1020
958
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -1072,10 +1010,10 @@ export declare const WebPrintSchema: v.StrictObjectSchema<{
1072
1010
  }, undefined>, undefined>;
1073
1011
  }, undefined>, undefined>, undefined>;
1074
1012
  }, undefined>;
1075
- export type WebPrint = v.InferOutput<typeof WebPrintSchema>;
1076
- export declare const NewDeclOrTempSavePreviewSchema: v.StrictObjectSchema<{
1013
+ export type LinkAction = v.InferOutput<typeof LinkActionSchema>;
1014
+ export declare const BackstepSchema: v.StrictObjectSchema<{
1077
1015
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
1078
- readonly component: v.OptionalSchema<v.LiteralSchema<"link", undefined>, undefined>;
1016
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-backstep", undefined>, undefined>;
1079
1017
  } & {
1080
1018
  /** The text to display on the button */
1081
1019
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -1133,10 +1071,10 @@ export declare const NewDeclOrTempSavePreviewSchema: v.StrictObjectSchema<{
1133
1071
  }, undefined>, undefined>;
1134
1072
  }, undefined>, undefined>, undefined>;
1135
1073
  }, undefined>;
1136
- export type NewDeclOrTempSavePreview = v.InferOutput<typeof NewDeclOrTempSavePreviewSchema>;
1137
- export declare const BackstepSchema: v.StrictObjectSchema<{
1074
+ export type Backstep = v.InferOutput<typeof BackstepSchema>;
1075
+ export declare const HiddenActionSchema: v.StrictObjectSchema<{
1138
1076
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
1139
- readonly component: v.OptionalSchema<v.LiteralSchema<"document-backstep", undefined>, undefined>;
1077
+ readonly component: v.OptionalSchema<v.LiteralSchema<"hidden", undefined>, undefined>;
1140
1078
  } & {
1141
1079
  /** The text to display on the button */
1142
1080
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -1193,8 +1131,9 @@ export declare const BackstepSchema: v.StrictObjectSchema<{
1193
1131
  readonly endpoint: v.StringSchema<undefined>;
1194
1132
  }, undefined>, undefined>;
1195
1133
  }, undefined>, undefined>, undefined>;
1134
+ readonly 'component-params': v.NullishSchema<v.AnySchema, undefined>;
1196
1135
  }, undefined>;
1197
- export type Backstep = v.InferOutput<typeof BackstepSchema>;
1136
+ export type HiddenAction = v.InferOutput<typeof BackstepSchema>;
1198
1137
  /**
1199
1138
  * Describes the action that can be performed on a step
1200
1139
  *
@@ -1384,7 +1323,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
1384
1323
  }, undefined>, undefined>, undefined>;
1385
1324
  }, undefined>, v.StrictObjectSchema<{
1386
1325
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
1387
- readonly component: v.OptionalSchema<v.LiteralSchema<"document-resend-email-otp", undefined>, undefined>;
1326
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-dismiss", undefined>, undefined>;
1388
1327
  } & {
1389
1328
  /** The text to display on the button */
1390
1329
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -1443,7 +1382,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
1443
1382
  }, undefined>, undefined>, undefined>;
1444
1383
  }, undefined>, v.StrictObjectSchema<{
1445
1384
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
1446
- readonly component: v.OptionalSchema<v.LiteralSchema<"document-dismiss", undefined>, undefined>;
1385
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-update", undefined>, undefined>;
1447
1386
  } & {
1448
1387
  /** The text to display on the button */
1449
1388
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -1500,9 +1439,14 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
1500
1439
  readonly endpoint: v.StringSchema<undefined>;
1501
1440
  }, undefined>, undefined>;
1502
1441
  }, undefined>, undefined>, undefined>;
1442
+ readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
1443
+ readonly issue: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1444
+ readonly mark_submitting: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1445
+ readonly 'ensure-no-input': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1446
+ }, undefined>, undefined>;
1503
1447
  }, undefined>, v.StrictObjectSchema<{
1504
1448
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
1505
- readonly component: v.OptionalSchema<v.PicklistSchema<["document-update", "document-collect", "document-issue-collected"], undefined>, undefined>;
1449
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-create-new", undefined>, undefined>;
1506
1450
  } & {
1507
1451
  /** The text to display on the button */
1508
1452
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -1560,9 +1504,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
1560
1504
  }, undefined>, undefined>;
1561
1505
  }, undefined>, undefined>, undefined>;
1562
1506
  readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
1563
- readonly issue: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1564
- readonly mark_submitting: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1565
- readonly 'ensure-no-input': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1507
+ readonly refname: v.NullishSchema<v.StringSchema<undefined>, undefined>;
1566
1508
  }, undefined>, undefined>;
1567
1509
  }, undefined>, v.StrictObjectSchema<{
1568
1510
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
@@ -1623,9 +1565,6 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
1623
1565
  readonly endpoint: v.StringSchema<undefined>;
1624
1566
  }, undefined>, undefined>;
1625
1567
  }, undefined>, undefined>, undefined>;
1626
- readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
1627
- readonly interactive: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1628
- }, undefined>, undefined>;
1629
1568
  }, undefined>, v.StrictObjectSchema<{
1630
1569
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
1631
1570
  readonly component: v.OptionalSchema<v.LiteralSchema<"document-anon-create", undefined>, undefined>;
@@ -1995,7 +1934,6 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
1995
1934
  readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
1996
1935
  readonly 'contact-phone-field': v.StringSchema<undefined>;
1997
1936
  readonly 'contact-email-field': v.StringSchema<undefined>;
1998
- readonly 'message-subject': v.NullishSchema<v.StringSchema<undefined>, undefined>;
1999
1937
  }, undefined>, undefined>;
2000
1938
  }, undefined>, v.StrictObjectSchema<{
2001
1939
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
@@ -2063,66 +2001,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
2063
2001
  }, undefined>, undefined>;
2064
2002
  }, undefined>, v.StrictObjectSchema<{
2065
2003
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
2066
- readonly component: v.OptionalSchema<v.LiteralSchema<"entity-print-pdf", undefined>, undefined>;
2067
- } & {
2068
- /** The text to display on the button */
2069
- readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2070
- readonly icon: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2071
- /** The explanatory title of the action */
2072
- readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2073
- /** An explanatory subtitle for the action */
2074
- readonly helptext: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2075
- /**
2076
- * Whether it is considered a primary action
2077
- *
2078
- * This also determines the styling of the action button
2079
- */
2080
- readonly primary: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
2081
- readonly url: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2082
- /** @default false */
2083
- readonly self: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
2084
- /**
2085
- * Confirmation dialog title
2086
- *
2087
- * Title of dialog to display when the user clicks on the action button
2088
- */
2089
- readonly confirm_title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2090
- /**
2091
- * Confirmation dialog description
2092
- *
2093
- * Description of dialog to display when the user clicks on the action button
2094
- */
2095
- readonly confirm_message: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2096
- /**
2097
- * Confirmation dialog 'confirm' button label
2098
- *
2099
- * Label of 'confirm' button included in dialog displayed when the user clicks on the action button
2100
- */
2101
- readonly confirm_confirm_label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2102
- /**
2103
- * Confirmation dialog 'cancel' button label
2104
- *
2105
- * Label of 'cancel' button included in dialog displayed when the user clicks on the action button
2106
- */
2107
- readonly confirm_cancel_label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
2108
- readonly warning: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
2109
- readonly autocall: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
2110
- readonly retry: v.NullishSchema<v.StrictObjectSchema<{
2111
- readonly retry_limit: v.NumberSchema<undefined>;
2112
- readonly retry_delay: v.NumberSchema<undefined>;
2113
- }, undefined>, undefined>;
2114
- readonly poll: v.NullishSchema<v.StrictObjectSchema<{
2115
- readonly retry: v.StrictObjectSchema<{
2116
- readonly retry_limit: v.NumberSchema<undefined>;
2117
- readonly retry_delay: v.NumberSchema<undefined>;
2118
- }, undefined>;
2119
- readonly id_field: v.StringSchema<undefined>;
2120
- readonly endpoint: v.StringSchema<undefined>;
2121
- }, undefined>, undefined>;
2122
- }, undefined>, undefined>, undefined>;
2123
- }, undefined>, v.StrictObjectSchema<{
2124
- readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
2125
- readonly component: v.OptionalSchema<v.PicklistSchema<["entity-reply", "hidden"], undefined>, undefined>;
2004
+ readonly component: v.OptionalSchema<v.LiteralSchema<"entity-reply", undefined>, undefined>;
2126
2005
  } & {
2127
2006
  /** The text to display on the button */
2128
2007
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -2184,7 +2063,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
2184
2063
  }, undefined>, undefined>;
2185
2064
  }, undefined>, v.StrictObjectSchema<{
2186
2065
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
2187
- readonly component: v.OptionalSchema<v.LiteralSchema<"web-print", undefined>, undefined>;
2066
+ readonly component: v.OptionalSchema<v.LiteralSchema<"link", undefined>, undefined>;
2188
2067
  } & {
2189
2068
  /** The text to display on the button */
2190
2069
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -2243,7 +2122,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
2243
2122
  }, undefined>, undefined>, undefined>;
2244
2123
  }, undefined>, v.StrictObjectSchema<{
2245
2124
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
2246
- readonly component: v.OptionalSchema<v.LiteralSchema<"link", undefined>, undefined>;
2125
+ readonly component: v.OptionalSchema<v.LiteralSchema<"document-backstep", undefined>, undefined>;
2247
2126
  } & {
2248
2127
  /** The text to display on the button */
2249
2128
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -2302,7 +2181,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
2302
2181
  }, undefined>, undefined>, undefined>;
2303
2182
  }, undefined>, v.StrictObjectSchema<{
2304
2183
  readonly display: v.RecordSchema<v.PicklistSchema<["default", "web", "pdf"], undefined>, v.RecordSchema<v.PicklistSchema<["default", "el", "en", "fr"], undefined>, v.LooseObjectSchema<{
2305
- readonly component: v.OptionalSchema<v.LiteralSchema<"document-backstep", undefined>, undefined>;
2184
+ readonly component: v.OptionalSchema<v.LiteralSchema<"hidden", undefined>, undefined>;
2306
2185
  } & {
2307
2186
  /** The text to display on the button */
2308
2187
  readonly label: v.NullishSchema<v.StringSchema<undefined>, undefined>;
@@ -2359,6 +2238,7 @@ export declare const ActionSchema: v.VariantSchema<"display", [v.StrictObjectSch
2359
2238
  readonly endpoint: v.StringSchema<undefined>;
2360
2239
  }, undefined>, undefined>;
2361
2240
  }, undefined>, undefined>, undefined>;
2241
+ readonly 'component-params': v.NullishSchema<v.AnySchema, undefined>;
2362
2242
  }, undefined>], undefined>;
2363
2243
  export type Action = v.InferOutput<typeof ActionSchema>;
2364
2244
  export default Action;
package/schemas/action.js CHANGED
@@ -1,4 +1,4 @@
1
- import { any, boolean as external_valibot_boolean, literal, looseObject, nullish, number, partial, picklist, record, strictObject, string, variant } from "valibot";
1
+ import { any, boolean as external_valibot_boolean, literal, looseObject, nullish, number, partial, record, strictObject, string, variant } from "valibot";
2
2
  import { DisplayLangSchema, DisplayModeSchema } from "./common.js";
3
3
  const RetrySpecSchema = strictObject({
4
4
  retry_limit: number(),
@@ -37,7 +37,7 @@ const TemporarySaveSchema = strictObject({
37
37
  component: literal('document-temporary-save')
38
38
  }))
39
39
  });
40
- const PdfSchema = strictObject({
40
+ const DownloadPdfSchema = strictObject({
41
41
  display: createActionDisplay(strictObject({
42
42
  component: literal('document-download-pdf')
43
43
  })),
@@ -51,23 +51,14 @@ const ResendOtpSchema = strictObject({
51
51
  component: literal('document-resend-otp')
52
52
  }))
53
53
  });
54
- const ResendEmailOtpSchema = strictObject({
55
- display: createActionDisplay(strictObject({
56
- component: literal('document-resend-email-otp')
57
- }))
58
- });
59
- const CancelSchema = strictObject({
54
+ const DismissSchema = strictObject({
60
55
  display: createActionDisplay(strictObject({
61
56
  component: literal('document-dismiss')
62
57
  }))
63
58
  });
64
59
  const UpdateSchema = strictObject({
65
60
  display: createActionDisplay(strictObject({
66
- component: picklist([
67
- 'document-update',
68
- 'document-collect',
69
- 'document-issue-collected'
70
- ])
61
+ component: literal('document-update')
71
62
  })),
72
63
  'component-params': nullish(strictObject({
73
64
  issue: nullish(external_valibot_boolean()),
@@ -75,12 +66,17 @@ const UpdateSchema = strictObject({
75
66
  'ensure-no-input': nullish(external_valibot_boolean())
76
67
  }))
77
68
  });
78
- const CreateSchema = strictObject({
69
+ const CreateNewSchema = strictObject({
79
70
  display: createActionDisplay(strictObject({
80
- component: literal('document-create')
71
+ component: literal('document-create-new')
81
72
  })),
82
73
  'component-params': nullish(strictObject({
83
- interactive: nullish(external_valibot_boolean())
74
+ refname: nullish(string())
75
+ }))
76
+ });
77
+ const CreateSchema = strictObject({
78
+ display: createActionDisplay(strictObject({
79
+ component: literal('document-create')
84
80
  }))
85
81
  });
86
82
  const AnonCreateSchema = strictObject({
@@ -120,17 +116,16 @@ const SmsSchema = strictObject({
120
116
  template: string()
121
117
  }))
122
118
  });
123
- const CommunicationSchema = strictObject({
119
+ const EntitySendMessageSchema = strictObject({
124
120
  display: createActionDisplay(strictObject({
125
121
  component: literal('entity-send-message')
126
122
  })),
127
123
  'component-params': nullish(strictObject({
128
124
  'contact-phone-field': string(),
129
- 'contact-email-field': string(),
130
- 'message-subject': nullish(string())
125
+ 'contact-email-field': string()
131
126
  }))
132
127
  });
133
- const ForwardSchema = strictObject({
128
+ const EntityForwardSchema = strictObject({
134
129
  display: createActionDisplay(strictObject({
135
130
  component: literal('entity-forward')
136
131
  })),
@@ -140,28 +135,15 @@ const ForwardSchema = strictObject({
140
135
  message: nullish(string())
141
136
  }))
142
137
  });
143
- const AuthorizedPdfSchema = strictObject({
138
+ const EntityReplySchema = strictObject({
144
139
  display: createActionDisplay(strictObject({
145
- component: literal('entity-print-pdf')
146
- }))
147
- });
148
- const ReplySchema = strictObject({
149
- display: createActionDisplay(strictObject({
150
- component: picklist([
151
- 'entity-reply',
152
- 'hidden'
153
- ])
140
+ component: literal('entity-reply')
154
141
  })),
155
142
  'component-params': nullish(strictObject({
156
143
  'reply-templates': record(string(), any())
157
144
  }))
158
145
  });
159
- const WebPrintSchema = strictObject({
160
- display: createActionDisplay(strictObject({
161
- component: literal('web-print')
162
- }))
163
- });
164
- const NewDeclOrTempSavePreviewSchema = strictObject({
146
+ const LinkActionSchema = strictObject({
165
147
  display: createActionDisplay(strictObject({
166
148
  component: literal('link')
167
149
  }))
@@ -171,26 +153,31 @@ const BackstepSchema = strictObject({
171
153
  component: literal('document-backstep')
172
154
  }))
173
155
  });
156
+ const HiddenActionSchema = strictObject({
157
+ display: createActionDisplay(strictObject({
158
+ component: literal('hidden')
159
+ })),
160
+ 'component-params': nullish(any())
161
+ });
174
162
  const ActionSchema = variant('display', [
175
163
  TemporarySaveSchema,
176
- PdfSchema,
164
+ DownloadPdfSchema,
177
165
  ResendOtpSchema,
178
- ResendEmailOtpSchema,
179
- CancelSchema,
166
+ DismissSchema,
180
167
  UpdateSchema,
168
+ CreateNewSchema,
181
169
  CreateSchema,
182
170
  AnonCreateSchema,
183
171
  RevokeSchema,
184
172
  ShareSchema,
185
173
  EmailSchema,
186
174
  SmsSchema,
187
- CommunicationSchema,
188
- ForwardSchema,
189
- AuthorizedPdfSchema,
190
- ReplySchema,
191
- WebPrintSchema,
192
- NewDeclOrTempSavePreviewSchema,
193
- BackstepSchema
175
+ EntitySendMessageSchema,
176
+ EntityForwardSchema,
177
+ EntityReplySchema,
178
+ LinkActionSchema,
179
+ BackstepSchema,
180
+ HiddenActionSchema
194
181
  ]);
195
182
  const ActionsSchema = record(string(), ActionSchema);
196
- export { ActionSchema, ActionsSchema, AnonCreateSchema, AuthorizedPdfSchema, BackstepSchema, CancelSchema, CommunicationSchema, CreateSchema, EmailSchema, ForwardSchema, NewDeclOrTempSavePreviewSchema, PdfSchema, ReplySchema, ResendEmailOtpSchema, ResendOtpSchema, RevokeSchema, ShareSchema, SmsSchema, TemporarySaveSchema, UpdateSchema, WebPrintSchema };
183
+ export { ActionSchema, ActionsSchema, AnonCreateSchema, BackstepSchema, CreateNewSchema, CreateSchema, DismissSchema, DownloadPdfSchema, EmailSchema, EntityForwardSchema, EntityReplySchema, EntitySendMessageSchema, HiddenActionSchema, LinkActionSchema, ResendOtpSchema, RevokeSchema, ShareSchema, SmsSchema, TemporarySaveSchema, UpdateSchema };